| Previous | 15994 Revisions | Next |
| r1650 Sunday 3rd February, 2008 at 16:04:45 UTC by Nathan Woods |
|---|
| Updated to MAME 0.122u8 core |
| [ROOT] | makefile |
| [docs] | messnew.txt |
| [src/build] | build.mak png2bdc.c |
| [src/emu] | cpuexec.c cpuexec.h cpuint.c cpuintrf.c debugger.h deprecat.h* drawgfx.c drawgfx.h driver.h emu.mak emuopts.c emupal.c inptport.c inptport.h input.c mame.c mame.h memory.c memory.h profiler.c render.c rendlay.c romload.c sndintrf.c sound.c state.c streams.c streams.h tilemap.c timer.c ui.c uigfx.c uimenu.c video.c |
| [src/emu/audio] | generic.c |
| [src/emu/cpu] | cpu.mak x64drc.c x86drc.c |
| [src/emu/cpu/adsp2100] | adsp2100.c |
| [src/emu/cpu/alph8201] | alph8201.c alph8201.h |
| [src/emu/cpu/apexc] | apexc.c apexc.h |
| [src/emu/cpu/arm] | arm.c arm.h |
| [src/emu/cpu/arm7] | arm7.c arm7core.c arm7core.h arm7exec.c |
| [src/emu/cpu/asap] | asap.c |
| [src/emu/cpu/ccpu] | ccpu.c ccpu.h |
| [src/emu/cpu/cdp1802] | cdp1802.c cdp1802.h |
| [src/emu/cpu/cop400] | cop400.h cop410.c cop420.c |
| [src/emu/cpu/cp1610] | cp1610.c cp1610.h |
| [src/emu/cpu/dsp32] | dsp32.c dsp32ops.c |
| [src/emu/cpu/dsp56k] | dsp56dsm.c dsp56k.c dsp56ops.c |
| [src/emu/cpu/e132xs] | e132xs.c e132xs.h |
| [src/emu/cpu/f8] | f8.c |
| [src/emu/cpu/g65816] | g65816.c g65816.h g65816cm.h g65816op.h |
| [src/emu/cpu/h6280] | h6280.c h6280.h |
| [src/emu/cpu/h83002] | h83002.c h8disasm.c h8periph.c h8priv.h |
| [src/emu/cpu/hd6309] | hd6309.c |
| [src/emu/cpu/i386] | i386.c i386.h |
| [src/emu/cpu/i8039] | i8039.c i8039.h |
| [src/emu/cpu/i8051] | i8051.c i8051.h |
| [src/emu/cpu/i8085] | i8085.c i8085.h |
| [src/emu/cpu/i86] | i286.c i86.c |
| [src/emu/cpu/i8x41] | i8x41.c i8x41.h |
| [src/emu/cpu/i960] | i960.c |
| [src/emu/cpu/jaguar] | jaguar.c |
| [src/emu/cpu/konami] | konami.c konami.h |
| [src/emu/cpu/lh5801] | lh5801.c |
| [src/emu/cpu/m37710] | m37710.c m37710.h m37710cm.h m37710op.h |
| [src/emu/cpu/m6502] | m4510.c m4510.h m6502.c m6502.h m6509.c m65ce02.c m65ce02.h |
| [src/emu/cpu/m6800] | m6800.c m6800.h |
| [src/emu/cpu/m68000] | m68k.h m68kcpu.c m68kcpu.h m68kmame.c m68kmame.h |
| [src/emu/cpu/m6805] | m6805.c m6805.h |
| [src/emu/cpu/m6809] | m6809.c |
| [src/emu/cpu/mb86233] | mb86233.c |
| [src/emu/cpu/mb88xx] | mb88xx.c mb88xx.h |
| [src/emu/cpu/mc68hc11] | mc68hc11.c mc68hc11.h |
| [src/emu/cpu/minx] | minx.c minx.h |
| [src/emu/cpu/mips] | mdrc64.c mdrcold.c mips3.c mips3com.c mips3com.h mips3drc.c psx.c psx.h r3000.c |
| [src/emu/cpu/nec] | nec.c nec.h |
| [src/emu/cpu/pdp1] | pdp1.c pdp1.h tx0.c tx0.h |
| [src/emu/cpu/pic16c5x] | 16c5xdsm.c pic16c5x.c pic16c5x.h |
| [src/emu/cpu/powerpc] | ppc.c ppc.h ppc403.c ppc602.c ppc603.c ppc_mem.c ppcdrc.c |
| [src/emu/cpu/rsp] | rsp.c rsp.h |
| [src/emu/cpu/s2650] | s2650.c s2650.h |
| [src/emu/cpu/saturn] | saturn.c saturn.h |
| [src/emu/cpu/sc61860] | sc61860.c sc61860.h |
| [src/emu/cpu/se3208] | se3208.c se3208.h |
| [src/emu/cpu/sh2] | sh2.c sh2.h |
| [src/emu/cpu/sh4] | sh4.c sh4.h |
| [src/emu/cpu/sharc] | sharc.c sharc.h sharcops.c |
| [src/emu/cpu/sm8500] | sm8500.c sm8500.h |
| [src/emu/cpu/spc700] | spc700.c |
| [src/emu/cpu/ssp1610] | ssp1610.c ssp1610.h |
| [src/emu/cpu/t11] | t11.c t11.h |
| [src/emu/cpu/tlcs90] | tlcs90.c tlcs90.h |
| [src/emu/cpu/tms32010] | 32010dsm.c tms32010.c tms32010.h |
| [src/emu/cpu/tms32025] | 32025dsm.c tms32025.c tms32025.h |
| [src/emu/cpu/tms32031] | 32031ops.c tms32031.c |
| [src/emu/cpu/tms32051] | tms32051.c tms32051.h |
| [src/emu/cpu/tms34010] | tms34010.c tms34010.h |
| [src/emu/cpu/tms7000] | tms7000.c tms7000.h |
| [src/emu/cpu/tms9900] | 99xxcore.h tms9900.h |
| [src/emu/cpu/upd7810] | upd7810.c upd7810.h |
| [src/emu/cpu/v30mz] | v30mz.c |
| [src/emu/cpu/v60] | v60.c v60d.c |
| [src/emu/cpu/v810] | v810.c v810.h |
| [src/emu/cpu/z180] | z180.c z180.h z180op.c z180ops.h z180tbl.h |
| [src/emu/cpu/z80] | z80.c z80.h |
| [src/emu/cpu/z8000] | z8000.c z8000.h |
| [src/emu/cpu/z80gb] | z80gb.c z80gb.h |
| [src/emu/debug] | debugcmd.c debugcmt.c debugcon.c debugcpu.c |
| [src/emu/drivers] | xtal.h |
| [src/emu/machine] | 6526cia.c 6532riot.c 6821pia.c 6840ptm.c 6840ptm.h 74181.c 8042kbdc.c 8237dma.c 8257dma.c ds1302.c generic.c idectrl.c laserdsc.c mc146818.c msm6242.c rtc65271.c timekpr.c tmp68301.c z80ctc.c z80dma.c |
| [src/emu/sound] | c6280.c cdp1869.c discrete.c filter.c flt_rc.c flt_vol.c hc55516.c msm5205.c nes_apu.c rf5c400.c s14001a.c samples.c scsp.c sid.c sid6581.c sn76477.c speaker.c vlm5030.c votrax.c wave.c |
| [src/emu/video] | cdp1869.c generic.c poly.c rgbsse.h tms9928a.c v9938.c vector.c voodoo.c |
| [src/lib/util] | cdrom.c chd.c chd.h harddisk.c palette.h sha1.c |
| [src/mame] | mame.mak mamedriv.c |
| [src/mame/audio] | amiga.c atarijsa.c aztarac.c cage.c carnival.c cchasm.c cinemat.c cyberbal.c dcs.c dkong.c exidy.c exidy440.c firetrk.c galaxian.c gottlieb.c gridlee.c gyruss.c harddriv.c irem.c irem.h jaguar.c leland.c mario.c mcr.c mcr.h n8080.c namco54.c namcoc7x.c phoenix.c pleiads.c redalert.c scramble.c segag80r.c segasnd.c seibu.c senjyo.c spacefb.c starwars.c system16.c taito_en.c taitosnd.c timeplt.c timeplt.h trackfld.c turbo.c tx1.c williams.c |
| [src/mame/drivers] | 1942.c 1943.c 20pacgal.c 2mindril.c 40love.c 8080bw.c 88games.c ace.c acommand.c actfancr.c aerofgt.c airbustr.c alg.c aliens.c alpha68k.c ampoker2.c* amspdwy.c angelkds.c appoooh.c aquarium.c arabian.c arcadecl.c argus.c armedf.c artmagic.c ashnojoe.c asterix.c astrocde.c astrof.c asuka.c atarig42.c atarigt.c atarigx2.c atarisy2.c ataxx.c atetris.c backfire.c balsente.c baraduke.c batman.c battlane.c battlera.c battlnts.c bbusters.c beathead.c bfcobra.c bfm_sc2.c bigevglf.c bigfghtr.c bionicc.c bishi.c bishjan.c bking.c* bladestl.c blktiger.c blmbycar.c blockhl.c blockout.c blstroid.c blueprnt.c bmcbowl.c bnstars.c boogwing.c bottom9.c boxer.c brkthru.c btime.c btoads.c bublbobl.c buggychl.c bwidow.c bwing.c cabal.c capbowl.c carjmbre.c carpolo.c carrera.c cave.c cbuster.c ccastles.c cchasm.c cclimber.c centiped.c cham24.c champbas.c cherrym.c cherrym2.c chinagat.c chinsan.c chqflag.c cidelsa.c cinemat.c circusc.c cischeat.c cliffhgr.c cloak.c cloud9.c clshroad.c cninja.c cntsteer.c cojag.c combatsc.c compgolf.c contra.c coolpool.c coolridr.c cop01.c cosmic.c cowrace.c cps1.c cps2.c cps3.c crbaloon.c crgolf.c crimfght.c crospang.c crshrace.c crystal.c cshooter.c cubocd32.c cvs.c cyberbal.c cybertnk.c dacholer.c darius.c darkhors.c darkmist.c darkseal.c dassault.c dblewing.c dbz.c dcheese.c ddayjlc.c ddealer.c ddenlovr.c ddragon.c ddragon3.c ddrible.c deadang.c dec0.c dec8.c deco156.c deco32.c deco_mlc.c deniam.c destroyr.c dgpix.c dietgo.c discoboy.c diverboy.c djboy.c djmain.c dkong.c dlair.c dmndrby.c dogfgt.c dominob.c dooyong.c dreamwld.c dribling.c dunhuang.c dwarfd.c dynax.c egghunt.c enigma2.c eolith.c eolithsp.c eprom.c equites.c ertictac.c esd16.c esh.c espial.c ettrivia.c exctsccr.c exedexes.c exidy440.c expro02.c exprraid.c exterm.c exzisus.c f1gp.c fantland.c fastlane.c fgoal.c filetto.c finalizr.c findout.c firebeat.c firetrap.c fitfight.c flkatck.c flower.c flstory.c fortecar.c fromanc2.c fromance.c funkyjet.c funybubl.c fuukifg2.c fuukifg3.c gaelco.c gaelco3d.c gaiden.c galaga.c galaxian.c galgames.c* galivan.c galpani2.c galpani3.c galpanic.c galspnbl.c gamecstl.c gameplan.c gaplus.c gauntlet.c gberet.c gbusters.c genesis.c getrivia.c gijoe.c ginganin.c gladiatr.c glass.c goal92.c goodejan.c gotcha.c gotya.c gpworld.c gradius3.c grchamp.c groundfx.c gstream.c gstriker.c gsword.c gticlub.c gtipoker.c gunbustr.c gundealr.c gunpey.c gyruss.c hal21.c halleys.c hcastle.c hexion.c higemaru.c hitme.c hng64.c homedata.c hornet.c hotblock.c hshavoc.c hyprduel.c igs_180.c igs_blit.c ikki.c imolagp.c intrscti.c inufuku.c iqblock.c irobot.c ironhors.c istellar.c itech32.c itech8.c jack.c jackpool.c jchan.c jcross.c jedi.c jpmimpct.c jrpacman.c junofrst.c kaneko16.c kangaroo.c karnov.c kchamp.c kingobox.c kingpin.c kinst.c kncljoe.c konamigq.c konamigx.c konamim2.c kopunch.c ksys573.c kyugo.c labyrunr.c ladybug.c ladyfrog.c laserbas.c laserbat.c lasso.c lastduel.c lastfght.c legionna.c leland.c lemmings.c lethal.c limenko.c littlerb.c lkage.c lockon.c looping.c lordgun.c lsasquad.c lucky8.c m107.c m52.c* m57.c* m58.c* m62.c m72.c m92.c macrossp.c madalien.c madmotor.c magic10.c magmax.c mainevt.c mainsnk.c mappy.c marinedt.c mario.c marvins.c mastboy.c matmania.c maxaflex.c mazerbla.c mcatadv.c mcr3.c meadows.c mediagx.c megadriv.c megaplay.c megasys1.c megatech.c megazone.c meijinsn.c merit.c metlclsh.c metro.c mgolf.c micro3d.c midvunit.c midzeus.c mikie.c miniboy7.c mirage.c missb2.c missile.c mitchell.c mlanding.c model1.c model2.c model3.c mogura.c moo.c mouser.c mpu4.c mpu4drvr.c mrflea.c ms32.c msisaac.c mugsmash.c multigam.c munchmo.c murogem.c mwarr.c mystston.c mystwarr.c namcona1.c namconb1.c namcos1.c namcos12.c namcos21.c namcos22.c namcos23.c namcos86.c naomi.c nbmj9195.c nemesis.c neodrvr.c neogeo.c ninjakd2.c ninjaw.c niyanpai.c nmg5.c nmk16.c nwk-tr.c nycaptor.c nyny.c offtwall.c ojankohs.c olibochu.c omegrace.c oneshot.c onetwo.c opwolf.c othldrby.c othunder.c overdriv.c pacland.c pacman.c pandoras.c panicr.c parodius.c pasha2.c pbaction.c pcktgal.c peplus.c pgm.c pingpong.c pipedrm.c pipeline.c pkscram.c pktgaldx.c plygonet.c pntnpuzl.c pokechmp.c polepos.c policetr.c polyplay.c poolshrk.c pooyan.c popper.c powerins.c prehisle.c psikyo.c psikyo4.c psikyosh.c psychic5.c punchout.c pushman.c qdrmfgp.c quizo.c r2dtank.c rabbit.c rainbow.c rallyx.c rampart.c rastan.c rbmk.c realbrk.c redalert.c redclash.c relief.c renegade.c retofinv.c rockola.c rockrage.c rocnrope.c rohga.c rollerg.c route16.c royalmah.c rpunch.c runaway.c rungun.c sandscrp.c sangho.c sauro.c sbasketb.c sbowling.c sbrkout.c sbugger.c scotrsht.c scramble.c seattle.c segac2.c segae.c segag80r.c segag80v.c segahang.c segaorun.c segas16a.c segas16b.c segas18.c segas24.c segas32.c segaxbd.c segaybd.c seibuspi.c seicross.c senjyo.c seta.c seta2.c sf.c sg1000a.c sgladiat.c shadfrce.c shangha3.c shanghai.c shangkid.c shaolins.c shisen.c shootout.c shougi.c shuuz.c sidearms.c sidepckt.c silkroad.c simpl156.c simpsons.c skullxbo.c skychut.c skykid.c skylncr.c slapfght.c slapshot.c sliver.c smstrv.c snk.c snk68.c snowbros.c solomon.c sonson.c spaceg.c spbactn.c spcforce.c spdodgeb.c speedspn.c spiders.c splash.c sprcros2.c sprint8.c spy.c srmp2.c srmp6.c srumbler.c ssfindo.c sshangha.c sslam.c ssozumo.c sspeedr.c ssv.c st0016.c stadhero.c starfire.c starshp1.c starwars.c steaser.c stepstag.c strnskil.c stv.c stvinit.c suna16.c suna8.c supbtime.c superchs.c superdq.c superqix.c supertnk.c suprgolf.c suprloco.c suprnova.c suprridr.c suprslam.c surpratk.c system1.c system16.c system18.c tagteam.c tail2nos.c taito_b.c taito_f2.c taito_f3.c taito_h.c taito_l.c taito_x.c taito_z.c taitoair.c taitojc.c taitosj.c taitowlf.c talbot.c tank8.c tankbatt.c taotaido.c tatsumi.c tbowl.c tecmo.c tecmo16.c tecmosys.c tehkanwc.c tempest.c tetrisp2.c tetriunk.c thayers.c thedeep.c thunderj.c thunderx.c tigeroad.c timelimt.c timeplt.c tmaster.c tmnt.c tnzs.c toaplan1.c toaplan2.c toki.c toobin.c topshoot.c topspeed.c toratora.c toypop.c tp84.c travrusa.c triplhnt.c trvmadns.c trvquest.c tryout.c tsamurai.c ttchamp.c tubep.c tumbleb.c tumblep.c turbo.c turbosub.c tutankhm.c twin16.c twincobr.c tx1.c uapce.c ultraman.c ultrsprt.c undrfire.c unico.c vamphalf.c vaportra.c vastar.c vball.c vegaeo.c vegas.c vendetta.c vertigo.c vicdual.c videopin.c vmetal.c volfied.c vroulet.c vsnes.c vulgus.c wardner.c warpwarp.c warriorb.c wc90.c wc90b.c wecleman.c welltris.c wgp.c wheelfir.c williams.c wilytowr.c wink.c wiping.c witch.c wwfsstar.c wwfwfest.c xain.c xexex.c xmen.c xxmissio.c xyonix.c yamato.c yunsun16.c yunsung8.c zaccaria.c zaxxon.c zerozone.c zn.c zr107.c |
| [src/mame/includes] | 20pacgal.h* arabian.h cclimber.h centiped.h crgolf.h exidy440.h jedi.h kangaroo.h leland.h lockon.h* m52.h* m57.h* m58.h* m62.h* pooyan.h* starfire.h system16.h timeplt.h* tutankhm.h* williams.h |
| [src/mame/layout] | ampoker2.lay* |
| [src/mame/machine] | ajax.c amiga.c asic65.c atari.c atarifb.c atarigen.c balsente.c beezer.c bigevglf.c bublbobl.c buggychl.c carpolo.c cps2crpt.c daikaiju.c dc.c dec0.c decocass.c decoprot.c docastle.c equites.c fd1094.h fddebug.c flstory.c galaxian.c harddriv.c irem_cpu.c irobot.c kaneko16.c konamigx.c konppc.c leland.c lkage.c lsasquad.c mcr.c mexico86.c mhavoc.c midwayic.c midwunit.c midyunit.c model1.c model3.c n64.c namco50.c namcoio.c namcond1.c namcos1.c namcos2.c nitedrvr.c nycaptor.c pcshare.c pitnrun.c playch10.c psx.c qix.c rainbow.c retofinv.c s16fd.c scudsp.c segaic16.c simpsons.c slapfght.c slapstic.c snes.c stactics.c starwars.c system16.c tait8741.c taitosj.c tatsumi.c tnzs.c toaplan1.c twincobr.c tx1.c vertigo.c vsnes.c williams.c |
| [src/mame/video] | 1942.c 1943.c 20pacgal.c 40love.c actfancr.c alpha68k.c ampoker2.c* angelkds.c appoooh.c arabian.c argus.c arkanoid.c astrocde.c atari.c atarifb.c atarig1.c atarirle.c atarisy1.c atarisy2.c avgdvg.c balsente.c battlane.c battlera.c battlex.c beathead.c beezer.c bfm_adr2.c bigevglf.c bking.c* bladestl.c blktiger.c blmbycar.c blockout.c blueprnt.c boogwing.c brkthru.c btime.c btoads.c buggychl.c bwing.c carjmbre.c carpolo.c cbuster.c ccastles.c cchasm.c cclimber.c centiped.c champbas.c changela.c cinemat.c circusc.c cischeat.c citycon.c cloak.c cloud9.c clshroad.c cninja.c combatsc.c commando.c contra.c cop01.c cosmic.c cps1.c crbaloon.c crgolf.c crospang.c csk.c cvs.c cyberbal.c darkmist.c darkseal.c dassault.c dday.c ddrible.c dec0.c dec8.c deco16ic.c deco32.c deco_mlc.c decocass.c deniam.c dietgo.c diverboy.c djboy.c dkong.c dogfgt.c dynduke.c eolith.c exidy.c exidy440.c f1gp.c fantland.c fastfred.c fastlane.c finalizr.c flkatck.c foodf.c fromanc2.c fromance.c funkyjet.c funybubl.c gaelco2.c gaelco3d.c gaiden.c galaxian.c galpani2.c galpanic.c galspnbl.c genesis.c ginganin.c gladiatr.c glass.c goldstar.c gomoku.c gottlieb.c gotya.c grchamp.c gtia.c gticlub.c gundealr.c gyruss.c harddriv.c hcastle.c hng64.c homedata.c homerun.c hyhoo.c hyprduel.c ikki.c irobot.c itech32.c itech8.c jaguar.c jedi.c jpmimpct.c kan_pand.c kaneko16.c kangaroo.c karnov.c konamigx.c konamiic.c konamiic.h labyrunr.c ladybug.c leland.c lemmings.c lethalj.c liberate.c liberatr.c lockon.c* lordgun.c m52.c* m57.c* m58.c* m62.c m72.c macrossp.c madmotor.c magmax.c mainsnk.c mappy.c mario.c matmania.c mcr.c mcr3.c mcr68.c megasys1.c megazone.c metro.c midtunit.c midvunit.c midyunit.c midzeus.c mjsister.c model1.c model3.c ms32.c munchmo.c n8080.c namcona1.c namcos1.c namcos2.c namcos21.c namcos22.c naughtyb.c nbmj8688.c nbmj8891.c nbmj8991.c nbmj9195.c nemesis.c ninjakd2.c niyanpai.c nmk16.c ojankohs.c pacland.c pacman.c paradise.c pastelg.c pitnrun.c pktgaldx.c playch10.c playmark.c policetr.c pooyan.c popeye.c popper.c powerins.c ppu2c0x.c psikyosh.c psx.c psychic5.c punchout.c qix.c quasar.c quizdna.c realbrk.c rockola.c rohga.c rpunch.c runaway.c segag80r.c segaic16.c segaic24.c segaic24.h segas32.c segasyse.c seibuspi.c seta.c shangha3.c shisen.c sidearms.c simpl156.c skullxbo.c skychut.c snk.c snk68.c spdodgeb.c sshangha.c ssozumo.c ssv.c st0016.c stactics.c stadhero.c starfire.c starshp1.c stvvdp1.c stvvdp2.c subs.c suna16.c suna8.c supbtime.c superqix.c suprnova.c system1.c system16.c taito_b.c taito_f2.c taito_f3.c taito_h.c taito_l.c taito_z.c taitoair.c taitoic.c taitojc.c taitosj.c tank8.c tatsumi.c tceptor.c tetrisp2.c thief.c tia.c tiamc1.c timeplt.c tmnt.c toaplan1.c toaplan2.c toobin.c toypop.c tp84.c tryout.c tubep.c tumbleb.c tumblep.c turbo.c tutankhm.c twin16.c tx1.c unico.c usgames.c vaportra.c vball.c vdc.c victory.c vigilant.c vindictr.c vsnes.c wecleman.c williams.c wolfpack.c xxmissio.c ygv608.c yunsung8.c zac2650.c |
| [src/mess] | configms.c device.c eventlst.c filemngr.c image.c inputx.c messopts.c mscommon.c uimess.c |
| [src/mess/audio] | arcadia.c channelf.c dai.c dave.c gb.c kaypro.c lynx.c mac.c mea8000.c odyssey2.c pc.c svision.c ted7360.c vc4000.c vic6560.c wswan.c |
| [src/mess/devices] | appldriv.c cartslot.c cassette.c cococart.c |
| [src/mess/drivers] | a2600.c a310.c adam.c amstrad.c apexc.c apf.c atarist.c avigo.c bbcbc.c coleco.c crvision.c einstein.c enterp.c ex800.c exelv.c ip22.c mk1.c mk2.c nc.c pcw.c pcw16.c psx.c ql.c saturn.c sg1000.c snes.c sord.c super80.c svision.c tm990189.c tutor.c vip.c x68k.c z88.c |
| [src/mess/includes] | dgn_beta.h sms.h |
| [src/mess/machine] | 74145.c 99_dsk.c advision.c aim65.c amigacrt.c apple2.c apple2gs.c apple3.c applefdc.c astrocde.c at.c atarifdc.c atom.c bbc.c bebox.c c128.c c16.c c64.c cbm.c cbmb.c cgenie.c coco.c compis.c concept.c cpm_bios.c dai.c dgn_beta.c ds1315.c electron.c europc.c galaxy.c gamecom.c gb.c genesis.c geneve.c hd63450.c i82439tx.c ins8154.c kc.c lisa.c lviv.c lynx.c mac.c mbee.c microtan.c mm58274c.c msx.c mtx.c mz700.c nes.c nes_mmc.c oric.c osborne1.c pc.c pc8801.c pce.c pcf8593.c pdp1.c pet.c pmd85.c primo.c rp5c15.c sgi.c sms.c spectrum.c strata.c svi318.c sym1.c tandy1t.c thomson.c ti85.c ti990.c ti99_4x.c trs80.c vc1541.c vc20.c vectrex.c wd17xx.c wswan.c zx.c |
| [src/mess/osd/windows] | dialog.c menu.c |
| [src/mess/tools/messtest] | testmess.c |
| [src/mess/video] | 733_asr.c 911_vdt.c a7800.c amstrad.c apple1.c arcadia.c astrocde.c atarist.c bbc.c border.c cbmb.c cdp1861.c cdp1864.c cgenie.c coco.c coupe.c dgn_beta.c dl1416.c electron.c epnick.c gb.c i82720.c intv.c jupiter.c kc.c m6847.c mbee.c nes.c odyssey2.c oric.c pc8801.c pc_cga.c pc_mda.c pc_t1t.c pc_vga.c pc_video.c pcw16.c pdp1.c pet.c pmd85.c primo.c smsvdp.c spectrum.c ssystem3.c ted7360.c thomson.c tms3556.c tx0.c vc4000.c vdc8563.c vectrex.c vic4567.c vic6560.c vic6567.c vtech1.c wswan.c x68k.c zx.c zx8301.c |
| [src/osd/windows] | debugwin.c drawd3d.c drawdd.c output.c sound.c video.c window.c windows.mak winmain.c |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | png2bdc.c | |
| 4 | ||
| 3 | 5 | Super-simple PNG to BDC file generator |
| 4 | 6 | |
| 5 | 7 | Copyright Nicola Salmoria and the MAME Team. |
| r1649 | r1650 | |
|---|---|---|
| 26 | 26 | FILE2STR = $(BUILDOUT)/file2str$(EXE) |
| 27 | 27 | PNG2BDC = $(BUILDOUT)/png2bdc$(EXE) |
| 28 | 28 | |
| 29 | ifneq ($(CROSS_BUILD),1) | |
| 29 | 30 | BUILD += \ |
| 30 | 31 | $(FILE2STR) \ |
| 31 | 32 | $(PNG2BDC) \ |
| r1649 | r1650 | |
| 55 | 56 | $(PNG2BDC): $(PNG2BDCOBJS) $(LIBUTIL) $(LIBOCORE) $(ZLIB) $(EXPAT) |
| 56 | 57 | @echo Linking $@... |
| 57 | 58 | $(LD) $(LDFLAGS) $^ $(LIBS) -o $@ |
| 59 | ||
| 60 | endif | |
| 61 |
| r1649 | r1650 | |
|---|---|---|
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | 8 | #include "streams.h" |
| 9 | #include "deprecat.h" | |
| 9 | 10 | #include "cpu/z80/z80.h" |
| 10 | 11 | #include "machine/z80ctc.h" |
| 11 | 12 | #include "cchasm.h" |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "cpu/i8039/i8039.h" |
| 9 | 10 | #include "sound/dac.h" |
| 10 | 11 | #include "sound/samples.h" |
| r1649 | r1650 | |
|---|---|---|
| 143 | 143 | ****************************************************************************/ |
| 144 | 144 | |
| 145 | 145 | #include "driver.h" |
| 146 | #include "deprecat.h" | |
| 146 | 147 | #include "includes/jaguar.h" |
| 147 | 148 | #include "cpu/jaguar/jaguar.h" |
| 148 | 149 | #include "sound/dac.h" |
| 149 | #include <math.h> | |
| 150 | 150 | |
| 151 | 151 | |
| 152 | 152 | /* Jerry registers */ |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ****************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | |
| 11 | #include <math.h> | |
| 12 | 11 | #include "driver.h" |
| 13 | 12 | #include "streams.h" |
| 13 | #include "deprecat.h" | |
| 14 | 14 | #include "sound/custom.h" |
| 15 | 15 | #include "sound/tms36xx.h" |
| 16 | 16 | #include "phoenix.h" |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "cpu/i8039/i8039.h" |
| 9 | 10 | #include "sound/sn76477.h" |
| 10 | 11 | #include "sound/dac.h" |
| 11 | 12 | #include "includes/n8080.h" |
| 12 | #include <math.h> | |
| 13 | 13 | |
| 14 | 14 | static int n8080_hardware; |
| 15 | 15 |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | 12 | #include "streams.h" |
| 13 | #include "deprecat.h" | |
| 13 | 14 | #include "includes/amiga.h" |
| 14 | 15 | #include "cpu/m68000/m68000.h" |
| 15 | 16 |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | ***************************************************************************/ |
| 12 | 12 | |
| 13 | 13 | #include "driver.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "sound/ay8910.h" |
| 15 | 16 | #include "sound/flt_rc.h" |
| 16 | 17 | #include "timeplt.h" |
| 17 | 18 | |
| 18 | static READ8_HANDLER( timeplt_portB_r ); | |
| 19 | static WRITE8_HANDLER( timeplt_filter_w ); | |
| 20 | 19 | |
| 21 | ADDRESS_MAP_START( timeplt_sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 22 | AM_RANGE(0x0000, 0x1fff) AM_READ(MRA8_ROM) | |
| 23 | AM_RANGE(0x2000, 0x23ff) AM_READ(MRA8_RAM) | |
| 24 | AM_RANGE(0x3000, 0x33ff) AM_READ(MRA8_RAM) | |
| 25 | AM_RANGE(0x4000, 0x4000) AM_READ(AY8910_read_port_0_r) | |
| 26 | AM_RANGE(0x6000, 0x6000) AM_READ(AY8910_read_port_1_r) | |
| 27 | ADDRESS_MAP_END | |
| 20 | #define MASTER_CLOCK XTAL_14_31818MHz | |
| 28 | 21 | |
| 29 | ADDRESS_MAP_START( timeplt_sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 30 | AM_RANGE(0x0000, 0x1fff) AM_WRITE(MWA8_ROM) | |
| 31 | AM_RANGE(0x2000, 0x23ff) AM_WRITE(MWA8_RAM) | |
| 32 | AM_RANGE(0x3000, 0x33ff) AM_WRITE(MWA8_RAM) | |
| 33 | AM_RANGE(0x4000, 0x4000) AM_WRITE(AY8910_write_port_0_w) | |
| 34 | AM_RANGE(0x5000, 0x5000) AM_WRITE(AY8910_control_port_0_w) | |
| 35 | AM_RANGE(0x6000, 0x6000) AM_WRITE(AY8910_write_port_1_w) | |
| 36 | AM_RANGE(0x7000, 0x7000) AM_WRITE(AY8910_control_port_1_w) | |
| 37 | AM_RANGE(0x8000, 0x8fff) AM_WRITE(timeplt_filter_w) | |
| 38 | ADDRESS_MAP_END | |
| 39 | 22 | |
| 40 | ADDRESS_MAP_START( locomotn_sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 41 | AM_RANGE(0x0000, 0x1fff) AM_READ(MRA8_ROM) | |
| 42 | AM_RANGE(0x2000, 0x23ff) AM_READ(MRA8_RAM) | |
| 43 | AM_RANGE(0x4000, 0x4000) AM_READ(AY8910_read_port_0_r) | |
| 44 | AM_RANGE(0x6000, 0x6000) AM_READ(AY8910_read_port_1_r) | |
| 45 | ADDRESS_MAP_END | |
| 23 | static UINT8 timeplt_last_irq_state; | |
| 46 | 24 | |
| 47 | ADDRESS_MAP_START( locomotn_sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 48 | AM_RANGE(0x0000, 0x1fff) AM_WRITE(MWA8_ROM) | |
| 49 | AM_RANGE(0x2000, 0x23ff) AM_WRITE(MWA8_RAM) | |
| 50 | AM_RANGE(0x3000, 0x3fff) AM_WRITE(timeplt_filter_w) | |
| 51 | AM_RANGE(0x4000, 0x4000) AM_WRITE(AY8910_write_port_0_w) | |
| 52 | AM_RANGE(0x5000, 0x5000) AM_WRITE(AY8910_control_port_0_w) | |
| 53 | AM_RANGE(0x6000, 0x6000) AM_WRITE(AY8910_write_port_1_w) | |
| 54 | AM_RANGE(0x7000, 0x7000) AM_WRITE(AY8910_control_port_1_w) | |
| 55 | ADDRESS_MAP_END | |
| 56 | 25 | |
| 26 | /************************************* | |
| 27 | * | |
| 28 | * Initialization | |
| 29 | * | |
| 30 | *************************************/ | |
| 57 | 31 | |
| 58 | ||
| 32 | ||
| 59 | 33 | { |
| 60 | soundlatch_r, | |
| 61 | timeplt_portB_r | |
| 62 | }; | |
| 34 | timeplt_last_irq_state = 0; | |
| 35 | state_save_register_global(timeplt_last_irq_state); | |
| 36 | } | |
| 63 | 37 | |
| 64 | 38 | |
| 39 | ||
| 40 | /************************************* | |
| 41 | * | |
| 42 | * Sound timer | |
| 43 | * | |
| 44 | *************************************/ | |
| 45 | ||
| 65 | 46 | /* The timer clock which feeds the upper 4 bits of */ |
| 66 | 47 | /* AY-3-8910 port A is based on the same clock */ |
| 67 | 48 | /* feeding the sound CPU Z80. It is a divide by */ |
| r1649 | r1650 | |
| 79 | 60 | /* Bit 7 comes from the QA output of the LS90 producing a sequence of */ |
| 80 | 61 | /* 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 */ |
| 81 | 62 | |
| 82 | static const int timeplt_timer[10] = | |
| 83 | { | |
| 84 | 0x00, 0x10, 0x20, 0x30, 0x40, 0x90, 0xa0, 0xb0, 0xa0, 0xd0 | |
| 85 | }; | |
| 86 | ||
| 87 | 63 | static READ8_HANDLER( timeplt_portB_r ) |
| 88 | 64 | { |
| 89 | /* need to protect from totalcycles overflow */ | |
| 90 | static int last_totalcycles = 0; | |
| 65 | static const int timeplt_timer[10] = | |
| 66 | { | |
| 67 | 0x00, 0x10, 0x20, 0x30, 0x40, 0x90, 0xa0, 0xb0, 0xa0, 0xd0 | |
| 68 | }; | |
| 69 | return timeplt_timer[(activecpu_gettotalcycles() / 512) % 10]; | |
| 70 | } | |
| 91 | 71 | |
| 92 | /* number of Z80 clock cycles to count */ | |
| 93 | static int clock; | |
| 94 | 72 | |
| 95 | int current_totalcycles; | |
| 96 | 73 | |
| 97 | current_totalcycles = activecpu_gettotalcycles(); | |
| 98 | clock = (clock + (current_totalcycles-last_totalcycles)) % 5120; | |
| 74 | /************************************* | |
| 75 | * | |
| 76 | * Filter controls | |
| 77 | * | |
| 78 | *************************************/ | |
| 99 | 79 | |
| 100 | last_totalcycles = current_totalcycles; | |
| 101 | ||
| 102 | return timeplt_timer[clock/512]; | |
| 103 | } | |
| 104 | ||
| 105 | ||
| 106 | 80 | static void filter_w(int chip, int channel, int data) |
| 107 | 81 | { |
| 108 | 82 | int C = 0; |
| r1649 | r1650 | |
| 112 | 86 | filter_rc_set_RC(3*chip + channel,FLT_RC_LOWPASS, 1000,5100,0,CAP_P(C)); |
| 113 | 87 | } |
| 114 | 88 | |
| 89 | ||
| 115 | 90 | static WRITE8_HANDLER( timeplt_filter_w ) |
| 116 | 91 | { |
| 117 | 92 | filter_w(0, 0, (offset >> 6) & 3); |
| r1649 | r1650 | |
| 123 | 98 | } |
| 124 | 99 | |
| 125 | 100 | |
| 101 | ||
| 102 | /************************************* | |
| 103 | * | |
| 104 | * External interfaces | |
| 105 | * | |
| 106 | *************************************/ | |
| 107 | ||
| 126 | 108 | WRITE8_HANDLER( timeplt_sh_irqtrigger_w ) |
| 127 | 109 | { |
| 128 | static int last; | |
| 129 | ||
| 130 | if (last == 0 && data) | |
| 110 | if (timeplt_last_irq_state == 0 && data) | |
| 131 | 111 | { |
| 132 | 112 | /* setting bit 0 low then high triggers IRQ on the sound CPU */ |
| 133 | 113 | cpunum_set_input_line_and_vector(Machine, 1,0,HOLD_LINE,0xff); |
| 134 | 114 | } |
| 135 | 115 | |
| 136 | last = data; | |
| 116 | timeplt_last_irq_state = data; | |
| 137 | 117 | } |
| 138 | 118 | |
| 119 | ||
| 120 | ||
| 121 | /************************************* | |
| 122 | * | |
| 123 | * Memory maps | |
| 124 | * | |
| 125 | *************************************/ | |
| 126 | ||
| 127 | static ADDRESS_MAP_START( timeplt_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 128 | AM_RANGE(0x0000, 0x2fff) AM_ROM | |
| 129 | AM_RANGE(0x3000, 0x33ff) AM_MIRROR(0x0c00) AM_RAM | |
| 130 | AM_RANGE(0x4000, 0x4000) AM_MIRROR(0x0fff) AM_READWRITE(AY8910_read_port_0_r, AY8910_write_port_0_w) | |
| 131 | AM_RANGE(0x5000, 0x5000) AM_MIRROR(0x0fff) AM_WRITE(AY8910_control_port_0_w) | |
| 132 | AM_RANGE(0x6000, 0x6000) AM_MIRROR(0x0fff) AM_READWRITE(AY8910_read_port_1_r, AY8910_write_port_1_w) | |
| 133 | AM_RANGE(0x7000, 0x7000) AM_MIRROR(0x0fff) AM_WRITE(AY8910_control_port_1_w) | |
| 134 | AM_RANGE(0x8000, 0xffff) AM_WRITE(timeplt_filter_w) | |
| 135 | ADDRESS_MAP_END | |
| 136 | ||
| 137 | ||
| 138 | static ADDRESS_MAP_START( locomotn_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 139 | AM_RANGE(0x0000, 0x1fff) AM_ROM | |
| 140 | AM_RANGE(0x2000, 0x23ff) AM_MIRROR(0x0c00) AM_RAM | |
| 141 | AM_RANGE(0x3000, 0x3fff) AM_WRITE(timeplt_filter_w) | |
| 142 | AM_RANGE(0x4000, 0x4000) AM_MIRROR(0x0fff) AM_READWRITE(AY8910_read_port_0_r, AY8910_write_port_0_w) | |
| 143 | AM_RANGE(0x5000, 0x5000) AM_MIRROR(0x0fff) AM_WRITE(AY8910_control_port_0_w) | |
| 144 | AM_RANGE(0x6000, 0x6000) AM_MIRROR(0x0fff) AM_READWRITE(AY8910_read_port_1_r, AY8910_write_port_1_w) | |
| 145 | AM_RANGE(0x7000, 0x7000) AM_MIRROR(0x0fff) AM_WRITE(AY8910_control_port_1_w) | |
| 146 | ADDRESS_MAP_END | |
| 147 | ||
| 148 | ||
| 149 | ||
| 150 | /************************************* | |
| 151 | * | |
| 152 | * Sound chip interfaces | |
| 153 | * | |
| 154 | *************************************/ | |
| 155 | ||
| 156 | static const struct AY8910interface timeplt_ay8910_interface = | |
| 157 | { | |
| 158 | soundlatch_r, | |
| 159 | timeplt_portB_r | |
| 160 | }; | |
| 161 | ||
| 162 | ||
| 163 | ||
| 164 | /************************************* | |
| 165 | * | |
| 166 | * Machine drivers | |
| 167 | * | |
| 168 | *************************************/ | |
| 169 | ||
| 170 | MACHINE_DRIVER_START( timeplt_sound ) | |
| 171 | ||
| 172 | /* basic machine hardware */ | |
| 173 | MDRV_CPU_ADD_TAG("tpsound",Z80,MASTER_CLOCK/8) | |
| 174 | MDRV_CPU_PROGRAM_MAP(timeplt_sound_map,0) | |
| 175 | ||
| 176 | MDRV_SOUND_START(timeplt) | |
| 177 | ||
| 178 | /* sound hardware */ | |
| 179 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 180 | ||
| 181 | MDRV_SOUND_ADD(AY8910, MASTER_CLOCK/8) | |
| 182 | MDRV_SOUND_CONFIG(timeplt_ay8910_interface) | |
| 183 | MDRV_SOUND_ROUTE(0, "filter.0.0", 0.60) | |
| 184 | MDRV_SOUND_ROUTE(1, "filter.0.1", 0.60) | |
| 185 | MDRV_SOUND_ROUTE(2, "filter.0.2", 0.60) | |
| 186 | ||
| 187 | MDRV_SOUND_ADD(AY8910, MASTER_CLOCK/8) | |
| 188 | MDRV_SOUND_ROUTE(0, "filter.1.0", 0.60) | |
| 189 | MDRV_SOUND_ROUTE(1, "filter.1.1", 0.60) | |
| 190 | MDRV_SOUND_ROUTE(2, "filter.1.2", 0.60) | |
| 191 | ||
| 192 | MDRV_SOUND_ADD_TAG("filter.0.0", FILTER_RC, 0) | |
| 193 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 194 | MDRV_SOUND_ADD_TAG("filter.0.1", FILTER_RC, 0) | |
| 195 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 196 | MDRV_SOUND_ADD_TAG("filter.0.2", FILTER_RC, 0) | |
| 197 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 198 | ||
| 199 | MDRV_SOUND_ADD_TAG("filter.1.0", FILTER_RC, 0) | |
| 200 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 201 | MDRV_SOUND_ADD_TAG("filter.1.1", FILTER_RC, 0) | |
| 202 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 203 | MDRV_SOUND_ADD_TAG("filter.1.2", FILTER_RC, 0) | |
| 204 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 205 | MACHINE_DRIVER_END | |
| 206 | ||
| 207 | ||
| 208 | MACHINE_DRIVER_START( locomotn_sound ) | |
| 209 | MDRV_IMPORT_FROM(timeplt_sound) | |
| 210 | ||
| 211 | /* basic machine hardware */ | |
| 212 | MDRV_CPU_MODIFY("tpsound") | |
| 213 | MDRV_CPU_PROGRAM_MAP(locomotn_sound_map,0) | |
| 214 | MACHINE_DRIVER_END |
| r1649 | r1650 | |
|---|---|---|
| 15 | 15 | ***************************************************************************/ |
| 16 | 16 | |
| 17 | 17 | #include "driver.h" |
| 18 | #include "deprecat.h" | |
| 18 | 19 | #include "cpu/ccpu/ccpu.h" |
| 19 | 20 | #include "cpu/z80/z80daisy.h" |
| 20 | 21 | #include "machine/z80ctc.h" |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "machine/atarigen.h" |
| 9 | 10 | #include "sound/dac.h" |
| 10 | 11 | #include "includes/cyberbal.h" |
| 11 | #include <math.h> | |
| 12 | 12 | |
| 13 | 13 | |
| 14 | 14 | static UINT8 *bank_base; |
| r1649 | r1650 | |
|---|---|---|
| 1 | ADDRESS_MAP_EXTERN(timeplt_sound_readmem); | |
| 2 | ADDRESS_MAP_EXTERN(timeplt_sound_writemem); | |
| 3 | ADDRESS_MAP_EXTERN(locomotn_sound_readmem); | |
| 4 | ADDRESS_MAP_EXTERN(locomotn_sound_writemem); | |
| 5 | extern const struct AY8910interface timeplt_ay8910_interface; | |
| 6 | 1 | WRITE8_HANDLER( timeplt_sh_irqtrigger_w ); |
| 2 | ||
| 3 | MACHINE_DRIVER_EXTERN( timeplt_sound ); | |
| 4 | MACHINE_DRIVER_EXTERN( locomotn_sound ); |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | 2 | #include "streams.h" |
| 3 | #include "deprecat.h" | |
| 3 | 4 | #include "sound/samples.h" |
| 4 | 5 | #include "includes/galaxian.h" |
| 5 | 6 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "sound/vlm5030.h" |
| 3 | 4 | #include "sound/msm5205.h" |
| 4 | 5 | #include "sound/sn76496.h" |
| r1649 | r1650 | |
| 22 | 23 | |
| 23 | 24 | READ8_HANDLER( trackfld_sh_timer_r ) |
| 24 | 25 | { |
| 25 | | |
| 26 | UINT32 clock = activecpu_gettotalcycles() / TIMER_RATE; | |
| 26 | 27 | |
| 27 | 28 | return clock & 0xF; |
| 28 | 29 | } |
| r1649 | r1650 | |
| 55 | 56 | |
| 56 | 57 | READ8_HANDLER( hyperspt_sh_timer_r ) |
| 57 | 58 | { |
| 58 | | |
| 59 | UINT32 clock = activecpu_gettotalcycles() / TIMER_RATE; | |
| 59 | 60 | |
| 60 | 61 | return (clock & 0x3) | (VLM5030_BSY()? 0x04 : 0); |
| 61 | 62 | } |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | *************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "turbo.h" |
| 9 | 10 | #include "sound/samples.h" |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 31 | 31 | ****************************************************************************/ |
| 32 | 32 | |
| 33 | 33 | #include "driver.h" |
| 34 | #include "deprecat.h" | |
| 34 | 35 | #include "cpu/m6502/m6502.h" |
| 35 | 36 | #include "sound/5220intf.h" |
| 36 | 37 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | |
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | #include "deprecat.h" | |
| 13 | 14 | #include "cpu/tms32031/tms32031.h" |
| 14 | 15 | #include "sound/dmadac.h" |
| 15 | 16 | #include "cage.h" |
| r1649 | r1650 | |
|---|---|---|
| 49 | 49 | ***************************************************************************/ |
| 50 | 50 | |
| 51 | 51 | #include "driver.h" |
| 52 | #include "deprecat.h" | |
| 52 | 53 | #include "namco54.h" |
| 53 | 54 | #include "cpu/mb88xx/mb88xx.h" |
| 54 | 55 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "machine/z80pio.h" |
| 3 | 4 | #include "machine/z80ctc.h" |
| 4 | 5 | #include "sound/samples.h" |
| 5 | #include <math.h> | |
| 6 | 6 | |
| 7 | 7 | |
| 8 | 8 | /* z80 pio */ |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | 11 | #include "streams.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "exidy440.h" |
| 13 | #include <math.h> | |
| 14 | 14 | |
| 15 | 15 | |
| 16 | #define MAKE_WAVES 0 | |
| 17 | 16 | #define SOUND_LOG 0 |
| 18 | 17 | #define FADE_TO_ZERO 1 |
| 19 | 18 | |
| r1649 | r1650 | |
| 70 | 69 | |
| 71 | 70 | |
| 72 | 71 | /* globals */ |
| 73 | UINT8 *exidy440_m6844_data; | |
| 74 | UINT8 *exidy440_sound_banks; | |
| 75 | UINT8 *exidy440_sound_volume; | |
| 76 | 72 | UINT8 exidy440_sound_command; |
| 77 | 73 | UINT8 exidy440_sound_command_ack; |
| 78 | 74 | |
| 79 | 75 | /* local allocated storage */ |
| 76 | static UINT8 *sound_banks; | |
| 77 | static UINT8 *m6844_data; | |
| 78 | static UINT8 *sound_volume; | |
| 80 | 79 | static INT32 *mixer_buffer_left; |
| 81 | 80 | static INT32 *mixer_buffer_right; |
| 82 | 81 | static sound_cache_entry *sound_cache; |
| r1649 | r1650 | |
| 121 | 120 | static void fir_filter(INT32 *input, INT16 *output, int count); |
| 122 | 121 | |
| 123 | 122 | |
| 124 | /* debugging */ | |
| 125 | #if MAKE_WAVES | |
| 126 | 123 | |
| 127 | #ifdef LSB_FIRST | |
| 128 | #define intelShort(x) (x) | |
| 129 | #define intelLong(x) (x) | |
| 130 | #else | |
| 131 | #define intelShort(x) (((x) << 8) | ((x) >> 8)) | |
| 132 | #define intelLong(x) ((((x) << 24) | (((UINT32) (x)) >> 24) | (( (x) & 0x0000ff00) << 8) | (( (x) & 0x00ff0000) >> 8))) | |
| 133 | #endif | |
| 134 | ||
| 135 | static FILE *wavfile; | |
| 136 | static int wavlength; | |
| 137 | ||
| 138 | static void write_wav_header(int frequency); | |
| 139 | static void finish_wav_file(void); | |
| 140 | ||
| 141 | #endif | |
| 142 | ||
| 143 | ||
| 144 | ||
| 145 | 124 | /************************************* |
| 146 | 125 | * |
| 147 | 126 | * Initialize the sound system |
| 148 | 127 | * |
| 149 | 128 | *************************************/ |
| 150 | 129 | |
| 151 | void *exidy440_sh_start(int clock, const struct CustomSound_interface *config) | |
| 130 | static void *exidy440_sh_start(int clock, const struct CustomSound_interface *config) | |
| 152 | 131 | { |
| 153 | 132 | int i, length; |
| 154 | 133 | |
| r1649 | r1650 | |
| 206 | 185 | * |
| 207 | 186 | *************************************/ |
| 208 | 187 | |
| 209 | void exidy440_sh_stop(void *token) | |
| 188 | static void exidy440_sh_stop(void *token) | |
| 210 | 189 | { |
| 211 | 190 | if (SOUND_LOG && debuglog) |
| 212 | 191 | fclose(debuglog); |
| r1649 | r1650 | |
| 316 | 295 | samples = (left > channel->remaining) ? channel->remaining : left; |
| 317 | 296 | |
| 318 | 297 | /* get a pointer to the sample data and copy to the left */ |
| 319 | volume = | |
| 298 | volume = | |
| 320 | 299 | if (volume) |
| 321 | 300 | add_and_scale_samples(ch, mixer_buffer_left, samples, volume); |
| 322 | 301 | |
| 323 | 302 | /* get a pointer to the sample data and copy to the left */ |
| 324 | volume = | |
| 303 | volume = | |
| 325 | 304 | if (volume) |
| 326 | 305 | add_and_scale_samples(ch, mixer_buffer_right, samples, volume); |
| 327 | 306 | |
| r1649 | r1650 | |
| 354 | 333 | * |
| 355 | 334 | *************************************/ |
| 356 | 335 | |
| 357 | READ8_HANDLER( | |
| 336 | static READ8_HANDLER( | |
| 358 | 337 | { |
| 359 | 338 | /* clear the FIRQ that got us here and acknowledge the read to the main CPU */ |
| 360 | 339 | cpunum_set_input_line(Machine, 1, 1, CLEAR_LINE); |
| r1649 | r1650 | |
| 371 | 350 | * |
| 372 | 351 | *************************************/ |
| 373 | 352 | |
| 374 | WRITE8_HANDLER( | |
| 353 | static WRITE8_HANDLER( | |
| 375 | 354 | { |
| 376 | 355 | if (SOUND_LOG && debuglog) |
| 377 | 356 | fprintf(debuglog, "Volume %02X=%02X\n", offset, data); |
| r1649 | r1650 | |
| 380 | 359 | stream_update(stream); |
| 381 | 360 | |
| 382 | 361 | /* set the new volume */ |
| 383 | | |
| 362 | | |
| 384 | 363 | } |
| 385 | 364 | |
| 386 | 365 | |
| r1649 | r1650 | |
| 391 | 370 | * |
| 392 | 371 | *************************************/ |
| 393 | 372 | |
| 394 | WRITE8_HANDLER( | |
| 373 | static WRITE8_HANDLER( | |
| 395 | 374 | { |
| 396 | 375 | cpunum_set_input_line(Machine, 1, 0, CLEAR_LINE); |
| 397 | 376 | } |
| r1649 | r1650 | |
| 411 | 390 | } |
| 412 | 391 | |
| 413 | 392 | |
| 414 | void m6844_finished(int ch) | |
| 393 | static void m6844_finished(int ch) | |
| 415 | 394 | { |
| 416 | 395 | m6844_channel_data *channel = &m6844_channel[ch]; |
| 417 | 396 | |
| r1649 | r1650 | |
| 435 | 414 | * |
| 436 | 415 | *************************************/ |
| 437 | 416 | |
| 438 | READ8_HANDLER( | |
| 417 | static READ8_HANDLER( | |
| 439 | 418 | { |
| 440 | 419 | int result = 0; |
| 441 | 420 | |
| r1649 | r1650 | |
| 516 | 495 | } |
| 517 | 496 | |
| 518 | 497 | |
| 519 | WRITE8_HANDLER( | |
| 498 | static WRITE8_HANDLER( | |
| 520 | 499 | { |
| 521 | 500 | int i; |
| 522 | 501 | |
| r1649 | r1650 | |
| 623 | 602 | * |
| 624 | 603 | *************************************/ |
| 625 | 604 | |
| 626 | void reset_sound_cache(void) | |
| 605 | static void reset_sound_cache(void) | |
| 627 | 606 | { |
| 628 | 607 | sound_cache_end = sound_cache; |
| 629 | 608 | } |
| 630 | 609 | |
| 631 | 610 | |
| 632 | INT16 *add_to_sound_cache(UINT8 *input, int address, int length, int bits, int frequency) | |
| 611 | static INT16 *add_to_sound_cache(UINT8 *input, int address, int length, int bits, int frequency) | |
| 633 | 612 | { |
| 634 | 613 | sound_cache_entry *current = sound_cache_end; |
| 635 | 614 | |
| r1649 | r1650 | |
| 656 | 635 | } |
| 657 | 636 | |
| 658 | 637 | |
| 659 | INT16 *find_or_add_to_sound_cache(int address, int length, int bits, int frequency) | |
| 638 | static INT16 *find_or_add_to_sound_cache(int address, int length, int bits, int frequency) | |
| 660 | 639 | { |
| 661 | 640 | sound_cache_entry *current; |
| 662 | 641 | |
| r1649 | r1650 | |
| 675 | 654 | * |
| 676 | 655 | *************************************/ |
| 677 | 656 | |
| 678 | void play_cvsd(int ch) | |
| 657 | static void play_cvsd(int ch) | |
| 679 | 658 | { |
| 680 | 659 | sound_channel_data *channel = &sound_channel[ch]; |
| 681 | 660 | int address = m6844_channel[ch].address; |
| r1649 | r1650 | |
| 683 | 662 | INT16 *base; |
| 684 | 663 | |
| 685 | 664 | /* add the bank number to the address */ |
| 686 | if ( | |
| 665 | if ( | |
| 687 | 666 | address += 0x00000; |
| 688 | else if ( | |
| 667 | else if ( | |
| 689 | 668 | address += 0x08000; |
| 690 | else if ( | |
| 669 | else if ( | |
| 691 | 670 | address += 0x10000; |
| 692 | else if ( | |
| 671 | else if ( | |
| 693 | 672 | address += 0x18000; |
| 694 | 673 | |
| 695 | 674 | /* compute the base address in the converted samples array */ |
| r1649 | r1650 | |
| 709 | 688 | |
| 710 | 689 | if (SOUND_LOG && debuglog) |
| 711 | 690 | fprintf(debuglog, "Sound channel %d play at %02X,%04X, length = %04X, volume = %02X/%02X\n", |
| 712 | ch, exidy440_sound_banks[ch], m6844_channel[ch].address, | |
| 713 | m6844_channel[ch].counter, exidy440_sound_volume[ch * 2], exidy440_sound_volume[ch * 2 + 1]); | |
| 691 | ch, sound_banks[ch], m6844_channel[ch].address, | |
| 692 | m6844_channel[ch].counter, sound_volume[ch * 2], sound_volume[ch * 2 + 1]); | |
| 714 | 693 | |
| 715 | 694 | /* set the pointer and count */ |
| 716 | 695 | channel->base = base; |
| r1649 | r1650 | |
| 722 | 701 | } |
| 723 | 702 | |
| 724 | 703 | |
| 725 | void stop_cvsd(int ch) | |
| 704 | static void stop_cvsd(int ch) | |
| 726 | 705 | { |
| 727 | 706 | /* the DMA channel is marked inactive; that will kill the audio */ |
| 728 | 707 | sound_channel[ch].remaining = 0; |
| r1649 | r1650 | |
| 740 | 719 | * |
| 741 | 720 | *************************************/ |
| 742 | 721 | |
| 743 | void fir_filter(INT32 *input, INT16 *output, int count) | |
| 722 | static void fir_filter(INT32 *input, INT16 *output, int count) | |
| 744 | 723 | { |
| 745 | 724 | while (count--) |
| 746 | 725 | { |
| r1649 | r1650 | |
| 775 | 754 | * |
| 776 | 755 | *************************************/ |
| 777 | 756 | |
| 778 | void decode_and_filter_cvsd(UINT8 *input, int bytes, int maskbits, int frequency, INT16 *output) | |
| 757 | static void decode_and_filter_cvsd(UINT8 *input, int bytes, int maskbits, int frequency, INT16 *output) | |
| 779 | 758 | { |
| 780 | 759 | INT32 buffer[SAMPLE_BUFFER_LENGTH + FIR_HISTORY_LENGTH]; |
| 781 | 760 | int total_samples = bytes * 8; |
| r1649 | r1650 | |
| 785 | 764 | int steps; |
| 786 | 765 | int chunk_start; |
| 787 | 766 | |
| 788 | #if MAKE_WAVES | |
| 789 | { | |
| 790 | static int file_index; | |
| 791 | char file_name[100]; | |
| 792 | sprintf(file_name, "cvsd%03d.wav", file_index++); | |
| 793 | wavfile = fopen(file_name, "wb"); | |
| 794 | write_wav_header(frequency); | |
| 795 | } | |
| 796 | #endif | |
| 797 | ||
| 798 | 767 | /* compute the charge, decay, and leak constants */ |
| 799 | 768 | charge = pow(exp(-1), 1.0 / (FILTER_CHARGE_TC * (double)frequency)); |
| 800 | 769 | decay = pow(exp(-1), 1.0 / (FILTER_DECAY_TC * (double)frequency)); |
| r1649 | r1650 | |
| 883 | 852 | } |
| 884 | 853 | } |
| 885 | 854 | |
| 886 | #if MAKE_WAVES | |
| 887 | for (ind = 0; ind < chunk_bytes * 8; ind++) | |
| 888 | { | |
| 889 | int sample = buffer[FIR_HISTORY_LENGTH + ind]; | |
| 890 | INT16 temp; | |
| 891 | if (sample > 32767) sample = 32767; | |
| 892 | else if (sample < -32768) sample = -32768; | |
| 893 | temp = intelShort(sample); | |
| 894 | fwrite(&temp, 1, 2, wavfile); | |
| 895 | } | |
| 896 | wavlength += chunk_bytes * 8 * 2; | |
| 897 | #endif | |
| 898 | ||
| 899 | 855 | /* all done with this chunk, run the filter on it */ |
| 900 | 856 | fir_filter(&buffer[FIR_HISTORY_LENGTH], &output[chunk_start], chunk_bytes * 8); |
| 901 | 857 | |
| r1649 | r1650 | |
| 903 | 859 | memcpy(&buffer[0], &buffer[SAMPLE_BUFFER_LENGTH], FIR_HISTORY_LENGTH * sizeof(INT32)); |
| 904 | 860 | } |
| 905 | 861 | |
| 906 | #if MAKE_WAVES | |
| 907 | finish_wav_file(); | |
| 908 | fclose(wavfile); | |
| 909 | #endif | |
| 910 | ||
| 911 | 862 | /* make sure the volume goes smoothly to 0 over the last 512 samples */ |
| 912 | 863 | if (FADE_TO_ZERO) |
| 913 | 864 | { |
| r1649 | r1650 | |
| 927 | 878 | |
| 928 | 879 | /************************************* |
| 929 | 880 | * |
| 930 | * | |
| 881 | * Memory handlers | |
| 931 | 882 | * |
| 932 | 883 | *************************************/ |
| 933 | 884 | |
| 934 | #if MAKE_WAVES | |
| 885 | static ADDRESS_MAP_START( exidy440_audio_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 886 | AM_RANGE(0x8000, 0x8016) AM_READWRITE(m6844_r, m6844_w) AM_BASE(&m6844_data) | |
| 887 | AM_RANGE(0x8400, 0x8407) AM_READWRITE(MRA8_RAM, sound_volume_w) AM_BASE(&sound_volume) | |
| 888 | AM_RANGE(0x8800, 0x8800) AM_READ(sound_command_r) | |
| 889 | AM_RANGE(0x9400, 0x9403) AM_WRITE(MWA8_RAM) AM_BASE(&sound_banks) | |
| 890 | AM_RANGE(0x9800, 0x9800) AM_READWRITE(MRA8_NOP, sound_interrupt_clear_w) | |
| 891 | AM_RANGE(0xa000, 0xbfff) AM_RAM | |
| 892 | AM_RANGE(0xe000, 0xffff) AM_ROM | |
| 893 | ADDRESS_MAP_END | |
| 935 | 894 | |
| 936 | static void write_wav_header(int frequency) | |
| 937 | { | |
| 938 | UINT32 temp32; | |
| 939 | UINT16 temp16; | |
| 940 | 895 | |
| 941 | fwrite("RIFF", 1, 4, wavfile); | |
| 942 | temp32 = intelLong(0); | |
| 943 | fwrite(&temp32, 1, 4, wavfile); | |
| 944 | fwrite("WAVE", 1, 4, wavfile); | |
| 945 | 896 | |
| 946 | fwrite("fmt ", 1, 4, wavfile); | |
| 947 | temp32 = intelLong(16); | |
| 948 | fwrite(&temp32, 1, 4, wavfile); | |
| 949 | temp16 = intelShort(1); /* format: PCM */ | |
| 950 | fwrite(&temp16, 1, 2, wavfile); | |
| 951 | temp16 = intelShort(1); /* channels: 1 */ | |
| 952 | fwrite(&temp16, 1, 2, wavfile); | |
| 953 | temp32 = intelLong(frequency); /* sample rate */ | |
| 954 | fwrite(&temp32, 1, 4, wavfile); | |
| 955 | temp32 = intelLong(frequency * 2); /* bytes/second */ | |
| 956 | fwrite(&temp32, 1, 4, wavfile); | |
| 957 | temp16 = intelShort(2); /* block align */ | |
| 958 | fwrite(&temp16, 1, 2, wavfile); | |
| 959 | temp16 = intelShort(16); /* bits/sample */ | |
| 960 | fwrite(&temp16, 1, 2, wavfile); | |
| 897 | /************************************* | |
| 898 | * | |
| 899 | * Audio definitions | |
| 900 | * | |
| 901 | *************************************/ | |
| 961 | 902 | |
| 962 | fwrite("data", 1, 4, wavfile); | |
| 963 | temp32 = intelLong(0); | |
| 964 | fwrite(&temp32, 1, 4, wavfile); | |
| 965 | } | |
| 903 | static const struct CustomSound_interface custom_interface = | |
| 904 | { | |
| 905 | exidy440_sh_start, | |
| 906 | exidy440_sh_stop | |
| 907 | }; | |
| 966 | 908 | |
| 967 | 909 | |
| 968 | static void finish_wav_file(void) | |
| 969 | { | |
| 970 | UINT32 temp32; | |
| 971 | 910 | |
| 972 | fseek(wavfile, 4, SEEK_SET); | |
| 973 | temp32 = intelLong(wavlength + 4 + 8 + 16 + 8); | |
| 974 | fwrite(&temp32, 1, 4, wavfile); | |
| 911 | /************************************* | |
| 912 | * | |
| 913 | * Machine driver | |
| 914 | * | |
| 915 | *************************************/ | |
| 975 | 916 | |
| 976 | fseek(wavfile, 40, SEEK_SET); | |
| 977 | temp32 = intelLong(wavlength); | |
| 978 | fwrite(&temp32, 1, 4, wavfile); | |
| 979 | } | |
| 917 | MACHINE_DRIVER_START( exidy440_audio ) | |
| 980 | 918 | |
| 981 | #endif | |
| 919 | MDRV_CPU_ADD(M6809,EXIDY440_MASTER_CLOCK/4/4) | |
| 920 | MDRV_CPU_PROGRAM_MAP(exidy440_audio_map,0) | |
| 921 | MDRV_CPU_VBLANK_INT(irq0_line_assert,1) | |
| 922 | ||
| 923 | MDRV_SPEAKER_STANDARD_STEREO("left", "right") | |
| 924 | ||
| 925 | MDRV_SOUND_ADD(CUSTOM, EXIDY440_MASTER_CLOCK/256) | |
| 926 | MDRV_SOUND_CONFIG(custom_interface) | |
| 927 | MDRV_SOUND_ROUTE(0, "left", 1.0) | |
| 928 | MDRV_SOUND_ROUTE(1, "right", 1.0) | |
| 929 | MACHINE_DRIVER_END |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | |
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | #include "driver.h" |
| 7 | #include "streams.h" | |
| 8 | #include "deprecat.h" | |
| 7 | 9 | #include "includes/tx1.h" |
| 8 | 10 | #include "video/resnet.h" |
| 9 | 11 | #include "sound/custom.h" |
| 10 | #include "streams.h" | |
| 11 | 12 | |
| 12 | 13 | /************************************* |
| 13 | 14 | * |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "audio/mcr.h" |
| 11 | 12 | #include "audio/williams.h" |
| 12 | 13 | #include "cpu/m6800/m6800.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | sega | |
| 3 | segasnd.c | |
| 4 | 4 | |
| 5 | 5 | Sound boards for early Sega G-80 based games. |
| 6 | 6 | |
| r1649 | r1650 | |
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | 13 | #include "streams.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "segag80v.h" |
| 15 | 16 | #include "cpu/i8039/i8039.h" |
| 16 | 17 | #include "sound/sp0250.h" |
| 17 | 18 | #include "segasnd.h" |
| 18 | #include <math.h> | |
| 19 | 19 | |
| 20 | 20 | #define VERBOSE 0 |
| 21 | 21 | #define LOG(x) do { if (VERBOSE) logerror x; } while (0) |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "cpu/z80/z80.h" |
| 9 | 10 | #include "aztarac.h" |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "cpu/z80/z80.h" |
| 3 | 4 | #include "taitosnd.h" |
| 4 | 5 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | audio/mcr. | |
| 3 | audio/mcr.h | |
| 4 | 4 | |
| 5 | 5 | Functions to emulate general the various MCR sound cards. |
| 6 | 6 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "irem.h" |
| 3 | 4 | #include "cpu/m6800/m6800.h" |
| 4 | 5 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
| 91 | 92 | |
| 92 | 93 | static WRITE8_HANDLER( irem_adpcm_w ) |
| 93 | 94 | { |
| 94 | MSM5205_data_w(offset,data); | |
| 95 | if (offset & 1) | |
| 96 | MSM5205_data_w(0, data); | |
| 97 | if (offset & 2) | |
| 98 | MSM5205_data_w(1, data); | |
| 95 | 99 | } |
| 96 | 100 | |
| 97 | 101 | static void irem_adpcm_int(int data) |
| r1649 | r1650 | |
| 141 | 145 | |
| 142 | 146 | |
| 143 | 147 | |
| 144 | static ADDRESS_MAP_START( irem_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 145 | AM_RANGE(0x0800, 0x0800) AM_WRITENOP | |
| 146 | AM_RANGE(0x0801, 0x0802) AM_WRITE(irem_adpcm_w) | |
| 147 | AM_RANGE(0x9000, 0x9000) AM_WRITE(irem_sound_irq_ack_w) | |
| 148 | /* complete address map verified from Moon Patrol/10 Yard Fight schematics */ | |
| 149 | /* large map uses 8k ROMs, small map uses 4k ROMs; this is selected via a jumper */ | |
| 150 | static ADDRESS_MAP_START( m52_small_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 151 | ADDRESS_MAP_FLAGS( AMEF_ABITS(15) ) | |
| 152 | AM_RANGE(0x0000, 0x0fff) AM_WRITE(irem_adpcm_w) | |
| 153 | AM_RANGE(0x1000, 0x1fff) AM_WRITE(irem_sound_irq_ack_w) | |
| 154 | AM_RANGE(0x2000, 0x7fff) AM_ROM | |
| 155 | ADDRESS_MAP_END | |
| 156 | ||
| 157 | static ADDRESS_MAP_START( m52_large_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 158 | AM_RANGE(0x0000, 0x1fff) AM_WRITE(irem_adpcm_w) | |
| 159 | AM_RANGE(0x2000, 0x3fff) AM_WRITE(irem_sound_irq_ack_w) | |
| 148 | 160 | AM_RANGE(0x4000, 0xffff) AM_ROM |
| 149 | 161 | ADDRESS_MAP_END |
| 150 | 162 | |
| 163 | ||
| 164 | /* complete address map verified from Kid Niki schematics */ | |
| 165 | static ADDRESS_MAP_START( m62_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 166 | AM_RANGE(0x0800, 0x0800) AM_MIRROR(0xf7fc) AM_WRITE(irem_sound_irq_ack_w) | |
| 167 | AM_RANGE(0x0801, 0x0802) AM_MIRROR(0xf7fc) AM_WRITE(irem_adpcm_w) | |
| 168 | AM_RANGE(0x4000, 0xffff) AM_ROM | |
| 169 | ADDRESS_MAP_END | |
| 170 | ||
| 171 | ||
| 151 | 172 | static ADDRESS_MAP_START( irem_sound_portmap, ADDRESS_SPACE_IO, 8 ) |
| 152 | 173 | AM_RANGE(M6803_PORT1, M6803_PORT1) AM_READWRITE(irem_port1_r, irem_port1_w) |
| 153 | 174 | AM_RANGE(M6803_PORT2, M6803_PORT2) AM_READWRITE(irem_port2_r, irem_port2_w) |
| 154 | 175 | ADDRESS_MAP_END |
| 155 | 176 | |
| 156 | 177 | |
| 157 | MACHINE_DRIVER_START( irem_audio ) | |
| 178 | MACHINE_DRIVER_START( irem_audio_base ) | |
| 158 | 179 | |
| 159 | 180 | MDRV_SOUND_START(irem_audio) |
| 160 | 181 | |
| 161 | 182 | /* basic machine hardware */ |
| 162 | MDRV_CPU_ADD(M6803, XTAL_3_579545MHz) /* verified on pcb */ | |
| 163 | MDRV_CPU_PROGRAM_MAP(irem_sound_map,0) | |
| 183 | MDRV_CPU_ADD_TAG("iremsound", M6803, XTAL_3_579545MHz) /* verified on pcb */ | |
| 164 | 184 | MDRV_CPU_IO_MAP(irem_sound_portmap,0) |
| 165 | 185 | |
| 166 | 186 | /* sound hardware */ |
| r1649 | r1650 | |
| 182 | 202 | MDRV_SOUND_CONFIG(irem_msm5205_interface_2) |
| 183 | 203 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 184 | 204 | MACHINE_DRIVER_END |
| 205 | ||
| 206 | ||
| 207 | MACHINE_DRIVER_START( m52_small_audio ) | |
| 208 | MDRV_IMPORT_FROM(irem_audio_base) | |
| 209 | ||
| 210 | /* basic machine hardware */ | |
| 211 | MDRV_CPU_MODIFY("iremsound") | |
| 212 | MDRV_CPU_PROGRAM_MAP(m52_small_sound_map,0) | |
| 213 | MACHINE_DRIVER_END | |
| 214 | ||
| 215 | ||
| 216 | MACHINE_DRIVER_START( m52_large_audio ) /* 10 yard fight */ | |
| 217 | MDRV_IMPORT_FROM(irem_audio_base) | |
| 218 | ||
| 219 | /* basic machine hardware */ | |
| 220 | MDRV_CPU_MODIFY("iremsound") | |
| 221 | MDRV_CPU_PROGRAM_MAP(m52_large_sound_map,0) | |
| 222 | MACHINE_DRIVER_END | |
| 223 | ||
| 224 | ||
| 225 | MACHINE_DRIVER_START( m62_audio ) | |
| 226 | MDRV_IMPORT_FROM(irem_audio_base) | |
| 227 | ||
| 228 | /* basic machine hardware */ | |
| 229 | MDRV_CPU_MODIFY("iremsound") | |
| 230 | MDRV_CPU_PROGRAM_MAP(m62_sound_map,0) | |
| 231 | MACHINE_DRIVER_END | |
| 232 | ||
| 233 |
| r1649 | r1650 | |
|---|---|---|
| 79 | 79 | |
| 80 | 80 | #include "driver.h" |
| 81 | 81 | #include "streams.h" |
| 82 | #include "deprecat.h" | |
| 82 | 83 | #include "cpu/i86/i186intf.h" |
| 83 | 84 | #include "cpu/z80/z80.h" |
| 84 | 85 | #include "leland.h" |
| r1649 | r1650 | |
|---|---|---|
| 37 | 37 | /*****************************************************************************/ |
| 38 | 38 | |
| 39 | 39 | #include "driver.h" |
| 40 | #include "deprecat.h" | |
| 40 | 41 | #include "cpu/i8039/i8039.h" |
| 41 | 42 | #include "sound/ay8910.h" |
| 42 | 43 | #include "sound/samples.h" |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | |
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | |
| 7 | MACHINE_DRIVER_EXTERN( irem_audio ); | |
| 7 | MACHINE_DRIVER_EXTERN( m52_small_audio ); | |
| 8 | MACHINE_DRIVER_EXTERN( m52_large_audio ); | |
| 9 | MACHINE_DRIVER_EXTERN( m62_audio ); | |
| 8 | 10 | |
| 9 | 11 | WRITE8_HANDLER( irem_sound_cmd_w ); |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "cpu/i8039/i8039.h" |
| 3 | 4 | #include "cpu/m6502/m6502.h" |
| 4 | 5 | #include "sound/nes_apu.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "sound/es5506.h" |
| 3 | 4 | #include "includes/taito_f3.h" |
| 4 | 5 | #include "taito_en.h" |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "cpu/tms32010/tms32010.h" |
| 9 | 10 | #include "sound/dac.h" |
| 10 | 11 | #include "machine/atarigen.h" |
| r1649 | r1650 | |
| 39 | 40 | static UINT32 romsize; |
| 40 | 41 | static UINT16 *comram; |
| 41 | 42 | |
| 42 | static UINT | |
| 43 | static UINT64 last_bio_cycles; | |
| 43 | 44 | |
| 44 | 45 | |
| 45 | 46 | |
| r1649 | r1650 | |
| 308 | 309 | |
| 309 | 310 | READ16_HANDLER( hdsnddsp_get_bio ) |
| 310 | 311 | { |
| 311 | UINT | |
| 312 | UINT64 cycles_since_last_bio = activecpu_gettotalcycles() - last_bio_cycles; | |
| 312 | 313 | INT32 cycles_until_bio = CYCLES_PER_BIO - cycles_since_last_bio; |
| 313 | 314 | |
| 314 | 315 | /* if we're not at the next BIO yet, advance us there */ |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /************************************************************************* |
| 2 | 2 | |
| 3 | audio\ | |
| 3 | audio\firet | |
| 4 | 4 | |
| 5 | 5 | *************************************************************************/ |
| 6 | 6 |
| r1649 | r1650 | |
|---|---|---|
| 34 | 34 | |
| 35 | 35 | #include "driver.h" |
| 36 | 36 | #include "streams.h" |
| 37 | #include "deprecat.h" | |
| 37 | 38 | #include "audio/seibu.h" |
| 38 | 39 | #include "sound/3812intf.h" |
| 39 | 40 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | #include "driver.h" |
| 8 | 8 | #include "streams.h" |
| 9 | 9 | #include "gridlee.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "sound/custom.h" |
| 11 | 12 | #include "sound/samples.h" |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 27 | 27 | */ |
| 28 | 28 | |
| 29 | 29 | #include "driver.h" |
| 30 | #include "deprecat.h" | |
| 30 | 31 | #include "audio/namcoc7x.h" |
| 31 | 32 | |
| 32 | 33 | static UINT16 *namcoc7x_mcuram; |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | 11 | #include "streams.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "cpu/i8039/i8039.h" |
| 13 | 14 | #include "segag80r.h" |
| 14 | 15 | #include "machine/8255ppi.h" |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ****************************************************************************/ |
| 9 | 9 | #include "driver.h" |
| 10 | 10 | #include "streams.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "sound/custom.h" |
| 12 | 13 | #include "sound/tms36xx.h" |
| 13 | 14 | #include "includes/phoenix.h" |
| r1649 | r1650 | |
|---|---|---|
| 23 | 23 | ****************************************************************************/ |
| 24 | 24 | |
| 25 | 25 | #include "driver.h" |
| 26 | #include "deprecat.h" | |
| 26 | 27 | #include "machine/6821pia.h" |
| 27 | 28 | #include "cpu/m6809/m6809.h" |
| 28 | 29 | #include "williams.h" |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | ***************************************************************************/ |
| 13 | 13 | |
| 14 | 14 | #include "driver.h" |
| 15 | #include "deprecat.h" | |
| 15 | 16 | #include "cpu/z80/z80.h" |
| 16 | 17 | #include "machine/7474.h" |
| 17 | 18 | #include "sound/flt_rc.h" |
| r1649 | r1650 | |
| 46 | 47 | |
| 47 | 48 | READ8_HANDLER( scramble_portB_r ) |
| 48 | 49 | { |
| 49 | /* need to protect from totalcycles overflow */ | |
| 50 | static int last_totalcycles = 0; | |
| 51 | ||
| 52 | /* number of Z80 clock cycles to count */ | |
| 53 | static int clock; | |
| 54 | ||
| 55 | int current_totalcycles; | |
| 56 | ||
| 57 | current_totalcycles = activecpu_gettotalcycles(); | |
| 58 | clock = (clock + (current_totalcycles-last_totalcycles)) % 5120; | |
| 59 | ||
| 60 | last_totalcycles = current_totalcycles; | |
| 61 | ||
| 62 | return scramble_timer[clock/512]; | |
| 50 | return scramble_timer[(activecpu_gettotalcycles()/512) % 10]; | |
| 63 | 51 | } |
| 64 | 52 | |
| 65 | 53 | |
| r1649 | r1650 | |
| 88 | 76 | |
| 89 | 77 | READ8_HANDLER( frogger_portB_r ) |
| 90 | 78 | { |
| 91 | /* need to protect from totalcycles overflow */ | |
| 92 | static int last_totalcycles = 0; | |
| 93 | ||
| 94 | /* number of Z80 clock cycles to count */ | |
| 95 | static int clock; | |
| 96 | ||
| 97 | int current_totalcycles; | |
| 98 | ||
| 99 | current_totalcycles = activecpu_gettotalcycles(); | |
| 100 | clock = (clock + (current_totalcycles-last_totalcycles)) % 5120; | |
| 101 | ||
| 102 | last_totalcycles = current_totalcycles; | |
| 103 | ||
| 104 | return frogger_timer[clock/512]; | |
| 79 | return frogger_timer[(activecpu_gettotalcycles()/512) % 10]; | |
| 105 | 80 | } |
| 106 | 81 | |
| 107 | 82 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | // system 16 - 7751 emulation, based on monster bash code. |
| 2 | 2 | #include "driver.h" |
| 3 | #include "deprecat.h" | |
| 3 | 4 | #include "cpu/i8039/i8039.h" |
| 4 | 5 | #include "sound/dac.h" |
| 5 | 6 |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | 11 | #include "rescap.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "cpu/i8085/i8085.h" |
| 13 | 14 | #include "machine/6821pia.h" |
| 14 | 15 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "cpu/m6809/m6809.h" |
| 12 | 13 | #include "sound/5220intf.h" |
| 13 | 14 | #include "includes/starwars.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "cpu/i8039/i8039.h" |
| 3 | 4 | #include "sound/dac.h" |
| 4 | 5 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "cpu/m6502/m6502.h" |
| 3 | 4 | #include "sound/samples.h" |
| 4 | 5 | #include "sound/dac.h" |
| r1649 | r1650 | |
|---|---|---|
| 150 | 150 | ****************************************************************************/ |
| 151 | 151 | |
| 152 | 152 | #include "driver.h" |
| 153 | #include "deprecat.h" | |
| 153 | 154 | #include "cpu/adsp2100/adsp2100.h" |
| 154 | 155 | #include "dcs.h" |
| 155 | 156 | #include "sound/dmadac.h" |
| 156 | 157 | #include "machine/midwayic.h" |
| 157 | 158 | |
| 158 | #include <math.h> | |
| 159 | 159 | |
| 160 | ||
| 161 | 160 | #define LOG_DCS_TRANSFERS (0) |
| 162 | 161 | #define LOG_DCS_IO (0) |
| 163 | 162 | #define LOG_BUFFER_FILLING (0) |
| r1649 | r1650 | |
| 312 | 311 | UINT16 input_data; |
| 313 | 312 | UINT16 output_data; |
| 314 | 313 | UINT16 output_control; |
| 315 | UINT | |
| 314 | UINT64 output_control_cycles; | |
| 316 | 315 | UINT8 last_output_full; |
| 317 | 316 | UINT8 last_input_empty; |
| 318 | 317 | void (*output_full_cb)(int); |
| r1649 | r1650 | |
| 1687 | 1686 | return; |
| 1688 | 1687 | |
| 1689 | 1688 | /* count cycles */ |
| 1690 | elapsed_cycles = cpunum_gettotalcycles | |
| 1689 | elapsed_cycles = cpunum_gettotalcycles | |
| 1691 | 1690 | elapsed_clocks = elapsed_cycles / dcs.timer_scale; |
| 1692 | 1691 | |
| 1693 | 1692 | /* if we haven't counted past the initial count yet, just do that */ |
| r1649 | r1650 | |
| 1713 | 1712 | /* we do this to avoid drifting */ |
| 1714 | 1713 | dcs.timers_fired++; |
| 1715 | 1714 | target_cycles = dcs.timer_start_cycles + dcs.timer_scale * (dcs.timer_start_count + 1 + dcs.timers_fired * (dcs.timer_period + 1)); |
| 1716 | target_cycles -= cpunum_gettotalcycles | |
| 1715 | target_cycles -= cpunum_gettotalcycles | |
| 1717 | 1716 | |
| 1718 | 1717 | /* set the next timer, but only if it's for a reasonable number */ |
| 1719 | 1718 | if (!dcs.timer_ignore && (dcs.timer_period > 10 || dcs.timer_scale > 1)) |
| r1649 | r1650 | |
| 1729 | 1728 | return; |
| 1730 | 1729 | |
| 1731 | 1730 | /* compute the time until the first firing */ |
| 1732 | dcs.timer_start_cycles = cpunum_gettotalcycles | |
| 1731 | dcs.timer_start_cycles = cpunum_gettotalcycles | |
| 1733 | 1732 | dcs.timers_fired = 0; |
| 1734 | 1733 | |
| 1735 | 1734 | /* if this is the first timer, check the IRQ routine for the DRAM refresh stub */ |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | #include "driver.h" |
| 8 | 8 | #include "rescap.h" |
| 9 | 9 | #include "streams.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "cpu/m6502/m6502.h" |
| 11 | 12 | #include "machine/6821pia.h" |
| 12 | 13 | #include "sound/hc55516.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "cpu/i8039/i8039.h" |
| 3 | 4 | #include "sound/flt_rc.h" |
| 4 | 5 | |
| r1649 | r1650 | |
| 28 | 29 | |
| 29 | 30 | READ8_HANDLER( gyruss_portA_r ) |
| 30 | 31 | { |
| 31 | /* need to protect from totalcycles overflow */ | |
| 32 | static int last_totalcycles = 0; | |
| 33 | ||
| 34 | /* number of Z80 clock cycles to count */ | |
| 35 | static int clock; | |
| 36 | ||
| 37 | int current_totalcycles; | |
| 38 | ||
| 39 | current_totalcycles = activecpu_gettotalcycles(); | |
| 40 | clock = (clock + (current_totalcycles-last_totalcycles)) % 10240; | |
| 41 | ||
| 42 | last_totalcycles = current_totalcycles; | |
| 43 | ||
| 44 | return gyruss_timer[clock/1024]; | |
| 32 | return gyruss_timer[(activecpu_gettotalcycles()/1024) % 10]; | |
| 45 | 33 | } |
| 46 | 34 | |
| 47 | 35 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | |
| 12 | 13 | static UINT8 from_main,from_mcu; |
| 13 | 14 | static int mcu_sent = 0,main_sent = 0; |
| r1649 | r1650 | |
|---|---|---|
| 48 | 48 | *************************************************************************/ |
| 49 | 49 | |
| 50 | 50 | #include "driver.h" |
| 51 | #include "deprecat.h" | |
| 51 | 52 | |
| 52 | 53 | static UINT8* CRAM[8]; |
| 53 | 54 |
| r1649 | r1650 | |
|---|---|---|
| 50 | 50 | |
| 51 | 51 | ******************************************************************************************/ |
| 52 | 52 | #include "driver.h" |
| 53 | #include "deprecat.h" | |
| 53 | 54 | #include "machine/scudsp.h" |
| 54 | 55 | #include "osd_cpu.h" |
| 55 | 56 |
| r1649 | r1650 | |
|---|---|---|
| 298 | 298 | // 0x77 (0x18) opcode is right but arguments could be swapped |
| 299 | 299 | // 0xb8 (0x2b) not sure, could be 0x1b |
| 300 | 300 | |
| 301 | ||
| 302 | 301 | const UINT8 gussun_decryption_table[256] = { |
| 303 | 0xcd,xxxx,xxxx,0x36,xxxx,0x52,0xb1,0x5b, 0x68,0xcd,xxxx,xxxx,xxxx,0x20,xxxx,xxxx, /* 00 */ | |
| 304 | // !!!! ^^^^ !!!! !!!! | |
| 305 | xxxx,xxxx,0x75,0x24,0x08,0x83,0x32,0xe9, xxxx,0x79,xxxx,0x8f,0x22,xxxx,0xac,xxxx, /* 10 */ | |
| 306 | // !!!! ???? ^^^^ pppp gggg !!!! ^^^^ | |
| 307 | 0x5d,0xa5,0x11,0x51,0x0a,xxxx,0x19,xxxx ,0xf8,0x98,0x91,0x40,0x28,0x10,0x03,0x5f, /* 20 */ | |
| 308 | // pppp !!!! ???? ^^^^ pppp ^^^^ gggg gggg pppp | |
| 309 | 0x26,xxxx,xxxx,0x8b,xxxx,0x02,xxxx,xxxx, 0x8e,0xab,xxxx,xxxx,0xbc,0xf1,0xb3,xxxx, /* 30 */ | |
| 310 | // | |
| 311 | xxxx,0x01,0xc6,xxxx,xxxx,0x3a,0x29,xxxx, xxxx,0x74,0x61,xxxx,0x33,xxxx,0x29,xxxx, /* 40 */ | |
| 312 | // ???? ???? !!!! ???? | |
| 313 | xxxx,0x53,0xa0,0xc0,0xc3,0x41,0xfc,0xe7, xxxx,0x2c,0x76,0x2b,xxxx,xxxx,0xba,0x2a, /* 50 */ | |
| 314 | // !!!! ^^^^ ^^^^ gggg ???? !!!! !!!! | |
| 315 | 0xb0,xxxx,0x28,0x7d,xxxx,xxxx,0xb5,0x07, 0xb9,xxxx,0x27,0x46,0xf9,xxxx,xxxx,xxxx, /* 60 */ | |
| 316 | // ???? gggg !!!! ^^^^ | |
| 302 | 0xcd,xxxx,xxxx,0x36,xxxx,0x52,0xb1,0x5b, 0x68,0xcd,xxxx,xxxx,xxxx,0xa8,xxxx,xxxx, /* 00 */ | |
| 303 | // 0x63 gggg gggg gggg | |
| 304 | xxxx,xxxx,0x75,0x24,0x08,0x83,0x32,0xe9, xxxx,0x7d,xxxx,0x8f,0x22,xxxx,0xac,xxxx, /* 10 */ | |
| 305 | // ???? pppp gggg | |
| 306 | 0x5d,0xa5,0x11,0x51,0x0a,0x29,0x01,xxxx ,0xf8,0x98,0x91,0x40,0x28,0x00,0x03,0x5f, /* 20 */ | |
| 307 | // gggg pppp ???? gggg gggg gggg gggg pppp | |
| 308 | 0x26,xxxx,xxxx,0x8b,0x2f,0x02,xxxx,xxxx, 0x8e,0xab,xxxx,xxxx,0xbc,0xf1,0xb3,xxxx, /* 30 */ | |
| 309 | // gggg 0x90 | |
| 310 | xxxx,0x19,0xc6,xxxx,xxxx,0x3a,0x01,xxxx, xxxx,0x74,0x61,xxxx,0x33,xxxx,0x01,xxxx, /* 40 */ | |
| 311 | // ???? ???? ???? | |
| 312 | xxxx,0x53,0xa0,0xc0,0xc3,0x41,0xfc,0xe7, xxxx,0x2c,0x7e,0x2b,xxxx,xxxx,0xba,0x2a, /* 50 */ | |
| 313 | // gggg ???? gggg pppp gggg | |
| 314 | 0xb0,xxxx,0x28,0x79,xxxx,xxxx,0xb5,0x07, 0xb9,xxxx,0x27,0x46,0xf9,xxxx,xxxx,xxxx, /* 60 */ | |
| 315 | // ???? pppp gggg gggg | |
| 317 | 316 | xxxx,0xea,0x72,0x73,0xad,0xd1,0x3b,0x5e, 0xe5,0x57,xxxx,0x0d,xxxx,xxxx,xxxx,0x3c, /* 70 */ |
| 318 | // ^^^^ | |
| 319 | xxxx,0x86,xxxx,0xb5,0x30,0x25,0x2d,xxxx, 0x9a,0xeb,0x04,0x0b,0xa2,0xb8,0xf6,xxxx, /* 80 */ | |
| 320 | // ???? ???? ^^^^ !!!! !!!! | |
| 321 | xxxx,xxxx,0x9d,xxxx,0xbb,xxxx,xxxx,0xcb, 0xa9,0xcf,xxxx,0x60,0x43,0x56,xxxx,0x01, /* 90 */ | |
| 322 | // !!!! ^^^^ !!!! ^^^^ !!!! ???? | |
| 323 | xxxx,0xa3,xxxx,xxxx,xxxx,xxxx,0xfa,0xb4, xxxx,0x81,0xe6,0x41,0x80,0x8c,0xd4,xxxx, /* a0 */ | |
| 324 | // gggg ???? gggg !!!! | |
| 325 | xxxx,0x19,0x20,0x19,0x77,0x3d,0x3e,xxxx, xxxx,xxxx,0x4b,xxxx,xxxx,xxxx,xxxx,xxxx, /* b0 */ | |
| 326 | // ???? ???? ???? gggg pppp | |
| 317 | // gggg ???? | |
| 318 | xxxx,0x86,0x76,0x7f,0x08,0x25,0x2d,xxxx, 0x9a,0xeb,0x04,0x0b,0xa2,0xb8,0xf6,xxxx, /* 80 */ | |
| 319 | // ???? pppp ???? ???? gggg | |
| 320 | xxxx,xxxx,0x9d,xxxx,0xbb,xxxx,xxxx,0xcb, 0xa9,0xcf,xxxx,0x60,0x43,0x56,xxxx,0x19, /* 90 */ | |
| 321 | // ???? gggg ???? | |
| 322 | xxxx,0xa3,xxxx,xxxx,xxxx,xxxx,0xfa,0xb4, xxxx,0x81,0xe6,0x48,0x80,0x8c,0xd4,xxxx, /* a0 */ | |
| 323 | // gggg ???? gggg gggg | |
| 324 | xxxx,0x19,0x00,0x19,0x77,0x3d,0x3e,xxxx, xxxx,0xb6,0x4b,xxxx,xxxx,xxxx,xxxx,xxxx, /* b0 */ | |
| 325 | // ???? ???? ???? gggg ???? ???? pppp | |
| 327 | 326 | xxxx,0xff,0x47,xxxx,0x55,0x1e,xxxx,0x59, 0x93,xxxx,xxxx,xxxx,0x88,0xc1,0x01,0xb2, /* c0 */ |
| 328 | // ^^^^ ^^^^ ^^^^ ???? | |
| 329 | xxxx,0x2e,0x06,0xc7,0x05,xxxx,0x8a,0x5a, 0x58,0xbe,xxxx,xxxx,xxxx,0x1f,0x23,xxxx, /* d0 */ | |
| 330 | // ^^^^ ???? | |
| 331 | 0xe8,xxxx,0x89,0xa1,0xd0,xxxx,0x19,0xe2, 0x38,0xfe,0x50,0x9c,xxxx,xxxx,xxxx,0x49, /* e0 */ | |
| 332 | // ???? !!!! !!!! | |
| 333 | 0xfb,xxxx,0xf3,xxxx,xxxx,0x0f,xxxx,xxxx, xxxx,0x7c,0xf7,0xbd,0x39,0x7f,0xbf,xxxx, /* f0 */ | |
| 334 | // !!!! ???? !!!! gggg | |
| 327 | // ???? pppp | |
| 328 | xxxx,0x2e,0x06,0xc7,0x05,xxxx,0x8a,0x5a, 0x58,0xbe,xxxx,0x4a,xxxx,0x1f,0x23,xxxx, /* d0 */ | |
| 329 | // ???? | |
| 330 | 0xe8,xxxx,0x89,0xa1,0xd0,xxxx,0x11,0xe2, 0x38,0xfe,0x50,0x9c,xxxx,xxxx,xxxx,0x49, /* e0 */ | |
| 331 | // ???? ???? gggg | |
| 332 | 0xfb,xxxx,0xf3,xxxx,xxxx,0x0f,xxxx,xxxx, xxxx,0x7d,0xf7,0xbd,0x39,0x71,0xbf,xxxx, /* f0 */ | |
| 333 | // pppp gggg pppp | |
| 335 | 334 | }; |
| 336 | 335 | |
| 337 | ||
| 338 | 336 | /* |
| 339 | 337 | missing opcode: |
| 340 | N**14 -> 08? (2097b 20980 - routine from 2097a) (00 01 08 09 30 31) probably 08 - after the start and before the menu | |
| 341 | - to handle the player number | |
| 342 | N++26 -> 29? (14ed_ , 198e_ | |
| 343 | N--41 -> 19? | |
| 344 | N//46 -> 10? (1461b | |
| 345 | N--4e -> 19? (208ac - | |
| 346 | Y//5a -> 76? (195eb - (222fc - routine from 222ed to ) (7x j...) no 70,71,77,79,7a,7b,7d,7f - ok 76 78 7c 7e | |
| 347 | 1//62 -> 28? (1cf86 1cfa3 - routine from 1cf61 to 1cff4) (water in level 1) | |
| 348 | 1--83 -> b7? (194cd - routine from) no b7,b3,b4 ok b6,b5 | |
| 349 | 0**84 -> 18? (1d8f1 - routine from 1d8c7 to 1d8fc) - three bytes (00,08,18,20,28,30) | |
| 350 | ---9f -> 19? ( | |
| 351 | ///ab -> 42? | |
| 352 | ---b1 -> 19? | |
| 353 | ---b2 -> 20. (20a8b - 20acc probably 20 - after the start and before the menu - to handle the player number | |
| 354 | ///b3 -> 19? (216b6 - 216cf | |
| 355 | 01+ce -> 01? (10236 - routine from 1017e to 10254) (01, 09, 19, 21, 29, 31) -> probably 01 | |
| 356 | ///db -> (16992 | |
| 357 | ///eb -> | |
| 358 | ///f9 -> 7c? (16598 - 165a1 - 18de7 - routine from 18dc4 to ) no 71,72,76,78 ok 70,73,77,79,7a | |
| 359 | 338 | |
| 339 | " " -> checked against hasamu (i.e. you can compare gussun from 2002a and hasamu from 54a0) | |
| 340 | "gggg" -> very probably | |
| 341 | "pppp" -> probably | |
| 342 | "????" -> missing | |
| 343 | "0xHH" -> right code (not supported) | |
| 344 | ||
| 345 | 14 -> 08 (2097b 20980 - routine from 2097a) (00 01 08 09 30 31) probably 08 - after the start and before the menu | |
| 346 | - to handle the player number | |
| 347 | j19 -> 79 (1df45 routine from 1df27 / 2282f - routine from 2281f to 22871) no 70,71,76,77,78,7a,7b,7c,7e,7f(ok) ok 79,7d | |
| 348 | .26 -> 29 (14ed_ , 198e_ | |
| 349 | .41 -> 19 | |
| 350 | .46 -> 10 (1461b | |
| 351 | .4e -> 19 (208ac - | |
| 352 | j5a -> 7e (195eb - (222fc - routine from 222ed to ) (7x j...) no 70,71(ok),77,79,7a,7b,7d,7f ok 76,78,7c,7e | |
| 353 | .62 -> 28 (1cf86 1cfa3 - routine from 1cf61 to 1cff4) (water in level 1) (01 11 19 29) | |
| 354 | j63 -> 78 (1df7f, 1df8c, 1df95, 21f08 - routine from 1df27 to ) no 71(ok),77(ok),7f(ok) ok 70,76,78,79 7a,7b,7c,7d,7e | |
| 355 | j82 -> 76 (76,78,7c,7e) -> | |
| 356 | .84 -> 18 (1d8f1 - routine from 1d8c7 to 1d8fc) - three bytes (00,08,18,28,30) (sprite animation) | |
| 357 | .9f -> 19 ( | |
| 358 | ab -> 42 | |
| 359 | .b1 -> 19 | |
| 360 | .b2 -> 20 (20a8b - 20acc probably 20 - after the start and before the menu - to handle the player number | |
| 361 | .b3 -> 19 (216b6 - 216cf | |
| 362 | b9 -> b5 (21210 - ) 2 bytes - | |
| 363 | db -> (16992 | |
| 364 | jf9 -> 7c (16d02(f 16cfa)-16598-165a1-18de7(f 18dc4) no 71,77(ok),(icons? 70,76,78,7a,7c,7e),7f maybe 79,7b,7d | |
| 365 | ||
| 360 | 366 | rz probably: |
| 361 | 19 -> 79 (1df45 routine from 1df27 / 2282f - routine from 2281f to 22871) ok 79,7d,7f -> 79 | |
| 362 | 22 -> 11 (1deff - routine from 1dee8 to 1df26) -> 11 - to handle sprite animation | |
| 363 | 2d -> 10 (1df1d - routine from 1dee8 to 1df26) -> 10 - to handle sprite animation | |
| 364 | 29 -> 98 (1df22 - routine from 1dee8 to 1df26) -> 98 - to handle sprite animation | |
| 367 | 2d -> 00 (1df1d - routine from 1dee8 to 1df26) -> 00 - to handle sprite animation | |
| 368 | 83 -> 7f (194cd - routine from) no 70,71,76,78,79,7a,7c,7d,7e ok 77(no),7b(white rocks) ok 7f | |
| 369 | b4 -> 77 (1d03a, 1d57a - routine from 1d4df ) no 70,71,76,78,79,7a,7b,7c,7d,7e,7f ok 77 | |
| 365 | 370 | ba -> 4b (1094d, 10b28 - routine from 10948 to 10b73) one byte -> probably 4b |
| 371 | c2 -> 47 (22881, 220ff - routine from 22872 to 22885) (4f?) | |
| 372 | ce -> 01 (10236 - routine from 1017e to 10254) (01, 09, 19, 21, 29, 31) -> probably 01 | |
| 373 | fd -> 71 (1d659 - routine from 1d63c to 1d65e) no 70,76,77,78,79,7a,7b,7c,7d,7e,7f ok 71 | |
| 366 | 374 | |
| 367 | 375 | rz guess: |
| 368 | 2b -> 40 (1d4d2 1db81 1dba9 - routine from 1d4b2 to 1d4de) (ok 40,48,96) -> 40 | |
| 369 | (no 0e,16,17,27,2f,37,3f,41,42,44,45,4a,4b,4c,4d,4e,4f,54,5c,6c,6d,92,94,95,97) | |
| 376 | 06 -> b1 (22872 - routine from 22872 to 2289d) | |
| 377 | 09 -> cd (22a17 - routine from 229ed to 22a1a) | |
| 378 | 0d -> a8 ( | |
| 379 | 1b -> 8f (1d8f9 - routine from 1d8c7 to 1d8fc) - three bytes (pop instruction for the push in 1d8e6) | |
| 380 | 22 -> 11 (1deff - routine from 1dee8 to 1df26) -> 11 - to handle sprite animation | |
| 381 | 25 -> 29 (195a0 - routine from 194e1 to ) (19,29) | |
| 382 | 28 -> f8 ( | |
| 383 | 29 -> 98 (1df22 - routine from 1dee8 to 1df26) -> 98 - to handle sprite animation | |
| 384 | 2b -> 40 (1d4d2 1db81 1dba9 - routine from 1d4b2 to 1d4de) -> 40 | |
| 370 | 385 | 2c -> 28 (20333 - routine from 2032a to 20366) |
| 386 | 34 -> 2f (20381 - routine from 2037b to 20391) - used to handle number of lives and game over | |
| 387 | 52 -> a0 | |
| 371 | 388 | 59 -> 2c (220cf - 2037f - routine from 2202f to ) 2bytes (2c, |
| 372 | 63 -> 7d (1df7f, 1df8c, 1df95,21f08 - routine from 1df1d to ) - two bytes j.. | |
| 373 | 1b -> 8f (1d8f9 - routine from 1d8c7 to 1d8fc) - three bytes (pop instruction for the push in 1d8e6) | |
| 389 | 5b -> 2b (used in "Service Mode" / "CHARACTER menu") | |
| 390 | 66 -> b5 (1daaf - routine from 1da61 to 1daca) - two bytes (colors effect) | |
| 391 | 6a -> 27 (20368 - routine from 20368 to 2037a) - used to limit the max lives number | |
| 392 | 73 -> 73 (1d4f7 - routine from 1d4df to 1d539) -> (no 70,71,72,74,75,76,77,78,79,7a,7b,7c,7d,7e,7f) - ok 73 | |
| 393 | 88 -> 9a | |
| 394 | 97 -> cb | |
| 374 | 395 | a7 -> b4 (2029a - routine from 20290 to |
| 375 | ad -> 8c (1d559, 1d8d4 - routine from 1d547 - ; routine from 1d8b8 to 1d8fc) | |
| 376 | b4 -> 77 (1d03a, 1d57a - routine from 1d4df ) 7f,7d,7b - 79 - "77" | |
| 377 | fd -> 7f (1d659 - routine from 1d63c to 1d65e) 77,7f | |
| 396 | ad -> 8c (1d559, 1d8d4 - routine from 1d547 - ; routine from 1d8b8 to 1d8fc) .............................. | |
| 397 | ae -> d4 (20215 - ) used when you insert a coin to handle the "coin number" in decimal | |
| 398 | ef -> 49 (dec CW) (used in "Service Mode" / "CHARACTER menu") | |
| 399 | fb -> bd | |
| 378 | 400 | |
| 379 | 401 | missing V35+ core: |
| 380 | 402 | 00 -> 63 not supported (229e2 - routine from 229da to 229ec) (for now we use cd instruction + hack) |
| 381 | 403 | 0f 92 -> of 92 not supported (1011d before of STI instruction) (for now no effects) |
| 382 | 404 | |
| 383 | above - c8 (inc aw) guess from stos code | |
| 384 | 0xc5 -> 1e (push ds) guess (pop ds soon after) right? | |
| 385 | 0xa9 -> 81 (not 0x82 PRE) guess from 237df | |
| 386 | 0xcd -> c1 total guess (wrong but 3 bytes) | |
| 405 | ------------------------------------------------------------------------------------------------------------- | |
| 387 | 406 | |
| 388 | 407 | AS notes: |
| 389 | 408 | 0x1e is lodsb not lds,noted from 2344f |
| r1649 | r1650 | |
| 395 | 414 | 0x19 guess (0x82 PRE) |
| 396 | 415 | 0xc2 guess,it could be dec iy... |
| 397 | 416 | |
| 398 | RZ notes | |
| 399 | 0xef -> 49 (dec CW) (used in "Service Mode" / "CHARACTER menu") | |
| 400 | 0x24 -> (0a, 12) probably 0a (OR) (used in "Service Mode" / "CHARACTER menu") | |
| 401 | 0x5b -> 2b (used in "Service Mode" / "CHARACTER menu") | |
| 402 | 0x21 -> a5 (used in "Service Mode" / "CHARACTER menu") | |
| 403 | ||
| 404 | checked against "hasamu" code: hasamu and gussun share code (i.e. you can compare gussun from 2002a and hasamu from 54a0) | |
| 405 | 0x09 -> cd (22a17 - routine from 229ed to 22a1a) - two bytes | |
| 406 | 0x13 -> 24 (interrupt routine) | |
| 407 | 0x1c -> 22 (interrupt routine) | |
| 408 | 0x34 -> 2f (20381 - routine from 2037b to 20391) - used to handle number of lives and game over | |
| 409 | 0x4a -> 61 (interrupt routine) | |
| 410 | 0x66 -> b5 (1daaf - routine from 1da61 to 1daca) - two bytes (colors effect) | |
| 411 | 0x6a -> 27 (20368 - routine from 20368 to 2037a) - used to limit the max lives number | |
| 412 | 0x73 -> 73 (1d4f7 - routine from 1d4df to 1d539) -> (no 70,71,72,74,75,76,77,78,79,7a,7b,7c,7d,7e,7f) - ok 73 | |
| 413 | 0x8c -> a2 (interrupt routine) | |
| 414 | 0x8e -> f6 (interrupt routine) | |
| 415 | 0x9b -> 60 (interrupt routine) | |
| 416 | 0xf0 -> fb guess (interrupt) | |
| 417 | 0xae -> d4 (20215 - ) used when you insert a coin to handle the "coin number" in decimal | |
| 417 | above - c8 (inc aw) guess from stos code | |
| 418 | 0xc5 -> 1e (push ds) guess (pop ds soon after) right? | |
| 419 | 0xa9 -> 81 (not 0x82 PRE) guess from 237df | |
| 420 | 0xcd -> c1 total guess (wrong but 3 bytes) | |
| 418 | 421 | */ |
| 419 | 422 | |
| 420 | 423 | /* |
| r1649 | r1650 | |
| 781 | 784 | for (A = 0;A < size; A++) |
| 782 | 785 | irem_cpu_decrypted[A] = decryption_table[rom[A]]; |
| 783 | 786 | |
| 784 | // | |
| 787 | // | |
| 785 | 788 | // for "gussun" and "riskchal" is necessary an hack to not decrypt not encrypted routines |
| 786 | 789 | // we need a real nec v25+/35+ core to support 0x63 (brkn for "break native") instruction |
| 787 | 790 | // for now we use "cd" (int) instruction + hack |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | |
| 2 | 2 | #include "driver.h" |
| 3 | #include "deprecat.h" | |
| 3 | 4 | |
| 4 | 5 | /* needed in video/stactics.c */ |
| 5 | 6 | int stactics_vert_pos; |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "video/ppu2c0x.h" |
| 3 | 4 | #include "machine/rp5h01.h" |
| 4 | 5 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "cpu/z80/z80.h" |
| 12 | 13 | |
| 13 | 14 |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | |
| 13 | 14 | #include "cpu/m68000/m68000.h" |
| 14 | 15 | #include "machine/fd1094.h" |
| r1649 | r1650 | |
| 142 | 143 | } |
| 143 | 144 | |
| 144 | 145 | |
| 145 | #ifdef | |
| 146 | #ifdef ENABLE_DEBUGGER | |
| 146 | 147 | static void key_changed(void) |
| 147 | 148 | { |
| 148 | 149 | int addr; |
| r1649 | r1650 | |
| 187 | 188 | } |
| 188 | 189 | fd1094_current_cacheposition = 0; |
| 189 | 190 | |
| 190 | #ifdef | |
| 191 | #ifdef ENABLE_DEBUGGER | |
| 191 | 192 | /* key debugging */ |
| 192 | 193 | if (Machine->debug_mode && memory_region(REGION_USER2) != NULL) |
| 193 | 194 | { |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "machine/7474.h" |
| 12 | 13 | #include "includes/galaxian.h" |
| 13 | 14 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | *************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "includes/atarig42.h" |
| 9 | 10 | #include "cpu/tms32010/tms32010.h" |
| 10 | 11 | #include "asic65.h" |
| 11 | #include <math.h> | |
| 12 | 12 | |
| 13 | 13 | |
| 14 | 14 | #define LOG_ASIC 0 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "cpu/z80/z80.h" |
| 12 | 13 | #include "includes/docastle.h" |
| 13 | 14 | |
| r1649 | r1650 | |
| 35 | 36 | */ |
| 36 | 37 | READ8_HANDLER( docastle_shared0_r ) |
| 37 | 38 | { |
| 38 | if (offset == 8) logerror("CPU #0 shared0r clock = %d\n",activecpu_gettotalcycles()); | |
| 39 | if (offset == 8) logerror("CPU #0 shared0r clock = %d\n",(UINT32)activecpu_gettotalcycles()); | |
| 39 | 40 | return buffer0[offset]; |
| 40 | 41 | } |
| 41 | 42 | |
| 42 | 43 | |
| 43 | 44 | READ8_HANDLER( docastle_shared1_r ) |
| 44 | 45 | { |
| 45 | if (offset == 8) logerror("CPU #1 shared1r clock = %d\n",activecpu_gettotalcycles()); | |
| 46 | if (offset == 8) logerror("CPU #1 shared1r clock = %d\n",(UINT32)activecpu_gettotalcycles()); | |
| 46 | 47 | return buffer1[offset]; |
| 47 | 48 | } |
| 48 | 49 | |
| r1649 | r1650 | |
| 50 | 51 | WRITE8_HANDLER( docastle_shared0_w ) |
| 51 | 52 | { |
| 52 | 53 | if (offset == 8) logerror("CPU #1 shared0w %02x %02x %02x %02x %02x %02x %02x %02x %02x clock = %d\n", |
| 53 | buffer0[0],buffer0[1],buffer0[2],buffer0[3],buffer0[4],buffer0[5],buffer0[6],buffer0[7],data,activecpu_gettotalcycles()); | |
| 54 | buffer0[0],buffer0[1],buffer0[2],buffer0[3],buffer0[4],buffer0[5],buffer0[6],buffer0[7],data,(UINT32)activecpu_gettotalcycles()); | |
| 54 | 55 | |
| 55 | 56 | buffer0[offset] = data; |
| 56 | 57 | |
| r1649 | r1650 | |
| 67 | 68 | if (offset == 8) |
| 68 | 69 | { |
| 69 | 70 | logerror("CPU #0 shared1w %02x %02x %02x %02x %02x %02x %02x %02x %02x clock = %d\n", |
| 70 | buffer1[0],buffer1[1],buffer1[2],buffer1[3],buffer1[4],buffer1[5],buffer1[6],buffer1[7],data,activecpu_gettotalcycles()); | |
| 71 | buffer1[0],buffer1[1],buffer1[2],buffer1[3],buffer1[4],buffer1[5],buffer1[6],buffer1[7],data,(UINT32)activecpu_gettotalcycles()); | |
| 71 | 72 | |
| 72 | 73 | /* freeze execution of the master CPU until the slave has used the shared memory */ |
| 73 | 74 | cpu_spinuntil_trigger(500); |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | ***************************************************************************/ |
| 14 | 14 | |
| 15 | 15 | #include "driver.h" |
| 16 | #include "deprecat.h" | |
| 16 | 17 | #include "cpu/i8x41/i8x41.h" |
| 17 | 18 | #include "includes/tnzs.h" |
| 18 | 19 |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | ***************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "cpu/m6502/m6502.h" |
| 13 | 14 | #include "includes/atari.h" |
| 14 | 15 | #include "sound/pokey.h" |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | **************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "cpu/tms34010/tms34010.h" |
| 9 | 10 | #include "cpu/m6809/m6809.h" |
| 10 | 11 | #include "machine/6821pia.h" |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | |
| 12 | 13 | extern UINT8 *onna34ro_workram; |
| 13 | 14 | extern UINT8 *victnine_workram; |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | |
| 12 | 13 | |
| 13 | 14 | UINT8 *slapfight_dpram; |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | int fd1094_set_state(UINT8 *key,int state); |
| 6 | 6 | int fd1094_decode(int address,int val,UINT8 *key,int vector_fetch); |
| 7 | 7 | |
| 8 | #ifdef | |
| 8 | #ifdef ENABLE_DEBUGGER | |
| 9 | 9 | |
| 10 | 10 | typedef struct _fd1094_constraint fd1094_constraint; |
| 11 | 11 | struct _fd1094_constraint |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "video/avgdvg.h" |
| 9 | 10 | #include "sound/5220intf.h" |
| 10 | 11 | #include "cpu/m6502/m6502.h" |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | // Directives |
| 13 | 13 | |
| 14 | 14 | #include "driver.h" |
| 15 | #include "deprecat.h" | |
| 15 | 16 | #include "cpu/i8085/i8085.h" |
| 16 | 17 | #include "sound/ay8910.h" |
| 17 | 18 | #include "sound/msm5232.h" |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***********************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "cpu/m6502/m6502.h" |
| 9 | 10 | #include "cpu/i8x41/i8x41.h" |
| 10 | 11 | #include "machine/decocass.h" |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | ****************************************************************************/ |
| 5 | 5 | |
| 6 | 6 | #include "driver.h" |
| 7 | #include "deprecat.h" | |
| 7 | 8 | #include "cpu/m68000/m68000.h" |
| 8 | 9 | #include "cpu/tms32010/tms32010.h" |
| 9 | 10 | #include "twincobr.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /* Konami PowerPC-based 3D games common functions */ |
| 2 | 2 | |
| 3 | 3 | #include "driver.h" |
| 4 | #include "deprecat.h" | |
| 4 | 5 | #include "cpu/sharc/sharc.h" |
| 5 | 6 | #include "video/voodoo.h" |
| 6 | 7 | #include "konppc.h" |
| r1649 | r1650 | |
|---|---|---|
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | 8 | #include "profiler.h" |
| 9 | #include "deprecat.h" | |
| 9 | 10 | #include "cpu/m6809/m6809.h" |
| 10 | 11 | #include "irobot.h" |
| 11 | 12 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "machine/eeprom.h" |
| 11 | 12 | #include "cpu/z80/z80.h" |
| 12 | 13 | #include "leland.h" |
| r1649 | r1650 | |
| 464 | 465 | static TIMER_CALLBACK( leland_interrupt_callback ) |
| 465 | 466 | { |
| 466 | 467 | int scanline = param; |
| 467 | extern UINT8 leland_last_scanline_int; | |
| 468 | leland_last_scanline_int = scanline; | |
| 469 | 468 | |
| 470 | 469 | /* interrupts generated on the VA10 line, which is every */ |
| 471 | 470 | /* 16 scanlines starting with scanline #8 */ |
| r1649 | r1650 | |
| 482 | 481 | static TIMER_CALLBACK( ataxx_interrupt_callback ) |
| 483 | 482 | { |
| 484 | 483 | int scanline = param; |
| 485 | extern UINT8 leland_last_scanline_int; | |
| 486 | leland_last_scanline_int = scanline; | |
| 487 | 484 | |
| 488 | 485 | /* interrupts generated according to the interrupt control register */ |
| 489 | 486 | cpunum_set_input_line(machine, 0, 0, HOLD_LINE); |
| r1649 | r1650 | |
| 1214 | 1211 | case 0x0d: /* /BKXH */ |
| 1215 | 1212 | case 0x0e: /* /BKYL */ |
| 1216 | 1213 | case 0x0f: /* /BKYH */ |
| 1217 | leland_ | |
| 1214 | leland_sc | |
| 1218 | 1215 | break; |
| 1219 | 1216 | |
| 1220 | 1217 | default: |
| r1649 | r1650 | |
| 1256 | 1253 | case 0x01: /* /BKXH */ |
| 1257 | 1254 | case 0x02: /* /BKYL */ |
| 1258 | 1255 | case 0x03: /* /BKYH */ |
| 1259 | leland_ | |
| 1256 | leland_sc | |
| 1260 | 1257 | break; |
| 1261 | 1258 | |
| 1262 | 1259 | case 0x04: /* /MBNK */ |
| r1649 | r1650 | |
| 1373 | 1370 | |
| 1374 | 1371 | WRITE8_HANDLER( leland_sound_port_w ) |
| 1375 | 1372 | { |
| 1376 | int gfx_banks = Machine->gfx[0]->total_elements / 0x400; | |
| 1377 | int gfx_bank_mask = (gfx_banks - 1) << 4; | |
| 1378 | int diff = data ^ leland_gfx_control; | |
| 1373 | /* update the graphics banking */ | |
| 1374 | leland_gfx_port_w(0, data); | |
| 1379 | 1375 | |
| 1380 | /* update the graphics banking if necessary */ | |
| 1381 | if ((diff & 0x08) || (diff & gfx_bank_mask)) | |
| 1382 | leland_gfx_port_w(-1, data); | |
| 1383 | ||
| 1384 | 1376 | /* set the new value */ |
| 1385 | 1377 | leland_gfx_control = data; |
| 1386 | 1378 | leland_dac_control &= data & 3; |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "debugger.h" |
| 9 | 10 | #include "midwayic.h" |
| 10 | 11 | #include "machine/idectrl.h" |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "video/konamiic.h" |
| 11 | 12 | #include "machine/konamigx.h" |
| 12 | #include <math.h> | |
| 13 | 13 | |
| 14 | 14 | #define GX_DEBUG 0 |
| 15 | 15 |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | ***************************************************************************/ |
| 5 | 5 | |
| 6 | 6 | #include "driver.h" |
| 7 | #include "deprecat.h" | |
| 7 | 8 | #include "cpu/m68000/m68000.h" |
| 8 | 9 | #include "cpu/tms32010/tms32010.h" |
| 9 | 10 | #include "includes/toaplan1.h" |
| r1649 | r1650 | |
|---|---|---|
| 98 | 98 | |
| 99 | 99 | ***************************************************************************/ |
| 100 | 100 | #include "driver.h" |
| 101 | #include "deprecat.h" | |
| 101 | 102 | #include "cpu/z80/z80.h" |
| 102 | 103 | |
| 103 | 104 | #define ID_DAIKAIJU 0x5a |
| r1649 | r1650 | |
|---|---|---|
| 133 | 133 | ***************************************************************************/ |
| 134 | 134 | |
| 135 | 135 | #include "driver.h" |
| 136 | #include "deprecat.h" | |
| 136 | 137 | #include "machine/namcoio.h" |
| 137 | 138 | #include "machine/namco50.h" |
| 138 | 139 | #include "sound/namco52.h" |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | |
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | #include "mamecore.h" | |
| 8 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 9 | 9 | #include "dc.h" |
| 10 | 10 | #include "cpu/sh4/sh4.h" |
| 11 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "cpu/m6805/m6805.h" |
| 12 | 13 | |
| 13 | 14 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ****************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "cpu/m6502/m6502.h" |
| 11 | 12 | #include "machine/6821pia.h" |
| 12 | 13 | #include "machine/7474.h" |
| r1649 | r1650 | |
|---|---|---|
| 105 | 105 | |
| 106 | 106 | ***************************************************************************/ |
| 107 | 107 | |
| 108 | #ifdef | |
| 108 | #ifdef ENABLE_DEBUGGER | |
| 109 | 109 | |
| 110 | 110 | #include "driver.h" |
| 111 | #include "deprecat.h" | |
| 111 | 112 | #include "machine/fd1094.h" |
| 112 | 113 | #include "cpu/m68000/m68k.h" |
| 113 | 114 | |
| r1649 | r1650 | |
| 2202 | 2203 | |
| 2203 | 2204 | /* make sure we match the disassembler */ |
| 2204 | 2205 | { |
| 2205 | char dummybuffer[ | |
| 2206 | char dummybuffer[40 | |
| 2206 | 2207 | UINT8 instrbuffer[10]; |
| 2207 | 2208 | instrbuffer[0] = (opnum | eabits) >> 8; |
| 2208 | 2209 | instrbuffer[1] = (opnum | eabits); |
| 2210 | dummybuffer[0] = 0; | |
| 2209 | 2211 | assert(length == (m68k_disassemble_raw(dummybuffer, 0, instrbuffer, instrbuffer, M68K_CPU_TYPE_68000) & 0xff) / 2); |
| 2210 | 2212 | } |
| 2211 | 2213 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "sound/ym2151.h" |
| 3 | 4 | #include "sound/namco.h" |
| 4 | 5 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "segaic16.h" |
| 9 | 10 | #include "video/resnet.h" |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "cpu/z80/z80.h" |
| 3 | 4 | |
| 4 | 5 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /* machine/n64.c - contains N64 hardware emulation shared between MAME and MESS */ |
| 2 | 2 | |
| 3 | 3 | #include "driver.h" |
| 4 | #include "deprecat.h" | |
| 4 | 5 | #include "cpu/mips/mips3.h" |
| 5 | 6 | #include "sound/custom.h" |
| 6 | 7 | #include "streams.h" |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | |
| 9 | 10 | static int m3_step; |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "tait8741.h" |
| 12 | 13 | |
| 13 | 14 | #define VERBOSE 0 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "cpu/m6809/m6809.h" |
| 11 | 12 | #include "balsente.h" |
| 12 | 13 | #include "sound/cem3394.h" |
| 13 | #include <math.h> | |
| 14 | 14 | |
| 15 | 15 | |
| 16 | 16 | #define LOG_CEM_WRITES 0 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "video/ppu2c0x.h" |
| 12 | 13 | |
| 13 | 14 | /* Globals */ |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "qix.h" |
| 11 | 12 | #include "machine/6821pia.h" |
| 12 | 13 | #include "cpu/m6800/m6800.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | |
| 3 | 4 | |
| 4 | 5 | UINT8 *mexico86_protection_ram; |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | ***************************************************************************/ |
| 13 | 13 | #define __MACHINE_SNES_C |
| 14 | 14 | |
| 15 | #include <math.h> | |
| 16 | 15 | #include "driver.h" |
| 16 | #include "deprecat.h" | |
| 17 | 17 | #include "includes/snes.h" |
| 18 | 18 | #include "cpu/g65816/g65816.h" |
| 19 | 19 | #ifdef MESS |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "cpu/m6805/m6805.h" |
| 12 | 13 | |
| 13 | 14 |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | ***************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "includes/amiga.h" |
| 13 | 14 | #include "cpu/m68000/m68000.h" |
| 14 | 15 | #include "machine/6526cia.h" |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | *************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "vertigo.h" |
| 9 | 10 | #include "exidy440.h" |
| 10 | 11 | #include "machine/74148.h" |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | |
| 12 | 13 | |
| 13 | 14 | static UINT8 from_main,from_mcu; |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | machine/pc.c | |
| 3 | machine/pcshare.c | |
| 4 | 4 | |
| 5 | 5 | Functions to emulate general aspects of the machine |
| 6 | 6 | (RAM, ROM, interrupts, I/O ports) |
| r1649 | r1650 | |
| 21 | 21 | ***************************************************************************/ |
| 22 | 22 | |
| 23 | 23 | #include "driver.h" |
| 24 | #include "deprecat.h" | |
| 24 | 25 | #include "memconv.h" |
| 25 | 26 | #include "machine/8255ppi.h" |
| 26 | 27 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "atarigen.h" |
| 12 | 13 | #include "slapstic.h" |
| 13 | 14 | #include "cpu/m6502/m6502.h" |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | **************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "cpu/tms34010/tms34010.h" |
| 9 | 10 | #include "cpu/m6809/m6809.h" |
| 10 | 11 | #include "audio/dcs.h" |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | ***************************************************************************/ |
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | #include "deprecat.h" | |
| 13 | 14 | #include "cpu/m6809/m6809.h" |
| 14 | 15 | #include "cpu/m6805/m6805.h" |
| 15 | 16 | #include "namcos2.h" |
| r1649 | r1650 | |
|---|---|---|
| 130 | 130 | ***************************************************************************/ |
| 131 | 131 | |
| 132 | 132 | #include "driver.h" |
| 133 | #include "deprecat.h" | |
| 133 | 134 | #include "namco50.h" |
| 134 | 135 | #include "cpu/mb88xx/mb88xx.h" |
| 135 | 136 |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | |
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | #include "driver.h" |
| 7 | #include "deprecat.h" | |
| 7 | 8 | #include "debugger.h" |
| 8 | 9 | #include "machine/8255ppi.h" |
| 9 | 10 | #include "tx1.h" |
| r1649 | r1650 | |
|---|---|---|
| 71 | 71 | ***************************************************************************/ |
| 72 | 72 | |
| 73 | 73 | #include "driver.h" |
| 74 | #include "deprecat.h" | |
| 74 | 75 | #include "machine/eeprom.h" |
| 75 | 76 | #include "decoprot.h" |
| 76 | 77 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "machine/z80ctc.h" |
| 9 | 10 | #include "machine/z80pio.h" |
| 10 | 11 | #include "machine/z80sio.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "tatsumi.h" |
| 3 | 4 | #include "sound/2151intf.h" |
| 4 | 5 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "cpu/z80/z80.h" |
| 3 | 4 | |
| 4 | 5 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "cpu/tms34010/tms34010.h" |
| 9 | 10 | #include "cpu/tms34010/34010ops.h" |
| 10 | 11 | #include "cpu/adsp2100/adsp2100.h" |
| r1649 | r1650 | |
|---|---|---|
| 6 | 6 | |
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | #include <stdarg.h> | |
| 10 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 11 | 11 | #include "cpu/mips/psx.h" |
| 12 | 12 | #include "includes/psx.h" |
| 13 | 13 | |
| r1649 | r1650 | |
| 471 | 471 | static UINT16 m_p_n_root_count[ 3 ]; |
| 472 | 472 | static UINT16 m_p_n_root_mode[ 3 ]; |
| 473 | 473 | static UINT16 m_p_n_root_target[ 3 ]; |
| 474 | static UINT | |
| 474 | static UINT64 m_p_n_root_start[ 3 ]; | |
| 475 | 475 | |
| 476 | 476 | #define RC_STOP ( 0x01 ) |
| 477 | 477 | #define RC_RESET ( 0x04 ) /* guess */ |
| r1649 | r1650 | |
| 482 | 482 | #define RC_CLC ( 0x100 ) |
| 483 | 483 | #define RC_DIV ( 0x200 ) |
| 484 | 484 | |
| 485 | static UINT | |
| 485 | static UINT64 psxcpu_gettotalcycles( void ) | |
| 486 | 486 | { |
| 487 | 487 | /* TODO: should return the start of the current tick. */ |
| 488 | 488 | return cpunum_gettotalcycles(0) * 2; |
| r1649 | r1650 | |
| 514 | 514 | } |
| 515 | 515 | else |
| 516 | 516 | { |
| 517 | UINT | |
| 517 | UINT64 n_current; | |
| 518 | 518 | n_current = psxcpu_gettotalcycles() - m_p_n_root_start[ n_counter ]; |
| 519 | 519 | n_current /= root_divider( n_counter ); |
| 520 | 520 | n_current += m_p_n_root_count[ n_counter ]; |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | *******************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "dec0.h" |
| 11 | 12 | #include "cpu/h6280/h6280.h" |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "cpu/m6809/m6809.h" |
| 3 | 4 | #include "machine/6522via.h" |
| 4 | 5 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "cpu/z80/z80.h" |
| 3 | 4 | |
| 4 | 5 |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | ***************************************************************************/ |
| 14 | 14 | |
| 15 | 15 | #include "driver.h" |
| 16 | #include "deprecat.h" | |
| 16 | 17 | #include "includes/kaneko16.h" |
| 17 | 18 | |
| 18 | 19 | #include "kanekotb.h" // TOYBOX MCU trojaning results |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "audio/williams.h" |
| 9 | 10 | #include "cpu/m6800/m6800.h" |
| 10 | 11 | #include "cpu/m6809/m6809.h" |
| r1649 | r1650 | |
| 269 | 270 | /* the IRQ signal comes into CB1, and is set to VA11 */ |
| 270 | 271 | pia_1_cb1_w(0, scanline & 0x20); |
| 271 | 272 | |
| 272 | /* update the screen while we're here */ | |
| 273 | video_screen_update_partial(0, scanline - 1); | |
| 274 | ||
| 275 | 273 | /* set a timer for the next update */ |
| 276 | scanline+ | |
| 274 | scanline += 0x20; | |
| 277 | 275 | if (scanline >= 256) scanline = 0; |
| 278 | 276 | timer_adjust(scanline_timer, video_screen_get_time_until_pos(0, scanline, 0), scanline, attotime_zero); |
| 279 | 277 | } |
| r1649 | r1650 | |
| 401 | 399 | pia_0_cb1_w(0, scanline & 0x20); |
| 402 | 400 | pia_1_ca1_w(0, scanline & 0x20); |
| 403 | 401 | |
| 404 | /* update the screen while we're here */ | |
| 405 | video_screen_update_partial(0, scanline); | |
| 406 | ||
| 407 | 402 | /* set a timer for the next update */ |
| 408 | scanline+ | |
| 403 | scanline += 0x20; | |
| 409 | 404 | if (scanline >= 256) scanline = 0; |
| 410 | 405 | timer_adjust(scanline_timer, video_screen_get_time_until_pos(0, scanline, 0), scanline, attotime_zero); |
| 411 | 406 | } |
| r1649 | r1650 | |
| 513 | 508 | |
| 514 | 509 | /* page 3 accesses palette RAM; the remaining areas are as if page 1 ROM was selected */ |
| 515 | 510 | case 3: |
| 516 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x8000, 0x87ff, 0, 0, | |
| 511 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x8000, 0x87ff, 0, 0, MRA8 | |
| 517 | 512 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x8000, 0x87ff, 0, 0, williams2_paletteram_w); |
| 518 | 513 | memory_set_bank(1, 1 + ((vram_bank & 4) >> 1)); |
| 514 | memory_set_bankptr(4, paletteram); | |
| 519 | 515 | break; |
| 520 | 516 | } |
| 521 | 517 | } |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "system16.h" |
| 3 | 4 | #include "sound/upd7759.h" |
| 4 | 5 |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | ***************************************************************************/ |
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | #include "deprecat.h" | |
| 13 | 14 | #include "cpu/m6809/m6809.h" |
| 14 | 15 | #include "namcond1.h" |
| 15 | 16 |
| r1649 | r1650 | |
|---|---|---|
| 111 | 111 | *******************************************************************************/ |
| 112 | 112 | |
| 113 | 113 | #include "driver.h" |
| 114 | #include "deprecat.h" | |
| 114 | 115 | #include "cpu/m68000/m68kmame.h" |
| 115 | 116 | #include "ui.h" |
| 116 | 117 | #include "includes/cps1.h" |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "starwars.h" |
| 12 | 13 | #include "video/avgdvg.h" |
| 13 | 14 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | *************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "atarifb.h" |
| 9 | 10 | #include "sound/discrete.h" |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "video/konamiic.h" |
| 3 | 4 | #include "cpu/konami/konami.h" |
| 4 | 5 | #include "machine/eeprom.h" |
| r1649 | r1650 | |
|---|---|---|
| 3 | 3 | */ |
| 4 | 4 | |
| 5 | 5 | #include "driver.h" |
| 6 | #include "deprecat.h" | |
| 6 | 7 | #include "debugger.h" |
| 7 | #include <math.h> | |
| 8 | 8 | #include "cpu/mb86233/mb86233.h" |
| 9 | 9 | |
| 10 | 10 | enum {FIFO_SIZE = 256}; |
| r1649 | r1650 | |
|---|---|---|
| 179 | 179 | *************************************************************************/ |
| 180 | 180 | |
| 181 | 181 | #include "driver.h" |
| 182 | #include "deprecat.h" | |
| 182 | 183 | #include "slapstic.h" |
| 183 | 184 | #include "cpu/m68000/m68000.h" |
| 184 | 185 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "cpu/m6809/m6809.h" |
| 12 | 13 | #include "cpu/z80/z80.h" |
| 13 | 14 | #include "cpu/konami/konami.h" |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | |
| 12 | 13 | |
| 13 | 14 | static UINT8 from_mcu; |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "nitedrvr.h" |
| 9 | 10 | #include "sound/discrete.h" |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 340 | 340 | DRIVER( ckongalc ) /* bootleg */ |
| 341 | 341 | DRIVER( bigkong ) /* bootleg */ |
| 342 | 342 | DRIVER( monkeyd ) /* bootleg */ |
| 343 | DRIVER( rpatrol ) /* Orca, from a suspicious set */ | |
| 343 | 344 | DRIVER( rpatrolb ) /* bootleg */ |
| 344 | DRIVER( rpatrolo ) /* Orca, from a suspicious set */ | |
| 345 | 345 | DRIVER( silvland ) /* Falcon */ |
| 346 | 346 | DRIVER( yamato ) /* (c) 1983 Sega */ |
| 347 | 347 | DRIVER( yamato2 ) /* (c) 1983 Sega */ |
| r1649 | r1650 | |
| 6955 | 6955 | DRIVER( hyprduel ) /* (c) 1993 Technosoft (World) */ |
| 6956 | 6956 | DRIVER( hyprdelj ) /* (c) 1993 Technosoft (Japan) */ |
| 6957 | 6957 | DRIVER( magerror ) /* (c) 199? Technosoft (Japan) */ |
| 6958 | DRIVER( puzzlet ) /* (c) 2000 Yunizu Corporation (Japan) */ | |
| 6958 | 6959 | |
| 6959 | 6960 | /* Venture Line games */ |
| 6960 | 6961 | DRIVER( spcforce ) /* (c) 1980 Venture Line */ |
| r1649 | r1650 | |
| 7332 | 7333 | /* Tatsumi Games */ |
| 7333 | 7334 | DRIVER( tx1 ) /* (c) 1983 Tatsumi */ |
| 7334 | 7335 | DRIVER( tx1a ) /* (c) 1983 Tatsumi */ |
| 7336 | /* TX-1 V8 */ /* (c) 1984 Tatsumi */ | |
| 7335 | 7337 | DRIVER( buggyboy ) /* (c) 1985 Tatsumi */ |
| 7336 | 7338 | DRIVER( buggybjr ) /* (c) 1986 Tatsumi */ |
| 7337 | 7339 | DRIVER( lockon ) /* (c) 1986 Tatsumi */ |
| 7340 | DRIVER( lockonc ) /* (c) 1986 Tatsumi */ | |
| 7338 | 7341 | /* Gray Out */ /* (c) 1987 Tatsumi */ |
| 7339 | 7342 | DRIVER( apache3 ) /* (c) 1988 Tatsumi */ |
| 7340 | 7343 | DRIVER( roundup5 ) /* (c) 1989 Tatsumi */ |
| r1649 | r1650 | |
| 7346 | 7349 | DRIVER( stlforce ) /* (c) 1994 Electronic Devices (Italy) / Ecogames S.L. (Spain) */ |
| 7347 | 7350 | DRIVER( fantland ) /* (c) 198? Electronic Devices Italy */ |
| 7348 | 7351 | DRIVER( fantlnda ) /* (c) 198? Electronic Devices Italy */ |
| 7352 | DRIVER( wheelrun ) /* (c) 1988? International Games */ | |
| 7349 | 7353 | DRIVER( galaxygn ) /* (c) 1989 Electronic Devices Italy */ |
| 7350 | 7354 | DRIVER( borntofi ) /* (c) International Games? */ |
| 7351 | 7355 | DRIVER( diverboy ) /* (c) 1992 Electronic Devices */ |
| r1649 | r1650 | |
| 7683 | 7687 | DRIVER( promutrv ) /* (c) 1985 Enerdyne Technologies Inc */ |
| 7684 | 7688 | DRIVER( promutra ) /* (c) 1985 Enerdyne Technologies Inc */ |
| 7685 | 7689 | DRIVER( promutrb ) /* (c) 1985 Enerdyne Technologies Inc */ |
| 7690 | DRIVER( promutrc ) /* (c) 1985 Enerdyne Technologies Inc */ | |
| 7686 | 7691 | DRIVER( strvmstr ) /* (c) 1986 Enerdyne Technologies Inc */ |
| 7687 | 7692 | DRIVER( dorachan ) /* (c) 1980 Craul Denshi */ |
| 7688 | 7693 | DRIVER( ladyfrog ) /* (c) 1990 Mondial Games */ |
| r1649 | r1650 | |
| 7918 | 7923 | DRIVER( drw80pkr ) |
| 7919 | 7924 | DRIVER( blazlaz ) |
| 7920 | 7925 | DRIVER( paranoia ) |
| 7926 | DRIVER( galgbios ) /* (c) 1998 Creative Electonics */ | |
| 7921 | 7927 | |
| 7922 | 7928 | #endif /* DRIVER_RECURSIVE */ |
| r0 | r1650 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | Tutankham | |
| 4 | ||
| 5 | ***************************************************************************/ | |
| 6 | ||
| 7 | /*----------- defined in video/tutankhm.c -----------*/ | |
| 8 | ||
| 9 | extern UINT8 *tutankhm_scroll; | |
| 10 | ||
| 11 | WRITE8_HANDLER( tutankhm_flip_screen_x_w ); | |
| 12 | WRITE8_HANDLER( tutankhm_flip_screen_y_w ); | |
| 13 | ||
| 14 | VIDEO_START( tutankhm ); | |
| 15 | VIDEO_UPDATE( tutankhm ); | |
| 16 | ||
| 17 | WRITE8_HANDLER( junofrst_blitter_w ); |
| r0 | r1650 | |
|---|---|---|
| 1 | /************************************************************************* | |
| 2 | ||
| 3 | Irem M52 hardware | |
| 4 | ||
| 5 | *************************************************************************/ | |
| 6 | ||
| 7 | /*----------- defined in video/m52.c -----------*/ | |
| 8 | ||
| 9 | READ8_HANDLER( m52_protection_r ); | |
| 10 | WRITE8_HANDLER( m52_scroll_w ); | |
| 11 | WRITE8_HANDLER( m52_bg1xpos_w ); | |
| 12 | WRITE8_HANDLER( m52_bg1ypos_w ); | |
| 13 | WRITE8_HANDLER( m52_bg2xpos_w ); | |
| 14 | WRITE8_HANDLER( m52_bg2ypos_w ); | |
| 15 | WRITE8_HANDLER( m52_bgcontrol_w ); | |
| 16 | WRITE8_HANDLER( m52_flipscreen_w ); | |
| 17 | WRITE8_HANDLER( m52_videoram_w ); | |
| 18 | WRITE8_HANDLER( m52_colorram_w ); | |
| 19 | ||
| 20 | PALETTE_INIT( m52 ); | |
| 21 | VIDEO_START( m52 ); | |
| 22 | VIDEO_UPDATE( m52 ); | |
| 23 | ||
| 24 |
| r0 | r1650 | |
|---|---|---|
| 1 | /************************************************************************* | |
| 2 | ||
| 3 | Lock-On hardware | |
| 4 | ||
| 5 | *************************************************************************/ | |
| 6 | ||
| 7 | /* Calculated from CRT controller writes */ | |
| 8 | #define PIXEL_CLOCK (XTAL_21MHz / 3) | |
| 9 | #define FRAMEBUFFER_CLOCK XTAL_10MHz | |
| 10 | #define HBSTART 320 | |
| 11 | #define HBEND 0 | |
| 12 | #define HTOTAL 448 | |
| 13 | #define VBSTART 240 | |
| 14 | #define VBEND 0 | |
| 15 | #define VTOTAL 280 | |
| 16 | ||
| 17 | enum | |
| 18 | { | |
| 19 | MAIN_CPU = 0, | |
| 20 | GROUND_CPU, | |
| 21 | OBJECT_CPU, | |
| 22 | SOUND_CPU | |
| 23 | }; | |
| 24 | ||
| 25 | /*----------- defined in drivers/lockon.c -----------*/ | |
| 26 | extern UINT8 lockon_ctrl_reg; | |
| 27 | extern UINT32 lockon_main_inten; | |
| 28 | ||
| 29 | /*----------- defined in video/lockon.c -----------*/ | |
| 30 | PALETTE_INIT( lockon ); | |
| 31 | VIDEO_START( lockon ); | |
| 32 | VIDEO_UPDATE( lockon ); | |
| 33 | VIDEO_EOF( lockon ); | |
| 34 | READ16_HANDLER( lockon_crtc_r ); | |
| 35 | WRITE16_HANDLER( lockon_crtc_w ); | |
| 36 | WRITE16_HANDLER( lockon_rotate_w ); | |
| 37 | WRITE16_HANDLER( lockon_fb_clut_w ); | |
| 38 | WRITE16_HANDLER( lockon_scene_h_scr_w ); | |
| 39 | WRITE16_HANDLER( lockon_scene_v_scr_w ); | |
| 40 | WRITE16_HANDLER( lockon_ground_ctrl_w ); | |
| 41 | WRITE16_HANDLER( lockon_char_w ); | |
| 42 | ||
| 43 | WRITE16_HANDLER( lockon_tza112_w ); | |
| 44 | READ16_HANDLER( lockon_obj_4000_r ); | |
| 45 | WRITE16_HANDLER( lockon_obj_4000_w ); | |
| 46 | ||
| 47 | extern UINT16 *lockon_char_ram; | |
| 48 | extern UINT16 *lockon_scene_ram; | |
| 49 | extern UINT16 *lockon_object_ram; | |
| 50 | extern UINT16 *lockon_hud_ram; | |
| 51 | extern UINT16 *lockon_ground_ram; | |
| 52 | ||
| 53 | extern size_t lockon_hudram_size; | |
| 54 | extern size_t lockon_objectram_size; | |
| 55 | extern size_t lockon_groundram_size; |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | /*----------- defined in video/arabian.c -----------*/ |
| 10 | 10 | |
| 11 | extern UINT8 *arabian_blitter; | |
| 11 | 12 | extern UINT8 arabian_video_control; |
| 12 | 13 | extern UINT8 arabian_flip_screen; |
| 13 | 14 |
| r1649 | r1650 | |
|---|---|---|
| 127 | 127 | extern UINT8 *ataxx_qram; |
| 128 | 128 | extern UINT8 leland_last_scanline_int; |
| 129 | 129 | |
| 130 | VIDEO_START( leland ); | |
| 131 | VIDEO_START( ataxx ); | |
| 132 | ||
| 130 | WRITE8_HANDLER( leland_scroll_w ); | |
| 133 | 131 | WRITE8_HANDLER( leland_gfx_port_w ); |
| 134 | 132 | |
| 135 | 133 | WRITE8_HANDLER( leland_master_video_addr_w ); |
| r1649 | r1650 | |
| 145 | 143 | READ8_HANDLER( ataxx_mvram_port_r ); |
| 146 | 144 | READ8_HANDLER( ataxx_svram_port_r ); |
| 147 | 145 | |
| 148 | VIDEO_EOF( leland ); | |
| 149 | VIDEO_UPDATE( leland ); | |
| 150 | VIDEO_UPDATE( ataxx ); | |
| 146 | MACHINE_DRIVER_EXTERN( leland_video ); | |
| 147 | MACHINE_DRIVER_EXTERN( ataxx_video ); |
| r0 | r1650 | |
|---|---|---|
| 1 | /************************************************************************* | |
| 2 | ||
| 3 | Irem M57 hardware | |
| 4 | ||
| 5 | *************************************************************************/ | |
| 6 | ||
| 7 | /*----------- defined in video/m57.c -----------*/ | |
| 8 | ||
| 9 | extern UINT8 *m57_scroll; | |
| 10 | ||
| 11 | WRITE8_HANDLER( m57_videoram_w ); | |
| 12 | WRITE8_HANDLER( m57_flipscreen_w ); | |
| 13 | ||
| 14 | PALETTE_INIT( m57 ); | |
| 15 | VIDEO_START( m57 ); | |
| 16 | VIDEO_UPDATE( m57 ); | |
| 17 |
| r0 | r1650 | |
|---|---|---|
| 1 | /************************************************************************* | |
| 2 | ||
| 3 | Irem M62 hardware | |
| 4 | ||
| 5 | *************************************************************************/ | |
| 6 | ||
| 7 | /*----------- defined in video/centiped.c -----------*/ | |
| 8 | ||
| 9 | PALETTE_INIT( m62 ); | |
| 10 | PALETTE_INIT( lotlot ); | |
| 11 | PALETTE_INIT( battroad ); | |
| 12 | PALETTE_INIT( spelunk2 ); | |
| 13 | ||
| 14 | WRITE8_HANDLER( m62_tileram_w ); | |
| 15 | WRITE8_HANDLER( m62_textram_w ); | |
| 16 | WRITE8_HANDLER( m62_flipscreen_w ); | |
| 17 | WRITE8_HANDLER( m62_hscroll_low_w ); | |
| 18 | WRITE8_HANDLER( m62_hscroll_high_w ); | |
| 19 | WRITE8_HANDLER( m62_vscroll_low_w ); | |
| 20 | WRITE8_HANDLER( m62_vscroll_high_w ); | |
| 21 | extern UINT8 *m62_tileram; | |
| 22 | extern UINT8 *m62_textram; | |
| 23 | ||
| 24 | VIDEO_START( kungfum ); | |
| 25 | VIDEO_UPDATE( kungfum ); | |
| 26 | WRITE8_HANDLER( kungfum_tileram_w ); | |
| 27 | ||
| 28 | VIDEO_START( ldrun ); | |
| 29 | VIDEO_UPDATE( ldrun ); | |
| 30 | ||
| 31 | VIDEO_START( ldrun2 ); | |
| 32 | ||
| 33 | VIDEO_START( battroad ); | |
| 34 | VIDEO_UPDATE( battroad ); | |
| 35 | ||
| 36 | VIDEO_START( ldrun4 ); | |
| 37 | VIDEO_UPDATE( ldrun4 ); | |
| 38 | ||
| 39 | VIDEO_START( lotlot ); | |
| 40 | VIDEO_UPDATE( lotlot ); | |
| 41 | ||
| 42 | WRITE8_HANDLER( kidniki_text_vscroll_low_w ); | |
| 43 | WRITE8_HANDLER( kidniki_text_vscroll_high_w ); | |
| 44 | WRITE8_HANDLER( kidniki_background_bank_w ); | |
| 45 | VIDEO_START( kidniki ); | |
| 46 | VIDEO_UPDATE( kidniki ); | |
| 47 | ||
| 48 | WRITE8_HANDLER( spelunkr_palbank_w ); | |
| 49 | VIDEO_START( spelunkr ); | |
| 50 | VIDEO_UPDATE( spelunkr ); | |
| 51 | ||
| 52 | WRITE8_HANDLER( spelunk2_gfxport_w ); | |
| 53 | VIDEO_START( spelunk2 ); | |
| 54 | VIDEO_UPDATE( spelunk2 ); | |
| 55 | ||
| 56 | VIDEO_START( youjyudn ); | |
| 57 | VIDEO_UPDATE( youjyudn ); | |
| 58 | ||
| 59 | VIDEO_START( horizon ); | |
| 60 | VIDEO_UPDATE( horizon ); | |
| 61 | WRITE8_HANDLER( horizon_scrollram_w ); | |
| 62 | extern UINT8 *horizon_scrollram; |
| r1649 | r1650 | |
|---|---|---|
| 6 | 6 | |
| 7 | 7 | /*----------- defined in video/jedi.c -----------*/ |
| 8 | 8 | |
| 9 | extern UINT8 *jedi_foregroundram; | |
| 9 | 10 | extern UINT8 *jedi_backgroundram; |
| 10 | extern size_t jedi_backgroundram_size; | |
| 11 | extern UINT8 *jedi_spriteram; | |
| 12 | extern UINT8 *jedi_paletteram; | |
| 13 | extern UINT8 *jedi_foreground_bank; | |
| 11 | 14 | |
| 12 | 15 | VIDEO_START( jedi ); |
| 13 | 16 | VIDEO_UPDATE( jedi ); |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | /*----------- defined in video/kangaroo.c -----------*/ |
| 10 | 10 | |
| 11 | 11 | extern UINT8 *kangaroo_video_control; |
| 12 | extern UINT8 *kangaroo_bank_select; | |
| 13 | extern UINT8 *kangaroo_blitter; | |
| 14 | extern UINT8 *kangaroo_scroll; | |
| 15 | 12 | |
| 16 | 13 | PALETTE_INIT( kangaroo ); |
| 17 | 14 | VIDEO_START( kangaroo ); |
| r1649 | r1650 | |
| 20 | 17 | WRITE8_HANDLER( kangaroo_blitter_w ); |
| 21 | 18 | WRITE8_HANDLER( kangaroo_videoram_w ); |
| 22 | 19 | WRITE8_HANDLER( kangaroo_video_control_w ); |
| 23 | WRITE8_HANDLER( kangaroo_bank_select_w ); | |
| 24 | WRITE8_HANDLER( kangaroo_color_mask_w ); |
| r0 | r1650 | |
|---|---|---|
| 1 | /************************************************************************* | |
| 2 | ||
| 3 | Irem M58 hardware | |
| 4 | ||
| 5 | *************************************************************************/ | |
| 6 | ||
| 7 | /*----------- defined in video/m58.c -----------*/ | |
| 8 | ||
| 9 | extern UINT8 *yard_scroll_x_low; | |
| 10 | extern UINT8 *yard_scroll_x_high; | |
| 11 | extern UINT8 *yard_scroll_y_low; | |
| 12 | extern UINT8 *yard_score_panel_disabled; | |
| 13 | ||
| 14 | WRITE8_HANDLER( yard_videoram_w ); | |
| 15 | WRITE8_HANDLER( yard_scroll_panel_w ); | |
| 16 | ||
| 17 | PALETTE_INIT( yard ); | |
| 18 | VIDEO_START( yard ); | |
| 19 | VIDEO_UPDATE( yard ); |
| r0 | r1650 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | Time Pilot | |
| 4 | ||
| 5 | ***************************************************************************/ | |
| 6 | ||
| 7 | /*----------- defined in video/timeplt.c -----------*/ | |
| 8 | ||
| 9 | READ8_HANDLER( timeplt_scanline_r ); | |
| 10 | WRITE8_HANDLER( timeplt_videoram_w ); | |
| 11 | WRITE8_HANDLER( timeplt_colorram_w ); | |
| 12 | WRITE8_HANDLER( timeplt_flipscreen_w ); | |
| 13 | VIDEO_START( timeplt ); | |
| 14 | PALETTE_INIT( timeplt ); | |
| 15 | VIDEO_UPDATE( timeplt ); | |
| 16 | ||
| 17 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | #include "sound/custom.h" |
| 8 | 8 | |
| 9 | 9 | |
| 10 | #define EXIDY440_MASTER_CLOCK (129792 | |
| 10 | #define EXIDY440_MASTER_CLOCK (XTAL_12_9792MHz) | |
| 11 | 11 | #define EXIDY440_MAIN_CPU_CLOCK (EXIDY440_MASTER_CLOCK / 8) |
| 12 | 12 | #define EXIDY440_PIXEL_CLOCK (EXIDY440_MASTER_CLOCK / 2) |
| 13 | 13 | #define EXIDY440_HTOTAL (0x1a0) |
| r1649 | r1650 | |
| 31 | 31 | void exidy440_bank_select(UINT8 bank); |
| 32 | 32 | |
| 33 | 33 | |
| 34 | ||
| 35 | 34 | /*----------- defined in audio/exidy440.c -----------*/ |
| 36 | 35 | |
| 37 | 36 | extern UINT8 exidy440_sound_command; |
| 38 | 37 | extern UINT8 exidy440_sound_command_ack; |
| 39 | extern UINT8 *exidy440_m6844_data; | |
| 40 | extern UINT8 *exidy440_sound_banks; | |
| 41 | extern UINT8 *exidy440_sound_volume; | |
| 42 | 38 | |
| 43 | void *exidy440_sh_start(int clock, const struct CustomSound_interface *config); | |
| 44 | void exidy440_sh_stop(void *token); | |
| 39 | MACHINE_DRIVER_EXTERN( exidy440_audio ); | |
| 45 | 40 | |
| 46 | READ8_HANDLER( exidy440_m6844_r ); | |
| 47 | WRITE8_HANDLER( exidy440_m6844_w ); | |
| 48 | READ8_HANDLER( exidy440_sound_command_r ); | |
| 49 | WRITE8_HANDLER( exidy440_sound_volume_w ); | |
| 50 | WRITE8_HANDLER( exidy440_sound_interrupt_clear_w ); | |
| 51 | 41 | |
| 52 | ||
| 53 | 42 | /*----------- defined in video/exidy440.c -----------*/ |
| 54 | 43 | |
| 55 | 44 | extern UINT8 *exidy440_imageram; |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | #define STARFIRE_VBSTART (0x100) |
| 11 | 11 | |
| 12 | 12 | |
| 13 | /*----------- defined in | |
| 13 | /*----------- defined in | |
| 14 | 14 | |
| 15 | 15 | extern UINT8 *starfire_videoram; |
| 16 | 16 | extern UINT8 *starfire_colorram; |
| 17 | 17 | |
| 18 | ||
| 19 | /*----------- defined in video/starfire.c -----------*/ | |
| 20 | ||
| 21 | 18 | VIDEO_UPDATE( starfire ); |
| 22 | 19 | VIDEO_START( starfire ); |
| 23 | void starfire_video_update(int scanline, int count); | |
| 24 | 20 | |
| 25 | 21 | WRITE8_HANDLER( starfire_videoram_w ); |
| 26 | 22 | READ8_HANDLER( starfire_videoram_r ); |
| 27 | 23 | WRITE8_HANDLER( starfire_colorram_w ); |
| 28 | READ8_HANDLER( starfire_colorram_r ); | |
| 29 | 24 | WRITE8_HANDLER( starfire_vidctrl_w ); |
| 30 | 25 | WRITE8_HANDLER( starfire_vidctrl1_w ); |
| 31 | 26 |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | extern UINT8 *cclimber_bigspriteram; |
| 15 | 15 | extern UINT8 *cclimber_column_scroll; |
| 16 | 16 | |
| 17 | extern UINT8 *swimmer_bgcolor; | |
| 18 | extern UINT8 *swimmer_sidepanel_enabled; | |
| 19 | extern UINT8 *swimmer_palettebank; | |
| 20 | ||
| 17 | 21 | extern UINT8 *toprollr_videoram2; |
| 18 | 22 | extern UINT8 *toprollr_videoram3; |
| 19 | 23 | extern UINT8 *toprollr_videoram4; |
| 20 | 24 | |
| 21 | 25 | WRITE8_HANDLER( cclimber_colorram_w ); |
| 22 | WRITE8_HANDLER( cclimber_bigsprite_videoram_w ); | |
| 23 | 26 | PALETTE_INIT( cclimber ); |
| 24 | 27 | VIDEO_UPDATE( cclimber ); |
| 25 | 28 | |
| r1649 | r1650 | |
| 29 | 32 | VIDEO_START( toprollr ); |
| 30 | 33 | VIDEO_UPDATE( toprollr ); |
| 31 | 34 | |
| 32 | WRITE8_HANDLER( swimmer_bgcolor_w ); | |
| 33 | WRITE8_HANDLER( swimmer_palettebank_w ); | |
| 34 | 35 | PALETTE_INIT( swimmer ); |
| 35 | 36 | VIDEO_UPDATE( swimmer ); |
| 36 | WRITE8_HANDLER( swimmer_sidepanel_enable_w ); | |
| 37 | 37 | |
| 38 | 38 | |
| 39 | 39 | /*----------- defined in audio/cclimber.c -----------*/ |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | extern UINT8 centiped_flipscreen, *bullsdrt_tiles_bankram; |
| 10 | 10 | |
| 11 | PALETTE_INIT( centiped ); | |
| 12 | PALETTE_INIT( milliped ); | |
| 13 | 11 | PALETTE_INIT( warlords ); |
| 14 | 12 | |
| 15 | 13 | VIDEO_START( centiped ); |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | extern UINT8 *crgolf_screenb_enable; |
| 13 | 13 | extern UINT8 *crgolf_screena_enable; |
| 14 | 14 | |
| 15 | WRITE8_HANDLER( crgolf_videoram_bit0_w ); | |
| 16 | WRITE8_HANDLER( crgolf_videoram_bit1_w ); | |
| 17 | WRITE8_HANDLER( crgolf_videoram_bit2_w ); | |
| 15 | WRITE8_HANDLER( crgolf_videoram_w ); | |
| 16 | READ8_HANDLER( crgolf_videoram_r ); | |
| 18 | 17 | |
| 19 | READ8_HANDLER( crgolf_videoram_bit0_r ); | |
| 20 | READ8_HANDLER( crgolf_videoram_bit1_r ); | |
| 21 | READ8_HANDLER( crgolf_videoram_bit2_r ); | |
| 22 | ||
| 23 | PALETTE_INIT( crgolf ); | |
| 24 | VIDEO_START( crgolf ); | |
| 25 | VIDEO_UPDATE( crgolf ); | |
| 18 | MACHINE_DRIVER_EXTERN( crgolf_video ); |
| r1649 | r1650 | |
|---|---|---|
| 100 | 100 | |
| 101 | 101 | |
| 102 | 102 | WRITE8_HANDLER( williams_blitter_w ); |
| 103 | WRITE8_HANDLER( williams_paletteram_w ); | |
| 104 | 103 | WRITE8_HANDLER( blaster_remap_select_w ); |
| 105 | WRITE8_HANDLER( blaster_palette_0_w ); | |
| 106 | 104 | WRITE8_HANDLER( blaster_video_control_w ); |
| 107 | WRITE8_HANDLER( blaster_scanline_control_w ); | |
| 108 | 105 | READ8_HANDLER( williams_video_counter_r ); |
| 109 | 106 | READ8_HANDLER( williams2_video_counter_r ); |
| 110 | 107 | |
| r1649 | r1650 | |
| 118 | 115 | |
| 119 | 116 | |
| 120 | 117 | WRITE8_HANDLER( williams2_tileram_w ); |
| 121 | READ8_HANDLER( williams2_paletteram_r ); | |
| 122 | 118 | WRITE8_HANDLER( williams2_paletteram_w ); |
| 123 | 119 | WRITE8_HANDLER( williams2_fg_select_w ); |
| 124 | 120 | WRITE8_HANDLER( williams2_bg_select_w ); |
| r0 | r1650 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | Ms.Pac-Man/Galaga - 20 Year Reunion hardware | |
| 4 | ||
| 5 | driver by Nicola Salmoria | |
| 6 | ||
| 7 | ***************************************************************************/ | |
| 8 | ||
| 9 | ||
| 10 | typedef struct __20pacgal_state _20pacgal_state; | |
| 11 | struct __20pacgal_state | |
| 12 | { | |
| 13 | /* memory pointers */ | |
| 14 | UINT8 *char_gfx_ram; | |
| 15 | UINT8 *sprite_gfx_ram; | |
| 16 | UINT8 *video_ram; | |
| 17 | UINT8 *sprite_ram; | |
| 18 | UINT8 *sprite_color_lookup; | |
| 19 | UINT8 *flip_screen; | |
| 20 | ||
| 21 | /* machine state */ | |
| 22 | UINT8 game_selected; /* 0 = Ms. Pac-Man, 1 = Galaga */ | |
| 23 | }; | |
| 24 | ||
| 25 | ||
| 26 | ||
| 27 | /*----------- defined in video/20pacgal.c -----------*/ | |
| 28 | ||
| 29 | MACHINE_DRIVER_EXTERN( 20pacgal_video ); |
| r1649 | r1650 | |
|---|---|---|
| 164 | 164 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ |
| 165 | 165 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 166 | 166 | |
| 167 | #define SYS16_COINAGE PORT_START_TAG("DSW0") \ | |
| 168 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) \ | |
| 167 | #define SYS16_COINAGE PORT_START_TAG("DSW1") \ | |
| 168 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3,4") \ | |
| 169 | 169 | PORT_DIPSETTING( 0x07, DEF_STR( 4C_1C ) ) \ |
| 170 | 170 | PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) ) \ |
| 171 | 171 | PORT_DIPSETTING( 0x09, DEF_STR( 2C_1C ) ) \ |
| r1649 | r1650 | |
| 182 | 182 | PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ) ) \ |
| 183 | 183 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) ) \ |
| 184 | 184 | PORT_DIPSETTING( 0x00, "Free Play (if Coin B too) or 1/1" ) \ |
| 185 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) \ | |
| 185 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:5,6,7,8") \ | |
| 186 | 186 | PORT_DIPSETTING( 0x70, DEF_STR( 4C_1C ) ) \ |
| 187 | 187 | PORT_DIPSETTING( 0x80, DEF_STR( 3C_1C ) ) \ |
| 188 | 188 | PORT_DIPSETTING( 0x90, DEF_STR( 2C_1C ) ) \ |
| r0 | r1650 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | Pooyan | |
| 4 | ||
| 5 | ***************************************************************************/ | |
| 6 | ||
| 7 | /*----------- defined in video/pooyan.c -----------*/ | |
| 8 | ||
| 9 | WRITE8_HANDLER( pooyan_videoram_w ); | |
| 10 | WRITE8_HANDLER( pooyan_colorram_w ); | |
| 11 | WRITE8_HANDLER( pooyan_flipscreen_w ); | |
| 12 | ||
| 13 | PALETTE_INIT( pooyan ); | |
| 14 | VIDEO_START( pooyan ); | |
| 15 | VIDEO_UPDATE( pooyan ); |
| r1649 | r1650 | |
|---|---|---|
| 755 | 755 | $(MACHINE)/pgmy2ks.o \ |
| 756 | 756 | |
| 757 | 757 | $(MAMEOBJ)/irem.a: \ |
| 758 | $(DRIVERS)/m52.o $(VIDEO)/m52.o \ | |
| 759 | $(DRIVERS)/m57.o $(VIDEO)/m57.o \ | |
| 760 | $(DRIVERS)/m58.o $(VIDEO)/m58.o \ | |
| 758 | 761 | $(DRIVERS)/m62.o $(VIDEO)/m62.o \ |
| 759 | 762 | $(DRIVERS)/m72.o $(AUDIO)/m72.o $(VIDEO)/m72.o \ |
| 760 | 763 | $(DRIVERS)/m90.o $(VIDEO)/m90.o \ |
| 761 | 764 | $(DRIVERS)/m92.o $(VIDEO)/m92.o \ |
| 762 | 765 | $(DRIVERS)/m107.o $(VIDEO)/m107.o \ |
| 763 | $(DRIVERS)/mpatrol.o $(VIDEO)/mpatrol.o \ | |
| 764 | 766 | $(DRIVERS)/olibochu.o \ |
| 765 | 767 | $(DRIVERS)/redalert.o $(AUDIO)/redalert.o $(VIDEO)/redalert.o \ |
| 766 | 768 | $(DRIVERS)/shisen.o $(VIDEO)/shisen.o \ |
| 767 | 769 | $(DRIVERS)/skychut.o $(VIDEO)/skychut.o \ |
| 768 | 770 | $(DRIVERS)/travrusa.o $(VIDEO)/travrusa.o \ |
| 769 | $(DRIVERS)/troangel.o $(VIDEO)/troangel.o \ | |
| 770 | 771 | $(DRIVERS)/vigilant.o $(VIDEO)/vigilant.o \ |
| 771 | 772 | $(DRIVERS)/wilytowr.o \ |
| 772 | $(DRIVERS)/yard.o $(VIDEO)/yard.o \ | |
| 773 | 773 | $(MACHINE)/irem_cpu.o \ |
| 774 | 774 | $(AUDIO)/fghtbskt.o \ |
| 775 | 775 | $(AUDIO)/irem.o \ |
| r1649 | r1650 | |
| 1289 | 1289 | $(DRIVERS)/ashnojoe.o $(VIDEO)/ashnojoe.o \ |
| 1290 | 1290 | $(DRIVERS)/asuka.o $(MACHINE)/bonzeadv.o $(VIDEO)/asuka.o \ |
| 1291 | 1291 | $(DRIVERS)/bigevglf.o $(MACHINE)/bigevglf.o $(VIDEO)/bigevglf.o \ |
| 1292 | $(DRIVERS)/bking | |
| 1292 | $(DRIVERS)/bking | |
| 1293 | 1293 | $(DRIVERS)/bublbobl.o $(MACHINE)/bublbobl.o $(VIDEO)/bublbobl.o \ |
| 1294 | 1294 | $(DRIVERS)/buggychl.o $(MACHINE)/buggychl.o $(VIDEO)/buggychl.o \ |
| 1295 | 1295 | $(DRIVERS)/chaknpop.o $(MACHINE)/chaknpop.o $(VIDEO)/chaknpop.o \ |
| r1649 | r1650 | |
| 1357 | 1357 | $(VIDEO)/taitoic.o \ |
| 1358 | 1358 | |
| 1359 | 1359 | $(MAMEOBJ)/tatsumi.a: \ |
| 1360 | $(DRIVERS)/lockon.o \ | |
| 1360 | $(DRIVERS)/tx1.o $(MACHINE)/tx1.o $(AUDIO)/tx1.o $(VIDEO)/tx1.o \ | |
| 1361 | $(DRIVERS)/lockon.o $(VIDEO)/lockon.o \ | |
| 1361 | 1362 | $(DRIVERS)/tatsumi.o $(MACHINE)/tatsumi.o $(VIDEO)/tatsumi.o \ |
| 1362 | $(DRIVERS)/tx1.o $(MACHINE)/tx1.o $(AUDIO)/tx1.o $(VIDEO)/tx1.o \ | |
| 1363 | 1363 | |
| 1364 | 1364 | $(MAMEOBJ)/tch.a: \ |
| 1365 | 1365 | $(DRIVERS)/kickgoal.o $(VIDEO)/kickgoal.o \ |
| r1649 | r1650 | |
| 1503 | 1503 | $(DRIVERS)/acefruit.o \ |
| 1504 | 1504 | $(DRIVERS)/adp.o \ |
| 1505 | 1505 | $(DRIVERS)/ambush.o $(VIDEO)/ambush.o \ |
| 1506 | $(DRIVERS)/ampoker.o $(VIDEO)/ampoker.o \ | |
| 1506 | $(DRIVERS)/ampoker2.o $(VIDEO)/ampoker2.o \ | |
| 1507 | 1507 | $(DRIVERS)/amspdwy.o $(VIDEO)/amspdwy.o \ |
| 1508 | 1508 | $(DRIVERS)/artmagic.o $(VIDEO)/artmagic.o \ |
| 1509 | 1509 | $(DRIVERS)/attckufo.o $(AUDIO)/attckufo.o $(VIDEO)/attckufo.o \ |
| r1649 | r1650 | |
| 1540 | 1540 | $(DRIVERS)/fortecar.o \ |
| 1541 | 1541 | $(DRIVERS)/freekick.o $(VIDEO)/freekick.o \ |
| 1542 | 1542 | $(DRIVERS)/funworld.o $(VIDEO)/funworld.o \ |
| 1543 | $(DRIVERS)/galgames.o \ | |
| 1543 | 1544 | $(DRIVERS)/gamecstl.o \ |
| 1544 | 1545 | $(DRIVERS)/gdrawpkr.o $(VIDEO)/gdrawpkr.o \ |
| 1545 | 1546 | $(DRIVERS)/gtipoker.o \ |
| r1649 | r1650 | |
| 1641 | 1642 | |
| 1642 | 1643 | $(DRIVERS)/acefruit.o: $(LAYOUT)/sidewndr.lh |
| 1643 | 1644 | |
| 1644 | $(DRIVERS)/ampoker.o: $(LAYOUT)/ampoker.lh \ | |
| 1645 | $(DRIVERS)/ampoker2.o: $(LAYOUT)/ampoker2.lh \ | |
| 1645 | 1646 | $(LAYOUT)/sigmapkr.lh \ |
| 1646 | 1647 | |
| 1647 | 1648 | $(DRIVERS)/astrocde.o: $(LAYOUT)/tenpindx.lh |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | |
| 3 | 4 | |
| 4 | 5 | UINT16 *galspnbl_bgvideoram,*galspnbl_videoram,*galspnbl_colorram; |
| r1649 | r1650 | |
| 113 | 114 | |
| 114 | 115 | |
| 115 | 116 | /* copy the temporary bitmap to the screen */ |
| 116 | copyscrollbitmap(bitmap,tmpbitmap,1,&screenscroll,0,0,cliprect | |
| 117 | copyscrollbitmap(bitmap,tmpbitmap,1,&screenscroll,0,0,cliprect | |
| 117 | 118 | |
| 118 | 119 | draw_sprites(machine,bitmap,cliprect,0); |
| 119 | 120 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | |
| 3 | 4 | UINT8 *blktiger_txvideoram; |
| 4 | 5 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | |
| 2 | 2 | #include "driver.h" |
| 3 | #include "deprecat.h" | |
| 3 | 4 | |
| 4 | 5 | static tilemap *bg_layer,*fg_layer,*tx_layer; |
| 5 | 6 | UINT16 *dynduke_back_data,*dynduke_fore_data,*dynduke_scroll_ram; |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | |
| 13 | 14 | extern int mlc_raster_table[9][256]; |
| 14 | 15 | extern UINT32 mlc_clipper[32]; |
| r1649 | r1650 | |
|---|---|---|
| 6 | 6 | ****************************************************************/ |
| 7 | 7 | |
| 8 | 8 | #include "driver.h" |
| 9 | #include "deprecat.h" | |
| 9 | 10 | |
| 10 | 11 | static tilemap *fg_tilemap, *bg_tilemap; |
| 11 | 12 | static UINT8 vram_bank; |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | |
| 11 | 12 | UINT16 *madmotor_pf1_rowscroll; |
| 12 | 13 | UINT16 *madmotor_pf1_data,*madmotor_pf2_data,*madmotor_pf3_data; |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | |
| 3 | 4 | static UINT8 bg_color, old_bg_color; |
| 4 | 5 | #define mainsnk_offset 8 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | **************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "profiler.h" |
| 9 | 10 | #include "cpu/tms34010/tms34010.h" |
| 10 | 11 | #include "cpu/tms34010/34010ops.h" |
| r1649 | r1650 | |
|---|---|---|
| 29 | 29 | * Everything else! :) |
| 30 | 30 | */ |
| 31 | 31 | |
| 32 | #include <ctype.h> | |
| 33 | 32 | #include "driver.h" |
| 33 | #include "deprecat.h" | |
| 34 | 34 | #include "namcond1.h" // only while debugging |
| 35 | 35 | #include "video/ygv608.h" |
| 36 | 36 | |
| r1649 | r1650 | |
| 895 | 895 | TRANSPARENCY_NONE, 0, 0 ); |
| 896 | 896 | else |
| 897 | 897 | #endif |
| 898 | copybitmap( bitmap, work_bitmap, 0, 0, 0, 0, | |
| 899 | cliprect, | |
| 900 | TRANSPARENCY_NONE, 0 ); | |
| 898 | copybitmap( bitmap, work_bitmap, 0, 0, 0, 0, cliprect); | |
| 901 | 899 | |
| 902 | 900 | // for some reason we can't use an opaque tilemap_A |
| 903 | 901 | // so use a transparent but clear the work bitmap first |
| r1649 | r1650 | |
| 922 | 920 | TRANSPARENCY_PEN, machine->pens[0], 0 ); |
| 923 | 921 | else |
| 924 | 922 | #endif |
| 925 | copybitmap( bitmap, work_bitmap, 0, 0, 0, 0, | |
| 926 | cliprect, | |
| 927 | TRANSPARENCY_PEN, machine->pens[0] ); | |
| 923 | copybitmap_trans( bitmap, work_bitmap, 0, 0, 0, 0, cliprect, machine->pens[0] ); | |
| 928 | 924 | |
| 929 | 925 | if ((ygv608.regs.s.r11 & r11_prm) == PRM_SABDEX || |
| 930 | 926 | (ygv608.regs.s.r11 & r11_prm) == PRM_SEABDX) |
| r1649 | r1650 | |
| 1380 | 1376 | if( i%16 == 0 ) |
| 1381 | 1377 | logerror( "%04X: ", offset ); |
| 1382 | 1378 | logerror( "%02X ", data ); |
| 1383 | ascii[i%16] = ( | |
| 1379 | ascii[i%16] = ( | |
| 1384 | 1380 | if( i%16 == 15 ) |
| 1385 | 1381 | logerror( "| %-16.16s\n", ascii ); |
| 1386 | 1382 | } |
| r1649 | r1650 | |
| 1644 | 1640 | if( i % 16 == 0 ) |
| 1645 | 1641 | logerror( "$%04X : ", i ); |
| 1646 | 1642 | logerror( "%02X ", ygv608.pattern_name_table[i] ); |
| 1647 | if( | |
| 1643 | if( | |
| 1648 | 1644 | ascii[i%16] = ygv608.pattern_name_table[i]; |
| 1649 | 1645 | else |
| 1650 | 1646 | ascii[i%16] = '.'; |
| r1649 | r1650 | |
| 1663 | 1659 | if( i % 16 == 0 ) |
| 1664 | 1660 | logerror( "$%04X : ", i ); |
| 1665 | 1661 | logerror( "%02X ", ygv608.scroll_data_table[0][i] ); |
| 1666 | if( | |
| 1662 | if( | |
| 1667 | 1663 | ascii[i%16] = ygv608.scroll_data_table[0][i]; |
| 1668 | 1664 | else |
| 1669 | 1665 | ascii[i%16] = '.'; |
| r1649 | r1650 | |
|---|---|---|
| 17 | 17 | |
| 18 | 18 | |
| 19 | 19 | #include "driver.h" |
| 20 | #include "deprecat.h" | |
| 20 | 21 | |
| 21 | 22 | static int vdp1_sprite_log = 0; |
| 22 | 23 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ******************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | |
| 12 | 13 | |
| 13 | 14 | #define VRAM_MAX 2 |
| r1649 | r1650 | |
| 500 | 501 | } |
| 501 | 502 | |
| 502 | 503 | if (nbmj9195_dispflag[0]) |
| 503 | { | |
| 504 | 504 | // nbmj9195 1layer |
| 505 | copyscrollbitmap(bitmap, nbmj9195_tmpbitmap[0], SCANLINE_MAX, nbmj9195_scrollx_raster[0], 1, &scrolly[0], &machine->screen[0].visarea, TRANSPARENCY_NONE, 0); | |
| 506 | } | |
| 505 | copyscrollbitmap(bitmap, nbmj9195_tmpbitmap[0], SCANLINE_MAX, nbmj9195_scrollx_raster[0], 1, &scrolly[0], cliprect); | |
| 507 | 506 | else |
| 508 | { | |
| 509 | 507 | fillbitmap(bitmap, machine->pens[0x0ff], 0); |
| 510 | } | |
| 511 | 508 | |
| 512 | 509 | if (nbmj9195_dispflag[1]) |
| 513 | 510 | { |
| 514 | 511 | if (gfxdraw_mode == 1) |
| 515 | { | |
| 516 | 512 | // nbmj9195 2layer |
| 517 | copyscrollbitmap(bitmap, nbmj9195_tmpbitmap[1], SCANLINE_MAX, nbmj9195_scrollx_raster[1], 1, &scrolly[1], &machine->screen[0].visarea, TRANSPARENCY_PEN, machine->pens[0x0ff]); | |
| 518 | } | |
| 513 | copyscrollbitmap_trans(bitmap, nbmj9195_tmpbitmap[1], SCANLINE_MAX, nbmj9195_scrollx_raster[1], 1, &scrolly[1], cliprect, machine->pens[0x0ff]); | |
| 514 | ||
| 519 | 515 | if (gfxdraw_mode == 2) |
| 520 | { | |
| 521 | 516 | // nbmj9195 nb22090 2layer |
| 522 | copyscrollbitmap(bitmap, nbmj9195_tmpbitmap[1], SCANLINE_MAX, nbmj9195_scrollx_raster[1], 1, &scrolly[1], &machine->screen[0].visarea, TRANSPARENCY_PEN, machine->pens[0x1ff]); | |
| 523 | } | |
| 517 | copyscrollbitmap_trans(bitmap, nbmj9195_tmpbitmap[1], SCANLINE_MAX, nbmj9195_scrollx_raster[1], 1, &scrolly[1], cliprect, machine->pens[0x1ff]); | |
| 524 | 518 | } |
| 525 | 519 | return 0; |
| 526 | 520 | } |
| r1649 | r1650 | |
|---|---|---|
| 3 | 3 | */ |
| 4 | 4 | |
| 5 | 5 | #include "driver.h" |
| 6 | #include "deprecat.h" | |
| 6 | 7 | #include "deco16ic.h" |
| 7 | 8 | |
| 8 | 9 | /* |
| r1649 | r1650 | |
|---|---|---|
| 16 | 16 | |
| 17 | 17 | PALETTE_INIT( hcastle ) |
| 18 | 18 | { |
| 19 | int | |
| 19 | int | |
| 20 | 20 | |
| 21 | for (chip = 0;chip < 2;chip++) | |
| 21 | /* allocate the colortable */ | |
| 22 | machine->colortable = colortable_alloc(machine, 0x80); | |
| 23 | ||
| 24 | for (chip = 0; chip < 2; chip++) | |
| 22 | 25 | { |
| 23 | for (pal = 0;pal < 8;pal++) | |
| 26 | int pal; | |
| 27 | ||
| 28 | for (pal = 0; pal < 8; pal++) | |
| 24 | 29 | { |
| 25 | clut = (pal & 1) + 2 * chip; | |
| 26 | for (i = 0;i < 256;i++) | |
| 30 | int i; | |
| 31 | int clut = (chip << 1) | (pal & 1); | |
| 32 | ||
| 33 | for (i = 0; i < 0x100; i++) | |
| 27 | 34 | { |
| 28 | if ((pal & 1) == 0) /* sprites */ | |
| 29 | { | |
| 30 | if (color_prom[256 * clut + i] == 0) | |
| 31 | *(colortable++) = 0; | |
| 32 | else | |
| 33 | *(colortable++) = 16 * pal + color_prom[256 * clut + i]; | |
| 34 | } | |
| 35 | UINT8 ctabentry; | |
| 36 | ||
| 37 | if (((pal & 0x01) == 0) && (color_prom[(clut << 8) | i] == 0)) | |
| 38 | ctabentry = 0; | |
| 35 | 39 | else |
| 36 | *(colortable++) = 16 * pal + color_prom[256 * clut + i]; | |
| 40 | ctabentry = (pal << 4) | (color_prom[(clut << 8) | i] & 0x0f); | |
| 41 | ||
| 42 | colortable_entry_set_value(machine->colortable, (chip << 11) | (pal << 8) | i, ctabentry); | |
| 37 | 43 | } |
| 38 | 44 | } |
| 39 | 45 | } |
| 40 | 46 | } |
| 41 | 47 | |
| 42 | 48 | |
| 49 | static void set_pens(running_machine *machine) | |
| 50 | { | |
| 51 | int i; | |
| 43 | 52 | |
| 53 | for (i = 0x00; i < 0x100; i += 2) | |
| 54 | { | |
| 55 | UINT16 data = paletteram[i | 1] | (paletteram[i] << 8); | |
| 44 | 56 | |
| 57 | rgb_t color = MAKE_RGB(pal5bit(data >> 0), pal5bit(data >> 5), pal5bit(data >> 10)); | |
| 58 | ||
| 59 | colortable_palette_set_color(machine->colortable, i >> 1, color); | |
| 60 | } | |
| 61 | } | |
| 62 | ||
| 63 | ||
| 64 | ||
| 45 | 65 | /*************************************************************************** |
| 46 | 66 | |
| 47 | 67 | Callbacks for the TileMap code |
| r1649 | r1650 | |
| 181 | 201 | static void draw_sprites(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect, UINT8 *sbank, int bank ) |
| 182 | 202 | { |
| 183 | 203 | int bank_base = (bank == 0) ? 0x4000 * (gfx_bank & 1) : 0; |
| 184 | K007121_sprites_draw(machine, | |
| 204 | K007121_sprites_draw(bank,bitmap,machine->gfx,mach | |
| 185 | 205 | } |
| 186 | 206 | |
| 187 | 207 | /*****************************************************************************/ |
| r1649 | r1650 | |
| 190 | 210 | { |
| 191 | 211 | static int old_pf1,old_pf2; |
| 192 | 212 | |
| 213 | set_pens(machine); | |
| 193 | 214 | |
| 194 | 215 | pf1_bankbase = 0x0000; |
| 195 | 216 | pf2_bankbase = 0x4000 * ((gfx_bank & 2) >> 1); |
| r0 | r1650 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | bking.c | |
| 4 | ||
| 5 | Functions to emulate the video hardware of the machine. | |
| 6 | ||
| 7 | ***************************************************************************/ | |
| 8 | ||
| 9 | #include "driver.h" | |
| 10 | #include "video/resnet.h" | |
| 11 | ||
| 12 | ||
| 13 | extern UINT8* bking_playfield_ram; | |
| 14 | ||
| 15 | ||
| 16 | static int pc3259_output[4]; | |
| 17 | static int pc3259_mask; | |
| 18 | ||
| 19 | static UINT8 xld1; | |
| 20 | static UINT8 xld2; | |
| 21 | static UINT8 xld3; | |
| 22 | static UINT8 yld1; | |
| 23 | static UINT8 yld2; | |
| 24 | static UINT8 yld3; | |
| 25 | ||
| 26 | static int ball1_pic; | |
| 27 | static int ball2_pic; | |
| 28 | static int crow_pic; | |
| 29 | static int crow_flip; | |
| 30 | static int palette_bank; | |
| 31 | static int controller; | |
| 32 | static int hit; | |
| 33 | ||
| 34 | static mame_bitmap* helper0; | |
| 35 | static mame_bitmap* helper1; | |
| 36 | ||
| 37 | static tilemap* bg_tilemap; | |
| 38 | ||
| 39 | ||
| 40 | /*************************************************************************** | |
| 41 | ||
| 42 | Convert the color PROMs into a more useable format. | |
| 43 | ||
| 44 | The palette PROM is connected to the RGB output this way: | |
| 45 | ||
| 46 | bit 7 -- 390 ohm resistor -- BLUE | |
| 47 | -- 220 ohm resistor -- BLUE | |
| 48 | -- 820 ohm resistor -- GREEN | |
| 49 | -- 390 ohm resistor -- GREEN | |
| 50 | -- 220 ohm resistor -- GREEN | |
| 51 | -- 820 ohm resistor -- RED | |
| 52 | -- 390 ohm resistor -- RED | |
| 53 | bit 0 -- 220 ohm resistor -- RED | |
| 54 | ||
| 55 | ***************************************************************************/ | |
| 56 | ||
| 57 | PALETTE_INIT( bking ) | |
| 58 | { | |
| 59 | static const int resistances_rg[3] = { 220, 390, 820 }; | |
| 60 | static const int resistances_b [2] = { 220, 390 }; | |
| 61 | double rweights[3], gweights[3], bweights[2]; | |
| 62 | int i; | |
| 63 | ||
| 64 | /* compute the color output resistor weights */ | |
| 65 | compute_resistor_weights(0, 255, -1.0, | |
| 66 | 3, &resistances_rg[0], rweights, 0, 0, | |
| 67 | 3, &resistances_rg[0], gweights, 0, 0, | |
| 68 | 2, &resistances_b[0], bweights, 0, 0); | |
| 69 | ||
| 70 | for (i = 0; i < machine->drv->total_colors; i++) | |
| 71 | { | |
| 72 | UINT16 pen; | |
| 73 | int bit0, bit1, bit2, r, g, b; | |
| 74 | ||
| 75 | /* color PROM A7-A8 is the palette select */ | |
| 76 | if (i < 0x20) | |
| 77 | /* characters - image bits go to A0-A2 of the color PROM */ | |
| 78 | pen = (((i - 0x00) << 4) & 0x180) | ((i - 0x00) & 0x07); | |
| 79 | else if (i < 0x30) | |
| 80 | /* crow - image bits go to A5-A6. */ | |
| 81 | pen = (((i - 0x20) << 5) & 0x180) | (((i - 0x20) & 0x03) << 5); | |
| 82 | else if (i < 0x38) | |
| 83 | /* ball #1 - image bit goes to A3 */ | |
| 84 | pen = (((i - 0x30) << 6) & 0x180) | (((i - 0x30) & 0x01) << 3); | |
| 85 | else | |
| 86 | /* ball #2 - image bit goes to A4 */ | |
| 87 | pen = (((i - 0x38) << 6) & 0x180) | (((i - 0x38) & 0x01) << 4); | |
| 88 | ||
| 89 | /* red component */ | |
| 90 | bit0 = (color_prom[pen] >> 0) & 0x01; | |
| 91 | bit1 = (color_prom[pen] >> 1) & 0x01; | |
| 92 | bit2 = (color_prom[pen] >> 2) & 0x01; | |
| 93 | r = combine_3_weights(rweights, bit0, bit1, bit2); | |
| 94 | ||
| 95 | /* green component */ | |
| 96 | bit0 = (color_prom[pen] >> 3) & 0x01; | |
| 97 | bit1 = (color_prom[pen] >> 4) & 0x01; | |
| 98 | bit2 = (color_prom[pen] >> 5) & 0x01; | |
| 99 | g = combine_3_weights(gweights, bit0, bit1, bit2); | |
| 100 | ||
| 101 | /* blue component */ | |
| 102 | bit0 = (color_prom[pen] >> 6) & 0x01; | |
| 103 | bit1 = (color_prom[pen] >> 7) & 0x01; | |
| 104 | b = combine_2_weights(gweights, bit0, bit1); | |
| 105 | ||
| 106 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); | |
| 107 | } | |
| 108 | } | |
| 109 | ||
| 110 | ||
| 111 | WRITE8_HANDLER( bking_xld1_w ) | |
| 112 | { | |
| 113 | xld1 = -data; | |
| 114 | } | |
| 115 | ||
| 116 | WRITE8_HANDLER( bking_yld1_w ) | |
| 117 | { | |
| 118 | yld1 = -data; | |
| 119 | } | |
| 120 | ||
| 121 | WRITE8_HANDLER( bking_xld2_w ) | |
| 122 | { | |
| 123 | xld2 = -data; | |
| 124 | } | |
| 125 | ||
| 126 | WRITE8_HANDLER( bking_yld2_w ) | |
| 127 | { | |
| 128 | yld2 = -data; | |
| 129 | } | |
| 130 | ||
| 131 | WRITE8_HANDLER( bking_xld3_w ) | |
| 132 | { | |
| 133 | xld3 = -data; | |
| 134 | } | |
| 135 | ||
| 136 | WRITE8_HANDLER( bking_yld3_w ) | |
| 137 | { | |
| 138 | yld3 = -data; | |
| 139 | } | |
| 140 | ||
| 141 | ||
| 142 | WRITE8_HANDLER( bking_cont1_w ) | |
| 143 | { | |
| 144 | /* D0 = COIN LOCK */ | |
| 145 | /* D1 = BALL 5 (Controller selection) */ | |
| 146 | /* D2 = VINV (flip screen) */ | |
| 147 | /* D3 = Not Connected */ | |
| 148 | /* D4-D7 = CROW0-CROW3 (selects crow picture) */ | |
| 149 | ||
| 150 | coin_lockout_global_w(~data & 0x01); | |
| 151 | ||
| 152 | flip_screen = data & 0x04; | |
| 153 | ||
| 154 | tilemap_set_flip(ALL_TILEMAPS, flip_screen ? TILEMAP_FLIPX | TILEMAP_FLIPY : 0); | |
| 155 | ||
| 156 | controller = data & 0x02; | |
| 157 | ||
| 158 | crow_pic = (data >> 4) & 0x0f; | |
| 159 | } | |
| 160 | ||
| 161 | WRITE8_HANDLER( bking_cont2_w ) | |
| 162 | { | |
| 163 | /* D0-D2 = BALL10 - BALL12 (Selects player 1 ball picture) */ | |
| 164 | /* D3-D5 = BALL20 - BALL22 (Selects player 2 ball picture) */ | |
| 165 | /* D6 = HIT1 */ | |
| 166 | /* D7 = HIT2 */ | |
| 167 | ||
| 168 | ball1_pic = (data >> 0) & 0x07; | |
| 169 | ball2_pic = (data >> 3) & 0x07; | |
| 170 | ||
| 171 | hit = data >> 6; | |
| 172 | } | |
| 173 | ||
| 174 | WRITE8_HANDLER( bking_cont3_w ) | |
| 175 | { | |
| 176 | /* D0 = CROW INV (inverts Crow picture and coordinates) */ | |
| 177 | /* D1-D2 = COLOR 0 - COLOR 1 (switches 4 color palettes, global across all graphics) */ | |
| 178 | /* D3 = SOUND STOP */ | |
| 179 | ||
| 180 | crow_flip = ~data & 0x01; | |
| 181 | ||
| 182 | if (palette_bank != ((data >> 1) & 0x03)) | |
| 183 | { | |
| 184 | tilemap_mark_all_tiles_dirty(bg_tilemap); | |
| 185 | } | |
| 186 | ||
| 187 | palette_bank = (data >> 1) & 0x03; | |
| 188 | ||
| 189 | sound_global_enable(~data & 0x08); | |
| 190 | } | |
| 191 | ||
| 192 | ||
| 193 | WRITE8_HANDLER( bking_msk_w ) | |
| 194 | { | |
| 195 | pc3259_mask++; | |
| 196 | } | |
| 197 | ||
| 198 | ||
| 199 | WRITE8_HANDLER( bking_hitclr_w ) | |
| 200 | { | |
| 201 | pc3259_mask = 0; | |
| 202 | ||
| 203 | pc3259_output[0] = 0; | |
| 204 | pc3259_output[1] = 0; | |
| 205 | pc3259_output[2] = 0; | |
| 206 | pc3259_output[3] = 0; | |
| 207 | } | |
| 208 | ||
| 209 | ||
| 210 | WRITE8_HANDLER( bking_playfield_w ) | |
| 211 | { | |
| 212 | bking_playfield_ram[offset] = data; | |
| 213 | tilemap_mark_tile_dirty(bg_tilemap, offset / 2); | |
| 214 | } | |
| 215 | ||
| 216 | ||
| 217 | READ8_HANDLER( bking_input_port_5_r ) | |
| 218 | { | |
| 219 | return readinputport(controller ? 7 : 5); | |
| 220 | } | |
| 221 | ||
| 222 | READ8_HANDLER( bking_input_port_6_r ) | |
| 223 | { | |
| 224 | return readinputport(controller ? 8 : 6); | |
| 225 | } | |
| 226 | ||
| 227 | READ8_HANDLER( bking_pos_r ) | |
| 228 | { | |
| 229 | return pc3259_output[offset / 8] << 4; | |
| 230 | } | |
| 231 | ||
| 232 | ||
| 233 | static TILE_GET_INFO( get_tile_info ) | |
| 234 | { | |
| 235 | UINT8 code0 = bking_playfield_ram[2 * tile_index + 0]; | |
| 236 | UINT8 code1 = bking_playfield_ram[2 * tile_index + 1]; | |
| 237 | ||
| 238 | int flags = 0; | |
| 239 | ||
| 240 | if (code1 & 4) flags |= TILE_FLIPX; | |
| 241 | if (code1 & 8) flags |= TILE_FLIPY; | |
| 242 | ||
| 243 | SET_TILE_INFO(0, code0 + 256 * code1, palette_bank, flags); | |
| 244 | } | |
| 245 | ||
| 246 | ||
| 247 | VIDEO_START( bking ) | |
| 248 | { | |
| 249 | bg_tilemap = tilemap_create(get_tile_info, tilemap_scan_rows, 0, 8, 8, 32, 32); | |
| 250 | helper0 = auto_bitmap_alloc(machine->screen[0].width, machine->screen[0].height, machine->screen[0].format); | |
| 251 | helper1 = auto_bitmap_alloc(machine->screen[0].width, machine->screen[0].height, machine->screen[0].format); | |
| 252 | } | |
| 253 | ||
| 254 | ||
| 255 | VIDEO_UPDATE( bking ) | |
| 256 | { | |
| 257 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); | |
| 258 | ||
| 259 | /* draw the balls */ | |
| 260 | ||
| 261 | drawgfx(bitmap, machine->gfx[2], | |
| 262 | ball1_pic, | |
| 263 | palette_bank, | |
| 264 | 0, 0, | |
| 265 | xld1, yld1, | |
| 266 | cliprect, TRANSPARENCY_PEN, 0); | |
| 267 | ||
| 268 | drawgfx(bitmap, machine->gfx[3], | |
| 269 | ball2_pic, | |
| 270 | palette_bank, | |
| 271 | 0, 0, | |
| 272 | xld2, yld2, | |
| 273 | cliprect, TRANSPARENCY_PEN, 0); | |
| 274 | ||
| 275 | /* draw the crow */ | |
| 276 | ||
| 277 | drawgfx(bitmap, machine->gfx[1], | |
| 278 | crow_pic, | |
| 279 | palette_bank, | |
| 280 | crow_flip, crow_flip, | |
| 281 | crow_flip ? xld3 - 16 : 256 - xld3, crow_flip ? yld3 - 16 : 256 - yld3, | |
| 282 | cliprect, TRANSPARENCY_PEN, 0); | |
| 283 | return 0; | |
| 284 | } | |
| 285 | ||
| 286 | ||
| 287 | VIDEO_EOF( bking ) | |
| 288 | { | |
| 289 | static const rectangle rect = { 0, 7, 0, 15 }; | |
| 290 | ||
| 291 | int xld = 0; | |
| 292 | int yld = 0; | |
| 293 | ||
| 294 | UINT32 latch = 0; | |
| 295 | ||
| 296 | if (pc3259_mask == 6) /* player 1 */ | |
| 297 | { | |
| 298 | xld = xld1; | |
| 299 | yld = yld1; | |
| 300 | ||
| 301 | drawgfx(helper1, machine->gfx[2], | |
| 302 | ball1_pic, | |
| 303 | 0, | |
| 304 | 0, 0, | |
| 305 | 0, 0, | |
| 306 | &rect, TRANSPARENCY_NONE, 0); | |
| 307 | ||
| 308 | latch = 0x0C00; | |
| 309 | } | |
| 310 | ||
| 311 | if (pc3259_mask == 3) /* player 2 */ | |
| 312 | { | |
| 313 | xld = xld2; | |
| 314 | yld = yld2; | |
| 315 | ||
| 316 | drawgfx(helper1, machine->gfx[3], | |
| 317 | ball2_pic, | |
| 318 | 0, | |
| 319 | 0, 0, | |
| 320 | 0, 0, | |
| 321 | &rect, TRANSPARENCY_NONE, 0); | |
| 322 | ||
| 323 | latch = 0x0400; | |
| 324 | } | |
| 325 | ||
| 326 | tilemap_set_scrollx(bg_tilemap, 0, flip_screen ? -xld : xld); | |
| 327 | tilemap_set_scrolly(bg_tilemap, 0, flip_screen ? -yld : yld); | |
| 328 | ||
| 329 | tilemap_draw(helper0, &rect, bg_tilemap, 0, 0); | |
| 330 | ||
| 331 | tilemap_set_scrollx(bg_tilemap, 0, 0); | |
| 332 | tilemap_set_scrolly(bg_tilemap, 0, 0); | |
| 333 | ||
| 334 | if (latch != 0) | |
| 335 | { | |
| 336 | const UINT8* MASK = memory_region(REGION_USER1) + 8 * hit; | |
| 337 | ||
| 338 | int x; | |
| 339 | int y; | |
| 340 | ||
| 341 | for (y = rect.min_y; y <= rect.max_y; y++) | |
| 342 | { | |
| 343 | const UINT16* p0 = BITMAP_ADDR16(helper0, y, 0); | |
| 344 | const UINT16* p1 = BITMAP_ADDR16(helper1, y, 0); | |
| 345 | ||
| 346 | for (x = rect.min_x; x <= rect.max_x; x++) | |
| 347 | { | |
| 348 | if (MASK[p0[x] & 7] && p1[x]) | |
| 349 | { | |
| 350 | int col = (xld + x) / 8 + 1; | |
| 351 | int row = (yld + y) / 8 + 0; | |
| 352 | ||
| 353 | latch |= (flip_screen ? 31 - col : col) << 0; | |
| 354 | latch |= (flip_screen ? 31 - row : row) << 5; | |
| 355 | ||
| 356 | pc3259_output[0] = (latch >> 0x0) & 0xf; | |
| 357 | pc3259_output[1] = (latch >> 0x4) & 0xf; | |
| 358 | pc3259_output[2] = (latch >> 0x8) & 0xf; | |
| 359 | pc3259_output[3] = (latch >> 0xc) & 0xf; | |
| 360 | ||
| 361 | return; | |
| 362 | } | |
| 363 | } | |
| 364 | } | |
| 365 | } | |
| 366 | } |
| r1649 | r1650 | |
|---|---|---|
| 21 | 21 | |
| 22 | 22 | |
| 23 | 23 | /* Globals */ |
| 24 | UINT8 *arabian_blitter; | |
| 24 | 25 | UINT8 arabian_video_control; |
| 25 | 26 | UINT8 arabian_flip_screen; |
| 26 | 27 | |
| r1649 | r1650 | |
| 36 | 37 | { |
| 37 | 38 | int i; |
| 38 | 39 | |
| 39 | /* there are effectively 6 bits of color: 2 red, 2 green, 2 blue */ | |
| 40 | for (i = 0; i < 64; i++) | |
| 41 | { | |
| 42 | palette_set_color_rgb(machine, i, | |
| 43 | ((i >> 5) & 1) * (153*192/255) + ((i >> 4) & 1) * (102*192/255) + ((i & 0x30) ? 63 : 0), | |
| 44 | ((i >> 3) & 1) * (156*192/255) + ((i >> 2) & 1) * (99*192/255) + ((i & 0x0c) ? 63 : 0), | |
| 45 | ((i >> 1) & 1) * 192 + ((i >> 0) & 1) * 63); | |
| 46 | } | |
| 47 | ||
| 48 | 40 | /* there are 13 color table bits */ |
| 49 | 41 | for (i = 0; i < (1 << 13); i++) |
| 50 | 42 | { |
| 43 | int r, g, b; | |
| 44 | ||
| 51 | 45 | int ena = (i >> 12) & 1; |
| 52 | 46 | int enb = (i >> 11) & 1; |
| 53 | 47 | int abhf = (~i >> 10) & 1; |
| r1649 | r1650 | |
| 146 | 140 | int bhi = ab; |
| 147 | 141 | int bbase = (!abhf & az) ? 0 : ab; |
| 148 | 142 | |
| 149 | *colortable++ = (rhi << 5) | (rlo << 4) | | |
| 150 | (ghi << 3) | (glo << 2) | | |
| 151 | (bhi << 1) | bbase; | |
| 143 | /* convert an RGB color - | |
| 144 | there are effectively 6 bits of color: 2 red, 2 green, 2 blue */ | |
| 145 | r = ( rhi * (int)(((153.0 * 192) / 255) + 0.5)) + | |
| 146 | ( rlo * (int)(((102.0 * 192) / 255) + 0.5)) + | |
| 147 | ((rhi | rlo) ? 63 : 0); | |
| 148 | ||
| 149 | g = ( ghi * (int)(((156.0 * 192) / 255) + 0.5)) + | |
| 150 | ( glo * (int)((( 99.0 * 192) / 255) + 0.5)) + | |
| 151 | ((ghi | glo) ? 63 : 0); | |
| 152 | ||
| 153 | b = (bhi * 192) + (bbase * 63); | |
| 154 | ||
| 155 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); | |
| 152 | 156 | } |
| 153 | 157 | } |
| 154 | 158 | |
| r1649 | r1650 | |
| 272 | 276 | WRITE8_HANDLER( arabian_blitter_w ) |
| 273 | 277 | { |
| 274 | 278 | /* write the data */ |
| 275 | offset &= 7; | |
| 276 | spriteram[offset] = data; | |
| 279 | arabian_blitter[offset] = data; | |
| 277 | 280 | |
| 278 | 281 | /* watch for a write to offset 6 -- that triggers the blit */ |
| 279 | if ( | |
| 282 | if ( | |
| 280 | 283 | { |
| 281 | 284 | /* extract the data */ |
| 282 | int plane = spriteram[offset - 6]; | |
| 283 | int src = spriteram[offset - 5] | (spriteram[offset - 4] << 8); | |
| 284 | int x = spriteram[offset - 2] << 2; | |
| 285 | int y = spriteram[offset - 3]; | |
| 286 | int sx = spriteram[offset - 0]; | |
| 287 | int sy = spriteram[offset - 1]; | |
| 285 | int plane = arabian_blitter[0]; | |
| 286 | int src = arabian_blitter[1] | (arabian_blitter[2] << 8); | |
| 287 | int x = arabian_blitter[4] << 2; | |
| 288 | int y = arabian_blitter[3]; | |
| 289 | int sx = arabian_blitter[6]; | |
| 290 | int sy = arabian_blitter[5]; | |
| 288 | 291 | |
| 289 | 292 | /* blit it */ |
| 290 | 293 | blit_area(plane, src, x, y, sx, sy); |
| r1649 | r1650 | |
| 304 | 307 | UINT8 *base; |
| 305 | 308 | UINT8 x, y; |
| 306 | 309 | |
| 307 | /* determine X/Y | |
| 310 | /* determine X/Y | |
| 308 | 311 | x = (offset >> 8) << 2; |
| 309 | 312 | y = offset & 0xff; |
| 310 | 313 | |
| r1649 | r1650 | |
| 324 | 327 | */ |
| 325 | 328 | |
| 326 | 329 | /* enable writes to AZ/AR */ |
| 327 | if ( | |
| 330 | if (a | |
| 328 | 331 | { |
| 329 | 332 | base[0] = (base[0] & ~0x03) | ((data & 0x10) >> 3) | ((data & 0x01) >> 0); |
| 330 | 333 | base[1] = (base[1] & ~0x03) | ((data & 0x20) >> 4) | ((data & 0x02) >> 1); |
| r1649 | r1650 | |
| 333 | 336 | } |
| 334 | 337 | |
| 335 | 338 | /* enable writes to AG/AB */ |
| 336 | if ( | |
| 339 | if (a | |
| 337 | 340 | { |
| 338 | 341 | base[0] = (base[0] & ~0x0c) | ((data & 0x10) >> 1) | ((data & 0x01) << 2); |
| 339 | 342 | base[1] = (base[1] & ~0x0c) | ((data & 0x20) >> 2) | ((data & 0x02) << 1); |
| r1649 | r1650 | |
| 342 | 345 | } |
| 343 | 346 | |
| 344 | 347 | /* enable writes to BZ/BR */ |
| 345 | if ( | |
| 348 | if (a | |
| 346 | 349 | { |
| 347 | 350 | base[0] = (base[0] & ~0x30) | ((data & 0x10) << 1) | ((data & 0x01) << 4); |
| 348 | 351 | base[1] = (base[1] & ~0x30) | ((data & 0x20) << 0) | ((data & 0x02) << 3); |
| r1649 | r1650 | |
| 351 | 354 | } |
| 352 | 355 | |
| 353 | 356 | /* enable writes to BG/BB */ |
| 354 | if ( | |
| 357 | if (a | |
| 355 | 358 | { |
| 356 | 359 | base[0] = (base[0] & ~0xc0) | ((data & 0x10) << 3) | ((data & 0x01) << 6); |
| 357 | 360 | base[1] = (base[1] & ~0xc0) | ((data & 0x20) << 2) | ((data & 0x02) << 5); |
| r1649 | r1650 | |
| 370 | 373 | |
| 371 | 374 | VIDEO_UPDATE( arabian ) |
| 372 | 375 | { |
| 373 | const pen_t * | |
| 376 | const pen_t *p | |
| 374 | 377 | int y; |
| 375 | 378 | |
| 376 | 379 | /* render the screen from the bitmap */ |
| r1649 | r1650 | |
| 378 | 381 | { |
| 379 | 382 | /* non-flipped case */ |
| 380 | 383 | if (!arabian_flip_screen) |
| 381 | draw_scanline8(bitmap, 0, y, BITMAP_WIDTH, &main_bitmap[y * BITMAP_WIDTH], | |
| 384 | draw_scanline8(bitmap, 0, y, BITMAP_WIDTH, &main_bitmap[y * BITMAP_WIDTH], p | |
| 382 | 385 | |
| 383 | 386 | /* flipped case */ |
| 384 | 387 | else |
| r1649 | r1650 | |
| 387 | 390 | int x; |
| 388 | 391 | for (x = 0; x < BITMAP_WIDTH; x++) |
| 389 | 392 | scanline[BITMAP_WIDTH - 1 - x] = main_bitmap[y * BITMAP_WIDTH + x]; |
| 390 | draw_scanline8(bitmap, 0, BITMAP_HEIGHT - 1 - y, BITMAP_WIDTH, scanline, | |
| 393 | draw_scanline8(bitmap, 0, BITMAP_HEIGHT - 1 - y, BITMAP_WIDTH, scanline, p | |
| 391 | 394 | } |
| 392 | 395 | } |
| 393 | 396 | return 0; |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "kaneko16.h" |
| 12 | 13 | |
| 13 | 14 | /* |
| r1649 | r1650 | |
| 170 | 171 | { |
| 171 | 172 | int x = 0; |
| 172 | 173 | int y = 0; |
| 173 | copyscrollbitmap( bitmap, galpani2_bg15_bitmap, | |
| 174 | 1, &x, 1, &y, | |
| 175 | cliprect,TRANSPARENCY_PEN,machine->pens[0x4200 + 0]); | |
| 174 | copyscrollbitmap_trans(bitmap, galpani2_bg15_bitmap, | |
| 175 | 1, &x, 1, &y, | |
| 176 | cliprect,machine->pens[0x4200 + 0]); | |
| 176 | 177 | } |
| 177 | 178 | |
| 178 | 179 | /* test mode: |
| r1649 | r1650 | |
| 185 | 186 | { |
| 186 | 187 | int x = - ( *galpani2_bg8_0_scrollx + 0x200 - 0x0f5 ); |
| 187 | 188 | int y = - ( *galpani2_bg8_0_scrolly + 0x200 - 0x1be ); |
| 188 | copyscrollbitmap( bitmap, galpani2_bg8_bitmap_0, | |
| 189 | 1, &x, 1, &y, | |
| 190 | cliprect,TRANSPARENCY_PEN,machine->pens[0x4000 + 0]); | |
| 189 | copyscrollbitmap_trans(bitmap, galpani2_bg8_bitmap_0, | |
| 190 | 1, &x, 1, &y, | |
| 191 | cliprect,machine->pens[0x4000 + 0]); | |
| 191 | 192 | } |
| 192 | 193 | |
| 193 | 194 | if (layers_ctrl & 0x4) |
| 194 | 195 | { |
| 195 | 196 | int x = - ( *galpani2_bg8_1_scrollx + 0x200 - 0x0f5 ); |
| 196 | 197 | int y = - ( *galpani2_bg8_1_scrolly + 0x200 - 0x1be ); |
| 197 | copyscrollbitmap( bitmap, galpani2_bg8_bitmap_1, | |
| 198 | 1, &x, 1, &y, | |
| 199 | cliprect,TRANSPARENCY_PEN,machine->pens[0x4000 + 0]); | |
| 198 | copyscrollbitmap_trans(bitmap, galpani2_bg8_bitmap_1, | |
| 199 | 1, &x, 1, &y, | |
| 200 | cliprect,machine->pens[0x4000 + 0]); | |
| 200 | 201 | } |
| 201 | 202 | |
| 202 | 203 | if (layers_ctrl & 0x8) kaneko16_draw_sprites(machine, bitmap, cliprect); |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | PALETTE_INIT( labyrunr ) |
| 10 | 10 | { |
| 11 | int | |
| 11 | int | |
| 12 | 12 | |
| 13 | for (pal = 0;pal < 8;pal++) | |
| 13 | /* allocate the colortable */ | |
| 14 | machine->colortable = colortable_alloc(machine, 0x80); | |
| 15 | ||
| 16 | for (pal = 0; pal < 8; pal++) | |
| 14 | 17 | { |
| 15 | if (pal & 1) /* chars, no lookup table */ | |
| 18 | /* chars, no lookup table */ | |
| 19 | if (pal & 1) | |
| 16 | 20 | { |
| 17 | for (i = 0;i < 256;i++) | |
| 18 | *(colortable++) = 16 * pal + (i & 0x0f); | |
| 21 | int i; | |
| 22 | ||
| 23 | for (i = 0; i < 0x100; i++) | |
| 24 | colortable_entry_set_value(machine->colortable, (pal << 8) | i, (pal << 4) | (i & 0x0f)); | |
| 19 | 25 | } |
| 20 | else /* sprites */ | |
| 26 | /* sprites */ | |
| 27 | else | |
| 21 | 28 | { |
| 22 | for (i = 0;i < 256;i++) | |
| 29 | int i; | |
| 30 | ||
| 31 | for (i = 0; i < 0x100; i++) | |
| 32 | { | |
| 33 | UINT8 ctabentry; | |
| 34 | ||
| 23 | 35 | if (color_prom[i] == 0) |
| 24 | | |
| 36 | | |
| 25 | 37 | else |
| 26 | *(colortable++) = 16 * pal + color_prom[i]; | |
| 38 | ctabentry = (pal << 4) | (color_prom[i] & 0x0f); | |
| 39 | ||
| 40 | colortable_entry_set_value(machine->colortable, (pal << 8) | i, ctabentry); | |
| 41 | } | |
| 27 | 42 | } |
| 28 | 43 | } |
| 29 | 44 | } |
| 30 | 45 | |
| 31 | 46 | |
| 47 | static void set_pens(running_machine *machine) | |
| 48 | { | |
| 49 | int i; | |
| 50 | ||
| 51 | for (i = 0x00; i < 0x100; i += 2) | |
| 52 | { | |
| 53 | UINT16 data = paletteram[i | 1] | (paletteram[i] << 8); | |
| 54 | ||
| 55 | rgb_t color = MAKE_RGB(pal5bit(data >> 0), pal5bit(data >> 5), pal5bit(data >> 10)); | |
| 56 | ||
| 57 | colortable_palette_set_color(machine->colortable, i >> 1, color); | |
| 58 | } | |
| 59 | } | |
| 60 | ||
| 61 | ||
| 62 | ||
| 32 | 63 | /*************************************************************************** |
| 33 | 64 | |
| 34 | 65 | Callbacks for the TileMap code |
| r1649 | r1650 | |
| 142 | 173 | { |
| 143 | 174 | rectangle finalclip0, finalclip1; |
| 144 | 175 | |
| 176 | set_pens(machine); | |
| 177 | ||
| 145 | 178 | fillbitmap(priority_bitmap,0,cliprect); |
| 146 | 179 | fillbitmap(bitmap,get_black_pen(machine),cliprect); |
| 147 | 180 | |
| r1649 | r1650 | |
| 168 | 201 | } |
| 169 | 202 | |
| 170 | 203 | tilemap_draw(bitmap,&finalclip0,layer0,TILEMAP_DRAW_OPAQUE,0); |
| 171 | K007121_sprites_draw(machine, | |
| 204 | K007121_sprites_draw(0,bitmap,machine->gfx,machine->colort | |
| 172 | 205 | /* we ignore the transparency because layer1 is drawn only at the top of the screen also covering sprites */ |
| 173 | 206 | tilemap_draw(bitmap,&finalclip1,layer1,TILEMAP_DRAW_OPAQUE,0); |
| 174 | 207 | } |
| r1649 | r1650 | |
| 236 | 269 | tilemap_draw(bitmap,&finalclip1,layer1,0,1); |
| 237 | 270 | if(use_clip3[1]) tilemap_draw(bitmap,&finalclip3,layer1,0,1); |
| 238 | 271 | |
| 239 | K007121_sprites_draw(machine, | |
| 272 | K007121_sprites_draw(0,bitmap,machine->gfx,machine->colort | |
| 240 | 273 | } |
| 241 | 274 | return 0; |
| 242 | 275 | } |
| r1649 | r1650 | |
|---|---|---|
| 3 | 3 | */ |
| 4 | 4 | |
| 5 | 5 | #include "driver.h" |
| 6 | #include "deprecat.h" | |
| 6 | 7 | |
| 7 | 8 | static UINT8 thief_read_mask, thief_write_mask; |
| 8 | 9 | static UINT8 thief_video_control; |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "ccastles.h" |
| 9 | 10 | #include "video/resnet.h" |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "cpu/mips/r3000.h" |
| 9 | 10 | #include "policetr.h" |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | |
| 3 | 4 | static tilemap *text_layer; |
| 4 | 5 | static tilemap *back_layer; |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | **************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "profiler.h" |
| 9 | 10 | #include "cpu/tms34010/tms34010.h" |
| 10 | 11 | #include "cpu/tms34010/34010ops.h" |
| r1649 | r1650 | |
|---|---|---|
| 15 | 15 | |
| 16 | 16 | |
| 17 | 17 | /* the screen elements' priorties determine their color */ |
| 18 | #define BACKGROUND_COLOR 0 | |
| 19 | #define FIELD_COLOR 1 | |
| 20 | #define CAR1_COLOR 2 | |
| 21 | #define LINE_COLOR 3 | |
| 22 | #define CAR4_COLOR 4 | |
| 23 | #define CAR3_COLOR 5 | |
| 24 | #define CAR2_COLOR 6 | |
| 25 | #define BALL_COLOR 7 | |
| 26 | #define NET_COLOR 8 | |
| 27 | #define LEFT_GOAL_COLOR 9 | |
| 28 | #define RIGHT_GOAL_COLOR 10 | |
| 29 | #define SPECIAL_CHAR_COLOR 11 | |
| 30 | #define ALPHA0_COLOR 12 | |
| 31 | #define ALPHA1_COLOR 13 | |
| 32 | #define ALPHA2_COLOR 14 | |
| 33 | #define ALPHA3_COLOR 15 | |
| 18 | #define CHARSET_COLOR_BASE (0x00) | |
| 19 | #define BACKGROUND_PEN ((0x00 << 1) + 1) | |
| 20 | #define FIELD_PEN ((0x01 << 1) + 1) | |
| 21 | #define CAR1_COLOR (0x02) | |
| 22 | #define LINE_PEN ((0x03 << 1) + 1) | |
| 23 | #define CAR4_COLOR (0x04) | |
| 24 | #define CAR3_COLOR (0x05) | |
| 25 | #define CAR2_COLOR (0x06) | |
| 26 | #define BALL_COLOR (0x07) | |
| 27 | #define NET_COLOR (0x08) | |
| 28 | #define LEFT_GOAL_COLOR (0x09) | |
| 29 | #define LEFT_GOAL_PEN (0x18 + 0x08) | |
| 30 | #define LEFT_SCORE_PEN (0x18 + 0x06) | |
| 31 | #define RIGHT_GOAL_COLOR (0x0a) | |
| 32 | #define RIGHT_GOAL_PEN (0x18 + 0x18) | |
| 33 | #define RIGHT_SCORE_PEN (0x18 + 0x16) | |
| 34 | #define SPECIAL_CHAR_COLOR (0x0b) | |
| 35 | #define ALPHA_COLOR_BASE (0x0c) /* 0x0c - 0x0f */ | |
| 34 | 36 | |
| 35 | #define SCORE_COLOR 16 /* this is only used for collision detection purposes */ | |
| 37 | #define SPRITE_WIDTH (16) | |
| 38 | #define SPRITE_HEIGHT (16) | |
| 39 | #define GOAL_WIDTH (16) | |
| 40 | #define GOAL_HEIGHT (64) | |
| 36 | 41 | |
| 37 | #define SPRITE_WIDTH 16 | |
| 38 | #define SPRITE_HEIGHT 16 | |
| 39 | #define GOAL_WIDTH 16 | |
| 40 | #define GOAL_HEIGHT 64 | |
| 42 | #define LEFT_GOAL_X ((2 * 16) - 8) | |
| 43 | #define RIGHT_GOAL_X ((13 * 16) - 8) | |
| 44 | #define GOAL_Y (7 * 16) | |
| 41 | 45 | |
| 42 | #define LEFT_GOAL_X 2*16-8 | |
| 43 | #define RIGHT_GOAL_X 13*16-8 | |
| 44 | #define GOAL_Y 7*16 | |
| 46 | #define TOP_BORDER (16) | |
| 47 | #define BOTTOM_BORDER (255) | |
| 48 | #define LEFT_BORDER (0) | |
| 49 | #define RIGHT_BORDER (239) | |
| 45 | 50 | |
| 46 | #define TOP_BORDER 16 | |
| 47 | #define BOTTOM_BORDER 255 | |
| 48 | #define LEFT_BORDER 0 | |
| 49 | #define RIGHT_BORDER 239 | |
| 50 | 51 | |
| 51 | ||
| 52 | 52 | static mame_bitmap *sprite_sprite_collision_bitmap1; |
| 53 | 53 | static mame_bitmap *sprite_sprite_collision_bitmap2; |
| 54 | 54 | static mame_bitmap *sprite_goal_collision_bitmap1; |
| r1649 | r1650 | |
| 75 | 75 | |
| 76 | 76 | PALETTE_INIT( carpolo ) |
| 77 | 77 | { |
| 78 | int i; | |
| 79 | ||
| 78 | 80 | /* thanks to Jarek Burczynski for analyzing the circuit */ |
| 79 | ||
| 81 | /* static const float MAX_VOLTAGE = 6.9620f; */ | |
| 80 | 82 | static const float MIN_VOLTAGE = 1.7434f; |
| 81 | 83 | static const float MAX_VOLTAGE = 5.5266f; |
| 82 | 84 | |
| r1649 | r1650 | |
| 88 | 90 | static const float g_voltage[] = |
| 89 | 91 | { |
| 90 | 92 | 1.7434f, 2.1693f, 2.5823f, 3.0585f, 3.4811f, 4.0707f, 4.7415f, 5.4251f |
| 91 | | |
| 93 | /* 4.7871f, 5.0613f, 5.3079f, 5.6114f, 5.7940f, 6.1608f, 6.5436f, 6.9620f */ | |
| 92 | 94 | }; |
| 93 | 95 | |
| 94 | 96 | static const float b_voltage[] = |
| r1649 | r1650 | |
| 97 | 99 | }; |
| 98 | 100 | |
| 99 | 101 | |
| 100 | int i; | |
| 101 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 102 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 103 | ||
| 104 | ||
| 105 | /* the -1 is for the fake score color */ | |
| 106 | for (i = 0; i < machine->drv->total_colors - 1; i++) | |
| 102 | for (i = 0; i < machine->drv->total_colors; i++) | |
| 107 | 103 | { |
| 108 | UINT8 r,g,b; | |
| 109 | int bit0,bit1,bit2; | |
| 104 | UINT8 pen, r, g, b; | |
| 105 | int bit0, bit1, bit2; | |
| 110 | 106 | |
| 111 | /* red component */ | |
| 112 | bit0 = (*color_prom >> 7) & 0x01; | |
| 113 | bit1 = (*color_prom >> 6) & 0x01; | |
| 114 | bit2 = (*color_prom >> 5) & 0x01; | |
| 115 | //r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 116 | r = ((r_voltage[*color_prom >> 5 ] - MIN_VOLTAGE) / (MAX_VOLTAGE - MIN_VOLTAGE)) * 255.; | |
| 117 | /* green component */ | |
| 118 | bit0 = (*color_prom >> 4) & 0x01; | |
| 119 | bit1 = (*color_prom >> 3) & 0x01; | |
| 120 | bit2 = (*color_prom >> 2) & 0x01; | |
| 121 | //g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 122 | g = ((g_voltage[(*color_prom >> 2) & 0x07] - MIN_VOLTAGE) / (MAX_VOLTAGE - MIN_VOLTAGE)) * 255.; | |
| 123 | /* blue component */ | |
| 124 | bit0 = (*color_prom >> 1) & 0x01; | |
| 125 | bit1 = (*color_prom >> 0) & 0x01; | |
| 126 | //b = 0x4f * bit0 + 0xa8 * bit1; | |
| 127 | b = ((b_voltage[*color_prom & 0x03 ] - MIN_VOLTAGE) / (MAX_VOLTAGE - MIN_VOLTAGE)) * 255.; | |
| 107 | if (i < 0x18) | |
| 108 | /* sprites */ | |
| 109 | pen = ((i - 0x00) & 0x01) ? CHARSET_COLOR_BASE + ((i - 0x00) >> 1) : 0; | |
| 128 | 110 | |
| 111 | else if (i < 0x38) | |
| 112 | /* the bits in the goal gfx PROM are hooked up as follows (all active LO): | |
| 113 | D3 - goal post | |
| 114 | D2 - scoring area | |
| 115 | D1 - net | |
| 116 | D0 - n/c | |
| 117 | I am only filling in the colors actually used. */ | |
| 118 | switch (i - 0x18) | |
| 119 | { | |
| 120 | case (0x00 | (0x07 ^ 0x0f)): pen = LEFT_GOAL_COLOR; break; | |
| 121 | case (0x00 | (0x0d ^ 0x0f)): pen = NET_COLOR; break; | |
| 122 | case (0x00 | (0x09 ^ 0x0f)): pen = NET_COLOR; break; /* score */ | |
| 123 | case (0x10 | (0x07 ^ 0x0f)): pen = RIGHT_GOAL_COLOR; break; | |
| 124 | case (0x10 | (0x0d ^ 0x0f)): pen = NET_COLOR; break; | |
| 125 | case (0x10 | (0x09 ^ 0x0f)): pen = NET_COLOR; break; /* score */ | |
| 126 | default: pen = 0; break; | |
| 127 | } | |
| 129 | 128 | |
| 130 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 129 | else | |
| 130 | /* alpha layer */ | |
| 131 | pen = ((i - 0x38) & 0x01) ? ALPHA_COLOR_BASE + ((i - 0x38) >> 1) : 0; | |
| 131 | 132 | |
| 132 | // score color is same as net color | |
| 133 | if (i == NET_COLOR) | |
| 134 | { | |
| 135 | palette_set_color(machine,SCORE_COLOR,MAKE_RGB(r,g,b)); | |
| 136 | } | |
| 133 | /* red component */ | |
| 134 | bit0 = (color_prom[pen] >> 7) & 0x01; | |
| 135 | bit1 = (color_prom[pen] >> 6) & 0x01; | |
| 136 | bit2 = (color_prom[pen] >> 5) & 0x01; | |
| 137 | r = ((r_voltage[(color_prom[pen] >> 5) & 0x07] - MIN_VOLTAGE) / (MAX_VOLTAGE - MIN_VOLTAGE)) * 255.; | |
| 137 | 138 | |
| 138 | color_prom++; | |
| 139 | } | |
| 139 | /* green component */ | |
| 140 | bit0 = (color_prom[pen] >> 4) & 0x01; | |
| 141 | bit1 = (color_prom[pen] >> 3) & 0x01; | |
| 142 | bit2 = (color_prom[pen] >> 2) & 0x01; | |
| 143 | g = ((g_voltage[(color_prom[pen] >> 2) & 0x07] - MIN_VOLTAGE) / (MAX_VOLTAGE - MIN_VOLTAGE)) * 255.; | |
| 140 | 144 | |
| 145 | /* blue component */ | |
| 146 | bit0 = (color_prom[pen] >> 1) & 0x01; | |
| 147 | bit1 = (color_prom[pen] >> 0) & 0x01; | |
| 148 | b = ((b_voltage[(color_prom[pen] >> 0) & 0x03] - MIN_VOLTAGE) / (MAX_VOLTAGE - MIN_VOLTAGE)) * 255.; | |
| 141 | 149 | |
| 142 | /* sprite colors */ | |
| 143 | for (i = 0; i < TOTAL_COLORS(0) / 2; i++) | |
| 144 | { | |
| 145 | COLOR(0,i*2+1) = i; | |
| 150 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); | |
| 146 | 151 | } |
| 147 | ||
| 148 | ||
| 149 | /* the bits in the goal gfx PROM are hooked as follows (all active LO): | |
| 150 | Bit 3 - goal post | |
| 151 | Bit 2 - scoring area | |
| 152 | Bit 1 - net | |
| 153 | Bit 0 - n/c | |
| 154 | ||
| 155 | Below I am only filling in the colors actually used. */ | |
| 156 | ||
| 157 | /* left goal */ | |
| 158 | COLOR(1, (0x07 ^ 0x0f)) = LEFT_GOAL_COLOR; | |
| 159 | COLOR(1, (0x0d ^ 0x0f)) = NET_COLOR; | |
| 160 | COLOR(1, (0x09 ^ 0x0f)) = SCORE_COLOR; | |
| 161 | ||
| 162 | /* right goal */ | |
| 163 | COLOR(1, (16 + (0x07 ^ 0x0f))) = RIGHT_GOAL_COLOR; | |
| 164 | COLOR(1, (16 + (0x0d ^ 0x0f))) = NET_COLOR; | |
| 165 | COLOR(1, (16 + (0x09 ^ 0x0f))) = SCORE_COLOR; | |
| 166 | ||
| 167 | /* alpha layer */ | |
| 168 | COLOR(2, 0*2+1) = ALPHA0_COLOR; | |
| 169 | COLOR(2, 1*2+1) = ALPHA1_COLOR; | |
| 170 | COLOR(2, 2*2+1) = ALPHA2_COLOR; | |
| 171 | COLOR(2, 3*2+1) = ALPHA3_COLOR; | |
| 172 | 152 | } |
| 173 | 153 | |
| 174 | 154 | |
| r1649 | r1650 | |
| 201 | 181 | { |
| 202 | 182 | int x; |
| 203 | 183 | |
| 204 | ||
| 205 | 184 | for (x = 0; x < 32; x++) |
| 206 | 185 | { |
| 207 | 186 | UINT8 code, col; |
| r1649 | r1650 | |
| 220 | 199 | |
| 221 | 200 | static void remap_sprite_code(int bank, int code, int *remapped_code, int *flipy) |
| 222 | 201 | { |
| 223 | UINT8 | |
| 202 | UINT8 | |
| 224 | 203 | |
| 225 | ||
| 226 | PROM = memory_region(REGION_USER1); | |
| 227 | ||
| 228 | 204 | code = (bank << 4) | code; |
| 229 | 205 | *remapped_code = PROM[code] & 0x0f; |
| 230 | 206 | *flipy = (PROM[code] & 0x10) >> 4; |
| r1649 | r1650 | |
| 236 | 212 | { |
| 237 | 213 | int remapped_code, flipy; |
| 238 | 214 | |
| 239 | ||
| 240 | 215 | remap_sprite_code(bank, code, &remapped_code, &flipy); |
| 241 | 216 | |
| 242 | 217 | x = 240 - x; |
| r1649 | r1650 | |
| 259 | 234 | |
| 260 | 235 | VIDEO_UPDATE( carpolo ) |
| 261 | 236 | { |
| 262 | /* draw the playfield elements | |
| 237 | /* draw the playfield elements | |
| 263 | 238 | |
| 264 | 239 | /* score area - position determined by bit 4 of the vertical timing PROM */ |
| 265 | plot_box(bitmap,0,0,RIGHT_BORDER+1,TOP_BORDER,machine->pens[BACKGROUND_ | |
| 240 | plot_box(bitmap,0,0,RIGHT_BORDER+1,TOP_BORDER,machine->pens[BACKGROUND_PEN | |
| 266 | 241 | |
| 267 | 242 | /* field */ |
| 268 | plot_box(bitmap,0,TOP_BORDER,RIGHT_BORDER+1,BOTTOM_BORDER-TOP_BORDER+1,machine->pens[FIELD_ | |
| 243 | plot_box(bitmap,0,TOP_BORDER,RIGHT_BORDER+1,BOTTOM_BORDER-TOP_BORDER+1,machine->pens[FIELD_PEN | |
| 269 | 244 | |
| 270 | 245 | /* car 1 */ |
| 271 | 246 | draw_sprite(machine, bitmap, cliprect, |
| r1649 | r1650 | |
| 273 | 248 | 0, carpolo_spriteram[0x0c] & 0x0f, CAR1_COLOR); |
| 274 | 249 | |
| 275 | 250 | /* border - position determined by bit 4 and 7 of the vertical timing PROM */ |
| 276 | plot_box(bitmap,0,TOP_BORDER, RIGHT_BORDER+1,1,machine->pens[LINE_COLOR]); | |
| 277 | plot_box(bitmap,0,BOTTOM_BORDER,RIGHT_BORDER+1,1,machine->pens[LINE_COLOR]); | |
| 278 | plot_box(bitmap,LEFT_BORDER,TOP_BORDER, 1,BOTTOM_BORDER-TOP_BORDER+1,machine->pens[LINE_COLOR]); | |
| 279 | plot_box(bitmap,RIGHT_BORDER,TOP_BORDER,1,BOTTOM_BORDER-TOP_BORDER+1,machine->pens[LINE_COLOR]); | |
| 251 | plot_box(bitmap,0,TOP_BORDER, RIGHT_BORDER+1,1,machine->pens[LINE_PEN]); | |
| 252 | plot_box(bitmap,0,BOTTOM_BORDER,RIGHT_BORDER+1,1,machine->pens[LINE_PEN]); | |
| 253 | plot_box(bitmap,LEFT_BORDER,TOP_BORDER, 1,BOTTOM_BORDER-TOP_BORDER+1,machine->pens[LINE_PEN]); | |
| 254 | plot_box(bitmap,RIGHT_BORDER,TOP_BORDER,1,BOTTOM_BORDER-TOP_BORDER+1,machine->pens[LINE_PEN]); | |
| 280 | 255 | |
| 281 | 256 | /* car 4 */ |
| 282 | 257 | draw_sprite(machine, bitmap, cliprect, |
| r1649 | r1650 | |
| 318 | 293 | /* special char - bit 0 of 0x0f enables it, |
| 319 | 294 | bit 1 marked as WIDE, but never appears to be set */ |
| 320 | 295 | if (carpolo_spriteram[0x0f] & 0x02) |
| 321 | { | |
| 322 | logerror("WIDE!\n"); | |
| 323 | } | |
| 296 | popmessage("WIDE!\n"); | |
| 324 | 297 | |
| 325 | 298 | if (carpolo_spriteram[0x0f] & 0x01) |
| 326 | { | |
| 327 | 299 | draw_sprite(machine, bitmap, cliprect, |
| 328 | 300 | carpolo_spriteram[0x0a], carpolo_spriteram[0x0b], |
| 329 | 301 | 1, carpolo_spriteram[0x0e] >> 4, SPECIAL_CHAR_COLOR); |
| 330 | } | |
| 331 | 302 | |
| 332 | 303 | |
| 333 | 304 | /* draw the alpha layer */ |
| r1649 | r1650 | |
| 344 | 315 | draw_alpha_line(machine, bitmap, cliprect, 5, (1*4+2)*2+1); |
| 345 | 316 | draw_alpha_line(machine, bitmap, cliprect, 6, (0*4+3)*2 ); |
| 346 | 317 | draw_alpha_line(machine, bitmap, cliprect, 7, (0*4+3)*2+1); |
| 318 | ||
| 347 | 319 | return 0; |
| 348 | 320 | } |
| 349 | 321 | |
| r1649 | r1650 | |
| 387 | 359 | { |
| 388 | 360 | int collided = 0; |
| 389 | 361 | |
| 390 | ||
| 391 | 362 | x1 = 240 - x1; |
| 392 | 363 | y1 = 240 - y1; |
| 393 | 364 | x2 = 240 - x2; |
| 394 | 365 | y2 = 240 - y2; |
| 395 | 366 | |
| 396 | ||
| 397 | // check if the two sprites are within collision range | |
| 367 | /* check if the two sprites are even within collision range */ | |
| 398 | 368 | if ((abs(x1 - x2) < SPRITE_WIDTH) && (abs(y1 - y2) < SPRITE_HEIGHT)) |
| 399 | 369 | { |
| 400 | 370 | int x,y; |
| 401 | 371 | |
| 402 | ||
| 403 | 372 | normalize_coordinates(&x1, &y1, &x2, &y2); |
| 404 | 373 | |
| 405 | 374 | fillbitmap(sprite_sprite_collision_bitmap1, machine->pens[0], 0); |
| 406 | 375 | fillbitmap(sprite_sprite_collision_bitmap2, machine->pens[0], 0); |
| 407 | 376 | |
| 408 | 377 | drawgfx(sprite_sprite_collision_bitmap1,machine->gfx[0], |
| 409 | code1, | |
| 378 | code1,0, | |
| 410 | 379 | 0,flipy1, |
| 411 | 380 | x1,y1, |
| 412 | 0,TRANSPARENCY_ | |
| 381 | 0,TRANSPARENCY_ | |
| 413 | 382 | |
| 414 | 383 | drawgfx(sprite_sprite_collision_bitmap2,machine->gfx[0], |
| 415 | code2, | |
| 384 | code2,0, | |
| 416 | 385 | 0,flipy2, |
| 417 | 386 | x2,y2, |
| 418 | 0,TRANSPARENCY_ | |
| 387 | 0,TRANSPARENCY_ | |
| 419 | 388 | |
| 420 | ||
| 421 | 389 | for (x = x1; x < x1 + SPRITE_WIDTH; x++) |
| 422 | { | |
| 423 | 390 | for (y = y1; y < y1 + SPRITE_HEIGHT; y++) |
| 424 | { | |
| 425 | 391 | if ((*BITMAP_ADDR16(sprite_sprite_collision_bitmap1, y, x) == machine->pens[1]) && |
| 426 | 392 | (*BITMAP_ADDR16(sprite_sprite_collision_bitmap2, y, x) == machine->pens[1])) |
| 427 | 393 | { |
| r1649 | r1650 | |
| 432 | 398 | |
| 433 | 399 | break; |
| 434 | 400 | } |
| 435 | } | |
| 436 | } | |
| 437 | 401 | } |
| 438 | 402 | |
| 439 | 403 | return collided; |
| r1649 | r1650 | |
| 446 | 410 | { |
| 447 | 411 | int collided = 0; |
| 448 | 412 | |
| 449 | ||
| 450 | 413 | x1 = 240 - x1; |
| 451 | 414 | y1 = 240 - y1; |
| 452 | 415 | |
| 453 | ||
| 454 | // check if the sprites is within the range of the goal | |
| 416 | /* check if the sprite is even within the range of the goal */ | |
| 455 | 417 | if (((y1 + 16) > GOAL_Y) && (y1 < (GOAL_Y + GOAL_HEIGHT)) && |
| 456 | 418 | ((x1 + 16) > LEFT_GOAL_X) && (x1 < (LEFT_GOAL_X + GOAL_WIDTH))) |
| 457 | 419 | { |
| r1649 | r1650 | |
| 468 | 430 | fillbitmap(sprite_goal_collision_bitmap2, machine->pens[0], 0); |
| 469 | 431 | |
| 470 | 432 | drawgfx(sprite_goal_collision_bitmap1,machine->gfx[0], |
| 471 | code1, | |
| 433 | code1,0, | |
| 472 | 434 | 0,flipy1, |
| 473 | 435 | x1,y1, |
| 474 | 0,TRANSPARENCY_ | |
| 436 | 0,TRANSPARENCY_ | |
| 475 | 437 | |
| 476 | 438 | drawgfxzoom(sprite_goal_collision_bitmap2,machine->gfx[1], |
| 477 | 439 | 0,0, |
| r1649 | r1650 | |
| 481 | 443 | 0x20000,0x20000); |
| 482 | 444 | |
| 483 | 445 | for (x = x1; x < x1 + SPRITE_WIDTH; x++) |
| 484 | { | |
| 485 | 446 | for (y = y1; y < y1 + SPRITE_HEIGHT; y++) |
| 486 | { | |
| 487 | 447 | if ((*BITMAP_ADDR16(sprite_goal_collision_bitmap1, y, x) == machine->pens[1])) |
| 488 | 448 | { |
| 489 | 449 | pen_t pix = *BITMAP_ADDR16(sprite_goal_collision_bitmap2, y, x); |
| 490 | 450 | |
| 491 | if (pix == machine->pens[LEFT_GOAL_ | |
| 451 | if (pix == machine->pens[LEFT_GOAL_PEN | |
| 492 | 452 | { |
| 493 | 453 | collided = 1; |
| 494 | 454 | break; |
| 495 | 455 | } |
| 496 | 456 | |
| 497 | if (!goalpost_only && (pix == machine->pens[SCORE_ | |
| 457 | if (!goalpost_only && (pix == machine->pens[LEFT_SCORE_PEN | |
| 498 | 458 | { |
| 499 | 459 | collided = 2; |
| 500 | 460 | break; |
| 501 | 461 | } |
| 502 | 462 | } |
| 503 | } | |
| 504 | } | |
| 505 | 463 | } |
| 506 | 464 | |
| 507 | 465 | return collided; |
| r1649 | r1650 | |
| 512 | 470 | { |
| 513 | 471 | int collided = 0; |
| 514 | 472 | |
| 515 | ||
| 516 | 473 | x1 = 240 - x1; |
| 517 | 474 | y1 = 240 - y1; |
| 518 | 475 | |
| 519 | ||
| 520 | // check if the sprites is within the range of the goal | |
| 476 | /* check if the sprite is even within the range of the goal */ | |
| 521 | 477 | if (((y1 + 16) > GOAL_Y) && (y1 < (GOAL_Y + GOAL_HEIGHT)) && |
| 522 | 478 | ((x1 + 16) > RIGHT_GOAL_X) && (x1 < (RIGHT_GOAL_X + GOAL_WIDTH))) |
| 523 | 479 | { |
| 524 | 480 | int x,y; |
| 525 | 481 | int x2,y2; |
| 526 | 482 | |
| 527 | ||
| 528 | 483 | x2 = RIGHT_GOAL_X; |
| 529 | 484 | y2 = GOAL_Y; |
| 530 | 485 | |
| r1649 | r1650 | |
| 534 | 489 | fillbitmap(sprite_goal_collision_bitmap2, machine->pens[0], 0); |
| 535 | 490 | |
| 536 | 491 | drawgfx(sprite_goal_collision_bitmap1,machine->gfx[0], |
| 537 | code1, | |
| 492 | code1,0, | |
| 538 | 493 | 0,flipy1, |
| 539 | 494 | x1,y1, |
| 540 | 0,TRANSPARENCY_ | |
| 495 | 0,TRANSPARENCY_ | |
| 541 | 496 | |
| 542 | 497 | drawgfxzoom(sprite_goal_collision_bitmap2,machine->gfx[1], |
| 543 | 498 | 0,1, |
| r1649 | r1650 | |
| 547 | 502 | 0x20000,0x20000); |
| 548 | 503 | |
| 549 | 504 | for (x = x1; x < x1 + SPRITE_WIDTH; x++) |
| 550 | { | |
| 551 | 505 | for (y = y1; y < y1 + SPRITE_HEIGHT; y++) |
| 552 | { | |
| 553 | 506 | if ((*BITMAP_ADDR16(sprite_goal_collision_bitmap1, y, x) == machine->pens[1])) |
| 554 | 507 | { |
| 555 | 508 | pen_t pix = *BITMAP_ADDR16(sprite_goal_collision_bitmap2, y, x); |
| 556 | 509 | |
| 557 | if (pix == machine->pens[RIGHT_GOAL_ | |
| 510 | if (pix == machine->pens[RIGHT_GOAL_PEN | |
| 558 | 511 | { |
| 559 | 512 | collided = 1; |
| 560 | 513 | break; |
| 561 | 514 | } |
| 562 | 515 | |
| 563 | if (!goalpost_only && (pix == machine->pens[SCORE_ | |
| 516 | if (!goalpost_only && (pix == machine->pens[RIGHT_SCORE_PEN | |
| 564 | 517 | { |
| 565 | 518 | collided = 2; |
| 566 | 519 | break; |
| 567 | 520 | } |
| 568 | 521 | } |
| 569 | } | |
| 570 | } | |
| 571 | 522 | } |
| 572 | 523 | |
| 573 | 524 | return collided; |
| r1649 | r1650 | |
| 581 | 532 | UINT8 x,y; |
| 582 | 533 | int collided = 0; |
| 583 | 534 | |
| 584 | ||
| 585 | 535 | x1 = 240 - x1; |
| 586 | 536 | y1 = 240 - y1; |
| 587 | 537 | |
| 588 | ||
| 589 | fillbitmap(sprite_border_collision_bitmap, machine->pens[0], 0); | |
| 590 | ||
| 591 | 538 | drawgfx(sprite_border_collision_bitmap,machine->gfx[0], |
| 592 | code1, | |
| 539 | code1,0, | |
| 593 | 540 | 0,flipy1, |
| 594 | 541 | 0,0, |
| 595 | 0,TRANSPARENCY_ | |
| 542 | 0,TRANSPARENCY_ | |
| 596 | 543 | |
| 597 | 544 | for (x = 0; x < SPRITE_WIDTH; x++) |
| 598 | { | |
| 599 | 545 | for (y = 0; y < SPRITE_HEIGHT; y++) |
| 600 | { | |
| 601 | 546 | if ((*BITMAP_ADDR16(sprite_border_collision_bitmap, y, x) == machine->pens[1])) |
| 602 | 547 | { |
| 603 | 548 | if (((UINT8)(x1 + x) == LEFT_BORDER) || |
| r1649 | r1650 | |
| 614 | 559 | break; |
| 615 | 560 | } |
| 616 | 561 | } |
| 617 | } | |
| 618 | } | |
| 619 | 562 | |
| 620 | 563 | return collided; |
| 621 | 564 | } |
| r1649 | r1650 | |
| 630 | 573 | int car1_flipy, car2_flipy, car3_flipy, car4_flipy, ball_flipy; |
| 631 | 574 | |
| 632 | 575 | |
| 633 | / | |
| 576 | /* check car-car collision first */ | |
| 634 | 577 | |
| 635 | 578 | car1_x = carpolo_spriteram[0x00]; |
| 636 | 579 | car1_y = carpolo_spriteram[0x01]; |
| r1649 | r1650 | |
| 653 | 596 | remap_sprite_code(1, carpolo_spriteram[0x0e] & 0x0f, &ball_code, &ball_flipy); |
| 654 | 597 | |
| 655 | 598 | |
| 656 | / | |
| 599 | /* cars 1 and 2 */ | |
| 657 | 600 | if (check_sprite_sprite_collision(machine, |
| 658 | 601 | car1_x, car1_y, car1_code, car1_flipy, |
| 659 | 602 | car2_x, car2_y, car2_code, car2_flipy, |
| 660 | 603 | &col_x, &col_y)) |
| 661 | { | |
| 662 | 604 | carpolo_generate_car_car_interrupt(0, 1); |
| 663 | } | |
| 664 | 605 | |
| 665 | / | |
| 606 | /* cars 1 and 3 */ | |
| 666 | 607 | else if (check_sprite_sprite_collision(machine, |
| 667 | 608 | car1_x, car1_y, car1_code, car1_flipy, |
| 668 | 609 | car3_x, car3_y, car3_code, car3_flipy, |
| 669 | 610 | &col_x, &col_y)) |
| 670 | { | |
| 671 | 611 | carpolo_generate_car_car_interrupt(0, 2); |
| 672 | } | |
| 673 | 612 | |
| 674 | / | |
| 613 | /* cars 1 and 4 */ | |
| 675 | 614 | else if (check_sprite_sprite_collision(machine, |
| 676 | 615 | car1_x, car1_y, car1_code, car1_flipy, |
| 677 | 616 | car4_x, car4_y, car4_code, car4_flipy, |
| 678 | 617 | &col_x, &col_y)) |
| 679 | { | |
| 680 | 618 | carpolo_generate_car_car_interrupt(0, 3); |
| 681 | } | |
| 682 | 619 | |
| 683 | / | |
| 620 | /* cars 2 and 3 */ | |
| 684 | 621 | else if (check_sprite_sprite_collision(machine, |
| 685 | 622 | car2_x, car2_y, car2_code, car2_flipy, |
| 686 | 623 | car3_x, car3_y, car3_code, car3_flipy, |
| 687 | 624 | &col_x, &col_y)) |
| 688 | { | |
| 689 | 625 | carpolo_generate_car_car_interrupt(1, 2); |
| 690 | } | |
| 691 | 626 | |
| 692 | / | |
| 627 | /* cars 2 and 4 */ | |
| 693 | 628 | else if (check_sprite_sprite_collision(machine, |
| 694 | 629 | car2_x, car2_y, car2_code, car2_flipy, |
| 695 | 630 | car4_x, car4_y, car4_code, car4_flipy, |
| 696 | 631 | &col_x, &col_y)) |
| 697 | { | |
| 698 | 632 | carpolo_generate_car_car_interrupt(1, 3); |
| 699 | } | |
| 700 | 633 | |
| 701 | / | |
| 634 | /* cars 3 and 4 */ | |
| 702 | 635 | else if (check_sprite_sprite_collision(machine, |
| 703 | 636 | car3_x, car3_y, car3_code, car3_flipy, |
| 704 | 637 | car4_x, car4_y, car4_code, car4_flipy, |
| 705 | 638 | &col_x, &col_y)) |
| 706 | { | |
| 707 | 639 | carpolo_generate_car_car_interrupt(2, 3); |
| 708 | } | |
| 709 | 640 | |
| 710 | 641 | |
| 711 | 642 | |
| 712 | / | |
| 643 | /* check car-ball collision */ | |
| 713 | 644 | if (check_sprite_sprite_collision(machine, |
| 714 | 645 | car1_x, car1_y, car1_code, car1_flipy, |
| 715 | 646 | ball_x, ball_y, ball_code, ball_flipy, |
| 716 | 647 | &col_x, &col_y)) |
| 717 | { | |
| 718 | 648 | carpolo_generate_car_ball_interrupt(0, col_x, col_y); |
| 719 | ||
| 649 | ||
| 720 | 650 | else if (check_sprite_sprite_collision(machine, |
| 721 | 651 | car2_x, car2_y, car2_code, car2_flipy, |
| 722 | 652 | ball_x, ball_y, ball_code, ball_flipy, |
| 723 | 653 | &col_x, &col_y)) |
| 724 | { | |
| 725 | 654 | carpolo_generate_car_ball_interrupt(1, col_x, col_y); |
| 726 | ||
| 655 | ||
| 727 | 656 | else if (check_sprite_sprite_collision(machine, |
| 728 | 657 | car3_x, car3_y, car3_code, car3_flipy, |
| 729 | 658 | ball_x, ball_y, ball_code, ball_flipy, |
| 730 | 659 | &col_x, &col_y)) |
| 731 | { | |
| 732 | 660 | carpolo_generate_car_ball_interrupt(2, col_x, col_y); |
| 733 | ||
| 661 | ||
| 734 | 662 | else if (check_sprite_sprite_collision(machine, |
| 735 | 663 | car4_x, car4_y, car4_code, car4_flipy, |
| 736 | 664 | ball_x, ball_y, ball_code, ball_flipy, |
| 737 | 665 | &col_x, &col_y)) |
| 738 | { | |
| 739 | 666 | carpolo_generate_car_ball_interrupt(3, col_x, col_y); |
| 740 | } | |
| 741 | 667 | |
| 742 | 668 | |
| 743 | / | |
| 669 | /* check car-goal collision */ | |
| 744 | 670 | if (check_sprite_left_goal_collision(machine, car1_x, car1_y, car1_code, car1_flipy, 1)) |
| 745 | { | |
| 746 | 671 | carpolo_generate_car_goal_interrupt(0, 0); |
| 747 | ||
| 672 | ||
| 748 | 673 | else if (check_sprite_right_goal_collision(machine, car1_x, car1_y, car1_code, car1_flipy, 1)) |
| 749 | { | |
| 750 | 674 | carpolo_generate_car_goal_interrupt(0, 1); |
| 751 | ||
| 675 | ||
| 752 | 676 | else if (check_sprite_left_goal_collision(machine, car2_x, car2_y, car2_code, car2_flipy, 1)) |
| 753 | { | |
| 754 | 677 | carpolo_generate_car_goal_interrupt(1, 0); |
| 755 | ||
| 678 | ||
| 756 | 679 | else if (check_sprite_right_goal_collision(machine, car2_x, car2_y, car2_code, car2_flipy, 1)) |
| 757 | { | |
| 758 | 680 | carpolo_generate_car_goal_interrupt(1, 1); |
| 759 | ||
| 681 | ||
| 760 | 682 | else if (check_sprite_left_goal_collision(machine, car3_x, car3_y, car3_code, car3_flipy, 1)) |
| 761 | { | |
| 762 | 683 | carpolo_generate_car_goal_interrupt(2, 0); |
| 763 | ||
| 684 | ||
| 764 | 685 | else if (check_sprite_right_goal_collision(machine, car3_x, car3_y, car3_code, car3_flipy, 1)) |
| 765 | { | |
| 766 | 686 | carpolo_generate_car_goal_interrupt(2, 1); |
| 767 | ||
| 687 | ||
| 768 | 688 | else if (check_sprite_left_goal_collision(machine, car4_x, car4_y, car4_code, car4_flipy, 1)) |
| 769 | { | |
| 770 | 689 | carpolo_generate_car_goal_interrupt(3, 0); |
| 771 | ||
| 690 | ||
| 772 | 691 | else if (check_sprite_right_goal_collision(machine, car4_x, car4_y, car4_code, car4_flipy, 1)) |
| 773 | { | |
| 774 | 692 | carpolo_generate_car_goal_interrupt(3, 1); |
| 775 | } | |
| 776 | 693 | |
| 777 | 694 | |
| 778 | / | |
| 695 | /* check ball collision with static screen elements */ | |
| 779 | 696 | { |
| 780 | int col; | |
| 697 | int col; | |
| 781 | 698 | |
| 782 | col = check_sprite_left_goal_collision(machine, ball_x, ball_y, ball_code, ball_flipy, 0); | |
| 699 | col = check_sprite_left_goal_collision(machine, ball_x, ball_y, ball_code, ball_flipy, 0); | |
| 783 | 700 | |
| 784 | if (col == 1) carpolo_generate_ball_screen_interrupt(0x05); | |
| 785 | if (col == 2) carpolo_generate_ball_screen_interrupt(0x03); | |
| 701 | if (col == 1) carpolo_generate_ball_screen_interrupt(0x05); | |
| 702 | if (col == 2) carpolo_generate_ball_screen_interrupt(0x03); | |
| 786 | 703 | |
| 787 | 704 | |
| 788 | col = check_sprite_right_goal_collision(machine, ball_x, ball_y, ball_code, ball_flipy, 0); | |
| 705 | col = check_sprite_right_goal_collision(machine, ball_x, ball_y, ball_code, ball_flipy, 0); | |
| 789 | 706 | |
| 790 | if (col == 1) carpolo_generate_ball_screen_interrupt(0x05 | 0x08); | |
| 791 | if (col == 2) carpolo_generate_ball_screen_interrupt(0x03 | 0x08); | |
| 707 | if (col == 1) carpolo_generate_ball_screen_interrupt(0x05 | 0x08); | |
| 708 | if (col == 2) carpolo_generate_ball_screen_interrupt(0x03 | 0x08); | |
| 792 | 709 | |
| 793 | 710 | |
| 794 | if (check_sprite_border_collision(machine, ball_x, ball_y, ball_code, ball_flipy)) | |
| 795 | { | |
| 796 | carpolo_generate_ball_screen_interrupt(0x06); | |
| 711 | if (check_sprite_border_collision(machine, ball_x, ball_y, ball_code, ball_flipy)) | |
| 712 | carpolo_generate_ball_screen_interrupt(0x06); | |
| 797 | 713 | } |
| 798 | } | |
| 799 | 714 | |
| 800 | 715 | |
| 801 | / | |
| 716 | /* check car-border collision */ | |
| 802 | 717 | { |
| 803 | int col; | |
| 718 | int col; | |
| 804 | 719 | |
| 805 | col = check_sprite_border_collision(machine, car1_x, car1_y, car1_code, car1_flipy); | |
| 720 | col = check_sprite_border_collision(machine, car1_x, car1_y, car1_code, car1_flipy); | |
| 806 | 721 | |
| 807 | if (col) | |
| 808 | { | |
| 809 | carpolo_generate_car_border_interrupt(0, (col == 2)); | |
| 810 | } | |
| 811 | else | |
| 812 | { | |
| 813 | col = check_sprite_border_collision(machine, car2_x, car2_y, car2_code, car2_flipy); | |
| 814 | ||
| 815 | 722 | if (col) |
| 816 | { | |
| 817 | carpolo_generate_car_border_interrupt(1, (col == 2)); | |
| 818 | } | |
| 723 | carpolo_generate_car_border_interrupt(0, (col == 2)); | |
| 819 | 724 | else |
| 820 | 725 | { |
| 821 | col = check_sprite_border_collision(machine, car | |
| 726 | col = check_sprite_border_collision(machine, car2_x, car2_y, car2_code, car2_flipy); | |
| 822 | 727 | |
| 823 | 728 | if (col) |
| 824 | { | |
| 825 | carpolo_generate_car_border_interrupt(2, (col == 2)); | |
| 826 | } | |
| 729 | carpolo_generate_car_border_interrupt(1, (col == 2)); | |
| 827 | 730 | else |
| 828 | 731 | { |
| 829 | col = check_sprite_border_collision(machine, car | |
| 732 | col = check_sprite_border_collision(machine, car3_x, car3_y, car3_code, car3_flipy); | |
| 830 | 733 | |
| 831 | 734 | if (col) |
| 735 | carpolo_generate_car_border_interrupt(2, (col == 2)); | |
| 736 | else | |
| 832 | 737 | { |
| 833 | carpolo_generate_car_border_interrupt(3, (col == 2)); | |
| 738 | col = check_sprite_border_collision(machine, car4_x, car4_y, car4_code, car4_flipy); | |
| 739 | ||
| 740 | if (col) | |
| 741 | carpolo_generate_car_border_interrupt(3, (col == 2)); | |
| 834 | 742 | } |
| 835 | 743 | } |
| 836 | 744 | } |
| 837 | 745 | } |
| 838 | } | |
| 839 | 746 | } |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | *************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "system1.h" |
| 12 | 13 | |
| 13 | 14 | UINT8 *system1_scroll_y; |
| r1649 | r1650 | |
| 457 | 458 | |
| 458 | 459 | /* copy the temporary bitmap to the screen */ |
| 459 | 460 | if (flip_screen) |
| 460 | copyscrollbitmap(bitmap,tmp_bitmap,1,&background_scrollx_flip,1,&background_scrolly_flip,cliprect | |
| 461 | copyscrollbitmap(bitmap,tmp_bitmap,1,&background_scrollx_flip,1,&background_scrolly_flip,cliprect | |
| 461 | 462 | else |
| 462 | copyscrollbitmap(bitmap,tmp_bitmap,1,&background_scrollx,1,&background_scrolly,cliprect | |
| 463 | copyscrollbitmap(bitmap,tmp_bitmap,1,&background_scrollx,1,&background_scrolly,cliprect | |
| 463 | 464 | } |
| 464 | 465 | else |
| 465 | 466 | { |
| r1649 | r1650 | |
| 607 | 608 | for (i = 0; i < 32; i++) |
| 608 | 609 | scrollx_row_flip[31-i] = (256-scrollx_row[i]) & 0xff; |
| 609 | 610 | |
| 610 | copyscrollbitmap(bitmap,tmp_bitmap,32,scrollx_row_flip,0,0,cliprect | |
| 611 | copyscrollbitmap(bitmap,tmp_bitmap,32,scrollx_row_flip,0,0,cliprect | |
| 611 | 612 | } |
| 612 | 613 | else |
| 613 | copyscrollbitmap(bitmap,tmp_bitmap,32,scrollx_row,0,0,cliprect | |
| 614 | copyscrollbitmap(bitmap,tmp_bitmap,32,scrollx_row,0,0,cliprect | |
| 614 | 615 | } |
| 615 | 616 | else |
| 616 | copybitmap(bitmap,tmp_bitmap,0,0,0,0,cliprect | |
| 617 | copybitmap(bitmap,tmp_bitmap,0,0,0,0,cliprect | |
| 617 | 618 | } |
| 618 | 619 | else |
| 619 | 620 | { |
| r1649 | r1650 | |
|---|---|---|
| 38 | 38 | **************************************************************************/ |
| 39 | 39 | |
| 40 | 40 | #include "driver.h" |
| 41 | #include "deprecat.h" | |
| 41 | 42 | |
| 42 | 43 | /* Variables that driver has access to: */ |
| 43 | 44 | UINT16 *powerins_vram_0, *powerins_vctrl_0; |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ******************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | |
| 11 | 12 | |
| 12 | 13 | #define VRAM_MAX 3 |
| r1649 | r1650 | |
| 433 | 434 | } |
| 434 | 435 | |
| 435 | 436 | if (niyanpai_dispflag[0]) |
| 436 | { | |
| 437 | copyscrollbitmap(bitmap, niyanpai_tmpbitmap[0], 1, &scrollx[0], 1, &scrolly[0], &machine->screen[0].visarea, TRANSPARENCY_NONE, 0); | |
| 438 | } | |
| 437 | copyscrollbitmap(bitmap, niyanpai_tmpbitmap[0], 1, &scrollx[0], 1, &scrolly[0], cliprect); | |
| 439 | 438 | else |
| 440 | { | |
| 441 | 439 | fillbitmap(bitmap, machine->pens[0x00ff], 0); |
| 442 | } | |
| 443 | 440 | |
| 444 | 441 | if (niyanpai_dispflag[1]) |
| 445 | { | |
| 446 | copyscrollbitmap(bitmap, niyanpai_tmpbitmap[1], 1, &scrollx[1], 1, &scrolly[1], &machine->screen[0].visarea, TRANSPARENCY_PEN, machine->pens[0x01ff]); | |
| 447 | } | |
| 442 | copyscrollbitmap_trans(bitmap, niyanpai_tmpbitmap[1], 1, &scrollx[1], 1, &scrolly[1], cliprect, machine->pens[0x01ff]); | |
| 448 | 443 | |
| 449 | 444 | if (niyanpai_dispflag[2]) |
| 450 | { | |
| 451 | copyscrollbitmap(bitmap, niyanpai_tmpbitmap[2], 1, &scrollx[2], 1, &scrolly[2], &machine->screen[0].visarea, TRANSPARENCY_PEN, machine->pens[0x02ff]); | |
| 452 | } | |
| 445 | copyscrollbitmap_trans(bitmap, niyanpai_tmpbitmap[2], 1, &scrollx[2], 1, &scrolly[2], cliprect, machine->pens[0x02ff]); | |
| 446 | ||
| 453 | 447 | return 0; |
| 454 | 448 | } |
| r1649 | r1650 | |
|---|---|---|
| 82 | 82 | #include "driver.h" |
| 83 | 83 | #include "eminline.h" |
| 84 | 84 | #include "profiler.h" |
| 85 | #include "deprecat.h" | |
| 85 | 86 | |
| 86 | 87 | UINT32* stv_vdp2_regs; |
| 87 | 88 | UINT32* stv_vdp2_vram; |
| r1649 | r1650 | |
|---|---|---|
| 2 | 2 | |
| 3 | 3 | Atari Return of the Jedi hardware |
| 4 | 4 | |
| 5 | Return of the Jedi has a peculiar playfield/motion object | |
| 6 | priority system. That is, there is no priority system ;-) | |
| 7 | The color of the pixel which appears on screen depends on | |
| 8 | all three of the foreground, background and motion objects. | |
| 9 | The 1024 colors palette is appropriately set up by the program | |
| 10 | to "emulate" a priority system, but it can also be used to display | |
| 11 | completely different colors (see the palette test in service mode) | |
| 12 | ||
| 5 | 13 | ***************************************************************************/ |
| 6 | 14 | |
| 7 | 15 | #include "driver.h" |
| 8 | 16 | #include "jedi.h" |
| 9 | 17 | |
| 10 | 18 | |
| 19 | #define NUM_PENS (0x1000) | |
| 20 | ||
| 21 | ||
| 11 | 22 | /* globals */ |
| 23 | UINT8 *jedi_foregroundram; | |
| 12 | 24 | UINT8 *jedi_backgroundram; |
| 13 | size_t jedi_backgroundram_size; | |
| 25 | UINT8 *jedi_spriteram; | |
| 26 | UINT8 *jedi_paletteram; | |
| 27 | UINT8 *jedi_foreground_bank; | |
| 14 | 28 | |
| 15 | ||
| 16 | 29 | /* local variables */ |
| 17 | 30 | static UINT32 jedi_vscroll; |
| 18 | 31 | static UINT32 jedi_hscroll; |
| 19 | static UINT32 jedi_alpha_bank; | |
| 20 | static UINT8 video_off, smooth_table; | |
| 21 | static mame_bitmap *fgbitmap, *mobitmap, *bgbitmap, *bgexbitmap; | |
| 32 | static UINT8 video_off; | |
| 33 | static UINT8 smoothing_table; | |
| 22 | 34 | |
| 23 | 35 | |
| 24 | 36 | |
| r1649 | r1650 | |
| 30 | 42 | |
| 31 | 43 | VIDEO_START( jedi ) |
| 32 | 44 | { |
| 33 | /* allocate an 8bpp bitmap for the raw foreground characters */ | |
| 34 | fgbitmap = auto_bitmap_alloc(machine->screen[0].width, machine->screen[0].height, machine->screen[0].format); | |
| 35 | ||
| 36 | /* allocate an 8bpp bitmap for the motion objects */ | |
| 37 | mobitmap = auto_bitmap_alloc(machine->screen[0].width, machine->screen[0].height, machine->screen[0].format); | |
| 38 | fillbitmap(mobitmap, 0, &machine->screen[0].visarea); | |
| 39 | ||
| 40 | /* the background area is 256x256, doubled by the hardware*/ | |
| 41 | bgbitmap = auto_bitmap_alloc(256, 256, machine->screen[0].format); | |
| 42 | ||
| 43 | /* the expanded background area is 512x512 */ | |
| 44 | bgexbitmap = auto_bitmap_alloc(512, 512, machine->screen[0].format); | |
| 45 | ||
| 46 | /* reserve color 1024 for black (disabled display) */ | |
| 47 | palette_set_color(machine, 1024, MAKE_RGB(0, 0, 0)); | |
| 48 | ||
| 49 | 45 | /* register for saving */ |
| 50 | 46 | state_save_register_global(jedi_vscroll); |
| 51 | 47 | state_save_register_global(jedi_hscroll); |
| 52 | state_save_register_global(jedi_alpha_bank); | |
| 53 | 48 | state_save_register_global(video_off); |
| 54 | state_save_register_global(smooth_table); | |
| 49 | state_save_register_global(smoothing_table); | |
| 55 | 50 | } |
| 56 | 51 | |
| 57 | 52 | |
| r1649 | r1650 | |
| 82 | 77 | * |
| 83 | 78 | *************************************/ |
| 84 | 79 | |
| 85 | ||
| 80 | static | |
| 86 | 81 | { |
| 87 | int r, g, b, bits, intensity; | |
| 88 | UINT32 color; | |
| 82 | offs_t offs; | |
| 89 | 83 | |
| 90 | paletteram[offset] = data; | |
| 91 | color = paletteram[offset & 0x3FF] | (paletteram[offset | 0x400] << 8); | |
| 84 | for (offs = 0; offs < NUM_PENS; offs++) | |
| 85 | { | |
| 86 | int r, g, b, bits, intensity; | |
| 92 | 87 | |
| 93 | intensity = (color >> 9) & 7; | |
| 94 | bits = (color >> 6) & 7; | |
| 95 | r = 5 * bits * intensity; | |
| 96 | bits = (color >> 3) & 7; | |
| 97 | g = 5 * bits * intensity; | |
| 98 | bits = (color >> 0) & 7; | |
| 99 | b = 5 * bits * intensity; | |
| 88 | UINT16 color = jedi_paletteram[offs] | (jedi_paletteram[offs | 0x400] << 8); | |
| 100 | 89 | |
| 101 | palette_set_color(Machine, offset & 0x3ff, MAKE_RGB(r, g, b)); | |
| 90 | intensity = (color >> 9) & 7; | |
| 91 | bits = (color >> 6) & 7; | |
| 92 | r = 5 * bits * intensity; | |
| 93 | bits = (color >> 3) & 7; | |
| 94 | g = 5 * bits * intensity; | |
| 95 | bits = (color >> 0) & 7; | |
| 96 | b = 5 * bits * intensity; | |
| 97 | ||
| 98 | pens[offs] = MAKE_RGB(r, g, b); | |
| 99 | } | |
| 102 | 100 | } |
| 103 | 101 | |
| 104 | 102 | |
| 103 | static void do_pen_lookup(mame_bitmap *bitmap, const rectangle *cliprect) | |
| 104 | { | |
| 105 | int y, x; | |
| 106 | pen_t pens[NUM_PENS]; | |
| 105 | 107 | |
| 106 | /************************************* | |
| 107 | * | |
| 108 | * Foreground banking | |
| 109 | * | |
| 110 | *************************************/ | |
| 108 | get_pens(pens); | |
| 111 | 109 | |
| 112 | WRITE8_HANDLER( jedi_alpha_banksel_w ) | |
| 113 | { | |
| 114 | jedi_alpha_bank = 2 * (data & 0x80); | |
| 110 | for (y = cliprect->min_y; y <= cliprect->max_y; y++) | |
| 111 | for(x = cliprect->min_x; x <= cliprect->max_x; x++) | |
| 112 | *BITMAP_ADDR32(bitmap, y, x) = pens[*BITMAP_ADDR32(bitmap, y, x)]; | |
| 115 | 113 | } |
| 116 | 114 | |
| 117 | 115 | |
| r1649 | r1650 | |
| 149 | 147 | |
| 150 | 148 | WRITE8_HANDLER( jedi_PIXIRAM_w ) |
| 151 | 149 | { |
| 152 | smooth_table = data & 0x03; | |
| 150 | /* this should really be 0x07, but the PROMs were | |
| 151 | dumped at half size */ | |
| 152 | smoothing_table = data & 0x03; | |
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | |
| 156 | 156 | |
| 157 | 157 | /************************************* |
| 158 | 158 | * |
| 159 | * | |
| 159 | * Foreground draw | |
| 160 | 160 | * |
| 161 | 161 | *************************************/ |
| 162 | 162 | |
| 163 | static void | |
| 163 | static void | |
| 164 | 164 | { |
| 165 | UINT8 *prom = memory_region(REGION_PROMS) + smooth_table * 0x100; | |
| 166 | UINT8 bgscan[2][256]; | |
| 167 | UINT8 *bgcurr = bgscan[0], *bglast = bgscan[1]; | |
| 168 | int x, y; | |
| 165 | offs_t offs; | |
| 166 | UINT32 *dst = BITMAP_ADDR32(bitmap, 0, 0); | |
| 169 | 167 | |
| 170 | /* | |
| 171 | smoothing notes: | |
| 172 | * even scanlines blend the previous (Y-1) and current (Y) line | |
| 173 | * odd scanlines are just taken from the current line (Y) | |
| 174 | * therefore, if we modify source scanlines 8-15, we must update dest scanlines 16-32 | |
| 175 | ||
| 176 | * even pixels are just taken from the current pixel (X) | |
| 177 | * odd pixels blend the current (X) and next (X+1) pixels | |
| 178 | * therefore, if we modify source pixels 8-15, we must update dest pixels 15-31 | |
| 179 | */ | |
| 180 | ||
| 181 | /* extract the previous bg scanline */ | |
| 182 | extract_scanline8(bgbitmap, 0, ((bgtilerow * 16 - 1) & 0x1ff) / 2, 256, bgcurr); | |
| 183 | ||
| 184 | /* loop over height */ | |
| 185 | for (y = 0; y <= 16; y++) | |
| 168 | /* draw the bitmap 4 pixels at a time */ | |
| 169 | for (offs = 0; offs < 0x7c00; offs++) | |
| 186 | 170 | { |
| 187 | int curry = (bgtilerow * 16 + y) & 0x1ff; | |
| 171 | UINT16 code = ((*jedi_foreground_bank & 0x80) << 1) | | |
| 172 | jedi_foregroundram[((offs & 0x7c00) >> 4) | ((offs & 0x7e) >> 1)]; | |
| 188 | 173 | |
| 189 | /* swap background buffers */ | |
| 190 | UINT8 *bgtemp = bgcurr; | |
| 191 | bgcurr = bglast; | |
| 192 | bglast = bgtemp; | |
| 174 | UINT8 data = memory_region(REGION_GFX1)[(code << 4) | ((offs & 0x380) >> 6) | (offs & 0x01)]; | |
| 193 | 175 | |
| 194 | /* extract current bg scanline */ | |
| 195 | extract_scanline8(bgbitmap, 0, curry / 2, 256, bgcurr); | |
| 176 | /* the background pixel determines pen address bits A8 and A9 */ | |
| 177 | dst[0] = (dst[0] & 0xff) | ((data & 0xc0) << 2); | |
| 178 | dst[1] = (dst[1] & 0xff) | ((data & 0x30) << 4); | |
| 179 | dst[2] = (dst[2] & 0xff) | ((data & 0x0c) << 6); | |
| 180 | dst[3] = (dst[3] & 0xff) | ((data & 0x03) << 8); | |
| 196 | 181 | |
| 197 | /* loop over columns */ | |
| 198 | for (x = -1; x <= 511; x++) | |
| 199 | { | |
| 200 | int tr = bglast[((x + 1) & 0x1ff) / 2]; | |
| 201 | int br = bgcurr[((x + 1) & 0x1ff) / 2]; | |
| 202 | ||
| 203 | /* smooth pixels */ | |
| 204 | if (x & 1) | |
| 205 | { | |
| 206 | int tl = bglast[(x & 0x1ff) / 2]; | |
| 207 | int bl = bgcurr[(x & 0x1ff) / 2]; | |
| 208 | int mixt = prom[16 * tl + tr]; | |
| 209 | int mixb = prom[16 * bl + br]; | |
| 210 | *BITMAP_ADDR16(bgexbitmap, curry, x & 0x1ff) = prom[0x400 + 16 * mixt + mixb]; | |
| 211 | } | |
| 212 | else | |
| 213 | *BITMAP_ADDR16(bgexbitmap, curry, x & 0x1ff) = prom[0x400 + 16 * tr + br]; | |
| 214 | } | |
| 182 | dst = dst + 4; | |
| 215 | 183 | } |
| 216 | 184 | } |
| 217 | 185 | |
| r1649 | r1650 | |
| 219 | 187 | |
| 220 | 188 | /************************************* |
| 221 | 189 | * |
| 222 | * | |
| 190 | * Background drawing with | |
| 223 | 191 | * |
| 224 | 192 | *************************************/ |
| 225 | 193 | |
| 226 | ||
| 194 | static void draw_and_smooth_background(mame_bitmap *bitmap, const rectangle *cliprect) | |
| 227 | 195 | { |
| 228 | int offs; | |
| 196 | int y; | |
| 197 | UINT32 background_line_buffer[0x200]; /* RAM chip at 2A */ | |
| 229 | 198 | |
| 199 | UINT8 *prom1 = &memory_region(REGION_PROMS)[0x0000 | (smoothing_table << 8)]; | |
| 200 | UINT8 *prom2 = &memory_region(REGION_PROMS)[0x0800 | (smoothing_table << 8)]; | |
| 230 | 201 | |
| 231 | /* if no video, clear it all to black */ | |
| 232 | if (video_off) | |
| 202 | memset(background_line_buffer, 0, 0x200 * sizeof(UINT32)); | |
| 203 | ||
| 204 | for (y = cliprect->min_y; y <= cliprect->max_y; y++) | |
| 233 | 205 | { |
| 234 | fillbitmap(bitmap, machine->pens[1024], &machine->screen[0].visarea); | |
| 235 | return 0; | |
| 236 | } | |
| 206 | int x; | |
| 207 | UINT32 last_col = 0; | |
| 237 | 208 | |
| 238 | /* Return of the Jedi has a peculiar playfield/motion object priority system. That */ | |
| 239 | /* is, there is no priority system ;-) The color of the pixel which appears on */ | |
| 240 | /* screen depends on all three of the foreground, background and motion objects. The */ | |
| 241 | /* 1024 colors palette is appropriately set up by the program to "emulate" a */ | |
| 242 | /* priority system, but it can also be used to display completely different */ | |
| 243 | /* colors (see the palette test in service mode) */ | |
| 209 | for (x = cliprect->min_x; x <= cliprect->max_x; x += 2) | |
| 210 | { | |
| 211 | UINT32 col; | |
| 212 | UINT32 tempcol; | |
| 213 | offs_t gfx_offs; | |
| 214 | UINT8 data1; | |
| 215 | UINT8 data2; | |
| 244 | 216 | |
| 245 | /* update foreground bitmap as a raw bitmap*/ | |
| 246 | for (offs = videoram_size - 1; offs >= 0; offs--) | |
| 247 | { | |
| 248 | int sx = offs % 64; | |
| 249 | int sy = offs / 64; | |
| 217 | int sy = y + jedi_vscroll; | |
| 218 | int sx = x + jedi_hscroll; | |
| 250 | 219 | |
| 251 | drawgfx(fgbitmap, machine->gfx[0], videoram[offs] + jedi_alpha_bank, | |
| 252 | 0, 0, 0, 8*sx, 8*sy, &machine->screen[0].visarea, TRANSPARENCY_NONE_RAW, 0); | |
| 253 | } | |
| 220 | offs_t backgroundram_offs = ((sy & 0x1f0) << 1) | ((sx & 0x1f0) >> 4); | |
| 254 | 221 | |
| 255 | /* update background bitmap as a raw bitmap */ | |
| 256 | for (offs = jedi_backgroundram_size / 2 - 1; offs >= 0; offs--) | |
| 257 | { | |
| 258 | int sx = offs % 32; | |
| 259 | int sy = offs / 32; | |
| 260 | int code = (jedi_backgroundram[offs] & 0xFF); | |
| 261 | int bank = (jedi_backgroundram[offs + 0x400] & 0x0F); | |
| 222 | /* shuffle the bank bits in */ | |
| 223 | UINT8 bank = jedi_backgroundram[0x0400 | backgroundram_offs]; | |
| 224 | UINT16 code = jedi_backgroundram[0x0000 | backgroundram_offs] | | |
| 225 | ((bank & 0x01) << 8) | | |
| 226 | ((bank & 0x08) << 6) | | |
| 227 | ((bank & 0x02) << 9); | |
| 262 | 228 | |
| 263 | /* shuffle the bank bits in */ | |
| 264 | code |= (bank & 0x01) << 8; | |
| 265 | code |= (bank & 0x08) << 6; | |
| 266 | code |= (bank & 0x02) << 9; | |
| 229 | /* flip X */ | |
| 230 | if (bank & 0x04) | |
| 231 | sx = sx ^ 0x0f; | |
| 267 | 232 | |
| 268 | drawgfx(bgbitmap, machine->gfx[1], code, | |
| 269 | 0, bank & 0x04, 0, 8*sx, 8*sy, 0, TRANSPARENCY_NONE_RAW, 0); | |
| 233 | /* get the pointer to the graphics */ | |
| 234 | gfx_offs = (code << 4) | (sy & 0x0e) | (((sx & 0x08) >> 3)); | |
| 235 | ||
| 236 | data1 = memory_region(REGION_GFX2)[0x0000 | gfx_offs]; | |
| 237 | data2 = memory_region(REGION_GFX2)[0x8000 | gfx_offs]; | |
| 238 | ||
| 239 | /* the foreground pixel determines pen address bits A0-A3 */ | |
| 240 | switch (sx & 0x06) | |
| 241 | { | |
| 242 | case 0x00: col = ((data1 & 0x80) >> 4) | ((data1 & 0x08) >> 1) | ((data2 & 0x80) >> 6) | ((data2 & 0x08) >> 3); break; | |
| 243 | case 0x02: col = ((data1 & 0x40) >> 3) | ((data1 & 0x04) >> 0) | ((data2 & 0x40) >> 5) | ((data2 & 0x04) >> 2); break; | |
| 244 | case 0x04: col = ((data1 & 0x20) >> 2) | ((data1 & 0x02) << 1) | ((data2 & 0x20) >> 4) | ((data2 & 0x02) >> 1); break; | |
| 245 | default: col = ((data1 & 0x10) >> 1) | ((data1 & 0x01) << 2) | ((data2 & 0x10) >> 3) | ((data2 & 0x01) >> 0); break; | |
| 246 | } | |
| 247 | ||
| 248 | /* the first pixel is smoothed via a lookup using the current and last pixel value - | |
| 249 | the next pixel just uses the current value directly. After we done with a pixel | |
| 250 | save it for later in the line buffer RAM */ | |
| 251 | tempcol = prom1[(last_col << 4) | col]; | |
| 252 | *BITMAP_ADDR32(bitmap, y, x + 0) = prom2[(background_line_buffer[x + 0] << 4) | tempcol]; | |
| 253 | *BITMAP_ADDR32(bitmap, y, x + 1) = prom2[(background_line_buffer[x + 1] << 4) | col]; | |
| 254 | background_line_buffer[x + 0] = tempcol; | |
| 255 | background_line_buffer[x + 1] = col; | |
| 256 | ||
| 257 | last_col = col; | |
| 258 | } | |
| 270 | 259 | } |
| 260 | } | |
| 271 | 261 | |
| 272 | /* update smoothed version of background */ | |
| 273 | for (offs = 0; offs < 32; offs++) | |
| 274 | update_smoothing(offs); | |
| 275 | 262 | |
| 276 | /* draw the motion objects */ | |
| 277 | for (offs = 0; offs < 0x30; offs++) | |
| 263 | ||
| 264 | /************************************* | |
| 265 | * | |
| 266 | * Sprite drawing | |
| 267 | * | |
| 268 | *************************************/ | |
| 269 | ||
| 270 | static void draw_sprites(mame_bitmap *bitmap) | |
| 271 | { | |
| 272 | offs_t offs; | |
| 273 | ||
| 274 | for (offs = 0x00; offs < 0x30; offs++) | |
| 278 | 275 | { |
| 276 | int sy; | |
| 277 | int y_size; | |
| 278 | UINT8 *gfx; | |
| 279 | ||
| 279 | 280 | /* coordinates adjustments made to match screenshot */ |
| 280 | int x = spriteram[offs + 0x100] + ((spriteram[offs + 0x40] & 0x01) << 8) - 2; | |
| 281 | int y = 240 - spriteram[offs + 0x80] + 1; | |
| 282 | int flipx = spriteram[offs + 0x40] & 0x10; | |
| 283 | int flipy = spriteram[offs + 0x40] & 0x20; | |
| 284 | int tall = spriteram[offs + 0x40] & 0x08; | |
| 285 | int code, bank; | |
| 281 | UINT8 y = 240 - jedi_spriteram[offs + 0x80] + 1; | |
| 282 | int flip_x = jedi_spriteram[offs + 0x40] & 0x10; | |
| 283 | int flip_y = jedi_spriteram[offs + 0x40] & 0x20; | |
| 284 | int tall = jedi_spriteram[offs + 0x40] & 0x08; | |
| 286 | 285 | |
| 287 | 286 | /* shuffle the bank bits in */ |
| 288 | bank = ((spriteram[offs + 0x40] & 0x02) >> 1); | |
| 289 | bank |= ((spriteram[offs + 0x40] & 0x40) >> 5); | |
| 290 | bank |= (spriteram[offs + 0x40] & 0x04); | |
| 291 | code = spriteram[offs] + (bank * 256); | |
| 287 | UINT16 code = jedi_spriteram[offs] | | |
| 288 | ((jedi_spriteram[offs + 0x40] & 0x04) << 8) | | |
| 289 | ((jedi_spriteram[offs + 0x40] & 0x40) << 3) | | |
| 290 | ((jedi_spriteram[offs + 0x40] & 0x02) << 7); | |
| 292 | 291 | |
| 293 | 292 | /* adjust for double-height */ |
| 294 | 293 | if (tall) |
| 295 | code |= 1; | |
| 294 | { | |
| 295 | code &= ~1; | |
| 296 | y_size = 0x20; | |
| 297 | y = y - 0x10; | |
| 298 | } | |
| 299 | else | |
| 300 | y_size = 0x10; | |
| 296 | 301 | |
| 297 | /* draw motion object */ | |
| 298 | drawgfx(mobitmap, machine->gfx[2], code, | |
| 299 | 0, flipx, flipy, x, y, &machine->screen[0].visarea, TRANSPARENCY_PEN_RAW, 0); | |
| 302 | gfx = &memory_region(REGION_GFX3)[code << 5]; | |
| 300 | 303 | |
| 301 | /* handle double-height */ | |
| 302 | if (tall) | |
| 303 | drawgfx(mobitmap, machine->gfx[2], code - 1, | |
| 304 | 0, flipx, flipy, x, y - 16, &machine->screen[0].visarea, TRANSPARENCY_PEN_RAW, 0); | |
| 305 | } | |
| 304 | if (flip_y) | |
| 305 | y = y + y_size - 1; | |
| 306 | 306 | |
| 307 | /* compose the three layers */ | |
| 308 | { | |
| 309 | int xscroll = -jedi_hscroll; | |
| 310 | int yscroll = -jedi_vscroll; | |
| 311 | copyscrollbitmap(bitmap, bgexbitmap, 1, &xscroll, 1, &yscroll, &machine->screen[0].visarea, TRANSPARENCY_NONE, 0); | |
| 312 | copybitmap(bitmap, mobitmap, 0, 0, 0, 0, &machine->screen[0].visarea, TRANSPARENCY_BLEND_RAW, 4); | |
| 313 | copybitmap(bitmap, fgbitmap, 0, 0, 0, 0, &machine->screen[0].visarea, TRANSPARENCY_BLEND, 8); | |
| 307 | for (sy = 0; sy < y_size; sy++) | |
| 308 | { | |
| 309 | int i; | |
| 310 | UINT16 x = jedi_spriteram[offs + 0x100] + ((jedi_spriteram[offs + 0x40] & 0x01) << 8) - 2; | |
| 311 | ||
| 312 | if (flip_x) | |
| 313 | x = x + 7; | |
| 314 | ||
| 315 | for (i = 0; i < 2; i++) | |
| 316 | { | |
| 317 | int sx; | |
| 318 | UINT8 data1 = *(0x00000 + gfx); | |
| 319 | UINT8 data2 = *(0x10000 + gfx); | |
| 320 | ||
| 321 | for (sx = 0; sx < 4; sx++) | |
| 322 | { | |
| 323 | /* the sprite pixel determines pen address bits A4-A7 */ | |
| 324 | UINT32 col = ((data1 & 0x80) >> 0) | ((data1 & 0x08) << 3) | ((data2 & 0x80) >> 2) | ((data2 & 0x08) << 1); | |
| 325 | ||
| 326 | x = x & 0x1ff; | |
| 327 | ||
| 328 | if (col) | |
| 329 | *BITMAP_ADDR32(bitmap, y, x) = (*BITMAP_ADDR32(bitmap, y, x) & 0x30f) | col; | |
| 330 | ||
| 331 | /* next pixel */ | |
| 332 | if (flip_x) | |
| 333 | x = x - 1; | |
| 334 | else | |
| 335 | x = x + 1; | |
| 336 | ||
| 337 | data1 = data1 << 1; | |
| 338 | data2 = data2 << 1; | |
| 339 | } | |
| 340 | ||
| 341 | gfx = gfx + 1; | |
| 342 | } | |
| 343 | ||
| 344 | if (flip_y) | |
| 345 | y = y - 1; | |
| 346 | else | |
| 347 | y = y + 1; | |
| 348 | } | |
| 314 | 349 | } |
| 350 | } | |
| 315 | 351 | |
| 316 | /* erase the motion objects */ | |
| 317 | for (offs = 0; offs < 0x30; offs++) | |
| 352 | ||
| 353 | ||
| 354 | /************************************* | |
| 355 | * | |
| 356 | * Core video refresh | |
| 357 | * | |
| 358 | *************************************/ | |
| 359 | ||
| 360 | VIDEO_UPDATE( jedi ) | |
| 361 | { | |
| 362 | /* if no video, clear it all to black */ | |
| 363 | if (video_off) | |
| 364 | fillbitmap(bitmap, RGB_BLACK, cliprect); | |
| 365 | else | |
| 318 | 366 | { |
| 319 | /* coordinates adjustments made to match screenshot */ | |
| 320 | int x = spriteram[offs + 0x100] + ((spriteram[offs + 0x40] & 0x01) << 8) - 2; | |
| 321 | int y = 240 - spriteram[offs + 0x80] + 1; | |
| 322 | int tall = spriteram[offs + 0x40] & 0x08; | |
| 323 | rectangle bounds; | |
| 367 | /* draw the background - it needs to be done first */ | |
| 368 | draw_and_smooth_background(bitmap, cliprect); | |
| 324 | 369 | |
| 325 | /* compute the bounds */ | |
| 326 | bounds.min_x = x; | |
| 327 | bounds.max_x = x + 15; | |
| 328 | bounds.min_y = tall ? (y - 16) : y; | |
| 329 | bounds.max_y = y + (tall ? 31 : 15); | |
| 330 | fillbitmap(mobitmap, 0, &bounds); | |
| 331 | } | |
| 370 | draw_foreground(bitmap); | |
| 371 | draw_sprites(bitmap); | |
| 372 | ||
| 373 | do_pen_lookup(bitmap, cliprect); | |
| 374 | } | |
| 375 | ||
| 332 | 376 | return 0; |
| 333 | 377 | } |
| r1649 | r1650 | |
|---|---|---|
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | 17 | #include "driver.h" |
| 18 | #include "deprecat.h" | |
| 18 | 19 | |
| 19 | 20 | #define SUPRNOVA_DECODE_BUFFER_SIZE 0x2000 |
| 20 | 21 |
| r1649 | r1650 | |
|---|---|---|
| 140 | 140 | #endif |
| 141 | 141 | if (k007121_flip_screen) |
| 142 | 142 | { |
| 143 | k007121_clip[0] = | |
| 143 | k007121_clip[0] = machine->screen[0].visarea; | |
| 144 | 144 | k007121_clip[0].max_x -= 40; |
| 145 | 145 | |
| 146 | k007121_clip[1] = | |
| 146 | k007121_clip[1] = machine->screen[0].visarea; | |
| 147 | 147 | k007121_clip[1].min_x = k007121_clip[1].max_x-40; |
| 148 | 148 | |
| 149 | 149 | tilemap_set_scrollx(k007121_tilemap[0],0,K007121_ctrlram[0][0x00] - 56 ); |
| r1649 | r1650 | |
| 172 | 172 | |
| 173 | 173 | /* draw the graphics */ |
| 174 | 174 | tilemap_draw(bitmap,&final_clip[0],k007121_tilemap[0],0,0); |
| 175 | K007121_sprites_draw( | |
| 175 | K007121_sprites_draw( | |
| 176 | 176 | tilemap_draw(bitmap,&final_clip[1],k007121_tilemap[1],0,0); |
| 177 | 177 | return 0; |
| 178 | 178 | } |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | | |
| 3 | | |
| 4 | 4 | |
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| r1649 | r1650 | |
| 30 | 30 | |
| 31 | 31 | PALETTE_INIT( contra ) |
| 32 | 32 | { |
| 33 | int | |
| 33 | int | |
| 34 | 34 | |
| 35 | for (chip = 0;chip < 2;chip++) | |
| 35 | /* allocate the colortable */ | |
| 36 | machine->colortable = colortable_alloc(machine, 0x80); | |
| 37 | ||
| 38 | for (chip = 0; chip < 2; chip++) | |
| 36 | 39 | { |
| 37 | for (pal = 0;pal < 8;pal++) | |
| 40 | int pal; | |
| 41 | ||
| 42 | for (pal = 0; pal < 8; pal++) | |
| 38 | 43 | { |
| 39 | clut = (pal & 1) + 2 * chip; | |
| 40 | for (i = 0;i < 256;i++) | |
| 44 | int i; | |
| 45 | int clut = (chip << 1) | (pal & 1); | |
| 46 | ||
| 47 | for (i = 0; i < 0x100; i++) | |
| 41 | 48 | { |
| 42 | if ((pal & 1) == 0) /* sprites */ | |
| 43 | { | |
| 44 | if (color_prom[256 * clut + i] == 0) | |
| 45 | *(colortable++) = 0; | |
| 46 | else | |
| 47 | *(colortable++) = 16 * pal + color_prom[256 * clut + i]; | |
| 48 | } | |
| 49 | UINT8 ctabentry; | |
| 50 | ||
| 51 | if (((pal & 0x01) == 0) && (color_prom[(clut << 8) | i] == 0)) | |
| 52 | ctabentry = 0; | |
| 49 | 53 | else |
| 50 | *(colortable++) = 16 * pal + color_prom[256 * clut + i]; | |
| 54 | ctabentry = (pal << 4) | (color_prom[(clut << 8) | i] & 0x0f); | |
| 55 | ||
| 56 | colortable_entry_set_value(machine->colortable, (chip << 11) | (pal << 8) | i, ctabentry); | |
| 51 | 57 | } |
| 52 | 58 | } |
| 53 | 59 | } |
| 54 | 60 | } |
| 55 | 61 | |
| 56 | 62 | |
| 63 | static void set_pens(running_machine *machine) | |
| 64 | { | |
| 65 | int i; | |
| 57 | 66 | |
| 67 | for (i = 0x00; i < 0x100; i += 2) | |
| 68 | { | |
| 69 | UINT16 data = paletteram[i] | (paletteram[i | 1] << 8); | |
| 70 | ||
| 71 | rgb_t color = MAKE_RGB(pal5bit(data >> 0), pal5bit(data >> 5), pal5bit(data >> 10)); | |
| 72 | ||
| 73 | colortable_palette_set_color(machine->colortable, i >> 1, color); | |
| 74 | } | |
| 75 | } | |
| 76 | ||
| 77 | ||
| 78 | ||
| 58 | 79 | /*************************************************************************** |
| 59 | 80 | |
| 60 | 81 | Callbacks for the TileMap code |
| r1649 | r1650 | |
| 254 | 275 | if (bank==0) source=private_spriteram; |
| 255 | 276 | else source=private_spriteram_2; |
| 256 | 277 | |
| 257 | K007121_sprites_draw(machine, | |
| 278 | K007121_sprites_draw(bank,bitmap,machine->gfx,mach | |
| 258 | 279 | } |
| 259 | 280 | |
| 260 | 281 | VIDEO_UPDATE( contra ) |
| r1649 | r1650 | |
| 267 | 288 | sect_rect(&fg_finalclip, cliprect); |
| 268 | 289 | sect_rect(&tx_finalclip, cliprect); |
| 269 | 290 | |
| 291 | set_pens(machine); | |
| 292 | ||
| 270 | 293 | tilemap_set_scrollx( fg_tilemap,0, K007121_ctrlram[0][0x00] - 40 ); |
| 271 | 294 | tilemap_set_scrolly( fg_tilemap,0, K007121_ctrlram[0][0x02] ); |
| 272 | 295 | tilemap_set_scrollx( bg_tilemap,0, K007121_ctrlram[1][0x00] - 40 ); |
| r1649 | r1650 | |
|---|---|---|
| 26 | 26 | ***************************************************************************/ |
| 27 | 27 | |
| 28 | 28 | #include "driver.h" |
| 29 | #include "deprecat.h" | |
| 29 | 30 | #include "paradise.h" |
| 30 | 31 | |
| 31 | 32 | /* Variables that driver has access to: */ |
| r1649 | r1650 | |
| 258 | 259 | |
| 259 | 260 | if (layers_ctrl&1) tilemap_draw(bitmap,cliprect, tilemap_0, 0,0); |
| 260 | 261 | if (layers_ctrl&2) tilemap_draw(bitmap,cliprect, tilemap_1, 0,0); |
| 261 | if (layers_ctrl&4) copybitmap(bitmap,tmpbitmap,flip_screen,flip_screen,0,0,cliprect | |
| 262 | if (layers_ctrl&4) copybitmap_trans(bitmap,tmpbitmap,flip_screen,flip_screen,0,0,cliprect | |
| 262 | 263 | |
| 263 | 264 | if (paradise_priority & 2) |
| 264 | 265 | { |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ****************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "balsente.h" |
| 11 | 12 | |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 6 | 6 | ***************************************************************************/ |
| 7 | 7 | |
| 8 | 8 | #include "driver.h" |
| 9 | #include "deprecat.h" | |
| 9 | 10 | #include "profiler.h" |
| 10 | 11 | #include "cpu/m68000/m68000.h" |
| 11 | 12 | #include "itech32.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "deco16ic.h" |
| 3 | 4 | #include "deco32.h" |
| 4 | 5 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | **************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "eminline.h" |
| 9 | 10 | #include "includes/midzeus.h" |
| 10 | 11 | #include "video/poly.h" |
| r1649 | r1650 | |
|---|---|---|
| 114 | 114 | ***************************************************************************/ |
| 115 | 115 | |
| 116 | 116 | #include "driver.h" |
| 117 | #include "deprecat.h" | |
| 117 | 118 | |
| 118 | 119 | #include "jalblend.c" |
| 119 | 120 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /* Video hardware for Taito Grand Champion */ |
| 2 | 2 | |
| 3 | 3 | /* updated by Hans Andersson, dec 2005 */ |
| 4 | #include <math.h> | |
| 5 | 4 | #include "driver.h" |
| 5 | #include "deprecat.h" | |
| 6 | 6 | #include "video/resnet.h" |
| 7 | 7 | #include "includes/grchamp.h" |
| 8 | 8 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | |
| 9 | 10 | UINT16 *gaiden_videoram,*gaiden_videoram2,*gaiden_videoram3; |
| 10 | 11 | int gaiden_sprite_sizey; |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "fastfred.h" |
| 11 | 12 | |
| 12 | 13 | extern UINT8 galaxian_stars_on; |
| r1649 | r1650 | |
|---|---|---|
| 136 | 136 | scrolly=scrolly+256; |
| 137 | 137 | scrollx=scrollx+256; |
| 138 | 138 | } |
| 139 | copyscrollbitmap(bitmap,bitmap_f,1,&scrollx,1,&scrolly,cliprect | |
| 139 | copyscrollbitmap(bitmap,bitmap_f,1,&scrollx,1,&scrolly,cliprect | |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | static void draw_sprites(running_machine *machine, mame_bitmap *bitmap,const rectangle *cliprect) |
| r1649 | r1650 | |
|---|---|---|
| 430 | 430 | } |
| 431 | 431 | } |
| 432 | 432 | |
| 433 | static void drawbs2(mame_bitmap *bitmap, const rectangle *cliprect) | |
| 433 | static void drawbs2(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect) | |
| 434 | 434 | { |
| 435 | 435 | mame_bitmap *sprbitmap = tilemap_get_pixmap(spr2tilemap); |
| 436 | 436 | int sx,sy; |
| r1649 | r1650 | |
| 442 | 442 | sy = -punchout_bigsprite2[2] + 256 * (punchout_bigsprite2[3] & 1); |
| 443 | 443 | sy += 3; /* adjustment to match the screen shots */ |
| 444 | 444 | |
| 445 | copybitmap(bitmap,sprbitmap, | |
| 446 | punchout_bigsprite2[4] & 1,0, | |
| 447 | sx,sy, | |
| 448 | cliprect,TRANSPARENCY_COLOR,1024); | |
| 445 | copybitmap_trans(bitmap,sprbitmap, punchout_bigsprite2[4] & 1, 0, sx, sy, cliprect, machine->pens[1024]); | |
| 449 | 446 | } |
| 450 | 447 | |
| 451 | 448 | VIDEO_UPDATE( punchout ) |
| r1649 | r1650 | |
| 469 | 466 | |
| 470 | 467 | if (punchout_bigsprite1[7] & 2) /* display in bottom monitor */ |
| 471 | 468 | draw_big_sprite(bitmap, cliprect); |
| 472 | drawbs2(bitmap, cliprect); | |
| 469 | drawbs2(machine, bitmap, cliprect); | |
| 473 | 470 | } |
| 474 | 471 | return 0; |
| 475 | 472 | } |
| r1649 | r1650 | |
| 490 | 487 | |
| 491 | 488 | if (punchout_bigsprite1[7] & 2) /* display in bottom monitor */ |
| 492 | 489 | armwrest_draw_big_sprite(bitmap, cliprect); |
| 493 | drawbs2(bitmap, cliprect); | |
| 490 | drawbs2(machine, bitmap, cliprect); | |
| 494 | 491 | |
| 495 | 492 | tilemap_draw(bitmap, cliprect, fgtilemap, 0, 0); |
| 496 | 493 | } |
| r1649 | r1650 | |
|---|---|---|
| 114 | 114 | |
| 115 | 115 | scroll = -*finalizr_scroll + 16; |
| 116 | 116 | |
| 117 | copyscrollbitmap(bitmap,tmpbitmap,1,&scroll,0,0,cliprect | |
| 117 | copyscrollbitmap(bitmap,tmpbitmap,1,&scroll,0,0,cliprect | |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "kan_pand.h" |
| 3 | 4 | |
| 4 | 5 | UINT16 *galpanic_bgvideoram,*galpanic_fgvideoram; |
| r1649 | r1650 | |
| 104 | 105 | VIDEO_UPDATE( galpanic ) |
| 105 | 106 | { |
| 106 | 107 | /* copy the temporary bitmap to the screen */ |
| 107 | copybitmap(bitmap,tmpbitmap,0,0,0,0,cliprect | |
| 108 | copybitmap(bitmap,tmpbitmap,0,0,0,0,cliprect | |
| 108 | 109 | |
| 109 | 110 | draw_fgbitmap(machine, bitmap, cliprect); |
| 110 | 111 | |
| r1649 | r1650 | |
| 116 | 117 | VIDEO_UPDATE( comad ) |
| 117 | 118 | { |
| 118 | 119 | /* copy the temporary bitmap to the screen */ |
| 119 | copybitmap(bitmap,tmpbitmap,0,0,0,0,cliprect | |
| 120 | copybitmap(bitmap,tmpbitmap,0,0,0,0,cliprect | |
| 120 | 121 | |
| 121 | 122 | draw_fgbitmap(machine,bitmap,cliprect); |
| 122 | 123 | |
| r1649 | r1650 | |
| 130 | 131 | // { |
| 131 | 132 | // /* keep sprites on the bitmap without clearing them */ |
| 132 | 133 | // comad_draw_sprites(machine,sprites_bitmap,0); |
| 133 | // copybitmap(bitmap,sprites_bitmap,0,0,0,0,cliprect | |
| 134 | // copybitmap_trans(bitmap,sprites_bitmap,0,0,0,0,cliprect | |
| 134 | 135 | // } |
| 135 | 136 | return 0; |
| 136 | 137 | } |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "i | |
| 10 | #include "vi | |
| 11 | 11 | |
| 12 | 12 | |
| 13 | 13 | UINT8 *cclimber_bsvideoram; |
| 14 | 14 | size_t cclimber_bsvideoram_size; |
| 15 | 15 | UINT8 *cclimber_bigspriteram; |
| 16 | 16 | UINT8 *cclimber_column_scroll; |
| 17 | static int palettebank; | |
| 18 | static int sidepanel_enabled; | |
| 17 | UINT8 *swimmer_bgcolor; | |
| 18 | UINT8 *swimmer_sidepanel_enabled; | |
| 19 | UINT8 *swimmer_palettebank; | |
| 19 | 20 | |
| 20 | 21 | |
| 21 | 22 | /*************************************************************************** |
| r1649 | r1650 | |
| 37 | 38 | ***************************************************************************/ |
| 38 | 39 | PALETTE_INIT( cclimber ) |
| 39 | 40 | { |
| 41 | static const int resistances_rg[3] = { 1000, 470, 220 }; | |
| 42 | static const int resistances_b [2] = { 470, 220 }; | |
| 43 | double rweights[3], gweights[3], bweights[2]; | |
| 40 | 44 | int i; |
| 41 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 42 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + (offs)]) | |
| 43 | 45 | |
| 46 | /* compute the color output resistor weights */ | |
| 47 | compute_resistor_weights(0, 255, -1.0, | |
| 48 | 3, &resistances_rg[0], rweights, 0, 0, | |
| 49 | 3, &resistances_rg[0], gweights, 0, 0, | |
| 50 | 2, &resistances_b[0], bweights, 0, 0); | |
| 44 | 51 | |
| 45 | for (i = 0;i < machine->drv->total_colors;i++) | |
| 52 | for (i = 0;i < machine->drv->total_colors; i++) | |
| 46 | 53 | { |
| 47 | int bit0,bit1,bit2,r,g,b; | |
| 54 | UINT8 data; | |
| 55 | int bit0, bit1, bit2; | |
| 56 | int r, g, b; | |
| 48 | 57 | |
| 58 | if (i & 0x07) | |
| 59 | data = color_prom[i]; | |
| 60 | else | |
| 61 | /* River Patrol shows that background is pen 0 */ | |
| 62 | data = color_prom[0]; | |
| 49 | 63 | |
| 50 | 64 | /* red component */ |
| 51 | bit0 = (*color_prom >> 0) & 0x01; | |
| 52 | bit1 = (*color_prom >> 1) & 0x01; | |
| 53 | bit2 = (*color_prom >> 2) & 0x01; | |
| 54 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 65 | bit0 = (data >> 0) & 0x01; | |
| 66 | bit1 = (data >> 1) & 0x01; | |
| 67 | bit2 = (data >> 2) & 0x01; | |
| 68 | r = combine_3_weights(rweights, bit0, bit1, bit2); | |
| 69 | ||
| 55 | 70 | /* green component */ |
| 56 | bit0 = (*color_prom >> 3) & 0x01; | |
| 57 | bit1 = (*color_prom >> 4) & 0x01; | |
| 58 | bit2 = (*color_prom >> 5) & 0x01; | |
| 59 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 71 | bit0 = (data >> 3) & 0x01; | |
| 72 | bit1 = (data >> 4) & 0x01; | |
| 73 | bit2 = (data >> 5) & 0x01; | |
| 74 | g = combine_3_weights(gweights, bit0, bit1, bit2); | |
| 75 | ||
| 60 | 76 | /* blue component */ |
| 61 | bit0 = 0; | |
| 62 | bit1 = (*color_prom >> 6) & 0x01; | |
| 63 | bit2 = (*color_prom >> 7) & 0x01; | |
| 64 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 77 | bit0 = (data >> 6) & 0x01; | |
| 78 | bit1 = (data >> 7) & 0x01; | |
| 79 | b = combine_2_weights(bweights, bit0, bit1); | |
| 65 | 80 | |
| 66 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 67 | color_prom++; | |
| 81 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); | |
| 68 | 82 | } |
| 69 | ||
| 70 | ||
| 71 | /* character and sprite lookup table */ | |
| 72 | /* they use colors 0-63 */ | |
| 73 | for (i = 0;i < TOTAL_COLORS(0);i++) | |
| 74 | { | |
| 75 | /* pen 0 always uses color 0 (background in River Patrol and Silver Land) */ | |
| 76 | if (i % 4 == 0) COLOR(0,i) = 0; | |
| 77 | else COLOR(0,i) = i; | |
| 78 | } | |
| 79 | ||
| 80 | /* big sprite lookup table */ | |
| 81 | /* it uses colors 64-95 */ | |
| 82 | for (i = 0;i < TOTAL_COLORS(2);i++) | |
| 83 | { | |
| 84 | if (i % 4 == 0) COLOR(2,i) = 0; | |
| 85 | else COLOR(2,i) = i + 64; | |
| 86 | } | |
| 87 | 83 | } |
| 88 | 84 | |
| 89 | 85 | |
| r1649 | r1650 | |
| 123 | 119 | |
| 124 | 120 | ***************************************************************************/ |
| 125 | 121 | |
| 126 | #define BGPEN (256+32) | |
| 127 | #define SIDEPEN (256+32+1) | |
| 128 | ||
| 129 | 122 | PALETTE_INIT( swimmer ) |
| 130 | 123 | { |
| 131 | 124 | int i; |
| 132 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 133 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + (offs)]) | |
| 134 | 125 | |
| 135 | ||
| 136 | for (i = 0;i < 256;i++) | |
| 126 | for (i = 0; i < 0x200; i++) | |
| 137 | 127 | { |
| 138 | | |
| 128 | | |
| 139 | 129 | |
| 130 | /* non-backgrond pens */ | |
| 131 | if (i & 0x07) | |
| 132 | { | |
| 133 | int bit0, bit1, bit2; | |
| 134 | int r, g, b; | |
| 140 | 135 | |
| 141 | /* red component */ | |
| 142 | bit0 = (color_prom[i] >> 0) & 0x01; | |
| 143 | bit1 = (color_prom[i] >> 1) & 0x01; | |
| 144 | bit2 = (color_prom[i] >> 2) & 0x01; | |
| 145 | r = 0x20 * bit0 + 0x40 * bit1 + 0x80 * bit2; | |
| 146 | /* green component */ | |
| 147 | bit0 = (color_prom[i] >> 3) & 0x01; | |
| 148 | bit1 = (color_prom[i+256] >> 0) & 0x01; | |
| 149 | bit2 = (color_prom[i+256] >> 1) & 0x01; | |
| 150 | g = 0x20 * bit0 + 0x40 * bit1 + 0x80 * bit2; | |
| 151 | /* blue component */ | |
| 152 | bit0 = 0; | |
| 153 | bit1 = (color_prom[i+256] >> 2) & 0x01; | |
| 154 | bit2 = (color_prom[i+256] >> 3) & 0x01; | |
| 155 | b = 0x20 * bit0 + 0x40 * bit1 + 0x80 * bit2; | |
| 136 | /* red component */ | |
| 137 | bit0 = (color_prom[(i & 0xff) + 0x000] >> 0) & 0x01; | |
| 138 | bit1 = (color_prom[(i & 0xff) + 0x000] >> 1) & 0x01; | |
| 139 | bit2 = (color_prom[(i & 0xff) + 0x000] >> 2) & 0x01; | |
| 140 | r = 0x20 * bit0 + 0x40 * bit1 + 0x80 * bit2; | |
| 156 | 141 | |
| 157 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 142 | /* green component */ | |
| 143 | bit0 = (color_prom[(i & 0xff) + 0x000] >> 3) & 0x01; | |
| 144 | bit1 = (color_prom[(i & 0xff) + 0x100] >> 0) & 0x01; | |
| 145 | bit2 = (color_prom[(i & 0xff) + 0x100] >> 1) & 0x01; | |
| 146 | g = 0x20 * bit0 + 0x40 * bit1 + 0x80 * bit2; | |
| 158 | 147 | |
| 159 | /* side panel */ | |
| 160 | if (i % 8) | |
| 161 | { | |
| 162 | COLOR(0,i) = i; | |
| 163 | COLOR(0,i+256) = i; | |
| 148 | /* blue component */ | |
| 149 | bit0 = 0; | |
| 150 | bit1 = (color_prom[(i & 0xff) + 0x100] >> 2) & 0x01; | |
| 151 | bit2 = (color_prom[(i & 0xff) + 0x100] >> 3) & 0x01; | |
| 152 | b = 0x20 * bit0 + 0x40 * bit1 + 0x80 * bit2; | |
| 153 | ||
| 154 | color = MAKE_RGB(r,g,b); | |
| 164 | 155 | } |
| 156 | ||
| 157 | /* backgrond pen */ | |
| 165 | 158 | else |
| 166 | 159 | { |
| 167 | /* background */ | |
| 168 | COLOR(0,i) = BGPEN; | |
| 169 | COLOR(0,i+256) = SIDEPEN; | |
| 160 | if (i & 0x100) | |
| 161 | /* side panel */ | |
| 162 | #if 0 | |
| 163 | // values calculated from the resistors don't seem to match the real board | |
| 164 | color = MAKE_RGB(0x24, 0x5d, 0x4e); | |
| 165 | #endif | |
| 166 | color = MAKE_RGB(0x20, 0x98, 0x79); | |
| 167 | else | |
| 168 | /* 'water' background -- will be modified dynamically later */ | |
| 169 | color = RGB_BLACK; | |
| 170 | 170 | } |
| 171 | ||
| 172 | palette_set_color(machine, i, color); | |
| 171 | 173 | } |
| 172 | 174 | |
| 173 | color_prom += 2 | |
| 175 | color_prom += 0x200 | |
| 174 | 176 | |
| 175 | 177 | /* big sprite */ |
| 176 | for (i = 0;i < | |
| 178 | for (i = 0; i < 0x20; i++) | |
| 177 | 179 | { |
| 178 | int bit0,bit1,bit2,r,g,b; | |
| 180 | int bit0, bit1, bit2; | |
| 181 | int r, g, b; | |
| 179 | 182 | |
| 180 | ||
| 181 | 183 | /* red component */ |
| 182 | 184 | bit0 = (color_prom[i] >> 0) & 0x01; |
| 183 | 185 | bit1 = (color_prom[i] >> 1) & 0x01; |
| 184 | 186 | bit2 = (color_prom[i] >> 2) & 0x01; |
| 185 | 187 | r = 0x20 * bit0 + 0x40 * bit1 + 0x80 * bit2; |
| 188 | ||
| 186 | 189 | /* green component */ |
| 187 | 190 | bit0 = (color_prom[i] >> 3) & 0x01; |
| 188 | 191 | bit1 = (color_prom[i] >> 4) & 0x01; |
| 189 | 192 | bit2 = (color_prom[i] >> 5) & 0x01; |
| 190 | 193 | g = 0x20 * bit0 + 0x40 * bit1 + 0x80 * bit2; |
| 194 | ||
| 191 | 195 | /* blue component */ |
| 192 | 196 | bit0 = 0; |
| 193 | 197 | bit1 = (color_prom[i] >> 6) & 0x01; |
| 194 | 198 | bit2 = (color_prom[i] >> 7) & 0x01; |
| 195 | 199 | b = 0x20 * bit0 + 0x40 * bit1 + 0x80 * bit2; |
| 196 | 200 | |
| 197 | palette_set_color(machine,i+256,MAKE_RGB(r,g,b)); | |
| 198 | ||
| 199 | if (i % 8 == 0) COLOR(2,i) = BGPEN; /* enforce transparency */ | |
| 200 | else COLOR(2,i) = i+256; | |
| 201 | palette_set_color(machine, i + 0x200, MAKE_RGB(r, g, b)); | |
| 201 | 202 | } |
| 202 | ||
| 203 | /* background */ | |
| 204 | palette_set_color(machine,BGPEN,MAKE_RGB(0,0,0)); | |
| 205 | /* side panel background color */ | |
| 206 | #if 0 | |
| 207 | // values calculated from the resistors don't seem to match the real board | |
| 208 | palette_set_color(machine,SIDEPEN,MAKE_RGB(0x24,0x5d,0x4e)); | |
| 209 | #endif | |
| 210 | palette_set_color(machine,SIDEPEN,MAKE_RGB(0x20,0x98,0x79)); | |
| 211 | 203 | } |
| 212 | 204 | |
| 213 | 205 | |
| r1649 | r1650 | |
| 228 | 220 | bit 0 -- 1 kohm resistor -- BLUE |
| 229 | 221 | |
| 230 | 222 | ***************************************************************************/ |
| 231 | WRITE8_HANDLER( swimmer_bgcolor_w ) | |
| 223 | ||
| 224 | static void swimmer_set_background_pen(running_machine *machine) | |
| 232 | 225 | { |
| 233 | int bit0,bit1,bit2; | |
| 234 | int r,g,b; | |
| 226 | int i; | |
| 227 | pen_t color; | |
| 228 | int bit0, bit1, bit2; | |
| 229 | int r, g, b; | |
| 235 | 230 | |
| 236 | ||
| 237 | 231 | /* red component */ |
| 238 | 232 | bit0 = 0; |
| 239 | bit1 = (data >> 6) & 0x01; | |
| 240 | bit2 = (data >> 7) & 0x01; | |
| 233 | bit1 = (*swimmer_bgcolor >> 6) & 0x01; | |
| 234 | bit2 = (*swimmer_bgcolor >> 7) & 0x01; | |
| 241 | 235 | r = 0x20 * bit0 + 0x40 * bit1 + 0x80 * bit2; |
| 242 | 236 | |
| 243 | 237 | /* green component */ |
| 244 | bit0 = (data >> 3) & 0x01; | |
| 245 | bit1 = (data >> 4) & 0x01; | |
| 246 | bit2 = (data >> 5) & 0x01; | |
| 238 | bit0 = (*swimmer_bgcolor >> 3) & 0x01; | |
| 239 | bit1 = (*swimmer_bgcolor >> 4) & 0x01; | |
| 240 | bit2 = (*swimmer_bgcolor >> 5) & 0x01; | |
| 247 | 241 | g = 0x20 * bit0 + 0x40 * bit1 + 0x80 * bit2; |
| 248 | 242 | |
| 249 | 243 | /* blue component */ |
| 250 | bit0 = (data >> 0) & 0x01; | |
| 251 | bit1 = (data >> 1) & 0x01; | |
| 252 | bit2 = (data >> 2) & 0x01; | |
| 244 | bit0 = (*swimmer_bgcolor >> 0) & 0x01; | |
| 245 | bit1 = (*swimmer_bgcolor >> 1) & 0x01; | |
| 246 | bit2 = (*swimmer_bgcolor >> 2) & 0x01; | |
| 253 | 247 | b = 0x20 * bit0 + 0x40 * bit1 + 0x80 * bit2; |
| 254 | 248 | |
| 255 | palette_set_color(Machine,BGPEN,MAKE_RGB(r,g,b)); | |
| 249 | color = MAKE_RGB(r, g, b); | |
| 250 | ||
| 251 | /* set pen 0 if each color code */ | |
| 252 | for (i = 0; i < 0x100; i += 8) | |
| 253 | palette_set_color(machine, i, color); | |
| 256 | 254 | } |
| 257 | 255 | |
| 258 | 256 | |
| r1649 | r1650 | |
| 262 | 260 | /* bit 5 of the address is not used for color memory. There is just */ |
| 263 | 261 | /* 512 bytes of memory; every two consecutive rows share the same memory */ |
| 264 | 262 | /* region. */ |
| 265 | offset &= 0xffdf; | |
| 266 | ||
| 267 | 263 | colorram[offset] = data; |
| 268 | colorram[offset | |
| 264 | colorram[offset ^ 0x20] = data; | |
| 269 | 265 | } |
| 270 | 266 | |
| 271 | 267 | |
| 272 | 268 | |
| 273 | WRITE8_HANDLER( cclimber_bigsprite_videoram_w ) | |
| 274 | { | |
| 275 | cclimber_bsvideoram[offset] = data; | |
| 276 | } | |
| 277 | ||
| 278 | ||
| 279 | ||
| 280 | WRITE8_HANDLER( swimmer_palettebank_w ) | |
| 281 | { | |
| 282 | palettebank = data & 1; | |
| 283 | } | |
| 284 | ||
| 285 | ||
| 286 | ||
| 287 | WRITE8_HANDLER( swimmer_sidepanel_enable_w ) | |
| 288 | { | |
| 289 | sidepanel_enabled = data & 1; | |
| 290 | } | |
| 291 | ||
| 292 | ||
| 293 | ||
| 294 | 269 | static void cclimber_draw_big_sprite(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect) |
| 295 | 270 | { |
| 296 | 271 | int offs; |
| r1649 | r1650 | |
| 394 | 369 | } |
| 395 | 370 | } |
| 396 | 371 | |
| 397 | copyscrollbitmap(bitmap,tmpbitmap,0,0,32,scroll,cliprect | |
| 372 | copyscrollbitmap(bitmap,tmpbitmap,0,0,32,scroll,cliprect | |
| 398 | 373 | } |
| 399 | 374 | |
| 400 | 375 | |
| r1649 | r1650 | |
| 501 | 476 | } |
| 502 | 477 | } |
| 503 | 478 | |
| 504 | copyscrollbitmap(bitmap,tmpbitmap,0,0,32,scroll,cliprect | |
| 479 | copyscrollbitmap(bitmap,tmpbitmap,0,0,32,scroll,cliprect | |
| 505 | 480 | } |
| 506 | 481 | |
| 507 | 482 | |
| r1649 | r1650 | |
| 552 | 527 | { |
| 553 | 528 | int offs; |
| 554 | 529 | |
| 530 | swimmer_set_background_pen(machine); | |
| 531 | ||
| 555 | 532 | for (offs = videoram_size - 1;offs >= 0;offs--) |
| 556 | 533 | { |
| 557 | 534 | int sx,sy,flipx,flipy,color; |
| r1649 | r1650 | |
| 563 | 540 | /* vertical flipping flips two adjacent characters */ |
| 564 | 541 | if (flipy) sy ^= 1; |
| 565 | 542 | |
| 566 | color = (colorram[offs] & 0x0f) + 0x10 * palettebank; | |
| 567 | if (sx >= 24 && sidepanel_enabled) | |
| 543 | color = (colorram[offs] & 0x0f) + 0x10 * (*swimmer_palettebank & 0x01); | |
| 544 | if (sx >= 24 && (*swimmer_sidepanel_enabled & 0x01)) | |
| 568 | 545 | { |
| 569 | 546 | color += 32; |
| 570 | 547 | } |
| r1649 | r1650 | |
| 605 | 582 | scroll[offs] = -cclimber_column_scroll[offs]; |
| 606 | 583 | } |
| 607 | 584 | |
| 608 | copyscrollbitmap(bitmap,tmpbitmap,0,0,32,scroll,cliprect | |
| 585 | copyscrollbitmap(bitmap,tmpbitmap,0,0,32,scroll,cliprect | |
| 609 | 586 | } |
| 610 | 587 | |
| 611 | 588 | |
| r1649 | r1650 | |
| 638 | 615 | |
| 639 | 616 | drawgfx(bitmap,machine->gfx[1], |
| 640 | 617 | (spriteram[offs] & 0x3f) | (spriteram[offs + 1] & 0x10) << 2, |
| 641 | (spriteram[offs + 1] & 0x0f) + 0x10 * palettebank, | |
| 618 | (spriteram[offs + 1] & 0x0f) + 0x10 * (*swimmer_palettebank & 0x01), | |
| 642 | 619 | flipx,flipy, |
| 643 | 620 | sx,sy, |
| 644 | 621 | cliprect,TRANSPARENCY_PEN,0); |
| r1649 | r1650 | |
| 670 | 647 | } |
| 671 | 648 | |
| 672 | 649 | |
| 650 | fillbitmap(tmpbitmap, 0, NULL); | |
| 651 | ||
| 673 | 652 | for (offs = videoram_size - 1;offs >= 0;offs--) |
| 674 | 653 | { |
| 675 | 654 | int sx,sy,flipx,flipy; |
| r1649 | r1650 | |
| 697 | 676 | colorram[offs] & 0x0f, |
| 698 | 677 | flipx,flipy, |
| 699 | 678 | 8*sx,8*sy, |
| 700 | | |
| 679 | NULL,TRANSPARENCY_P | |
| 701 | 680 | } |
| 702 | 681 | |
| 703 | 682 | |
| r1649 | r1650 | |
| 723 | 702 | } |
| 724 | 703 | } |
| 725 | 704 | |
| 726 | copyscrollbitmap(bitmap,tmpbitmap,0,0,32,scroll,cliprect | |
| 705 | copyscrollbitmap_trans(bitmap,tmpbitmap,0,0,32,scroll,cliprect | |
| 727 | 706 | } |
| 728 | 707 | |
| 729 | 708 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "cloak.h" |
| 9 | 10 | |
| 10 | 11 | static mame_bitmap *tmpbitmap2; |
| r1649 | r1650 | |
| 225 | 226 | VIDEO_UPDATE( cloak ) |
| 226 | 227 | { |
| 227 | 228 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); |
| 228 | copybitmap(bitmap, (bmap ? tmpbitmap2 : tmpbitmap),flip_screen,flip_screen,0,0,cliprect, | |
| 229 | copybitmap_trans(bitmap, (bmap ? tmpbitmap2 : tmpbitmap),flip_screen,flip_screen,0,0,cliprect,machine->pens[ | |
| 229 | 230 | draw_sprites(machine, bitmap, cliprect); |
| 230 | 231 | return 0; |
| 231 | 232 | } |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "cpu/sharc/sharc.h" |
| 3 | 4 | #include "machine/konppc.h" |
| 4 | 5 | #include "video/poly.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /* Namco System NA1/2 Video Hardware */ |
| 2 | 2 | |
| 3 | 3 | #include "driver.h" |
| 4 | #include "deprecat.h" | |
| 4 | 5 | #include "namcona1.h" |
| 5 | 6 | |
| 6 | 7 | #define NAMCONA1_NUM_TILEMAPS 4 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "machine/atarigen.h" |
| 9 | 10 | #include "foodf.h" |
| 10 | 11 | #include "video/resnet.h" |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "video/resnet.h" |
| 12 | 13 | #include "includes/dkong.h" |
| 13 | 14 |
| r1649 | r1650 | |
|---|---|---|
| 33 | 33 | PALETTE_INIT( appoooh ) |
| 34 | 34 | { |
| 35 | 35 | int i; |
| 36 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 37 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 38 | 36 | |
| 39 | for (i = 0;i < machine->drv->total_colors;i++) | |
| 37 | for (i = 0; i < machine->drv->total_colors; i++) | |
| 40 | 38 | { |
| 41 | int bit0,bit1,bit2,r,g,b; | |
| 39 | UINT8 pen; | |
| 40 | int bit0, bit1, bit2, r, g, b; | |
| 42 | 41 | |
| 42 | if (i < 0x100) | |
| 43 | /* charset #1 */ | |
| 44 | pen = (color_prom[0x020 + (i - 0x000)] & 0x0f) | 0x00; | |
| 45 | else | |
| 46 | /* charset #2 */ | |
| 47 | pen = (color_prom[0x120 + (i - 0x100)] & 0x0f) | 0x10; | |
| 48 | ||
| 43 | 49 | /* red component */ |
| 44 | bit0 = (*color_prom >> 0) & 0x01; | |
| 45 | bit1 = (*color_prom >> 1) & 0x01; | |
| 46 | bit2 = (*color_prom >> 2) & 0x01; | |
| 50 | bit0 = (color_prom[pen] >> 0) & 0x01; | |
| 51 | bit1 = (color_prom[pen] >> 1) & 0x01; | |
| 52 | bit2 = (color_prom[pen] >> 2) & 0x01; | |
| 47 | 53 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 54 | ||
| 48 | 55 | /* green component */ |
| 49 | bit0 = (*color_prom >> 3) & 0x01; | |
| 50 | bit1 = (*color_prom >> 4) & 0x01; | |
| 51 | bit2 = (*color_prom >> 5) & 0x01; | |
| 56 | bit0 = (color_prom[pen] >> 3) & 0x01; | |
| 57 | bit1 = (color_prom[pen] >> 4) & 0x01; | |
| 58 | bit2 = (color_prom[pen] >> 5) & 0x01; | |
| 52 | 59 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 60 | ||
| 53 | 61 | /* blue component */ |
| 54 | 62 | bit0 = 0; |
| 55 | bit1 = (*color_prom >> 6) & 0x01; | |
| 56 | bit2 = (*color_prom >> 7) & 0x01; | |
| 63 | bit1 = (color_prom[pen] >> 6) & 0x01; | |
| 64 | bit2 = (color_prom[pen] >> 7) & 0x01; | |
| 57 | 65 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 58 | 66 | |
| 59 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 60 | color_prom++; | |
| 67 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); | |
| 61 | 68 | } |
| 62 | ||
| 63 | /* color_prom now points to the beginning of the lookup table */ | |
| 64 | ||
| 65 | /* charset #1 lookup table */ | |
| 66 | for (i = 0;i < TOTAL_COLORS(0);i++) | |
| 67 | COLOR(0,i) = (*(color_prom++) & 0x0f)|CHR1_OFST; | |
| 68 | ||
| 69 | /* charset #2 lookup table */ | |
| 70 | for (i = 0;i < TOTAL_COLORS(1);i++) | |
| 71 | COLOR(1,i) = (*(color_prom++) & 0x0f)|CHR2_OFST; | |
| 72 | ||
| 73 | /* TODO: the driver currently uses only 16 of the 32 color codes. */ | |
| 74 | /* 16-31 might be unused, but there might be a palette bank selector */ | |
| 75 | /* to use them somewhere in the game. */ | |
| 76 | 69 | } |
| 77 | 70 | |
| 78 | 71 | PALETTE_INIT( robowres ) |
| 79 | 72 | { |
| 80 | 73 | int i; |
| 81 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 82 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 83 | 74 | |
| 84 | for (i = 0;i < machine->drv->total_colors;i++) | |
| 75 | for (i = 0; i < machine->drv->total_colors; i++) | |
| 85 | 76 | { |
| 86 | int bit0,bit1,bit2,r,g,b; | |
| 77 | int bit0, bit1, bit2, r, g, b; | |
| 87 | 78 | |
| 79 | UINT8 pen = color_prom[0x020 + i] & 0x0f; | |
| 80 | ||
| 88 | 81 | /* red component */ |
| 89 | bit0 = (*color_prom >> 0) & 0x01; | |
| 90 | bit1 = (*color_prom >> 1) & 0x01; | |
| 91 | bit2 = (*color_prom >> 2) & 0x01; | |
| 82 | bit0 = (color_prom[pen] >> 0) & 0x01; | |
| 83 | bit1 = (color_prom[pen] >> 1) & 0x01; | |
| 84 | bit2 = (color_prom[pen] >> 2) & 0x01; | |
| 92 | 85 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 86 | ||
| 93 | 87 | /* green component */ |
| 94 | bit0 = (*color_prom >> 3) & 0x01; | |
| 95 | bit1 = (*color_prom >> 4) & 0x01; | |
| 96 | bit2 = (*color_prom >> 5) & 0x01; | |
| 88 | bit0 = (color_prom[pen] >> 3) & 0x01; | |
| 89 | bit1 = (color_prom[pen] >> 4) & 0x01; | |
| 90 | bit2 = (color_prom[pen] >> 5) & 0x01; | |
| 97 | 91 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 92 | ||
| 98 | 93 | /* blue component */ |
| 99 | 94 | bit0 = 0; |
| 100 | bit1 = (*color_prom >> 6) & 0x01; | |
| 101 | bit2 = (*color_prom >> 7) & 0x01; | |
| 95 | bit1 = (color_prom[pen] >> 6) & 0x01; | |
| 96 | bit2 = (color_prom[pen] >> 7) & 0x01; | |
| 102 | 97 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 103 | 98 | |
| 104 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 105 | color_prom++; | |
| 99 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); | |
| 106 | 100 | } |
| 107 | ||
| 108 | /* color_prom now points to the beginning of the lookup table */ | |
| 109 | ||
| 110 | for (i = 0;i < 32*8;i++) | |
| 111 | colortable[i]=(*(color_prom++) & 0x0f); | |
| 112 | ||
| 113 | 101 | } |
| 114 | 102 | |
| 115 | 103 |
| r1649 | r1650 | |
|---|---|---|
| 17 | 17 | |
| 18 | 18 | ***************************************************************************/ |
| 19 | 19 | |
| 20 | #include <stdarg.h> | |
| 21 | 20 | #include "driver.h" |
| 21 | #include "deprecat.h" | |
| 22 | 22 | #include "includes/psx.h" |
| 23 | 23 | |
| 24 | 24 | #define STOP_ON_ERROR ( 0 ) |
| r1649 | r1650 | |
| 511 | 511 | { |
| 512 | 512 | if( m_b_debugmesh ) |
| 513 | 513 | { |
| 514 | copybitmap( bitmap, debugmesh, 0, 0, 0, 0, cliprect | |
| 514 | copybitmap( bitmap, debugmesh, 0, 0, 0, 0, cliprect | |
| 515 | 515 | } |
| 516 | 516 | m_b_debugclear = 1; |
| 517 | 517 | return m_b_debugmesh; |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "cpu/m6809/m6809.h" |
| 3 | 4 | #include "machine/6522via.h" |
| 4 | 5 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "video/vdc.h" |
| 3 | 4 | |
| 4 | 5 | /* VDC segments */ |
| r1649 | r1650 | |
| 372 | 373 | VIDEO_UPDATE( pce ) |
| 373 | 374 | { |
| 374 | 375 | /* copy our rendering buffer to the display */ |
| 375 | copybitmap (bitmap,vce.bmp,0,0,0,0,cliprect | |
| 376 | copybitmap (bitmap,vce.bmp,0,0,0,0,cliprect | |
| 376 | 377 | return 0; |
| 377 | 378 | } |
| 378 | 379 |
| r1649 | r1650 | |
|---|---|---|
| 391 | 391 | } |
| 392 | 392 | |
| 393 | 393 | // custom function to draw a single sprite. needed to keep correct sprites - sprites and sprites - tilemaps priorities |
| 394 | static void kaneko16_draw_sprites_custom(mame_bitmap *dest_bmp,const gfx_element *gfx, | |
| 394 | static void kaneko16_draw_sprites_custom(running_machine *machine, mame_bitmap *dest_bmp,const gfx_element *gfx, | |
| 395 | 395 | UINT32 code,UINT32 color,int flipx,int flipy,int sx,int sy, |
| 396 | 396 | const rectangle *clip,int priority) |
| 397 | 397 | { |
| 398 | const pen_t *pal = & | |
| 398 | const pen_t *pal = &machine->remapped_colortable[gfx->color_base + gfx->color_granularity * (color % gfx->total_colors)]; | |
| 399 | 399 | UINT8 *source_base = gfx->gfxdata + (code % gfx->total_elements) * gfx->char_modulo; |
| 400 | 400 | |
| 401 | 401 | int sprite_screen_height = ((1<<16)*gfx->height+0x8000)>>16; |
| r1649 | r1650 | |
| 594 | 594 | |
| 595 | 595 | UINT32 primask = kaneko16_priority.sprite[curr_pri]; |
| 596 | 596 | |
| 597 | kaneko16_draw_sprites_custom( bitmap,machine->gfx[0], | |
| 597 | kaneko16_draw_sprites_custom( machine, | |
| 598 | bitmap,machine->gfx[0], | |
| 598 | 599 | s->code, |
| 599 | 600 | s->color, |
| 600 | 601 | s->flipx, s->flipy, |
| r1649 | r1650 | |
| 904 | 905 | { |
| 905 | 906 | /* keep sprites on screen */ |
| 906 | 907 | kaneko16_draw_sprites(machine,sprites_bitmap,cliprect); |
| 907 | copybitmap(bitmap,sprites_bitmap,0,0,0,0,cliprect | |
| 908 | copybitmap_trans(bitmap,sprites_bitmap,0,0,0,0,cliprect | |
| 908 | 909 | } |
| 909 | 910 | else |
| 910 | 911 | { |
| r1649 | r1650 | |
| 927 | 928 | sx = (select & 0x1f) * 256; |
| 928 | 929 | sy = 0; |
| 929 | 930 | |
| 930 | copybitmap( | |
| 931 | bitmap, kaneko16_bg15_bitmap, | |
| 932 | flip, flip, | |
| 933 | -sx, -sy, | |
| 934 | cliprect, TRANSPARENCY_NONE,0 ); | |
| 931 | copybitmap(bitmap, kaneko16_bg15_bitmap, flip, flip, -sx, -sy, cliprect); | |
| 935 | 932 | |
| 936 | 933 | // flag = 0; |
| 937 | 934 | } |
| r1649 | r1650 | |
|---|---|---|
| 77 | 77 | 0,TRANSPARENCY_NONE,0); |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | copybitmap(bitmap,tmpbitmap4,0,0,0,0,cliprect | |
| 80 | copybitmap(bitmap,tmpbitmap4,0,0,0,0,cliprect | |
| 81 | 81 | |
| 82 | 82 | |
| 83 | 83 | for (offs = goldstar_video_size - 1;offs >= 0;offs--) |
| r1649 | r1650 | |
| 114 | 114 | for (i= 0;i < 64;i++) |
| 115 | 115 | scrolly[i] = -goldstar_scroll1[i]; |
| 116 | 116 | |
| 117 | copyscrollbitmap(bitmap,tmpbitmap1,0,0,64,scrolly,&visible1,TRANSPARENCY_NONE,0); | |
| 118 | copybitmap(bitmap,tmpbitmap4,0,0,0,0,&visible1,TRANSPARENCY_PEN,0); | |
| 117 | copyscrollbitmap(bitmap,tmpbitmap1,0,0,64,scrolly,&visible1); | |
| 118 | copybitmap_trans(bitmap,tmpbitmap4,0,0,0,0,&visible1,0); | |
| 119 | 119 | |
| 120 | 120 | for (i= 0;i < 64;i++) |
| 121 | 121 | scrolly[i] = -goldstar_scroll2[i]; |
| 122 | 122 | |
| 123 | copyscrollbitmap(bitmap,tmpbitmap2,0,0,64,scrolly,&visible2,TRANSPARENCY_NONE,0); | |
| 124 | copybitmap(bitmap,tmpbitmap4,0,0,0,0,&visible2,TRANSPARENCY_PEN,0); | |
| 123 | copyscrollbitmap(bitmap,tmpbitmap2,0,0,64,scrolly,&visible2); | |
| 124 | copybitmap_trans(bitmap,tmpbitmap4,0,0,0,0,&visible2,0); | |
| 125 | 125 | |
| 126 | 126 | for (i= 0;i < 64;i++) |
| 127 | 127 | scrolly[i] = -goldstar_scroll3[i]; |
| 128 | 128 | |
| 129 | copyscrollbitmap(bitmap,tmpbitmap3,0,0,64,scrolly,&visible3,TRANSPARENCY_NONE,0); | |
| 130 | copybitmap(bitmap,tmpbitmap4,0,0,0,0,&visible3,TRANSPARENCY_PEN,0); | |
| 129 | copyscrollbitmap(bitmap,tmpbitmap3,0,0,64,scrolly,&visible3); | |
| 130 | copybitmap_trans(bitmap,tmpbitmap4,0,0,0,0,&visible3,0); | |
| 131 | 131 | } |
| 132 | 132 | return 0; |
| 133 | 133 | } |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | |
| 14 | 14 | |
| 15 | 15 | #include "driver.h" |
| 16 | #include "deprecat.h" | |
| 16 | 17 | |
| 17 | 18 | //UINT32 *ms32_fce00000; |
| 18 | 19 | UINT32 *ms32_roz_ctrl; |
| r1649 | r1650 | |
|---|---|---|
| 86 | 86 | ***************************************************************************/ |
| 87 | 87 | |
| 88 | 88 | #include "driver.h" |
| 89 | #include "deprecat.h" | |
| 89 | 90 | |
| 90 | 91 | UINT16 *darkseal_pf12_row,*darkseal_pf34_row; |
| 91 | 92 | UINT16 *darkseal_pf1_data,*darkseal_pf2_data,*darkseal_pf3_data; |
| r1649 | r1650 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | Ms.Pac-Man/Galaga - 20 Year Reunion hardware | |
| 4 | ||
| 5 | driver by Nicola Salmoria | |
| 6 | ||
| 7 | ***************************************************************************/ | |
| 8 | ||
| 1 | 9 | #include "driver.h" |
| 10 | #include "20pacgal.h" | |
| 2 | 11 | |
| 3 | 12 | |
| 13 | #define SCREEN_HEIGHT (224) | |
| 14 | #define SCREEN_WIDTH (288) | |
| 15 | #define NUM_PENS (0x1000) | |
| 4 | 16 | |
| 5 | UINT8 *pacgal_charram,*pacgal_sprram; | |
| 6 | UINT8 *pacgal_videoram,*pacgal_videoram2; | |
| 7 | 17 | |
| 8 | static mame_bitmap *chr_bitmap; | |
| 9 | static int palbank; | |
| 10 | static int active_game; | |
| 11 | 18 | |
| 19 | /************************************* | |
| 20 | * | |
| 21 | * Palette handling | |
| 22 | * | |
| 23 | *************************************/ | |
| 12 | 24 | |
| 13 | ||
| 14 | static void switch_palette(running_machine *machine) | |
| 25 | static void get_pens(const _20pacgal_state *state, pen_t *pens) | |
| 15 | 26 | { |
| 16 | int i; | |
| 17 | UINT8 *color_prom = memory_region(REGION_PROMS) + 0x1000 * palbank; | |
| 27 | offs_t offs; | |
| 28 | UINT8 *color_prom = memory_region(REGION_PROMS) + (NUM_PENS * state->game_selected); | |
| 18 | 29 | |
| 19 | for ( | |
| 30 | for (offs = 0; | |
| 20 | 31 | { |
| 21 | 32 | int bit0,bit1,bit2,r,g,b; |
| 22 | 33 | |
| 23 | ||
| 24 | 34 | /* red component */ |
| 25 | 35 | bit0 = (*color_prom >> 0) & 0x01; |
| 26 | 36 | bit1 = (*color_prom >> 1) & 0x01; |
| 27 | 37 | bit2 = (*color_prom >> 2) & 0x01; |
| 28 | 38 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 39 | ||
| 29 | 40 | /* green component */ |
| 30 | 41 | bit0 = (*color_prom >> 3) & 0x01; |
| 31 | 42 | bit1 = (*color_prom >> 4) & 0x01; |
| 32 | 43 | bit2 = (*color_prom >> 5) & 0x01; |
| 33 | 44 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 45 | ||
| 34 | 46 | /* blue component */ |
| 35 | 47 | bit0 = 0; |
| 36 | 48 | bit1 = (*color_prom >> 6) & 0x01; |
| 37 | 49 | bit2 = (*color_prom >> 7) & 0x01; |
| 38 | 50 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 39 | 51 | |
| 40 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 52 | pens[offs] = MAKE_RGB(r, g, b); | |
| 53 | ||
| 41 | 54 | color_prom++; |
| 42 | 55 | } |
| 43 | 56 | } |
| 44 | 57 | |
| 45 | PALETTE_INIT( 20pacgal ) | |
| 58 | ||
| 59 | static void do_pen_lookup(const _20pacgal_state *state, mame_bitmap *bitmap, const rectangle *cliprect) | |
| 46 | 60 | { |
| 47 | palbank = 0; | |
| 48 | switch_palette(machine); | |
| 49 | } | |
| 61 | int y, x; | |
| 62 | pen_t pens[NUM_PENS]; | |
| 50 | 63 | |
| 64 | get_pens(state, pens); | |
| 51 | 65 | |
| 52 | ||
| 53 | VIDEO_START( 20pacgal ) | |
| 54 | { | |
| 55 | chr_bitmap = auto_bitmap_alloc(machine->screen[0].width,machine->screen[0].height,machine->screen[0].format); | |
| 66 | for (y = cliprect->min_y; y <= cliprect->max_y; y++) | |
| 67 | for(x = cliprect->min_x; x <= cliprect->max_x; x++) | |
| 68 | *BITMAP_ADDR32(bitmap, y, x) = pens[*BITMAP_ADDR32(bitmap, y, x)]; | |
| 56 | 69 | } |
| 57 | 70 | |
| 58 | 71 | |
| 59 | 72 | |
| 60 | WRITE8_HANDLER( pacgal_lookup_w ) | |
| 61 | { | |
| 62 | /* palette hacks! */ | |
| 63 | ((UINT16 *)Machine->game_colortable)[offset] = data & 0x0f; | |
| 64 | ((pen_t *)Machine->remapped_colortable)[offset] = Machine->pens[data & 0x0f]; | |
| 65 | } | |
| 73 | /************************************* | |
| 74 | * | |
| 75 | * Sprite drawing | |
| 76 | * | |
| 77 | *************************************/ | |
| 66 | 78 | |
| 67 | WRITE8_HANDLER( pacgal_active_game_w ) | |
| 79 | static void draw_sprite(const _20pacgal_state *state, mame_bitmap *bitmap, int y, int x, | |
| 80 | UINT8 code, UINT8 color, int flip_y, int flip_x) | |
| 68 | 81 | { |
| 69 | | |
| 82 | | |
| 70 | 83 | |
| 71 | if (!active_game) | |
| 72 | memcpy(pacgal_videoram2,memory_region(REGION_CPU1)+0x8000,0x2000); | |
| 84 | offs_t pen_base = (color & 0x3f) << 2; | |
| 73 | 85 | |
| 74 | if (palbank != active_game) | |
| 86 | if (flip_y) | |
| 87 | y = y + 0x0f; | |
| 88 | ||
| 89 | if (flip_x) | |
| 90 | x = x + 0x0f; | |
| 91 | ||
| 92 | /* for each row in the sprite */ | |
| 93 | for (sy = 0; sy < 0x10; sy++) | |
| 75 | 94 | { |
| 76 | palbank = active_game; | |
| 77 | switch_palette(Machine); | |
| 78 | } | |
| 79 | } | |
| 95 | int x_sav = x; | |
| 80 | 96 | |
| 81 | WRITE8_HANDLER( pacgal_videoram2_w ) | |
| 82 | { | |
| 83 | if (active_game) | |
| 84 | pacgal_videoram2[offset] = data; | |
| 85 | } | |
| 97 | if ((y >= 0) && (y < SCREEN_HEIGHT)) | |
| 98 | { | |
| 99 | int sx; | |
| 100 | UINT32 data; | |
| 86 | 101 | |
| 87 | WRITE8_HANDLER( pacgal_charram_w ) | |
| 88 | { | |
| 89 | pacgal_charram[offset] = data; | |
| 102 | offs_t gfx_offs = ((code & 0x7f) << 6) | (sy << 2); | |
| 90 | 103 | |
| 91 | decodechar(Machine->gfx[0],offset/16,pacgal_charram); | |
| 92 | } | |
| 104 | /* address mangling */ | |
| 105 | gfx_offs = (gfx_offs & 0x1f83) | ((gfx_offs & 0x003c) << 1) | ((gfx_offs & 0x0040) >> 4); | |
| 93 | 106 | |
| 94 | WRITE8_HANDLER( pacgal_sprram_w ) | |
| 95 | { | |
| 96 | offset = (offset & 0x1f83) | ((offset & 0x078) >> 1) | ((offset & 0x004) << 4); | |
| 97 | pacgal_sprram[offset] = data; | |
| 107 | data = (state->sprite_gfx_ram[gfx_offs + 0] << 24) | | |
| 108 | (state->sprite_gfx_ram[gfx_offs + 1] << 16) | | |
| 109 | (state->sprite_gfx_ram[gfx_offs + 2] << 8) | | |
| 110 | (state->sprite_gfx_ram[gfx_offs + 3] << 0); | |
| 98 | 111 | |
| 99 | decodechar(Machine->gfx[1],offset/64,pacgal_sprram); | |
| 112 | /* for each pixel in the row */ | |
| 113 | for (sx = 0; sx < 0x10; sx++) | |
| 114 | { | |
| 115 | if ((x >= 0) && (x < SCREEN_WIDTH)) | |
| 116 | { | |
| 117 | offs_t pen = (data & 0xc0000000) >> 30; | |
| 118 | UINT8 col; | |
| 119 | ||
| 120 | col = state->sprite_color_lookup[pen_base | pen] & 0x0f; | |
| 121 | ||
| 122 | /* pen bits A0-A3 */ | |
| 123 | if (col) | |
| 124 | *BITMAP_ADDR32(bitmap, y, x) = (*BITMAP_ADDR32(bitmap, y, x) & 0xff0) | col; | |
| 125 | } | |
| 126 | ||
| 127 | /* next pixel */ | |
| 128 | if (flip_x) | |
| 129 | x = x - 1; | |
| 130 | else | |
| 131 | x = x + 1; | |
| 132 | ||
| 133 | data = data << 2; | |
| 134 | } | |
| 135 | } | |
| 136 | ||
| 137 | /* next row */ | |
| 138 | if (flip_y) | |
| 139 | y = y - 1; | |
| 140 | else | |
| 141 | y = y + 1; | |
| 142 | ||
| 143 | x = x_sav; | |
| 144 | } | |
| 100 | 145 | } |
| 101 | 146 | |
| 102 | 147 | |
| 103 | ||
| 104 | static void draw_sprites(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect ) | |
| 148 | static void draw_sprites(const _20pacgal_state *state, mame_bitmap *bitmap) | |
| 105 | 149 | { |
| 106 | 150 | int offs; |
| 107 | 151 | |
| 108 | ||
| 109 | for (offs = 0x80-2;offs >= 0;offs-=2) | |
| 152 | for (offs = 0x80 - 2; offs >= 0; offs -= 2) | |
| 110 | 153 | { |
| 111 | static const int | |
| 154 | static const int code_offs[2][2] = | |
| 112 | 155 | { |
| 113 | 156 | { 0, 1 }, |
| 114 | 157 | { 2, 3 } |
| 115 | 158 | }; |
| 116 | int sprite = spriteram[offs + 0x000] & 0x7f; | |
| 117 | int color = spriteram[offs + 0x001] & 0x3f; | |
| 118 | int sx = spriteram[offs + 0x081] - 41 + 0x100*(spriteram[offs + 0x101] & 3); | |
| 119 | int sy = 256 - spriteram[offs + 0x080] + 1; | |
| 120 | int flipx = (spriteram[offs + 0x100] & 0x01); | |
| 121 | int flipy = (spriteram[offs + 0x100] & 0x02) >> 1; | |
| 122 | int sizex = (spriteram[offs + 0x100] & 0x04) >> 2; | |
| 123 | int sizey = (spriteram[offs + 0x100] & 0x08) >> 3; | |
| 124 | int x,y; | |
| 159 | int x, y; | |
| 125 | 160 | |
| 126 | if (flip_screen) | |
| 127 | { | |
| 128 | flipx ^= 1; | |
| 129 | flipy ^= 1; | |
| 130 | } | |
| 161 | UINT8 code = state->sprite_ram[offs + 0x000]; | |
| 162 | UINT8 color = state->sprite_ram[offs + 0x001]; | |
| 131 | 163 | |
| 132 | sy -= 16 * sizey; | |
| 133 | sy = (sy & 0xff) - 32; // fix wraparound | |
| 164 | int sx = state->sprite_ram[offs + 0x081] - 41 + 0x100*(state->sprite_ram[offs + 0x101] & 3); | |
| 165 | int sy = 256 - state->sprite_ram[offs + 0x080] + 1; | |
| 134 | 166 | |
| 135 | for (y = 0;y <= sizey;y++) | |
| 167 | int flip_x = (state->sprite_ram[offs + 0x100] & 0x01) >> 0; | |
| 168 | int flip_y = (state->sprite_ram[offs + 0x100] & 0x02) >> 1; | |
| 169 | int size_x = (state->sprite_ram[offs + 0x100] & 0x04) >> 2; | |
| 170 | int size_y = (state->sprite_ram[offs + 0x100] & 0x08) >> 3; | |
| 171 | ||
| 172 | sy = sy - (16 * size_y); | |
| 173 | sy = (sy & 0xff) - 32; /* fix wraparound */ | |
| 174 | ||
| 175 | /* only Galaga appears to be effected by the global flip state */ | |
| 176 | if (state->game_selected && (state->flip_screen[0] & 0x01)) | |
| 136 | 177 | { |
| 137 | for (x = 0;x <= sizex;x++) | |
| 138 | { | |
| 139 | drawgfx(bitmap,machine->gfx[1], | |
| 140 | sprite + gfx_offs[y ^ (sizey * flipy)][x ^ (sizex * flipx)], | |
| 141 | color, | |
| 142 | flipx,flipy, | |
| 143 | sx + 16*x, sy + 16*y, | |
| 144 | cliprect,TRANSPARENCY_COLOR,0); | |
| 145 | } | |
| 178 | flip_x = !flip_x; | |
| 179 | flip_y = !flip_y; | |
| 146 | 180 | } |
| 181 | ||
| 182 | for (y = 0; y <= size_y; y++) | |
| 183 | for (x = 0; x <= size_x; x++) | |
| 184 | draw_sprite(state, bitmap, | |
| 185 | sy + (16 * y), sx + (16 * x), | |
| 186 | code + code_offs[y ^ (size_y * flip_y)][x ^ (size_x * flip_x)], | |
| 187 | color, | |
| 188 | flip_y, flip_x); | |
| 147 | 189 | } |
| 148 | 190 | } |
| 149 | 191 | |
| 150 | VIDEO_UPDATE( 20pacgal ) | |
| 192 | ||
| 193 | ||
| 194 | /************************************* | |
| 195 | * | |
| 196 | * Character map drawing | |
| 197 | * | |
| 198 | *************************************/ | |
| 199 | ||
| 200 | static void draw_chars(const _20pacgal_state *state, mame_bitmap *bitmap) | |
| 151 | 201 | { |
| 152 | | |
| 202 | offs_t offs; | |
| 153 | 203 | |
| 154 | for (y = 0;y < 32;y++) | |
| 204 | int flip = state->flip_screen[0] & 0x01; | |
| 205 | ||
| 206 | /* for each byte in the video RAM */ | |
| 207 | for (offs = 0; offs < 0x400; offs++) | |
| 155 | 208 | { |
| 156 | for (x = 0;x < 32;x++) | |
| 209 | int sy; | |
| 210 | int y, x; | |
| 211 | ||
| 212 | UINT8 *gfx = &state->char_gfx_ram[state->video_ram[0x0000 | offs] << 4]; | |
| 213 | UINT32 color_base = (state->video_ram[0x0400 | offs] & 0x3f) << 2; | |
| 214 | ||
| 215 | /* map the offset to (x, y) character coordinates */ | |
| 216 | if ((offs & 0x03c0) == 0) | |
| 157 | 217 | { |
| 158 | int sx,sy; | |
| 159 | if (y < 2) | |
| 218 | y = (offs & 0x1f) - 2; | |
| 219 | x = (offs >> 5) + 34; | |
| 220 | } | |
| 221 | else if ((offs & 0x03c0) == 0x3c0) | |
| 222 | { | |
| 223 | y = (offs & 0x1f) - 2; | |
| 224 | x = (offs >> 5) - 30; | |
| 225 | } | |
| 226 | else | |
| 227 | { | |
| 228 | y = (offs >> 5) - 2; | |
| 229 | x = (offs & 0x1f) + 2; | |
| 230 | } | |
| 231 | ||
| 232 | if ((y < 0) || (y > 27)) continue; | |
| 233 | ||
| 234 | /* conver to pixel coordinates */ | |
| 235 | y = y << 3; | |
| 236 | x = x << 3; | |
| 237 | ||
| 238 | if (flip) | |
| 239 | { | |
| 240 | y = SCREEN_HEIGHT - 1 - y; | |
| 241 | x = SCREEN_WIDTH - 1 - x; | |
| 242 | } | |
| 243 | ||
| 244 | /* for each row in the character */ | |
| 245 | for (sy = 0; sy < 8; sy++) | |
| 246 | { | |
| 247 | int sx; | |
| 248 | int x_sav = x; | |
| 249 | ||
| 250 | UINT16 data = (gfx[8] << 8) | gfx[0]; | |
| 251 | ||
| 252 | /* for each pixel in the row */ | |
| 253 | for (sx = 0; sx < 8; sx++) | |
| 160 | 254 | { |
| 161 | sy = x-2; | |
| 162 | sx = 34+y; | |
| 255 | UINT32 col = ((data & 0x8000) >> 14) | ((data & 0x0800) >> 11); | |
| 256 | ||
| 257 | /* pen bits A4-A11 */ | |
| 258 | *BITMAP_ADDR32(bitmap, y, x) = (color_base | col) << 4; | |
| 259 | ||
| 260 | /* next pixel */ | |
| 261 | if (flip) | |
| 262 | x = x - 1; | |
| 263 | else | |
| 264 | x = x + 1; | |
| 265 | ||
| 266 | if (sx == 0x03) | |
| 267 | data = data << 5; | |
| 268 | else | |
| 269 | data = data << 1; | |
| 163 | 270 | } |
| 164 | else if (y >= 30) | |
| 165 | { | |
| 166 | sy = x-2; | |
| 167 | sx = y-30; | |
| 168 | } | |
| 271 | ||
| 272 | /* next row */ | |
| 273 | if (flip) | |
| 274 | y = y - 1; | |
| 169 | 275 | else |
| 170 | { | |
| 171 | sy = y-2; | |
| 172 | sx = x+2; | |
| 173 | } | |
| 276 | y = y + 1; | |
| 174 | 277 | |
| 175 | if (active_game) | |
| 176 | { | |
| 177 | drawgfx(chr_bitmap,machine->gfx[0], | |
| 178 | pacgal_videoram2[y*32 + x] + 0xa00, | |
| 179 | (pacgal_videoram2[0x400 + y*32 + x] & 0x3f) * 4, | |
| 180 | 0,0, | |
| 181 | 8*sx,8*sy, | |
| 182 | cliprect,TRANSPARENCY_NONE_RAW,0); | |
| 183 | } | |
| 184 | else | |
| 185 | { | |
| 186 | drawgfx(chr_bitmap,machine->gfx[0], | |
| 187 | pacgal_videoram[y*32 + x] + 0xa00, | |
| 188 | (pacgal_videoram[0x400 + y*32 + x] & 0x3f) * 4, | |
| 189 | 0,0, | |
| 190 | 8*sx,8*sy, | |
| 191 | cliprect,TRANSPARENCY_NONE_RAW,0); | |
| 192 | } | |
| 278 | x = x_sav; | |
| 279 | ||
| 280 | gfx = gfx + 1; | |
| 193 | 281 | } |
| 194 | 282 | } |
| 283 | } | |
| 195 | 284 | |
| 196 | fillbitmap(bitmap,0,NULL); | |
| 197 | 285 | |
| 198 | draw_sprites(machine,bitmap,cliprect); | |
| 199 | 286 | |
| 200 | copybitmap(bitmap, chr_bitmap, flip_screen, flip_screen, 0, 0, cliprect, TRANSPARENCY_BLEND_RAW, 4); | |
| 287 | /************************************* | |
| 288 | * | |
| 289 | * Video update | |
| 290 | * | |
| 291 | *************************************/ | |
| 201 | 292 | |
| 293 | static VIDEO_UPDATE( 20pacgal ) | |
| 294 | { | |
| 295 | const _20pacgal_state *state = machine->driver_data; | |
| 296 | ||
| 297 | draw_chars(state, bitmap); | |
| 298 | draw_sprites(state, bitmap); | |
| 299 | do_pen_lookup(state, bitmap, cliprect); | |
| 300 | ||
| 202 | 301 | return 0; |
| 203 | 302 | } |
| 303 | ||
| 304 | ||
| 305 | ||
| 306 | /************************************* | |
| 307 | * | |
| 308 | * Machine driver | |
| 309 | * | |
| 310 | *************************************/ | |
| 311 | ||
| 312 | MACHINE_DRIVER_START( 20pacgal_video ) | |
| 313 | ||
| 314 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 315 | MDRV_VIDEO_UPDATE(20pacgal) | |
| 316 | ||
| 317 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 318 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 319 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 320 | MDRV_SCREEN_SIZE(SCREEN_WIDTH, SCREEN_HEIGHT) | |
| 321 | MDRV_SCREEN_VISIBLE_AREA(0, SCREEN_WIDTH - 1, 0, SCREEN_HEIGHT - 1) | |
| 322 | MACHINE_DRIVER_END |
| r1649 | r1650 | |
|---|---|---|
| 89 | 89 | |
| 90 | 90 | ***************************************************************************/ |
| 91 | 91 | #include "driver.h" |
| 92 | #include "deprecat.h" | |
| 92 | 93 | #include "system16.h" |
| 93 | 94 | #include "video/resnet.h" |
| 94 | 95 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | |
| 3 | 4 | |
| 4 | 5 | UINT16 *deniam_videoram,*deniam_textram; |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "mcr.h" |
| 9 | 10 | |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | ***************************************************************************/ |
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | #include "deprecat.h" | |
| 13 | 14 | |
| 14 | 15 | UINT16 *stadhero_pf1_data; |
| 15 | 16 | static UINT16 *stadhero_pf2_data; |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "video/segaic24.h" |
| 3 | #include <math.h> | |
| 4 | 4 | |
| 5 | 5 | #define LOG_TGP_VIDEO 0 |
| 6 | 6 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | *******************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | |
| 9 | 10 | |
| 10 | 11 | static UINT8 actfancr_control_1[0x20],actfancr_control_2[0x20]; |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "profiler.h" |
| 3 | 4 | |
| 4 | 5 | UINT16 *taitob_scroll; |
| r1649 | r1650 | |
| 611 | 612 | int scrolly = -pixel_scroll[1]; //+240; |
| 612 | 613 | /* bit 15 of pixel_scroll[0] is probably flip screen */ |
| 613 | 614 | |
| 614 | copyscrollbitmap(bitmap,pixel_bitmap,1,&scrollx,1,&scrolly,cliprect, | |
| 615 | copyscrollbitmap_trans(bitmap,pixel_bitmap,1,&scrollx,1,&scrolly,cliprect,machine->pens[ | |
| 615 | 616 | } |
| 616 | 617 | |
| 617 | 618 | draw_framebuffer(machine, bitmap,cliprect,0); |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "includes/tank8.h" |
| 9 | 10 | |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 533 | 533 | ***************************************************************************/ |
| 534 | 534 | |
| 535 | 535 | #include "driver.h" |
| 536 | #include "deprecat.h" | |
| 536 | 537 | #include "taitoic.h" |
| 537 | 538 | |
| 538 | 539 | #define TOPSPEED_ROAD_COLORS |
| r1649 | r1650 | |
|---|---|---|
| 70 | 70 | ***************************************************************************/ |
| 71 | 71 | |
| 72 | 72 | #include "driver.h" |
| 73 | #include "deprecat.h" | |
| 73 | 74 | |
| 74 | 75 | #define TILEMAPS 0 |
| 75 | 76 |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | ***************************************************************************/ |
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | #include "deprecat.h" | |
| 13 | 14 | #include "deco16ic.h" |
| 14 | 15 | |
| 15 | 16 | static UINT16 vaportra_priority[2]; |
| r1649 | r1650 | |
|---|---|---|
| 584 | 584 | scroll = (bnj_scroll1 & 0x02) * 128 + 511 - bnj_scroll2; |
| 585 | 585 | if (!flip_screen) |
| 586 | 586 | scroll = 767-scroll; |
| 587 | copyscrollbitmap (bitmap, background_bitmap, 1, &scroll, 0, 0, cliprect | |
| 587 | copyscrollbitmap (bitmap, background_bitmap, 1, &scroll, 0, 0, cliprect | |
| 588 | 588 | |
| 589 | 589 | /* copy the low priority characters followed by the sprites |
| 590 | 590 | then the high priority characters */ |
| r1649 | r1650 | |
|---|---|---|
| 177 | 177 | ***************************************************************************/ |
| 178 | 178 | |
| 179 | 179 | #include "driver.h" |
| 180 | #include "deprecat.h" | |
| 180 | 181 | #include "cps1.h" |
| 181 | 182 | |
| 182 | 183 | #define VERBOSE 0 |
| r1649 | r1650 | |
|---|---|---|
| 531 | 531 | color_code, |
| 532 | 532 | 0,0, |
| 533 | 533 | sx*8,sy*8, |
| 534 | | |
| 534 | | |
| 535 | 535 | dirty_videoram_d[offs] = 0; |
| 536 | 536 | } |
| 537 | 537 | |
| r1649 | r1650 | |
| 559 | 559 | color_code, |
| 560 | 560 | 0,0, |
| 561 | 561 | sx*8,sy*8, |
| 562 | | |
| 562 | | |
| 563 | 563 | dirty_videoram_e[offs] = 0; |
| 564 | 564 | } |
| 565 | 565 | |
| r1649 | r1650 | |
| 587 | 587 | color_code, |
| 588 | 588 | 0,0, |
| 589 | 589 | sx*8,sy*8, |
| 590 | | |
| 590 | | |
| 591 | 591 | dirty_videoram_f[offs] = 0; |
| 592 | 592 | } |
| 593 | 593 | |
| r1649 | r1650 | |
| 615 | 615 | color_code, |
| 616 | 616 | 0,0, |
| 617 | 617 | sx*8,sy*8, |
| 618 | | |
| 618 | | |
| 619 | 619 | dirty_videoram_b[offs] = 0; |
| 620 | 620 | } |
| 621 | 621 | |
| r1649 | r1650 | |
| 623 | 623 | |
| 624 | 624 | /* Now, composite the four layers together */ |
| 625 | 625 | |
| 626 | copyscrollbitmap(tmpbitmap2,bitmap_D,0,0,1,&d_offset, | |
| 627 | &machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 628 | copyscrollbitmap(tmpbitmap2,bitmap_E,0,0,1,&e_offset, | |
| 629 | &machine->screen[0].visarea,TRANSPARENCY_COLOR,0); | |
| 630 | copyscrollbitmap(tmpbitmap2,bitmap_F,0,0,1,&f_offset, | |
| 631 | &machine->screen[0].visarea,TRANSPARENCY_COLOR,0); | |
| 632 | copybitmap(tmpbitmap2,bitmap_B,0,0,0,0, | |
| 633 | &machine->screen[0].visarea,TRANSPARENCY_COLOR,0); | |
| 626 | copyscrollbitmap (tmpbitmap2,bitmap_D,0,0,1,&d_offset,NULL); | |
| 627 | copyscrollbitmap_trans(tmpbitmap2,bitmap_E,0,0,1,&e_offset,NULL,machine->pens[0]); | |
| 628 | copyscrollbitmap_trans(tmpbitmap2,bitmap_F,0,0,1,&f_offset,NULL,machine->pens[0]); | |
| 629 | copybitmap_trans (tmpbitmap2,bitmap_B,0,0,0,0,NULL,machine->pens[0]); | |
| 634 | 630 | |
| 635 | 631 | /* Now flip X & simulate the monitor motion */ |
| 636 | fillbitmap(bitmap, machine->pens[0], &machine->screen[0].visarea); | |
| 637 | copybitmap(bitmap,tmpbitmap2,1,0,stactics_horiz_pos,stactics_vert_pos, | |
| 638 | &visible_screen_area,TRANSPARENCY_NONE,0); | |
| 632 | fillbitmap(bitmap, machine->pens[0], cliprect); | |
| 633 | copybitmap(bitmap,tmpbitmap2,1,0,stactics_horiz_pos,stactics_vert_pos,&visible_screen_area); | |
| 639 | 634 | |
| 640 | 635 | /* Finally, draw stuff that is on the console or on top of the monitor (LED's) */ |
| 641 | 636 | |
| r1649 | r1650 | |
| 650 | 645 | 0, |
| 651 | 646 | 0,0, |
| 652 | 647 | pixel_x,pixel_y, |
| 653 | | |
| 648 | | |
| 654 | 649 | pixel_x+=6; |
| 655 | 650 | /* Draw a colon */ |
| 656 | 651 | drawgfx(bitmap,machine->gfx[5], |
| r1649 | r1650 | |
| 658 | 653 | 0, |
| 659 | 654 | 0,0, |
| 660 | 655 | pixel_x,pixel_y, |
| 661 | | |
| 656 | | |
| 662 | 657 | pixel_x+=6; |
| 663 | 658 | /* Draw the digits */ |
| 664 | 659 | for(i=1;i<7;i++) |
| r1649 | r1650 | |
| 668 | 663 | 16, |
| 669 | 664 | 0,0, |
| 670 | 665 | pixel_x,pixel_y, |
| 671 | | |
| 666 | | |
| 672 | 667 | pixel_x+=6; |
| 673 | 668 | } |
| 674 | 669 | |
| r1649 | r1650 | |
| 682 | 677 | 0, |
| 683 | 678 | 0,0, |
| 684 | 679 | pixel_x,pixel_y, |
| 685 | | |
| 680 | | |
| 686 | 681 | pixel_x+=6; |
| 687 | 682 | /* Draw a colon */ |
| 688 | 683 | drawgfx(bitmap,machine->gfx[5], |
| r1649 | r1650 | |
| 690 | 685 | 0, |
| 691 | 686 | 0,0, |
| 692 | 687 | pixel_x,pixel_y, |
| 693 | | |
| 688 | | |
| 694 | 689 | pixel_x+=6; |
| 695 | 690 | /* Draw the pips */ |
| 696 | 691 | for(i=7;i<9;i++) |
| r1649 | r1650 | |
| 700 | 695 | 16, |
| 701 | 696 | 0,0, |
| 702 | 697 | pixel_x,pixel_y, |
| 703 | | |
| 698 | | |
| 704 | 699 | pixel_x+=2; |
| 705 | 700 | } |
| 706 | 701 | |
| r1649 | r1650 | |
| 714 | 709 | 0, |
| 715 | 710 | 0,0, |
| 716 | 711 | pixel_x,pixel_y, |
| 717 | | |
| 712 | | |
| 718 | 713 | pixel_x+=6; |
| 719 | 714 | /* Draw a colon */ |
| 720 | 715 | drawgfx(bitmap,machine->gfx[5], |
| r1649 | r1650 | |
| 722 | 717 | 0, |
| 723 | 718 | 0,0, |
| 724 | 719 | pixel_x,pixel_y, |
| 725 | | |
| 720 | | |
| 726 | 721 | pixel_x+=6; |
| 727 | 722 | /* Draw the pips */ |
| 728 | 723 | for(i=9;i<12;i++) |
| r1649 | r1650 | |
| 732 | 727 | 16, |
| 733 | 728 | 0,0, |
| 734 | 729 | pixel_x,pixel_y, |
| 735 | | |
| 730 | | |
| 736 | 731 | pixel_x+=2; |
| 737 | 732 | } |
| 738 | 733 | |
| r1649 | r1650 | |
| 745 | 740 | 0, |
| 746 | 741 | 0,0, |
| 747 | 742 | pixel_x,pixel_y, |
| 748 | | |
| 743 | | |
| 749 | 744 | pixel_x+=6; |
| 750 | 745 | /* Draw a colon */ |
| 751 | 746 | drawgfx(bitmap,machine->gfx[5], |
| r1649 | r1650 | |
| 753 | 748 | 0, |
| 754 | 749 | 0,0, |
| 755 | 750 | pixel_x,pixel_y, |
| 756 | | |
| 751 | | |
| 757 | 752 | pixel_x+=6; |
| 758 | 753 | /* Draw the pips */ |
| 759 | 754 | for(i=12;i<16;i++) |
| r1649 | r1650 | |
| 763 | 758 | 16, |
| 764 | 759 | 0,0, |
| 765 | 760 | pixel_x,pixel_y, |
| 766 | | |
| 761 | | |
| 767 | 762 | pixel_x+=2; |
| 768 | 763 | } |
| 769 | 764 | |
| r1649 | r1650 | |
| 810 | 805 | 16*2, /* Make it green */ |
| 811 | 806 | 0,0, |
| 812 | 807 | pixel_x,pixel_y, |
| 813 | | |
| 808 | | |
| 814 | 809 | drawgfx(bitmap,machine->gfx[4], |
| 815 | 810 | beamdata[firebeam_state*8+i]&0x7f, |
| 816 | 811 | 16*2, /* Make it green */ |
| 817 | 812 | 1,0, |
| 818 | 813 | 255-pixel_x,pixel_y, |
| 819 | | |
| 814 | | |
| 820 | 815 | pixel_x+=14; |
| 821 | 816 | pixel_y-=7; |
| 822 | 817 | } |
| r1649 | r1650 | |
| 828 | 823 | 16*2, /* Make it green */ |
| 829 | 824 | 0,0, |
| 830 | 825 | pixel_x,pixel_y, |
| 831 | | |
| 826 | | |
| 832 | 827 | drawgfx(bitmap,machine->gfx[4], |
| 833 | 828 | beamdata[firebeam_state*8+i], |
| 834 | 829 | 16*2, /* Make it green */ |
| 835 | 830 | 1,0, |
| 836 | 831 | 255-pixel_x,pixel_y, |
| 837 | | |
| 832 | | |
| 838 | 833 | pixel_x+=16; |
| 839 | 834 | pixel_y-=8; |
| 840 | 835 | } |
| r1649 | r1650 | |
| 853 | 848 | 16, /* red */ |
| 854 | 849 | 0,0, |
| 855 | 850 | pixel_x,pixel_y, |
| 856 | | |
| 851 | | |
| 857 | 852 | } |
| 858 | 853 | |
| 859 | 854 | /* Update vblank counter */ |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | **************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "eminline.h" |
| 11 | 12 | #include "gaelco3d.h" |
| 12 | 13 | #include "cpu/tms32031/tms32031.h" |
| r1649 | r1650 | |
| 489 | 490 | else |
| 490 | 491 | { |
| 491 | 492 | if (video_changed) |
| 492 | copybitmap(bitmap, screenbits, 0,1, 0,0, cliprect | |
| 493 | copybitmap(bitmap, screenbits, 0,1, 0,0, cliprect | |
| 493 | 494 | ret = video_changed; |
| 494 | 495 | video_changed = FALSE; |
| 495 | 496 | } |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "cpu/tms34010/tms34010.h" |
| 9 | 10 | #include "lethalj.h" |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 88 | 88 | ***************************************************************************/ |
| 89 | 89 | |
| 90 | 90 | #include "driver.h" |
| 91 | #include "deprecat.h" | |
| 91 | 92 | #include "video/tms34061.h" |
| 92 | 93 | #include "video/tlc34076.h" |
| 93 | 94 | #include "cpu/m6809/m6809.h" |
| r1649 | r1650 | |
|---|---|---|
| 1710 | 1710 | clip.max_x = dambustr_bg_split_line; |
| 1711 | 1711 | clip.min_y = 0; |
| 1712 | 1712 | clip.max_y = 255; |
| 1713 | copybitmap(bitmap, dambustr_tmpbitmap, 0, 0, 0, 0, &clip | |
| 1713 | copybitmap(bitmap, dambustr_tmpbitmap, 0, 0, 0, 0, &clip | |
| 1714 | 1714 | } |
| 1715 | 1715 | else |
| 1716 | 1716 | { |
| r1649 | r1650 | |
| 1718 | 1718 | clip.max_x = 254 - dambustr_bg_split_line; |
| 1719 | 1719 | clip.min_y = 0; |
| 1720 | 1720 | clip.max_y = 255; |
| 1721 | copybitmap(bitmap, dambustr_tmpbitmap, 0, 0, 0, 0, &clip | |
| 1721 | copybitmap(bitmap, dambustr_tmpbitmap, 0, 0, 0, 0, &clip | |
| 1722 | 1722 | } |
| 1723 | 1723 | } |
| 1724 | 1724 | |
| r1649 | r1650 | |
| 2214 | 2214 | } |
| 2215 | 2215 | |
| 2216 | 2216 | /* save the background for drawing it again later, if background has priority over characters */ |
| 2217 | copybitmap(dambustr_tmpbitmap, bitmap, 0, 0, 0, 0, &machine->screen[0].visarea | |
| 2217 | copybitmap(dambustr_tmpbitmap, bitmap, 0, 0, 0, 0, &machine->screen[0].visarea | |
| 2218 | 2218 | |
| 2219 | 2219 | tilemap_draw(bitmap, 0, bg_tilemap, 0, 0); |
| 2220 | 2220 |
| r1649 | r1650 | |
|---|---|---|
| 105 | 105 | |
| 106 | 106 | drawgfx(tmpbitmap,gfx,tile_number,color,0,0,sx,sy,0,TRANSPARENCY_NONE,0); |
| 107 | 107 | } |
| 108 | copyscrollbitmap(bitmap,tmpbitmap,1,&scrollx,1,&scrolly,cliprect | |
| 108 | copyscrollbitmap(bitmap,tmpbitmap,1,&scrollx,1,&scrolly,cliprect | |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | void tnk3_draw_text(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect, int bank, UINT8 *source ) |
| r1649 | r1650 | |
| 262 | 262 | |
| 263 | 263 | drawgfx(tmpbitmap,gfx,tile_number,color,0,0,sx,sy,0,TRANSPARENCY_NONE,0); |
| 264 | 264 | } |
| 265 | copyscrollbitmap(bitmap,tmpbitmap,1,&scrollx,1,&scrolly,cliprect | |
| 265 | copyscrollbitmap(bitmap,tmpbitmap,1,&scrollx,1,&scrolly,cliprect | |
| 266 | 266 | } |
| 267 | 267 | |
| 268 | 268 | VIDEO_UPDATE( sgladiat ) |
| r1649 | r1650 | |
| 386 | 386 | else |
| 387 | 387 | drawgfx(tmpbitmap,gfx,tile_number,color,0,0,sx,sy,0,TRANSPARENCY_NONE,0); |
| 388 | 388 | } |
| 389 | copyscrollbitmap(bitmap,tmpbitmap,1,&xscroll,1,&yscroll,cliprect | |
| 389 | copyscrollbitmap(bitmap,tmpbitmap,1,&xscroll,1,&yscroll,cliprect | |
| 390 | 390 | } |
| 391 | 391 | |
| 392 | 392 | /* |
| r1649 | r1650 | |
|---|---|---|
| 55 | 55 | ***************************************************************************/ |
| 56 | 56 | |
| 57 | 57 | #include "driver.h" |
| 58 | #include "deprecat.h" | |
| 58 | 59 | |
| 59 | 60 | #define RASTER_LINES 262 |
| 60 | 61 | #define FIRST_VISIBLE_LINE 0 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | |
| 11 | 12 | |
| 12 | 13 | static pen_t (*map_color)(UINT8 x, UINT8 y); |
| r1649 | r1650 | |
| 25 | 26 | |
| 26 | 27 | static pen_t panic_map_color(UINT8 x, UINT8 y) |
| 27 | 28 | { |
| 28 | offs_t offs; | |
| 29 | pen_t pen; | |
| 29 | offs_t offs = (color_registers[0] << 9) | (color_registers[2] << 10) | ((x >> 4) << 5) | (y >> 3); | |
| 30 | pen_t pen = memory_region(REGION_USER1)[offs]; | |
| 30 | 31 | |
| 31 | ||
| 32 | offs = (color_registers[0] << 9) | (color_registers[2] << 10) | ((x >> 4) << 5) | (y >> 3); | |
| 33 | pen = memory_region(REGION_USER1)[offs]; | |
| 34 | ||
| 35 | 32 | if (color_registers[1]) |
| 36 | 33 | pen >>= 4; |
| 37 | 34 | |
| r1649 | r1650 | |
| 40 | 37 | |
| 41 | 38 | static pen_t cosmica_map_color(UINT8 x, UINT8 y) |
| 42 | 39 | { |
| 43 | offs_t offs; | |
| 44 | pen_t pen; | |
| 40 | offs_t offs = (color_registers[0] << 9) | ((x >> 4) << 5) | (y >> 3); | |
| 41 | pen_t pen = memory_region(REGION_USER1)[offs]; | |
| 45 | 42 | |
| 46 | ||
| 47 | offs = (color_registers[0] << 9) | ((x >> 4) << 5) | (y >> 3); | |
| 48 | pen = memory_region(REGION_USER1)[offs]; | |
| 49 | ||
| 50 | 43 | if (color_registers[0]) /* yes, 0 again according to the schematics */ |
| 51 | 44 | pen >>= 4; |
| 52 | 45 | |
| r1649 | r1650 | |
| 55 | 48 | |
| 56 | 49 | static pen_t cosmicg_map_color(UINT8 x, UINT8 y) |
| 57 | 50 | { |
| 58 | offs_t offs; | |
| 59 | pen_t pen; | |
| 51 | offs_t offs = (color_registers[0] << 8) | (color_registers[1] << 9) | ((y >> 4) << 4) | (x >> 4); | |
| 52 | pen_t pen = memory_region(REGION_USER1)[offs]; | |
| 60 | 53 | |
| 61 | ||
| 62 | offs = (color_registers[0] << 8) | (color_registers[1] << 9) | ((y >> 4) << 4) | (x >> 4); | |
| 63 | pen = memory_region(REGION_USER1)[offs]; | |
| 64 | ||
| 65 | 54 | /* the upper 4 bits are for cocktail mode support */ |
| 66 | 55 | |
| 67 | 56 | return pen & 0x0f; |
| 68 | 57 | } |
| 69 | 58 | |
| 70 | static pen_t magspot | |
| 59 | static pen_t magspot | |
| 71 | 60 | { |
| 72 | offs_t offs; | |
| 73 | pen_t pen; | |
| 61 | offs_t offs = (color_registers[0] << 9) | ((x >> 3) << 4) | (y >> 4); | |
| 62 | pen_t pen = memory_region(REGION_USER1)[offs]; | |
| 74 | 63 | |
| 75 | ||
| 76 | offs = (color_registers[0] << 9) | ((x >> 3) << 4) | (y >> 4); | |
| 77 | pen = memory_region(REGION_USER1)[offs]; | |
| 78 | ||
| 79 | 64 | if (color_registers[1]) |
| 80 | 65 | pen >>= 4; |
| 81 | 66 | |
| r1649 | r1650 | |
| 98 | 83 | PALETTE_INIT( panic ) |
| 99 | 84 | { |
| 100 | 85 | int i; |
| 101 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 102 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 103 | 86 | |
| 104 | for (i = 0;i < machine->drv->total_colors;i++) | |
| 87 | /* allocate the colortable */ | |
| 88 | machine->colortable = colortable_alloc(machine, 0x10); | |
| 89 | ||
| 90 | /* create a lookup table for the palette */ | |
| 91 | for (i = 0; i < 0x10; i++) | |
| 105 | 92 | { |
| 106 | int r = 0xff * ((i >> 0) & 1); | |
| 107 | int g = 0xff * ((i >> 1) & 1); | |
| 108 | int b; | |
| 109 | if ((i & 0x0c) == 0x08) | |
| 110 | b = 0xaa; | |
| 111 | else | |
| 112 | b = 0xff * ((i >> 2) & 1); | |
| 113 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 93 | int r = pal1bit(i >> 0); | |
| 94 | int g = pal1bit(i >> 1); | |
| 95 | int b = ((i & 0x0c) == 0x08) ? 0xaa : pal1bit(i >> 2); | |
| 96 | ||
| 97 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 114 | 98 | } |
| 115 | 99 | |
| 100 | /* background uses colors 0x00-0x0f */ | |
| 101 | for (i = 0; i < 0x0f; i++) | |
| 102 | colortable_entry_set_value(machine->colortable, i, i); | |
| 116 | 103 | |
| 117 | for (i = 0;i < TOTAL_COLORS(0);i++) | |
| 118 | COLOR(0,i) = *(color_prom++) & 0x07; | |
| 104 | /* sprites use colors 0x00-0x07 */ | |
| 105 | for (i = 0x10; i < 0x30; i++) | |
| 106 | { | |
| 107 | UINT8 ctabentry = color_prom[i - 0x10] & 0x07; | |
| 108 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 109 | } | |
| 119 | 110 | |
| 120 | ||
| 121 | 111 | map_color = panic_map_color; |
| 122 | 112 | } |
| 123 | 113 | |
| r1649 | r1650 | |
| 135 | 125 | { |
| 136 | 126 | int i; |
| 137 | 127 | |
| 138 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 139 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 128 | /* allocate the colortable */ | |
| 129 | machine->colortable = colortable_alloc(machine, 0x08); | |
| 140 | 130 | |
| 141 | for (i = 0;i < machine->drv->total_colors;i++) | |
| 142 | palette_set_color_rgb(machine,i,pal1bit(i >> 0),pal1bit(i >> 1),pal1bit(i >> 2)); | |
| 131 | /* create a lookup table for the palette */ | |
| 132 | for (i = 0; i < 0x08; i++) | |
| 133 | { | |
| 134 | rgb_t color = MAKE_RGB(pal1bit(i >> 0), pal1bit(i >> 1), pal1bit(i >> 2)); | |
| 135 | colortable_palette_set_color(machine->colortable, i, color); | |
| 136 | } | |
| 143 | 137 | |
| 138 | /* background and sprites use colors 0x00-0x07 */ | |
| 139 | for (i = 0; i < 0x08; i++) | |
| 140 | colortable_entry_set_value(machine->colortable, i, i); | |
| 144 | 141 | |
| 145 | for (i = 0;i < | |
| 142 | for (i = 0x08; i < | |
| 146 | 143 | { |
| 147 | COLOR(0,i) = * color_prom & 0x07; | |
| 148 | COLOR(0,i+(TOTAL_COLORS(0)/2)) = (*(color_prom++) >> 4) & 0x07; | |
| 149 | } | |
| 144 | UINT8 ctabentry; | |
| 150 | 145 | |
| 146 | ctabentry = (color_prom[i - 0x08] >> 0) & 0x07; | |
| 147 | colortable_entry_set_value(machine->colortable, i + 0x00, ctabentry); | |
| 151 | 148 | |
| 149 | ctabentry = (color_prom[i - 0x08] >> 4) & 0x07; | |
| 150 | colortable_entry_set_value(machine->colortable, i + 0x20, ctabentry); | |
| 151 | } | |
| 152 | ||
| 152 | 153 | map_color = cosmica_map_color; |
| 153 | 154 | } |
| 154 | 155 | |
| r1649 | r1650 | |
| 162 | 163 | * It's possible that the background is dark gray and not black, as the |
| 163 | 164 | * resistor chain would never drop to zero, Anybody know ? |
| 164 | 165 | */ |
| 165 | ||
| 166 | 166 | PALETTE_INIT( cosmicg ) |
| 167 | 167 | { |
| 168 | 168 | int i; |
| 169 | 169 | |
| 170 | for (i = 0;i < machine->drv->total_colors;i++) | |
| 170 | for (i = 0; i < machine->drv->total_colors; i++) | |
| 171 | 171 | { |
| 172 | int r,g,b; | |
| 172 | int r = (i > 8) ? 0xff : 0xaa * ((i >> 0) & 1); | |
| 173 | int g = 0xaa * ((i >> 1) & 1); | |
| 174 | int b = 0xaa * ((i >> 2) & 1); | |
| 173 | 175 | |
| 174 | if (i > 8) r = 0xff; | |
| 175 | else r = 0xaa * ((i >> 0) & 1); | |
| 176 | ||
| 177 | g = 0xaa * ((i >> 1) & 1); | |
| 178 | b = 0xaa * ((i >> 2) & 1); | |
| 179 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 176 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); | |
| 180 | 177 | } |
| 181 | 178 | |
| 182 | ||
| 183 | 179 | map_color = cosmicg_map_color; |
| 184 | 180 | } |
| 185 | 181 | |
| 186 | PALETTE_INIT( magspot2 ) | |
| 182 | ||
| 183 | PALETTE_INIT( magspot ) | |
| 187 | 184 | { |
| 188 | 185 | int i; |
| 189 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 190 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 191 | 186 | |
| 187 | /* allocate the colortable */ | |
| 188 | machine->colortable = colortable_alloc(machine, 0x10); | |
| 192 | 189 | |
| 193 | for (i = 0;i < machine->drv->total_colors;i++) | |
| 190 | /* create a lookup table for the palette */ | |
| 191 | for (i = 0; i < 0x10; i++) | |
| 194 | 192 | { |
| 195 | int r,g,b; | |
| 193 | int r = ((i & 0x09) == 0x08) ? 0xaa : pal1bit(i >> 0); | |
| 194 | int g = pal1bit(i >> 1); | |
| 195 | int b = pal1bit(i >> 2); | |
| 196 | 196 | |
| 197 | if ((i & 0x09) == 0x08) | |
| 198 | r = 0xaa; | |
| 199 | else | |
| 200 | r = 0xff * ((i >> 0) & 1); | |
| 201 | ||
| 202 | g = 0xff * ((i >> 1) & 1); | |
| 203 | b = 0xff * ((i >> 2) & 1); | |
| 204 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 197 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 205 | 198 | } |
| 206 | 199 | |
| 200 | /* background uses colors 0x00-0x0f */ | |
| 201 | for (i = 0; i < 0x0f; i++) | |
| 202 | colortable_entry_set_value(machine->colortable, i, i); | |
| 207 | 203 | |
| 208 | for (i = 0;i < TOTAL_COLORS(0);i++) | |
| 204 | /* sprites use colors 0x00-0x0f */ | |
| 205 | for (i = 0x10; i < 0x30; i++) | |
| 209 | 206 | { |
| 210 | COLOR(0,i) = *(color_prom++) & 0x0f; | |
| 207 | UINT8 ctabentry = color_prom[i - 0x10] & 0x0f; | |
| 208 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 211 | 209 | } |
| 212 | 210 | |
| 213 | ||
| 214 | map_color = magspot2_map_color; | |
| 211 | map_color = magspot_map_color; | |
| 215 | 212 | magspot_pen_mask = 0x0f; |
| 216 | 213 | } |
| 217 | 214 | |
| r1649 | r1650 | |
| 219 | 216 | PALETTE_INIT( nomnlnd ) |
| 220 | 217 | { |
| 221 | 218 | int i; |
| 222 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 223 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 224 | 219 | |
| 220 | /* allocate the colortable */ | |
| 221 | machine->colortable = colortable_alloc(machine, 0x10); | |
| 225 | 222 | |
| 226 | for (i = 0;i < machine->drv->total_colors;i++) | |
| 227 | palette_set_color_rgb(machine,i,pal1bit(i >> 0),pal1bit(i >> 1),pal1bit(i >> 2)); | |
| 223 | /* create a lookup table for the palette */ | |
| 224 | for (i = 0; i < 0x10; i++) | |
| 225 | { | |
| 226 | rgb_t color = MAKE_RGB(pal1bit(i >> 0), pal1bit(i >> 1), pal1bit(i >> 2)); | |
| 227 | colortable_palette_set_color(machine->colortable, i, color); | |
| 228 | } | |
| 228 | 229 | |
| 230 | /* background uses colors 0x00-0x07 */ | |
| 231 | for (i = 0; i < 0x07; i++) | |
| 232 | colortable_entry_set_value(machine->colortable, i, i); | |
| 229 | 233 | |
| 230 | for (i = 0;i < TOTAL_COLORS(0);i++) | |
| 234 | /* sprites use colors 0x00-0x07 */ | |
| 235 | for (i = 0x10; i < 0x30; i++) | |
| 231 | 236 | { |
| 232 | COLOR(0,i) = *(color_prom++) & 0x07; | |
| 237 | UINT8 ctabentry = color_prom[i - 0x10] & 0x07; | |
| 238 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 233 | 239 | } |
| 234 | 240 | |
| 235 | ||
| 236 | map_color = magspot2_map_color; | |
| 241 | map_color = magspot_map_color; | |
| 237 | 242 | magspot_pen_mask = 0x07; |
| 238 | 243 | } |
| 239 | 244 | |
| r1649 | r1650 | |
| 248 | 253 | { |
| 249 | 254 | offs_t offs; |
| 250 | 255 | |
| 251 | ||
| 252 | 256 | for (offs = 0; offs < videoram_size; offs++) |
| 253 | 257 | { |
| 258 | int i; | |
| 254 | 259 | UINT8 data = videoram[offs]; |
| 255 | 260 | |
| 256 | if (data != 0) /* optimization, not absolutely neccessary */ | |
| 257 | { | |
| 258 | int i; | |
| 259 | UINT8 x = offs << 3; | |
| 260 | UINT8 y = offs >> 5; | |
| 261 | UINT8 x = offs << 3; | |
| 262 | UINT8 y = offs >> 5; | |
| 261 | 263 | |
| 262 | | |
| 264 | | |
| 263 | 265 | |
| 264 | ||
| 265 | for (i = 0; i < 8; i++) | |
| 266 | for (i = 0; i < 8; i++) | |
| 267 | { | |
| 268 | if (data & 0x80) | |
| 266 | 269 | { |
| 267 | if (data & 0x80) | |
| 268 | { | |
| 269 | if (flip_screen) | |
| 270 | *BITMAP_ADDR16(bitmap, 255-y, 255-x) = pen; | |
| 271 | else | |
| 272 | *BITMAP_ADDR16(bitmap, y, x) = pen; | |
| 273 | } | |
| 274 | ||
| 275 | x++; | |
| 276 | data <<= 1; | |
| 270 | if (flip_screen) | |
| 271 | *BITMAP_ADDR16(bitmap, 255-y, 255-x) = pen; | |
| 272 | else | |
| 273 | *BITMAP_ADDR16(bitmap, y, x) = pen; | |
| 277 | 274 | } |
| 275 | ||
| 276 | x++; | |
| 277 | data <<= 1; | |
| 278 | 278 | } |
| 279 | 279 | } |
| 280 | 280 | } |
| r1649 | r1650 | |
| 284 | 284 | { |
| 285 | 285 | int offs; |
| 286 | 286 | |
| 287 | ||
| 288 | 287 | for (offs = spriteram_size - 4;offs >= 0;offs -= 4) |
| 289 | 288 | { |
| 290 | 289 | if (spriteram[offs] != 0) |
| r1649 | r1650 | |
| 295 | 294 | color = ~spriteram[offs+3] & color_mask; |
| 296 | 295 | |
| 297 | 296 | if (extra_sprites) |
| 298 | { | |
| 299 | 297 | code |= (spriteram[offs+3] & 0x08) << 3; |
| 300 | } | |
| 301 | 298 | |
| 302 | 299 | if (spriteram[offs] & 0x80) |
| 303 | { | |
| 304 | 300 | /* 16x16 sprite */ |
| 305 | ||
| 306 | 301 | drawgfx(bitmap,machine->gfx[0], |
| 307 | 302 | code, color, |
| 308 | 303 | 0, ~spriteram[offs] & 0x40, |
| 309 | 304 | 256-spriteram[offs+2],spriteram[offs+1], |
| 310 | 305 | cliprect,TRANSPARENCY_PEN,0); |
| 311 | } | |
| 312 | 306 | else |
| 313 | { | |
| 314 | 307 | /* 32x32 sprite */ |
| 315 | ||
| 316 | 308 | drawgfx(bitmap,machine->gfx[1], |
| 317 | 309 | code >> 2, color, |
| 318 | 310 | 0, ~spriteram[offs] & 0x40, |
| 319 | 311 | 256-spriteram[offs+2],spriteram[offs+1], |
| 320 | 312 | cliprect,TRANSPARENCY_PEN,0); |
| 321 | } | |
| 322 | 313 | } |
| 323 | 314 | } |
| 324 | 315 | } |
| r1649 | r1650 | |
| 330 | 321 | UINT8 map = 0; |
| 331 | 322 | UINT8 *PROM = memory_region(REGION_USER2); |
| 332 | 323 | |
| 333 | ||
| 334 | 324 | while (1) |
| 335 | 325 | { |
| 336 | 326 | int va = y & 0x01; |
| 337 | 327 | int vb = (y >> 1) & 0x01; |
| 338 | 328 | |
| 339 | ||
| 340 | 329 | UINT8 x = 0; |
| 341 | 330 | |
| 342 | 331 | while (1) |
| r1649 | r1650 | |
| 344 | 333 | UINT8 x1; |
| 345 | 334 | int hc, hb_; |
| 346 | 335 | |
| 347 | ||
| 348 | 336 | if (flip_screen) |
| 349 | 337 | x1 = x - cpu_getcurrentframe(); |
| 350 | 338 | else |
| 351 | 339 | x1 = x + cpu_getcurrentframe(); |
| 352 | 340 | |
| 353 | ||
| 354 | 341 | hc = (x1 >> 2) & 0x01; |
| 355 | 342 | hb_ = (x >> 5) & 0x01; /* not a bug, this one is the real x */ |
| 356 | 343 | |
| 357 | ||
| 358 | 344 | if ((x1 & 0x1f) == 0) |
| 359 | { | |
| 360 | 345 | // flip-flop at IC11 is clocked |
| 361 | 346 | map = PROM[(x1 >> 5) | (y >> 1 << 3)]; |
| 362 | } | |
| 363 | 347 | |
| 364 | ||
| 365 | 348 | if ((!(hc & va) & (vb ^ hb_)) && /* right network */ |
| 366 | 349 | (((x1 ^ map) & (hc | 0x1e)) == 0x1e)) /* left network */ |
| 367 | 350 | { |
| r1649 | r1650 | |
| 371 | 354 | *BITMAP_ADDR16(bitmap, y, x) = machine->pens[col]; |
| 372 | 355 | } |
| 373 | 356 | |
| 374 | ||
| 375 | 357 | x++; |
| 376 | 358 | if (x == 0) break; |
| 377 | 359 | } |
| 378 | 360 | |
| 379 | ||
| 380 | 361 | y++; |
| 381 | 362 | if (y == 0) break; |
| 382 | 363 | } |
| r1649 | r1650 | |
| 394 | 375 | UINT8 horz_data = 0; |
| 395 | 376 | UINT8 vert_data; |
| 396 | 377 | |
| 397 | ||
| 398 | 378 | for (y = 32; y < 224; y++) |
| 399 | 379 | { |
| 400 | 380 | UINT8 x = 0; |
| 401 | 381 | |
| 402 | ||
| 403 | 382 | while (1) |
| 404 | 383 | { |
| 405 | 384 | int x1; |
| 406 | 385 | |
| 407 | ||
| 408 | 386 | /* for the vertical lines, each bit indicates |
| 409 | 387 | if there should be a line at the x position */ |
| 410 | 388 | vert_data = vert_PROM[x >> 3]; |
| 411 | 389 | |
| 412 | ||
| 413 | 390 | /* the horizontal (perspective) lines are RLE encoded. |
| 414 | 391 | When the screen is flipped, the address should be |
| 415 | 392 | decrementing. But since it's just a mirrored image, |
| 416 | 393 | this is easier. */ |
| 417 | 394 | if (count == 0) |
| 418 | { | |
| 419 | 395 | count = horz_PROM[horz_addr++]; |
| 420 | } | |
| 421 | 396 | |
| 422 | 397 | count++; |
| 423 | 398 | |
| 424 | 399 | if (count == 0) |
| 425 | { | |
| 426 | 400 | horz_data = horz_PROM[horz_addr++]; |
| 427 | } | |
| 428 | 401 | |
| 429 | ||
| 430 | 402 | for (x1 = 0; x1 < 8; x1++) |
| 431 | 403 | { |
| 432 | 404 | if (!(vert_data & horz_data & 0x80)) /* NAND gate */ |
| r1649 | r1650 | |
| 445 | 417 | x++; |
| 446 | 418 | } |
| 447 | 419 | |
| 448 | ||
| 449 | 420 | if (x == 0) break; |
| 450 | 421 | } |
| 451 | 422 | } |
| r1649 | r1650 | |
| 458 | 429 | UINT8 water = cpu_getcurrentframe(); |
| 459 | 430 | UINT8 *PROM = memory_region(REGION_USER2); |
| 460 | 431 | |
| 461 | ||
| 462 | 432 | /* all positioning is via logic gates: |
| 463 | 433 | |
| 464 | 434 | tree is displayed where |
| 465 | ||
| 466 | 435 | __ __ |
| 467 | 436 | HD' ^ HC' ^ HB' |
| 468 | 437 | |
| r1649 | r1650 | |
| 470 | 439 | __ __ __ |
| 471 | 440 | (VB' ^ VC' ^ VD') X (VB' ^ VC' ^ VD') |
| 472 | 441 | |
| 473 | ||
| 474 | 442 | water is displayed where |
| 475 | 443 | __ __ |
| 476 | 444 | HD' ^ HC' ^ HB ^ HA' |
| 477 | 445 | |
| 478 | 446 | and vertically the same equation as the trees, |
| 479 | but final result inverted. | |
| 447 | but the final result is inverted. | |
| 480 | 448 | |
| 481 | 449 | |
| 482 | 450 | The colors are coded in logic gates: |
| r1649 | r1650 | |
| 487 | 455 | G = Plane2 0 1 010 |
| 488 | 456 | B = Plane1 ^ ~Plane2 1 0 100 |
| 489 | 457 | 1 1 011 |
| 490 | ||
| 491 | 458 | water: |
| 492 | 459 | P1 P2 BGR or |
| 493 | 460 | R = Plane1 ^ Plane2 0 0 100 000 |
| r1649 | r1650 | |
| 497 | 464 | |
| 498 | 465 | Not sure about B, the logic seems convulated for such |
| 499 | 466 | a simple result. |
| 500 | ||
| 501 | 467 | */ |
| 502 | 468 | |
| 503 | 469 | while (1) |
| r1649 | r1650 | |
| 508 | 474 | |
| 509 | 475 | UINT8 x = 0; |
| 510 | 476 | |
| 511 | ||
| 512 | 477 | while (1) |
| 513 | 478 | { |
| 514 | 479 | int color = 0; |
| r1649 | r1650 | |
| 519 | 484 | int hc_ = (x >> 6) & 0x01; |
| 520 | 485 | int hd_ = x >> 7; |
| 521 | 486 | |
| 522 | ||
| 523 | 487 | if ((!vb_ & vc_ & !vd_) ^ (vb_ & !vc_ & vd_)) |
| 524 | 488 | { |
| 525 | 489 | /* tree */ |
| r1649 | r1650 | |
| 558 | 522 | } |
| 559 | 523 | } |
| 560 | 524 | |
| 561 | ||
| 562 | 525 | if (color != 0) |
| 563 | 526 | { |
| 564 | 527 | pen_t pen = machine->pens[color]; |
| r1649 | r1650 | |
| 569 | 532 | *BITMAP_ADDR16(bitmap, y, x) = pen; |
| 570 | 533 | } |
| 571 | 534 | |
| 572 | ||
| 573 | 535 | x++; |
| 574 | 536 | if (x == 0) break; |
| 575 | 537 | } |
| r1649 | r1650 | |
| 577 | 539 | |
| 578 | 540 | // this is obviously wrong |
| 579 | 541 | // if (vb_) |
| 580 | // { | |
| 581 | 542 | water++; |
| 582 | // } | |
| 583 | 543 | |
| 584 | ||
| 585 | 544 | y++; |
| 586 | 545 | if (y == 0) break; |
| 587 | 546 | } |
| r1649 | r1650 | |
| 621 | 580 | } |
| 622 | 581 | |
| 623 | 582 | |
| 624 | VIDEO_UPDATE( magspot | |
| 583 | VIDEO_UPDATE( magspot | |
| 625 | 584 | { |
| 626 | 585 | fillbitmap(bitmap, machine->pens[0], cliprect); |
| 627 | 586 | |
| r1649 | r1650 | |
| 637 | 596 | fillbitmap(bitmap, machine->pens[0], cliprect); |
| 638 | 597 | |
| 639 | 598 | if (background_enable) |
| 640 | { | |
| 641 | 599 | devzone_draw_grid(machine, bitmap, cliprect); |
| 642 | } | |
| 643 | 600 | |
| 644 | 601 | draw_bitmap(machine, bitmap, cliprect); |
| 645 | 602 | |
| r1649 | r1650 | |
| 659 | 616 | |
| 660 | 617 | draw_sprites(machine, bitmap, cliprect, 0x07, 0); |
| 661 | 618 | |
| 662 | if (background_enable) | |
| 663 | { | |
| 664 | nomnlnd_draw_background(machine, bitmap, cliprect); | |
| 665 | } | |
| 619 | if (background_enable) | |
| 620 | nomnlnd_draw_background(machine, bitmap, cliprect); | |
| 621 | ||
| 666 | 622 | return 0; |
| 667 | 623 | } |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "tia.h" |
| 9 | 10 | #include "sound/tiaintf.h" |
| 10 | #include <math.h> | |
| 11 | 11 | |
| 12 | 12 | #define HMOVE_INACTIVE -200 |
| 13 | 13 | #define PLAYER_GFX_SLOTS 4 |
| r1649 | r1650 | |
| 26 | 26 | static struct player_gfx p0gfx; |
| 27 | 27 | static struct player_gfx p1gfx; |
| 28 | 28 | |
| 29 | static UINT32 frame_cycles; | |
| 30 | static UINT32 paddle_cycles; | |
| 29 | static UINT64 frame_cycles; | |
| 30 | static UINT64 paddle_cycles; | |
| 31 | 31 | |
| 32 | 32 | static int horzP0; |
| 33 | 33 | static int horzP1; |
| r1649 | r1650 | |
| 284 | 284 | VIDEO_UPDATE( tia ) |
| 285 | 285 | { |
| 286 | 286 | screen_height = machine->screen[0].height; |
| 287 | copybitmap(bitmap, helper[2], 0, 0, 0, 0, | |
| 288 | cliprect, TRANSPARENCY_NONE, 0); | |
| 287 | copybitmap(bitmap, helper[2], 0, 0, 0, 0, cliprect); | |
| 289 | 288 | return 0; |
| 290 | 289 | } |
| 291 | 290 | |
| r1649 | r1650 | |
| 1649 | 1648 | |
| 1650 | 1649 | static READ8_HANDLER( INPT_r ) |
| 1651 | 1650 | { |
| 1652 | UINT | |
| 1651 | UINT64 elapsed = activecpu_gettotalcycles() - paddle_cycles; | |
| 1653 | 1652 | int input = TIA_INPUT_PORT_ALWAYS_ON; |
| 1654 | 1653 | |
| 1655 | 1654 | if ( tia_read_input_port ) |
| r1649 | r1650 | |
|---|---|---|
| 6 | 6 | ***************************************************************************/ |
| 7 | 7 | |
| 8 | 8 | #include "driver.h" |
| 9 | #include "deprecat.h" | |
| 9 | 10 | |
| 10 | 11 | UINT16 *sshangha_pf2_data,*sshangha_pf1_data; |
| 11 | 12 | UINT16 *sshangha_pf1_rowscroll,*sshangha_pf2_rowscroll; |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | 10 | #include "leland.h" |
| 11 | #include "sound/dac.h" | |
| 12 | 11 | |
| 13 | 12 | |
| 14 | 13 | /* constants */ |
| 15 | #define VRAM_SIZE 0x10000 | |
| 16 | #define QRAM_SIZE 0x10000 | |
| 14 | #define VRAM_SIZE (0x10000) | |
| 15 | #define QRAM_SIZE (0x10000) | |
| 17 | 16 | |
| 18 | #define VIDEO_WIDTH 0x28 | |
| 19 | #define VIDEO_HEIGHT 0x1e | |
| 17 | #define VIDEO_WIDTH (320) | |
| 20 | 18 | |
| 21 | 19 | |
| 22 | 20 | /* debugging */ |
| r1649 | r1650 | |
| 33 | 31 | |
| 34 | 32 | /* video RAM */ |
| 35 | 33 | UINT8 *ataxx_qram; |
| 36 | UINT8 leland_last_scanline_int; | |
| 37 | static mame_bitmap *fgbitmap; | |
| 38 | 34 | static UINT8 *leland_video_ram; |
| 39 | 35 | |
| 40 | 36 | /* video RAM bitmap drawing */ |
| 41 | 37 | static struct vram_state_data vram_state[2]; |
| 42 | static UINT8 sync_next_write; | |
| 43 | 38 | |
| 44 | /* partial screen updating */ | |
| 45 | static int next_update_scanline; | |
| 46 | ||
| 47 | 39 | /* scroll background registers */ |
| 48 | 40 | static UINT16 xscroll; |
| 49 | 41 | static UINT16 yscroll; |
| r1649 | r1650 | |
| 57 | 49 | * |
| 58 | 50 | *************************************/ |
| 59 | 51 | |
| 60 | VIDEO_START( leland ) | |
| 52 | static VIDEO_START( leland ) | |
| 61 | 53 | { |
| 62 | 54 | /* allocate memory */ |
| 63 | leland_video_ram = auto_malloc(VRAM_SIZE); | |
| 64 | fgbitmap = auto_bitmap_alloc(VIDEO_WIDTH * 8, VIDEO_HEIGHT * 8, machine->screen[0].format); | |
| 55 | leland_video_ram = auto_malloc(VRAM_SIZE); | |
| 65 | 56 | |
| 66 | 57 | /* reset videoram */ |
| 67 | ||
| 58 | | |
| 68 | 59 | } |
| 69 | 60 | |
| 70 | 61 | |
| 71 | VIDEO_START( ataxx ) | |
| 62 | static VIDEO_START( ataxx ) | |
| 72 | 63 | { |
| 73 | 64 | /* first do the standard stuff */ |
| 74 | 65 | VIDEO_START_CALL(leland); |
| r1649 | r1650 | |
| 88 | 79 | * |
| 89 | 80 | *************************************/ |
| 90 | 81 | |
| 91 | WRITE8_HANDLER( leland_ | |
| 82 | WRITE8_HANDLER( leland_sc | |
| 92 | 83 | { |
| 93 | 84 | /* adjust the proper scroll value */ |
| 94 | switch (offset) | |
| 95 | { | |
| 96 | case -1: | |
| 97 | if (gfxbank != data) | |
| 98 | { | |
| 99 | video_screen_update_partial(0, leland_last_scanline_int); | |
| 100 | gfxbank = data; | |
| 101 | } | |
| 102 | break; | |
| 103 | ||
| 85 | switch (offset) | |
| 86 | { | |
| 104 | 87 | case 0: |
| 105 | if ((xscroll & 0xff) != data) | |
| 106 | { | |
| 107 | video_screen_update_partial(0, leland_last_scanline_int); | |
| 108 | xscroll = (xscroll & 0xff00) | (data & 0x00ff); | |
| 109 | } | |
| 88 | video_screen_update_partial(0, video_screen_get_vpos(0) - 1); | |
| 89 | xscroll = (xscroll & 0xff00) | (data & 0x00ff); | |
| 110 | 90 | break; |
| 111 | 91 | |
| 112 | 92 | case 1: |
| 113 | if ((xscroll >> 8) != data) | |
| 114 | { | |
| 115 | video_screen_update_partial(0, leland_last_scanline_int); | |
| 116 | xscroll = (xscroll & 0x00ff) | ((data << 8) & 0xff00); | |
| 117 | } | |
| 93 | video_screen_update_partial(0, video_screen_get_vpos(0) - 1); | |
| 94 | xscroll = (xscroll & 0x00ff) | ((data << 8) & 0xff00); | |
| 118 | 95 | break; |
| 119 | 96 | |
| 120 | 97 | case 2: |
| 121 | if ((yscroll & 0xff) != data) | |
| 122 | { | |
| 123 | video_screen_update_partial(0, leland_last_scanline_int); | |
| 124 | yscroll = (yscroll & 0xff00) | (data & 0x00ff); | |
| 125 | } | |
| 98 | video_screen_update_partial(0, video_screen_get_vpos(0) - 1); | |
| 99 | yscroll = (yscroll & 0xff00) | (data & 0x00ff); | |
| 126 | 100 | break; |
| 127 | 101 | |
| 128 | 102 | case 3: |
| 129 | if ((yscroll >> 8) != data) | |
| 130 | { | |
| 131 | video_screen_update_partial(0, leland_last_scanline_int); | |
| 132 | yscroll = (yscroll & 0x00ff) | ((data << 8) & 0xff00); | |
| 133 | } | |
| 103 | video_screen_update_partial(0, video_screen_get_vpos(0) - 1); | |
| 104 | yscroll = (yscroll & 0x00ff) | ((data << 8) & 0xff00); | |
| 134 | 105 | break; |
| 106 | ||
| 107 | default: | |
| 108 | fatalerror("Unexpected leland_gfx_port_w"); | |
| 109 | break; | |
| 135 | 110 | } |
| 136 | 111 | } |
| 137 | 112 | |
| 138 | 113 | |
| 114 | WRITE8_HANDLER( leland_gfx_port_w ) | |
| 115 | { | |
| 116 | video_screen_update_partial(0, video_screen_get_vpos(0)); | |
| 117 | gfxbank = data; | |
| 118 | } | |
| 139 | 119 | |
| 120 | ||
| 121 | ||
| 140 | 122 | /************************************* |
| 141 | 123 | * |
| 142 | 124 | * Video address setting |
| r1649 | r1650 | |
| 151 | 133 | state->addr = (state->addr & 0xfe00) | ((data << 1) & 0x01fe); |
| 152 | 134 | else |
| 153 | 135 | state->addr = ((data << 9) & 0xfe00) | (state->addr & 0x01fe); |
| 154 | ||
| 155 | if (num == 0) | |
| 156 | sync_next_write = (state->addr >= 0xf000); | |
| 157 | 136 | } |
| 158 | 137 | |
| 159 | 138 | |
| 160 | 139 | |
| 161 | 140 | /************************************* |
| 162 | 141 | * |
| 163 | * Flush data from VRAM into our copy | |
| 164 | * | |
| 165 | *************************************/ | |
| 166 | ||
| 167 | static void update_for_scanline(int scanline) | |
| 168 | { | |
| 169 | int i, j; | |
| 170 | ||
| 171 | /* skip if we're behind the times */ | |
| 172 | if (scanline <= next_update_scanline) | |
| 173 | return; | |
| 174 | ||
| 175 | /* update all scanlines */ | |
| 176 | for (i = next_update_scanline; i < scanline; i++) | |
| 177 | if (i < VIDEO_HEIGHT * 8) | |
| 178 | { | |
| 179 | UINT8 scandata[VIDEO_WIDTH * 8]; | |
| 180 | UINT8 *dst = scandata; | |
| 181 | UINT8 *src = &leland_video_ram[i * 256]; | |
| 182 | ||
| 183 | for (j = 0; j < VIDEO_WIDTH * 8 / 2; j++) | |
| 184 | { | |
| 185 | UINT8 pix = *src++; | |
| 186 | *dst++ = pix >> 4; | |
| 187 | *dst++ = pix & 15; | |
| 188 | } | |
| 189 | draw_scanline8(fgbitmap, 0, i, VIDEO_WIDTH * 8, scandata, NULL, -1); | |
| 190 | } | |
| 191 | ||
| 192 | /* also update the DACs */ | |
| 193 | if (scanline >= VIDEO_HEIGHT * 8) | |
| 194 | scanline = 256; | |
| 195 | for (i = next_update_scanline; i < scanline; i++) | |
| 196 | { | |
| 197 | if (!(leland_dac_control & 0x01)) | |
| 198 | leland_dac_update(0, leland_video_ram[i * 256 + 160]); | |
| 199 | if (!(leland_dac_control & 0x02)) | |
| 200 | leland_dac_update(1, leland_video_ram[i * 256 + 161]); | |
| 201 | } | |
| 202 | ||
| 203 | /* set the new last update */ | |
| 204 | next_update_scanline = scanline; | |
| 205 | } | |
| 206 | ||
| 207 | ||
| 208 | ||
| 209 | /************************************* | |
| 210 | * | |
| 211 | 142 | * Common video RAM read |
| 212 | 143 | * |
| 213 | 144 | *************************************/ |
| r1649 | r1650 | |
| 217 | 148 | struct vram_state_data *state = vram_state + num; |
| 218 | 149 | int addr = state->addr; |
| 219 | 150 | int inc = (offset >> 2) & 2; |
| 220 | ||
| 151 | | |
| 221 | 152 | |
| 222 | switch (offset & 7) | |
| 223 | { | |
| 224 | case 3: /* read hi/lo (alternating) */ | |
| 225 | ret = leland_video_ram[addr]; | |
| 226 | addr += inc & (addr << 1); | |
| 227 | addr ^= 1; | |
| 228 | break; | |
| 153 | switch (offset & 7) | |
| 154 | { | |
| 155 | case 3: /* read hi/lo (alternating) */ | |
| 156 | ret = leland_video_ram[addr]; | |
| 157 | addr += inc & (addr << 1); | |
| 158 | addr ^= 1; | |
| 159 | break; | |
| 229 | 160 | |
| 230 | case 5: /* read hi */ | |
| 231 | ret = leland_video_ram[addr | 1]; | |
| 232 | addr += inc; | |
| 233 | break; | |
| 161 | case 5: /* read hi */ | |
| 162 | ret = leland_video_ram[addr | 1]; | |
| 163 | addr += inc; | |
| 164 | break; | |
| 234 | 165 | |
| 235 | case 6: /* read lo */ | |
| 236 | ret = leland_video_ram[addr & ~1]; | |
| 237 | addr += inc; | |
| 238 | break; | |
| 166 | case 6: /* read lo */ | |
| 167 | ret = leland_video_ram[addr & ~1]; | |
| 168 | addr += inc; | |
| 169 | break; | |
| 239 | 170 | |
| 240 | default: | |
| 241 | logerror("CPU #%d %04x Warning: Unknown video port %02x read (address=%04x)\n", | |
| 242 | cpu_getactivecpu(),activecpu_get_pc(), offset, addr); | |
| 243 | ret = 0; | |
| 244 | break; | |
| 245 | } | |
| 246 | state->addr = addr; | |
| 171 | default: | |
| 172 | logerror("CPU #%d %04x Warning: Unknown video port %02x read (address=%04x)\n", | |
| 173 | cpu_getactivecpu(),activecpu_get_pc(), offset, addr); | |
| 174 | ret = 0; | |
| 175 | break; | |
| 176 | } | |
| 177 | state->addr = addr; | |
| 247 | 178 | |
| 248 | 179 | if (LOG_COMM && addr >= 0xf000) |
| 249 | 180 | logerror("%04X:%s comm read %04X = %02X\n", activecpu_get_previouspc(), num ? "slave" : "master", addr, ret); |
| 250 | 181 | |
| 251 | return ret; | |
| 252 | } | |
| 182 | return ret; | |
| 183 | } | |
| 253 | 184 | |
| 254 | 185 | |
| 255 | 186 | |
| r1649 | r1650 | |
| 266 | 197 | int inc = (offset >> 2) & 2; |
| 267 | 198 | int trans = (offset >> 4) & num; |
| 268 | 199 | |
| 269 | /* if we're writing "behind the beam", make sure we've cached what was there */ | |
| 270 | if (addr < 0xf000) | |
| 271 | { | |
| 272 | int cur_scanline = video_screen_get_vpos(0); | |
| 273 | int mod_scanline = addr / 256; | |
| 200 | /* don't fully understand why this is needed. Isn't the | |
| 201 | video RAM just one big RAM? */ | |
| 202 | video_screen_update_partial(0, video_screen_get_vpos(0) - 1); | |
| 274 | 203 | |
| 275 | if (cur_scanline != next_update_scanline && mod_scanline < cur_scanline) | |
| 276 | update_for_scanline(cur_scanline); | |
| 277 | } | |
| 278 | ||
| 279 | 204 | if (LOG_COMM && addr >= 0xf000) |
| 280 | 205 | logerror("%04X:%s comm write %04X = %02X\n", activecpu_get_previouspc(), num ? "slave" : "master", addr, data); |
| 281 | 206 | |
| 282 | 207 | /* based on the low 3 bits of the offset, update the destination */ |
| 283 | switch (offset & 7) | |
| 284 | { | |
| 285 | case 1: /* write hi = data, lo = latch */ | |
| 286 | leland_video_ram[addr & ~1] = state->latch[0]; | |
| 287 | leland_video_ram[addr | 1] = data; | |
| 288 | addr += inc; | |
| 289 | break; | |
| 208 | switch (offset & 7) | |
| 209 | { | |
| 210 | case 1: /* write hi = data, lo = latch */ | |
| 211 | leland_video_ram[addr & ~1] = state->latch[0]; | |
| 212 | leland_video_ram[addr | 1] = data; | |
| 213 | addr += inc; | |
| 214 | break; | |
| 290 | 215 | |
| 291 | case 2: /* write hi = latch, lo = data */ | |
| 292 | leland_video_ram[addr & ~1] = data; | |
| 293 | leland_video_ram[addr | 1] = state->latch[1]; | |
| 294 | addr += inc; | |
| 295 | break; | |
| 216 | case 2: /* write hi = latch, lo = data */ | |
| 217 | leland_video_ram[addr & ~1] = data; | |
| 218 | leland_video_ram[addr | 1] = state->latch[1]; | |
| 219 | addr += inc; | |
| 220 | break; | |
| 296 | 221 | |
| 297 | case 3: /* write hi/lo = data (alternating) */ | |
| 298 | if (trans) | |
| 299 | { | |
| 300 | if (!(data & 0xf0)) data |= leland_video_ram[addr] & 0xf0; | |
| 301 | if (!(data & 0x0f)) data |= leland_video_ram[addr] & 0x0f; | |
| 302 | } | |
| 303 | leland_video_ram[addr] = data; | |
| 304 | addr += inc & (addr << 1); | |
| 305 | addr ^= 1; | |
| 306 | break; | |
| 222 | case 3: /* write hi/lo = data (alternating) */ | |
| 223 | if (trans) | |
| 224 | { | |
| 225 | if (!(data & 0xf0)) data |= leland_video_ram[addr] & 0xf0; | |
| 226 | if (!(data & 0x0f)) data |= leland_video_ram[addr] & 0x0f; | |
| 227 | } | |
| 228 | leland_video_ram[addr] = data; | |
| 229 | addr += inc & (addr << 1); | |
| 230 | addr ^= 1; | |
| 231 | break; | |
| 307 | 232 | |
| 308 | case 5: /* write hi = data */ | |
| 309 | state->latch[1] = data; | |
| 310 | if (trans) | |
| 311 | { | |
| 312 | if (!(data & 0xf0)) data |= leland_video_ram[addr | 1] & 0xf0; | |
| 313 | if (!(data & 0x0f)) data |= leland_video_ram[addr | 1] & 0x0f; | |
| 314 | } | |
| 315 | leland_video_ram[addr | 1] = data; | |
| 316 | addr += inc; | |
| 317 | break; | |
| 233 | case 5: /* write hi = data */ | |
| 234 | state->latch[1] = data; | |
| 235 | if (trans) | |
| 236 | { | |
| 237 | if (!(data & 0xf0)) data |= leland_video_ram[addr | 1] & 0xf0; | |
| 238 | if (!(data & 0x0f)) data |= leland_video_ram[addr | 1] & 0x0f; | |
| 239 | } | |
| 240 | leland_video_ram[addr | 1] = data; | |
| 241 | addr += inc; | |
| 242 | break; | |
| 318 | 243 | |
| 319 | case 6: /* write lo = data */ | |
| 320 | state->latch[0] = data; | |
| 321 | if (trans) | |
| 322 | { | |
| 323 | if (!(data & 0xf0)) data |= leland_video_ram[addr & ~1] & 0xf0; | |
| 324 | if (!(data & 0x0f)) data |= leland_video_ram[addr & ~1] & 0x0f; | |
| 325 | } | |
| 326 | leland_video_ram[addr & ~1] = data; | |
| 327 | addr += inc; | |
| 328 | break; | |
| 244 | case 6: /* write lo = data */ | |
| 245 | state->latch[0] = data; | |
| 246 | if (trans) | |
| 247 | { | |
| 248 | if (!(data & 0xf0)) data |= leland_video_ram[addr & ~1] & 0xf0; | |
| 249 | if (!(data & 0x0f)) data |= leland_video_ram[addr & ~1] & 0x0f; | |
| 250 | } | |
| 251 | leland_video_ram[addr & ~1] = data; | |
| 252 | addr += inc; | |
| 253 | break; | |
| 329 | 254 | |
| 330 | default: | |
| 331 | logerror("CPU #%d %04x Warning: Unknown video port write (address=%04x value=%02x)\n", | |
| 332 | cpu_getactivecpu(),activecpu_get_pc(), offset, addr); | |
| 333 | break; | |
| 334 | } | |
| 255 | default: | |
| 256 | logerror("CPU #%d %04x Warning: Unknown video port write (address=%04x value=%02x)\n", | |
| 257 | cpu_getactivecpu(),activecpu_get_pc(), offset, addr); | |
| 258 | break; | |
| 259 | } | |
| 335 | 260 | |
| 336 | /* update the address and plane */ | |
| 337 | state->addr = addr; | |
| 261 | /* update the address and plane */ | |
| 262 | state->addr = addr; | |
| 338 | 263 | } |
| 339 | 264 | |
| 340 | 265 | |
| r1649 | r1650 | |
| 347 | 272 | |
| 348 | 273 | WRITE8_HANDLER( leland_master_video_addr_w ) |
| 349 | 274 | { |
| 350 | ||
| 275 | | |
| 351 | 276 | } |
| 352 | 277 | |
| 353 | 278 | |
| r1649 | r1650 | |
| 362 | 287 | |
| 363 | 288 | WRITE8_HANDLER( leland_mvram_port_w ) |
| 364 | 289 | { |
| 365 | if (sync_next_write) | |
| 366 | { | |
| 367 | timer_call_after_resynch(NULL, 0x00000 | (offset << 8) | data, leland_delayed_mvram_w); | |
| 368 | sync_next_write = 0; | |
| 369 | } | |
| 370 | else | |
| 371 | leland_vram_port_w(offset, data, 0); | |
| 290 | timer_call_after_resynch(NULL, 0x00000 | (offset << 8) | data, leland_delayed_mvram_w); | |
| 372 | 291 | } |
| 373 | 292 | |
| 374 | 293 | |
| 375 | 294 | READ8_HANDLER( leland_mvram_port_r ) |
| 376 | 295 | { |
| 377 | ||
| 296 | | |
| 378 | 297 | } |
| 379 | 298 | |
| 380 | 299 | |
| r1649 | r1650 | |
| 387 | 306 | |
| 388 | 307 | WRITE8_HANDLER( leland_slave_video_addr_w ) |
| 389 | 308 | { |
| 390 | ||
| 309 | | |
| 391 | 310 | } |
| 392 | 311 | |
| 393 | 312 | |
| 394 | 313 | WRITE8_HANDLER( leland_svram_port_w ) |
| 395 | 314 | { |
| 396 | ||
| 315 | | |
| 397 | 316 | } |
| 398 | 317 | |
| 399 | 318 | |
| 400 | 319 | READ8_HANDLER( leland_svram_port_r ) |
| 401 | 320 | { |
| 402 | ||
| 321 | | |
| 403 | 322 | } |
| 404 | 323 | |
| 405 | 324 | |
| r1649 | r1650 | |
| 413 | 332 | WRITE8_HANDLER( ataxx_mvram_port_w ) |
| 414 | 333 | { |
| 415 | 334 | offset = ((offset >> 1) & 0x07) | ((offset << 3) & 0x08) | (offset & 0x10); |
| 416 | if (sync_next_write) | |
| 417 | { | |
| 418 | timer_call_after_resynch(NULL, 0x00000 | (offset << 8) | data, leland_delayed_mvram_w); | |
| 419 | sync_next_write = 0; | |
| 420 | } | |
| 421 | else | |
| 422 | leland_vram_port_w(offset, data, 0); | |
| 335 | timer_call_after_resynch(NULL, 0x00000 | (offset << 8) | data, leland_delayed_mvram_w); | |
| 423 | 336 | } |
| 424 | 337 | |
| 425 | 338 | |
| r1649 | r1650 | |
| 440 | 353 | READ8_HANDLER( ataxx_mvram_port_r ) |
| 441 | 354 | { |
| 442 | 355 | offset = ((offset >> 1) & 0x07) | ((offset << 3) & 0x08) | (offset & 0x10); |
| 443 | ||
| 356 | | |
| 444 | 357 | } |
| 445 | 358 | |
| 446 | 359 | |
| 447 | 360 | READ8_HANDLER( ataxx_svram_port_r ) |
| 448 | 361 | { |
| 449 | 362 | offset = ((offset >> 1) & 0x07) | ((offset << 3) & 0x08) | (offset & 0x10); |
| 450 | ||
| 363 | | |
| 451 | 364 | } |
| 452 | 365 | |
| 453 | 366 | |
| 454 | 367 | |
| 455 | 368 | /************************************* |
| 456 | 369 | * |
| 457 | * | |
| 370 | * R | |
| 458 | 371 | * |
| 459 | 372 | *************************************/ |
| 460 | 373 | |
| 461 | static TIMER_CALLBACK( | |
| 374 | static TIMER_CALLBACK( d | |
| 462 | 375 | { |
| 463 | /* flush the remaining scanlines */ | |
| 464 | next_update_scanline = 0; | |
| 465 | ||
| 466 | 376 | /* turn off the DACs at the start of the frame */ |
| 467 | 377 | leland_dac_control = 3; |
| 468 | 378 | } |
| 469 | 379 | |
| 470 | 380 | |
| 471 | VIDEO_EOF( leland ) | |
| 472 | { | |
| 473 | /* update anything remaining */ | |
| 474 | update_for_scanline(VIDEO_HEIGHT * 8); | |
| 475 | 381 | |
| 476 | /* set a timer to go off at the top of the frame */ | |
| 477 | timer_set(video_screen_get_time_until_pos(0, 0, 0), NULL, 0, scanline_reset); | |
| 478 | } | |
| 479 | ||
| 480 | ||
| 481 | ||
| 482 | 382 | /************************************* |
| 483 | 383 | * |
| 484 | 384 | * ROM-based refresh routine |
| 485 | 385 | * |
| 486 | 386 | *************************************/ |
| 487 | 387 | |
| 488 | VIDEO_UPDATE( leland ) | |
| 388 | static VIDEO_UPDATE( leland ) | |
| 489 | 389 | { |
| 490 | const UINT8 *background_prom = memory_region(REGION_USER1); | |
| 491 | const gfx_element *gfx = machine->gfx[0]; | |
| 492 | int char_bank = ((gfxbank >> 4) & 0x03) * 0x0400; | |
| 493 | int prom_bank = ((gfxbank >> 3) & 0x01) * 0x2000; | |
| 494 | int xcoarse = xscroll / 8; | |
| 495 | int ycoarse = yscroll / 8; | |
| 496 | int xfine = xscroll % 8; | |
| 497 | int yfine = yscroll % 8; | |
| 498 | int x, y; | |
| 390 | int y; | |
| 499 | 391 | |
| 500 | /* update anything remaining */ | |
| 501 | update_for_scanline(cliprect->max_y); | |
| 392 | const UINT8 *bg_prom = memory_region(REGION_USER1); | |
| 393 | const UINT8 *bg_gfx = memory_region(REGION_GFX1); | |
| 394 | offs_t bg_gfx_bank_page_size = memory_region_length(REGION_GFX1) / 3; | |
| 395 | offs_t char_bank = (((gfxbank >> 4) & 0x03) * 0x2000) & (bg_gfx_bank_page_size - 1); | |
| 396 | offs_t prom_bank = ((gfxbank >> 3) & 0x01) * 0x2000; | |
| 502 | 397 | |
| 503 | /* draw what's visible to the main bitmap */ | |
| 504 | for (y = cliprect->min_y / 8; y < cliprect->max_y / 8 + 2; y++) | |
| 398 | /* for each scanline in the visible region */ | |
| 399 | for (y = cliprect->min_y; y <= cliprect->max_y; y++) | |
| 505 | 400 | { |
| 506 | int ysum = ycoarse + y; | |
| 507 | for (x = 0; x < VIDEO_WIDTH + 1; x++) | |
| 401 | int x; | |
| 402 | UINT8 fg_data = 0; | |
| 403 | ||
| 404 | UINT16 *dst = BITMAP_ADDR16(bitmap, y, 0); | |
| 405 | UINT8 *fg_src = &leland_video_ram[y << 8]; | |
| 406 | ||
| 407 | /* for each pixel on the scanline */ | |
| 408 | for (x = 0; x < VIDEO_WIDTH; x++) | |
| 508 | 409 | { |
| 509 | int xsum = xcoarse + x; | |
| 510 | int offs = ((xsum << 0) & 0x000ff) | | |
| 511 | ((ysum << 8) & 0x01f00) | | |
| 512 | prom_bank | | |
| 513 | ((ysum << 9) & 0x1c000); | |
| 514 | int code = background_prom[offs] | | |
| 515 | ((ysum << 2) & 0x300) | | |
| 516 | char_bank; | |
| 517 | int color = (code >> 5) & 7; | |
| 410 | /* compute the effective scrolled pixel coordinates */ | |
| 411 | UINT16 sx = (x + xscroll) & 0x07ff; | |
| 412 | UINT16 sy = (y + yscroll) & 0x07ff; | |
| 518 | 413 | |
| 519 | /* draw to the bitmap */ | |
| 520 | drawgfx(bitmap, gfx, | |
| 521 | code, 8 * color, 0, 0, | |
| 522 | 8 * x - xfine, 8 * y - yfine, | |
| 523 | cliprect, TRANSPARENCY_NONE_RAW, 0); | |
| 414 | /* get the byte address this background pixel comes from */ | |
| 415 | offs_t bg_prom_offs = (sx >> 3) | | |
| 416 | ((sy << 5) & 0x01f00) | | |
| 417 | prom_bank | | |
| 418 | ((sy << 6) & 0x1c000); | |
| 419 | ||
| 420 | offs_t bg_gfx_offs = (sy & 0x07) | | |
| 421 | (bg_prom[bg_prom_offs] << 3) | | |
| 422 | ((sy << 2) & 0x1800) | | |
| 423 | char_bank; | |
| 424 | ||
| 425 | /* build the pen, background is d0-d5 */ | |
| 426 | pen_t pen = (((bg_gfx[bg_gfx_offs + (2 * bg_gfx_bank_page_size)] << (sx & 0x07)) & 0x80) >> 7) | /* d0 */ | |
| 427 | (((bg_gfx[bg_gfx_offs + (1 * bg_gfx_bank_page_size)] << (sx & 0x07)) & 0x80) >> 6) | /* d1 */ | |
| 428 | (((bg_gfx[bg_gfx_offs + (0 * bg_gfx_bank_page_size)] << (sx & 0x07)) & 0x80) >> 5) | /* d2 */ | |
| 429 | ((bg_prom[bg_prom_offs] & 0xe0) >> 2); /* d3-d5 */ | |
| 430 | ||
| 431 | /* foreground is d6-d9 */ | |
| 432 | if (x & 0x01) | |
| 433 | pen = pen | ((fg_data & 0x0f) << 6); | |
| 434 | else | |
| 435 | { | |
| 436 | fg_data = *fg_src++; | |
| 437 | pen = pen | ((fg_data & 0xf0) << 2); | |
| 438 | } | |
| 439 | ||
| 440 | *dst++ = pen; | |
| 524 | 441 | } |
| 442 | ||
| 443 | /* also update the DACs */ | |
| 444 | if (!(leland_dac_control & 0x01)) | |
| 445 | leland_dac_update(0, leland_video_ram[y * 256 + 160]); | |
| 446 | ||
| 447 | if (!(leland_dac_control & 0x02)) | |
| 448 | leland_dac_update(1, leland_video_ram[y * 256 + 161]); | |
| 525 | 449 | } |
| 526 | 450 | |
| 527 | /* Merge the two bitmaps together */ | |
| 528 | copybitmap(bitmap, fgbitmap, 0, 0, 0, 0, cliprect, TRANSPARENCY_BLEND, 6); | |
| 451 | /* set a timer to go off at the top of the frame */ | |
| 452 | if (cliprect->max_y == machine->screen[screen].visarea.max_y) | |
| 453 | timer_set(video_screen_get_time_until_pos(0, 0, 0), NULL, 0, dac_reset); | |
| 454 | ||
| 529 | 455 | return 0; |
| 530 | 456 | } |
| 531 | 457 | |
| r1649 | r1650 | |
| 537 | 463 | * |
| 538 | 464 | *************************************/ |
| 539 | 465 | |
| 540 | VIDEO_UPDATE( ataxx ) | |
| 466 | static VIDEO_UPDATE( ataxx ) | |
| 541 | 467 | { |
| 542 | const gfx_element *gfx = machine->gfx[0]; | |
| 543 | int xcoarse = xscroll / 8; | |
| 544 | int ycoarse = yscroll / 8; | |
| 545 | int xfine = xscroll % 8; | |
| 546 | int yfine = yscroll % 8; | |
| 547 | int x, y; | |
| 468 | int y; | |
| 548 | 469 | |
| 549 | /* update anything remaining */ | |
| 550 | update_for_scanline(cliprect->max_y); | |
| 470 | const UINT8 *bg_gfx = memory_region(REGION_GFX1); | |
| 471 | offs_t bg_gfx_bank_page_size = memory_region_length(REGION_GFX1) / 6; | |
| 472 | offs_t bg_gfx_offs_mask = bg_gfx_bank_page_size - 1; | |
| 551 | 473 | |
| 552 | /* draw what's visible to the main bitmap */ | |
| 553 | for (y = cliprect->min_y / 8; y < cliprect->max_y / 8 + 2; y++) | |
| 474 | /* for each scanline in the visible region */ | |
| 475 | for (y = cliprect->min_y; y <= cliprect->max_y; y++) | |
| 554 | 476 | { |
| 555 | int ysum = ycoarse + y; | |
| 556 | for (x = 0; x < VIDEO_WIDTH + 1; x++) | |
| 477 | int x; | |
| 478 | UINT8 fg_data = 0; | |
| 479 | ||
| 480 | UINT16 *dst = BITMAP_ADDR16(bitmap, y, 0); | |
| 481 | UINT8 *fg_src = &leland_video_ram[y << 8]; | |
| 482 | ||
| 483 | /* for each pixel on the scanline */ | |
| 484 | for (x = 0; x < VIDEO_WIDTH; x++) | |
| 557 | 485 | { |
| 558 | int xsum = xcoarse + x; | |
| 559 | int offs = ((ysum & 0x40) << 9) + ((ysum & 0x3f) << 8) + (xsum & 0xff); | |
| 560 | int code = ataxx_qram[offs] | ((ataxx_qram[offs + 0x4000] & 0x7f) << 8); | |
| 486 | /* compute the effective scrolled pixel coordinates */ | |
| 487 | UINT16 sx = (x + xscroll) & 0x07ff; | |
| 488 | UINT16 sy = (y + yscroll) & 0x07ff; | |
| 561 | 489 | |
| 562 | /* draw to the bitmap */ | |
| 563 | drawgfx(bitmap, gfx, | |
| 564 | code, 0, 0, 0, | |
| 565 | 8 * x - xfine, 8 * y - yfine, | |
| 566 | cliprect, TRANSPARENCY_NONE_RAW, 0); | |
| 490 | /* get the byte address this background pixel comes from */ | |
| 491 | offs_t qram_offs = (sx >> 3) | | |
| 492 | ((sy << 5) & 0x3f00) | | |
| 493 | ((sy << 6) & 0x8000); | |
| 494 | ||
| 495 | offs_t bg_gfx_offs = ((sy & 0x07) | | |
| 496 | (ataxx_qram[qram_offs] << 3) | | |
| 497 | ((ataxx_qram[0x4000 | qram_offs] & 0x7f) << 11)) & bg_gfx_offs_mask; | |
| 498 | ||
| 499 | /* build the pen, background is d0-d5 */ | |
| 500 | pen_t pen = (((bg_gfx[bg_gfx_offs + (0 * bg_gfx_bank_page_size)] << (sx & 0x07)) & 0x80) >> 7) | /* d0 */ | |
| 501 | (((bg_gfx[bg_gfx_offs + (1 * bg_gfx_bank_page_size)] << (sx & 0x07)) & 0x80) >> 6) | /* d1 */ | |
| 502 | (((bg_gfx[bg_gfx_offs + (2 * bg_gfx_bank_page_size)] << (sx & 0x07)) & 0x80) >> 5) | /* d2 */ | |
| 503 | (((bg_gfx[bg_gfx_offs + (3 * bg_gfx_bank_page_size)] << (sx & 0x07)) & 0x80) >> 4) | /* d3 */ | |
| 504 | (((bg_gfx[bg_gfx_offs + (4 * bg_gfx_bank_page_size)] << (sx & 0x07)) & 0x80) >> 3) | /* d4 */ | |
| 505 | (((bg_gfx[bg_gfx_offs + (5 * bg_gfx_bank_page_size)] << (sx & 0x07)) & 0x80) >> 2); /* d5 */ | |
| 506 | ||
| 507 | /* foreground is d6-d9 */ | |
| 508 | if (x & 0x01) | |
| 509 | pen = pen | ((fg_data & 0x0f) << 6); | |
| 510 | else | |
| 511 | { | |
| 512 | fg_data = *fg_src++; | |
| 513 | pen = pen | ((fg_data & 0xf0) << 2); | |
| 514 | } | |
| 515 | ||
| 516 | *dst++ = pen; | |
| 567 | 517 | } |
| 518 | ||
| 519 | /* also update the DACs */ | |
| 520 | if (!(leland_dac_control & 0x01)) | |
| 521 | leland_dac_update(0, leland_video_ram[y * 256 + 160]); | |
| 522 | ||
| 523 | if (!(leland_dac_control & 0x02)) | |
| 524 | leland_dac_update(1, leland_video_ram[y * 256 + 161]); | |
| 568 | 525 | } |
| 569 | 526 | |
| 570 | /* Merge the two bitmaps together */ | |
| 571 | copybitmap(bitmap, fgbitmap, 0, 0, 0, 0, cliprect, TRANSPARENCY_BLEND, 6); | |
| 527 | /* set a timer to go off at the top of the frame */ | |
| 528 | if (cliprect->max_y == machine->screen[screen].visarea.max_y) | |
| 529 | timer_set(video_screen_get_time_until_pos(0, 0, 0), NULL, 0, dac_reset); | |
| 530 | ||
| 572 | 531 | return 0; |
| 573 | 532 | } |
| 533 | ||
| 534 | ||
| 535 | ||
| 536 | /************************************* | |
| 537 | * | |
| 538 | * Machine drivers | |
| 539 | * | |
| 540 | *************************************/ | |
| 541 | ||
| 542 | MACHINE_DRIVER_START( leland_video ) | |
| 543 | ||
| 544 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_ALWAYS_UPDATE) | |
| 545 | MDRV_VIDEO_START(leland) | |
| 546 | MDRV_VIDEO_UPDATE(leland) | |
| 547 | ||
| 548 | MDRV_PALETTE_LENGTH(1024) | |
| 549 | ||
| 550 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 551 | MDRV_SCREEN_SIZE(40*8, 32*8) | |
| 552 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 30*8-1) | |
| 553 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 554 | MACHINE_DRIVER_END | |
| 555 | ||
| 556 | ||
| 557 | MACHINE_DRIVER_START( ataxx_video ) | |
| 558 | ||
| 559 | MDRV_IMPORT_FROM(leland_video) | |
| 560 | ||
| 561 | MDRV_VIDEO_START(ataxx) | |
| 562 | MDRV_VIDEO_UPDATE(ataxx) | |
| 563 | MACHINE_DRIVER_END |
| r1649 | r1650 | |
|---|---|---|
| 23 | 23 | */ |
| 24 | 24 | |
| 25 | 25 | #include "driver.h" |
| 26 | #include "deprecat.h" | |
| 26 | 27 | #include "segaic24.h" |
| 27 | 28 | |
| 28 | 29 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | |
| 11 | 12 | UINT8 *popeye_background_pos; |
| 12 | 13 | UINT8 *popeye_palettebank; |
| r1649 | r1650 | |
| 303 | 304 | set_background_palette(machine, (*popeye_palettebank & 0x08) >> 3); |
| 304 | 305 | |
| 305 | 306 | if (popeye_background_pos[1] == 0) /* no background */ |
| 306 | { | |
| 307 | 307 | fillbitmap(bitmap,machine->pens[0],cliprect); |
| 308 | } | |
| 309 | 308 | else |
| 310 | 309 | { |
| 311 | 310 | /* copy the background graphics */ |
| r1649 | r1650 | |
| 322 | 321 | scrolly = -scrolly; |
| 323 | 322 | } |
| 324 | 323 | |
| 325 | copyscrollbitmap(bitmap,tmpbitmap2,1,&scrollx,1,&scrolly,cliprect | |
| 324 | copyscrollbitmap(bitmap,tmpbitmap2,1,&scrollx,1,&scrolly,cliprect | |
| 326 | 325 | } |
| 327 | 326 | } |
| 328 | 327 |
| r1649 | r1650 | |
|---|---|---|
| 6 | 6 | just made a copy & renamed them for now to avoid any conflicts |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | //#include "vmixer.h" | |
| 10 | ||
| 11 | 9 | WRITE16_HANDLER (system24temp_sys16_paletteram1_w); |
| 12 | 10 | |
| 13 | 11 | // Tilemaps |
| r1649 | r1650 | |
|---|---|---|
| 36 | 36 | ***************************************************************************/ |
| 37 | 37 | |
| 38 | 38 | #include "driver.h" |
| 39 | #include "deprecat.h" | |
| 39 | 40 | |
| 40 | 41 | // Variables needed by driver: |
| 41 | 42 |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | ***************************************************************************/ |
| 14 | 14 | |
| 15 | 15 | #include "driver.h" |
| 16 | #include "deprecat.h" | |
| 16 | 17 | #include "includes/lemmings.h" |
| 17 | 18 | |
| 18 | 19 | UINT16 *lemmings_pixel_0_data,*lemmings_pixel_1_data,*lemmings_vram_data,*lemmings_control_data; |
| r1649 | r1650 | |
| 182 | 183 | |
| 183 | 184 | /* Pixel layer can be windowed in hardware (two player mode) */ |
| 184 | 185 | if ((lemmings_control_data[6]&2)==0) { |
| 185 | copyscrollbitmap(bitmap,bitmap0,1,&x1,1,&y,cliprect | |
| 186 | copyscrollbitmap_trans(bitmap,bitmap0,1,&x1,1,&y,cliprect | |
| 186 | 187 | } else { |
| 187 | 188 | rect.max_x=159; |
| 188 | 189 | rect.min_x=0; |
| 189 | copyscrollbitmap(bitmap,bitmap0,1,&x0,1,&y,&rect | |
| 190 | copyscrollbitmap_trans(bitmap,bitmap0,1,&x0,1,&y,&rect | |
| 190 | 191 | rect.max_x=319; |
| 191 | 192 | rect.min_x=160; |
| 192 | copyscrollbitmap(bitmap,bitmap0,1,&x1,1,&y,&rect | |
| 193 | copyscrollbitmap_trans(bitmap,bitmap0,1,&x1,1,&y,&rect | |
| 193 | 194 | } |
| 194 | 195 | draw_sprites(machine,bitmap,cliprect,sprite_triple_buffer_0,0,0x0000); |
| 195 | 196 | draw_sprites(machine,bitmap,cliprect,sprite_triple_buffer_1,1,0x2000); |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | |
| 12 | 13 | |
| 13 | 14 | UINT8 *tiamc1_tileram; |
| r1649 | r1650 | |
|---|---|---|
| 119 | 119 | |
| 120 | 120 | |
| 121 | 121 | #include "driver.h" |
| 122 | #include "deprecat.h" | |
| 122 | 123 | #include "toaplan1.h" |
| 123 | 124 | #include "cpu/m68000/m68000.h" |
| 124 | 125 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "segag80r.h" |
| 9 | 10 | #include "rescap.h" |
| 10 | 11 | #include "video/resnet.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "machine/eeprom.h" |
| 3 | 4 | #include "video/konamiic.h" |
| 4 | 5 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "cpu/tms34010/tms34010.h" |
| 9 | 10 | #include "jpmimpct.h" |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "video/poly.h" |
| 3 | 4 | |
| 4 | 5 | UINT8 *taitojc_texture; |
| r1649 | r1650 | |
| 264 | 265 | } |
| 265 | 266 | } |
| 266 | 267 | |
| 267 | copybitmap(bitmap, framebuffer, 0, 0, 0, 0, cliprect | |
| 268 | copybitmap_trans(bitmap, framebuffer, 0, 0, 0, 0, cliprect | |
| 268 | 269 | |
| 269 | 270 | for (i=(0xc00/4)-2; i >= 0; i-=2) |
| 270 | 271 | { |
| r1649 | r1650 | |
|---|---|---|
| 280 | 280 | draw_sprites(machine,bitmap,&myclip); |
| 281 | 281 | |
| 282 | 282 | if(pitnrun_ha&4) |
| 283 | copybitmap(bitmap,tmp_bitmap[pitnrun_ha&3],flip_screen_x,flip_screen_y,dx,dy,&myclip | |
| 283 | copybitmap_trans(bitmap,tmp_bitmap[pitnrun_ha&3],flip_screen_x,flip_screen_y,dx,dy,&myclip | |
| 284 | 284 | tilemap_draw(bitmap,cliprect,fg, 0,0); |
| 285 | 285 | return 0; |
| 286 | 286 | } |
| r1649 | r1650 | |
|---|---|---|
| 351 | 351 | ***************************************************************************/ |
| 352 | 352 | |
| 353 | 353 | #include "driver.h" |
| 354 | #include "deprecat.h" | |
| 354 | 355 | #include "segaic16.h" |
| 355 | 356 | #include "video/resnet.h" |
| 356 | 357 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | liberat | |
| 3 | video/liberat | |
| 4 | 4 | |
| 5 | 5 | Functions to emulate the video hardware of the machine. |
| 6 | 6 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | |
| 11 | 12 | |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | |
| 3 | 4 | UINT16 *bigtwin_bgvideoram; |
| 4 | 5 | UINT16 *wbeachvl_videoram1,*wbeachvl_videoram2,*wbeachvl_videoram3; |
| r0 | r1650 | |
|---|---|---|
| 1 | /******************************************************************************** | |
| 2 | ||
| 3 | ||
| 4 | AMERICAN POKER 2 - VIDEO HARDWARE | |
| 5 | --------------------------------- | |
| 6 | ||
| 7 | Company: Novomatic. | |
| 8 | Year: 1990. | |
| 9 | ||
| 10 | Original preliminary driver: Curt Coder. | |
| 11 | Rewrite and additional work: Roberto Fresca, with a lot of help of Grull Osgo. | |
| 12 | ||
| 13 | ||
| 14 | --- Supported Sets --- | |
| 15 | ||
| 16 | Old name | New name | Relation | Description | |
| 17 | -------------------------------------------- | |
| 18 | ampokr2b ampoker2 parent American Poker II. | |
| 19 | ---- ampkr2b1 clone American Poker II (bootleg, set 1). | |
| 20 | ampokr2a ampkr2b2 clone American Poker II (bootleg, set 2). | |
| 21 | ampoker2 ampkr2b3 clone American Poker II (bootleg, set 3). | |
| 22 | ampokr2c pkrdewin clone Poker De Win. | |
| 23 | ---- ampkr95 clone American Poker 95. | |
| 24 | ---- sigmapkr parent Sigma Poker. | |
| 25 | ---- sigma2k parent Sigma Poker 2000. | |
| 26 | ||
| 27 | ||
| 28 | ********************************************************************************/ | |
| 29 | ||
| 30 | ||
| 31 | #include "driver.h" | |
| 32 | ||
| 33 | static tilemap *bg_tilemap; | |
| 34 | ||
| 35 | ||
| 36 | PALETTE_INIT( ampoker2 ) | |
| 37 | { | |
| 38 | int i; | |
| 39 | ||
| 40 | /* - bits - | |
| 41 | 76543210 | |
| 42 | RRRGGGBB | |
| 43 | */ | |
| 44 | for (i = 0; i < machine->drv->total_colors; i++) | |
| 45 | { | |
| 46 | int bit0, bit1, bit2, r, g, b; | |
| 47 | ||
| 48 | /* blue component */ | |
| 49 | bit0 = 0; | |
| 50 | bit1 = (*color_prom >> 0) & 0x01; | |
| 51 | bit2 = (*color_prom >> 1) & 0x01; | |
| 52 | b = ( 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2); | |
| 53 | ||
| 54 | /* green component */ | |
| 55 | bit0 = (*color_prom >> 2) & 0x01; | |
| 56 | bit1 = (*color_prom >> 3) & 0x01; | |
| 57 | bit2 = (*color_prom >> 4) & 0x01; | |
| 58 | g = ( 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2); | |
| 59 | ||
| 60 | /* red component */ | |
| 61 | bit0 = (*color_prom >> 5) & 0x01; | |
| 62 | bit1 = (*color_prom >> 6) & 0x01; | |
| 63 | bit2 = (*color_prom >> 7) & 0x01; | |
| 64 | r = ( 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2); | |
| 65 | ||
| 66 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); | |
| 67 | ||
| 68 | color_prom++; | |
| 69 | } | |
| 70 | } | |
| 71 | ||
| 72 | WRITE8_HANDLER( ampoker2_videoram_w ) | |
| 73 | { | |
| 74 | videoram[offset] = data; | |
| 75 | tilemap_mark_tile_dirty(bg_tilemap, offset / 2); | |
| 76 | } | |
| 77 | ||
| 78 | static TILE_GET_INFO( get_bg_tile_info ) | |
| 79 | { | |
| 80 | int offs = tile_index * 2; | |
| 81 | int attr = videoram[offs + 1]; | |
| 82 | int code = videoram[offs]; | |
| 83 | int color = attr; | |
| 84 | code=code+(256*(color & 0x03)); /* code = color.bit1 + color.bit0 + code */ | |
| 85 | color= color >> 1; /* color = color - bit0 (bit1..bit7) */ | |
| 86 | ||
| 87 | SET_TILE_INFO(0, code, color, 0); | |
| 88 | } | |
| 89 | ||
| 90 | static TILE_GET_INFO( s2k_get_bg_tile_info ) | |
| 91 | { | |
| 92 | int offs = tile_index * 2; | |
| 93 | int attr = videoram[offs + 1]; | |
| 94 | int code = videoram[offs]; | |
| 95 | int color = attr; | |
| 96 | code=code+(256*(color & 0x0f)); /* the game use 2 extra bits */ | |
| 97 | color= color >> 1; | |
| 98 | ||
| 99 | SET_TILE_INFO(0, code, color, 0); | |
| 100 | } | |
| 101 | ||
| 102 | VIDEO_START(ampoker2) | |
| 103 | { | |
| 104 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, | |
| 105 | TILEMAP_TYPE_PEN, 8, 8, 64, 32); | |
| 106 | } | |
| 107 | ||
| 108 | VIDEO_START(sigma2k) | |
| 109 | { | |
| 110 | bg_tilemap = tilemap_create(s2k_get_bg_tile_info, tilemap_scan_rows, | |
| 111 | TILEMAP_TYPE_PEN, 8, 8, 64, 32); | |
| 112 | } | |
| 113 | ||
| 114 | VIDEO_UPDATE(ampoker2) | |
| 115 | { | |
| 116 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); | |
| 117 | return 0; | |
| 118 | } |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "namcos2.h" |
| 11 | 12 | #include "namcoic.h" |
| 12 | 13 | #include "namcos21.h" |
| r1649 | r1650 | |
|---|---|---|
| 413 | 413 | // fillbitmap(bitmap3d, 0x8000, cliprect); |
| 414 | 414 | // real3d_traverse_display_list(); |
| 415 | 415 | // } |
| 416 | copybitmap(bitmap, bitmap3d, 0, 0, 0, 0, cliprect | |
| 416 | copybitmap_trans(bitmap, bitmap3d, 0, 0, 0, 0, cliprect | |
| 417 | 417 | } |
| 418 | 418 | |
| 419 | 419 | if (!(debug_layer_disable & 0x2)) |
| r1649 | r1650 | |
|---|---|---|
| 119 | 119 | col, |
| 120 | 120 | f,f, |
| 121 | 121 | px,py, |
| 122 | | |
| 122 | | |
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | /* draw sprites */ |
| r1649 | r1650 | |
| 156 | 156 | col, |
| 157 | 157 | f,f, |
| 158 | 158 | px,py, |
| 159 | | |
| 159 | | |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | copybitmap(bitmap,tmpbitmap,0,0,0,0, | |
| 162 | copybitmap_trans(bitmap,tmpbitmap,0,0,0,0,cliprect,machine->p | |
| 163 | 163 | |
| 164 | 164 | |
| 165 | 165 | /* mask sprites */ |
| r1649 | r1650 | |
| 193 | 193 | col, |
| 194 | 194 | f,f, |
| 195 | 195 | px,py, |
| 196 | | |
| 196 | | |
| 197 | 197 | } |
| 198 | 198 | } |
| 199 | 199 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "beathead.h" |
| 9 | 10 | |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | ************************************/ |
| 5 | 5 | |
| 6 | 6 | #include "driver.h" |
| 7 | #include "deprecat.h" | |
| 7 | 8 | #include "st0016.h" |
| 8 | 9 | |
| 9 | 10 | UINT8 *st0016_charram,*st0016_spriteram,*st0016_paletteram; |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "video/vector.h" |
| 9 | 10 | #include "cchasm.h" |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "deco16ic.h" |
| 9 | 10 | |
| 10 | 11 | /******************************************************************************/ |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "qix.h" |
| 11 | 12 | #include "video/crtc6845.h" |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 19 | 19 | ***************************************************************************/ |
| 20 | 20 | |
| 21 | 21 | #include "driver.h" |
| 22 | #include "deprecat.h" | |
| 22 | 23 | #include "atarirle.h" |
| 23 | 24 | |
| 24 | 25 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | |
| 3 | 4 | static int battlex_scroll_lsb; |
| 4 | 5 | static int battlex_scroll_msb; |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "machine/atarigen.h" |
| 9 | 10 | #include "includes/skullxbo.h" |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | |
| 11 | 12 | UINT16 *glass_spriteram; |
| 12 | 13 | UINT16 *glass_vregs; |
| r1649 | r1650 | |
| 203 | 204 | |
| 204 | 205 | /* draw layers + sprites */ |
| 205 | 206 | fillbitmap(bitmap, get_black_pen(machine), cliprect); |
| 206 | copybitmap(bitmap,screen_bitmap,0,0,0x18,0x24,cliprect | |
| 207 | copybitmap(bitmap,screen_bitmap,0,0,0x18,0x24,cliprect | |
| 207 | 208 | tilemap_draw(bitmap,cliprect,pant[1],0,0); |
| 208 | 209 | tilemap_draw(bitmap,cliprect,pant[0],0,0); |
| 209 | 210 | draw_sprites(machine,bitmap,cliprect); |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "video/vector.h" |
| 9 | 10 | #include "cpu/ccpu/ccpu.h" |
| 10 | 11 | #include "cinemat.h" |
| r1649 | r1650 | |
|---|---|---|
| 145 | 145 | ***************************************************************************/ |
| 146 | 146 | |
| 147 | 147 | #include "driver.h" |
| 148 | #include "deprecat.h" | |
| 148 | 149 | #include "cpu/m68000/m68000.h" |
| 149 | 150 | |
| 150 | 151 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "video/konamiic.h" |
| 12 | 13 | |
| 13 | 14 | #define BMP_PAD 8 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ******************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "nb1413m3.h" |
| 11 | 12 | |
| 12 | 13 | |
| r1649 | r1650 | |
| 292 | 293 | } |
| 293 | 294 | |
| 294 | 295 | if (pastelg_dispflag) |
| 295 | { | |
| 296 | copybitmap(bitmap, pastelg_tmpbitmap, 0, 0, 0, 0, &machine->screen[0].visarea, TRANSPARENCY_NONE, 0); | |
| 297 | } | |
| 296 | copybitmap(bitmap, pastelg_tmpbitmap, 0, 0, 0, 0, cliprect); | |
| 298 | 297 | else |
| 299 | { | |
| 300 | 298 | fillbitmap(bitmap, machine->pens[0x00], 0); |
| 301 | ||
| 299 | ||
| 302 | 300 | return 0; |
| 303 | 301 | } |
| r1649 | r1650 | |
|---|---|---|
| 35 | 35 | PALETTE_INIT( crbaloon ) |
| 36 | 36 | { |
| 37 | 37 | int i; |
| 38 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 39 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 40 | 38 | |
| 41 | ||
| 42 | 39 | for (i = 0; i < machine->drv->total_colors; i++) |
| 43 | 40 | { |
| 44 | int h = (~i & 0x08) ? 0xff : 0x55; | |
| 41 | UINT8 pen; | |
| 42 | int h, r, g, b; | |
| 45 | 43 | |
| 46 | int r = h * ((~i >> 0) & 1); | |
| 47 | int g = h * ((~i >> 1) & 1); | |
| 48 | int b = h * ((~i >> 2) & 1); | |
| 44 | if (i & 0x01) | |
| 45 | pen = i >> 1; | |
| 46 | else | |
| 47 | pen = 0x0f; | |
| 49 | 48 | |
| 49 | h = (~pen & 0x08) ? 0xff : 0x55; | |
| 50 | r = h * ((~pen >> 0) & 1); | |
| 51 | g = h * ((~pen >> 1) & 1); | |
| 52 | b = h * ((~pen >> 2) & 1); | |
| 53 | ||
| 50 | 54 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); |
| 51 | 55 | } |
| 52 | ||
| 53 | for (i = 0; i < TOTAL_COLORS(0); i += 2) | |
| 54 | { | |
| 55 | COLOR(0, i + 0) = 0x0f; /* black background */ | |
| 56 | COLOR(0, i + 1) = i / 2; /* colored foreground */ | |
| 57 | } | |
| 58 | 56 | } |
| 59 | 57 | |
| 60 | 58 | |
| r1649 | r1650 | |
| 135 | 133 | /* draw the current pixel, but check collision first */ |
| 136 | 134 | if (bit) |
| 137 | 135 | { |
| 138 | if (*BITMAP_ADDR16(bitmap, sy, sx) | |
| 136 | if (*BITMAP_ADDR16(bitmap, sy, sx) & | |
| 139 | 137 | /* compute the collision address -- the +1 is via observation |
| 140 | 138 | of the game code, probably wrong for cocktail mode */ |
| 141 | 139 | crbaloon_collision_address = ((((sy ^ 0xff) >> 3) << 5) | ((sx ^ 0xff) >> 3)) + 1; |
| 142 | 140 | |
| 143 | *BITMAP_ADDR16(bitmap, sy, sx) = color; | |
| 141 | *BITMAP_ADDR16(bitmap, sy, sx) = (color << 1) | 1; | |
| 144 | 142 | } |
| 145 | 143 | |
| 146 | 144 | sx = sx + 1; |
| r1649 | r1650 | |
|---|---|---|
| 124 | 124 | int scrollx = -(mnchmobl_vreg[6]*2+(mnchmobl_vreg[7]>>7))-64-128-16; |
| 125 | 125 | int scrolly = 0; |
| 126 | 126 | |
| 127 | copyscrollbitmap(bitmap,tmpbitmap, | |
| 128 | 1,&scrollx,1,&scrolly, | |
| 129 | cliprect,TRANSPARENCY_NONE,0); | |
| 127 | copyscrollbitmap(bitmap,tmpbitmap, 1,&scrollx,1,&scrolly, cliprect); | |
| 130 | 128 | } |
| 131 | 129 | } |
| 132 | 130 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | **************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "cpu/tms34010/tms34010.h" |
| 11 | 12 | #include "video/tlc34076.h" |
| 12 | 13 | #include "btoads.h" |
| r1649 | r1650 | |
|---|---|---|
| 39 | 39 | ***************************************************************************/ |
| 40 | 40 | |
| 41 | 41 | #include "driver.h" |
| 42 | #include "deprecat.h" | |
| 42 | 43 | |
| 43 | 44 | |
| 44 | 45 | extern UINT16 tetrisp2_systemregs[0x10]; |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | |
| 9 | 10 | static tilemap *fix_tilemap; |
| 10 | 11 | static int bank_base,flipscreen; |
| r1649 | r1650 | |
| 352 | 353 | { |
| 353 | 354 | int yshift = (alpha68k_microcontroller_id == 0x890a) ? 1 : 0; // The Next Space is 1 pixel off |
| 354 | 355 | |
| 355 | fillbitmap(bitmap,machine | |
| 356 | fillbitmap(bitmap,get_black_pen(machine) | |
| 356 | 357 | |
| 357 | 358 | /* This appears to be correct priority */ |
| 358 | 359 | draw_sprites_I(machine, bitmap,cliprect,2,0x0800,yshift); |
| r1649 | r1650 | |
| 365 | 366 | |
| 366 | 367 | PALETTE_INIT( kyros ) |
| 367 | 368 | { |
| 368 | int i | |
| 369 | int i | |
| 369 | 370 | |
| 370 | for (i = 0;i < 256;i++) | |
| 371 | /* allocate the colortable */ | |
| 372 | machine->colortable = colortable_alloc(machine, 0x100); | |
| 373 | ||
| 374 | /* create a lookup table for the palette */ | |
| 375 | for (i = 0; i < 0x100; i++) | |
| 371 | 376 | { |
| 372 | bit0 = (color_prom[0] >> 0) & 0x01; | |
| 373 | bit1 = (color_prom[0] >> 1) & 0x01; | |
| 374 | bit2 = (color_prom[0] >> 2) & 0x01; | |
| 375 | bit3 = (color_prom[0] >> 3) & 0x01; | |
| 376 | r = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 377 | int r = pal4bit(color_prom[i + 0x000]); | |
| 378 | int g = pal4bit(color_prom[i + 0x100]); | |
| 379 | int b = pal4bit(color_prom[i + 0x200]); | |
| 377 | 380 | |
| 378 | bit0 = (color_prom[0x100] >> 0) & 0x01; | |
| 379 | bit1 = (color_prom[0x100] >> 1) & 0x01; | |
| 380 | bit2 = (color_prom[0x100] >> 2) & 0x01; | |
| 381 | bit3 = (color_prom[0x100] >> 3) & 0x01; | |
| 382 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 383 | ||
| 384 | bit0 = (color_prom[0x200] >> 0) & 0x01; | |
| 385 | bit1 = (color_prom[0x200] >> 1) & 0x01; | |
| 386 | bit2 = (color_prom[0x200] >> 2) & 0x01; | |
| 387 | bit3 = (color_prom[0x200] >> 3) & 0x01; | |
| 388 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 389 | ||
| 390 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 391 | color_prom++; | |
| 381 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 392 | 382 | } |
| 393 | 383 | |
| 394 | color_prom += 0x200; | |
| 384 | /* color_prom now points to the beginning of the lookup table */ | |
| 385 | color_prom += 0x300; | |
| 395 | 386 | |
| 396 | for (i = 0;i < | |
| 387 | for (i = 0; i < 0x100; i++) | |
| 397 | 388 | { |
| 398 | *colortable++ = ((color_prom[0] & 0x0f) << 4) | (color_prom[0x100] & 0x0f); | |
| 399 | color_prom++; | |
| 389 | UINT8 ctabentry = ((color_prom[i] & 0x0f) << 4) | (color_prom[i + 0x100] & 0x0f); | |
| 390 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 400 | 391 | } |
| 401 | 392 | } |
| 402 | 393 | |
| 403 | 394 | PALETTE_INIT( paddlem ) |
| 404 | 395 | { |
| 405 | int i | |
| 396 | int i | |
| 406 | 397 | |
| 407 | for (i = 0;i < 256;i++) | |
| 398 | /* allocate the colortable */ | |
| 399 | machine->colortable = colortable_alloc(machine, 0x100); | |
| 400 | ||
| 401 | /* create a lookup table for the palette */ | |
| 402 | for (i = 0; i < 0x100; i++) | |
| 408 | 403 | { |
| 409 | bit0 = (color_prom[0] >> 0) & 0x01; | |
| 410 | bit1 = (color_prom[0] >> 1) & 0x01; | |
| 411 | bit2 = (color_prom[0] >> 2) & 0x01; | |
| 412 | bit3 = (color_prom[0] >> 3) & 0x01; | |
| 413 | r = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 404 | int r = pal4bit(color_prom[i + 0x000]); | |
| 405 | int g = pal4bit(color_prom[i + 0x100]); | |
| 406 | int b = pal4bit(color_prom[i + 0x200]); | |
| 414 | 407 | |
| 415 | bit0 = (color_prom[0x100] >> 0) & 0x01; | |
| 416 | bit1 = (color_prom[0x100] >> 1) & 0x01; | |
| 417 | bit2 = (color_prom[0x100] >> 2) & 0x01; | |
| 418 | bit3 = (color_prom[0x100] >> 3) & 0x01; | |
| 419 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 408 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 409 | } | |
| 420 | 410 | |
| 421 | bit0 = (color_prom[0x200] >> 0) & 0x01; | |
| 422 | bit1 = (color_prom[0x200] >> 1) & 0x01; | |
| 423 | bit2 = (color_prom[0x200] >> 2) & 0x01; | |
| 424 | bit3 = (color_prom[0x200] >> 3) & 0x01; | |
| 425 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 411 | /* color_prom now points to the beginning of the lookup table */ | |
| 412 | color_prom += 0x300; | |
| 426 | 413 | |
| 427 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 428 | color_prom++; | |
| 414 | for (i = 0; i < 0x400; i++) | |
| 415 | { | |
| 416 | UINT8 ctabentry = ((color_prom[i + 0x400] & 0x0f) << 4) | (color_prom[i] & 0x0f); | |
| 417 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 429 | 418 | } |
| 430 | ||
| 431 | /* Fill in clut */ | |
| 432 | color_prom += 0x200; | |
| 433 | for (i=0; i<1024; i++) colortable[i] = color_prom[i]|(color_prom[i+0x400]<<4); | |
| 434 | 419 | } |
| 435 | 420 | |
| 436 | 421 | void kyros_video_banking(int *bank, int data) |
| r1649 | r1650 | |
| 494 | 479 | |
| 495 | 480 | VIDEO_UPDATE( kyros ) |
| 496 | 481 | { |
| 497 | fillbitmap(bitmap,*videoram16 & 0xff,cliprect); //AT | |
| 482 | colortable_entry_set_value(machine->colortable, 0x100, *videoram16 & 0xff); | |
| 483 | fillbitmap(bitmap, machine->pens[0x100], cliprect); //AT | |
| 498 | 484 | |
| 499 | 485 | kyros_draw_sprites(machine, bitmap,cliprect,2,0x0800); |
| 500 | 486 | kyros_draw_sprites(machine, bitmap,cliprect,3,0x0c00); |
| r1649 | r1650 | |
| 551 | 537 | |
| 552 | 538 | VIDEO_UPDATE( sstingry ) |
| 553 | 539 | { |
| 554 | fillbitmap(bitmap,*videoram16 & 0xff,cliprect); //AT | |
| 540 | colortable_entry_set_value(machine->colortable, 0x100, *videoram16 & 0xff); | |
| 541 | fillbitmap(bitmap, machine->pens[0x100], cliprect); //AT | |
| 555 | 542 | |
| 556 | 543 | sstingry_draw_sprites(machine, bitmap,cliprect,2,0x0800); |
| 557 | 544 | sstingry_draw_sprites(machine, bitmap,cliprect,3,0x0c00); |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "includes/starfire.h" | |
| 9 | 8 | |
| 10 | /* local allocated storage */ | |
| 11 | static UINT8 *scanline_dirty; | |
| 12 | 9 | |
| 10 | #define NUM_PENS (0x40) | |
| 11 | ||
| 12 | ||
| 13 | UINT8 *starfire_videoram; | |
| 14 | UINT8 *starfire_colorram; | |
| 15 | ||
| 16 | /* local allocated storage */ | |
| 13 | 17 | static UINT8 starfire_vidctrl; |
| 14 | 18 | static UINT8 starfire_vidctrl1; |
| 15 | 19 | static UINT8 starfire_color; |
| 20 | static UINT16 starfire_colors[NUM_PENS]; | |
| 16 | 21 | |
| 17 | 22 | |
| 18 | 23 | |
| r1649 | r1650 | |
| 24 | 29 | |
| 25 | 30 | VIDEO_START( starfire ) |
| 26 | 31 | { |
| 27 | /* make a temporary bitmap */ | |
| 28 | tmpbitmap = auto_bitmap_alloc(machine->screen[0].width, machine->screen[0].height, machine->screen[0].format); | |
| 29 | ||
| 30 | /* make a dirty array */ | |
| 31 | scanline_dirty = auto_malloc(STARFIRE_VTOTAL); | |
| 32 | ||
| 33 | /* reset videoram */ | |
| 34 | memset(starfire_videoram, 0, 0x2000); | |
| 35 | memset(starfire_colorram, 0, 0x2000); | |
| 36 | memset(scanline_dirty, 1, 256); | |
| 32 | /* register for state saving */ | |
| 33 | state_save_register_global(starfire_vidctrl); | |
| 34 | state_save_register_global(starfire_vidctrl1); | |
| 35 | state_save_register_global(starfire_color); | |
| 36 | state_save_register_global_array(starfire_colors); | |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | |
| r1649 | r1650 | |
| 73 | 73 | starfire_colorram[offset & ~0x100] = data; |
| 74 | 74 | starfire_colorram[offset | 0x100] = data; |
| 75 | 75 | |
| 76 | /* don't modify the palette unless the TRANS bit is set */ | |
| 77 | 76 | starfire_color = data & 0x1f; |
| 78 | if (!(starfire_vidctrl1 & 0x40)) | |
| 79 | return; | |
| 80 | 77 | |
| 81 | palette_set_color_rgb(Machine, palette_index, pal3bit((data << 1) & 0x06) | ((offset >> 8) & 0x01), pal3bit(data >> 5), pal3bit(data >> 2)); | |
| 78 | /* don't modify the palette unless the TRANS bit is set */ | |
| 79 | if (starfire_vidctrl1 & 0x40) | |
| 80 | { | |
| 81 | video_screen_update_partial(0, video_screen_get_vpos(0)); | |
| 82 | ||
| 83 | starfire_colors[palette_index] = ((((data << 1) & 0x06) | ((offset >> 8) & 0x01)) << 6) | | |
| 84 | (((data >> 5) & 0x07) << 3) | | |
| 85 | ((data >> 2) & 0x07); | |
| 86 | } | |
| 82 | 87 | } |
| 83 | 88 | |
| 84 | 89 | /* handle writes to the rest of color RAM */ |
| r1649 | r1650 | |
| 86 | 91 | { |
| 87 | 92 | /* set RAM based on CDRM */ |
| 88 | 93 | starfire_colorram[offset] = (starfire_vidctrl1 & 0x80) ? starfire_color : (data & 0x1f); |
| 89 | scanline_dirty[offset & 0xff] = 1; | |
| 90 | 94 | starfire_color = data & 0x1f; |
| 91 | 95 | } |
| 92 | 96 | } |
| 93 | 97 | |
| 94 | READ8_HANDLER( starfire_colorram_r ) | |
| 95 | { | |
| 96 | return starfire_colorram[offset]; | |
| 97 | } | |
| 98 | 98 | |
| 99 | 99 | |
| 100 | ||
| 101 | 100 | /************************************* |
| 102 | 101 | * |
| 103 | 102 | * Video RAM read/writes |
| r1649 | r1650 | |
| 173 | 172 | /* final output */ |
| 174 | 173 | starfire_videoram[offset1] = dalu >> 8; |
| 175 | 174 | starfire_videoram[offset2] = dalu; |
| 176 | scanline_dirty[offset1 & 0xff] = 1; | |
| 177 | 175 | |
| 178 | 176 | /* color output */ |
| 179 | 177 | if (!(offset & 0x2000) && !(starfire_vidctrl1 & 0x80)) |
| r1649 | r1650 | |
| 219 | 217 | |
| 220 | 218 | /************************************* |
| 221 | 219 | * |
| 222 | * | |
| 220 | * Standar | |
| 223 | 221 | * |
| 224 | 222 | *************************************/ |
| 225 | 223 | |
| 226 | ||
| 224 | ||
| 227 | 225 | { |
| 228 | UINT8 *pix = &starfire_videoram[scanline]; | |
| 229 | UINT8 *col = &starfire_colorram[scanline]; | |
| 226 | offs_t offs; | |
| 227 | ||
| 228 | for (offs = 0; offs < NUM_PENS; offs++) | |
| 229 | { | |
| 230 | UINT16 color = starfire_colors[offs]; | |
| 231 | ||
| 232 | pens[offs] = MAKE_RGB(pal3bit(color >> 6), pal3bit(color >> 3), pal3bit(color >> 0)); | |
| 233 | } | |
| 234 | } | |
| 235 | ||
| 236 | ||
| 237 | VIDEO_UPDATE( starfire ) | |
| 238 | { | |
| 239 | pen_t pens[NUM_PENS]; | |
| 240 | ||
| 241 | UINT8 *pix = &starfire_videoram[cliprect->min_y - 32]; | |
| 242 | UINT8 *col = &starfire_colorram[cliprect->min_y - 32]; | |
| 230 | 243 | int x, y; |
| 231 | 244 | |
| 232 | /* update any dirty scanlines in this range */ | |
| 245 | get_pens(pens); | |
| 246 | ||
| 233 | 247 | for (x = 0; x < 256; x += 8) |
| 234 | 248 | { |
| 235 | for (y = 0; y < count; y++) | |
| 236 | if ((scanline + y) < STARFIRE_VTOTAL && scanline_dirty[scanline + y]) | |
| 237 | { | |
| 238 | int data = pix[y]; | |
| 239 | int color = col[y]; | |
| 249 | for (y = cliprect->min_y; y <= cliprect->max_y ; y++) | |
| 250 | { | |
| 251 | int data = pix[y]; | |
| 252 | int color = col[y]; | |
| 240 | 253 | |
| 241 | *BITMAP_ADDR16(tmpbitmap, scanline + y, x + 0) = color | ((data >> 2) & 0x20); | |
| 242 | *BITMAP_ADDR16(tmpbitmap, scanline + y, x + 1) = color | ((data >> 1) & 0x20); | |
| 243 | *BITMAP_ADDR16(tmpbitmap, scanline + y, x + 2) = color | ((data >> 0) & 0x20); | |
| 244 | *BITMAP_ADDR16(tmpbitmap, scanline + y, x + 3) = color | ((data << 1) & 0x20); | |
| 245 | *BITMAP_ADDR16(tmpbitmap, scanline + y, x + 4) = color | ((data << 2) & 0x20); | |
| 246 | *BITMAP_ADDR16(tmpbitmap, scanline + y, x + 5) = color | ((data << 3) & 0x20); | |
| 247 | *BITMAP_ADDR16(tmpbitmap, scanline + y, x + 6) = color | ((data << 4) & 0x20); | |
| 248 | *BITMAP_ADDR16(tmpbitmap, scanline + y, x + 7) = color | ((data << 5) & 0x20); | |
| 249 | } | |
| 254 | *BITMAP_ADDR32(bitmap, y, x + 0) = pens[color | ((data >> 2) & 0x20)]; | |
| 255 | *BITMAP_ADDR32(bitmap, y, x + 1) = pens[color | ((data >> 1) & 0x20)]; | |
| 256 | *BITMAP_ADDR32(bitmap, y, x + 2) = pens[color | ((data >> 0) & 0x20)]; | |
| 257 | *BITMAP_ADDR32(bitmap, y, x + 3) = pens[color | ((data << 1) & 0x20)]; | |
| 258 | *BITMAP_ADDR32(bitmap, y, x + 4) = pens[color | ((data << 2) & 0x20)]; | |
| 259 | *BITMAP_ADDR32(bitmap, y, x + 5) = pens[color | ((data << 3) & 0x20)]; | |
| 260 | *BITMAP_ADDR32(bitmap, y, x + 6) = pens[color | ((data << 4) & 0x20)]; | |
| 261 | *BITMAP_ADDR32(bitmap, y, x + 7) = pens[color | ((data << 5) & 0x20)]; | |
| 262 | } | |
| 250 | 263 | |
| 251 | 264 | pix += 256; |
| 252 | 265 | col += 256; |
| 253 | 266 | } |
| 254 | 267 | |
| 255 | /* mark them not dirty anymore */ | |
| 256 | for (y = 0; y < count; y++) | |
| 257 | if ((scanline + y) < STARFIRE_VTOTAL) | |
| 258 | scanline_dirty[scanline + y] = 0; | |
| 259 | } | |
| 260 | ||
| 261 | ||
| 262 | ||
| 263 | /************************************* | |
| 264 | * | |
| 265 | * Standard screen refresh callback | |
| 266 | * | |
| 267 | *************************************/ | |
| 268 | ||
| 269 | VIDEO_UPDATE( starfire ) | |
| 270 | { | |
| 271 | /* copy the bitmap, remapping the colors */ | |
| 272 | copybitmap_remap(bitmap, tmpbitmap, 0, 0, 0, 0, &machine->screen[0].visarea, TRANSPARENCY_NONE, 0); | |
| 273 | 268 | return 0; |
| 274 | 269 | } |
| 275 | ||
| 276 |
| r1649 | r1650 | |
|---|---|---|
| 54 | 54 | ***************************************************************************/ |
| 55 | 55 | |
| 56 | 56 | #include "driver.h" |
| 57 | #include "deprecat.h" | |
| 57 | 58 | #include "megasys1.h" |
| 58 | 59 | |
| 59 | 60 | /* Variables only used here: */ |
| r1649 | r1650 | |
|---|---|---|
| 34 | 34 | */ |
| 35 | 35 | |
| 36 | 36 | #include "driver.h" |
| 37 | #include "deprecat.h" | |
| 37 | 38 | #include "eminline.h" |
| 38 | 39 | #include "video/rgbutil.h" |
| 39 | 40 | #include "namcos22.h" |
| 40 | 41 | #include "video/poly.h" |
| 41 | #include <math.h> | |
| 42 | 42 | |
| 43 | 43 | // uncomment this line to render everything as quads |
| 44 | 44 | //#define RENDER_AS_QUADS |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | |
| 11 | 12 | UINT8 *rockola_videoram2; |
| 12 | 13 | UINT8 *rockola_charram; |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | *************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "centiped.h" |
| 9 | 10 | |
| 10 | 11 | |
| r1649 | r1650 | |
| 58 | 59 | |
| 59 | 60 | /************************************* |
| 60 | 61 | * |
| 62 | * Palette init | |
| 63 | * | |
| 64 | *************************************/ | |
| 65 | ||
| 66 | static void init_penmask(void) | |
| 67 | { | |
| 68 | int i; | |
| 69 | ||
| 70 | for (i = 0; i < 64; i++) | |
| 71 | { | |
| 72 | UINT8 mask = 1; | |
| 73 | if (((i >> 0) & 3) == 0) mask |= 2; | |
| 74 | if (((i >> 2) & 3) == 0) mask |= 4; | |
| 75 | if (((i >> 4) & 3) == 0) mask |= 8; | |
| 76 | penmask[i] = mask; | |
| 77 | } | |
| 78 | } | |
| 79 | ||
| 80 | ||
| 81 | ||
| 82 | /************************************* | |
| 83 | * | |
| 61 | 84 | * Video system start |
| 62 | 85 | * |
| 63 | 86 | *************************************/ |
| r1649 | r1650 | |
| 66 | 89 | { |
| 67 | 90 | bg_tilemap = tilemap_create(centiped_get_tile_info, tilemap_scan_rows, TILEMAP_TYPE_PEN, 8,8, 32,32); |
| 68 | 91 | |
| 92 | init_penmask(); | |
| 93 | ||
| 69 | 94 | centiped_flipscreen = 0; |
| 70 | 95 | |
| 71 | 96 | state_save_register_global(centiped_flipscreen); |
| r1649 | r1650 | |
| 87 | 112 | { |
| 88 | 113 | bg_tilemap = tilemap_create(milliped_get_tile_info, tilemap_scan_rows, TILEMAP_TYPE_PEN, 8,8, 32,32); |
| 89 | 114 | |
| 115 | init_penmask(); | |
| 116 | ||
| 90 | 117 | centiped_flipscreen = 0; |
| 118 | ||
| 91 | 119 | state_save_register_global(centiped_flipscreen); |
| 92 | 120 | } |
| 93 | 121 | |
| r1649 | r1650 | |
| 96 | 124 | { |
| 97 | 125 | bg_tilemap = tilemap_create(bullsdrt_get_tile_info, tilemap_scan_rows, TILEMAP_TYPE_PEN, 8,8, 32,32); |
| 98 | 126 | |
| 127 | init_penmask(); | |
| 128 | ||
| 99 | 129 | centiped_flipscreen = 0; |
| 100 | 130 | } |
| 101 | 131 | |
| r1649 | r1650 | |
| 155 | 185 | |
| 156 | 186 | |
| 157 | 187 | |
| 158 | /************************************* | |
| 159 | * | |
| 160 | * Palette init | |
| 161 | * | |
| 162 | *************************************/ | |
| 163 | ||
| 164 | static void init_penmask(void) | |
| 165 | { | |
| 166 | int i; | |
| 167 | ||
| 168 | for (i = 0; i < 64; i++) | |
| 169 | { | |
| 170 | UINT8 mask = 1; | |
| 171 | if (((i >> 0) & 3) == 0) mask |= 2; | |
| 172 | if (((i >> 2) & 3) == 0) mask |= 4; | |
| 173 | if (((i >> 4) & 3) == 0) mask |= 8; | |
| 174 | penmask[i] = mask; | |
| 175 | } | |
| 176 | } | |
| 177 | ||
| 178 | ||
| 179 | ||
| 180 | 188 | /*************************************************************************** |
| 181 | 189 | |
| 182 | 190 | Centipede doesn't have a color PROM. Eight RAM locations control |
| r1649 | r1650 | |
| 191 | 199 | The alternate bit affects blue and green, not red. The way I weighted its |
| 192 | 200 | effect might not be perfectly accurate, but is reasonably close. |
| 193 | 201 | |
| 202 | Centipede is unusual because the sprite color code specifies the | |
| 203 | colors to use one by one, instead of a combination code. | |
| 204 | bit 5-4 = color to use for pen 11 | |
| 205 | bit 3-2 = color to use for pen 10 | |
| 206 | bit 1-0 = color to use for pen 01 | |
| 207 | pen 00 is transparent | |
| 208 | ||
| 194 | 209 | ***************************************************************************/ |
| 195 | 210 | |
| 196 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 197 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 198 | ||
| 199 | PALETTE_INIT( centiped ) | |
| 211 | WRITE8_HANDLER( centiped_paletteram_w ) | |
| 200 | 212 | { |
| 201 | | |
| 213 | paletteram[offset] = data; | |
| 202 | 214 | |
| 203 | /* characters use colors 0-3 */ | |
| 204 | for (i = 0; i < TOTAL_COLORS(0); i++) | |
| 205 | COLOR(0,i) = i; | |
| 206 | ||
| 207 | /* Centipede is unusual because the sprite color code specifies the */ | |
| 208 | /* colors to use one by one, instead of a combination code. */ | |
| 209 | /* bit 5-4 = color to use for pen 11 */ | |
| 210 | /* bit 3-2 = color to use for pen 10 */ | |
| 211 | /* bit 1-0 = color to use for pen 01 */ | |
| 212 | /* pen 00 is transparent */ | |
| 213 | for (i = 0; i < TOTAL_COLORS(1); i += 4) | |
| 215 | /* bit 2 of the output palette RAM is always pulled high, so we ignore */ | |
| 216 | /* any palette changes unless the write is to a palette RAM address */ | |
| 217 | /* that is actually used */ | |
| 218 | if (offset & 4) | |
| 214 | 219 | { |
| 215 | COLOR(1,i+0) = 0; | |
| 216 | COLOR(1,i+1) = 4 + ((i >> 2) & 3); | |
| 217 | COLOR(1,i+2) = 4 + ((i >> 4) & 3); | |
| 218 | COLOR(1,i+3) = 4 + ((i >> 6) & 3); | |
| 219 | } | |
| 220 | rgb_t color; | |
| 220 | 221 | |
| 221 | /* create a pen mask for sprite drawing */ | |
| 222 | init_penmask(); | |
| 223 | } | |
| 222 | int r = 0xff * ((~data >> 0) & 1); | |
| 223 | int g = 0xff * ((~data >> 1) & 1); | |
| 224 | int b = 0xff * ((~data >> 2) & 1); | |
| 224 | 225 | |
| 226 | if (~data & 0x08) /* alternate = 1 */ | |
| 227 | { | |
| 228 | /* when blue component is not 0, decrease it. When blue component is 0, */ | |
| 229 | /* decrease green component. */ | |
| 230 | if (b) b = 0xc0; | |
| 231 | else if (g) g = 0xc0; | |
| 232 | } | |
| 225 | 233 | |
| 226 | WRITE8_HANDLER( centiped_paletteram_w ) | |
| 227 | { | |
| 228 | int r, g, b; | |
| 234 | color = MAKE_RGB(r, g, b); | |
| 229 | 235 | |
| 230 | paletteram[offset] = data; | |
| 236 | /* character colors, set directly */ | |
| 237 | if ((offset & 0x08) == 0) | |
| 238 | palette_set_color(Machine, offset & 0x03, color); | |
| 231 | 239 | |
| 232 | r = 0xff * ((~data >> 0) & 1); | |
| 233 | g = 0xff * ((~data >> 1) & 1); | |
| 234 | b = 0xff * ((~data >> 2) & 1); | |
| 240 | /* sprite colors - set all the applicable ones */ | |
| 241 | else | |
| 242 | { | |
| 243 | int i; | |
| 235 | 244 | |
| 236 | if (~data & 0x08) /* alternate = 1 */ | |
| 237 | { | |
| 238 | /* when blue component is not 0, decrease it. When blue component is 0, */ | |
| 239 | /* decrease green component. */ | |
| 240 | if (b) b = 0xc0; | |
| 241 | else if (g) g = 0xc0; | |
| 245 | offset = offset & 0x03; | |
| 246 | ||
| 247 | for (i = 0; i < 0x100; i += 4) | |
| 248 | { | |
| 249 | if (offset == ((i >> 2) & 0x03)) | |
| 250 | palette_set_color(Machine, i + 4 + 1, color); | |
| 251 | ||
| 252 | if (offset == ((i >> 4) & 0x03)) | |
| 253 | palette_set_color(Machine, i + 4 + 2, color); | |
| 254 | ||
| 255 | if (offset == ((i >> 6) & 0x03)) | |
| 256 | palette_set_color(Machine, i + 4 + 3, color); | |
| 257 | } | |
| 258 | } | |
| 242 | 259 | } |
| 243 | ||
| 244 | /* bit 2 of the output palette RAM is always pulled high, so we ignore */ | |
| 245 | /* any palette changes unless the write is to a palette RAM address */ | |
| 246 | /* that is actually used */ | |
| 247 | if (offset & 4) | |
| 248 | palette_set_color(Machine, ((offset >> 1) & 4) | (offset & 3), MAKE_RGB(r, g, b)); | |
| 249 | 260 | } |
| 250 | 261 | |
| 251 | 262 | |
| r1649 | r1650 | |
| 264 | 275 | |
| 265 | 276 | PALETTE_INIT( warlords ) |
| 266 | 277 | { |
| 267 | int i | |
| 278 | int i | |
| 268 | 279 | |
| 269 | 280 | for (i = 0; i < machine->drv->total_colors; i++) |
| 270 | 281 | { |
| 271 | int r = ((*color_prom >> 2) & 0x01) * 0xff; | |
| 272 | int g = ((*color_prom >> 1) & 0x01) * 0xff; | |
| 273 | int b = ((*color_prom >> 0) & 0x01) * 0xff; | |
| 282 | UINT8 pen; | |
| 283 | int r, g, b; | |
| 274 | 284 | |
| 275 | /* Colors 0x40-0x7f are converted to grey scale as it's used on the | |
| 285 | if (i < 0x20) | |
| 286 | /* characters */ | |
| 287 | pen = (((i - 0x00) & 0x1c) << 2) | (((i - 0x00) & 0x03) << 0); | |
| 288 | else | |
| 289 | /* sprites */ | |
| 290 | pen = (((i - 0x20) & 0x1c) << 2) | (((i - 0x20) & 0x03) << 2); | |
| 291 | ||
| 292 | r = ((color_prom[pen] >> 2) & 0x01) * 0xff; | |
| 293 | g = ((color_prom[pen] >> 1) & 0x01) * 0xff; | |
| 294 | b = ((color_prom[pen] >> 0) & 0x01) * 0xff; | |
| 295 | ||
| 296 | /* colors 0x40-0x7f are converted to grey scale as it's used on the | |
| 276 | 297 | upright version that had an overlay */ |
| 277 | if ( | |
| 298 | if (pen >= 0x40 | |
| 278 | 299 | { |
| 279 | /* | |
| 300 | /* use the standard ratios: r = 30%, g = 59%, b = 11% */ | |
| 280 | 301 | int grey = (r * 0x4d / 0xff) + (g * 0x96 / 0xff) + (b * 0x1c / 0xff); |
| 281 | 302 | r = g = b = grey; |
| 282 | 303 | } |
| 283 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 284 | color_prom++; | |
| 304 | ||
| 305 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); | |
| 285 | 306 | } |
| 286 | ||
| 287 | for (i = 0; i < 8; i++) | |
| 288 | for (j = 0; j < 4; j++) | |
| 289 | { | |
| 290 | COLOR(0,i*4+j) = i*16+j; | |
| 291 | COLOR(1,i*4+j) = i*16+j*4; | |
| 292 | } | |
| 293 | 307 | } |
| 294 | 308 | |
| 295 | 309 | |
| r1649 | r1650 | |
| 308 | 322 | blue |
| 309 | 323 | bit 0 blue |
| 310 | 324 | |
| 325 | Millipede is unusual because the sprite color code specifies the | |
| 326 | colors to use one by one, instead of a combination code. | |
| 327 | bit 7-6 = palette bank (there are 4 groups of 4 colors) | |
| 328 | bit 5-4 = color to use for pen 11 | |
| 329 | bit 3-2 = color to use for pen 10 | |
| 330 | bit 1-0 = color to use for pen 01 | |
| 331 | pen 00 is transparent | |
| 332 | ||
| 311 | 333 | ***************************************************************************/ |
| 312 | 334 | |
| 313 | ||
| 335 | static | |
| 314 | 336 | { |
| 315 | int i; | |
| 337 | rgb_t color; | |
| 338 | int bit0, bit1, bit2; | |
| 339 | int r, g, b; | |
| 316 | 340 | |
| 317 | /* characters use colors 0-15 */ | |
| 318 | for (i = 0; i < TOTAL_COLORS(0); i++) | |
| 319 | COLOR(0,i) = i; | |
| 320 | ||
| 321 | /* Millipede is unusual because the sprite color code specifies the */ | |
| 322 | /* colors to use one by one, instead of a combination code. */ | |
| 323 | /* bit 7-6 = palette bank (there are 4 groups of 4 colors) */ | |
| 324 | /* bit 5-4 = color to use for pen 11 */ | |
| 325 | /* bit 3-2 = color to use for pen 10 */ | |
| 326 | /* bit 1-0 = color to use for pen 01 */ | |
| 327 | /* pen 00 is transparent */ | |
| 328 | for (i = 0; i < TOTAL_COLORS(1); i += 4) | |
| 329 | { | |
| 330 | int base = 16 + 4 * ((i >> 8) & 3); | |
| 331 | COLOR(1,i+0) = 0; | |
| 332 | COLOR(1,i+1) = base + ((i >> 2) & 3); | |
| 333 | COLOR(1,i+2) = base + ((i >> 4) & 3); | |
| 334 | COLOR(1,i+3) = base + ((i >> 6) & 3); | |
| 335 | } | |
| 336 | ||
| 337 | /* create a pen mask for sprite drawing */ | |
| 338 | init_penmask(); | |
| 339 | } | |
| 340 | ||
| 341 | ||
| 342 | WRITE8_HANDLER( milliped_paletteram_w ) | |
| 343 | { | |
| 344 | int bit0,bit1,bit2; | |
| 345 | int r,g,b; | |
| 346 | ||
| 347 | paletteram[offset] = data; | |
| 348 | ||
| 349 | 341 | /* red component */ |
| 350 | 342 | bit0 = (~data >> 5) & 0x01; |
| 351 | 343 | bit1 = (~data >> 6) & 0x01; |
| r1649 | r1650 | |
| 364 | 356 | bit2 = (~data >> 2) & 0x01; |
| 365 | 357 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 366 | 358 | |
| 367 | palette_set_color(Machine, offset, MAKE_RGB(r, g, b)); | |
| 359 | color = MAKE_RGB(r, g, b); | |
| 360 | ||
| 361 | /* character colors, set directly */ | |
| 362 | if (offset < 0x10) | |
| 363 | palette_set_color(machine, offset, color); | |
| 364 | ||
| 365 | /* sprite colors - set all the applicable ones */ | |
| 366 | else | |
| 367 | { | |
| 368 | int i; | |
| 369 | ||
| 370 | int base = offset & 0x0c; | |
| 371 | ||
| 372 | offset = offset & 0x03; | |
| 373 | ||
| 374 | for (i = (base << 6); i < (base << 6) + 0x100; i += 4) | |
| 375 | { | |
| 376 | if (offset == ((i >> 2) & 0x03)) | |
| 377 | palette_set_color(machine, i + 0x10 + 1, color); | |
| 378 | ||
| 379 | if (offset == ((i >> 4) & 0x03)) | |
| 380 | palette_set_color(machine, i + 0x10 + 2, color); | |
| 381 | ||
| 382 | if (offset == ((i >> 6) & 0x03)) | |
| 383 | palette_set_color(machine, i + 0x10 + 3, color); | |
| 384 | } | |
| 385 | } | |
| 368 | 386 | } |
| 369 | 387 | |
| 370 | 388 | |
| 371 | WRITE8_HANDLER( m | |
| 389 | WRITE8_HANDLER( m | |
| 372 | 390 | { |
| 373 | int bit0,bit1,bit2; | |
| 374 | int r,g,b; | |
| 375 | ||
| 376 | 391 | paletteram[offset] = data; |
| 377 | data = memory_region(REGION_PROMS)[~data & 0x0f]; | |
| 378 | 392 | |
| 379 | /* red component */ | |
| 380 | bit0 = (data >> 5) & 0x01; | |
| 381 | bit1 = (data >> 6) & 0x01; | |
| 382 | bit2 = (data >> 7) & 0x01; | |
| 383 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 393 | melliped_mazeinv_set_color(Machine, offset, data); | |
| 394 | } | |
| 384 | 395 | |
| 385 | /* green component */ | |
| 386 | bit0 = 0; | |
| 387 | bit1 = (data >> 3) & 0x01; | |
| 388 | bit2 = (data >> 4) & 0x01; | |
| 389 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 390 | 396 | |
| 391 | /* blue component */ | |
| 392 | bit0 = (data >> 0) & 0x01; | |
| 393 | bit1 = (data >> 1) & 0x01; | |
| 394 | bit2 = (data >> 2) & 0x01; | |
| 395 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 397 | WRITE8_HANDLER( mazeinv_paletteram_w ) | |
| 398 | { | |
| 399 | paletteram[offset] = data; | |
| 396 | 400 | |
| 397 | palette_set_color(Machine, offset, MAKE_RGB(r, g, b)); | |
| 401 | /* the value passed in is a look-up index into the color PROM */ | |
| 402 | melliped_mazeinv_set_color(Machine, offset, ~memory_region(REGION_PROMS)[~data & 0x0f]); | |
| 398 | 403 | } |
| 399 | 404 | |
| 400 | 405 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "machine/atarigen.h" |
| 9 | 10 | #include "atarisy1.h" |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 95 | 95 | ***************************************************************************/ |
| 96 | 96 | |
| 97 | 97 | #include "driver.h" |
| 98 | #include "deprecat.h" | |
| 98 | 99 | #include "includes/dec0.h" |
| 99 | 100 | |
| 100 | 101 | static tilemap *pf1_tilemap_0,*pf1_tilemap_1,*pf1_tilemap_2; |
| r1649 | r1650 | |
|---|---|---|
| 136 | 136 | ***************************************************************************/ |
| 137 | 137 | |
| 138 | 138 | #include "driver.h" |
| 139 | #include "deprecat.h" | |
| 139 | 140 | #include "seta.h" |
| 140 | 141 | #ifdef MAME_DEBUG |
| 141 | 142 | #include "ui.h" |
| r1649 | r1650 | |
|---|---|---|
| 46 | 46 | ***************************************************************************/ |
| 47 | 47 | |
| 48 | 48 | #include "driver.h" |
| 49 | #include "deprecat.h" | |
| 49 | 50 | #include "taitoic.h" |
| 50 | 51 | |
| 51 | 52 |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | 6 | #include "driver.h" |
| 7 | #include "deprecat.h" | |
| 7 | 8 | #include "namcoic.h" |
| 8 | 9 | |
| 9 | 10 | #define TX_TILE_OFFSET_CENTER (32 * 2) |
| r1649 | r1650 | |
| 512 | 513 | if (is_mask_spr[color]) |
| 513 | 514 | { |
| 514 | 515 | if (!need_mask) |
| 515 | { | |
| 516 | 516 | // backup previous bitmap |
| 517 | copybitmap(temp_bitmap, bitmap, 0, 0, 0, 0, cliprect, TRANSPARENCY_NONE, 0); | |
| 518 | } | |
| 517 | copybitmap(temp_bitmap, bitmap, 0, 0, 0, 0, cliprect); | |
| 519 | 518 | |
| 520 | 519 | need_mask = 1; |
| 521 | 520 | } |
| r1649 | r1650 | |
|---|---|---|
| 20 | 20 | PALETTE_INIT( cop01 ) |
| 21 | 21 | { |
| 22 | 22 | int i; |
| 23 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 24 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 25 | 23 | |
| 26 | for (i = 0;i < machine->drv->total_colors;i++) | |
| 24 | /* allocate the colortable */ | |
| 25 | machine->colortable = colortable_alloc(machine, 0x100); | |
| 26 | ||
| 27 | /* create a lookup table for the palette */ | |
| 28 | for (i = 0; i < 0x100; i++) | |
| 27 | 29 | { |
| 28 | int bit0,bit1,bit2,bit3,r,g,b; | |
| 30 | int r = pal4bit(color_prom[i + 0x000]); | |
| 31 | int g = pal4bit(color_prom[i + 0x100]); | |
| 32 | int b = pal4bit(color_prom[i + 0x200]); | |
| 29 | 33 | |
| 30 | bit0 = (color_prom[0] >> 0) & 0x01; | |
| 31 | bit1 = (color_prom[0] >> 1) & 0x01; | |
| 32 | bit2 = (color_prom[0] >> 2) & 0x01; | |
| 33 | bit3 = (color_prom[0] >> 3) & 0x01; | |
| 34 | r = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 35 | bit0 = (color_prom[machine->drv->total_colors] >> 0) & 0x01; | |
| 36 | bit1 = (color_prom[machine->drv->total_colors] >> 1) & 0x01; | |
| 37 | bit2 = (color_prom[machine->drv->total_colors] >> 2) & 0x01; | |
| 38 | bit3 = (color_prom[machine->drv->total_colors] >> 3) & 0x01; | |
| 39 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 40 | bit0 = (color_prom[2*machine->drv->total_colors] >> 0) & 0x01; | |
| 41 | bit1 = (color_prom[2*machine->drv->total_colors] >> 1) & 0x01; | |
| 42 | bit2 = (color_prom[2*machine->drv->total_colors] >> 2) & 0x01; | |
| 43 | bit3 = (color_prom[2*machine->drv->total_colors] >> 3) & 0x01; | |
| 44 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 45 | ||
| 46 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 47 | color_prom++; | |
| 34 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 48 | 35 | } |
| 49 | 36 | |
| 50 | color_prom += 2*machine->drv->total_colors; | |
| 51 | /* color_prom now points to the beginning of the lookup tables */ | |
| 37 | /* color_prom now points to the beginning of the lookup table */ | |
| 38 | color_prom += 0x300; | |
| 52 | 39 | |
| 53 | /* characters use colors 0-15 (or 0-127, but the eight rows are identical) */ | |
| 54 | for (i = 0;i < TOTAL_COLORS(0);i++) | |
| 55 | COLOR(0,i) = i; | |
| 40 | /* characters use colors 0x00-0x0f (or 0x00-0x7f, but the eight rows are identical) */ | |
| 41 | for (i = 0; i < 0x10; i++) | |
| 42 | colortable_entry_set_value(machine->colortable, i, i); | |
| 56 | 43 | |
| 57 | /* background tiles use colors | |
| 44 | /* background tiles use colors 0xc0-0xff */ | |
| 58 | 45 | /* I don't know how much of the lookup table PROM is hooked up, */ |
| 59 | 46 | /* I'm only using the first 32 bytes because the rest is empty. */ |
| 60 | for (i = 0;i < TOTAL_COLORS(1);i++) | |
| 61 | COLOR(1,i) = 0xc0 + (i & 0x30) + (color_prom[((i & 0x40) >> 2) + (i & 0x0f)] & 0x0f); | |
| 62 | color_prom += 256; | |
| 47 | for (i = 0x10; i < 0x90; i++) | |
| 48 | { | |
| 49 | UINT8 ctabentry = 0xc0 | ((i - 0x10) & 0x30) | | |
| 50 | (color_prom[(((i - 0x10) & 0x40) >> 2) | ((i - 0x10) & 0x0f)] & 0x0f); | |
| 51 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 52 | } | |
| 63 | 53 | |
| 64 | /* sprites use colors 128-143 (or 128-191, but the four rows are identical) */ | |
| 65 | for (i = 0;i < TOTAL_COLORS(2);i++) | |
| 66 | COLOR(2,i) = 0x80 + (*(color_prom++) & 0x0f); | |
| 54 | /* sprites use colors 0x80-0x8f (or 0x80-0xbf, but the four rows are identical) */ | |
| 55 | for (i = 0x90; i < 0x190; i++) | |
| 56 | { | |
| 57 | UINT8 ctabentry = 0x80 | (color_prom[i - 0x90 + 0x100] & 0x0f); | |
| 58 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 59 | } | |
| 67 | 60 | } |
| 68 | 61 | |
| 69 | 62 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "machine/atarigen.h" |
| 9 | 10 | #include "vindictr.h" |
| 10 | 11 | #include "thunderj.h" |
| r1649 | r1650 | |
|---|---|---|
| 52 | 52 | ***************************************************************************/ |
| 53 | 53 | |
| 54 | 54 | #include "driver.h" |
| 55 | #include "deprecat.h" | |
| 55 | 56 | #include "video/konamiic.h" |
| 56 | 57 | |
| 57 | 58 | /* Variables that driver has access to: */ |
| r1649 | r1650 | |
| 905 | 906 | } |
| 906 | 907 | |
| 907 | 908 | |
| 908 | #if | |
| 909 | #ifdef MAME_DEBUG | |
| 909 | 910 | if (input_code_pressed(KEYCODE_Z)) |
| 910 | { int msk = 0; | |
| 911 | { | |
| 912 | int msk = 0; | |
| 911 | 913 | if (input_code_pressed(KEYCODE_Q)) msk |= 1; |
| 912 | 914 | if (input_code_pressed(KEYCODE_W)) msk |= 2; |
| 913 | 915 | if (input_code_pressed(KEYCODE_E)) msk |= 4; |
| r1649 | r1650 | |
| 919 | 921 | popmessage("l %x-%x-%x r %04x %04x %04x", |
| 920 | 922 | (metro_videoregs[0x10/2]&0x30)>>4,(metro_videoregs[0x10/2]&0xc)>>2,metro_videoregs[0x10/2]&3, |
| 921 | 923 | metro_videoregs[0x02/2], metro_videoregs[0x12/2], |
| 922 | *metro_screenctrl); } | |
| 924 | *metro_screenctrl); | |
| 925 | } | |
| 923 | 926 | #endif |
| 924 | 927 | |
| 925 | 928 | if (has_zoom) K053936_0_zoom_draw(bitmap,cliprect,metro_K053936_tilemap,0,0); |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | |
| 11 | 12 | |
| 12 | 13 | static tilemap *tx_tilemap,*bgbot_tilemap ,*bgtop_tilemap; |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "video/resnet.h" | |
| 10 | 11 | |
| 11 | 12 | |
| 12 | 13 | |
| r1649 | r1650 | |
| 36 | 37 | bit 0 -- 1 kohm resistor -- RED |
| 37 | 38 | |
| 38 | 39 | ***************************************************************************/ |
| 40 | ||
| 39 | 41 | PALETTE_INIT( circusc ) |
| 40 | 42 | { |
| 43 | static const int resistances_rg[3] = { 1000, 470, 220 }; | |
| 44 | static const int resistances_b [2] = { 470, 220 }; | |
| 45 | double rweights[3], gweights[3], bweights[2]; | |
| 41 | 46 | int i; |
| 42 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 43 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 44 | 47 | |
| 48 | /* compute the color output resistor weights */ | |
| 49 | compute_resistor_weights(0, 255, -1.0, | |
| 50 | 3, &resistances_rg[0], rweights, 0, 0, | |
| 51 | 3, &resistances_rg[0], gweights, 0, 0, | |
| 52 | 2, &resistances_b[0], bweights, 0, 0); | |
| 45 | 53 | |
| 46 | for (i = 0;i < machine->drv->total_colors;i++) | |
| 54 | /* allocate the colortable */ | |
| 55 | machine->colortable = colortable_alloc(machine, 32); | |
| 56 | ||
| 57 | /* create a lookup table for the palette */ | |
| 58 | for (i = 0; i < 0x20; i++) | |
| 47 | 59 | { |
| 48 | int bit0,bit1,bit2,r,g,b; | |
| 60 | int bit0, bit1, bit2; | |
| 61 | int r, g, b; | |
| 49 | 62 | |
| 50 | 63 | /* red component */ |
| 51 | bit0 = (*color_prom >> 0) & 0x01; | |
| 52 | bit1 = (*color_prom >> 1) & 0x01; | |
| 53 | bit2 = (*color_prom >> 2) & 0x01; | |
| 54 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 64 | bit0 = (color_prom[i] >> 0) & 0x01; | |
| 65 | bit1 = (color_prom[i] >> 1) & 0x01; | |
| 66 | bit2 = (color_prom[i] >> 2) & 0x01; | |
| 67 | r = combine_3_weights(rweights, bit0, bit1, bit2); | |
| 68 | ||
| 55 | 69 | /* green component */ |
| 56 | bit0 = (*color_prom >> 3) & 0x01; | |
| 57 | bit1 = (*color_prom >> 4) & 0x01; | |
| 58 | bit2 = (*color_prom >> 5) & 0x01; | |
| 59 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 70 | bit0 = (color_prom[i] >> 3) & 0x01; | |
| 71 | bit1 = (color_prom[i] >> 4) & 0x01; | |
| 72 | bit2 = (color_prom[i] >> 5) & 0x01; | |
| 73 | g = combine_3_weights(gweights, bit0, bit1, bit2); | |
| 74 | ||
| 60 | 75 | /* blue component */ |
| 61 | bit0 = 0; | |
| 62 | bit1 = (*color_prom >> 6) & 0x01; | |
| 63 | bit2 = (*color_prom >> 7) & 0x01; | |
| 64 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 76 | bit0 = (color_prom[i] >> 6) & 0x01; | |
| 77 | bit1 = (color_prom[i] >> 7) & 0x01; | |
| 78 | b = combine_2_weights(bweights, bit0, bit1); | |
| 65 | 79 | |
| 66 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 67 | color_prom++; | |
| 80 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 68 | 81 | } |
| 69 | 82 | |
| 70 | 83 | /* color_prom now points to the beginning of the lookup table */ |
| 84 | color_prom += 32; | |
| 71 | 85 | |
| 72 | /* sprites */ | |
| 73 | for (i = 0;i < TOTAL_COLORS(1);i++) | |
| 74 | COLOR(1,i) = *(color_prom++) & 0x0f; | |
| 86 | /* characters map to the upper 16 palette entries */ | |
| 87 | for (i = 0; i < 0x100; i++) | |
| 88 | { | |
| 89 | UINT8 ctabentry = color_prom[i] & 0x0f; | |
| 90 | colortable_entry_set_value(machine->colortable, i, ctabentry + 0x10); | |
| 91 | } | |
| 75 | 92 | |
| 76 | /* characters */ | |
| 77 | for (i = 0;i < TOTAL_COLORS(0);i++) | |
| 78 | COLOR(0,i) = (*(color_prom++) & 0x0f) + 0x10; | |
| 93 | /* sprites map to the lower 16 palette entries */ | |
| 94 | for (i = 0x100; i < 0x200; i++) | |
| 95 | { | |
| 96 | UINT8 ctabentry = color_prom[i] & 0x0f; | |
| 97 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 98 | } | |
| 79 | 99 | } |
| 80 | 100 | |
| 81 | 101 | |
| r1649 | r1650 | |
| 90 | 110 | { |
| 91 | 111 | UINT8 attr = circusc_colorram[tile_index]; |
| 92 | 112 | tileinfo->category = (attr & 0x10) >> 4; |
| 93 | SET_TILE_INFO( | |
| 94 | 0, | |
| 95 | circusc_videoram[tile_index] + ((attr & 0x20) << 3), | |
| 96 | attr & 0x0f, | |
| 97 | TILE_FLIPYX((attr & 0xc0) >> 6)); | |
| 113 | tileinfo->group = attr & 0x0f; | |
| 114 | ||
| 115 | SET_TILE_INFO(0, | |
| 116 | circusc_videoram[tile_index] + ((attr & 0x20) << 3), | |
| 117 | attr & 0x0f, | |
| 118 | TILE_FLIPYX((attr & 0xc0) >> 6)); | |
| 98 | 119 | } |
| 99 | 120 | |
| 100 | 121 | |
| r1649 | r1650 | |
| 153 | 174 | |
| 154 | 175 | if ((*circusc_spritebank & 0x01) != 0) |
| 155 | 176 | sr = spriteram; |
| 156 | else sr = spriteram_2; | |
| 177 | else | |
| 178 | sr = spriteram_2; | |
| 157 | 179 | |
| 158 | 180 | for (offs = 0; offs < spriteram_size;offs += 4) |
| 159 | 181 | { |
| 160 | int sx,sy,flipx,flipy; | |
| 182 | int code = sr[offs + 0] + 8 * (sr[offs + 1] & 0x20); | |
| 183 | int color = sr[offs + 1] & 0x0f; | |
| 184 | int sx = sr[offs + 2]; | |
| 185 | int sy = sr[offs + 3]; | |
| 186 | int flipx = sr[offs + 1] & 0x40; | |
| 187 | int flipy = sr[offs + 1] & 0x80; | |
| 161 | 188 | |
| 162 | ||
| 163 | sx = sr[offs + 2]; | |
| 164 | sy = sr[offs + 3]; | |
| 165 | flipx = sr[offs + 1] & 0x40; | |
| 166 | flipy = sr[offs + 1] & 0x80; | |
| 167 | 189 | if (flip_screen) |
| 168 | 190 | { |
| 169 | 191 | sx = 240 - sx; |
| r1649 | r1650 | |
| 174 | 196 | |
| 175 | 197 | |
| 176 | 198 | drawgfx(bitmap,machine->gfx[1], |
| 177 | sr[offs + 0] + 8 * (sr[offs + 1] & 0x20), | |
| 178 | sr[offs + 1] & 0x0f, | |
| 199 | code, color, | |
| 179 | 200 | flipx,flipy, |
| 180 | 201 | sx,sy, |
| 181 | cliprect,TRANSPARENCY_COLOR,0); | |
| 182 | ||
| 202 | cliprect,TRANSPARENCY_PENS, | |
| 203 | colortable_get_transpen_mask(machine->colortable, machine->gfx[1], color, 0)); | |
| 183 | 204 | } |
| 184 | 205 | } |
| 185 | 206 | |
| r1649 | r1650 | |
| 192 | 213 | for (i = 10;i < 32;i++) |
| 193 | 214 | tilemap_set_scrolly(bg_tilemap,i,*circusc_scroll); |
| 194 | 215 | |
| 216 | fillbitmap(bitmap, machine->pens[0], cliprect); | |
| 195 | 217 | tilemap_draw(bitmap,cliprect,bg_tilemap,1,0); |
| 196 | 218 | draw_sprites(machine,bitmap,cliprect); |
| 197 | 219 | tilemap_draw(bitmap,cliprect,bg_tilemap,0,0); |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | **************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "cpu/tms34010/tms34010.h" |
| 9 | 10 | #include "cpu/adsp2100/adsp2100.h" |
| 10 | 11 | #include "audio/williams.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | |
| 3 | 4 | UINT8 *usg_videoram,*usg_charram; |
| 4 | 5 |
| r1649 | r1650 | |
|---|---|---|
| 58 | 58 | ***************************************************************************/ |
| 59 | 59 | |
| 60 | 60 | #include "driver.h" |
| 61 | #include "deprecat.h" | |
| 61 | 62 | |
| 62 | 63 | static int color_bank; |
| 63 | 64 |
| r1649 | r1650 | |
|---|---|---|
| 69 | 69 | |
| 70 | 70 | VIDEO_UPDATE( eolith ) |
| 71 | 71 | { |
| 72 | copybitmap(bitmap,bitmaps[eolith_buffer ^ 1],0,0,0,0,cliprect | |
| 72 | copybitmap(bitmap,bitmaps[eolith_buffer ^ 1],0,0,0,0,cliprect | |
| 73 | 73 | return 0; |
| 74 | 74 | } |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | ***************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "cpu/m6502/m6502.h" |
| 13 | 14 | #include "includes/atari.h" |
| 14 | 15 | #include "video/gtia.h" |
| r1649 | r1650 | |
|---|---|---|
| 6 | 6 | |
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | #include "driver.h" |
| 9 | #include "deprecat.h" | |
| 9 | 10 | |
| 10 | 11 | |
| 11 | 12 | UINT8 *bigevglf_spriteram1; |
| r1649 | r1650 | |
| 89 | 90 | |
| 90 | 91 | VIDEO_UPDATE( bigevglf ) |
| 91 | 92 | { |
| 92 | copybitmap(bitmap,tmp_bitmap[ plane_visible ],0,0,0,0,cliprect | |
| 93 | copybitmap(bitmap,tmp_bitmap[ plane_visible ],0,0,0,0,cliprect | |
| 93 | 94 | draw_sprites(machine,bitmap,cliprect); |
| 94 | 95 | return 0; |
| 95 | 96 | } |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | |
| 11 | 12 | UINT8 *commando_videoram2, *commando_colorram2; |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "machine/atarigen.h" |
| 9 | 10 | #include "slapstic.h" |
| 10 | 11 | #include "atarisy2.h" |
| r1649 | r1650 | |
|---|---|---|
| 443 | 443 | |
| 444 | 444 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); |
| 445 | 445 | |
| 446 | copybitmap(bitmap, sp_bitmap, 0, 0, 0, 0, cliprect | |
| 446 | copybitmap_trans(bitmap, sp_bitmap, 0, 0, 0, 0, cliprect | |
| 447 | 447 | |
| 448 | 448 | tilemap_draw(bitmap, cliprect, fg_tilemap, 0, 0); |
| 449 | 449 | |
| r1649 | r1650 | |
| 458 | 458 | |
| 459 | 459 | tilemap_draw(bitmap, cliprect, bg1_tilemap, 0, 0); |
| 460 | 460 | |
| 461 | copybitmap(bitmap, sp_bitmap, 0, 0, 0, 0, cliprect | |
| 461 | copybitmap_trans(bitmap, sp_bitmap, 0, 0, 0, 0, cliprect | |
| 462 | 462 | |
| 463 | 463 | tilemap_draw(bitmap, cliprect, bg2_tilemap, 0, 0); |
| 464 | 464 | |
| r1649 | r1650 | |
| 477 | 477 | |
| 478 | 478 | tilemap_draw(bitmap, cliprect, bg2_tilemap, 0, 0); |
| 479 | 479 | |
| 480 | copybitmap(bitmap, sp_bitmap, 0, 0, 0, 0, cliprect | |
| 480 | copybitmap_trans(bitmap, sp_bitmap, 0, 0, 0, 0, cliprect | |
| 481 | 481 | |
| 482 | 482 | tilemap_draw(bitmap, cliprect, fg_tilemap, 0, 0); |
| 483 | 483 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | *****************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | |
| 12 | 13 | int mjsister_screen_redraw; |
| 13 | 14 | int mjsister_flip_screen; |
| r1649 | r1650 | |
| 102 | 103 | *BITMAP_ADDR16(bitmap, i, 256+j) = machine->pens[mjsister_colorbank * 0x20]; |
| 103 | 104 | } |
| 104 | 105 | |
| 105 | copybitmap(bitmap,mjsister_tmpbitmap0,f,f,0,0,cliprect,TRANSPARENCY_NONE,0); | |
| 106 | copybitmap(bitmap,mjsister_tmpbitmap1,f,f,2,0,cliprect,TRANSPARENCY_PEN,0); | |
| 106 | copybitmap (bitmap,mjsister_tmpbitmap0,f,f,0,0,cliprect); | |
| 107 | copybitmap_trans(bitmap,mjsister_tmpbitmap1,f,f,2,0,cliprect,0); | |
| 107 | 108 | } |
| 108 | 109 | else |
| 109 | 110 | fillbitmap(bitmap, get_black_pen(machine), &machine->screen[0].visarea); |
| r1649 | r1650 | |
|---|---|---|
| 28 | 28 | ***************************************************************************/ |
| 29 | 29 | |
| 30 | 30 | #include "driver.h" |
| 31 | #include "deprecat.h" | |
| 31 | 32 | |
| 32 | 33 | /* Variables that driver has access to: */ |
| 33 | 34 |
| r0 | r1650 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | Irem M52 hardware | |
| 4 | ||
| 5 | ***************************************************************************/ | |
| 6 | ||
| 7 | #include "driver.h" | |
| 8 | #include "m52.h" | |
| 9 | #include "video/resnet.h" | |
| 10 | ||
| 11 | #define BGHEIGHT 64 | |
| 12 | ||
| 13 | static UINT8 bg1xpos; | |
| 14 | static UINT8 bg1ypos; | |
| 15 | static UINT8 bg2xpos; | |
| 16 | static UINT8 bg2ypos; | |
| 17 | static UINT8 bgcontrol; | |
| 18 | ||
| 19 | static tilemap* bg_tilemap; | |
| 20 | ||
| 21 | ||
| 22 | /************************************* | |
| 23 | * | |
| 24 | * Palette configuration | |
| 25 | * | |
| 26 | *************************************/ | |
| 27 | ||
| 28 | PALETTE_INIT( m52 ) | |
| 29 | { | |
| 30 | const UINT8 *char_pal = color_prom + 0x000; | |
| 31 | const UINT8 *back_pal = color_prom + 0x200; | |
| 32 | const UINT8 *sprite_pal = color_prom + 0x220; | |
| 33 | const UINT8 *sprite_table = color_prom + 0x240; | |
| 34 | static const int resistances_3[3] = { 1000, 470, 220 }; | |
| 35 | static const int resistances_2[2] = { 470, 220 }; | |
| 36 | double weights_r[3], weights_g[3], weights_b[3], scale; | |
| 37 | int i; | |
| 38 | ||
| 39 | machine->colortable = colortable_alloc(machine, 512+32+32); | |
| 40 | ||
| 41 | /* compute palette information for characters/backgrounds */ | |
| 42 | scale = compute_resistor_weights(0, 255, -1.0, | |
| 43 | 3, resistances_3, weights_r, 0, 0, | |
| 44 | 3, resistances_3, weights_g, 0, 0, | |
| 45 | 2, resistances_2, weights_b, 0, 0); | |
| 46 | ||
| 47 | /* character palette */ | |
| 48 | for (i = 0; i < 512; i++) | |
| 49 | { | |
| 50 | UINT8 promval = char_pal[i]; | |
| 51 | int r = combine_3_weights(weights_r, BIT(promval,0), BIT(promval,1), BIT(promval,2)); | |
| 52 | int g = combine_3_weights(weights_g, BIT(promval,3), BIT(promval,4), BIT(promval,5)); | |
| 53 | int b = combine_2_weights(weights_b, BIT(promval,6), BIT(promval,7)); | |
| 54 | ||
| 55 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r,g,b)); | |
| 56 | } | |
| 57 | ||
| 58 | /* background palette */ | |
| 59 | for (i = 0; i < 32; i++) | |
| 60 | { | |
| 61 | UINT8 promval = back_pal[i]; | |
| 62 | int r = combine_3_weights(weights_r, BIT(promval,0), BIT(promval,1), BIT(promval,2)); | |
| 63 | int g = combine_3_weights(weights_g, BIT(promval,3), BIT(promval,4), BIT(promval,5)); | |
| 64 | int b = combine_2_weights(weights_b, BIT(promval,6), BIT(promval,7)); | |
| 65 | ||
| 66 | colortable_palette_set_color(machine->colortable, 512+i, MAKE_RGB(r,g,b)); | |
| 67 | } | |
| 68 | ||
| 69 | /* compute palette information for sprites */ | |
| 70 | compute_resistor_weights(0, 255, scale, | |
| 71 | 2, resistances_2, weights_r, 470, 0, | |
| 72 | 3, resistances_3, weights_g, 470, 0, | |
| 73 | 3, resistances_3, weights_b, 470, 0); | |
| 74 | ||
| 75 | /* sprite palette */ | |
| 76 | for (i = 0; i < 32; i++) | |
| 77 | { | |
| 78 | UINT8 promval = sprite_pal[i]; | |
| 79 | int r = combine_2_weights(weights_r, BIT(promval,6), BIT(promval,7)); | |
| 80 | int g = combine_3_weights(weights_g, BIT(promval,3), BIT(promval,4), BIT(promval,5)); | |
| 81 | int b = combine_3_weights(weights_b, BIT(promval,0), BIT(promval,1), BIT(promval,2)); | |
| 82 | ||
| 83 | colortable_palette_set_color(machine->colortable, 512+32+i, MAKE_RGB(r,g,b)); | |
| 84 | } | |
| 85 | ||
| 86 | /* character lookup table */ | |
| 87 | for (i = 0; i < 512; i++) | |
| 88 | colortable_entry_set_value(machine->colortable, i, i); | |
| 89 | ||
| 90 | /* sprite lookup table */ | |
| 91 | for (i = 0; i < 16*4; i++) | |
| 92 | { | |
| 93 | UINT8 promval = sprite_table[(i & 3) | ((i & ~3) << 1)]; | |
| 94 | colortable_entry_set_value(machine->colortable, 512+i, 512+32+promval); | |
| 95 | } | |
| 96 | ||
| 97 | /* background */ | |
| 98 | /* the palette is a 32x8 PROM with many colors repeated. The address of */ | |
| 99 | /* the colors to pick is as follows: */ | |
| 100 | /* xbb00: mountains */ | |
| 101 | /* 0xxbb: hills */ | |
| 102 | /* 1xxbb: city */ | |
| 103 | colortable_entry_set_value(machine->colortable, 512+16*4+0*4+0, 512); | |
| 104 | colortable_entry_set_value(machine->colortable, 512+16*4+0*4+1, 512+4); | |
| 105 | colortable_entry_set_value(machine->colortable, 512+16*4+0*4+2, 512+8); | |
| 106 | colortable_entry_set_value(machine->colortable, 512+16*4+0*4+3, 512+12); | |
| 107 | colortable_entry_set_value(machine->colortable, 512+16*4+1*4+0, 512); | |
| 108 | colortable_entry_set_value(machine->colortable, 512+16*4+1*4+1, 512+1); | |
| 109 | colortable_entry_set_value(machine->colortable, 512+16*4+1*4+2, 512+2); | |
| 110 | colortable_entry_set_value(machine->colortable, 512+16*4+1*4+3, 512+3); | |
| 111 | colortable_entry_set_value(machine->colortable, 512+16*4+2*4+0, 512); | |
| 112 | colortable_entry_set_value(machine->colortable, 512+16*4+2*4+1, 512+16+1); | |
| 113 | colortable_entry_set_value(machine->colortable, 512+16*4+2*4+2, 512+16+2); | |
| 114 | colortable_entry_set_value(machine->colortable, 512+16*4+2*4+3, 512+16+3); | |
| 115 | } | |
| 116 | ||
| 117 | ||
| 118 | ||
| 119 | /************************************* | |
| 120 | * | |
| 121 | * Tilemap info callback | |
| 122 | * | |
| 123 | *************************************/ | |
| 124 | ||
| 125 | static TILE_GET_INFO( get_tile_info ) | |
| 126 | { | |
| 127 | UINT8 video = videoram[tile_index]; | |
| 128 | UINT8 color = colorram[tile_index]; | |
| 129 | ||
| 130 | int flag = 0; | |
| 131 | int code = 0; | |
| 132 | ||
| 133 | code = video; | |
| 134 | ||
| 135 | if (color & 0x80) | |
| 136 | { | |
| 137 | code |= 0x100; | |
| 138 | } | |
| 139 | ||
| 140 | if (tile_index / 32 <= 6) | |
| 141 | { | |
| 142 | flag |= TILE_FORCE_LAYER0; /* lines 0 to 6 are opaqe? */ | |
| 143 | } | |
| 144 | ||
| 145 | SET_TILE_INFO(0, code, color & 0x3f, flag); | |
| 146 | } | |
| 147 | ||
| 148 | ||
| 149 | ||
| 150 | /************************************* | |
| 151 | * | |
| 152 | * Video startup | |
| 153 | * | |
| 154 | *************************************/ | |
| 155 | ||
| 156 | VIDEO_START( m52 ) | |
| 157 | { | |
| 158 | bg_tilemap = tilemap_create(get_tile_info, tilemap_scan_rows, TILEMAP_TYPE_PEN, 8, 8, 32, 32); | |
| 159 | ||
| 160 | tilemap_set_transparent_pen(bg_tilemap, 0); | |
| 161 | tilemap_set_scrolldx(bg_tilemap, 128 - 1, -1); | |
| 162 | tilemap_set_scrolldy(bg_tilemap, 16, 16); | |
| 163 | tilemap_set_scroll_rows(bg_tilemap, 4); /* only lines 192-256 scroll */ | |
| 164 | ||
| 165 | state_save_register_global(bg1xpos); | |
| 166 | state_save_register_global(bg1ypos); | |
| 167 | state_save_register_global(bg2xpos); | |
| 168 | state_save_register_global(bg2ypos); | |
| 169 | state_save_register_global(bgcontrol); | |
| 170 | } | |
| 171 | ||
| 172 | ||
| 173 | ||
| 174 | /************************************* | |
| 175 | * | |
| 176 | * Scroll registers | |
| 177 | * | |
| 178 | *************************************/ | |
| 179 | ||
| 180 | WRITE8_HANDLER( m52_scroll_w ) | |
| 181 | { | |
| 182 | ||
| 183 | /* | |
| 184 | According to the schematics there is only one video register that holds the X scroll value | |
| 185 | with a NAND gate on the V64 and V128 lines to control when it's read, and when | |
| 186 | 255 (via 8 pull up resistors) is used. | |
| 187 | ||
| 188 | So we set the first 3 quarters to 255 and the last to the scroll value | |
| 189 | */ | |
| 190 | tilemap_set_scrollx(bg_tilemap, 0, 255); | |
| 191 | tilemap_set_scrollx(bg_tilemap, 1, 255); | |
| 192 | tilemap_set_scrollx(bg_tilemap, 2, 255); | |
| 193 | tilemap_set_scrollx(bg_tilemap, 3, -data); | |
| 194 | } | |
| 195 | ||
| 196 | ||
| 197 | ||
| 198 | /************************************* | |
| 199 | * | |
| 200 | * Video RAM write handlers | |
| 201 | * | |
| 202 | *************************************/ | |
| 203 | ||
| 204 | WRITE8_HANDLER( m52_videoram_w ) | |
| 205 | { | |
| 206 | videoram[offset] = data; | |
| 207 | tilemap_mark_tile_dirty(bg_tilemap, offset); | |
| 208 | } | |
| 209 | ||
| 210 | ||
| 211 | WRITE8_HANDLER( m52_colorram_w ) | |
| 212 | { | |
| 213 | colorram[offset] = data; | |
| 214 | tilemap_mark_tile_dirty(bg_tilemap, offset); | |
| 215 | } | |
| 216 | ||
| 217 | ||
| 218 | ||
| 219 | /************************************* | |
| 220 | * | |
| 221 | * Custom protection | |
| 222 | * | |
| 223 | *************************************/ | |
| 224 | ||
| 225 | /* This looks like some kind of protection implemented by a custom chip on the | |
| 226 | scroll board. It mangles the value written to the port m52_bg1xpos_w, as | |
| 227 | follows: result = popcount(value & 0x7f) ^ (value >> 7) */ | |
| 228 | READ8_HANDLER( m52_protection_r ) | |
| 229 | { | |
| 230 | int popcount = 0; | |
| 231 | int temp; | |
| 232 | ||
| 233 | for (temp = bg1xpos & 0x7f; temp != 0; temp >>= 1) | |
| 234 | popcount += temp & 1; | |
| 235 | return popcount ^ (bg1xpos >> 7); | |
| 236 | } | |
| 237 | ||
| 238 | ||
| 239 | ||
| 240 | /************************************* | |
| 241 | * | |
| 242 | * Background control write handlers | |
| 243 | * | |
| 244 | *************************************/ | |
| 245 | ||
| 246 | WRITE8_HANDLER( m52_bg1ypos_w ) | |
| 247 | { | |
| 248 | bg1ypos = data; | |
| 249 | } | |
| 250 | ||
| 251 | WRITE8_HANDLER( m52_bg1xpos_w ) | |
| 252 | { | |
| 253 | bg1xpos = data; | |
| 254 | } | |
| 255 | ||
| 256 | WRITE8_HANDLER( m52_bg2xpos_w ) | |
| 257 | { | |
| 258 | bg2xpos = data; | |
| 259 | } | |
| 260 | ||
| 261 | WRITE8_HANDLER( m52_bg2ypos_w ) | |
| 262 | { | |
| 263 | bg2ypos = data; | |
| 264 | } | |
| 265 | ||
| 266 | WRITE8_HANDLER( m52_bgcontrol_w ) | |
| 267 | { | |
| 268 | bgcontrol = data; | |
| 269 | } | |
| 270 | ||
| 271 | ||
| 272 | ||
| 273 | WRITE8_HANDLER( m52_flipscreen_w ) | |
| 274 | { | |
| 275 | coin_counter_w(0, data & 0x02); | |
| 276 | coin_counter_w(1, data & 0x20); | |
| 277 | ||
| 278 | /* screen flip is handled both by software and hardware */ | |
| 279 | ||
| 280 | flip_screen_set((data ^ ~readinputport(4)) & 1); | |
| 281 | } | |
| 282 | ||
| 283 | ||
| 284 | ||
| 285 | /************************************* | |
| 286 | * | |
| 287 | * Background rendering | |
| 288 | * | |
| 289 | *************************************/ | |
| 290 | ||
| 291 | static void draw_background(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect, int xpos, int ypos, int image) | |
| 292 | { | |
| 293 | rectangle rect; | |
| 294 | ||
| 295 | if (flip_screen) | |
| 296 | { | |
| 297 | xpos = 255 - xpos; | |
| 298 | ypos = 255 - ypos - BGHEIGHT; | |
| 299 | } | |
| 300 | ||
| 301 | xpos += 128; | |
| 302 | ||
| 303 | drawgfx(bitmap, machine->gfx[image], | |
| 304 | 0, 0, | |
| 305 | flip_screen, | |
| 306 | flip_screen, | |
| 307 | xpos, | |
| 308 | ypos, | |
| 309 | cliprect, | |
| 310 | TRANSPARENCY_PEN, 0); | |
| 311 | ||
| 312 | drawgfx(bitmap, machine->gfx[image], | |
| 313 | 0, 0, | |
| 314 | flip_screen, | |
| 315 | flip_screen, | |
| 316 | xpos - 256, | |
| 317 | ypos, | |
| 318 | cliprect, | |
| 319 | TRANSPARENCY_PEN, 0); | |
| 320 | ||
| 321 | rect.min_x = machine->screen[0].visarea.min_x; | |
| 322 | rect.max_x = machine->screen[0].visarea.max_x; | |
| 323 | ||
| 324 | if (flip_screen) | |
| 325 | { | |
| 326 | rect.min_y = ypos - BGHEIGHT; | |
| 327 | rect.max_y = ypos - 1; | |
| 328 | } | |
| 329 | else | |
| 330 | { | |
| 331 | rect.min_y = ypos + BGHEIGHT; | |
| 332 | rect.max_y = ypos + 2 * BGHEIGHT - 1; | |
| 333 | } | |
| 334 | ||
| 335 | fillbitmap(bitmap, machine->remapped_colortable[machine->gfx[image]->color_base + 3], &rect); | |
| 336 | } | |
| 337 | ||
| 338 | ||
| 339 | ||
| 340 | /************************************* | |
| 341 | * | |
| 342 | * Video render | |
| 343 | * | |
| 344 | *************************************/ | |
| 345 | ||
| 346 | VIDEO_UPDATE( m52 ) | |
| 347 | { | |
| 348 | int offs; | |
| 349 | ||
| 350 | fillbitmap(bitmap, 0, cliprect); | |
| 351 | ||
| 352 | if (!(bgcontrol & 0x20)) | |
| 353 | { | |
| 354 | if (!(bgcontrol & 0x10)) | |
| 355 | draw_background(machine, bitmap, cliprect, bg2xpos, bg2ypos, 2); /* distant mountains */ | |
| 356 | ||
| 357 | if (!(bgcontrol & 0x02)) | |
| 358 | draw_background(machine, bitmap, cliprect, bg1xpos, bg1ypos, 3); /* hills */ | |
| 359 | ||
| 360 | if (!(bgcontrol & 0x04)) | |
| 361 | draw_background(machine, bitmap, cliprect, bg1xpos, bg1ypos, 4); /* cityscape */ | |
| 362 | } | |
| 363 | ||
| 364 | tilemap_set_flip(bg_tilemap, flip_screen ? TILEMAP_FLIPX | TILEMAP_FLIPY : 0); | |
| 365 | ||
| 366 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); | |
| 367 | ||
| 368 | /* draw the sprites */ | |
| 369 | for (offs = 0xfc; offs >= 0; offs -= 4) | |
| 370 | { | |
| 371 | int sy = 257 - spriteram[offs]; | |
| 372 | int color = spriteram[offs + 1] & 0x3f; | |
| 373 | int flipx = spriteram[offs + 1] & 0x40; | |
| 374 | int flipy = spriteram[offs + 1] & 0x80; | |
| 375 | int code = spriteram[offs + 2]; | |
| 376 | int sx = spriteram[offs + 3]; | |
| 377 | rectangle clip; | |
| 378 | ||
| 379 | /* sprites from offsets $00-$7F are processed in the upper half of the frame */ | |
| 380 | /* sprites from offsets $80-$FF are processed in the lower half of the frame */ | |
| 381 | clip = *cliprect; | |
| 382 | if (!(offs & 0x80)) | |
| 383 | clip.min_y = 0, clip.max_y = 127; | |
| 384 | else | |
| 385 | clip.min_y = 128, clip.max_y = 255; | |
| 386 | ||
| 387 | /* adjust for flipping */ | |
| 388 | if (flip_screen) | |
| 389 | { | |
| 390 | int temp = clip.min_y; | |
| 391 | clip.min_y = 255 - clip.max_y; | |
| 392 | clip.max_y = 255 - temp; | |
| 393 | flipx = !flipx; | |
| 394 | flipy = !flipy; | |
| 395 | sx = 240 - sx; | |
| 396 | sy = 257 + 11 - sy; | |
| 397 | } | |
| 398 | ||
| 399 | sx += 128; | |
| 400 | ||
| 401 | /* in theory anyways; in practice, some of the molecule-looking guys get clipped */ | |
| 402 | #ifdef SPLIT_SPRITES | |
| 403 | sect_rect(&clip, cliprect); | |
| 404 | #else | |
| 405 | clip = *cliprect; | |
| 406 | #endif | |
| 407 | ||
| 408 | drawgfx(bitmap, machine->gfx[1], | |
| 409 | code, color, flipx, flipy, sx, sy, | |
| 410 | &clip, TRANSPARENCY_PENS, | |
| 411 | colortable_get_transpen_mask(machine->colortable, machine->gfx[1], color, 512+32)); | |
| 412 | } | |
| 413 | return 0; | |
| 414 | } |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "deco16ic.h" |
| 9 | 10 | |
| 10 | 11 | static int twocrude_pri; |
| r1649 | r1650 | |
|---|---|---|
| 135 | 135 | ****************************************************************************/ |
| 136 | 136 | |
| 137 | 137 | #include "driver.h" |
| 138 | #include "deprecat.h" | |
| 138 | 139 | #include "profiler.h" |
| 139 | 140 | #include "machine/atarigen.h" |
| 140 | 141 | #include "cpu/mips/r3000.h" |
| r1649 | r1650 | |
| 837 | 838 | } |
| 838 | 839 | |
| 839 | 840 | /* render the object list */ |
| 840 | copybitmap(bitmap, screen_bitmap, 0, 0, 0, 0, cliprect | |
| 841 | copybitmap(bitmap, screen_bitmap, 0, 0, 0, 0, cliprect | |
| 841 | 842 | return 0; |
| 842 | 843 | } |
| 843 | 844 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ******************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "cpu/z80/z80.h" |
| 12 | 13 | |
| 13 | 14 | |
| r1649 | r1650 | |
| 328 | 329 | ojankoc_screen_refresh = 0; |
| 329 | 330 | } |
| 330 | 331 | |
| 331 | copybitmap(bitmap, ojankoc_tmpbitmap, 0, 0, 0, 0, cliprect | |
| 332 | copybitmap(bitmap, ojankoc_tmpbitmap, 0, 0, 0, 0, cliprect | |
| 332 | 333 | return 0; |
| 333 | 334 | } |
| r1649 | r1650 | |
|---|---|---|
| 91 | 91 | ***************************************************************************/ |
| 92 | 92 | |
| 93 | 93 | #include "driver.h" |
| 94 | #include "deprecat.h" | |
| 94 | 95 | #include "cpu/m6809/m6809.h" |
| 95 | 96 | #include "machine/bfm_bd1.h" // vfd |
| 96 | 97 | #include "video/bfm_adr2.h" |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "includes/n8080.h" |
| 9 | #include <math.h> | |
| 10 | 10 | |
| 11 | 11 | int spacefev_red_screen; |
| 12 | 12 | int spacefev_red_cannon; |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ******************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "nb1413m3.h" |
| 11 | 12 | |
| 12 | 13 | |
| r1649 | r1650 | |
| 553 | 554 | |
| 554 | 555 | if (gfxdraw_mode) |
| 555 | 556 | { |
| 556 | copyscrollbitmap(bitmap, nbmj8891_tmpbitmap0, 0, 0, 0, 0, &machine->screen[0].visarea, TRANSPARENCY_NONE, 0); | |
| 557 | copyscrollbitmap(bitmap, nbmj8891_tmpbitmap1, 0, 0, 1, &scrolly, &machine->screen[0].visarea, TRANSPARENCY_PEN, machine->pens[0xff]); | |
| 557 | copyscrollbitmap (bitmap, nbmj8891_tmpbitmap0, 0, 0, 0, 0, cliprect); | |
| 558 | copyscrollbitmap_trans(bitmap, nbmj8891_tmpbitmap1, 0, 0, 1, &scrolly, cliprect, machine->pens[0xff]); | |
| 558 | 559 | } |
| 559 | 560 | else |
| 560 | { | |
| 561 | copyscrollbitmap(bitmap, nbmj8891_tmpbitmap0, 0, 0, 1, &scrolly, &machine->screen[0].visarea, TRANSPARENCY_NONE, 0); | |
| 562 | } | |
| 561 | copyscrollbitmap(bitmap, nbmj8891_tmpbitmap0, 0, 0, 1, &scrolly, cliprect); | |
| 563 | 562 | } |
| 564 | 563 | else |
| 565 | { | |
| 566 | 564 | fillbitmap(bitmap, machine->pens[0xff], 0); |
| 567 | ||
| 565 | ||
| 568 | 566 | return 0; |
| 569 | 567 | } |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | *******************************************************************************/ |
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | #include "deprecat.h" | |
| 13 | 14 | #include "cpu/m6502/m6502.h" |
| 14 | 15 | |
| 15 | 16 | static int background_color,background_disable; |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "cpu/m6502/m6502.h" |
| 3 | 4 | |
| 4 | 5 |
| r1649 | r1650 | |
|---|---|---|
| 288 | 288 | scroll[6] = 0; |
| 289 | 289 | scroll[7] = 0; |
| 290 | 290 | |
| 291 | copyscrollbitmap(bitmap,background_bitmap,0,0,8,scroll,&machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 292 | copyscrollbitmap(scrolled_background,cvs_collision_background,0,0,8,scroll,&machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 291 | copyscrollbitmap(bitmap,background_bitmap,0,0,8,scroll,&machine->screen[0].visarea); | |
| 292 | copyscrollbitmap(scrolled_background,cvs_collision_background,0,0,8,scroll,&machine->screen[0].visarea); | |
| 293 | 293 | |
| 294 | 294 | /* 2636's */ |
| 295 | 295 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | *************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "turbo.h" |
| 9 | 10 | #include "video/resnet.h" |
| 10 | #include <math.h> | |
| 11 | 11 | |
| 12 | 12 | |
| 13 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 136 | 136 | ***************************************************************************/ |
| 137 | 137 | |
| 138 | 138 | #include "driver.h" |
| 139 | #include "deprecat.h" | |
| 139 | 140 | #include "sound/x1_010.h" |
| 140 | 141 | #include "seta.h" |
| 141 | 142 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | |
| 11 | 12 | UINT8 *tp84_videoram2, *tp84_colorram2; |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "deco16ic.h" |
| 9 | 10 | |
| 10 | 11 | static UINT16 * rohga_spriteram; |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "cpu/m6502/m6502.h" |
| 11 | 12 | |
| 12 | 13 | int vb_scrollx_hi=0; |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include | |
| 8 | #include "deprecat | |
| 9 | 9 | |
| 10 | 10 | UINT16 *nemesis_videoram1b; |
| 11 | 11 | UINT16 *nemesis_videoram2b; |
| r1649 | r1650 | |
|---|---|---|
| 122 | 122 | /* copy the background graphics */ |
| 123 | 123 | if (magmax_vreg & 0x40) /* background disable */ |
| 124 | 124 | { |
| 125 | fillbitmap(bitmap, machine->pens[0], | |
| 125 | fillbitmap(bitmap, machine->pens[0], | |
| 126 | 126 | } |
| 127 | 127 | else |
| 128 | 128 | { |
| r1649 | r1650 | |
| 334 | 334 | color, |
| 335 | 335 | flipx, flipy, |
| 336 | 336 | sx, sy, |
| 337 | | |
| 337 | | |
| 338 | 338 | } |
| 339 | 339 | } |
| 340 | ||
| 340 | 341 | if (!(magmax_vreg & 0x40)) /* background disable */ |
| 341 | { | |
| 342 | copybitmap(bitmap, tmpbitmap, flipscreen,flipscreen,0,0, &machine->screen[0].visarea, TRANSPARENCY_PEN, 0); | |
| 343 | } | |
| 342 | copybitmap_trans(bitmap, tmpbitmap, flipscreen,flipscreen,0,0, cliprect, 0); | |
| 344 | 343 | |
| 345 | 344 | |
| 346 | 345 | /* draw the foreground characters */ |
| r1649 | r1650 | |
| 366 | 365 | 0, |
| 367 | 366 | flipscreen, flipscreen, |
| 368 | 367 | 8 * sx, 8 * sy, |
| 369 | | |
| 368 | | |
| 370 | 369 | } |
| 371 | 370 | } |
| 372 | 371 | return 0; |
| r1649 | r1650 | |
|---|---|---|
| 140 | 140 | ***************************************************************************/ |
| 141 | 141 | |
| 142 | 142 | #include "driver.h" |
| 143 | #include "deprecat.h" | |
| 143 | 144 | #include "deco16ic.h" |
| 144 | 145 | #include "ui.h" |
| 145 | 146 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | |
| 11 | 12 | |
| 12 | 13 | UINT8 *c1942_fgvideoram; |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ******************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | |
| 11 | 12 | static int fromanc2_scrollx[2][4], fromanc2_scrolly[2][4]; |
| 12 | 13 | static int fromanc2_gfxbank[2][4]; |
| r1649 | r1650 | |
|---|---|---|
| 37 | 37 | ***************************************************************************/ |
| 38 | 38 | |
| 39 | 39 | #include "driver.h" |
| 40 | #include "deprecat.h" | |
| 40 | 41 | #include "unico.h" |
| 41 | 42 | |
| 42 | 43 | /* Variables needed by drivers: */ |
| r1649 | r1650 | |
|---|---|---|
| 20 | 20 | ***************************************************************************/ |
| 21 | 21 | |
| 22 | 22 | #include "driver.h" |
| 23 | #include "deprecat.h" | |
| 23 | 24 | #include "realbrk.h" |
| 24 | 25 | |
| 25 | 26 | //UINT16 *realbrk_vram_0, *realbrk_vram_1, *realbrk_vram_2, *realbrk_vregs; |
| r1649 | r1650 | |
| 323 | 324 | (rot & 1 ? scaley : scalex) << 12, (rot & 1 ? scalex : scaley) << 12); |
| 324 | 325 | |
| 325 | 326 | // peek at the unrotated sprite |
| 326 | // copybitmap( bitmap,tmpbitmap0, 0,0, 50+(x * xdim/0x10000),50+(y * ydim/0x10000), cliprect | |
| 327 | // copybitmap_trans( bitmap,tmpbitmap0, 0,0, 50+(x * xdim/0x10000),50+(y * ydim/0x10000), cliprect | |
| 327 | 328 | } |
| 328 | 329 | |
| 329 | 330 | switch( rot ) |
| r1649 | r1650 | |
| 341 | 342 | currx = (sx - (y+1) * ydim) / 0x10000; |
| 342 | 343 | curry = (sy + x * xdim) / 0x10000; |
| 343 | 344 | |
| 344 | copybitmap( bitmap,tmpbitmap1, 0,0, currx,curry, cliprect | |
| 345 | copybitmap_trans( bitmap,tmpbitmap1, 0,0, currx,curry, cliprect | |
| 345 | 346 | break; |
| 346 | 347 | |
| 347 | 348 | case 0x20: // rot 180 |
| r1649 | r1650 | |
| 357 | 358 | currx = (sx - (x+1) * xdim) / 0x10000; |
| 358 | 359 | curry = (sy - (y+1) * ydim) / 0x10000; |
| 359 | 360 | |
| 360 | copybitmap( bitmap,tmpbitmap1, 0,0, currx,curry, cliprect | |
| 361 | copybitmap_trans( bitmap,tmpbitmap1, 0,0, currx,curry, cliprect | |
| 361 | 362 | break; |
| 362 | 363 | |
| 363 | 364 | case 0x30: // rot 270 |
| r1649 | r1650 | |
| 373 | 374 | currx = (sx + y * ydim) / 0x10000; |
| 374 | 375 | curry = (sy - (x+1) * xdim) / 0x10000; |
| 375 | 376 | |
| 376 | copybitmap( bitmap,tmpbitmap1, 0,0, currx,curry, cliprect | |
| 377 | copybitmap_trans( bitmap,tmpbitmap1, 0,0, currx,curry, cliprect | |
| 377 | 378 | break; |
| 378 | 379 | |
| 379 | 380 | default: |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /* Diver Boy - Video Hardware */ |
| 2 | 2 | |
| 3 | 3 | #include "driver.h" |
| 4 | #include "deprecat.h" | |
| 4 | 5 | |
| 5 | 6 | UINT16 *diverboy_spriteram; |
| 6 | 7 | size_t diverboy_spriteram_size; |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | 6 | #include "driver.h" |
| 7 | #include "deprecat.h" | |
| 7 | 8 | |
| 8 | 9 | static tilemap *carjmbre_tilemap; |
| 9 | 10 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | *******************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "cpu/h6280/h6280.h" |
| 12 | 13 | |
| 13 | 14 | static int HuC6270_registers[20]; |
| r1649 | r1650 | |
| 364 | 365 | scrollx=-HuC6270_registers[7]; |
| 365 | 366 | scrolly=-HuC6270_registers[8]+clip->min_y-1; |
| 366 | 367 | |
| 367 | copyscrollbitmap(bitmap,tile_bitmap,1,&scrollx,1,&scrolly,clip | |
| 368 | copyscrollbitmap(bitmap,tile_bitmap,1,&scrollx,1,&scrolly,clip | |
| 368 | 369 | |
| 369 | 370 | /* Todo: Background enable (not used anyway) */ |
| 370 | 371 | |
| r1649 | r1650 | |
| 372 | 373 | if (sb_enable) draw_sprites(machine,bitmap,clip,0); |
| 373 | 374 | |
| 374 | 375 | /* Render background over sprites */ |
| 375 | copyscrollbitmap(bitmap,front_bitmap,1,&scrollx,1,&scrolly,clip, | |
| 376 | copyscrollbitmap_trans(bitmap,front_bitmap,1,&scrollx,1,&scrolly,clip,machine->pens[ | |
| 376 | 377 | |
| 377 | 378 | /* Render high priority sprites, if enabled */ |
| 378 | 379 | if (sb_enable) draw_sprites(machine,bitmap,clip,1); |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | *******************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | |
| 9 | 10 | |
| 10 | 11 | /* |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | |
| 11 | 12 | |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | ***************************************************************************/ |
| 15 | 15 | |
| 16 | 16 | #include "driver.h" |
| 17 | #include "m62.h" | |
| 17 | 18 | #include "video/resnet.h" |
| 18 | 19 | |
| 19 | 20 | UINT8 *m62_tileram; |
| r1649 | r1650 | |
| 51 | 52 | -- 1 kohm resistor -- RED/GREEN/BLUE |
| 52 | 53 | bit 0 -- 2.2kohm resistor -- RED/GREEN/BLUE |
| 53 | 54 | |
| 55 | The resistor values could be verified on a hires pcb picture (spelunkr). | |
| 56 | The schematics also exhibit one pulldown for the sprite color guns. | |
| 57 | Since only either the sprite or tile gun is active, i.e. the other is | |
| 58 | in tri-state, this pulldown resistor also applies to the tile color guns. | |
| 59 | ||
| 60 | Which of the sprite/tilemap color guns is in tri-state mode is determined | |
| 61 | by a pal. There is no good dump of this pal. If both sprite and tilemap | |
| 62 | should be active (i.e. not in tristate) at a time, this would due to the | |
| 63 | pulldown resistor have slightly darker colors as a consequence. | |
| 64 | ||
| 65 | This can explain the spelunkr bug m62_0116u4gre. | |
| 66 | ||
| 67 | The kidnike bug kidniki0104u3gre even looks worse and may imho only explained | |
| 68 | by subpixel effects, i.e. delays when switching the proms into tristate. | |
| 69 | ||
| 70 | Since there are no dumps of the "priority" pal, the above is | |
| 71 | speculation. | |
| 72 | ||
| 73 | Priority PAL | |
| 74 | ||
| 75 | The PAL is at location 4F on the "T" board. The PAL's input are 3 bits | |
| 76 | from tilemap 0, 3 bits from tilemap 1 and A11-A14: | |
| 77 | ||
| 78 | CB0A => 7 20 GND | |
| 79 | CB1A => 8? 14 ==> PROM CS | |
| 80 | CB2A => 9 P 19 ==> Tilemap select 0/1 / to connector | |
| 81 | C14A => 12 A 11 <== Sprite priority out / to connector | |
| 82 | C13A => 4 L 18? ==> Sprite priority in / to connector | |
| 83 | C12A => 5 10 GND | |
| 84 | C11A => 6 | |
| 85 | CB0D => 1 | |
| 86 | CB1D => 2 | |
| 87 | CB2D => 3 | |
| 88 | ||
| 54 | 89 | ***************************************************************************/ |
| 55 | 90 | |
| 56 | 91 | |
| r1649 | r1650 | |
| 58 | 93 | { |
| 59 | 94 | RES_NET_VCC_5V | RES_NET_VIN_TTL_OUT, |
| 60 | 95 | { |
| 61 | { RES_NET_AMP_NONE, 0, 0, 4, { 22000, 1000, 470, 220 } }, | |
| 62 | { RES_NET_AMP_NONE, 0, 0, 4, { 22000, 1000, 470, 220 } }, | |
| 63 | { RES_NET_AMP_NONE, 0, 0, 4, { 22000, 1000, 470, 220 } } | |
| 96 | { RES_NET_AMP_NONE, 0, 470, 4, { 2200, 1000, 470, 220 } }, | |
| 97 | { RES_NET_AMP_NONE, 0, 470, 4, { 2200, 1000, 470, 220 } }, | |
| 98 | { RES_NET_AMP_NONE, 0, 470, 4, { 2200, 1000, 470, 220 } } | |
| 64 | 99 | } |
| 65 | 100 | }; |
| 66 | 101 | |
| r1649 | r1650 | |
| 69 | 104 | { |
| 70 | 105 | RES_NET_VCC_5V | RES_NET_VIN_TTL_OUT, |
| 71 | 106 | { |
| 72 | { RES_NET_AMP_NONE, 0, 470, 4, { 22000, 1000, 470, 220 } }, | |
| 73 | { RES_NET_AMP_NONE, 0, 470, 4, { 22000, 1000, 470, 220 } }, | |
| 74 | { RES_NET_AMP_NONE, 0, 470, 4, { 22000, 1000, 470, 220 } } | |
| 107 | { RES_NET_AMP_NONE, 0, 470, 4, { 2200, 1000, 470, 220 } }, | |
| 108 | { RES_NET_AMP_NONE, 0, 470, 4, { 2200, 1000, 470, 220 } }, | |
| 109 | { RES_NET_AMP_NONE, 0, 470, 4, { 2200, 1000, 470, 220 } } | |
| 75 | 110 | } |
| 76 | 111 | }; |
| 77 | 112 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "cpu/z80/z80.h" |
| 9 | 10 | #include "includes/astrocde.h" |
| 10 | 11 | #include "sound/astrocde.h" |
| r1649 | r1650 | |
|---|---|---|
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | |
| 144 | copyscrollbitmap(bitmap,tmpbitmap,1,&scrollx,1,&scrolly, | |
| 144 | copyscrollbitmap(bitmap,tmpbitmap,1,&scrollx,1,&scrolly, | |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | |
| r1649 | r1650 | |
| 165 | 165 | spriteram[offs + 0] & 0x0f, |
| 166 | 166 | flipx,flipy, |
| 167 | 167 | sx,sy, |
| 168 | | |
| 168 | | |
| 169 | 169 | } |
| 170 | 170 | } |
| 171 | 171 | |
| r1649 | r1650 | |
| 198 | 198 | (megazone_colorram2[offs] & 0x0f) + 0x10, |
| 199 | 199 | flipx,flipy, |
| 200 | 200 | 8*sx,8*sy, |
| 201 | | |
| 201 | cliprect,TRANSPARENCY_NONE,0); | |
| 202 | 202 | offs++; |
| 203 | 203 | } |
| 204 | 204 | } |
| r1649 | r1650 | |
|---|---|---|
| 333 | 333 | } |
| 334 | 334 | |
| 335 | 335 | if (pixram_sel) |
| 336 | copybitmap(bitmap,pixel_bitmap1,f,f,fortyl_xoffset,0,cliprect | |
| 336 | copybitmap(bitmap,pixel_bitmap1,f,f,fortyl_xoffset,0,cliprect | |
| 337 | 337 | else |
| 338 | copybitmap(bitmap,pixel_bitmap2,f,f,fortyl_xoffset,0,cliprect | |
| 338 | copybitmap(bitmap,pixel_bitmap2,f,f,fortyl_xoffset,0,cliprect | |
| 339 | 339 | } |
| 340 | 340 | |
| 341 | 341 | VIDEO_UPDATE( fortyl ) |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ******************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "nb1413m3.h" |
| 11 | 12 | |
| 12 | 13 | |
| r1649 | r1650 | |
| 697 | 698 | if (mjsikaku_flipscreen) scrolly = mjsikaku_scrolly; |
| 698 | 699 | else scrolly = (-mjsikaku_scrolly) & 0xff; |
| 699 | 700 | |
| 700 | copybitmap(bitmap, mjsikaku_tmpbitmap, 0, 0, 0, scrolly, cliprect, TRANSPARENCY_NONE, 0); | |
| 701 | copybitmap(bitmap, mjsikaku_tmpbitmap, 0, 0, 0, scrolly - 256, cliprect, TRANSPARENCY_NONE, 0); | |
| 701 | copybitmap(bitmap, mjsikaku_tmpbitmap, 0, 0, 0, scrolly, cliprect); | |
| 702 | copybitmap(bitmap, mjsikaku_tmpbitmap, 0, 0, 0, scrolly - 256, cliprect); | |
| 702 | 703 | } |
| 703 | 704 | else |
| 704 | 705 | { |
| r1649 | r1650 | |
|---|---|---|
| 6 | 6 | ***************************************************************************/ |
| 7 | 7 | |
| 8 | 8 | #include "driver.h" |
| 9 | #include "deprecat.h" | |
| 9 | 10 | #include "jalblend.c" |
| 10 | 11 | |
| 11 | 12 | #define BG_SCROLLX_LSB 0x308 |
| r1649 | r1650 | |
|---|---|---|
| 46 | 46 | ***************************************************************************/ |
| 47 | 47 | |
| 48 | 48 | #include "driver.h" |
| 49 | #include "deprecat.h" | |
| 49 | 50 | #include "taitoic.h" |
| 50 | 51 | |
| 51 | 52 |
| r1649 | r1650 | |
|---|---|---|
| 58 | 58 | **************************************************************************/ |
| 59 | 59 | |
| 60 | 60 | #include "driver.h" |
| 61 | #include "deprecat.h" | |
| 61 | 62 | |
| 62 | 63 | /* Variables only used here */ |
| 63 | 64 | static tilemap *bg_tilemap, *fg_tilemap, *tx_tilemap; |
| r1649 | r1650 | |
|---|---|---|
| 182 | 182 | |
| 183 | 183 | /* Update screen */ |
| 184 | 184 | |
| 185 | copybitmap(bitmap,effect_bitmap,0,0,0,0,&machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 186 | copybitmap(bitmap,background_bitmap,0,0,0,0,&machine->screen[0].visarea,TRANSPARENCY_PEN,0); | |
| 185 | copybitmap (bitmap,effect_bitmap, 0,0,0,0,cliprect); | |
| 186 | copybitmap_trans(bitmap,background_bitmap,0,0,0,0,cliprect,0); | |
| 187 | 187 | |
| 188 | 188 | /* 2636's */ |
| 189 | 189 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "video/ppu2c0x.h" |
| 3 | 4 | |
| 4 | 5 | /* from machine */ |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "victory.h" |
| 9 | 10 | |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | 2 | |
| 3 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 4 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 5 | ||
| 6 | 3 | UINT8 *c1943_scrollx; |
| 7 | 4 | UINT8 *c1943_scrolly; |
| 8 | 5 | UINT8 *c1943_bgscrollx; |
| r1649 | r1650 | |
| 25 | 22 | bit 0 -- 2.2kohm resistor -- RED/GREEN/BLUE |
| 26 | 23 | |
| 27 | 24 | ***************************************************************************/ |
| 25 | ||
| 28 | 26 | PALETTE_INIT( 1943 ) |
| 29 | 27 | { |
| 30 | 28 | int i; |
| 31 | 29 | |
| 32 | for (i = 0; i < machine->drv->total_colors; i++) | |
| 30 | /* allocate the colortable */ | |
| 31 | machine->colortable = colortable_alloc(machine, 0x100); | |
| 32 | ||
| 33 | for (i = 0; i < 0x100; i++) | |
| 33 | 34 | { |
| 34 | int bit0, bit1, bit2, bit3, r, g, b; | |
| 35 | int bit0, bit1, bit2, bit3; | |
| 36 | int r, g, b; | |
| 35 | 37 | |
| 36 | bit0 = (color_prom[i] >> 0) & 0x01; | |
| 37 | bit1 = (color_prom[i] >> 1) & 0x01; | |
| 38 | bit2 = (color_prom[i] >> 2) & 0x01; | |
| 39 | bit3 = (color_prom[i] >> 3) & 0x01; | |
| 40 | ||
| 38 | /* red component */ | |
| 39 | bit0 = (color_prom[i + 0x000] >> 0) & 0x01; | |
| 40 | bit1 = (color_prom[i + 0x000] >> 1) & 0x01; | |
| 41 | bit2 = (color_prom[i + 0x000] >> 2) & 0x01; | |
| 42 | bit3 = (color_prom[i + 0x000] >> 3) & 0x01; | |
| 41 | 43 | r = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 42 | 44 | |
| 43 | bit0 = (color_prom[i + machine->drv->total_colors] >> 0) & 0x01; | |
| 44 | bit1 = (color_prom[i + machine->drv->total_colors] >> 1) & 0x01; | |
| 45 | bit2 = (color_prom[i + machine->drv->total_colors] >> 2) & 0x01; | |
| 46 | bit3 = (color_prom[i + machine->drv->total_colors] >> 3) & 0x01; | |
| 47 | ||
| 45 | /* green component */ | |
| 46 | bit0 = (color_prom[i + 0x100] >> 0) & 0x01; | |
| 47 | bit1 = (color_prom[i + 0x100] >> 1) & 0x01; | |
| 48 | bit2 = (color_prom[i + 0x100] >> 2) & 0x01; | |
| 49 | bit3 = (color_prom[i + 0x100] >> 3) & 0x01; | |
| 48 | 50 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 49 | 51 | |
| 50 | bit0 = (color_prom[i + 2*machine->drv->total_colors] >> 0) & 0x01; | |
| 51 | bit1 = (color_prom[i + 2*machine->drv->total_colors] >> 1) & 0x01; | |
| 52 | bit2 = (color_prom[i + 2*machine->drv->total_colors] >> 2) & 0x01; | |
| 53 | bit3 = (color_prom[i + 2*machine->drv->total_colors] >> 3) & 0x01; | |
| 54 | ||
| 52 | /* blue component */ | |
| 53 | bit0 = (color_prom[i + 0x200] >> 0) & 0x01; | |
| 54 | bit1 = (color_prom[i + 0x200] >> 1) & 0x01; | |
| 55 | bit2 = (color_prom[i + 0x200] >> 2) & 0x01; | |
| 56 | bit3 = (color_prom[i + 0x200] >> 3) & 0x01; | |
| 55 | 57 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 56 | 58 | |
| 57 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); | |
| 59 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 58 | 60 | } |
| 59 | 61 | |
| 60 | color_prom += 3*machine->drv->total_colors; | |
| 61 | 62 | /* color_prom now points to the beginning of the lookup table */ |
| 63 | color_prom += 0x300; | |
| 62 | 64 | |
| 63 | /* characters use colors 64-79 */ | |
| 64 | for (i = 0;i < TOTAL_COLORS(0);i++) | |
| 65 | COLOR(0,i) = *(color_prom++) + 64; | |
| 66 | color_prom += 128; /* skip the bottom half of the PROM - not used */ | |
| 65 | /* characters use colors 0x40-0x4f */ | |
| 66 | for (i = 0x00; i < 0x80; i++) | |
| 67 | { | |
| 68 | UINT8 ctabentry = (color_prom[i] & 0x0f) | 0x40; | |
| 69 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 70 | } | |
| 67 | 71 | |
| 68 | /* foreground tiles use colors 0-63 */ | |
| 69 | for (i = 0;i < TOTAL_COLORS(1);i++) | |
| 72 | /* foreground tiles use colors 0x00-0x3f */ | |
| 73 | for (i = 0x80; i < 0x180; i++) | |
| 70 | 74 | { |
| 71 | /* color 0 MUST map to pen 0 in order for transparency to work */ | |
| 72 | if (i % machine->gfx[1]->color_granularity == 0) | |
| 73 | COLOR(1,i) = 0; | |
| 74 | else | |
| 75 | COLOR(1,i) = color_prom[0] + 16 * (color_prom[256] & 0x03); | |
| 76 | color_prom++; | |
| 75 | UINT8 ctabentry = ((color_prom[0x200 + (i - 0x080)] & 0x03) << 4) | | |
| 76 | ((color_prom[0x100 + (i - 0x080)] & 0x0f) << 0); | |
| 77 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 77 | 78 | } |
| 78 | color_prom += TOTAL_COLORS(1); | |
| 79 | 79 | |
| 80 | /* background tiles use colors 0-63 */ | |
| 81 | for (i = 0;i < TOTAL_COLORS(2);i++) | |
| 80 | /* background tiles also use colors 0x00-0x3f */ | |
| 81 | for (i = 0x180; i < 0x280; i++) | |
| 82 | 82 | { |
| 83 | COLOR(2,i) = color_prom[0] + 16 * (color_prom[256] & 0x03); | |
| 84 | color_prom++; | |
| 83 | UINT8 ctabentry = ((color_prom[0x400 + (i - 0x180)] & 0x03) << 4) | | |
| 84 | ((color_prom[0x300 + (i - 0x180)] & 0x0f) << 0); | |
| 85 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 85 | 86 | } |
| 86 | color_prom += TOTAL_COLORS(2); | |
| 87 | 87 | |
| 88 | /* sprites use colors 128-255 */ | |
| 89 | /* bit 3 of BMPROM.07 selects priority over the background, but we handle */ | |
| 90 | /* it differently for speed reasons */ | |
| 91 | for (i = 0;i < TOTAL_COLORS(3);i++) | |
| 88 | /* sprites use colors 0x80-0xff | |
| 89 | bit 3 of BMPROM.07 selects priority over the background, | |
| 90 | but we handle it differently for speed reasons */ | |
| 91 | for (i = 0x280; i < 0x380; i++) | |
| 92 | 92 | { |
| 93 | COLOR(3,i) = color_prom[0] + 16 * (color_prom[256] & 0x07) + 128; | |
| 94 | color_prom++; | |
| 93 | UINT8 ctabentry = ((color_prom[0x600 + (i - 0x280)] & 0x07) << 4) | | |
| 94 | ((color_prom[0x500 + (i - 0x280)] & 0x0f) << 0) | 0x80; | |
| 95 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 95 | 96 | } |
| 96 | color_prom += TOTAL_COLORS(3); | |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | WRITE8_HANDLER( c1943_videoram_w ) |
| r1649 | r1650 | |
| 165 | 165 | int color = (attr & 0x3c) >> 2; |
| 166 | 166 | int flags = TILE_FLIPYX((attr & 0xc0) >> 6); |
| 167 | 167 | |
| 168 | tileinfo->group = color; | |
| 168 | 169 | SET_TILE_INFO(1, code, color, flags); |
| 169 | 170 | } |
| 170 | 171 | |
| r1649 | r1650 | |
| 188 | 189 | fg_tilemap = tilemap_create(c1943_get_fg_tile_info, tilemap_scan_rows, |
| 189 | 190 | TILEMAP_TYPE_PEN, 8, 8, 32, 32); |
| 190 | 191 | |
| 191 | tilemap_ | |
| 192 | colortable_configure_tilemap_g | |
| 192 | 193 | tilemap_set_transparent_pen(fg_tilemap, 0); |
| 193 | 194 | } |
| 194 | 195 |
| r1649 | r1650 | |
|---|---|---|
| 25 | 25 | ***************************************************************************/ |
| 26 | 26 | |
| 27 | 27 | #include "driver.h" |
| 28 | #include "deprecat.h" | |
| 28 | 29 | |
| 29 | 30 | |
| 30 | 31 | UINT8 *pacland_videoram,*pacland_videoram2,*pacland_spriteram; |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "deco16ic.h" |
| 9 | 10 | #include "cninja.h" |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | 6 | #include "driver.h" |
| 7 | #include "deprecat.h" | |
| 7 | 8 | |
| 8 | 9 | static tilemap *popper_p123_tilemap, *popper_p0_tilemap, *popper_ol_p123_tilemap, *popper_ol_p0_tilemap; |
| 9 | 10 | UINT8 *popper_videoram, *popper_attribram, *popper_ol_videoram, *popper_ol_attribram, *popper_spriteram; |
| r1649 | r1650 | |
|---|---|---|
| 25 | 25 | PALETTE_INIT( ddrible ) |
| 26 | 26 | { |
| 27 | 27 | int i; |
| 28 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 29 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 30 | 28 | |
| 29 | /* allocate the colortable */ | |
| 30 | machine->colortable = colortable_alloc(machine, 0x40); | |
| 31 | 31 | |
| 32 | /* build the lookup table for sprites. Palette is dynamic. */ | |
| 33 | for (i = 0;i < TOTAL_COLORS(3);i++) | |
| 34 | COLOR(3,i) = (*(color_prom++) & 0x0f); | |
| 32 | for (i = 0x10; i < 0x40; i++) | |
| 33 | colortable_entry_set_value(machine->colortable, i, i); | |
| 34 | ||
| 35 | /* sprite #2 uses pens 0x00-0x0f */ | |
| 36 | for (i = 0x40; i < 0x140; i++) | |
| 37 | { | |
| 38 | UINT8 ctabentry = color_prom[i - 0x40] & 0x0f; | |
| 39 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 40 | } | |
| 35 | 41 | } |
| 36 | 42 | |
| 43 | ||
| 44 | static void set_pens(running_machine *machine) | |
| 45 | { | |
| 46 | int i; | |
| 47 | ||
| 48 | for (i = 0x00; i < 0x80; i += 2) | |
| 49 | { | |
| 50 | UINT16 data = paletteram[i | 1] | (paletteram[i] << 8); | |
| 51 | ||
| 52 | rgb_t color = MAKE_RGB(pal5bit(data >> 0), pal5bit(data >> 5), pal5bit(data >> 10)); | |
| 53 | ||
| 54 | colortable_palette_set_color(machine->colortable, i >> 1, color); | |
| 55 | } | |
| 56 | } | |
| 57 | ||
| 58 | ||
| 37 | 59 | WRITE8_HANDLER( K005885_0_w ) |
| 38 | 60 | { |
| 39 | 61 | switch (offset){ |
| r1649 | r1650 | |
| 230 | 252 | |
| 231 | 253 | VIDEO_UPDATE( ddrible ) |
| 232 | 254 | { |
| 255 | set_pens(machine); | |
| 256 | ||
| 233 | 257 | tilemap_set_flip(fg_tilemap, (ddribble_vregs[0][4] & 0x08) ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0); |
| 234 | 258 | tilemap_set_flip(bg_tilemap, (ddribble_vregs[1][4] & 0x08) ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0); |
| 235 | 259 |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | * video hardware for DJ Boy |
| 5 | 5 | */ |
| 6 | 6 | #include "driver.h" |
| 7 | #include "deprecat.h" | |
| 7 | 8 | #include "kan_pand.h" |
| 8 | 9 | |
| 9 | 10 | static UINT8 djboy_videoreg, djboy_scrollx, djboy_scrolly; |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | |
| 11 | 12 | extern int sidearms_gameid; |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | ***************************************************************************/ |
| 15 | 15 | |
| 16 | 16 | #include "driver.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | #include "deco16ic.h" |
| 18 | 19 | |
| 19 | 20 | static void draw_sprites(running_machine *machine, mame_bitmap *bitmap,const rectangle *cliprect) |
| r1649 | r1650 | |
|---|---|---|
| 238 | 238 | |
| 239 | 239 | draw_sprites(machine, bitmap, cliprect); |
| 240 | 240 | |
| 241 | copybitmap(bitmap,pixbitmap,0,0,0,0,cliprect, | |
| 241 | copybitmap_trans(bitmap,pixbitmap,0,0,0,0,cliprect,machine->pens[P | |
| 242 | 242 | return 0; |
| 243 | 243 | } |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "deco16ic.h" |
| 3 | 4 | |
| 4 | 5 | static void draw_sprites(running_machine* machine, mame_bitmap *bitmap,const rectangle *cliprect) |
| r1649 | r1650 | |
|---|---|---|
| 714 | 714 | scrolly[i] = -taitosj_colscrolly[32 * which + i] - taitosj_scroll[2 * which + 1]; |
| 715 | 715 | } |
| 716 | 716 | |
| 717 | copyscrollbitmap(bitmap, taitosj_layer_bitmap[which], 1, &scrollx, 32, scrolly, cliprect, | |
| 717 | copyscrollbitmap_trans(bitmap, taitosj_layer_bitmap[which], 1, &scrollx, 32, scrolly, cliprect, machine->pens[ | |
| 718 | 718 | |
| 719 | 719 | /* store parts covered with sprites for sprites/layers collision detection */ |
| 720 | 720 | for (i = 0; i < 0x20; i++) |
| r1649 | r1650 | |
| 722 | 722 | if ((i >= 0x10) && (i <= 0x17)) continue; /* no sprites here */ |
| 723 | 723 | |
| 724 | 724 | if (sprites_on[i]) |
| 725 | copyscrollbitmap(sprite_layer_collbitmap2[which], taitosj_layer_bitmap[which], 1, &scrollx, 32, scrolly, &sprite_areas[i] | |
| 725 | copyscrollbitmap(sprite_layer_collbitmap2[which], taitosj_layer_bitmap[which], 1, &scrollx, 32, scrolly, &sprite_areas[i] | |
| 726 | 726 | } |
| 727 | 727 | } |
| 728 | 728 | } |
| r1649 | r1650 | |
| 758 | 758 | } |
| 759 | 759 | |
| 760 | 760 | scrolly = taitosj_scroll[2 * which + 1]; /* always 0 */ |
| 761 | copyscrollbitmap(bitmap, taitosj_layer_bitmap[which], 32 * 8, scrollx, 1, &scrolly, cliprect, | |
| 761 | copyscrollbitmap_trans(bitmap, taitosj_layer_bitmap[which], 32 * 8, scrollx, 1, &scrolly, cliprect, machine->pens[ | |
| 762 | 762 | |
| 763 | 763 | /* store parts covered with sprites for sprites/layers collision detection */ |
| 764 | 764 | for (i = 0; i < 0x20; i++) |
| r1649 | r1650 | |
| 766 | 766 | if ((i >= 0x10) && (i <= 0x17)) continue; /* no sprites here */ |
| 767 | 767 | |
| 768 | 768 | if (sprites_on[i]) |
| 769 | copyscrollbitmap(sprite_layer_collbitmap2[which], taitosj_layer_bitmap[which], 32 * 8, scrollx, 1, &scrolly, &sprite_areas[i] | |
| 769 | copyscrollbitmap(sprite_layer_collbitmap2[which], taitosj_layer_bitmap[which], 32 * 8, scrollx, 1, &scrolly, &sprite_areas[i] | |
| 770 | 770 | } |
| 771 | 771 | } |
| 772 | 772 | } |
| r1649 | r1650 | |
|---|---|---|
| 15 | 15 | ***************************************************************************/ |
| 16 | 16 | |
| 17 | 17 | #include "driver.h" |
| 18 | #include "deprecat.h" | |
| 18 | 19 | |
| 19 | 20 | |
| 20 | 21 | static const rectangle bottomvisiblearea = |
| r1649 | r1650 | |
| 228 | 229 | rear_refresh=0; |
| 229 | 230 | } |
| 230 | 231 | |
| 231 | copyscrollbitmap(bitmap,bg_bitmap,1,&scrollx,0,0,&bottomvisiblearea | |
| 232 | copyscrollbitmap(bitmap,bg_bitmap,1,&scrollx,0,0,&bottomvisiblearea | |
| 232 | 233 | } |
| 233 | 234 | |
| 234 | 235 |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | **************************************************************************/ |
| 13 | 13 | |
| 14 | 14 | #include "driver.h" |
| 15 | #include "deprecat.h" | |
| 15 | 16 | #include "avgdvg.h" |
| 16 | 17 | #include "video/vector.h" |
| 17 | 18 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ******************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "nb1413m3.h" |
| 11 | 12 | |
| 12 | 13 | |
| r1649 | r1650 | |
| 334 | 335 | scrolly = (( nbmj8991_scrolly) + 0x0f1) & 0x1ff; |
| 335 | 336 | } |
| 336 | 337 | |
| 337 | copyscrollbitmap(bitmap, nbmj8991_tmpbitmap, 1, &scrollx, 1, &scrolly, | |
| 338 | copyscrollbitmap(bitmap, nbmj8991_tmpbitmap, 1, &scrollx, 1, &scrolly, | |
| 338 | 339 | } |
| 339 | 340 | else |
| 340 | { | |
| 341 | 341 | fillbitmap(bitmap, machine->pens[0x00], 0); |
| 342 | ||
| 342 | ||
| 343 | 343 | return 0; |
| 344 | 344 | } |
| 345 | 345 | |
| r1649 | r1650 | |
| 375 | 375 | scrolly = (( nbmj8991_scrolly) + 0x0f1) & 0x1ff; |
| 376 | 376 | } |
| 377 | 377 | |
| 378 | copyscrollbitmap(bitmap, nbmj8991_tmpbitmap, 1, &scrollx, 1, &scrolly, | |
| 378 | copyscrollbitmap(bitmap, nbmj8991_tmpbitmap, 1, &scrollx, 1, &scrolly, | |
| 379 | 379 | } |
| 380 | 380 | else |
| 381 | { | |
| 382 | 381 | fillbitmap(bitmap, machine->pens[0x00], 0); |
| 383 | ||
| 382 | ||
| 384 | 383 | return 0; |
| 385 | 384 | } |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | |
| 3 | 4 | |
| 4 | 5 | |
| r1649 | r1650 | |
| 107 | 108 | |
| 108 | 109 | VIDEO_UPDATE( blockout ) |
| 109 | 110 | { |
| 110 | copybitmap(bitmap,tmpbitmap,0,0,0,0,cliprect | |
| 111 | copybitmap(bitmap,tmpbitmap,0,0,0,0,cliprect | |
| 111 | 112 | |
| 112 | 113 | { |
| 113 | 114 | int x,y; |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "video/konamiic.h" |
| 3 | //#include "f1gp.h" | |
| 4 | 4 | |
| 5 | 5 | |
| 6 | 6 | UINT16 *f1gp_spr1vram,*f1gp_spr2vram,*f1gp_spr1cgram,*f1gp_spr2cgram; |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /* video hardware for Namco System II */ |
| 2 | 2 | |
| 3 | 3 | #include "driver.h" |
| 4 | #include "deprecat.h" | |
| 4 | 5 | #include "namcos2.h" |
| 5 | 6 | #include "namcoic.h" |
| 6 | 7 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "exidy440.h" |
| 9 | 10 | |
| 10 | 11 | #define SPRITE_COUNT 40 |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | |
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | #include "driver.h" |
| 7 | #include "deprecat.h" | |
| 7 | 8 | #include "profiler.h" |
| 8 | 9 | #include "render.h" |
| 9 | 10 | #include "cpu/i86/i86.h" |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "deco16ic.h" |
| 9 | 10 | |
| 10 | 11 | /******************************************************************************/ |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "video/resnet.h" | |
| 2 | 3 | |
| 3 | 4 | UINT8 *gotya_scroll; |
| 4 | 5 | UINT8 *gotya_videoram2; |
| r1649 | r1650 | |
| 11 | 12 | |
| 12 | 13 | Convert the color PROMs into a more useable format. |
| 13 | 14 | |
| 14 | I'm using Pac Man resistor values | |
| 15 | ||
| 16 | 15 | ***************************************************************************/ |
| 17 | 16 | PALETTE_INIT( gotya ) |
| 18 | 17 | { |
| 18 | static const int resistances_rg[3] = { 1000, 470, 220 }; | |
| 19 | static const int resistances_b [2] = { 470, 220 }; | |
| 20 | double rweights[3], gweights[3], bweights[2]; | |
| 19 | 21 | int i; |
| 20 | 22 | |
| 21 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 22 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 23 | /* compute the color output resistor weights */ | |
| 24 | compute_resistor_weights(0, 255, -1.0, | |
| 25 | 3, &resistances_rg[0], rweights, 0, 0, | |
| 26 | 3, &resistances_rg[0], gweights, 0, 0, | |
| 27 | 2, &resistances_b[0], bweights, 0, 0); | |
| 23 | 28 | |
| 24 | for (i = 0; i < machine->drv->total_colors; i++) | |
| 29 | /* allocate the colortable */ | |
| 30 | machine->colortable = colortable_alloc(machine, 32); | |
| 31 | ||
| 32 | /* create a lookup table for the palette */ | |
| 33 | for (i = 0; i < 0x20; i++) | |
| 25 | 34 | { |
| 26 | int bit0, bit1, bit2, r, g, b; | |
| 35 | int bit0, bit1, bit2; | |
| 36 | int r, g, b; | |
| 27 | 37 | |
| 28 | 38 | /* red component */ |
| 39 | bit0 = (color_prom[i] >> 0) & 0x01; | |
| 40 | bit1 = (color_prom[i] >> 1) & 0x01; | |
| 41 | bit2 = (color_prom[i] >> 2) & 0x01; | |
| 42 | r = combine_3_weights(rweights, bit0, bit1, bit2); | |
| 29 | 43 | |
| 30 | bit0 = (*color_prom >> 0) & 0x01; | |
| 31 | bit1 = (*color_prom >> 1) & 0x01; | |
| 32 | bit2 = (*color_prom >> 2) & 0x01; | |
| 33 | ||
| 34 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 35 | ||
| 36 | 44 | /* green component */ |
| 45 | bit0 = (color_prom[i] >> 3) & 0x01; | |
| 46 | bit1 = (color_prom[i] >> 4) & 0x01; | |
| 47 | bit2 = (color_prom[i] >> 5) & 0x01; | |
| 48 | g = combine_3_weights(gweights, bit0, bit1, bit2); | |
| 37 | 49 | |
| 38 | bit0 = (*color_prom >> 3) & 0x01; | |
| 39 | bit1 = (*color_prom >> 4) & 0x01; | |
| 40 | bit2 = (*color_prom >> 5) & 0x01; | |
| 41 | ||
| 42 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 43 | ||
| 44 | 50 | /* blue component */ |
| 51 | bit0 = (color_prom[i] >> 6) & 0x01; | |
| 52 | bit1 = (color_prom[i] >> 7) & 0x01; | |
| 53 | b = combine_2_weights(bweights, bit0, bit1); | |
| 45 | 54 | |
| 46 | bit0 = 0; | |
| 47 | bit1 = (*color_prom >> 6) & 0x01; | |
| 48 | bit2 = (*color_prom >> 7) & 0x01; | |
| 49 | ||
| 50 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 51 | ||
| 52 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); | |
| 53 | ||
| 54 | color_prom++; | |
| 55 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 55 | 56 | } |
| 56 | 57 | |
| 57 | color_prom += 0x18; | |
| 58 | 58 | /* color_prom now points to the beginning of the lookup table */ |
| 59 | color_prom += 32; | |
| 59 | 60 | |
| 60 | /* character lookup table */ | |
| 61 | /* sprites use the same color lookup table as characters */ | |
| 62 | ||
| 63 | for (i = 0; i < TOTAL_COLORS(0); i++) | |
| 61 | for (i = 0; i < 0x40; i++) | |
| 64 | 62 | { |
| 65 | COLOR(0, i) = *(color_prom++) & 0x07; | |
| 63 | UINT8 ctabentry = color_prom[i] & 0x07; | |
| 64 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 66 | 65 | } |
| 67 | 66 | } |
| 68 | 67 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "tatsumi.h" |
| 3 | #include <math.h> | |
| 4 | 4 | |
| 5 | 5 | static tilemap *tx_layer; |
| 6 | 6 | static tilemap *layer0, *layer1, *layer2, *layer3; |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | ***************************************************************************/ |
| 14 | 14 | |
| 15 | 15 | #include "driver.h" |
| 16 | #include "deprecat.h" | |
| 16 | 17 | #include "deco16ic.h" |
| 17 | 18 | |
| 18 | 19 | /******************************************************************************/ |
| r1649 | r1650 | |
|---|---|---|
| 1149 | 1149 | ***************************************************************************/ |
| 1150 | 1150 | |
| 1151 | 1151 | #include "driver.h" |
| 1152 | #include "deprecat.h" | |
| 1152 | 1153 | #include "video/konamiic.h" |
| 1153 | 1154 | |
| 1154 | 1155 | #define VERBOSE 0 |
| r1649 | r1650 | |
| 1298 | 1299 | * |
| 1299 | 1300 | */ |
| 1300 | 1301 | |
| 1301 | void K007121_sprites_draw(running_machine *machine, int chip,mame_bitmap *bitmap,const rectangle *cliprect, | |
| 1302 | const UINT8 *source,int base_color,int global_x_offset,int bank_base, | |
| 1303 | UINT32 pri_mask) | |
| 1302 | void K007121_sprites_draw(int chip,mame_bitmap *bitmap,gfx_element **gfxs, colortable_t *ctable, | |
| 1303 | const rectangle *cliprect, const UINT8 *source,int base_color, | |
| 1304 | int global_x_offset,int bank_base, UINT32 pri_mask) | |
| 1304 | 1305 | { |
| 1305 | const gfx_element *gfx = | |
| 1306 | const gfx_element *gfx = | |
| 1306 | 1307 | int flipscreen = K007121_flipscreen[chip]; |
| 1307 | 1308 | int i,num,inc,offs[5],trans; |
| 1308 | int is_flakatck = | |
| 1309 | int is_flakatck = ( | |
| 1309 | 1310 | |
| 1310 | 1311 | #if 0 |
| 1311 | 1312 | popmessage("%02x-%02x-%02x-%02x-%02x-%02x-%02x-%02x %02x-%02x-%02x-%02x-%02x-%02x-%02x-%02x", |
| r1649 | r1650 | |
| 1350 | 1351 | offs[2] = 0x02; |
| 1351 | 1352 | offs[3] = 0x03; |
| 1352 | 1353 | offs[4] = 0x04; |
| 1353 | trans = TRANSPARENCY_ | |
| 1354 | trans = TRANSPARENCY_PENS | |
| 1354 | 1355 | /* when using priority buffer, draw front to back */ |
| 1355 | 1356 | if (pri_mask != -1) |
| 1356 | 1357 | { |
| r1649 | r1650 | |
| 1370 | 1371 | int yflip = source[offs[4]] & 0x20; /* flip y */ |
| 1371 | 1372 | int color = base_color + ((source[offs[1]] & 0xf0) >> 4); |
| 1372 | 1373 | int width,height; |
| 1374 | int transparent_color; | |
| 1373 | 1375 | static const int x_offset[4] = {0x0,0x1,0x4,0x5}; |
| 1374 | 1376 | static const int y_offset[4] = {0x0,0x2,0x8,0xa}; |
| 1375 | 1377 | int x,y, ex, ey; |
| r1649 | r1650 | |
| 1381 | 1383 | number = number << 2; |
| 1382 | 1384 | number += (sprite_bank >> 2) & 3; |
| 1383 | 1385 | |
| 1386 | if (trans == TRANSPARENCY_PEN) | |
| 1387 | transparent_color = 0; | |
| 1388 | else | |
| 1389 | transparent_color = colortable_get_transpen_mask(ctable, gfx, color, 0); | |
| 1390 | ||
| 1384 | 1391 | if (!is_flakatck || source[0x00]) /* Flak Attack needs this */ |
| 1385 | 1392 | { |
| 1386 | 1393 | number += bank_base; |
| r1649 | r1650 | |
| 1412 | 1419 | color, |
| 1413 | 1420 | !xflip,!yflip, |
| 1414 | 1421 | 248-(sx+x*8),248-(sy+y*8), |
| 1415 | cliprect,trans, | |
| 1422 | cliprect,trans,transparent_color, | |
| 1416 | 1423 | pri_mask); |
| 1417 | 1424 | else |
| 1418 | 1425 | drawgfx(bitmap,gfx, |
| r1649 | r1650 | |
| 1420 | 1427 | color, |
| 1421 | 1428 | !xflip,!yflip, |
| 1422 | 1429 | 248-(sx+x*8),248-(sy+y*8), |
| 1423 | cliprect,trans, | |
| 1430 | cliprect,trans,transparent_color); | |
| 1424 | 1431 | } |
| 1425 | 1432 | else |
| 1426 | 1433 | { |
| r1649 | r1650 | |
| 1430 | 1437 | color, |
| 1431 | 1438 | xflip,yflip, |
| 1432 | 1439 | global_x_offset+sx+x*8,sy+y*8, |
| 1433 | cliprect,trans, | |
| 1440 | cliprect,trans,transparent_color, | |
| 1434 | 1441 | pri_mask); |
| 1435 | 1442 | else |
| 1436 | 1443 | drawgfx(bitmap,gfx, |
| r1649 | r1650 | |
| 1438 | 1445 | color, |
| 1439 | 1446 | xflip,yflip, |
| 1440 | 1447 | global_x_offset+sx+x*8,sy+y*8, |
| 1441 | cliprect,trans, | |
| 1448 | cliprect,trans,transparent_color); | |
| 1442 | 1449 | } |
| 1443 | 1450 | } |
| 1444 | 1451 | } |
| r1649 | r1650 | |
|---|---|---|
| 29 | 29 | ***************************************************************************/ |
| 30 | 30 | |
| 31 | 31 | #include "driver.h" |
| 32 | #include "deprecat.h" | |
| 32 | 33 | |
| 33 | 34 | /* Variables needed by driver: */ |
| 34 | 35 |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | void K007121_ctrl_w(int chip,int offset,int data); |
| 12 | 12 | WRITE8_HANDLER( K007121_ctrl_0_w ); |
| 13 | 13 | WRITE8_HANDLER( K007121_ctrl_1_w ); |
| 14 | void K007121_sprites_draw(running_machine *machine,int chip,mame_bitmap *bitmap,const rectangle *cliprect, | |
| 15 | const UINT8 *source,int base_color,int global_x_offset,int bank_base, | |
| 16 | UINT32 pri_mask); | |
| 14 | void K007121_sprites_draw(int chip,mame_bitmap *bitmap,gfx_element **gfxs, colortable_t *ctable, | |
| 15 | const rectangle *cliprect, const UINT8 *source,int base_color, | |
| 16 | int global_x_offset,int bank_base, UINT32 pri_mask); | |
| 17 | 17 | |
| 18 | 18 | |
| 19 | 19 | void K007342_vh_start(int gfx_index, void (*callback)(int layer,int bank,int *code,int *color,int *flags)); |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "cpu/tms34010/tms34010.h" |
| 9 | 10 | #include "cpu/tms34010/34010ops.h" |
| 10 | 11 | #include "harddriv.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "audio/m72.h" |
| 3 | 4 | #include "m72.h" |
| 4 | 5 |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | ***************************************************************************/ |
| 14 | 14 | |
| 15 | 15 | #include "driver.h" |
| 16 | #include "deprecat.h" | |
| 16 | 17 | |
| 17 | 18 | static int sprite_flip, pow_charbase=0; //* |
| 18 | 19 | static tilemap *fix_tilemap; |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | #include "crgolf.h" |
| 9 | 9 | |
| 10 | 10 | |
| 11 | #define NUM_PENS (0x20) | |
| 12 | #define VIDEORAM_SIZE (0x2000 * 3) | |
| 13 | ||
| 14 | ||
| 11 | 15 | /* globals */ |
| 12 | 16 | UINT8 *crgolf_color_select; |
| 13 | 17 | UINT8 *crgolf_screen_flip; |
| r1649 | r1650 | |
| 17 | 21 | |
| 18 | 22 | |
| 19 | 23 | /* local variables */ |
| 20 | static mame_bitmap *screena; | |
| 21 | static mame_bitmap *screenb; | |
| 22 | static mame_bitmap *highbit; | |
| 24 | static UINT8 *crgolf_videoram_a; | |
| 25 | static UINT8 *crgolf_videoram_b; | |
| 23 | 26 | |
| 24 | 27 | |
| 25 | 28 | |
| 26 | 29 | /************************************* |
| 27 | 30 | * |
| 28 | * Video RAM | |
| 31 | * Video RAM acc | |
| 29 | 32 | * |
| 30 | 33 | *************************************/ |
| 31 | 34 | |
| 32 | WRITE8_HANDLER( crgolf_videoram_ | |
| 35 | WRITE8_HANDLER( crgolf_videoram_ | |
| 33 | 36 | { |
| 34 | mame_bitmap *screen = (*crgolf_screen_select & 1) ? screenb : screena; | |
| 35 | int x = (offset % 32) * 8; | |
| 36 | int y = offset / 32; | |
| 37 | UINT16 *dest = (UINT16 *)screen->base + screen->rowpixels * y + x; | |
| 38 | ||
| 39 | dest[0] = (dest[0] & ~0x01) | ((data >> 7) & 0x01); | |
| 40 | dest[1] = (dest[1] & ~0x01) | ((data >> 6) & 0x01); | |
| 41 | dest[2] = (dest[2] & ~0x01) | ((data >> 5) & 0x01); | |
| 42 | dest[3] = (dest[3] & ~0x01) | ((data >> 4) & 0x01); | |
| 43 | dest[4] = (dest[4] & ~0x01) | ((data >> 3) & 0x01); | |
| 44 | dest[5] = (dest[5] & ~0x01) | ((data >> 2) & 0x01); | |
| 45 | dest[6] = (dest[6] & ~0x01) | ((data >> 1) & 0x01); | |
| 46 | dest[7] = (dest[7] & ~0x01) | ((data >> 0) & 0x01); | |
| 37 | if (*crgolf_screen_select & 1) | |
| 38 | crgolf_videoram_b[offset] = data; | |
| 39 | else | |
| 40 | crgolf_videoram_a[offset] = data; | |
| 47 | 41 | } |
| 48 | 42 | |
| 49 | 43 | |
| 50 | ||
| 44 | ||
| 51 | 45 | { |
| 52 | mame_bitmap *screen = (*crgolf_screen_select & 1) ? screenb : screena; | |
| 53 | int x = (offset % 32) * 8; | |
| 54 | int y = offset / 32; | |
| 55 | UINT16 *dest = (UINT16 *)screen->base + screen->rowpixels * y + x; | |
| 46 | UINT8 ret; | |
| 56 | 47 | |
| 57 | dest[0] = (dest[0] & ~0x02) | ((data >> 6) & 0x02); | |
| 58 | dest[1] = (dest[1] & ~0x02) | ((data >> 5) & 0x02); | |
| 59 | dest[2] = (dest[2] & ~0x02) | ((data >> 4) & 0x02); | |
| 60 | dest[3] = (dest[3] & ~0x02) | ((data >> 3) & 0x02); | |
| 61 | dest[4] = (dest[4] & ~0x02) | ((data >> 2) & 0x02); | |
| 62 | dest[5] = (dest[5] & ~0x02) | ((data >> 1) & 0x02); | |
| 63 | dest[6] = (dest[6] & ~0x02) | ((data >> 0) & 0x02); | |
| 64 | dest[7] = (dest[7] & ~0x02) | ((data << 1) & 0x02); | |
| 65 | } | |
| 48 | if (*crgolf_screen_select & 1) | |
| 49 | ret = crgolf_videoram_b[offset]; | |
| 50 | else | |
| 51 | ret = crgolf_videoram_a[offset]; | |
| 66 | 52 | |
| 67 | ||
| 68 | WRITE8_HANDLER( crgolf_videoram_bit2_w ) | |
| 69 | { | |
| 70 | mame_bitmap *screen = (*crgolf_screen_select & 1) ? screenb : screena; | |
| 71 | int x = (offset % 32) * 8; | |
| 72 | int y = offset / 32; | |
| 73 | UINT16 *dest = (UINT16 *)screen->base + screen->rowpixels * y + x; | |
| 74 | ||
| 75 | dest[0] = (dest[0] & ~0x04) | ((data >> 5) & 0x04); | |
| 76 | dest[1] = (dest[1] & ~0x04) | ((data >> 4) & 0x04); | |
| 77 | dest[2] = (dest[2] & ~0x04) | ((data >> 3) & 0x04); | |
| 78 | dest[3] = (dest[3] & ~0x04) | ((data >> 2) & 0x04); | |
| 79 | dest[4] = (dest[4] & ~0x04) | ((data >> 1) & 0x04); | |
| 80 | dest[5] = (dest[5] & ~0x04) | ((data >> 0) & 0x04); | |
| 81 | dest[6] = (dest[6] & ~0x04) | ((data << 1) & 0x04); | |
| 82 | dest[7] = (dest[7] & ~0x04) | ((data << 2) & 0x04); | |
| 53 | return ret; | |
| 83 | 54 | } |
| 84 | 55 | |
| 85 | 56 | |
| 86 | 57 | |
| 87 | 58 | /************************************* |
| 88 | 59 | * |
| 89 | * | |
| 60 | * Palett | |
| 90 | 61 | * |
| 91 | 62 | *************************************/ |
| 92 | 63 | |
| 93 | ||
| 64 | stati | |
| 94 | 65 | { |
| 95 | mame_bitmap *screen = (*crgolf_screen_select & 1) ? screenb : screena; | |
| 96 | int x = (offset % 32) * 8; | |
| 97 | int y = offset / 32; | |
| 98 | UINT16 *source = (UINT16 *)screen->base + screen->rowpixels * y + x; | |
| 66 | offs_t offs; | |
| 99 | 67 | |
| 100 | return ((source[0] & 0x01) << 7) | | |
| 101 | ((source[1] & 0x01) << 6) | | |
| 102 | ((source[2] & 0x01) << 5) | | |
| 103 | ((source[3] & 0x01) << 4) | | |
| 104 | ((source[4] & 0x01) << 3) | | |
| 105 | ((source[5] & 0x01) << 2) | | |
| 106 | ((source[6] & 0x01) << 1) | | |
| 107 | ((source[7] & 0x01) << 0); | |
| 108 | } | |
| 109 | ||
| 110 | ||
| 111 | READ8_HANDLER( crgolf_videoram_bit1_r ) | |
| 112 | { | |
| 113 | mame_bitmap *screen = (*crgolf_screen_select & 1) ? screenb : screena; | |
| 114 | int x = (offset % 32) * 8; | |
| 115 | int y = offset / 32; | |
| 116 | UINT16 *source = (UINT16 *)screen->base + screen->rowpixels * y + x; | |
| 117 | ||
| 118 | return ((source[0] & 0x02) << 6) | | |
| 119 | ((source[1] & 0x02) << 5) | | |
| 120 | ((source[2] & 0x02) << 4) | | |
| 121 | ((source[3] & 0x02) << 3) | | |
| 122 | ((source[4] & 0x02) << 2) | | |
| 123 | ((source[5] & 0x02) << 1) | | |
| 124 | ((source[6] & 0x02) << 0) | | |
| 125 | ((source[7] & 0x02) >> 1); | |
| 126 | } | |
| 127 | ||
| 128 | ||
| 129 | READ8_HANDLER( crgolf_videoram_bit2_r ) | |
| 130 | { | |
| 131 | mame_bitmap *screen = (*crgolf_screen_select & 1) ? screenb : screena; | |
| 132 | int x = (offset % 32) * 8; | |
| 133 | int y = offset / 32; | |
| 134 | UINT16 *source = (UINT16 *)screen->base + screen->rowpixels * y + x; | |
| 135 | ||
| 136 | return ((source[0] & 0x04) << 5) | | |
| 137 | ((source[1] & 0x04) << 4) | | |
| 138 | ((source[2] & 0x04) << 3) | | |
| 139 | ((source[3] & 0x04) << 2) | | |
| 140 | ((source[4] & 0x04) << 1) | | |
| 141 | ((source[5] & 0x04) << 0) | | |
| 142 | ((source[6] & 0x04) >> 1) | | |
| 143 | ((source[7] & 0x04) >> 2); | |
| 144 | } | |
| 145 | ||
| 146 | ||
| 147 | ||
| 148 | /************************************* | |
| 149 | * | |
| 150 | * Color PROM decoding | |
| 151 | * | |
| 152 | *************************************/ | |
| 153 | ||
| 154 | PALETTE_INIT( crgolf ) | |
| 155 | { | |
| 156 | int i; | |
| 157 | ||
| 158 | for (i = 0; i < 32; i++) | |
| 68 | for (offs = 0; offs < NUM_PENS; offs++) | |
| 159 | 69 | { |
| 160 | 70 | int bit0, bit1, bit2, r, g, b; |
| 161 | 71 | |
| 72 | UINT8 data = memory_region(REGION_PROMS)[offs]; | |
| 73 | ||
| 162 | 74 | /* red component */ |
| 163 | bit0 = (*color_prom >> 0) & 0x01; | |
| 164 | bit1 = (*color_prom >> 1) & 0x01; | |
| 165 | bit2 = (*color_prom >> 2) & 0x01; | |
| 75 | bit0 = (data >> 0) & 0x01; | |
| 76 | bit1 = (data >> 1) & 0x01; | |
| 77 | bit2 = (data >> 2) & 0x01; | |
| 166 | 78 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 167 | 79 | |
| 168 | 80 | /* green component */ |
| 169 | bit0 = (*color_prom >> 3) & 0x01; | |
| 170 | bit1 = (*color_prom >> 4) & 0x01; | |
| 171 | bit2 = (*color_prom >> 5) & 0x01; | |
| 81 | bit0 = (data >> 3) & 0x01; | |
| 82 | bit1 = (data >> 4) & 0x01; | |
| 83 | bit2 = (data >> 5) & 0x01; | |
| 172 | 84 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 173 | 85 | |
| 174 | 86 | /* blue component */ |
| 175 | bit0 = (*color_prom >> 6) & 0x01; | |
| 176 | bit1 = (*color_prom >> 7) & 0x01; | |
| 87 | bit0 = (data >> 6) & 0x01; | |
| 88 | bit1 = (data >> 7) & 0x01; | |
| 177 | 89 | b = 0x4f * bit0 + 0xa8 * bit1; |
| 178 | 90 | |
| 179 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); | |
| 180 | color_prom++; | |
| 91 | pens[offs] = MAKE_RGB(r, g, b); | |
| 181 | 92 | } |
| 182 | 93 | } |
| 183 | 94 | |
| r1649 | r1650 | |
| 189 | 100 | * |
| 190 | 101 | *************************************/ |
| 191 | 102 | |
| 192 | VIDEO_START( crgolf ) | |
| 103 | static VIDEO_START( crgolf ) | |
| 193 | 104 | { |
| 194 | /* allocate temporary bitmaps */ | |
| 195 | screena = auto_bitmap_alloc(256, 256, machine->screen[0].format); | |
| 196 | screenb = auto_bitmap_alloc(256, 256, machine->screen[0].format); | |
| 197 | highbit = auto_bitmap_alloc(256, 256, machine->screen[0].format); | |
| 105 | /* allocate memory for the two bitmaps */ | |
| 106 | crgolf_videoram_a = auto_malloc(VIDEORAM_SIZE); | |
| 107 | crgolf_videoram_b = auto_malloc(VIDEORAM_SIZE); | |
| 198 | 108 | |
| 199 | /* initialize the "high bit" bitmap */ | |
| 200 | fillbitmap(screena, 0, NULL); | |
| 201 | fillbitmap(screenb, 8, NULL); | |
| 202 | fillbitmap(highbit, 16, NULL); | |
| 203 | ||
| 204 | 109 | /* register for save states */ |
| 205 | state_save_register_bitmap("video", 0, "screena", screena); | |
| 206 | state_save_register_bitmap("video", 0, "screenb", screenb); | |
| 207 | state_save_register_bitmap("video", 0, "highbit", highbit); | |
| 110 | state_save_register_global_pointer(crgolf_videoram_a, VIDEORAM_SIZE); | |
| 111 | state_save_register_global_pointer(crgolf_videoram_b, VIDEORAM_SIZE); | |
| 208 | 112 | } |
| 209 | 113 | |
| 210 | 114 | |
| r1649 | r1650 | |
| 215 | 119 | * |
| 216 | 120 | *************************************/ |
| 217 | 121 | |
| 218 | VIDEO_UPDATE( crgolf ) | |
| 122 | static VIDEO_UPDATE( crgolf ) | |
| 219 | 123 | { |
| 220 | 124 | int flip = *crgolf_screen_flip & 1; |
| 221 | 125 | |
| 222 | /* draw screen b if enabled */ | |
| 223 | if (~*crgolf_screenb_enable & 1) | |
| 224 | copybitmap(bitmap, screenb, flip, flip, 0, 0, cliprect, TRANSPARENCY_NONE, 0); | |
| 225 | else | |
| 226 | fillbitmap(bitmap, 8, cliprect); | |
| 126 | offs_t offs; | |
| 127 | pen_t pens[NUM_PENS]; | |
| 227 | 128 | |
| 228 | /* draw screen a if enabled */ | |
| 229 | if (~*crgolf_screena_enable & 1) | |
| 230 | copybitmap(bitmap, screena, flip, flip, 0, 0, cliprect, TRANSPARENCY_PEN, 0); | |
| 129 | get_pens(pens); | |
| 231 | 130 | |
| 232 | /* apply the color select bit */ | |
| 233 | if (*crgolf_color_select) | |
| 234 | copybitmap(bitmap, highbit, 0, 0, 0, 0, cliprect, TRANSPARENCY_BLEND, 0); | |
| 131 | /* for each byte in the video RAM */ | |
| 132 | for (offs = 0; offs < VIDEORAM_SIZE / 3; offs++) | |
| 133 | { | |
| 134 | int i; | |
| 135 | ||
| 136 | UINT8 y = (offs & 0x1fe0) >> 5; | |
| 137 | UINT8 x = (offs & 0x001f) << 3; | |
| 138 | ||
| 139 | UINT8 data_a0 = crgolf_videoram_a[0x2000 | offs]; | |
| 140 | UINT8 data_a1 = crgolf_videoram_a[0x0000 | offs]; | |
| 141 | UINT8 data_a2 = crgolf_videoram_a[0x4000 | offs]; | |
| 142 | UINT8 data_b0 = crgolf_videoram_b[0x2000 | offs]; | |
| 143 | UINT8 data_b1 = crgolf_videoram_b[0x0000 | offs]; | |
| 144 | UINT8 data_b2 = crgolf_videoram_b[0x4000 | offs]; | |
| 145 | ||
| 146 | if (flip) | |
| 147 | { | |
| 148 | y = ~y; | |
| 149 | x = ~x; | |
| 150 | } | |
| 151 | ||
| 152 | /* for each pixel in the byte */ | |
| 153 | for (i = 0; i < 8; i++) | |
| 154 | { | |
| 155 | offs_t color; | |
| 156 | UINT8 data_b = 0; | |
| 157 | UINT8 data_a = 0; | |
| 158 | ||
| 159 | if (~*crgolf_screena_enable & 1) | |
| 160 | data_a = ((data_a0 & 0x80) >> 7) | ((data_a1 & 0x80) >> 6) | ((data_a2 & 0x80) >> 5); | |
| 161 | ||
| 162 | if (~*crgolf_screenb_enable & 1) | |
| 163 | data_b = ((data_b0 & 0x80) >> 7) | ((data_b1 & 0x80) >> 6) | ((data_b2 & 0x80) >> 5); | |
| 164 | ||
| 165 | /* screen A has priority over B */ | |
| 166 | if (data_a) | |
| 167 | color = data_a; | |
| 168 | else | |
| 169 | color = data_b | 0x08; | |
| 170 | ||
| 171 | /* add HI bit if enabled */ | |
| 172 | if (*crgolf_color_select) | |
| 173 | color = color | 0x10; | |
| 174 | ||
| 175 | *BITMAP_ADDR32(bitmap, y, x) = pens[color]; | |
| 176 | ||
| 177 | /* next pixel */ | |
| 178 | data_a0 = data_a0 << 1; | |
| 179 | data_a1 = data_a1 << 1; | |
| 180 | data_a2 = data_a2 << 1; | |
| 181 | data_b0 = data_b0 << 1; | |
| 182 | data_b1 = data_b1 << 1; | |
| 183 | data_b2 = data_b2 << 1; | |
| 184 | ||
| 185 | if (flip) | |
| 186 | x = x - 1; | |
| 187 | else | |
| 188 | x = x + 1; | |
| 189 | } | |
| 190 | } | |
| 191 | ||
| 235 | 192 | return 0; |
| 236 | 193 | } |
| 194 | ||
| 195 | ||
| 196 | ||
| 197 | /************************************* | |
| 198 | * | |
| 199 | * Machine driver | |
| 200 | * | |
| 201 | *************************************/ | |
| 202 | ||
| 203 | MACHINE_DRIVER_START( crgolf_video ) | |
| 204 | ||
| 205 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 206 | MDRV_VIDEO_START(crgolf) | |
| 207 | MDRV_VIDEO_UPDATE(crgolf) | |
| 208 | ||
| 209 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 210 | MDRV_SCREEN_SIZE(256, 256) | |
| 211 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 8, 247) | |
| 212 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 213 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 214 | MACHINE_DRIVER_END |
| r1649 | r1650 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 1 | /*************************************************************************************** | |
| 2 | 2 | |
| 3 | 3 | -= Electronic Devices / International Games =- |
| 4 | 4 | |
| r1649 | r1650 | |
| 7 | 7 | This game has sprites only: |
| 8 | 8 | |
| 9 | 9 | tiles are 16 x 16 x 6. There are 0x400 sprites, each one is allotted |
| 10 | 8 bytes of memory | |
| 10 | 8 bytes of memory | |
| 11 | 11 | |
| 12 | 12 | Offset: Bits: Value: |
| 13 | 13 | |
| r1649 | r1650 | |
| 28 | 28 | |
| 29 | 29 | Then 2 tables follow, 0x400 bytes each: |
| 30 | 30 | |
| 31 | - the first table contains 1 byte per sprite: an index in the second table | |
| 32 | - the second table is either an x,y offset or an index in spriteram_2: | |
| 31 | - the first table (0x56000) contains 1 byte per sprite: an index in the second table | |
| 32 | - the second table (0x56400) is either an x,y offset or an index in spriteram_2 (0x60000): | |
| 33 | 33 | |
| 34 | 34 | 0 X offset (low bits) |
| 35 | 35 | |
| r1649 | r1650 | |
| 47 | 47 | |
| 48 | 48 | 0 Y offset (low bits) |
| 49 | 49 | |
| 50 | 1 7654 321- Code offset | |
| 50 | 1 7--- ---- Flip X (xor with that in spriteram) | |
| 51 | -6-- ---- Flip Y "" | |
| 52 | --54 321- Code offset | |
| 51 | 53 | ---- ---0 Y offset (high bit) |
| 52 | 54 | |
| 53 | 55 | 2 X offset (low bits) |
| 54 | 56 | |
| 55 | 57 | 3 X offset (high bit) |
| 56 | 58 | |
| 57 | ***************************************************************************/ | |
| 59 | ***************************************************************************************/ | |
| 58 | 60 | |
| 59 | 61 | #include "driver.h" |
| 60 | 62 | |
| r1649 | r1650 | |
| 65 | 67 | *ram = spriteram, // current sprite pointer in spriteram |
| 66 | 68 | *ram2 = indx_ram; // current sprite pointer in indx_ram |
| 67 | 69 | |
| 70 | // wheelrun is the only game with a smaller visible area | |
| 71 | int special = (machine->screen[0].visarea.max_y - machine->screen[0].visarea.min_y + 1) < 0x100; | |
| 72 | ||
| 68 | 73 | for ( ; ram < indx_ram; ram += 8,ram2++) |
| 69 | 74 | { |
| 70 | 75 | int attr,code,color, x,y,xoffs,yoffs,flipx,flipy, idx; |
| r1649 | r1650 | |
| 76 | 81 | y = ram[4]; |
| 77 | 82 | |
| 78 | 83 | color = (attr & 0x03); |
| 79 | flipy = (attr & 0x10); | |
| 80 | flipx = (attr & 0x20); | |
| 84 | flipy = (attr & 0x10) ? 1 : 0; | |
| 85 | flipx = (attr & 0x20) ? 1 : 0; | |
| 81 | 86 | |
| 82 | 87 | y += (attr & 0x40) << 2; |
| 83 | 88 | x += (attr & 0x80) << 1; |
| r1649 | r1650 | |
| 97 | 102 | yoffs = spriteram_2[idx + 0] + (spriteram_2[idx + 1] << 8); |
| 98 | 103 | xoffs = spriteram_2[idx + 2] + (spriteram_2[idx + 3] << 8); |
| 99 | 104 | |
| 100 | code += yoffs >> 9; | |
| 105 | code += (yoffs & 0x3e00) >> 9; | |
| 106 | flipy ^= (yoffs & 0x4000) ? 1 : 0; | |
| 107 | flipx ^= (yoffs & 0x8000) ? 1 : 0; | |
| 101 | 108 | } |
| 102 | 109 | else |
| 103 | 110 | { |
| r1649 | r1650 | |
| 107 | 114 | xoffs = ((offs_ram[idx + 2] & 0x01) << 8) + offs_ram[idx + 0]; |
| 108 | 115 | } |
| 109 | 116 | |
| 110 | yoffs = (yoffs & 0xff) - (yoffs & 0x100); | |
| 111 | xoffs = (xoffs & 0x1ff); | |
| 117 | yoffs = (yoffs & 0xff) - (yoffs & 0x100); | |
| 118 | xoffs = (xoffs & 0x1ff); | |
| 112 | 119 | |
| 113 | 120 | if (xoffs >= 0x180) xoffs -= 0x200; |
| 114 | 121 | |
| 115 | 122 | y += yoffs; |
| 116 | 123 | x += xoffs; |
| 117 | 124 | |
| 125 | // wheelrun needs y=0xf0 & yoffs=0x50 to be rendered at screen y 0x40 | |
| 126 | if (special && y > 0) | |
| 127 | y &= 0xff; | |
| 128 | ||
| 118 | 129 | y = (y & 0xff) - (y & 0x100); |
| 119 | 130 | x = (x & 0x1ff); |
| 120 | 131 |
| r1649 | r1650 | |
|---|---|---|
| 220 | 220 | tilemap_draw(bitmap, cliprect, atarigen_playfield_tilemap, 0, 0); |
| 221 | 221 | |
| 222 | 222 | /* copy the motion objects on top */ |
| 223 | copybitmap(bitmap, atarirle_get_vram(0, 0), 0, 0, 0, 0, cliprect | |
| 223 | copybitmap_trans(bitmap, atarirle_get_vram(0, 0), 0, 0, 0, 0, cliprect | |
| 224 | 224 | |
| 225 | 225 | /* add the alpha on top */ |
| 226 | 226 | tilemap_draw(bitmap, cliprect, atarigen_alpha_tilemap, 0, 0); |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | static int layer_colorbase[2]; |
| 5 | 5 | extern int bladestl_spritebank; |
| 6 | 6 | |
| 7 | ||
| 7 | 8 | PALETTE_INIT( bladestl ) |
| 8 | 9 | { |
| 9 | 10 | int i; |
| 10 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 11 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 12 | 11 | |
| 13 | /* build the lookup table for sprites. Palette is dynamic. */ | |
| 14 | for (i = 0;i < TOTAL_COLORS(1);i++) | |
| 15 | COLOR(1,i) = 0x20 + (*(color_prom++) & 0x0f); | |
| 12 | /* allocate the colortable */ | |
| 13 | machine->colortable = colortable_alloc(machine, 0x30); | |
| 14 | ||
| 15 | /* characters use pens 0x00-0x1f, no look-up table */ | |
| 16 | for (i = 0; i < 0x20; i++) | |
| 17 | colortable_entry_set_value(machine->colortable, i, i); | |
| 18 | ||
| 19 | /* sprites use pens 0x20-0x2f */ | |
| 20 | for (i = 0x20; i < 0x120; i++) | |
| 21 | { | |
| 22 | UINT8 ctabentry = (color_prom[i - 0x20] & 0x0f) | 0x20; | |
| 23 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 24 | } | |
| 16 | 25 | } |
| 17 | 26 | |
| 27 | ||
| 28 | static void set_pens(running_machine *machine) | |
| 29 | { | |
| 30 | int i; | |
| 31 | ||
| 32 | for (i = 0x00; i < 0x60; i += 2) | |
| 33 | { | |
| 34 | UINT16 data = paletteram[i | 1] | (paletteram[i] << 8); | |
| 35 | ||
| 36 | rgb_t color = MAKE_RGB(pal5bit(data >> 0), pal5bit(data >> 5), pal5bit(data >> 10)); | |
| 37 | ||
| 38 | colortable_palette_set_color(machine->colortable, i >> 1, color); | |
| 39 | } | |
| 40 | } | |
| 41 | ||
| 42 | ||
| 43 | ||
| 18 | 44 | /*************************************************************************** |
| 19 | 45 | |
| 20 | 46 | Callback for the K007342 |
| r1649 | r1650 | |
| 64 | 90 | |
| 65 | 91 | VIDEO_UPDATE( bladestl ) |
| 66 | 92 | { |
| 93 | set_pens(machine); | |
| 94 | ||
| 67 | 95 | K007342_tilemap_update(); |
| 68 | 96 | |
| 69 | 97 | K007342_tilemap_draw( bitmap, cliprect, 1, TILEMAP_DRAW_OPAQUE ,0); |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "machine/atarigen.h" |
| 9 | 10 | #include "toobin.h" |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "mcr.h" |
| 9 | 10 | |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "video/resnet.h" |
| 11 | 12 | |
| 12 | 13 | #include "includes/mario.h" |
| r1649 | r1650 | |
|---|---|---|
| 116 | 116 | scroll_x[0] = - *atarifb_scroll_register + 32 + playfield_x_offset; |
| 117 | 117 | scroll_y[0] = 8 + playfield_y_offset; |
| 118 | 118 | |
| 119 | copybitmap(bitmap, tilemap_get_pixmap(alpha1_tilemap), 0, 0, 35*8, 1*8, NULL, TRANSPARENCY_NONE, 0); | |
| 120 | copybitmap(bitmap, tilemap_get_pixmap(alpha2_tilemap), 0, 0, 0*8, 1*8, NULL, TRANSPARENCY_NONE, 0); | |
| 121 | copyscrollbitmap(bitmap, tilemap_get_pixmap(field_tilemap), 1, scroll_x, 1, scroll_y, &bigfield_area, TRANSPARENCY_NONE, 0); | |
| 119 | copybitmap(bitmap, tilemap_get_pixmap(alpha1_tilemap), 0, 0, 35*8, 1*8, NULL); | |
| 120 | copybitmap(bitmap, tilemap_get_pixmap(alpha2_tilemap), 0, 0, 0*8, 1*8, NULL); | |
| 121 | copyscrollbitmap(bitmap, tilemap_get_pixmap(field_tilemap), 1, scroll_x, 1, scroll_y, &bigfield_area); | |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | |
| 11 | 12 | #define CPK_VIDEO_SIZE 0x800 |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 285 | 285 | { |
| 286 | 286 | int scrollx; |
| 287 | 287 | |
| 288 | copybitmap(bitmap,tmpbitmap,0,0,-66*8,0,&leftvisiblearea,TRANSPARENCY_NONE,0); | |
| 289 | copybitmap(bitmap,tmpbitmap,0,0,-30*8,0,&rightvisiblearea,TRANSPARENCY_NONE,0); | |
| 288 | copybitmap(bitmap,tmpbitmap,0,0,-66*8,0,&leftvisiblearea); | |
| 289 | copybitmap(bitmap,tmpbitmap,0,0,-30*8,0,&rightvisiblearea); | |
| 290 | 290 | |
| 291 | 291 | scrollx = ( naughtyb_cocktail ) ? *naughtyb_scrollreg - 239 : -*naughtyb_scrollreg + 16; |
| 292 | copyscrollbitmap(bitmap,tmpbitmap,1,&scrollx,0,0,&scrollvisiblearea | |
| 292 | copyscrollbitmap(bitmap,tmpbitmap,1,&scrollx,0,0,&scrollvisiblearea | |
| 293 | 293 | } |
| 294 | 294 | return 0; |
| 295 | 295 | } |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | |
| 9 | 10 | |
| 10 | 11 | static tilemap *bg_tilemap; |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | |
| 11 | 12 | UINT8 *toypop_videoram; |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 15 | 15 | ***************************************************************************/ |
| 16 | 16 | |
| 17 | 17 | #include "driver.h" |
| 18 | #include "deprecat.h" | |
| 18 | 19 | |
| 19 | 20 | static UINT16 tumblepb_control_0[8]; |
| 20 | 21 | UINT16 *tumblepb_pf1_data,*tumblepb_pf2_data; |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "video/taitoic.h" |
| 3 | 4 | |
| 4 | 5 | #define TC0100SCN_GFX_NUM 1 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | |
| 11 | 12 | UINT8 *superqix_videoram; |
| 12 | 13 | UINT8 *superqix_bitmapram,*superqix_bitmapram2; |
| r1649 | r1650 | |
| 253 | 254 | VIDEO_UPDATE( superqix ) |
| 254 | 255 | { |
| 255 | 256 | tilemap_draw(bitmap, cliprect, bg_tilemap, TILEMAP_DRAW_LAYER1, 0); |
| 256 | copybitmap(bitmap,fg_bitmap[show_bitmap],flip_screen,flip_screen,0,0,cliprect | |
| 257 | copybitmap_trans(bitmap,fg_bitmap[show_bitmap],flip_screen,flip_screen,0,0,cliprect | |
| 257 | 258 | superqix_draw_sprites(machine, bitmap,cliprect); |
| 258 | 259 | tilemap_draw(bitmap, cliprect, bg_tilemap, TILEMAP_DRAW_LAYER0, 0); |
| 259 | 260 | return 0; |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "video/ppu2c0x.h" |
| 3 | 4 | |
| 4 | 5 | /* from machine */ |
| r1649 | r1650 | |
|---|---|---|
| 346 | 346 | if (sl_enable) |
| 347 | 347 | { |
| 348 | 348 | /* apply shadow */ |
| 349 | ||
| 350 | mame_bitmap *sl_bitmap; | |
| 351 | 349 | int x, y; |
| 352 | 350 | |
| 351 | mame_bitmap *sl_bitmap = tilemap_get_pixmap(sl_tilemap); | |
| 353 | 352 | |
| 354 | sl_bitmap = tilemap_get_pixmap(sl_tilemap); | |
| 355 | ||
| 356 | 353 | for (x = cliprect->min_x; x <= cliprect->max_x; x++) |
| 357 | { | |
| 358 | 354 | for (y = cliprect->min_y; y <= cliprect->max_y; y++) |
| 359 | 355 | { |
| 360 | UINT | |
| 356 | UINT16 src_pixel = *BITMAP_ADDR16(main_bitmap, y, x); | |
| 361 | 357 | |
| 362 | ||
| 363 | src_pixel = *BITMAP_ADDR16(main_bitmap, y, x); | |
| 364 | ||
| 365 | 358 | if (*BITMAP_ADDR16(sl_bitmap, y, x) == 0xff) |
| 366 | { | |
| 367 | 359 | src_pixel += machine->drv->total_colors; |
| 368 | } | |
| 369 | 360 | |
| 370 | 361 | *BITMAP_ADDR16(bitmap, y, x) = src_pixel; |
| 371 | 362 | } |
| 372 | } | |
| 373 | 363 | } |
| 374 | 364 | else |
| 375 | { | |
| 376 | copybitmap(bitmap,main_bitmap,0,0,0,0,cliprect,TRANSPARENCY_NONE,0); | |
| 377 | } | |
| 365 | copybitmap(bitmap,main_bitmap,0,0,0,0,cliprect); | |
| 366 | ||
| 378 | 367 | return 0; |
| 379 | 368 | } |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "machine/atarigen.h" |
| 9 | 10 | #include "cyberbal.h" |
| 10 | 11 |
| r0 | r1650 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | Lock-On video hardware | |
| 4 | ||
| 5 | ***************************************************************************/ | |
| 6 | ||
| 7 | #include "driver.h" | |
| 8 | #include "deprecat.h" | |
| 9 | #include "lockon.h" | |
| 10 | #include "video/resnet.h" | |
| 11 | #include "cpu/nec/nec.h" | |
| 12 | ||
| 13 | #define CURSOR_XPOS 168 | |
| 14 | #define CURSOR_YPOS 239 | |
| 15 | #define FRAMEBUFFER_MAX_X 431 | |
| 16 | #define FRAMEBUFFER_MAX_Y (UINT32)((FRAMEBUFFER_CLOCK / (float)(FRAMEBUFFER_MAX_X-1)) / ((float)PIXEL_CLOCK/(HTOTAL*VTOTAL))) | |
| 17 | ||
| 18 | ||
| 19 | /************************************* | |
| 20 | * | |
| 21 | * Globals | |
| 22 | * | |
| 23 | *************************************/ | |
| 24 | ||
| 25 | UINT16 *lockon_char_ram; | |
| 26 | UINT16 *lockon_hud_ram; | |
| 27 | UINT16 *lockon_scene_ram; | |
| 28 | UINT16 *lockon_ground_ram; | |
| 29 | UINT16 *lockon_object_ram; | |
| 30 | ||
| 31 | size_t lockon_hudram_size; | |
| 32 | size_t lockon_objectram_size; | |
| 33 | size_t lockon_groundram_size; | |
| 34 | ||
| 35 | UINT8 *obj_pal_ram; | |
| 36 | ||
| 37 | /************************************* | |
| 38 | * | |
| 39 | * Statics | |
| 40 | * | |
| 41 | *************************************/ | |
| 42 | ||
| 43 | static tilemap *lockon_tilemap; | |
| 44 | static UINT8 ground_ctrl; | |
| 45 | static UINT16 scroll_h; | |
| 46 | static UINT16 scroll_v; | |
| 47 | ||
| 48 | static mame_bitmap *front_buffer; | |
| 49 | static mame_bitmap *back_buffer; | |
| 50 | static emu_timer *bufend_timer; | |
| 51 | static emu_timer *cursor_timer; | |
| 52 | ||
| 53 | /* Rotation Control */ | |
| 54 | static UINT16 xsal; | |
| 55 | static UINT16 x0ll; | |
| 56 | static UINT16 dx0ll; | |
| 57 | static UINT16 dxll; | |
| 58 | static UINT16 ysal; | |
| 59 | static UINT16 y0ll; | |
| 60 | static UINT16 dy0ll; | |
| 61 | static UINT16 dyll; | |
| 62 | ||
| 63 | /* Object palette RAM control */ | |
| 64 | static UINT32 iden; | |
| 65 | static UINT32 obj_pal_latch; | |
| 66 | static UINT32 obj_pal_addr; | |
| 67 | ||
| 68 | ||
| 69 | /************************************* | |
| 70 | * | |
| 71 | * HD46505S-2 CRT Controller | |
| 72 | * | |
| 73 | *************************************/ | |
| 74 | ||
| 75 | READ16_HANDLER( lockon_crtc_r ) | |
| 76 | { | |
| 77 | return 0xffff; | |
| 78 | } | |
| 79 | ||
| 80 | WRITE16_HANDLER( lockon_crtc_w ) | |
| 81 | { | |
| 82 | #if 0 | |
| 83 | data &= 0xff; | |
| 84 | ||
| 85 | if (offset == 0) | |
| 86 | { | |
| 87 | switch (data) | |
| 88 | { | |
| 89 | case 0x00: mame_printf_debug("Horizontal Total "); break; | |
| 90 | case 0x01: mame_printf_debug("Horizontal displayed "); break; | |
| 91 | case 0x02: mame_printf_debug("Horizontal sync position "); break; | |
| 92 | case 0x03: mame_printf_debug("Horizontal sync width "); break; | |
| 93 | case 0x04: mame_printf_debug("Vertical total "); break; | |
| 94 | case 0x05: mame_printf_debug("Vertical total adjust "); break; | |
| 95 | case 0x06: mame_printf_debug("Vertical displayed "); break; | |
| 96 | case 0x07: mame_printf_debug("Vertical sync position "); break; | |
| 97 | case 0x08: mame_printf_debug("Interlace mode "); break; | |
| 98 | case 0x09: mame_printf_debug("Max. scan line address "); break; | |
| 99 | case 0x0a: mame_printf_debug("Cursror start "); break; | |
| 100 | case 0x0b: mame_printf_debug("Cursor end "); break; | |
| 101 | case 0x0c: mame_printf_debug("Start address (h) "); break; | |
| 102 | case 0x0d: mame_printf_debug("Start address (l) "); break; | |
| 103 | case 0x0e: mame_printf_debug("Cursor (h) "); break; | |
| 104 | case 0x0f: mame_printf_debug("Cursor (l) "); break; | |
| 105 | case 0x10: mame_printf_debug("Light pen (h)) "); break; | |
| 106 | case 0x11: mame_printf_debug("Light pen (l) "); break; | |
| 107 | } | |
| 108 | } | |
| 109 | else if (offset == 1) | |
| 110 | { | |
| 111 | mame_printf_debug("0x%.2x, (%d)\n",data, data); | |
| 112 | } | |
| 113 | #endif | |
| 114 | } | |
| 115 | ||
| 116 | static TIMER_CALLBACK( cursor_callback ) | |
| 117 | { | |
| 118 | if (lockon_main_inten) | |
| 119 | cpunum_set_input_line_and_vector(machine, MAIN_CPU, 0, HOLD_LINE, 0xff); | |
| 120 | ||
| 121 | timer_adjust(cursor_timer, video_screen_get_time_until_pos(0, CURSOR_YPOS, CURSOR_XPOS), 0, attotime_zero); | |
| 122 | } | |
| 123 | ||
| 124 | /************************************* | |
| 125 | * | |
| 126 | * Palette decoding | |
| 127 | * | |
| 128 | *************************************/ | |
| 129 | ||
| 130 | static const res_net_info lockon_net_info = | |
| 131 | { | |
| 132 | RES_NET_VCC_5V | RES_NET_VBIAS_5V | RES_NET_VIN_TTL_OUT, | |
| 133 | { | |
| 134 | {RES_NET_AMP_NONE, 560, 0, 5, {4700, 2200, 1000, 470, 220}}, | |
| 135 | {RES_NET_AMP_NONE, 560, 0, 5, {4700, 2200, 1000, 470, 220}}, | |
| 136 | {RES_NET_AMP_NONE, 560, 0, 5, {4700, 2200, 1000, 470, 220}} | |
| 137 | } | |
| 138 | }; | |
| 139 | ||
| 140 | static const res_net_info lockon_pd_net_info = | |
| 141 | { | |
| 142 | RES_NET_VCC_5V | RES_NET_VBIAS_5V | RES_NET_VIN_TTL_OUT, | |
| 143 | { | |
| 144 | {RES_NET_AMP_NONE, 560, 580, 5, {4700, 2200, 1000, 470, 220}}, | |
| 145 | {RES_NET_AMP_NONE, 560, 580, 5, {4700, 2200, 1000, 470, 220}}, | |
| 146 | {RES_NET_AMP_NONE, 560, 580, 5, {4700, 2200, 1000, 470, 220}} | |
| 147 | } | |
| 148 | }; | |
| 149 | ||
| 150 | PALETTE_INIT( lockon ) | |
| 151 | { | |
| 152 | int i; | |
| 153 | ||
| 154 | for (i = 0; i < 1024; ++i) | |
| 155 | { | |
| 156 | UINT8 r, g, b; | |
| 157 | UINT8 p1 = color_prom[i]; | |
| 158 | UINT8 p2 = color_prom[i + 0x400]; | |
| 159 | ||
| 160 | if (p2 & 0x80) | |
| 161 | { | |
| 162 | r = compute_res_net( (p2 >> 2) & 0x1f, 0, &lockon_net_info ); | |
| 163 | g = compute_res_net( ((p1 >> 5) & 0x7) | (p2 & 3) << 3, 1, &lockon_net_info ); | |
| 164 | b = compute_res_net( (p1 & 0x1f), 2, &lockon_net_info ); | |
| 165 | } | |
| 166 | else | |
| 167 | { | |
| 168 | r = compute_res_net( (p2 >> 2) & 0x1f, 0, &lockon_pd_net_info ); | |
| 169 | g = compute_res_net( ((p1 >> 5) & 0x7) | (p2 & 3) << 3, 1, &lockon_pd_net_info ); | |
| 170 | b = compute_res_net( (p1 & 0x1f), 2, &lockon_pd_net_info ); | |
| 171 | } | |
| 172 | ||
| 173 | palette_set_color(Machine, i, MAKE_RGB(r, g, b)); | |
| 174 | } | |
| 175 | } | |
| 176 | ||
| 177 | ||
| 178 | /************************************* | |
| 179 | * | |
| 180 | * Character tilemap handling | |
| 181 | * | |
| 182 | *************************************/ | |
| 183 | ||
| 184 | WRITE16_HANDLER( lockon_char_w ) | |
| 185 | { | |
| 186 | lockon_char_ram[offset] = data; | |
| 187 | tilemap_mark_tile_dirty(lockon_tilemap, offset); | |
| 188 | } | |
| 189 | ||
| 190 | static TILE_GET_INFO( get_lockon_tile_info ) | |
| 191 | { | |
| 192 | UINT32 tileno = lockon_char_ram[tile_index] & 0x03ff; | |
| 193 | UINT32 col = (lockon_char_ram[tile_index] >> 10) & 0x3f; | |
| 194 | ||
| 195 | col = (col & 0x1f) + (col & 0x20 ? 64 : 0); | |
| 196 | SET_TILE_INFO(0, tileno, col, 0); | |
| 197 | } | |
| 198 | ||
| 199 | ||
| 200 | /******************************************************************************************* | |
| 201 | ||
| 202 | Scene tilemap hardware | |
| 203 | ||
| 204 | *******************************************************************************************/ | |
| 205 | ||
| 206 | WRITE16_HANDLER( lockon_scene_h_scr_w ) | |
| 207 | { | |
| 208 | scroll_h = data & 0x1ff; | |
| 209 | } | |
| 210 | ||
| 211 | WRITE16_HANDLER( lockon_scene_v_scr_w ) | |
| 212 | { | |
| 213 | scroll_v = data & 0x81ff; | |
| 214 | } | |
| 215 | ||
| 216 | static void scene_draw(void) | |
| 217 | { | |
| 218 | UINT32 y; | |
| 219 | ||
| 220 | /* 3bpp characters */ | |
| 221 | const UINT8 *const gfx1 = memory_region(REGION_GFX2); | |
| 222 | const UINT8 *const gfx2 = gfx1 + 0x10000; | |
| 223 | const UINT8 *const gfx3 = gfx1 + 0x20000; | |
| 224 | const UINT8 *const clut = gfx1 + 0x30000; | |
| 225 | ||
| 226 | for (y = 0; y < FRAMEBUFFER_MAX_Y; ++y) | |
| 227 | { | |
| 228 | UINT32 x; | |
| 229 | UINT32 d0 = 0, d1 = 0, d2 = 0; | |
| 230 | UINT32 colour = 0; | |
| 231 | UINT32 y_offs; | |
| 232 | UINT32 x_offs; | |
| 233 | UINT32 y_gran; | |
| 234 | UINT16 *bmpaddr; | |
| 235 | UINT32 ram_mask = 0x7ff; | |
| 236 | ||
| 237 | y_offs = (y + scroll_v) & 0x1ff; | |
| 238 | ||
| 239 | /* Clamp - stops tilemap wrapping when screen is rotated */ | |
| 240 | if (BIT(scroll_v, 15) && y_offs & 0x100) | |
| 241 | ram_mask = 0x7; | |
| 242 | ||
| 243 | x_offs = (scroll_h - 8) & 0x1ff; | |
| 244 | y_gran = y_offs & 7; | |
| 245 | ||
| 246 | if (x_offs & 7) | |
| 247 | { | |
| 248 | UINT32 tileidx; | |
| 249 | UINT16 addr = ((y_offs & ~7) << 3) + ((x_offs >> 3) & 0x3f); | |
| 250 | UINT16 ram_val = lockon_scene_ram[addr & ram_mask]; | |
| 251 | ||
| 252 | colour = (clut[ram_val & 0x7fff] & 0x3f) << 3; | |
| 253 | tileidx = ((ram_val & 0x0fff) << 3) + y_gran; | |
| 254 | ||
| 255 | d0 = *(gfx1 + tileidx); | |
| 256 | d1 = *(gfx2 + tileidx); | |
| 257 | d2 = *(gfx3 + tileidx); | |
| 258 | } | |
| 259 | ||
| 260 | bmpaddr = BITMAP_ADDR16(back_buffer, y, 0); | |
| 261 | ||
| 262 | for (x = 0; x < FRAMEBUFFER_MAX_X; ++x) | |
| 263 | { | |
| 264 | UINT32 x_gran = (x_offs & 7) ^ 7; | |
| 265 | UINT32 col; | |
| 266 | ||
| 267 | if (!(x_offs & 7)) | |
| 268 | { | |
| 269 | UINT32 tileidx; | |
| 270 | UINT16 addr = ((y_offs & ~7) << 3) + ((x_offs >> 3) & 0x3f); | |
| 271 | UINT16 ram_val = lockon_scene_ram[addr & ram_mask]; | |
| 272 | ||
| 273 | colour = (clut[ram_val & 0x7fff] & 0x3f) << 3; | |
| 274 | tileidx = ((ram_val & 0x0fff) << 3) + y_gran; | |
| 275 | ||
| 276 | d0 = *(gfx1 + tileidx); | |
| 277 | d1 = *(gfx2 + tileidx); | |
| 278 | d2 = *(gfx3 + tileidx); | |
| 279 | } | |
| 280 | ||
| 281 | col = colour | |
| 282 | | (((d2 >> x_gran) & 1) << 2) | |
| 283 | | (((d1 >> x_gran) & 1) << 1) | |
| 284 | | ( (d0 >> x_gran) & 1); | |
| 285 | ||
| 286 | *bmpaddr++ = Machine->pens[0xa00 + col]; | |
| 287 | ||
| 288 | x_offs = (x_offs + 1) & 0x1ff; | |
| 289 | } | |
| 290 | ||
| 291 | } | |
| 292 | } | |
| 293 | ||
| 294 | /******************************************************************************************* | |
| 295 | ||
| 296 | Ground Hardware | |
| 297 | ||
| 298 | Each framebuffer line corresponds to a three word entry in ground RAM, | |
| 299 | starting from offset 3: | |
| 300 | ||
| 301 | FEDCBA9876543210 | |
| 302 | 0 |.............xxx| Tile line (A0-A2 GFX ROMs) | |
| 303 | |...........xx...| Tile index (A6-A5 GFX ROMs) | |
| 304 | |........xxx.....| ROM lut address (A6-A4) | |
| 305 | |.xxxxxxx........| ROM lut address (A13-A7) | |
| 306 | |x...............| /Line enable | |
| 307 | ||
| 308 | 1 |........xxxxxxxx| TZ2213 value | |
| 309 | |xxxxxxxx........| X offset | |
| 310 | ||
| 311 | 2 |........xxxxxxxx| TZ2213 DX | |
| 312 | |.......x........| Carry | |
| 313 | |x...............| End of list marker | |
| 314 | ||
| 315 | An 8-bit ground control register controls the following: | |
| 316 | ||
| 317 | 76543210 | |
| 318 | |......xx| LUT ROM A15-A14 | |
| 319 | |....xx..| LUT ROM select | |
| 320 | |..xx....| CLUT ROM A13-A12 | |
| 321 | |.x......| GFX ROM A15, CLUT ROM A14 | |
| 322 | |x.......| GFX ROM bank select (always 0 - only 1 bank is present) | |
| 323 | ||
| 324 | *******************************************************************************************/ | |
| 325 | ||
| 326 | WRITE16_HANDLER( lockon_ground_ctrl_w ) | |
| 327 | { | |
| 328 | ground_ctrl = data & 0xff; | |
| 329 | } | |
| 330 | ||
| 331 | static TIMER_CALLBACK( bufend_callback ) | |
| 332 | { | |
| 333 | cpunum_set_input_line_and_vector(Machine, GROUND_CPU, 0, HOLD_LINE, 0xff); | |
| 334 | cpunum_set_input_line(Machine, OBJECT_CPU, NEC_INPUT_LINE_POLL, ASSERT_LINE); | |
| 335 | } | |
| 336 | ||
| 337 | /* Get data for a each 8x8x3 ground tile */ | |
| 338 | #define GET_GROUND_DATA() \ | |
| 339 | { \ | |
| 340 | UINT32 gfx_a4_3 = (ls163 & 0xc) << 1; \ | |
| 341 | UINT32 lut_addr = lut_address + ((ls163 >> 4) & 0xf); \ | |
| 342 | UINT32 gfx_a14_7 = lut_rom[lut_addr] << 7; \ | |
| 343 | clut_addr = (lut_rom[lut_addr] << 4) | clut_a14_12 | clut_a4_3 | (ls163 & 0xc) >> 2; \ | |
| 344 | gfx_addr = gfx_a15 | gfx_a14_7 | gfx_a6_5 | gfx_a4_3 | gfx_a2_0; \ | |
| 345 | pal = (clut_rom[clut_addr] << 3); \ | |
| 346 | rom_data1 = gfx_rom[gfx_addr]; \ | |
| 347 | rom_data2 = gfx_rom[gfx_addr + 0x10000]; \ | |
| 348 | rom_data3 = gfx_rom[gfx_addr + 0x20000]; \ | |
| 349 | } | |
| 350 | ||
| 351 | static void ground_draw(void) | |
| 352 | { | |
| 353 | /* ROM pointers */ | |
| 354 | const UINT8 *const gfx_rom = memory_region(REGION_GFX4); | |
| 355 | const UINT8 *const lut_rom = gfx_rom + 0x30000 + ((ground_ctrl >> 2) & 0x3 ? 0x10000 : 0); | |
| 356 | const UINT8 *const clut_rom = gfx_rom + 0x50000; | |
| 357 | ||
| 358 | UINT32 lut_a15_14 = (ground_ctrl & 0x3) << 14; | |
| 359 | UINT32 clut_a14_12 = (ground_ctrl & 0x70) << 8; | |
| 360 | UINT32 gfx_a15 = (ground_ctrl & 0x40) << 9; | |
| 361 | UINT32 offs = 3; | |
| 362 | UINT32 y; | |
| 363 | ||
| 364 | /* TODO: Clean up and emulate CS of GFX ROMs? */ | |
| 365 | for (y = 0; y < FRAMEBUFFER_MAX_Y; ++y) | |
| 366 | { | |
| 367 | UINT16 *bmpaddr = BITMAP_ADDR16(back_buffer, y, 0); | |
| 368 | UINT8 ls163; | |
| 369 | UINT32 clut_addr; | |
| 370 | UINT32 gfx_addr; | |
| 371 | UINT8 rom_data1 = 0; | |
| 372 | UINT8 rom_data2 = 0; | |
| 373 | UINT8 rom_data3 = 0; | |
| 374 | UINT32 pal = 0; | |
| 375 | UINT32 x; | |
| 376 | ||
| 377 | /* Draw this line? */ | |
| 378 | if (!(lockon_ground_ram[offs] & 0x8000)) | |
| 379 | { | |
| 380 | UINT32 gfx_a2_0 = lockon_ground_ram[offs] & 0x0007; | |
| 381 | UINT32 gfx_a6_5 = (lockon_ground_ram[offs] & 0x0018) << 2; | |
| 382 | UINT32 clut_a4_3 = (lockon_ground_ram[offs] & 0x0018) >> 1; | |
| 383 | UINT8 tz2213_x = lockon_ground_ram[offs + 1] & 0xff; | |
| 384 | UINT8 tz2213_dx = lockon_ground_ram[offs + 2] & 0xff; | |
| 385 | ||
| 386 | UINT32 lut_address = lut_a15_14 + ((lockon_ground_ram[offs] & 0x7fe0) >> 1); | |
| 387 | UINT32 cy = lockon_ground_ram[offs + 2] & 0x0100; | |
| 388 | UINT32 color; | |
| 389 | UINT32 gpbal2_0_prev; | |
| 390 | ||
| 391 | ls163 = lockon_ground_ram[offs + 1] >> 8; | |
| 392 | ||
| 393 | gpbal2_0_prev = ((ls163 & 3) << 1) | BIT(tz2213_x, 7); | |
| 394 | ||
| 395 | if (gpbal2_0_prev) | |
| 396 | GET_GROUND_DATA(); | |
| 397 | ||
| 398 | for (x = 0; x < FRAMEBUFFER_MAX_X; x++) | |
| 399 | { | |
| 400 | UINT32 tz2213_cy; | |
| 401 | UINT32 gpbal2_0 = ((ls163 & 3) << 1) | BIT(tz2213_x, 7); | |
| 402 | ||
| 403 | /* Stepped into a new tile? */ | |
| 404 | if (gpbal2_0 < gpbal2_0_prev) | |
| 405 | GET_GROUND_DATA(); | |
| 406 | ||
| 407 | gpbal2_0_prev = gpbal2_0; | |
| 408 | ||
| 409 | color = pal; | |
| 410 | color += (rom_data1 >> gpbal2_0) & 0x1; | |
| 411 | color += ((rom_data2 >> gpbal2_0) & 0x1) << 1; | |
| 412 | color += ((rom_data3 >> gpbal2_0) & 0x1) << 2; | |
| 413 | ||
| 414 | *bmpaddr++ = Machine->pens[0x800 + color]; | |
| 415 | ||
| 416 | /* Update the counters */ | |
| 417 | tz2213_cy = (UINT8)tz2213_dx > (UINT8)~(tz2213_x); | |
| 418 | tz2213_x = (tz2213_x + tz2213_dx); | |
| 419 | ||
| 420 | /* Carry? */ | |
| 421 | if (tz2213_cy || cy) | |
| 422 | ++ls163; | |
| 423 | } | |
| 424 | } | |
| 425 | ||
| 426 | offs += 3; | |
| 427 | ||
| 428 | /* End of list marker */ | |
| 429 | if (lockon_ground_ram[offs + 2] & 0x8000) | |
| 430 | { | |
| 431 | timer_adjust(bufend_timer, attotime_mul(ATTOTIME_IN_HZ(FRAMEBUFFER_CLOCK), FRAMEBUFFER_MAX_X * y), 0, attotime_zero); | |
| 432 | } | |
| 433 | } | |
| 434 | } | |
| 435 | ||
| 436 | ||
| 437 | /******************************************************************************************* | |
| 438 | ||
| 439 | Object hardware | |
| 440 | ||
| 441 | Customs (4 each, 1 per bitplane) | |
| 442 | TZA118 - Scaling | |
| 443 | TZ4203 - Objects with integrated line buffer. | |
| 444 | ||
| 445 | FEDCBA9876543210 | |
| 446 | 0 |......xxxxxxxxxx| Y position | |
| 447 | |....xx..........| Object Y size | |
| 448 | |..xx............| Object X size | |
| 449 | |.x..............| Y flip | |
| 450 | |x...............| X flip | |
| 451 | 1 |........xxxxxxxx| X/Y scale | |
| 452 | |.xxxxxxx........| Colour | |
| 453 | |x...............| End of list marker | |
| 454 | 2 |xxxxxxxxxxxxxxxx| Chunk ROM address | |
| 455 | 3 |.....xxxxxxxxxxx| X position | |
| 456 | ||
| 457 | *******************************************************************************************/ | |
| 458 | ||
| 459 | /* | |
| 460 | There's logic to prevent shadow pixels from being drawn against the scene tilemap, | |
| 461 | so that shadows don't appear against the sky. | |
| 462 | */ | |
| 463 | #define DRAW_OBJ_PIXEL(COLOR) \ | |
| 464 | do { \ | |
| 465 | if (px < FRAMEBUFFER_MAX_X) \ | |
| 466 | if (COLOR != 0xf) \ | |
| 467 | { \ | |
| 468 | UINT8 clr = obj_pal_ram[(pal << 4) + COLOR]; \ | |
| 469 | UINT16 *pix = (line + px); \ | |
| 470 | if (!(clr == 0xff && ((*pix & 0xe00) == 0xa00))) \ | |
| 471 | *pix = Machine->pens[0x400 + clr]; \ | |
| 472 | } \ | |
| 473 | px = (px + 1) & 0x7ff; \ | |
| 474 | } while(0) | |
| 475 | ||
| 476 | static void objects_draw(void) | |
| 477 | { | |
| 478 | UINT32 offs; | |
| 479 | ||
| 480 | const UINT8 *const romlut = memory_region(REGION_USER1); | |
| 481 | const UINT16 *const chklut = (UINT16*)memory_region(REGION_USER2); | |
| 482 | const UINT8 *const gfxrom = memory_region(REGION_GFX5); | |
| 483 | const UINT8 *const sproms = memory_region(REGION_PROMS) + 0x800; | |
| 484 | ||
| 485 | for (offs = 0; offs < lockon_objectram_size; offs += 4) | |
| 486 | { | |
| 487 | UINT32 y; | |
| 488 | UINT32 xpos; | |
| 489 | UINT32 ypos; | |
| 490 | UINT32 xsize; | |
| 491 | UINT32 ysize; | |
| 492 | UINT32 xflip; | |
| 493 | UINT32 yflip; | |
| 494 | UINT32 scale; | |
| 495 | UINT32 pal; | |
| 496 | UINT32 lines; | |
| 497 | UINT32 opsta; | |
| 498 | UINT32 opsta15_8; | |
| 499 | ||
| 500 | /* Retrieve the object attributes */ | |
| 501 | ypos = lockon_object_ram[offs] & 0x03ff; | |
| 502 | xpos = lockon_object_ram[offs + 3] & 0x07ff; | |
| 503 | ysize = (lockon_object_ram[offs] >> 10) & 0x3; | |
| 504 | xsize = (lockon_object_ram[offs] >> 12) & 0x3; | |
| 505 | yflip = BIT(lockon_object_ram[offs], 14); | |
| 506 | xflip = BIT(lockon_object_ram[offs], 15); | |
| 507 | scale = lockon_object_ram[offs + 1] & 0xff; | |
| 508 | pal = (lockon_object_ram[offs + 1] >> 8) & 0x7f; | |
| 509 | opsta = lockon_object_ram[offs + 2]; | |
| 510 | ||
| 511 | if (iden) | |
| 512 | { | |
| 513 | obj_pal_ram[(pal << 4) + obj_pal_addr] = obj_pal_latch; | |
| 514 | break; | |
| 515 | } | |
| 516 | ||
| 517 | /* How many lines will this sprite occupy? The PAL @ IC154 knows... */ | |
| 518 | lines = scale >> (3 - ysize); | |
| 519 | ||
| 520 | opsta15_8 = opsta & 0xff00; | |
| 521 | ||
| 522 | /* Account for line buffering */ | |
| 523 | ypos -=1; | |
| 524 | ||
| 525 | for (y = 0; y < FRAMEBUFFER_MAX_Y; y++) | |
| 526 | { | |
| 527 | UINT32 cy = (y + ypos) & 0x3ff; | |
| 528 | UINT32 optab; | |
| 529 | UINT32 lutaddr; | |
| 530 | UINT32 tile; | |
| 531 | UINT8 cnt; | |
| 532 | UINT32 yidx; | |
| 533 | UINT16 *line = BITMAP_ADDR16(back_buffer, y, 0); | |
| 534 | UINT32 px = xpos; | |
| 535 | ||
| 536 | /* Outside the limits? */ | |
| 537 | if (cy & 0x300) | |
| 538 | continue; | |
| 539 | ||
| 540 | if ((cy & 0xff) >= lines) | |
| 541 | break; | |
| 542 | ||
| 543 | lutaddr = (scale & 0x80 ? 0x8000 : 0) | ((scale & 0x7f) << 8) | (cy & 0xff); | |
| 544 | optab = romlut[lutaddr] & 0x7f; | |
| 545 | ||
| 546 | if (yflip) | |
| 547 | optab ^= 7; | |
| 548 | ||
| 549 | yidx = (optab & 7); | |
| 550 | ||
| 551 | /* Now calculate the lower 7-bits of the LUT ROM address. PAL @ IC157 does this */ | |
| 552 | cnt = (optab >> 3) * (1 << xsize); | |
| 553 | ||
| 554 | if (xflip) | |
| 555 | cnt ^= 7 >> (3 - xsize); | |
| 556 | if (yflip) | |
| 557 | cnt ^= (0xf >> (3 - ysize)) * (1 << xsize); | |
| 558 | ||
| 559 | cnt = (cnt + (opsta & 0xff)); | |
| 560 | ||
| 561 | /* Draw! */ | |
| 562 | for (tile = 0; tile < (1 << xsize); ++tile) | |
| 563 | { | |
| 564 | UINT16 sc; | |
| 565 | UINT16 scl; | |
| 566 | UINT32 x; | |
| 567 | UINT32 tileaddr; | |
| 568 | UINT16 td0, td1, td2, td3; | |
| 569 | UINT32 j; | |
| 570 | UINT32 bank; | |
| 571 | ||
| 572 | scl = scale & 0x7f; | |
| 573 | tileaddr = (chklut[opsta15_8 + cnt] & 0x7fff); | |
| 574 | bank = ((tileaddr >> 12) & 3) * 0x40000; | |
| 575 | tileaddr = bank + ((tileaddr & ~0xf000) << 3); | |
| 576 | ||
| 577 | if (xflip) | |
| 578 | --cnt; | |
| 579 | else | |
| 580 | ++cnt; | |
| 581 | ||
| 582 | /* Draw two 8x8 tiles */ | |
| 583 | for (j = 0; j < 2; ++j) | |
| 584 | { | |
| 585 | /* Get tile data */ | |
| 586 | UINT32 tileadd = tileaddr + (0x20000 * (j ^ xflip)); | |
| 587 | ||
| 588 | /* Retrieve scale values from PROMs */ | |
| 589 | sc = sproms[(scl << 4) + (tile * 2) + j]; | |
| 590 | ||
| 591 | /* Data from ROMs is inverted */ | |
| 592 | td3 = gfxrom[tileadd + yidx] ^ 0xff; | |
| 593 | td2 = gfxrom[tileadd + 0x8000 + yidx] ^ 0xff; | |
| 594 | td1 = gfxrom[tileadd + 0x10000 + yidx] ^ 0xff; | |
| 595 | td0 = gfxrom[tileadd + 0x18000 + yidx] ^ 0xff; | |
| 596 | ||
| 597 | if (scale & 0x80) | |
| 598 | { | |
| 599 | for (x = 0; x < 8; ++x) | |
| 600 | { | |
| 601 | UINT8 col; | |
| 602 | UINT8 pix = x; | |
| 603 | ||
| 604 | if (!xflip) | |
| 605 | pix ^= 0x7; | |
| 606 | ||
| 607 | col = BIT(td0, pix) | |
| 608 | | (BIT(td1, pix) << 1) | |
| 609 | | (BIT(td2, pix) << 2) | |
| 610 | | (BIT(td3, pix) << 3); | |
| 611 | ||
| 612 | DRAW_OBJ_PIXEL(col); | |
| 613 | ||
| 614 | if ( BIT(sc, x) ) | |
| 615 | DRAW_OBJ_PIXEL(col); | |
| 616 | } | |
| 617 | } | |
| 618 | else | |
| 619 | { | |
| 620 | for (x = 0; x < 8; ++x) | |
| 621 | { | |
| 622 | UINT8 col; | |
| 623 | UINT8 pix = x; | |
| 624 | ||
| 625 | if ( BIT(sc, x) ) | |
| 626 | { | |
| 627 | if (!xflip) | |
| 628 | pix ^= 0x7; | |
| 629 | ||
| 630 | col = BIT(td0, pix) | |
| 631 | | (BIT(td1, pix) << 1) | |
| 632 | | (BIT(td2, pix) << 2) | |
| 633 | | (BIT(td3, pix) << 3); | |
| 634 | ||
| 635 | DRAW_OBJ_PIXEL(col); | |
| 636 | } | |
| 637 | } | |
| 638 | } | |
| 639 | } | |
| 640 | } | |
| 641 | } | |
| 642 | ||
| 643 | /* Check for the end of list marker */ | |
| 644 | if (lockon_object_ram[offs + 1] & 0x8000) | |
| 645 | return; | |
| 646 | } | |
| 647 | } | |
| 648 | ||
| 649 | /* The mechanism used by the object CPU to update the object ASICs palette RAM */ | |
| 650 | WRITE16_HANDLER( lockon_tza112_w ) | |
| 651 | { | |
| 652 | if (iden) | |
| 653 | { | |
| 654 | obj_pal_latch = data & 0xff; | |
| 655 | obj_pal_addr = offset & 0xf; | |
| 656 | objects_draw(); | |
| 657 | } | |
| 658 | } | |
| 659 | ||
| 660 | READ16_HANDLER( lockon_obj_4000_r ) | |
| 661 | { | |
| 662 | cpunum_set_input_line(Machine, OBJECT_CPU, NEC_INPUT_LINE_POLL, CLEAR_LINE); | |
| 663 | return 0xffff; | |
| 664 | } | |
| 665 | ||
| 666 | WRITE16_HANDLER( lockon_obj_4000_w ) | |
| 667 | { | |
| 668 | iden = data & 1; | |
| 669 | } | |
| 670 | ||
| 671 | ||
| 672 | /******************************************************************************************* | |
| 673 | ||
| 674 | Frame buffer rotation hardware | |
| 675 | ||
| 676 | FEDCBA9876543210 | |
| 677 | 0 |........xxxxxxxx| X start address | |
| 678 | |.......x........| Direction | |
| 679 | 1 |........xxxxxxxx| TZ2213 IC65 value | |
| 680 | |.......x........| TZ2213 IC65 /enable | |
| 681 | 2 |........xxxxxxxx| TZ2213 IC65 delta | |
| 682 | 3 |........xxxxxxxx| TZ2213 IC106 delta | |
| 683 | |.......x........| TZ2213 IC106 enable | |
| 684 | 4 |.......xxxxxxxxx| Y start address | |
| 685 | 5 |........xxxxxxxx| TZ2213 IC66 value | |
| 686 | 6 |........xxxxxxxx| TZ2213 IC66 delta | |
| 687 | |.......x........| TZ2213 IC65 /enable | |
| 688 | 7 |........xxxxxxxx| TZ2213 IC107 delta | |
| 689 | |.......x........| TZ2213 /enable | |
| 690 | |......x.........| Direction | |
| 691 | ||
| 692 | *******************************************************************************************/ | |
| 693 | ||
| 694 | WRITE16_HANDLER( lockon_fb_clut_w ) | |
| 695 | { | |
| 696 | rgb_t color; | |
| 697 | ||
| 698 | color = palette_get_color(Machine, 0x300 + (data & 0xff)); | |
| 699 | palette_set_color(Machine, 0x400 + offset, color); | |
| 700 | } | |
| 701 | ||
| 702 | /* Rotation control register */ | |
| 703 | WRITE16_HANDLER( lockon_rotate_w ) | |
| 704 | { | |
| 705 | switch (offset & 7) | |
| 706 | { | |
| 707 | case 0: xsal = data & 0x1ff; break; | |
| 708 | case 1: x0ll = data & 0xff; break; | |
| 709 | case 2: dx0ll = data & 0x1ff; break; | |
| 710 | case 3: dxll = data & 0x1ff; break; | |
| 711 | ||
| 712 | case 4: ysal = data & 0x1ff; break; | |
| 713 | case 5: y0ll = data & 0xff; break; | |
| 714 | case 6: dy0ll = data & 0x1ff; break; | |
| 715 | case 7: dyll = data & 0x3ff; break; | |
| 716 | } | |
| 717 | } | |
| 718 | ||
| 719 | #define INCREMENT(ACC, CNT) \ | |
| 720 | do { \ | |
| 721 | carry = (UINT8)d##ACC > (UINT8)~ACC; \ | |
| 722 | ACC += d##ACC; \ | |
| 723 | if (carry) ++CNT; \ | |
| 724 | } while(0) | |
| 725 | ||
| 726 | #define DECREMENT(ACC, CNT) \ | |
| 727 | do { \ | |
| 728 | carry = (UINT8)d##ACC > (UINT8)ACC; \ | |
| 729 | ACC -= d##ACC; \ | |
| 730 | if (carry) --CNT; \ | |
| 731 | } while(0) | |
| 732 | ||
| 733 | static void rotate_draw(mame_bitmap *bitmap, const rectangle *cliprect) | |
| 734 | { | |
| 735 | UINT32 y; | |
| 736 | ||
| 737 | /* Counters */ | |
| 738 | UINT32 cxy = xsal & 0xff; | |
| 739 | UINT32 cyy = ysal & 0x1ff; | |
| 740 | ||
| 741 | /* Accumulator values and deltas */ | |
| 742 | UINT8 axy = x0ll & 0xff; | |
| 743 | UINT8 daxy = dx0ll & 0xff; | |
| 744 | UINT8 ayy = y0ll & 0xff; | |
| 745 | UINT8 dayy = dy0ll & 0xff; | |
| 746 | UINT8 dayx = dyll & 0xff; | |
| 747 | UINT8 daxx = dxll & 0xff; | |
| 748 | ||
| 749 | UINT32 xy_up = BIT(xsal, 8); | |
| 750 | UINT32 yx_up = BIT(dyll, 9); | |
| 751 | UINT32 axx_en = !BIT(dxll, 8); | |
| 752 | UINT32 ayx_en = !BIT(dyll, 8); | |
| 753 | UINT32 axy_en = !BIT(dx0ll, 8); | |
| 754 | UINT32 ayy_en = !BIT(dy0ll, 8); | |
| 755 | ||
| 756 | for (y = 0; y <= cliprect->max_y; ++y) | |
| 757 | { | |
| 758 | UINT32 carry; | |
| 759 | UINT16 *dst = BITMAP_ADDR16(bitmap, y, 0); | |
| 760 | UINT32 x; | |
| 761 | ||
| 762 | UINT32 cx = cxy; | |
| 763 | UINT32 cy = cyy; | |
| 764 | ||
| 765 | UINT8 axx = axy; | |
| 766 | UINT8 ayx = ayy; | |
| 767 | ||
| 768 | for (x = 0; x <= cliprect->max_x; ++x) | |
| 769 | { | |
| 770 | cx &= 0x1ff; | |
| 771 | cy &= 0x1ff; | |
| 772 | ||
| 773 | *dst++ = *BITMAP_ADDR16(front_buffer, cy, cx); | |
| 774 | ||
| 775 | if (axx_en) | |
| 776 | INCREMENT(axx, cx); | |
| 777 | else | |
| 778 | ++cx; | |
| 779 | ||
| 780 | if (ayx_en) | |
| 781 | { | |
| 782 | if (yx_up) | |
| 783 | INCREMENT(ayx, cy); | |
| 784 | else | |
| 785 | DECREMENT(ayx, cy); | |
| 786 | } | |
| 787 | else | |
| 788 | { | |
| 789 | if (yx_up) | |
| 790 | ++cy; | |
| 791 | else | |
| 792 | --cy; | |
| 793 | } | |
| 794 | } | |
| 795 | ||
| 796 | if (axy_en) | |
| 797 | { | |
| 798 | if (xy_up) | |
| 799 | INCREMENT(axy, cxy); | |
| 800 | else | |
| 801 | DECREMENT(axy, cxy); | |
| 802 | } | |
| 803 | else | |
| 804 | { | |
| 805 | if (xy_up) | |
| 806 | ++cxy; | |
| 807 | else | |
| 808 | --cxy; | |
| 809 | } | |
| 810 | ||
| 811 | if (ayy_en) | |
| 812 | INCREMENT(ayy, cyy); | |
| 813 | else | |
| 814 | ++cyy; | |
| 815 | ||
| 816 | cxy &= 0xff; | |
| 817 | cyy &= 0x1ff; | |
| 818 | } | |
| 819 | } | |
| 820 | ||
| 821 | ||
| 822 | /******************************************************************************************* | |
| 823 | ||
| 824 | HUD Drawing Hardware | |
| 825 | ||
| 826 | A sprite layer that uses 8x8x1bpp tiles to form bigger sprites | |
| 827 | ||
| 828 | 0 |.......xxxxxxxxx| Y Position | |
| 829 | |xxxxxxx.........| Code | |
| 830 | 1 |.......xxxxxxxxx| X Position | |
| 831 | |....xxx.........| Colour | |
| 832 | |.xxx............| Sprite width (0=8, 1=16, 2=24, 3=32 pixels, etc.) | |
| 833 | |x...............| End of list marker | |
| 834 | ||
| 835 | *******************************************************************************************/ | |
| 836 | ||
| 837 | static void hud_draw(mame_bitmap *bitmap, const rectangle *cliprect) | |
| 838 | { | |
| 839 | UINT8 *tile_rom = memory_region(REGION_GFX3); | |
| 840 | UINT32 offs; | |
| 841 | ||
| 842 | for (offs = 0x0; offs <= lockon_hudram_size; offs += 2) | |
| 843 | { | |
| 844 | UINT32 y; | |
| 845 | UINT32 y_pos; | |
| 846 | UINT32 x_pos; | |
| 847 | UINT32 y_size; | |
| 848 | UINT32 x_size; | |
| 849 | UINT32 layout; | |
| 850 | UINT16 colour; | |
| 851 | UINT32 code; | |
| 852 | UINT32 rom_a12_7; | |
| 853 | ||
| 854 | /* End of sprite list marker */ | |
| 855 | if (lockon_hud_ram[offs + 1] & 0x8000) | |
| 856 | break; | |
| 857 | ||
| 858 | y_pos = lockon_hud_ram[offs] & 0x1ff; | |
| 859 | x_pos = lockon_hud_ram[offs + 1] & 0x1ff; | |
| 860 | x_size = (lockon_hud_ram[offs + 1] >> 12) & 7; | |
| 861 | code = (lockon_hud_ram[offs] >> 9) & 0x7f; | |
| 862 | colour = Machine->pens[0x200 + ((lockon_hud_ram[offs + 1] >> 9) & 7)]; | |
| 863 | layout = (code >> 5) & 3; | |
| 864 | ||
| 865 | rom_a12_7 = (code & 0xfe) << 6; | |
| 866 | ||
| 867 | /* Account for line buffering */ | |
| 868 | y_pos -= 1; | |
| 869 | ||
| 870 | if (layout == 3) | |
| 871 | y_size = 32; | |
| 872 | else if (layout == 2) | |
| 873 | y_size = 16; | |
| 874 | else | |
| 875 | y_size = 8; | |
| 876 | ||
| 877 | for (y = cliprect->min_y; y <= cliprect->max_y; ++y) | |
| 878 | { | |
| 879 | UINT32 xt; | |
| 880 | UINT32 cy; | |
| 881 | ||
| 882 | cy = y_pos + y; | |
| 883 | ||
| 884 | if (cy < 0x200) | |
| 885 | continue; | |
| 886 | ||
| 887 | if ((cy & 0xff) == y_size) | |
| 888 | break; | |
| 889 | ||
| 890 | for (xt = 0; xt <= x_size; ++xt) | |
| 891 | { | |
| 892 | UINT32 rom_a6_3; | |
| 893 | UINT32 px; | |
| 894 | UINT8 gfx_strip; | |
| 895 | ||
| 896 | if (layout == 3) | |
| 897 | rom_a6_3 = (BIT(cy, 4) << 3) | (BIT(cy, 3) << 2) | (BIT(xt, 1) << 1) | BIT(xt, 0); | |
| 898 | else if (layout == 2) | |
| 899 | rom_a6_3 = ((BIT(code, 0) << 3) | (BIT(xt, 1) << 2) | (BIT(cy, 3) << 1) | (BIT(xt, 0))); | |
| 900 | else | |
| 901 | rom_a6_3 = (BIT(code, 0) << 3) | (xt & 7); | |
| 902 | ||
| 903 | rom_a6_3 <<= 3; | |
| 904 | ||
| 905 | /* Get tile data */ | |
| 906 | gfx_strip = tile_rom[rom_a12_7 | rom_a6_3 | (cy & 7)]; | |
| 907 | ||
| 908 | if (gfx_strip == 0) | |
| 909 | continue; | |
| 910 | ||
| 911 | /* Draw */ | |
| 912 | for (px = 0; px < 8; ++px) | |
| 913 | { | |
| 914 | UINT32 x = x_pos + (xt << 3) + px; | |
| 915 | ||
| 916 | if (x <= cliprect->max_x) | |
| 917 | { | |
| 918 | UINT16 *dst = BITMAP_ADDR16(bitmap, y, x); | |
| 919 | ||
| 920 | if (BIT(gfx_strip, px ^ 7) && *dst > 255) | |
| 921 | *dst = colour; | |
| 922 | } | |
| 923 | } | |
| 924 | } | |
| 925 | } | |
| 926 | } | |
| 927 | } | |
| 928 | ||
| 929 | ||
| 930 | /************************************* | |
| 931 | * | |
| 932 | * Driver video handlers | |
| 933 | * | |
| 934 | *************************************/ | |
| 935 | ||
| 936 | VIDEO_START( lockon ) | |
| 937 | { | |
| 938 | lockon_tilemap = tilemap_create(get_lockon_tile_info, tilemap_scan_rows,TILEMAP_TYPE_PEN, 8, 8, 64, 32); | |
| 939 | tilemap_set_transparent_pen(lockon_tilemap, 0); | |
| 940 | ||
| 941 | /* Allocate the two frame buffers for rotation */ | |
| 942 | back_buffer = auto_bitmap_alloc(512, 512, BITMAP_FORMAT_INDEXED16); | |
| 943 | front_buffer = auto_bitmap_alloc(512, 512, BITMAP_FORMAT_INDEXED16); | |
| 944 | ||
| 945 | /* 2kB of object ASIC palette RAM */ | |
| 946 | obj_pal_ram = auto_malloc(2048); | |
| 947 | ||
| 948 | /* Timer for ground display list callback */ | |
| 949 | bufend_timer = timer_alloc(bufend_callback, NULL); | |
| 950 | ||
| 951 | /* Timer for the CRTC cursor pulse */ | |
| 952 | cursor_timer = timer_alloc(cursor_callback, NULL); | |
| 953 | timer_adjust(cursor_timer, video_screen_get_time_until_pos(0, CURSOR_YPOS, CURSOR_XPOS), 0, attotime_zero); | |
| 954 | } | |
| 955 | ||
| 956 | VIDEO_UPDATE( lockon ) | |
| 957 | { | |
| 958 | /* If screen output is disabled, fill with black */ | |
| 959 | if ( !BIT(lockon_ctrl_reg, 7) ) | |
| 960 | { | |
| 961 | fillbitmap(bitmap, get_black_pen(machine), cliprect); | |
| 962 | return 0; | |
| 963 | } | |
| 964 | ||
| 965 | /* Scan out the frame buffer in rotated order */ | |
| 966 | rotate_draw(bitmap, cliprect); | |
| 967 | ||
| 968 | /* Draw the character tilemap */ | |
| 969 | tilemap_draw(bitmap, cliprect, lockon_tilemap, 0, 0); | |
| 970 | ||
| 971 | /* Draw the HUD */ | |
| 972 | hud_draw(bitmap, cliprect); | |
| 973 | ||
| 974 | return 0; | |
| 975 | } | |
| 976 | ||
| 977 | VIDEO_EOF( lockon ) | |
| 978 | { | |
| 979 | /* Swap the frame buffers */ | |
| 980 | mame_bitmap *tmp = front_buffer; | |
| 981 | front_buffer = back_buffer; | |
| 982 | back_buffer = tmp; | |
| 983 | ||
| 984 | /* Draw the frame buffer layers */ | |
| 985 | scene_draw(); | |
| 986 | ground_draw(); | |
| 987 | objects_draw(); | |
| 988 | ||
| 989 | } |
| r1649 | r1650 | |
|---|---|---|
| 538 | 538 | |
| 539 | 539 | fillbitmap(sprite_bitmap,15,cliprect); |
| 540 | 540 | mappy_draw_sprites(machine,sprite_bitmap,cliprect,0,0,15); |
| 541 | copybitmap(bitmap,sprite_bitmap,0,0,0,0,cliprect | |
| 541 | copybitmap_trans(bitmap,sprite_bitmap,0,0,0,0,cliprect | |
| 542 | 542 | |
| 543 | 543 | /* Redraw the high priority characters */ |
| 544 | 544 | tilemap_draw(bitmap,cliprect,bg_tilemap,1,0); |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ******************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "includes/atari.h" |
| 11 | 12 | #include "video/gtia.h" |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 142 | 142 | */ |
| 143 | 143 | |
| 144 | 144 | #include "driver.h" |
| 145 | #include "deprecat.h" | |
| 145 | 146 | #include "profiler.h" |
| 146 | 147 | #include "segas32.h" |
| 147 | 148 |
| r1649 | r1650 | |
|---|---|---|
| 90 | 90 | */ |
| 91 | 91 | |
| 92 | 92 | #include "driver.h" |
| 93 | #include "deprecat.h" | |
| 93 | 94 | #include "profiler.h" |
| 94 | 95 | #include "psikyosh.h" |
| 95 | 96 | |
| r1649 | r1650 | |
| 328 | 329 | } |
| 329 | 330 | /* Only ever seems to use one linescroll value, ok for now */ |
| 330 | 331 | /* Disabled for now, as they doesn't even support alpha :( */ |
| 331 | // copyscrollbitmap(bitmap,zoom_bitmap,1,bg_scrollx,512,bg_scrolly,cliprect,TRANSPARENCY_PEN,0); | |
| 332 | // copyscrollbitmap(bitmap,zoom_bitmap,256,bg_scrollx,0,bg_scrolly,cliprect,TRANSPARENCY_PEN,0); | |
| 332 | // copyscrollbitmap_trans(bitmap,zoom_bitmap,1,bg_scrollx,512,bg_scrolly,cliprect,0); | |
| 333 | // copyscrollbitmap_trans(bitmap,zoom_bitmap,256,bg_scrollx,0,bg_scrolly,cliprect,0); | |
| 333 | 334 | } |
| 334 | 335 | } |
| 335 | 336 |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | ******************************************************************************/ |
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | #include "deprecat.h" | |
| 13 | 14 | |
| 14 | 15 | static UINT8 *quizdna_bg_ram; |
| 15 | 16 | static UINT8 *quizdna_fg_ram; |
| r1649 | r1650 | |
|---|---|---|
| 45 | 45 | */ |
| 46 | 46 | |
| 47 | 47 | #include "driver.h" |
| 48 | #include "deprecat.h" | |
| 48 | 49 | #include "kan_pand.h" |
| 49 | 50 | |
| 50 | 51 | static UINT8* pandora_spriteram; |
| r1649 | r1650 | |
| 66 | 67 | return; |
| 67 | 68 | } |
| 68 | 69 | |
| 69 | copybitmap(bitmap,pandora_sprites_bitmap,0,0,0,0,cliprect | |
| 70 | copybitmap_trans(bitmap,pandora_sprites_bitmap,0,0,0,0,cliprect | |
| 70 | 71 | } |
| 71 | 72 | |
| 72 | 73 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "deco16ic.h" |
| 3 | 4 | |
| 4 | 5 | static void draw_sprites(running_machine *machine, mame_bitmap *bitmap,const rectangle *cliprect, UINT16* spriteram_base, int gfx_region) |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***********************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "machine/decocass.h" |
| 9 | 10 | |
| 10 | 11 | static INT32 watchdog_count; |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ******************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "fromance.h" |
| 12 | 13 | |
| 13 | 14 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "irobot.h" |
| 9 | 10 | |
| 10 | 11 | #define BITMAP_WIDTH 256 |
| r1649 | r1650 | |
| 44 | 45 | PALETTE_INIT( irobot ) |
| 45 | 46 | { |
| 46 | 47 | int i; |
| 47 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 48 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 49 | 48 | |
| 50 | /* Convert the color prom for the text palette */ | |
| 51 | for (i = 0;i < 32;i++) | |
| 49 | /* convert the color prom for the text palette */ | |
| 50 | for (i = 0; i < 32; i++) | |
| 52 | 51 | { |
| 53 | int r,g,b; | |
| 54 | int bits,intensity; | |
| 55 | UINT32 color; | |
| 52 | int intensity = color_prom[i] & 0x03; | |
| 56 | 53 | |
| 57 | color = *color_prom; | |
| 58 | intensity = color & 0x03; | |
| 59 | bits = (color >> 6) & 0x03; | |
| 60 | r = 28 * bits * intensity; | |
| 61 | bits = (color >> 4) & 0x03; | |
| 62 | g = 28 * bits * intensity; | |
| 63 | bits = (color >> 2) & 0x03; | |
| 64 | b = 28 * bits * intensity; | |
| 65 | palette_set_color(machine,i+64,MAKE_RGB(r,g,b)); | |
| 66 | color_prom++; | |
| 67 | } | |
| 54 | int r = 28 * ((color_prom[i] >> 6) & 0x03) * intensity; | |
| 55 | int g = 28 * ((color_prom[i] >> 4) & 0x03) * intensity; | |
| 56 | int b = 28 * ((color_prom[i] >> 2) & 0x03) * intensity; | |
| 68 | 57 | |
| 69 | /* polygons */ | |
| 70 | for (i = 0;i < 64;i++) | |
| 71 | colortable[i] = i; | |
| 58 | int swapped_i = BITSWAP8(i,7,6,5,4,3,0,1,2); | |
| 72 | 59 | |
| 73 | /* text */ | |
| 74 | for (i = 0;i < TOTAL_COLORS(0);i++) | |
| 75 | { | |
| 76 | COLOR(0,i) = ((i & 0x18) | ((i & 0x01) << 2) | ((i & 0x06) >> 1)) + 64; | |
| 60 | palette_set_color(machine, swapped_i + 64, MAKE_RGB(r, g, b)); | |
| 77 | 61 | } |
| 78 | 62 | } |
| 79 | 63 | |
| r1649 | r1650 | |
| 247 | 231 | polybitmap = polybitmap1; |
| 248 | 232 | |
| 249 | 233 | lpnt=0; |
| 250 | while (lpnt < 0x7 | |
| 234 | while (lpnt < 0x7ff) | |
| 251 | 235 | { |
| 252 | 236 | d1 = combase16[lpnt++]; |
| 253 | if (d1 == 0xFFFF) break; | |
| 254 | spnt = d1 & 0x07FF; | |
| 255 | shp = (d1 & 0xF000) >> 12; | |
| 237 | if (d1 == 0xffff) break; | |
| 238 | spnt = d1 & 0x07ff; | |
| 239 | shp = (d1 & 0xf000) >> 12; | |
| 256 | 240 | |
| 257 | /* | |
| 241 | /* pixel */ | |
| 258 | 242 | if (shp == 0x8) |
| 259 | 243 | { |
| 260 | while (spnt < 0x7 | |
| 244 | while (spnt < 0x7ff) | |
| 261 | 245 | { |
| 262 | 246 | sx = combase16[spnt]; |
| 263 | if (sx == 0x | |
| 247 | if (sx == 0xffff) break; | |
| 264 | 248 | sy = combase16[spnt+1]; |
| 265 | color = sy & 0x3 | |
| 249 | color = sy & 0x3f; | |
| 266 | 250 | sx = ROUND_TO_PIXEL(sx); |
| 267 | 251 | sy = ROUND_TO_PIXEL(sy); |
| 268 | 252 | if (sx >= ir_xmin && sx < ir_xmax && sy >= ir_ymin && sy < ir_ymax) |
| r1649 | r1650 | |
| 271 | 255 | }//while object |
| 272 | 256 | }//if point |
| 273 | 257 | |
| 274 | /* Line */ | |
| 275 | if (shp == 0xC) | |
| 258 | /* line */ | |
| 259 | if (shp == 0xc) | |
| 276 | 260 | { |
| 277 | while (spnt < 0x7 | |
| 261 | while (spnt < 0x7ff) | |
| 278 | 262 | { |
| 279 | 263 | ey = combase16[spnt]; |
| 280 | if (ey == 0x | |
| 264 | if (ey == 0xffff) break; | |
| 281 | 265 | ey = ROUND_TO_PIXEL(ey); |
| 282 | 266 | sy = combase16[spnt+1]; |
| 283 | color = sy & 0x3 | |
| 267 | color = sy & 0x3f; | |
| 284 | 268 | sy = ROUND_TO_PIXEL(sy); |
| 285 | 269 | sx = combase16[spnt+3]; |
| 286 | 270 | word1 = (INT16)combase16[spnt+2]; |
| r1649 | r1650 | |
| 290 | 274 | }//while object |
| 291 | 275 | }//if line |
| 292 | 276 | |
| 293 | /* | |
| 277 | /* polygon */ | |
| 294 | 278 | if (shp == 0x4) |
| 295 | 279 | { |
| 296 | spnt2 = combase16[spnt] & 0x7 | |
| 280 | spnt2 = combase16[spnt] & 0x7ff; | |
| 297 | 281 | |
| 298 | 282 | sx = combase16[spnt+1]; |
| 299 | 283 | sx2 = combase16[spnt+2]; |
| 300 | 284 | sy = combase16[spnt+3]; |
| 301 | color = sy & 0x3 | |
| 285 | color = sy & 0x3f; | |
| 302 | 286 | sy = ROUND_TO_PIXEL(sy); |
| 303 | 287 | spnt+=4; |
| 304 | 288 | |
| 305 | 289 | word1 = (INT16)combase16[spnt]; |
| 306 | 290 | ey = combase16[spnt+1]; |
| 307 | if (word1 != -1 || ey != 0x | |
| 291 | if (word1 != -1 || ey != 0xffff) | |
| 308 | 292 | { |
| 309 | 293 | ey = ROUND_TO_PIXEL(ey); |
| 310 | 294 | spnt+=2; |
| r1649 | r1650 | |
| 337 | 321 | { |
| 338 | 322 | word1 = (INT16)combase16[spnt]; |
| 339 | 323 | ey = combase16[spnt+1]; |
| 340 | if (word1 == -1 && ey == 0x | |
| 324 | if (word1 == -1 && ey == 0xffff) | |
| 341 | 325 | break; |
| 342 | 326 | ey = ROUND_TO_PIXEL(ey); |
| 343 | 327 | spnt+=2; |
| r1649 | r1650 | |
| 374 | 358 | /* redraw the non-zero characters in the alpha layer */ |
| 375 | 359 | for (y = offs = 0; y < 32; y++) |
| 376 | 360 | for (x = 0; x < 32; x++, offs++) |
| 377 | if (videoram[offs] != 0) | |
| 378 | { | |
| 379 | int code = videoram[offs] & 0x3f; | |
| 380 | int color = ((videoram[offs] & 0xC0) >> 6) | (irobot_alphamap >> 3); | |
| 381 | int transp=color + 64; | |
| 361 | { | |
| 362 | int code = videoram[offs] & 0x3f; | |
| 363 | int color = ((videoram[offs] & 0xc0) >> 6) | (irobot_alphamap >> 3); | |
| 382 | 364 | |
| 383 | drawgfx(bitmap,machine->gfx[0], | |
| 384 | code, color, | |
| 385 | 0,0, | |
| 386 | 8*x,8*y, | |
| 387 | cliprect,TRANSPARENCY_COLOR,transp); | |
| 388 | } | |
| 365 | drawgfx(bitmap,machine->gfx[0], | |
| 366 | code, color, | |
| 367 | 0,0, | |
| 368 | 8*x,8*y, | |
| 369 | cliprect,TRANSPARENCY_PEN,0); | |
| 370 | } | |
| 389 | 371 | return 0; |
| 390 | 372 | } |
| r1649 | r1650 | |
|---|---|---|
| 167 | 167 | if (gomoku_bg_dispsw) |
| 168 | 168 | { |
| 169 | 169 | /* copy bg bitmap */ |
| 170 | copybitmap(bitmap, gomoku_bg_bitmap, 0, 0, 0, 0, cliprect | |
| 170 | copybitmap(bitmap, gomoku_bg_bitmap, 0, 0, 0, 0, cliprect | |
| 171 | 171 | |
| 172 | 172 | // stone |
| 173 | 173 | for (y = 0; y < 256; y++) |
| r0 | r1650 | |
|---|---|---|
| 1 | /**************************************************************************** | |
| 2 | ||
| 3 | Irem M57 hardware | |
| 4 | ||
| 5 | ****************************************************************************/ | |
| 6 | ||
| 7 | #include "driver.h" | |
| 8 | #include "m57.h" | |
| 9 | ||
| 10 | ||
| 11 | UINT8 *m57_scroll; | |
| 12 | ||
| 13 | static int flipscreen; | |
| 14 | static tilemap *bg_tilemap; | |
| 15 | ||
| 16 | ||
| 17 | /*************************************************************************** | |
| 18 | ||
| 19 | Convert the color PROMs into a more useable format. | |
| 20 | ||
| 21 | Tropical Angel has two 256x4 character palette PROMs, one 32x8 sprite | |
| 22 | palette PROM, and one 256x4 sprite color lookup table PROM. | |
| 23 | ||
| 24 | I don't know for sure how the palette PROMs are connected to the RGB | |
| 25 | output, but it's probably something like this; note that RED and BLUE | |
| 26 | are swapped wrt the usual configuration. | |
| 27 | ||
| 28 | bit 7 -- 220 ohm resistor -- RED | |
| 29 | -- 470 ohm resistor -- RED | |
| 30 | -- 220 ohm resistor -- GREEN | |
| 31 | -- 470 ohm resistor -- GREEN | |
| 32 | -- 1 kohm resistor -- GREEN | |
| 33 | -- 220 ohm resistor -- BLUE | |
| 34 | -- 470 ohm resistor -- BLUE | |
| 35 | bit 0 -- 1 kohm resistor -- BLUE | |
| 36 | ||
| 37 | ***************************************************************************/ | |
| 38 | PALETTE_INIT( m57 ) | |
| 39 | { | |
| 40 | int i; | |
| 41 | ||
| 42 | machine->colortable = colortable_alloc(machine, 32*8+16); | |
| 43 | ||
| 44 | /* character palette */ | |
| 45 | for (i = 0;i < 256;i++) | |
| 46 | { | |
| 47 | int bit0,bit1,bit2,r,g,b; | |
| 48 | ||
| 49 | /* red component */ | |
| 50 | bit0 = 0; | |
| 51 | bit1 = (color_prom[256] >> 2) & 0x01; | |
| 52 | bit2 = (color_prom[256] >> 3) & 0x01; | |
| 53 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 54 | /* green component */ | |
| 55 | bit0 = (color_prom[0] >> 3) & 0x01; | |
| 56 | bit1 = (color_prom[256] >> 0) & 0x01; | |
| 57 | bit2 = (color_prom[256] >> 1) & 0x01; | |
| 58 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 59 | /* blue component */ | |
| 60 | bit0 = (color_prom[0] >> 0) & 0x01; | |
| 61 | bit1 = (color_prom[0] >> 1) & 0x01; | |
| 62 | bit2 = (color_prom[0] >> 2) & 0x01; | |
| 63 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 64 | ||
| 65 | colortable_palette_set_color(machine->colortable,i,MAKE_RGB(r,g,b)); | |
| 66 | colortable_entry_set_value(machine->colortable,i,i); | |
| 67 | color_prom++; | |
| 68 | } | |
| 69 | ||
| 70 | color_prom += 256; | |
| 71 | /* color_prom now points to the beginning of the sprite palette */ | |
| 72 | ||
| 73 | /* sprite palette */ | |
| 74 | for (i = 0;i < 16;i++) | |
| 75 | { | |
| 76 | int bit0,bit1,bit2,r,g,b; | |
| 77 | ||
| 78 | /* red component */ | |
| 79 | bit0 = 0; | |
| 80 | bit1 = (*color_prom >> 6) & 0x01; | |
| 81 | bit2 = (*color_prom >> 7) & 0x01; | |
| 82 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 83 | /* green component */ | |
| 84 | bit0 = (*color_prom >> 3) & 0x01; | |
| 85 | bit1 = (*color_prom >> 4) & 0x01; | |
| 86 | bit2 = (*color_prom >> 5) & 0x01; | |
| 87 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 88 | /* blue component */ | |
| 89 | bit0 = (*color_prom >> 0) & 0x01; | |
| 90 | bit1 = (*color_prom >> 1) & 0x01; | |
| 91 | bit2 = (*color_prom >> 2) & 0x01; | |
| 92 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 93 | ||
| 94 | colortable_palette_set_color(machine->colortable,i+256,MAKE_RGB(r,g,b)); | |
| 95 | color_prom++; | |
| 96 | } | |
| 97 | ||
| 98 | color_prom += 16; | |
| 99 | /* color_prom now points to the beginning of the sprite lookup table */ | |
| 100 | ||
| 101 | ||
| 102 | /* sprite lookup table */ | |
| 103 | for (i = 0;i < 32*8;i++) | |
| 104 | { | |
| 105 | colortable_entry_set_value(machine->colortable,i+32*8,256 + (~*color_prom & 0x0f)); | |
| 106 | color_prom++; | |
| 107 | } | |
| 108 | } | |
| 109 | ||
| 110 | ||
| 111 | static TILE_GET_INFO( get_tile_info ) | |
| 112 | { | |
| 113 | UINT8 attr = videoram[tile_index*2 + 0]; | |
| 114 | UINT16 code = videoram[tile_index*2 + 1] | ((attr & 0xc0) << 2); | |
| 115 | ||
| 116 | SET_TILE_INFO(0, code, attr & 0x0f, TILE_FLIPXY(attr >> 4)); | |
| 117 | } | |
| 118 | ||
| 119 | ||
| 120 | WRITE8_HANDLER( m57_videoram_w ) | |
| 121 | { | |
| 122 | videoram[offset] = data; | |
| 123 | tilemap_mark_tile_dirty(bg_tilemap, offset / 2); | |
| 124 | } | |
| 125 | ||
| 126 | ||
| 127 | VIDEO_START( m57 ) | |
| 128 | { | |
| 129 | bg_tilemap = tilemap_create(get_tile_info, tilemap_scan_rows, TILEMAP_TYPE_PEN, 8, 8, 32, 32); | |
| 130 | tilemap_set_scroll_rows(bg_tilemap, 256); | |
| 131 | } | |
| 132 | ||
| 133 | ||
| 134 | WRITE8_HANDLER( m57_flipscreen_w ) | |
| 135 | { | |
| 136 | /* screen flip is handled both by software and hardware */ | |
| 137 | data ^= ~readinputport(4) & 1; | |
| 138 | ||
| 139 | flipscreen = data & 1; | |
| 140 | tilemap_set_flip(bg_tilemap, flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0); | |
| 141 | ||
| 142 | coin_counter_w(0,data & 0x02); | |
| 143 | coin_counter_w(1,data & 0x20); | |
| 144 | } | |
| 145 | ||
| 146 | ||
| 147 | ||
| 148 | ||
| 149 | static void draw_background(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect) | |
| 150 | { | |
| 151 | int y; | |
| 152 | ||
| 153 | for (y = 0; y < 256; y++) | |
| 154 | tilemap_set_scrollx(bg_tilemap, y, (y < 64) ? 0 : (y < 128) ? m57_scroll[64] : m57_scroll[y]); | |
| 155 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); | |
| 156 | } | |
| 157 | ||
| 158 | static void draw_sprites(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect) | |
| 159 | { | |
| 160 | int offs; | |
| 161 | ||
| 162 | ||
| 163 | for (offs = spriteram_size-4;offs >= 0;offs -= 4) | |
| 164 | { | |
| 165 | UINT8 attributes = spriteram[offs+1]; | |
| 166 | int sx = spriteram[offs+3]; | |
| 167 | int sy = ((224-spriteram[offs+0]-32)&0xff)+32; | |
| 168 | int code = spriteram[offs+2]; | |
| 169 | int color = attributes&0x1f; | |
| 170 | int flipy = attributes&0x80; | |
| 171 | int flipx = attributes&0x40; | |
| 172 | ||
| 173 | int tile_number = code + ((attributes & 0x20) << 3); | |
| 174 | ||
| 175 | if (flipscreen) | |
| 176 | { | |
| 177 | sx = 240 - sx; | |
| 178 | sy = 224 - sy; | |
| 179 | flipx = !flipx; | |
| 180 | flipy = !flipy; | |
| 181 | } | |
| 182 | ||
| 183 | drawgfx(bitmap,machine->gfx[1], | |
| 184 | tile_number, | |
| 185 | color, | |
| 186 | flipx,flipy, | |
| 187 | sx,sy, | |
| 188 | cliprect,TRANSPARENCY_PENS, | |
| 189 | colortable_get_transpen_mask(machine->colortable, machine->gfx[1], color, 256+15)); | |
| 190 | } | |
| 191 | } | |
| 192 | ||
| 193 | ||
| 194 | ||
| 195 | VIDEO_UPDATE( m57 ) | |
| 196 | { | |
| 197 | draw_background(machine, bitmap, cliprect); | |
| 198 | draw_sprites(machine, bitmap, cliprect); | |
| 199 | return 0; | |
| 200 | } |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | 6 | #include "driver.h" |
| 7 | #include "deprecat.h" | |
| 7 | 8 | #include "video/konamiic.h" |
| 8 | 9 | #include "machine/konamigx.h" |
| 9 | 10 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | |
| 11 | 12 | /* Use the Zero Hour star generator board */ |
| 12 | 13 | extern void redclash_set_stars_enable( UINT8 on ); |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "video/konamiic.h" |
| 11 | 12 | |
| 12 | 13 | static tilemap *bg_tilemap[2]; |
| r1649 | r1650 | |
| 27 | 28 | |
| 28 | 29 | PALETTE_INIT( combasc ) |
| 29 | 30 | { |
| 30 | int i,pal,clut = 0; | |
| 31 | for( pal=0; pal<8; pal++ ) | |
| 31 | int pal; | |
| 32 | ||
| 33 | /* allocate the colortable */ | |
| 34 | machine->colortable = colortable_alloc(machine, 0x80); | |
| 35 | ||
| 36 | for (pal = 0; pal < 8; pal++) | |
| 32 | 37 | { |
| 33 | switch( pal ) | |
| 38 | int i, clut; | |
| 39 | ||
| 40 | switch (pal) | |
| 34 | 41 | { |
| 42 | default: | |
| 35 | 43 | case 0: /* other sprites */ |
| 36 | 44 | case 2: /* other sprites(alt) */ |
| 37 | 45 | clut = 1; /* 0 is wrong for Firing Range III targets */ |
| r1649 | r1650 | |
| 53 | 61 | break; |
| 54 | 62 | } |
| 55 | 63 | |
| 56 | for | |
| 64 | for | |
| 57 | 65 | { |
| 58 | if ((pal & 1) == 0) /* sprites */ | |
| 59 | { | |
| 60 | if (color_prom[256 * clut + i] == 0) | |
| 61 | *(colortable++) = 0; | |
| 62 | else | |
| 63 | *(colortable++) = 16 * pal + color_prom[256 * clut + i]; | |
| 64 | } | |
| 65 | else /* chars */ | |
| 66 | *(colortable++) = 16 * pal + color_prom[256 * clut + i]; | |
| 66 | UINT8 ctabentry; | |
| 67 | ||
| 68 | if (((pal & 0x01) == 0) && (color_prom[(clut << 8) | i] == 0)) | |
| 69 | ctabentry = 0; | |
| 70 | else | |
| 71 | ctabentry = (pal << 4) | (color_prom[(clut << 8) | i] & 0x0f); | |
| 72 | ||
| 73 | colortable_entry_set_value(machine->colortable, (pal << 8) | i, ctabentry); | |
| 67 | 74 | } |
| 68 | 75 | } |
| 69 | 76 | } |
| 70 | 77 | |
| 78 | ||
| 71 | 79 | PALETTE_INIT( combascb ) |
| 72 | 80 | { |
| 73 | int i,pal; | |
| 74 | for( pal=0; pal<8; pal++ ) | |
| 81 | int pal; | |
| 82 | ||
| 83 | /* allocate the colortable */ | |
| 84 | machine->colortable = colortable_alloc(machine, 0x80); | |
| 85 | ||
| 86 | for (pal = 0; pal < 8; pal++) | |
| 75 | 87 | { |
| 76 | for( i=0; i<256; i++ ) | |
| 88 | int i; | |
| 89 | ||
| 90 | for (i = 0; i < 0x100; i++) | |
| 77 | 91 | { |
| 78 | if ((pal & 1) == 0) /* sprites */ | |
| 79 | *(colortable++) = 16 * pal + (color_prom[i] ^ 0x0f); | |
| 80 | else /* chars */ | |
| 81 | *(colortable++) = 16 * pal + (i & 0x0f); /* no lookup? */ | |
| 92 | UINT8 ctabentry; | |
| 93 | ||
| 94 | if ((pal & 1) == 0) | |
| 95 | /* sprites */ | |
| 96 | ctabentry = (pal << 4) | (~color_prom[i] & 0x0f); | |
| 97 | else | |
| 98 | /* chars - no lookup? */ | |
| 99 | ctabentry = (pal << 4) | (i & 0x0f); /* no lookup? */ | |
| 100 | ||
| 101 | colortable_entry_set_value(machine->colortable, (pal << 8) | i, ctabentry); | |
| 82 | 102 | } |
| 83 | 103 | } |
| 84 | 104 | } |
| 85 | 105 | |
| 106 | ||
| 107 | static void set_pens(running_machine *machine) | |
| 108 | { | |
| 109 | int i; | |
| 110 | ||
| 111 | for (i = 0x00; i < 0x100; i += 2) | |
| 112 | { | |
| 113 | UINT16 data = paletteram[i] | (paletteram[i | 1] << 8); | |
| 114 | ||
| 115 | rgb_t color = MAKE_RGB(pal5bit(data >> 0), pal5bit(data >> 5), pal5bit(data >> 10)); | |
| 116 | ||
| 117 | colortable_palette_set_color(machine->colortable, i >> 1, color); | |
| 118 | } | |
| 119 | } | |
| 120 | ||
| 121 | ||
| 122 | ||
| 86 | 123 | /*************************************************************************** |
| 87 | 124 | |
| 88 | 125 | Callbacks for the TileMap code |
| r1649 | r1650 | |
| 444 | 481 | { |
| 445 | 482 | int base_color = (circuit*4)*16+(K007121_ctrlram[circuit][6]&0x10)*2; |
| 446 | 483 | |
| 447 | K007121_sprites_draw( | |
| 484 | K007121_sprites_draw( | |
| 448 | 485 | } |
| 449 | 486 | |
| 450 | 487 | |
| r1649 | r1650 | |
| 452 | 489 | { |
| 453 | 490 | int i; |
| 454 | 491 | |
| 492 | set_pens(machine); | |
| 455 | 493 | |
| 456 | 494 | if (K007121_ctrlram[0][0x01] & 0x02) |
| 457 | 495 | { |
| r1649 | r1650 | |
| 611 | 649 | { |
| 612 | 650 | int i; |
| 613 | 651 | |
| 652 | set_pens(machine); | |
| 653 | ||
| 614 | 654 | for( i=0; i<32; i++ ) |
| 615 | 655 | { |
| 616 | 656 | tilemap_set_scrollx( bg_tilemap[0],i, combasc_io_ram[0x040+i]+5 ); |
| r1649 | r1650 | |
|---|---|---|
| 19 | 19 | PALETTE_INIT( blueprnt ) |
| 20 | 20 | { |
| 21 | 21 | int i; |
| 22 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 23 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 24 | 22 | |
| 25 | for (i = 0;i < | |
| 23 | for (i = 0; i < machine->drv->total_colors; i++) | |
| 26 | 24 | { |
| 27 | int r = ((i >> 0) & 1) * ((i & 0x08) ? 0xbf : 0xff); | |
| 28 | int g = ((i >> 2) & 1) * ((i & 0x08) ? 0xbf : 0xff); | |
| 29 | int b = ((i >> 1) & 1) * ((i & 0x08) ? 0xbf : 0xff); | |
| 30 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 31 | } | |
| 25 | UINT8 pen; | |
| 26 | int r, g, b; | |
| 32 | 27 | |
| 33 | /* chars */ | |
| 34 | for (i = 0;i < 128;i++) | |
| 35 | { | |
| 36 | int base = (i & 0x40) ? 8 : 0; | |
| 37 | COLOR(0,4*i+0) = base + 0; | |
| 38 | COLOR(0,4*i+1) = base + ((i >> 0) & 7); | |
| 39 | COLOR(0,4*i+2) = base + ((i >> 3) & 7); | |
| 40 | COLOR(0,4*i+3) = base + (((i >> 0) & 7) | ((i >> 3) & 7)); | |
| 41 | } | |
| 28 | if (i < 0x200) | |
| 29 | /* characters */ | |
| 30 | pen = ((i & 0x100) >> 5) | | |
| 31 | ((i & 0x002) ? ((i & 0x0e0) >> 5) : 0) | | |
| 32 | ((i & 0x001) ? ((i & 0x01c) >> 2) : 0); | |
| 33 | else | |
| 34 | /* sprites */ | |
| 35 | pen = i - 0x200; | |
| 42 | 36 | |
| 43 | /* sprites */ | |
| 44 | for (i = 0;i < 8;i++) | |
| 45 | COLOR(1,i) = i; | |
| 37 | r = ((pen >> 0) & 1) * ((pen & 0x08) ? 0xbf : 0xff); | |
| 38 | g = ((pen >> 2) & 1) * ((pen & 0x08) ? 0xbf : 0xff); | |
| 39 | b = ((pen >> 1) & 1) * ((pen & 0x08) ? 0xbf : 0xff); | |
| 40 | ||
| 41 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); | |
| 42 | } | |
| 46 | 43 | } |
| 47 | 44 | |
| 48 | 45 | WRITE8_HANDLER( blueprnt_videoram_w ) |
| r1649 | r1650 | |
|---|---|---|
| 24 | 24 | |
| 25 | 25 | ******************************************************************************/ |
| 26 | 26 | |
| 27 | #include <math.h> | |
| 28 | 27 | #include "driver.h" |
| 29 | 28 | #include "profiler.h" |
| 30 | 29 | #include "video/ppu2c0x.h" |
| r1649 | r1650 | |
| 798 | 797 | // with the palette entry at the VRAM address instead of the usual background |
| 799 | 798 | // pen. Micro Machines makes use of this feature. |
| 800 | 799 | int penNum; |
| 800 | ||
| 801 | 801 | if (this_ppu->videoram_addr & 0x03) |
| 802 | { | |
| 803 | 802 | penNum = this_ppu->videoram[this_ppu->videoram_addr & 0x3f1f] & 0x3f; |
| 804 | } | |
| 805 | 803 | else |
| 806 | { | |
| 807 | 804 | penNum = this_ppu->videoram[this_ppu->videoram_addr & 0x3f00] & 0x3f; |
| 808 | ||
| 805 | ||
| 809 | 806 | back_pen = chips[num].machine->pens[penNum + intf->color_base[num]]; |
| 810 | 807 | } |
| 811 | 808 | else |
| r1649 | r1650 | |
| 825 | 822 | UINT16 tmp; |
| 826 | 823 | tmp = ( this_ppu->refresh_data & 0x03e0 ) + 0x20; |
| 827 | 824 | this_ppu->refresh_data &= 0x7c1f; |
| 825 | ||
| 828 | 826 | /* handle bizarro scrolling rollover at the 30th (not 32nd) vertical tile */ |
| 829 | 827 | if ( tmp == 0x03c0 ) |
| 830 | { | |
| 831 | 828 | this_ppu->refresh_data ^= 0x0800; |
| 832 | } | |
| 833 | 829 | else |
| 834 | { | |
| 835 | 830 | this_ppu->refresh_data |= ( tmp & 0x03e0 ); |
| 836 | ||
| 831 | ||
| 837 | 832 | //logerror("updating refresh_data: %04x\n", this_ppu->refresh_data); |
| 838 | 833 | } |
| 839 | 834 | } |
| r1649 | r1650 | |
| 1324 | 1319 | // Because the DMA is only useful during vblank, this may not be strictly necessary since |
| 1325 | 1320 | // the scanline timers should catch us up before drawing actually happens. |
| 1326 | 1321 | #if 0 |
| 1327 | scanline_callback(Machine, num); | |
| 1328 | scanline_callback(Machine, num); | |
| 1329 | scanline_callback(Machine, num); | |
| 1330 | scanline_callback(Machine, num); | |
| 1322 | { | |
| 1323 | ppu2c0x_chip* this_ppu = &chips[num]; | |
| 1324 | ||
| 1325 | scanline_callback(this_ppu->machine, num); | |
| 1326 | scanline_callback(this_ppu->machine, num); | |
| 1327 | scanline_callback(this_ppu->machine, num); | |
| 1328 | scanline_callback(this_ppu->machine, num); | |
| 1329 | } | |
| 1331 | 1330 | #endif |
| 1332 | 1331 | } |
| 1333 | 1332 | |
| r1649 | r1650 | |
| 1345 | 1344 | return; |
| 1346 | 1345 | } |
| 1347 | 1346 | |
| 1348 | copybitmap( bitmap, chips[num].bitmap, flipx, flipy, sx, sy, 0 | |
| 1347 | copybitmap( bitmap, chips[num].bitmap, flipx, flipy, sx, sy, 0 | |
| 1349 | 1348 | } |
| 1350 | 1349 | |
| 1351 | 1350 | /************************************* |
| r1649 | r1650 | |
|---|---|---|
| 130 | 130 | for (offs = 0;offs < 256;offs++) |
| 131 | 131 | scroll[offs] = -buggychl_scrollv[offs/8]; |
| 132 | 132 | |
| 133 | copyscrollbitmap(tmpbitmap2,tmpbitmap1,1,&bg_scrollx,256,scroll,NULL | |
| 133 | copyscrollbitmap(tmpbitmap2,tmpbitmap1,1,&bg_scrollx,256,scroll,NULL | |
| 134 | 134 | |
| 135 | 135 | /* then copy to the screen doing row scroll */ |
| 136 | 136 | for (offs = 0;offs < 256;offs++) |
| 137 | 137 | scroll[offs] = -buggychl_scrollh[offs]; |
| 138 | 138 | |
| 139 | copyscrollbitmap(bitmap,tmpbitmap2,256,scroll,0,0,cliprect, | |
| 139 | copyscrollbitmap_trans(bitmap,tmpbitmap2,256,scroll,0,0,cliprect,machine->pens[ | |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "includes/starshp1.h" |
| 9 | #include <math.h> | |
| 10 | 10 | |
| 11 | 11 | UINT8* starshp1_playfield_ram; |
| 12 | 12 | UINT8* starshp1_hpos_ram; |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "video/taitoic.h" |
| 3 | 4 | #include "includes/taito_f2.h" |
| 4 | 5 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | |
| 11 | 12 | UINT8 *gottlieb_charram; |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "includes/tubep.h" |
| 11 | 12 | #include "video/resnet.h" |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "cpu/m6809/m6809.h" |
| 3 | 4 | #include "homedata.h" |
| 4 | 5 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | *************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | |
| 9 | 10 | |
| 10 | 11 | UINT8 *exidy_videoram; |
| r1649 | r1650 | |
| 376 | 377 | |
| 377 | 378 | /* update the background and draw it */ |
| 378 | 379 | draw_background(); |
| 379 | copybitmap(bitmap, background_bitmap, 0, 0, 0, 0, cliprect | |
| 380 | copybitmap(bitmap, background_bitmap, 0, 0, 0, 0, cliprect | |
| 380 | 381 | |
| 381 | 382 | /* draw the sprites */ |
| 382 | 383 | draw_sprites(machine, bitmap, NULL); |
| r1649 | r1650 | |
|---|---|---|
| 101 | 101 | sy = xxmissio_yscroll; |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | copyscrollbitmap(bitmap,tmpbitmap,1,&sx,1,&sy, | |
| 104 | copyscrollbitmap(bitmap,tmpbitmap,1,&sx,1,&sy, | |
| 105 | 105 | |
| 106 | 106 | /* draw sprites */ |
| 107 | 107 | |
| r1649 | r1650 | |
| 137 | 137 | col, |
| 138 | 138 | fx,fy, |
| 139 | 139 | px,py, |
| 140 | | |
| 140 | | |
| 141 | 141 | if (px>0x1e0) |
| 142 | 142 | drawgfx(bitmap,machine->gfx[1], |
| 143 | 143 | chr, |
| 144 | 144 | col, |
| 145 | 145 | fx,fy, |
| 146 | 146 | px-0x200,py, |
| 147 | | |
| 147 | | |
| 148 | 148 | |
| 149 | 149 | } |
| 150 | 150 | |
| r1649 | r1650 | |
| 175 | 175 | col, |
| 176 | 176 | flipscreen,flipscreen, |
| 177 | 177 | px,py, |
| 178 | | |
| 178 | | |
| 179 | 179 | } |
| 180 | 180 | } |
| 181 | 181 |
| r1649 | r1650 | |
|---|---|---|
| 239 | 239 | VIDEO_UPDATE( hyhoo ) |
| 240 | 240 | { |
| 241 | 241 | if (hyhoo_dispflag) |
| 242 | copybitmap(bitmap, hyhoo_tmpbitmap, hyhoo_flipscreen, hyhoo_flipscreen, 0, 0, cliprect | |
| 242 | copybitmap(bitmap, hyhoo_tmpbitmap, hyhoo_flipscreen, hyhoo_flipscreen, 0, 0, cliprect | |
| 243 | 243 | else |
| 244 | 244 | fillbitmap(bitmap, RGB_BLACK, cliprect); |
| 245 | 245 |
| r1649 | r1650 | |
|---|---|---|
| 1096 | 1096 | |
| 1097 | 1097 | // usrintf_showmessage("%d", hng64_hackTm3Count) ; |
| 1098 | 1098 | |
| 1099 | if (hng64_hackTm3Count/4 < | |
| 1099 | if (hng64_hackTm3Count/4 < machine->screen[0].visarea.max_y) | |
| 1100 | 1100 | { |
| 1101 | 1101 | for (i = 0; i < hng64_hackTm3Count/4; i++) |
| 1102 | 1102 | { |
| r1649 | r1650 | |
|---|---|---|
| 2 | 2 | see DRIVER file for notes */ |
| 3 | 3 | |
| 4 | 4 | #include "driver.h" |
| 5 | #include "deprecat.h" | |
| 5 | 6 | |
| 6 | 7 | |
| 7 | 8 | UINT32 *macrossp_scra_videoram, *macrossp_scra_videoregs; |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | |
| 9 | 10 | UINT8 *gladiatr_videoram, *gladiatr_colorram, *gladiatr_textram; |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | ***************************************************************************/ |
| 12 | 12 | |
| 13 | 13 | #include "driver.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "skychut.h" |
| 15 | 16 | |
| 16 | 17 | static tilemap * tx_tilemap; |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | |
| 3 | 4 | |
| 4 | 5 | extern UINT8 *taitol_rambanks; |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 11 | #include "video/resnet.h" | |
| 10 | 12 | |
| 11 | 13 | |
| 12 | 14 | static UINT8 flipscreen; |
| r1649 | r1650 | |
| 39 | 41 | ***************************************************************************/ |
| 40 | 42 | PALETTE_INIT( gyruss ) |
| 41 | 43 | { |
| 44 | static const int resistances_rg[3] = { 1000, 470, 220 }; | |
| 45 | static const int resistances_b [2] = { 470, 220 }; | |
| 46 | double rweights[3], gweights[3], bweights[2]; | |
| 42 | 47 | int i; |
| 43 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 44 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 45 | 48 | |
| 49 | /* compute the color output resistor weights */ | |
| 50 | compute_resistor_weights(0, 255, -1.0, | |
| 51 | 3, &resistances_rg[0], rweights, 470, 0, | |
| 52 | 3, &resistances_rg[0], gweights, 470, 0, | |
| 53 | 2, &resistances_b[0], bweights, 470, 0); | |
| 46 | 54 | |
| 47 | for (i = 0;i < machine->drv->total_colors;i++) | |
| 55 | /* allocate the colortable */ | |
| 56 | machine->colortable = colortable_alloc(machine, 32); | |
| 57 | ||
| 58 | /* create a lookup table for the palette */ | |
| 59 | for (i = 0; i < 0x20; i++) | |
| 48 | 60 | { |
| 49 | int bit0,bit1,bit2,r,g,b; | |
| 61 | int bit0, bit1, bit2; | |
| 62 | int r, g, b; | |
| 50 | 63 | |
| 64 | /* red component */ | |
| 65 | bit0 = (color_prom[i] >> 0) & 0x01; | |
| 66 | bit1 = (color_prom[i] >> 1) & 0x01; | |
| 67 | bit2 = (color_prom[i] >> 2) & 0x01; | |
| 68 | r = combine_3_weights(rweights, bit0, bit1, bit2); | |
| 51 | 69 | |
| 52 | /* red component */ | |
| 53 | bit0 = (*color_prom >> 0) & 0x01; | |
| 54 | bit1 = (*color_prom >> 1) & 0x01; | |
| 55 | bit2 = (*color_prom >> 2) & 0x01; | |
| 56 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 57 | 70 | /* green component */ |
| 58 | bit0 = (*color_prom >> 3) & 0x01; | |
| 59 | bit1 = (*color_prom >> 4) & 0x01; | |
| 60 | bit2 = (*color_prom >> 5) & 0x01; | |
| 61 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 71 | bit0 = (color_prom[i] >> 3) & 0x01; | |
| 72 | bit1 = (color_prom[i] >> 4) & 0x01; | |
| 73 | bit2 = (color_prom[i] >> 5) & 0x01; | |
| 74 | g = combine_3_weights(gweights, bit0, bit1, bit2); | |
| 75 | ||
| 62 | 76 | /* blue component */ |
| 63 | bit0 = 0; | |
| 64 | bit1 = (*color_prom >> 6) & 0x01; | |
| 65 | bit2 = (*color_prom >> 7) & 0x01; | |
| 66 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 77 | bit0 = (color_prom[i] >> 6) & 0x01; | |
| 78 | bit1 = (color_prom[i] >> 7) & 0x01; | |
| 79 | b = combine_2_weights(bweights, bit0, bit1); | |
| 67 | 80 | |
| 68 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 69 | color_prom++; | |
| 81 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 70 | 82 | } |
| 71 | 83 | |
| 72 | /* color_prom now points to the beginning of the sprite lookup table */ | |
| 84 | /* color_prom now points to the beginning of the lookup table */ | |
| 85 | color_prom += 32; | |
| 73 | 86 | |
| 74 | /* sprites */ | |
| 75 | for (i = 0;i < TOTAL_COLORS(1);i++) | |
| 76 | COLOR(1,i) = *(color_prom++) & 0x0f; | |
| 87 | /* sprites map to the lower 16 palette entries */ | |
| 88 | for (i = 0; i < 0x100; i++) | |
| 89 | { | |
| 90 | UINT8 ctabentry = color_prom[i] & 0x0f; | |
| 91 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 92 | } | |
| 77 | 93 | |
| 78 | /* characters */ | |
| 79 | for (i = 0;i < TOTAL_COLORS(0);i++) | |
| 80 | COLOR(0,i) = (*(color_prom++) & 0x0f) + 0x10; | |
| 94 | /* characters map to the upper 16 palette entries */ | |
| 95 | for (i = 0x100; i < 0x140; i++) | |
| 96 | { | |
| 97 | UINT8 ctabentry = color_prom[i] & 0x0f; | |
| 98 | colortable_entry_set_value(machine->colortable, i, ctabentry + 0x10); | |
| 99 | } | |
| 81 | 100 | } |
| 82 | 101 | |
| 83 | 102 | |
| r1649 | r1650 | |
| 130 | 149 | sy = 241 - sr[offs + 3]; |
| 131 | 150 | if (sy > line-16 && sy <= line) |
| 132 | 151 | { |
| 133 | drawgfx(bitmap,machine->gfx[ | |
| 152 | drawgfx(bitmap,machine->gfx[ | |
| 134 | 153 | sr[offs + 1]/2 + 4*(sr[offs + 2] & 0x20), |
| 135 | 154 | sr[offs + 2] & 0x0f, |
| 136 | 155 | !(sr[offs + 2] & 0x40),sr[offs + 2] & 0x80, |
| r1649 | r1650 | |
| 165 | 184 | flipy = !flipy; |
| 166 | 185 | } |
| 167 | 186 | |
| 168 | drawgfx(bitmap,machine->gfx[ | |
| 187 | drawgfx(bitmap,machine->gfx[2], | |
| 169 | 188 | videoram[offs] + 8 * (colorram[offs] & 0x20), |
| 170 | 189 | colorram[offs] & 0x0f, |
| 171 | 190 | flipx,flipy, |
| r1649 | r1650 | |
| 196 | 215 | } |
| 197 | 216 | |
| 198 | 217 | if ((colorram[offs] & 0x10) != 0) |
| 199 | drawgfx(bitmap,machine->gfx[ | |
| 218 | drawgfx(bitmap,machine->gfx[2], | |
| 200 | 219 | videoram[offs] + 8 * (colorram[offs] & 0x20), |
| 201 | 220 | colorram[offs] & 0x0f, |
| 202 | 221 | flipx,flipy, |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | PALETTE_INIT( fastlane ) |
| 10 | 10 | { |
| 11 | int pal | |
| 11 | int pal | |
| 12 | 12 | |
| 13 | for (pal = 0;pal < 16;pal++) | |
| 13 | /* allocate the colortable */ | |
| 14 | machine->colortable = colortable_alloc(machine, 0x400); | |
| 15 | ||
| 16 | for (pal = 0; pal < 0x10; pal++) | |
| 14 | 17 | { |
| 15 | for (col = 0;col < 1024;col++) | |
| 18 | int i; | |
| 19 | ||
| 20 | for (i = 0; i < 0x400; i++) | |
| 16 | 21 | { |
| 17 | *(colortable++) = (col & ~0x0f) | color_prom[16 * pal + (col & 0x0f)]; | |
| 22 | UINT8 ctabentry = (i & 0x3f0) | color_prom[(pal << 4) | (i & 0x0f)]; | |
| 23 | colortable_entry_set_value(machine->colortable, (pal << 10) | i, ctabentry); | |
| 18 | 24 | } |
| 19 | 25 | } |
| 20 | 26 | } |
| 21 | 27 | |
| 28 | ||
| 29 | static void set_pens(running_machine *machine) | |
| 30 | { | |
| 31 | int i; | |
| 32 | ||
| 33 | for (i = 0x00; i < 0x800; i += 2) | |
| 34 | { | |
| 35 | UINT16 data = paletteram[i | 1] | (paletteram[i] << 8); | |
| 36 | ||
| 37 | rgb_t color = MAKE_RGB(pal5bit(data >> 0), pal5bit(data >> 5), pal5bit(data >> 10)); | |
| 38 | ||
| 39 | colortable_palette_set_color(machine->colortable, i >> 1, color); | |
| 40 | } | |
| 41 | } | |
| 42 | ||
| 43 | ||
| 44 | ||
| 22 | 45 | /*************************************************************************** |
| 23 | 46 | |
| 24 | 47 | Callbacks for the TileMap code |
| r1649 | r1650 | |
| 130 | 153 | sect_rect(&finalclip0, cliprect); |
| 131 | 154 | sect_rect(&finalclip1, cliprect); |
| 132 | 155 | |
| 156 | set_pens(machine); | |
| 157 | ||
| 133 | 158 | /* set scroll registers */ |
| 134 | 159 | xoffs = K007121_ctrlram[0][0x00]; |
| 135 | 160 | for( i=0; i<32; i++ ){ |
| r1649 | r1650 | |
| 138 | 163 | tilemap_set_scrolly( layer0, 0, K007121_ctrlram[0][0x02] ); |
| 139 | 164 | |
| 140 | 165 | tilemap_draw(bitmap,&finalclip0,layer0,0,0); |
| 141 | K007121_sprites_draw(machine, | |
| 166 | K007121_sprites_draw(0,bitmap,machine->gfx,machine->colort | |
| 142 | 167 | tilemap_draw(bitmap,&finalclip1,layer1,0,0); |
| 143 | 168 | return 0; |
| 144 | 169 | } |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "kangaroo.h" |
| 9 | 10 | |
| 10 | 11 | |
| 11 | 12 | UINT8 *kangaroo_video_control; |
| 12 | UINT8 *kangaroo_bank_select; | |
| 13 | UINT8 *kangaroo_blitter; | |
| 14 | UINT8 *kangaroo_scroll; | |
| 15 | 13 | |
| 16 | static int screen_flipped; | |
| 17 | static mame_bitmap *tmpbitmap2; | |
| 18 | 14 | |
| 15 | static void blitter_execute(void); | |
| 19 | 16 | |
| 20 | /*************************************************************************** | |
| 21 | 17 | |
| 22 | Convert the color PROMs into a more useable format. | |
| 23 | 18 | |
| 24 | Kangaroo doesn't have color PROMs, the playfield data is directly converted | |
| 25 | into colors: 1 bit per gun, therefore only 8 possible colors, but there is | |
| 26 | also a global mask register which controls intensities of the three guns, | |
| 27 | separately for foreground and background. The fourth bit in the video RAM | |
| 28 | data disables this mask, making the color display at full intensity | |
| 29 | regardless of the mask value. | |
| 30 | Actually the mask doesn't directly control intensity. The guns are rapidly | |
| 31 | turned on and off at a subpixel rate, relying on the monitor to blend the | |
| 32 | colors into a more or less uniform half intensity color. | |
| 19 | /************************************* | |
| 20 | * | |
| 21 | * Video setup | |
| 22 | * | |
| 23 | *************************************/ | |
| 33 | 24 | |
| 34 | We use three groups of 8 pens: the first is fixed and contains the 8 | |
| 35 | possible colors; the other two are dynamically modified when the mask | |
| 36 | register is written to, one is for the background, the other for sprites. | |
| 37 | ||
| 38 | ***************************************************************************/ | |
| 39 | ||
| 40 | PALETTE_INIT( kangaroo ) | |
| 41 | { | |
| 42 | int i; | |
| 43 | ||
| 44 | for (i = 0;i < machine->drv->total_colors;i++) | |
| 45 | palette_set_color_rgb(machine,i,pal1bit(i >> 2),pal1bit(i >> 1),pal1bit(i >> 0)); | |
| 46 | } | |
| 47 | ||
| 48 | ||
| 49 | ||
| 50 | /*************************************************************************** | |
| 51 | ||
| 52 | Start the video hardware emulation. | |
| 53 | ||
| 54 | ***************************************************************************/ | |
| 55 | ||
| 56 | 25 | VIDEO_START( kangaroo ) |
| 57 | 26 | { |
| 58 | tmpbitmap = auto_bitmap_alloc(machine->screen[0].width,machine->screen[0].height,machine->screen[0].format); | |
| 59 | tmpbitmap2 = auto_bitmap_alloc(machine->screen[0].width,machine->screen[0].height,machine->screen[0].format); | |
| 60 | ||
| 61 | videoram = auto_malloc(machine->screen[0].width*machine->screen[0].height); | |
| 27 | videoram = auto_malloc(256 * 256); | |
| 28 | state_save_register_global_pointer(videoram, 256 * 256); | |
| 62 | 29 | } |
| 63 | 30 | |
| 64 | 31 | |
| 65 | 32 | |
| 33 | /************************************* | |
| 34 | * | |
| 35 | * Video control writes | |
| 36 | * | |
| 37 | *************************************/ | |
| 38 | ||
| 66 | 39 | WRITE8_HANDLER( kangaroo_video_control_w ) |
| 67 | 40 | { |
| 68 | /* A & B bitmap control latch (A=playfield B=motion) | |
| 69 | bit 5 FLIP A | |
| 70 | bit 4 FLIP B | |
| 71 | bit 3 EN A | |
| 72 | bit 2 EN B | |
| 73 | bit 1 PRI A | |
| 74 | bit 0 PRI B */ | |
| 41 | kangaroo_video_control[offset] = data; | |
| 75 | 42 | |
| 76 | i | |
| 43 | switch ( | |
| 77 | 44 | { |
| 78 | screen_flipped = 1; | |
| 79 | } | |
| 45 | case 5: /* blitter start */ | |
| 46 | blitter_execute(); | |
| 47 | break; | |
| 80 | 48 | |
| 81 | *kangaroo_video_control = data; | |
| 49 | case 8: /* bank select */ | |
| 50 | memory_set_bank(1, (data & 0x05) ? 0 : 1); | |
| 51 | break; | |
| 52 | } | |
| 82 | 53 | } |
| 83 | 54 | |
| 84 | 55 | |
| 85 | WRITE8_HANDLER( kangaroo_bank_select_w ) | |
| 86 | { | |
| 87 | UINT8 *RAM = memory_region(REGION_GFX1); | |
| 88 | 56 | |
| 57 | /************************************* | |
| 58 | * | |
| 59 | * DMA blitter | |
| 60 | * | |
| 61 | *************************************/ | |
| 89 | 62 | |
| 90 | /* this is a VERY crude way to handle the banked ROMs - but it's */ | |
| 91 | /* correct enough to pass the self test */ | |
| 92 | if (data & 0x05) | |
| 93 | memory_set_bankptr(1,&RAM[0x0000]); | |
| 94 | else | |
| 95 | memory_set_bankptr(1,&RAM[0x2000]); | |
| 96 | ||
| 97 | *kangaroo_bank_select = data; | |
| 98 | } | |
| 99 | ||
| 100 | ||
| 101 | ||
| 102 | WRITE8_HANDLER( kangaroo_color_mask_w ) | |
| 63 | static void blitter_execute(void) | |
| 103 | 64 | { |
| 104 | int i; | |
| 65 | int src,dest; | |
| 66 | int x,y,width,height,old_bank_select,new_bank_select; | |
| 105 | 67 | |
| 68 | src = kangaroo_video_control[0] + 256 * kangaroo_video_control[1]; | |
| 69 | dest = kangaroo_video_control[2] + 256 * kangaroo_video_control[3]; | |
| 106 | 70 | |
| 107 | /* color mask for A plane */ | |
| 108 | for (i = 0;i < 8;i++) | |
| 109 | { | |
| 110 | int r,g,b; | |
| 71 | width = kangaroo_video_control[5]; | |
| 72 | height = kangaroo_video_control[4]; | |
| 111 | 73 | |
| 74 | old_bank_select = new_bank_select = kangaroo_video_control[8]; | |
| 112 | 75 | |
| 113 | r = ((i & 4) >> 2) * ((data & 0x20) ? 0xff : 0x7f); | |
| 114 | g = ((i & 2) >> 1) * ((data & 0x10) ? 0xff : 0x7f); | |
| 115 | b = ((i & 1) >> 0) * ((data & 0x08) ? 0xff : 0x7f); | |
| 76 | if (new_bank_select & 0x0c) new_bank_select |= 0x0c; | |
| 77 | if (new_bank_select & 0x03) new_bank_select |= 0x03; | |
| 116 | 78 | |
| 117 | palette_set_color(Machine,8+i,MAKE_RGB(r,g,b)); | |
| 118 | } | |
| 79 | kangaroo_video_control_w(8, new_bank_select & 0x05); | |
| 119 | 80 | |
| 120 | /* color mask for B plane */ | |
| 121 | for (i = 0;i < 8;i++) | |
| 81 | for (x = 0; x <= width; x++) | |
| 122 | 82 | { |
| 123 | int r,g,b; | |
| 83 | for (y = 0; y <= height; y++) | |
| 84 | program_write_byte(dest + y, program_read_byte(src++)); | |
| 124 | 85 | |
| 125 | ||
| 126 | r = ((i & 4) >> 2) * ((data & 0x04) ? 0xff : 0x7f); | |
| 127 | g = ((i & 2) >> 1) * ((data & 0x02) ? 0xff : 0x7f); | |
| 128 | b = ((i & 1) >> 0) * ((data & 0x01) ? 0xff : 0x7f); | |
| 129 | ||
| 130 | palette_set_color(Machine,16+i,MAKE_RGB(r,g,b)); | |
| 86 | dest += 256; | |
| 131 | 87 | } |
| 132 | } | |
| 133 | 88 | |
| 89 | src = kangaroo_video_control[0] + 256 * kangaroo_video_control[1]; | |
| 90 | dest = kangaroo_video_control[2] + 256 * kangaroo_video_control[3]; | |
| 134 | 91 | |
| 92 | kangaroo_video_control_w(8, new_bank_select & 0x0a); | |
| 135 | 93 | |
| 136 | WRITE8_HANDLER( kangaroo_blitter_w ) | |
| 137 | { | |
| 138 | kangaroo_blitter[offset] = data; | |
| 139 | ||
| 140 | if (offset == 5) /* trigger DMA */ | |
| 94 | for (x = 0; x <= width; x++) | |
| 141 | 95 | { |
| 142 | int src,dest; | |
| 143 | int x,y,xb,yb,old_bank_select,new_bank_select; | |
| 96 | for (y = 0; y <= height; y++) | |
| 97 | program_write_byte(dest + y, program_read_byte(src++)); | |
| 144 | 98 | |
| 145 | src = kangaroo_blitter[0] + 256 * kangaroo_blitter[1]; | |
| 146 | dest = kangaroo_blitter[2] + 256 * kangaroo_blitter[3]; | |
| 147 | ||
| 148 | xb = kangaroo_blitter[5]; | |
| 149 | yb = kangaroo_blitter[4]; | |
| 150 | ||
| 151 | old_bank_select = new_bank_select = *kangaroo_bank_select; | |
| 152 | ||
| 153 | if (new_bank_select & 0x0c) new_bank_select |= 0x0c; | |
| 154 | if (new_bank_select & 0x03) new_bank_select |= 0x03; | |
| 155 | kangaroo_bank_select_w(0, new_bank_select & 0x05); | |
| 156 | ||
| 157 | for (x = 0;x <= xb;x++) | |
| 158 | { | |
| 159 | for (y = 0;y <= yb;y++) | |
| 160 | { | |
| 161 | program_write_byte(dest++, program_read_byte(src++)); | |
| 162 | } | |
| 163 | ||
| 164 | dest = dest - (yb + 1) + 256; | |
| 165 | } | |
| 166 | ||
| 167 | src = kangaroo_blitter[0] + 256 * kangaroo_blitter[1]; | |
| 168 | dest = kangaroo_blitter[2] + 256 * kangaroo_blitter[3]; | |
| 169 | ||
| 170 | kangaroo_bank_select_w(0, new_bank_select & 0x0a); | |
| 171 | ||
| 172 | for (x = 0;x <= xb;x++) | |
| 173 | { | |
| 174 | for (y = 0;y <= yb;y++) | |
| 175 | { | |
| 176 | program_write_byte(dest++, program_read_byte(src++)); | |
| 177 | } | |
| 178 | ||
| 179 | dest = dest - (yb + 1) + 256; | |
| 180 | } | |
| 181 | ||
| 182 | kangaroo_bank_select_w(0, old_bank_select); | |
| 99 | dest += 256; | |
| 183 | 100 | } |
| 184 | } | |
| 185 | 101 | |
| 186 | ||
| 187 | ||
| 188 | INLINE void kangaroo_plot_pixel(mame_bitmap *bitmap, int x, int y, int col, int color_base, int flip) | |
| 189 | { | |
| 190 | if (flip) | |
| 191 | { | |
| 192 | x = bitmap->width - 1 - x; | |
| 193 | y = bitmap->height - 1 - y; | |
| 194 | } | |
| 195 | ||
| 196 | *BITMAP_ADDR16(bitmap, y, x) = Machine->pens[((col & 0x08) ? 0 : color_base) + (col & 0x07)]; | |
| 102 | kangaroo_video_control_w(8, old_bank_select); | |
| 197 | 103 | } |
| 198 | 104 | |
| 199 | INLINE void kangaroo_redraw_4pixels(int x, int y) | |
| 200 | { | |
| 201 | int offs, flipA, flipB; | |
| 202 | 105 | |
| 203 | 106 | |
| 204 | offs = y * 256 + x; | |
| 107 | /************************************* | |
| 108 | * | |
| 109 | * Video RAM writes | |
| 110 | * | |
| 111 | *************************************/ | |
| 205 | 112 | |
| 206 | flipA = *kangaroo_video_control & 0x20; | |
| 207 | flipB = *kangaroo_video_control & 0x10; | |
| 208 | ||
| 209 | kangaroo_plot_pixel(tmpbitmap , x , y, videoram[offs ] & 0x0f, 8, flipA); | |
| 210 | kangaroo_plot_pixel(tmpbitmap , x+1, y, videoram[offs+1] & 0x0f, 8, flipA); | |
| 211 | kangaroo_plot_pixel(tmpbitmap , x+2, y, videoram[offs+2] & 0x0f, 8, flipA); | |
| 212 | kangaroo_plot_pixel(tmpbitmap , x+3, y, videoram[offs+3] & 0x0f, 8, flipA); | |
| 213 | kangaroo_plot_pixel(tmpbitmap2, x , y, videoram[offs ] >> 4, 16, flipB); | |
| 214 | kangaroo_plot_pixel(tmpbitmap2, x+1, y, videoram[offs+1] >> 4, 16, flipB); | |
| 215 | kangaroo_plot_pixel(tmpbitmap2, x+2, y, videoram[offs+2] >> 4, 16, flipB); | |
| 216 | kangaroo_plot_pixel(tmpbitmap2, x+3, y, videoram[offs+3] >> 4, 16, flipB); | |
| 217 | } | |
| 218 | ||
| 219 | 113 | WRITE8_HANDLER( kangaroo_videoram_w ) |
| 220 | 114 | { |
| 221 | int a_Z_R,a_G_B,b_Z_R,b_G_B; | |
| 222 | 115 | int sx, sy, offs; |
| 223 | 116 | |
| 224 | a_Z_R = *kangaroo_bank_select & 0x01; | |
| 225 | a_G_B = *kangaroo_bank_select & 0x02; | |
| 226 | b_Z_R = *kangaroo_bank_select & 0x04; | |
| 227 | b_G_B = *kangaroo_bank_select & 0x08; | |
| 228 | ||
| 229 | ||
| 230 | 117 | sx = (offset / 256) * 4; |
| 231 | 118 | sy = offset % 256; |
| 232 | 119 | offs = sy * 256 + sx; |
| 233 | 120 | |
| 234 | if (a_G_B) | |
| 121 | /* rearrange the bits to a more convenient pattern (from DCBADCBA to DDCCBBAA) */ | |
| 122 | data = BITSWAP8(data, 7,3,6,2,5,1,4,0); | |
| 123 | ||
| 124 | /* B layer, green & blue bits */ | |
| 125 | if (kangaroo_video_control[8] & 0x08) | |
| 235 | 126 | { |
| 236 | videoram[offs ] = (videoram[offs ] & 0xfc) | ((data & 0x10) >> 3) | ((data & 0x01) >> 0); | |
| 237 | videoram[offs+1] = (videoram[offs+1] & 0xfc) | ((data & 0x20) >> 4) | ((data & 0x02) >> 1); | |
| 238 | videoram[offs+2] = (videoram[offs+2] & 0xfc) | ((data & 0x40) >> 5) | ((data & 0x04) >> 2); | |
| 239 | videoram[offs+3] = (videoram[offs+3] & 0xfc) | ((data & 0x80) >> 6) | ((data & 0x08) >> 3); | |
| 127 | videoram[offs ] = (videoram[offs ] & 0xcf) | (((data >> 0) & 3) << 4); | |
| 128 | videoram[offs+1] = (videoram[offs+1] & 0xcf) | (((data >> 2) & 3) << 4); | |
| 129 | videoram[offs+2] = (videoram[offs+2] & 0xcf) | (((data >> 4) & 3) << 4); | |
| 130 | videoram[offs+3] = (videoram[offs+3] & 0xcf) | (((data >> 6) & 3) << 4); | |
| 240 | 131 | } |
| 241 | 132 | |
| 242 | if (a_Z_R) | |
| 133 | /* B layer, Z & red bits */ | |
| 134 | if (kangaroo_video_control[8] & 0x04) | |
| 243 | 135 | { |
| 244 | videoram[offs ] = (videoram[offs ] & 0xf3) | ((data & 0x10) >> 1) | ((data & 0x01) << 2); | |
| 245 | videoram[offs+1] = (videoram[offs+1] & 0xf3) | ((data & 0x20) >> 2) | ((data & 0x02) << 1); | |
| 246 | videoram[offs+2] = (videoram[offs+2] & 0xf3) | ((data & 0x40) >> 3) | ((data & 0x04) >> 0); | |
| 247 | videoram[offs+3] = (videoram[offs+3] & 0xf3) | ((data & 0x80) >> 4) | ((data & 0x08) >> 1); | |
| 136 | videoram[offs ] = (videoram[offs ] & 0x3f) | (((data >> 0) & 3) << 6); | |
| 137 | videoram[offs+1] = (videoram[offs+1] & 0x3f) | (((data >> 2) & 3) << 6); | |
| 138 | videoram[offs+2] = (videoram[offs+2] & 0x3f) | (((data >> 4) & 3) << 6); | |
| 139 | videoram[offs+3] = (videoram[offs+3] & 0x3f) | (((data >> 6) & 3) << 6); | |
| 248 | 140 | } |
| 249 | 141 | |
| 250 | if (b_G_B) | |
| 142 | /* A layer, green & blue bits */ | |
| 143 | if (kangaroo_video_control[8] & 0x02) | |
| 251 | 144 | { |
| 252 | videoram[offs ] = (videoram[offs ] & 0xcf) | ((data & 0x10) << 1) | ((data & 0x01) << 4); | |
| 253 | videoram[offs+1] = (videoram[offs+1] & 0xcf) | ((data & 0x20) >> 0) | ((data & 0x02) << 3); | |
| 254 | videoram[offs+2] = (videoram[offs+2] & 0xcf) | ((data & 0x40) >> 1) | ((data & 0x04) << 2); | |
| 255 | videoram[offs+3] = (videoram[offs+3] & 0xcf) | ((data & 0x80) >> 2) | ((data & 0x08) << 1); | |
| 145 | videoram[offs ] = (videoram[offs ] & 0xfc) | (((data >> 0) & 3) << 0); | |
| 146 | videoram[offs+1] = (videoram[offs+1] & 0xfc) | (((data >> 2) & 3) << 0); | |
| 147 | videoram[offs+2] = (videoram[offs+2] & 0xfc) | (((data >> 4) & 3) << 0); | |
| 148 | videoram[offs+3] = (videoram[offs+3] & 0xfc) | (((data >> 6) & 3) << 0); | |
| 256 | 149 | } |
| 257 | 150 | |
| 258 | if (b_Z_R) | |
| 151 | /* A layer, Z & red bits */ | |
| 152 | if (kangaroo_video_control[8] & 0x01) | |
| 259 | 153 | { |
| 260 | videoram[offs ] = (videoram[offs ] & 0x3f) | ((data & 0x10) << 3) | ((data & 0x01) << 6); | |
| 261 | videoram[offs+1] = (videoram[offs+1] & 0x3f) | ((data & 0x20) << 2) | ((data & 0x02) << 5); | |
| 262 | videoram[offs+2] = (videoram[offs+2] & 0x3f) | ((data & 0x40) << 1) | ((data & 0x04) << 4); | |
| 263 | videoram[offs+3] = (videoram[offs+3] & 0x3f) | ((data & 0x80) << 0) | ((data & 0x08) << 3); | |
| 154 | videoram[offs ] = (videoram[offs ] & 0xf3) | (((data >> 0) & 3) << 2); | |
| 155 | videoram[offs+1] = (videoram[offs+1] & 0xf3) | (((data >> 2) & 3) << 2); | |
| 156 | videoram[offs+2] = (videoram[offs+2] & 0xf3) | (((data >> 4) & 3) << 2); | |
| 157 | videoram[offs+3] = (videoram[offs+3] & 0xf3) | (((data >> 6) & 3) << 2); | |
| 264 | 158 | } |
| 265 | ||
| 266 | kangaroo_redraw_4pixels(sx, sy); | |
| 267 | 159 | } |
| 268 | 160 | |
| 269 | 161 | |
| 270 | 162 | |
| 163 | /************************************* | |
| 164 | * | |
| 165 | * Video updater | |
| 166 | * | |
| 167 | *************************************/ | |
| 168 | ||
| 271 | 169 | VIDEO_UPDATE( kangaroo ) |
| 272 | 170 | { |
| 273 | int scrollx, scrolly; | |
| 171 | UINT8 scrolly = kangaroo_video_control[6]; | |
| 172 | UINT8 scrollx = kangaroo_video_control[7]; | |
| 173 | UINT8 maska = kangaroo_video_control[10] >> 3; | |
| 174 | UINT8 maskb = kangaroo_video_control[10] >> 0; | |
| 175 | UINT8 xora = (kangaroo_video_control[9] & 0x20) ? 0xff : 0x00; | |
| 176 | UINT8 xorb = (kangaroo_video_control[9] & 0x10) ? 0xff : 0x00; | |
| 177 | UINT8 enaa = (kangaroo_video_control[9] & 0x08); | |
| 178 | UINT8 enab = (kangaroo_video_control[9] & 0x04); | |
| 179 | UINT8 pria = (~kangaroo_video_control[9] & 0x02); | |
| 180 | UINT8 prib = (~kangaroo_video_control[9] & 0x01); | |
| 181 | rgb_t pens[8]; | |
| 182 | int x, y; | |
| 274 | 183 | |
| 275 | if (screen_flipped) | |
| 184 | /* build up the pens arrays */ | |
| 185 | for (x = 0; x < 8; x++) | |
| 186 | pens[x] = MAKE_RGB(pal1bit(x >> 2), pal1bit(x >> 1), pal1bit(x >> 0)); | |
| 187 | ||
| 188 | /* iterate over pixels */ | |
| 189 | for (y = cliprect->min_y; y <= cliprect->max_y; y++) | |
| 276 | 190 | { |
| 277 | | |
| 191 | UINT32 *dest = BITMAP_ADDR32(bitmap, y, 0); | |
| 278 | 192 | |
| 279 | /* redraw bitmap */ | |
| 280 | for (x = 0; x < 256; x+=4) | |
| 193 | for (x = cliprect->min_x; x <= cliprect->max_x; x += 2) | |
| 281 | 194 | { |
| 282 | for (y = 0; y < 256; y++) | |
| 283 | { | |
| 284 | kangaroo_redraw_4pixels(x, y); | |
| 285 | } | |
| 286 | } | |
| 195 | UINT8 effxa = scrollx + ((x / 2) ^ xora); | |
| 196 | UINT8 effya = scrolly + (y ^ xora); | |
| 197 | UINT8 effxb = (x / 2) ^ xorb; | |
| 198 | UINT8 effyb = y ^ xorb; | |
| 199 | UINT8 pixa = videoram[effya * 256 + effxa] & 0x0f; | |
| 200 | UINT8 pixb = videoram[effyb * 256 + effxb] >> 4; | |
| 201 | UINT8 finalpens; | |
| 287 | 202 | |
| 288 | screen_flipped = 0; | |
| 289 | } | |
| 203 | finalpens = 0; | |
| 204 | if (enaa && (pria || pixb == 0)) | |
| 205 | finalpens |= pixa; | |
| 206 | if (enab && (prib || pixa == 0)) | |
| 207 | finalpens |= pixb; | |
| 290 | 208 | |
| 209 | dest[x + 0] = pens[finalpens & 7]; | |
| 291 | 210 | |
| 292 | scrollx = kangaroo_scroll[1]; | |
| 293 | scrolly = kangaroo_scroll[0]; | |
| 211 | /* KOS1 alternates at 5MHz, offset from the pixel clock by 1/2 clock */ | |
| 212 | /* when 0, it enables the color mask for pixels with Z = 0 */ | |
| 213 | finalpens = 0; | |
| 214 | if (enaa && (pria || pixb == 0)) | |
| 215 | { | |
| 216 | if (!(pixa & 0x08)) pixa &= ~maska; | |
| 217 | finalpens |= pixa; | |
| 218 | } | |
| 219 | if (enab && (prib || pixa == 0)) | |
| 220 | { | |
| 221 | if (!(pixb & 0x08)) pixb &= ~maskb; | |
| 222 | finalpens |= pixb; | |
| 223 | } | |
| 294 | 224 | |
| 295 | if (*kangaroo_bank_select & 0x01) | |
| 296 | { | |
| 297 | /* Plane B is primary */ | |
| 298 | copybitmap(bitmap,tmpbitmap2,0,0,0,0,&machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 299 | copyscrollbitmap(bitmap,tmpbitmap,1,&scrollx,1,&scrolly,&machine->screen[0].visarea,TRANSPARENCY_COLOR,8); | |
| 225 | dest[x + 1] = pens[finalpens & 7]; | |
| 226 | } | |
| 300 | 227 | } |
| 301 | else | |
| 302 | { | |
| 303 | /* Plane A is primary */ | |
| 304 | copyscrollbitmap(bitmap,tmpbitmap,1,&scrollx,1,&scrolly,&machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 305 | copybitmap(bitmap,tmpbitmap2,0,0,0,0,&machine->screen[0].visarea,TRANSPARENCY_COLOR,16); | |
| 306 | } | |
| 228 | ||
| 307 | 229 | return 0; |
| 308 | 230 | } |
| r0 | r1650 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | Irem M58 hardware | |
| 4 | ||
| 5 | ***************************************************************************/ | |
| 6 | ||
| 7 | #include "driver.h" | |
| 8 | #include "deprecat.h" | |
| 9 | #include "m58.h" | |
| 10 | #include "video/resnet.h" | |
| 11 | ||
| 12 | UINT8 *yard_scroll_x_low; | |
| 13 | UINT8 *yard_scroll_x_high; | |
| 14 | UINT8 *yard_scroll_y_low; | |
| 15 | UINT8 *yard_score_panel_disabled; | |
| 16 | static mame_bitmap *scroll_panel_bitmap; | |
| 17 | ||
| 18 | static tilemap *bg_tilemap; | |
| 19 | ||
| 20 | #define SCROLL_PANEL_WIDTH (14*4) | |
| 21 | #define RADAR_PALETTE_BASE (256) | |
| 22 | ||
| 23 | ||
| 24 | ||
| 25 | /************************************* | |
| 26 | * | |
| 27 | * Palette configuration | |
| 28 | * | |
| 29 | *************************************/ | |
| 30 | ||
| 31 | PALETTE_INIT( yard ) | |
| 32 | { | |
| 33 | const UINT8 *char_lopal = color_prom + 0x000; | |
| 34 | const UINT8 *char_hipal = color_prom + 0x100; | |
| 35 | const UINT8 *sprite_pal = color_prom + 0x200; | |
| 36 | const UINT8 *sprite_table = color_prom + 0x220; | |
| 37 | const UINT8 *radar_lopal = color_prom + 0x320; | |
| 38 | const UINT8 *radar_hipal = color_prom + 0x420; | |
| 39 | static const int resistances_3[3] = { 1000, 470, 220 }; | |
| 40 | static const int resistances_2[2] = { 470, 220 }; | |
| 41 | double weights_r[3], weights_g[3], weights_b[3], scale; | |
| 42 | int i; | |
| 43 | ||
| 44 | machine->colortable = colortable_alloc(machine, 256+256+16); | |
| 45 | ||
| 46 | /* compute palette information for characters/radar */ | |
| 47 | scale = compute_resistor_weights(0, 255, -1.0, | |
| 48 | 2, resistances_2, weights_r, 0, 0, | |
| 49 | 3, resistances_3, weights_g, 0, 0, | |
| 50 | 3, resistances_3, weights_b, 0, 0); | |
| 51 | ||
| 52 | /* character palette */ | |
| 53 | for (i = 0; i < 256; i++) | |
| 54 | { | |
| 55 | UINT8 promval = (char_lopal[i] & 0x0f) | (char_hipal[i] << 4); | |
| 56 | int r = combine_2_weights(weights_r, BIT(promval,6), BIT(promval,7)); | |
| 57 | int g = combine_3_weights(weights_g, BIT(promval,3), BIT(promval,4), BIT(promval,5)); | |
| 58 | int b = combine_3_weights(weights_b, BIT(promval,0), BIT(promval,1), BIT(promval,2)); | |
| 59 | ||
| 60 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r,g,b)); | |
| 61 | } | |
| 62 | ||
| 63 | /* radar palette */ | |
| 64 | for (i = 0; i < 256; i++) | |
| 65 | { | |
| 66 | UINT8 promval = (radar_lopal[i] & 0x0f) | (radar_hipal[i] << 4); | |
| 67 | int r = combine_2_weights(weights_r, BIT(promval,6), BIT(promval,7)); | |
| 68 | int g = combine_3_weights(weights_g, BIT(promval,3), BIT(promval,4), BIT(promval,5)); | |
| 69 | int b = combine_3_weights(weights_b, BIT(promval,0), BIT(promval,1), BIT(promval,2)); | |
| 70 | ||
| 71 | colortable_palette_set_color(machine->colortable, 256+i, MAKE_RGB(r,g,b)); | |
| 72 | } | |
| 73 | ||
| 74 | /* compute palette information for sprites */ | |
| 75 | scale = compute_resistor_weights(0, 255, scale, | |
| 76 | 2, resistances_2, weights_r, 470, 0, | |
| 77 | 3, resistances_3, weights_g, 470, 0, | |
| 78 | 3, resistances_3, weights_b, 470, 0); | |
| 79 | ||
| 80 | /* sprite palette */ | |
| 81 | for (i = 0; i < 16; i++) | |
| 82 | { | |
| 83 | UINT8 promval = sprite_pal[i]; | |
| 84 | int r = combine_2_weights(weights_r, BIT(promval,6), BIT(promval,7)); | |
| 85 | int g = combine_3_weights(weights_g, BIT(promval,3), BIT(promval,4), BIT(promval,5)); | |
| 86 | int b = combine_3_weights(weights_b, BIT(promval,0), BIT(promval,1), BIT(promval,2)); | |
| 87 | ||
| 88 | colortable_palette_set_color(machine->colortable, 256+256+i, MAKE_RGB(r,g,b)); | |
| 89 | } | |
| 90 | ||
| 91 | /* character lookup table */ | |
| 92 | for (i = 0; i < 256; i++) | |
| 93 | colortable_entry_set_value(machine->colortable, i, i); | |
| 94 | ||
| 95 | /* radar lookup table */ | |
| 96 | for (i = 0; i < 256; i++) | |
| 97 | colortable_entry_set_value(machine->colortable, 256+i, 256+i); | |
| 98 | ||
| 99 | /* sprite lookup table */ | |
| 100 | for (i = 0; i < 256; i++) | |
| 101 | { | |
| 102 | UINT8 promval = sprite_table[i] & 0x0f; | |
| 103 | colortable_entry_set_value(machine->colortable, 256+256+i, 256+256+promval); | |
| 104 | } | |
| 105 | } | |
| 106 | ||
| 107 | ||
| 108 | ||
| 109 | /************************************* | |
| 110 | * | |
| 111 | * Video RAM access | |
| 112 | * | |
| 113 | *************************************/ | |
| 114 | ||
| 115 | WRITE8_HANDLER( yard_videoram_w ) | |
| 116 | { | |
| 117 | videoram[offset] = data; | |
| 118 | tilemap_mark_tile_dirty(bg_tilemap, offset / 2); | |
| 119 | } | |
| 120 | ||
| 121 | ||
| 122 | WRITE8_HANDLER( yard_scroll_panel_w ) | |
| 123 | { | |
| 124 | int sx,sy,i; | |
| 125 | ||
| 126 | sx = ( offset % 16 ); | |
| 127 | sy = ( offset / 16 ); | |
| 128 | ||
| 129 | if (sx < 1 || sx > 14) return; | |
| 130 | ||
| 131 | sx = 4 * (sx - 1); | |
| 132 | ||
| 133 | for (i = 0;i < 4;i++) | |
| 134 | { | |
| 135 | int col; | |
| 136 | ||
| 137 | col = (data >> i) & 0x11; | |
| 138 | col = ((col >> 3) | col) & 3; | |
| 139 | ||
| 140 | *BITMAP_ADDR16(scroll_panel_bitmap, sy, sx + i) = RADAR_PALETTE_BASE + (sy & 0xfc) + col; | |
| 141 | } | |
| 142 | } | |
| 143 | ||
| 144 | ||
| 145 | ||
| 146 | /************************************* | |
| 147 | * | |
| 148 | * Tilemap info callback | |
| 149 | * | |
| 150 | *************************************/ | |
| 151 | ||
| 152 | static TILE_GET_INFO( yard_get_bg_tile_info ) | |
| 153 | { | |
| 154 | int offs = tile_index * 2; | |
| 155 | int attr = videoram[offs + 1]; | |
| 156 | int code = videoram[offs] + ((attr & 0xc0) << 2); | |
| 157 | int color = attr & 0x1f; | |
| 158 | int flags = (attr & 0x20) ? TILE_FLIPX : 0; | |
| 159 | ||
| 160 | SET_TILE_INFO(0, code, color, flags); | |
| 161 | } | |
| 162 | ||
| 163 | ||
| 164 | static UINT32 yard_tilemap_scan_rows( UINT32 col, UINT32 row, UINT32 num_cols, UINT32 num_rows ) | |
| 165 | { | |
| 166 | /* logical (col,row) -> memory offset */ | |
| 167 | if (col >= 32) | |
| 168 | return (row+32)*32 + col-32; | |
| 169 | else | |
| 170 | return row*32 + col; | |
| 171 | } | |
| 172 | ||
| 173 | ||
| 174 | ||
| 175 | /************************************* | |
| 176 | * | |
| 177 | * Video startup | |
| 178 | * | |
| 179 | *************************************/ | |
| 180 | ||
| 181 | VIDEO_START( yard ) | |
| 182 | { | |
| 183 | bg_tilemap = tilemap_create(yard_get_bg_tile_info, yard_tilemap_scan_rows, TILEMAP_TYPE_PEN, 8, 8, 64, 32); | |
| 184 | tilemap_set_scrolldx(bg_tilemap, machine->screen[0].visarea.min_x, machine->screen[0].width - (machine->screen[0].visarea.max_x + 1)); | |
| 185 | tilemap_set_scrolldy(bg_tilemap, machine->screen[0].visarea.min_y - 8, machine->screen[0].height + 16 - (machine->screen[0].visarea.max_y + 1)); | |
| 186 | ||
| 187 | scroll_panel_bitmap = auto_bitmap_alloc(SCROLL_PANEL_WIDTH, machine->screen[0].height, machine->screen[0].format); | |
| 188 | } | |
| 189 | ||
| 190 | ||
| 191 | ||
| 192 | /************************************* | |
| 193 | * | |
| 194 | * Sprite rendering | |
| 195 | * | |
| 196 | *************************************/ | |
| 197 | ||
| 198 | #define DRAW_SPRITE(code, sy) drawgfx(bitmap, machine->gfx[1], code, color, flipx, flipy, sx, sy, cliprect, TRANSPARENCY_PENS, colortable_get_transpen_mask(machine->colortable, machine->gfx[1], color, 512)); | |
| 199 | ||
| 200 | static void draw_sprites(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect ) | |
| 201 | { | |
| 202 | int offs; | |
| 203 | ||
| 204 | for (offs = spriteram_size - 4; offs >= 0; offs -= 4) | |
| 205 | { | |
| 206 | int attr = spriteram[offs + 1]; | |
| 207 | int bank = (attr & 0x20) >> 5; | |
| 208 | int code1 = spriteram[offs + 2] & 0xbf; | |
| 209 | int code2 = 0; | |
| 210 | int color = attr & 0x1f; | |
| 211 | int flipx = attr & 0x40; | |
| 212 | int flipy = attr & 0x80; | |
| 213 | int sx = spriteram[offs + 3]; | |
| 214 | int sy1 = 233 - spriteram[offs]; | |
| 215 | int sy2 = 0; | |
| 216 | ||
| 217 | if (flipy) | |
| 218 | { | |
| 219 | code2 = code1; | |
| 220 | code1 += 0x40; | |
| 221 | } | |
| 222 | else | |
| 223 | { | |
| 224 | code2 = code1 + 0x40; | |
| 225 | } | |
| 226 | ||
| 227 | if (flip_screen) | |
| 228 | { | |
| 229 | sx = 240 - sx; | |
| 230 | sy2 = 192 - sy1; | |
| 231 | sy1 = sy2 + 0x10; | |
| 232 | flipx = !flipx; | |
| 233 | flipy = !flipy; | |
| 234 | } | |
| 235 | else | |
| 236 | { | |
| 237 | sy2 = sy1 + 0x10; | |
| 238 | } | |
| 239 | ||
| 240 | DRAW_SPRITE(code1 + 256 * bank, machine->screen[0].visarea.min_y + sy1) | |
| 241 | DRAW_SPRITE(code2 + 256 * bank, machine->screen[0].visarea.min_y + sy2) | |
| 242 | } | |
| 243 | } | |
| 244 | ||
| 245 | ||
| 246 | ||
| 247 | /************************************* | |
| 248 | * | |
| 249 | * Radar panel rendering | |
| 250 | * | |
| 251 | *************************************/ | |
| 252 | ||
| 253 | static void draw_panel( running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect ) | |
| 254 | { | |
| 255 | if (! *yard_score_panel_disabled) | |
| 256 | { | |
| 257 | static const rectangle clippanel = | |
| 258 | { | |
| 259 | 26*8, 32*8-1, | |
| 260 | 1*8, 31*8-1 | |
| 261 | }; | |
| 262 | static const rectangle clippanelflip = | |
| 263 | { | |
| 264 | 0*8, 6*8-1, | |
| 265 | 1*8, 31*8-1 | |
| 266 | }; | |
| 267 | rectangle clip = flip_screen ? clippanelflip : clippanel; | |
| 268 | int sx = flip_screen ? cliprect->min_x - 8 : cliprect->max_x + 1 - SCROLL_PANEL_WIDTH; | |
| 269 | int yoffs = flip_screen ? -40 : -16; | |
| 270 | ||
| 271 | clip.min_y += machine->screen[0].visarea.min_y + yoffs; | |
| 272 | clip.max_y += machine->screen[0].visarea.max_y + yoffs; | |
| 273 | ||
| 274 | copybitmap(bitmap, scroll_panel_bitmap, flip_screen, flip_screen, | |
| 275 | sx, machine->screen[0].visarea.min_y + yoffs, &clip); | |
| 276 | } | |
| 277 | } | |
| 278 | ||
| 279 | ||
| 280 | ||
| 281 | /************************************* | |
| 282 | * | |
| 283 | * Video update | |
| 284 | * | |
| 285 | *************************************/ | |
| 286 | ||
| 287 | VIDEO_UPDATE( yard ) | |
| 288 | { | |
| 289 | tilemap_set_scrollx(bg_tilemap, 0, (*yard_scroll_x_high * 0x100) + *yard_scroll_x_low); | |
| 290 | tilemap_set_scrolly(bg_tilemap, 0, *yard_scroll_y_low); | |
| 291 | ||
| 292 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); | |
| 293 | draw_sprites(machine, bitmap, cliprect); | |
| 294 | draw_panel(machine, bitmap, cliprect); | |
| 295 | return 0; | |
| 296 | } |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "deco16ic.h" |
| 3 | 4 | |
| 4 | 5 | UINT16* pcktgaldb_fgram; |
| r1649 | r1650 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | Time Pilot | |
| 4 | ||
| 5 | driver by Nicola Salmoria | |
| 6 | ||
| 7 | ***************************************************************************/ | |
| 8 | ||
| 1 | 9 | #include "driver.h" |
| 10 | #include "timeplt.h" | |
| 2 | 11 | |
| 3 | UINT8 *timeplt_videoram,*timeplt_colorram; | |
| 4 | 12 | static tilemap *bg_tilemap; |
| 5 | 13 | |
| 6 | /* | |
| 7 | sprites are multiplexed, so we have to buffer the spriteram | |
| 8 | scanline by scanline. | |
| 9 | */ | |
| 10 | static UINT8 *sprite_mux_buffer,*sprite_mux_buffer_2; | |
| 11 | static int scanline; | |
| 12 | 14 | |
| 13 | ||
| 14 | 15 | /*************************************************************************** |
| 15 | 16 | |
| 16 | 17 | Convert the color PROMs into a more useable format. |
| r1649 | r1650 | |
| 38 | 39 | bit 0 -- not connected |
| 39 | 40 | |
| 40 | 41 | ***************************************************************************/ |
| 42 | ||
| 41 | 43 | PALETTE_INIT( timeplt ) |
| 42 | 44 | { |
| 45 | rgb_t palette[32]; | |
| 43 | 46 | int i; |
| 44 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 45 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 46 | 47 | |
| 47 | ||
| 48 | for (i = 0;i < machine->drv->total_colors;i++) | |
| 48 | for (i = 0;i < 32;i++) | |
| 49 | 49 | { |
| 50 | 50 | int bit0,bit1,bit2,bit3,bit4,r,g,b; |
| 51 | 51 | |
| 52 | ||
| 53 | bit0 = (color_prom[i + machine->drv->total_colors] >> 1) & 0x01; | |
| 54 | bit1 = (color_prom[i + machine->drv->total_colors] >> 2) & 0x01; | |
| 55 | bit2 = (color_prom[i + machine->drv->total_colors] >> 3) & 0x01; | |
| 56 | bit3 = (color_prom[i + machine->drv->total_colors] >> 4) & 0x01; | |
| 57 | bit4 = (color_prom[i + machine->drv->total_colors] >> 5) & 0x01; | |
| 52 | bit0 = (color_prom[i + 1*32] >> 1) & 0x01; | |
| 53 | bit1 = (color_prom[i + 1*32] >> 2) & 0x01; | |
| 54 | bit2 = (color_prom[i + 1*32] >> 3) & 0x01; | |
| 55 | bit3 = (color_prom[i + 1*32] >> 4) & 0x01; | |
| 56 | bit4 = (color_prom[i + 1*32] >> 5) & 0x01; | |
| 58 | 57 | r = 0x19 * bit0 + 0x24 * bit1 + 0x35 * bit2 + 0x40 * bit3 + 0x4d * bit4; |
| 59 | bit0 = (color_prom[i + machine->drv->total_colors] >> 6) & 0x01; | |
| 60 | bit1 = (color_prom[i + machine->drv->total_colors] >> 7) & 0x01; | |
| 61 | bit2 = (color_prom[i] >> 0) & 0x01; | |
| 62 | bit3 = (color_prom[i] >> 1) & 0x01; | |
| 63 | bit4 = (color_prom[i] >> 2) & 0x01; | |
| 58 | bit0 = (color_prom[i + 1*32] >> 6) & 0x01; | |
| 59 | bit1 = (color_prom[i + 1*32] >> 7) & 0x01; | |
| 60 | bit2 = (color_prom[i + 0*32] >> 0) & 0x01; | |
| 61 | bit3 = (color_prom[i + 0*32] >> 1) & 0x01; | |
| 62 | bit4 = (color_prom[i + 0*32] >> 2) & 0x01; | |
| 64 | 63 | g = 0x19 * bit0 + 0x24 * bit1 + 0x35 * bit2 + 0x40 * bit3 + 0x4d * bit4; |
| 65 | bit0 = (color_prom[i] >> 3) & 0x01; | |
| 66 | bit1 = (color_prom[i] >> 4) & 0x01; | |
| 67 | bit2 = (color_prom[i] >> 5) & 0x01; | |
| 68 | bit3 = (color_prom[i] >> 6) & 0x01; | |
| 69 | bit4 = (color_prom[i] >> 7) & 0x01; | |
| 64 | bit0 = (color_prom[i + 0*32] >> 3) & 0x01; | |
| 65 | bit1 = (color_prom[i + 0*32] >> 4) & 0x01; | |
| 66 | bit2 = (color_prom[i + 0*32] >> 5) & 0x01; | |
| 67 | bit3 = (color_prom[i + 0*32] >> 6) & 0x01; | |
| 68 | bit4 = (color_prom[i + 0*32] >> 7) & 0x01; | |
| 70 | 69 | b = 0x19 * bit0 + 0x24 * bit1 + 0x35 * bit2 + 0x40 * bit3 + 0x4d * bit4; |
| 71 | 70 | |
| 72 | palette | |
| 71 | palette[ | |
| 73 | 72 | } |
| 74 | 73 | |
| 75 | color_prom += 2* | |
| 74 | color_prom += 2*32 | |
| 76 | 75 | /* color_prom now points to the beginning of the lookup table */ |
| 77 | 76 | |
| 78 | 77 | |
| 79 | 78 | /* sprites */ |
| 80 | for (i = 0;i < TOTAL_COLORS(1);i++) | |
| 81 | COLOR(1,i) = *(color_prom++) & 0x0f; | |
| 79 | for (i = 0;i < 64*4;i++) | |
| 80 | palette_set_color(machine, 32*4 + i, palette[*color_prom++ & 0x0f]); | |
| 82 | 81 | |
| 83 | 82 | /* characters */ |
| 84 | for (i = 0;i < TOTAL_COLORS(0);i++) | |
| 85 | COLOR(0,i) = (*(color_prom++) & 0x0f) + 0x10; | |
| 83 | for (i = 0;i < 32*4;i++) | |
| 84 | palette_set_color(machine, i, palette[(*color_prom++ & 0x0f) + 0x10]); | |
| 86 | 85 | } |
| 87 | 86 | |
| 88 | 87 | |
| 89 | 88 | |
| 90 | /*************************************************************************** | |
| 89 | /************************************* | |
| 90 | * | |
| 91 | * Tilemap info callback | |
| 92 | * | |
| 93 | *************************************/ | |
| 91 | 94 | |
| 92 | Callbacks for the TileMap code | |
| 93 | ||
| 94 | ***************************************************************************/ | |
| 95 | ||
| 96 | 95 | static TILE_GET_INFO( get_tile_info ) |
| 97 | 96 | { |
| 98 | UINT8 attr = timeplt_colorram[tile_index]; | |
| 97 | int attr = colorram[tile_index]; | |
| 98 | int code = videoram[tile_index] + 8 * (attr & 0x20); | |
| 99 | int color = attr & 0x1f; | |
| 100 | int flags = TILE_FLIPYX(attr >> 6); | |
| 101 | ||
| 99 | 102 | tileinfo->category = (attr & 0x10) >> 4; |
| 100 | SET_TILE_INFO( | |
| 101 | 0, | |
| 102 | timeplt_videoram[tile_index] + ((attr & 0x20) << 3), | |
| 103 | attr & 0x1f, | |
| 104 | TILE_FLIPYX((attr & 0xc0) >> 6)); | |
| 103 | SET_TILE_INFO(0, code, color, flags); | |
| 105 | 104 | } |
| 106 | 105 | |
| 107 | 106 | |
| 108 | 107 | |
| 109 | /*************************************************************************** | |
| 108 | /************************************* | |
| 109 | * | |
| 110 | * Video startup | |
| 111 | * | |
| 112 | *************************************/ | |
| 110 | 113 | |
| 111 | Start the video hardware emulation. | |
| 112 | ||
| 113 | ***************************************************************************/ | |
| 114 | ||
| 115 | 114 | VIDEO_START( timeplt ) |
| 116 | 115 | { |
| 117 | 116 | bg_tilemap = tilemap_create(get_tile_info,tilemap_scan_rows,TILEMAP_TYPE_PEN,8,8,32,32); |
| 118 | ||
| 119 | sprite_mux_buffer = auto_malloc(256 * spriteram_size); | |
| 120 | sprite_mux_buffer_2 = auto_malloc(256 * spriteram_size); | |
| 121 | 117 | } |
| 122 | 118 | |
| 123 | 119 | |
| 124 | 120 | |
| 125 | /*************************************************************************** | |
| 121 | /************************************* | |
| 122 | * | |
| 123 | * Memory write handlers | |
| 124 | * | |
| 125 | *************************************/ | |
| 126 | 126 | |
| 127 | Memory handlers | |
| 128 | ||
| 129 | ***************************************************************************/ | |
| 130 | ||
| 131 | 127 | WRITE8_HANDLER( timeplt_videoram_w ) |
| 132 | 128 | { |
| 133 | | |
| 129 | | |
| 134 | 130 | tilemap_mark_tile_dirty(bg_tilemap,offset); |
| 135 | 131 | } |
| 136 | 132 | |
| 133 | ||
| 137 | 134 | WRITE8_HANDLER( timeplt_colorram_w ) |
| 138 | 135 | { |
| 139 | | |
| 136 | | |
| 140 | 137 | tilemap_mark_tile_dirty(bg_tilemap,offset); |
| 141 | 138 | } |
| 142 | 139 | |
| 140 | ||
| 143 | 141 | WRITE8_HANDLER( timeplt_flipscreen_w ) |
| 144 | 142 | { |
| 145 | 143 | flip_screen_set(~data & 1); |
| 146 | 144 | } |
| 147 | 145 | |
| 148 | ||
| 146 | ||
| 149 | 147 | READ8_HANDLER( timeplt_scanline_r ) |
| 150 | 148 | { |
| 151 | return sc | |
| 149 | return video_screen_g | |
| 152 | 150 | } |
| 153 | 151 | |
| 154 | 152 | |
| 155 | 153 | |
| 156 | /*************************************************************************** | |
| 154 | /************************************* | |
| 155 | * | |
| 156 | * Sprite rendering | |
| 157 | * | |
| 158 | *************************************/ | |
| 157 | 159 | |
| 158 | Display refresh | |
| 159 | ||
| 160 | ***************************************************************************/ | |
| 161 | ||
| 162 | 160 | static void draw_sprites(running_machine *machine, mame_bitmap *bitmap,const rectangle *cliprect) |
| 163 | 161 | { |
| 164 | const gfx_element *gfx = machine->gfx[1]; | |
| 165 | rectangle clip = *cliprect; | |
| 166 | 162 | int offs; |
| 167 | int line; | |
| 168 | 163 | |
| 169 | ||
| 170 | for (line = 0;line < 256;line++) | |
| 164 | for (offs = 0x3e;offs >= 0x10;offs -= 2) | |
| 171 | 165 | { |
| 172 | if (line >= cliprect->min_y && line <= cliprect->max_y) | |
| 173 | { | |
| 174 | UINT8 *sr,*sr2; | |
| 166 | int sx = spriteram[offs]; | |
| 167 | int sy = 241 - spriteram_2[offs + 1]; | |
| 175 | 168 | |
| 176 | sr = sprite_mux_buffer + line * spriteram_size; | |
| 177 | sr2 = sprite_mux_buffer_2 + line * spriteram_size; | |
| 178 | clip.min_y = clip.max_y = line; | |
| 169 | int code = spriteram[offs + 1]; | |
| 170 | int color = spriteram_2[offs] & 0x3f; | |
| 171 | int flipx = ~spriteram_2[offs] & 0x40; | |
| 172 | int flipy = spriteram_2[offs] & 0x80; | |
| 179 | 173 | |
| 180 | for (offs = spriteram_size - 2;offs >= 0;offs -= 2) | |
| 181 | { | |
| 182 | int code,color,sx,sy,flipx,flipy; | |
| 174 | drawgfx(bitmap,machine->gfx[1], | |
| 175 | code, | |
| 176 | color, | |
| 177 | flipx,flipy, | |
| 178 | sx,sy, | |
| 179 | cliprect,TRANSPARENCY_PEN,0); | |
| 180 | } | |
| 181 | } | |
| 183 | 182 | |
| 184 | sx = sr[offs]; | |
| 185 | sy = 241 - sr2[offs + 1]; | |
| 186 | 183 | |
| 187 | if (sy > line-16 && sy <= line) | |
| 188 | { | |
| 189 | code = sr[offs + 1]; | |
| 190 | color = sr2[offs] & 0x3f; | |
| 191 | flipx = ~sr2[offs] & 0x40; | |
| 192 | flipy = sr2[offs] & 0x80; | |
| 193 | 184 | |
| 194 | drawgfx(bitmap,gfx, | |
| 195 | code, | |
| 196 | color, | |
| 197 | flipx,flipy, | |
| 198 | sx,sy, | |
| 199 | &clip,TRANSPARENCY_PEN,0); | |
| 200 | } | |
| 201 | } | |
| 202 | } | |
| 203 | } | |
| 204 | } | |
| 185 | /************************************* | |
| 186 | * | |
| 187 | * Video update | |
| 188 | * | |
| 189 | *************************************/ | |
| 205 | 190 | |
| 206 | 191 | VIDEO_UPDATE( timeplt ) |
| 207 | 192 | { |
| r1649 | r1650 | |
| 210 | 195 | tilemap_draw(bitmap,cliprect,bg_tilemap,1,0); |
| 211 | 196 | return 0; |
| 212 | 197 | } |
| 213 | ||
| 214 | ||
| 215 | INTERRUPT_GEN( timeplt_interrupt ) | |
| 216 | { | |
| 217 | scanline = 255 - cpu_getiloops(); | |
| 218 | ||
| 219 | memcpy(sprite_mux_buffer + scanline * spriteram_size,spriteram,spriteram_size); | |
| 220 | memcpy(sprite_mux_buffer_2 + scanline * spriteram_size,spriteram_2,spriteram_size); | |
| 221 | ||
| 222 | if (scanline == 255) | |
| 223 | nmi_line_pulse(machine, cpunum); | |
| 224 | } |
| r1649 | r1650 | |
|---|---|---|
| 154 | 154 | CollisionBackground = 0; /* Read from 0x1e80 bit 7 */ |
| 155 | 155 | |
| 156 | 156 | // for collision detection checking |
| 157 | copybitmap(tmpbitmap,bitmap,0,0,0,0,&machine->screen[0].visarea | |
| 157 | copybitmap(tmpbitmap,bitmap,0,0,0,0,&machine->screen[0].visarea | |
| 158 | 158 | |
| 159 | 159 | for(offs=0;offs<0x50;offs+=0x10) |
| 160 | 160 | { |
| r1649 | r1650 | |
|---|---|---|
| 59 | 59 | ***************************************************************************/ |
| 60 | 60 | |
| 61 | 61 | #include "driver.h" |
| 62 | #include "deprecat.h" | |
| 62 | 63 | #include "profiler.h" |
| 63 | 64 | |
| 64 | 65 | |
| r1649 | r1650 | |
| 263 | 264 | |
| 264 | 265 | VIDEO_UPDATE( shangha3 ) |
| 265 | 266 | { |
| 266 | copybitmap(bitmap,rawbitmap,0,0,0,0, | |
| 267 | copybitmap(bitmap,rawbitmap,0,0,0,0, | |
| 267 | 268 | return 0; |
| 268 | 269 | } |
| r1649 | r1650 | |
|---|---|---|
| 204 | 204 | ***************************************************************************/ |
| 205 | 205 | |
| 206 | 206 | #include "driver.h" |
| 207 | #include "deprecat.h" | |
| 207 | 208 | #include "taito_f3.h" |
| 208 | 209 | #include "ui.h" |
| 209 | 210 |
| r1649 | r1650 | |
|---|---|---|
| 77 | 77 | ***************************************************************************/ |
| 78 | 78 | |
| 79 | 79 | #include "driver.h" |
| 80 | #include "deprecat.h" | |
| 80 | 81 | |
| 81 | 82 | UINT16 *gaelco2_vregs; |
| 82 | 83 | static UINT16 *gaelco2_videoram; |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | |
| 3 | 4 | static int homerun_gfx_ctrl; |
| 4 | 5 | static int homerun_gc_up,homerun_gc_down; |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "video/resnet.h" | |
| 10 | 11 | |
| 11 | static int gfxbank; | |
| 12 | static UINT8 gfxbank; | |
| 13 | static UINT8 palette_bank; | |
| 12 | 14 | |
| 13 | 15 | static tilemap *bg_tilemap; |
| 14 | 16 | |
| 17 | ||
| 15 | 18 | /*************************************************************************** |
| 16 | 19 | |
| 17 | 20 | Convert the color PROMs into a more useable format. |
| 18 | 21 | |
| 19 | Pac Man has a 16 bytes palette PROM and a 128 bytes color lookup table PROM. | |
| 20 | ||
| 21 | Pengo has a 32 bytes palette PROM and a 256 bytes color lookup table PROM | |
| 22 | (actually that's 512 bytes, but the high address bit is grounded). | |
| 23 | ||
| 24 | 22 | The palette PROM is connected to the RGB output this way: |
| 25 | 23 | |
| 26 | 24 | bit 7 -- 220 ohm resistor -- BLUE |
| r1649 | r1650 | |
| 33 | 31 | bit 0 -- 1 kohm resistor -- RED |
| 34 | 32 | |
| 35 | 33 | ***************************************************************************/ |
| 34 | ||
| 36 | 35 | PALETTE_INIT( champbas ) |
| 37 | 36 | { |
| 37 | static const int resistances_rg[3] = { 1000, 470, 220 }; | |
| 38 | static const int resistances_b [2] = { 470, 220 }; | |
| 39 | double rweights[3], gweights[3], bweights[2]; | |
| 38 | 40 | int i; |
| 39 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 40 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 41 | 41 | |
| 42 | /* compute the color output resistor weights */ | |
| 43 | compute_resistor_weights(0, 255, -1.0, | |
| 44 | 3, &resistances_rg[0], rweights, 0, 0, | |
| 45 | 3, &resistances_rg[0], gweights, 0, 0, | |
| 46 | 2, &resistances_b[0], bweights, 0, 0); | |
| 42 | 47 | |
| 43 | for (i = 0;i < machine->drv->total_colors;i++) | |
| 48 | /* allocate the colortable */ | |
| 49 | machine->colortable = colortable_alloc(machine, 32); | |
| 50 | ||
| 51 | /* create a lookup table for the palette */ | |
| 52 | for (i = 0; i < 0x20; i++) | |
| 44 | 53 | { |
| 45 | int bit0,bit1,bit2,r,g,b; | |
| 54 | int bit0, bit1, bit2; | |
| 55 | int r, g, b; | |
| 46 | 56 | |
| 57 | /* red component */ | |
| 58 | bit0 = (color_prom[i] >> 0) & 0x01; | |
| 59 | bit1 = (color_prom[i] >> 1) & 0x01; | |
| 60 | bit2 = (color_prom[i] >> 2) & 0x01; | |
| 61 | r = combine_3_weights(rweights, bit0, bit1, bit2); | |
| 47 | 62 | |
| 48 | /* red component */ | |
| 49 | bit0 = (*color_prom >> 0) & 0x01; | |
| 50 | bit1 = (*color_prom >> 1) & 0x01; | |
| 51 | bit2 = (*color_prom >> 2) & 0x01; | |
| 52 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 53 | 63 | /* green component */ |
| 54 | bit0 = (*color_prom >> 3) & 0x01; | |
| 55 | bit1 = (*color_prom >> 4) & 0x01; | |
| 56 | bit2 = (*color_prom >> 5) & 0x01; | |
| 57 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 64 | bit0 = (color_prom[i] >> 3) & 0x01; | |
| 65 | bit1 = (color_prom[i] >> 4) & 0x01; | |
| 66 | bit2 = (color_prom[i] >> 5) & 0x01; | |
| 67 | g = combine_3_weights(gweights, bit0, bit1, bit2); | |
| 68 | ||
| 58 | 69 | /* blue component */ |
| 59 | bit0 = 0; | |
| 60 | bit1 = (*color_prom >> 6) & 0x01; | |
| 61 | bit2 = (*color_prom >> 7) & 0x01; | |
| 62 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 70 | bit0 = (color_prom[i] >> 6) & 0x01; | |
| 71 | bit1 = (color_prom[i] >> 7) & 0x01; | |
| 72 | b = combine_2_weights(bweights, bit0, bit1); | |
| 63 | 73 | |
| 64 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 65 | color_prom++; | |
| 74 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 66 | 75 | } |
| 67 | 76 | |
| 68 | 77 | /* color_prom now points to the beginning of the lookup table */ |
| 78 | color_prom += 32; | |
| 69 | 79 | |
| 70 | /* TODO: there are 32 colors in the palette, but we are suing only 16 */ | |
| 71 | /* the only difference between the two banks is color #14, grey instead of green */ | |
| 72 | ||
| 73 | /* character lookup table */ | |
| 74 | /* sprites use the same color lookup table as characters */ | |
| 75 | for (i = 0;i < TOTAL_COLORS(0);i++) | |
| 76 | COLOR(0,i) = (*(color_prom++) & 0x0f); | |
| 80 | /* character lookup table - sprites use the same color lookup table as characters */ | |
| 81 | for (i = 0; i < 0x200; i++) | |
| 82 | { | |
| 83 | UINT8 ctabentry = ((i & 0x100) >> 4) | (color_prom[i & 0xff] & 0x0f); | |
| 84 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 85 | } | |
| 77 | 86 | } |
| 78 | 87 | |
| 79 | 88 | WRITE8_HANDLER( champbas_videoram_w ) |
| r1649 | r1650 | |
| 97 | 106 | } |
| 98 | 107 | } |
| 99 | 108 | |
| 109 | WRITE8_HANDLER( champbas_palette_bank_w ) | |
| 110 | { | |
| 111 | if (palette_bank != (data & 0x01)) | |
| 112 | { | |
| 113 | palette_bank = data & 0x01; | |
| 114 | tilemap_mark_all_tiles_dirty(ALL_TILEMAPS); | |
| 115 | } | |
| 116 | } | |
| 117 | ||
| 100 | 118 | WRITE8_HANDLER( champbas_flipscreen_w ) |
| 101 | 119 | { |
| 102 | 120 | if (flip_screen != data) |
| r1649 | r1650 | |
| 109 | 127 | static TILE_GET_INFO( get_bg_tile_info ) |
| 110 | 128 | { |
| 111 | 129 | int code = videoram[tile_index]; |
| 112 | int color = (colorram[tile_index] & 0x1f) | |
| 130 | int color = (palette_bank << 6) | 0x20 | (colorram[tile_index] & 0x1f) | |
| 113 | 131 | |
| 114 | 132 | SET_TILE_INFO(gfxbank, code, color, 0); |
| 115 | 133 | } |
| 116 | 134 | |
| 117 | 135 | VIDEO_START( champbas ) |
| 118 | 136 | { |
| 119 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, | |
| 120 | TILEMAP_TYPE_PEN, 8, 8, 32, 32); | |
| 137 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, TILEMAP_TYPE_PEN, 8, 8, 32, 32); | |
| 121 | 138 | } |
| 122 | 139 | |
| 123 | 140 | static void draw_sprites(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect) |
| r1649 | r1650 | |
| 127 | 144 | for (offs = spriteram_size - 2; offs >= 0; offs -= 2) |
| 128 | 145 | { |
| 129 | 146 | int code = spriteram[offs] >> 2; |
| 130 | int color = spriteram[offs + 1]; | |
| 147 | int color = (palette_bank << 6) | (spriteram[offs + 1] & 0x3f); | |
| 131 | 148 | int flipx = spriteram[offs] & 0x01; |
| 132 | 149 | int flipy = spriteram[offs] & 0x02; |
| 133 | 150 | int sx = ((256 + 16 - spriteram_2[offs + 1]) & 0xff) - 16; |
| r1649 | r1650 | |
| 139 | 156 | flipx, flipy, |
| 140 | 157 | sx, sy, |
| 141 | 158 | cliprect, |
| 142 | TRANSPARENCY_COLOR, 0); | |
| 159 | TRANSPARENCY_PENS, | |
| 160 | colortable_get_transpen_mask(machine->colortable, machine->gfx[2 + gfxbank], color, 0)); | |
| 143 | 161 | } |
| 144 | 162 | } |
| 145 | 163 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | |
| 12 | 13 | UINT8 *ssozumo_videoram2; |
| 13 | 14 | UINT8 *ssozumo_colorram2; |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "mcr.h" |
| 9 | 10 | |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | *******************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | |
| 12 | 13 | /*-- Variables --*/ |
| 13 | 14 |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | ***************************************************************************/ |
| 14 | 14 | |
| 15 | 15 | #include "driver.h" |
| 16 | #include "deprecat.h" | |
| 16 | 17 | |
| 17 | 18 | |
| 18 | 19 | |
| r1649 | r1650 | |
| 180 | 181 | |
| 181 | 182 | scrolly = -*matmania_scroll; |
| 182 | 183 | if (matmania_pageselect[0]&0x01) // maniach sets 0x20 sometimes, which must have a different meaning |
| 183 | copyscrollbitmap(bitmap,tmpbitmap2,0,0,1,&scrolly, | |
| 184 | copyscrollbitmap(bitmap,tmpbitmap2,0,0,1,&scrolly, | |
| 184 | 185 | else |
| 185 | copyscrollbitmap(bitmap,tmpbitmap,0,0,1,&scrolly, | |
| 186 | copyscrollbitmap(bitmap,tmpbitmap,0,0,1,&scrolly, | |
| 186 | 187 | } |
| 187 | 188 | |
| 188 | 189 | |
| r1649 | r1650 | |
| 196 | 197 | (spriteram[offs] & 0x08) >> 3, |
| 197 | 198 | spriteram[offs] & 0x04,spriteram[offs] & 0x02, |
| 198 | 199 | 239 - spriteram[offs+3],(240 - spriteram[offs+2]) & 0xff, |
| 199 | | |
| 200 | | |
| 200 | 201 | } |
| 201 | 202 | } |
| 202 | 203 | |
| r1649 | r1650 | |
| 215 | 216 | (matmania_colorram2[offs] & 0x30) >> 4, |
| 216 | 217 | 0,0, |
| 217 | 218 | 8*sx,8*sy, |
| 218 | | |
| 219 | | |
| 219 | 220 | } |
| 220 | 221 | return 0; |
| 221 | 222 | } |
| r1649 | r1650 | |
| 268 | 269 | scrolly = -*matmania_scroll; |
| 269 | 270 | |
| 270 | 271 | if (matmania_pageselect[0]&0x01) // this sets 0x20 sometimes, which must have a different meaning |
| 271 | copyscrollbitmap(bitmap,tmpbitmap2,0,0,1,&scrolly, | |
| 272 | copyscrollbitmap(bitmap,tmpbitmap2,0,0,1,&scrolly, | |
| 272 | 273 | else |
| 273 | copyscrollbitmap(bitmap,tmpbitmap,0,0,1,&scrolly, | |
| 274 | copyscrollbitmap(bitmap,tmpbitmap,0,0,1,&scrolly, | |
| 274 | 275 | } |
| 275 | 276 | |
| 276 | 277 | |
| r1649 | r1650 | |
| 284 | 285 | (spriteram[offs] & 0x08) >> 3, |
| 285 | 286 | spriteram[offs] & 0x04,spriteram[offs] & 0x02, |
| 286 | 287 | 239 - spriteram[offs+3],(240 - spriteram[offs+2]) & 0xff, |
| 287 | | |
| 288 | | |
| 288 | 289 | } |
| 289 | 290 | } |
| 290 | 291 | |
| r1649 | r1650 | |
| 303 | 304 | (matmania_colorram2[offs] & 0x30) >> 4, |
| 304 | 305 | 0,0, |
| 305 | 306 | 8*sx,8*sy, |
| 306 | | |
| 307 | | |
| 307 | 308 | } |
| 308 | 309 | return 0; |
| 309 | 310 | } |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "includes/arkanoid.h" |
| 11 | 12 | |
| 12 | 13 | static UINT8 gfxbank, palettebank; |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | 16 | #include "driver.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | |
| 18 | 19 | extern UINT16 twin16_custom_video; |
| 19 | 20 | extern UINT16 *twin16_gfx_rom; |
| r1649 | r1650 | |
|---|---|---|
| 192 | 192 | ***************************************************************************/ |
| 193 | 193 | |
| 194 | 194 | #include "driver.h" |
| 195 | #include "deprecat.h" | |
| 195 | 196 | #include "megasys1.h" |
| 196 | 197 | |
| 197 | 198 | /* Variables defined here, that have to be shared: */ |
| r1649 | r1650 | |
|---|---|---|
| 17 | 17 | **************************************************************************/ |
| 18 | 18 | |
| 19 | 19 | #include "driver.h" |
| 20 | #include "deprecat.h" | |
| 20 | 21 | #include "includes/pacman.h" |
| 21 | 22 | #include "video/resnet.h" |
| 22 | 23 |
| r1649 | r1650 | |
|---|---|---|
| 64 | 64 | PALETTE_INIT( firebatl ) |
| 65 | 65 | { |
| 66 | 66 | int i; |
| 67 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 68 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 69 | 67 | |
| 68 | /* allocate the colortable */ | |
| 69 | machine->colortable = colortable_alloc(machine, 0x100); | |
| 70 | 70 | |
| 71 | #if 1 | |
| 72 | for (i = 0;i < 256;i++) | |
| 71 | /* create a lookup table for the palette */ | |
| 72 | for (i = 0; i < 0x100; i++) | |
| 73 | 73 | { |
| 74 | int bit0,bit1,bit2,bit3,r,g,b; | |
| 74 | int r = pal4bit(color_prom[i + 0x000]); | |
| 75 | int g = pal4bit(color_prom[i + 0x100]); | |
| 76 | int b = pal4bit(color_prom[i + 0x200]); | |
| 75 | 77 | |
| 76 | ||
| 77 | /* red component */ | |
| 78 | bit0 = (color_prom[i] >> 0) & 0x01; | |
| 79 | bit1 = (color_prom[i] >> 1) & 0x01; | |
| 80 | bit2 = (color_prom[i] >> 2) & 0x01; | |
| 81 | bit3 = (color_prom[i] >> 3) & 0x01; | |
| 82 | r = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 83 | /* green component */ | |
| 84 | bit0 = (color_prom[i + 256] >> 0) & 0x01; | |
| 85 | bit1 = (color_prom[i + 256] >> 1) & 0x01; | |
| 86 | bit2 = (color_prom[i + 256] >> 2) & 0x01; | |
| 87 | bit3 = (color_prom[i + 256] >> 3) & 0x01; | |
| 88 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 89 | /* blue component */ | |
| 90 | bit0 = (color_prom[i + 2*256] >> 0) & 0x01; | |
| 91 | bit1 = (color_prom[i + 2*256] >> 1) & 0x01; | |
| 92 | bit2 = (color_prom[i + 2*256] >> 2) & 0x01; | |
| 93 | bit3 = (color_prom[i + 2*256] >> 3) & 0x01; | |
| 94 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 95 | ||
| 96 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 78 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 97 | 79 | } |
| 98 | #endif | |
| 99 | 80 | |
| 100 | color_prom += 3*256; | |
| 101 | 81 | /* color_prom now points to the beginning of the lookup table */ |
| 82 | color_prom += 0x300; | |
| 102 | 83 | |
| 84 | for (i = 0; i < 0x200; i++) | |
| 85 | colortable_entry_set_value(machine->colortable, i, i & 0xff); | |
| 103 | 86 | |
| 104 | for (i = 0;i < TOTAL_COLORS(2);i++) | |
| 105 | COLOR(2,i) = ((color_prom[i] & 0x0f) << 4) + (color_prom[i+256] & 0x0f); | |
| 87 | for (i = 0x200; i < 0x300; i++) | |
| 88 | { | |
| 89 | UINT8 ctabentry = ((color_prom[(i - 0x200) + 0x000] & 0x0f) << 4) | | |
| 90 | (color_prom[(i - 0x200) + 0x100] & 0x0f); | |
| 91 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 92 | } | |
| 106 | 93 | } |
| 107 | 94 | |
| 108 | 95 | |
| r1649 | r1650 | |
| 200 | 187 | static TILE_GET_INFO( get_tile_info_fb1 ) |
| 201 | 188 | { |
| 202 | 189 | UINT8 code = clshroad_vram_1[ tile_index + 0x000 ]; |
| 203 | UINT8 color = clshroad_vram_1[ tile_index + 0x400 ]; | |
| 190 | UINT8 color = clshroad_vram_1[ tile_index + 0x400 ] & 0x3f; | |
| 191 | tileinfo->group = color; | |
| 204 | 192 | SET_TILE_INFO( |
| 205 | 193 | 2, |
| 206 | 194 | code, |
| 207 | color | |
| 195 | color | |
| 208 | 196 | 0); |
| 209 | 197 | } |
| 210 | 198 | |
| r1649 | r1650 | |
| 229 | 217 | VIDEO_START( firebatl ) |
| 230 | 218 | { |
| 231 | 219 | /* These 2 use the graphics and scroll value */ |
| 232 | tilemap_0a = tilemap_create(get_tile_info_0a,tilemap_scan_rows,TILEMAP_TYPE_PEN, | |
| 220 | tilemap_0a = tilemap_create(get_tile_info_0a,tilemap_scan_rows,TILEMAP_TYPE_PEN, | |
| 233 | 221 | tilemap_0b = tilemap_create(get_tile_info_0b,tilemap_scan_rows,TILEMAP_TYPE_PEN,16,16,0x20,0x10); |
| 234 | 222 | /* Text (No scrolling) */ |
| 235 | tilemap_1 = tilemap_create(get_tile_info_fb1,tilemap_scan_rows_extra,TILEMAP_TYPE_ | |
| 223 | tilemap_1 = tilemap_create(get_tile_info_fb1,tilemap_scan_rows_extra,TILEMAP_TYPE_P | |
| 236 | 224 | |
| 237 | 225 | tilemap_set_scroll_rows( tilemap_0a, 1); |
| 238 | 226 | tilemap_set_scroll_rows( tilemap_0b, 1); |
| r1649 | r1650 | |
| 246 | 234 | tilemap_set_scrolldx( tilemap_0b, -0x30, -0xb5); |
| 247 | 235 | |
| 248 | 236 | tilemap_set_transparent_pen( tilemap_0b, 0 ); |
| 249 | tilemap_ | |
| 237 | colortable_configure_tilemap_g | |
| 250 | 238 | } |
| 251 | 239 | |
| 252 | 240 | VIDEO_START( clshroad ) |
| 253 | 241 | { |
| 254 | 242 | /* These 2 use the graphics and scroll value */ |
| 255 | tilemap_0a = tilemap_create(get_tile_info_0a,tilemap_scan_rows,TILEMAP_TYPE_PEN, | |
| 243 | tilemap_0a = tilemap_create(get_tile_info_0a,tilemap_scan_rows,TILEMAP_TYPE_PEN, | |
| 256 | 244 | tilemap_0b = tilemap_create(get_tile_info_0b,tilemap_scan_rows,TILEMAP_TYPE_PEN,16,16,0x20,0x10); |
| 257 | 245 | /* Text (No scrolling) */ |
| 258 | 246 | tilemap_1 = tilemap_create(get_tile_info_1,tilemap_scan_rows_extra,TILEMAP_TYPE_PEN,8,8,0x24,0x20); |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | // Directives |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | |
| 13 | 14 | #define BW_DEBUG 0 |
| 14 | 15 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | br | |
| 3 | video/br | |
| 4 | 4 | |
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 |
| r1649 | r1650 | |
|---|---|---|
| 92 | 92 | ***************************************************************************/ |
| 93 | 93 | |
| 94 | 94 | #include "driver.h" |
| 95 | #include "deprecat.h" | |
| 95 | 96 | #include "video/resnet.h" |
| 96 | 97 | #include "williams.h" |
| 97 | 98 | |
| r1649 | r1650 | |
| 128 | 129 | * |
| 129 | 130 | *************************************/ |
| 130 | 131 | |
| 131 | /* RAM variable */ | |
| 132 | static UINT8 *williams2_paletteram; | |
| 133 | ||
| 134 | 132 | /* palette variables */ |
| 135 | 133 | static rgb_t *palette_lookup; |
| 136 | 134 | |
| r1649 | r1650 | |
| 142 | 140 | static UINT8 *blitter_remap_lookup; |
| 143 | 141 | |
| 144 | 142 | /* Blaster-specific variables */ |
| 145 | static | |
| 143 | static rgb_t blaster_color0; | |
| 146 | 144 | static UINT8 blaster_video_control; |
| 147 | 145 | |
| 148 | 146 | /* tilemap variables */ |
| r1649 | r1650 | |
| 205 | 203 | blitter_init(williams_blitter_config, NULL); |
| 206 | 204 | |
| 207 | 205 | /* allocate paletteram */ |
| 208 | williams2_paletteram = auto_malloc(0x400 * 2); | |
| 209 | state_save_register_global_pointer(williams2_paletteram, 0x400 * 2); | |
| 206 | paletteram = auto_malloc(0x400 * 2); | |
| 207 | state_save_register_global_pointer(paletteram, 0x400 * 2); | |
| 210 | 208 | |
| 211 | 209 | /* create the tilemap */ |
| 212 | 210 | bg_tilemap = tilemap_create(get_tile_info, tilemap_scan_cols, TILEMAP_TYPE_PEN, 24,16, 128,16); |
| r1649 | r1650 | |
| 225 | 223 | |
| 226 | 224 | VIDEO_UPDATE( williams ) |
| 227 | 225 | { |
| 226 | rgb_t pens[16]; | |
| 228 | 227 | int x, y; |
| 229 | 228 | |
| 229 | /* precompute the palette */ | |
| 230 | for (x = 0; x < 16; x++) | |
| 231 | pens[x] = palette_lookup[paletteram[x]]; | |
| 232 | ||
| 230 | 233 | /* loop over rows */ |
| 231 | 234 | for (y = cliprect->min_y; y <= cliprect->max_y; y++) |
| 232 | 235 | { |
| 233 | 236 | UINT8 *source = &williams_videoram[y]; |
| 234 | UINT | |
| 237 | UINT32 *dest = BITMAP_ADDR32(bitmap, y, 0); | |
| 235 | 238 | |
| 236 | 239 | /* loop over columns */ |
| 237 | 240 | for (x = cliprect->min_x & ~1; x <= cliprect->max_x; x += 2) |
| 238 | 241 | { |
| 239 | 242 | int pix = source[(x/2) * 256]; |
| 240 | dest[x+0] = pix >> 4; | |
| 241 | dest[x+1] = pix & 0x0f; | |
| 243 | dest[x+0] = pens[pix >> 4]; | |
| 244 | dest[x+1] = pens[pix & 0x0f]; | |
| 242 | 245 | } |
| 243 | 246 | } |
| 244 | 247 | return 0; |
| r1649 | r1650 | |
| 247 | 250 | |
| 248 | 251 | VIDEO_UPDATE( blaster ) |
| 249 | 252 | { |
| 253 | rgb_t pens[16]; | |
| 250 | 254 | int x, y; |
| 251 | 255 | |
| 256 | /* precompute the palette */ | |
| 257 | for (x = 0; x < 16; x++) | |
| 258 | pens[x] = palette_lookup[paletteram[x]]; | |
| 259 | ||
| 252 | 260 | /* if we're blitting from the top, start with a 0 for color 0 */ |
| 253 | 261 | if (cliprect->min_y == machine->screen[0].visarea.min_y || !(blaster_video_control & 1)) |
| 254 | blaster_color0 = 0; | |
| 262 | blaster_color0 = pens[0]; | |
| 255 | 263 | |
| 256 | 264 | /* loop over rows */ |
| 257 | 265 | for (y = cliprect->min_y; y <= cliprect->max_y; y++) |
| 258 | 266 | { |
| 259 | 267 | int erase_behind = blaster_video_control & blaster_scanline_control[y] & 2; |
| 260 | 268 | UINT8 *source = &williams_videoram[y]; |
| 261 | UINT | |
| 269 | UINT32 *dest = BITMAP_ADDR32(bitmap, y, 0); | |
| 262 | 270 | |
| 263 | 271 | /* latch a new color0 pen? */ |
| 264 | 272 | if (blaster_video_control & blaster_scanline_control[y] & 1) |
| 265 | blaster_color0 = | |
| 273 | blaster_color0 = palette_lookup[blaster_palette_0[y] ^ 0xff]; | |
| 266 | 274 | |
| 267 | 275 | /* loop over columns */ |
| 268 | 276 | for (x = cliprect->min_x & ~1; x <= cliprect->max_x; x += 2) |
| r1649 | r1650 | |
| 274 | 282 | source[(x/2) * 256] = 0; |
| 275 | 283 | |
| 276 | 284 | /* now draw */ |
| 277 | dest[x+0] = (pix & 0xf0) ? (pix >> 4) : blaster_color0; | |
| 278 | dest[x+1] = (pix & 0x0f) ? (pix & 0x0f) : blaster_color0; | |
| 285 | dest[x+0] = (pix & 0xf0) ? pens[pix >> 4] : blaster_color0; | |
| 286 | dest[x+1] = (pix & 0x0f) ? pens[pix & 0x0f] : blaster_color0; | |
| 279 | 287 | } |
| 280 | 288 | } |
| 281 | 289 | return 0; |
| r1649 | r1650 | |
| 284 | 292 | |
| 285 | 293 | VIDEO_UPDATE( williams2 ) |
| 286 | 294 | { |
| 287 | int x, y, basecolor; | |
| 295 | rgb_t pens[16]; | |
| 296 | int x, y; | |
| 288 | 297 | |
| 289 | 298 | /* draw the background */ |
| 290 | 299 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); |
| 291 | 300 | |
| 292 | /* copy the bitmap data on top of that */ | |
| 293 | basecolor = williams2_fg_color * 16; | |
| 301 | /* fetch the relevant pens */ | |
| 302 | for (x = 1; x < 16; x++) | |
| 303 | pens[x] = palette_get_color(machine, williams2_fg_color * 16 + x); | |
| 294 | 304 | |
| 295 | 305 | /* loop over rows */ |
| 296 | 306 | for (y = cliprect->min_y; y <= cliprect->max_y; y++) |
| 297 | 307 | { |
| 298 | 308 | UINT8 *source = &williams_videoram[y]; |
| 299 | UINT | |
| 309 | UINT32 *dest = BITMAP_ADDR32(bitmap, y, 0); | |
| 300 | 310 | |
| 301 | 311 | /* loop over columns */ |
| 302 | 312 | for (x = cliprect->min_x & ~1; x <= cliprect->max_x; x += 2) |
| r1649 | r1650 | |
| 304 | 314 | int pix = source[(x/2) * 256]; |
| 305 | 315 | |
| 306 | 316 | if (pix & 0xf0) |
| 307 | dest[x+0] = | |
| 317 | dest[x+0] = p | |
| 308 | 318 | if (pix & 0x0f) |
| 309 | dest[x+1] = | |
| 319 | dest[x+1] = p | |
| 310 | 320 | } |
| 311 | 321 | } |
| 312 | 322 | return 0; |
| r1649 | r1650 | |
| 339 | 349 | palette_lookup = auto_malloc(256 * sizeof(*palette_lookup)); |
| 340 | 350 | for (i = 0; i < 256; i++) |
| 341 | 351 | { |
| 342 | int bit0,bit1,bit2,r,g,b; | |
| 352 | int r = combine_3_weights(weights_r, BIT(i,0), BIT(i,1), BIT(i,2)); | |
| 353 | int g = combine_3_weights(weights_g, BIT(i,3), BIT(i,4), BIT(i,5)); | |
| 354 | int b = combine_2_weights(weights_b, BIT(i,6), BIT(i,7)); | |
| 343 | 355 | |
| 344 | /* red component */ | |
| 345 | bit0 = (i >> 0) & 0x01; | |
| 346 | bit1 = (i >> 1) & 0x01; | |
| 347 | bit2 = (i >> 2) & 0x01; | |
| 348 | r = combine_3_weights(weights_r, bit0, bit1, bit2); | |
| 349 | ||
| 350 | /* green component */ | |
| 351 | bit0 = (i >> 3) & 0x01; | |
| 352 | bit1 = (i >> 4) & 0x01; | |
| 353 | bit2 = (i >> 5) & 0x01; | |
| 354 | g = combine_3_weights(weights_g, bit0, bit1, bit2); | |
| 355 | ||
| 356 | /* blue component */ | |
| 357 | bit0 = (i >> 6) & 0x01; | |
| 358 | bit1 = (i >> 7) & 0x01; | |
| 359 | b = combine_2_weights(weights_b, bit0, bit1); | |
| 360 | ||
| 361 | 356 | palette_lookup[i] = MAKE_RGB(r, g, b); |
| 362 | 357 | } |
| 363 | 358 | } |
| 364 | 359 | |
| 365 | 360 | |
| 366 | WRITE8_HANDLER( williams_paletteram_w ) | |
| 367 | { | |
| 368 | paletteram[offset] = data; | |
| 369 | palette_set_color(Machine, offset, palette_lookup[data]); | |
| 370 | } | |
| 371 | ||
| 372 | ||
| 373 | READ8_HANDLER( williams2_paletteram_r ) | |
| 374 | { | |
| 375 | return williams2_paletteram[offset]; | |
| 376 | } | |
| 377 | ||
| 378 | ||
| 379 | 361 | WRITE8_HANDLER( williams2_paletteram_w ) |
| 380 | 362 | { |
| 381 | 363 | static const UINT8 ztable[16] = |
| r1649 | r1650 | |
| 386 | 368 | UINT8 entry_lo, entry_hi, i, r, g, b; |
| 387 | 369 | |
| 388 | 370 | /* set the new value */ |
| 389 | | |
| 371 | | |
| 390 | 372 | |
| 391 | 373 | /* pull the associated low/high bytes */ |
| 392 | entry_lo = williams2_paletteram[offset & ~1]; | |
| 393 | entry_hi = williams2_paletteram[offset | 1]; | |
| 374 | entry_lo = paletteram[offset & ~1]; | |
| 375 | entry_hi = paletteram[offset | 1]; | |
| 394 | 376 | |
| 395 | 377 | /* update the palette entry */ |
| 396 | 378 | i = ztable[(entry_hi >> 4) & 15]; |
| r1649 | r1650 | |
| 403 | 385 | |
| 404 | 386 | WRITE8_HANDLER( williams2_fg_select_w ) |
| 405 | 387 | { |
| 406 | video_screen_update_partial(0, video_screen_get_vpos(0)); | |
| 407 | 388 | williams2_fg_color = data & 0x3f; |
| 408 | 389 | } |
| 409 | 390 | |
| r1649 | r1650 | |
| 470 | 451 | |
| 471 | 452 | WRITE8_HANDLER( williams2_bg_select_w ) |
| 472 | 453 | { |
| 473 | video_screen_update_partial(0, video_screen_get_vpos(0)); | |
| 474 | ||
| 475 | 454 | /* based on the tilemap config, only certain bits are used */ |
| 476 | 455 | /* the rest are determined by other factors */ |
| 477 | 456 | switch (williams2_tilemap_config) |
| r1649 | r1650 | |
| 504 | 483 | |
| 505 | 484 | WRITE8_HANDLER( williams2_xscroll_low_w ) |
| 506 | 485 | { |
| 507 | video_screen_update_partial(0, video_screen_get_vpos(0)); | |
| 508 | 486 | tilemap_xscroll = (tilemap_xscroll & ~0x00f) | ((data & 0x80) >> 4) | (data & 0x07); |
| 509 | 487 | tilemap_set_scrollx(bg_tilemap, 0, (tilemap_xscroll & 7) + ((tilemap_xscroll >> 3) * 6)); |
| 510 | 488 | } |
| r1649 | r1650 | |
| 512 | 490 | |
| 513 | 491 | WRITE8_HANDLER( williams2_xscroll_high_w ) |
| 514 | 492 | { |
| 515 | video_screen_update_partial(0, video_screen_get_vpos(0)); | |
| 516 | 493 | tilemap_xscroll = (tilemap_xscroll & 0x00f) | (data << 4); |
| 517 | 494 | tilemap_set_scrollx(bg_tilemap, 0, (tilemap_xscroll & 7) + ((tilemap_xscroll >> 3) * 6)); |
| 518 | 495 | } |
| r1649 | r1650 | |
| 527 | 504 | |
| 528 | 505 | WRITE8_HANDLER( blaster_remap_select_w ) |
| 529 | 506 | { |
| 530 | video_screen_update_partial(0, video_screen_get_vpos(0)); | |
| 531 | 507 | blitter_remap_index = data; |
| 532 | 508 | blitter_remap = blitter_remap_lookup + data * 256; |
| 533 | 509 | } |
| r1649 | r1650 | |
| 535 | 511 | |
| 536 | 512 | WRITE8_HANDLER( blaster_video_control_w ) |
| 537 | 513 | { |
| 538 | video_screen_update_partial(0, video_screen_get_vpos(0)); | |
| 539 | 514 | blaster_video_control = data; |
| 540 | 515 | } |
| 541 | 516 | |
| 542 | 517 | |
| 543 | WRITE8_HANDLER( blaster_scanline_control_w ) | |
| 544 | { | |
| 545 | video_screen_update_partial(0, video_screen_get_vpos(0)); | |
| 546 | blaster_scanline_control[offset] = data; | |
| 547 | } | |
| 548 | 518 | |
| 549 | ||
| 550 | WRITE8_HANDLER( blaster_palette_0_w ) | |
| 551 | { | |
| 552 | video_screen_update_partial(0, video_screen_get_vpos(0)); | |
| 553 | blaster_palette_0[offset] = data; | |
| 554 | palette_set_color(Machine, 16 + offset, palette_lookup[data ^ 0xff]); | |
| 555 | } | |
| 556 | ||
| 557 | ||
| 558 | ||
| 559 | 519 | /************************************* |
| 560 | 520 | * |
| 561 | 521 | * Blitter setup and control |
| r1649 | r1650 | |
|---|---|---|
| 41 | 41 | ***************************************************************************/ |
| 42 | 42 | |
| 43 | 43 | #include "driver.h" |
| 44 | #include "deprecat.h" | |
| 44 | 45 | |
| 45 | 46 | //static int scroll1[4]; |
| 46 | 47 | static int scroll2[4]; |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | |
| 9 | 10 | UINT8 *battlane_spriteram; |
| 10 | 11 | UINT8 *battlane_tileram; |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***********************************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "genesis.h" |
| 12 | 13 | |
| 13 | 14 | /* in video/segasyse.c */ |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ****************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | |
| 11 | 12 | |
| 12 | 13 | #define BITMAP_WIDTH 304 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "cloud9.h" |
| 9 | 10 | #include "video/resnet.h" |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | ***************************************************************************/ |
| 13 | 13 | |
| 14 | 14 | #include "driver.h" |
| 15 | #include "deprecat.h" | |
| 15 | 16 | |
| 16 | 17 | |
| 17 | 18 | extern UINT8 changela_tree0_col; |
| r1649 | r1650 | |
| 742 | 743 | |
| 743 | 744 | VIDEO_UPDATE( changela ) |
| 744 | 745 | { |
| 745 | copybitmap(bitmap, river_bitmap, 0, 0, 0, 0, &machine->screen[0].visarea, TRANSPARENCY_NONE, 0); | |
| 746 | copybitmap(bitmap, obj0_bitmap, 0, 0, 0, 0, &machine->screen[0].visarea, TRANSPARENCY_PEN, 0); | |
| 747 | copybitmap(bitmap, tree0_bitmap, 0, 0, 0, 0, &machine->screen[0].visarea, TRANSPARENCY_PEN, 0); | |
| 748 | copybitmap(bitmap, tree1_bitmap, 0, 0, 0, 0, &machine->screen[0].visarea, TRANSPARENCY_PEN, 0); | |
| 746 | copybitmap (bitmap, river_bitmap, 0, 0, 0, 0, cliprect); | |
| 747 | copybitmap_trans(bitmap, obj0_bitmap, 0, 0, 0, 0, cliprect, 0); | |
| 748 | copybitmap_trans(bitmap, tree0_bitmap, 0, 0, 0, 0, cliprect, 0); | |
| 749 | copybitmap_trans(bitmap, tree1_bitmap, 0, 0, 0, 0, cliprect, 0); | |
| 749 | 750 | draw_obj1(machine, bitmap); |
| 750 | 751 | |
| 751 | 752 | return 0; |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | | |
| 3 | P | |
| 4 | 4 | |
| 5 | Functions to emulate the video hardware of the machine. | |
| 6 | ||
| 7 | 5 | ***************************************************************************/ |
| 8 | 6 | |
| 9 | 7 | #include "driver.h" |
| 8 | #include "pooyan.h" | |
| 10 | 9 | |
| 11 | 10 | static tilemap *bg_tilemap; |
| 12 | 11 | |
| 12 | ||
| 13 | ||
| 13 | 14 | /*************************************************************************** |
| 14 | 15 | |
| 15 | 16 | Convert the color PROMs into a more useable format. |
| r1649 | r1650 | |
| 28 | 29 | bit 0 -- 1 kohm resistor -- RED |
| 29 | 30 | |
| 30 | 31 | ***************************************************************************/ |
| 32 | ||
| 31 | 33 | PALETTE_INIT( pooyan ) |
| 32 | 34 | { |
| 35 | rgb_t palette[32]; | |
| 33 | 36 | int i; |
| 34 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 35 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 36 | 37 | |
| 37 | ||
| 38 | for (i = 0;i < machine->drv->total_colors;i++) | |
| 38 | for (i = 0;i < 32;i++) | |
| 39 | 39 | { |
| 40 | 40 | int bit0,bit1,bit2,r,g,b; |
| 41 | 41 | |
| 42 | ||
| 43 | 42 | /* red component */ |
| 44 | 43 | bit0 = (*color_prom >> 0) & 0x01; |
| 45 | 44 | bit1 = (*color_prom >> 1) & 0x01; |
| r1649 | r1650 | |
| 56 | 55 | bit2 = (*color_prom >> 7) & 0x01; |
| 57 | 56 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 58 | 57 | |
| 59 | palette | |
| 58 | palette[ | |
| 60 | 59 | color_prom++; |
| 61 | 60 | } |
| 62 | 61 | |
| 63 | 62 | /* color_prom now points to the beginning of the char lookup table */ |
| 64 | 63 | |
| 65 | 64 | /* sprites */ |
| 66 | for (i = 0;i < TOTAL_COLORS(1);i++) | |
| 67 | COLOR(1,i) = *(color_prom++) & 0x0f; | |
| 65 | for (i = 0;i < 16*16;i++) | |
| 66 | palette_set_color(machine, 16*16+i, palette[*color_prom++ & 0x0f]); | |
| 68 | 67 | |
| 69 | 68 | /* characters */ |
| 70 | for (i = 0;i < TOTAL_COLORS(0);i++) | |
| 71 | COLOR(0,i) = (*(color_prom++) & 0x0f) + 0x10; | |
| 69 | for (i = 0;i < 16*16;i++) | |
| 70 | palette_set_color(machine, i, palette[(*color_prom++ & 0x0f) + 0x10]); | |
| 72 | 71 | } |
| 73 | 72 | |
| 73 | ||
| 74 | ||
| 75 | /************************************* | |
| 76 | * | |
| 77 | * Tilemap info callback | |
| 78 | * | |
| 79 | *************************************/ | |
| 80 | ||
| 81 | static TILE_GET_INFO( get_bg_tile_info ) | |
| 82 | { | |
| 83 | int attr = colorram[tile_index]; | |
| 84 | int code = videoram[tile_index]; | |
| 85 | int color = attr & 0x0f; | |
| 86 | int flags = TILE_FLIPYX(attr >> 6); | |
| 87 | ||
| 88 | SET_TILE_INFO(0, code, color, flags); | |
| 89 | } | |
| 90 | ||
| 91 | ||
| 92 | ||
| 93 | /************************************* | |
| 94 | * | |
| 95 | * Video startup | |
| 96 | * | |
| 97 | *************************************/ | |
| 98 | ||
| 99 | VIDEO_START( pooyan ) | |
| 100 | { | |
| 101 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, TILEMAP_TYPE_PEN, 8,8, 32,32); | |
| 102 | } | |
| 103 | ||
| 104 | ||
| 105 | ||
| 106 | /************************************* | |
| 107 | * | |
| 108 | * Memory write handlers | |
| 109 | * | |
| 110 | *************************************/ | |
| 111 | ||
| 74 | 112 | WRITE8_HANDLER( pooyan_videoram_w ) |
| 75 | 113 | { |
| 76 | 114 | videoram[offset] = data; |
| 77 | 115 | tilemap_mark_tile_dirty(bg_tilemap, offset); |
| 78 | 116 | } |
| 79 | 117 | |
| 118 | ||
| 80 | 119 | WRITE8_HANDLER( pooyan_colorram_w ) |
| 81 | 120 | { |
| 82 | 121 | colorram[offset] = data; |
| 83 | 122 | tilemap_mark_tile_dirty(bg_tilemap, offset); |
| 84 | 123 | } |
| 85 | 124 | |
| 125 | ||
| 86 | 126 | WRITE8_HANDLER( pooyan_flipscreen_w ) |
| 87 | 127 | { |
| 88 | if (flip_screen != (data & 0x01)) | |
| 89 | { | |
| 90 | flip_screen_set(data & 0x01); | |
| 91 | tilemap_mark_all_tiles_dirty(ALL_TILEMAPS); | |
| 92 | } | |
| 128 | flip_screen_set(~data & 0x01); | |
| 93 | 129 | } |
| 94 | 130 | |
| 95 | static TILE_GET_INFO( get_bg_tile_info ) | |
| 96 | { | |
| 97 | int attr = colorram[tile_index]; | |
| 98 | int code = videoram[tile_index] + 8 * (attr & 0x20); | |
| 99 | int color = attr & 0x0f; | |
| 100 | int flags = ((attr & 0x40) ? TILE_FLIPX : 0) | ((attr & 0x80) ? TILE_FLIPY : 0); | |
| 101 | 131 | |
| 102 | SET_TILE_INFO(0, code, color, flags); | |
| 103 | } | |
| 104 | 132 | |
| 105 | VIDEO_START( pooyan ) | |
| 106 | { | |
| 107 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, | |
| 108 | TILEMAP_TYPE_PEN, 8, 8, 32, 32); | |
| 109 | } | |
| 133 | /************************************* | |
| 134 | * | |
| 135 | * Sprite rendering | |
| 136 | * | |
| 137 | *************************************/ | |
| 110 | 138 | |
| 111 | 139 | static void draw_sprites(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect) |
| 112 | 140 | { |
| 113 | 141 | int offs; |
| 114 | 142 | |
| 115 | for (offs = 0;offs < | |
| 143 | for (offs = 0x10;offs < 0x40 | |
| 116 | 144 | { |
| 117 | /* TRANSPARENCY_COLOR is needed for the scores */ | |
| 145 | int sx = spriteram[offs]; | |
| 146 | int sy = 240 - spriteram_2[offs + 1]; | |
| 147 | ||
| 148 | int code = spriteram[offs + 1]; | |
| 149 | int color = spriteram_2[offs] & 0x0f; | |
| 150 | int flipx = ~spriteram_2[offs] & 0x40; | |
| 151 | int flipy = spriteram_2[offs] & 0x80; | |
| 152 | ||
| 118 | 153 | /* Sprite flipscreen is supported by software */ |
| 119 | 154 | drawgfx(bitmap,machine->gfx[1], |
| 120 | spriteram[offs + 1], | |
| 121 | spriteram_2[offs] & 0x0f, | |
| 122 | spriteram_2[offs] & 0x40, ~spriteram_2[offs] & 0x80, | |
| 123 | 240-spriteram[offs], spriteram_2[offs + 1], | |
| 155 | code, | |
| 156 | color, | |
| 157 | flipx, flipy, | |
| 158 | sx, sy, | |
| 124 | 159 | cliprect, |
| 125 | TRANSPARENCY_ | |
| 160 | TRANSPARENCY_PEN | |
| 126 | 161 | } |
| 127 | 162 | } |
| 128 | 163 | |
| 164 | ||
| 165 | ||
| 166 | /************************************* | |
| 167 | * | |
| 168 | * Video update | |
| 169 | * | |
| 170 | *************************************/ | |
| 171 | ||
| 129 | 172 | VIDEO_UPDATE( pooyan ) |
| 130 | 173 | { |
| 131 | 174 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | |
| 9 | 10 | int wolfpack_collision; |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | #include "deprecat.h" | |
| 13 | 14 | |
| 14 | 15 | static int xsproff, ysproff; // sprite offsets |
| 15 | 16 | static tilemap *bg_layer,*fg_layer; |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "subs.h" |
| 9 | 10 | #include "sound/discrete.h" |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | |
| 3 | 4 | /*defined in drivers/darkmist.c */ |
| 4 | 5 |
| r1649 | r1650 | |
|---|---|---|
| 6 | 6 | |
| 7 | 7 | |
| 8 | 8 | #include "driver.h" |
| 9 | #include "deprecat.h" | |
| 9 | 10 | |
| 10 | 11 | UINT8* funybubl_banked_videoram; |
| 11 | 12 | UINT8 *funybubl_paletteram; |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | |
| 3 | 4 | static int gfxbank; |
| 4 | 5 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "tutankhm.h" | |
| 11 | 12 | |
| 12 | 13 | |
| 13 | 14 | #define NUM_PENS (0x10) |
| 14 | 15 | |
| 15 | 16 | |
| 16 | UINT8 *tutankhm_videoram; | |
| 17 | size_t tutankhm_videoram_size; | |
| 18 | UINT8 *tutankhm_paletteram; | |
| 19 | 17 | UINT8 *tutankhm_scroll; |
| 20 | 18 | |
| 21 | 19 | static UINT8 junofrst_blitterdata[4]; |
| r1649 | r1650 | |
| 24 | 22 | |
| 25 | 23 | |
| 26 | 24 | |
| 25 | /************************************* | |
| 26 | * | |
| 27 | * Write handlers | |
| 28 | * | |
| 29 | *************************************/ | |
| 30 | ||
| 27 | 31 | WRITE8_HANDLER( tutankhm_flip_screen_x_w ) |
| 28 | 32 | { |
| 29 | 33 | tutankhm_flip_screen_x = data & 0x01; |
| r1649 | r1650 | |
| 36 | 40 | } |
| 37 | 41 | |
| 38 | 42 | |
| 43 | ||
| 44 | /************************************* | |
| 45 | * | |
| 46 | * Palette management | |
| 47 | * | |
| 48 | *************************************/ | |
| 49 | ||
| 39 | 50 | static void get_pens(pen_t *pens) |
| 40 | 51 | { |
| 41 | 52 | offs_t i; |
| 42 | 53 | |
| 43 | 54 | for (i = 0; i < NUM_PENS; i++) |
| 44 | 55 | { |
| 45 | UINT8 data = | |
| 56 | UINT8 data = | |
| 46 | 57 | |
| 47 | 58 | pens[i] = MAKE_RGB(pal3bit(data >> 0), pal3bit(data >> 3), pal2bit(data >> 6)); |
| 48 | 59 | } |
| 49 | 60 | } |
| 50 | 61 | |
| 51 | 62 | |
| 63 | ||
| 64 | /************************************* | |
| 65 | * | |
| 66 | * Video startup | |
| 67 | * | |
| 68 | *************************************/ | |
| 69 | ||
| 70 | VIDEO_START( tutankhm ) | |
| 71 | { | |
| 72 | state_save_register_global_array(junofrst_blitterdata); | |
| 73 | state_save_register_global(tutankhm_flip_screen_x); | |
| 74 | state_save_register_global(tutankhm_flip_screen_y); | |
| 75 | } | |
| 76 | ||
| 77 | ||
| 78 | ||
| 79 | /************************************* | |
| 80 | * | |
| 81 | * Video update | |
| 82 | * | |
| 83 | *************************************/ | |
| 84 | ||
| 52 | 85 | VIDEO_UPDATE( tutankhm ) |
| 53 | 86 | { |
| 87 | int xorx = tutankhm_flip_screen_x ? 255 : 0; | |
| 88 | int xory = tutankhm_flip_screen_y ? 255 : 0; | |
| 54 | 89 | pen_t pens[NUM_PENS]; |
| 55 | | |
| 90 | in | |
| 56 | 91 | |
| 57 | 92 | get_pens(pens); |
| 58 | 93 | |
| 59 | for ( | |
| 94 | for (y | |
| 60 | 95 | { |
| 61 | | |
| 96 | UINT32 *dst = BITMAP_ADDR32(bitmap, y, 0); | |
| 62 | 97 | |
| 63 | UINT8 data = tutankhm_videoram[offs]; | |
| 64 | ||
| 65 | UINT8 y = offs >> 7; | |
| 66 | UINT8 x = offs << 1; | |
| 67 | ||
| 68 | for (i = 0; i < 2; i++) | |
| 98 | for (x = cliprect->min_x; x <= cliprect->max_x; x++) | |
| 69 | 99 | { |
| 70 | UINT8 sy = y; | |
| 71 | UINT8 sx = x; | |
| 72 | ||
| 73 | pen_t pen = pens[data & 0x0f]; | |
| 74 | ||
| 75 | /* adjust for scrolling */ | |
| 76 | if (x < 192) | |
| 77 | { | |
| 78 | sy = sy - *tutankhm_scroll; | |
| 79 | } | |
| 80 | ||
| 81 | if (tutankhm_flip_screen_y) sy = 255 - sy; | |
| 82 | if (tutankhm_flip_screen_x) sx = 255 - sx; | |
| 83 | ||
| 84 | *BITMAP_ADDR32(bitmap, sy, sx) = pen; | |
| 85 | ||
| 86 | x = x + 1; | |
| 87 | data = data >> 4; | |
| 100 | UINT8 effx = x ^ xorx; | |
| 101 | UINT8 yscroll = (effx < 192) ? *tutankhm_scroll : 0; | |
| 102 | UINT8 effy = (y ^ xory) + yscroll; | |
| 103 | UINT8 vrambyte = videoram[effy * 128 + effx / 2]; | |
| 104 | UINT8 shifted = vrambyte >> (4 * (effx % 2)); | |
| 105 | dst[x] = pens[shifted & 0x0f]; | |
| 88 | 106 | } |
| 89 | 107 | } |
| 90 | 108 | |
| r1649 | r1650 | |
| 150 | 168 | data = 0; |
| 151 | 169 | |
| 152 | 170 | if (dest & 1) |
| 153 | | |
| 171 | | |
| 154 | 172 | else |
| 155 | | |
| 173 | | |
| 156 | 174 | } |
| 157 | 175 | |
| 158 | 176 | dest = dest + 1; |
| r1649 | r1650 | |
|---|---|---|
| 800 | 800 | } |
| 801 | 801 | } |
| 802 | 802 | |
| 803 | copyscrollbitmap(bitmap,background_bitmap,1,&scrollx,1,&scrolly,cliprect | |
| 803 | copyscrollbitmap(bitmap,background_bitmap,1,&scrollx,1,&scrolly,cliprect | |
| 804 | 804 | tilemap_draw(bitmap,cliprect,bg_tilemap,0,0); |
| 805 | 805 | |
| 806 | 806 | nmk16_draw_sprites(machine, bitmap,cliprect,3); |
| r1649 | r1650 | |
| 854 | 854 | memcpy(spriteram_old2,nmk16_mainram+0x8000/2,0x1000); |
| 855 | 855 | } |
| 856 | 856 | |
| 857 | VIDEO_EOF( strahl ) | |
| 858 | { | |
| 859 | /* sprites are DMA'd from Main RAM to a private buffer automatically | |
| 860 | (or at least this is how I interpret the datasheet) */ | |
| 857 | 861 | |
| 862 | /* -- I actually see little evidence to support this, sprite lag | |
| 863 | in some games should be checked on real boards */ | |
| 858 | 864 | |
| 865 | /* strahl sprites are allocated in memory range FF000-FFFFF */ | |
| 866 | ||
| 867 | memcpy(spriteram_old2,nmk16_mainram+0xF000/2,0x1000); | |
| 868 | } | |
| 869 | ||
| 870 | ||
| 871 | ||
| 859 | 872 | /* Variables needed by drivers: */ |
| 860 | 873 | |
| 861 | 874 | UINT16 *afega_vram_0, *afega_scroll_0; |
| r0 | r1650 | |
|---|---|---|
| 1 | <?xml version="1.0"?> | |
| 2 | <mamelayout version="2"> | |
| 3 | <element name="L0" defstate="1"> | |
| 4 | <rect> | |
| 5 | <color red="1.0" green="1.0" blue="1.0" /> | |
| 6 | </rect> | |
| 7 | <text string="DEAL/TAKE" state="1"> | |
| 8 | <color red="0.0" green="0.0" blue="0.0" /> | |
| 9 | <bounds x="0" y="0.1" width="1" height="0.8" /> | |
| 10 | </text> | |
| 11 | </element> | |
| 12 | ||
| 13 | <element name="L1" defstate="1"> | |
| 14 | <rect> | |
| 15 | <color red="1.0" green="1.0" blue="1.0" /> | |
| 16 | </rect> | |
| 17 | <text string="BET/RED" state="1"> | |
| 18 | <color red="0.0" green="0.0" blue="0.0" /> | |
| 19 | <bounds x="0" y="0.1" width="1" height="0.8" /> | |
| 20 | </text> | |
| 21 | </element> | |
| 22 | ||
| 23 | <element name="L2" defstate="1"> | |
| 24 | <rect> | |
| 25 | <color red="1.0" green="1.0" blue="1.0" /> | |
| 26 | </rect> | |
| 27 | <text string="BLACK" state="1"> | |
| 28 | <color red="0.0" green="0.0" blue="0.0" /> | |
| 29 | <bounds x="0" y="0.1" width="1" height="0.8" /> | |
| 30 | </text> | |
| 31 | </element> | |
| 32 | ||
| 33 | <element name="L3" defstate="1"> | |
| 34 | <rect> | |
| 35 | <color red="1.0" green="0.0" blue="0.0" /> | |
| 36 | </rect> | |
| 37 | <text string="HOLD1" state="1"> | |
| 38 | <color red="0.0" green="0.0" blue="0.0" /> | |
| 39 | <bounds x="0" y="0.1" width="1" height="0.8" /> | |
| 40 | </text> | |
| 41 | </element> | |
| 42 | ||
| 43 | <element name="L4" defstate="1"> | |
| 44 | <rect> | |
| 45 | <color red="1.0" green="0.0" blue="0.0" /> | |
| 46 | </rect> | |
| 47 | <text string="HOLD2" state="1"> | |
| 48 | <color red="0.0" green="0.0" blue="0.0" /> | |
| 49 | <bounds x="0" y="0.1" width="1" height="0.8" /> | |
| 50 | </text> | |
| 51 | </element> | |
| 52 | ||
| 53 | <element name="L5" defstate="1"> | |
| 54 | <rect> | |
| 55 | <color red="1.0" green="0.0" blue="0.0" /> | |
| 56 | </rect> | |
| 57 | <text string="HOLD3" state="1"> | |
| 58 | <color red="0.0" green="0.0" blue="0.0" /> | |
| 59 | <bounds x="0" y="0.1" width="1" height="0.8" /> | |
| 60 | </text> | |
| 61 | </element> | |
| 62 | ||
| 63 | <element name="L6" defstate="1"> | |
| 64 | <rect> | |
| 65 | <color red="1.0" green="0.0" blue="0.0" /> | |
| 66 | </rect> | |
| 67 | <text string="HOLD4" state="1"> | |
| 68 | <color red="0.0" green="0.0" blue="0.0" /> | |
| 69 | <bounds x="0" y="0.1" width="1" height="0.8" /> | |
| 70 | </text> | |
| 71 | </element> | |
| 72 | ||
| 73 | <element name="L7" defstate="1"> | |
| 74 | <rect> | |
| 75 | <color red="1.0" green="0.0" blue="0.0" /> | |
| 76 | </rect> | |
| 77 | <text string="HOLD5" state="1"> | |
| 78 | <color red="0.0" green="0.0" blue="0.0" /> | |
| 79 | <bounds x="0" y="0.1" width="1" height="0.8" /> | |
| 80 | </text> | |
| 81 | </element> | |
| 82 | ||
| 83 | <view name="Button Lamps"> | |
| 84 | <screen index="0"> | |
| 85 | <bounds left="0" top="0" right="4" bottom="3" /> | |
| 86 | </screen> | |
| 87 | <bezel name="lamp0" element="L0"> | |
| 88 | <bounds x="0" y="3.13" width="0.40" height="0.24" /> | |
| 89 | </bezel> | |
| 90 | <bezel name="lamp1" element="L1"> | |
| 91 | <bounds x="0.5" y="3.13" width="0.40" height="0.24" /> | |
| 92 | </bezel> | |
| 93 | <bezel name="lamp2" element="L2"> | |
| 94 | <bounds x="1.0" y="3.13" width="0.40" height="0.24" /> | |
| 95 | </bezel> | |
| 96 | <bezel name="lamp3" element="L3"> | |
| 97 | <bounds x="1.6" y="3.13" width="0.40" height="0.24" /> | |
| 98 | </bezel> | |
| 99 | <bezel name="lamp4" element="L4"> | |
| 100 | <bounds x="2.1" y="3.13" width="0.40" height="0.24" /> | |
| 101 | </bezel> | |
| 102 | <bezel name="lamp5" element="L5"> | |
| 103 | <bounds x="2.6" y="3.13" width="0.40" height="0.24" /> | |
| 104 | </bezel> | |
| 105 | <bezel name="lamp6" element="L6"> | |
| 106 | <bounds x="3.1" y="3.13" width="0.40" height="0.24" /> | |
| 107 | </bezel> | |
| 108 | <bezel name="lamp7" element="L7"> | |
| 109 | <bounds x="3.6" y="3.13" width="0.40" height="0.24" /> | |
| 110 | </bezel> | |
| 111 | </view> | |
| 112 | </mamelayout> |
| r1649 | r1650 | |
|---|---|---|
| 71 | 71 | |
| 72 | 72 | ******************************************************************************/ |
| 73 | 73 | #include "driver.h" |
| 74 | #include "de | |
| 74 | #include "dep | |
| 75 | 75 | #include "machine/6850acia.h" |
| 76 | 76 | #include "machine/meters.h" |
| 77 | 77 | #include "cpu/z80/z80.h" |
| r1649 | r1650 | |
|---|---|---|
| 288 | 288 | ROM_LOAD( "spbugger.gfx", 0x0000, 0x1000, CRC(d3f345b5) SHA1(a5082ffc3043352e9b731af95770bdd62fb928bf) ) |
| 289 | 289 | ROM_END |
| 290 | 290 | |
| 291 | GAME( 1981, sbugger, 0, sbugger, sbugger, 0, ROT270, "Game-A-Tron", "Space Bugger (set 1)", GAME_NOT_WORKING ) | |
| 292 | GAME( 1981, sbuggera, sbugger, sbugger, sbugger, 0, ROT270, "Game-A-Tron", "Space Bugger (set 2)", GAME_IMPERFECT_COLORS ) | |
| 293 | ||
| 291 | GAME( 1981, sbugger, 0, sbugger, sbugger, 0, ROT270, "Game-A-Tron", "Space Bugger (set 1)", GAME_NOT_WORKING ) | |
| 292 | GAME( 1981, sbuggera, sbugger, sbugger, sbugger, 0, ROT270, "Game-A-Tron", "Space Bugger (set 2)", GAME_IMPERFECT_COLORS ) |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | 14 | #include "driver.h" |
| 15 | #include "deprecat.h" | |
| 15 | 16 | |
| 16 | 17 | static READ8_HANDLER( unk_r ) |
| 17 | 18 | { |
| r1649 | r1650 | |
|---|---|---|
| 146 | 146 | //#define USE_MCU |
| 147 | 147 | |
| 148 | 148 | |
| 149 | #include <math.h> | |
| 150 | 149 | #include "driver.h" |
| 150 | #include "deprecat.h" | |
| 151 | 151 | #include "cpu/z80/z80.h" |
| 152 | 152 | #include "cpu/m6805/m6805.h" |
| 153 | 153 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
|---|---|---|
| 78 | 78 | |
| 79 | 79 | |
| 80 | 80 | #include "driver.h" |
| 81 | #include "deprecat.h" | |
| 81 | 82 | #include "machine/eeprom.h" |
| 82 | 83 | #include "sound/okim6295.h" |
| 83 | 84 | #include "sound/3812intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 237 | 237 | ***************************************************************************/ |
| 238 | 238 | |
| 239 | 239 | #include "driver.h" |
| 240 | #include "deprecat.h" | |
| 240 | 241 | #include "taitoipt.h" |
| 241 | 242 | #include "video/taitoic.h" |
| 242 | 243 | #include "audio/taitosnd.h" |
| r1649 | r1650 | |
|---|---|---|
| 19 | 19 | ***************************************************************************/ |
| 20 | 20 | |
| 21 | 21 | #include "driver.h" |
| 22 | #include "deprecat.h" | |
| 22 | 23 | #include "cpu/z80/z80.h" |
| 23 | 24 | #include "sound/okim6295.h" |
| 24 | 25 | #include "sound/3812intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | ***************************************************************************/ |
| 15 | 15 | |
| 16 | 16 | #include "driver.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | #include "cpu/z80/z80.h" |
| 18 | 19 | #include "sound/2203intf.h" |
| 19 | 20 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | |
| 9 | 10 | static UINT8* mgolf_video_ram; |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 96 | 96 | ***************************************************************************/ |
| 97 | 97 | |
| 98 | 98 | #include "driver.h" |
| 99 | #include "deprecat.h" | |
| 99 | 100 | #include "machine/eeprom.h" |
| 100 | 101 | #include "sound/ymz280b.h" |
| 101 | 102 | #include "decoprot.h" |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | ****************************************************************/ |
| 14 | 14 | |
| 15 | 15 | #include "driver.h" |
| 16 | #include "deprecat.h" | |
| 16 | 17 | #include "sound/2203intf.h" |
| 17 | 18 | |
| 18 | 19 | extern UINT8 *tryout_gfx_control; |
| r1649 | r1650 | |
|---|---|---|
| 72 | 72 | *********************************************************************/ |
| 73 | 73 | |
| 74 | 74 | #include "driver.h" |
| 75 | #include "deprecat.h" | |
| 75 | 76 | #include "machine/eeprom.h" |
| 76 | 77 | #include "sound/okim6295.h" |
| 77 | 78 |
| r1649 | r1650 | |
|---|---|---|
| 36 | 36 | */ |
| 37 | 37 | |
| 38 | 38 | #include "driver.h" |
| 39 | #include "deprecat.h" | |
| 39 | 40 | |
| 40 | 41 | #include "video/konamiic.h" |
| 41 | 42 | #include "cpu/m68000/m68000.h" |
| r1649 | r1650 | |
|---|---|---|
| 117 | 117 | */ |
| 118 | 118 | |
| 119 | 119 | #include "driver.h" |
| 120 | #include "deprecat.h" | |
| 120 | 121 | #include "cpu/se3208/se3208.h" |
| 121 | 122 | #include "video/vrender0.h" |
| 122 | 123 | #include "machine/ds1302.h" |
| r1649 | r1650 | |
|---|---|---|
| 278 | 278 | ***************************************************************************/ |
| 279 | 279 | |
| 280 | 280 | #include "driver.h" |
| 281 | #include "deprecat.h" | |
| 281 | 282 | #include "machine/mathbox.h" |
| 282 | 283 | #include "video/avgdvg.h" |
| 283 | 284 | #include "video/vector.h" |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | ***************************************************************************/ |
| 14 | 14 | |
| 15 | 15 | #include "driver.h" |
| 16 | #include "deprecat.h" | |
| 16 | 17 | #include "cpu/h6280/h6280.h" |
| 17 | 18 | #include "sound/2203intf.h" |
| 18 | 19 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 20 | 20 | |
| 21 | 21 | |
| 22 | 22 | #include "driver.h" |
| 23 | #include "deprecat.h" | |
| 23 | 24 | #include "machine/atarigen.h" |
| 24 | 25 | #include "audio/atarijsa.h" |
| 25 | 26 | #include "eprom.h" |
| r1649 | r1650 | |
|---|---|---|
| 269 | 269 | ***************************************************************************/ |
| 270 | 270 | |
| 271 | 271 | #include "driver.h" |
| 272 | #include "deprecat.h" | |
| 272 | 273 | #include "sound/2203intf.h" |
| 273 | 274 | #include "sound/3812intf.h" |
| 274 | 275 | #include "cpu/m6805/m6805.h" |
| r1649 | r1650 | |
|---|---|---|
| 40 | 40 | */ |
| 41 | 41 | |
| 42 | 42 | #include "driver.h" |
| 43 | #include "deprecat.h" | |
| 43 | 44 | #include "machine/mc8123.h" |
| 44 | 45 | #include "sound/2203intf.h" |
| 45 | 46 |
| r1649 | r1650 | |
|---|---|---|
| 84 | 84 | */ |
| 85 | 85 | |
| 86 | 86 | #include "driver.h" |
| 87 | #include "deprecat.h" | |
| 87 | 88 | #include "audio/seibu.h" |
| 88 | 89 | |
| 89 | 90 | static UINT8* cshooter_txram; |
| r1649 | r1650 | |
|---|---|---|
| 59 | 59 | ***************************************************************************/ |
| 60 | 60 | |
| 61 | 61 | #include "driver.h" |
| 62 | #include "deprecat.h" | |
| 62 | 63 | #include "cpu/z80/z80.h" |
| 63 | 64 | #include "sound/2610intf.h" |
| 64 | 65 | #include "sound/3812intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 225 | 225 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 226 | 226 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 227 | 227 | |
| 228 | MDRV_CPU_ADD(Z80,14318180/8) | |
| 229 | /* audio CPU */ /* 1.789772727 MHz */ \ | |
| 230 | MDRV_CPU_PROGRAM_MAP(timeplt_sound_readmem,timeplt_sound_writemem) | |
| 231 | ||
| 232 | 228 | MDRV_SCREEN_REFRESH_RATE(60) |
| 233 | 229 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) |
| 234 | 230 | |
| r1649 | r1650 | |
| 246 | 242 | MDRV_VIDEO_UPDATE(rocnrope) |
| 247 | 243 | |
| 248 | 244 | /* sound hardware */ |
| 249 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 250 | ||
| 251 | MDRV_SOUND_ADD(AY8910, 14318180/8) | |
| 252 | MDRV_SOUND_CONFIG(timeplt_ay8910_interface) | |
| 253 | MDRV_SOUND_ROUTE(0, "filter.0.0", 0.60) | |
| 254 | MDRV_SOUND_ROUTE(1, "filter.0.1", 0.60) | |
| 255 | MDRV_SOUND_ROUTE(2, "filter.0.2", 0.60) | |
| 256 | ||
| 257 | MDRV_SOUND_ADD(AY8910, 14318180/8) | |
| 258 | MDRV_SOUND_ROUTE(0, "filter.1.0", 0.60) | |
| 259 | MDRV_SOUND_ROUTE(1, "filter.1.1", 0.60) | |
| 260 | MDRV_SOUND_ROUTE(2, "filter.1.2", 0.60) | |
| 261 | ||
| 262 | MDRV_SOUND_ADD_TAG("filter.0.0", FILTER_RC, 0) | |
| 263 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 264 | MDRV_SOUND_ADD_TAG("filter.0.1", FILTER_RC, 0) | |
| 265 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 266 | MDRV_SOUND_ADD_TAG("filter.0.2", FILTER_RC, 0) | |
| 267 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 268 | ||
| 269 | MDRV_SOUND_ADD_TAG("filter.1.0", FILTER_RC, 0) | |
| 270 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 271 | MDRV_SOUND_ADD_TAG("filter.1.1", FILTER_RC, 0) | |
| 272 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 273 | MDRV_SOUND_ADD_TAG("filter.1.2", FILTER_RC, 0) | |
| 274 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 245 | MDRV_IMPORT_FROM(timeplt_sound) | |
| 275 | 246 | MACHINE_DRIVER_END |
| 276 | 247 | |
| 277 | 248 | /*************************************************************************** |
| r1649 | r1650 | |
|---|---|---|
| 17 | 17 | ***************************************************************************/ |
| 18 | 18 | |
| 19 | 19 | #include "driver.h" |
| 20 | #include "deprecat.h" | |
| 20 | 21 | #include "includes/fgoal.h" |
| 21 | 22 | |
| 22 | 23 | UINT8* fgoal_video_ram; |
| r1649 | r1650 | |
|---|---|---|
| 119 | 119 | */ |
| 120 | 120 | |
| 121 | 121 | #include "driver.h" |
| 122 | #include "deprecat.h" | |
| 122 | 123 | #include "includes/kaneko16.h" |
| 123 | 124 | #include "sound/okim6295.h" |
| 124 | 125 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "cpu/powerpc/ppc.h" |
| 9 | 10 | #include "sound/k054539.h" |
| 10 | 11 | #include "machine/eeprom.h" |
| r1649 | r1650 | |
|---|---|---|
| 71 | 71 | */ |
| 72 | 72 | |
| 73 | 73 | #include "driver.h" |
| 74 | #include "deprecat.h" | |
| 74 | 75 | #include "sound/ay8910.h" |
| 75 | 76 | #include "sound/namco.h" |
| 76 | 77 |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | ***************************************************************************/ |
| 15 | 15 | |
| 16 | 16 | #include "driver.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | #include "sound/ay8910.h" |
| 18 | 19 | |
| 19 | 20 |
| r1649 | r1650 | |
|---|---|---|
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | 17 | #include "driver.h" |
| 18 | #include "deprecat.h" | |
| 18 | 19 | #include "hitme.h" |
| 19 | 20 | #include "sound/discrete.h" |
| 20 | 21 |
| r1649 | r1650 | |
|---|---|---|
| 23 | 23 | |
| 24 | 24 | |
| 25 | 25 | #include "driver.h" |
| 26 | #include "deprecat.h" | |
| 26 | 27 | #include "machine/atarigen.h" |
| 27 | 28 | #include "rampart.h" |
| 28 | 29 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
|---|---|---|
| 69 | 69 | ***************************************************************************/ |
| 70 | 70 | |
| 71 | 71 | #include "driver.h" |
| 72 | #include "deprecat.h" | |
| 72 | 73 | #include "machine/z80ctc.h" |
| 73 | 74 | #include "machine/z80pio.h" |
| 74 | 75 | #include "sound/sn76496.h" |
| r1649 | r1650 | |
|---|---|---|
| 257 | 257 | |
| 258 | 258 | ROM_END |
| 259 | 259 | |
| 260 | GAME( 198?, murogem, 0, murogem, murogem, 0, ROT0, "unknown", "Muroge Monaco (set 1)",GAME_NO_SOUND|GAME_WRONG_COLORS ) | |
| 261 | GAME( 198?, murogema, murogem, murogem, murogem, 0, ROT0, "unknown", "Muroge Monaco (set 2)",GAME_NO_SOUND|GAME_WRONG_COLORS ) | |
| 262 | GAME( 198?, lasvegas, murogem, murogem, murogem, 0, ROT0, "hack", "Las Vegas, Nevada",GAME_NO_SOUND|GAME_WRONG_COLORS ) | |
| 260 | GAME( 198?, murogem, 0, murogem, murogem, 0, ROT0, "unknown", "Muroge Monaco (set 1)", GAME_NO_SOUND|GAME_WRONG_COLORS ) | |
| 261 | GAME( 198?, murogema, murogem, murogem, murogem, 0, ROT0, "unknown", "Muroge Monaco (set 2)", GAME_NO_SOUND|GAME_WRONG_COLORS ) | |
| 262 | GAME( 198?, lasvegas, murogem, murogem, murogem, 0, ROT0, "hack", "Las Vegas, Nevada", GAME_NO_SOUND|GAME_WRONG_COLORS ) |
| r1649 | r1650 | |
|---|---|---|
| 63 | 63 | ***************************************************************************/ |
| 64 | 64 | |
| 65 | 65 | #include "driver.h" |
| 66 | #include "deprecat.h" | |
| 66 | 67 | #include "cpu/m68000/m68000.h" |
| 67 | 68 | #include "cpu/z80/z80.h" |
| 68 | 69 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 20 | 20 | ***************************************************************************/ |
| 21 | 21 | |
| 22 | 22 | #include "driver.h" |
| 23 | #include "deprecat.h" | |
| 23 | 24 | #include "system16.h" |
| 24 | 25 | #include "cpu/m68000/m68000.h" |
| 25 | 26 | #include "machine/segaic16.h" |
| r1649 | r1650 | |
|---|---|---|
| 20 | 20 | ******************************************************************************/ |
| 21 | 21 | |
| 22 | 22 | #include "driver.h" |
| 23 | #include "deprecat.h" | |
| 23 | 24 | #include "machine/z80ctc.h" |
| 24 | 25 | #include "sound/3812intf.h" |
| 25 | 26 | #include "sound/dac.h" |
| r1649 | r1650 | |
| 5032 | 5033 | GAME( 1993, mjlaman, 0, mjlaman, mjlaman, nbmj9195, ROT0, "Nichibutsu/AV JAPAN", "Mahjong La Man (Japan)", 0 ) |
| 5033 | 5034 | GAME( 1993, mkeibaou, 0, mkeibaou, mkeibaou, nbmj9195, ROT0, "Nichibutsu", "Mahjong Keibaou (Japan)", 0 ) |
| 5034 | 5035 | GAME( 1993, pachiten, 0, pachiten, pachiten, nbmj9195, ROT0, "Nichibutsu/MIKI SYOUJI/AV JAPAN", "Medal Mahjong Pachi-Slot Tengoku [BET] (Japan)", 0 ) |
| 5035 | GAME( 1993, sailorws, 0, sailorws, sailorws, nbmj9195, ROT0, "Nichibutsu", "Mahjong Sailor Wars (Japan)", 0 ) | |
| 5036 | GAME( 1993, sailorwa, sailorws, sailorws, sailorws, nbmj9195, ROT0, "Nichibutsu", "Mahjong Sailor Wars (Japan) (set 2)", 0 ) | |
| 5036 | GAME( 1993, sailorws, 0, sailorws, sailorws, nbmj9195, ROT0, "Nichibutsu", "Mahjong Sailor Wars (Japan set 1)", 0 ) | |
| 5037 | GAME( 1993, sailorwa, sailorws, sailorws, sailorws, nbmj9195, ROT0, "Nichibutsu", "Mahjong Sailor Wars (Japan set 2)", 0 ) | |
| 5037 | 5038 | GAME( 1993, sailorwr, sailorws, sailorwr, sailorwr, nbmj9195, ROT0, "Nichibutsu", "Mahjong Sailor Wars-R [BET] (Japan)", 0 ) |
| 5038 | 5039 | GAME( 1993, wcatcher, 0, otatidai, wcatcher, nbmj9195, ROT0, "Nichibutsu", "Mahjong Wakuwaku Catcher (Japan)", 0 ) |
| 5039 | 5040 | GAME( 1993, jituroku, 0, jituroku, jituroku, nbmj9195, ROT180, "Windom", "Jitsuroku Maru-chi Mahjong (Japan)", 0 ) |
| r1649 | r1650 | |
| 5046 | 5047 | GAME( 1991, mjgottsu, 0, mjgottsu, mjgottsu, nbmj9195, ROT0, "Nichibutsu", "Mahjong Gottsu ee-kanji (Japan)", 0 ) |
| 5047 | 5048 | GAME( 1991, bakuhatu, mjgottsu, bakuhatu, bakuhatu, nbmj9195, ROT0, "Nichibutsu", "Mahjong Bakuhatsu Junjouden (Japan)", 0 ) |
| 5048 | 5049 | GAME( 1992, cmehyou, 0, cmehyou, cmehyou, nbmj9195, ROT0, "Nichibutsu/Kawakusu", "Mahjong Circuit no Mehyou (Japan)", 0 ) |
| 5049 | GAME( 1992, mjkoiura, 0, mjkoiura, mjkoiura, nbmj9195, ROT0, "Nichibutsu", "Mahjong Koi Uranai (Japan)", 0 ) | |
| 5050 | GAME( 1992, mkoiuraa, mjkoiura, mkoiuraa, mjkoiura, nbmj9195, ROT0, "Nichibutsu", "Mahjong Koi Uranai (set 2) (Japan)", 0 ) | |
| 5050 | GAME( 1992, mjkoiura, 0, mjkoiura, mjkoiura, nbmj9195, ROT0, "Nichibutsu", "Mahjong Koi Uranai (Japan set 1)", 0 ) | |
| 5051 | GAME( 1992, mkoiuraa, mjkoiura, mkoiuraa, mjkoiura, nbmj9195, ROT0, "Nichibutsu", "Mahjong Koi Uranai (Japan set 2)", 0 ) | |
| 5051 | 5052 | |
| 5052 | 5053 | GAME( 1994, mscoutm, 0, mscoutm, mscoutm, nbmj9195, ROT0, "SPHINX/AV JAPAN", "Mahjong Scout Man (Japan)", 0 ) |
| 5053 | 5054 | GAME( 1994, imekura, 0, imekura, imekura, nbmj9195, ROT0, "SPHINX/AV JAPAN", "Imekura Mahjong (Japan)", 0 ) |
| r1649 | r1650 | |
|---|---|---|
| 48 | 48 | ***************************************************************************/ |
| 49 | 49 | |
| 50 | 50 | #include "driver.h" |
| 51 | #include "deprecat.h" | |
| 51 | 52 | #include "cpu/m6809/m6809.h" |
| 52 | 53 | #include "sound/ay8910.h" |
| 53 | 54 |
| r1649 | r1650 | |
|---|---|---|
| 81 | 81 | |
| 82 | 82 | |
| 83 | 83 | #include "driver.h" |
| 84 | #include "deprecat.h" | |
| 84 | 85 | #include "cpu/i8051/i8051.h" |
| 85 | 86 | #include "sound/okim6295.h" |
| 86 | 87 |
| r1649 | r1650 | |
|---|---|---|
| 91 | 91 | extern void decrypt156(void); |
| 92 | 92 | |
| 93 | 93 | #include "driver.h" |
| 94 | #include "deprecat.h" | |
| 94 | 95 | #include "decocrpt.h" |
| 95 | 96 | #include "deco32.h" |
| 96 | 97 | #include "cpu/arm/arm.h" |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "cpu/konami/konami.h" |
| 11 | 12 | #include "cpu/z80/z80.h" |
| 12 | 13 | #include "sound/3812intf.h" |
| r1649 | r1650 | |
| 75 | 76 | AM_RANGE(0x040c, 0x040c) AM_WRITE(watchdog_reset_w) |
| 76 | 77 | AM_RANGE(0x0410, 0x0410) AM_WRITE(hcastle_coin_w) |
| 77 | 78 | AM_RANGE(0x0418, 0x0418) AM_WRITE(hcastle_gfxbank_w) |
| 78 | AM_RANGE(0x0600, 0x06ff) AM_WRITE( | |
| 79 | AM_RANGE(0x0600, 0x06ff) AM_WRITE(MWA8 | |
| 79 | 80 | AM_RANGE(0x0700, 0x1fff) AM_WRITE(MWA8_RAM) |
| 80 | 81 | AM_RANGE(0x2000, 0x2fff) AM_WRITE(hcastle_pf1_video_w) AM_BASE(&hcastle_pf1_videoram) |
| 81 | 82 | AM_RANGE(0x3000, 0x3fff) AM_WRITE(MWA8_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size) |
| r1649 | r1650 | |
| 283 | 284 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 284 | 285 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 285 | 286 | MDRV_GFXDECODE(hcastle) |
| 286 | MDRV_PALETTE_LENGTH(128) | |
| 287 | MDRV_COLORTABLE_LENGTH(2*8*16*16) | |
| 287 | MDRV_PALETTE_LENGTH(2*8*16*16) | |
| 288 | 288 | |
| 289 | 289 | MDRV_PALETTE_INIT(hcastle) |
| 290 | 290 | MDRV_VIDEO_START(hcastle) |
| r1649 | r1650 | |
|---|---|---|
| 35 | 35 | */ |
| 36 | 36 | |
| 37 | 37 | #include "driver.h" |
| 38 | #include "deprecat.h" | |
| 38 | 39 | #include "audio/seibu.h" |
| 39 | 40 | #include "sound/2203intf.h" |
| 40 | 41 | #include "sound/msm5205.h" |
| r1649 | r1650 | |
|---|---|---|
| 75 | 75 | |
| 76 | 76 | #include "driver.h" |
| 77 | 77 | #include "render.h" |
| 78 | #include "deprecat.h" | |
| 78 | 79 | #include "machine/laserdsc.h" |
| 79 | 80 | #include "video/tms9928a.h" |
| 80 | 81 | #include "sound/discrete.h" |
| r1649 | r1650 | |
|---|---|---|
| 16 | 16 | ***************************************************************************/ |
| 17 | 17 | |
| 18 | 18 | #include "driver.h" |
| 19 | #include "deprecat.h" | |
| 19 | 20 | #include "cpu/tms34010/tms34010.h" |
| 20 | 21 | #include "video/tlc34076.h" |
| 21 | 22 | #include "artmagic.h" |
| r1649 | r1650 | |
|---|---|---|
| 26 | 26 | *******************************************************************************/ |
| 27 | 27 | |
| 28 | 28 | #include "driver.h" |
| 29 | #include "deprecat.h" | |
| 29 | 30 | #include "cpu/m6809/m6809.h" |
| 30 | 31 | #include "sound/ay8910.h" |
| 31 | 32 | #include "sound/2203intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 188 | 188 | |
| 189 | 189 | |
| 190 | 190 | #include "driver.h" |
| 191 | #include "deprecat.h" | |
| 191 | 192 | #include "cpu/m68000/m68000.h" |
| 192 | 193 | #include "cpu/tms32010/tms32010.h" |
| 193 | 194 | #include "twincobr.h" |
| r1649 | r1650 | |
|---|---|---|
| 79 | 79 | ***************************************************************************/ |
| 80 | 80 | |
| 81 | 81 | #include "driver.h" |
| 82 | #include "deprecat.h" | |
| 82 | 83 | #include "sound/okim6295.h" |
| 83 | 84 | #include "sound/k051649.h" |
| 84 | 85 |
| r0 | r1650 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | ||
| 4 | Birdie King / Birdie King II / Birdie King III Memory Map | |
| 5 | --------------------------------------------------------- | |
| 6 | ||
| 7 | 0000-7fff ROM | |
| 8 | 8000-83ff Scratch RAM | |
| 9 | 8400-8fff (Scratch RAM again, address lines AB10, AB11 ignored) | |
| 10 | 9000-97ff Playfield RAM | |
| 11 | a000-bfff Unused? | |
| 12 | ||
| 13 | DIP Locations verified for: | |
| 14 | - bking2 | |
| 15 | ||
| 16 | ***************************************************************************/ | |
| 17 | ||
| 18 | #include "driver.h" | |
| 19 | #include "deprecat.h" | |
| 20 | #include "cpu/m6805/m6805.h" | |
| 21 | #include "sound/ay8910.h" | |
| 22 | #include "sound/dac.h" | |
| 23 | ||
| 24 | ||
| 25 | /* bking3 mcu communication */ | |
| 26 | extern MACHINE_RESET( buggychl ); | |
| 27 | extern READ8_HANDLER( buggychl_68705_portA_r ); | |
| 28 | extern WRITE8_HANDLER( buggychl_68705_portA_w ); | |
| 29 | extern WRITE8_HANDLER( buggychl_68705_ddrA_w ); | |
| 30 | extern READ8_HANDLER( buggychl_68705_portB_r ); | |
| 31 | extern WRITE8_HANDLER( buggychl_68705_portB_w ); | |
| 32 | extern WRITE8_HANDLER( buggychl_68705_ddrB_w ); | |
| 33 | extern READ8_HANDLER( buggychl_68705_portC_r ); | |
| 34 | extern WRITE8_HANDLER( buggychl_68705_portC_w ); | |
| 35 | extern WRITE8_HANDLER( buggychl_68705_ddrC_w ); | |
| 36 | extern WRITE8_HANDLER( buggychl_mcu_w ); | |
| 37 | extern READ8_HANDLER( buggychl_mcu_r ); | |
| 38 | extern READ8_HANDLER( buggychl_mcu_status_r ); | |
| 39 | ||
| 40 | extern PALETTE_INIT( bking ); | |
| 41 | ||
| 42 | extern VIDEO_START( bking ); | |
| 43 | extern VIDEO_UPDATE( bking ); | |
| 44 | extern VIDEO_EOF( bking ); | |
| 45 | ||
| 46 | extern WRITE8_HANDLER( bking_xld1_w ); | |
| 47 | extern WRITE8_HANDLER( bking_yld1_w ); | |
| 48 | extern WRITE8_HANDLER( bking_xld2_w ); | |
| 49 | extern WRITE8_HANDLER( bking_yld2_w ); | |
| 50 | extern WRITE8_HANDLER( bking_xld3_w ); | |
| 51 | extern WRITE8_HANDLER( bking_yld3_w ); | |
| 52 | extern WRITE8_HANDLER( bking_msk_w ); | |
| 53 | extern WRITE8_HANDLER( bking_cont1_w ); | |
| 54 | extern WRITE8_HANDLER( bking_cont2_w ); | |
| 55 | extern WRITE8_HANDLER( bking_cont3_w ); | |
| 56 | extern WRITE8_HANDLER( bking_hitclr_w ); | |
| 57 | extern WRITE8_HANDLER( bking_playfield_w ); | |
| 58 | ||
| 59 | extern READ8_HANDLER( bking_input_port_5_r ); | |
| 60 | extern READ8_HANDLER( bking_input_port_6_r ); | |
| 61 | extern READ8_HANDLER( bking_pos_r ); | |
| 62 | ||
| 63 | UINT8 *bking_playfield_ram; | |
| 64 | ||
| 65 | static int bking3_addr_h, bking3_addr_l; | |
| 66 | static int sndnmi_enable = 1; | |
| 67 | ||
| 68 | static READ8_HANDLER( bking_sndnmi_disable_r ) | |
| 69 | { | |
| 70 | sndnmi_enable = 0; | |
| 71 | return 0; | |
| 72 | } | |
| 73 | ||
| 74 | static WRITE8_HANDLER( bking_sndnmi_enable_w ) | |
| 75 | { | |
| 76 | sndnmi_enable = 1; | |
| 77 | } | |
| 78 | ||
| 79 | static WRITE8_HANDLER( bking_soundlatch_w ) | |
| 80 | { | |
| 81 | int i,code; | |
| 82 | ||
| 83 | code = 0; | |
| 84 | for (i = 0;i < 8;i++) | |
| 85 | if (data & (1 << i)) code |= 0x80 >> i; | |
| 86 | ||
| 87 | soundlatch_w(offset,code); | |
| 88 | if (sndnmi_enable) cpunum_set_input_line(Machine, 1, INPUT_LINE_NMI, PULSE_LINE); | |
| 89 | } | |
| 90 | ||
| 91 | static WRITE8_HANDLER( bking3_addr_l_w ) | |
| 92 | { | |
| 93 | bking3_addr_l = data; | |
| 94 | } | |
| 95 | ||
| 96 | static WRITE8_HANDLER( bking3_addr_h_w ) | |
| 97 | { | |
| 98 | bking3_addr_h = data; | |
| 99 | } | |
| 100 | ||
| 101 | static READ8_HANDLER( bking3_extrarom_r ) | |
| 102 | { | |
| 103 | UINT8 *rom = memory_region(REGION_USER2); | |
| 104 | return rom[bking3_addr_h * 256 + bking3_addr_l]; | |
| 105 | } | |
| 106 | ||
| 107 | static WRITE8_HANDLER( unk_w ) | |
| 108 | { | |
| 109 | /* | |
| 110 | 0 = finished reading extra rom | |
| 111 | 1 = started reading extra rom | |
| 112 | */ | |
| 113 | } | |
| 114 | ||
| 115 | static READ8_HANDLER( bking3_ext_check_r ) | |
| 116 | { | |
| 117 | return 0x31; //no "bad rom.", no "bad ext." | |
| 118 | } | |
| 119 | ||
| 120 | static ADDRESS_MAP_START( bking_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 121 | AM_RANGE(0x0000, 0x7fff) AM_ROM | |
| 122 | AM_RANGE(0x8000, 0x83ff) AM_RAM | |
| 123 | AM_RANGE(0x9000, 0x97ff) AM_RAM AM_WRITE(bking_playfield_w) AM_BASE(&bking_playfield_ram) | |
| 124 | ADDRESS_MAP_END | |
| 125 | ||
| 126 | static ADDRESS_MAP_START( bking_io_map, ADDRESS_SPACE_IO, 8 ) | |
| 127 | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) ) | |
| 128 | AM_RANGE(0x00, 0x00) AM_READWRITE(input_port_0_r, bking_xld1_w) | |
| 129 | AM_RANGE(0x01, 0x01) AM_READWRITE(input_port_1_r, bking_yld1_w) | |
| 130 | AM_RANGE(0x02, 0x02) AM_READWRITE(input_port_2_r, bking_xld2_w) | |
| 131 | AM_RANGE(0x03, 0x03) AM_READWRITE(input_port_3_r, bking_yld2_w) | |
| 132 | AM_RANGE(0x04, 0x04) AM_READWRITE(input_port_4_r, bking_xld3_w) | |
| 133 | AM_RANGE(0x05, 0x05) AM_READWRITE(bking_input_port_5_r, bking_yld3_w) | |
| 134 | AM_RANGE(0x06, 0x06) AM_READWRITE(bking_input_port_6_r, bking_msk_w) | |
| 135 | AM_RANGE(0x07, 0x07) AM_WRITE(watchdog_reset_w) | |
| 136 | AM_RANGE(0x08, 0x08) AM_WRITE(bking_cont1_w) | |
| 137 | AM_RANGE(0x09, 0x09) AM_WRITE(bking_cont2_w) | |
| 138 | AM_RANGE(0x0a, 0x0a) AM_WRITE(bking_cont3_w) | |
| 139 | AM_RANGE(0x0b, 0x0b) AM_WRITE(bking_soundlatch_w) | |
| 140 | // AM_RANGE(0x0c, 0x0c) AM_WRITE(bking_eport2_w) this is not shown to be connected anywhere | |
| 141 | AM_RANGE(0x0d, 0x0d) AM_WRITE(bking_hitclr_w) | |
| 142 | AM_RANGE(0x07, 0x1f) AM_READ(bking_pos_r) | |
| 143 | ADDRESS_MAP_END | |
| 144 | ||
| 145 | static ADDRESS_MAP_START( bking3_io_map, ADDRESS_SPACE_IO, 8 ) | |
| 146 | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) ) | |
| 147 | AM_RANGE(0x00, 0x00) AM_READWRITE(input_port_0_r, bking_xld1_w) | |
| 148 | AM_RANGE(0x01, 0x01) AM_READWRITE(input_port_1_r, bking_yld1_w) | |
| 149 | AM_RANGE(0x02, 0x02) AM_READWRITE(input_port_2_r, bking_xld2_w) | |
| 150 | AM_RANGE(0x03, 0x03) AM_READWRITE(input_port_3_r, bking_yld2_w) | |
| 151 | AM_RANGE(0x04, 0x04) AM_READWRITE(input_port_4_r, bking_xld3_w) | |
| 152 | AM_RANGE(0x05, 0x05) AM_READWRITE(bking_input_port_5_r, bking_yld3_w) | |
| 153 | AM_RANGE(0x06, 0x06) AM_READWRITE(bking_input_port_6_r, bking_msk_w) | |
| 154 | AM_RANGE(0x07, 0x07) AM_WRITE(watchdog_reset_w) | |
| 155 | AM_RANGE(0x08, 0x08) AM_WRITE(bking_cont1_w) | |
| 156 | AM_RANGE(0x09, 0x09) AM_WRITE(bking_cont2_w) | |
| 157 | AM_RANGE(0x0a, 0x0a) AM_WRITE(bking_cont3_w) | |
| 158 | AM_RANGE(0x0b, 0x0b) AM_WRITE(bking_soundlatch_w) | |
| 159 | // AM_RANGE(0x0c, 0x0c) AM_WRITE(bking_eport2_w) this is not shown to be connected anywhere | |
| 160 | AM_RANGE(0x0d, 0x0d) AM_WRITE(bking_hitclr_w) | |
| 161 | AM_RANGE(0x07, 0x1f) AM_READ(bking_pos_r) | |
| 162 | AM_RANGE(0x2f, 0x2f) AM_READWRITE(buggychl_mcu_r, buggychl_mcu_w) | |
| 163 | AM_RANGE(0x4f, 0x4f) AM_READWRITE(buggychl_mcu_status_r, unk_w) | |
| 164 | AM_RANGE(0x60, 0x60) AM_READ(bking3_extrarom_r) | |
| 165 | AM_RANGE(0x6f, 0x6f) AM_READWRITE(bking3_ext_check_r, bking3_addr_h_w) | |
| 166 | AM_RANGE(0x8f, 0x8f) AM_WRITE(bking3_addr_l_w) | |
| 167 | ADDRESS_MAP_END | |
| 168 | ||
| 169 | static ADDRESS_MAP_START( bking_audio_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 170 | AM_RANGE(0x0000, 0x1fff) AM_ROM | |
| 171 | AM_RANGE(0x2000, 0x2fff) AM_ROM //only bking3 | |
| 172 | AM_RANGE(0x4000, 0x43ff) AM_RAM | |
| 173 | AM_RANGE(0x4400, 0x4400) AM_WRITE(AY8910_control_port_0_w) | |
| 174 | AM_RANGE(0x4401, 0x4401) AM_READWRITE(AY8910_read_port_0_r, AY8910_write_port_0_w) | |
| 175 | AM_RANGE(0x4402, 0x4402) AM_WRITE(AY8910_control_port_1_w) | |
| 176 | AM_RANGE(0x4403, 0x4403) AM_READWRITE(AY8910_read_port_1_r, AY8910_write_port_1_w) | |
| 177 | AM_RANGE(0x4800, 0x4800) AM_READ(soundlatch_r) | |
| 178 | AM_RANGE(0x4802, 0x4802) AM_READWRITE(bking_sndnmi_disable_r, bking_sndnmi_enable_w) | |
| 179 | AM_RANGE(0xe000, 0xefff) AM_ROM /* Space for diagnostic ROM */ | |
| 180 | ADDRESS_MAP_END | |
| 181 | ||
| 182 | #if 0 | |
| 183 | static UINT8 portA_in,portA_out,ddrA; | |
| 184 | ||
| 185 | static READ8_HANDLER( bking3_68705_portA_r ) | |
| 186 | { | |
| 187 | //printf("portA_r = %02X\n",(portA_out & ddrA) | (portA_in & ~ddrA)); | |
| 188 | return (portA_out & ddrA) | (portA_in & ~ddrA); | |
| 189 | } | |
| 190 | ||
| 191 | static WRITE8_HANDLER( bking3_68705_portA_w ) | |
| 192 | { | |
| 193 | portA_out = data; | |
| 194 | // printf("portA_out = %02X\n",data); | |
| 195 | } | |
| 196 | ||
| 197 | static WRITE8_HANDLER( bking3_68705_ddrA_w ) | |
| 198 | { | |
| 199 | ddrA = data; | |
| 200 | } | |
| 201 | ||
| 202 | static UINT8 portB_in,portB_out,ddrB; | |
| 203 | ||
| 204 | static READ8_HANDLER( bking3_68705_portB_r ) | |
| 205 | { | |
| 206 | return (portB_out & ddrB) | (portB_in & ~ddrB); | |
| 207 | } | |
| 208 | ||
| 209 | static WRITE8_HANDLER( bking3_68705_portB_w ) | |
| 210 | { | |
| 211 | // if(data != 0xff) | |
| 212 | // printf("portB_out = %02X\n",data); | |
| 213 | ||
| 214 | if (~data & 0x02) | |
| 215 | { | |
| 216 | portA_in = from_main; | |
| 217 | if (main_sent) cpunum_set_input_line(Machine, 2,0,CLEAR_LINE); | |
| 218 | main_sent = 0; | |
| 219 | } | |
| 220 | ||
| 221 | if (~data & 0x04) | |
| 222 | { | |
| 223 | /* 68705 is writing data for the Z80 */ | |
| 224 | from_mcu = portA_out; | |
| 225 | mcu_sent = 1; | |
| 226 | } | |
| 227 | ||
| 228 | if(data != 0xff && data != 0xfb && data != 0xfd) | |
| 229 | printf("portB_w = %X\n",data); | |
| 230 | ||
| 231 | portB_out = data; | |
| 232 | } | |
| 233 | ||
| 234 | static WRITE8_HANDLER( bking3_68705_ddrB_w ) | |
| 235 | { | |
| 236 | ddrB = data; | |
| 237 | } | |
| 238 | ||
| 239 | static READ8_HANDLER( bking3_68705_portC_r ) | |
| 240 | { | |
| 241 | int portC_in = 0; | |
| 242 | if (main_sent) portC_in |= 0x01; | |
| 243 | if (!mcu_sent) portC_in |= 0x02; | |
| 244 | //logerror("%04x: 68705 port C read %02x\n",activecpu_get_pc(),portC_in); | |
| 245 | return portC_in; | |
| 246 | } | |
| 247 | #endif | |
| 248 | static ADDRESS_MAP_START( m68705_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 249 | ADDRESS_MAP_FLAGS( AMEF_ABITS(11) ) | |
| 250 | AM_RANGE(0x0000, 0x0000) AM_READWRITE(buggychl_68705_portA_r, buggychl_68705_portA_w) | |
| 251 | AM_RANGE(0x0001, 0x0001) AM_READWRITE(buggychl_68705_portB_r, buggychl_68705_portB_w) | |
| 252 | AM_RANGE(0x0002, 0x0002) AM_READWRITE(buggychl_68705_portC_r, buggychl_68705_portC_w) | |
| 253 | AM_RANGE(0x0004, 0x0004) AM_WRITE(buggychl_68705_ddrA_w) | |
| 254 | AM_RANGE(0x0005, 0x0005) AM_WRITE(buggychl_68705_ddrB_w) | |
| 255 | AM_RANGE(0x0006, 0x0006) AM_WRITE(buggychl_68705_ddrC_w) | |
| 256 | AM_RANGE(0x0010, 0x007f) AM_RAM | |
| 257 | AM_RANGE(0x0080, 0x07ff) AM_ROM | |
| 258 | ADDRESS_MAP_END | |
| 259 | ||
| 260 | static INPUT_PORTS_START( bking ) | |
| 261 | PORT_START /* IN0 */ | |
| 262 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 263 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 264 | PORT_BIT( 0xfc, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 265 | ||
| 266 | PORT_START /* IN1 */ | |
| 267 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) | |
| 268 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) | |
| 269 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START1 ) /* Continue 1 */ | |
| 270 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START2 ) /* Continue 2 */ | |
| 271 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 272 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_TILT ) | |
| 273 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) /* Not Connected */ | |
| 274 | ||
| 275 | PORT_START_TAG("DSWA") /* IN2 - DIP Switch A */ | |
| 276 | PORT_DIPNAME( 0x01, 0x00, "Holes Awarded" ) PORT_DIPLOCATION("SWA:1") | |
| 277 | PORT_DIPSETTING( 0x00, "Par Play: 0 Holes/Birdie: 1 Hole/Eagle: 2 Holes/Double Eagle: 4 Holes" ) | |
| 278 | PORT_DIPSETTING( 0x01, "Par Play: 1 Hole/Birdie: 2 Holes/Eagle: 3 Holes/Double Eagle: 4 Holes" ) | |
| 279 | PORT_DIPNAME( 0x02, 0x02, "Holes Awarded For Hole-in-One" ) PORT_DIPLOCATION("SWA:2") | |
| 280 | PORT_DIPSETTING( 0x00, "3 Holes" ) | |
| 281 | PORT_DIPSETTING( 0x02, "9 Holes" ) | |
| 282 | PORT_DIPNAME( 0x04, 0x04, DEF_STR(Free_Play) ) PORT_DIPLOCATION("SWA:3") | |
| 283 | PORT_DIPSETTING( 0x04, DEF_STR(Off)) | |
| 284 | PORT_DIPSETTING( 0x00, DEF_STR(On)) | |
| 285 | PORT_DIPNAME( 0x18, 0x18, "Holes Per Play" ) PORT_DIPLOCATION("SWA:4,5") | |
| 286 | PORT_DIPSETTING( 0x18, "3" ) | |
| 287 | PORT_DIPSETTING( 0x08, "4" ) | |
| 288 | PORT_DIPSETTING( 0x10, "5" ) | |
| 289 | PORT_DIPSETTING( 0x00, "9" ) | |
| 290 | PORT_DIPNAME( 0x20, 0x20, "Self Test" ) PORT_DIPLOCATION("SWA:6") | |
| 291 | PORT_DIPSETTING( 0x20, DEF_STR(Off)) | |
| 292 | PORT_DIPSETTING( 0x00, DEF_STR(On)) | |
| 293 | PORT_DIPNAME( 0x40, 0x40, DEF_STR(Flip_Screen) ) PORT_DIPLOCATION("SWA:7") | |
| 294 | PORT_DIPSETTING( 0x40, DEF_STR(Off)) | |
| 295 | PORT_DIPSETTING( 0x00, DEF_STR(On)) | |
| 296 | PORT_DIPNAME( 0x80, 0x00, DEF_STR(Cabinet) ) PORT_DIPLOCATION("SWA:8") | |
| 297 | PORT_DIPSETTING( 0x00, DEF_STR(Upright) ) | |
| 298 | PORT_DIPSETTING( 0x80, DEF_STR(Cocktail) ) | |
| 299 | ||
| 300 | PORT_START_TAG("DSWB") /* IN3 - DIP Switch B */ | |
| 301 | PORT_DIPNAME( 0x0f, 0x00, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SWB:1,2,3,4") | |
| 302 | PORT_DIPSETTING( 0x0f, DEF_STR( 9C_1C ) ) | |
| 303 | PORT_DIPSETTING( 0x0e, DEF_STR( 8C_1C ) ) | |
| 304 | PORT_DIPSETTING( 0x0d, DEF_STR( 7C_1C ) ) | |
| 305 | PORT_DIPSETTING( 0x0c, DEF_STR( 6C_1C ) ) | |
| 306 | PORT_DIPSETTING( 0x0b, DEF_STR( 5C_1C ) ) | |
| 307 | PORT_DIPSETTING( 0x0a, DEF_STR( 4C_1C ) ) | |
| 308 | PORT_DIPSETTING( 0x09, DEF_STR( 3C_1C ) ) | |
| 309 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) ) | |
| 310 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 311 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C ) ) | |
| 312 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_3C ) ) | |
| 313 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_4C ) ) | |
| 314 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_5C ) ) | |
| 315 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_6C ) ) | |
| 316 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_7C ) ) | |
| 317 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_8C ) ) | |
| 318 | PORT_DIPNAME( 0xf0, 0x00, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SWB:5,6,7,8") | |
| 319 | PORT_DIPSETTING( 0xf0, DEF_STR( 9C_1C ) ) | |
| 320 | PORT_DIPSETTING( 0xe0, DEF_STR( 8C_1C ) ) | |
| 321 | PORT_DIPSETTING( 0xd0, DEF_STR( 7C_1C ) ) | |
| 322 | PORT_DIPSETTING( 0xc0, DEF_STR( 6C_1C ) ) | |
| 323 | PORT_DIPSETTING( 0xb0, DEF_STR( 5C_1C ) ) | |
| 324 | PORT_DIPSETTING( 0xa0, DEF_STR( 4C_1C ) ) | |
| 325 | PORT_DIPSETTING( 0x90, DEF_STR( 3C_1C ) ) | |
| 326 | PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) | |
| 327 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 328 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_2C ) ) | |
| 329 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_3C ) ) | |
| 330 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_4C ) ) | |
| 331 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) | |
| 332 | PORT_DIPSETTING( 0x50, DEF_STR( 1C_6C ) ) | |
| 333 | PORT_DIPSETTING( 0x60, DEF_STR( 1C_7C ) ) | |
| 334 | PORT_DIPSETTING( 0x70, DEF_STR( 1C_8C ) ) | |
| 335 | ||
| 336 | PORT_START_TAG("DSWC") /* IN4 - DIP Switch C */ | |
| 337 | PORT_DIPNAME( 0x01, 0x01, "Appearance of Crow" ) PORT_DIPLOCATION("SWC:1") | |
| 338 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 339 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 340 | PORT_DIPNAME( 0x06, 0x02, "Crow Flight Pattern" ) PORT_DIPLOCATION("SWC:2,3") /* "The hole from which a crow appears and flys with drawing a circle or a 8-shape in the air." */ | |
| 341 | PORT_DIPSETTING( 0x00, "1" ) /* Circle 1,7,11,15,18 / 8-shape 3,5,9,13,17 */ | |
| 342 | PORT_DIPSETTING( 0x02, "2" ) /* Circle 1,10,16,18 / 8-shape 4,7,13,17 */ | |
| 343 | PORT_DIPSETTING( 0x04, "3" ) /* Circle 4,7,13,18 / 8-shape 1,10,16,17 */ | |
| 344 | PORT_DIPSETTING( 0x06, "4" ) /* Circle 3,5,9,13,18 / 8-shape 1,7,11,15,17 */ | |
| 345 | PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "SWC:4" ) /* Listed as "Unused" */ | |
| 346 | PORT_DIPNAME( 0x10, 0x10, "Coin Display" ) PORT_DIPLOCATION("SWC:5") | |
| 347 | PORT_DIPSETTING( 0x00, DEF_STR(Off)) | |
| 348 | PORT_DIPSETTING( 0x10, DEF_STR(On)) | |
| 349 | PORT_DIPNAME( 0x20, 0x20, "Year Display" ) PORT_DIPLOCATION("SWC:6") | |
| 350 | PORT_DIPSETTING( 0x00, DEF_STR(Off)) | |
| 351 | PORT_DIPSETTING( 0x20, DEF_STR(On)) | |
| 352 | PORT_DIPNAME( 0x40, 0x40, "Check" ) PORT_DIPLOCATION("SWC:7") | |
| 353 | PORT_DIPSETTING( 0x00, "Check" ) | |
| 354 | PORT_DIPSETTING( 0x40, DEF_STR( Normal ) ) | |
| 355 | PORT_DIPNAME( 0x80, 0x00, "Coin System" ) PORT_DIPLOCATION("SWC:8") /* Default is "1 Way" according to manual */ | |
| 356 | PORT_DIPSETTING( 0x00, "1 Way" ) | |
| 357 | PORT_DIPSETTING( 0x80, "2 Way" ) | |
| 358 | ||
| 359 | PORT_START /* IN5 */ | |
| 360 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) /* Sensitivity, clip, min, max */ | |
| 361 | ||
| 362 | PORT_START /* IN6 */ | |
| 363 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_REVERSE /* Sensitivity, clip, min, max */ | |
| 364 | ||
| 365 | PORT_START /* IN7 */ | |
| 366 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_COCKTAIL /* Sensitivity, clip, min, max */ | |
| 367 | ||
| 368 | PORT_START /* IN8 */ | |
| 369 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_REVERSE PORT_COCKTAIL /* Sensitivity, clip, min, max */ | |
| 370 | INPUT_PORTS_END | |
| 371 | ||
| 372 | static INPUT_PORTS_START( bking2 ) | |
| 373 | PORT_INCLUDE( bking ) | |
| 374 | ||
| 375 | PORT_MODIFY("DSWA") | |
| 376 | PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "SWA:6" ) /* Listed as "Unused" */ | |
| 377 | INPUT_PORTS_END | |
| 378 | ||
| 379 | static const gfx_layout charlayout = | |
| 380 | { | |
| 381 | 8,8, /* 8*8 characters */ | |
| 382 | 1024, /* 1024 characters */ | |
| 383 | 3, /* 3 bits per pixel */ | |
| 384 | { 0*1024*8*8, 1*1024*8*8, 2*1024*8*8 }, /* the bitplanes are separated */ | |
| 385 | { 7, 6, 5, 4, 3, 2, 1, 0 }, /* reverse layout */ | |
| 386 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, | |
| 387 | 8*8 /* every char takes 8 consecutive bytes */ | |
| 388 | }; | |
| 389 | ||
| 390 | static const gfx_layout crowlayout = | |
| 391 | { | |
| 392 | 16,32, /* 16*32 characters */ | |
| 393 | 16, /* 16 characters */ | |
| 394 | 2, /* 2 bits per pixel */ | |
| 395 | { 0, 4 }, | |
| 396 | { 3*32*8+3, 3*32*8+2, 3*32*8+1, 3*32*8+0, | |
| 397 | 2*32*8+3, 2*32*8+2, 2*32*8+1, 2*32*8+0, | |
| 398 | 32*8+3, 32*8+2, 32*8+1, 32*8+0, | |
| 399 | 3, 2, 1, 0 }, /* reverse layout */ | |
| 400 | { 31*8, 30*8, 29*8, 28*8, 27*8, 26*8, 25*8, 24*8, | |
| 401 | 23*8, 22*8, 21*8, 20*8, 19*8, 18*8, 17*8, 16*8, | |
| 402 | 15*8, 14*8, 13*8, 12*8, 11*8, 10*8, 9*8, 8*8, | |
| 403 | 7*8, 6*8, 5*8, 4*8, 3*8, 2*8, 1*8, 0*8 }, | |
| 404 | 128*8 /* every sprite takes 128 consecutive bytes */ | |
| 405 | }; | |
| 406 | ||
| 407 | static const gfx_layout balllayout = | |
| 408 | { | |
| 409 | 8,16, /* 8*16 sprites */ | |
| 410 | 8, /* 8 sprites */ | |
| 411 | 1, /* 1 bit per pixel */ | |
| 412 | { 0 }, | |
| 413 | { 7, 6, 5, 4, 3, 2, 1, 0 }, /* pretty straightforward layout */ | |
| 414 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8, | |
| 415 | 8*8, 9*8, 10*8, 11*8, 12*8, 13*8, 14*8, 15*8 }, | |
| 416 | 16*8 /* every sprite takes 16 consecutive bytes */ | |
| 417 | }; | |
| 418 | ||
| 419 | static GFXDECODE_START( bking ) | |
| 420 | GFXDECODE_ENTRY( REGION_GFX1, 0, charlayout, 0, 4 ) /* playfield */ | |
| 421 | GFXDECODE_ENTRY( REGION_GFX2, 0, crowlayout, 4*8, 4 ) /* crow */ | |
| 422 | GFXDECODE_ENTRY( REGION_GFX3, 0, balllayout, 4*8+4*4, 4 ) /* ball 1 */ | |
| 423 | GFXDECODE_ENTRY( REGION_GFX4, 0, balllayout, 4*8+4*4+4*2, 4 ) /* ball 2 */ | |
| 424 | GFXDECODE_END | |
| 425 | ||
| 426 | ||
| 427 | static WRITE8_HANDLER( portb_w ) | |
| 428 | { | |
| 429 | /* don't know what this is... could be a filter */ | |
| 430 | if (data != 0x00) logerror("portB = %02x\n",data); | |
| 431 | } | |
| 432 | ||
| 433 | static const struct AY8910interface ay8910_interface = | |
| 434 | { | |
| 435 | 0, | |
| 436 | 0, | |
| 437 | DAC_0_signed_data_w, | |
| 438 | portb_w | |
| 439 | }; | |
| 440 | ||
| 441 | static MACHINE_DRIVER_START( bking ) | |
| 442 | ||
| 443 | /* basic machine hardware */ | |
| 444 | MDRV_CPU_ADD_TAG("main_cpu", Z80, XTAL_12MHz/4) /* 3 MHz */ | |
| 445 | MDRV_CPU_PROGRAM_MAP(bking_map,0) | |
| 446 | MDRV_CPU_IO_MAP(bking_io_map,0) | |
| 447 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) | |
| 448 | ||
| 449 | MDRV_CPU_ADD(Z80, XTAL_6MHz/2) /* 3 MHz */ | |
| 450 | /* audio CPU */ | |
| 451 | MDRV_CPU_PROGRAM_MAP(bking_audio_map,0) | |
| 452 | /* interrupts (from Jungle King hardware, might be wrong): */ | |
| 453 | /* - no interrupts synced with vblank */ | |
| 454 | /* - NMI triggered by the main CPU */ | |
| 455 | /* - periodic IRQ, with frequency 6000000/(4*16*16*10*16) = 36.621 Hz, */ | |
| 456 | MDRV_CPU_PERIODIC_INT(irq0_line_hold, (double)6000000/(4*16*16*10*16)) | |
| 457 | ||
| 458 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 459 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 460 | ||
| 461 | /* video hardware */ | |
| 462 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 463 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 464 | MDRV_SCREEN_SIZE(32*8, 32*8) | |
| 465 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) | |
| 466 | MDRV_GFXDECODE(bking) | |
| 467 | MDRV_PALETTE_LENGTH(4*8+4*4+4*2+4*2) | |
| 468 | ||
| 469 | MDRV_PALETTE_INIT(bking) | |
| 470 | MDRV_VIDEO_START(bking) | |
| 471 | MDRV_VIDEO_UPDATE(bking) | |
| 472 | MDRV_VIDEO_EOF(bking) | |
| 473 | ||
| 474 | /* sound hardware */ | |
| 475 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 476 | ||
| 477 | MDRV_SOUND_ADD(AY8910, XTAL_6MHz/4) | |
| 478 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) | |
| 479 | ||
| 480 | MDRV_SOUND_ADD(AY8910, XTAL_6MHz/4) | |
| 481 | MDRV_SOUND_CONFIG(ay8910_interface) | |
| 482 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) | |
| 483 | ||
| 484 | MDRV_SOUND_ADD(DAC, 0) | |
| 485 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) | |
| 486 | MACHINE_DRIVER_END | |
| 487 | ||
| 488 | static MACHINE_DRIVER_START( bking3 ) | |
| 489 | MDRV_IMPORT_FROM(bking) | |
| 490 | ||
| 491 | MDRV_CPU_MODIFY("main_cpu") | |
| 492 | MDRV_CPU_IO_MAP(bking3_io_map,0) | |
| 493 | ||
| 494 | MDRV_CPU_ADD(M68705, XTAL_3MHz) /* xtal is 3MHz, divided by 4 internally */ | |
| 495 | MDRV_CPU_PROGRAM_MAP(m68705_map,0) | |
| 496 | ||
| 497 | MDRV_MACHINE_RESET(buggychl) | |
| 498 | ||
| 499 | MDRV_INTERLEAVE(100) | |
| 500 | MACHINE_DRIVER_END | |
| 501 | ||
| 502 | /*************************************************************************** | |
| 503 | ||
| 504 | Game driver(s) | |
| 505 | ||
| 506 | ***************************************************************************/ | |
| 507 | ||
| 508 | ROM_START( bking ) | |
| 509 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 510 | ROM_LOAD( "dm_11.f13", 0x0000, 0x1000, CRC(d84fe4f7) SHA1(3ad1641d05e4faca2be28052ccae8f81bc2255bb) ) | |
| 511 | ROM_LOAD( "dm_12.f11", 0x1000, 0x1000, CRC(e065bbe6) SHA1(8d6d3334977c1eea1bf238817d59c25acd9d99f0) ) | |
| 512 | ROM_LOAD( "dm_13.f10", 0x2000, 0x1000, CRC(aac7cddd) SHA1(12a8887bd8d3334e0d740a7f54374b0e48021140) ) | |
| 513 | ROM_LOAD( "dm_14.f8", 0x3000, 0x1000, CRC(1179d074) SHA1(23df9a7e3e1bf42d6ea3a2d85629d27bd68e9af4) ) | |
| 514 | ROM_LOAD( "dm_15.f7", 0x4000, 0x1000, CRC(fda31475) SHA1(784ffa089b7bd4ab4cbd454f4c1c26553a11fc48) ) | |
| 515 | ROM_LOAD( "dm_16.f5", 0x5000, 0x1000, CRC(b6c3c3ed) SHA1(6c7f67d5eba35e32b556b531e848ef375123de78) ) | |
| 516 | ||
| 517 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* Sound ROMs */ | |
| 518 | ROM_LOAD( "dm_17.f4", 0x0000, 0x1000, CRC(54840bc3) SHA1(225daf7ff8a4095b0e69ce6ccce6d8eab26ec1c8) ) | |
| 519 | ROM_LOAD( "dm_18.d4", 0x1000, 0x1000, CRC(2abadd42) SHA1(d921d333ec9b9140a7d3ce7aaddab35f45fae018) ) | |
| 520 | ||
| 521 | ROM_REGION( 0x6000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 522 | ROM_LOAD( "dm_10.a5", 0x0000, 0x1000, CRC(fe96dd67) SHA1(11014602f926cf6edbf06e7b2acef92036b2f30a) ) | |
| 523 | ROM_LOAD( "dm_09.a7", 0x1000, 0x1000, CRC(80c675d7) SHA1(e590a71a15ea485abf099eceaa16d5a1dbe0c3dc) ) | |
| 524 | ROM_LOAD( "dm_08.a8", 0x2000, 0x1000, CRC(d9bd6b60) SHA1(3c790b6a69472e0a37f45baa00ce5c7d09e7b588) ) | |
| 525 | ROM_LOAD( "dm_07.a10", 0x3000, 0x1000, CRC(65f7a0e4) SHA1(034dbf2fe384cb69963936e9f3029aa54e032e4a) ) | |
| 526 | ROM_LOAD( "dm_06.a11", 0x4000, 0x1000, CRC(00fdbafc) SHA1(b2a8d9c96415fecee52f1c4691a5f10c96f484b1) ) | |
| 527 | ROM_LOAD( "dm_05.a13", 0x5000, 0x1000, CRC(3e4fe925) SHA1(9ed73601c8b34ea8889717cbb3ee4a00ab7ab458) ) | |
| 528 | ||
| 529 | ROM_REGION( 0x0800, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 530 | ROM_LOAD( "dm_01.e10", 0x0000, 0x0800, CRC(e5663f0b) SHA1(b0fed8c4cdff7b12bb220e51d5b7188933934a34) ) /* crow graphics */ | |
| 531 | ||
| 532 | ROM_REGION( 0x0800, REGION_GFX3, ROMREGION_DISPOSE ) | |
| 533 | ROM_LOAD( "dm_02.e7", 0x0000, 0x0800, CRC(fc9cec31) SHA1(5ab1c9b3b15334c6ec06826005ecb66b34d8879a) ) /* ball 1 graphics. Only the first 128 bytes used */ | |
| 534 | ||
| 535 | ROM_REGION( 0x0800, REGION_GFX4, ROMREGION_DISPOSE ) | |
| 536 | ROM_LOAD( "dm_02.e9", 0x0000, 0x0800, CRC(fc9cec31) SHA1(5ab1c9b3b15334c6ec06826005ecb66b34d8879a) ) /* ball 2 graphics. Only the first 128 bytes used */ | |
| 537 | ||
| 538 | ROM_REGION( 0x0020, REGION_USER1, 0 ) | |
| 539 | ROM_LOAD( "dm04.c2", 0x0000, 0x0020, CRC(4cb5bd32) SHA1(8851bae033ba67516d5ff6888e5daef10c2116ee) ) /* collision detection */ | |
| 540 | ||
| 541 | ROM_REGION( 0x0200, REGION_PROMS, 0 ) | |
| 542 | ROM_LOAD( "dm_03.d1", 0x0000, 0x0200, CRC(61b7a9ff) SHA1(4302de0c0dad2b871ad4719ad934beaee05a0c40) ) /* palette */ | |
| 543 | ROM_END | |
| 544 | ||
| 545 | ROM_START( bking2 ) | |
| 546 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 547 | ROM_LOAD( "01.13f", 0x0000, 0x1000, CRC(078ada3f) SHA1(5e82a6d27c65fe29d664dbfc2ede547c0f4869f0) ) | |
| 548 | ROM_LOAD( "02.11f", 0x1000, 0x1000, CRC(c37d110a) SHA1(7aec6c949d1cf136c3037140bd86597feaf29108) ) | |
| 549 | ROM_LOAD( "03.10f", 0x2000, 0x1000, CRC(2ba5c681) SHA1(d0df24f5e52e6162b40308d8aa38b0348a100f37) ) | |
| 550 | ROM_LOAD( "04.8f", 0x3000, 0x1000, CRC(8fad54e8) SHA1(55edc185914686d42efd848a402f78884d42292b) ) | |
| 551 | ROM_LOAD( "05.7f", 0x4000, 0x1000, CRC(b4de6b58) SHA1(f62bdc3128b226454b1f00a4cbe382e1219a11b0) ) | |
| 552 | ROM_LOAD( "06.5f", 0x5000, 0x1000, CRC(9ac43b87) SHA1(dd562fee01c81317978d1bd8a0178e3d9be6145a) ) | |
| 553 | ROM_LOAD( "07.4f", 0x6000, 0x1000, CRC(b3ed40b7) SHA1(d481094c0381234314f797928e3cdb22f36f4e32) ) | |
| 554 | ROM_LOAD( "08.2f", 0x7000, 0x1000, CRC(8fddb2e8) SHA1(6ee5f09d154440851f370a97b35450e3726e14e7) ) | |
| 555 | ||
| 556 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* Sound ROMs */ | |
| 557 | ROM_LOAD( "15", 0x0000, 0x1000, CRC(f045d0fe) SHA1(3b34081fa6cd0423236d09b6f23e8cf8cfd627c5) ) | |
| 558 | ROM_LOAD( "16", 0x1000, 0x1000, CRC(92d50410) SHA1(e6f4c27031744bbc832a1eb121a7dba4da5286c4) ) | |
| 559 | ||
| 560 | ROM_REGION( 0x6000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 561 | ROM_LOAD( "14.5a", 0x0000, 0x1000, CRC(52636a94) SHA1(185c4455bd9bb23d14aa2f6f7baa74959da08fc2) ) | |
| 562 | ROM_LOAD( "13.7a", 0x1000, 0x1000, CRC(6b9e0564) SHA1(6cdd3820caa3825e98b61fe260960cc05c04d032) ) | |
| 563 | ROM_LOAD( "12.8a", 0x2000, 0x1000, CRC(c6d685d9) SHA1(2dd2fda365e6bdf9aa26de90650f4a2588ea0515) ) | |
| 564 | ROM_LOAD( "11.10a", 0x3000, 0x1000, CRC(2b949987) SHA1(a94666c4f2fdc25399f7976ed2c25fd454387be6) ) | |
| 565 | ROM_LOAD( "10.11a", 0x4000, 0x1000, CRC(eb96f948) SHA1(295ba5a620a8a85a121d3e823804adceeeef64d9) ) | |
| 566 | ROM_LOAD( "09.13a", 0x5000, 0x1000, CRC(595e3dd4) SHA1(9dd3388ce704dd5473af034716cd8d48df3dc495) ) | |
| 567 | ||
| 568 | ROM_REGION( 0x0800, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 569 | ROM_LOAD( "17", 0x0000, 0x0800, CRC(e5663f0b) SHA1(b0fed8c4cdff7b12bb220e51d5b7188933934a34) ) /* crow graphics */ | |
| 570 | ||
| 571 | ROM_REGION( 0x0800, REGION_GFX3, ROMREGION_DISPOSE ) | |
| 572 | ROM_LOAD( "18", 0x0000, 0x0800, CRC(fc9cec31) SHA1(5ab1c9b3b15334c6ec06826005ecb66b34d8879a) ) /* ball 1 graphics. Only the first 128 bytes used */ | |
| 573 | ||
| 574 | ROM_REGION( 0x0800, REGION_GFX4, ROMREGION_DISPOSE ) | |
| 575 | ROM_LOAD( "19", 0x0000, 0x0800, CRC(fc9cec31) SHA1(5ab1c9b3b15334c6ec06826005ecb66b34d8879a) ) /* ball 2 graphics. Only the first 128 bytes used */ | |
| 576 | ||
| 577 | ROM_REGION( 0x0020, REGION_USER1, 0 ) | |
| 578 | ROM_LOAD( "mb7051.2c", 0x0000, 0x0020, CRC(4cb5bd32) SHA1(8851bae033ba67516d5ff6888e5daef10c2116ee) ) /* collision detection */ | |
| 579 | ||
| 580 | ROM_REGION( 0x0200, REGION_PROMS, 0 ) | |
| 581 | ROM_LOAD( "82s141.2d", 0x0000, 0x0200, CRC(61b7a9ff) SHA1(4302de0c0dad2b871ad4719ad934beaee05a0c40) ) /* palette */ | |
| 582 | ||
| 583 | ROM_REGION( 0x0600, REGION_PLDS, ROMREGION_DISPOSE ) | |
| 584 | ROM_LOAD( "pal16l8.1", 0x0000, 0x0104, CRC(e75d19f5) SHA1(d51cbb247760312b8884bbd0478a321eee05034f) ) | |
| 585 | ROM_LOAD( "pal16l8.2", 0x0200, 0x0104, CRC(0302b683) SHA1(91bfba22c883adb15309d9ec0c42b5b744887c77) ) | |
| 586 | ROM_LOAD( "pal16l8.3", 0x0400, 0x0104, CRC(a609d0cf) SHA1(7a18040720646c2dff4c1dc6f272c6a69e538c47) ) | |
| 587 | ROM_END | |
| 588 | ||
| 589 | /* | |
| 590 | Birdie King 3 | |
| 591 | Taito, 1984 | |
| 592 | ||
| 593 | A golf game using a trackball. Uses same harness/pinout as | |
| 594 | Elevator Action, Victorious Nine, Jolly Jogger (etc) | |
| 595 | ||
| 596 | PCB Layouts | |
| 597 | (Note! There are no PALs on ANY of the PCBs) | |
| 598 | ||
| 599 | Top PCB | |
| 600 | ------- | |
| 601 | DMO70003A | |
| 602 | K1000173B (sticker) | |
| 603 | |------------------------| | |
| 604 | | | | |
| 605 | |-| | | |
| 606 | | | Z80 2114 | | |
| 607 | | | 2114 | | |
| 608 | | |N | | |
| 609 | | | A24_18.4F | | |
| 610 | | | A24_19.4D | | |
| 611 | |-| A24_20.4B | | |
| 612 | | | | |
| 613 | | AY3-8910 | | |
| 614 | | | | |
| 615 | | AY3-8910 | | |
| 616 | | | | |
| 617 | | | | |
| 618 | | 6MHz | | |
| 619 | | | | |
| 620 | | | | |
| 621 | | | | |
| 622 | | LM3900 LM3900 LM3900 | | |
| 623 | |------------------------| | |
| 624 | Notes: | |
| 625 | Z80 - Clock 3.000MHz [6/2] | |
| 626 | AY3-8910 - Clock 1.500MHz [6/4] | |
| 627 | 2114 - 1kx4 SRAM (DIP18) | |
| 628 | N - Flat cable connector, joins to main board | |
| 629 | LM3900 - National LM3900 Quad, dual-input amplifier IC (DIP14) | |
| 630 | plus many resistors/capacitors below the AY3-8910's | |
| 631 | ||
| 632 | ||
| 633 | Sub PCB (below Top PCB) | |
| 634 | ----------------------- | |
| 635 | SUB PCB J910 0010 A | |
| 636 | K910 0018 A | |
| 637 | |------------------------| | |
| 638 | | * | | |
| 639 | | | | |
| 640 | | | | |
| 641 | | | | |
| 642 | | | | |
| 643 | | | | |
| 644 | | | | |
| 645 | | | | |
| 646 | | | | |
| 647 | | | | |
| 648 | | | | |
| 649 | | | | |
| 650 | | | | |
| 651 | |A24_21.IC25 | | |
| 652 | | | | |
| 653 | | S2 | | |
| 654 | | | | |
| 655 | | 3MHz S1| | |
| 656 | |T A24_22.IC17 | | |
| 657 | |------------------------| | |
| 658 | Notes: | |
| 659 | A24_22.IC17 - Motorola 68705P5 Microcontroller, clock 3.000MHz | |
| 660 | A24_21.IC25 - 2732 EPROM | |
| 661 | * - DIP24 socket with flat cable below PCB, joins to main board | |
| 662 | T - 4-pin power connector (5 volts) coming from main board | |
| 663 | S1 - Flat cable connector, joins to main PCB to connector S | |
| 664 | S2 - Flat cable connector, joins to bottom PCB to connector S | |
| 665 | ||
| 666 | ||
| 667 | ||
| 668 | Main PCB | |
| 669 | -------- | |
| 670 | J1100001A | |
| 671 | K1100001A | |
| 672 | M4300001D (sticker) | |
| 673 | K1100032A (sticker) | |
| 674 | |--------------------------------------------------------------| | |
| 675 | | M3712 VOL A24_03.2D M53354 | | |
| 676 | |H DM-04.2C |-| | |
| 677 | | N * | | | |
| 678 | | MC14584 R| | | |
| 679 | | | | | |
| 680 | | | | | |
| 681 | | | | | |
| 682 | | |-| | |
| 683 | | | | |
| 684 | |G LM3900 | | |
| 685 | | MC14093 | | |
| 686 | | A24_01.7E |-| | |
| 687 | | | | | |
| 688 | | A24_01.9E | | | |
| 689 | | MC14584 S| | | |
| 690 | | A24_02.10E | | | |
| 691 | | MC14584 MC1455 | | | |
| 692 | | |-| | |
| 693 | | DSWC DSWB DSWA | | |
| 694 | |--------------------------------------------------------------| | |
| 695 | Notes: | |
| 696 | M53354 - ?, maybe 74LS154? (DIP24) | |
| 697 | MC1455 - Motorola MC1455 Monolithic Timing Circuit (NE555 compatible) | |
| 698 | A24_01/02 - 2716 EPROMs | |
| 699 | A24_03 - Signetics 82S141 PROM (DIP24) | |
| 700 | DM-04 - Signetics 82S123 PROM (DIP8) | |
| 701 | * - DIP24 socket with flat cable, joins to SUB PCB DIP24 socket | |
| 702 | R/S - Flat cable connector, R joins to main board, S joins to SUB PCB | |
| 703 | G - 22-way Edge Connector | |
| 704 | N - Flat cable connector, joins to TOP PCB | |
| 705 | H - 12-pin power connector | |
| 706 | VSync - 60Hz | |
| 707 | HSync - 15.67kHz | |
| 708 | ||
| 709 | ||
| 710 | Bottom PCB | |
| 711 | ---------- | |
| 712 | DMO70002A | |
| 713 | DMN00002A | |
| 714 | K1000172B (sticker) | |
| 715 | |--------------------------------------------------------------| | |
| 716 | | A24_17.13A 2114 Z80 A24_04.13F | | |
| 717 | | |-| | |
| 718 | | A24_16.11A 2114 A24_05.11F | | | |
| 719 | | S| | | |
| 720 | | A24_15.10A A24_06.10F | | | |
| 721 | | | | | |
| 722 | | A24_14.8A A24_07.8F | | | |
| 723 | | |-| | |
| 724 | |T A24_13.7A A24_08.7F | | |
| 725 | | | | |
| 726 | | A24_12.5A A24_09.5F | | |
| 727 | | |-| | |
| 728 | | A24_10.4F | | | |
| 729 | | 2114 | | | |
| 730 | | A24_11.2F R| | | |
| 731 | | 2114 | | | |
| 732 | | | | | |
| 733 | | 2114 |-| | |
| 734 | | 12MHz | | |
| 735 | |--------------------------------------------------------------| | |
| 736 | Notes: | |
| 737 | R/S - Flat cable connector, R joins to main board, S joins to SUB PCB | |
| 738 | T - 18-Way Edge Connector (for +5V/GND only) | |
| 739 | A24_* - 2732 EPROMs | |
| 740 | Z80 - Clock 3.000MHz [12/4] | |
| 741 | 2114 - 1kx4 SRAM (DIP18) | |
| 742 | */ | |
| 743 | ||
| 744 | ROM_START( bking3 ) | |
| 745 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 746 | ROM_LOAD( "a24-04.13f", 0x0000, 0x1000, CRC(a0c319a6) SHA1(6b79667288113fde43975fcfd05e93d8e45bf92d) ) | |
| 747 | ROM_LOAD( "a24-05.11f", 0x1000, 0x1000, CRC(fedc9b4a) SHA1(3ac22c3ca09df9983f3c8c05e807ecf5999c9fc5) ) | |
| 748 | ROM_LOAD( "a24-06.10f", 0x2000, 0x1000, CRC(6a116ebf) SHA1(e58b1f75eb75027749a900b27107930e9072ca5a) ) | |
| 749 | ROM_LOAD( "a24-07.8f", 0x3000, 0x1000, CRC(75a74d2d) SHA1(d433e8fcf3819b845936e7e107fef414f72bfc16) ) | |
| 750 | ROM_LOAD( "a24-08.7f", 0x4000, 0x1000, CRC(9fe07cf9) SHA1(23fdae48e519a171bf4adeeadf2fdfedfd56f4ea) ) | |
| 751 | ROM_LOAD( "a24-09.5f", 0x5000, 0x1000, CRC(51545ced) SHA1(4addad527c6fd675506bf584ec8670a23767787c) ) | |
| 752 | ROM_LOAD( "a24-10.4f", 0x6000, 0x1000, CRC(a86b3e62) SHA1(f97a13e31e622b5ac55c23458c65a49c2998196a) ) | |
| 753 | ROM_LOAD( "a24-11.2f", 0x7000, 0x1000, CRC(b39db430) SHA1(4f48a34f3aaa1e998a4a5656bc3f399d9e6633c4) ) | |
| 754 | ||
| 755 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* Sound ROMs */ | |
| 756 | ROM_LOAD( "a24-18.4f", 0x0000, 0x1000, CRC(fa3bfa98) SHA1(733924e154e301a9d692d80b485afc4ab0e200c1) ) | |
| 757 | ROM_LOAD( "a24-19.4d", 0x1000, 0x1000, CRC(817f9c2a) SHA1(7365ecf2700e1fd13016408f5493f8d51aab5bbd) ) | |
| 758 | ROM_LOAD( "a24-20.4b", 0x2000, 0x1000, CRC(0e9e16d6) SHA1(43c69602a8d9c34c527ce54472db84168acc4ef4) ) | |
| 759 | ||
| 760 | ROM_REGION( 0x0800, REGION_CPU3, 0 ) /* 2k for the microcontroller */ | |
| 761 | ROM_LOAD( "a24_22.ic17", 0x000000, 0x000800, CRC(27c497d5) SHA1(c6c72bbf0537da53148fa0a56d412ab46129d29c) ) //M68705P5S uC 3MHz xtal | |
| 762 | ||
| 763 | ROM_REGION( 0x6000, REGION_GFX1, ROMREGION_DISPOSE ) /* Tiles */ | |
| 764 | ROM_LOAD( "a24-12.5a", 0x0000, 0x1000, CRC(c5fe4817) SHA1(fbf82d9d85e18b76c7e939932df074a545e73f42) ) | |
| 765 | ROM_LOAD( "a24-13.7a", 0x1000, 0x1000, CRC(728bac57) SHA1(3daa246f95b31c971e5418f55b821616d0bce25d) ) | |
| 766 | ROM_LOAD( "a24-14.8a", 0x2000, 0x1000, CRC(63cd0009) SHA1(10fcfeec70b23e2206c4f4bf686dc6a48ecba1ce) ) | |
| 767 | ROM_LOAD( "a24-15.10a", 0x3000, 0x1000, CRC(590275d0) SHA1(563bebb344c606ca3a2124fc7a8804935a011e90) ) | |
| 768 | ROM_LOAD( "a24-16.11a", 0x4000, 0x1000, CRC(728d069e) SHA1(b4adb14281e4874bab7cec7f38ade70b5b7c6b8f) ) | |
| 769 | ROM_LOAD( "a24-17.13a", 0x5000, 0x1000, CRC(4c04c4f2) SHA1(8e9eee6d89e91910b398d42ac86597ef91baad96) ) | |
| 770 | ||
| 771 | ROM_REGION( 0x0800, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 772 | ROM_LOAD( "a24-02.10e", 0x0000, 0x0800, CRC(8560da46) SHA1(56f249f0b56336daac1a3624ef9b71354bb8ca40) ) /* crow graphics */ | |
| 773 | ||
| 774 | ROM_REGION( 0x0800, REGION_GFX3, ROMREGION_DISPOSE ) | |
| 775 | ROM_LOAD( "a24-01.7e", 0x0000, 0x0800, CRC(369c01e1) SHA1(196e12d0bcaf74cefe4cad3fccb69d104aab061e) ) /* ball 1 graphics. Only the first 128 bytes used */ | |
| 776 | ||
| 777 | ROM_REGION( 0x0800, REGION_GFX4, ROMREGION_DISPOSE ) | |
| 778 | ROM_LOAD( "a24-01.9e", 0x0000, 0x0800, CRC(369c01e1) SHA1(196e12d0bcaf74cefe4cad3fccb69d104aab061e) ) /* ball 2 graphics. Only the first 128 bytes used */ | |
| 779 | ||
| 780 | ROM_REGION( 0x0020, REGION_USER1, 0 ) | |
| 781 | ROM_LOAD( "82s123.2c", 0x0000, 0x0020, CRC(4cb5bd32) SHA1(8851bae033ba67516d5ff6888e5daef10c2116ee) ) /* collision detection */ | |
| 782 | ||
| 783 | ROM_REGION( 0x0200, REGION_PROMS, 0 ) | |
| 784 | ROM_LOAD( "a24_03.2d", 0x0000, 0x0200, CRC(599a6cbe) SHA1(eed8592aaba7b2b6d06f26a2b8720a288f9ad90f) ) /* palette */ | |
| 785 | ||
| 786 | ROM_REGION( 0x1000, REGION_USER2, 0 ) | |
| 787 | ROM_LOAD( "a24-21.25", 0x0000, 0x1000, CRC(3106fcac) SHA1(08454adfb58e5df84140d86ed52fa4ef684df9f1) ) /* extra rom on the same SUB PCB where is the mcu */ | |
| 788 | ROM_END | |
| 789 | ||
| 790 | GAME( 1982, bking, 0, bking, bking, 0, ROT270, "Taito Corporation", "Birdie King", 0 ) | |
| 791 | GAME( 1983, bking2, 0, bking, bking2, 0, ROT90, "Taito Corporation", "Birdie King 2", 0 ) | |
| 792 | GAME( 1984, bking3, 0, bking3, bking2, 0, ROT90, "Taito Corporation", "Birdie King 3", 0 ) |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | ***************************************************************************/ |
| 12 | 12 | |
| 13 | 13 | #include "driver.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "cpu/hd6309/hd6309.h" |
| 15 | 16 | #include "cpu/z80/z80.h" |
| 16 | 17 | #include "video/konamiic.h" |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | #include "deprecat.h" | |
| 13 | 14 | #include "cpu/m68000/m68000.h" |
| 14 | 15 | #include "decocrpt.h" |
| 15 | 16 | #include "deco16ic.h" |
| r1649 | r1650 | |
|---|---|---|
| 22 | 22 | ***************************************************************************/ |
| 23 | 23 | |
| 24 | 24 | #include "driver.h" |
| 25 | #include "deprecat.h" | |
| 25 | 26 | #include "machine/eeprom.h" |
| 26 | 27 | #include "kaneko16.h" |
| 27 | 28 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
| 217 | 218 | } |
| 218 | 219 | |
| 219 | 220 | |
| 220 | static ADDRESS_MAP_START( galpani2_readmem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 221 | AM_RANGE(0x000000, 0x0fffff) AM_READ(MRA16_ROM ) // ROM | |
| 222 | AM_RANGE(0x100000, 0x10ffff) AM_READ(MRA16_RAM ) // Work RAM | |
| 223 | AM_RANGE(0x300000, 0x301fff) AM_READ(MRA16_RAM ) // ? | |
| 224 | AM_RANGE(0x302000, 0x303fff) AM_READ(MRA16_RAM ) // Sprites | |
| 225 | AM_RANGE(0x304000, 0x30401f) AM_READ(MRA16_RAM ) // Sprites Regs | |
| 226 | AM_RANGE(0x310000, 0x3101ff) AM_READ(MRA16_RAM ) // Background Palette | |
| 227 | AM_RANGE(0x318000, 0x318001) AM_READ(galpani2_eeprom_r ) // EEPROM | |
| 228 | AM_RANGE(0x380000, 0x38ffff) AM_READ(MRA16_RAM ) // ? + Sprites Palette | |
| 229 | AM_RANGE(0x400000, 0x43ffff) AM_READ(MRA16_RAM ) // Background 0 | |
| 230 | AM_RANGE(0x440000, 0x440001) AM_READ(MRA16_RAM ) // Background 0 Scroll X | |
| 231 | AM_RANGE(0x480000, 0x480001) AM_READ(MRA16_RAM ) // Background 0 Scroll Y | |
| 232 | AM_RANGE(0x500000, 0x53ffff) AM_READ(MRA16_RAM ) // Background 1 | |
| 233 | AM_RANGE(0x540000, 0x540001) AM_READ(MRA16_RAM ) // Background 1 Scroll X | |
| 234 | AM_RANGE(0x580000, 0x580001) AM_READ(MRA16_RAM ) // Background 1 Scroll Y | |
| 235 | AM_RANGE(0x780000, 0x780001) AM_READ(input_port_0_word_r ) // Input Ports | |
| 236 | AM_RANGE(0x780002, 0x780003) AM_READ(input_port_1_word_r ) // | |
| 237 | AM_RANGE(0x780004, 0x780005) AM_READ(input_port_2_word_r ) // | |
| 238 | AM_RANGE(0x780006, 0x780007) AM_READ(input_port_3_word_r ) // | |
| 239 | AM_RANGE(0xc00000, 0xc00001) AM_READ(OKIM6295_status_0_lsb_r ) // 2 x OKIM6295 | |
| 240 | AM_RANGE(0xc40000, 0xc40001) AM_READ(OKIM6295_status_1_lsb_r ) // | |
| 241 | ADDRESS_MAP_END | |
| 242 | ||
| 243 | static ADDRESS_MAP_START( galpani2_writemem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 244 | AM_RANGE(0x000000, 0x0fffff) AM_WRITE(MWA16_ROM ) // ROM | |
| 245 | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(MWA16_RAM) AM_BASE(&galpani2_ram ) // Work RAM | |
| 246 | AM_RANGE(0x300000, 0x301fff) AM_WRITE(MWA16_RAM ) // ? | |
| 247 | AM_RANGE(0x302000, 0x303fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size ) // Sprites | |
| 248 | AM_RANGE(0x304000, 0x30401f) AM_WRITE(kaneko16_sprites_regs_w) AM_BASE(&kaneko16_sprites_regs ) // Sprites Regs | |
| 221 | static ADDRESS_MAP_START( galpani2_mem1, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 222 | AM_RANGE(0x000000, 0x0fffff) AM_ROM // ROM | |
| 223 | AM_RANGE(0x100000, 0x10ffff) AM_RAM AM_BASE(&galpani2_ram ) // Work RAM | |
| 224 | AM_RANGE(0x300000, 0x301fff) AM_RAM // ? | |
| 225 | AM_RANGE(0x302000, 0x303fff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size ) // Sprites | |
| 226 | AM_RANGE(0x304000, 0x30401f) AM_READWRITE(MRA16_RAM, kaneko16_sprites_regs_w) AM_BASE(&kaneko16_sprites_regs ) // Sprites Regs | |
| 227 | // AM_RANGE(0x308000, 0x308001) AM_WRITE(MWA16_NOP ) // ? 0 at startup | |
| 249 | 228 | AM_RANGE(0x30c000, 0x30c001) AM_WRITE(MWA16_NOP ) // ? hblank effect ? |
| 250 | AM_RANGE(0x310000, 0x3101ff) AM_WRITE(galpani2_palette_0_w) AM_BASE(&galpani2_palette_0 | |
| 229 | AM_RANGE(0x310000, 0x3101ff) AM_READWRITE(MRA16_RAM, galpani2_palette_0_w) AM_BASE(&galpani2_palette_0 | |
| 251 | 230 | AM_RANGE(0x314000, 0x314001) AM_WRITE(MWA16_NOP ) // ? flip backgrounds ? |
| 252 | AM_RANGE(0x318000, 0x318001) AM_WRITE(galpani2_eeprom_w ) // EEPROM | |
| 253 | AM_RANGE(0x380000, 0x387fff) AM_WRITE(MWA16_RAM ) // Palette? | |
| 254 | AM_RANGE(0x388000, 0x38ffff) AM_WRITE(paletteram16_xGGGGGRRRRRBBBBB_word_w) AM_BASE(&paletteram16 ) // Palette | |
| 255 | AM_RANGE(0x400000, 0x43ffff) AM_WRITE(galpani2_bg8_0_w) AM_BASE(&galpani2_bg8_0 ) // Background 0 | |
| 256 | AM_RANGE(0x440000, 0x440001) AM_WRITE(MWA16_RAM) AM_BASE(&galpani2_bg8_0_scrollx ) // Background 0 Scroll X | |
| 257 | AM_RANGE(0x480000, 0x480001) AM_WRITE(MWA16_RAM) AM_BASE(&galpani2_bg8_0_scrolly ) // Background 0 Scroll Y | |
| 231 | AM_RANGE(0x318000, 0x318001) AM_READWRITE(galpani2_eeprom_r, galpani2_eeprom_w ) // EEPROM | |
| 232 | AM_RANGE(0x380000, 0x387fff) AM_RAM // Palette? | |
| 233 | AM_RANGE(0x388000, 0x38ffff) AM_READWRITE(MRA16_RAM, paletteram16_xGGGGGRRRRRBBBBB_word_w) AM_BASE(&paletteram16 ) // Palette | |
| 234 | AM_RANGE(0x400000, 0x43ffff) AM_READWRITE(MRA16_RAM, galpani2_bg8_0_w) AM_BASE(&galpani2_bg8_0 ) // Background 0 | |
| 235 | AM_RANGE(0x440000, 0x440001) AM_RAM AM_BASE(&galpani2_bg8_0_scrollx ) // Background 0 Scroll X | |
| 236 | AM_RANGE(0x480000, 0x480001) AM_RAM AM_BASE(&galpani2_bg8_0_scrolly ) // Background 0 Scroll Y | |
| 258 | 237 | AM_RANGE(0x4c0000, 0x4c0001) AM_WRITE(MWA16_NOP ) // ? 0 at startup only |
| 259 | AM_RANGE(0x500000, 0x53ffff) AM_WRITE(galpani2_bg8_1_w) AM_BASE(&galpani2_bg8_1 ) // Background 1 | |
| 260 | AM_RANGE(0x540000, 0x540001) AM_WRITE(MWA16_RAM) AM_BASE(&galpani2_bg8_1_scrollx ) // Background 1 Scroll X | |
| 261 | AM_RANGE(0x580000, 0x580001) AM_WRITE(MWA16_RAM) AM_BASE(&galpani2_bg8_1_scrolly ) // Background 1 Scroll Y | |
| 238 | AM_RANGE(0x500000, 0x53ffff) AM_READWRITE(MRA16_RAM, galpani2_bg8_1_w) AM_BASE(&galpani2_bg8_1 ) // Background 1 | |
| 239 | AM_RANGE(0x540000, 0x540001) AM_RAM AM_BASE(&galpani2_bg8_1_scrollx ) // Background 1 Scroll X | |
| 240 | AM_RANGE(0x580000, 0x580001) AM_RAM AM_BASE(&galpani2_bg8_1_scrolly ) // Background 1 Scroll Y | |
| 262 | 241 | AM_RANGE(0x5c0000, 0x5c0001) AM_WRITE(MWA16_NOP ) // ? 0 at startup only |
| 263 | 242 | AM_RANGE(0x600000, 0x600001) AM_WRITE(MWA16_NOP ) // Watchdog |
| 264 | 243 | // AM_RANGE(0x640000, 0x640001) AM_WRITE(MWA16_NOP ) // ? 0 before resetting and at startup |
| 265 | // AM_RANGE(0x680000, 0x680001) AM_WRITE(MWA16_NOP ) // ? 0 -> 1 -> 0 (lev 5) / 0 -> $10 -> 0 | |
| 266 | AM_RANGE(0x680000, 0x680001) AM_WRITE(galpani2_mcu_nmi_w ) // ? 0 -> 1 -> 0 (lev 5) / 0 -> $10 -> 0 | |
| 244 | AM_RANGE(0x680000, 0x680001) AM_WRITE(galpani2_mcu_nmi_w ) // ? 0 -> 1 -> 0 (lev 5) / 0 -> $10 -> 0 | |
| 267 | 245 | AM_RANGE(0x6c0000, 0x6c0001) AM_WRITE(galpani2_coin_lockout_w ) // Coin + Card Lockout |
| 268 | AM_RANGE(0xc00000, 0xc00001) AM_WRITE(OKIM6295_data_0_lsb_w ) // 2 x OKIM6295 | |
| 269 | AM_RANGE(0xc40000, 0xc40001) AM_WRITE(OKIM6295_data_1_lsb_w ) // | |
| 246 | AM_RANGE(0x780000, 0x780001) AM_READ(input_port_0_word_r ) // Input Ports | |
| 247 | AM_RANGE(0x780002, 0x780003) AM_READ(input_port_1_word_r ) // | |
| 248 | AM_RANGE(0x780004, 0x780005) AM_READ(input_port_2_word_r ) // | |
| 249 | AM_RANGE(0x780006, 0x780007) AM_READ(input_port_3_word_r ) // | |
| 250 | AM_RANGE(0xc00000, 0xc00001) AM_READWRITE(OKIM6295_status_0_lsb_r, OKIM6295_data_0_lsb_w ) // 2 x OKIM6295 | |
| 251 | AM_RANGE(0xc40000, 0xc40001) AM_READWRITE(OKIM6295_status_1_lsb_r, OKIM6295_data_1_lsb_w ) // | |
| 270 | 252 | AM_RANGE(0xc80000, 0xc80001) AM_WRITE(galpani2_oki_0_bank_w ) // |
| 271 | 253 | AM_RANGE(0xcc0000, 0xcc0001) AM_WRITE(galpani2_oki_1_bank_w ) // |
| 272 | 254 | ADDRESS_MAP_END |
| r1649 | r1650 | |
| 293 | 275 | else return 0xffff; |
| 294 | 276 | } |
| 295 | 277 | |
| 296 | ||
| 297 | static ADDRESS_MAP_START( galpani2_readmem2, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 298 | AM_RANGE(0x000000, 0x03ffff) AM_READ(MRA16_ROM ) // ROM | |
| 299 | AM_RANGE(0x100000, 0x13ffff) AM_READ(MRA16_RAM ) // Work RAM | |
| 300 | AM_RANGE(0x400000, 0x4fffff) AM_READ(MRA16_RAM ) // bg15 | |
| 301 | AM_RANGE(0x500000, 0x5fffff) AM_READ(MRA16_RAM ) // bg15 | |
| 302 | AM_RANGE(0x800000, 0xffffff) AM_READ(galpani2_bankedrom_r ) // Banked ROM | |
| 303 | ADDRESS_MAP_END | |
| 304 | ||
| 305 | static ADDRESS_MAP_START( galpani2_writemem2, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 306 | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(MWA16_ROM ) // ROM | |
| 307 | AM_RANGE(0x100000, 0x13ffff) AM_WRITE(MWA16_RAM) AM_BASE(&galpani2_ram2 ) // Work RAM | |
| 308 | AM_RANGE(0x400000, 0x4fffff) AM_WRITE(galpani2_bg15_w) AM_BASE(&galpani2_bg15 ) // bg15 | |
| 309 | AM_RANGE(0x500000, 0x5fffff) AM_WRITE(MWA16_RAM ) // bg15 | |
| 278 | static ADDRESS_MAP_START( galpani2_mem2, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 279 | AM_RANGE(0x000000, 0x03ffff) AM_ROM // ROM | |
| 280 | AM_RANGE(0x100000, 0x13ffff) AM_RAM AM_BASE(&galpani2_ram2) // Work RAM | |
| 281 | AM_RANGE(0x400000, 0x4fffff) AM_READWRITE(MRA16_RAM, galpani2_bg15_w) AM_BASE(&galpani2_bg15) // bg15 | |
| 282 | AM_RANGE(0x500000, 0x5fffff) AM_RAM // bg15 | |
| 310 | 283 | AM_RANGE(0x600000, 0x600001) AM_WRITE(MWA16_NOP ) // ? 0 at startup only |
| 311 | 284 | AM_RANGE(0x640000, 0x640001) AM_WRITE(MWA16_NOP ) // ? 0 at startup only |
| 312 | 285 | AM_RANGE(0x680000, 0x680001) AM_WRITE(MWA16_NOP ) // ? 0 at startup only |
| r1649 | r1650 | |
| 314 | 287 | AM_RANGE(0x700000, 0x700001) AM_WRITE(MWA16_NOP ) // Watchdog |
| 315 | 288 | AM_RANGE(0x780000, 0x780001) AM_WRITE(MWA16_NOP ) // ? 0 -> 1 -> 0 (lev 5) |
| 316 | 289 | AM_RANGE(0x7c0000, 0x7c0001) AM_WRITE(MWA16_RAM) AM_BASE(&galpani2_rombank ) // Rom Bank |
| 290 | AM_RANGE(0x800000, 0xffffff) AM_READ(galpani2_bankedrom_r ) // Banked ROM | |
| 317 | 291 | ADDRESS_MAP_END |
| 318 | 292 | |
| 319 | ||
| 320 | 293 | /*************************************************************************** |
| 321 | 294 | |
| 322 | 295 | |
| r1649 | r1650 | |
| 326 | 299 | ***************************************************************************/ |
| 327 | 300 | |
| 328 | 301 | static INPUT_PORTS_START( galpani2 ) |
| 329 | PORT_START_TAG("IN0") // IN0 - DSW + Player - 780000.w | |
| 330 | PORT_DIPNAME( 0x0007, 0x0007, "Unknown 2-0&1&2*" ) | |
| 331 | PORT_DIPSETTING( 0x007, "7" ) | |
| 332 | PORT_DIPSETTING( 0x006, "6" ) | |
| 333 | PORT_DIPSETTING( 0x005, "5" ) | |
| 334 | PORT_DIPSETTING( 0x004, "4" ) | |
| 335 | PORT_DIPSETTING( 0x003, "3" ) | |
| 336 | PORT_DIPSETTING( 0x002, "2" ) | |
| 337 | PORT_DIPSETTING( 0x001, "1" ) | |
| 338 | PORT_DIPSETTING( 0x000, "0" ) | |
| 339 | PORT_DIPNAME( 0x0008, 0x0008, "Unknown 2-3*" ) | |
| 340 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 341 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 342 | PORT_DIPNAME( 0x0030, 0x0030, "Unknown 2-4&5" ) // from? | |
| 343 | PORT_DIPSETTING( 0x0030, "3" ) // 2 | |
| 344 | PORT_DIPSETTING( 0x0020, "2" ) // 0 | |
| 345 | PORT_DIPSETTING( 0x0010, "1" ) // 3 | |
| 346 | PORT_DIPSETTING( 0x0000, "0" ) // 4 | |
| 347 | PORT_DIPNAME( 0x00c0, 0x00c0, "Unknown 2-6&7" ) // to? | |
| 348 | PORT_DIPSETTING( 0x00c0, "3" ) // 9 | |
| 349 | PORT_DIPSETTING( 0x0080, "2" ) // 1 | |
| 350 | PORT_DIPSETTING( 0x0040, "1" ) // 4 | |
| 351 | PORT_DIPSETTING( 0x0000, "0" ) // 6 | |
| 302 | PORT_START_TAG("IN0") // IN0 - DSW + Player 1 - 780000.w | |
| 303 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Difficulty ) ) | |
| 304 | PORT_DIPSETTING( 0x007, DEF_STR( Normal ) ) | |
| 305 | PORT_DIPSETTING( 0x006, DEF_STR( Very_Easy ) ) | |
| 306 | PORT_DIPSETTING( 0x005, DEF_STR( Easy ) ) | |
| 307 | PORT_DIPSETTING( 0x004, "Normal +" ) | |
| 308 | PORT_DIPSETTING( 0x003, DEF_STR( Hard ) ) | |
| 309 | PORT_DIPSETTING( 0x002, DEF_STR( Very_Hard ) ) | |
| 310 | PORT_DIPSETTING( 0x001, "Ultra Hard" ) | |
| 311 | PORT_DIPSETTING( 0x000, "God Hands" ) | |
| 312 | PORT_DIPNAME( 0x0008, 0x0008, "Picture Mode" ) | |
| 313 | PORT_DIPSETTING( 0x0008, DEF_STR( Normal ) ) | |
| 314 | PORT_DIPSETTING( 0x0000, "Adult" ) | |
| 315 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Lives ) ) | |
| 316 | PORT_DIPSETTING( 0x0030, "3" ) | |
| 317 | PORT_DIPSETTING( 0x0020, "1" ) | |
| 318 | PORT_DIPSETTING( 0x0010, "4" ) | |
| 319 | PORT_DIPSETTING( 0x0000, "5" ) | |
| 320 | PORT_DIPNAME( 0x00c0, 0x00c0, "Max Unit of Players" ) | |
| 321 | PORT_DIPSETTING( 0x00c0, "9" ) | |
| 322 | PORT_DIPSETTING( 0x0080, "1" ) | |
| 323 | PORT_DIPSETTING( 0x0040, "4" ) | |
| 324 | PORT_DIPSETTING( 0x0000, "6" ) | |
| 352 | 325 | |
| 353 | 326 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 354 | 327 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1649 | r1650 | |
| 359 | 332 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_START1 ) |
| 360 | 333 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(1) |
| 361 | 334 | |
| 362 | PORT_START_TAG("IN1") // IN1 - DSW + Player - 780002.w | |
| 335 | PORT_START_TAG("IN1") // IN1 - DSW + Player 2 - 780002.w | |
| 363 | 336 | PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coinage ) ) |
| 364 | 337 | PORT_DIPSETTING( 0x000f, "1 Coin/1 Credit 1/1" ) |
| 365 | 338 | PORT_DIPSETTING( 0x000e, "2 Coin/1 Credit 2/1" ) |
| r1649 | r1650 | |
| 377 | 350 | PORT_DIPSETTING( 0x0002, "1 Coin/2 Credit 1/2" ) |
| 378 | 351 | PORT_DIPSETTING( 0x0001, "1 Coin/3 Credit 1/3" ) |
| 379 | 352 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 380 | PORT_DIPNAME( 0x0010, 0x0010, "Unknown 1-4*" ) | |
| 381 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 382 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 353 | PORT_DIPNAME( 0x0010, 0x0010, "Card Dispenser" ) | |
| 354 | PORT_DIPSETTING( 0x0010, "Used" ) | |
| 355 | PORT_DIPSETTING( 0x0000, DEF_STR( Unused ) ) | |
| 383 | 356 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Flip_Screen ) ) |
| 384 | 357 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) |
| 385 | 358 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| r1649 | r1650 | |
| 431 | 404 | ***************************************************************************/ |
| 432 | 405 | |
| 433 | 406 | /* |
| 434 | 16x16x8 made of four 8x8x8 tiles arr | |
| 407 | 16x16x8 made of four 8x8x8 tiles arranged like: 01 | |
| 435 | 408 | 23 |
| 436 | 409 | */ |
| 437 | 410 | static const gfx_layout layout_16x16x8 = |
| r1649 | r1650 | |
| 488 | 461 | |
| 489 | 462 | /* basic machine hardware */ |
| 490 | 463 | MDRV_CPU_ADD(M68000, 16000000) /* 16MHz */ |
| 491 | MDRV_CPU_PROGRAM_MAP(galpani2_ | |
| 464 | MDRV_CPU_PROGRAM_MAP(galpani2_ | |
| 492 | 465 | MDRV_CPU_VBLANK_INT(galpani2_interrupt,GALPANI2_INTERRUPTS_NUM) |
| 493 | 466 | |
| 494 | 467 | MDRV_CPU_ADD(M68000, 16000000) /* 16MHz */ |
| 495 | MDRV_CPU_PROGRAM_MAP(galpani2_ | |
| 468 | MDRV_CPU_PROGRAM_MAP(galpani2_ | |
| 496 | 469 | MDRV_CPU_VBLANK_INT(galpani2_interrupt2,GALPANI2_INTERRUPTS_NUM2) |
| 497 | 470 | |
| 498 | 471 | MDRV_SCREEN_REFRESH_RATE(60) |
| r1649 | r1650 | |
| 534 | 507 | |
| 535 | 508 | ***************************************************************************/ |
| 536 | 509 | |
| 510 | //POST's displayed checksums | |
| 511 | // | |
| 512 | //galpani2 = 6A6C | |
| 513 | //galpan2g = 15A3 | |
| 514 | //galpan2t = 18A3 | |
| 515 | //galpan2j = 08E1 / A582 | |
| 516 | //gp2quiz = 78D6 / 84A0 | |
| 517 | //gp2se = 6D8C / FCE4 | |
| 518 | ||
| 537 | 519 | /*************************************************************************** |
| 538 | 520 | |
| 539 | 521 | Gals Panic II |
| r1649 | r1650 | |
| 599 | 581 | ROM_LOAD16_BYTE( "g003a2.u63-1", 0x000001, 0x020000, CRC(0d30725d) SHA1(d4614f9ffb930c4ea36cb3fbacffe63060e92402) ) |
| 600 | 582 | |
| 601 | 583 | ROM_REGION16_BE( 0x1500000, REGION_USER1, 0 ) /* Backgrounds (CPU2) */ |
| 602 | ROM_LOAD16_BYTE( "gp2-300b.053", 0x0000000, 0x100000, CRC(d7d12920) SHA1(4b6e01cc0ac5192758f4b3d26f102905b2b5e8ac) ) | |
| 603 | ROM_LOAD16_BYTE( "gp2-300a.052", 0x0000001, 0x100000, CRC(09ebedba) SHA1(3c06614633f0da03facb5199deac492b8ce07257) ) | |
| 584 | ROM_LOAD( "gp2-300a.052", 0x0000000, 0x100000, CRC(09ebedba) SHA1(3c06614633f0da03facb5199deac492b8ce07257) ) | |
| 585 | ROM_LOAD( "gp2-300b.053", 0x0100000, 0x100000, CRC(d7d12920) SHA1(4b6e01cc0ac5192758f4b3d26f102905b2b5e8ac) ) | |
| 604 | 586 | ROM_LOAD( "gp2-301.035", 0x0200000, 0x200000, CRC(e71e749d) SHA1(420c4c085e89d9641a84e34fa870df2bc02165b6) ) |
| 605 | 587 | ROM_LOAD( "gp2-302.036", 0x0400000, 0x200000, CRC(832ebbb0) SHA1(a753285d874fcab979e70d6a289cf9fcd48affc6) ) |
| 606 | 588 | ROM_LOAD( "gp2-303.037", 0x0600000, 0x200000, CRC(36c872d0) SHA1(e0aa3089dfa1765ba70ce60e8696b1ba87c95703) ) |
| r1649 | r1650 | |
| 696 | 678 | ROM_LOAD16_BYTE( "g003t1.126", 0x000001, 0x020000, CRC(20d3a2ad) SHA1(93450e5a23456c242ebf1a3560013a17c6b05354) ) |
| 697 | 679 | |
| 698 | 680 | ROM_REGION16_BE( 0x1500000, REGION_USER1, 0 ) /* Backgrounds (CPU2) */ |
| 699 | ROM_LOAD16_BYTE( "gp2-300b.053", 0x0000000, 0x100000, CRC(d7d12920) SHA1(4b6e01cc0ac5192758f4b3d26f102905b2b5e8ac) ) | |
| 700 | ROM_LOAD16_BYTE( "gp2-300a.052", 0x0000001, 0x100000, CRC(09ebedba) SHA1(3c06614633f0da03facb5199deac492b8ce07257) ) | |
| 681 | ROM_LOAD( "gp2-300a.052", 0x0000000, 0x100000, CRC(09ebedba) SHA1(3c06614633f0da03facb5199deac492b8ce07257) ) | |
| 682 | ROM_LOAD( "gp2-300b.053", 0x0100000, 0x100000, CRC(d7d12920) SHA1(4b6e01cc0ac5192758f4b3d26f102905b2b5e8ac) ) | |
| 701 | 683 | ROM_LOAD( "gp2-301.035", 0x0200000, 0x200000, CRC(e71e749d) SHA1(420c4c085e89d9641a84e34fa870df2bc02165b6) ) |
| 702 | 684 | ROM_LOAD( "gp2-302.036", 0x0400000, 0x200000, CRC(832ebbb0) SHA1(a753285d874fcab979e70d6a289cf9fcd48affc6) ) |
| 703 | 685 | ROM_LOAD( "gp2-303.037", 0x0600000, 0x200000, CRC(36c872d0) SHA1(e0aa3089dfa1765ba70ce60e8696b1ba87c95703) ) |
| r1649 | r1650 | |
| 883 | 865 | GAME( 1993, galpani2, 0, galpani2, galpani2, 0, ROT90, "Kaneko", "Gals Panic II (Asia)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION ) |
| 884 | 866 | GAME( 1993, galpan2g, galpani2, galpani2, galpani2, 0, ROT90, "Kaneko", "Gals Panic II (German)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION ) |
| 885 | 867 | GAME( 1993, galpan2t, galpani2, galpani2, galpani2, 0, ROT90, "Kaneko", "Gals Panic II (Taiwan)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION ) |
| 886 | GAME( 1993, galpan2j, galpani2, galpani2, galpani2, 0, ROT90, "Kaneko", "Gals Panic II (Japan)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION ) // | |
| 868 | GAME( 1993, galpan2j, galpani2, galpani2, galpani2, 0, ROT90, "Kaneko", "Gals Panic II (Japan)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION ) // it | |
| 887 | 869 | GAME( 1993, gp2quiz, 0, galpani2, galpani2, 0, ROT90, "Kaneko", "Gals Panic II - Quiz Version (Japan)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION ) // this one has 'quiz edition' on the title screen |
| 888 | 870 | GAME( 1994, gp2se, 0, galpani2, galpani2, 0, ROT90, "Kaneko", "Gals Panic II' - Special Edition (Japan)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION ) |
| r1649 | r1650 | |
|---|---|---|
| 212 | 212 | |
| 213 | 213 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 214 | 214 | AM_RANGE(0x0000, 0x7fff) AM_ROM |
| 215 | AM_RANGE(0x8000, 0xbfff) AM_WRITE(arabian_videoram_w) AM_BASE(&videoram) | |
| 216 | AM_RANGE(0xc000, 0xc000) AM_READ(input_port_0_r) | |
| 217 | AM_RANGE(0xc200, 0xc200) AM_READ(input_port_1_r) | |
| 215 | AM_RANGE(0x8000, 0xbfff) AM_WRITE(arabian_videoram_w) | |
| 216 | AM_RANGE(0xc000, 0xc000) AM_MIRROR(0x01ff) AM_READ(input_port_0_r) | |
| 217 | AM_RANGE(0xc200, 0xc200) AM_MIRROR(0x01ff) AM_READ(input_port_1_r) | |
| 218 | 218 | AM_RANGE(0xd000, 0xd7ef) AM_RAM AM_BASE(&custom_cpu_ram) |
| 219 | 219 | AM_RANGE(0xd7f0, 0xd7ff) AM_READWRITE(custom_cpu_r, MWA8_RAM) |
| 220 | AM_RANGE(0xe000, 0xe07f) AM_WRITE(arabian_blitter_w) AM_BASE(& | |
| 220 | AM_RANGE(0xe000, 0xe007) AM_MIRROR(0x0ff8) AM_WRITE(arabian_blitter_w) AM_BASE(&a | |
| 221 | 221 | ADDRESS_MAP_END |
| 222 | 222 | |
| 223 | 223 | |
| r1649 | r1650 | |
| 229 | 229 | *************************************/ |
| 230 | 230 | |
| 231 | 231 | static ADDRESS_MAP_START( main_io_map, ADDRESS_SPACE_IO, 8 ) |
| 232 | AM_RANGE(0xc800, 0xc800) AM_WRITE(AY8910_control_port_0_w) | |
| 233 | AM_RANGE(0xca00, 0xca00) AM_WRITE(AY8910_write_port_0_w) | |
| 232 | AM_RANGE(0xc800, 0xc800) AM_MIRROR(0x01ff) AM_WRITE(AY8910_control_port_0_w) | |
| 233 | AM_RANGE(0xca00, 0xca00) AM_MIRROR(0x01ff) AM_WRITE(AY8910_write_port_0_w) | |
| 234 | 234 | ADDRESS_MAP_END |
| 235 | 235 | |
| 236 | 236 | |
| r1649 | r1650 | |
| 363 | 363 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 364 | 364 | MDRV_SCREEN_SIZE(256, 256) |
| 365 | 365 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 11, 244) |
| 366 | MDRV_PALETTE_LENGTH(64) | |
| 367 | MDRV_COLORTABLE_LENGTH(256*32) | |
| 366 | MDRV_PALETTE_LENGTH(256*32) | |
| 368 | 367 | |
| 369 | 368 | MDRV_PALETTE_INIT(arabian) |
| 370 | 369 | MDRV_VIDEO_START(arabian) |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | ***************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "cpu/hd6309/hd6309.h" |
| 13 | 14 | #include "video/konamiic.h" |
| 14 | 15 | #include "sound/2203intf.h" |
| r1649 | r1650 | |
| 79 | 80 | AM_RANGE(0x0c00, 0x0c00) AM_WRITE(labyrunr_bankswitch_w) |
| 80 | 81 | AM_RANGE(0x0d00, 0x0d1f) AM_WRITE(K051733_w) /* 051733 (protection) */ |
| 81 | 82 | AM_RANGE(0x0e00, 0x0e00) AM_WRITE(watchdog_reset_w) |
| 82 | AM_RANGE(0x1000, 0x10ff) AM_WRITE( | |
| 83 | AM_RANGE(0x1000, 0x10ff) AM_WRITE(MWA8 | |
| 83 | 84 | AM_RANGE(0x1800, 0x1fff) AM_WRITE(MWA8_RAM) |
| 84 | 85 | AM_RANGE(0x2000, 0x2fff) AM_WRITE(MWA8_RAM) AM_BASE(&spriteram) /* Sprite RAM */ |
| 85 | 86 | AM_RANGE(0x3000, 0x37ff) AM_WRITE(labyrunr_vram1_w) AM_BASE(&labyrunr_videoram1) |
| r1649 | r1650 | |
| 251 | 252 | MDRV_SCREEN_SIZE(37*8, 32*8) |
| 252 | 253 | MDRV_SCREEN_VISIBLE_AREA(0*8, 35*8-1, 2*8, 30*8-1) |
| 253 | 254 | MDRV_GFXDECODE(labyrunr) |
| 254 | MDRV_PALETTE_LENGTH(128) | |
| 255 | MDRV_COLORTABLE_LENGTH(2*8*16*16) | |
| 255 | MDRV_PALETTE_LENGTH(2*8*16*16) | |
| 256 | 256 | |
| 257 | 257 | MDRV_PALETTE_INIT(labyrunr) |
| 258 | 258 | MDRV_VIDEO_START(labyrunr) |
| r1649 | r1650 | |
|---|---|---|
| 87 | 87 | |
| 88 | 88 | |
| 89 | 89 | |
| 90 | #include <math.h> | |
| 91 | 90 | #include "driver.h" |
| 91 | #include "deprecat.h" | |
| 92 | 92 | #include "cpu/z80/z80.h" |
| 93 | 93 | #include "sound/ay8910.h" |
| 94 | 94 | #include "video/resnet.h" |
| r1649 | r1650 | |
|---|---|---|
| 212 | 212 | */ |
| 213 | 213 | |
| 214 | 214 | #include "driver.h" |
| 215 | #include "deprecat.h" | |
| 215 | 216 | #include "cpu/powerpc/ppc.h" |
| 216 | 217 | #include "cpu/sharc/sharc.h" |
| 217 | 218 | #include "machine/konppc.h" |
| r1649 | r1650 | |
|---|---|---|
| 104 | 104 | |
| 105 | 105 | |
| 106 | 106 | #include "driver.h" |
| 107 | #include "deprecat.h" | |
| 107 | 108 | #include "cpu/z80/z80.h" |
| 108 | 109 | #include "fromance.h" |
| 109 | 110 | #include "sound/2608intf.h" |
| 110 | 111 | #include "sound/2610intf.h" |
| 111 | #include <math.h> | |
| 112 | 112 | |
| 113 | 113 | |
| 114 | 114 | static UINT8 pending_command; |
| r1649 | r1650 | |
|---|---|---|
| 120 | 120 | ***************************************************************************/ |
| 121 | 121 | |
| 122 | 122 | #include "driver.h" |
| 123 | #include "deprecat.h" | |
| 123 | 124 | #include "sound/pokey.h" |
| 124 | 125 | #include "ccastles.h" |
| 125 | 126 |
| r1649 | r1650 | |
|---|---|---|
| 24 | 24 | |
| 25 | 25 | |
| 26 | 26 | #include "driver.h" |
| 27 | #include "deprecat.h" | |
| 27 | 28 | #include "cpu/z80/z80.h" |
| 28 | 29 | #include "cpu/m68000/m68000.h" |
| 29 | 30 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 61 | 61 | ****************************************************************************/ |
| 62 | 62 | |
| 63 | 63 | #include "driver.h" |
| 64 | #include "deprecat.h" | |
| 64 | 65 | #include "cpu/tms34010/tms34010.h" |
| 65 | 66 | #include "cpu/m6502/m6502.h" |
| 66 | 67 | #include "sound/dac.h" |
| r1649 | r1650 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | |
| 38 | 38 | #include "driver.h" |
| 39 | #include "deprecat.h" | |
| 39 | 40 | #include "sound/msm5205.h" |
| 40 | 41 | #include "sound/3812intf.h" |
| 41 | 42 |
| r1649 | r1650 | |
|---|---|---|
| 64 | 64 | */ |
| 65 | 65 | |
| 66 | 66 | #include "driver.h" |
| 67 | #include "deprecat.h" | |
| 67 | 68 | #include "memconv.h" |
| 68 | 69 | #include "machine/8237dma.h" |
| 69 | 70 | #include "machine/pic8259.h" |
| r1649 | r1650 | |
|---|---|---|
| 106 | 106 | static UINT32 bsmt_data_offset; |
| 107 | 107 | |
| 108 | 108 | static UINT32 *speedup_data; |
| 109 | static UINT | |
| 109 | static UINT64 last_cycles; | |
| 110 | 110 | static UINT32 loop_count; |
| 111 | 111 | |
| 112 | 112 | static offs_t speedup_pc; |
| r1649 | r1650 | |
| 243 | 243 | /* see if the PC matches */ |
| 244 | 244 | if ((activecpu_get_previouspc() & 0x1fffffff) == speedup_pc) |
| 245 | 245 | { |
| 246 | UINT | |
| 246 | UINT64 curr_cycles = activecpu_gettotalcycles(); | |
| 247 | 247 | |
| 248 | 248 | /* if less than 50 cycles from the last time, count it */ |
| 249 | 249 | if (curr_cycles - last_cycles < 50) |
| r1649 | r1650 | |
|---|---|---|
| 669 | 669 | */ |
| 670 | 670 | |
| 671 | 671 | #include "driver.h" |
| 672 | #include "deprecat.h" | |
| 672 | 673 | #include "machine/ds2404.h" |
| 673 | 674 | #include "machine/eeprom.h" |
| 674 | 675 | #include "machine/intelfsh.h" |
| r1649 | r1650 | |
| 3019 | 3020 | |
| 3020 | 3021 | |
| 3021 | 3022 | /* SPI */ |
| 3022 | GAME( 1995, senkyu, 0, spi, spi_3button, senkyu, ROT0, "Seibu Kaihatsu", "Senkyu (Japan)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) | |
| 3023 | GAME( 1995, senkyu, 0, spi, spi_3button, senkyu, ROT0, "Seibu Kaihatsu", "Senkyu (Japan, set 1)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) | |
| 3023 | 3024 | GAME( 1995, senkyua, senkyu, spi, spi_3button, senkyua, ROT0, "Seibu Kaihatsu", "Senkyu (Japan, set 2)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) |
| 3024 | 3025 | GAME( 1995, batlball, senkyu, spi, spi_3button, batlball, ROT0, "Seibu Kaihatsu (Tuning License)", "Battle Balls (Germany)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) |
| 3025 | 3026 | GAME( 1995, batlbala, senkyu, spi, spi_3button, batlball, ROT0, "Seibu Kaihatsu (Metrotainment License)", "Battle Balls (Asia)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) |
| r1649 | r1650 | |
|---|---|---|
| 25 | 25 | ***************************************************************************/ |
| 26 | 26 | |
| 27 | 27 | #include "driver.h" |
| 28 | #include "deprecat.h" | |
| 28 | 29 | #include "cpu/tms34010/tms34010.h" |
| 29 | 30 | #include "cpu/tms34010/34010ops.h" |
| 30 | 31 | #include "cpu/tms32025/tms32025.h" |
| r1649 | r1650 | |
|---|---|---|
| 39 | 39 | */ |
| 40 | 40 | |
| 41 | 41 | #include "driver.h" |
| 42 | #include "deprecat.h" | |
| 42 | 43 | #include "sound/okim6295.h" |
| 43 | 44 | |
| 44 | 45 | static tilemap *bg_tilemap, *mlow_tilemap, *mhigh_tilemap, *tx_tilemap; |
| r1649 | r1650 | |
|---|---|---|
| 74 | 74 | ***************************************************************************/ |
| 75 | 75 | |
| 76 | 76 | #include "driver.h" |
| 77 | #include "deprecat.h" | |
| 77 | 78 | #include "cpu/z80/z80.h" |
| 78 | 79 | #include "sound/3812intf.h" |
| 79 | 80 | #include "sound/sp0256.h" |
| r1649 | r1650 | |
|---|---|---|
| 150 | 150 | ***************************************************************************/ |
| 151 | 151 | |
| 152 | 152 | #include "driver.h" |
| 153 | #include "deprecat.h" | |
| 153 | 154 | #include "machine/namcoio.h" |
| 154 | 155 | #include "sound/namco.h" |
| 155 | 156 | #include "sound/samples.h" |
| r1649 | r1650 | |
|---|---|---|
| 253 | 253 | MDRV_SCREEN_SIZE(256, 256) |
| 254 | 254 | MDRV_SCREEN_VISIBLE_AREA(0, 239, 0, 255) |
| 255 | 255 | MDRV_GFXDECODE(carpolo) |
| 256 | MDRV_PALETTE_LENGTH(16+1) /* extra color for score area */ | |
| 257 | MDRV_COLORTABLE_LENGTH(12*2+2*16+4*2) | |
| 256 | MDRV_PALETTE_LENGTH(12*2+2*16+4*2) | |
| 258 | 257 | |
| 259 | 258 | MDRV_PALETTE_INIT(carpolo) |
| 260 | 259 | MDRV_VIDEO_START(carpolo) |
| r1649 | r1650 | |
|---|---|---|
| 35 | 35 | */ |
| 36 | 36 | |
| 37 | 37 | #include "driver.h" |
| 38 | #include "deprecat.h" | |
| 38 | 39 | #include "machine/8255ppi.h" |
| 39 | 40 | #include "sound/ay8910.h" |
| 40 | 41 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | Up'n Down, Mister Viking, Flicky, SWAT, Water Match and Bull Fight are known |
| 9 | 9 | to run on IDENTICAL hardware (they were sold by Bally-Midway as ROM swaps). |
| 10 | 10 | |
| 11 | DIP locations verified from manual for: | |
| 12 | - wboy | |
| 13 | - chplft | |
| 14 | ||
| 11 | 15 | TODO: - background is misplaced in wbmlju |
| 12 | 16 | - sprites stick in Pitfall II |
| 13 | 17 | - sprite priorities are probably wrong |
| r1649 | r1650 | |
| 17 | 21 | ******************************************************************************/ |
| 18 | 22 | |
| 19 | 23 | #include "driver.h" |
| 24 | #include "deprecat.h" | |
| 20 | 25 | #include "video/system1.h" |
| 21 | 26 | #include "cpu/z80/z80.h" |
| 22 | 27 | #include "machine/segacrpt.h" |
| r1649 | r1650 | |
| 416 | 421 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 417 | 422 | |
| 418 | 423 | #define DSW1_PORT \ |
| 419 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) \ | |
| 424 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW A:1,2,3,4") \ | |
| 420 | 425 | PORT_DIPSETTING( 0x07, DEF_STR( 4C_1C ) ) \ |
| 421 | 426 | PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) ) \ |
| 422 | 427 | PORT_DIPSETTING( 0x09, DEF_STR( 2C_1C ) ) \ |
| 423 | PORT_DIPSETTING( 0x05, "2 Coins/1 Credit 5/3 6/4" ) \ | |
| 428 | PORT_DIPSETTING( 0x05, "2 Coins/1 Credit 4/2 5/3 6/4" ) \ | |
| 424 | 429 | PORT_DIPSETTING( 0x04, "2 Coins/1 Credit 4/3" ) \ |
| 425 | 430 | PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) ) \ |
| 431 | /* PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) Not allowed by mame coinage sorting, but valid */ \ | |
| 426 | 432 | PORT_DIPSETTING( 0x03, "1 Coin/1 Credit 5/6" ) \ |
| 427 | 433 | PORT_DIPSETTING( 0x02, "1 Coin/1 Credit 4/5" ) \ |
| 428 | 434 | PORT_DIPSETTING( 0x01, "1 Coin/1 Credit 2/3" ) \ |
| r1649 | r1650 | |
| 432 | 438 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C ) ) \ |
| 433 | 439 | PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ) ) \ |
| 434 | 440 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) ) \ |
| 435 | /* PORT_DIPSETTING( 0x00, "1/1" ) */ \ | |
| 436 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) \ | |
| 441 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW A:5,6,7,8") \ | |
| 437 | 442 | PORT_DIPSETTING( 0x70, DEF_STR( 4C_1C ) ) \ |
| 438 | 443 | PORT_DIPSETTING( 0x80, DEF_STR( 3C_1C ) ) \ |
| 439 | 444 | PORT_DIPSETTING( 0x90, DEF_STR( 2C_1C ) ) \ |
| 440 | PORT_DIPSETTING( 0x50, "2 Coins/1 Credit 5/3 6/4" ) \ | |
| 445 | PORT_DIPSETTING( 0x50, "2 Coins/1 Credit 4/2 5/3 6/4" ) \ | |
| 441 | 446 | PORT_DIPSETTING( 0x40, "2 Coins/1 Credit 4/3" ) \ |
| 442 | 447 | PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) \ |
| 448 | /* PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) Not allowed by mame coinage sorting, but valid */ \ | |
| 443 | 449 | PORT_DIPSETTING( 0x30, "1 Coin/1 Credit 5/6" ) \ |
| 444 | 450 | PORT_DIPSETTING( 0x20, "1 Coin/1 Credit 4/5" ) \ |
| 445 | 451 | PORT_DIPSETTING( 0x10, "1 Coin/1 Credit 2/3" ) \ |
| r1649 | r1650 | |
| 449 | 455 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ) ) \ |
| 450 | 456 | PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) ) \ |
| 451 | 457 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) ) |
| 452 | /* PORT_DIPSETTING( 0x00, "1/1" ) */ | |
| 453 | 458 | |
| 454 | 459 | /* If you don't like the description, feel free to change it */ |
| 455 | 460 | #define DSW0_BIT7 \ |
| r1649 | r1650 | |
| 1567 | 1572 | PORT_START /* IN0 */ |
| 1568 | 1573 | IN0_PORT |
| 1569 | 1574 | |
| 1575 | PORT_START /* DSW0 */ | |
| 1576 | DSW1_PORT | |
| 1577 | ||
| 1570 | 1578 | PORT_START /* DSW1 */ |
| 1571 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) | |
| 1579 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW B:1") | |
| 1572 | 1580 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1573 | 1581 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 1574 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 1582 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW B:2") | |
| 1575 | 1583 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1576 | 1584 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1577 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) | |
| 1585 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW B:3,4") | |
| 1578 | 1586 | PORT_DIPSETTING( 0x08, "2" ) |
| 1579 | 1587 | PORT_DIPSETTING( 0x0c, "3" ) |
| 1580 | 1588 | PORT_DIPSETTING( 0x04, "4" ) |
| 1581 | PORT_DIPSETTING( 0x00, DEF_STR( Infinite ) ) | |
| 1582 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) | |
| 1583 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 1589 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 1590 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW B:5") | |
| 1591 | PORT_DIPSETTING( 0x10, "20k 70k 120k 170k" ) | |
| 1592 | PORT_DIPSETTING( 0x00, "50k 100k 150k 200k" ) | |
| 1593 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW B:6") | |
| 1594 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) | |
| 1595 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) | |
| 1596 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW B:7") | |
| 1597 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1584 | 1598 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1585 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Bonus_Life ) ) | |
| 1586 | PORT_DIPSETTING( 0x00, "20000 70000" ) | |
| 1587 | PORT_DIPSETTING( 0x20, "50000 100000" ) | |
| 1588 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Difficulty ) ) | |
| 1589 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) | |
| 1590 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) | |
| 1591 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) | |
| 1599 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW B:8") | |
| 1592 | 1600 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1593 | 1601 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1594 | ||
| 1595 | PORT_START /* DSW0 */ | |
| 1596 | DSW1_PORT | |
| 1597 | 1602 | INPUT_PORTS_END |
| 1598 | 1603 | |
| 1599 | 1604 | static INPUT_PORTS_START( 4dwarrio ) |
| r1649 | r1650 | |
| 1830 | 1835 | DSW1_PORT |
| 1831 | 1836 | |
| 1832 | 1837 | PORT_START /* DSW0 */ |
| 1833 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) | |
| 1838 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW B:1") | |
| 1834 | 1839 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1835 | 1840 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 1836 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 1841 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW B:2") | |
| 1837 | 1842 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1838 | 1843 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1839 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) | |
| 1844 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW B:3,4") | |
| 1840 | 1845 | PORT_DIPSETTING( 0x0c, "3" ) |
| 1841 | 1846 | PORT_DIPSETTING( 0x08, "4" ) |
| 1842 | 1847 | PORT_DIPSETTING( 0x04, "5" ) |
| 1843 | PORT_DIPSETTING( 0x00, DEF_STR( Infinite ) ) | |
| 1844 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Bonus_Life ) ) | |
| 1848 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 1849 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW B:5") | |
| 1845 | 1850 | PORT_DIPSETTING( 0x10, "30k 100k 170k 240k" ) |
| 1846 | 1851 | PORT_DIPSETTING( 0x00, "30k 120k 210k 300k" ) |
| 1847 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Allow_Continue ) ) | |
| 1852 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW B:6") | |
| 1848 | 1853 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 1849 | 1854 | PORT_DIPSETTING( 0x20, DEF_STR( Yes ) ) |
| 1850 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) ) | |
| 1855 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW B:7") | |
| 1851 | 1856 | PORT_DIPSETTING( 0x40, DEF_STR( Easy ) ) |
| 1852 | 1857 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) |
| 1853 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Un | |
| 1858 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused | |
| 1854 | 1859 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1855 | 1860 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1856 | 1861 | INPUT_PORTS_END |
| 1857 | 1862 | |
| 1863 | static INPUT_PORTS_START( wboy3 ) | |
| 1864 | PORT_START /* IN1 */ | |
| 1865 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1866 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1867 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1868 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1869 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* down - unused */ | |
| 1870 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* up - unused */ | |
| 1871 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 1872 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 1873 | ||
| 1874 | PORT_START /* IN2 */ | |
| 1875 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1876 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1877 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1878 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1879 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* down - unused */ | |
| 1880 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* up - unused */ | |
| 1881 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 1882 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 1883 | ||
| 1884 | PORT_START /* IN0 */ | |
| 1885 | IN0_PORT | |
| 1886 | ||
| 1887 | PORT_START /* DSW1 */ | |
| 1888 | DSW1_PORT | |
| 1889 | ||
| 1890 | PORT_START /* DSW0 */ | |
| 1891 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW B:1") | |
| 1892 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1893 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) | |
| 1894 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW B:2") | |
| 1895 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 1896 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1897 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW B:3,4") | |
| 1898 | PORT_DIPSETTING( 0x0c, "1" ) | |
| 1899 | PORT_DIPSETTING( 0x08, "2" ) | |
| 1900 | PORT_DIPSETTING( 0x04, "3" ) | |
| 1901 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 1902 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW B:5") | |
| 1903 | PORT_DIPSETTING( 0x10, "30k 100k 170k 240k" ) | |
| 1904 | PORT_DIPSETTING( 0x00, "30k 120k 210k 300k" ) | |
| 1905 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW B:6") | |
| 1906 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 1907 | PORT_DIPSETTING( 0x20, DEF_STR( Yes ) ) | |
| 1908 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW B:7") | |
| 1909 | PORT_DIPSETTING( 0x40, DEF_STR( Easy ) ) | |
| 1910 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) | |
| 1911 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW B:8") | |
| 1912 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1913 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1914 | INPUT_PORTS_END | |
| 1915 | ||
| 1858 | 1916 | static INPUT_PORTS_START( wboysys2 ) |
| 1859 | 1917 | PORT_START /* IN1 */ |
| 1860 | 1918 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1649 | r1650 | |
| 1880 | 1938 | IN0_PORT |
| 1881 | 1939 | |
| 1882 | 1940 | PORT_START /* DSW0 */ |
| 1883 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) | |
| 1941 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW B:1") | |
| 1884 | 1942 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1885 | 1943 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 1886 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 1944 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW B:2") | |
| 1887 | 1945 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1888 | 1946 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1889 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) | |
| 1947 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW B:3,4") | |
| 1890 | 1948 | PORT_DIPSETTING( 0x0c, "3" ) |
| 1891 | 1949 | PORT_DIPSETTING( 0x08, "4" ) |
| 1892 | 1950 | PORT_DIPSETTING( 0x04, "5" ) |
| 1893 | PORT_DIPSETTING( 0x00, DEF_STR( Infinite ) ) | |
| 1894 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Bonus_Life ) ) | |
| 1951 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 1952 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW B:5") | |
| 1895 | 1953 | PORT_DIPSETTING( 0x10, "30k 100k 170k 240k" ) |
| 1896 | 1954 | PORT_DIPSETTING( 0x00, "30k 120k 210k 300k" ) |
| 1897 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Allow_Continue ) ) | |
| 1955 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW B:6") | |
| 1898 | 1956 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 1899 | 1957 | PORT_DIPSETTING( 0x20, DEF_STR( Yes ) ) |
| 1900 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) ) | |
| 1958 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW B:7") | |
| 1901 | 1959 | PORT_DIPSETTING( 0x40, DEF_STR( Easy ) ) |
| 1902 | 1960 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) |
| 1903 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Un | |
| 1961 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused | |
| 1904 | 1962 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1905 | 1963 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1906 | 1964 | |
| r1649 | r1650 | |
| 1938 | 1996 | DSW1_PORT |
| 1939 | 1997 | |
| 1940 | 1998 | PORT_START /* DSW0 */ |
| 1941 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) | |
| 1999 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW B:1") | |
| 1942 | 2000 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1943 | 2001 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 1944 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 2002 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW B:2") | |
| 1945 | 2003 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1946 | 2004 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1947 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) | |
| 2005 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW B:3,4") | |
| 1948 | 2006 | PORT_DIPSETTING( 0x0c, "3" ) |
| 1949 | 2007 | PORT_DIPSETTING( 0x08, "4" ) |
| 1950 | 2008 | PORT_DIPSETTING( 0x04, "5" ) |
| 1951 | PORT_DIPSETTING( 0x00, DEF_STR( Infinite ) ) | |
| 1952 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Bonus_Life ) ) | |
| 2009 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 2010 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW B:5") | |
| 1953 | 2011 | PORT_DIPSETTING( 0x10, "30k 100k 170k 240k" ) |
| 1954 | 2012 | PORT_DIPSETTING( 0x00, "30k 120k 210k 300k" ) |
| 1955 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Allow_Continue ) ) | |
| 2013 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW B:6") | |
| 1956 | 2014 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 1957 | 2015 | PORT_DIPSETTING( 0x20, DEF_STR( Yes ) ) |
| 1958 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) ) | |
| 2016 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW B:7") | |
| 1959 | 2017 | PORT_DIPSETTING( 0x40, DEF_STR( Easy ) ) |
| 1960 | 2018 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) |
| 1961 | PORT_DIPNAME( 0x80, 0x00, "Energy Consumption" ) | |
| 2019 | PORT_DIPNAME( 0x80, 0x00, "Energy Consumption" ) PORT_DIPLOCATION("SW B:8") | |
| 1962 | 2020 | PORT_DIPSETTING( 0x00, "Slow" ) |
| 1963 | 2021 | PORT_DIPSETTING( 0x80, "Fast" ) |
| 1964 | 2022 | INPUT_PORTS_END |
| r1649 | r1650 | |
| 4870 | 4928 | GAME( 1986, wboyo, wboy, system1, wboy, hvymetal, ROT0, "Sega (Escape license)", "Wonder Boy (set 1, 315-5135)", GAME_SUPPORTS_SAVE ) |
| 4871 | 4929 | GAME( 1986, wboy2, wboy, system1, wboy, wboy2, ROT0, "Sega (Escape license)", "Wonder Boy (set 2, 315-5178)", GAME_SUPPORTS_SAVE ) |
| 4872 | 4930 | GAME( 1986, wboy2u, wboy, system1, wboy, 0, ROT0, "Sega (Escape license)", "Wonder Boy (set 2, not encrypted)", GAME_SUPPORTS_SAVE ) |
| 4873 | GAME( 1986, wboy3, wboy, system1, wboy, | |
| 4931 | GAME( 1986, wboy3, wboy, system1, wboy3, | |
| 4874 | 4932 | GAME( 1986, wboy4, wboy, system1, wboy, 4dwarrio, ROT0, "Sega (Escape license)", "Wonder Boy (set 4, 315-5162)", GAME_SUPPORTS_SAVE ) |
| 4875 | 4933 | GAME( 1986, wboyu, wboy, system1, wboyu, 0, ROT0, "Sega (Escape license)", "Wonder Boy (not encrypted)", GAME_SUPPORTS_SAVE ) |
| 4876 | 4934 | GAME( 1986, wboysys2, wboy, wbml, wboysys2, wboy, ROT0, "Sega (Escape license)", "Wonder Boy (system 2)", GAME_SUPPORTS_SAVE ) |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | |
| 13 | 14 | static int crtindex; |
| 14 | 15 | static int crtdata[256]; |
| r1649 | r1650 | |
|---|---|---|
| 25 | 25 | ***************************************************************************/ |
| 26 | 26 | |
| 27 | 27 | #include "driver.h" |
| 28 | #include "deprecat.h" | |
| 28 | 29 | #include "machine/nmk112.h" |
| 29 | 30 | #include "sound/okim6295.h" |
| 30 | 31 | #include "sound/2203intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 99 | 99 | } |
| 100 | 100 | } |
| 101 | 101 | } |
| 102 | copybitmap(bitmap,tmpbitmap,0,0,0,0, | |
| 102 | copybitmap(bitmap,tmpbitmap,0,0,0,0, | |
| 103 | 103 | dirty=0; |
| 104 | 104 | return 0; |
| 105 | 105 | } |
| r1649 | r1650 | |
|---|---|---|
| 33 | 33 | ******************************************************************************/ |
| 34 | 34 | |
| 35 | 35 | #include "driver.h" |
| 36 | #include "deprecat.h" | |
| 36 | 37 | #include "machine/m68kfmly.h" |
| 37 | 38 | #include "machine/z80ctc.h" |
| 38 | 39 | #include "nb1413m3.h" |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | ***************************************************************************/ |
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | #include "deprecat.h" | |
| 13 | 14 | #include "sound/ay8910.h" |
| 14 | 15 | #include "sound/sn76496.h" |
| 15 | 16 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | * Return of the Jedi |
| 9 | 9 | |
| 10 | 10 | Known bugs: |
| 11 | * | |
| 11 | * smoothing PROMs were dumped at | |
| 12 | 12 | |
| 13 | 13 | **************************************************************************** |
| 14 | 14 | |
| r1649 | r1650 | |
| 109 | 109 | ***************************************************************************/ |
| 110 | 110 | |
| 111 | 111 | #include "driver.h" |
| 112 | #include "deprecat.h" | |
| 112 | 113 | #include "cpu/m6502/m6502.h" |
| 113 | 114 | #include "sound/5220intf.h" |
| 114 | 115 | #include "sound/pokey.h" |
| r1649 | r1650 | |
| 307 | 308 | |
| 308 | 309 | static WRITE8_HANDLER( jedi_coin_counter_w ) |
| 309 | 310 | { |
| 310 | coin_counter_w(offset, data | |
| 311 | coin_counter_w(offset, data | |
| 311 | 312 | } |
| 312 | 313 | |
| 313 | 314 | |
| r1649 | r1650 | |
| 381 | 382 | AM_RANGE(0x1e00, 0x1e00) AM_WRITE(main_irq_ack_w) |
| 382 | 383 | AM_RANGE(0x1e80, 0x1e81) AM_WRITE(jedi_coin_counter_w) |
| 383 | 384 | AM_RANGE(0x1e82, 0x1e83) AM_WRITE(MWA8_NOP) /* LED control; not used */ |
| 384 | AM_RANGE(0x1e84, 0x1e84) AM_WRITE(jedi_ | |
| 385 | AM_RANGE(0x1e84, 0x1e84) AM_WRITE(MWA8_RAM) AM_BASE(&jedi_foreground_bank | |
| 385 | 386 | AM_RANGE(0x1e86, 0x1e86) AM_WRITE(sound_reset_w) |
| 386 | 387 | AM_RANGE(0x1e87, 0x1e87) AM_WRITE(jedi_video_off_w) |
| 387 | 388 | AM_RANGE(0x1f00, 0x1f00) AM_WRITE(sound_latch_w) |
| 388 | 389 | AM_RANGE(0x1f80, 0x1f80) AM_WRITE(rom_banksel_w) |
| 389 | AM_RANGE(0x2000, 0x27ff) AM_RAM AM_BASE(&jedi_backgroundram) AM_SIZE(&jedi_backgroundram_size) | |
| 390 | AM_RANGE(0x2800, 0x2fff) AM_READWRITE(MRA8_RAM, jedi_paletteram_w) AM_BASE(&paletteram) | |
| 391 | AM_RANGE(0x3000, 0x37bf) AM_RAM AM_BASE(&videoram) AM_SIZE(&videoram_size) | |
| 392 | AM_RANGE(0x37c0, 0x3bff) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size) | |
| 390 | AM_RANGE(0x2000, 0x27ff) AM_RAM AM_BASE(&jedi_backgroundram) | |
| 391 | AM_RANGE(0x2800, 0x2fff) AM_RAM AM_BASE(&jedi_paletteram) | |
| 392 | AM_RANGE(0x3000, 0x37bf) AM_RAM AM_BASE(&jedi_foregroundram) | |
| 393 | AM_RANGE(0x37c0, 0x3bff) AM_RAM AM_BASE(&jedi_spriteram) | |
| 393 | 394 | AM_RANGE(0x3c00, 0x3c01) AM_WRITE(jedi_vscroll_w) |
| 394 | 395 | AM_RANGE(0x3d00, 0x3d01) AM_WRITE(jedi_hscroll_w) |
| 395 | 396 | AM_RANGE(0x3e00, 0x3fff) AM_WRITE(jedi_PIXIRAM_w) |
| r1649 | r1650 | |
| 458 | 459 | |
| 459 | 460 | /************************************* |
| 460 | 461 | * |
| 461 | * Graphics layouts | |
| 462 | * | |
| 463 | *************************************/ | |
| 464 | ||
| 465 | static const gfx_layout charlayout = | |
| 466 | { | |
| 467 | 8,8, | |
| 468 | RGN_FRAC(1,1), | |
| 469 | 2, | |
| 470 | { 0, 1 }, | |
| 471 | { 0, 2, 4, 6, 8, 10, 12, 14 }, | |
| 472 | { 0*16, 1*16, 2*16, 3*16, 4*16, 5*16, 6*16, 7*16 }, | |
| 473 | 16*8 | |
| 474 | }; | |
| 475 | ||
| 476 | ||
| 477 | static const gfx_layout pflayout = | |
| 478 | { | |
| 479 | 8,8, | |
| 480 | RGN_FRAC(1,2), | |
| 481 | 4, | |
| 482 | { 0, 4, RGN_FRAC(1,2), RGN_FRAC(1,2)+4 }, | |
| 483 | { 0, 1, 2, 3, 8+0, 8+1, 8+2, 8+3 }, | |
| 484 | { 0*16, 1*16, 2*16, 3*16, 4*16, 5*16, 6*16, 7*16 }, | |
| 485 | 16*8 | |
| 486 | }; | |
| 487 | ||
| 488 | ||
| 489 | static const gfx_layout spritelayout = | |
| 490 | { | |
| 491 | 8,16, | |
| 492 | RGN_FRAC(1,2), | |
| 493 | 4, | |
| 494 | { 0, 4, RGN_FRAC(1,2), RGN_FRAC(1,2)+4 }, | |
| 495 | { 0, 1, 2, 3, 8+0, 8+1, 8+2, 8+3}, | |
| 496 | { 0*16, 1*16, 2*16, 3*16, 4*16, 5*16, 6*16, 7*16, | |
| 497 | 8*16, 9*16, 10*16, 11*16, 12*16, 13*16, 14*16, 15*16 }, | |
| 498 | 32*8 | |
| 499 | }; | |
| 500 | ||
| 501 | ||
| 502 | static GFXDECODE_START( jedi ) | |
| 503 | GFXDECODE_ENTRY( REGION_GFX1, 0, charlayout, 0, 1 ) | |
| 504 | GFXDECODE_ENTRY( REGION_GFX2, 0, pflayout, 0, 1 ) | |
| 505 | GFXDECODE_ENTRY( REGION_GFX3, 0, spritelayout, 0, 1 ) | |
| 506 | GFXDECODE_END | |
| 507 | ||
| 508 | ||
| 509 | ||
| 510 | /************************************* | |
| 511 | * | |
| 512 | 462 | * Machine driver |
| 513 | 463 | * |
| 514 | 464 | *************************************/ |
| r1649 | r1650 | |
| 531 | 481 | |
| 532 | 482 | /* video hardware */ |
| 533 | 483 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) |
| 534 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 535 | MDRV_SCREEN_SIZE(37*8, 262) /* verify vert size */ | |
| 484 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 485 | MDRV_SCREEN_SIZE(64*8, 262) /* verify vert size */ | |
| 536 | 486 | MDRV_SCREEN_VISIBLE_AREA(0*8, 37*8-1, 0*8, 30*8-1) |
| 537 | MDRV_GFXDECODE(jedi) | |
| 538 | MDRV_PALETTE_LENGTH(1024+1) | |
| 539 | 487 | |
| 540 | 488 | MDRV_VIDEO_START(jedi) |
| 541 | 489 | MDRV_VIDEO_UPDATE(jedi) |
| r1649 | r1650 | |
| 582 | 530 | ROM_LOAD( "136030-133.01c", 0x8000, 0x4000, CRC(6c601c69) SHA1(618b77800bbbb4db34a53ca974a71bdaf89b5930) ) |
| 583 | 531 | ROM_LOAD( "136030-134.01a", 0xC000, 0x4000, CRC(5e36c564) SHA1(4b0afceb9a1d912f1d5c1f26928d244d5b14ea4a) ) |
| 584 | 532 | |
| 585 | ROM_REGION( 0x02000, REGION_GFX1, | |
| 533 | ROM_REGION( 0x02000, REGION_GFX1,0 | |
| 586 | 534 | ROM_LOAD( "136030-215.11t", 0x00000, 0x2000, CRC(3e49491f) SHA1(ade5e846069c2fa6edf667469d13ce5a6a45c06d) ) /* Alphanumeric */ |
| 587 | 535 | |
| 588 | ROM_REGION( 0x10000, REGION_GFX2, | |
| 536 | ROM_REGION( 0x10000, REGION_GFX2,0 | |
| 589 | 537 | ROM_LOAD( "136030-126.06r", 0x00000, 0x8000, CRC(9c55ece8) SHA1(b8faa23314bb0d199ef46199bfabd9cb17510dd3) ) /* Playfield */ |
| 590 | 538 | ROM_LOAD( "136030-127.06n", 0x08000, 0x8000, CRC(4b09dcc5) SHA1(d46b5f4fb69c4b8d823dd9c4d92f8713badfa44a) ) |
| 591 | 539 | |
| 592 | ROM_REGION( 0x20000, REGION_GFX3, | |
| 540 | ROM_REGION( 0x20000, REGION_GFX3, 0 | |
| 593 | 541 | ROM_LOAD( "136030-130.01h", 0x00000, 0x8000, CRC(2646a793) SHA1(dcb5fd50eafbb27565bce099a884be83a9d82285) ) /* Sprites */ |
| 594 | 542 | ROM_LOAD( "136030-131.01f", 0x08000, 0x8000, CRC(60107350) SHA1(ded03a46996d3f2349df7f59fd435a7ad6ed465e) ) |
| 595 | 543 | ROM_LOAD( "136030-128.01m", 0x10000, 0x8000, CRC(24663184) SHA1(5eba142ed926671ee131430944e59f21a55a5c57) ) |
| 596 | 544 | ROM_LOAD( "136030-129.01k", 0x18000, 0x8000, CRC(ac86b98c) SHA1(9f86c8801a7293fa46e9432f1651dd85bf00f4b9) ) |
| 597 | 545 | |
| 598 | ROM_REGION( 0x0800, REGION_PROMS, 0 ) /* background smoothing */ | |
| 599 | ROM_LOAD( "136030-117.bin", 0x0000, 0x0400, CRC(9831bd55) SHA1(12945ef2d1582914125b9ee591567034d71d6573) ) | |
| 600 | ROM_LOAD( "136030-118.bin", 0x0400, 0x0400, CRC(261fbfe7) SHA1(efc65a74a3718563a07b718e34d8a7aa23339a69) ) | |
| 546 | ROM_REGION( 0x1000, REGION_PROMS, 0 ) /* background smoothing */ | |
| 547 | ROM_LOAD( "136030-117.bin", 0x0000, 0x0800, BAD_DUMP CRC(9831bd55) SHA1(12945ef2d1582914125b9ee591567034d71d6573) ) | |
| 548 | ROM_LOAD( "136030-118.bin", 0x0800, 0x0800, BAD_DUMP CRC(261fbfe7) SHA1(efc65a74a3718563a07b718e34d8a7aa23339a69) ) | |
| 601 | 549 | ROM_END |
| 602 | 550 | |
| 603 | 551 | |
| r1649 | r1650 | |
| 608 | 556 | * |
| 609 | 557 | *************************************/ |
| 610 | 558 | |
| 611 | GAME( 1984, jedi, 0, jedi, jedi, 0, ROT0, "Atari", "Return of the Jedi", GAME_SUPPORTS_SAVE ) | |
| 559 | GAME( 1984, jedi, 0, jedi, jedi, 0, ROT0, "Atari", "Return of the Jedi", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) |
| r1649 | r1650 | |
|---|---|---|
| 137 | 137 | ***************************************************************************/ |
| 138 | 138 | |
| 139 | 139 | #include "driver.h" |
| 140 | #include "deprecat.h" | |
| 140 | 141 | #include "cpu/m6809/m6809.h" |
| 141 | 142 | |
| 142 | 143 | #include "video/bfm_adr2.h" |
| r1649 | r1650 | |
| 145 | 146 | #include "sound/upd7759.h" |
| 146 | 147 | |
| 147 | 148 | /* fruit machines only */ |
| 148 | //#include "video/bfm_dm01.h" | |
| 149 | //#include "video/awpvid.h" | |
| 150 | 149 | #include "machine/steppers.h" // stepper motor |
| 151 | 150 | |
| 152 | 151 | #include "machine/bfm_bd1.h" // vfd |
| r1649 | r1650 | |
| 173 | 172 | #define UART_LOG(x) do { if (VERBOSE) logerror x; } while (0) |
| 174 | 173 | #define LOG(x) do { if (VERBOSE) logerror x; } while (0) |
| 175 | 174 | |
| 175 | #ifndef AWP_VIDEO //Defined for fruit machines with mechanical reels | |
| 176 | #define draw_reel(x) | |
| 177 | #else | |
| 178 | #define draw_reel(x) awp_draw_reel x | |
| 179 | #endif | |
| 180 | ||
| 176 | 181 | #define MASTER_CLOCK (XTAL_8MHz) |
| 177 | 182 | |
| 178 | 183 | // local prototypes /////////////////////////////////////////////////////// |
| r1649 | r1650 | |
| 524 | 529 | |
| 525 | 530 | /////////////////////////////////////////////////////////////////////////// |
| 526 | 531 | |
| 527 | #ifdef UNUSED_FUNCTION | |
| 528 | static WRITE8_HANDLER( reel12_w ) | |
| 529 | { | |
| 530 | reel12_latch = data; | |
| 531 | ||
| 532 | if ( Stepper_update(0, data ) ) reel_changed |= 0x01; | |
| 533 | if ( Stepper_update(1, data>>4) ) reel_changed |= 0x02; | |
| 534 | ||
| 535 | if ( Stepper_optic_state(0) ) optic_pattern |= 0x01; | |
| 536 | else optic_pattern &= ~0x01; | |
| 537 | if ( Stepper_optic_state(1) ) optic_pattern |= 0x02; | |
| 538 | else optic_pattern &= ~0x02; | |
| 539 | } | |
| 540 | #endif | |
| 541 | ||
| 542 | /////////////////////////////////////////////////////////////////////////// | |
| 543 | ||
| 544 | 532 | static WRITE8_HANDLER( reel12_vid_w ) // in a video cabinet this is used to drive a hopper |
| 545 | 533 | { |
| 546 | 534 | reel12_latch = data; |
| r1649 | r1650 | |
| 587 | 575 | else optic_pattern &= ~0x04; |
| 588 | 576 | if ( Stepper_optic_state(3) ) optic_pattern |= 0x08; |
| 589 | 577 | else optic_pattern &= ~0x08; |
| 578 | ||
| 579 | draw_reel((2)); | |
| 580 | draw_reel((3)); | |
| 590 | 581 | } |
| 591 | 582 | |
| 592 | 583 | /////////////////////////////////////////////////////////////////////////// |
| r1649 | r1650 | |
| 602 | 593 | else optic_pattern &= ~0x10; |
| 603 | 594 | if ( Stepper_optic_state(5) ) optic_pattern |= 0x20; |
| 604 | 595 | else optic_pattern &= ~0x20; |
| 596 | ||
| 597 | draw_reel((4)); | |
| 598 | draw_reel((5)); | |
| 605 | 599 | } |
| 606 | 600 | |
| 607 | 601 | /////////////////////////////////////////////////////////////////////////// |
| r1649 | r1650 | |
| 610 | 604 | |
| 611 | 605 | static WRITE8_HANDLER( mmtr_w ) |
| 612 | 606 | { |
| 607 | int i; | |
| 613 | 608 | int changed = mmtr_latch ^ data; |
| 614 | 609 | long cycles = ATTOTIME_TO_CYCLES(0, timer_get_time() ); |
| 615 | 610 | |
| 616 | 611 | mmtr_latch = data; |
| 617 | 612 | |
| 618 | if ( changed & 0x01 ) | |
| 619 | { | |
| 620 | if ( Mechmtr_update(0, cycles, data & 0x01 ) ) | |
| 621 | { | |
| 622 | sc2gui_update_mmtr |= 0x01; | |
| 623 | } | |
| 624 | } | |
| 625 | ||
| 626 | if ( changed & 0x02 ) | |
| 627 | { | |
| 628 | if ( Mechmtr_update(1, cycles, data & 0x02 ) ) | |
| 629 | { | |
| 630 | sc2gui_update_mmtr |= 0x02; | |
| 631 | } | |
| 632 | } | |
| 633 | ||
| 634 | if ( changed & 0x04 ) | |
| 635 | { | |
| 636 | if ( Mechmtr_update(2, cycles, data & 0x04 ) ) | |
| 637 | { | |
| 638 | sc2gui_update_mmtr |= 0x04; | |
| 639 | } | |
| 640 | } | |
| 641 | ||
| 642 | if ( changed & 0x08 ) | |
| 643 | { | |
| 644 | if ( Mechmtr_update(3, cycles, data & 0x08 ) ) | |
| 645 | { | |
| 646 | sc2gui_update_mmtr |= 0x08; | |
| 647 | } | |
| 648 | } | |
| 649 | ||
| 650 | ||
| 651 | if ( changed & 0x10 ) | |
| 652 | { | |
| 653 | if ( Mechmtr_update(4, cycles, data & 0x10 ) ) | |
| 654 | { | |
| 655 | sc2gui_update_mmtr |= 0x10; | |
| 656 | } | |
| 657 | } | |
| 658 | ||
| 659 | if ( changed & 0x20 ) | |
| 660 | { | |
| 661 | if ( Mechmtr_update(5, cycles, data & 0x20 ) ) | |
| 662 | { | |
| 663 | sc2gui_update_mmtr |= 0x20; | |
| 664 | } | |
| 665 | } | |
| 666 | ||
| 667 | if ( changed & 0x40 ) | |
| 668 | { | |
| 669 | if ( Mechmtr_update(6, cycles, data & 0x40 ) ) | |
| 670 | { | |
| 671 | sc2gui_update_mmtr |= 0x40; | |
| 672 | } | |
| 673 | } | |
| 674 | ||
| 675 | if ( changed & 0x80 ) | |
| 676 | { | |
| 677 | if ( Mechmtr_update(7, cycles, data & 0x80 ) ) | |
| 678 | { | |
| 679 | sc2gui_update_mmtr |= 0x80; | |
| 680 | } | |
| 681 | } | |
| 682 | ||
| 613 | for (i = 0; i<8; i++) | |
| 614 | { | |
| 615 | if ( changed & (1 << i) ) | |
| 616 | { | |
| 617 | if ( Mechmtr_update(i, cycles, data & (1 << i) ) ) | |
| 618 | { | |
| 619 | sc2gui_update_mmtr |= (1 << i); | |
| 620 | } | |
| 621 | } | |
| 622 | } | |
| 683 | 623 | if ( data & 0x1F ) cpunum_set_input_line(Machine, 0, M6809_FIRQ_LINE, ASSERT_LINE ); |
| 684 | 624 | } |
| 685 | 625 | |
| r1649 | r1650 | |
| 952 | 892 | |
| 953 | 893 | /////////////////////////////////////////////////////////////////////////// |
| 954 | 894 | |
| 955 | #ifdef UNUSED_FUNCTION | |
| 956 | static READ8_HANDLER( direct_input_r ) | |
| 957 | { | |
| 958 | return 0; | |
| 959 | } | |
| 960 | #endif | |
| 961 | ||
| 962 | /////////////////////////////////////////////////////////////////////////// | |
| 963 | ||
| 964 | 895 | static READ8_HANDLER( coin_input_r ) |
| 965 | 896 | { |
| 966 | 897 | return input_port_0_r(0); |
| r1649 | r1650 | |
| 3065 | 2996 | MDRV_VIDEO_UPDATE(addersc2) |
| 3066 | 2997 | |
| 3067 | 2998 | MDRV_PALETTE_LENGTH(16) |
| 3068 | MDRV_COLORTABLE_LENGTH(16) | |
| 3069 | 2999 | MDRV_PALETTE_INIT(adder2) |
| 3070 | 3000 | MDRV_GFXDECODE(adder2) |
| 3071 | 3001 |
| r1649 | r1650 | |
|---|---|---|
| 174 | 174 | */ |
| 175 | 175 | |
| 176 | 176 | #include "driver.h" |
| 177 | #include "deprecat.h" | |
| 177 | 178 | #include "sound/ymz280b.h" |
| 178 | 179 | |
| 179 | 180 | #define BIOS_SKIP 1 // Skip Bios as it takes too long and doesn't complete atm. |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | DX-101 Sprites |
| 12 | 12 | DX-102 x3 |
| 13 | 13 | |
| 14 | OSC: 50.0000MHz | |
| 15 | 32.5304MHz | |
| 14 | OSC: 50.00000MHz | |
| 15 | 32.53047MHz | |
| 16 | 16 | |
| 17 | 17 | * The Toshiba TMP68301 is a 68HC000 + serial I/O, parallel I/O, |
| 18 | 18 | 3 timers, address decoder, wait generator, interrupt controller, |
| r1649 | r1650 | |
| 108 | 108 | Notes: |
| 109 | 109 | *: unknown QFP208 (has large heatsink on it). Should be similar to other known |
| 110 | 110 | graphics chips used on Seta hardware of this era. |
| 111 | 68301 clock: 16.000MHz | |
| 111 | 68301 clock: 16.000MHz (?? From what OSC + divider??) | |
| 112 | 112 | VSync: 60Hz |
| 113 | 113 | |
| 114 | 114 | ***************************************************************************/ |
| r1649 | r1650 | |
| 159 | 159 | Penguin Brothers (Japan) |
| 160 | 160 | |
| 161 | 161 | (c)2000 Subsino |
| 162 | Board: P0-142A | |
| 163 | CPU: TMP68301 (68000 core) | |
| 164 | 162 | |
| 165 | OSC: 50.0000MHz | |
| 166 | 32.5304MHz | |
| 167 | 28.0000MHz | |
| 163 | CPU: Toshiba TMP68301AF-16 (100 Pin PQFP) | |
| 164 | Video: NEC DX-101 (240 Pin PQFP) | |
| 165 | NEC DX-102 (52 Pin PQFP x3) | |
| 166 | Sound: X1-010 (Mitsubishi M60016 Gate Array, 80 Pin PQFP) | |
| 167 | OSC: 50MHz, 32.53047MHz & 28MHz | |
| 168 | Other: 8 Position Dipswitch x 2 | |
| 169 | Lattice ispLSI2032 | |
| 168 | 170 | |
| 169 | Chips.: DX-101 | |
| 170 | DX-102 x3 | |
| 171 | Sound: X1-010 | |
| 171 | PCB Number: P0-142A | |
| 172 | +-----------------------------------------------------------+ | |
| 173 | | VOL +------+ | | |
| 174 | | |Seta | M1 | | |
| 175 | | +---+ +---+ |X1-010| | | |
| 176 | | | | | | M M | | +---+ | | |
| 177 | +-+ | U | | U | 1 1 +------+ | | | | |
| 178 | | | 0 | | 0 | 74HC00 | | | | |
| 179 | +-+ | 7 | | 6 | M M | U | | | |
| 180 | | | | | | 1 1 | 1 | | | |
| 181 | | +---+ +---+ | 8 | | | |
| 182 | | Lattice | | | | |
| 183 | | D D +---+ ispLSI2032 | | | | |
| 184 | | S S |DX | +-------+ +---+ | | |
| 185 | | W W |102| |Toshiba| CN2 | | |
| 186 | | 1 2 +---+ BAT1* | TMP | | | |
| 187 | | | 68301 | U50* | | |
| 188 | | +-------+ | | |
| 189 | | | | |
| 190 | | 50MHz +----------+ 28MHz | | |
| 191 | | +---+ | | | | |
| 192 | | |DX | SW1 | NEC | M M | | |
| 193 | | |102| | DX-101 | 2 2 | | |
| 194 | | +---+ M M | | | | |
| 195 | | 1 1 | | | | |
| 196 | | +----------+ | | |
| 197 | | | | |
| 198 | | +---+ +---++---++---+ | | |
| 199 | | | | | || || | | | |
| 200 | | +---+ | | | || || | | | |
| 201 | +-+ |DX | | U | | U || U || U | | | |
| 202 | | |102| 32.53047MHz | 4 | | 4 || 3 || 3 | | | |
| 203 | +-+ +---+ | 0 | | 1 || 8 || 9 | | | |
| 204 | | | | | || || | | | |
| 205 | | | | | || || | | | |
| 206 | | +---+ +---++---++---+ | | |
| 207 | +-----------------------------------------------------------+ | |
| 172 | 208 | |
| 173 | Notes: pzlbowl PCB with extra parts: | |
| 209 | Notes: pzlbowl PCB with these extra parts: | |
| 174 | 210 | 28MHz OSC |
| 175 | 211 | 2x 62256 SRAM |
| 176 | 212 | 74HC00 |
| 177 | 213 | |
| 214 | U50* Unpopulated 93LC46BX EEPROM | |
| 215 | BAT1* Unpopulated CR2032 3Volt battery | |
| 216 | ||
| 217 | Ram M1 are NEC D43001GU-70LL | |
| 218 | Ram M2 are LGS GM76C8128ALLFW70 | |
| 219 | ||
| 178 | 220 | ***************************************************************************/ |
| 179 | 221 | |
| 180 | 222 | /*************************************************************************** |
| 181 | 223 | |
| 224 | Puzzle De Bowling (Japan) | |
| 225 | ||
| 226 | (c)1999 Nihon System / Moss | |
| 227 | ||
| 228 | CPU: Toshiba TMP68301AF-16 (100 Pin PQFP) | |
| 229 | Video: NEC DX-101 (240 Pin PQFP) | |
| 230 | NEC DX-102 (52 Pin PQFP x3) | |
| 231 | Sound: X1-010 (Mitsubishi M60016 Gate Array, 80 Pin PQFP) | |
| 232 | OSC: 50MHz & 32.53047MHz | |
| 233 | Other: 8 Position Dipswitch x 2 | |
| 234 | Lattice ispLSI2032 - stamped "KUDEC" | |
| 235 | ||
| 236 | PCB Number: P0-142A | |
| 237 | +-----------------------------------------------------------+ | |
| 238 | | VOL +------+ | | |
| 239 | | |Seta | M1 | | |
| 240 | | +---+ +---+ |X1-010| | | |
| 241 | | | | | | U4* M | | +---+ | | |
| 242 | +-+ | U | | U | 1 +------+ | K | | | |
| 243 | | | 0 | | 0 | U30* | U | | | |
| 244 | +-+ | 7 | | 6 | U5* M | S | | | |
| 245 | | | | | | 1 | | | | |
| 246 | | +---+ +---+ | U | | | |
| 247 | | Lattice | 1 | | | |
| 248 | | D D +---+ ispLSI2032 | 8 | | | |
| 249 | | S S |DX | +-------+ +---+ | | |
| 250 | | W W |102| |Toshiba| CN2 | | |
| 251 | | 1 2 +---+ BAT1* | TMP | | | |
| 252 | | | 68301 | U50* | | |
| 253 | | +-------+ | | |
| 254 | | | | |
| 255 | | 50MHz +----------+ XM2* | | |
| 256 | | +---+ | | | | |
| 257 | | |DX | SW1 | NEC | M M | | |
| 258 | | |102| | DX-101 | 2 2 | | |
| 259 | | +---+ M M | | | | |
| 260 | | 1 1 | | | | |
| 261 | | +----------+ | | |
| 262 | | | | |
| 263 | | +---+ +---++---++---+ | | |
| 264 | | | K | | K || K || K | | | |
| 265 | | +---+ | U | | U || U || U | | | |
| 266 | +-+ |DX | | C | | C || C || C | | | |
| 267 | | |102| 32.53047MHz | | | || || | | | |
| 268 | +-+ +---+ | U | | U || U || U | | | |
| 269 | | | 4 | | 4 || 3 || 3 | | | |
| 270 | | | 0 | | 1 || 8 || 9 | | | |
| 271 | | +---+ +---++---++---+ | | |
| 272 | +-----------------------------------------------------------+ | |
| 273 | ||
| 274 | * Unpopulated: | |
| 275 | U4 & U5 RAM HM62256 equivalent | |
| 276 | U50 93LC46BX EEPROM | |
| 277 | U30 74HC00 | |
| 278 | BAT1 CR2032 3Volt battery | |
| 279 | XM2 OSC | |
| 280 | ||
| 281 | Ram M1 are NEC D43001GU-70LL | |
| 282 | Ram M2 are LGS GM76C8128ALLFW70 | |
| 283 | ||
| 284 | KUP-U06-I03 U06 Program rom ST27C4001 (even) | |
| 285 | KUP-U07-I03 U07 Program rom ST27C4001 (odd) | |
| 286 | ||
| 287 | KUS-U18-I00 U18 Mask rom (Samples 23C32000 32Mbit) | |
| 288 | ||
| 289 | KUC-U38-I00 U38 Mask rom (Graphics 23C32000 32Mbit) | |
| 290 | KUC-U39-I00 U39 Mask rom (Graphics 23C32000 32Mbit) | |
| 291 | KUC-U40-I00 U40 Mask rom (Graphics 23C32000 32Mbit) | |
| 292 | KUC-U41-I00 U41 Mask rom (Graphics 23C32000 32Mbit) | |
| 293 | ||
| 294 | ***************************************************************************/ | |
| 295 | ||
| 296 | /*************************************************************************** | |
| 297 | ||
| 182 | 298 | Sammy USA Outdoor Shooting Series PCB |
| 183 | 299 | |
| 184 | 300 | PCB B0-003A (or B0-003B): |
| r1649 | r1650 | |
| 291 | 407 | ***************************************************************************/ |
| 292 | 408 | |
| 293 | 409 | #include "driver.h" |
| 410 | #include "deprecat.h" | |
| 294 | 411 | #include "machine/tmp68301.h" |
| 295 | 412 | #include "machine/eeprom.h" |
| 296 | 413 | #include "sound/x1_010.h" |
| r1649 | r1650 | |
| 1042 | 1159 | static INPUT_PORTS_START( myangel ) |
| 1043 | 1160 | PORT_START_TAG("IN0") // $700300.w |
| 1044 | 1161 | PORT_SERVICE_DIPLOC( 0x0001, IP_ACTIVE_LOW, "SW1:1" ) |
| 1045 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0010, "SW1:2" ) /* Listed as "Unused" */ | |
| 1046 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0010, "SW1:3" ) /* Listed as "Unused" */ | |
| 1162 | PORT_DIPUNUSED_DIPLOC( 0x0002, 0x0002, "SW1:2" ) /* Listed as "Unused" */ | |
| 1163 | PORT_DIPUNUSED_DIPLOC( 0x0004, 0x0004, "SW1:3" ) /* Listed as "Unused" */ | |
| 1047 | 1164 | PORT_DIPNAME( 0x0008, 0x0008, "Increase Lives While Playing" ) PORT_DIPLOCATION("SW1:4") |
| 1048 | 1165 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) |
| 1049 | 1166 | PORT_DIPSETTING( 0x0008, DEF_STR( Yes ) ) |
| r1649 | r1650 | |
| 1128 | 1245 | static INPUT_PORTS_START( myangel2 ) |
| 1129 | 1246 | PORT_START_TAG("IN0") //$600300.w |
| 1130 | 1247 | PORT_SERVICE_DIPLOC( 0x0001, IP_ACTIVE_LOW, "SW1:1" ) |
| 1131 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0010, "SW1:2" ) /* Listed as "Unused" */ | |
| 1132 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0010, "SW1:3" ) /* Listed as "Unused" */ | |
| 1248 | PORT_DIPUNUSED_DIPLOC( 0x0002, 0x0002, "SW1:2" ) /* Listed as "Unused" */ | |
| 1249 | PORT_DIPUNUSED_DIPLOC( 0x0004, 0x0004, "SW1:3" ) /* Listed as "Unused" */ | |
| 1133 | 1250 | PORT_DIPNAME( 0x0008, 0x0008, "Increase Lives While Playing" ) PORT_DIPLOCATION("SW1:4") |
| 1134 | 1251 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) |
| 1135 | 1252 | PORT_DIPSETTING( 0x0008, DEF_STR( Yes ) ) |
| r1649 | r1650 | |
| 1695 | 1812 | static MACHINE_DRIVER_START( mj4simai ) |
| 1696 | 1813 | |
| 1697 | 1814 | /* basic machine hardware */ |
| 1698 | MDRV_CPU_ADD_TAG("main",M68000, | |
| 1815 | MDRV_CPU_ADD_TAG("main",M68000, | |
| 1699 | 1816 | MDRV_CPU_PROGRAM_MAP(mj4simai_readmem,mj4simai_writemem) |
| 1700 | 1817 | MDRV_CPU_VBLANK_INT(seta2_interrupt,1) |
| 1701 | 1818 | |
| r1649 | r1650 | |
| 1730 | 1847 | /* basic machine hardware */ |
| 1731 | 1848 | MDRV_IMPORT_FROM(mj4simai) |
| 1732 | 1849 | MDRV_CPU_MODIFY("main") |
| 1733 | MDRV_CPU_REPLACE("main",M68000,16000000) | |
| 1734 | 1850 | MDRV_CPU_PROGRAM_MAP(gundamex_readmem,gundamex_writemem) |
| 1735 | 1851 | |
| 1736 | 1852 | MDRV_NVRAM_HANDLER(93C46_gundamex) |
| r1649 | r1650 | |
|---|---|---|
| 190 | 190 | */ |
| 191 | 191 | |
| 192 | 192 | #include "driver.h" |
| 193 | #include "deprecat.h" | |
| 193 | 194 | #include "sound/es8712.h" |
| 194 | 195 | #include "sound/2203intf.h" |
| 195 | 196 |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | ***************************************************************************/ |
| 12 | 12 | |
| 13 | 13 | #include "driver.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "cpu/z80/z80.h" |
| 15 | 16 | #include "cpu/hd6309/hd6309.h" |
| 16 | 17 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 71 | 71 | *********************************************************************************************************************/ |
| 72 | 72 | |
| 73 | 73 | #include "driver.h" |
| 74 | #include "deprecat.h" | |
| 74 | 75 | #include "includes/dynax.h" |
| 75 | 76 | #include "cpu/tlcs90/tlcs90.h" |
| 76 | 77 | #include "machine/msm6242.h" |
| r1649 | r1650 | |
|---|---|---|
| 38 | 38 | */ |
| 39 | 39 | |
| 40 | 40 | #include "driver.h" |
| 41 | #include "deprecat.h" | |
| 41 | 42 | #include "cpu/m6502/m6502.h" |
| 42 | 43 | #include "sound/2203intf.h" |
| 43 | 44 |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | ***************************************************************************/ |
| 15 | 15 | |
| 16 | 16 | #include "driver.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | #include "cpu/m6809/m6809.h" |
| 18 | 19 | #include "sound/2151intf.h" |
| 19 | 20 | |
| r1649 | r1650 | |
| 87 | 88 | AM_RANGE(0x001c, 0x001c) AM_WRITE(cpu_sound_command_w) |
| 88 | 89 | AM_RANGE(0x001e, 0x001e) AM_WRITE(MWA8_NOP) /* ? */ |
| 89 | 90 | AM_RANGE(0x0060, 0x0067) AM_WRITE(contra_K007121_ctrl_1_w) |
| 90 | AM_RANGE(0x0c00, 0x0cff) AM_WRITE( | |
| 91 | AM_RANGE(0x0c00, 0x0cff) AM_WRITE(MWA8 | |
| 91 | 92 | AM_RANGE(0x1000, 0x1fff) AM_WRITE(MWA8_RAM) |
| 92 | 93 | AM_RANGE(0x2000, 0x23ff) AM_WRITE(contra_fg_cram_w) AM_BASE(&contra_fg_cram) |
| 93 | 94 | AM_RANGE(0x2400, 0x27ff) AM_WRITE(contra_fg_vram_w) AM_BASE(&contra_fg_vram) |
| r1649 | r1650 | |
| 264 | 265 | MDRV_SCREEN_SIZE(37*8, 32*8) |
| 265 | 266 | MDRV_SCREEN_VISIBLE_AREA(0*8, 35*8-1, 2*8, 30*8-1) |
| 266 | 267 | MDRV_GFXDECODE(contra) |
| 267 | MDRV_PALETTE_LENGTH(128) | |
| 268 | MDRV_COLORTABLE_LENGTH(2*8*16*16) | |
| 268 | MDRV_PALETTE_LENGTH(2*8*16*16) | |
| 269 | 269 | |
| 270 | 270 | MDRV_PALETTE_INIT(contra) |
| 271 | 271 | MDRV_VIDEO_START(contra) |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | ***************************************************************************/ |
| 10 | 10 | |
| 11 | #include <stdarg.h> | |
| 12 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 13 | 13 | #include "cpu/mips/psx.h" |
| 14 | 14 | #include "cpu/z80/z80.h" |
| 15 | 15 | #include "includes/psx.h" |
| r1649 | r1650 | |
|---|---|---|
| 40 | 40 | ********************************************************************/ |
| 41 | 41 | |
| 42 | 42 | #include "driver.h" |
| 43 | #include "deprecat.h" | |
| 43 | 44 | #include "taitoipt.h" |
| 44 | 45 | #include "video/taitoic.h" |
| 45 | 46 | #include "audio/taitosnd.h" |
| r1649 | r1650 | |
|---|---|---|
| 26 | 26 | ***************************************************************************/ |
| 27 | 27 | |
| 28 | 28 | #include "driver.h" |
| 29 | #include "deprecat.h" | |
| 29 | 30 | #include "machine/8255ppi.h" |
| 30 | 31 | #include "dribling.h" |
| 31 | 32 |
| r1649 | r1650 | |
|---|---|---|
| 2505 | 2505 | GAME( 1985, minigol2, minigolf, balsente, minigol2, minigol2, ROT0, "Bally/Sente", "Mini Golf (set 2)", GAME_SUPPORTS_SAVE ) |
| 2506 | 2506 | GAME( 1985, toggle, 0, balsente, toggle, toggle, ROT0, "Bally/Sente", "Toggle (prototype)", GAME_SUPPORTS_SAVE ) |
| 2507 | 2507 | GAME( 1986, nametune, 0, balsente, nametune, nametune, ROT0, "Bally/Sente", "Name That Tune", GAME_SUPPORTS_SAVE ) |
| 2508 | GAME( 1986, nstocker, 0, balsente, nstocker, nstocker, ROT0, "Bally/Sente", "Night Stocker", GAME_SUPPORTS_SAVE ) | |
| 2508 | GAME( 1986, nstocker, 0, balsente, nstocker, nstocker, ROT0, "Bally/Sente", "Night Stocker (set 1)", GAME_SUPPORTS_SAVE ) | |
| 2509 | 2509 | GAME( 1986, nstockr2, 0, balsente, nstocker, nstocker, ROT0, "Bally/Sente", "Night Stocker (set 2)", GAME_SUPPORTS_SAVE ) |
| 2510 | 2510 | GAME( 1986, sfootbal, 0, balsente, sfootbal, sfootbal, ROT0, "Bally/Sente", "Street Football", GAME_SUPPORTS_SAVE ) |
| 2511 | 2511 | GAME( 1986, spiker, 0, balsente, spiker, spiker, ROT0, "Bally/Sente", "Spiker", GAME_SUPPORTS_SAVE ) |
| r1649 | r1650 | |
|---|---|---|
| 43 | 43 | */ |
| 44 | 44 | |
| 45 | 45 | #include "driver.h" |
| 46 | #include "deprecat.h" | |
| 46 | 47 | #include "sound/sn76496.h" |
| 47 | 48 | #include "sound/2612intf.h" |
| 48 | 49 | #include "sound/upd7759.h" |
| r1649 | r1650 | |
| 2608 | 2609 | VIDEO_UPDATE(megadriv) |
| 2609 | 2610 | { |
| 2610 | 2611 | /* Copy our screen buffer here */ |
| 2611 | copybitmap(bitmap, render_bitmap, 0, 0, 0, 0, cliprect | |
| 2612 | copybitmap(bitmap, render_bitmap, 0, 0, 0, 0, cliprect | |
| 2612 | 2613 | |
| 2613 | 2614 | // int xxx; |
| 2614 | 2615 | /* reference */ |
| r1649 | r1650 | |
|---|---|---|
| 64 | 64 | */ |
| 65 | 65 | |
| 66 | 66 | #include "driver.h" |
| 67 | #include "deprecat.h" | |
| 67 | 68 | #include "sound/ymz280b.h" |
| 68 | 69 | |
| 69 | 70 | extern UINT32* skns_spc_regs; |
| r1649 | r1650 | |
|---|---|---|
| 211 | 211 | ****************************************************************************/ |
| 212 | 212 | |
| 213 | 213 | #include "driver.h" |
| 214 | #include "deprecat.h" | |
| 214 | 215 | #include "cpu/m6809/m6809.h" |
| 215 | 216 | #include "cpu/m68000/m68000.h" |
| 216 | 217 | #include "machine/6522via.h" |
| r1649 | r1650 | |
|---|---|---|
| 82 | 82 | */ |
| 83 | 83 | |
| 84 | 84 | #include "driver.h" |
| 85 | #include "deprecat.h" | |
| 85 | 86 | #include "cpu/upd7810/upd7810.h" |
| 86 | 87 | #include "sound/okim6295.h" |
| 87 | 88 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | |
| 9 | 10 | #include "sspeedr.lh" |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 62 | 62 | ******************************************************************************************/ |
| 63 | 63 | |
| 64 | 64 | #include "driver.h" |
| 65 | #include "deprecat.h" | |
| 65 | 66 | #include "video/generic.h" |
| 66 | 67 | #include "machine/pit8253.h" |
| 67 | 68 | #include "machine/8255ppi.h" |
| r1649 | r1650 | |
|---|---|---|
| 77 | 77 | *************************************************************************/ |
| 78 | 78 | |
| 79 | 79 | #include "driver.h" |
| 80 | #include "deprecat.h" | |
| 80 | 81 | #include "sound/2203intf.h" |
| 81 | 82 | #include "sound/msm5205.h" |
| 82 | 83 |
| r1649 | r1650 | |
|---|---|---|
| 62 | 62 | static READ8_HANDLER( portC_r ) |
| 63 | 63 | { |
| 64 | 64 | return 4; |
| 65 | // return (mame_rand(Machine)&2); | |
| 66 | 65 | } |
| 67 | 66 | |
| 68 | 67 | static READ8_HANDLER( port1_r ) |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | *******************************************************************************/ |
| 14 | 14 | |
| 15 | 15 | #include "driver.h" |
| 16 | #include "deprecat.h" | |
| 16 | 17 | #include "sound/ay8910.h" |
| 17 | 18 | |
| 18 | 19 | static UINT8 mouser_sound_byte; |
| r1649 | r1650 | |
|---|---|---|
| 118 | 118 | ***************************************************************************/ |
| 119 | 119 | |
| 120 | 120 | #include "driver.h" |
| 121 | #include "deprecat.h" | |
| 121 | 122 | #include "cpu/m68000/m68000.h" |
| 122 | 123 | #include "video/taitoic.h" |
| 123 | 124 | #include "audio/taitosnd.h" |
| r1649 | r1650 | |
|---|---|---|
| 224 | 224 | ***************************************************************************/ |
| 225 | 225 | |
| 226 | 226 | #include "driver.h" |
| 227 | #include "deprecat.h" | |
| 227 | 228 | #include "cpu/arm/arm.h" |
| 228 | 229 | #include "cpu/h6280/h6280.h" |
| 229 | 230 | #include "cpu/m6809/m6809.h" |
| r1649 | r1650 | |
|---|---|---|
| 15 | 15 | #include "exidy440.h" |
| 16 | 16 | #include "machine/pit8253.h" |
| 17 | 17 | |
| 18 | ||
| 19 | ||
| 18 | 20 | /************************************* |
| 19 | 21 | * |
| 20 | 22 | * Main CPU memory handlers |
| 21 | 23 | * |
| 22 | 24 | *************************************/ |
| 23 | 25 | |
| 24 | static ADDRESS_MAP_START( vertigo_ma | |
| 26 | static ADDRESS_MAP_START( vertigo_map | |
| 25 | 27 | AM_RANGE(0x000000, 0x000007) AM_ROM |
| 26 | 28 | AM_RANGE(0x000008, 0x001fff) AM_RAM AM_MIRROR(0x010000) |
| 27 | 29 | AM_RANGE(0x002000, 0x003fff) AM_RAM AM_BASE(&vertigo_vectorram) |
| r1649 | r1650 | |
| 38 | 40 | AM_RANGE(0x800000, 0x81ffff) AM_ROM |
| 39 | 41 | ADDRESS_MAP_END |
| 40 | 42 | |
| 41 | /************************************* | |
| 42 | * | |
| 43 | * Sound CPU memory handlers | |
| 44 | * | |
| 45 | *************************************/ | |
| 46 | 43 | |
| 47 | static ADDRESS_MAP_START( vertigo_sound, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 48 | AM_RANGE(0x8000, 0x8016) AM_READWRITE(exidy440_m6844_r,exidy440_m6844_w) AM_BASE(&exidy440_m6844_data) | |
| 49 | AM_RANGE(0x8400, 0x8407) AM_READWRITE(MRA8_RAM, exidy440_sound_volume_w) AM_BASE(&exidy440_sound_volume) | |
| 50 | AM_RANGE(0x8800, 0x8800) AM_READ(exidy440_sound_command_r) | |
| 51 | AM_RANGE(0x9400, 0x9403) AM_RAM AM_BASE(&exidy440_sound_banks) | |
| 52 | AM_RANGE(0x9800, 0x9800) AM_READWRITE(MRA8_NOP,exidy440_sound_interrupt_clear_w) | |
| 53 | AM_RANGE(0xa000, 0xa7ff) AM_RAM | |
| 54 | AM_RANGE(0xe000, 0xffff) AM_ROM | |
| 55 | ADDRESS_MAP_END | |
| 56 | 44 | |
| 57 | 45 | /************************************* |
| 58 | 46 | * |
| r1649 | r1650 | |
| 67 | 55 | ADDRESS_MAP_END |
| 68 | 56 | #endif |
| 69 | 57 | |
| 58 | ||
| 59 | ||
| 70 | 60 | /************************************* |
| 71 | 61 | * |
| 72 | 62 | * Port definitions |
| r1649 | r1650 | |
| 101 | 91 | |
| 102 | 92 | INPUT_PORTS_END |
| 103 | 93 | |
| 104 | /************************************* | |
| 105 | * | |
| 106 | * Sound definitions | |
| 107 | * | |
| 108 | *************************************/ | |
| 109 | 94 | |
| 110 | static const struct CustomSound_interface custom_interface = | |
| 111 | { | |
| 112 | exidy440_sh_start, | |
| 113 | exidy440_sh_stop | |
| 114 | }; | |
| 115 | 95 | |
| 116 | 96 | /************************************* |
| 117 | 97 | * |
| 118 | * Machine driver | |
| 98 | * Machine driver | |
| 119 | 99 | * |
| 120 | 100 | *************************************/ |
| 121 | 101 | |
| r1649 | r1650 | |
| 123 | 103 | |
| 124 | 104 | /* basic machine hardware */ |
| 125 | 105 | MDRV_CPU_ADD(M68000, 8000000) |
| 126 | MDRV_CPU_PROGRAM_MAP(vertigo_ma | |
| 106 | MDRV_CPU_PROGRAM_MAP(vertigo_map | |
| 127 | 107 | MDRV_CPU_PERIODIC_INT(vertigo_interrupt,60) |
| 128 | 108 | |
| 129 | /* audio CPU */ | |
| 130 | MDRV_CPU_ADD(M6809, 1000000) | |
| 131 | MDRV_CPU_PROGRAM_MAP(vertigo_sound,0) | |
| 109 | MDRV_IMPORT_FROM(exidy440_audio) | |
| 132 | 110 | |
| 133 | 111 | /* motor controller */ |
| 134 | 112 | /* |
| r1649 | r1650 | |
| 141 | 119 | MDRV_MACHINE_RESET(vertigo) |
| 142 | 120 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 143 | 121 | |
| 144 | ||
| 145 | 122 | /* video hardware */ |
| 146 | 123 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_VECTOR ) |
| 147 | 124 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| r1649 | r1650 | |
| 151 | 128 | |
| 152 | 129 | MDRV_VIDEO_START(vector) |
| 153 | 130 | MDRV_VIDEO_UPDATE(vector) |
| 131 | MACHINE_DRIVER_END | |
| 154 | 132 | |
| 155 | /* sound hardware */ | |
| 156 | MDRV_SPEAKER_STANDARD_STEREO("left", "right") | |
| 157 | 133 | |
| 158 | MDRV_SOUND_ADD(CUSTOM, 1000000/16) | |
| 159 | MDRV_SOUND_CONFIG(custom_interface) | |
| 160 | MDRV_SOUND_ROUTE(0, "left", 1.0) | |
| 161 | MDRV_SOUND_ROUTE(1, "right", 1.0) | |
| 162 | 134 | |
| 163 | MACHINE_DRIVER_END | |
| 164 | ||
| 165 | 135 | /************************************* |
| 166 | 136 | * |
| 167 | * ROM definition | |
| 137 | * ROM definition | |
| 168 | 138 | * |
| 169 | 139 | *************************************/ |
| 170 | 140 | |
| r1649 | r1650 | |
| 227 | 197 | ROM_LOAD( "vga3_4.bd1", 0x080, 0x780, CRC(a50dde56) SHA1(ef13f4cf01c9d483f2dc829a2e23965a6053f37a) ) |
| 228 | 198 | ROM_END |
| 229 | 199 | |
| 200 | ||
| 201 | ||
| 230 | 202 | /************************************* |
| 231 | 203 | * |
| 232 | * Game driver | |
| 204 | * Game driver | |
| 233 | 205 | * |
| 234 | 206 | *************************************/ |
| 235 | 207 |
| r1649 | r1650 | |
|---|---|---|
| 25 | 25 | **************************************************************************/ |
| 26 | 26 | |
| 27 | 27 | #include "driver.h" |
| 28 | #include "de | |
| 28 | #include "dep | |
| 29 | 29 | #include "cpu/tms34010/tms34010.h" |
| 30 | 30 | #include "cpu/adsp2100/adsp2100.h" |
| 31 | 31 | #include "includes/midzeus.h" |
| r1649 | r1650 | |
|---|---|---|
| 42 | 42 | ***************************************************************************/ |
| 43 | 43 | |
| 44 | 44 | #include "driver.h" |
| 45 | #include "deprecat.h" | |
| 45 | 46 | #include "cpu/z80/z80.h" |
| 46 | 47 | #include "sound/ay8910.h" |
| 47 | 48 | #include "grchamp.h" |
| r1649 | r1650 | |
|---|---|---|
| 84 | 84 | |
| 85 | 85 | |
| 86 | 86 | #include "driver.h" |
| 87 | #include "deprecat.h" | |
| 87 | 88 | #include "sound/2203intf.h" |
| 88 | 89 | |
| 89 | 90 |
| r1649 | r1650 | |
|---|---|---|
| 27 | 27 | ***************************************************************************/ |
| 28 | 28 | |
| 29 | 29 | #include "driver.h" |
| 30 | #include "deprecat.h" | |
| 30 | 31 | #include "cpu/z80/z80.h" |
| 31 | 32 | #include "cpu/m6805/m6805.h" |
| 32 | 33 | #include "sound/2203intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 22 | 22 | |
| 23 | 23 | #include "driver.h" |
| 24 | 24 | #include "render.h" |
| 25 | #include "deprecat.h" | |
| 25 | 26 | #include "sound/sn76496.h" |
| 26 | 27 | #include "sound/custom.h" |
| 27 | 28 | #include "machine/laserdsc.h" |
| r1649 | r1650 | |
|---|---|---|
| 52 | 52 | *******************************************************************************************/ |
| 53 | 53 | |
| 54 | 54 | #include "driver.h" |
| 55 | #include "deprecat.h" | |
| 55 | 56 | #include "audio/seibu.h" |
| 56 | 57 | #include "sound/3812intf.h" |
| 57 | 58 |
| r1649 | r1650 | |
|---|---|---|
| 125 | 125 | |
| 126 | 126 | |
| 127 | 127 | #include "driver.h" |
| 128 | #include "deprecat.h" | |
| 128 | 129 | #include "cpu/m68000/m68000.h" |
| 129 | 130 | #include "cpu/z80/z80.h" |
| 130 | 131 | #include "sound/2203intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | * Ixion |
| 11 | 11 | * Congo Bongo |
| 12 | 12 | |
| 13 | DIP locations verified from manual for: | |
| 14 | * Zaxxon | |
| 15 | * Congo Bongo | |
| 16 | ||
| 13 | 17 | Known bugs: |
| 14 | 18 | * discrete sound emulation |
| 15 | 19 | |
| r1649 | r1650 | |
| 301 | 305 | ***************************************************************************/ |
| 302 | 306 | |
| 303 | 307 | #include "driver.h" |
| 308 | #include "deprecat.h" | |
| 304 | 309 | #include "machine/segacrpt.h" |
| 305 | 310 | #include "machine/8255ppi.h" |
| 306 | 311 | #include "audio/segasnd.h" |
| r1649 | r1650 | |
| 565 | 570 | PORT_SERVICE_NO_TOGGLE( 0x01, IP_ACTIVE_HIGH ) |
| 566 | 571 | |
| 567 | 572 | PORT_START_TAG("DSW02") |
| 568 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Bonus_Life ) ) | |
| 573 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:!1,!2") | |
| 569 | 574 | PORT_DIPSETTING( 0x03, "10000" ) |
| 570 | 575 | PORT_DIPSETTING( 0x01, "20000" ) |
| 571 | 576 | PORT_DIPSETTING( 0x02, "30000" ) |
| 572 | 577 | PORT_DIPSETTING( 0x00, "40000" ) |
| 573 | PORT_BIT( 0x0c, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 574 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Lives ) ) | |
| 578 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW1:!3") | |
| 579 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 580 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 581 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW1:!4") | |
| 582 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 583 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 584 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:!5,!6") | |
| 575 | 585 | PORT_DIPSETTING( 0x30, "3" ) |
| 576 | 586 | PORT_DIPSETTING( 0x10, "4" ) |
| 577 | 587 | PORT_DIPSETTING( 0x20, "5" ) |
| 578 | 588 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 579 | PORT_DIPNAME( 0x40, 0x40, | |
| 589 | PORT_DIPNAME( 0x40, 0x40, " | |
| 580 | 590 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 581 | 591 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) |
| 582 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) ) | |
| 592 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:!8") | |
| 583 | 593 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 584 | 594 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) |
| 585 | 595 | |
| 586 | 596 | PORT_START_TAG("DSW03") |
| 587 | PORT_DIPNAME( 0x0f, 0x03, DEF_STR ( Coin_B ) ) | |
| 597 | PORT_DIPNAME( 0x0f, 0x03, DEF_STR ( Coin_B ) ) PORT_DIPLOCATION("SW2:!1,!2,!3,!4") | |
| 588 | 598 | PORT_DIPSETTING( 0x0f, DEF_STR ( 4C_1C ) ) |
| 589 | 599 | PORT_DIPSETTING( 0x07, DEF_STR ( 3C_1C ) ) |
| 590 | 600 | PORT_DIPSETTING( 0x0b, DEF_STR ( 2C_1C ) ) |
| r1649 | r1650 | |
| 601 | 611 | PORT_DIPSETTING( 0x09, DEF_STR ( 1C_4C ) ) |
| 602 | 612 | PORT_DIPSETTING( 0x01, DEF_STR ( 1C_5C ) ) |
| 603 | 613 | PORT_DIPSETTING( 0x0e, DEF_STR ( 1C_6C ) ) |
| 604 | PORT_DIPNAME( 0xf0, 0x30, DEF_STR ( Coin_A ) ) | |
| 614 | PORT_DIPNAME( 0xf0, 0x30, DEF_STR ( Coin_A ) ) PORT_DIPLOCATION("SW2:!5,!6,!7,!8") | |
| 605 | 615 | PORT_DIPSETTING( 0xf0, DEF_STR ( 4C_1C ) ) |
| 606 | 616 | PORT_DIPSETTING( 0x70, DEF_STR ( 3C_1C ) ) |
| 607 | 617 | PORT_DIPSETTING( 0xb0, DEF_STR ( 2C_1C ) ) |
| r1649 | r1650 | |
| 873 | 883 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 874 | 884 | PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 875 | 885 | |
| 876 | PORT_START_TAG("DSW02") | |
| 877 | PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Difficulty ) ) | |
| 886 | PORT_MODIFY("DSW02") | |
| 887 | PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:!3,!4") | |
| 878 | 888 | PORT_DIPSETTING( 0x0c, DEF_STR( Easy ) ) |
| 879 | 889 | PORT_DIPSETTING( 0x04, DEF_STR( Medium ) ) |
| 880 | 890 | PORT_DIPSETTING( 0x08, DEF_STR( Hard ) ) |
| r1649 | r1650 | |
|---|---|---|
| 49 | 49 | */ |
| 50 | 50 | |
| 51 | 51 | #include "driver.h" |
| 52 | #include "deprecat.h" | |
| 52 | 53 | #include "cpu/z80/z80.h" |
| 53 | 54 | #include "sound/ay8910.h" |
| 54 | 55 | #include "sound/dac.h" |
| r1649 | r1650 | |
|---|---|---|
| 49 | 49 | |
| 50 | 50 | |
| 51 | 51 | #include "driver.h" |
| 52 | #include "deprecat.h" | |
| 52 | 53 | #include "astrof.h" |
| 53 | 54 | |
| 54 | 55 |
| r1649 | r1650 | |
|---|---|---|
| 38 | 38 | *******************************************************************************/ |
| 39 | 39 | |
| 40 | 40 | #include "driver.h" |
| 41 | #include "deprecat.h" | |
| 41 | 42 | #include "sound/2203intf.h" |
| 42 | 43 | #include "sound/3812intf.h" |
| 43 | 44 |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | ******************************************************************************/ |
| 14 | 14 | |
| 15 | 15 | #include "driver.h" |
| 16 | #include "deprecat.h" | |
| 16 | 17 | #include "cpu/m6502/m6502.h" |
| 17 | 18 | #include "cpu/m6805/m6805.h" |
| 18 | 19 | #include "includes/atari.h" |
| r1649 | r1650 | |
| 20 | 21 | #include "sound/pokey.h" |
| 21 | 22 | #include "machine/6821pia.h" |
| 22 | 23 | #include "video/gtia.h" |
| 23 | #include "ui.h" | |
| 24 | 24 | |
| 25 | 25 | #include "maxaflex.lh" |
| 26 | 26 |
| r1649 | r1650 | |
|---|---|---|
| 98 | 98 | ***************************************************************************/ |
| 99 | 99 | |
| 100 | 100 | #include "driver.h" |
| 101 | #include "deprecat.h" | |
| 101 | 102 | #include "cpu/m6502/m6502.h" |
| 102 | 103 | #include "sound/vlm5030.h" |
| 103 | 104 | #include "sound/nes_apu.h" |
| r1649 | r1650 | |
|---|---|---|
| 273 | 273 | **************************************************************************/ |
| 274 | 274 | |
| 275 | 275 | #include "driver.h" |
| 276 | #include "deprecat.h" | |
| 276 | 277 | #include "cpu/adsp2100/adsp2100.h" |
| 277 | 278 | #include "cpu/mips/mips3.h" |
| 278 | 279 | #include "audio/dcs.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | |
| 3 | 4 | extern UINT8 *kopunch_videoram2; |
| 4 | 5 |
| r1649 | r1650 | |
|---|---|---|
| 46 | 46 | |
| 47 | 47 | ***************************************************************************/ |
| 48 | 48 | #include "driver.h" |
| 49 | #include "deprecat.h" | |
| 49 | 50 | #include "cpu/z80/z80.h" |
| 50 | 51 | #include "sound/3812intf.h" |
| 51 | 52 | #include "sound/msm5205.h" |
| r1649 | r1650 | |
|---|---|---|
| 118 | 118 | ***************************************************************************/ |
| 119 | 119 | |
| 120 | 120 | #include "driver.h" |
| 121 | #include "deprecat.h" | |
| 121 | 122 | #include "includes/kaneko16.h" |
| 122 | 123 | #include "sound/okim6295.h" |
| 123 | 124 | #include "video/kan_pand.h" |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "cpu/m6809/m6809.h" |
| 11 | 12 | #include "cpu/i8039/i8039.h" |
| 12 | 13 | #include "sound/sn76496.h" |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | ***************************************************************************/ |
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | #include "deprecat.h" | |
| 13 | 14 | #include "system16.h" |
| 14 | 15 | #include "cpu/m68000/m68000.h" |
| 15 | 16 | #include "machine/segaic16.h" |
| r1649 | r1650 | |
|---|---|---|
| 18 | 18 | |
| 19 | 19 | |
| 20 | 20 | #include "driver.h" |
| 21 | #include "deprecat.h" | |
| 21 | 22 | #include "machine/atarigen.h" |
| 22 | 23 | #include "shuuz.h" |
| 23 | 24 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
|---|---|---|
| 126 | 126 | ***************************************************************************/ |
| 127 | 127 | |
| 128 | 128 | #include "driver.h" |
| 129 | #include "deprecat.h" | |
| 129 | 130 | #include "sound/ay8910.h" |
| 130 | 131 | #include "sound/samples.h" |
| 131 | 132 | #include "includes/cclimber.h" |
| r1649 | r1650 | |
| 183 | 184 | AM_RANGE(0x0000, 0x5fff) AM_ROM |
| 184 | 185 | AM_RANGE(0x6000, 0x6bff) AM_RAM /* Crazy Kong only */ |
| 185 | 186 | AM_RANGE(0x8000, 0x83ff) AM_RAM |
| 186 | AM_RANGE(0x8800, 0x88ff) AM_R | |
| 187 | AM_RANGE(0x8800, 0x88ff) AM_R | |
| 187 | 188 | AM_RANGE(0x8900, 0x8bff) AM_RAM /* not used, but initialized */ |
| 188 | 189 | AM_RANGE(0x9000, 0x93ff) AM_MIRROR(0x0400) AM_RAM AM_BASE(&videoram) AM_SIZE(&videoram_size) |
| 189 | 190 | /* 9800-9bff and 9c00-9fff share the same RAM, interleaved */ |
| r1649 | r1650 | |
| 210 | 211 | AM_RANGE(0x6000, 0x6bff) AM_RAM /* Crazy Kong only, Cannon Ball also */ |
| 211 | 212 | AM_RANGE(0x8000, 0x83ff) AM_RAM |
| 212 | 213 | AM_RANGE(0x8800, 0x8800) AM_READNOP /* must not return what's written (game will reset after coin insert if it returns 0xff)*/ |
| 213 | AM_RANGE(0x8800, 0x88ff) AM_R | |
| 214 | AM_RANGE(0x8800, 0x88ff) AM_R | |
| 214 | 215 | //AM_RANGE(0x8900, 0x8bff) AM_WRITE(MWA8_RAM) /* not used, but initialized */ |
| 215 | 216 | AM_RANGE(0x9000, 0x93ff) AM_MIRROR(0x0400) AM_RAM AM_BASE(&videoram) AM_SIZE(&videoram_size) |
| 216 | 217 | /* 9800-9bff and 9c00-9fff share the same RAM, interleaved */ |
| r1649 | r1650 | |
| 232 | 233 | static ADDRESS_MAP_START( swimmer_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 233 | 234 | AM_RANGE(0x0000, 0x7fff) AM_ROM |
| 234 | 235 | AM_RANGE(0x8000, 0x87ff) AM_RAM |
| 235 | AM_RANGE(0x8800, 0x88ff) AM_MIRROR(0x0100) AM_ | |
| 236 | AM_RANGE(0x8800, 0x88ff) AM_MIRROR(0x0100) AM_ | |
| 236 | 237 | AM_RANGE(0x9000, 0x93ff) AM_MIRROR(0x0400) AM_RAM AM_BASE(&videoram) AM_SIZE(&videoram_size) |
| 237 | 238 | AM_RANGE(0x9800, 0x981f) AM_WRITE(MWA8_RAM) AM_BASE(&cclimber_column_scroll) |
| 238 | 239 | AM_RANGE(0x9880, 0x989f) AM_WRITE(MWA8_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size) |
| r1649 | r1650 | |
| 241 | 242 | AM_RANGE(0xa000, 0xa000) AM_READWRITE(input_port_0_r, interrupt_enable_w) |
| 242 | 243 | AM_RANGE(0xa001, 0xa001) AM_WRITE(flip_screen_x_w) |
| 243 | 244 | AM_RANGE(0xa002, 0xa002) AM_WRITE(flip_screen_y_w) |
| 244 | AM_RANGE(0xa003, 0xa003) AM_WRITE(swimmer_sidepanel_enable_w) | |
| 245 | AM_RANGE(0xa004, 0xa004) AM_WRITE(swimmer_palettebank_w) | |
| 245 | AM_RANGE(0xa003, 0xa003) AM_WRITE(MWA8_RAM) AM_BASE(&swimmer_sidepanel_enabled) | |
| 246 | AM_RANGE(0xa004, 0xa004) AM_WRITE(MWA8_RAM) AM_BASE(&swimmer_palettebank) | |
| 246 | 247 | AM_RANGE(0xa800, 0xa800) AM_READWRITE(input_port_1_r, swimmer_sh_soundlatch_w) |
| 247 | 248 | AM_RANGE(0xb000, 0xb000) AM_READ(input_port_2_r) |
| 248 | AM_RANGE(0xb800, 0xb800) AM_READWRITE(input_port_3_r, swimmer_bgcolor | |
| 249 | AM_RANGE(0xb800, 0xb800) AM_READWRITE(input_port_3_r, MWA8_RAM) AM_BASE(&swimmer_bgcolor | |
| 249 | 250 | AM_RANGE(0xb880, 0xb880) AM_READ(input_port_4_r) |
| 250 | 251 | AM_RANGE(0xc000, 0xc7ff) AM_RAM /* ??? used by Guzzler */ |
| 251 | 252 | AM_RANGE(0xe000, 0xffff) AM_ROM /* Guzzler only */ |
| r1649 | r1650 | |
| 503 | 504 | CKONGIN2 |
| 504 | 505 | INPUT_PORTS_END |
| 505 | 506 | |
| 506 | static INPUT_PORTS_START( rpatrol | |
| 507 | static INPUT_PORTS_START( rpatrol | |
| 507 | 508 | PORT_START_TAG("IN0") |
| 508 | 509 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL |
| 509 | 510 | PORT_BIT( 0x3e, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1649 | r1650 | |
| 797 | 798 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 798 | 799 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 799 | 800 | MDRV_GFXDECODE(cclimber) |
| 800 | MDRV_PALETTE_LENGTH(96) | |
| 801 | MDRV_COLORTABLE_LENGTH(16*4+8*4) | |
| 801 | MDRV_PALETTE_LENGTH(16*4+8*4) | |
| 802 | 802 | |
| 803 | 803 | MDRV_PALETTE_INIT(cclimber) |
| 804 | 804 | MDRV_VIDEO_START(generic) |
| r1649 | r1650 | |
| 851 | 851 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 852 | 852 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 853 | 853 | MDRV_GFXDECODE(swimmer) |
| 854 | MDRV_PALETTE_LENGTH(256+32+2) | |
| 855 | MDRV_COLORTABLE_LENGTH(64*8+4*8) | |
| 854 | MDRV_PALETTE_LENGTH(64*8+4*8) | |
| 856 | 855 | |
| 857 | 856 | MDRV_PALETTE_INIT(swimmer) |
| 858 | 857 | MDRV_VIDEO_START(generic) |
| r1649 | r1650 | |
| 1309 | 1308 | I think the board was a half-converted board as 'Water Gage' and 'Bon Voyage' don't really fit the theme |
| 1310 | 1309 | of Silver Land so I'm loading the River Patrol GFX instead as they fit better |
| 1311 | 1310 | */ |
| 1312 | ROM_START( rpatrol | |
| 1311 | ROM_START( rpatrol | |
| 1313 | 1312 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 1314 | 1313 | ROM_LOAD( "sci1.bin", 0x0000, 0x1000, CRC(33b01c90) SHA1(9c8da6dd963bfb0544ef99b8fdedcf86c32cdb6b) ) |
| 1315 | 1314 | ROM_LOAD( "sci2.bin", 0x1000, 0x1000, CRC(03f53340) SHA1(35336945f4b634fc4c7791ac9c9e6643c8cd8006) ) |
| r1649 | r1650 | |
| 1549 | 1548 | GAME( 1980, cclimbrj, cclimber, cclimber, cclimbrj, cclimbrj, ROT0, "Nichibutsu", "Crazy Climber (Japan)", 0 ) |
| 1550 | 1549 | GAME( 1980, ccboot, cclimber, cclimber, cclimber, cclimbrj, ROT0, "bootleg", "Crazy Climber (bootleg set 1)", 0 ) |
| 1551 | 1550 | GAME( 1980, ccboot2, cclimber, cclimber, cclimber, cclimbrj, ROT0, "bootleg", "Crazy Climber (bootleg set 2)", 0 ) |
| 1552 | GAME( 1981, ckong, 0, cclimber, ckong, 0, ROT270, "Falcon", "Crazy Kong (set 1)", 0 ) | |
| 1553 | GAME( 1981, ckonga, ckong, cclimber, ckong, 0, ROT270, "Falcon", "Crazy Kong (set 2)", 0 ) | |
| 1554 | GAME( 1981, ckongjeu, ckong, cclimber, ckong, 0, ROT270, "bootleg", "Crazy Kong (Jeutel bootleg)", 0 ) | |
| 1551 | GAME( 1981, ckong, 0, cclimber, ckong, 0, ROT270, "Falcon", "Crazy Kong Part II (set 1)", 0 ) | |
| 1552 | GAME( 1981, ckonga, ckong, cclimber, ckong, 0, ROT270, "Falcon", "Crazy Kong Part II (set 2)", 0 ) | |
| 1553 | GAME( 1981, ckongjeu, ckong, cclimber, ckong, 0, ROT270, "bootleg", "Crazy Kong Part II (Jeutel bootleg)", 0 ) | |
| 1555 | 1554 | GAME( 1981, ckongo, ckong, cclimber, ckong, 0, ROT270, "bootleg", "Crazy Kong (Orca bootleg)", 0 ) |
| 1556 | 1555 | GAME( 1981, ckongalc, ckong, cclimber, ckong, 0, ROT270, "bootleg", "Crazy Kong (Alca bootleg)", 0 ) |
| 1557 | 1556 | GAME( 198?, bigkong, ckong, cclimber, ckong, 0, ROT270, "bootleg", "Big Kong", 0 ) |
| 1558 | 1557 | GAME( 1981, monkeyd, ckong, cclimber, ckong, 0, ROT270, "bootleg", "Monkey Donkey", 0 ) |
| 1559 | GAME( 198?, ckongb, ckong, cclimber, ckongb, ckongb, ROT270, "bootleg", "Crazy Kong ( | |
| 1558 | GAME( 198?, ckongb, ckong, cclimber, ckongb, ckongb, ROT270, "bootleg", "Crazy Kong Part II (alternative levels)", 0 ) | |
| 1560 | 1559 | |
| 1561 | GAME( 1981, rpatrolb, 0, cclimber, rpatrolb, 0, ROT0, "bootleg", "River Patrol (bootleg)", 0 ) | |
| 1562 | GAME( 1981, rpatrolo, rpatrolb, cclimber, rpatrolb, 0, ROT0, "Orca", "River Patrol (Orca)", 0 ) | |
| 1563 | GAME( 1981, silvland, rpatrolb, cclimber, rpatrolb, 0, ROT0, "Falcon", "Silver Land", 0 ) | |
| 1560 | GAME( 1981, rpatrol, 0, cclimber, rpatrol, 0, ROT0, "Orca", "River Patrol (Orca)", 0 ) | |
| 1561 | GAME( 1981, rpatrolb, rpatrol, cclimber, rpatrol, 0, ROT0, "bootleg", "River Patrol (bootleg)", 0 ) | |
| 1562 | GAME( 1981, silvland, rpatrol, cclimber, rpatrol, 0, ROT0, "Falcon", "Silver Land", 0 ) | |
| 1564 | 1563 | |
| 1565 | 1564 | GAME( 1985, cannonb, cannonbp, cannonb, cannonb, cannonb, ROT90, "Soft", "Cannon Ball (bootleg on Crazy Climber hardware, set 1)" , GAME_IMPERFECT_GRAPHICS ) |
| 1566 | 1565 | GAME( 1985, cannonb2, cannonbp, cannonb, cannonb, cannonb2, ROT90, "TV Game Gruenberg", "Cannon Ball (bootleg on Crazy Climber hardware, set 2)", 0 ) |
| r1649 | r1650 | |
|---|---|---|
| 21 | 21 | ******************************************************************************/ |
| 22 | 22 | |
| 23 | 23 | #include "driver.h" |
| 24 | #include "deprecat.h" | |
| 24 | 25 | #include "sound/okim6295.h" |
| 25 | 26 | |
| 26 | 27 | /*** README INFO ************************************************************** |
| r1649 | r1650 | |
|---|---|---|
| 19 | 19 | *********************************************************************/ |
| 20 | 20 | |
| 21 | 21 | #include "driver.h" |
| 22 | #include "deprecat.h" | |
| 22 | 23 | #include "sound/ay8910.h" |
| 23 | 24 | |
| 24 | 25 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | *************************************************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "sound/okim6295.h" |
| 11 | 12 | #include "sound/2203intf.h" |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | ***************************************************************************/ |
| 15 | 15 | |
| 16 | 16 | #include "driver.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | #include "system16.h" |
| 18 | 19 | #include "machine/segaic16.h" |
| 19 | 20 | #include "machine/8255ppi.h" |
| r1649 | r1650 | |
|---|---|---|
| 35 | 35 | */ |
| 36 | 36 | |
| 37 | 37 | #include "driver.h" |
| 38 | #include "deprecat.h" | |
| 38 | 39 | #include "machine/eeprom.h" |
| 39 | 40 | #include "cpu/powerpc/ppc.h" |
| 40 | 41 | #include "cpu/sharc/sharc.h" |
| r1649 | r1650 | |
|---|---|---|
| 108 | 108 | */ |
| 109 | 109 | |
| 110 | 110 | #include "driver.h" |
| 111 | #include "deprecat.h" | |
| 111 | 112 | #include "sound/pokey.h" |
| 112 | 113 | |
| 113 | 114 | static int cloak_nvram_enabled; |
| r1649 | r1650 | |
|---|---|---|
| 36 | 36 | ****************************************************************************/ |
| 37 | 37 | |
| 38 | 38 | #include "driver.h" |
| 39 | #include "deprecat.h" | |
| 39 | 40 | #include "sound/ay8910.h" |
| 40 | 41 | |
| 41 | 42 | static UINT8 *cfb_ram; |
| r1649 | r1650 | |
| 139 | 140 | |
| 140 | 141 | |
| 141 | 142 | if (planes_enabled[3]) |
| 142 | copybitmap(bitmap,tmpbitmaps[3],0,0,0,0, | |
| 143 | copybitmap(bitmap,tmpbitmaps[3],0,0,0,0, | |
| 143 | 144 | |
| 144 | 145 | |
| 145 | 146 | if (planes_enabled[2]) |
| 146 | copybitmap(bitmap,tmpbitmaps[2],0,0,0,0, | |
| 147 | copybitmap_trans(bitmap,tmpbitmaps[2],0,0,0,0, | |
| 147 | 148 | fillbitmap(tmpbitmaps[2],machine->pens[color_base],NULL); |
| 148 | 149 | |
| 149 | 150 | |
| 150 | 151 | if (planes_enabled[1]) |
| 151 | copybitmap(bitmap,tmpbitmaps[1],0,0,0,0, | |
| 152 | copybitmap_trans(bitmap,tmpbitmaps[1],0,0,0,0, | |
| 152 | 153 | fillbitmap(tmpbitmaps[1],machine->pens[color_base],NULL); |
| 153 | 154 | |
| 154 | 155 | |
| 155 | 156 | if (planes_enabled[0]) |
| 156 | copybitmap(bitmap,tmpbitmaps[0],0,0,0,0, | |
| 157 | copybitmap_trans(bitmap,tmpbitmaps[0],0,0,0,0, | |
| 157 | 158 | fillbitmap(tmpbitmaps[0],machine->pens[color_base],NULL); |
| 158 | 159 | |
| 159 | 160 | if (input_code_pressed_once(KEYCODE_1)) /* plane 1 */ |
| r1649 | r1650 | |
| 249 | 250 | |
| 250 | 251 | //fillbitmap(bitmap,0,NULL); |
| 251 | 252 | |
| 252 | copybitmap(bitmap,tmpbitmaps[3],0,0,0,0,&machine->screen[0].visarea,TRANSPARENCY_NONE, 0 ); | |
| 253 | copybitmap(bitmap,tmpbitmaps[2],0,0,0,0,&machine->screen[0].visarea,TRANSPARENCY_PEN, machine->pens[color_base] ); | |
| 254 | copybitmap(bitmap,tmpbitmaps[1],0,0,0,0,&machine->screen[0].visarea,TRANSPARENCY_PEN, machine->pens[color_base] ); | |
| 255 | copybitmap(bitmap,tmpbitmaps[0],0,0,0,0,&machine->screen[0].visarea,TRANSPARENCY_PEN, machine->pens[color_base] ); | |
| 253 | copybitmap (bitmap,tmpbitmaps[3],0,0,0,0,cliprect); | |
| 254 | copybitmap_trans(bitmap,tmpbitmaps[2],0,0,0,0,cliprect,machine->pens[color_base] ); | |
| 255 | copybitmap_trans(bitmap,tmpbitmaps[1],0,0,0,0,cliprect,machine->pens[color_base] ); | |
| 256 | copybitmap_trans(bitmap,tmpbitmaps[0],0,0,0,0,cliprect,machine->pens[color_base] ); | |
| 256 | 257 | return 0; |
| 257 | 258 | } |
| 258 | 259 | |
| r1649 | r1650 | |
| 269 | 270 | |
| 270 | 271 | //fillbitmap(bitmap,0,NULL); |
| 271 | 272 | |
| 272 | copybitmap(bitmap,tmpbitmaps[3],0,0,0,0,&machine->screen[0].visarea,TRANSPARENCY_NONE, 0 ); //text | |
| 273 | copybitmap(bitmap,tmpbitmaps[2],0,0,0,0,&machine->screen[0].visarea,TRANSPARENCY_PEN, machine->pens[0] ); | |
| 274 | copybitmap(bitmap,tmpbitmaps[1],0,0,0,0,&machine->screen[0].visarea,TRANSPARENCY_PEN, machine->pens[0] ); //haircross | |
| 275 | copybitmap(bitmap,tmpbitmaps[0],0,0,0,0,&machine->screen[0].visarea,TRANSPARENCY_PEN, machine->pens[0] ); //sprites | |
| 273 | copybitmap (bitmap,tmpbitmaps[3],0,0,0,0,cliprect); //text | |
| 274 | copybitmap_trans(bitmap,tmpbitmaps[2],0,0,0,0,cliprect,machine->pens[0] ); | |
| 275 | copybitmap_trans(bitmap,tmpbitmaps[1],0,0,0,0,cliprect,machine->pens[0] ); //haircross | |
| 276 | copybitmap_trans(bitmap,tmpbitmaps[0],0,0,0,0,cliprect,machine->pens[0] ); //sprites | |
| 276 | 277 | return 0; |
| 277 | 278 | } |
| 278 | 279 |
| r1649 | r1650 | |
|---|---|---|
| 173 | 173 | ***************************************************************************/ |
| 174 | 174 | |
| 175 | 175 | #include "driver.h" |
| 176 | #include "deprecat.h" | |
| 176 | 177 | #include "namcona1.h" |
| 177 | 178 | #include "sound/c140.h" |
| 178 | 179 | #include "sound/namcona.h" |
| r1649 | r1650 | |
|---|---|---|
| 1417 | 1417 | } |
| 1418 | 1418 | |
| 1419 | 1419 | |
| 1420 | /* YEAR, NAME, PARENT, MACHINE, INPUT, INIT, MONITOR, COMPANY, FULLNAME, FLAGS */ | |
| 1420 | /* YEAR, NAME, PARENT, MACHINE, INPUT, INIT, MONITOR, COMPANY, FULLNAME, FLAGS */ | |
| 1421 | 1421 | GAME( 1987, legion, 0, legion, legion, legion, ROT270, "Nichibutsu", "Legion (ver 2.03)", GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) |
| 1422 | 1422 | GAME( 1987, legiono, legion, legiono, legion, legiono, ROT270, "Nichibutsu", "Legion (ver 1.05)", GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) |
| 1423 | GAME( 1987, terraf, 0, terraf, terraf, terraf, ROT0, "Nichibutsu", "Terra Force", GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) | |
| 1423 | GAME( 1987, terraf, 0, terraf, terraf, terraf, ROT0, "Nichibutsu", "Terra Force (set 1)", GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) | |
| 1424 | 1424 | GAME( 1987, terrafa, terraf, terraf, terraf, terrafu, ROT0, "Nichibutsu", "Terra Force (set 2)", GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) |
| 1425 | 1425 | GAME( 1987, terrafu, terraf, terraf, terraf, terrafu, ROT0, "Nichibutsu USA", "Terra Force (US)", GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) |
| 1426 | 1426 | GAME( 1987, kodure, 0, kodure, kodure, kodure, ROT0, "Nichibutsu", "Kodure Ookami (Japan)", GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) |
| 1427 | GAME( 1988, cclimbr2, 0, cclimbr2, cclimbr2, cclimbr2, ROT0, "Nichibutsu", "Crazy Climber 2 (Japan)", 0) | |
| 1428 | GAME( 1988, cclmbr2a, cclimbr2, cclimbr2, cclimbr2, cclimbr2, ROT0, "Nichibutsu", "Crazy Climber 2 (Japan Harder)", 0) | |
| 1429 | GAME( 1988, armedf, 0, armedf, armedf, armedf, ROT270, "Nichibutsu", "Armed Formation", 0) | |
| 1427 | GAME( 1988, cclimbr2, 0, cclimbr2, cclimbr2, cclimbr2, ROT0, "Nichibutsu", "Crazy Climber 2 (Japan)", 0) | |
| 1428 | GAME( 1988, cclmbr2a, cclimbr2, cclimbr2, cclimbr2, cclimbr2, ROT0, "Nichibutsu", "Crazy Climber 2 (Japan, Harder)", 0) | |
| 1429 | GAME( 1988, armedf, 0, armedf, armedf, armedf, ROT270, "Nichibutsu", "Armed Formation", 0) |
| r1649 | r1650 | |
|---|---|---|
| 248 | 248 | ***************************************************************************/ |
| 249 | 249 | |
| 250 | 250 | #include "driver.h" |
| 251 | #include "deprecat.h" | |
| 251 | 252 | #include "cpu/s2650/s2650.h" |
| 252 | 253 | #include "cpu/m6502/m6502.h" |
| 253 | 254 | #include "includes/dkong.h" |
| 254 | 255 | #include "machine/8257dma.h" |
| 255 | 256 | #include "machine/z80dma.h" |
| 256 | #include <math.h> | |
| 257 | 257 | |
| 258 | 258 | /************************************* |
| 259 | 259 | * |
| r1649 | r1650 | |
|---|---|---|
| 241 | 241 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 242 | 242 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 243 | 243 | MDRV_GFXDECODE(appoooh) |
| 244 | MDRV_PALETTE_LENGTH(32) | |
| 245 | MDRV_COLORTABLE_LENGTH(32*8+32*8) | |
| 244 | MDRV_PALETTE_LENGTH(32*8+32*8) | |
| 246 | 245 | |
| 247 | 246 | MDRV_PALETTE_INIT(appoooh) |
| 248 | 247 | MDRV_VIDEO_START(appoooh) |
| r1649 | r1650 | |
| 486 | 485 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 487 | 486 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 488 | 487 | MDRV_GFXDECODE(robowres) |
| 489 | MDRV_PALETTE_LENGTH(32) | |
| 490 | MDRV_COLORTABLE_LENGTH(32*8+32*8) | |
| 488 | MDRV_PALETTE_LENGTH(32*8+32*8) | |
| 491 | 489 | |
| 492 | 490 | MDRV_PALETTE_INIT(robowres) |
| 493 | 491 | MDRV_VIDEO_START(appoooh) |
| r1649 | r1650 | |
|---|---|---|
| 65 | 65 | |
| 66 | 66 | |
| 67 | 67 | |
| 68 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 69 | AM_RANGE(0x0000, 0x7fff) AM_READ(MRA8_ROM) | |
| 70 | AM_RANGE(0x8000, 0x8fff) AM_READ(MRA8_RAM) /* Video and Color ram */ | |
| 68 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 69 | AM_RANGE(0x0000, 0x7fff) AM_ROM | |
| 70 | AM_RANGE(0x8000, 0x8fff) AM_READWRITE(MRA8_RAM, travrusa_videoram_w) AM_BASE(&travrusa_videoram) | |
| 71 | AM_RANGE(0x9000, 0x9000) AM_WRITE(travrusa_scroll_x_low_w) | |
| 72 | AM_RANGE(0xa000, 0xa000) AM_WRITE(travrusa_scroll_x_high_w) | |
| 73 | AM_RANGE(0xc800, 0xc9ff) AM_WRITE(MWA8_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size) | |
| 74 | AM_RANGE(0xd000, 0xd000) AM_WRITE(irem_sound_cmd_w) | |
| 75 | AM_RANGE(0xd001, 0xd001) AM_WRITE(travrusa_flipscreen_w) /* + coin counters - not written by shtrider */ | |
| 71 | 76 | AM_RANGE(0xd000, 0xd000) AM_READ(input_port_0_r) /* IN0 */ |
| 72 | 77 | AM_RANGE(0xd001, 0xd001) AM_READ(input_port_1_r) /* IN1 */ |
| 73 | 78 | AM_RANGE(0xd002, 0xd002) AM_READ(input_port_2_r) /* IN2 */ |
| 74 | 79 | AM_RANGE(0xd003, 0xd003) AM_READ(input_port_3_r) /* DSW1 */ |
| 75 | 80 | AM_RANGE(0xd004, 0xd004) AM_READ(input_port_4_r) /* DSW2 */ |
| 76 | AM_RANGE(0xe000, 0xefff) AM_R | |
| 81 | AM_RANGE(0xe000, 0xefff) AM_R | |
| 77 | 82 | ADDRESS_MAP_END |
| 78 | 83 | |
| 79 | static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 80 | AM_RANGE(0x0000, 0x7fff) AM_WRITE(MWA8_ROM) | |
| 81 | AM_RANGE(0x8000, 0x8fff) AM_WRITE(travrusa_videoram_w) AM_BASE(&travrusa_videoram) | |
| 82 | AM_RANGE(0x9000, 0x9000) AM_WRITE(travrusa_scroll_x_low_w) | |
| 83 | AM_RANGE(0xa000, 0xa000) AM_WRITE(travrusa_scroll_x_high_w) | |
| 84 | AM_RANGE(0xc800, 0xc9ff) AM_WRITE(MWA8_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size) | |
| 85 | AM_RANGE(0xd000, 0xd000) AM_WRITE(irem_sound_cmd_w) | |
| 86 | AM_RANGE(0xd001, 0xd001) AM_WRITE(travrusa_flipscreen_w) /* + coin counters - not written by shtrider */ | |
| 87 | AM_RANGE(0xe000, 0xefff) AM_WRITE(MWA8_RAM) | |
| 88 | ADDRESS_MAP_END | |
| 89 | ||
| 90 | 84 | #define TRAV_COMMON\ |
| 91 | 85 | PORT_START_TAG("IN0")\ |
| 92 | 86 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )\ |
| r1649 | r1650 | |
| 333 | 327 | |
| 334 | 328 | /* basic machine hardware */ |
| 335 | 329 | MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz (?) */ |
| 336 | MDRV_CPU_PROGRAM_MAP( | |
| 330 | MDRV_CPU_PROGRAM_MAP( | |
| 337 | 331 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 338 | 332 | |
| 339 | 333 | MDRV_SCREEN_REFRESH_RATE(56.75) |
| r1649 | r1650 | |
| 356 | 350 | MDRV_VIDEO_UPDATE(travrusa) |
| 357 | 351 | |
| 358 | 352 | /* sound hardware */ |
| 359 | MDRV_IMPORT_FROM( | |
| 353 | MDRV_IMPORT_FROM( | |
| 360 | 354 | MACHINE_DRIVER_END |
| 361 | 355 | |
| 362 | 356 | static MACHINE_DRIVER_START( shtrider ) |
| r1649 | r1650 | |
| 385 | 379 | ROM_LOAD( "zr1-6a.k3", 0x4000, 0x2000, CRC(e1b51383) SHA1(34f4476c1bcc28c53c8ffa7b614f443a329aae13) ) |
| 386 | 380 | ROM_LOAD( "zr1-7.j3", 0x6000, 0x2000, CRC(85cd1a51) SHA1(7eb046514845cb9d2507ee24d1b2f7cc5402ac02) ) |
| 387 | 381 | |
| 388 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 389 | ROM_LOAD( "mr10.1a", 0xf000, 0x1000, CRC(a02ad8a0) SHA1(aff80b506dbecabed2a36eb743693940f6a22d16) ) | |
| 382 | ROM_REGION( 0x8000, REGION_CPU2, 0 ) | |
| 383 | ROM_LOAD( "mr10.1a", 0x7000, 0x1000, CRC(a02ad8a0) SHA1(aff80b506dbecabed2a36eb743693940f6a22d16) ) | |
| 390 | 384 | |
| 391 | 385 | ROM_REGION( 0x06000, REGION_GFX1, ROMREGION_DISPOSE ) |
| 392 | 386 | ROM_LOAD( "zippyrac.001", 0x00000, 0x2000, CRC(aa8994dd) SHA1(9b326ce52a03d723e5c3c1b5fd4aa8fa7f70f904) ) |
| r1649 | r1650 | |
| 411 | 405 | ROM_LOAD( "mr2.3k", 0x4000, 0x2000, CRC(8a2374ec) SHA1(7159731f5ef2485e3c822e3e8e51e9583dd1c6bc) ) |
| 412 | 406 | ROM_LOAD( "mr3.3j", 0x6000, 0x2000, CRC(2f04c341) SHA1(ae990d9d4abdd7d6ef9d21aa62125fe2e0067623) ) |
| 413 | 407 | |
| 414 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 415 | ROM_LOAD( "mr10.1a", 0xf000, 0x1000, CRC(a02ad8a0) SHA1(aff80b506dbecabed2a36eb743693940f6a22d16) ) | |
| 408 | ROM_REGION( 0x8000, REGION_CPU2, 0 ) | |
| 409 | ROM_LOAD( "mr10.1a", 0x7000, 0x1000, CRC(a02ad8a0) SHA1(aff80b506dbecabed2a36eb743693940f6a22d16) ) | |
| 416 | 410 | |
| 417 | 411 | ROM_REGION( 0x06000, REGION_GFX1, ROMREGION_DISPOSE ) |
| 418 | 412 | ROM_LOAD( "mr7.3e", 0x00000, 0x2000, CRC(492a60be) SHA1(9a3d6407b834eb7c3e3c8bb292ff124550a2787c) ) |
| r1649 | r1650 | |
| 438 | 432 | ROM_LOAD( "sr03a.bin", 0x4000, 0x2000, CRC(3ade11b9) SHA1(70b9dbd510cf6192194acf6876856d4c19bdf279) ) |
| 439 | 433 | ROM_LOAD( "sr04a.bin", 0x6000, 0x2000, CRC(02b96eaa) SHA1(ba4d61cf57142192684c45dd22720234d3521241) ) |
| 440 | 434 | |
| 441 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 442 | ROM_LOAD( "sr11a.bin", 0xe000, 0x2000, CRC(a8396b76) SHA1(614151fb1d25930e9fee4ab290a63f8fe97adbe6) ) | |
| 435 | ROM_REGION( 0x8000, REGION_CPU2, 0 ) | |
| 436 | ROM_LOAD( "sr11a.bin", 0x6000, 0x2000, CRC(a8396b76) SHA1(614151fb1d25930e9fee4ab290a63f8fe97adbe6) ) | |
| 443 | 437 | |
| 444 | 438 | ROM_REGION( 0x06000, REGION_GFX1, ROMREGION_DISPOSE ) |
| 445 | 439 | ROM_LOAD( "sr05a.bin", 0x0000, 0x2000, CRC(34449f79) SHA1(30aa9da07bf32282d213f63e50c564a336fd0102) ) |
| r1649 | r1650 | |
| 465 | 459 | ROM_LOAD( "3.bin", 0x4000, 0x2000, CRC(78d051cd) SHA1(e1dc2dcfc4af35bdd5245d23977e8640d81a43f1) ) |
| 466 | 460 | ROM_LOAD( "4.bin", 0x6000, 0x2000, CRC(02b96eaa) SHA1(ba4d61cf57142192684c45dd22720234d3521241) ) |
| 467 | 461 | |
| 468 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 469 | ROM_LOAD( "11.bin", 0xe000, 0x2000, CRC(a8396b76) SHA1(614151fb1d25930e9fee4ab290a63f8fe97adbe6) ) | |
| 462 | ROM_REGION( 0x8000, REGION_CPU2, 0 ) | |
| 463 | ROM_LOAD( "11.bin", 0x6000, 0x2000, CRC(a8396b76) SHA1(614151fb1d25930e9fee4ab290a63f8fe97adbe6) ) | |
| 470 | 464 | |
| 471 | 465 | ROM_REGION( 0x06000, REGION_GFX1, ROMREGION_DISPOSE ) |
| 472 | 466 | ROM_LOAD( "5.bin", 0x0000, 0x2000, CRC(34449f79) SHA1(30aa9da07bf32282d213f63e50c564a336fd0102) ) |
| r1649 | r1650 | |
|---|---|---|
| 32 | 32 | ***************************************************************************/ |
| 33 | 33 | |
| 34 | 34 | #include "driver.h" |
| 35 | #include "deprecat.h" | |
| 35 | 36 | #include "cpu/m6809/m6809.h" |
| 36 | 37 | #include "sound/2203intf.h" |
| 37 | 38 | #include "sound/3812intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "cpu/konami/konami.h" /* for the callback and the firq irq definition */ |
| 12 | 13 | #include "video/konamiic.h" |
| 13 | 14 | #include "sound/k007232.h" |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "cpu/konami/konami.h" |
| 9 | 10 | #include "cpu/z80/z80.h" |
| 10 | 11 | #include "video/konamiic.h" |
| r1649 | r1650 | |
|---|---|---|
| 93 | 93 | ***************************************************************************/ |
| 94 | 94 | |
| 95 | 95 | #include "driver.h" |
| 96 | #include "deprecat.h" | |
| 96 | 97 | #include "cpu/z80/z80.h" |
| 97 | 98 | #include "sound/ay8910.h" |
| 98 | 99 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
| 1210 | 1211 | |
| 1211 | 1212 | VIDEO_UPDATE(ddenlovr) |
| 1212 | 1213 | { |
| 1213 | copybitmap(bitmap,framebuffer,0,0,0,0,cliprect | |
| 1214 | copybitmap(bitmap,framebuffer,0,0,0,0,cliprect | |
| 1214 | 1215 | return 0; |
| 1215 | 1216 | } |
| 1216 | 1217 | |
| r1649 | r1650 | |
| 8487 | 8488 | GAME( 1993, quizchql, quizchq, quizchq, quizchq, 0, ROT0, "Nakanihon (Laxan license)", "Quiz Channel Question (Ver 1.23) (Taiwan?)", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) |
| 8488 | 8489 | GAME( 1993, animaljr, 0, mmpanic, animaljr, 0, ROT0, "Nakanihon + East Technology (Taito license)", "Animalandia Jr.", GAME_NO_COCKTAIL | GAME_IMPERFECT_SOUND ) |
| 8489 | 8490 | GAME( 1994, hginga, 0, hginga, hginga, 0, ROT0, "Dynax", "Hanafuda Hana Ginga", GAME_NO_COCKTAIL ) |
| 8490 | GAME( 1994, mjmyster, 0, mjmyster, mjmyster, 0, ROT0, "Dynax", "Mahjong The Mysterious World | |
| 8491 | GAME( 1994, mjmyster, 0, mjmyster, mjmyster, 0, ROT0, "Dynax", "Mahjong The Mysterious World | |
| 8491 | 8492 | GAME( 1994, mjmywrld, mjmyster, mjmywrld, mjmyster, 0, ROT0, "Dynax", "Mahjong The Mysterious World (set 2)", GAME_NO_COCKTAIL ) |
| 8492 | 8493 | GAME( 1994, mjmyornt, 0, mjmyornt, mjmyornt, 0, ROT0, "Dynax", "Mahjong The Mysterious Orient", GAME_NO_COCKTAIL ) |
| 8493 | 8494 | GAME( 1994, mjmyuniv, 0, mjmyuniv, mjmyster, 0, ROT0, "Dynax", "Mahjong The Mysterious Universe", GAME_NO_COCKTAIL ) |
| r1649 | r1650 | |
|---|---|---|
| 69 | 69 | |
| 70 | 70 | |
| 71 | 71 | #include "driver.h" |
| 72 | #include "deprecat.h" | |
| 72 | 73 | #include "cpu/m6809/m6809.h" |
| 73 | 74 | #include "cpu/z80/z80.h" |
| 74 | 75 | #include "cpu/i8039/i8039.h" |
| r1649 | r1650 | |
|---|---|---|
| 57 | 57 | - Finish the Inputs (different wheels and pedals) |
| 58 | 58 | - Find infos about the communication stuff (even if it won't be supported) |
| 59 | 59 | |
| 60 | Dip locations verified from manual for: | |
| 61 | ||
| 62 | - berlwall | |
| 63 | - mgcrystl | |
| 64 | - blazeon | |
| 65 | - bakubrkr | |
| 66 | - bloodwar | |
| 67 | - gtmr | |
| 68 | - gtmr2 | |
| 69 | - shogwarr | |
| 70 | ||
| 60 | 71 | ***************************************************************************/ |
| 61 | 72 | |
| 62 | 73 | #include "driver.h" |
| 74 | #include "deprecat.h" | |
| 63 | 75 | #include "machine/eeprom.h" |
| 64 | 76 | #include "includes/kaneko16.h" |
| 65 | 77 | #include "sound/2203intf.h" |
| r1649 | r1650 | |
| 868 | 880 | |
| 869 | 881 | static INPUT_PORTS_START( bakubrkr ) |
| 870 | 882 | PORT_START // IN0 - Player 1 + DSW - e00000.w |
| 871 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 883 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:1") | |
| 872 | 884 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 873 | 885 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 874 | PORT_SERVICE( 0x0002, IP_ACTIVE_LOW ) | |
| 875 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unused ) ) /* All other game settings done through the test mode */ | |
| 876 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 877 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 878 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unused ) ) | |
| 879 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 880 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 881 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unused ) ) | |
| 882 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 883 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 884 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) ) | |
| 885 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 886 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 887 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) | |
| 888 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 889 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 890 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unused ) ) | |
| 891 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 892 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 886 | PORT_SERVICE_DIPLOC( 0x0002, IP_ACTIVE_LOW, "SW1:2" ) | |
| 887 | /* All other game settings done through the test mode */ | |
| 888 | PORT_DIPUNUSED_DIPLOC( 0x0004, 0x0004, "SW1:3" ) /* Listed as "Unused" */ | |
| 889 | PORT_DIPUNUSED_DIPLOC( 0x0008, 0x0008, "SW1:4" ) /* Listed as "Unused" */ | |
| 890 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0010, "SW1:5" ) /* Listed as "Unused" */ | |
| 891 | PORT_DIPUNUSED_DIPLOC( 0x0020, 0x0020, "SW1:6" ) /* Listed as "Unused" */ | |
| 892 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "SW1:7" ) /* Listed as "Unused" */ | |
| 893 | PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0080, "SW1:8" ) /* Listed as "Unused" */ | |
| 893 | 894 | |
| 894 | 895 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 895 | 896 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1649 | r1650 | |
| 977 | 978 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 978 | 979 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 979 | 980 | |
| 980 | PORT_START // IN4 - DSW 1 - $200018.b <- ! $80001d.b | |
| 981 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) | |
| 981 | PORT_START_TAG("DSW1") // IN4 - DSW 1 - $200018.b <- ! $80001d.b | |
| 982 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:1") | |
| 982 | 983 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 983 | 984 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 984 | PORT_DIPNAME( 0x02, 0x02, "Reserved" ) | |
| 985 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 986 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 987 | PORT_DIPNAME( 0x1c, 0x1c, DEF_STR( Coin_A ) ) | |
| 985 | PORT_DIPUNUSED_DIPLOC( 0x02, 0x02, "SW1:2" ) /* Listed as "Unused" */ | |
| 986 | PORT_DIPNAME( 0x1c, 0x1c, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:3,4,5") | |
| 988 | 987 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) |
| 989 | 988 | PORT_DIPSETTING( 0x04, DEF_STR( 3C_1C ) ) |
| 990 | 989 | PORT_DIPSETTING( 0x0c, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 993 | 992 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_2C ) ) |
| 994 | 993 | PORT_DIPSETTING( 0x14, DEF_STR( 1C_3C ) ) |
| 995 | 994 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_4C ) ) |
| 996 | PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coin_B ) ) | |
| 995 | PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:6,7,8") | |
| 997 | 996 | PORT_DIPSETTING( 0x60, DEF_STR( 2C_1C ) ) |
| 998 | 997 | PORT_DIPSETTING( 0xe0, DEF_STR( 1C_1C ) ) |
| 999 | 998 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_3C ) ) |
| r1649 | r1650 | |
| 1003 | 1002 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_5C ) ) |
| 1004 | 1003 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) |
| 1005 | 1004 | |
| 1006 | PORT_START // IN5 - DSW 2 - $200019.b <- $80001f.b | |
| 1007 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) | |
| 1005 | PORT_START_TAG("DSW2") // IN5 - DSW 2 - $200019.b <- $80001f.b | |
| 1006 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 1008 | 1007 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) |
| 1009 | 1008 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) |
| 1010 | 1009 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) |
| 1011 | 1010 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 1012 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) // 1p lives at 202982.b | |
| 1013 | PORT_DIPSETTING( 0x00, "1" ) | |
| 1014 | PORT_DIPSETTING( 0x0c, "2" ) | |
| 1015 | PORT_DIPSETTING( 0x08, "3" ) | |
| 1011 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") // 1p lives at 202982.b | |
| 1012 | PORT_DIPSETTING( 0x08, "2" ) | |
| 1013 | PORT_DIPSETTING( 0x0c, "3" ) | |
| 1016 | 1014 | PORT_DIPSETTING( 0x04, "5" ) |
| 1017 | PORT_DIPNAME( 0x30, 0x30, "Country" ) | |
| 1015 | PORT_DIPSETTING( 0x00, "7" ) | |
| 1016 | PORT_DIPNAME( 0x30, 0x30, "Country" ) PORT_DIPLOCATION("SW2:5,6") | |
| 1018 | 1017 | PORT_DIPSETTING( 0x30, "England" ) |
| 1019 | 1018 | PORT_DIPSETTING( 0x20, "Italy" ) |
| 1020 | 1019 | PORT_DIPSETTING( 0x10, "Germany" ) |
| 1021 | PORT_DIPSETTING( 0x00, "Freeze Screen" ) | |
| 1022 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Demo_Sounds ) ) | |
| 1020 | PORT_DIPSETTING( 0x00, "Freeze Screen" ) // Not documented | |
| 1021 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:7") | |
| 1023 | 1022 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1024 | 1023 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) |
| 1025 | PORT_SERVICE( | |
| 1024 | PORT_SERVICE_DIPLOC( | |
| 1026 | 1025 | INPUT_PORTS_END |
| 1027 | 1026 | |
| 1028 | 1027 | |
| r1649 | r1650 | |
| 1033 | 1032 | // Same as berlwall, but for a different lives setting |
| 1034 | 1033 | |
| 1035 | 1034 | static INPUT_PORTS_START( berlwalt ) |
| 1036 | PORT_START // IN0 - Player 1 - 680000.w | |
| 1037 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1038 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1039 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1040 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1041 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1042 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1043 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1044 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1035 | PORT_INCLUDE(berlwall) | |
| 1036 | PORT_MODIFY("DSW2") | |
| 1045 | 1037 | |
| 1046 | PORT_START // IN1 - Player 2 - 680002.w | |
| 1047 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1048 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1049 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1050 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1051 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1052 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1053 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 1054 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1055 | ||
| 1056 | PORT_START // IN2 - Coins - 680004.w | |
| 1057 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1058 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1059 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2) | |
| 1060 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(2) | |
| 1061 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) | |
| 1062 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_TILT ) | |
| 1063 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1064 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1065 | ||
| 1066 | PORT_START // IN3 - ? - 680006.w | |
| 1067 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1068 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1069 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1070 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1071 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1072 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1073 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1074 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1075 | ||
| 1076 | PORT_START // IN4 - DSW 1 - $80001d.b | |
| 1077 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) | |
| 1078 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1079 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1080 | PORT_DIPNAME( 0x02, 0x02, "Reserved" ) | |
| 1081 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 1082 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1083 | PORT_DIPNAME( 0x1c, 0x1c, DEF_STR( Coin_A ) ) | |
| 1084 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 1085 | PORT_DIPSETTING( 0x04, DEF_STR( 3C_1C ) ) | |
| 1086 | PORT_DIPSETTING( 0x0c, DEF_STR( 2C_1C ) ) | |
| 1087 | PORT_DIPSETTING( 0x1c, DEF_STR( 1C_1C ) ) | |
| 1088 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_3C ) ) | |
| 1089 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_2C ) ) | |
| 1090 | PORT_DIPSETTING( 0x14, DEF_STR( 1C_3C ) ) | |
| 1091 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_4C ) ) | |
| 1092 | PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coin_B ) ) | |
| 1093 | PORT_DIPSETTING( 0x60, DEF_STR( 2C_1C ) ) | |
| 1094 | PORT_DIPSETTING( 0xe0, DEF_STR( 1C_1C ) ) | |
| 1095 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_3C ) ) | |
| 1096 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) | |
| 1097 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_3C ) ) | |
| 1098 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) | |
| 1099 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_5C ) ) | |
| 1100 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) | |
| 1101 | ||
| 1102 | PORT_START // IN5 - DSW 2 - $80001f.b | |
| 1103 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) | |
| 1104 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) | |
| 1105 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) | |
| 1106 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 1107 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 1108 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) | |
| 1109 | PORT_DIPSETTING( 0x00, "7" ) | |
| 1038 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 1039 | PORT_DIPSETTING( 0x00, "1" ) | |
| 1040 | PORT_DIPSETTING( 0x0c, "2" ) | |
| 1041 | PORT_DIPSETTING( 0x08, "3" ) | |
| 1110 | 1042 | PORT_DIPSETTING( 0x04, "5" ) |
| 1111 | PORT_DIPSETTING( 0x0c, "3" ) | |
| 1112 | PORT_DIPSETTING( 0x08, "2" ) | |
| 1113 | PORT_DIPNAME( 0x30, 0x30, "Country" ) | |
| 1114 | PORT_DIPSETTING( 0x30, "England" ) | |
| 1115 | PORT_DIPSETTING( 0x20, "Italy" ) | |
| 1116 | PORT_DIPSETTING( 0x10, "Germany" ) | |
| 1117 | PORT_DIPSETTING( 0x00, "Freeze Screen" ) | |
| 1118 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Demo_Sounds ) ) | |
| 1119 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1120 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 1121 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) | |
| 1122 | 1043 | INPUT_PORTS_END |
| 1123 | 1044 | |
| 1124 | 1045 | |
| r1649 | r1650 | |
| 1128 | 1049 | |
| 1129 | 1050 | static INPUT_PORTS_START( blazeon ) |
| 1130 | 1051 | PORT_START // IN0 - Player 1 + DSW - c00000.w |
| 1131 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) | |
| 1132 | PORT_DIPSETTING( 0x0002, DEF_STR( Easy ) ) | |
| 1133 | PORT_DIPSETTING( 0x0003, DEF_STR( Normal ) ) | |
| 1134 | PORT_DIPSETTING( 0x0001, DEF_STR( Hard ) ) | |
| 1135 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 1136 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Lives ) ) | |
| 1137 | PORT_DIPSETTING( 0x0000, "2" ) | |
| 1138 | PORT_DIPSETTING( 0x000c, "3" ) | |
| 1139 | PORT_DIPSETTING( 0x0008, "4" ) | |
| 1140 | PORT_DIPSETTING( 0x0004, "5" ) | |
| 1141 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Demo_Sounds ) ) | |
| 1142 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 1143 | PORT_DIPSETTING( 0x0010, DEF_STR( On ) ) | |
| 1144 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) ) | |
| 1145 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 1146 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1147 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) | |
| 1148 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 1149 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1150 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 1052 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 1053 | PORT_DIPSETTING( 0x0002, DEF_STR( Easy ) ) | |
| 1054 | PORT_DIPSETTING( 0x0003, DEF_STR( Normal ) ) | |
| 1055 | PORT_DIPSETTING( 0x0001, DEF_STR( Hard ) ) | |
| 1056 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 1057 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 1058 | PORT_DIPSETTING( 0x0000, "2" ) | |
| 1059 | PORT_DIPSETTING( 0x000c, "3" ) | |
| 1060 | PORT_DIPSETTING( 0x0008, "4" ) | |
| 1061 | PORT_DIPSETTING( 0x0004, "5" ) | |
| 1062 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:5") | |
| 1063 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 1064 | PORT_DIPSETTING( 0x0010, DEF_STR( On ) ) | |
| 1065 | PORT_DIPUNUSED_DIPLOC( 0x0020, 0x0020, "SW2:6" ) /* Listed as "Unused" */ | |
| 1066 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "SW2:7" ) /* Listed as "Unused" */ | |
| 1067 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW2:8" ) | |
| 1151 | 1068 | |
| 1152 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 1153 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 1154 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 1155 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 1156 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1157 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1158 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1159 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2) | |
| 1069 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 1070 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 1071 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 1072 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 1073 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1074 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1075 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1076 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2) | |
| 1160 | 1077 | |
| 1161 | 1078 | PORT_START // IN1 - Player 2 - c00002.w |
| 1162 | PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coin_A ) ) | |
| 1163 | PORT_DIPSETTING( 0x0007, DEF_STR( 4C_1C ) ) | |
| 1164 | PORT_DIPSETTING( 0x0008, DEF_STR( 3C_1C ) ) | |
| 1079 | PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3,4") | |
| 1080 | PORT_DIPSETTING( 0x0007, DEF_STR( 4C_1C ) ) | |
| 1081 | PORT_DIPSETTING( 0x0008, DEF_STR( 3C_1C ) ) | |
| 1165 | 1082 | PORT_DIPSETTING( 0x0005, "6 Coins/3 Credits" ) |
| 1166 | PORT_DIPSETTING( 0x0009, DEF_STR( 2C_1C ) ) | |
| 1167 | PORT_DIPSETTING( 0x0004, DEF_STR( 4C_3C ) ) | |
| 1168 | PORT_DIPSETTING( 0x000f, DEF_STR( 1C_1C ) ) | |
| 1169 | // PORT_DIPSETTING( 0x0000, DEF_STR( 1C_1C ) ) | |
| 1083 | PORT_DIPSETTING( 0x0009, DEF_STR( 2C_1C ) ) | |
| 1084 | PORT_DIPSETTING( 0x0004, DEF_STR( 4C_3C ) ) | |
| 1085 | PORT_DIPSETTING( 0x000f, DEF_STR( 1C_1C ) ) | |
| 1086 | // PORT_DIPSETTING( 0x0000, DEF_STR( 1C_1C ) ) | |
| 1170 | 1087 | PORT_DIPSETTING( 0x0003, "5 Coins/6 Credits" ) |
| 1171 | PORT_DIPSETTING( 0x0002, DEF_STR( 4C_5C ) ) | |
| 1172 | PORT_DIPSETTING( 0x0006, DEF_STR( 2C_3C ) ) | |
| 1173 | // PORT_DIPSETTING( 0x0001, DEF_STR( 2C_3C ) ) | |
| 1174 | PORT_DIPSETTING( 0x000e, DEF_STR( 1C_2C ) ) | |
| 1175 | PORT_DIPSETTING( 0x000d, DEF_STR( 1C_3C ) ) | |
| 1176 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_4C ) ) | |
| 1177 | PORT_DIPSETTING( 0x000b, DEF_STR( 1C_5C ) ) | |
| 1178 | PORT_DIPSETTING( 0x000a, DEF_STR( 1C_6C ) ) | |
| 1088 | PORT_DIPSETTING( 0x0002, DEF_STR( 4C_5C ) ) | |
| 1089 | PORT_DIPSETTING( 0x0006, DEF_STR( 2C_3C ) ) | |
| 1090 | // PORT_DIPSETTING( 0x0001, DEF_STR( 2C_3C ) ) | |
| 1091 | PORT_DIPSETTING( 0x000e, DEF_STR( 1C_2C ) ) | |
| 1092 | PORT_DIPSETTING( 0x000d, DEF_STR( 1C_3C ) ) | |
| 1093 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_4C ) ) | |
| 1094 | PORT_DIPSETTING( 0x000b, DEF_STR( 1C_5C ) ) | |
| 1095 | PORT_DIPSETTING( 0x000a, DEF_STR( 1C_6C ) ) | |
| 1179 | 1096 | |
| 1180 | PORT_DIPNAME( 0x00f0, 0x00f0, DEF_STR( Coin_B ) ) | |
| 1181 | PORT_DIPSETTING( 0x0070, DEF_STR( 4C_1C ) ) | |
| 1182 | PORT_DIPSETTING( 0x0080, DEF_STR( 3C_1C ) ) | |
| 1097 | PORT_DIPNAME( 0x00f0, 0x00f0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:5,6,7,8") | |
| 1098 | PORT_DIPSETTING( 0x0070, DEF_STR( 4C_1C ) ) | |
| 1099 | PORT_DIPSETTING( 0x0080, DEF_STR( 3C_1C ) ) | |
| 1183 | 1100 | PORT_DIPSETTING( 0x0050, "6 Coins/3 Credits" ) |
| 1184 | PORT_DIPSETTING( 0x0090, DEF_STR( 2C_1C ) ) | |
| 1185 | PORT_DIPSETTING( 0x0040, DEF_STR( 4C_3C ) ) | |
| 1186 | PORT_DIPSETTING( 0x00f0, DEF_STR( 1C_1C ) ) | |
| 1187 | // PORT_DIPSETTING( 0x0000, DEF_STR( 1C_1C ) ) | |
| 1101 | PORT_DIPSETTING( 0x0090, DEF_STR( 2C_1C ) ) | |
| 1102 | PORT_DIPSETTING( 0x0040, DEF_STR( 4C_3C ) ) | |
| 1103 | PORT_DIPSETTING( 0x00f0, DEF_STR( 1C_1C ) ) | |
| 1104 | // PORT_DIPSETTING( 0x0000, DEF_STR( 1C_1C ) ) | |
| 1188 | 1105 | PORT_DIPSETTING( 0x0030, "5 Coins/6 Credits" ) |
| 1189 | PORT_DIPSETTING( 0x0020, DEF_STR( 4C_5C ) ) | |
| 1190 | PORT_DIPSETTING( 0x0060, DEF_STR( 2C_3C ) ) | |
| 1191 | // PORT_DIPSETTING( 0x0010, DEF_STR( 2C_3C ) ) | |
| 1192 | PORT_DIPSETTING( 0x00e0, DEF_STR( 1C_2C ) ) | |
| 1193 | PORT_DIPSETTING( 0x00d0, DEF_STR( 1C_3C ) ) | |
| 1194 | PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_4C ) ) | |
| 1195 | PORT_DIPSETTING( 0x00b0, DEF_STR( 1C_5C ) ) | |
| 1196 | PORT_DIPSETTING( 0x00a0, DEF_STR( 1C_6C ) ) | |
| 1106 | PORT_DIPSETTING( 0x0020, DEF_STR( 4C_5C ) ) | |
| 1107 | PORT_DIPSETTING( 0x0060, DEF_STR( 2C_3C ) ) | |
| 1108 | // PORT_DIPSETTING( 0x0010, DEF_STR( 2C_3C ) ) | |
| 1109 | PORT_DIPSETTING( 0x00e0, DEF_STR( 1C_2C ) ) | |
| 1110 | PORT_DIPSETTING( 0x00d0, DEF_STR( 1C_3C ) ) | |
| 1111 | PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_4C ) ) | |
| 1112 | PORT_DIPSETTING( 0x00b0, DEF_STR( 1C_5C ) ) | |
| 1113 | PORT_DIPSETTING( 0x00a0, DEF_STR( 1C_6C ) ) | |
| 1197 | 1114 | |
| 1198 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 1199 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 1200 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 1201 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 1202 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1203 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1204 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1205 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(2) | |
| 1115 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 1116 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 1117 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 1118 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 1119 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1120 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1121 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1122 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(2) | |
| 1206 | 1123 | |
| 1207 | 1124 | PORT_START // IN2 - ? - c00004.w |
| 1208 | PORT_BIT( | |
| 1125 | PORT_BIT( | |
| 1209 | 1126 | |
| 1210 | 1127 | PORT_START // IN3 - Other Buttons - c00006.w |
| 1211 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1212 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1213 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1214 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1215 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1216 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) | |
| 1217 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_TILT ) | |
| 1218 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1128 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1129 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1130 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1131 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1132 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1133 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) | |
| 1134 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_TILT ) | |
| 1135 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1219 | 1136 | INPUT_PORTS_END |
| 1220 | 1137 | |
| 1221 | 1138 | /*************************************************************************** |
| r1649 | r1650 | |
| 1264 | 1181 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1265 | 1182 | |
| 1266 | 1183 | PORT_START // IN4 - DSW from the MCU - $10497e.b <- $208000.b |
| 1267 | PORT_DIPNAME( 0x0100, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 1268 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 1269 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1270 | PORT_SERVICE( 0x0200, IP_ACTIVE_LOW ) | |
| 1271 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Flip_Screen ) ) | |
| 1184 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1") | |
| 1185 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 1186 | PORT_DIPSETTING( 0x0100, DEF_STR( On ) ) | |
| 1187 | PORT_SERVICE_DIPLOC( 0x0200, IP_ACTIVE_LOW, "SW1:2" ) | |
| 1188 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:3") | |
| 1272 | 1189 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) |
| 1273 | 1190 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1274 | PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Difficulty ) ) | |
| 1191 | PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:4,5,6") | |
| 1275 | 1192 | PORT_DIPSETTING( 0x3800, "1 Easy" ) |
| 1276 | 1193 | PORT_DIPSETTING( 0x3000, "2" ) |
| 1277 | 1194 | PORT_DIPSETTING( 0x2800, "3" ) |
| r1649 | r1650 | |
| 1280 | 1197 | PORT_DIPSETTING( 0x1000, "6" ) |
| 1281 | 1198 | PORT_DIPSETTING( 0x0800, "7" ) |
| 1282 | 1199 | PORT_DIPSETTING( 0x0000, "8 Hard" ) |
| 1283 | PORT_DIPNAME( 0x4000, 0x4000, "Join During Game" ) | |
| 1284 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 1285 | PORT_DIPSETTING( 0x4000, DEF_STR( On ) ) | |
| 1286 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Allow_Continue ) ) | |
| 1287 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 1288 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1200 | PORT_DIPNAME( 0x4000, 0x4000, "Can Join During Game" ) PORT_DIPLOCATION("SW1:7") | |
| 1201 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) | |
| 1202 | PORT_DIPSETTING( 0x4000, DEF_STR( Yes ) ) | |
| 1203 | PORT_DIPNAME( 0x8000, 0x8000, "Start 2 Credits/Continue 1 Credit" ) PORT_DIPLOCATION("SW1:8") | |
| 1204 | PORT_DIPSETTING( 0x8000, DEF_STR( No ) ) | |
| 1205 | PORT_DIPSETTING( 0x0000, DEF_STR( Yes ) ) | |
| 1289 | 1206 | INPUT_PORTS_END |
| 1290 | 1207 | |
| 1291 | 1208 | /*************************************************************************** |
| r1649 | r1650 | |
| 1405 | 1322 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1406 | 1323 | |
| 1407 | 1324 | PORT_START // IN4 - DSW from the MCU - 101265.b <- 206000.b |
| 1408 | PORT_SERVICE( 0x0100, IP_ACTIVE_LOW ) | |
| 1409 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Flip_Screen ) ) | |
| 1325 | PORT_SERVICE_DIPLOC( 0x0100, IP_ACTIVE_LOW, "SW1:1" ) | |
| 1326 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:2") | |
| 1410 | 1327 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) |
| 1411 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1412 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Cabinet ) ) | |
| 1413 | PORT_DIPSETTING( 0x0400, DEF_STR( Upright ) ) | |
| 1328 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1329 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:3") | |
| 1330 | PORT_DIPSETTING( 0x0400, DEF_STR( Upright ) ) | |
| 1414 | 1331 | PORT_DIPSETTING( 0x0000, DEF_STR( Cocktail ) ) |
| 1415 | PORT_DIPNAME( 0x1800, 0x1800, DEF_STR( Controls ) ) | |
| 1416 | PORT_DIPSETTING( 0x1800, "1 Joystick" ) | |
| 1417 | PORT_DIPSETTING( 0x0800, "2 Joysticks" ) | |
| 1418 | PORT_DIPSETTING( 0x1000, "Wheel (360)" ) | |
| 1419 | PORT_DIPSETTING( 0x0000, "Wheel (270)" ) | |
| 1420 | PORT_DIPNAME( 0x2000, 0x2000, "Use Brake" ) | |
| 1332 | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Controller ) ) PORT_DIPLOCATION("SW1:4") | |
| 1333 | PORT_DIPSETTING( 0x0800, DEF_STR( Joystick ) ) | |
| 1334 | PORT_DIPSETTING( 0x0000, "Wheel" ) | |
| 1335 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Controls ) ) PORT_DIPLOCATION("SW1:5") | |
| 1336 | PORT_DIPSETTING( 0x1000, "1P Side" ) /* 360 degree wheel if SW1:4 set to wheel */ | |
| 1337 | PORT_DIPSETTING( 0x0000, "Both Sides" ) /* 270 degree wheel if SW1:4 set to wheel */ | |
| 1338 | PORT_DIPNAME( 0x2000, 0x2000, "Use Brake" ) PORT_DIPLOCATION("SW1:6") /* Valid only when joystick is used */ | |
| 1421 | 1339 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 1422 | PORT_DIPSETTING( 0x2000, DEF_STR( On ) ) | |
| 1423 | PORT_DIPNAME( 0xc000, 0xc000, "National Anthem & Flag" ) | |
| 1424 | PORT_DIPSETTING( 0xc000, "Use Memory" ) | |
| 1340 | PORT_DIPSETTING( 0x2000, DEF_STR( On ) ) | |
| 1341 | PORT_DIPNAME( 0xc000, 0xc000, "National Anthem & Flag" ) PORT_DIPLOCATION("SW1:7,8") | |
| 1342 | PORT_DIPSETTING( 0xc000, "Use Memory" ) | |
| 1425 | 1343 | PORT_DIPSETTING( 0x8000, "Anthem Only" ) |
| 1426 | PORT_DIPSETTING( 0x4000, "Flag Only" ) | |
| 1427 | PORT_DIPSETTING( 0x0000, DEF_STR( None ) ) | |
| 1344 | PORT_DIPSETTING( 0x4000, "Flag Only" ) | |
| 1345 | PORT_DIPSETTING( 0x0000, DEF_STR( None ) ) | |
| 1428 | 1346 | |
| 1429 | 1347 | PORT_START // IN5 - Wheel - 100015.b <- ffffe.b |
| 1430 | 1348 | PORT_BIT ( 0x00ff, 0x0080, IPT_PADDLE ) PORT_SENSITIVITY(30) PORT_KEYDELTA(1) |
| r1649 | r1650 | |
| 1477 | 1395 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1478 | 1396 | |
| 1479 | 1397 | PORT_START // IN4 - DSW from the MCU - 1016f7.b <- 206000.b |
| 1480 | PORT_DIPNAME( 0x0700, 0x0700, "Communication" ) | |
| 1481 | PORT_DIPSETTING( 0x0700, DEF_STR( None ) ) | |
| 1482 | PORT_DIPSETTING( 0x0600, "Machine 1" ) | |
| 1483 | PORT_DIPSETTING( 0x0500, "Machine 2" ) | |
| 1484 | PORT_DIPSETTING( 0x0400, "Machine 3" ) | |
| 1485 | PORT_DIPSETTING( 0x0300, "Machine 4" ) | |
| 1398 | PORT_DIPNAME( 0x0700, 0x0700, "Linked Operation Board Number" ) PORT_DIPLOCATION("SW1:6,7,8") | |
| 1399 | PORT_DIPSETTING( 0x0700, "No Communication" ) | |
| 1400 | PORT_DIPSETTING( 0x0600, "Board #1" ) | |
| 1401 | PORT_DIPSETTING( 0x0500, "Board #2" ) | |
| 1402 | PORT_DIPSETTING( 0x0400, "Board #3" ) | |
| 1403 | PORT_DIPSETTING( 0x0300, "Board #4" ) | |
| 1486 | 1404 | /* 0x0000 to 0x0200 : "Machine 4" |
| 1487 | 1405 | PORT_DIPSETTING( 0x0200, "Machine 4 (0x0200)" ) |
| 1488 | 1406 | PORT_DIPSETTING( 0x0100, "Machine 4 (0x0100)" ) |
| 1489 | 1407 | PORT_DIPSETTING( 0x0000, "Machine 4 (0x0000)" ) |
| 1490 | 1408 | */ |
| 1491 | PORT_DIPNAME( 0x1800, 0x1800, DEF_STR( Controls ) ) | |
| 1409 | PORT_DIPNAME( 0x1800, 0x1800, DEF_STR( Controls ) ) PORT_DIPLOCATION("SW1:4,5") | |
| 1492 | 1410 | PORT_DIPSETTING( 0x1800, DEF_STR( Joystick ) ) |
| 1493 | 1411 | PORT_DIPSETTING( 0x0800, "Wheel (360)" ) // Not working correctly in race |
| 1494 | 1412 | PORT_DIPSETTING( 0x1000, "Wheel (270D)" ) // Not working correctly ! |
| 1495 | 1413 | PORT_DIPSETTING( 0x0000, "Wheel (270A)" ) // Not working correctly in race |
| 1496 | PORT_DIPNAME( 0x2000, 0x2000, "Pedal Function" ) | |
| 1497 | PORT_DIPSETTING( 0x2000, "Microswitch" ) | |
| 1498 | // PORT_DIPSETTING( 0x0000, "Potentiometer" ) // Not implemented yet | |
| 1499 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Flip_Screen ) ) | |
| 1414 | PORT_DIPNAME( 0x2000, 0x2000, "Optional Mode Of Pedal Function" ) PORT_DIPLOCATION("SW1:3") | |
| 1415 | PORT_DIPSETTING( 0x2000, "Microswitch" ) // "This mode also corresponds to the two buttons used with joystick." | |
| 1416 | PORT_DIPSETTING( 0x0000, "Potentiometer" ) // Not implemented yet | |
| 1417 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:2") | |
| 1500 | 1418 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) |
| 1501 | 1419 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1502 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) | |
| 1420 | PORT_SERVICE_DIPLOC( 0x8000, IP_ACTIVE_LOW, "SW1:1" ) | |
| 1503 | 1421 | |
| 1504 | 1422 | PORT_START // IN5 - Wheel (270A) - 100019.b <- fffff.b |
| 1505 | 1423 | PORT_BIT ( 0x00ff, 0x0080, IPT_PADDLE ) PORT_SENSITIVITY(30) PORT_KEYDELTA(1) |
| r1649 | r1650 | |
| 1528 | 1446 | |
| 1529 | 1447 | static INPUT_PORTS_START( mgcrystl ) |
| 1530 | 1448 | PORT_START // IN0 - Player 1 + DSW - c00000.w |
| 1531 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 1532 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 1533 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1534 | PORT_SERVICE( 0x0002, IP_ACTIVE_LOW ) | |
| 1535 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unused ) ) /* All other game settings done through the test mode */ | |
| 1536 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 1537 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1538 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unused ) ) | |
| 1539 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 1540 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1541 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unused ) ) | |
| 1542 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 1543 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1544 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) ) | |
| 1545 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 1546 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1547 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unknown ) ) // TESTED! | |
| 1548 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 1549 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1550 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unused ) ) | |
| 1551 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 1552 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1449 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:1") | |
| 1450 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 1451 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1452 | PORT_SERVICE_DIPLOC( 0x0002, IP_ACTIVE_LOW, "SW1:2" ) | |
| 1453 | /* All other game settings done through the test mode */ | |
| 1454 | PORT_DIPUNUSED_DIPLOC( 0x0004, 0x0004, "SW1:3" ) /* Listed as "Unused" */ | |
| 1455 | PORT_DIPUNUSED_DIPLOC( 0x0008, 0x0008, "SW1:4" ) /* Listed as "Unused" */ | |
| 1456 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0010, "SW1:5" ) /* Listed as "Unused" */ | |
| 1457 | PORT_DIPUNUSED_DIPLOC( 0x0020, 0x0020, "SW1:6" ) /* Listed as "Unused" */ | |
| 1458 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "SW1:7" ) /* Listed as "Unused" */ | |
| 1459 | PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0080, "SW1:8" ) /* Listed as "Unused" */ | |
| 1553 | 1460 | |
| 1554 | 1461 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 1555 | 1462 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1649 | r1650 | |
| 1561 | 1468 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1562 | 1469 | |
| 1563 | 1470 | PORT_START // IN1 - Player 2 - c00002.b |
| 1564 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unused ) ) | |
| 1565 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 1566 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1567 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Unused ) ) | |
| 1568 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 1569 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1570 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unused ) ) | |
| 1571 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 1572 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1573 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unused ) ) | |
| 1574 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 1575 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1576 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unused ) ) | |
| 1577 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 1578 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1579 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) ) | |
| 1580 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 1581 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1582 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) | |
| 1583 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 1584 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1585 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unused ) ) | |
| 1586 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 1587 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1471 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1472 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1473 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1474 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1475 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1476 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1477 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1478 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1588 | 1479 | |
| 1589 | 1480 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) |
| 1590 | 1481 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) |
| r1649 | r1650 | |
| 1596 | 1487 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1597 | 1488 | |
| 1598 | 1489 | PORT_START // IN2 - Other Buttons - c00004.b |
| 1599 | PORT_BIT ( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1600 | PORT_BIT ( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1601 | PORT_BIT ( 0x0200, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1490 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1491 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1492 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1602 | 1493 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2) |
| 1603 | 1494 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(2) |
| 1604 | 1495 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) |
| 1605 | PORT_BIT ( 0x2000, IP_ACTIVE_LOW, IPT_TILT ) | |
| 1606 | PORT_BIT ( 0x4000, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1607 | PORT_BIT ( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1496 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_TILT ) | |
| 1497 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1498 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1608 | 1499 | INPUT_PORTS_END |
| 1609 | 1500 | |
| 1610 | 1501 | |
| r1649 | r1650 | |
| 1637 | 1528 | PORT_START // IN2 - Coins - b80004.w |
| 1638 | 1529 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) |
| 1639 | 1530 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_START2 ) |
| 1640 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2) | |
| 1641 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(2) | |
| 1642 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) | |
| 1531 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2) | |
| 1532 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(2) | |
| 1533 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) | |
| 1643 | 1534 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_TILT ) |
| 1644 | 1535 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 1645 | 1536 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // ? tested |
| r1649 | r1650 | |
| 1655 | 1546 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1656 | 1547 | |
| 1657 | 1548 | PORT_START // IN4 - DSW from the MCU - 102e15.b <- 200059.b |
| 1658 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) | |
| 1549 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:1") | |
| 1659 | 1550 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1660 | 1551 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1661 | PORT_SERVICE( 0x02, IP_ACTIVE_LOW ) | |
| 1662 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Demo_Sounds ) ) | |
| 1552 | PORT_SERVICE_DIPLOC(0x02, IP_ACTIVE_LOW, "SW1:2" ) | |
| 1553 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:3") | |
| 1663 | 1554 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1664 | 1555 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 1665 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Difficulty ) ) | |
| 1666 | PORT_DIPSETTING( 0x38, "1" ) // easy | |
| 1556 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:4,5,6") | |
| 1557 | PORT_DIPSETTING( 0x38, "1 Easy" ) | |
| 1667 | 1558 | PORT_DIPSETTING( 0x30, "2" ) |
| 1668 | 1559 | PORT_DIPSETTING( 0x28, "3" ) |
| 1669 | PORT_DIPSETTING( 0x20, "4" ) | |
| 1560 | PORT_DIPSETTING( 0x20, "4 Normal" ) | |
| 1670 | 1561 | PORT_DIPSETTING( 0x18, "5" ) |
| 1671 | 1562 | PORT_DIPSETTING( 0x10, "6" ) |
| 1672 | 1563 | PORT_DIPSETTING( 0x08, "7" ) |
| 1673 | PORT_DIPSETTING( 0x00, "8" ) | |
| 1674 | PORT_DIPNAME( 0x40, 0x40, "Can Join During Game" ) | |
| 1564 | PORT_DIPSETTING( 0x00, "8 Hard" ) | |
| 1565 | PORT_DIPNAME( 0x40, 0x40, "Can Join During Game" ) PORT_DIPLOCATION("SW1:7") | |
| 1675 | 1566 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) // 2 credits winner vs computer |
| 1676 | 1567 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) // 1 credit game over |
| 1677 | PORT_DIPNAME( 0x80, 0x80, " | |
| 1568 | PORT_DIPNAME( 0x80, 0x80, " | |
| 1678 | 1569 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1679 | 1570 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1680 | 1571 | INPUT_PORTS_END |
| r1649 | r1650 | |
|---|---|---|
| 51 | 51 | */ |
| 52 | 52 | |
| 53 | 53 | #include "driver.h" |
| 54 | #include "deprecat.h" | |
| 54 | 55 | |
| 55 | 56 | #include "video/konamiic.h" |
| 56 | 57 | #include "cpu/m68000/m68000.h" |
| r1649 | r1650 | |
|---|---|---|
| 170 | 170 | *******************************************************************************************/ |
| 171 | 171 | |
| 172 | 172 | #include "driver.h" |
| 173 | #include "deprecat.h" | |
| 173 | 174 | #include "sound/3812intf.h" |
| 174 | 175 | |
| 175 | 176 | static tilemap *tx_tilemap; |
| r1649 | r1650 | |
|---|---|---|
| 52 | 52 | */ |
| 53 | 53 | |
| 54 | 54 | #include "driver.h" |
| 55 | #include "deprecat.h" | |
| 55 | 56 | #include "cpu/z80/z80.h" |
| 56 | 57 | #include "sound/2608intf.h" |
| 57 | 58 |
| r1649 | r1650 | |
|---|---|---|
| 119 | 119 | |
| 120 | 120 | |
| 121 | 121 | #include "driver.h" |
| 122 | #include "deprecat.h" | |
| 122 | 123 | #include "machine/atarigen.h" |
| 123 | 124 | #include "sound/5220intf.h" |
| 124 | 125 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 165 | 165 | /********** BITS & PIECES **********/ |
| 166 | 166 | |
| 167 | 167 | #include "driver.h" |
| 168 | #include "deprecat.h" | |
| 168 | 169 | #include "sound/ymf271.h" |
| 169 | 170 | |
| 170 | 171 | extern UINT32 *ms32_fce00000; |
| r1649 | r1650 | |
|---|---|---|
| 246 | 246 | #include "machine/6840ptm.h" |
| 247 | 247 | |
| 248 | 248 | // MPU4 |
| 249 | #include " | |
| 249 | #include "deprecat.h" | |
| 250 | 250 | #include "timer.h" |
| 251 | 251 | #include "cpu/m6809/m6809.h" |
| 252 | 252 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
| 255 | 255 | #include "machine/meters.h" |
| 256 | 256 | |
| 257 | 257 | #ifdef MAME_DEBUG |
| 258 | #define VERBOSE 1 | |
| 258 | #define MPU4VERBOSE 1 | |
| 259 | 259 | #else |
| 260 | #define VERBOSE 0 | |
| 260 | #define MPU4VERBOSE 0 | |
| 261 | 261 | #endif |
| 262 | 262 | |
| 263 | #define LOG(x) do { if (VERBOSE) logerror x; } while (0) | |
| 264 | #define LOG_CHR(x) do { if (VERBOSE) logerror x; } while (0) | |
| 265 | #define LOG_CHR_FULL(x) do { if (VERBOSE) logerror x; } while (0) | |
| 266 | #define LOG_IC3(x) do { if (VERBOSE) logerror x; } while (0) | |
| 267 | #define LOG_IC8(x) do { if (VERBOSE) logerror x; } while (0) | |
| 263 | #define LOG(x) do { if (MPU4VERBOSE) logerror x; } while (0) | |
| 264 | #define LOG_CHR(x) do { if (MPU4VERBOSE) logerror x; } while (0) | |
| 265 | #define LOG_CHR_FULL(x) do { if (MPU4VERBOSE) logerror x; } while (0) | |
| 266 | #define LOG_IC3(x) do { if (MPU4VERBOSE) logerror x; } while (0) | |
| 267 | #define LOG_IC8(x) do { if (MPU4VERBOSE) logerror x; } while (0) | |
| 268 | 268 | |
| 269 | 269 | #ifndef AWP_VIDEO //Defined for fruit machines with mechanical reels |
| 270 | 270 | #define draw_reel(x) |
| r1649 | r1650 | |
| 376 | 376 | |
| 377 | 377 | } |
| 378 | 378 | |
| 379 | // palette initialisation ///////////////////////////////////////////////// | |
| 380 | ||
| 381 | static PALETTE_INIT( mpu4 ) | |
| 382 | { | |
| 383 | int i; | |
| 384 | static const rgb_t color[16] = | |
| 385 | { | |
| 386 | MAKE_RGB(0x00,0x00,0x00), MAKE_RGB(0x00,0x00,0xFF), MAKE_RGB(0x00,0xFF,0x00), MAKE_RGB(0x00,0xFF,0xFF), | |
| 387 | MAKE_RGB(0xFF,0x00,0x00), MAKE_RGB(0xFF,0x00,0xFF), MAKE_RGB(0xFF,0xFF,0x00), MAKE_RGB(0xFF,0xFF,0xFF), | |
| 388 | MAKE_RGB(0x80,0x80,0x80), MAKE_RGB(0x00,0x00,0x80), MAKE_RGB(0x00,0x80,0x00), MAKE_RGB(0x00,0x80,0x80), | |
| 389 | MAKE_RGB(0x80,0x00,0x00), MAKE_RGB(0x80,0x00,0x80), MAKE_RGB(0x80,0x80,0x00), MAKE_RGB(0x80,0x80,0x80) | |
| 390 | }; | |
| 391 | ||
| 392 | for (i=0; i<16; i++) | |
| 393 | palette_set_color(machine, i, color[i]); | |
| 394 | } | |
| 395 | ||
| 396 | 379 | /////////////////////////////////////////////////////////////////////////// |
| 397 | 380 | // called if board is reset /////////////////////////////////////////////// |
| 398 | 381 | /////////////////////////////////////////////////////////////////////////// |
| r1649 | r1650 | |
| 441 | 424 | |
| 442 | 425 | /////////////////////////////////////////////////////////////////////////// |
| 443 | 426 | |
| 444 | static void | |
| 427 | static void | |
| 445 | 428 | { |
| 429 | // The PIA and PTM IRQ lines are all connected to a common PCB track, | |
| 430 | // leading directly to the 6809 IRQ line. | |
| 446 | 431 | int combined_state = pia_get_irq_a(0) | pia_get_irq_b(0) | |
| 447 | 432 | pia_get_irq_a(1) | pia_get_irq_b(1) | |
| 448 | 433 | pia_get_irq_a(2) | pia_get_irq_b(2) | |
| 449 | 434 | pia_get_irq_a(3) | pia_get_irq_b(3) | |
| 450 | 435 | pia_get_irq_a(4) | pia_get_irq_b(4) | |
| 451 | pia_get_irq_a(5) | pia_get_irq_b(5); | |
| 436 | pia_get_irq_a(5) | pia_get_irq_b(5) | | |
| 437 | ptm6840_get_irq(0); | |
| 452 | 438 | |
| 453 | 439 | if (!serial_card_connected) |
| 454 | 440 | { |
| r1649 | r1650 | |
| 462 | 448 | } |
| 463 | 449 | } |
| 464 | 450 | |
| 465 | ||
| 466 | static void ptm_cpu0_irq(int state) | |
| 467 | { | |
| 468 | if (!serial_card_connected) | |
| 469 | { | |
| 470 | cpunum_set_input_line(Machine, 0, M6809_IRQ_LINE, state ? ASSERT_LINE : CLEAR_LINE); | |
| 471 | LOG(("6809 int%d \n", state)); | |
| 472 | } | |
| 473 | else | |
| 474 | { | |
| 475 | cpunum_set_input_line(Machine, 0, M6809_FIRQ_LINE, state ? ASSERT_LINE : CLEAR_LINE); | |
| 476 | LOG(("6809 fint%d \n", state)); | |
| 477 | } | |
| 478 | } | |
| 479 | ||
| 480 | ||
| 481 | 451 | /////////////////////////////////////////////////////////////////////////// |
| 482 | 452 | static WRITE8_HANDLER( bankswitch_w ) |
| 483 | 453 | { |
| r1649 | r1650 | |
| 513 | 483 | MPU4_MASTER_CLOCK/4, |
| 514 | 484 | { 0,0,0 }, |
| 515 | 485 | { ic2_o1_callback, ic2_o2_callback, ic2_o3_callback }, |
| 516 | | |
| 486 | | |
| 517 | 487 | }; |
| 518 | 488 | |
| 519 | 489 | /*************************************************************************** |
| r1649 | r1650 | |
| 565 | 535 | { |
| 566 | 536 | /*inputs : A/B,CA/B1,CA/B2 */ 0, 0, 0, 0, 0, 0, |
| 567 | 537 | /*outputs: A/B,CA/B2 */ pia_ic3_porta_w, pia_ic3_portb_w, pia_ic3_ca2_w, pia_ic3_cb2_w, |
| 568 | /*irqs : A/B */ | |
| 538 | /*irqs : A/B */ | |
| 569 | 539 | }; |
| 570 | 540 | |
| 571 | 541 | /*--------------------------------------- |
| r1649 | r1650 | |
| 695 | 665 | { |
| 696 | 666 | /*inputs : A/B,CA/B1,CA/B2 */ 0, pia_ic4_portb_r, 0, 0, 0, 0, |
| 697 | 667 | /*outputs: A/B,CA/B2 */ pia_ic4_porta_w, 0, pia_ic4_ca2_w, 0, |
| 698 | /*irqs : A/B */ | |
| 668 | /*irqs : A/B */ | |
| 699 | 669 | }; |
| 700 | 670 | |
| 701 | 671 | //IC5 |
| r1649 | r1650 | |
| 791 | 761 | { |
| 792 | 762 | /*inputs : A/B,CA/B1,CA/B2 */ pia_ic5_porta_r, pia_ic5_portb_r, 0, 0, 0, 0, |
| 793 | 763 | /*outputs: A/B,CA/B2 */ 0, 0, pia_ic5_ca2_w, pia_ic5_cb2_w, |
| 794 | /*irqs : A/B */ | |
| 764 | /*irqs : A/B */ | |
| 795 | 765 | }; |
| 796 | 766 | |
| 797 | 767 | //IC6 |
| r1649 | r1650 | |
| 849 | 819 | { |
| 850 | 820 | /*inputs : A/B,CA/B1,CA/B2 */ 0, 0, 0, 0, 0, 0, |
| 851 | 821 | /*outputs: A/B,CA/B2 */ pia_ic6_porta_w, pia_ic6_portb_w, pia_ic6_ca2_w, pia_ic6_cb2_w, |
| 852 | /*irqs : A/B */ | |
| 822 | /*irqs : A/B */ | |
| 853 | 823 | }; |
| 854 | 824 | |
| 855 | 825 | //IC7 |
| r1649 | r1650 | |
| 925 | 895 | { |
| 926 | 896 | /*inputs : A/B,CA/B1,CA/B2 */ 0, 0, 0, 0, 0, 0, |
| 927 | 897 | /*outputs: A/B,CA/B2 */ pia_ic7_porta_w, pia_ic7_portb_w, pia_ic7_ca2_w, pia_ic7_cb2_w, |
| 928 | /*irqs : A/B */ | |
| 898 | /*irqs : A/B */ | |
| 929 | 899 | }; |
| 930 | 900 | |
| 931 | 901 | static READ8_HANDLER( pia_ic8_porta_r ) |
| r1649 | r1650 | |
| 973 | 943 | { |
| 974 | 944 | /*inputs : A/B,CA/B1,CA/B2 */ pia_ic8_porta_r, 0, 0, 0, 0, 0, |
| 975 | 945 | /*outputs: A/B,CA/B2 */ 0, pia_ic8_portb_w, pia_ic8_ca2_w, pia_ic8_cb2_w, |
| 976 | /*irqs : A/B */ | |
| 946 | /*irqs : A/B */ | |
| 977 | 947 | }; |
| 978 | 948 | |
| 979 | 949 | |
| r1649 | r1650 | |
| 1400 | 1370 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 1401 | 1371 | |
| 1402 | 1372 | MDRV_NVRAM_HANDLER(generic_0fill) // load/save nv RAM |
| 1403 | MDRV_DEFAULT_LAYOUT(layout_mpu4) | |
| 1404 | /* video hardware */ | |
| 1405 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1406 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 1407 | 1373 | |
| 1408 | MDRV_SCREEN_SIZE(288, 34) | |
| 1409 | MDRV_SCREEN_VISIBLE_AREA(0, 288-1, 0, 34-1) | |
| 1410 | MDRV_SCREEN_REFRESH_RATE(50) | |
| 1411 | ||
| 1412 | MDRV_PALETTE_LENGTH(16) | |
| 1413 | MDRV_COLORTABLE_LENGTH(16) | |
| 1414 | MDRV_PALETTE_INIT(mpu4) | |
| 1374 | /* video hardware */ | |
| 1375 | MDRV_DEFAULT_LAYOUT(layout_mpu4) | |
| 1376 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_NONE) | |
| 1377 | /* dummy values */ | |
| 1378 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1379 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1415 | 1380 | MACHINE_DRIVER_END |
| 1416 | 1381 | |
| 1417 | 1382 | const UINT8 MPU4_chr_lut[72]= { 0x00,0x1A,0x04,0x10,0x18,0x0F,0x13,0x1B, |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | *************************************************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "sound/ay8910.h" |
| 13 | 14 | |
| 14 | 15 | static tilemap *tmap, *tmap2; |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | ***************************************************************************/ |
| 12 | 12 | |
| 13 | 13 | #include "driver.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "cpu/h6280/h6280.h" |
| 15 | 16 | #include "sound/2203intf.h" |
| 16 | 17 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | Ms.Pac-Man/Galaga - 20 Year Reunion | |
| 3 | Ms.Pac-Man/Galaga - 20 Year Reunion hardware | |
| 4 | 4 | |
| 5 | driver by Nicola Salmoria | |
| 5 | driver by Nicola Salmoria | |
| 6 | 6 | |
| 7 | Notes: | |
| 8 | - There are four start buttons: the first two are for Ms. Pac-Man, the other two | |
| 9 | for Galaga. | |
| 7 | Notes: | |
| 8 | * There are four start buttons: the first two are for Ms. Pac-Man, the other two | |
| 9 | for Galaga. | |
| 10 | * To play Pac-Man instead of Ms. Pac-Man, insert coins then enter the following | |
| 11 | sequence: U U U D D D L R L R L. A sound will play and the ghost will change | |
| 12 | from red to pink. | |
| 13 | * Writes to the Z180 ASCI port: | |
| 14 | MS PAC-MAN/GALAGA | |
| 15 | arcade video system | |
| 16 | version 1.01 | |
| 17 | (c) 2000 Cosmodog, Ltd. | |
| 18 | > | |
| 19 | and it listens for incoming characters. | |
| 20 | * CPU is a Z8S18020VSC (20MHz part), OSC is 73.728MHz | |
| 10 | 21 | |
| 11 | - To play Pac-Man instead of Ms. Pac-Man, insert coins then enter the following | |
| 12 | sequence: U U U D D D L R L R L. A sound will play and the ghost will change | |
| 13 | from red to pink. | |
| 22 | Known issues/to-do's: | |
| 23 | * ROM banking is not understood. Shouldn't require copying and other | |
| 24 | trickey | |
| 25 | * Starfield missing | |
| 26 | * Check the ASCI interface, there probably is fully working debug code. | |
| 27 | * The timed interrupt is a kludge; it is supposed to be generated internally by | |
| 28 | the Z180, but the cpu core doesn't support that yet. | |
| 29 | * Is the clock divide 3 or 4? | |
| 14 | 30 | |
| 15 | - Writes to the Z180 ASCI port: | |
| 16 | MS PAC-MAN/GALAGA | |
| 17 | arcade video system | |
| 18 | version 1.01 | |
| 19 | (c) 2000 Cosmodog, Ltd. | |
| 20 | > | |
| 21 | and it listens for incoming characters. | |
| 31 | ***************************************************************************/ | |
| 22 | 32 | |
| 33 | #include "driver.h" | |
| 34 | #include "deprecat.h" | |
| 35 | #include "machine/eeprom.h" | |
| 36 | #include "sound/namco.h" | |
| 37 | #include "sound/dac.h" | |
| 38 | #include "20pacgal.h" | |
| 23 | 39 | |
| 24 | TODO: | |
| 25 | - Starfield. | |
| 26 | 40 | |
| 27 | - Convert to tilemaps & optimize video rendering, I was just too lazy to do it for now. | |
| 28 | 41 | |
| 29 | - Check the ASCI interface, there probably is fully working debug code. | |
| 42 | /************************************* | |
| 43 | * | |
| 44 | * Clocks | |
| 45 | * | |
| 46 | *************************************/ | |
| 30 | 47 | |
| 31 | - The timed interrupt is a kludge; it is supposed to be generated internally by | |
| 32 | the Z180, but the cpu core doesn't support that yet. | |
| 48 | #define MASTER_CLOCK (XTAL_73_728MHz) | |
| 49 | #define MAIN_CPU_CLOCK (MASTER_CLOCK / 4) /* divider is either 3 or 4 */ | |
| 50 | #define NAMCO_AUDIO_CLOCK (MASTER_CLOCK / 4 / 6 / 32) | |
| 33 | 51 | |
| 34 | - Correct CPU speed... Zilog says Z180 comes in 6, 8, 10, 20 & 33MHz. | |
| 35 | 20MHz is used as it "seems" right based on the music in Galaga | |
| 36 | 52 | |
| 37 | ***************************************************************************/ | |
| 38 | 53 | |
| 39 | #include "driver.h" | |
| 40 | #include "machine/eeprom.h" | |
| 41 | #include "cpu/z180/z180.h" | |
| 42 | #include "pacman.h" | |
| 43 | #include "sound/namco.h" | |
| 44 | #include "sound/dac.h" | |
| 54 | /************************************* | |
| 55 | * | |
| 56 | * Interrupt system | |
| 57 | * | |
| 58 | *************************************/ | |
| 45 | 59 | |
| 46 | extern UINT8 *pacgal_charram,*pacgal_sprram; | |
| 47 | extern UINT8 *pacgal_videoram,*pacgal_videoram2; | |
| 48 | PALETTE_INIT( 20pacgal ); | |
| 49 | VIDEO_START( 20pacgal ); | |
| 50 | WRITE8_HANDLER( pacgal_lookup_w ); | |
| 51 | WRITE8_HANDLER( pacgal_active_game_w ); | |
| 52 | WRITE8_HANDLER( pacgal_videoram2_w ); | |
| 53 | WRITE8_HANDLER( pacgal_charram_w ); | |
| 54 | WRITE8_HANDLER( pacgal_sprram_w ); | |
| 55 | VIDEO_UPDATE( 20pacgal ); | |
| 60 | static WRITE8_HANDLER( irqack_w ) | |
| 61 | { | |
| 62 | int bit = data & 1; | |
| 56 | 63 | |
| 64 | cpu_interrupt_enable(0, bit); | |
| 57 | 65 | |
| 66 | if (!bit) | |
| 67 | cpunum_set_input_line(Machine, 0, 0, CLEAR_LINE ); | |
| 68 | } | |
| 58 | 69 | |
| 70 | ||
| 71 | ||
| 72 | /************************************* | |
| 73 | * | |
| 74 | * Audio | |
| 75 | * | |
| 76 | *************************************/ | |
| 77 | ||
| 78 | static const struct namco_interface namco_interface = | |
| 79 | { | |
| 80 | 3, /* number of voices */ | |
| 81 | -1, /* memory region */ | |
| 82 | }; | |
| 83 | ||
| 84 | ||
| 85 | static WRITE8_HANDLER( _20pacgal_dac_w ) | |
| 86 | { | |
| 87 | DAC_signed_data_w(0, data); | |
| 88 | } | |
| 89 | ||
| 90 | ||
| 91 | ||
| 92 | /************************************* | |
| 93 | * | |
| 94 | * Non-volatile memory | |
| 95 | * | |
| 96 | *************************************/ | |
| 97 | ||
| 59 | 98 | static const struct EEPROM_interface eeprom_interface = |
| 60 | 99 | { |
| 61 | 100 | 7, /* address bits */ |
| 62 | 101 | 8, /* data bits */ |
| 63 | "*110", /* | |
| 102 | "*110", /* | |
| 64 | 103 | "*101", /* write command */ |
| 65 | 104 | 0, /* erase command */ |
| 66 | 105 | "*10000xxxxx", /* lock command */ |
| 67 | 106 | "*10011xxxxx", /* unlock command */ |
| 68 | 107 | }; |
| 69 | 108 | |
| 109 | ||
| 70 | 110 | static NVRAM_HANDLER( eeprom ) |
| 71 | 111 | { |
| 72 | 112 | if (read_or_write) |
| r1649 | r1650 | |
| 80 | 120 | } |
| 81 | 121 | } |
| 82 | 122 | |
| 123 | ||
| 83 | 124 | static READ8_HANDLER( eeprom_r ) |
| 84 | 125 | { |
| 85 | int res; | |
| 86 | ||
| 87 | 126 | /* bit 7 is EEPROM data */ |
| 88 | res = EEPROM_read_bit() << 7; | |
| 89 | return res; | |
| 127 | return EEPROM_read_bit() << 7; | |
| 90 | 128 | } |
| 91 | 129 | |
| 130 | ||
| 92 | 131 | static WRITE8_HANDLER( eeprom_w ) |
| 93 | 132 | { |
| 94 | 133 | /* bit 7 is data */ |
| r1649 | r1650 | |
| 99 | 138 | EEPROM_set_clock_line((data & 0x40) ? ASSERT_LINE : CLEAR_LINE); |
| 100 | 139 | } |
| 101 | 140 | |
| 102 | static WRITE8_HANDLER( irqack_w ) | |
| 141 | ||
| 142 | ||
| 143 | /************************************* | |
| 144 | * | |
| 145 | * Coin counter | |
| 146 | * | |
| 147 | *************************************/ | |
| 148 | ||
| 149 | static WRITE8_HANDLER( _20pacgal_coin_counter_w ) | |
| 103 | 150 | { |
| 104 | int bit = data & 1; | |
| 105 | cpu_interrupt_enable(0,bit); | |
| 106 | if (!bit) | |
| 107 | cpunum_set_input_line(Machine, 0, 0, CLEAR_LINE ); | |
| 151 | coin_counter_w(0, data & 1); | |
| 108 | 152 | } |
| 109 | 153 | |
| 110 | static WRITE8_HANDLER( flipscreen_w ) | |
| 154 | ||
| 155 | ||
| 156 | /************************************* | |
| 157 | * | |
| 158 | * ROM banking - FIXME | |
| 159 | * | |
| 160 | *************************************/ | |
| 161 | ||
| 162 | WRITE8_HANDLER( rom_bank_select_w ) | |
| 111 | 163 | { |
| 112 | flip_screen_set(data & 1); | |
| 164 | _20pacgal_state *state = Machine->driver_data; | |
| 165 | ||
| 166 | state->game_selected = data & 1; | |
| 167 | ||
| 168 | if (state->game_selected == 0) | |
| 169 | memcpy(memory_region(REGION_CPU1)+0x48000, memory_region(REGION_CPU1)+0x8000, 0x2000); | |
| 113 | 170 | } |
| 114 | 171 | |
| 115 | static WRITE8_HANDLER( pacgal_dac_w ) | |
| 172 | ||
| 173 | WRITE8_HANDLER( rom_48000_w ) | |
| 116 | 174 | { |
| 117 | DAC_signed_data_w(0, data); | |
| 118 | } | |
| 175 | _20pacgal_state *state = Machine->driver_data; | |
| 119 | 176 | |
| 120 | static WRITE8_HANDLER( coin_w ) | |
| 121 | { | |
| 122 | coin_counter_w(0,data & 1); | |
| 177 | if (state->game_selected) | |
| 178 | { | |
| 179 | if (offset < 0x0800) | |
| 180 | state->video_ram[offset & 0x07ff] = data; | |
| 181 | ||
| 182 | memory_region(REGION_CPU1)[0x48000 + offset] = data; | |
| 183 | } | |
| 123 | 184 | } |
| 124 | 185 | |
| 125 | 186 | |
| 126 | 187 | |
| 188 | /************************************* | |
| 189 | * | |
| 190 | * Memory handlers | |
| 191 | * | |
| 192 | *************************************/ | |
| 193 | ||
| 127 | 194 | static ADDRESS_MAP_START( 20pacgal_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 128 | 195 | AM_RANGE(0x00000, 0x03fff) AM_ROM |
| 129 | 196 | AM_RANGE(0x08000, 0x09fff) AM_ROM |
| 130 | 197 | AM_RANGE(0x0a000, 0x0ffff) AM_MIRROR(0x40000) AM_ROM |
| 131 | 198 | AM_RANGE(0x10000, 0x3ffff) AM_ROM |
| 132 | AM_RANGE(0x44000, 0x447ff) AM_RAM AM_BASE( | |
| 199 | AM_RANGE(0x44000, 0x447ff) AM_RAM AM_BASE_MEMBER(_20pacgal_state, video_ram) | |
| 133 | 200 | AM_RANGE(0x45040, 0x4505f) AM_WRITE(pacman_sound_w) AM_BASE(&namco_soundregs) |
| 134 | 201 | AM_RANGE(0x44800, 0x45eff) AM_RAM |
| 135 | AM_RANGE(0x45f00, 0x45fff) AM_WRITE(_20pacgal_wavedata_w) AM_BASE(&namco_wavedata) // sound wave data | |
| 136 | AM_RANGE(0x46000, 0x46fff) AM_WRITE(pacgal_charram_w) AM_BASE(&pacgal_charram) // char gfx data | |
| 137 | AM_RANGE(0x47100, 0x47100) AM_RAM // leftover from original Galaga code | |
| 138 | AM_RANGE(0x48000, 0x49fff) AM_ROM AM_BASE(&pacgal_videoram2) | |
| 139 | AM_RANGE(0x48000, 0x49fff) AM_WRITE(pacgal_videoram2_w) // ROM or galaga tilemap (banked) | |
| 140 | AM_RANGE(0x4c000, 0x4dfff) AM_WRITE(pacgal_sprram_w) AM_BASE(&pacgal_sprram) // sprite gfx data | |
| 141 | AM_RANGE(0x4e000, 0x4e17f) AM_WRITE(MWA8_RAM) AM_BASE(&spriteram) // sprite registers | |
| 142 | AM_RANGE(0x4ff00, 0x4ffff) AM_WRITE(pacgal_lookup_w) // sprite color lookup table | |
| 202 | AM_RANGE(0x45f00, 0x45fff) AM_WRITE(_20pacgal_wavedata_w) AM_BASE(&namco_wavedata) | |
| 203 | AM_RANGE(0x46000, 0x46fff) AM_WRITE(MWA8_RAM) AM_BASE_MEMBER(_20pacgal_state, char_gfx_ram) | |
| 204 | AM_RANGE(0x47100, 0x47100) AM_RAM /* leftover from original Galaga code */ | |
| 205 | AM_RANGE(0x48000, 0x49fff) AM_READWRITE(MRA8_ROM, rom_48000_w) /* this should be a mirror of 08000-09ffff */ | |
| 206 | AM_RANGE(0x4c000, 0x4dfff) AM_WRITE(MWA8_RAM) AM_BASE_MEMBER(_20pacgal_state, sprite_gfx_ram) | |
| 207 | AM_RANGE(0x4e000, 0x4e17f) AM_WRITE(MWA8_RAM) AM_BASE_MEMBER(_20pacgal_state, sprite_ram) | |
| 208 | AM_RANGE(0x4ff00, 0x4ffff) AM_WRITE(MWA8_RAM) AM_BASE_MEMBER(_20pacgal_state, sprite_color_lookup) | |
| 143 | 209 | ADDRESS_MAP_END |
| 144 | 210 | |
| 145 | static ADDRESS_MAP_START( 20pacgal_port, ADDRESS_SPACE_IO, 8 ) | |
| 211 | ||
| 212 | ||
| 213 | /************************************* | |
| 214 | * | |
| 215 | * I/O port handlers | |
| 216 | * | |
| 217 | *************************************/ | |
| 218 | ||
| 219 | static ADDRESS_MAP_START( 20pacgal_io_map, ADDRESS_SPACE_IO, 8 ) | |
| 146 | 220 | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) ) |
| 147 | 221 | AM_RANGE(0x00, 0x3f) AM_NOP /* Z180 internal registers */ |
| 148 | 222 | AM_RANGE(0x40, 0x7f) AM_NOP /* Z180 internal registers */ |
| r1649 | r1650 | |
| 150 | 224 | AM_RANGE(0x81, 0x81) AM_READ(input_port_1_r) |
| 151 | 225 | AM_RANGE(0x82, 0x82) AM_READ(input_port_2_r) |
| 152 | 226 | AM_RANGE(0x80, 0x80) AM_WRITE(watchdog_reset_w) |
| 153 | AM_RANGE(0x81, 0x81) AM_WRITE(MWA8_NOP) / | |
| 227 | AM_RANGE(0x81, 0x81) AM_WRITE(MWA8_NOP) /* ??? pulsed by the timer irq */ | |
| 154 | 228 | AM_RANGE(0x82, 0x82) AM_WRITE(irqack_w) |
| 155 | AM_RANGE(0x85, 0x86) AM_WRITE(MWA8_NOP) / | |
| 229 | AM_RANGE(0x85, 0x86) AM_WRITE(MWA8_NOP) /* stars: rng seed (lo/hi) */ | |
| 156 | 230 | AM_RANGE(0x87, 0x87) AM_READWRITE(eeprom_r, eeprom_w) |
| 157 | AM_RANGE(0x88, 0x88) AM_WRITE(pacgal_active_game_w) | |
| 158 | AM_RANGE(0x89, 0x89) AM_WRITE(pacgal_dac_w) | |
| 159 | AM_RANGE(0x8a, 0x8a) AM_WRITE(MWA8_NOP) // stars: bits 3-4 = active set; bit 5 = enable | |
| 160 | AM_RANGE(0x8b, 0x8b) AM_WRITE(flipscreen_w) | |
| 161 | AM_RANGE(0x8f, 0x8f) AM_WRITE(coin_w) // coin counter | |
| 231 | AM_RANGE(0x88, 0x88) AM_WRITE(rom_bank_select_w) | |
| 232 | AM_RANGE(0x89, 0x89) AM_WRITE(_20pacgal_dac_w) | |
| 233 | AM_RANGE(0x8a, 0x8a) AM_WRITE(MWA8_NOP) /* stars: bits 3-4 = active set; bit 5 = enable */ | |
| 234 | AM_RANGE(0x8b, 0x8b) AM_WRITE(MWA8_RAM) AM_BASE_MEMBER(_20pacgal_state, flip_screen) | |
| 235 | AM_RANGE(0x8f, 0x8f) AM_WRITE(_20pacgal_coin_counter_w) | |
| 162 | 236 | ADDRESS_MAP_END |
| 163 | 237 | |
| 164 | 238 | |
| 165 | 239 | |
| 240 | /************************************* | |
| 241 | * | |
| 242 | * Port definitions | |
| 243 | * | |
| 244 | *************************************/ | |
| 245 | ||
| 166 | 246 | static INPUT_PORTS_START( 20pacgal ) |
| 167 | 247 | PORT_START |
| 168 | 248 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) |
| r1649 | r1650 | |
| 179 | 259 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_COCKTAIL |
| 180 | 260 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_COCKTAIL |
| 181 | 261 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_COCKTAIL |
| 182 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START3 ) | |
| 183 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START1 ) | |
| 184 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 185 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 ) | |
| 262 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START3 ) PORT_NAME( "Right 1 Player Start" ) | |
| 263 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START1 ) PORT_NAME( "Left 1 Player Start" ) | |
| 264 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) PORT_NAME( "Left 2 Players Start" ) | |
| 265 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 ) PORT_NAME( "Right 2 Players Start" ) | |
| 186 | 266 | |
| 187 | 267 | PORT_START |
| 188 | 268 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1649 | r1650 | |
| 197 | 277 | |
| 198 | 278 | |
| 199 | 279 | |
| 200 | static const gfx_layout charlayout = | |
| 201 | { | |
| 202 | 8,8, | |
| 203 | 256, | |
| 204 | 2, | |
| 205 | { 0, 4 }, | |
| 206 | { 8*8+0, 8*8+1, 8*8+2, 8*8+3, 0, 1, 2, 3 }, | |
| 207 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, | |
| 208 | 16*8 | |
| 209 | }; | |
| 280 | /************************************* | |
| 281 | * | |
| 282 | * Machine driver | |
| 283 | * | |
| 284 | *************************************/ | |
| 210 | 285 | |
| 286 | static MACHINE_DRIVER_START( 20pacgal ) | |
| 211 | 287 | |
| 212 | static const gfx_layout spritelayout = | |
| 213 | { | |
| 214 | 16,16, | |
| 215 | 128, | |
| 216 | 2, | |
| 217 | { 0, 1 }, | |
| 218 | { 0*2, 1*2, 2*2, 3*2, 4*2, 5*2, 6*2, 7*2, 8*2, 9*2, 10*2, 11*2, 12*2, 13*2, 14*2, 15*2 }, | |
| 219 | { 0*32, 1*32, 2*32, 3*32, 4*32, 5*32, 6*32, 7*32, 8*32, 9*32, 10*32, 11*32, 12*32, 13*32, 14*32, 15*32 }, | |
| 220 | 16*32 | |
| 221 | }; | |
| 288 | MDRV_DRIVER_DATA(_20pacgal_state) | |
| 222 | 289 | |
| 223 | static GFXDECODE_START( 20pacgal ) | |
| 224 | /* the game dynamically modifies these */ | |
| 225 | GFXDECODE_ENTRY( 0, 0, charlayout, 0, 64 ) | |
| 226 | GFXDECODE_ENTRY( 0, 0, spritelayout, 0, 64 ) | |
| 227 | GFXDECODE_END | |
| 228 | ||
| 229 | static const struct namco_interface namco_interface = | |
| 230 | { | |
| 231 | 3, /* number of voices */ | |
| 232 | -1, /* memory region */ | |
| 233 | }; | |
| 234 | ||
| 235 | static MACHINE_DRIVER_START( 20pacgal ) | |
| 236 | ||
| 237 | 290 | /* basic machine hardware */ |
| 238 | MDRV_CPU_ADD(Z180, | |
| 291 | MDRV_CPU_ADD(Z180, | |
| 239 | 292 | MDRV_CPU_PROGRAM_MAP(20pacgal_map,0) |
| 240 | MDRV_CPU_IO_MAP(20pacgal_ | |
| 293 | MDRV_CPU_IO_MAP(20pacgal_io_map,0) | |
| 241 | 294 | MDRV_CPU_VBLANK_INT(irq0_line_assert,1) |
| 242 | 295 | |
| 243 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 244 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 245 | ||
| 246 | 296 | MDRV_NVRAM_HANDLER(eeprom) |
| 247 | 297 | |
| 248 | 298 | /* video hardware */ |
| 249 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 250 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 251 | MDRV_SCREEN_SIZE(36*8, 28*8) | |
| 252 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 0*8, 28*8-1) | |
| 253 | MDRV_GFXDECODE(20pacgal) | |
| 254 | MDRV_PALETTE_LENGTH(0x1000) | |
| 255 | MDRV_COLORTABLE_LENGTH(0x100) | |
| 256 | MDRV_PALETTE_INIT(20pacgal) | |
| 257 | MDRV_VIDEO_START(20pacgal) | |
| 258 | MDRV_VIDEO_UPDATE(20pacgal) | |
| 299 | MDRV_IMPORT_FROM(20pacgal_video) | |
| 259 | 300 | |
| 260 | 301 | /* sound hardware */ |
| 261 | 302 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 262 | 303 | |
| 263 | MDRV_SOUND_ADD(NAMCO, | |
| 304 | MDRV_SOUND_ADD(NAMCO, NAMCO_AUDIO_CLOCK) | |
| 264 | 305 | MDRV_SOUND_CONFIG(namco_interface) |
| 265 | 306 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 266 | 307 | |
| r1649 | r1650 | |
| 270 | 311 | |
| 271 | 312 | |
| 272 | 313 | |
| 273 | /*************************************************************************** | |
| 314 | /************************************* | |
| 315 | * | |
| 316 | * ROM definition | |
| 317 | * | |
| 318 | *************************************/ | |
| 274 | 319 | |
| 275 | Game driver(s) | |
| 276 | ||
| 277 | ***************************************************************************/ | |
| 278 | ||
| 279 | 320 | ROM_START( 20pacgal ) |
| 280 | ROM_REGION( 0x100000, REGION_CPU1, 0 ) | |
| 321 | ROM_REGION( 0x100000, REGION_CPU1, 0 ) | |
| 281 | 322 | ROM_LOAD( "20th_101.u13", 0x00000, 0x40000, CRC(77159582) SHA1(c05e005a941cbdc806dcd76b315069362c792a72) ) |
| 282 | 323 | |
| 283 | 324 | ROM_REGION( 0x8000, REGION_PROMS, 0 ) /* palette */ |
| r1649 | r1650 | |
| 286 | 327 | |
| 287 | 328 | |
| 288 | 329 | |
| 330 | /************************************* | |
| 331 | * | |
| 332 | * Game driver | |
| 333 | * | |
| 334 | *************************************/ | |
| 335 | ||
| 289 | 336 | GAME( 2000, 20pacgal, 0, 20pacgal, 20pacgal, 0, ROT90, "Namco", "Ms. Pac-Man/Galaga - 20 Year Reunion", GAME_IMPERFECT_GRAPHICS ) |
| r1649 | r1650 | |
|---|---|---|
| 43 | 43 | ***************************************************************************/ |
| 44 | 44 | |
| 45 | 45 | #include "driver.h" |
| 46 | #include "deprecat.h" | |
| 46 | 47 | #include "sound/ay8910.h" |
| 47 | 48 | #include "sound/dac.h" |
| 48 | 49 |
| r1649 | r1650 | |
|---|---|---|
| 126 | 126 | *******************************************************************************/ |
| 127 | 127 | |
| 128 | 128 | #include "driver.h" |
| 129 | #include "deprecat.h" | |
| 129 | 130 | #include "sound/okim6295.h" |
| 130 | 131 | #include "sound/3812intf.h" |
| 131 | 132 |
| r1649 | r1650 | |
|---|---|---|
| 35 | 35 | as fpointbl uses fpoint ROMs (it's parent), it's own, and the sound ROM from fpointbj. |
| 36 | 36 | So add fpoint.001 to fpointbl.zip for it to work. |
| 37 | 37 | I made fpointbl the parent of fpointbj so it would use the proper memory map for the sound hardware. |
| 38 | */ | |
| 39 | 38 | |
| 39 | DIP locations verified from manual for: | |
| 40 | - aliensyn | |
| 41 | - bayroute | |
| 42 | - ddux | |
| 43 | - eswat | |
| 44 | - fpoint | |
| 45 | - goldnaxe | |
| 46 | - passsht | |
| 47 | - shinobi | |
| 48 | - tetris | |
| 49 | - wb3 | |
| 50 | ||
| 51 | */ | |
| 52 | ||
| 40 | 53 | /***************************************************************************/ |
| 41 | 54 | /* |
| 42 | 55 | ASTORMBL |
| r1649 | r1650 | |
| 142 | 155 | MVP |
| 143 | 156 | Ryukyu |
| 144 | 157 | Super Leagu |
| 145 | Turbo Outrun | |
| 146 | Turbo Outrun (Set 2) | |
| 158 | Turbo Outrun (set 1) | |
| 159 | Turbo Outrun (set 2) | |
| 147 | 160 | */ |
| 148 | 161 | |
| 149 | 162 | #include "driver.h" |
| 163 | #include "deprecat.h" | |
| 150 | 164 | #include "cpu/z80/z80.h" |
| 151 | 165 | #include "cpu/i8039/i8039.h" |
| 152 | 166 | #include "system16.h" |
| r1649 | r1650 | |
| 569 | 583 | SYS16_SERVICE |
| 570 | 584 | SYS16_COINAGE |
| 571 | 585 | |
| 572 | PORT_START_TAG("DSW1") | |
| 573 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) | |
| 574 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 575 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 576 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 586 | PORT_START_TAG("DSW2") | |
| 587 | PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "SW2:1" ) /* Listed as "Unused" */ | |
| 588 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 577 | 589 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 578 | 590 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 579 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) | |
| 591 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 580 | 592 | PORT_DIPSETTING( 0x08, "2" ) |
| 581 | 593 | PORT_DIPSETTING( 0x0c, "3" ) |
| 582 | 594 | PORT_DIPSETTING( 0x04, "4" ) |
| 583 | PORT_DIPSETTING( 0x00, "127 (Cheat)") | |
| 584 | PORT_DIPNAME( 0x30, 0x30, "Timer" ) | |
| 595 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 596 | PORT_DIPNAME( 0x30, 0x30, "Timer" ) PORT_DIPLOCATION("SW2:5,6") | |
| 585 | 597 | PORT_DIPSETTING( 0x00, "120" ) |
| 586 | 598 | PORT_DIPSETTING( 0x10, "130" ) |
| 587 | 599 | PORT_DIPSETTING( 0x20, "140" ) |
| 588 | 600 | PORT_DIPSETTING( 0x30, "150" ) |
| 589 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) | |
| 601 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 590 | 602 | PORT_DIPSETTING( 0x80, DEF_STR( Easy ) ) |
| 591 | 603 | PORT_DIPSETTING( 0xc0, DEF_STR( Normal ) ) |
| 592 | 604 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) |
| r1649 | r1650 | |
| 663 | 675 | SYS16_SERVICE |
| 664 | 676 | SYS16_COINAGE |
| 665 | 677 | |
| 666 | PORT_START_TAG("DSW1") | |
| 667 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 668 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 669 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 670 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) | |
| 678 | PORT_START_TAG("DSW2") | |
| 679 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:1") | |
| 680 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 681 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 682 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 671 | 683 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 672 | 684 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 673 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) | |
| 685 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 674 | 686 | PORT_DIPSETTING( 0x04, "1" ) |
| 675 | 687 | PORT_DIPSETTING( 0x0c, "3" ) |
| 676 | 688 | PORT_DIPSETTING( 0x08, "5" ) |
| 677 | PORT_DIPSETTING( 0x00, "Unlimited (Cheat)") | |
| 678 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) | |
| 679 | PORT_DIPSETTING( 0x30, "10000" ) | |
| 680 | PORT_DIPSETTING( 0x20, "15000" ) | |
| 681 | PORT_DIPSETTING( 0x10, "20000" ) | |
| 689 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 690 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 691 | PORT_DIPSETTING( 0x30, "100k" ) | |
| 692 | PORT_DIPSETTING( 0x20, "150k" ) | |
| 693 | PORT_DIPSETTING( 0x10, "200k" ) | |
| 682 | 694 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) |
| 683 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Unknown ) ) | |
| 684 | PORT_DIPSETTING( 0xc0, "A" ) | |
| 685 | PORT_DIPSETTING( 0x80, "B" ) | |
| 686 | PORT_DIPSETTING( 0x40, "C" ) | |
| 687 | PORT_DIPSETTING( 0x00, "D" ) | |
| 688 | ||
| 695 | PORT_DIPNAME( 0xc0, 0x80, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 696 | PORT_DIPSETTING( 0xc0, DEF_STR( Easy ) ) | |
| 697 | PORT_DIPSETTING( 0x80, DEF_STR( Normal ) ) | |
| 698 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) | |
| 699 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 689 | 700 | INPUT_PORTS_END |
| 690 | 701 | |
| 691 | 702 | /***************************************************************************/ |
| r1649 | r1650 | |
| 823 | 834 | SYS16_SERVICE |
| 824 | 835 | SYS16_COINAGE |
| 825 | 836 | |
| 826 | PORT_START_TAG("DSW1") | |
| 827 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 837 | PORT_START_TAG("DSW2") | |
| 838 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") | |
| 828 | 839 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 829 | 840 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 830 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Difficulty ) ) | |
| 841 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:2,3") | |
| 831 | 842 | PORT_DIPSETTING( 0x04, DEF_STR( Easy ) ) |
| 832 | 843 | PORT_DIPSETTING( 0x06, DEF_STR( Normal ) ) |
| 833 | 844 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) |
| 834 | 845 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 835 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Lives ) ) | |
| 846 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:4,5") | |
| 836 | 847 | PORT_DIPSETTING( 0x10, "2" ) |
| 837 | 848 | PORT_DIPSETTING( 0x18, "3" ) |
| 838 | 849 | PORT_DIPSETTING( 0x08, "4" ) |
| 839 | 850 | PORT_DIPSETTING( 0x00, "5" ) |
| 840 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Bonus_Life ) ) | |
| 841 | PORT_DIPSETTING( 0x40, "150000" ) | |
| 842 | PORT_DIPSETTING( 0x60, "200000" ) | |
| 843 | PORT_DIPSETTING( 0x20, "300000" ) | |
| 844 | PORT_DIPSETTING( 0x00, "400000" ) | |
| 845 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) | |
| 846 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 847 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 848 | ||
| 851 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:6,7") | |
| 852 | PORT_DIPSETTING( 0x40, "150k" ) | |
| 853 | PORT_DIPSETTING( 0x60, "200k" ) | |
| 854 | PORT_DIPSETTING( 0x20, "300k" ) | |
| 855 | PORT_DIPSETTING( 0x00, "400k" ) | |
| 856 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW2:8" ) /* Listed as "Unused" */ | |
| 849 | 857 | INPUT_PORTS_END |
| 850 | 858 | |
| 851 | 859 | /***************************************************************************/ |
| r1649 | r1650 | |
| 952 | 960 | SYS16_SERVICE |
| 953 | 961 | SYS16_COINAGE |
| 954 | 962 | |
| 955 | PORT_START_TAG("DSW1") | |
| 956 | PORT_DIPNAME( 0x01, 0x01, "2 Credits to Start" ) | |
| 957 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 958 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 959 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 963 | PORT_START_TAG("DSW2") | |
| 964 | PORT_DIPNAME( 0x01, 0x01, "Credits To Start" ) PORT_DIPLOCATION("SW2:1") | |
| 965 | PORT_DIPSETTING( 0x01, "1 Credit" ) | |
| 966 | PORT_DIPSETTING( 0x00, "2 Credits" ) | |
| 967 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 960 | 968 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 961 | 969 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 962 | PORT_DIPNAME( 0x04, 0x04, | |
| 970 | PORT_DIPNAME( 0x04, 0x04, | |
| 963 | 971 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 964 | 972 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 965 | PORT_DIPNAME( 0x08, 0x08, "Time" ) | |
| 973 | PORT_DIPNAME( 0x08, 0x08, "Timer" ) PORT_DIPLOCATION("SW2:4") | |
| 966 | 974 | PORT_DIPSETTING( 0x08, DEF_STR( Normal ) ) |
| 967 | 975 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) |
| 968 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) | |
| 976 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 969 | 977 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 970 | 978 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) |
| 971 | 979 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) |
| 972 | 980 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 973 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Lives ) ) | |
| 981 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 974 | 982 | PORT_DIPSETTING( 0x00, "1" ) |
| 975 | 983 | PORT_DIPSETTING( 0x40, "2" ) |
| 976 | 984 | PORT_DIPSETTING( 0xc0, "3" ) |
| r1649 | r1650 | |
| 1094 | 1102 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 1095 | 1103 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 1096 | 1104 | |
| 1097 | PORT_START_TAG("DSW1") | |
| 1098 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 1099 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1100 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1101 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 1105 | PORT_START_TAG("DSW2") | |
| 1106 | PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "SW2:1" ) /* Listed as "Unused" */ | |
| 1107 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 1102 | 1108 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1103 | 1109 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1104 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) | |
| 1105 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 1106 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1107 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 1108 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 1109 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1110 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) | |
| 1110 | PORT_DIPUNUSED_DIPLOC( 0x04, 0x04, "SW2:3" ) /* Listed as "Unused" */ | |
| 1111 | PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "SW2:4" ) /* Listed as "Unused" */ | |
| 1112 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 1111 | 1113 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 1112 | 1114 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) |
| 1113 | 1115 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) |
| 1114 | 1116 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 1115 | PORT_DIPNAME( 0x40, 0x40, "Clear | |
| 1117 | PORT_DIPNAME( 0x40, 0x40, "Clear Round Allowed" ) PORT_DIPLOCATION("SW2:7") /* Use button 3 */ | |
| 1116 | 1118 | PORT_DIPSETTING( 0x00, "1" ) |
| 1117 | 1119 | PORT_DIPSETTING( 0x40, "2" ) |
| 1118 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) | |
| 1119 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1120 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1120 | /* The mode in which a block falls at twice [ usual ] speed as this when playing 25 minutes or more on one coin. */ | |
| 1121 | PORT_DIPNAME( 0x80, 0x80, "2 Cell Move" ) PORT_DIPLOCATION("SW2:8") | |
| 1122 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 1123 | PORT_DIPSETTING( 0x80, DEF_STR( Yes ) ) | |
| 1121 | 1124 | |
| 1122 | 1125 | SYS16_COINAGE |
| 1123 | 1126 | INPUT_PORTS_END |
| r1649 | r1650 | |
| 1146 | 1149 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 1147 | 1150 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 1148 | 1151 | |
| 1149 | PORT_START_TAG("DSW1") | |
| 1150 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) /* not used according to manual */ | |
| 1151 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1152 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1153 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 1152 | PORT_START_TAG("DSW2") | |
| 1153 | PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "SW2:1" ) /* Listed as "Unused" */ | |
| 1154 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 1154 | 1155 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1155 | 1156 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1156 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) /* not used according to manual */ | |
| 1157 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 1158 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1159 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) /* not used according to manual */ | |
| 1160 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 1161 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1162 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) | |
| 1157 | PORT_DIPUNUSED_DIPLOC( 0x04, 0x04, "SW2:3" ) /* Listed as "Unused" */ | |
| 1158 | PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "SW2:4" ) /* Listed as "Unused" */ | |
| 1159 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 1163 | 1160 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 1164 | 1161 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) |
| 1165 | 1162 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) |
| 1166 | 1163 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 1167 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) /* not used according to manual */ | |
| 1168 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1169 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1170 | PORT_DIPNAME( 0x80, 0x80, "2 Cell Move Mode" ) | |
| 1171 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1172 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1164 | PORT_DIPNAME( 0x40, 0x40, "Clear Round Allowed" ) PORT_DIPLOCATION("SW2:7") /* Use button 3 */ | |
| 1165 | PORT_DIPSETTING( 0x00, "1" ) | |
| 1166 | PORT_DIPSETTING( 0x40, "2" ) | |
| 1167 | /* SW2:8 The mode in which a block falls at twice [ usual ] speed as this when playing 25 minutes or more on one coin. */ | |
| 1168 | PORT_DIPNAME( 0x80, 0x80, "2 Cell Move" ) PORT_DIPLOCATION("SW2:8") | |
| 1169 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 1170 | PORT_DIPSETTING( 0x80, DEF_STR( Yes ) ) | |
| 1173 | 1171 | |
| 1174 | 1172 | SYS16_COINAGE |
| 1175 | 1173 | INPUT_PORTS_END |
| r1649 | r1650 | |
| 1308 | 1306 | SYS16_SERVICE |
| 1309 | 1307 | SYS16_COINAGE |
| 1310 | 1308 | |
| 1311 | PORT_START_TAG("DSW1") | |
| 1312 | PORT_DIPNAME( 0x01, 0x01, "Credits needed" ) | |
| 1313 | PORT_DIPSETTING( 0x01, "1 to start, 1 to continue" ) | |
| 1314 | PORT_DIPSETTING( 0x00, "2 to start, 1 to continue" ) | |
| 1315 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 1309 | PORT_START_TAG("DSW2") | |
| 1310 | PORT_DIPNAME( 0x01, 0x01, "Credits Needed" ) PORT_DIPLOCATION("SW2:1") | |
| 1311 | PORT_DIPSETTING( 0x01, "1 Credit To Start" ) | |
| 1312 | PORT_DIPSETTING( 0x00, "2 Credits To Start" ) | |
| 1313 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 1316 | 1314 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1317 | 1315 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1318 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) | |
| 1319 | PORT_DIPSETTING( 0x08, "1" ) | |
| 1320 | PORT_DIPSETTING( 0x0c, "2" ) | |
| 1321 | PORT_DIPSETTING( 0x04, "3" ) | |
| 1322 | PORT_DIPSETTING( 0x00, "5" ) | |
| 1323 | PORT_DIPNAME( 0x30, 0x30, "Energy Meter" ) | |
| 1324 | PORT_DIPSETTING( 0x20, "2" ) | |
| 1325 | PORT_DIPSETTING( 0x30, "3" ) | |
| 1326 | PORT_DIPSETTING( 0x10, "4" ) | |
| 1327 | PORT_DIPSETTING( 0x00, "5" ) | |
| 1328 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) | |
| 1329 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1330 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1331 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) | |
| 1332 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1333 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1316 | PORT_DIPNAME( 0x3c, 0x3c, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:3,4,5,6") /* Definition according to manual */ | |
| 1317 | PORT_DIPSETTING( 0x00, "Special" ) | |
| 1318 | PORT_DIPSETTING( 0x14, DEF_STR( Easiest ) ) | |
| 1319 | PORT_DIPSETTING( 0x1c, DEF_STR( Easier ) ) | |
| 1320 | PORT_DIPSETTING( 0x34, DEF_STR( Easy ) ) | |
| 1321 | PORT_DIPSETTING( 0x3c, DEF_STR( Normal ) ) | |
| 1322 | PORT_DIPSETTING( 0x38, DEF_STR( Hard ) ) | |
| 1323 | PORT_DIPSETTING( 0x2c, DEF_STR( Harder ) ) | |
| 1324 | PORT_DIPSETTING( 0x28, DEF_STR( Hardest ) ) | |
| 1325 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW2:7" ) /* Listed as "Unused" */ | |
| 1326 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW2:8" ) /* Listed as "Unused" */ | |
| 1327 | ||
| 1328 | /* PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 1329 | PORT_DIPSETTING( 0x08, "1" ) | |
| 1330 | PORT_DIPSETTING( 0x0c, "2" ) | |
| 1331 | PORT_DIPSETTING( 0x04, "3" ) | |
| 1332 | PORT_DIPSETTING( 0x00, "5" ) | |
| 1333 | PORT_DIPNAME( 0x30, 0x30, "Energy Meter" ) PORT_DIPLOCATION("SW2:5,6") | |
| 1334 | PORT_DIPSETTING( 0x20, "2" ) | |
| 1335 | PORT_DIPSETTING( 0x30, "3" ) | |
| 1336 | PORT_DIPSETTING( 0x10, "4" ) | |
| 1337 | PORT_DIPSETTING( 0x00, "5" ) | |
| 1338 | */ | |
| 1334 | 1339 | INPUT_PORTS_END |
| 1335 | 1340 | |
| 1336 | 1341 | /***************************************************************************/ |
| r1649 | r1650 | |
| 1544 | 1549 | SYS16_SERVICE |
| 1545 | 1550 | SYS16_COINAGE |
| 1546 | 1551 | |
| 1547 | PORT_START_TAG("DSW1") | |
| 1548 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 1552 | PORT_START_TAG("DSW2") | |
| 1553 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") | |
| 1549 | 1554 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1550 | 1555 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1551 | PORT_DIPNAME( 0x0e, 0x0e, "Initial Point" ) | |
| 1556 | PORT_DIPNAME( 0x0e, 0x0e, "Initial Point" ) PORT_DIPLOCATION("SW2:2,3,4") | |
| 1552 | 1557 | PORT_DIPSETTING( 0x06, "2000" ) |
| 1553 | 1558 | PORT_DIPSETTING( 0x0a, "3000" ) |
| 1554 | 1559 | PORT_DIPSETTING( 0x0c, "4000" ) |
| r1649 | r1650 | |
| 1557 | 1562 | PORT_DIPSETTING( 0x04, "7000" ) |
| 1558 | 1563 | PORT_DIPSETTING( 0x02, "8000" ) |
| 1559 | 1564 | PORT_DIPSETTING( 0x00, "9000" ) |
| 1560 | PORT_DIPNAME( 0x30, 0x30, "Point Table" ) | |
| 1565 | PORT_DIPNAME( 0x30, 0x30, "Point Table" ) PORT_DIPLOCATION("SW2:5,6") | |
| 1561 | 1566 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 1562 | 1567 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) |
| 1563 | 1568 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) |
| 1564 | 1569 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 1565 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) | |
| 1570 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 1566 | 1571 | PORT_DIPSETTING( 0x80, DEF_STR( Easy ) ) |
| 1567 | 1572 | PORT_DIPSETTING( 0xc0, DEF_STR( Normal ) ) |
| 1568 | 1573 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) |
| r1649 | r1650 | |
| 1602 | 1607 | |
| 1603 | 1608 | SYS16_COINAGE |
| 1604 | 1609 | |
| 1605 | PORT_START_TAG("DSW1") | |
| 1606 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 1610 | PORT_START_TAG("DSW2") | |
| 1611 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") | |
| 1607 | 1612 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1608 | 1613 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1609 | PORT_DIPNAME( 0x0e, 0x0e, "Initial Point" ) | |
| 1614 | PORT_DIPNAME( 0x0e, 0x0e, "Initial Point" ) PORT_DIPLOCATION("SW2:2,3,4") | |
| 1610 | 1615 | PORT_DIPSETTING( 0x06, "2000" ) |
| 1611 | 1616 | PORT_DIPSETTING( 0x0a, "3000" ) |
| 1612 | 1617 | PORT_DIPSETTING( 0x0c, "4000" ) |
| r1649 | r1650 | |
| 1615 | 1620 | PORT_DIPSETTING( 0x04, "7000" ) |
| 1616 | 1621 | PORT_DIPSETTING( 0x02, "8000" ) |
| 1617 | 1622 | PORT_DIPSETTING( 0x00, "9000" ) |
| 1618 | PORT_DIPNAME( 0x30, 0x30, "Point Table" ) | |
| 1623 | PORT_DIPNAME( 0x30, 0x30, "Point Table" ) PORT_DIPLOCATION("SW2:5,6") | |
| 1619 | 1624 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 1620 | 1625 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) |
| 1621 | 1626 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) |
| 1622 | 1627 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 1623 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) | |
| 1628 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 1624 | 1629 | PORT_DIPSETTING( 0x80, DEF_STR( Easy ) ) |
| 1625 | 1630 | PORT_DIPSETTING( 0xc0, DEF_STR( Normal ) ) |
| 1626 | 1631 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) |
| r1649 | r1650 | |
| 1688 | 1693 | SYS16_SERVICE |
| 1689 | 1694 | SYS16_COINAGE |
| 1690 | 1695 | |
| 1691 | PORT_START_TAG("DSW1") | |
| 1692 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) | |
| 1696 | PORT_START_TAG("DSW2") | |
| 1697 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW2:1") | |
| 1693 | 1698 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1694 | 1699 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 1695 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 1700 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 1696 | 1701 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1697 | 1702 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1698 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) | |
| 1703 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 1699 | 1704 | PORT_DIPSETTING( 0x08, "2" ) |
| 1700 | 1705 | PORT_DIPSETTING( 0x0c, "3" ) |
| 1701 | 1706 | PORT_DIPSETTING( 0x04, "5" ) |
| 1702 | PORT_DIPSETTING( 0x00, "240 (Cheat)") | |
| 1703 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) | |
| 1707 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 1708 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 1704 | 1709 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 1705 | 1710 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) |
| 1706 | 1711 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) |
| 1707 | 1712 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 1708 | PORT_DIPNAME( 0x40, 0x40, "Enemy's Bullet Speed" ) | |
| 1713 | PORT_DIPNAME( 0x40, 0x40, "Enemy's Bullet Speed" ) PORT_DIPLOCATION("SW2:7") | |
| 1709 | 1714 | PORT_DIPSETTING( 0x40, "Slow" ) |
| 1710 | 1715 | PORT_DIPSETTING( 0x00, "Fast" ) |
| 1711 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Language ) ) | |
| 1716 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Language ) ) PORT_DIPLOCATION("SW2:8") | |
| 1712 | 1717 | PORT_DIPSETTING( 0x80, DEF_STR( Japanese ) ) |
| 1713 | 1718 | PORT_DIPSETTING( 0x00, DEF_STR( English ) ) |
| 1714 | ||
| 1715 | 1719 | INPUT_PORTS_END |
| 1716 | 1720 | |
| 1717 | 1721 | /***************************************************************************/ |
| r1649 | r1650 | |
| 1869 | 1873 | SYS16_SERVICE |
| 1870 | 1874 | SYS16_COINAGE /* unconfirmed */ |
| 1871 | 1875 | |
| 1872 | PORT_START_TAG("DSW1") | |
| 1873 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 1874 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1875 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1876 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 1876 | PORT_START_TAG("DSW2") | |
| 1877 | PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "SW2:1" ) /* Listed as "Unused" */ | |
| 1878 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 1877 | 1879 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1878 | 1880 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1879 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Unknown ) ) // from the code it looks like some kind of difficulty | |
| 1880 | PORT_DIPSETTING( 0x0c, "A" ) // level, but all 4 levels points to the same place | |
| 1881 | PORT_DIPSETTING( 0x08, "B" ) // so it doesn't actually change anything!! | |
| 1882 | PORT_DIPSETTING( 0x04, "C" ) | |
| 1883 | PORT_DIPSETTING( 0x00, "D" ) | |
| 1884 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) | |
| 1881 | /* From the code SW2:3,4 looks like some kind of difficulty level, | |
| 1882 | but all 4 levels points to the same place so it doesn't actually change anything!! */ | |
| 1883 | PORT_DIPUNUSED_DIPLOC( 0x04, 0x04, "SW2:3" ) /* Listed as "Unused" */ | |
| 1884 | PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "SW2:4" ) /* Listed as "Unused" */ | |
| 1885 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 1885 | 1886 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 1886 | 1887 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) |
| 1887 | 1888 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) |
| 1888 | 1889 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 1889 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) | |
| 1890 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1891 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1892 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) | |
| 1893 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1894 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1890 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW2:7" ) /* Listed as "Unused" */ | |
| 1891 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW2:8" ) /* Listed as "Unused" */ | |
| 1895 | 1892 | INPUT_PORTS_END |
| 1896 | 1893 | |
| 1897 | 1894 | /***************************************************************************/ |
| r1649 | r1650 | |
| 1956 | 1953 | SYS16_SERVICE |
| 1957 | 1954 | SYS16_COINAGE |
| 1958 | 1955 | |
| 1959 | PORT_START_TAG("DSW1") | |
| 1960 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Continues ) ) | |
| 1956 | PORT_START_TAG("DSW2") | |
| 1957 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Continues ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 1961 | 1958 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) |
| 1962 | 1959 | PORT_DIPSETTING( 0x01, "3" ) |
| 1963 | 1960 | PORT_DIPSETTING( 0x02, "Unlimited" ) |
| 1964 | 1961 | PORT_DIPSETTING( 0x03, "Unlimited" ) |
| 1965 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Difficulty ) ) | |
| 1962 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 1966 | 1963 | PORT_DIPSETTING( 0x08, DEF_STR( Easy ) ) |
| 1967 | 1964 | PORT_DIPSETTING( 0x0c, DEF_STR( Normal ) ) |
| 1968 | 1965 | PORT_DIPSETTING( 0x04, DEF_STR( Hard ) ) |
| 1969 | 1966 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 1970 | PORT_DIPNAME( 0x30, 0x20, "Starting Energy" ) | |
| 1967 | PORT_DIPNAME( 0x30, 0x20, "Starting Energy" ) PORT_DIPLOCATION("SW2:5,6") | |
| 1971 | 1968 | PORT_DIPSETTING( 0x00, "3" ) |
| 1972 | 1969 | PORT_DIPSETTING( 0x10, "4" ) |
| 1973 | 1970 | PORT_DIPSETTING( 0x20, "6" ) |
| 1974 | 1971 | PORT_DIPSETTING( 0x30, "8" ) |
| 1975 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 1972 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:7") | |
| 1976 | 1973 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 1977 | 1974 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1978 | PORT_DIPNAME( 0x80, 0x00, "Bonus Energy" ) | |
| 1975 | PORT_DIPNAME( 0x80, 0x00, "Bonus Energy" ) PORT_DIPLOCATION("SW2:8") | |
| 1979 | 1976 | PORT_DIPSETTING( 0x80, "1" ) |
| 1980 | 1977 | PORT_DIPSETTING( 0x00, "2" ) |
| 1981 | 1978 | INPUT_PORTS_END |
| r1649 | r1650 | |
| 2110 | 2107 | SYS16_SERVICE |
| 2111 | 2108 | SYS16_COINAGE |
| 2112 | 2109 | |
| 2113 | PORT_START_TAG("DSW1") | |
| 2114 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 2115 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 2116 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2117 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 2110 | PORT_START_TAG("DSW2") | |
| 2111 | PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "SW2:1" ) /* Listed as "Unused" */ | |
| 2112 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 2118 | 2113 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 2119 | 2114 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2120 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) | |
| 2115 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 2121 | 2116 | PORT_DIPSETTING( 0x00, "2" ) |
| 2122 | 2117 | PORT_DIPSETTING( 0x0c, "3" ) |
| 2123 | 2118 | PORT_DIPSETTING( 0x08, "4" ) |
| 2124 | 2119 | PORT_DIPSETTING( 0x04, "5" ) |
| 2125 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Bonus_Life ) ) //?? | |
| 2126 | PORT_DIPSETTING( 0x10, "5000/10000/18000/30000" ) | |
| 2127 | PORT_DIPSETTING( 0x00, "5000/15000/30000" ) | |
| 2128 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) | |
| 2129 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 2130 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2131 | PORT_DIPNAME( 0x40, 0x40, "Allow Round Select" ) | |
| 2132 | PORT_DIPSETTING( 0x40, DEF_STR( No ) ) | |
| 2133 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) // no collision though | |
| 2134 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) | |
| 2135 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 2136 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2120 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:5") | |
| 2121 | PORT_DIPSETTING( 0x10, "50k/100k/180k/300k" ) | |
| 2122 | PORT_DIPSETTING( 0x00, "50k/150k/300k" ) | |
| 2123 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:6") | |
| 2124 | PORT_DIPSETTING( 0x20, DEF_STR( Normal ) ) | |
| 2125 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) | |
| 2126 | PORT_DIPNAME( 0x40, 0x40, "Test Mode" ) PORT_DIPLOCATION("SW2:7") | |
| 2127 | PORT_DIPSETTING( 0x40, DEF_STR( No ) ) /* Normal game */ | |
| 2128 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) /* Levels are selectable / Player is Invincible */ | |
| 2129 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW2:8" ) /* Listed as "Unused" */ | |
| 2137 | 2130 | INPUT_PORTS_END |
| 2138 | 2131 | |
| 2139 | 2132 | /***************************************************************************/ |
| r1649 | r1650 | |
| 2784 | 2777 | |
| 2785 | 2778 | /* System16A */ |
| 2786 | 2779 | /* rom parent machine inp init */ |
| 2787 | GAME( 1987, shinoblb, shinobi, shinob2, shinobi, shinobl, ROT0, "[Sega] (Beta bootleg)", "Shinobi (Beta bootleg)", 0 ) | |
| 2788 | GAME( 1987, shinobld, shinobi, shinob2, shinobi, shinobl, ROT0, "[Sega] (Datsu bootleg)", "Shinobi (Datsu bootleg)", 0 ) | |
| 2780 | GAME( 1987, shinoblb, shinobi, shinob2, shinobi, shinobl, ROT0, "[Sega] (Beta bootleg)", "Shinobi (Beta bootleg)", 0 ) | |
| 2781 | GAME( 1987, shinobld, shinobi, shinob2, shinobi, shinobl, ROT0, "[Sega] (Datsu bootleg)", "Shinobi (Datsu bootleg)", 0 ) | |
| 2789 | 2782 | |
| 2790 | 2783 | /* System16B */ |
| 2791 | 2784 | /* rom parent machine inp init */ |
| r1649 | r1650 | |
|---|---|---|
| 32 | 32 | ***************************************************************************/ |
| 33 | 33 | |
| 34 | 34 | #include "driver.h" |
| 35 | #include "deprecat.h" | |
| 35 | 36 | #include "cpu/z80/z80.h" |
| 36 | 37 | #include "sound/okim6295.h" |
| 37 | 38 | #include "sound/3812intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 63 | 63 | |
| 64 | 64 | #include "driver.h" |
| 65 | 65 | #include "rescap.h" |
| 66 | #include "deprecat.h" | |
| 66 | 67 | #include "machine/6821pia.h" |
| 67 | 68 | #include "machine/74123.h" |
| 68 | 69 | #include "video/crtc6845.h" |
| r1649 | r1650 | |
|---|---|---|
| 24 | 24 | */ |
| 25 | 25 | |
| 26 | 26 | #include "driver.h" |
| 27 | #include "deprecat.h" | |
| 27 | 28 | #include "sound/okim6295.h" |
| 28 | 29 | #include "machine/eeprom.h" |
| 29 | 30 |
| r1649 | r1650 | |
|---|---|---|
| 68 | 68 | ****************************************************************************/ |
| 69 | 69 | |
| 70 | 70 | #include "driver.h" |
| 71 | #include "deprecat.h" | |
| 71 | 72 | #include "cpu/m6502/m6502.h" |
| 72 | 73 | #include "redalert.h" |
| 73 | 74 |
| r1649 | r1650 | |
|---|---|---|
| 83 | 83 | |
| 84 | 84 | |
| 85 | 85 | #include "driver.h" |
| 86 | #include "deprecat.h" | |
| 86 | 87 | #include "machine/z80ctc.h" |
| 87 | 88 | #include "audio/mcr.h" |
| 88 | 89 | #include "mcr.h" |
| r1649 | r1650 | |
|---|---|---|
| 48 | 48 | */ |
| 49 | 49 | |
| 50 | 50 | #include "driver.h" |
| 51 | #include "deprecat.h" | |
| 51 | 52 | #include "machine/z80ctc.h" |
| 52 | 53 | #include "sound/2203intf.h" |
| 53 | 54 | #include "machine/8255ppi.h" |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "cpu/m6502/m6502.h" |
| 11 | 12 | #include "sound/2203intf.h" |
| 12 | 13 | #include "sound/3812intf.h" |
| r1649 | r1650 | |
| 154 | 155 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) |
| 155 | 156 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) ) |
| 156 | 157 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_2C ) ) |
| 157 | PORT_DIPNAME( 0x10, 0x0 | |
| 158 | PORT_DIPNAME( 0x10, 0x10 | |
| 158 | 159 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 159 | 160 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 160 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) | |
| 161 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 162 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 161 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) | |
| 162 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 163 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 163 | 164 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Flip_Screen ) ) |
| 164 | 165 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 165 | 166 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | ***************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "sound/upd7759.h" |
| 13 | 14 | #include "sound/3812intf.h" |
| 14 | 15 |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | ***************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "cpu/konami/konami.h" /* for the callback and the firq irq definition */ |
| 13 | 14 | #include "cpu/z80/z80.h" |
| 14 | 15 | #include "video/konamiic.h" |
| r1649 | r1650 | |
|---|---|---|
| 25 | 25 | */ |
| 26 | 26 | |
| 27 | 27 | #include "driver.h" |
| 28 | #include "deprecat.h" | |
| 28 | 29 | #include "cpu/z80/z80.h" |
| 29 | 30 | #include "snk.h" |
| 30 | 31 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
|---|---|---|
| 50 | 50 | *******************************************************************************/ |
| 51 | 51 | |
| 52 | 52 | #include "driver.h" |
| 53 | #include "deprecat.h" | |
| 53 | 54 | #include "cpu/m68000/m68000.h" |
| 54 | 55 | #include "cpu/z80/z80.h" |
| 55 | 56 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 23 | 23 | *******************************************************************************/ |
| 24 | 24 | |
| 25 | 25 | #include "driver.h" |
| 26 | #include "deprecat.h" | |
| 26 | 27 | #include "cpu/m6502/m6502.h" |
| 27 | 28 | #include "cpu/h6280/h6280.h" |
| 28 | 29 | #include "sound/2203intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 625 | 625 | */ |
| 626 | 626 | |
| 627 | 627 | #include "driver.h" |
| 628 | #include "deprecat.h" | |
| 628 | 629 | #include "machine/eeprom.h" |
| 629 | 630 | #include "system16.h" |
| 630 | 631 | #include "video/segaic24.h" |
| r1649 | r1650 | |
|---|---|---|
| 211 | 211 | ***************************************************************************/ |
| 212 | 212 | |
| 213 | 213 | #include "driver.h" |
| 214 | #include "deprecat.h" | |
| 214 | 215 | #include "machine/namcoio.h" |
| 215 | 216 | #include "sound/namco.h" |
| 216 | 217 | #include "sound/namco52.h" |
| r1649 | r1650 | |
|---|---|---|
| 85 | 85 | Ryujin (YM2610 sound) |
| 86 | 86 | |
| 87 | 87 | Violence Fight (YM2203 sound, 1xMSM6295 ) |
| 88 | Hit The Ice (YM2203 sound, | |
| 88 | Hit The Ice (YM2203 sound, 1xMSM6295 ) | |
| 89 | 89 | Master of Weapons (YM2203 sound) |
| 90 | 90 | |
| 91 | 91 | Quiz Sekai wa SHOW by shobai (YM2610-B sound, MB87078 - electronic volume control) |
| r1649 | r1650 | |
| 168 | 168 | ***************************************************************************/ |
| 169 | 169 | |
| 170 | 170 | #include "driver.h" |
| 171 | #include "deprecat.h" | |
| 171 | 172 | #include "cpu/m68000/m68000.h" |
| 172 | 173 | #include "video/taitoic.h" |
| 173 | 174 | #include "machine/eeprom.h" |
| r1649 | r1650 | |
| 1033 | 1034 | AM_RANGE(0xf200, 0xf200) AM_WRITE(bankswitch_w) |
| 1034 | 1035 | ADDRESS_MAP_END |
| 1035 | 1036 | |
| 1036 | static ADDRESS_MAP_START( | |
| 1037 | static ADDRESS_MAP_START( viofight_sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1037 | 1038 | AM_RANGE(0x0000, 0x3fff) AM_READ(MRA8_ROM) |
| 1038 | 1039 | AM_RANGE(0x4000, 0x7fff) AM_READ(MRA8_BANK1) |
| 1039 | 1040 | AM_RANGE(0x8000, 0x8fff) AM_READ(MRA8_RAM) |
| r1649 | r1650 | |
| 1042 | 1043 | AM_RANGE(0xa001, 0xa001) AM_READ(taitosound_slave_comm_r) |
| 1043 | 1044 | ADDRESS_MAP_END |
| 1044 | 1045 | |
| 1045 | static ADDRESS_MAP_START( hitice_sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1046 | AM_RANGE(0x0000, 0x7fff) AM_WRITE(MWA8_ROM) | |
| 1047 | AM_RANGE(0x8000, 0x8fff) AM_WRITE(MWA8_RAM) | |
| 1048 | AM_RANGE(0x9000, 0x9000) AM_WRITE(YM2203_control_port_0_w) | |
| 1049 | AM_RANGE(0x9001, 0x9001) AM_WRITE(YM2203_write_port_0_w) | |
| 1050 | AM_RANGE(0xb000, 0xb000) AM_WRITE(OKIM6295_data_0_w) | |
| 1051 | AM_RANGE(0xb001, 0xb001) AM_WRITE(OKIM6295_data_1_w) | |
| 1052 | AM_RANGE(0xa000, 0xa000) AM_WRITE(taitosound_slave_port_w) | |
| 1053 | AM_RANGE(0xa001, 0xa001) AM_WRITE(taitosound_slave_comm_w) | |
| 1054 | ADDRESS_MAP_END | |
| 1055 | ||
| 1056 | 1046 | static ADDRESS_MAP_START( viofight_sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1057 | 1047 | AM_RANGE(0x0000, 0x7fff) AM_WRITE(MWA8_ROM) |
| 1058 | 1048 | AM_RANGE(0x8000, 0x8fff) AM_WRITE(MWA8_RAM) |
| r1649 | r1650 | |
| 2834 | 2824 | |
| 2835 | 2825 | /* basic machine hardware */ |
| 2836 | 2826 | MDRV_CPU_ADD(M68000, 12000000) /* 12 MHz */ |
| 2837 | MDRV_CPU_PROGRAM_MAP(hitice_readmem,hitice_writemem) | |
| 2827 | MDRV_CPU_PROGRAM_MAP(hitice_readmem, hitice_writemem) | |
| 2838 | 2828 | MDRV_CPU_VBLANK_INT(hitice_interrupt,1) |
| 2839 | 2829 | |
| 2840 | 2830 | MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz */ |
| 2841 | MDRV_CPU_PROGRAM_MAP( | |
| 2831 | MDRV_CPU_PROGRAM_MAP(viofight_sound_readmem, viofight_sound_writemem) | |
| 2842 | 2832 | |
| 2843 | 2833 | MDRV_SCREEN_REFRESH_RATE(60) |
| 2844 | 2834 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) |
| r1649 | r1650 | |
| 2870 | 2860 | MDRV_SOUND_ADD(OKIM6295, 1056000) |
| 2871 | 2861 | MDRV_SOUND_CONFIG(okim6295_interface_region_1_pin7high) // clock frequency & pin 7 not verified |
| 2872 | 2862 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 2873 | ||
| 2874 | MDRV_SOUND_ADD(OKIM6295, 1056000) | |
| 2875 | MDRV_SOUND_CONFIG(okim6295_interface_region_1_pin7high) // clock frequency & pin 7 not verified | |
| 2876 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.65) | |
| 2877 | 2863 | MACHINE_DRIVER_END |
| 2878 | 2864 | |
| 2879 | 2865 | |
| r1649 | r1650 | |
| 3116 | 3102 | MDRV_CPU_VBLANK_INT(viofight_interrupt,1) |
| 3117 | 3103 | |
| 3118 | 3104 | MDRV_CPU_ADD(Z80, 6000000) /* 6 MHz verified */ |
| 3119 | MDRV_CPU_PROGRAM_MAP( | |
| 3105 | MDRV_CPU_PROGRAM_MAP(viofight_sound_readmem, viofight_sound_writemem) | |
| 3120 | 3106 | |
| 3121 | 3107 | MDRV_SCREEN_REFRESH_RATE(60) |
| 3122 | 3108 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "tank8.h" |
| 9 | 10 | #include "sound/discrete.h" |
| 10 | 11 | |
| r1649 | r1650 | |
| 537 | 538 | } |
| 538 | 539 | |
| 539 | 540 | |
| 540 | GAME( 1976, tank8, 0, tank8, tank8, 0, ROT0, "Atari", "Tank 8 (set 1)", 0) | |
| 541 | GAME( 1976, tank8a, tank8, tank8, tank8, decode, ROT0, "Atari", "Tank 8 (set 2)", GAME_NOT_WORKING ) | |
| 542 | GAME( 1976, tank8b, tank8, tank8, tank8, decode, ROT0, "Atari", "Tank 8 (set 3)", GAME_NOT_WORKING ) | |
| 543 | GAME( 1976, tank8c, tank8, tank8, tank8, 0, ROT0, "Atari", "Tank 8 (set 4)", GAME_NOT_WORKING ) | |
| 544 | GAME( 1976, tank8d, tank8, tank8, tank8, 0, ROT0, "Atari", "Tank 8 (set 5)", GAME_NOT_WORKING ) | |
| 541 | GAME( 1976, tank8, 0, tank8, tank8, 0, ROT0, "Atari", "Tank 8 (set 1)", 0) | |
| 542 | GAME( 1976, tank8a, tank8, tank8, tank8, decode, ROT0, "Atari", "Tank 8 (set 2)", GAME_NOT_WORKING ) | |
| 543 | GAME( 1976, tank8b, tank8, tank8, tank8, decode, ROT0, "Atari", "Tank 8 (set 3)", GAME_NOT_WORKING ) | |
| 544 | GAME( 1976, tank8c, tank8, tank8, tank8, 0, ROT0, "Atari", "Tank 8 (set 4)", GAME_NOT_WORKING ) | |
| 545 | GAME( 1976, tank8d, tank8, tank8, tank8, 0, ROT0, "Atari", "Tank 8 (set 5)", GAME_NOT_WORKING ) |
| r1649 | r1650 | |
|---|---|---|
| 175 | 175 | *******************************************************************/ |
| 176 | 176 | |
| 177 | 177 | #include "driver.h" |
| 178 | #include "deprecat.h" | |
| 178 | 179 | #include "cpu/m6800/m6800.h" |
| 179 | 180 | #include "sound/2151intf.h" |
| 180 | 181 | #include "sound/namco.h" |
| r1649 | r1650 | |
|---|---|---|
| 36 | 36 | ***************************************************************************/ |
| 37 | 37 | |
| 38 | 38 | #include "driver.h" |
| 39 | #include "deprecat.h" | |
| 39 | 40 | #include "cpu/z80/z80.h" |
| 40 | 41 | #include "sound/ay8910.h" |
| 41 | 42 | #include "sound/2203intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | ***************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "cpu/h6280/h6280.h" |
| 13 | 14 | #include "sound/2203intf.h" |
| 14 | 15 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 47 | 47 | ***************************************************************************/ |
| 48 | 48 | |
| 49 | 49 | #include "driver.h" |
| 50 | #include "deprecat.h" | |
| 50 | 51 | #include "cpu/m6502/m6502.h" |
| 51 | 52 | #include "sound/ay8910.h" |
| 52 | 53 |
| r1649 | r1650 | |
|---|---|---|
| 20 | 20 | ***************************************************************************/ |
| 21 | 21 | |
| 22 | 22 | #include "driver.h" |
| 23 | #include "deprecat.h" | |
| 23 | 24 | #include "cpu/m68000/m68000.h" |
| 24 | 25 | #include "machine/idectrl.h" |
| 25 | 26 | #include "sound/k054539.h" |
| r1649 | r1650 | |
|---|---|---|
| 153 | 153 | ***************************************************************************/ |
| 154 | 154 | |
| 155 | 155 | #include "driver.h" |
| 156 | #include "deprecat.h" | |
| 156 | 157 | #include "machine/eeprom.h" |
| 157 | 158 | #include "sound/2151intf.h" |
| 158 | 159 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
|---|---|---|
| 85 | 85 | ***************************************************************************/ |
| 86 | 86 | |
| 87 | 87 | #include "driver.h" |
| 88 | #include "deprecat.h" | |
| 88 | 89 | #include "sound/okim6295.h" |
| 89 | 90 | #include "sound/3812intf.h" |
| 90 | 91 |
| r1649 | r1650 | |
|---|---|---|
| 143 | 143 | **************************************************************************/ |
| 144 | 144 | |
| 145 | 145 | #include "driver.h" |
| 146 | #include "deprecat.h" | |
| 146 | 147 | #include "gaelco3d.h" |
| 147 | 148 | #include "cpu/tms32031/tms32031.h" |
| 148 | 149 | #include "cpu/adsp2100/adsp2100.h" |
| r1649 | r1650 | |
|---|---|---|
| 453 | 453 | |
| 454 | 454 | |
| 455 | 455 | #include "driver.h" |
| 456 | #include "deprecat.h" | |
| 456 | 457 | #include "cpu/m6809/m6809.h" |
| 457 | 458 | #include "machine/6821pia.h" |
| 458 | 459 | #include "machine/6522via.h" |
| r1649 | r1650 | |
|---|---|---|
| 355 | 355 | ***************************************************************************/ |
| 356 | 356 | |
| 357 | 357 | #include "driver.h" |
| 358 | #include "deprecat.h" | |
| 358 | 359 | #include "cpu/z80/z80.h" |
| 359 | 360 | #include "cpu/s2650/s2650.h" |
| 360 | 361 | #include "galaxian.h" |
| r1649 | r1650 | |
|---|---|---|
| 15 | 15 | ***************************************************************************/ |
| 16 | 16 | |
| 17 | 17 | #include "driver.h" |
| 18 | #include "deprecat.h" | |
| 18 | 19 | #include "sound/okim6295.h" |
| 19 | 20 | |
| 20 | 21 |
| r1649 | r1650 | |
|---|---|---|
| 171 | 171 | ***************************************************************************/ |
| 172 | 172 | |
| 173 | 173 | #include "driver.h" |
| 174 | #include "deprecat.h" | |
| 174 | 175 | #include "sound/2608intf.h" |
| 175 | 176 | #include "sound/2610intf.h" |
| 176 | 177 |
| r1649 | r1650 | |
|---|---|---|
| 33 | 33 | ******************************************************************************/ |
| 34 | 34 | |
| 35 | 35 | #include "driver.h" |
| 36 | #include "deprecat.h" | |
| 36 | 37 | #include "gstriker.h" |
| 37 | 38 | #include "sound/2610intf.h" |
| 38 | 39 | |
| r1649 | r1650 | |
| 663 | 664 | GAME( 1993, gstriker, 0, gstriker, gstriker, 0, ROT0, "Human", "Grand Striker", GAME_IMPERFECT_GRAPHICS ) |
| 664 | 665 | |
| 665 | 666 | /* Similar, but not identical hardware, appear to be protected by an MCU :-( */ |
| 666 | GAME( 199?, vgoalsoc, 0, gstriker, gstriker, 0, ROT0, "Tecmo", "V Goal Soccer", GAME_NOT_WORKING ) | |
| 667 | GAME( 199?, vgoalsca, vgoalsoc, gstriker, gstriker, 0, ROT0, "Tecmo", "V Goal Soccer (alt)", GAME_NOT_WORKING ) | |
| 668 | GAME( 1994, twrldc94, 0, twrldc94, gstriker, twrldc94, ROT0, "Tecmo", "Tecmo World Cup '94", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_GRAPHICS ) | |
| 669 | GAME( 1994, twrdc94a, twrldc94, twrldc94, gstriker, twrldc94, ROT0, "Tecmo", "Tecmo World Cup '94 (set 2)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_GRAPHICS ) | |
| 670 | ||
| 671 | ||
| 667 | GAME( 199?, vgoalsoc, 0, gstriker, gstriker, 0, ROT0, "Tecmo", "V Goal Soccer (set 1)", GAME_NOT_WORKING ) | |
| 668 | GAME( 199?, vgoalsca, vgoalsoc, gstriker, gstriker, 0, ROT0, "Tecmo", "V Goal Soccer (set 2)", GAME_NOT_WORKING ) | |
| 669 | GAME( 1994, twrldc94, 0, twrldc94, gstriker, twrldc94, ROT0, "Tecmo", "Tecmo World Cup '94 (set 1)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_GRAPHICS ) | |
| 670 | GAME( 1994, twrdc94a, twrldc94, twrldc94, gstriker, twrldc94, ROT0, "Tecmo", "Tecmo World Cup '94 (set 2)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_GRAPHICS ) |
| r1649 | r1650 | |
|---|---|---|
| 216 | 216 | ***************************************************************************/ |
| 217 | 217 | |
| 218 | 218 | #include "driver.h" |
| 219 | #include "deprecat.h" | |
| 219 | 220 | #include "cpu/z80/z80.h" |
| 220 | 221 | #include "snk.h" |
| 221 | 222 | #include "sound/3812intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 27 | 27 | ***************************************************************************/ |
| 28 | 28 | |
| 29 | 29 | #include "driver.h" |
| 30 | #include "deprecat.h" | |
| 30 | 31 | #include "sound/2151intf.h" |
| 31 | 32 | #include "sound/okim6295.h" |
| 32 | 33 | #include "sound/2413intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 67 | 67 | |
| 68 | 68 | |
| 69 | 69 | #include "driver.h" |
| 70 | #include "deprecat.h" | |
| 70 | 71 | #include "machine/atarigen.h" |
| 71 | 72 | #include "arcadecl.h" |
| 72 | 73 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
|---|---|---|
| 270 | 270 | Custom 169 (120 pin PQFP) |
| 271 | 271 | */ |
| 272 | 272 | #include "driver.h" |
| 273 | #include "deprecat.h" | |
| 273 | 274 | #include "namconb1.h" |
| 274 | 275 | #include "namcos2.h" |
| 275 | 276 | #include "namcoic.h" |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | |
| 13 | 13 | ***************************************************************************/ |
| 14 | 14 | |
| 15 | #include <math.h> | |
| 16 | 15 | #include "driver.h" |
| 16 | #include "deprecat.h" | |
| 17 | 17 | #include "cpu/z80/z80.h" |
| 18 | 18 | #include "cpu/m6805/m6805.h" |
| 19 | 19 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
|---|---|---|
| 81 | 81 | ******************************************************************************/ |
| 82 | 82 | |
| 83 | 83 | #include "driver.h" |
| 84 | #include "deprecat.h" | |
| 84 | 85 | #include "video/konamiic.h" |
| 85 | 86 | #include "sound/2610intf.h" |
| 86 | 87 |
| r1649 | r1650 | |
|---|---|---|
| 15 | 15 | *****************************************************************************/ |
| 16 | 16 | |
| 17 | 17 | #include "driver.h" |
| 18 | #include "deprecat.h" | |
| 18 | 19 | #include "sound/sn76496.h" |
| 19 | 20 | |
| 20 | 21 | static UINT8 *strnskil_sharedram; |
| r1649 | r1650 | |
|---|---|---|
| 48 | 48 | |
| 49 | 49 | |
| 50 | 50 | #include "driver.h" |
| 51 | #include "deprecat.h" | |
| 51 | 52 | #include "cpu/m6502/m6502.h" |
| 52 | 53 | #include "slapstic.h" |
| 53 | 54 | #include "atetris.h" |
| r1649 | r1650 | |
| 522 | 523 | GAME( 1988, atetris, 0, atetris, atetris, atetris, ROT0, "Atari Games", "Tetris (set 1)", GAME_SUPPORTS_SAVE ) |
| 523 | 524 | GAME( 1988, atetrisa, atetris, atetris, atetris, atetris, ROT0, "Atari Games", "Tetris (set 2)", GAME_SUPPORTS_SAVE ) |
| 524 | 525 | GAME( 1988, atetrisb, atetris, atetris, atetris, atetris, ROT0, "bootleg", "Tetris (bootleg set 1)", GAME_SUPPORTS_SAVE ) |
| 525 | GAME( 1988, atetrsb2, atetris, atetrsb2, atetris, atetris, ROT0, "bootleg", "Tetris (bootleg set 2)", GAME_SUPPORTS_SAVE ) | |
| 526 | GAME( 1989, atetcktl, atetris, atetris, atetcktl, atetris, ROT270, "Atari Games", "Tetris (Cocktail set 1)", GAME_SUPPORTS_SAVE ) | |
| 527 | GAME( 1989, atetckt2, atetris, atetris, atetcktl, atetris, ROT270, "Atari Games", "Tetris (Cocktail set 2)", GAME_SUPPORTS_SAVE ) | |
| 526 | GAME( 1988, atetrsb2, atetris, atetrsb2, atetris, atetris, ROT0, "bootleg", "Tetris (bootleg set 2)", GAME_SUPPORTS_SAVE ) | |
| 527 | GAME( 1989, atetcktl, atetris, atetris, atetcktl, atetris, ROT270, "Atari Games", "Tetris (cocktail set 1)", GAME_SUPPORTS_SAVE ) | |
| 528 | GAME( 1989, atetckt2, atetris, atetris, atetcktl, atetris, ROT270, "Atari Games", "Tetris (cocktail set 2)", GAME_SUPPORTS_SAVE ) |
| r1649 | r1650 | |
|---|---|---|
| 313 | 313 | |
| 314 | 314 | static VIDEO_UPDATE( dgpix ) |
| 315 | 315 | { |
| 316 | copybitmap(bitmap,bitmaps[vbuffer ^ 1],0,0,0,0,cliprect | |
| 316 | copybitmap(bitmap,bitmaps[vbuffer ^ 1],0,0,0,0,cliprect | |
| 317 | 317 | return 0; |
| 318 | 318 | } |
| 319 | 319 |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | |
| 13 | 13 | |
| 14 | 14 | #include "driver.h" |
| 15 | #include "deprecat.h" | |
| 15 | 16 | #include "cpu/z80/z80.h" |
| 16 | 17 | #include "sound/samples.h" |
| 17 | 18 | #include "sound/dac.h" |
| r1649 | r1650 | |
| 20 | 21 | PALETTE_INIT( panic ); |
| 21 | 22 | PALETTE_INIT( cosmica ); |
| 22 | 23 | PALETTE_INIT( cosmicg ); |
| 23 | PALETTE_INIT( magspot | |
| 24 | PALETTE_INIT( magspot | |
| 24 | 25 | PALETTE_INIT( nomnlnd ); |
| 25 | 26 | VIDEO_UPDATE( panic ); |
| 26 | VIDEO_UPDATE( magspot | |
| 27 | VIDEO_UPDATE( magspot | |
| 27 | 28 | VIDEO_UPDATE( devzone ); |
| 28 | 29 | VIDEO_UPDATE( cosmica ); |
| 29 | 30 | VIDEO_UPDATE( cosmicg ); |
| r1649 | r1650 | |
| 224 | 225 | cpunum_set_input_line(machine, 0, 0, CLEAR_LINE); |
| 225 | 226 | } |
| 226 | 227 | |
| 227 | static INTERRUPT_GEN( magspot | |
| 228 | static INTERRUPT_GEN( magspot | |
| 228 | 229 | { |
| 229 | 230 | /* Coin 1 causes an IRQ, Coin 2 an NMI */ |
| 230 | 231 | if (input_port_4_r(0) & 0x01) |
| r1649 | r1650 | |
| 254 | 255 | return (input_port_0_r(0) & 0xf0) | ((video_screen_get_vpos(0) & 0xf0) >> 4); |
| 255 | 256 | } |
| 256 | 257 | |
| 257 | static READ8_HANDLER( magspot | |
| 258 | static READ8_HANDLER( magspot | |
| 258 | 259 | { |
| 259 | 260 | return (input_port_5_r(0) & (1 << (7 - offset))) ? 0 : 1; |
| 260 | 261 | } |
| r1649 | r1650 | |
| 353 | 354 | ADDRESS_MAP_END |
| 354 | 355 | |
| 355 | 356 | |
| 356 | static ADDRESS_MAP_START( magspot | |
| 357 | static ADDRESS_MAP_START( magspot | |
| 357 | 358 | AM_RANGE(0x0000, 0x2fff) AM_READ(MRA8_ROM) |
| 358 | AM_RANGE(0x3800, 0x3807) AM_READ(magspot | |
| 359 | AM_RANGE(0x3800, 0x3807) AM_READ(magspot | |
| 359 | 360 | AM_RANGE(0x5000, 0x5000) AM_READ(input_port_0_r) |
| 360 | 361 | AM_RANGE(0x5001, 0x5001) AM_READ(input_port_1_r) |
| 361 | 362 | AM_RANGE(0x5002, 0x5002) AM_READ(input_port_2_r) |
| r1649 | r1650 | |
| 363 | 364 | AM_RANGE(0x6000, 0x7fff) AM_READ(MRA8_RAM) |
| 364 | 365 | ADDRESS_MAP_END |
| 365 | 366 | |
| 366 | static ADDRESS_MAP_START( magspot | |
| 367 | static ADDRESS_MAP_START( magspot | |
| 367 | 368 | AM_RANGE(0x0000, 0x2fff) AM_WRITE(MWA8_ROM) |
| 368 | 369 | AM_RANGE(0x4000, 0x401f) AM_WRITE(MWA8_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size) |
| 369 | 370 | AM_RANGE(0x4800, 0x4800) AM_WRITE(DAC_0_data_w) |
| r1649 | r1650 | |
| 537 | 538 | INPUT_PORTS_END |
| 538 | 539 | |
| 539 | 540 | |
| 540 | static INPUT_PORTS_START( magspot | |
| 541 | static INPUT_PORTS_START( magspot | |
| 541 | 542 | PORT_START /* IN0 */ |
| 542 | 543 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 543 | 544 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| r1649 | r1650 | |
| 922 | 923 | |
| 923 | 924 | |
| 924 | 925 | static GFXDECODE_START( panic ) |
| 925 | GFXDECODE_ENTRY( REGION_GFX1, 0, cosmic_spritelayout16, 0, 8 ) | |
| 926 | GFXDECODE_ENTRY( REGION_GFX1, 0, cosmic_spritelayout32, 0, 8 ) | |
| 926 | GFXDECODE_ENTRY( REGION_GFX1, 0, cosmic_spritelayout16, 16, 8 ) | |
| 927 | GFXDECODE_ENTRY( REGION_GFX1, 0, cosmic_spritelayout32, 16, 8 ) | |
| 927 | 928 | GFXDECODE_END |
| 928 | 929 | |
| 929 | 930 | static GFXDECODE_START( cosmica ) |
| 930 | GFXDECODE_ENTRY( REGION_GFX1, 0, cosmic_spritelayout16, 0, 16 ) | |
| 931 | GFXDECODE_ENTRY( REGION_GFX1, 0, cosmic_spritelayout32, 0, 16 ) | |
| 931 | GFXDECODE_ENTRY( REGION_GFX1, 0, cosmic_spritelayout16, 8, 16 ) | |
| 932 | GFXDECODE_ENTRY( REGION_GFX1, 0, cosmic_spritelayout32, 8, 16 ) | |
| 932 | 933 | GFXDECODE_END |
| 933 | 934 | |
| 934 | 935 | |
| r1649 | r1650 | |
| 1009 | 1010 | |
| 1010 | 1011 | /* video hardware */ |
| 1011 | 1012 | MDRV_GFXDECODE(panic) |
| 1012 | MDRV_PALETTE_LENGTH(16) | |
| 1013 | MDRV_COLORTABLE_LENGTH(8*4) | |
| 1013 | MDRV_PALETTE_LENGTH(16+8*4) | |
| 1014 | 1014 | |
| 1015 | 1015 | MDRV_PALETTE_INIT(panic) |
| 1016 | 1016 | MDRV_VIDEO_UPDATE(panic) |
| r1649 | r1650 | |
| 1038 | 1038 | |
| 1039 | 1039 | /* video hardware */ |
| 1040 | 1040 | MDRV_GFXDECODE(cosmica) |
| 1041 | MDRV_PALETTE_LENGTH(8) | |
| 1042 | MDRV_COLORTABLE_LENGTH(16*4) | |
| 1041 | MDRV_PALETTE_LENGTH(8+16*4) | |
| 1043 | 1042 | |
| 1044 | 1043 | MDRV_PALETTE_INIT(cosmica) |
| 1045 | 1044 | MDRV_VIDEO_UPDATE(cosmica) |
| r1649 | r1650 | |
| 1082 | 1081 | MACHINE_DRIVER_END |
| 1083 | 1082 | |
| 1084 | 1083 | |
| 1085 | static MACHINE_DRIVER_START( magspot | |
| 1084 | static MACHINE_DRIVER_START( magspot | |
| 1086 | 1085 | |
| 1087 | 1086 | /* basic machine hardware */ |
| 1088 | 1087 | MDRV_IMPORT_FROM(cosmic) |
| 1089 | 1088 | MDRV_CPU_MODIFY("main") |
| 1090 | 1089 | |
| 1091 | MDRV_CPU_PROGRAM_MAP(magspot2_readmem,magspot2_writemem) | |
| 1092 | MDRV_CPU_VBLANK_INT(magspot2_interrupt,1) | |
| 1090 | MDRV_CPU_PROGRAM_MAP(magspot_readmem,magspot_writemem) | |
| 1091 | MDRV_CPU_VBLANK_INT(magspot_interrupt,1) | |
| 1093 | 1092 | |
| 1094 | 1093 | /* video hardware */ |
| 1095 | 1094 | MDRV_GFXDECODE(panic) |
| 1096 | MDRV_PALETTE_LENGTH(16) | |
| 1097 | MDRV_COLORTABLE_LENGTH(8*4) | |
| 1095 | MDRV_PALETTE_LENGTH(16+8*4) | |
| 1098 | 1096 | |
| 1099 | MDRV_PALETTE_INIT(magspot2) | |
| 1100 | MDRV_VIDEO_UPDATE(magspot2) | |
| 1097 | MDRV_PALETTE_INIT(magspot) | |
| 1098 | MDRV_VIDEO_UPDATE(magspot) | |
| 1101 | 1099 | |
| 1102 | 1100 | /* sound hardware */ |
| 1103 | 1101 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| r1649 | r1650 | |
| 1110 | 1108 | static MACHINE_DRIVER_START( devzone ) |
| 1111 | 1109 | |
| 1112 | 1110 | /* basic machine hardware */ |
| 1113 | MDRV_IMPORT_FROM(magspot | |
| 1111 | MDRV_IMPORT_FROM(magspot | |
| 1114 | 1112 | |
| 1115 | 1113 | /* video hardware */ |
| 1116 | 1114 | MDRV_VIDEO_UPDATE(devzone) |
| r1649 | r1650 | |
| 1123 | 1121 | MDRV_IMPORT_FROM(cosmic) |
| 1124 | 1122 | MDRV_CPU_MODIFY("main") |
| 1125 | 1123 | |
| 1126 | MDRV_CPU_PROGRAM_MAP(magspot | |
| 1124 | MDRV_CPU_PROGRAM_MAP(magspot | |
| 1127 | 1125 | MDRV_CPU_VBLANK_INT(nomnlnd_interrupt,1) |
| 1128 | 1126 | |
| 1129 | 1127 | /* video hardware */ |
| 1130 | 1128 | MDRV_GFXDECODE(panic) |
| 1131 | MDRV_PALETTE_LENGTH(8) | |
| 1132 | MDRV_COLORTABLE_LENGTH(8*4) | |
| 1129 | MDRV_PALETTE_LENGTH(16+8*4) | |
| 1133 | 1130 | |
| 1134 | 1131 | MDRV_PALETTE_INIT(nomnlnd) |
| 1135 | 1132 | MDRV_VIDEO_UPDATE(nomnlnd) |
| r1649 | r1650 | |
| 1477 | 1474 | |
| 1478 | 1475 | memory_region(REGION_CPU1)[offs] = normal; |
| 1479 | 1476 | } |
| 1480 | ||
| 1481 | ||
| 1482 | /* Patch to avoid crash - Seems like duff romcheck routine */ | |
| 1483 | /* I would expect it to be bitrot, but have two romsets */ | |
| 1484 | /* from different sources with the same problem! */ | |
| 1485 | memory_region(REGION_CPU1)[0x1e9e] = 0x04; | |
| 1486 | memory_region(REGION_CPU1)[0x1e9f] = 0xc0; | |
| 1487 | 1477 | } |
| 1488 | 1478 | |
| 1489 | 1479 | |
| r1649 | r1650 | |
| 1510 | 1500 | GAME( 1980, panic3, panic, panic, panic, 0, ROT270, "Universal", "Space Panic (set 3)", 0 ) |
| 1511 | 1501 | GAME( 1980, panich, panic, panic, panic, 0, ROT270, "Universal", "Space Panic (harder)", 0 ) |
| 1512 | 1502 | GAME( 1980, panicger, panic, panic, panic, 0, ROT270, "Universal (ADP Automaten license)", "Space Panic (German)", 0 ) |
| 1513 | GAME( 1980, magspot, 0, magspot2, magspot2, 0, ROT270, "Universal", "Magical Spot", GAME_IMPERFECT_SOUND ) | |
| 1514 | GAME( 1980, magspot2, 0, magspot2, magspot2, 0, ROT270, "Universal", "Magical Spot II", GAME_IMPERFECT_SOUND ) | |
| 1503 | GAME( 1980, magspot, 0, magspot, magspot, 0, ROT270, "Universal", "Magical Spot", GAME_IMPERFECT_SOUND ) | |
| 1504 | GAME( 1980, magspot2, 0, magspot, magspot, 0, ROT270, "Universal", "Magical Spot II", GAME_IMPERFECT_SOUND ) | |
| 1515 | 1505 | GAME( 1980, devzone, 0, devzone, devzone, devzone, ROT270, "Universal", "Devil Zone", GAME_IMPERFECT_SOUND ) |
| 1516 | 1506 | GAME( 1980, devzone2, devzone, devzone, devzone2, devzone, ROT270, "Universal", "Devil Zone (easier)", GAME_IMPERFECT_SOUND ) |
| 1517 | 1507 | GAME( 1980, nomnlnd, 0, nomnlnd, nomnlnd, nomnlnd, ROT270, "Universal", "No Man's Land", GAME_IMPERFECT_SOUND ) |
| r1649 | r1650 | |
|---|---|---|
| 47 | 47 | */ |
| 48 | 48 | |
| 49 | 49 | #include "driver.h" |
| 50 | #include "deprecat.h" | |
| 50 | 51 | #include "cpu/z80/z80.h" |
| 51 | 52 | #include "video/v9938.h" |
| 52 | 53 | #include "sound/2413intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "sound/sn76496.h" |
| 11 | 12 | |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 49 | 49 | */ |
| 50 | 50 | |
| 51 | 51 | #include "driver.h" |
| 52 | #include "deprecat.h" | |
| 52 | 53 | #include "machine/eeprom.h" |
| 53 | 54 | #include "video/segaic24.h" |
| 54 | 55 | #include "cpu/i960/i960.h" |
| r1649 | r1650 | |
|---|---|---|
| 104 | 104 | */ |
| 105 | 105 | |
| 106 | 106 | #include "driver.h" |
| 107 | #include "deprecat.h" | |
| 107 | 108 | #include "cpu/m68000/m68000.h" |
| 108 | 109 | #include "machine/6522via.h" |
| 109 | 110 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
|---|---|---|
| 287 | 287 | |
| 288 | 288 | /************************************* |
| 289 | 289 | * |
| 290 | * Graphics definitions | |
| 291 | * | |
| 292 | *************************************/ | |
| 293 | ||
| 294 | static const gfx_layout bklayout = | |
| 295 | { | |
| 296 | 8,8, | |
| 297 | RGN_FRAC(1,6), | |
| 298 | 6, | |
| 299 | { RGN_FRAC(5,6), RGN_FRAC(4,6), RGN_FRAC(3,6), RGN_FRAC(2,6), RGN_FRAC(1,6), RGN_FRAC(0,6) }, | |
| 300 | { 0, 1, 2, 3, 4, 5, 6, 7 }, | |
| 301 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, | |
| 302 | 8*8 | |
| 303 | }; | |
| 304 | ||
| 305 | static GFXDECODE_START( ataxx ) | |
| 306 | GFXDECODE_ENTRY( REGION_GFX1, 0, bklayout, 0, 1 ) | |
| 307 | GFXDECODE_END | |
| 308 | ||
| 309 | ||
| 310 | ||
| 311 | /************************************* | |
| 312 | * | |
| 313 | 290 | * Sound definitions |
| 314 | 291 | * |
| 315 | 292 | *************************************/ |
| r1649 | r1650 | |
| 343 | 320 | MDRV_CPU_PROGRAM_MAP(leland_80186_map_program,0) |
| 344 | 321 | MDRV_CPU_IO_MAP(ataxx_80186_map_io,0) |
| 345 | 322 | |
| 346 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 347 | ||
| 348 | 323 | MDRV_MACHINE_START(ataxx) |
| 349 | 324 | MDRV_MACHINE_RESET(ataxx) |
| 350 | 325 | MDRV_NVRAM_HANDLER(ataxx) |
| 351 | 326 | |
| 352 | 327 | /* video hardware */ |
| 353 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 354 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 355 | MDRV_SCREEN_SIZE(40*8, 32*8) | |
| 356 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 30*8-1) | |
| 357 | MDRV_GFXDECODE(ataxx) | |
| 358 | MDRV_PALETTE_LENGTH(1024) | |
| 328 | MDRV_IMPORT_FROM(ataxx_video) | |
| 359 | 329 | |
| 360 | MDRV_VIDEO_START(ataxx) | |
| 361 | MDRV_VIDEO_EOF(leland) | |
| 362 | MDRV_VIDEO_UPDATE(ataxx) | |
| 363 | ||
| 364 | 330 | /* sound hardware */ |
| 365 | 331 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 366 | 332 | |
| r1649 | r1650 | |
| 407 | 373 | ROM_LOAD16_BYTE( "e-302-31002-01.u2", 0x60000, 0x20000, CRC(ca06a394) SHA1(0858908bd150dd7354536e10b2a386b45f17ac9f) ) |
| 408 | 374 | ROM_RELOAD( 0xc0000, 0x20000 ) |
| 409 | 375 | |
| 410 | ROM_REGION( 0xc0000, REGION_GFX1, | |
| 376 | ROM_REGION( 0xc0000, REGION_GFX1, 0 | |
| 411 | 377 | ROM_LOAD( "e-302-31006-01.u98", 0x00000, 0x20000, CRC(59d0f2ae) SHA1(8da5dc006e192af98458227e79421b6a07ac1cdc) ) |
| 412 | 378 | ROM_LOAD( "e-302-31007-01.u99", 0x20000, 0x20000, CRC(6ab7db25) SHA1(25c2fa23b99ac4bab5a9b851c2087de44512a5c2) ) |
| 413 | 379 | ROM_LOAD( "e-302-31008-01.u100", 0x40000, 0x20000, CRC(2352849e) SHA1(f49394b6efb6a87d86516ec0a5ddd582f96f7e5d) ) |
| r1649 | r1650 | |
| 438 | 404 | ROM_LOAD16_BYTE( "e-302-31002-01.u2", 0x60000, 0x20000, CRC(ca06a394) SHA1(0858908bd150dd7354536e10b2a386b45f17ac9f) ) |
| 439 | 405 | ROM_RELOAD( 0xc0000, 0x20000 ) |
| 440 | 406 | |
| 441 | ROM_REGION( 0xc0000, REGION_GFX1, | |
| 407 | ROM_REGION( 0xc0000, REGION_GFX1, 0 | |
| 442 | 408 | ROM_LOAD( "e-302-31006-01.u98", 0x00000, 0x20000, CRC(59d0f2ae) SHA1(8da5dc006e192af98458227e79421b6a07ac1cdc) ) |
| 443 | 409 | ROM_LOAD( "e-302-31007-01.u99", 0x20000, 0x20000, CRC(6ab7db25) SHA1(25c2fa23b99ac4bab5a9b851c2087de44512a5c2) ) |
| 444 | 410 | ROM_LOAD( "e-302-31008-01.u100", 0x40000, 0x20000, CRC(2352849e) SHA1(f49394b6efb6a87d86516ec0a5ddd582f96f7e5d) ) |
| r1649 | r1650 | |
| 469 | 435 | ROM_LOAD16_BYTE( "ataxxj.u2", 0x60000, 0x20000, CRC(1b63b882) SHA1(cb04e641fc173f787a0f48c98f5198db265c26d8) ) |
| 470 | 436 | ROM_RELOAD( 0xc0000, 0x20000 ) |
| 471 | 437 | |
| 472 | ROM_REGION( 0xc0000, REGION_GFX1, | |
| 438 | ROM_REGION( 0xc0000, REGION_GFX1, 0 | |
| 473 | 439 | ROM_LOAD( "e-302-31006-01.u98", 0x00000, 0x20000, CRC(59d0f2ae) SHA1(8da5dc006e192af98458227e79421b6a07ac1cdc) ) |
| 474 | 440 | ROM_LOAD( "e-302-31007-01.u99", 0x20000, 0x20000, CRC(6ab7db25) SHA1(25c2fa23b99ac4bab5a9b851c2087de44512a5c2) ) |
| 475 | 441 | ROM_LOAD( "e-302-31008-01.u100", 0x40000, 0x20000, CRC(2352849e) SHA1(f49394b6efb6a87d86516ec0a5ddd582f96f7e5d) ) |
| r1649 | r1650 | |
| 506 | 472 | ROM_LOAD16_BYTE( "30019-01.u5", 0x60000, 0x20000, CRC(2881f73b) SHA1(414d974018fb4518c46b913184b07add69251724) ) |
| 507 | 473 | ROM_RELOAD( 0xc0000, 0x20000 ) |
| 508 | 474 | |
| 509 | ROM_REGION( 0x60000, REGION_GFX1, | |
| 475 | ROM_REGION( 0x60000, REGION_GFX1, 0 | |
| 510 | 476 | ROM_LOAD( "30011-02.145", 0x00000, 0x10000, CRC(6153569b) SHA1(b6a106c8b87a9a3f01eff3854d0c1f2c4a64fd94) ) |
| 511 | 477 | ROM_LOAD( "30012-02.146", 0x10000, 0x10000, CRC(52d65e21) SHA1(25f63aa29dc7e7673043e1f43e357a5232a1be9e) ) |
| 512 | 478 | ROM_LOAD( "30013-02.147", 0x20000, 0x10000, CRC(b3afda12) SHA1(52bf780c642f0092114aeb994e6571c034f198a0) ) |
| r1649 | r1650 | |
| 551 | 517 | ROM_LOAD16_BYTE( "u5_27c.010", 0x60000, 0x20000, CRC(198285d4) SHA1(8f6b3cba2bc729f2e0623578b13720ead91333e4) ) |
| 552 | 518 | ROM_RELOAD( 0xc0000, 0x20000 ) |
| 553 | 519 | |
| 554 | ROM_REGION( 0xc0000, REGION_GFX1, | |
| 520 | ROM_REGION( 0xc0000, REGION_GFX1, 0 | |
| 555 | 521 | ROM_LOAD( "u145_27c.010", 0x00000, 0x20000, CRC(612d4bf8) SHA1(035cc8723524e2c6aa79ffa7d7c1f6fb0a25cc51) ) |
| 556 | 522 | ROM_LOAD( "u146_27c.010", 0x20000, 0x20000, CRC(77a725f6) SHA1(9bb521ed7202387bbf2670f9b1ae3cbe5064ae03) ) |
| 557 | 523 | ROM_LOAD( "u147_27c.010", 0x40000, 0x20000, CRC(d6aac372) SHA1(49f5f5d6c2a82ea15905086a2f8e3ea061d37dfc) ) |
| r1649 | r1650 | |
| 597 | 563 | ROM_LOAD16_BYTE( "u5", 0x60000, 0x20000, CRC(cbdb914b) SHA1(813640fa291c1245d04a628ee62afc95d5c67a03) ) |
| 598 | 564 | ROM_RELOAD( 0xc0000, 0x20000 ) |
| 599 | 565 | |
| 600 | ROM_REGION( 0x180000, REGION_GFX1, | |
| 566 | ROM_REGION( 0x180000, REGION_GFX1, 0 | |
| 601 | 567 | ROM_LOAD( "u145", 0x000000, 0x40000, CRC(c3d20d24) SHA1(a75217b0d1887c64bf5570ff7a461c8cf47c5e85) ) |
| 602 | 568 | ROM_LOAD( "u146", 0x040000, 0x40000, CRC(43e9dd87) SHA1(0694803a5b33c074858770c7e4cd884402c263f8) ) |
| 603 | 569 | ROM_LOAD( "u147", 0x080000, 0x40000, CRC(fb855ce8) SHA1(839bca2d8e344d43fad8978b812c9246a89054a8) ) |
| r1649 | r1650 | |
| 651 | 617 | ROM_LOAD16_BYTE( "asy-65.5", 0x60000, 0x20000, CRC(5814b307) SHA1(6db97804d58941a5543424d8c4658cb3edab1e43) ) |
| 652 | 618 | ROM_RELOAD( 0xc0000, 0x20000 ) |
| 653 | 619 | |
| 654 | ROM_REGION( 0x180000, REGION_GFX1, | |
| 620 | ROM_REGION( 0x180000, REGION_GFX1, 0 | |
| 655 | 621 | ROM_LOAD( "asy-chr0.145", 0x000000, 0x40000, CRC(4dbcae49) SHA1(0aa54daa099d6590a41df4a24a27bf6463b3e116) ) |
| 656 | 622 | ROM_LOAD( "asy-chr1.146", 0x040000, 0x40000, CRC(34e7762d) SHA1(2d63971effc237846481bed7d829fa924b4bea31) ) |
| 657 | 623 | ROM_LOAD( "asy-chr2.147", 0x080000, 0x40000, CRC(f9b0d375) SHA1(305172d8cdf390d9566c2c6f32d8da44b165022a) ) |
| r1649 | r1650 | |
|---|---|---|
| 52 | 52 | ***************************************************************************/ |
| 53 | 53 | |
| 54 | 54 | #include "driver.h" |
| 55 | #include "deprecat.h" | |
| 55 | 56 | #include "sound/2203intf.h" |
| 56 | 57 | #include "sound/okim6295.h" |
| 57 | 58 |
| r1649 | r1650 | |
|---|---|---|
| 34 | 34 | |
| 35 | 35 | ***************************************************************************/ |
| 36 | 36 | #include "driver.h" |
| 37 | #include "deprecat.h" | |
| 37 | 38 | #include "cpu/z80/z80.h" |
| 38 | 39 | #include "sound/custom.h" |
| 39 | 40 |
| r1649 | r1650 | |
|---|---|---|
| 22 | 22 | ***************************************************************************/ |
| 23 | 23 | |
| 24 | 24 | #include "driver.h" |
| 25 | #include "deprecat.h" | |
| 25 | 26 | #include "kyugo.h" |
| 26 | 27 | #include "sound/ay8910.h" |
| 27 | 28 | |
| r1649 | r1650 | |
| 1272 | 1273 | GAME( 1986, srdmissn, 0, srdmissn, srdmissn, srdmissn, ROT90, "Taito Corporation", "S.R.D. Mission", 0 ) |
| 1273 | 1274 | GAME( 1986, fx, srdmissn, srdmissn, srdmissn, srdmissn, ROT90, "bootleg", "F-X", 0 ) |
| 1274 | 1275 | GAME( 1986?,legend, 0, legend, legend, srdmissn, ROT0, "Sega / Coreland ?", "Legend", 0 ) |
| 1275 | GAME( 1987, airwolf, 0, srdmissn, airwolf, srdmissn, ROT0, "Kyugo", "Airwolf | |
| 1276 | GAME( 1987, airwolf, 0, srdmissn, airwolf, srdmissn, ROT0, "Kyugo", "Airwolf | |
| 1276 | 1277 | GAME( 1987, airwolfa, airwolf, srdmissn, airwolf, srdmissn, ROT0, "Kyugo (UA Theatre license)", "Airwolf (US)", 0 ) |
| 1277 | 1278 | GAME( 1987, skywolf, airwolf, srdmissn, skywolf, srdmissn, ROT0, "bootleg", "Sky Wolf (set 1)", 0 ) |
| 1278 | 1279 | GAME( 1987, skywolf2, airwolf, srdmissn, airwolf, srdmissn, ROT0, "bootleg", "Sky Wolf (set 2)", 0 ) |
| r1649 | r1650 | |
|---|---|---|
| 667 | 667 | |
| 668 | 668 | /************************************* |
| 669 | 669 | * |
| 670 | * Graphics definitions | |
| 671 | * | |
| 672 | *************************************/ | |
| 673 | ||
| 674 | static const gfx_layout bklayout = | |
| 675 | { | |
| 676 | 8,8, | |
| 677 | RGN_FRAC(1,3), | |
| 678 | 3, | |
| 679 | { RGN_FRAC(0,3), RGN_FRAC(1,3), RGN_FRAC(2,3) }, | |
| 680 | { 0, 1, 2, 3, 4, 5, 6, 7 }, | |
| 681 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, | |
| 682 | 8*8 | |
| 683 | }; | |
| 684 | ||
| 685 | static GFXDECODE_START( leland ) | |
| 686 | GFXDECODE_ENTRY( REGION_GFX1, 0, bklayout, 0, 8 ) | |
| 687 | GFXDECODE_END | |
| 688 | ||
| 689 | ||
| 690 | ||
| 691 | /************************************* | |
| 692 | * | |
| 693 | 670 | * Sound definitions |
| 694 | 671 | * |
| 695 | 672 | *************************************/ |
| r1649 | r1650 | |
| 748 | 725 | MDRV_CPU_PROGRAM_MAP(slave_small_map_program,0) |
| 749 | 726 | MDRV_CPU_IO_MAP(slave_map_io,0) |
| 750 | 727 | |
| 751 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 752 | ||
| 753 | 728 | MDRV_MACHINE_START(leland) |
| 754 | 729 | MDRV_MACHINE_RESET(leland) |
| 755 | 730 | MDRV_NVRAM_HANDLER(leland) |
| 756 | 731 | |
| 757 | 732 | /* video hardware */ |
| 758 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 759 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 760 | MDRV_SCREEN_SIZE(40*8, 32*8) | |
| 761 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 30*8-1) | |
| 762 | MDRV_GFXDECODE(leland) | |
| 763 | MDRV_PALETTE_LENGTH(1024) | |
| 733 | MDRV_IMPORT_FROM(leland_video) | |
| 764 | 734 | |
| 765 | MDRV_VIDEO_START(leland) | |
| 766 | MDRV_VIDEO_EOF(leland) | |
| 767 | MDRV_VIDEO_UPDATE(leland) | |
| 768 | ||
| 769 | 735 | /* sound hardware */ |
| 770 | 736 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 771 | 737 | |
| r1649 | r1650 | |
| 850 | 816 | ROM_LOAD( "3-23u8", 0x0a000, 0x02000, CRC(dbabdbde) SHA1(906ff8f91eaf01f0435d7ac1291af62073568d2f) ) |
| 851 | 817 | ROM_LOAD( "3-23u9", 0x0c000, 0x02000, CRC(eb992385) SHA1(0951d6fb5ff8508ef7184e9c26be6c20b85bad72) ) |
| 852 | 818 | |
| 853 | ROM_REGION( 0x06000, REGION_GFX1, | |
| 819 | ROM_REGION( 0x06000, REGION_GFX1, 0 | |
| 854 | 820 | ROM_LOAD( "3-23u93", 0x00000, 0x02000, CRC(14a1a4b0) SHA1(aad63e368a09497188f8112d1ca0ac0d0366ac61) ) |
| 855 | 821 | ROM_LOAD( "3-23u94", 0x02000, 0x02000, CRC(207a1709) SHA1(c7fbb80a83a5684b6b35750df68d51091e8747e4) ) |
| 856 | 822 | ROM_LOAD( "3-23u95", 0x04000, 0x02000, CRC(e9c86267) SHA1(c7f3a4725824da1e2793160409821017bd0bd956) ) |
| r1649 | r1650 | |
| 896 | 862 | ROM_LOAD( "13214.9", 0x1a000, 0x02000, CRC(96f3e8d9) SHA1(e0a663c3c9dc77f2ec10c71a9d227ec3ea765c6e) ) |
| 897 | 863 | ROM_CONTINUE( 0x26000, 0x02000 ) |
| 898 | 864 | |
| 899 | ROM_REGION( 0x0c000, REGION_GFX1, | |
| 865 | ROM_REGION( 0x0c000, REGION_GFX1, 0 | |
| 900 | 866 | ROM_LOAD( "13204.93", 0x00000, 0x04000, CRC(de183518) SHA1(080cd45c2c7d81b8edd5170aa6a587ae6e7e54fb) ) |
| 901 | 867 | ROM_LOAD( "13205.94", 0x04000, 0x04000, CRC(c61f63ac) SHA1(c52fe331391720796556a7eab7d145fd1dacf6ed) ) |
| 902 | 868 | ROM_LOAD( "13206.95", 0x08000, 0x04000, CRC(8e7bd2fd) SHA1(ccd97ef604be6d4479a8a91fccecb5d71a4d82af) ) |
| r1649 | r1650 | |
| 940 | 906 | ROM_LOAD( "13317.008", 0x18000, 0x02000, CRC(a081a031) SHA1(c7eef2022bc623bb3399895e092d6cb56c50b5e3) ) |
| 941 | 907 | ROM_CONTINUE( 0x24000, 0x02000 ) |
| 942 | 908 | |
| 943 | ROM_REGION( 0x06000, REGION_GFX1, | |
| 909 | ROM_REGION( 0x06000, REGION_GFX1, 0 | |
| 944 | 910 | ROM_LOAD( "13302.093", 0x00000, 0x02000, CRC(9beaa403) SHA1(02af1fb98f61b3e7758524978deba094224c8a5d) ) |
| 945 | 911 | ROM_LOAD( "13303.094", 0x02000, 0x02000, CRC(2bf711d0) SHA1(bf20177e1b07b12b4ef833072b313a2917d1b65e) ) |
| 946 | 912 | ROM_LOAD( "13304.095", 0x04000, 0x02000, CRC(06b8675b) SHA1(8b25a473c03f8210f5d8542c0dc6643c499a0afa) ) |
| r1649 | r1650 | |
| 988 | 954 | ROM_LOAD( "13422-00.u9", 0x1a000, 0x02000, CRC(222e8405) SHA1(a1cc700e06df43847b635858d21ff2e45d8e00ab) ) |
| 989 | 955 | ROM_CONTINUE( 0x26000, 0x02000 ) |
| 990 | 956 | |
| 991 | ROM_REGION( 0x0c000, REGION_GFX1, | |
| 957 | ROM_REGION( 0x0c000, REGION_GFX1, 0 | |
| 992 | 958 | ROM_LOAD( "13401-00.u93", 0x00000, 0x04000, CRC(4ea3e641) SHA1(7628fbf25b5e36d06818d2f9cdc66e2fb15cba4f) ) |
| 993 | 959 | ROM_LOAD( "13402-00.u94", 0x04000, 0x04000, CRC(71a8a56c) SHA1(b793a9641dd5d4cd122fb8f5cf1eef5dc3fd475c) ) |
| 994 | 960 | ROM_LOAD( "13403-00.u95", 0x08000, 0x04000, CRC(8077ae25) SHA1(15bb1f99e8aea67b9057ef5ef8570f33470a24a3) ) |
| r1649 | r1650 | |
| 1036 | 1002 | ROM_LOAD( "009", 0x1a000, 0x02000, CRC(6d74274e) SHA1(10bb04243eabeb8178884b4e0691c5e1765a1dc4) ) |
| 1037 | 1003 | ROM_CONTINUE( 0x26000, 0x02000 ) |
| 1038 | 1004 | |
| 1039 | ROM_REGION( 0x06000, REGION_GFX1, | |
| 1005 | ROM_REGION( 0x06000, REGION_GFX1, 0 | |
| 1040 | 1006 | ROM_LOAD( "093", 0x00000, 0x02000, CRC(54456e6f) SHA1(be41711f57b5b9bd6651399f0df00c538ca1a3a5) ) |
| 1041 | 1007 | ROM_LOAD( "094", 0x02000, 0x02000, CRC(edc240da) SHA1(a812ab0cccb20cd68e9dbe283d4aab92f540af24) ) |
| 1042 | 1008 | ROM_LOAD( "095", 0x04000, 0x02000, CRC(19793ed0) SHA1(2a3cb81726977b29c88d47c90d6e15a7e287c836) ) |
| r1649 | r1650 | |
| 1084 | 1050 | ROM_LOAD( "uya-u9.bin", 0x1a000, 0x02000, CRC(6d74274e) SHA1(10bb04243eabeb8178884b4e0691c5e1765a1dc4) ) |
| 1085 | 1051 | ROM_CONTINUE( 0x26000, 0x02000 ) |
| 1086 | 1052 | |
| 1087 | ROM_REGION( 0x0c000, REGION_GFX1, | |
| 1053 | ROM_REGION( 0x0c000, REGION_GFX1, 0 | |
| 1088 | 1054 | ROM_LOAD( "uya-u93.bin", 0x00000, 0x04000, CRC(e8addd70) SHA1(6fd6a09fbdbe866440c3205b103e4bede7e4b2d5) ) |
| 1089 | 1055 | ROM_LOAD( "uya-u94.bin", 0x04000, 0x04000, CRC(3fd3be09) SHA1(abdafbf9472fe3320be1a3effd13407dadf66709) ) |
| 1090 | 1056 | ROM_LOAD( "uya-u95.bin", 0x08000, 0x04000, CRC(37088dd1) SHA1(35e4a3b338baceae2e4b8ac6d95691af49ebc3c1) ) |
| r1649 | r1650 | |
| 1119 | 1085 | ROM_LOAD( "13821.8", 0x18000, 0x02000, CRC(92f3e006) SHA1(134a2412ddc700473b70aec6331b1a65db3c7e29) ) |
| 1120 | 1086 | ROM_CONTINUE( 0x24000, 0x02000 ) |
| 1121 | 1087 | |
| 1122 | ROM_REGION( 0x0c000, REGION_GFX1, | |
| 1088 | ROM_REGION( 0x0c000, REGION_GFX1, 0 | |
| 1123 | 1089 | ROM_LOAD( "13801.93", 0x00000, 0x04000, CRC(f9ff55ec) SHA1(2eab55b3708def97f22a1f13d1faa0bfe19c18e9) ) |
| 1124 | 1090 | ROM_LOAD( "13802.94", 0x04000, 0x04000, CRC(d4adbcbb) SHA1(dfd427d5a0db309cc7e056857c3b63a1b6e7769b) ) |
| 1125 | 1091 | ROM_LOAD( "13803.95", 0x08000, 0x04000, CRC(9178ed76) SHA1(f05568eea53c38f46b16217e63b73194d3a3c500) ) |
| r1649 | r1650 | |
| 1172 | 1138 | ROM_LOAD( "14106-01.u9", 0x1a000, 0x02000, CRC(b9656baa) SHA1(41b25ee6127981b703859c07f730e94f5694faff) ) |
| 1173 | 1139 | ROM_CONTINUE( 0x26000, 0x02000 ) |
| 1174 | 1140 | |
| 1175 | ROM_REGION( 0x0c000, REGION_GFX1, | |
| 1141 | ROM_REGION( 0x0c000, REGION_GFX1, 0 | |
| 1176 | 1142 | ROM_LOAD( "14112-00.u93", 0x00000, 0x04000, CRC(8ccb1404) SHA1(28ef5a7da1b9edf7ecbba0fd473599df5d181602) ) |
| 1177 | 1143 | ROM_LOAD( "14113-00.u94", 0x04000, 0x04000, CRC(9941a55b) SHA1(6917b70bb2a7a23c0517fde43e9375a7dbd64c18) ) |
| 1178 | 1144 | ROM_LOAD( "14114-00.u95", 0x08000, 0x04000, CRC(b68baf47) SHA1(ea1d5efe696af56ef5b9161c00957b2a9c7ce372) ) |
| r1649 | r1650 | |
| 1227 | 1193 | ROM_LOAD( "15006-01.u09", 0x1a000, 0x02000, CRC(ab3aac49) SHA1(699a6a66e6b35f1b287ff1ab3a12365dbdc16041) ) |
| 1228 | 1194 | ROM_CONTINUE( 0x26000, 0x02000 ) |
| 1229 | 1195 | |
| 1230 | ROM_REGION( 0x0c000, REGION_GFX1, | |
| 1196 | ROM_REGION( 0x0c000, REGION_GFX1, 0 | |
| 1231 | 1197 | ROM_LOAD( "15015-01.u93", 0x00000, 0x04000, CRC(8ccb1404) SHA1(28ef5a7da1b9edf7ecbba0fd473599df5d181602) ) |
| 1232 | 1198 | ROM_LOAD( "15016-01.u94", 0x04000, 0x04000, CRC(9941a55b) SHA1(6917b70bb2a7a23c0517fde43e9375a7dbd64c18) ) |
| 1233 | 1199 | ROM_LOAD( "15017-01.u95", 0x08000, 0x04000, CRC(b68baf47) SHA1(ea1d5efe696af56ef5b9161c00957b2a9c7ce372) ) |
| r1649 | r1650 | |
| 1282 | 1248 | ROM_LOAD( "strkzone.u9", 0x1a000, 0x02000, CRC(ab3aac49) SHA1(699a6a66e6b35f1b287ff1ab3a12365dbdc16041) ) |
| 1283 | 1249 | ROM_CONTINUE( 0x26000, 0x02000 ) |
| 1284 | 1250 | |
| 1285 | ROM_REGION( 0x0c000, REGION_GFX1, | |
| 1251 | ROM_REGION( 0x0c000, REGION_GFX1, 0 | |
| 1286 | 1252 | ROM_LOAD( "strkzone.u93", 0x00000, 0x04000, CRC(8ccb1404) SHA1(28ef5a7da1b9edf7ecbba0fd473599df5d181602) ) |
| 1287 | 1253 | ROM_LOAD( "strkzone.u94", 0x04000, 0x04000, CRC(9941a55b) SHA1(6917b70bb2a7a23c0517fde43e9375a7dbd64c18) ) |
| 1288 | 1254 | ROM_LOAD( "strkzone.u95", 0x08000, 0x04000, CRC(b68baf47) SHA1(ea1d5efe696af56ef5b9161c00957b2a9c7ce372) ) |
| r1649 | r1650 | |
| 1323 | 1289 | ROM_LOAD16_BYTE( "17t", 0x0e0001, 0x10000, CRC(8d26f221) SHA1(cd5b1d88fec0ff1ab7af554a9fcffc43d33a12e7) ) |
| 1324 | 1290 | ROM_LOAD16_BYTE( "28t", 0x0e0000, 0x10000, CRC(7aa21b2c) SHA1(5fd9f49d4bb1dc28393b9df76dfa19e28677639b) ) |
| 1325 | 1291 | |
| 1326 | ROM_REGION( 0x0c000, REGION_GFX1, | |
| 1292 | ROM_REGION( 0x0c000, REGION_GFX1, 0 | |
| 1327 | 1293 | ROM_LOAD( "13930-01.u93", 0x00000, 0x04000, CRC(0721f42e) SHA1(fe3d447316b1e6c7c1b6849319fad1aebe5e6aa1) ) |
| 1328 | 1294 | ROM_LOAD( "13929-01.u94", 0x04000, 0x04000, CRC(1522e7b2) SHA1(540fc55013a22a5afb32a89b42ef9b11dbe36d97) ) |
| 1329 | 1295 | ROM_LOAD( "13928-01.u95", 0x08000, 0x04000, CRC(c321b5d1) SHA1(d1524165e71fe200cab6fd6f6327da0e6efc6868) ) |
| r1649 | r1650 | |
| 1338 | 1304 | ROM_LOAD( "13926-01.u67", 0x18000, 0x4000, CRC(daa30add) SHA1(e9c066406c2d50ab3fc8eea8a97a181ad8c950c7) ) |
| 1339 | 1305 | ROM_LOAD( "13927-01.u89", 0x1c000, 0x4000, CRC(30e60fb5) SHA1(374c84358d2b7ae7c74321996797af9adbc2a155) ) |
| 1340 | 1306 | |
| 1341 | ROM_REGION( 0x0300, REGION_PLDS, | |
| 1307 | ROM_REGION( 0x0300, REGION_PLDS, 0 | |
| 1342 | 1308 | ROM_LOAD( "pal16l8-2601.25t", 0x0000, 0x0104, NO_DUMP ) /* PAL is read protected */ |
| 1343 | 1309 | ROM_LOAD( "pl20x10-0501.u21", 0x0200, 0x00cc, CRC(09ef7a46) SHA1(c37b10d268bf730a68748eee085b9d3757ee45b3) ) |
| 1344 | 1310 | ROM_END |
| r1649 | r1650 | |
| 1372 | 1338 | ROM_LOAD16_BYTE( "15220-02.43t", 0x0e0001, 0x10000, CRC(48a8a018) SHA1(f50d66feeab32f1edc47f4b3f33e579c06fd979e) ) |
| 1373 | 1339 | ROM_LOAD16_BYTE( "15223-02.60t", 0x0e0000, 0x10000, CRC(6a299766) SHA1(4e5b1f930f668302496a314bbe8876a21012fb20) ) |
| 1374 | 1340 | |
| 1375 | ROM_REGION( 0x0c000, REGION_GFX1, | |
| 1341 | ROM_REGION( 0x0c000, REGION_GFX1, 0 | |
| 1376 | 1342 | ROM_LOAD( "15215-01.u93", 0x00000, 0x04000, CRC(4fb678d7) SHA1(ca729ca8d2ba1e22a7b650ddfc330e85e294e48f) ) |
| 1377 | 1343 | ROM_LOAD( "lelqb.94", 0x04000, 0x04000, CRC(7b57a44c) SHA1(b28ecdc8b1579e677a58a4b5257d5d754783148f) ) |
| 1378 | 1344 | ROM_LOAD( "lelqb.95", 0x08000, 0x04000, CRC(29bc33fd) SHA1(e85d20b24144c5b0f6ffa6dc96f1abb35bce437a) ) |
| r1649 | r1650 | |
| 1417 | 1383 | ROM_LOAD16_BYTE( "15220-01.43t", 0x0e0001, 0x10000, CRC(ccb6c8d7) SHA1(bafe1ba6259f396cfa91fc6d2ff7832199763f3e) ) |
| 1418 | 1384 | ROM_LOAD16_BYTE( "15223-01.60t", 0x0e0000, 0x10000, CRC(c0ee425d) SHA1(4edbd62b8bb7f814e7ffa3111e6fb1e8b6615ae8) ) |
| 1419 | 1385 | |
| 1420 | ROM_REGION( 0x0c000, REGION_GFX1, | |
| 1386 | ROM_REGION( 0x0c000, REGION_GFX1, 0 | |
| 1421 | 1387 | ROM_LOAD( "15215-01.u93", 0x00000, 0x04000, CRC(4fb678d7) SHA1(ca729ca8d2ba1e22a7b650ddfc330e85e294e48f) ) |
| 1422 | 1388 | ROM_LOAD( "lelqb.94", 0x04000, 0x04000, CRC(7b57a44c) SHA1(b28ecdc8b1579e677a58a4b5257d5d754783148f) ) |
| 1423 | 1389 | ROM_LOAD( "lelqb.95", 0x08000, 0x04000, CRC(29bc33fd) SHA1(e85d20b24144c5b0f6ffa6dc96f1abb35bce437a) ) |
| r1649 | r1650 | |
| 1453 | 1419 | ROM_LOAD16_BYTE( "15618-02.43t", 0x0e0001, 0x10000, CRC(5562e0c3) SHA1(4c7b0cedc5adc4e24a1cd6010591205ddb16d554) ) |
| 1454 | 1420 | ROM_LOAD16_BYTE( "15621-02.60t", 0x0e0000, 0x10000, CRC(cb468f2b) SHA1(f37596c781b1d7c49d8f62d289c15a2ae0d752cc) ) |
| 1455 | 1421 | |
| 1456 | ROM_REGION( 0x0c000, REGION_GFX1, | |
| 1422 | ROM_REGION( 0x0c000, REGION_GFX1, 0 | |
| 1457 | 1423 | ROM_LOAD( "15609-01.u93", 0x00000, 0x04000, CRC(08ad92e9) SHA1(6eaffd58f03db3a67871ce7390b01754842e2574) ) |
| 1458 | 1424 | ROM_LOAD( "15610-01.u94", 0x04000, 0x04000, CRC(d4e56dfb) SHA1(0fc83847b8629534b15f9366f197c87e3c81c61a) ) |
| 1459 | 1425 | ROM_LOAD( "15611-01.u95", 0x08000, 0x04000, CRC(3a2c46fb) SHA1(e96849447852a9922e72f7f1908c76fea3c603c4) ) |
| r1649 | r1650 | |
| 1493 | 1459 | ROM_LOAD16_BYTE( "15625-01.27t", 0x0e0001, 0x10000, CRC(ac442523) SHA1(d05dcc413eb39b0938890ef80ec7b636773bb1a3) ) |
| 1494 | 1460 | ROM_LOAD16_BYTE( "15622-01.15t", 0x0e0000, 0x10000, CRC(9e84509a) SHA1(4c3a3e5192ba6c38d8391eedf817350795bddb8f) ) |
| 1495 | 1461 | |
| 1496 | ROM_REGION( 0x0c000, REGION_GFX1, | |
| 1462 | ROM_REGION( 0x0c000, REGION_GFX1, 0 | |
| 1497 | 1463 | ROM_LOAD( "15615-01.u93", 0x00000, 0x04000, CRC(a7ea6a87) SHA1(5cfd9ed6a5ffc8e86d18b7d8496761b9086b6368) ) |
| 1498 | 1464 | ROM_LOAD( "15616-01.u94", 0x04000, 0x04000, CRC(4a9b3900) SHA1(00398cc5056c999673604e414c9c0338d83b13d4) ) |
| 1499 | 1465 | ROM_LOAD( "15617-01.u95", 0x08000, 0x04000, CRC(2cd95edb) SHA1(939ff97562535b05f427186b085a74a8fe5a332a) ) |
| r1649 | r1650 | |
| 1533 | 1499 | ROM_LOAD16_BYTE( "15625-01.27t", 0x0e0001, 0x10000, CRC(ac442523) SHA1(d05dcc413eb39b0938890ef80ec7b636773bb1a3) ) |
| 1534 | 1500 | ROM_LOAD16_BYTE( "15622-01.15t", 0x0e0000, 0x10000, CRC(9e84509a) SHA1(4c3a3e5192ba6c38d8391eedf817350795bddb8f) ) |
| 1535 | 1501 | |
| 1536 | ROM_REGION( 0x0c000, REGION_GFX1, | |
| 1502 | ROM_REGION( 0x0c000, REGION_GFX1, 0 | |
| 1537 | 1503 | ROM_LOAD( "15615-01.u93", 0x00000, 0x04000, CRC(a7ea6a87) SHA1(5cfd9ed6a5ffc8e86d18b7d8496761b9086b6368) ) |
| 1538 | 1504 | ROM_LOAD( "15616-01.u94", 0x04000, 0x04000, CRC(4a9b3900) SHA1(00398cc5056c999673604e414c9c0338d83b13d4) ) |
| 1539 | 1505 | ROM_LOAD( "15617-01.u95", 0x08000, 0x04000, CRC(2cd95edb) SHA1(939ff97562535b05f427186b085a74a8fe5a332a) ) |
| r1649 | r1650 | |
| 1573 | 1539 | ROM_LOAD16_BYTE( "24021-01.u27", 0x0e0001, 0x10000, CRC(94081899) SHA1(289eb2f494d1110d169552e8898296e4a47fcb1d) ) |
| 1574 | 1540 | ROM_LOAD16_BYTE( "24018-01.u15", 0x0e0000, 0x10000, CRC(76eb6077) SHA1(255731c63f4a846bb01d4203a786eb34a4734e66) ) |
| 1575 | 1541 | |
| 1576 | ROM_REGION( 0x0c000, REGION_GFX1, | |
| 1542 | ROM_REGION( 0x0c000, REGION_GFX1, 0 | |
| 1577 | 1543 | ROM_LOAD( "03-28008.u93", 0x00000, 0x04000, NO_DUMP ) |
| 1578 | 1544 | ROM_LOAD( "03-28009.u94", 0x04000, 0x04000, CRC(669791ac) SHA1(e8b7bdec313ea9d40f89f13499a31f0b125951a8) ) |
| 1579 | 1545 | ROM_LOAD( "03-28010.u95", 0x08000, 0x04000, CRC(bd62aa8a) SHA1(c8a177a11ec94671bb3bd5883b40692495c049a2) ) |
| r1649 | r1650 | |
| 1613 | 1579 | ROM_LOAD16_BYTE( "24021-01.u27", 0x0e0001, 0x10000, CRC(94081899) SHA1(289eb2f494d1110d169552e8898296e4a47fcb1d) ) |
| 1614 | 1580 | ROM_LOAD16_BYTE( "24018-01.u15", 0x0e0000, 0x10000, CRC(76eb6077) SHA1(255731c63f4a846bb01d4203a786eb34a4734e66) ) |
| 1615 | 1581 | |
| 1616 | ROM_REGION( 0x18000, REGION_GFX1, | |
| 1582 | ROM_REGION( 0x18000, REGION_GFX1, 0 | |
| 1617 | 1583 | ROM_LOAD( "24011-02.u93", 0x00000, 0x08000, CRC(71f4425b) SHA1(074c79d709bf9e927f538932ef05b13e5e649197) ) |
| 1618 | 1584 | ROM_LOAD( "24012-02.u94", 0x08000, 0x08000, CRC(b2499547) SHA1(cf5979e56cc307133cbdbfdba448cdf3087eaf8c) ) |
| 1619 | 1585 | ROM_LOAD( "24013-02.u95", 0x10000, 0x08000, CRC(0a604e0d) SHA1(08917c3e9fb408b8e128fe2e3617c8c17d964d66) ) |
| r1649 | r1650 | |
| 1653 | 1619 | ROM_LOAD16_BYTE( "24021-01.u27", 0x0e0001, 0x10000, CRC(94081899) SHA1(289eb2f494d1110d169552e8898296e4a47fcb1d) ) |
| 1654 | 1620 | ROM_LOAD16_BYTE( "24018-01.u15", 0x0e0000, 0x10000, CRC(76eb6077) SHA1(255731c63f4a846bb01d4203a786eb34a4734e66) ) |
| 1655 | 1621 | |
| 1656 | ROM_REGION( 0x18000, REGION_GFX1, | |
| 1622 | ROM_REGION( 0x18000, REGION_GFX1, 0 | |
| 1657 | 1623 | ROM_LOAD( "24011-02.u93", 0x00000, 0x08000, CRC(71f4425b) SHA1(074c79d709bf9e927f538932ef05b13e5e649197) ) |
| 1658 | 1624 | ROM_LOAD( "24012-02.u94", 0x08000, 0x08000, CRC(b2499547) SHA1(cf5979e56cc307133cbdbfdba448cdf3087eaf8c) ) |
| 1659 | 1625 | ROM_LOAD( "24013-02.u95", 0x10000, 0x08000, CRC(0a604e0d) SHA1(08917c3e9fb408b8e128fe2e3617c8c17d964d66) ) |
| r1649 | r1650 | |
| 1693 | 1659 | ROM_LOAD16_BYTE( "24021-01.u27", 0x0e0001, 0x10000, CRC(94081899) SHA1(289eb2f494d1110d169552e8898296e4a47fcb1d) ) |
| 1694 | 1660 | ROM_LOAD16_BYTE( "24018-01.u15", 0x0e0000, 0x10000, CRC(76eb6077) SHA1(255731c63f4a846bb01d4203a786eb34a4734e66) ) |
| 1695 | 1661 | |
| 1696 | ROM_REGION( 0x18000, REGION_GFX1, | |
| 1662 | ROM_REGION( 0x18000, REGION_GFX1, 0 | |
| 1697 | 1663 | ROM_LOAD( "24011-02.u93", 0x00000, 0x08000, CRC(71f4425b) SHA1(074c79d709bf9e927f538932ef05b13e5e649197) ) |
| 1698 | 1664 | ROM_LOAD( "24012-02.u94", 0x08000, 0x08000, CRC(b2499547) SHA1(cf5979e56cc307133cbdbfdba448cdf3087eaf8c) ) |
| 1699 | 1665 | ROM_LOAD( "24013-02.u95", 0x10000, 0x08000, CRC(0a604e0d) SHA1(08917c3e9fb408b8e128fe2e3617c8c17d964d66) ) |
| r1649 | r1650 | |
| 1733 | 1699 | ROM_LOAD16_BYTE( "22118-03.u27", 0x0e0001, 0x10000, CRC(806ccf8b) SHA1(7335a85fc84d5c2f7537548c3856c9cd2f267609) ) |
| 1734 | 1700 | ROM_LOAD16_BYTE( "22115-03.u15", 0x0e0000, 0x10000, CRC(c8439a7a) SHA1(9a8bb1fca8d3414dcfd4839bc0c4289e4d810943) ) |
| 1735 | 1701 | |
| 1736 | ROM_REGION( 0x18000, REGION_GFX1, | |
| 1702 | ROM_REGION( 0x18000, REGION_GFX1, 0 | |
| 1737 | 1703 | ROM_LOAD( "22105-01.u93", 0x00000, 0x08000, CRC(4426e367) SHA1(298203112d724feb9a75a7bfc34b3dbb4d7fffe7) ) |
| 1738 | 1704 | ROM_LOAD( "22106-02.u94", 0x08000, 0x08000, CRC(687dc1fc) SHA1(876c72561d942ebc5f3a148d3d3efdceb39c9e2e) ) |
| 1739 | 1705 | ROM_LOAD( "22107-02.u95", 0x10000, 0x08000, CRC(cee6ee5f) SHA1(3f1c6e8d9eb9de207cabca7c9d6d8d633bd69681) ) |
| r1649 | r1650 | |
| 1775 | 1741 | ROM_LOAD16_BYTE( "ortpu27.bin", 0x0e0001, 0x10000, CRC(b80c5f99) SHA1(6b0657db870fb4e14e20cbd955655d0990dd7bda) ) |
| 1776 | 1742 | ROM_LOAD16_BYTE( "ortpu15.bin", 0x0e0000, 0x10000, CRC(2a1a1c3c) SHA1(990328240a2dba7264bb5add5ea8cae2752327d9) ) |
| 1777 | 1743 | |
| 1778 | ROM_REGION( 0x18000, REGION_GFX1, | |
| 1744 | ROM_REGION( 0x18000, REGION_GFX1, 0 | |
| 1779 | 1745 | ROM_LOAD( "ortpu93b.bin", 0x00000, 0x08000, CRC(f0c1d8b0) SHA1(aa6e53b56474fa97b17b60ef1123a28442482b80) ) |
| 1780 | 1746 | ROM_LOAD( "ortpu94b.bin", 0x08000, 0x08000, CRC(7460d8c0) SHA1(9e3560056da89108c58b320125deeed0e009d0a8) ) |
| 1781 | 1747 | ROM_LOAD( "ortpu95b.bin", 0x10000, 0x08000, CRC(081ee7a8) SHA1(2b884a8ed4173b64f7890edf9a6954c62b5ba012) ) |
| r1649 | r1650 | |
| 1816 | 1782 | ROM_LOAD16_BYTE( "poutu27t.bin", 0x0e0001, 0x10000, CRC(37a8156e) SHA1(a0b44b1ba6701daaa26576c6c892fd97ec82d5e3) ) |
| 1817 | 1783 | ROM_LOAD16_BYTE( "poutu15t.bin", 0x0e0000, 0x10000, CRC(1c60d58b) SHA1(93f83a231d06cd958d3539a528e6ee6c2d9904ed) ) |
| 1818 | 1784 | |
| 1819 | ROM_REGION( 0x18000, REGION_GFX1, | |
| 1785 | ROM_REGION( 0x18000, REGION_GFX1, 0 | |
| 1820 | 1786 | ROM_LOAD( "poutu93.bin", 0x000000, 0x08000, CRC(f102a04d) SHA1(3ecc0ab34a5d6e760679dc5fd7d32dd439f797d5) ) |
| 1821 | 1787 | ROM_LOAD( "poutu94.bin", 0x008000, 0x08000, CRC(ec63c015) SHA1(10010a17ffda468dbe2940fae6aae49c56e1ad78) ) |
| 1822 | 1788 | ROM_LOAD( "poutu95.bin", 0x010000, 0x08000, CRC(ba6e797e) SHA1(135f905b7663026a99fd9aca8e0247a72bf43cdb) ) |
| r1649 | r1650 | |
| 1857 | 1823 | ROM_LOAD16_BYTE( "poutu27t.bin", 0x0e0001, 0x10000, CRC(37a8156e) SHA1(a0b44b1ba6701daaa26576c6c892fd97ec82d5e3) ) |
| 1858 | 1824 | ROM_LOAD16_BYTE( "poutu15t.bin", 0x0e0000, 0x10000, CRC(1c60d58b) SHA1(93f83a231d06cd958d3539a528e6ee6c2d9904ed) ) |
| 1859 | 1825 | |
| 1860 | ROM_REGION( 0x18000, REGION_GFX1, | |
| 1826 | ROM_REGION( 0x18000, REGION_GFX1, 0 | |
| 1861 | 1827 | ROM_LOAD( "poutu93.bin", 0x000000, 0x08000, CRC(f102a04d) SHA1(3ecc0ab34a5d6e760679dc5fd7d32dd439f797d5) ) |
| 1862 | 1828 | ROM_LOAD( "poutu94.bin", 0x008000, 0x08000, CRC(ec63c015) SHA1(10010a17ffda468dbe2940fae6aae49c56e1ad78) ) |
| 1863 | 1829 | ROM_LOAD( "poutu95.bin", 0x010000, 0x08000, CRC(ba6e797e) SHA1(135f905b7663026a99fd9aca8e0247a72bf43cdb) ) |
| r1649 | r1650 | |
| 2547 | 2513 | *************************************/ |
| 2548 | 2514 | |
| 2549 | 2515 | /* small master banks, small slave banks */ |
| 2550 | GAME( 1985, cerberus, 0, leland, cerberus, cerberus, ROT0, "Cinematronics", "Cerberus", 0 ) | |
| 2551 | GAME( 1985, mayhem, 0, leland, mayhem, mayhem, ROT0, "Cinematronics", "Mayhem 2002", 0 ) | |
| 2552 | GAME( 1985, powrplay, 0, leland, mayhem, powrplay, ROT0, "Cinematronics", "Power Play", 0 ) | |
| 2553 | GAME( 1985, wseries, 0, leland, wseries, wseries, ROT0, "Cinematronics", "World Series: The Season", 0 ) | |
| 2554 | GAME( 1986, alleymas, 0, leland, alleymas, alleymas, ROT270, "Cinematronics", "Alley Master", 0 ) | |
| 2555 | GAME( 1987, upyoural, 0, leland, upyoural, upyoural, ROT270, "Cinematronics", "Up Your Alley", 0 ) | |
| 2516 | GAME( 1985, cerberus, 0, leland, cerberus, cerberus, ROT0, "Cinematronics", "Cerberus", 0 ) | |
| 2517 | GAME( 1985, mayhem, 0, leland, mayhem, mayhem, ROT0, "Cinematronics", "Mayhem 2002", 0 ) | |
| 2518 | GAME( 1985, powrplay, 0, leland, mayhem, powrplay, ROT0, "Cinematronics", "Power Play", 0 ) | |
| 2519 | GAME( 1985, wseries, 0, leland, wseries, wseries, ROT0, "Cinematronics", "World Series: The Season", 0 ) | |
| 2520 | GAME( 1986, alleymas, 0, leland, alleymas, alleymas, ROT270, "Cinematronics", "Alley Master", 0 ) | |
| 2521 | GAME( 1987, upyoural, 0, leland, upyoural, upyoural, ROT270, "Cinematronics", "Up Your Alley", 0 ) | |
| 2556 | 2522 | |
| 2557 | 2523 | /* odd master banks, small slave banks */ |
| 2558 | GAME( 1986, dangerz, 0, leland, dangerz, dangerz, ROT0, "Cinematronics", "Danger Zone", 0 ) | |
| 2524 | GAME( 1986, dangerz, 0, leland, dangerz, dangerz, ROT0, "Cinematronics", "Danger Zone", 0 ) | |
| 2559 | 2525 | |
| 2560 | 2526 | /* small master banks + extra top board, small slave banks */ |
| 2561 | GAME( 1987, basebal2, 0, leland, basebal2, basebal2, ROT0, "Cinematronics", "Baseball The Season II", 0 ) | |
| 2562 | GAME( 1987, dblplay, 0, leland, basebal2, dblplay, ROT0, "Leland Corp. / Tradewest", "Super Baseball Double Play Home Run Derby", 0 ) | |
| 2563 | GAME( 1988, strkzone, 0, leland, basebal2, strkzone, ROT0, "Leland Corp.", "Strike Zone Baseball", 0 ) | |
| 2527 | GAME( 1987, basebal2, 0, leland, basebal2, basebal2, ROT0, "Cinematronics", "Baseball: The Season II", 0 ) | |
| 2528 | GAME( 1987, dblplay, 0, leland, basebal2, dblplay, ROT0, "Leland Corp. / Tradewest", "Super Baseball Double Play Home Run Derby", 0 ) | |
| 2529 | GAME( 1988, strkzone, 0, leland, basebal2, strkzone, ROT0, "Leland Corp.", "Strike Zone Baseball", 0 ) | |
| 2564 | 2530 | |
| 2565 | 2531 | /* large master banks, small slave banks, 80186 sound */ |
| 2566 | GAME( 1987, redlin2p, 0, redline, redline, redlin2p, ROT270, "Cinematronics (Tradewest license)", "Redline Racer (2 players)", 0 ) | |
| 2567 | GAME( 1987, quarterb, 0, quarterb,quarterb, quarterb, ROT270, "Leland Corp.", "Quarterback", 0 ) | |
| 2568 | GAME( 1987, quartrba, quarterb,quarterb,quarterb, quarterb, ROT270, "Leland Corp.", "Quarterback (set 2)", 0 ) | |
| 2532 | GAME( 1987, redlin2p, 0, redline, redline, redlin2p, ROT270, "Cinematronics (Tradewest license)", "Redline Racer (2 players)", 0 ) | |
| 2533 | GAME( 1987, quarterb, 0, quarterb, quarterb, quarterb, ROT270, "Leland Corp.", "Quarterback (set 1)", 0 ) | |
| 2534 | GAME( 1987, quartrba, quarterb,quarterb, quarterb, quarterb, ROT270, "Leland Corp.", "Quarterback (set 2)", 0 ) | |
| 2569 | 2535 | |
| 2570 | 2536 | /* large master banks, large slave banks, 80186 sound */ |
| 2571 | GAME( 1988, viper, 0, lelandi, dangerz, viper, ROT0, "Leland Corp.", "Viper", 0 ) | |
| 2572 | GAME( 1988, teamqb, 0, lelandi, teamqb, teamqb, ROT270, "Leland Corp.", "John Elway's Team Quarterback", 0 ) | |
| 2573 | GAME( 1988, teamqb2, teamqb, lelandi, teamqb, teamqb, ROT270, "Leland Corp.", "John Elway's Team Quarterback (set 2)", 0 ) | |
| 2574 | GAME( 1989, aafb, 0, lelandi, teamqb, aafb, ROT270, "Leland Corp.", "All American Football (rev E)", 0 ) | |
| 2575 | GAME( 1989, aafbd2p, aafb, lelandi, aafb2p, aafbd2p, ROT270, "Leland Corp.", "All American Football (rev D, 2 Players)", 0 ) | |
| 2576 | GAME( 1989, aafbc, aafb, lelandi, teamqb, aafbb, ROT270, "Leland Corp.", "All American Football (rev C)", 0 ) | |
| 2577 | GAME( 1989, aafbb, aafb, lelandi, teamqb, aafbb, ROT270, "Leland Corp.", "All American Football (rev B)", 0 ) | |
| 2537 | GAME( 1988, viper, 0, lelandi, dangerz, viper, ROT0, "Leland Corp.", "Viper", 0 ) | |
| 2538 | GAME( 1988, teamqb, 0, lelandi, teamqb, teamqb, ROT270, "Leland Corp.", "John Elway's Team Quarterback (set 1)", 0 ) | |
| 2539 | GAME( 1988, teamqb2, teamqb, lelandi, teamqb, teamqb, ROT270, "Leland Corp.", "John Elway's Team Quarterback (set 2)", 0 ) | |
| 2540 | GAME( 1989, aafb, 0, lelandi, teamqb, aafb, ROT270, "Leland Corp.", "All American Football (rev E)", 0 ) | |
| 2541 | GAME( 1989, aafbd2p, aafb, lelandi, aafb2p, aafbd2p, ROT270, "Leland Corp.", "All American Football (rev D, 2 Players)", 0 ) | |
| 2542 | GAME( 1989, aafbc, aafb, lelandi, teamqb, aafbb, ROT270, "Leland Corp.", "All American Football (rev C)", 0 ) | |
| 2543 | GAME( 1989, aafbb, aafb, lelandi, teamqb, aafbb, ROT270, "Leland Corp.", "All American Football (rev B)", 0 ) | |
| 2578 | 2544 | |
| 2579 | 2545 | /* huge master banks, large slave banks, 80186 sound */ |
| 2580 | GAME( 1989, offroad, 0, lelandi, offroad, offroad, ROT0, "Leland Corp.", "Ironman Stewart's Super Off-Road", 0 ) | |
| 2581 | GAME( 1989, offroadt, 0, lelandi, offroad, offroadt, ROT0, "Leland Corp.", "Ironman Stewart's Super Off-Road Track Pack", 0 ) | |
| 2582 | GAME( 1990, pigout, 0, lelandi, pigout, pigout, ROT0, "Leland Corp.", "Pigout", 0 ) | |
| 2583 | GAME( 1990, pigouta, pigout, lelandi, pigout, pigout, ROT0, "Leland Corp.", "Pigout (alternate)", 0 ) | |
| 2546 | GAME( 1989, offroad, 0, lelandi, offroad, offroad, ROT0, "Leland Corp.", "Ironman Ivan Stewart's Super Off-Road", 0 ) | |
| 2547 | GAME( 1989, offroadt, 0, lelandi, offroad, offroadt, ROT0, "Leland Corp.", "Ironman Ivan Stewart's Super Off-Road Track-Pak", 0 ) | |
| 2548 | GAME( 1990, pigout, 0, lelandi, pigout, pigout, ROT0, "Leland Corp.", "Pig Out: Dine Like a Swine! (set 1)", 0 ) | |
| 2549 | GAME( 1990, pigouta, pigout, lelandi, pigout, pigout, ROT0, "Leland Corp.", "Pig Out: Dine Like a Swine! (set 2)", 0 ) |
| r1649 | r1650 | |
|---|---|---|
| 95 | 95 | *********************************************************************/ |
| 96 | 96 | |
| 97 | 97 | #include "driver.h" |
| 98 | #include "deprecat.h" | |
| 98 | 99 | #include "sound/okim6295.h" |
| 99 | 100 | |
| 100 | 101 | static UINT32 *gstream_vram; |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | ****************************************************************************************/ |
| 12 | 12 | |
| 13 | 13 | #include "driver.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "sound/2203intf.h" |
| 15 | 16 | |
| 16 | 17 | extern UINT8 *compgolf_bg_ram; |
| r1649 | r1650 | |
|---|---|---|
| 545 | 545 | ***************************************************************************/ |
| 546 | 546 | |
| 547 | 547 | #include "driver.h" |
| 548 | #include "deprecat.h" | |
| 548 | 549 | #include "machine/eeprom.h" |
| 549 | 550 | #include "cpu/m68000/m68000.h" |
| 550 | 551 | #include "sound/qsound.h" |
| 551 | #include "ui.h" | |
| 552 | 552 | #include "chd.h" |
| 553 | 553 | |
| 554 | 554 | #include "cps1.h" /* External CPS1 definitions */ |
| r1649 | r1650 | |
| 1332 | 1332 | static MACHINE_DRIVER_START( cps2 ) |
| 1333 | 1333 | |
| 1334 | 1334 | /* basic machine hardware */ |
| 1335 | MDRV_CPU_ADD(M68000, 1 | |
| 1335 | MDRV_CPU_ADD(M68000, 16000000) | |
| 1336 | 1336 | MDRV_CPU_CONFIG(cps2_encryption) |
| 1337 | 1337 | MDRV_CPU_PROGRAM_MAP(cps2_readmem,cps2_writemem) |
| 1338 | 1338 | MDRV_CPU_VBLANK_INT(cps2_interrupt,262) // 262 /* ??? interrupts per frame */ |
| r1649 | r1650 | |
| 7191 | 7191 | /* Decrypt the game - see machine/cps2crpt.c */ |
| 7192 | 7192 | DRIVER_INIT_CALL(cps2crpt); |
| 7193 | 7193 | cps2networkpresent = 0; |
| 7194 | ||
| 7195 | cpunum_set_clockscale(machine, 0, 0.7375f); /* RAM access waitstates etc. aren't emulated - slow the CPU to compensate */ | |
| 7194 | 7196 | } |
| 7195 | 7197 | |
| 7196 | 7198 | static DRIVER_INIT( ssf2tb ) |
| r1649 | r1650 | |
|---|---|---|
| 26 | 26 | ***************************************************************************/ |
| 27 | 27 | |
| 28 | 28 | #include "driver.h" |
| 29 | #include "deprecat.h" | |
| 29 | 30 | #include "machine/8255ppi.h" |
| 30 | 31 | #include "machine/eeprom.h" |
| 31 | 32 | #include "sound/3812intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 16 | 16 | ***************************************************************************/ |
| 17 | 17 | |
| 18 | 18 | #include "driver.h" |
| 19 | #include "deprecat.h" | |
| 19 | 20 | #include "lemmings.h" |
| 20 | 21 | #include "sound/2151intf.h" |
| 21 | 22 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
|---|---|---|
| 22 | 22 | ***************************************************************************/ |
| 23 | 23 | |
| 24 | 24 | #include "driver.h" |
| 25 | #include "deprecat.h" | |
| 25 | 26 | #include "cpu/z80/z80.h" |
| 26 | 27 | #include "cpu/m6805/m6805.h" |
| 27 | 28 | #include "sound/2203intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 27 | 27 | |
| 28 | 28 | ***************************************************************************/ |
| 29 | 29 | #include "driver.h" |
| 30 | #include "deprecat.h" | |
| 30 | 31 | #include "sound/okim6295.h" |
| 31 | 32 | |
| 32 | 33 | VIDEO_START( zerozone ); |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "espial.h" |
| 12 | 13 | #include "cpu/z80/z80.h" |
| 13 | 14 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
|---|---|---|
| 59 | 59 | ***************************************************************************/ |
| 60 | 60 | |
| 61 | 61 | #include "driver.h" |
| 62 | #include "deprecat.h" | |
| 62 | 63 | #include "cpu/tms32010/tms32010.h" |
| 63 | 64 | #include "toaplan1.h" |
| 64 | 65 | #include "sound/3812intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 104 | 104 | ***************************************************************************/ |
| 105 | 105 | |
| 106 | 106 | #include "driver.h" |
| 107 | #include "deprecat.h" | |
| 107 | 108 | #include "cpu/z80/z80.h" |
| 108 | 109 | #include "machine/8255ppi.h" |
| 109 | 110 | #include "machine/segacrpt.h" |
| r1649 | r1650 | |
| 410 | 411 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) /* P1.21 */ |
| 411 | 412 | |
| 412 | 413 | PORT_START_TAG("D3D2") |
| 413 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown )) PORT_DIPLOCATION("SW1:8") | |
| 414 | PORT_DIPSETTING( 0x01, DEF_STR( Off )) | |
| 415 | PORT_DIPSETTING( 0x00, DEF_STR( On )) | |
| 416 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown )) PORT_DIPLOCATION("SW1:7") | |
| 417 | PORT_DIPSETTING( 0x02, DEF_STR( Off )) | |
| 418 | PORT_DIPSETTING( 0x00, DEF_STR( On )) | |
| 419 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown )) PORT_DIPLOCATION("SW1:6") | |
| 420 | PORT_DIPSETTING( 0x04, DEF_STR( Off )) | |
| 421 | PORT_DIPSETTING( 0x00, DEF_STR( On )) | |
| 422 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown )) PORT_DIPLOCATION("SW1:5") | |
| 423 | PORT_DIPSETTING( 0x08, DEF_STR( Off )) | |
| 424 | PORT_DIPSETTING( 0x00, DEF_STR( On )) | |
| 425 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown )) PORT_DIPLOCATION("SW1:4") | |
| 426 | PORT_DIPSETTING( 0x10, DEF_STR( Off )) | |
| 427 | PORT_DIPSETTING( 0x00, DEF_STR( On )) | |
| 428 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown )) PORT_DIPLOCATION("SW1:3") | |
| 429 | PORT_DIPSETTING( 0x20, DEF_STR( Off )) | |
| 430 | PORT_DIPSETTING( 0x00, DEF_STR( On )) | |
| 431 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown )) PORT_DIPLOCATION("SW1:2") | |
| 432 | PORT_DIPSETTING( 0x40, DEF_STR( Off )) | |
| 433 | PORT_DIPSETTING( 0x00, DEF_STR( On )) | |
| 434 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown )) PORT_DIPLOCATION("SW1:1") | |
| 435 | PORT_DIPSETTING( 0x80, DEF_STR( Off )) | |
| 436 | PORT_DIPSETTING( 0x00, DEF_STR( On )) | |
| 414 | PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "SW1:8" ) /* Listed as "Unused" (astrob) */ | |
| 415 | PORT_DIPUNUSED_DIPLOC( 0x02, 0x02, "SW1:7" ) /* Listed as "Unused" (astrob) */ | |
| 416 | PORT_DIPUNUSED_DIPLOC( 0x04, 0x04, "SW1:6" ) /* Listed as "Unused" (astrob) */ | |
| 417 | PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "SW1:5" ) /* Listed as "Unused" (astrob) */ | |
| 418 | PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "SW1:4" ) /* Listed as "Unused" (astrob) */ | |
| 419 | PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "SW1:3" ) /* Listed as "Unused" (astrob) */ | |
| 420 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW1:2" ) /* Listed as "Unused" (astrob) */ | |
| 421 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW1:1" ) /* Listed as "Unused" (astrob) */ | |
| 437 | 422 | |
| 438 | 423 | PORT_START_TAG("D1D0") |
| 439 | 424 | PORT_DIPNAME( 0x0f, 0x03, DEF_STR( Coin_A )) PORT_DIPLOCATION("SW2:8,7,6,5") |
| r1649 | r1650 | |
| 511 | 496 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Cabinet )) PORT_DIPLOCATION("SW1:6") |
| 512 | 497 | PORT_DIPSETTING( 0x04, DEF_STR( Upright )) |
| 513 | 498 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail )) |
| 514 | PORT_DIPNAME( 0x08, 0x00, "Demo Speech" ) PORT_DIPLOCATION("SW1:5") | |
| 499 | PORT_DIPNAME( 0x08, 0x00, "Demo Speech" ) PORT_DIPLOCATION("SW1:5") /* Listed as "Unused" */ | |
| 515 | 500 | PORT_DIPSETTING( 0x08, DEF_STR( Off )) |
| 516 | 501 | PORT_DIPSETTING( 0x00, DEF_STR( On )) |
| 517 | 502 | |
| r1649 | r1650 | |
| 535 | 520 | INPUT_PORTS_END |
| 536 | 521 | |
| 537 | 522 | |
| 538 | static INPUT_PORTS_START( astrob1 ) | |
| 539 | PORT_INCLUDE(astrob) | |
| 540 | ||
| 541 | PORT_MODIFY("D3D2") | |
| 542 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown )) PORT_DIPLOCATION("SW1:5") | |
| 543 | PORT_DIPSETTING( 0x08, DEF_STR( Off )) | |
| 544 | PORT_DIPSETTING( 0x00, DEF_STR( On )) | |
| 545 | INPUT_PORTS_END | |
| 546 | ||
| 547 | ||
| 548 | 523 | static INPUT_PORTS_START( 005 ) |
| 549 | 524 | PORT_INCLUDE(g80r_generic) |
| 550 | 525 | |
| r1649 | r1650 | |
| 566 | 541 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Cabinet )) PORT_DIPLOCATION("SW1:6") |
| 567 | 542 | PORT_DIPSETTING( 0x04, DEF_STR( Upright )) |
| 568 | 543 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail )) |
| 569 | PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "SW1:5" ) | |
| 570 | PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "SW1:4" ) | |
| 571 | PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "SW1:3" ) | |
| 572 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW1:2" ) | |
| 573 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW1:1" ) | |
| 574 | 544 | |
| 575 | 545 | PORT_MODIFY("FC") |
| 576 | 546 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| r1649 | r1650 | |
| 1583 | 1553 | GAME( 1981, astrob, 0, astrob, astrob, astrob, ROT270, "Sega", "Astro Blaster (version 3)", 0 ) |
| 1584 | 1554 | GAME( 1981, astrob2, astrob, astrob, astrob2, astrob, ROT270, "Sega", "Astro Blaster (version 2)", 0 ) |
| 1585 | 1555 | GAME( 1981, astrob2a, astrob, astrob, astrob2, astrob, ROT270, "Sega", "Astro Blaster (version 2a)", 0 ) |
| 1586 | GAME( 1981, astrob1, astrob, astrob, astrob | |
| 1556 | GAME( 1981, astrob1, astrob, astrob, astrob | |
| 1587 | 1557 | GAME( 1981, 005, 0, 005, 005, 005, ROT270, "Sega", "005", GAME_IMPERFECT_SOUND ) |
| 1588 | 1558 | |
| 1589 | 1559 | /* basic G-80 system with individual background boards */ |
| r1649 | r1650 | |
|---|---|---|
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | 20 | #include "driver.h" |
| 21 | #include "deprecat.h" | |
| 21 | 22 | #include "sound/okim6295.h" |
| 22 | 23 | |
| 23 | 24 | static tilemap *layer0_tilemap, *layer1_tilemap, *layer2_tilemap; |
| r1649 | r1650 | |
|---|---|---|
| 20 | 20 | ***************************************************************************/ |
| 21 | 21 | |
| 22 | 22 | #include "driver.h" |
| 23 | #include "deprecat.h" | |
| 23 | 24 | #include "audio/seibu.h" |
| 24 | 25 | |
| 25 | 26 | /* the on-chip FIFO is 16 bytes long, but we use a larger one to simplify */ |
| r1649 | r1650 | |
|---|---|---|
| 64 | 64 | |
| 65 | 65 | ***************************************************************************/ |
| 66 | 66 | |
| 67 | #include <math.h> | |
| 68 | 67 | #include "driver.h" |
| 68 | #include "deprecat.h" | |
| 69 | 69 | #include "video/konamiic.h" |
| 70 | 70 | #include "machine/eeprom.h" |
| 71 | 71 | #include "cpu/m68000/m68000.h" |
| r1649 | r1650 | |
|---|---|---|
| 78 | 78 | ****************************************************************************/ |
| 79 | 79 | |
| 80 | 80 | #include "driver.h" |
| 81 | #include "deprecat.h" | |
| 81 | 82 | #include "cpu/tms34010/tms34010.h" |
| 82 | 83 | #include "cpu/tms34010/34010ops.h" |
| 83 | 84 | #include "sound/upd7759.h" |
| r1649 | r1650 | |
|---|---|---|
| 921 | 921 | Point Blank 2 (GNB5/VER.A) |
| 922 | 922 | */ |
| 923 | 923 | |
| 924 | #include <stdarg.h> | |
| 925 | 924 | #include "driver.h" |
| 925 | #include "deprecat.h" | |
| 926 | 926 | #include "cpu/mips/psx.h" |
| 927 | 927 | #include "cpu/h83002/h83002.h" |
| 928 | 928 | #include "includes/psx.h" |
| r1649 | r1650 | |
|---|---|---|
| 3373 | 3373 | GAME( 1983, newsin7, 0, newsin7, newsin7, mars, ROT90, "ATW USA, Inc.", "New Sinbad 7", GAME_SUPPORTS_SAVE ) |
| 3374 | 3374 | GAME( 1984, mrkougar, 0, mrkougar, mrkougar, mrkougar, ROT90, "ATW", "Mr. Kougar", GAME_SUPPORTS_SAVE ) |
| 3375 | 3375 | GAME( 1983, mrkougr2, mrkougar, mrkougar, mrkougar, mrkougar, ROT90, "ATW", "Mr. Kougar (earlier)", GAME_SUPPORTS_SAVE ) |
| 3376 | GAME( 1983, mrkougb, mrkougar, mrkougb, mrkougar, mrkougb, ROT90, "bootleg", "Mr. Kougar (bootleg)", GAME_SUPPORTS_SAVE ) | |
| 3377 | GAME( 1983, mrkougb2, mrkougar, mrkougb, mrkougar, mrkougb, ROT90, "bootleg", "Mr. Kougar (bootleg Set 2)", GAME_SUPPORTS_SAVE ) | |
| 3376 | GAME( 1983, mrkougb, mrkougar, mrkougb, mrkougar, mrkougb, ROT90, "bootleg", "Mr. Kougar (bootleg set 1)", GAME_SUPPORTS_SAVE ) | |
| 3377 | GAME( 1983, mrkougb2, mrkougar, mrkougb, mrkougar, mrkougb, ROT90, "bootleg", "Mr. Kougar (bootleg set 2)", GAME_SUPPORTS_SAVE ) | |
| 3378 | 3378 | GAME( 1982, hotshock, 0, hotshock, hotshock, hotshock, ROT90, "E.G. Felaco", "Hot Shocker", GAME_SUPPORTS_SAVE ) |
| 3379 | 3379 | GAME( 1982, conquer, 0, hotshock, hotshock, 0, ROT90, "<unknown>", "Conquer", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE) |
| 3380 | 3380 | GAME( 1983, hunchbks, hunchbak, hunchbks, hunchbks, scramble_ppi, ROT90, "Century Electronics", "Hunchback (Scramble hardware)", GAME_SUPPORTS_SAVE ) |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /* Mogura Desse */ |
| 2 | 2 | |
| 3 | 3 | #include "driver.h" |
| 4 | #include "deprecat.h" | |
| 4 | 5 | #include "sound/dac.h" |
| 5 | 6 | |
| 6 | 7 | static UINT8 *mogura_tileram; |
| r1649 | r1650 | |
|---|---|---|
| 62 | 62 | */ |
| 63 | 63 | |
| 64 | 64 | #include "driver.h" |
| 65 | #include "deprecat.h" | |
| 65 | 66 | #include "cpu/z80/z80.h" |
| 66 | 67 | #include "system16.h" |
| 67 | 68 | #include "cpu/m68000/m68000.h" |
| r1649 | r1650 | |
|---|---|---|
| 350 | 350 | */ |
| 351 | 351 | |
| 352 | 352 | #include "driver.h" |
| 353 | #include "deprecat.h" | |
| 353 | 354 | #include "taito_f3.h" |
| 354 | 355 | #include "cpu/mc68hc11/mc68hc11.h" |
| 355 | 356 | #include "sound/es5506.h" |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | 16 | #include "driver.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | #include "sound/okim6295.h" |
| 18 | 19 | #include "sound/3812intf.h" |
| 19 | 20 |
| r1649 | r1650 | |
|---|---|---|
| 103 | 103 | |
| 104 | 104 | |
| 105 | 105 | #include "driver.h" |
| 106 | #include "deprecat.h" | |
| 106 | 107 | |
| 107 | 108 | static UINT16 *shared_ram; |
| 108 | 109 |
| r1649 | r1650 | |
|---|---|---|
| 95 | 95 | ***************************************************************************/ |
| 96 | 96 | |
| 97 | 97 | #include "driver.h" |
| 98 | #include "deprecat.h" | |
| 98 | 99 | #include "cpu/z80/z80.h" |
| 99 | 100 | #include "sound/ay8910.h" |
| 100 | 101 | #include "sound/msm5205.h" |
| r1649 | r1650 | |
|---|---|---|
| 54 | 54 | ********************************************************************/ |
| 55 | 55 | |
| 56 | 56 | #include "driver.h" |
| 57 | #include "deprecat.h" | |
| 57 | 58 | #include "sound/2151intf.h" |
| 58 | 59 | |
| 59 | 60 |
| r1649 | r1650 | |
|---|---|---|
| 80 | 80 | ***************************************************************************/ |
| 81 | 81 | |
| 82 | 82 | #include "driver.h" |
| 83 | #include "deprecat.h" | |
| 83 | 84 | #include "suprridr.h" |
| 84 | 85 | #include "sound/ay8910.h" |
| 85 | 86 |
| r1649 | r1650 | |
|---|---|---|
| 18 | 18 | ***************************************************************************/ |
| 19 | 19 | |
| 20 | 20 | #include "driver.h" |
| 21 | #include "deprecat.h" | |
| 21 | 22 | #include "cpu/m6809/m6809.h" |
| 22 | 23 | #include "video/konamiic.h" |
| 23 | 24 | #include "sound/3812intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 61 | 61 | *****/ |
| 62 | 62 | |
| 63 | 63 | #include "driver.h" |
| 64 | #include "deprecat.h" | |
| 64 | 65 | #include "sound/2610intf.h" |
| 65 | 66 | #include "sound/ymf278b.h" |
| 66 | 67 |
| r0 | r1650 | |
|---|---|---|
| 1 | /******************************************************************************** | |
| 2 | ||
| 3 | ||
| 4 | AMERICAN POKER 2 | |
| 5 | ---------------- | |
| 6 | ||
| 7 | Company: Novomatic. | |
| 8 | Year: 1990. | |
| 9 | ||
| 10 | Original preliminary driver: Curt Coder. | |
| 11 | Rewrite and additional work: Roberto Fresca, with a lot of help of Grull Osgo. | |
| 12 | ||
| 13 | ||
| 14 | --- Supported Sets --- | |
| 15 | ||
| 16 | Old name | New name | Relation | Description | |
| 17 | -------------------------------------------- | |
| 18 | ampokr2b ampoker2 parent American Poker II. | |
| 19 | ---- ampkr2b1 clone American Poker II (bootleg, set 1). | |
| 20 | ampokr2a ampkr2b2 clone American Poker II (bootleg, set 2). | |
| 21 | ampoker2 ampkr2b3 clone American Poker II (bootleg, set 3). | |
| 22 | ampokr2c pkrdewin clone Poker De Win. | |
| 23 | ---- ampkr95 clone American Poker 95. | |
| 24 | ---- sigmapkr parent Sigma Poker. | |
| 25 | ---- sigma2k parent Sigma Poker 2000. | |
| 26 | ||
| 27 | ||
| 28 | ********************************************************************************* | |
| 29 | ||
| 30 | ||
| 31 | Game Notes... | |
| 32 | ------------- | |
| 33 | ||
| 34 | American Poker II uses a standard deck of 52 cards plus 1 Joker card. | |
| 35 | The Joker card substitutes for any card. The player places a bet for | |
| 36 | the 1st hand deal and can then choose to buy a 2nd draw. | |
| 37 | ||
| 38 | The win combination Jacks or Better is only paid if a 2nd draw is bought. | |
| 39 | ||
| 40 | ||
| 41 | Operation... | |
| 42 | ||
| 43 | To 'init' (boot) the machine: | |
| 44 | 1) Turn ON the Operator Key (9). | |
| 45 | 2) Keep pressed the DOOR key (W). You are entering the Operator Mode. | |
| 46 | 3) Turn OFF the Operator Key (9). | |
| 47 | 4) Reset the machine. (you must reset manually the machine due to watchdog issues). | |
| 48 | ||
| 49 | The set ampkr2b3 has a special init code/key: | |
| 50 | ||
| 51 | 1) Turn ON the Supervisor Key (0). | |
| 52 | 2) Enter the following sequence: HOLD1, HOLD5, HOLD4, HOLD3, HOLD2 and HOLD3. | |
| 53 | 3) Wait till the Supervisor Mode appear, and turn OFF the Supervisor Key (0). | |
| 54 | 4) Reset the machine. (you must reset manually the machine due to watchdog issues). | |
| 55 | ||
| 56 | ...The key is produced taking 6 bytes at offset 0x5d40 XORed with their respective pairs | |
| 57 | at offset 0x5d50, resulting the sequence of HOLD keys to init the machine. | |
| 58 | ||
| 59 | ||
| 60 | Operator Mode: | |
| 61 | Press '9' once to turn ON the Operator Key. You can find the interim meters (Page 1). | |
| 62 | Press HOLD3 to clear the meters. Press '9' again to turn OFF the Operator Key. | |
| 63 | Reset the machine to enter the Game Mode. | |
| 64 | ||
| 65 | Supervisor Mode: | |
| 66 | Press '0' once to turn ON the Supervisor Key. You can find the permanent meters (Page 1 to 5). | |
| 67 | HOLD1, HOLD3 and HOLD5 are the valid keys to navigate through the mode. Press '0' again to turn | |
| 68 | OFF the Operator Key. | |
| 69 | Reset the machine to enter the Game Mode. | |
| 70 | ||
| 71 | To access both modes, no credits should be placed in the machine. | |
| 72 | ||
| 73 | ||
| 74 | From Novomatic web site: | |
| 75 | ||
| 76 | "1990 - American Poker II kommt auf den Markt und wird als | |
| 77 | 'The Legend' in die Geschichte des Gl?cksspiels eingehen." | |
| 78 | ||
| 79 | "1990 - American Poker II comes on the market and is known as | |
| 80 | 'The Legend' in the history of gaming." | |
| 81 | ||
| 82 | ||
| 83 | ---- | |
| 84 | ||
| 85 | ||
| 86 | Sigma Poker: | |
| 87 | ||
| 88 | This poker game was also sold as "upgrade kit" for American Poker II taiwanese boards. | |
| 89 | The game has a lot of improvements. New graphics, sounds, bonus, and a totally new | |
| 90 | 'double-up' feature. Very addictive, in fact. | |
| 91 | ||
| 92 | Sigma only released 2 games for this hardware: Sigma Poker and Sigma Poker 2000. | |
| 93 | Both games need some modifications to the original board to be installed. | |
| 94 | The rest of Sigma poker games (2001 onwards) were developed for B-52 mainboards. | |
| 95 | (2x 6809; HD63484 video controller). | |
| 96 | ||
| 97 | Sigma 2000 has better graphics and use 4 times more tiles than other games running | |
| 98 | on this hardware. To manage this, the game use 2 extra bits from the color RAM. | |
| 99 | ||
| 100 | ||
| 101 | ||
| 102 | ********************************************************************************* | |
| 103 | ||
| 104 | ||
| 105 | --- Technical Notes (in progress) --- | |
| 106 | ||
| 107 | ||
| 108 | ||
| 109 | DIP Switches | |
| 110 | ------------ | |
| 111 | ||
| 112 | DIP1 Remote Credits | |
| 113 | OFF x100 | |
| 114 | ON x50 | |
| 115 | ||
| 116 | DIP2 Auto Hold | |
| 117 | OFF Off | |
| 118 | ON On | |
| 119 | ||
| 120 | DIP3 DIP4 Rate Tables (*) | |
| 121 | OFF OFF RATE: 1 2 3 4 5 10 20 30 40 50 | |
| 122 | OFF ON RATE: 5 10 15 20 25 30 35 40 50 100 | |
| 123 | ON OFF RATE: 5 10 15 20 25 30 35 40 45 50 | |
| 124 | ON ON RATE: 10 20 30 40 50 60 70 80 90 100 | |
| 125 | ||
| 126 | DIP6 Take Winnings (On Double Up) | |
| 127 | OFF Take Part (10 Credits steps) | |
| 128 | ON Take All | |
| 129 | ||
| 130 | DIP8 Jackpot | |
| 131 | OFF Off | |
| 132 | ON On | |
| 133 | ||
| 134 | ||
| 135 | (*) Working only in ampkr95. | |
| 136 | ||
| 137 | ||
| 138 | ||
| 139 | Hardware Notes: | |
| 140 | -------------- | |
| 141 | ||
| 142 | ||
| 143 | - CPU: 1x Z80@4MHZ or compatible. | |
| 144 | - Video: TTL Logic Raster - 6 Mhz Dot Clock | |
| 145 | - Osc: 6.000 Mhz Xtal. | |
| 146 | - RAM: 1x 6116 (4Kx8) Static RAM. | |
| 147 | - VRAM 2x 2016 (4Kx8) Static RAM. | |
| 148 | - I/O: 8x 74251 ; 8x 74259 (Multiplex 8 Ports > 1 Bit). | |
| 149 | - PRG ROMs: 1x 27c512 (64Kx8) EPROM or similar. | |
| 150 | - GFX ROMs: 1x 27c128 (16Kx8) EPROM or similar. | |
| 151 | - Color PROM: 1x 82S147AN. | |
| 152 | - Sound: 1x AY-3-8910. | |
| 153 | - Backup Battery: 1x 3.6 Volt Ni-CD. | |
| 154 | - DIP Switches: 1x 8 Positions. | |
| 155 | - Watchdog: 1x TL7705 (Texas Instruments) Refresh: 200 Ms. | |
| 156 | ||
| 157 | ||
| 158 | Taiwanese PCB Layout: | |
| 159 | ________________________________________________________________________________ | |
| 160 | | | | |
| 161 | | ______ _________ _________ ______________ _________ __________ | | |
| 162 | | | XTAL | | 74LS04 | | 74LS138 | | | | 74LS163 | |PALCE16V8H| | | |
| 163 | | | 6MHz | |_________| |_________| | UM6116-2 | |_________| |__________| | | |
| 164 | | |______| _________ _________ |______________| _________ ________ __ | | |
| 165 | | | 74LS74A | | DM7407N | _______________ | 74LS163 | | 74LS00 ||74|| | |
| 166 | | |_________| |_________| | | |_________| |________||LS|| | |
| 167 | | ___________________ _________ | 27C512 | _________ ________ |08|| | |
| 168 | | | | | MC14020 | |_______________| | 74LS163 | | 74LS157||__|| | |
| 169 | | |BATTERY NI-CD 3.6V | |_________| |_________| |________| | | |
| 170 | | |___________________| ___________ _____________ _________ ________ | | |
| 171 | |____ | 74LS244 | | 74LS245 | | 74LS163 | | 74LS157| | | |
| 172 | | |___________| |_____________| |_________| |________| | | |
| 173 | ____| | | |
| 174 | |_28_ ______________________ _________ ________ | | |
| 175 | |____ | - Z80A - | | 74LS74 | | 74LS157| | | |
| 176 | |____ | TMPZ84C00AP-6 | |_________| |________| | | |
| 177 | |____ |______________________| __________ __________ | | |
| 178 | |____ ___________ ____________ |PALCE16V8H||D4016CX-20| | | |
| 179 | |____ | 74LS244N | | 74LS259N | |__________||__________| | | |
| 180 | |____ |___________| |____________| ________ __________ | | |
| 181 | |____ ___________ __________ | 74LS02 | |D4016CX-20| | | |
| 182 | |____ | TD62003AP | | 74LS251P | |________| |__________| | | |
| 183 | |____ |___________| |__________| __________________ | | |
| 184 | |____ ___________ __________ | AY-3-8910 | | | |
| 185 | |____ | 74LS259N | | 74LS251P | | KC89C72 / YM2149F| | | |
| 186 | |____ |___________| |__________| |__________________| | | |
| 187 | |____ ___________ __________ _________ __________ | | |
| 188 | |____ | 74LS259N | | 74LS251P | | 82S147AN| | 74LS245 | | | |
| 189 | |____ |___________| |__________| |_________| |__________| | | |
| 190 | |____ ___________ __________ _________ | | |
| 191 | |____ | 74LS259N | | 74LS251P | | 74LS377 | | | |
| 192 | |____ |___________| |__________| |_________| | | |
| 193 | |____ ___________ __________ _________ | | |
| 194 | |____ ________ | TD62003AP | | 74LS251P | | 74LS377 | | | |
| 195 | |____ |12345678| |___________| |__________| |_________| | | |
| 196 | |____ |________| __________ _________ _________ | | |
| 197 | |____ DSW1 | 74LS194 | | 74LS194 | | 74LS245 | | | |
| 198 | |____ |__________| |_________| |_________| | | |
| 199 | |____ | | |
| 200 | |____ ______ ________________ _____________ _________ | | |
| 201 | |_01_ |TL7705| |01 oooooooooo 10| | 27C128 | | 74LS377 | | | |
| 202 | | |______| |________________| | D27128D | |_________| | | |
| 203 | ____| CONNECTOR1 |_____________| | | |
| 204 | | | | |
| 205 | |________________________________________________________________________________| | |
| 206 | ||
| 207 | ||
| 208 | ||
| 209 | ||
| 210 | ********************************************************************************* | |
| 211 | ||
| 212 | ||
| 213 | Dumper Notes (old) | |
| 214 | ------------------ | |
| 215 | ||
| 216 | American Poker | |
| 217 | WB 5300 IS SAME AS Winbond WF19054 and YM2149F (AY891X?) | |
| 218 | CPU TMPZ84C00AP OR LH0080A | |
| 219 | XTAL 6.000 | |
| 220 | 1 DIP x 8 | |
| 221 | RAM 6116 | |
| 222 | LH 5116D X2 | |
| 223 | ||
| 224 | --------------------------------------------- | |
| 225 | ||
| 226 | Crystal 6.000 MHz | |
| 227 | CPU Sharp LH0080B Z80B-CPU 9241 1 B | |
| 228 | Sound OKI M5255 9203 | |
| 229 | RAM 2x TMM2015AP-15 (2048x8) | |
| 230 | PAL PAL?????16VE??? 022J???? P.M.REG | |
| 231 | PROM Philips N82S147AN PTH6708 9518nl | |
| 232 | EPROM Intel D27128-4 T8180760S | |
| 233 | AMD AM27C512-205DC 916LADL | |
| 234 | Chip? Sanyo ????? | |
| 235 | ||
| 236 | 7 unmarked chips | |
| 237 | ||
| 238 | ********************************************************************************* | |
| 239 | ||
| 240 | ||
| 241 | --- DRIVER UPDATES --- | |
| 242 | ||
| 243 | ||
| 244 | [2007-11-15] | |
| 245 | ||
| 246 | ******** REWRITE ******** | |
| 247 | ||
| 248 | - Crystal documented via #define. | |
| 249 | - CPU and sound clocks derived from #defined crystal value. | |
| 250 | - Reworked TILE_GET_INFO to handle the proper tiles/color codes. | |
| 251 | - Added the correct GFX dump to sigma2k. | |
| 252 | - Added proper TILE_GET_INFO, VIDEO_START, GFX_LAYOUT, GFXDECODE and MACHINE to sigma2k. | |
| 253 | - Fixed interrupts (NMI). | |
| 254 | - Corrected AY8910 frequency to 1.5 MHz to match the real thing. | |
| 255 | - Arranged the AY8910 volume in all games avoiding clips. | |
| 256 | - Corrected the screen visible area. | |
| 257 | - Added NVRAM support. | |
| 258 | - Reworked the memory map, mapping all the hardware I/O ports. | |
| 259 | - Reworked the Inputs for all sets. | |
| 260 | - Added implementation of Operator and Supervisor Keys. | |
| 261 | - Fixed some timing troubles. | |
| 262 | - Mapped the input buttons in the same way I mapped them in other poker games. | |
| 263 | - Added partial DIP switch support with diplocations to all sets. | |
| 264 | ||
| 265 | - Removed the hack in DRIVER_INIT. | |
| 266 | - Hooked write handlers for output ports. | |
| 267 | - Added watchdog routines. | |
| 268 | - Dumped, hooked, wired and decoded the color PROM in all sets. Colors are perfect. | |
| 269 | - Modified the refresh rate to 60 fps according to hardware measurements. | |
| 270 | - Cleaned up and renamed all sets, defining parent-clone relationship. | |
| 271 | - Wired the lamps for all sets. Created their respective layouts. | |
| 272 | - Updated flags in game drivers. | |
| 273 | - Splitted the driver to driver/video. | |
| 274 | - Other minor fixes. | |
| 275 | ||
| 276 | - New set dumped/added: American Poker 95. | |
| 277 | - New set dumped/added: American Poker 2 (bootleg, set 1). | |
| 278 | - New set dumped/added: Sigma Poker. | |
| 279 | - New set dumped/added: Sigma Poker 2000. | |
| 280 | ||
| 281 | - Rewritten the technical notes from the scratch (still in progress). | |
| 282 | - Added a PCB layout to the technical notes. | |
| 283 | ||
| 284 | ||
| 285 | ||
| 286 | *** TO DO *** | |
| 287 | ||
| 288 | - Find why the watchdog sometimes stop to work. | |
| 289 | - Analyze the write to port 0x21 after reset. | |
| 290 | ||
| 291 | ||
| 292 | ||
| 293 | *********************************************************************************/ | |
| 294 | ||
| 295 | ||
| 296 | #define MASTER_CLOCK 6000000 /* 6 Mhz */ | |
| 297 | ||
| 298 | #include "driver.h" | |
| 299 | #include "sound/ay8910.h" | |
| 300 | #include "ampoker2.lh" | |
| 301 | #include "sigmapkr.lh" | |
| 302 | ||
| 303 | /* from video */ | |
| 304 | extern WRITE8_HANDLER( ampoker2_videoram_w ); | |
| 305 | extern PALETTE_INIT( ampoker2 ); | |
| 306 | extern VIDEO_START( ampoker2 ); | |
| 307 | extern VIDEO_START( sigma2k ); | |
| 308 | extern VIDEO_UPDATE( ampoker2 ); | |
| 309 | ||
| 310 | ||
| 311 | /********************** | |
| 312 | * Read/Write Handlers * | |
| 313 | * - Output Ports - * | |
| 314 | *********************** | |
| 315 | ||
| 316 | ||
| 317 | There are only five bits wired for each Port | |
| 318 | ||
| 319 | PORT ADDRESS BIT0 BIT1 BIT2 BIT3 BIT4 | |
| 320 | ------------------------------------------------------------------- | |
| 321 | ||
| 322 | 0x30 - 0xc000 ---- ---- ---- ---- ---- | |
| 323 | 0x31 - 0xc001 ---- L.Bet/Red L.Hold4 L.Hold2 Twr.Yell | |
| 324 | 0x32 - 0xc002 ---- ---- ---- L.Hold3 ---- | |
| 325 | 0x33 - 0xc003 ---- ---- ---- ---- ---- | |
| 326 | 0x34 - 0xc004 ---- ---- ---- ---- L.Black | |
| 327 | 0x35 - 0xc005 ---- ---- ---- ---- ---- | |
| 328 | 0x36 - 0xc006 Twr.Grn. L.Hold5 L.Deal L.Hold1 ---- | |
| 329 | 0x37 - 0xc007 ---- ---- ---- WatchDog ---- | |
| 330 | ||
| 331 | ||
| 332 | --- Lamps wiring (done) --- | |
| 333 | ||
| 334 | L0 = DEAL / TAKE | |
| 335 | L1 = RED / BET | |
| 336 | L2 = BLACK | |
| 337 | L3 = HOLD 1 | |
| 338 | L4 = HOLD 2 | |
| 339 | L5 = HOLD 3 | |
| 340 | L6 = HOLD 4 | |
| 341 | L7 = HOLD 5 | |
| 342 | L8 = TOWER YELLOW (not in lay) | |
| 343 | L9 = TOWER GREEN (not in lay) | |
| 344 | ||
| 345 | ||
| 346 | --- Counters wiring --- | |
| 347 | ||
| 348 | C0 = METER 1 - REMOTE IN | |
| 349 | C1 = METER 2 - TOTAL OUT | |
| 350 | C2 = METER 3 - TOTAL IN | |
| 351 | C3 = METER 4 - BILLS | |
| 352 | C4 = METER 5 - JACKPOT | |
| 353 | C5 = METER 6 - CASH BOX | |
| 354 | C6 = METER 7 - GAMES | |
| 355 | C7 = METER 8 - ? | |
| 356 | ||
| 357 | ||
| 358 | --- Devices wiring --- | |
| 359 | ||
| 360 | D0 = Enable Coin to Hopper / Diverter | |
| 361 | D1 = Enable Coin 1 / Acceptor | |
| 362 | D2 = Enable Coin 2 | |
| 363 | D3 = Enable Coin 3 | |
| 364 | D4 = Enable Coin 4 / Bill Reader | |
| 365 | D5 = Hopper 1 Enable | |
| 366 | D6 = Hopper 2 Enable (Optional) | |
| 367 | D7 = Hopper 1 2 Enable | |
| 368 | ||
| 369 | ||
| 370 | --- Unused wiring --- | |
| 371 | ||
| 372 | U0 = Pin 15A (ULN2064) | |
| 373 | U1 = Pin 17C (ULN2064) | |
| 374 | U2 = Pin 19A (ULN2064) | |
| 375 | U3 = Pin 6C (ULN2064) | |
| 376 | U4 = Pin 13C | |
| 377 | U5 = Pin 14A | |
| 378 | ||
| 379 | */ | |
| 380 | ||
| 381 | static WRITE8_HANDLER( ampoker2_port30_w ) | |
| 382 | /*------------------------------------------------- | |
| 383 | PORT_30 C000H ;OUTPUT PORT 30H | |
| 384 | --------------------------------------------------- | |
| 385 | BIT 0 = | |
| 386 | BIT 1 = | |
| 387 | BIT 2 = | |
| 388 | BIT 3 = | |
| 389 | BIT 4 = | |
| 390 | --------------------------------------------------*/ | |
| 391 | { | |
| 392 | } | |
| 393 | ||
| 394 | ||
| 395 | static WRITE8_HANDLER( ampoker2_port31_w ) | |
| 396 | /*------------------------------------------------- | |
| 397 | PORT_31 C001H ;OUTPUT PORT 31H | |
| 398 | --------------------------------------------------- | |
| 399 | BIT 0 = | |
| 400 | BIT 1 = LAMP_1 ;Lamp 1 (RED) | |
| 401 | BIT 2 = LAMP_6 ;Lamp 6 (HOLD4) | |
| 402 | BIT 3 = LAMP_4 ;Lamp 4 (HOLD2) | |
| 403 | BIT 4 = TWL_YELL ;Tower Light YELLOW | |
| 404 | --------------------------------------------------*/ | |
| 405 | { | |
| 406 | output_set_lamp_value(1, ((data >> 1) & 1)); /* Lamp 1 - BET/RED */ | |
| 407 | output_set_lamp_value(6, ((data >> 2) & 1)); /* Lamp 6 - HOLD 4 */ | |
| 408 | output_set_lamp_value(4, ((data >> 3) & 1)); /* Lamp 4 - HOLD 2 */ | |
| 409 | output_set_lamp_value(8, ((data >> 4) & 1)); /* Lamp 8 - TWR.YELLOW */ | |
| 410 | } | |
| 411 | ||
| 412 | ||
| 413 | static WRITE8_HANDLER( ampoker2_port32_w ) | |
| 414 | /*------------------------------------------------- | |
| 415 | PORT_32 C002H ;OUTPUT PORT 32H | |
| 416 | --------------------------------------------------- | |
| 417 | BIT 0 = | |
| 418 | BIT 1 = | |
| 419 | BIT 2 = | |
| 420 | BIT 3 = LAMP_5 ;Lamp 5 (HOLD3) | |
| 421 | BIT 4 = | |
| 422 | --------------------------------------------------*/ | |
| 423 | { | |
| 424 | output_set_lamp_value(5, ((data >> 3) & 1)); /* Lamp 5 - HOLD 3 */ | |
| 425 | } | |
| 426 | ||
| 427 | ||
| 428 | static WRITE8_HANDLER( ampoker2_port33_w ) | |
| 429 | /*------------------------------------------------- | |
| 430 | PORT_33 C003H ;OUTPUT PORT 33H | |
| 431 | --------------------------------------------------- | |
| 432 | BIT 0 = | |
| 433 | BIT 1 = | |
| 434 | BIT 2 = | |
| 435 | BIT 3 = | |
| 436 | BIT 4 = | |
| 437 | --------------------------------------------------*/ | |
| 438 | { | |
| 439 | } | |
| 440 | ||
| 441 | ||
| 442 | static WRITE8_HANDLER( ampoker2_port34_w ) | |
| 443 | /*------------------------------------------------- | |
| 444 | PORT_34 C004H ;OUTPUT PORT 34H | |
| 445 | --------------------------------------------------- | |
| 446 | BIT 0 = | |
| 447 | BIT 1 = | |
| 448 | BIT 2 = | |
| 449 | BIT 3 = | |
| 450 | BIT 4 = LAMP_2 ;Lamp 3 (BLACK) | |
| 451 | --------------------------------------------------*/ | |
| 452 | { | |
| 453 | output_set_lamp_value(2, ((data >> 4) & 1)); /* Lamp 2 - BLACK */ | |
| 454 | } | |
| 455 | ||
| 456 | ||
| 457 | static WRITE8_HANDLER( ampoker2_port35_w ) | |
| 458 | /*------------------------------------------------- | |
| 459 | PORT_35 C005H ;OUTPUT PORT 35H | |
| 460 | --------------------------------------------------- | |
| 461 | BIT 0 = | |
| 462 | BIT 1 = | |
| 463 | BIT 2 = | |
| 464 | BIT 3 = | |
| 465 | BIT 4 = | |
| 466 | --------------------------------------------------*/ | |
| 467 | { | |
| 468 | } | |
| 469 | ||
| 470 | ||
| 471 | static WRITE8_HANDLER( ampoker2_port36_w ) | |
| 472 | /*------------------------------------------------- | |
| 473 | PORT_36 C006H ;OUTPUT PORT 36H | |
| 474 | --------------------------------------------------- | |
| 475 | BIT 0 = TWL_GREEN ;Tower Light GREEN | |
| 476 | BIT 1 = | |
| 477 | BIT 2 = LAMP_9 ;Lamp 9 (HOLD5) | |
| 478 | BIT 3 = LAMP_0 ;Lamp 0 (DEAL) | |
| 479 | BIT 4 = LAMP_3 ;Lamp 3 (HOLD1) | |
| 480 | --------------------------------------------------*/ | |
| 481 | { | |
| 482 | output_set_lamp_value(9, (data & 1)); /* Lamp 9 - TWR.GREEN */ | |
| 483 | output_set_lamp_value(7, ((data >> 2) & 1)); /* Lamp 7 - HOLD 5 */ | |
| 484 | output_set_lamp_value(0, ((data >> 3) & 1)); /* Lamp 0 - DEAL */ | |
| 485 | output_set_lamp_value(3, ((data >> 4) & 1)); /* Lamp 3 - HOLD 1 */ | |
| 486 | } | |
| 487 | ||
| 488 | ||
| 489 | static WRITE8_HANDLER( ampoker2_watchdog_reset_w ) | |
| 490 | /*------------------------------------------------- | |
| 491 | PORT_37 C007H ;OUTPUT PORT 37H | |
| 492 | --------------------------------------------------- | |
| 493 | BIT 3 = W_DOG ;WATCHDOG. | |
| 494 | --------------------------------------------------*/ | |
| 495 | { | |
| 496 | /* watchdog sometimes stop to work */ | |
| 497 | if (( (data >> 3) & 0x01) == 0) /* check for refresh value (0x08h) */ | |
| 498 | { | |
| 499 | watchdog_reset_w(0,0); | |
| 500 | // fprintf(stdout,"Watchdog\n"); | |
| 501 | } | |
| 502 | } | |
| 503 | ||
| 504 | ||
| 505 | /************************* | |
| 506 | * Memory map information * | |
| 507 | *************************/ | |
| 508 | ||
| 509 | static ADDRESS_MAP_START( ampoker2_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 510 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 511 | AM_RANGE(0xc000, 0xcfff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) | |
| 512 | AM_RANGE(0xe000, 0xefff) AM_RAM AM_WRITE(ampoker2_videoram_w) AM_BASE(&videoram) | |
| 513 | ADDRESS_MAP_END | |
| 514 | ||
| 515 | static ADDRESS_MAP_START( ampoker2_io_map, ADDRESS_SPACE_IO, 8 ) | |
| 516 | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) ) | |
| 517 | AM_RANGE(0x08, 0x0f) AM_WRITENOP /* inexistent in the real hardware */ | |
| 518 | AM_RANGE(0x10, 0x10) AM_READ(input_port_0_r) | |
| 519 | AM_RANGE(0x11, 0x11) AM_READ(input_port_1_r) | |
| 520 | AM_RANGE(0x12, 0x12) AM_READ(input_port_2_r) | |
| 521 | AM_RANGE(0x13, 0x13) AM_READ(input_port_3_r) | |
| 522 | AM_RANGE(0x14, 0x14) AM_READ(input_port_4_r) | |
| 523 | AM_RANGE(0x15, 0x15) AM_READ(input_port_5_r) | |
| 524 | AM_RANGE(0x16, 0x16) AM_READ(input_port_6_r) | |
| 525 | AM_RANGE(0x17, 0x17) AM_READ(input_port_7_r) | |
| 526 | // AM_RANGE(0x21, 0x21) AM_WRITENOP /* undocumented, write 0x1a after each reset */ | |
| 527 | AM_RANGE(0x30, 0x30) AM_WRITE (ampoker2_port30_w) /* see write handlers */ | |
| 528 | AM_RANGE(0x31, 0x31) AM_WRITE (ampoker2_port31_w) /* see write handlers */ | |
| 529 | AM_RANGE(0x32, 0x32) AM_WRITE (ampoker2_port32_w) /* see write handlers */ | |
| 530 | AM_RANGE(0x33, 0x33) AM_WRITE (ampoker2_port33_w) /* see write handlers */ | |
| 531 | AM_RANGE(0x34, 0x34) AM_WRITE (ampoker2_port34_w) /* see write handlers */ | |
| 532 | AM_RANGE(0x35, 0x35) AM_WRITE (ampoker2_port35_w) /* see write handlers */ | |
| 533 | AM_RANGE(0x36, 0x36) AM_WRITE (ampoker2_port36_w) /* see write handlers */ | |
| 534 | AM_RANGE(0x37, 0x37) AM_WRITE(ampoker2_watchdog_reset_w) | |
| 535 | AM_RANGE(0x38, 0x38) AM_WRITE(AY8910_control_port_0_w) | |
| 536 | AM_RANGE(0x39, 0x39) AM_WRITE(AY8910_write_port_0_w) | |
| 537 | AM_RANGE(0x3A, 0x3A) AM_READ(AY8910_read_port_0_r) | |
| 538 | ADDRESS_MAP_END | |
| 539 | ||
| 540 | ||
| 541 | ||
| 542 | /************************* | |
| 543 | * Input ports * | |
| 544 | *************************/ | |
| 545 | ||
| 546 | static INPUT_PORTS_START( ampoker2 ) | |
| 547 | PORT_START_TAG("IN0") | |
| 548 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 549 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 550 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 551 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Hopper 1") PORT_CODE(KEYCODE_Y) | |
| 552 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(2) | |
| 553 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 554 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 555 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 556 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN3 ) PORT_IMPULSE(2) | |
| 557 | ||
| 558 | PORT_START_TAG("IN1") | |
| 559 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 560 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 561 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 562 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Hold 1") PORT_CODE(KEYCODE_Z) | |
| 563 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Operator Key") PORT_TOGGLE PORT_CODE(KEYCODE_9) | |
| 564 | PORT_DIPNAME( 0x08, 0x08, "Remote Mode" ) | |
| 565 | PORT_DIPSETTING( 0x08, "Mode 1" ) | |
| 566 | PORT_DIPSETTING( 0x00, "Mode 2" ) | |
| 567 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("Hold 4") PORT_CODE(KEYCODE_V) | |
| 568 | ||
| 569 | PORT_START_TAG("IN2") | |
| 570 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 571 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 572 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 573 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("RTS") PORT_CODE(KEYCODE_U) | |
| 574 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Door Switch") PORT_CODE(KEYCODE_W) | |
| 575 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 576 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 577 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 578 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON9 ) PORT_NAME("Payout") PORT_CODE(KEYCODE_Q) | |
| 579 | ||
| 580 | PORT_START_TAG("IN3") | |
| 581 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Hopper Out") PORT_CODE(KEYCODE_I) | |
| 582 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Supervisor Key") PORT_TOGGLE PORT_CODE(KEYCODE_0) | |
| 583 | PORT_DIPNAME( 0x08, 0x08, "Remote Credits" ) PORT_DIPLOCATION("SW1:1") /* DSW1 */ | |
| 584 | PORT_DIPSETTING( 0x08, "Cred x 100" ) PORT_CONDITION("IN1",0x08,PORTCOND_EQUALS,0x08) | |
| 585 | PORT_DIPSETTING( 0x00, "Cred x 50" ) PORT_CONDITION("IN1",0x08,PORTCOND_EQUALS,0x08) | |
| 586 | PORT_DIPSETTING( 0x08, "Cred x 20" ) PORT_CONDITION("IN1",0x08,PORTCOND_EQUALS,0x00) /* x100 in ampkr95 */ | |
| 587 | PORT_DIPSETTING( 0x00, "Remote Off" ) PORT_CONDITION("IN1",0x08,PORTCOND_EQUALS,0x00) | |
| 588 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Black Card") PORT_CODE(KEYCODE_S) | |
| 589 | ||
| 590 | PORT_START_TAG("IN4") | |
| 591 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) /* not used */ | |
| 592 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Hopper Low") PORT_CODE(KEYCODE_H) | |
| 593 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Hold 2") PORT_CODE(KEYCODE_X) | |
| 594 | PORT_DIPNAME( 0x08, 0x08, "Auto Hold" ) PORT_DIPLOCATION("SW1:2") /* DSW2 */ | |
| 595 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 596 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 597 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Deal / Take") PORT_CODE(KEYCODE_1) | |
| 598 | ||
| 599 | PORT_START_TAG("IN5") | |
| 600 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 601 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 602 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 603 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Return Line") PORT_CODE(KEYCODE_J) | |
| 604 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("TILT") PORT_CODE(KEYCODE_K) | |
| 605 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 606 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 607 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 608 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("Hold 3") PORT_CODE(KEYCODE_C) | |
| 609 | ||
| 610 | PORT_START_TAG("IN6") | |
| 611 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 612 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 613 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 614 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Bet / Red Card") PORT_CODE(KEYCODE_A) | |
| 615 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_NAME("Hold 5") PORT_CODE(KEYCODE_B) | |
| 616 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 617 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 618 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 619 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2) | |
| 620 | ||
| 621 | PORT_START_TAG("IN7") | |
| 622 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE ) /* not used */ | |
| 623 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Remote Credits") PORT_IMPULSE(12) PORT_CODE(KEYCODE_3) | |
| 624 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN4 ) PORT_IMPULSE(2) | |
| 625 | PORT_DIPNAME( 0x08, 0x08, "Jackpot" ) PORT_DIPLOCATION("SW1:8") /* DSW8 */ | |
| 626 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 627 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 628 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Clear Credits") PORT_CODE(KEYCODE_4) | |
| 629 | INPUT_PORTS_END | |
| 630 | ||
| 631 | static INPUT_PORTS_START( ampkr95 ) | |
| 632 | PORT_START_TAG("IN0") | |
| 633 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 634 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 635 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 636 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Hopper 1") PORT_CODE(KEYCODE_Y) | |
| 637 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(2) | |
| 638 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 639 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 640 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 641 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN3 ) PORT_IMPULSE(2) | |
| 642 | ||
| 643 | PORT_START_TAG("IN1") | |
| 644 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 645 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 646 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 647 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Hold 1") PORT_CODE(KEYCODE_Z) | |
| 648 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Operator Key") PORT_TOGGLE PORT_CODE(KEYCODE_9) | |
| 649 | PORT_DIPNAME( 0x08, 0x08, "Remote Mode" ) | |
| 650 | PORT_DIPSETTING( 0x08, "Mode 1" ) | |
| 651 | PORT_DIPSETTING( 0x00, "Mode 2" ) | |
| 652 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("Hold 4") PORT_CODE(KEYCODE_V) | |
| 653 | ||
| 654 | PORT_START_TAG("IN2") | |
| 655 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 656 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 657 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 658 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("RTS") PORT_CODE(KEYCODE_U) | |
| 659 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Door Switch") PORT_CODE(KEYCODE_W) | |
| 660 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 661 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 662 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 663 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON9 ) PORT_NAME("Payout") PORT_CODE(KEYCODE_Q) | |
| 664 | ||
| 665 | PORT_START_TAG("IN3") | |
| 666 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Hopper Out") PORT_CODE(KEYCODE_I) | |
| 667 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Supervisor Key") PORT_TOGGLE PORT_CODE(KEYCODE_0) | |
| 668 | PORT_DIPNAME( 0x08, 0x08, "Remote Credits" ) PORT_DIPLOCATION("SW1:1") /* DSW1 */ | |
| 669 | PORT_DIPSETTING( 0x08, "Cred x 100" ) PORT_CONDITION("IN1",0x08,PORTCOND_EQUALS,0x08) | |
| 670 | PORT_DIPSETTING( 0x00, "Cred x 50" ) PORT_CONDITION("IN1",0x08,PORTCOND_EQUALS,0x08) | |
| 671 | PORT_DIPSETTING( 0x08, "Cred x 100" ) PORT_CONDITION("IN1",0x08,PORTCOND_EQUALS,0x00) /* x100 in ampkr95 */ | |
| 672 | PORT_DIPSETTING( 0x00, "Remote Off" ) PORT_CONDITION("IN1",0x08,PORTCOND_EQUALS,0x00) | |
| 673 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Black Card") PORT_CODE(KEYCODE_S) | |
| 674 | ||
| 675 | PORT_START_TAG("IN4") | |
| 676 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) /* not used */ | |
| 677 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Hopper Low") PORT_CODE(KEYCODE_H) | |
| 678 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Hold 2") PORT_CODE(KEYCODE_X) | |
| 679 | PORT_DIPNAME( 0x08, 0x08, "Auto Hold" ) PORT_DIPLOCATION("SW1:2") /* DSW2 */ | |
| 680 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 681 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 682 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Deal / Take") PORT_CODE(KEYCODE_1) | |
| 683 | ||
| 684 | PORT_START_TAG("IN5") | |
| 685 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 686 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 687 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 688 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Return Line") PORT_CODE(KEYCODE_J) | |
| 689 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("TILT") PORT_CODE(KEYCODE_K) | |
| 690 | PORT_DIPNAME( 0x08, 0x08, "Rate Table SW1" ) PORT_DIPLOCATION("SW1:3") /* DSW3 (should be arranged with DSW4) */ | |
| 691 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 692 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 693 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("Hold 3") PORT_CODE(KEYCODE_C) | |
| 694 | ||
| 695 | PORT_START_TAG("IN6") | |
| 696 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 697 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 698 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 699 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Bet / Red") PORT_CODE(KEYCODE_A) | |
| 700 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_NAME("Hold 5") PORT_CODE(KEYCODE_B) | |
| 701 | PORT_DIPNAME( 0x08, 0x08, "Rate Table SW2" ) PORT_DIPLOCATION("SW1:4") /* DSW4 (should be arranged with DSW3) */ | |
| 702 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 703 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 704 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2) | |
| 705 | ||
| 706 | PORT_START_TAG("IN7") | |
| 707 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE ) /* not used */ | |
| 708 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Remote Credits") PORT_IMPULSE(12) PORT_CODE(KEYCODE_3) | |
| 709 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN4 ) PORT_IMPULSE(2) | |
| 710 | PORT_DIPNAME( 0x08, 0x08, "Jackpot" ) PORT_DIPLOCATION("SW1:8") /* DSW8 */ | |
| 711 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 712 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 713 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Clear Credits") PORT_CODE(KEYCODE_4) | |
| 714 | INPUT_PORTS_END | |
| 715 | ||
| 716 | static INPUT_PORTS_START( sigmapkr ) | |
| 717 | PORT_START_TAG("IN0") | |
| 718 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 719 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 720 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 721 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Hopper 1") PORT_CODE(KEYCODE_Y) | |
| 722 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(2) | |
| 723 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 724 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 725 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 726 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN3 ) PORT_IMPULSE(2) | |
| 727 | ||
| 728 | PORT_START_TAG("IN1") | |
| 729 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 730 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 731 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 732 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Hold 1") PORT_CODE(KEYCODE_Z) | |
| 733 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Operator Key") PORT_TOGGLE PORT_CODE(KEYCODE_9) | |
| 734 | PORT_DIPNAME( 0x08, 0x08, "Remote Mode" ) | |
| 735 | PORT_DIPSETTING( 0x08, "Mode 1" ) | |
| 736 | PORT_DIPSETTING( 0x00, "Mode 2" ) | |
| 737 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("Hold 4") PORT_CODE(KEYCODE_V) | |
| 738 | ||
| 739 | PORT_START_TAG("IN2") | |
| 740 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 741 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 742 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 743 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("RTS") PORT_CODE(KEYCODE_U) | |
| 744 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Door Switch") PORT_CODE(KEYCODE_W) | |
| 745 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 746 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 747 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 748 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON9 ) PORT_NAME("Payout") PORT_CODE(KEYCODE_Q) | |
| 749 | ||
| 750 | PORT_START_TAG("IN3") | |
| 751 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Hopper Out") PORT_CODE(KEYCODE_I) | |
| 752 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Supervisor Key") PORT_TOGGLE PORT_CODE(KEYCODE_0) | |
| 753 | PORT_DIPNAME( 0x08, 0x08, "Remote Credits" ) PORT_DIPLOCATION("SW1:1") /* DSW1 */ | |
| 754 | PORT_DIPSETTING( 0x08, "Cred x 100" ) PORT_CONDITION("IN1",0x08,PORTCOND_EQUALS,0x08) | |
| 755 | PORT_DIPSETTING( 0x00, "Cred x 50" ) PORT_CONDITION("IN1",0x08,PORTCOND_EQUALS,0x08) | |
| 756 | PORT_DIPSETTING( 0x08, "Cred x 100" ) PORT_CONDITION("IN1",0x08,PORTCOND_EQUALS,0x00) /* x100 in ampkr95 */ | |
| 757 | PORT_DIPSETTING( 0x00, "Remote Off" ) PORT_CONDITION("IN1",0x08,PORTCOND_EQUALS,0x00) | |
| 758 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Double") PORT_CODE(KEYCODE_S) | |
| 759 | ||
| 760 | PORT_START_TAG("IN4") | |
| 761 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) /* not used */ | |
| 762 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Hopper Low") PORT_CODE(KEYCODE_H) | |
| 763 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Hold 2") PORT_CODE(KEYCODE_X) | |
| 764 | PORT_DIPNAME( 0x08, 0x08, "Auto Hold" ) PORT_DIPLOCATION("SW1:2") /* DSW2 */ | |
| 765 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 766 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 767 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Deal / Take") PORT_CODE(KEYCODE_1) | |
| 768 | ||
| 769 | PORT_START_TAG("IN5") | |
| 770 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 771 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 772 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 773 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Return Line") PORT_CODE(KEYCODE_J) | |
| 774 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("TILT") PORT_CODE(KEYCODE_K) | |
| 775 | PORT_DIPNAME( 0x08, 0x08, "Rate Table SW1" ) PORT_DIPLOCATION("SW1:3") /* DSW3 (should be arranged with DSW4) */ | |
| 776 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 777 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 778 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("Hold 3") PORT_CODE(KEYCODE_C) | |
| 779 | ||
| 780 | PORT_START_TAG("IN6") | |
| 781 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 782 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 783 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 784 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Bet") PORT_CODE(KEYCODE_A) | |
| 785 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_NAME("Hold 5") PORT_CODE(KEYCODE_B) | |
| 786 | PORT_DIPNAME( 0x08, 0x08, "Rate Table SW2" ) PORT_DIPLOCATION("SW1:4") /* DSW4 (should be arranged with DSW3) */ | |
| 787 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 788 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 789 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2) | |
| 790 | ||
| 791 | PORT_START_TAG("IN7") | |
| 792 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE ) /* not used */ | |
| 793 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Remote Credits") PORT_IMPULSE(12) PORT_CODE(KEYCODE_3) | |
| 794 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN4 ) PORT_IMPULSE(2) | |
| 795 | PORT_DIPNAME( 0x08, 0x08, "Jackpot" ) PORT_DIPLOCATION("SW1:8") /* DSW8 */ | |
| 796 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 797 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 798 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Clear Credits") PORT_CODE(KEYCODE_4) | |
| 799 | INPUT_PORTS_END | |
| 800 | ||
| 801 | ||
| 802 | /************************* | |
| 803 | * Graphics Layouts * | |
| 804 | *************************/ | |
| 805 | ||
| 806 | static const gfx_layout charlayout = | |
| 807 | { | |
| 808 | 8, 8, | |
| 809 | 1024, | |
| 810 | 2, | |
| 811 | { 0, 4 }, | |
| 812 | { 0, 1, 2, 3, 8, 9, 10, 11 }, | |
| 813 | { 0*8, 2*8, 4*8, 6*8, 8*8, 10*8, 12*8, 14*8 }, | |
| 814 | 16*8 | |
| 815 | }; | |
| 816 | ||
| 817 | static const gfx_layout s2k_charlayout = | |
| 818 | { | |
| 819 | 8, 8, | |
| 820 | 4096, | |
| 821 | 2, | |
| 822 | { 0, 4 }, | |
| 823 | { 0, 1, 2, 3, 8, 9, 10, 11 }, | |
| 824 | { 0*8, 2*8, 4*8, 6*8, 8*8, 10*8, 12*8, 14*8 }, | |
| 825 | 16*8 | |
| 826 | }; | |
| 827 | ||
| 828 | ||
| 829 | /****************************** | |
| 830 | * Graphics Decode Information * | |
| 831 | ******************************/ | |
| 832 | ||
| 833 | static GFXDECODE_START( ampoker2 ) | |
| 834 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, charlayout, 0, 16 ) | |
| 835 | GFXDECODE_END | |
| 836 | ||
| 837 | static GFXDECODE_START( sigma2k ) | |
| 838 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, s2k_charlayout, 0, 16 ) | |
| 839 | GFXDECODE_END | |
| 840 | ||
| 841 | ||
| 842 | /******************* | |
| 843 | * AY8910 Interfase * | |
| 844 | *******************/ | |
| 845 | ||
| 846 | static const struct AY8910interface ay8910_interface = | |
| 847 | { | |
| 848 | 0, 0, 0, 0 /* no ports used */ | |
| 849 | }; | |
| 850 | ||
| 851 | ||
| 852 | /************************* | |
| 853 | * Machine Driver * | |
| 854 | *************************/ | |
| 855 | ||
| 856 | static MACHINE_DRIVER_START( ampoker2 ) | |
| 857 | ||
| 858 | /* basic machine hardware */ | |
| 859 | MDRV_CPU_ADD(Z80, MASTER_CLOCK/2) /* 3 MHz */ | |
| 860 | MDRV_CPU_PROGRAM_MAP(ampoker2_map, 0) | |
| 861 | MDRV_CPU_IO_MAP(ampoker2_io_map, 0) | |
| 862 | MDRV_CPU_PERIODIC_INT(nmi_line_pulse, 1536) | |
| 863 | MDRV_WATCHDOG_TIME_INIT(ATTOTIME_IN_HZ( 5 )) /* 200 ms, measured */ | |
| 864 | //MDRV_WATCHDOG_VBLANK_INIT(8) | |
| 865 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 866 | /* if VBLANK is used, the watchdog timer stop to work. | |
| 867 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 868 | */ | |
| 869 | MDRV_NVRAM_HANDLER(generic_0fill) | |
| 870 | ||
| 871 | /* video hardware */ | |
| 872 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 873 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 874 | MDRV_SCREEN_SIZE(64*8, 32*8) | |
| 875 | MDRV_SCREEN_VISIBLE_AREA(20*8, 56*8-1, 2*8, 32*8-1) | |
| 876 | ||
| 877 | MDRV_GFXDECODE(ampoker2) | |
| 878 | MDRV_PALETTE_LENGTH(512) | |
| 879 | ||
| 880 | MDRV_PALETTE_INIT(ampoker2) | |
| 881 | MDRV_VIDEO_START(ampoker2) | |
| 882 | MDRV_VIDEO_UPDATE(ampoker2) | |
| 883 | ||
| 884 | /* sound hardware */ | |
| 885 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 886 | MDRV_SOUND_ADD(AY8910,MASTER_CLOCK/4) /* 1.5 MHz, verified against the real thing */ | |
| 887 | MDRV_SOUND_CONFIG(ay8910_interface) | |
| 888 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) | |
| 889 | MACHINE_DRIVER_END | |
| 890 | ||
| 891 | static MACHINE_DRIVER_START( sigma2k ) | |
| 892 | /* basic machine hardware */ | |
| 893 | MDRV_IMPORT_FROM(ampoker2) | |
| 894 | ||
| 895 | /* video hardware */ | |
| 896 | MDRV_GFXDECODE(sigma2k) | |
| 897 | MDRV_VIDEO_START(sigma2k) | |
| 898 | MACHINE_DRIVER_END | |
| 899 | ||
| 900 | ||
| 901 | /************************* | |
| 902 | * Rom Load * | |
| 903 | *************************/ | |
| 904 | ||
| 905 | ROM_START( ampoker2 ) | |
| 906 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 907 | ROM_LOAD( "poker9.003", 0x4000, 0x8000, CRC(a31221fc) SHA1(4a8bdd8ce8d5bff7e7cfc4ae91e27c1d366dc54d) ) | |
| 908 | ROM_COPY( REGION_CPU1, 0x8000, 0x0000, 0x4000 ) /* poker9.003 contains the 16K halves swapped around */ | |
| 909 | ROM_LOAD( "poker9.002", 0x8000, 0x4000, CRC(bfde5bce) SHA1(c7c7ca2268694015e8ec673e8fa5c48043086d3f) ) | |
| 910 | ||
| 911 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 912 | ROM_LOAD( "poker9.028", 0x0000, 0x4000, CRC(65bccb40) SHA1(75f154a2aaf9f9be62e0e1dd8cbe630b9ea0145c) ) | |
| 913 | ||
| 914 | ROM_REGION( 0x200, REGION_PROMS, 0 ) | |
| 915 | ROM_LOAD( "82s147an.u48", 0x0000, 0x0200, CRC(9bc8e543) ) | |
| 916 | ROM_END | |
| 917 | ||
| 918 | ROM_START( ampkr2b1 ) | |
| 919 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 920 | ROM_LOAD( "airl-v00.512", 0x0000, 0x10000, CRC(e5953bf4) SHA1(291367431e3b21b57704228c63e4da853e6d25b7) ) | |
| 921 | ||
| 922 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 923 | ROM_LOAD( "ampoker.u47", 0x0000, 0x4000, CRC(cefed6c7) SHA1(79591339eab2712b432dfe89929dbc97000a13d2) ) | |
| 924 | ||
| 925 | ROM_REGION( 0x200, REGION_PROMS, 0 ) | |
| 926 | ROM_LOAD( "82s147an.u48", 0x0000, 0x0200, CRC(9bc8e543) ) | |
| 927 | ROM_END | |
| 928 | ||
| 929 | ROM_START( ampkr2b2 ) | |
| 930 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 931 | ROM_LOAD( "rom9.u6", 0x0000, 0x10000, CRC(820a491d) SHA1(36654aacac010e7c086dd18d4e0ca5d959b9044f) ) | |
| 932 | ||
| 933 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 934 | ROM_LOAD( "rom0.u47", 0x0000, 0x4000, CRC(cefed6c7) SHA1(79591339eab2712b432dfe89929dbc97000a13d2) ) | |
| 935 | ||
| 936 | ROM_REGION( 0x200, REGION_PROMS, 0 ) | |
| 937 | ROM_LOAD( "82s147an.u48", 0x0000, 0x0200, CRC(9bc8e543) ) | |
| 938 | ROM_END | |
| 939 | ||
| 940 | ROM_START( ampkr2b3 ) | |
| 941 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 942 | ROM_LOAD( "ampoker.u6", 0x0000, 0x10000, CRC(d7b055bd) SHA1(f5231d2ec80f740eabedaba07547ccbb977accc1) ) | |
| 943 | ||
| 944 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 945 | ROM_LOAD( "ampoker.u47", 0x0000, 0x4000, CRC(cefed6c7) SHA1(79591339eab2712b432dfe89929dbc97000a13d2) ) | |
| 946 | ||
| 947 | ROM_REGION( 0x200, REGION_PROMS, 0 ) | |
| 948 | ROM_LOAD( "82s147an.u48", 0x0000, 0x0200, CRC(9bc8e543) ) | |
| 949 | ROM_END | |
| 950 | ||
| 951 | ROM_START( ampkr95 ) | |
| 952 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 953 | ROM_LOAD( "amp95rus.u6", 0x0000, 0x10000, CRC(6ec74b2b) SHA1(2dca05bc111071f1407dd524b67b5a3dc5848c70) ) | |
| 954 | ||
| 955 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 956 | ROM_LOAD( "ampoker.u47", 0x0000, 0x4000, CRC(cefed6c7) SHA1(79591339eab2712b432dfe89929dbc97000a13d2) ) | |
| 957 | ||
| 958 | ROM_REGION( 0x200, REGION_PROMS, 0 ) | |
| 959 | ROM_LOAD( "82s147an.u48", 0x0000, 0x0200, CRC(9bc8e543) ) | |
| 960 | ROM_END | |
| 961 | ||
| 962 | ROM_START( pkrdewin ) | |
| 963 | ROM_REGION( 0x14000, REGION_CPU1, 0 ) | |
| 964 | ROM_LOAD( "poker7.001", 0x4000, 0x10000, CRC(eca16b9e) SHA1(5063d733721457ab3b08caafbe8d33b2cbe4f88b) ) | |
| 965 | ROM_COPY( REGION_CPU1, 0x8000, 0x0000, 0x4000 ) /* poker7.001 contains the 1st and 2nd 16K quarters swapped */ | |
| 966 | ROM_COPY( REGION_CPU1, 0x10000, 0x8000, 0x4000 ) /* poker7.001 contains the 1st and 2nd 16K quarters swapped */ | |
| 967 | ||
| 968 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 969 | ROM_LOAD( "poker7.002", 0x0000, 0x4000, CRC(65bccb40) SHA1(75f154a2aaf9f9be62e0e1dd8cbe630b9ea0145c) ) | |
| 970 | ||
| 971 | ROM_REGION( 0x200, REGION_PROMS, 0 ) | |
| 972 | ROM_LOAD( "82s147an.u48", 0x0000, 0x0200, CRC(9bc8e543) ) | |
| 973 | ROM_END | |
| 974 | ||
| 975 | ROM_START( sigmapkr ) | |
| 976 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 977 | ROM_LOAD( "sigmapkr.u6", 0x0000, 0x10000, CRC(aa3f429a) SHA1(8c82e86de7280590ba157860cbf9783f893f8554) ) | |
| 978 | ||
| 979 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 980 | ROM_LOAD( "sigmapkr.u47", 0x0000, 0x4000, CRC(49eb69a8) SHA1(22be5870d501d229aa56fb18146ec0d8f8eea72e) ) | |
| 981 | ||
| 982 | ROM_REGION( 0x200, REGION_PROMS, 0 ) | |
| 983 | ROM_LOAD( "82s147an_spkr.u48", 0x0000, 0x0200, CRC(3d8683d0) ) | |
| 984 | ROM_END | |
| 985 | ||
| 986 | ROM_START( sigma2k ) | |
| 987 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 988 | ROM_LOAD( "sigma2k.u6", 0x0000, 0x10000, CRC(608d1771) SHA1(0ec94d780565472c7e68da7e3ce19aea3f1ab4a5) ) | |
| 989 | ||
| 990 | ROM_REGION( 0x10000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 991 | ROM_LOAD( "sigma2k.u47", 0x0000, 0x10000, CRC(3ed7b9df) SHA1(788a90ffa6cb0bfebf607815a695a5afe930945c) ) | |
| 992 | ||
| 993 | ROM_REGION( 0x200, REGION_PROMS, 0 ) | |
| 994 | ROM_LOAD( "82s147an_s2k.u48", 0x0000, 0x0200, CRC(715361cc) ) | |
| 995 | ROM_END | |
| 996 | ||
| 997 | ||
| 998 | /************************* | |
| 999 | * Game Drivers * | |
| 1000 | *************************/ | |
| 1001 | ||
| 1002 | /* YEAR NAME PARENT MACHINE INPUT INIT ROT COMPANY FULLNAME FLAGS LAYOUT */ | |
| 1003 | GAMEL( 1990, ampoker2, 0, ampoker2, ampoker2, 0, ROT0, "Novomatic", "American Poker II", 0, layout_ampoker2 ) | |
| 1004 | GAMEL( 1990, ampkr2b1, ampoker2, ampoker2, ampoker2, 0, ROT0, "Bootleg", "American Poker II (bootleg, set 1)", 0, layout_ampoker2 ) | |
| 1005 | GAMEL( 1990, ampkr2b2, ampoker2, ampoker2, ampoker2, 0, ROT0, "Bootleg", "American Poker II (bootleg, set 2)", 0, layout_ampoker2 ) | |
| 1006 | GAMEL( 1994, ampkr2b3, ampoker2, ampoker2, ampoker2, 0, ROT0, "Bootleg", "American Poker II (bootleg, set 3)", 0, layout_ampoker2 ) | |
| 1007 | GAMEL( 1995, ampkr95, ampoker2, ampoker2, ampkr95, 0, ROT0, "Bootleg", "American Poker 95", 0, layout_ampoker2 ) | |
| 1008 | GAMEL( 1990, pkrdewin, ampoker2, ampoker2, ampoker2, 0, ROT0, "Bootleg", "Poker De Win", 0, layout_ampoker2 ) | |
| 1009 | GAMEL( 1995, sigmapkr, 0, ampoker2, sigmapkr, 0, ROT0, "Sigma Inc.", "Sigma Poker", 0, layout_sigmapkr ) | |
| 1010 | GAMEL( 1998, sigma2k, 0, sigma2k, sigmapkr, 0, ROT0, "Sigma Inc.", "Sigma Poker 2000", GAME_NOT_WORKING, layout_sigmapkr ) |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | ******************************************************************************/ |
| 13 | 13 | |
| 14 | 14 | #include "driver.h" |
| 15 | #include "deprecat.h" | |
| 15 | 16 | |
| 16 | 17 | static UINT8 *bgvideoram,*fgvideoram; |
| 17 | 18 | static int bg_bank = 0; |
| r1649 | r1650 | |
|---|---|---|
| 30 | 30 | ***************************************************************************/ |
| 31 | 31 | |
| 32 | 32 | #include "driver.h" |
| 33 | #include "deprecat.h" | |
| 33 | 34 | #include "machine/eeprom.h" |
| 34 | 35 | #include "sound/okim6295.h" |
| 35 | 36 | #include "sound/3812intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 359 | 359 | */ |
| 360 | 360 | |
| 361 | 361 | #include "driver.h" |
| 362 | #include "deprecat.h" | |
| 362 | 363 | #include "cpu/powerpc/ppc.h" |
| 363 | 364 | #include "machine/eeprom.h" |
| 364 | 365 | #include "machine/53c810.h" |
| r1649 | r1650 | |
|---|---|---|
| 271 | 271 | JP3 |
| 272 | 272 | */ |
| 273 | 273 | #include "driver.h" |
| 274 | #include "deprecat.h" | |
| 274 | 275 | #include "namcos2.h" |
| 275 | 276 | #include "cpu/m6809/m6809.h" |
| 276 | 277 | #include "cpu/tms32025/tms32025.h" |
| r1649 | r1650 | |
|---|---|---|
| 281 | 281 | #define PGMARM7SPEEDHACK 1 |
| 282 | 282 | |
| 283 | 283 | #include "driver.h" |
| 284 | #include "deprecat.h" | |
| 284 | 285 | #include "sound/ics2115.h" |
| 285 | 286 | #include "cpu/arm7/arm7core.h" |
| 286 | 287 |
| r1649 | r1650 | |
|---|---|---|
| 50 | 50 | ***************************************************************************/ |
| 51 | 51 | |
| 52 | 52 | #include "driver.h" |
| 53 | #include "deprecat.h" | |
| 53 | 54 | #include "machine/8255ppi.h" |
| 54 | 55 | #include "iqblock.h" |
| 55 | 56 | #include "sound/2413intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 64 | 64 | ****************************************************************************/ |
| 65 | 65 | |
| 66 | 66 | #include "driver.h" |
| 67 | #include "deprecat.h" | |
| 67 | 68 | #include "machine/6532riot.h" |
| 68 | 69 | #include "machine/6522via.h" |
| 69 | 70 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | *****************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "sound/sn76496.h" |
| 13 | 14 | |
| 14 | 15 | PALETTE_INIT( ikki ); |
| r1649 | r1650 | |
|---|---|---|
| 88 | 88 | ***************************************************************************/ |
| 89 | 89 | |
| 90 | 90 | #include "driver.h" |
| 91 | #include "deprecat.h" | |
| 91 | 92 | #include "machine/ticket.h" |
| 92 | 93 | #include "cpu/m6809/m6809.h" |
| 93 | 94 | #include "capbowl.h" |
| r1649 | r1650 | |
|---|---|---|
| 126 | 126 | |
| 127 | 127 | ***************************************************************************/ |
| 128 | 128 | |
| 129 | #include <stdarg.h> | |
| 130 | #include <math.h> | |
| 131 | 129 | #include "driver.h" |
| 130 | #include "deprecat.h" | |
| 132 | 131 | #include "video/taitoic.h" |
| 133 | 132 | #include "cpu/z80/z80.h" |
| 134 | 133 | #include "audio/taitosnd.h" |
| r1649 | r1650 | |
|---|---|---|
| 129 | 129 | ***************************************************************************/ |
| 130 | 130 | |
| 131 | 131 | #include "driver.h" |
| 132 | #include "deprecat.h" | |
| 132 | 133 | #include "cpu/mips/mips3.h" |
| 133 | 134 | #include "cpu/adsp2100/adsp2100.h" |
| 134 | 135 | #include "machine/idectrl.h" |
| r1649 | r1650 | |
|---|---|---|
| 98 | 98 | |
| 99 | 99 | |
| 100 | 100 | #include "driver.h" |
| 101 | #include "deprecat.h" | |
| 101 | 102 | #include "cpu/asap/asap.h" |
| 102 | 103 | #include "machine/atarigen.h" |
| 103 | 104 | #include "audio/atarijsa.h" |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "cpu/z80/z80.h" |
| 12 | 13 | #include "sound/st0016.h" |
| 13 | 14 | #include "st0016.h" |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | ***************************************************************************/ |
| 14 | 14 | |
| 15 | 15 | #include "driver.h" |
| 16 | #include "deprecat.h" | |
| 16 | 17 | #include "video/vector.h" |
| 17 | 18 | #include "machine/6840ptm.h" |
| 18 | 19 | #include "machine/z80ctc.h" |
| r1649 | r1650 | |
|---|---|---|
| 16 | 16 | ***************************************************************************/ |
| 17 | 17 | |
| 18 | 18 | #include "driver.h" |
| 19 | #include "deprecat.h" | |
| 19 | 20 | #include "cpu/m6809/m6809.h" |
| 20 | 21 | #include "sound/vlm5030.h" |
| 21 | 22 | #include "sound/dac.h" |
| r1649 | r1650 | |
|---|---|---|
| 86 | 86 | */ |
| 87 | 87 | |
| 88 | 88 | #include "driver.h" |
| 89 | #include "deprecat.h" | |
| 89 | 90 | #include "sound/ay8910.h" |
| 90 | 91 | #include "machine/8255ppi.h" |
| 91 | 92 |
| r1649 | r1650 | |
|---|---|---|
| 88 | 88 | ***************************************************************************/ |
| 89 | 89 | |
| 90 | 90 | #include "driver.h" |
| 91 | #include "deprecat.h" | |
| 91 | 92 | #include "cpu/h6280/h6280.h" |
| 92 | 93 | #include "sound/2151intf.h" |
| 93 | 94 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
|---|---|---|
| 15 | 15 | ***************************************************************************/ |
| 16 | 16 | |
| 17 | 17 | #include "driver.h" |
| 18 | #include "deprecat.h" | |
| 18 | 19 | #include "sound/2203intf.h" |
| 19 | 20 | |
| 20 | 21 | static tilemap *suprgolf_tilemap; |
| r1649 | r1650 | |
|---|---|---|
| 62 | 62 | ***************************************************************************/ |
| 63 | 63 | |
| 64 | 64 | #include "driver.h" |
| 65 | ||
| 65 | #include "deprecat.h" | |
| 66 | 66 | #include "video/konamiic.h" |
| 67 | 67 | #include "cpu/z80/z80.h" |
| 68 | 68 | #include "machine/eeprom.h" |
| r1649 | r1650 | |
|---|---|---|
| 501 | 501 | fillbitmap(bitmap, machine->pens[0], NULL); |
| 502 | 502 | |
| 503 | 503 | if (marinedt_pd & 0x02) |
| 504 | copybitmap(bitmap, obj2, 0, 0, OBJ_X(marinedt_obj2_x), OBJ_Y(marinedt_obj2_y), cliprect | |
| 504 | copybitmap_trans(bitmap, obj2, 0, 0, OBJ_X(marinedt_obj2_x), OBJ_Y(marinedt_obj2_y), cliprect | |
| 505 | 505 | |
| 506 | 506 | if (marinedt_pd & 0x01) |
| 507 | copybitmap(bitmap, obj1, 0, 0, OBJ_X(marinedt_obj1_x), OBJ_Y(marinedt_obj1_y), cliprect | |
| 507 | copybitmap_trans(bitmap, obj1, 0, 0, OBJ_X(marinedt_obj1_x), OBJ_Y(marinedt_obj1_y), cliprect | |
| 508 | 508 | |
| 509 | copybitmap(bitmap, tile, 0, 0, 0, 0, cliprect | |
| 509 | copybitmap_trans(bitmap, tile, 0, 0, 0, 0, cliprect | |
| 510 | 510 | |
| 511 | 511 | coll = cx = cyr = cyq = 0; |
| 512 | 512 | if (marinedt_pd & 0x01) |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "cpu/m6809/m6809.h" |
| 11 | 12 | #include "sound/2203intf.h" |
| 12 | 13 | #include "sound/flt_rc.h" |
| r1649 | r1650 | |
|---|---|---|
| 18 | 18 | |
| 19 | 19 | |
| 20 | 20 | #include "driver.h" |
| 21 | #include "deprecat.h" | |
| 21 | 22 | #include "machine/atarigen.h" |
| 22 | 23 | #include "audio/atarijsa.h" |
| 23 | 24 | #include "skullxbo.h" |
| r1649 | r1650 | |
|---|---|---|
| 65 | 65 | */ |
| 66 | 66 | |
| 67 | 67 | #include "driver.h" |
| 68 | #include "deprecat.h" | |
| 68 | 69 | #include "sound/okim6295.h" |
| 69 | 70 | #include "cpu/i8051/i8051.h" |
| 70 | 71 | |
| r1649 | r1650 | |
| 446 | 447 | |
| 447 | 448 | static VIDEO_UPDATE(sliver) |
| 448 | 449 | { |
| 449 | copybitmap(bitmap, sliver_bitmap_bg, 0, 0, 0, 0, cliprect, TRANSPARENCY_NONE, 0); | |
| 450 | copybitmap(bitmap, sliver_bitmap_fg, 0, 0, 0, 0, cliprect, TRANSPARENCY_PEN, 0); | |
| 450 | copybitmap (bitmap, sliver_bitmap_bg, 0, 0, 0, 0, cliprect); | |
| 451 | copybitmap_trans(bitmap, sliver_bitmap_fg, 0, 0, 0, 0, cliprect, 0); | |
| 451 | 452 | return 0; |
| 452 | 453 | } |
| 453 | 454 |
| r1649 | r1650 | |
|---|---|---|
| 46 | 46 | */ |
| 47 | 47 | |
| 48 | 48 | #include "driver.h" |
| 49 | #include "deprecat.h" | |
| 49 | 50 | #include "cpu/mips/psx.h" |
| 50 | 51 | #include "includes/psx.h" |
| 51 | 52 | #include "machine/konamigx.h" |
| r1649 | r1650 | |
|---|---|---|
| 40 | 40 | ******************************************************************/ |
| 41 | 41 | |
| 42 | 42 | #include "driver.h" |
| 43 | #include "deprecat.h" | |
| 43 | 44 | #include "cpu/z80/z80.h" |
| 44 | 45 | #include "sound/ay8910.h" |
| 45 | 46 |
| r1649 | r1650 | |
|---|---|---|
| 330 | 330 | |
| 331 | 331 | #include "driver.h" |
| 332 | 332 | #include "cdrom.h" |
| 333 | #include "deprecat.h" | |
| 333 | 334 | #include "cpu/sh2/sh2.h" |
| 334 | 335 | #include "machine/intelfsh.h" |
| 335 | 336 | #include "includes/cps3.h" |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | ***************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "cpu/m68000/m68000.h" |
| 13 | 14 | #include "sound/okim6295.h" |
| 14 | 15 | |
| r1649 | r1650 | |
| 337 | 338 | glass_ROM16_split(REGION_GFX2, REGION_GFX1, 0x0200000, 0x0200000, 0x0200000, 0x0300000); |
| 338 | 339 | } |
| 339 | 340 | |
| 340 | GAME( 1993, glass, 0, glass,glass, glass, ROT0, "Gaelco", "Glass (Ver 1.1)", GAME_UNEMULATED_PROTECTION ) | |
| 341 | GAME( 1993, glass10 , glass, glass,glass, glass, ROT0, "Gaelco", "Glass (Ver 1.0)", GAME_UNEMULATED_PROTECTION ) | |
| 342 | GAME( 1993, glass10a, glass, glass,glass, glass, ROT0, "Gaelco", "Glass (Ver 1.0 set 2)", GAME_UNEMULATED_PROTECTION ) | |
| 341 | GAME( 1993, glass, 0, glass, glass, glass, ROT0, "Gaelco", "Glass (Ver 1.1)", GAME_UNEMULATED_PROTECTION ) | |
| 342 | GAME( 1993, glass10, glass, glass, glass, glass, ROT0, "Gaelco", "Glass (Ver 1.0, set 1)", GAME_UNEMULATED_PROTECTION ) | |
| 343 | GAME( 1993, glass10a, glass, glass, glass, glass, ROT0, "Gaelco", "Glass (Ver 1.0, set 2)", GAME_UNEMULATED_PROTECTION ) |
| r1649 | r1650 | |
|---|---|---|
| 189 | 189 | |
| 190 | 190 | #include "driver.h" |
| 191 | 191 | #include "rescap.h" |
| 192 | #include "deprecat.h" | |
| 192 | 193 | #include "cpu/m6800/m6800.h" |
| 193 | 194 | #include "cpu/m6809/m6809.h" |
| 194 | 195 | #include "video/crtc6845.h" |
| r1649 | r1650 | |
|---|---|---|
| 136 | 136 | ******************************************************************************/ |
| 137 | 137 | |
| 138 | 138 | #include "driver.h" |
| 139 | #include "deprecat.h" | |
| 139 | 140 | #include "sound/2610intf.h" |
| 140 | 141 | |
| 141 | 142 | VIDEO_UPDATE( mcatadv ); |
| r1649 | r1650 | |
|---|---|---|
| 30 | 30 | ***************************************************************************/ |
| 31 | 31 | |
| 32 | 32 | #include "driver.h" |
| 33 | #include "deprecat.h" | |
| 33 | 34 | #include "video/vector.h" |
| 34 | 35 | #include "cpu/ccpu/ccpu.h" |
| 35 | 36 | #include "cinemat.h" |
| r1649 | r1650 | |
|---|---|---|
| 276 | 276 | |
| 277 | 277 | |
| 278 | 278 | #include "driver.h" |
| 279 | #include "deprecat.h" | |
| 279 | 280 | #include "cpu/m68000/m68000.h" |
| 280 | 281 | #include "cpu/z80/z80.h" |
| 281 | 282 | #include "machine/eeprom.h" |
| r1649 | r1650 | |
|---|---|---|
| 199 | 199 | */ |
| 200 | 200 | |
| 201 | 201 | #include "driver.h" |
| 202 | #include "deprecat.h" | |
| 202 | 203 | #include "sound/ymz280b.h" |
| 203 | 204 | |
| 204 | 205 | extern UINT32* skns_spc_regs; |
| r1649 | r1650 | |
|---|---|---|
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | 22 | #include "driver.h" |
| 23 | #include "deprecat.h" | |
| 23 | 24 | #include "cpu/z80/z80.h" |
| 24 | 25 | #include "snk.h" |
| 25 | 26 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | 6 | #include "driver.h" |
| 7 | #include "deprecat.h" | |
| 7 | 8 | #include "audio/taitosnd.h" |
| 8 | 9 | #include "sound/2151intf.h" |
| 9 | 10 | #include "sound/msm5205.h" |
| r1649 | r1650 | |
| 269 | 270 | int i; |
| 270 | 271 | for(i=0;i<7;i++) |
| 271 | 272 | { |
| 272 | copybitmap(bitmap,ml_bitmap[i], 0, 0, 0, 0, cliprect | |
| 273 | copybitmap_trans(bitmap,ml_bitmap[i], 0, 0, 0, 0, cliprect | |
| 273 | 274 | } |
| 274 | 275 | } |
| 275 | 276 | status_bit=0; |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "cpu/m6809/m6809.h" |
| 11 | 12 | #include "cpu/m68000/m68000.h" |
| 12 | 13 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
|---|---|---|
| 270 | 270 | ***************************************************************************/ |
| 271 | 271 | |
| 272 | 272 | #include "driver.h" |
| 273 | #include "deprecat.h" | |
| 273 | 274 | #include "video/konamiic.h" |
| 274 | 275 | #include "cpu/m6809/m6809.h" |
| 275 | 276 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 375 | 375 | MDRV_VIDEO_UPDATE(crbaloon) |
| 376 | 376 | |
| 377 | 377 | MDRV_GFXDECODE(crbaloon) |
| 378 | MDRV_PALETTE_LENGTH( | |
| 378 | MDRV_PALETTE_LENGTH(32) | |
| 379 | 379 | MDRV_PALETTE_INIT(crbaloon) |
| 380 | MDRV_COLORTABLE_LENGTH(16*2) | |
| 381 | 380 | |
| 382 | 381 | MDRV_SCREEN_REFRESH_RATE(60) |
| 383 | 382 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) |
| r1649 | r1650 | |
|---|---|---|
| 36 | 36 | */ |
| 37 | 37 | |
| 38 | 38 | #include "driver.h" |
| 39 | #include "deprecat.h" | |
| 39 | 40 | |
| 40 | 41 | static UINT8* dderby_vid; |
| 41 | 42 |
| r1649 | r1650 | |
|---|---|---|
| 183 | 183 | **************************************************************************/ |
| 184 | 184 | |
| 185 | 185 | #include "driver.h" |
| 186 | #include "deprecat.h" | |
| 186 | 187 | #include "cpu/adsp2100/adsp2100.h" |
| 187 | 188 | #include "cpu/mips/mips3.h" |
| 188 | 189 | #include "audio/dcs.h" |
| r1649 | r1650 | |
|---|---|---|
| 15 | 15 | ***************************************************************************/ |
| 16 | 16 | |
| 17 | 17 | #include "driver.h" |
| 18 | #include "deprecat.h" | |
| 18 | 19 | #include "cpu/z80/z80.h" |
| 19 | 20 | #include "sound/ay8910.h" |
| 20 | 21 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | **************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "cpu/tms34010/tms34010.h" |
| 11 | 12 | #include "video/tlc34076.h" |
| 12 | 13 | #include "btoads.h" |
| r1649 | r1650 | |
|---|---|---|
| 28 | 28 | |
| 29 | 29 | Notes: |
| 30 | 30 | |
| 31 | - The Japan set doesn't seem to have (or use) NVRAM. I can't enter | |
| 32 | a test mode or use the service coin either !? | |
| 31 | - The Japan set of Tetris Plus 2 doesn't seem to have (or use) NVRAM. I can't | |
| 32 | enter a test mode or use the service coin either !? | |
| 33 | 33 | |
| 34 | 34 | ***************************************************************************/ |
| 35 | 35 | |
| 36 | 36 | #include "driver.h" |
| 37 | #include "deprecat.h" | |
| 37 | 38 | #include "sound/ymz280b.h" |
| 38 | 39 | #include "rocknms.lh" |
| 39 | 40 | |
| r1649 | r1650 | |
| 594 | 595 | Tetris Plus 2 (World) |
| 595 | 596 | ***************************************************************************/ |
| 596 | 597 | |
| 597 | #define TETPLUS2_COMMON\ | |
| 598 | PORT_START_TAG("IN0") /*$be0002.w*/ \ | |
| 599 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)\ | |
| 600 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)\ | |
| 601 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)\ | |
| 602 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)\ | |
| 603 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)\ | |
| 604 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)\ | |
| 605 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)\ | |
| 606 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNUSED )\ | |
| 607 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2)\ | |
| 608 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2)\ | |
| 609 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2)\ | |
| 610 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2)\ | |
| 611 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)\ | |
| 612 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)\ | |
| 613 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)\ | |
| 614 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNUSED )\ | |
| 615 | PORT_START_TAG("IN1") /*$be0004.w*/\ | |
| 616 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN )\ | |
| 617 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )\ | |
| 618 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_START1 )\ | |
| 619 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START2 )\ | |
| 620 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN )\ | |
| 621 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_SERVICE1 )\ | |
| 622 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_COIN1 )\ | |
| 623 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_COIN2 )\ | |
| 624 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_SPECIAL ) /* ?*/\ | |
| 625 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_SPECIAL ) /* ?*/\ | |
| 626 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN )\ | |
| 627 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN )\ | |
| 628 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN )\ | |
| 629 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN )\ | |
| 630 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )\ | |
| 631 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 598 | static INPUT_PORTS_START( tetrisp2 ) | |
| 632 | 599 | |
| 600 | PORT_START_TAG("IN0") /*$be0002.w*/ | |
| 601 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 602 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 603 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 604 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 605 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 606 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 607 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 608 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 609 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 610 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 611 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 612 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 613 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 614 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 615 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 616 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 633 | 617 | |
| 634 | static INPUT_PORTS_START( tetrisp2 ) | |
| 635 | TETPLUS2_COMMON | |
| 618 | PORT_START_TAG("IN1") /*$be0004.w*/ | |
| 619 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 620 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 621 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_START1 ) | |
| 622 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START2 ) | |
| 623 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 624 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 625 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 626 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 627 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_SPECIAL ) /* ?*/ | |
| 628 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_SPECIAL ) /* ?*/ | |
| 629 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 630 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 631 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 632 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 633 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 634 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 636 | 635 | |
| 637 | 636 | PORT_START_TAG("IN2") //$be0008.w |
| 638 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) | |
| 637 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3") | |
| 639 | 638 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| 640 | 639 | PORT_DIPSETTING( 0x0001, DEF_STR( 4C_1C ) ) |
| 641 | 640 | PORT_DIPSETTING( 0x0002, DEF_STR( 3C_1C ) ) |
| r1649 | r1650 | |
| 644 | 643 | PORT_DIPSETTING( 0x0006, DEF_STR( 1C_2C ) ) |
| 645 | 644 | PORT_DIPSETTING( 0x0005, DEF_STR( 1C_3C ) ) |
| 646 | 645 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) ) |
| 647 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) | |
| 646 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:4,5,6") | |
| 648 | 647 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| 649 | 648 | PORT_DIPSETTING( 0x0008, DEF_STR( 4C_1C ) ) |
| 650 | 649 | PORT_DIPSETTING( 0x0010, DEF_STR( 3C_1C ) ) |
| r1649 | r1650 | |
| 653 | 652 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_2C ) ) |
| 654 | 653 | PORT_DIPSETTING( 0x0028, DEF_STR( 1C_3C ) ) |
| 655 | 654 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_4C ) ) |
| 656 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Free_Play ) ) | |
| 655 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW1:7") | |
| 657 | 656 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) |
| 658 | 657 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 659 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 660 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Difficulty ) ) | |
| 658 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW1:8" ) | |
| 659 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 661 | 660 | PORT_DIPSETTING( 0x0000, DEF_STR( Easy ) ) |
| 662 | 661 | PORT_DIPSETTING( 0x0300, DEF_STR( Normal ) ) |
| 663 | 662 | PORT_DIPSETTING( 0x0100, DEF_STR( Hard ) ) |
| 664 | 663 | PORT_DIPSETTING( 0x0200, DEF_STR( Hardest ) ) |
| 665 | PORT_DIPNAME( 0x0400, 0x0400, "Vs Mode Rounds" ) | |
| 664 | PORT_DIPNAME( 0x0400, 0x0400, "Vs Mode Rounds" ) PORT_DIPLOCATION("SW2:3") | |
| 666 | 665 | PORT_DIPSETTING( 0x0000, "1" ) |
| 667 | 666 | PORT_DIPSETTING( 0x0400, "3" ) |
| 668 | PORT_DIPNAME( 0x0800, 0x0000, DEF_STR( Language ) ) | |
| 667 | PORT_DIPNAME( 0x0800, 0x0000, DEF_STR( Language ) ) PORT_DIPLOCATION("SW2:4") | |
| 669 | 668 | PORT_DIPSETTING( 0x0800, DEF_STR( Japanese ) ) |
| 670 | 669 | PORT_DIPSETTING( 0x0000, DEF_STR( English ) ) |
| 671 | PORT_DIPNAME( 0x1000, 0x1000, "F.B.I Logo" ) | |
| 670 | PORT_DIPNAME( 0x1000, 0x1000, "F.B.I Logo" ) PORT_DIPLOCATION("SW2:5") | |
| 672 | 671 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) |
| 673 | 672 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 674 | PORT_DIPNAME( 0x2000, 0x2000, "Voice" ) | |
| 673 | PORT_DIPNAME( 0x2000, 0x2000, "Voice" ) PORT_DIPLOCATION("SW2:6") | |
| 675 | 674 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 676 | 675 | PORT_DIPSETTING( 0x2000, DEF_STR( On ) ) |
| 677 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Demo_Sounds ) ) | |
| 676 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:7") | |
| 678 | 677 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 679 | 678 | PORT_DIPSETTING( 0x4000, DEF_STR( On ) ) |
| 680 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Flip_Screen ) ) | |
| 679 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:8") | |
| 681 | 680 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 682 | 681 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 683 | 682 | |
| r1649 | r1650 | |
| 686 | 685 | |
| 687 | 686 | /*************************************************************************** |
| 688 | 687 | Tetris Plus 2 (Japan) |
| 688 | ||
| 689 | The code for checking the "service mode" and "free play" | |
| 690 | DSWs is (deliberately?) bugged in this set | |
| 691 | ||
| 689 | 692 | ***************************************************************************/ |
| 690 | 693 | |
| 691 | ||
| 692 | 694 | static INPUT_PORTS_START( teplus2j ) |
| 693 | ||
| 695 | | |
| 694 | 696 | |
| 695 | /* | |
| 696 | The code for checking the "service mode" and "free play" DSWs | |
| 697 | is (deliberately?) bugged in this set | |
| 698 | */ | |
| 699 | PORT_START_TAG("IN2") // $be0008.w | |
| 700 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) | |
| 701 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) | |
| 702 | PORT_DIPSETTING( 0x0001, DEF_STR( 4C_1C ) ) | |
| 703 | PORT_DIPSETTING( 0x0002, DEF_STR( 3C_1C ) ) | |
| 704 | PORT_DIPSETTING( 0x0003, DEF_STR( 2C_1C ) ) | |
| 705 | PORT_DIPSETTING( 0x0007, DEF_STR( 1C_1C ) ) | |
| 706 | PORT_DIPSETTING( 0x0006, DEF_STR( 1C_2C ) ) | |
| 707 | PORT_DIPSETTING( 0x0005, DEF_STR( 1C_3C ) ) | |
| 708 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) ) | |
| 709 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) | |
| 710 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) | |
| 711 | PORT_DIPSETTING( 0x0008, DEF_STR( 4C_1C ) ) | |
| 712 | PORT_DIPSETTING( 0x0010, DEF_STR( 3C_1C ) ) | |
| 713 | PORT_DIPSETTING( 0x0018, DEF_STR( 2C_1C ) ) | |
| 714 | PORT_DIPSETTING( 0x0038, DEF_STR( 1C_1C ) ) | |
| 715 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_2C ) ) | |
| 716 | PORT_DIPSETTING( 0x0028, DEF_STR( 1C_3C ) ) | |
| 717 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_4C ) ) | |
| 718 | PORT_DIPNAME( 0x0040, 0x0040, "Unknown 1-6" ) | |
| 697 | PORT_MODIFY("IN2") // $be0008.w | |
| 698 | PORT_DIPNAME( 0x0040, 0x0040, "Unknown 1-7" ) PORT_DIPLOCATION("SW1:7") /* Free Play in "World" set */ | |
| 719 | 699 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) |
| 720 | 700 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 721 | PORT_DIPNAME( 0x0080, 0x0080, "Unknown 1- | |
| 701 | PORT_DIPNAME( 0x0080, 0x0080, "Unknown 1-8" ) PORT_DIPLOCATION("SW1:8") /* Test Mode in "World" set */ | |
| 722 | 702 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 723 | 703 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 724 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Difficulty ) ) | |
| 725 | PORT_DIPSETTING( 0x0000, DEF_STR( Easy ) ) | |
| 726 | PORT_DIPSETTING( 0x0300, DEF_STR( Normal ) ) | |
| 727 | PORT_DIPSETTING( 0x0100, DEF_STR( Hard ) ) | |
| 728 | PORT_DIPSETTING( 0x0200, DEF_STR( Hardest ) ) | |
| 729 | PORT_DIPNAME( 0x0400, 0x0400, "Vs Mode Rounds" ) | |
| 730 | PORT_DIPSETTING( 0x0000, "1" ) | |
| 731 | PORT_DIPSETTING( 0x0400, "3" ) | |
| 732 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNUSED ) // Language dip | |
| 733 | PORT_DIPNAME( 0x1000, 0x1000, "Unknown 2-4" ) // F.B.I. Logo (in the USA set?) | |
| 704 | PORT_DIPUNUSED_DIPLOC( 0x0800, 0x0010, "SW2:4" ) /* Language Select in "World" set */ | |
| 705 | PORT_DIPNAME( 0x1000, 0x1000, "Unknown 2-5" ) PORT_DIPLOCATION("SW2:5") /* F.B.I. Logo in "World" set */ | |
| 734 | 706 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) |
| 735 | 707 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 736 | PORT_DIPNAME( 0x2000, 0x2000, "Voice" ) | |
| 737 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 738 | PORT_DIPSETTING( 0x2000, DEF_STR( On ) ) | |
| 739 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Demo_Sounds ) ) | |
| 740 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 741 | PORT_DIPSETTING( 0x4000, DEF_STR( On ) ) | |
| 742 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Flip_Screen ) ) | |
| 743 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 744 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 745 | ||
| 746 | 708 | INPUT_PORTS_END |
| 747 | 709 | |
| 748 | 710 | |
| r1649 | r1650 | |
| 1228 | 1190 | |
| 1229 | 1191 | /*************************************************************************** |
| 1230 | 1192 | |
| 1231 | | |
| 1193 | | |
| 1232 | 1194 | |
| 1233 | ( | |
| 1195 | (c)1997 Jaleco / The Tetris Company | |
| 1234 | 1196 | |
| 1235 | 1197 | TP-97222 |
| 1236 | 1198 | 96019 EB-00-20117-0 |
| r1649 | r1650 | |
| 1238 | 1200 | |
| 1239 | 1201 | BRIEF HARDWARE OVERVIEW |
| 1240 | 1202 | |
| 1241 | Toshiba TMP68HC000P-12 | |
| 1242 | Yamaha YMZ280B-F | |
| 1243 | OSC: 12.000MHz, 48.000MHz, 16.9344MHz | |
| 1203 | CPU: Toshiba TMP68HC000P-12 | |
| 1204 | Sound: Yamaha YMZ280B-F & Yamaha YAC516-M | |
| 1205 | OSC: 12.000MHz | |
| 1206 | 48.0000MHz | |
| 1207 | 16.9344MHz | |
| 1208 | DIPS: Two 8-way dipswitches | |
| 1244 | 1209 | |
| 1245 | Listing of custom chips | |
| 1210 | Listing of custom chips: | |
| 1246 | 1211 | |
| 1247 | 1212 | IC38 JALECO SS91022-03 9428XX001 |
| 1248 | 1213 | IC31 JALECO SS91022-05 9347EX002 |
| r1649 | r1650 | |
| 1251 | 1216 | IC39 XILINX XC5210 PQ240C X68710M AKJ9544 |
| 1252 | 1217 | IC49 XILINX XC7336 PC44ACK9633 A63458A |
| 1253 | 1218 | |
| 1219 | World set: | |
| 1220 | Supports English or Japanese language | |
| 1221 | Optional showing of US FBI Logo | |
| 1222 | Full Test Mode via dipswitch | |
| 1223 | EEPROM used | |
| 1224 | ||
| 1225 | Japan Set: | |
| 1226 | Japanese language only | |
| 1227 | No optional FBI Logo | |
| 1228 | No way to enter a Test Mode | |
| 1229 | No support for EEPROM | |
| 1230 | ||
| 1254 | 1231 | ***************************************************************************/ |
| 1255 | 1232 | |
| 1256 | ROM_START( tetrisp2 ) | |
| 1257 | ||
| 1233 | ROM_START( tetrisp2 ) /* Unknown version */ | |
| 1258 | 1234 | ROM_REGION( 0x100000, REGION_CPU1, 0 ) /* 68000 Code */ |
| 1259 | 1235 | ROM_LOAD16_BYTE( "t2p_04.rom", 0x000000, 0x080000, CRC(e67f9c51) SHA1(d8b2937699d648267b163c7c3f591426877f3701) ) |
| 1260 | 1236 | ROM_LOAD16_BYTE( "t2p_01.rom", 0x000001, 0x080000, CRC(5020a4ed) SHA1(9c0f02fe3700761771ac026a2e375144e86e5eb7) ) |
| r1649 | r1650 | |
| 1262 | 1238 | ROM_REGION( 0x800000, REGION_GFX1, ROMREGION_DISPOSE ) /* 8x8x8 (Sprites) */ |
| 1263 | 1239 | ROM_LOAD32_WORD( "96019-01.9", 0x000000, 0x400000, CRC(06f7dc64) SHA1(722c51b707b9854c0293afdff18b27ec7cae6719) ) |
| 1264 | 1240 | ROM_LOAD32_WORD( "96019-02.8", 0x000002, 0x400000, CRC(3e613bed) SHA1(038b5e43fa3d69654107c8093126eeb2e8fa4ddc) ) |
| 1265 | /* If t2p_m01&2 from this board were correctly read, since they | |
| 1266 | hold the same data of the above but with swapped halves, it | |
| 1267 | means they had to invert the top bit of the "page select" | |
| 1268 | register in the sprite's hardware on this board! */ | |
| 1269 | 1241 | |
| 1242 | /* If t2p_m01&2 from this board were correctly read, since they hold the same data of the above but with swapped halves, it | |
| 1243 | means they had to invert the top bit of the "page select" register in the sprite's hardware on this board! */ | |
| 1244 | ||
| 1270 | 1245 | ROM_REGION( 0x800000, REGION_GFX2, ROMREGION_DISPOSE ) /* 16x16x8 (Background) */ |
| 1271 | 1246 | ROM_LOAD( "96019-06.13", 0x000000, 0x400000, CRC(16f7093c) SHA1(2be77c6a692c5d762f5553ae24e8c415ab194cc6) ) |
| 1272 | 1247 | ROM_LOAD( "96019-04.6", 0x400000, 0x100000, CRC(b849dec9) SHA1(fa7ac00fbe587a74c3fb8c74a0f91f7afeb8682f) ) |
| r1649 | r1650 | |
| 1279 | 1254 | |
| 1280 | 1255 | ROM_REGION( 0x400000, REGION_SOUND1, 0 ) /* Samples */ |
| 1281 | 1256 | ROM_LOAD( "96019-07.7", 0x000000, 0x400000, CRC(a8a61954) SHA1(86c3db10b348ba1f44ff696877b8b20845fa53de) ) |
| 1257 | ROM_END | |
| 1282 | 1258 | |
| 1259 | ROM_START( teplus2j ) /* Version 2.2 */ | |
| 1260 | ROM_REGION( 0x100000, REGION_CPU1, 0 ) /* 68000 Code */ | |
| 1261 | ROM_LOAD16_BYTE( "tet2-4v2.2", 0x000000, 0x080000, CRC(5bfa32c8) SHA1(55fb2872695fcfbad13f5c0723302e72da69e44a) ) | |
| 1262 | ROM_LOAD16_BYTE( "tet2-1v2.2", 0x000001, 0x080000, CRC(919116d0) SHA1(3e1c0fd4c9175b2900a4717fbb9e8b591c5f534d) ) | |
| 1263 | ||
| 1264 | ROM_REGION( 0x800000, REGION_GFX1, ROMREGION_DISPOSE ) /* 8x8x8 (Sprites) */ | |
| 1265 | ROM_LOAD32_WORD( "96019-01.9", 0x000000, 0x400000, CRC(06f7dc64) SHA1(722c51b707b9854c0293afdff18b27ec7cae6719) ) | |
| 1266 | ROM_LOAD32_WORD( "96019-02.8", 0x000002, 0x400000, CRC(3e613bed) SHA1(038b5e43fa3d69654107c8093126eeb2e8fa4ddc) ) | |
| 1267 | ||
| 1268 | ROM_REGION( 0x400000, REGION_GFX2, ROMREGION_DISPOSE ) /* 16x16x8 (Background) */ | |
| 1269 | ROM_LOAD( "96019-06.13", 0x000000, 0x400000, CRC(16f7093c) SHA1(2be77c6a692c5d762f5553ae24e8c415ab194cc6) ) | |
| 1270 | ||
| 1271 | ROM_REGION( 0x100000, REGION_GFX3, ROMREGION_DISPOSE ) /* 16x16x8 (Rotation) */ | |
| 1272 | ROM_LOAD( "96019-04.6", 0x000000, 0x100000, CRC(b849dec9) SHA1(fa7ac00fbe587a74c3fb8c74a0f91f7afeb8682f) ) | |
| 1273 | ||
| 1274 | ROM_REGION( 0x080000, REGION_GFX4, ROMREGION_DISPOSE ) /* 8x8x8 (Foreground) */ | |
| 1275 | ROM_LOAD( "tetp2-10.bin", 0x000000, 0x080000, CRC(34dd1bad) SHA1(9bdf1dde11f82839676400de5dd7acb06ea8cdb2) ) // 11111xxxxxxxxxxxxxx = 0xFF | |
| 1276 | ||
| 1277 | ROM_REGION( 0x400000, REGION_SOUND1, 0 ) /* Samples */ | |
| 1278 | ROM_LOAD( "96019-07.7", 0x000000, 0x400000, CRC(a8a61954) SHA1(86c3db10b348ba1f44ff696877b8b20845fa53de) ) | |
| 1283 | 1279 | ROM_END |
| 1284 | 1280 | |
| 1285 | ||
| 1286 | 1281 | /*************************************************************************** |
| 1287 | 1282 | |
| 1288 | Tetris Plus 2 (Japan) | |
| 1283 | Rock'n Tread 1 (Japan) | |
| 1284 | Rock'n Tread 2 (Japan) | |
| 1285 | Rock'n MegaSession (Japan) | |
| 1286 | Rock'n 3 (Japan) | |
| 1287 | Rock'n 4 (Japan) | |
| 1289 | 1288 | |
| 1290 | (c)199 | |
| 1289 | (c)1999-2000 Jaleco | |
| 1291 | 1290 | |
| 1292 | TP-97222 | |
| 1293 | 96019 EB-00-20117-0 | |
| 1291 | Main board marked in copper and silk screen: | |
| 1294 | 1292 | |
| 1295 | CPU: 68000-12 | |
| 1296 | Sound: YMZ280B-F | |
| 1297 | OSC: 12.000MHz | |
| 1293 | JALECO VJ-98344 | |
| 1294 | 98053 EB-00-20120-0 | |
| 1295 | MADE IN JAPAN | |
| 1296 | ||
| 1297 | CPU: TMP68HC000P-12 | |
| 1298 | Sound: YMZ280B-F / YAC516-M (on sound rom board) | |
| 1299 | OSC: 12.0000MHz (next to 68000) | |
| 1298 | 1300 | 48.0000MHz |
| 1299 | 16.9344MHz | |
| 1301 | 16.9344MHz (on sound rom board) | |
| 1302 | DIPS: Two 8-way dipswitches | |
| 1303 | BAT: CR-2032 | |
| 1300 | 1304 | |
| 1301 | 1305 | Custom: SS91022-03 |
| 1302 | 1306 | GS91022-04 |
| 1303 | 1307 | GS91022-05 |
| 1304 | 1308 | SS91022-05 |
| 1305 | 1309 | |
| 1306 | ***************************************************************************/ | |
| 1310 | Other: Sigma XILINX XCS30 | |
| 1311 | Sigma XILINX XC9536 (socketted and stamped SL4) | |
| 1307 | 1312 | |
| 1308 | ROM_START( teplus2j ) | |
| 1309 | 1313 | |
| 1310 | ROM_REGION( 0x100000, REGION_CPU1, 0 ) /* 68000 Code */ | |
| 1311 | ROM_LOAD16_BYTE( "tet2-4v2.2", 0x000000, 0x080000, CRC(5bfa32c8) SHA1(55fb2872695fcfbad13f5c0723302e72da69e44a) ) // v2.2 | |
| 1312 | ROM_LOAD16_BYTE( "tet2-1v2.2", 0x000001, 0x080000, CRC(919116d0) SHA1(3e1c0fd4c9175b2900a4717fbb9e8b591c5f534d) ) | |
| 1314 | PCB Layout for sound rom board (from Rock'n 3): | |
| 1313 | 1315 | |
| 1314 | ROM_REGION( 0x800000, REGION_GFX1, ROMREGION_DISPOSE ) /* 8x8x8 (Sprites) */ | |
| 1315 | ROM_LOAD32_WORD( "96019-01.9", 0x000000, 0x400000, CRC(06f7dc64) SHA1(722c51b707b9854c0293afdff18b27ec7cae6719) ) | |
| 1316 | ROM_LOAD32_WORD( "96019-02.8", 0x000002, 0x400000, CRC(3e613bed) SHA1(038b5e43fa3d69654107c8093126eeb2e8fa4ddc) ) | |
| 1316 | JALECO 99004 SL-99352 EB-00-20128-0 | |
| 1317 | +------------------------------------------------------+ | |
| 1318 | | | | |
| 1319 | | mr99029-02 mr99029-10 mr99029-18 mr99029-01 IC36* | | |
| 1320 | | mr99029-03 mr99029-11 mr99029-19 IC29* IC37* | | |
| 1321 | | mr99029-04 mr99029-12 mr99029-20 | | |
| 1322 | | mr99029-05 mr99029-13 mr99029-21 | | |
| 1323 | | mr99029-06 mr99029-14 IC23* YMZ280B-F | | |
| 1324 | | mr99029-07 mr99029-15 IC24* 16.9344MHz | | |
| 1325 | | mr99029-08 mr99029-16 IC25* XC9572 | | |
| 1326 | | mr99029-09 mr99029-17 IC26* | | |
| 1327 | | YAC516-M | | |
| 1328 | | CN1 CN2 CN4 | | |
| 1329 | +-||||||||---||||||||----------------------------------+ | |
| 1317 | 1330 | |
| 1318 | ROM_REGION( 0x400000, REGION_GFX2, ROMREGION_DISPOSE ) /* 16x16x8 (Background) */ | |
| 1319 | ROM_LOAD( "96019-06.13", 0x000000, 0x400000, CRC(16f7093c) SHA1(2be77c6a692c5d762f5553ae24e8c415ab194cc6) ) | |
| 1331 | Notes: | |
| 1332 | All chip sockets are marked as 27C3200 (read as 27C322) | |
| 1333 | Chips are OKI M72C3252C2 mounted on Jaleco PCB EB-00-40051-0 42 pin converters | |
| 1320 | 1334 | |
| 1321 | ROM_REGION( 0x100000, REGION_GFX3, ROMREGION_DISPOSE ) /* 16x16x8 (Rotation) */ | |
| 1322 | ROM_LOAD( "96019-04.6", 0x000000, 0x100000, CRC(b849dec9) SHA1(fa7ac00fbe587a74c3fb8c74a0f91f7afeb8682f) ) | |
| 1335 | * Unpopulated sockets | |
| 1323 | 1336 | |
| 1324 | ROM_REGION( 0x080000, REGION_GFX4, ROMREGION_DISPOSE ) /* 8x8x8 (Foreground) */ | |
| 1325 | ROM_LOAD( "tetp2-10.bin", 0x000000, 0x080000, CRC(34dd1bad) SHA1(9bdf1dde11f82839676400de5dd7acb06ea8cdb2) ) // 11111xxxxxxxxxxxxxx = 0xFF | |
| 1337 | Sound chips: Yamaha YMZ280B-F & Yamaha YAC516-M | |
| 1338 | Other chip: Sigma XILINX XC9572 | |
| 1339 | OSC: 16.9344MHz | |
| 1326 | 1340 | |
| 1327 | ROM_REGION( 0x400000, REGION_SOUND1, 0 ) /* Samples */ | |
| 1328 | ROM_LOAD( "96019-07.7", 0x000000, 0x400000, CRC(a8a61954) SHA1(86c3db10b348ba1f44ff696877b8b20845fa53de) ) | |
| 1341 | CN1 - 8 pin header | |
| 1342 | CN2 - 8 pin header | |
| 1343 | CN4 - 34 pin dual row ribbon connection | |
| 1329 | 1344 | |
| 1330 | ||
| 1345 | ***************************************************************************/ | |
| 1331 | 1346 | |
| 1332 | /*** | |
| 1347 | /*** Rock 'n' Tread ***/ | |
| 1333 | 1348 | |
| 1334 | Rock 'n' Tread | |
| 1335 | ||
| 1336 | ***/ | |
| 1337 | 1349 | ROM_START( rockn ) |
| 1338 | ||
| 1339 | 1350 | ROM_REGION( 0x100000, REGION_CPU1, 0 ) /* 68000 Code */ |
| 1340 | ROM_LOAD16_BYTE( "98344_1.bin", 0x000001, 0x80000, CRC(4cf79e58) SHA1(f50e596d43c9ab2072ae0476169eee2a8512fd8d) ) | |
| 1341 | ROM_LOAD16_BYTE( "98344_4.bin", 0x000000, 0x80000, CRC(caa33f79) SHA1(8ccff67091dac5ad871cae6cdb31e1fc37c1a4c2) ) | |
| 1351 | ROM_LOAD16_BYTE( "rock_n_1_vj-98344_1.bin", 0x000001, 0x80000, CRC(4cf79e58) SHA1(f50e596d43c9ab2072ae0476169eee2a8512fd8d) ) | |
| 1352 | ROM_LOAD16_BYTE( "rock_n_1_vj-98344_4.bin", 0x000000, 0x80000, CRC(caa33f79) SHA1(8ccff67091dac5ad871cae6cdb31e1fc37c1a4c2) ) | |
| 1342 | 1353 | |
| 1343 | 1354 | ROM_REGION( 0x400000, REGION_GFX1, ROMREGION_DISPOSE ) /* 8x8x8 (Sprites) */ |
| 1344 | ROM_LOAD32_WORD( "98344_8.bin", 0x000002, 0x200000, CRC(fa3f6f9c) SHA1(586dcc690a1a4aa7c97932ad496382def6a074a4) ) | |
| 1345 | ROM_LOAD32_WORD( "98344_9.bin", 0x000000, 0x200000, CRC(3d12a688) SHA1(356b2ea81d960838b604c5a17cc77e79fb0e40ce) ) | |
| 1355 | ROM_LOAD32_WORD( "rock_n_1_vj-98344_8.bin", 0x000002, 0x200000, CRC(fa3f6f9c) SHA1(586dcc690a1a4aa7c97932ad496382def6a074a4) ) | |
| 1356 | ROM_LOAD32_WORD( "rock_n_1_vj-98344_9.bin", 0x000000, 0x200000, CRC(3d12a688) SHA1(356b2ea81d960838b604c5a17cc77e79fb0e40ce) ) | |
| 1346 | 1357 | |
| 1347 | 1358 | ROM_REGION( 0x200000, REGION_GFX2, ROMREGION_DISPOSE ) /* 16x16x8 (Background) */ |
| 1348 | ROM_LOAD16_WORD( "98344_13.bin", 0x000000, 0x200000, CRC(261b99a0) SHA1(7b3c768ae9d7429e2559fe32c1a4ff220d727e7e) ) | |
| 1359 | ROM_LOAD16_WORD( "rock_n_1_vj-98344_13.bin", 0x000000, 0x200000, CRC(261b99a0) SHA1(7b3c768ae9d7429e2559fe32c1a4ff220d727e7e) ) | |
| 1349 | 1360 | |
| 1350 | 1361 | ROM_REGION( 0x100000, REGION_GFX3, ROMREGION_DISPOSE ) /* 16x16x8 (Rotation) */ |
| 1351 | ROM_LOAD( "98344_6.bin", 0x000000, 0x100000, CRC(5551717f) SHA1(64943a9a68ad4074f3f5128d7796e4f03baa14d5) ) | |
| 1362 | ROM_LOAD( "rock_n_1_vj-98344_6.bin", 0x000000, 0x100000, CRC(5551717f) SHA1(64943a9a68ad4074f3f5128d7796e4f03baa14d5) ) | |
| 1352 | 1363 | |
| 1353 | 1364 | ROM_REGION( 0x080000, REGION_GFX4, ROMREGION_DISPOSE ) /* 8x8x8 (Foreground) */ |
| 1354 | ROM_LOAD( "98344_10.bin", 0x000000, 0x080000, CRC(918663a8) SHA1(aedacb741c986ef8159385cfef866cb7e3ef6cb6) ) | |
| 1365 | ROM_LOAD( "rock_n_1_vj-98344_10.bin", 0x000000, 0x080000, CRC(918663a8) SHA1(aedacb741c986ef8159385cfef866cb7e3ef6cb6) ) | |
| 1355 | 1366 | |
| 1356 | 1367 | /* from the bootleg set, are they right for this? */ |
| 1357 | 1368 | ROM_REGION( 0x7000000, REGION_SOUND1, 0 ) /* Samples */ |
| r1649 | r1650 | |
| 1373 | 1384 | ROM_LOAD( "sound14", 0x4400000, 0x0400000, CRC(b26f9a81) SHA1(0d1c8e382eb5877f9a748ff289be97cbdb73b0cc) ) // bank 4 |
| 1374 | 1385 | ROM_END |
| 1375 | 1386 | |
| 1376 | /*************************************************************************** | |
| 1377 | ||
| 1378 | Rock'n Tread 1 (Japan) | |
| 1379 | Rock'n Tread 2 (Japan) | |
| 1380 | Rock'n MegaSession (Japan) | |
| 1381 | Rock'n 3 (Japan) | |
| 1382 | Rock'n 4 (Japan) | |
| 1383 | ||
| 1384 | (c)1997 Jaleco | |
| 1385 | ||
| 1386 | CPU: 68000-12 | |
| 1387 | Sound: YMZ280B-F | |
| 1388 | OSC: 12.000MHz | |
| 1389 | 48.0000MHz | |
| 1390 | 16.9344MHz | |
| 1391 | ||
| 1392 | Custom: SS91022-03 | |
| 1393 | GS91022-04 | |
| 1394 | GS91022-05 | |
| 1395 | SS91022-05 | |
| 1396 | ||
| 1397 | ***************************************************************************/ | |
| 1398 | ||
| 1399 | 1387 | ROM_START( rockna ) |
| 1400 | 1388 | ROM_REGION( 0x100000, REGION_CPU1, 0 ) /* 68000 Code */ |
| 1401 | ROM_LOAD16_BYTE( "prg1", 0x000001, 0x80000, CRC(6078fa48) SHA1(e98c1a1abf026f2d5b5035ccbc9d412a08ca1f02) ) | |
| 1402 | ROM_LOAD16_BYTE( "prg0", 0x000000, 0x80000, CRC(c8310bd0) SHA1(1efee954cc94b668b7d9f28a099b8d1c83d3093f) ) | |
| 1389 | ROM_LOAD16_BYTE( "rock_n_1_vj-98344_1", 0x000001, 0x80000, CRC(6078fa48) SHA1(e98c1a1abf026f2d5b5035ccbc9d412a08ca1f02) ) | |
| 1390 | ROM_LOAD16_BYTE( "rock_n_1_vj-98344_4", 0x000000, 0x80000, CRC(c8310bd0) SHA1(1efee954cc94b668b7d9f28a099b8d1c83d3093f) ) | |
| 1403 | 1391 | |
| 1404 | 1392 | ROM_REGION( 0x400000, REGION_GFX1, ROMREGION_DISPOSE ) /* 8x8x8 (Sprites) */ |
| 1405 | ROM_LOAD32_WORD( "98344_8.bin", 0x000002, 0x200000, CRC(fa3f6f9c) SHA1(586dcc690a1a4aa7c97932ad496382def6a074a4) ) | |
| 1406 | ROM_LOAD32_WORD( "98344_9.bin", 0x000000, 0x200000, CRC(3d12a688) SHA1(356b2ea81d960838b604c5a17cc77e79fb0e40ce) ) | |
| 1393 | ROM_LOAD32_WORD( "rock_n_1_vj-98344_8.bin", 0x000002, 0x200000, CRC(fa3f6f9c) SHA1(586dcc690a1a4aa7c97932ad496382def6a074a4) ) | |
| 1394 | ROM_LOAD32_WORD( "rock_n_1_vj-98344_9.bin", 0x000000, 0x200000, CRC(3d12a688) SHA1(356b2ea81d960838b604c5a17cc77e79fb0e40ce) ) | |
| 1407 | 1395 | |
| 1408 | 1396 | ROM_REGION( 0x200000, REGION_GFX2, ROMREGION_DISPOSE ) /* 16x16x8 (Background) */ |
| 1409 | ROM_LOAD16_WORD( "98344_13.bin", 0x000000, 0x200000, CRC(261b99a0) SHA1(7b3c768ae9d7429e2559fe32c1a4ff220d727e7e) ) | |
| 1397 | ROM_LOAD16_WORD( "rock_n_1_vj-98344_13.bin", 0x000000, 0x200000, CRC(261b99a0) SHA1(7b3c768ae9d7429e2559fe32c1a4ff220d727e7e) ) | |
| 1410 | 1398 | |
| 1411 | 1399 | ROM_REGION( 0x100000, REGION_GFX3, ROMREGION_DISPOSE ) /* 16x16x8 (Rotation) */ |
| 1412 | ROM_LOAD( "98344_6.bin", 0x000000, 0x100000, CRC(5551717f) SHA1(64943a9a68ad4074f3f5128d7796e4f03baa14d5) ) | |
| 1400 | ROM_LOAD( "rock_n_1_vj-98344_6.bin", 0x000000, 0x100000, CRC(5551717f) SHA1(64943a9a68ad4074f3f5128d7796e4f03baa14d5) ) | |
| 1413 | 1401 | |
| 1414 | 1402 | ROM_REGION( 0x080000, REGION_GFX4, ROMREGION_DISPOSE ) /* 8x8x8 (Foreground) */ |
| 1415 | ROM_LOAD( "98344_10.bin", 0x000000, 0x080000, CRC(918663a8) SHA1(aedacb741c986ef8159385cfef866cb7e3ef6cb6) ) | |
| 1403 | ROM_LOAD( "rock_n_1_vj-98344_10.bin", 0x000000, 0x080000, CRC(918663a8) SHA1(aedacb741c986ef8159385cfef866cb7e3ef6cb6) ) | |
| 1416 | 1404 | |
| 1417 | 1405 | ROM_REGION( 0x7000000, REGION_SOUND1, 0 ) /* Samples */ |
| 1418 | 1406 | ROM_LOAD( "sound00", 0x0000000, 0x0400000, CRC(c354f753) SHA1(bf538c02e2162a93d8c6793a1211e21480156223) ) // COMMON AREA |
| r1649 | r1650 | |
| 1431 | 1419 | ROM_LOAD( "sound12", 0x3c00000, 0x0400000, CRC(aae8d59c) SHA1(ccca1f511ce0ea8d452f3b1d24350b5cee402ad2) ) // bank 3 |
| 1432 | 1420 | ROM_LOAD( "sound13", 0x4000000, 0x0400000, CRC(9ec1459b) SHA1(10e08a47636dec431cdb8e105cf61287fe9c6637) ) // bank 4 |
| 1433 | 1421 | ROM_LOAD( "sound14", 0x4400000, 0x0400000, CRC(b26f9a81) SHA1(0d1c8e382eb5877f9a748ff289be97cbdb73b0cc) ) // bank 4 |
| 1434 | ||
| 1435 | 1422 | ROM_END |
| 1436 | 1423 | |
| 1437 | ||
| 1438 | 1424 | ROM_START( rockn2 ) |
| 1439 | 1425 | ROM_REGION( 0x100000, REGION_CPU1, 0 ) /* 68000 Code */ |
| 1440 | ROM_LOAD16_BYTE( "prg1", 0x000001, 0x80000, CRC(854b5a45) SHA1(91496bc511fef1d552d2bd00b82d2470eae94528) ) | |
| 1441 | ROM_LOAD16_BYTE( "prg0", 0x000000, 0x80000, CRC(4665bbd2) SHA1(3562c67b81a32d178a8bcb872e676bf7284855d7) ) | |
| 1426 | ROM_LOAD16_BYTE( "rock_n_2_vj-98344_1_v1.0", 0x000001, 0x80000, CRC(854b5a45) SHA1(91496bc511fef1d552d2bd00b82d2470eae94528) ) | |
| 1427 | ROM_LOAD16_BYTE( "rock_n_2_vj-98344_4_v1.0", 0x000000, 0x80000, CRC(4665bbd2) SHA1(3562c67b81a32d178a8bcb872e676bf7284855d7) ) | |
| 1442 | 1428 | |
| 1443 | 1429 | ROM_REGION( 0x400000, REGION_GFX1, ROMREGION_DISPOSE ) /* 8x8x8 (Sprites) */ |
| 1444 | ROM_LOAD32_WORD( "spr1", 0x000002, 0x200000, CRC(673ce2c2) SHA1(6c0a13de386b02a7f3a86e8128374938ede2525c) ) | |
| 1445 | ROM_LOAD32_WORD( "spr0", 0x000000, 0x200000, CRC(9d3968cf) SHA1(11c96e7685ab8c1b416396238ec5c12e7819385f) ) | |
| 1430 | ROM_LOAD32_WORD( "rock_n_2_vj-98344_8_v1.0", 0x000002, 0x200000, CRC(673ce2c2) SHA1(6c0a13de386b02a7f3a86e8128374938ede2525c) ) | |
| 1431 | ROM_LOAD32_WORD( "rock_n_2_vj-98344_9_v1.0", 0x000000, 0x200000, CRC(9d3968cf) SHA1(11c96e7685ab8c1b416396238ec5c12e7819385f) ) | |
| 1446 | 1432 | |
| 1447 | 1433 | ROM_REGION( 0x200000, REGION_GFX2, ROMREGION_DISPOSE ) /* 16x16x8 (Background) */ |
| 1448 | ROM_LOAD16_WORD( " | |
| 1434 | ROM_LOAD16_WORD( "rock_n_2_vj-98344_13_v1.0", 0x000000, 0x200000, CRC(e35c55b3) SHA1(a18367c28befc3f71823f1d4ab2126ad6f8a28fc) ) | |
| 1449 | 1435 | |
| 1450 | 1436 | ROM_REGION( 0x200000, REGION_GFX3, ROMREGION_DISPOSE ) /* 16x16x8 (Rotation) */ |
| 1451 | ROM_LOAD( "ro | |
| 1437 | ROM_LOAD( "rock_n_2_vj-98344_6_v1.0", 0x000000, 0x200000, CRC(241d7449) SHA1(9fcc2d128d7be273836460313c0e73c81e33c9cb) ) | |
| 1452 | 1438 | |
| 1453 | 1439 | ROM_REGION( 0x080000, REGION_GFX4, ROMREGION_DISPOSE ) /* 8x8x8 (Foreground) */ |
| 1454 | ROM_LOAD( " | |
| 1440 | ROM_LOAD( " | |
| 1455 | 1441 | |
| 1456 | 1442 | ROM_REGION( 0x7000000, REGION_SOUND1, 0 ) /* Samples */ |
| 1457 | 1443 | ROM_LOAD( "sound00", 0x0000000, 0x0400000, CRC(4e9611a3) SHA1(2a9b1d5afc0ea9a3285f9fc6b49a1c3abd8cd2a5) ) // COMMON AREA |
| 1458 | ROM_FILL( | |
| 1444 | ROM_FILL( | |
| 1459 | 1445 | ROM_LOAD( "sound01", 0x1000000, 0x0400000, CRC(ec600f13) SHA1(151cb0a16782c8bba223d0f6881b80c1e43bc9bc) ) // bank 0 |
| 1460 | 1446 | ROM_LOAD( "sound02", 0x1400000, 0x0400000, CRC(8306f302) SHA1(8c0437d7ab8d74d4d15f4a641d30602e39cdd99d) ) // bank 0 |
| 1461 | 1447 | ROM_LOAD( "sound03", 0x1800000, 0x0400000, CRC(3fda842c) SHA1(2b9e7c548b689bab491237e36a2dcf4782a81d79) ) // bank 0 |
| r1649 | r1650 | |
| 1477 | 1463 | ROM_LOAD( "sound19", 0x5800000, 0x0400000, CRC(33c89e53) SHA1(7d216f5db6b30c9b05a9a77030498ff68ae6fbad) ) // bank 6 |
| 1478 | 1464 | ROM_LOAD( "sound20", 0x5c00000, 0x0400000, CRC(89c1b088) SHA1(9b4118815959a5fb65b2a293015f592a46f4126f) ) // bank 6 |
| 1479 | 1465 | ROM_LOAD( "sound21", 0x6000000, 0x0400000, CRC(13db74bd) SHA1(ab87438bbac97d46b1b8195b61dca1d72172a621) ) // bank 6 |
| 1480 | ||
| 1466 | // ROM_LOAD( "sound22", 0x6400000, 0x0400000 ) // bank 7 ( ** unpopulated ** - IC24) | |
| 1467 | // ROM_LOAD( "sound23", 0x6800000, 0x0400000 ) // bank 7 ( ** unpopulated ** - IC25) | |
| 1468 | // ROM_LOAD( "sound24", 0x6c00000, 0x0400000 ) // bank 7 ( ** unpopulated ** - IC26) | |
| 1481 | 1469 | ROM_END |
| 1482 | 1470 | |
| 1471 | /*************************************************************************** | |
| 1483 | 1472 | |
| 1473 | Jaleco Rock'n 3 | |
| 1474 | ||
| 1475 | Labeled on the chips like: | |
| 1476 | ||
| 1477 | Rock'n 3 | |
| 1478 | VJ-98344 | |
| 1479 | 10 | |
| 1480 | Ver 1.0 | |
| 1481 | ||
| 1482 | ||
| 1483 | ROM ID Label Rom type | |
| 1484 | ---------------------------------------------- | |
| 1485 | IC19 Rock'n 3 VJ-98344 10 Ver 1.0 27C040 | |
| 1486 | IC59 Rock'n 3 VJ-98344 4 Ver 1.0 27C040 | |
| 1487 | IC65 Rock'n 3 VJ-98344 1 Ver 1.0 27C040 | |
| 1488 | ||
| 1489 | IC10 Rock'n 3 VJ-98344 13 Ver 1.0 27C160 | |
| 1490 | IC33 Rock'n 3 VJ-98344 9 Ver 1.0 27C160 | |
| 1491 | IC32 Rock'n 3 VJ-98344 8 Ver 1.0 27C160 | |
| 1492 | IC38 Rock'n 3 VJ-98344 6 Ver 1.0 27C160 | |
| 1493 | ||
| 1494 | IC57 PS96019-01 ICT 18CV8P PAL | |
| 1495 | IC14 PS96019-02 ICT 18CV8P PAL | |
| 1496 | IC58 PS96019-04 ICT 18CV8P PAL | |
| 1497 | ||
| 1498 | IC43 (no label) XILINX 17S30PC Serial Config rom | |
| 1499 | ||
| 1500 | ***************************************************************************/ | |
| 1501 | ||
| 1484 | 1502 | ROM_START( rockn3 ) |
| 1485 | 1503 | ROM_REGION( 0x100000, REGION_CPU1, 0 ) /* 68000 Code */ |
| 1486 | ROM_LOAD16_BYTE( "prg1", 0x000001, 0x80000, CRC(abc6ab4a) SHA1(2f1983b95cd9e42d709edac5613b1f0b450df4ba) ) | |
| 1487 | ROM_LOAD16_BYTE( "prg0", 0x000000, 0x80000, CRC(3ecba46e) SHA1(64ff5b7932a8d8dc01c649b9dcc1d55cf1e43387) ) | |
| 1504 | ROM_LOAD16_BYTE( "rock_n_3_vj-98344_1_v1.0", 0x000001, 0x80000, CRC(abc6ab4a) SHA1(2f1983b95cd9e42d709edac5613b1f0b450df4ba) ) /* IC65 (alt PCB number 1) */ | |
| 1505 | ROM_LOAD16_BYTE( "rock_n_3_vj-98344_4_v1.0", 0x000000, 0x80000, CRC(3ecba46e) SHA1(64ff5b7932a8d8dc01c649b9dcc1d55cf1e43387) ) /* IC59 (alt PCB number 4) */ | |
| 1488 | 1506 | |
| 1489 | 1507 | ROM_REGION( 0x400000, REGION_GFX1, ROMREGION_DISPOSE ) /* 8x8x8 (Sprites) */ |
| 1490 | ROM_LOAD32_WORD( "spr1", 0x000002, 0x200000, CRC(468bf696) SHA1(d58e399ff876ab0f4ef52aaa85d86d72db307b6a) ) | |
| 1491 | ROM_LOAD32_WORD( "spr0", 0x000000, 0x200000, CRC(8a61fc18) SHA1(4e895a2014e711d044ed5d8bff8a91766f14b307) ) | |
| 1508 | ROM_LOAD32_WORD( "rock_n_3_vj-98344_8_v1.0", 0x000002, 0x200000, CRC(468bf696) SHA1(d58e399ff876ab0f4ef52aaa85d86d72db307b6a) ) /* IC32 (alt PCB number 8) */ | |
| 1509 | ROM_LOAD32_WORD( "rock_n_3_vj-98344_9_v1.0", 0x000000, 0x200000, CRC(8a61fc18) SHA1(4e895a2014e711d044ed5d8bff8a91766f14b307) ) /* IC33 (alt PCB number 9) */ | |
| 1492 | 1510 | |
| 1493 | 1511 | ROM_REGION( 0x200000, REGION_GFX2, ROMREGION_DISPOSE ) /* 16x16x8 (Background) */ |
| 1494 | ROM_LOAD16_WORD( " | |
| 1512 | ROM_LOAD16_WORD( "rock_n_3_vj-98344_13_v1.0", 0x000000, 0x200000, CRC(e01bf471) SHA1(4485c71770bdb8800ded4afb37814c2d287b78be) ) /* IC10 (alt PCB number 13) */ | |
| 1495 | 1513 | |
| 1496 | 1514 | ROM_REGION( 0x200000, REGION_GFX3, ROMREGION_DISPOSE ) /* 16x16x8 (Rotation) */ |
| 1497 | ROM_LOAD( "ro | |
| 1515 | ROM_LOAD( "rock_n_3_vj-98344_6_v1.0", 0x000000, 0x200000, CRC(4e146de5) SHA1(5971cbb91da5fde652786d82d0143197518bad9b) ) /* IC38 (alt PCB number 6) */ | |
| 1498 | 1516 | |
| 1499 | 1517 | ROM_REGION( 0x080000, REGION_GFX4, ROMREGION_DISPOSE ) /* 8x8x8 (Foreground) */ |
| 1500 | ROM_LOAD( " | |
| 1518 | ROM_LOAD( " | |
| 1501 | 1519 | |
| 1502 | ROM_REGION( 0x7000000, REGION_SOUND1, 0 ) /* Samples */ | |
| 1503 | ROM_LOAD( "sound00", 0x0000000, 0x0400000, CRC(e2f69042) SHA1(deb361a53ed6a9033e21c2f805f327cc3e9b11c6) ) // COMMON AREA | |
| 1504 | ROM_FILL( 0x0400000, 0x0c00000, 0xff ) // BANK AREA | |
| 1505 | ROM_LOAD( "sound01", 0x1000000, 0x0400000, CRC(b328b18f) SHA1(22edebcabd6c8ed65d8c9e501621991d404c430d) ) // bank 0 | |
| 1506 | ROM_LOAD( "sound02", 0x1400000, 0x0400000, CRC(f46438e3) SHA1(718f54fc0e3689f5ab29bef2ec13eb2aa9b117fc) ) // bank 0 | |
| 1507 | ROM_LOAD( "sound03", 0x1800000, 0x0400000, CRC(b979e887) SHA1(10852ceb1b9e24fb87cf9339bc9fb4ae066a1221) ) // bank 0 | |
| 1508 | ROM_LOAD( "sound04", 0x1c00000, 0x0400000, CRC(0bb2c212) SHA1(4f8ab3c96c3e1aa337a3fe871cffc04ec603f8c0) ) // bank 1 | |
| 1509 | ROM_LOAD( "sound05", 0x2000000, 0x0400000, CRC(3116e437) SHA1(f1b06592a6f0eba92eb4511d3ca03a3bb51e8c9d) ) // bank 1 | |
| 1510 | ROM_LOAD( "sound06", 0x2400000, 0x0400000, CRC(26b37ef6) SHA1(f7090f3ec81f0c651c53d460b476e63f52dd06dc) ) // bank 1 | |
| 1511 | ROM_LOAD( "sound07", 0x2800000, 0x0400000, CRC(1dd3f4e3) SHA1(8474e00b962368164c717e5fe2e926852f3b4426) ) // bank 2 | |
| 1512 | ROM_LOAD( "sound08", 0x2c00000, 0x0400000, CRC(a1b03d67) SHA1(95f89a37e97d62706e15fd5571ff2e70dd98fee2) ) // bank 2 | |
| 1513 | ROM_LOAD( "sound09", 0x3000000, 0x0400000, CRC(35107aac) SHA1(d56a66e15c46c33cf6c9c28edf48b730b681d21a) ) // bank 2 | |
| 1514 | ROM_LOAD( "sound10", 0x3400000, 0x0400000, CRC(059ec592) SHA1(205210af558eb7e8e1399b2a506ef0285c5feda3) ) // bank 3 | |
| 1515 | ROM_LOAD( "sound11", 0x3800000, 0x0400000, CRC(84d4badb) SHA1(fc20f97a008f000a49e7cadd559789516643704a) ) // bank 3 | |
| 1516 | ROM_LOAD( "sound12", 0x3c00000, 0x0400000, CRC(4527a9b7) SHA1(a73ebece5c84bf14f8d25bbd869b7b43b1fcd042) ) // bank 3 | |
| 1517 | ROM_LOAD( "sound13", 0x4000000, 0x0400000, CRC(bfa4b7ce) SHA1(4100f2deabb8994e8e3ff897a1db13693ab64c11) ) // bank 4 | |
| 1518 | ROM_LOAD( "sound14", 0x4400000, 0x0400000, CRC(a2ccd2ce) SHA1(fc6325219f7b8e68c22a129f5ec4e900e326fb9d) ) // bank 4 | |
| 1519 | ROM_LOAD( "sound15", 0x4800000, 0x0400000, CRC(95baf678) SHA1(f7b39a3379f16df0560a22d4f42165ebbe05cebe) ) // bank 4 | |
| 1520 | ROM_LOAD( "sound16", 0x4c00000, 0x0400000, CRC(5883c84b) SHA1(54aec4e1e2f5edc198aebc4788caf5062f9a5b6c) ) // bank 5 | |
| 1521 | ROM_LOAD( "sound17", 0x5000000, 0x0400000, CRC(f92098ce) SHA1(9b13cd37ad5d7baf36b20218c4bced956084ec45) ) // bank 5 | |
| 1522 | ROM_LOAD( "sound18", 0x5400000, 0x0400000, CRC(dbb2c228) SHA1(f7cd24026236e2c616376c695b9e986cc221f36d) ) // bank 5 | |
| 1523 | ROM_LOAD( "sound19", 0x5800000, 0x0400000, CRC(9efdae1c) SHA1(6158a1804fbaa9ce27ae7e12cfda5f49084b4998) ) // bank 6 | |
| 1524 | ROM_LOAD( "sound20", 0x5c00000, 0x0400000, CRC(5f301b83) SHA1(e24e85c43a62871360545aa42dfa439045334b79) ) // bank 6 | |
| 1525 | ||
| 1520 | ROM_REGION( 0x7000000, REGION_SOUND1, 0 ) /* Samples - On seperate ROM board with YMZ280B-F sound chip */ | |
| 1521 | ROM_LOAD( "mr99029-01.ic28", 0x0000000, 0x0400000, CRC(e2f69042) SHA1(deb361a53ed6a9033e21c2f805f327cc3e9b11c6) ) // COMMON AREA (alt PCB number 25) | |
| 1522 | ROM_FILL( 0x0400000, 0x0c00000, 0xff ) // BANK AREA (unpopulated IC29, IC36 & IC37 (alt PCB numbers 26, 27 & 28 repectively) | |
| 1523 | ROM_LOAD( "mr99029-02.ic1", 0x1000000, 0x0400000, CRC(b328b18f) SHA1(22edebcabd6c8ed65d8c9e501621991d404c430d) ) // bank 0 (alt PCB number 1) | |
| 1524 | ROM_LOAD( "mr99029-03.ic2", 0x1400000, 0x0400000, CRC(f46438e3) SHA1(718f54fc0e3689f5ab29bef2ec13eb2aa9b117fc) ) // bank 0 (alt PCB number 2) | |
| 1525 | ROM_LOAD( "mr99029-04.ic3", 0x1800000, 0x0400000, CRC(b979e887) SHA1(10852ceb1b9e24fb87cf9339bc9fb4ae066a1221) ) // bank 0 (alt PCB number 3) | |
| 1526 | ROM_LOAD( "mr99029-05.ic4", 0x1c00000, 0x0400000, CRC(0bb2c212) SHA1(4f8ab3c96c3e1aa337a3fe871cffc04ec603f8c0) ) // bank 1 (alt PCB number 4) | |
| 1527 | ROM_LOAD( "mr99029-06.ic5", 0x2000000, 0x0400000, CRC(3116e437) SHA1(f1b06592a6f0eba92eb4511d3ca03a3bb51e8c9d) ) // bank 1 (alt PCB number 5) | |
| 1528 | ROM_LOAD( "mr99029-07.ic6", 0x2400000, 0x0400000, CRC(26b37ef6) SHA1(f7090f3ec81f0c651c53d460b476e63f52dd06dc) ) // bank 1 (alt PCB number 6) | |
| 1529 | ROM_LOAD( "mr99029-08.ic7", 0x2800000, 0x0400000, CRC(1dd3f4e3) SHA1(8474e00b962368164c717e5fe2e926852f3b4426) ) // bank 2 (alt PCB number 7) | |
| 1530 | ROM_LOAD( "mr99029-09.ic8", 0x2c00000, 0x0400000, CRC(a1b03d67) SHA1(95f89a37e97d62706e15fd5571ff2e70dd98fee2) ) // bank 2 (alt PCB number 8) | |
| 1531 | ROM_LOAD( "mr99029-10.ic10", 0x3000000, 0x0400000, CRC(35107aac) SHA1(d56a66e15c46c33cf6c9c28edf48b730b681d21a) ) // bank 2 (alt PCB number 9) | |
| 1532 | ROM_LOAD( "mr99029-11.ic11", 0x3400000, 0x0400000, CRC(059ec592) SHA1(205210af558eb7e8e1399b2a506ef0285c5feda3) ) // bank 3 (alt PCB number 10) | |
| 1533 | ROM_LOAD( "mr99029-12.ic12", 0x3800000, 0x0400000, CRC(84d4badb) SHA1(fc20f97a008f000a49e7cadd559789516643704a) ) // bank 3 (alt PCB number 11) | |
| 1534 | ROM_LOAD( "mr99029-13.ic13", 0x3c00000, 0x0400000, CRC(4527a9b7) SHA1(a73ebece5c84bf14f8d25bbd869b7b43b1fcd042) ) // bank 3 (alt PCB number 12) | |
| 1535 | ROM_LOAD( "mr99029-14.ic14", 0x4000000, 0x0400000, CRC(bfa4b7ce) SHA1(4100f2deabb8994e8e3ff897a1db13693ab64c11) ) // bank 4 (alt PCB number 13) | |
| 1536 | ROM_LOAD( "mr99029-15.ic15", 0x4400000, 0x0400000, CRC(a2ccd2ce) SHA1(fc6325219f7b8e68c22a129f5ec4e900e326fb9d) ) // bank 4 (alt PCB number 14) | |
| 1537 | ROM_LOAD( "mr99029-16.ic16", 0x4800000, 0x0400000, CRC(95baf678) SHA1(f7b39a3379f16df0560a22d4f42165ebbe05cebe) ) // bank 4 (alt PCB number 15) | |
| 1538 | ROM_LOAD( "mr99029-17.ic17", 0x4c00000, 0x0400000, CRC(5883c84b) SHA1(54aec4e1e2f5edc198aebc4788caf5062f9a5b6c) ) // bank 5 (alt PCB number 16) | |
| 1539 | ROM_LOAD( "mr99029-18.ic19", 0x5000000, 0x0400000, CRC(f92098ce) SHA1(9b13cd37ad5d7baf36b20218c4bced956084ec45) ) // bank 5 (alt PCB number 17) | |
| 1540 | ROM_LOAD( "mr99029-19.ic20", 0x5400000, 0x0400000, CRC(dbb2c228) SHA1(f7cd24026236e2c616376c695b9e986cc221f36d) ) // bank 5 (alt PCB number 18) | |
| 1541 | ROM_LOAD( "mr99029-20.ic21", 0x5800000, 0x0400000, CRC(9efdae1c) SHA1(6158a1804fbaa9ce27ae7e12cfda5f49084b4998) ) // bank 6 (alt PCB number 19) | |
| 1542 | ROM_LOAD( "mr99029-21.ic22", 0x5c00000, 0x0400000, CRC(5f301b83) SHA1(e24e85c43a62871360545aa42dfa439045334b79) ) // bank 6 (alt PCB number 20) | |
| 1543 | // ROM_LOAD( "ic23", 0x6000000, 0x0400000 ) // bank 6 ( ** unpopulated ** - alt PCB number 21) | |
| 1544 | // ROM_LOAD( "ic24", 0x6400000, 0x0400000 ) // bank 7 ( ** unpopulated ** - alt PCB number 22) | |
| 1545 | // ROM_LOAD( "ic25", 0x6800000, 0x0400000 ) // bank 7 ( ** unpopulated ** - alt PCB number 23) | |
| 1546 | // ROM_LOAD( "ic26", 0x6c00000, 0x0400000 ) // bank 7 ( ** unpopulated ** - alt PCB number 24) | |
| 1526 | 1547 | ROM_END |
| 1527 | 1548 | |
| 1528 | ||
| 1529 | ROM_START( rockn4 ) | |
| 1549 | ROM_START( rockn4 ) /* Prototype */ | |
| 1530 | 1550 | ROM_REGION( 0x100000, REGION_CPU1, 0 ) /* 68000 Code */ |
| 1531 | ROM_LOAD16_BYTE( "prg1", 0x000001, 0x80000, CRC(c666caea) SHA1(57018de40d71fe214a6b5cc33c8ad5e88622d010) ) | |
| 1532 | ROM_LOAD16_BYTE( "prg0", 0x000000, 0x80000, CRC(cc94e557) SHA1(d38abed04239d9eecf1b1be7a9f765a1b7aa0d8d) ) | |
| 1551 | ROM_LOAD16_BYTE( "rock_n_4_vj-98344_1.bin", 0x000001, 0x80000, CRC(c666caea) SHA1(57018de40d71fe214a6b5cc33c8ad5e88622d010) ) | |
| 1552 | ROM_LOAD16_BYTE( "rock_n_4_vj-98344_4.bin", 0x000000, 0x80000, CRC(cc94e557) SHA1(d38abed04239d9eecf1b1be7a9f765a1b7aa0d8d) ) | |
| 1533 | 1553 | |
| 1534 | 1554 | ROM_REGION( 0x400000, REGION_GFX1, ROMREGION_DISPOSE ) /* 8x8x8 (Sprites) */ |
| 1535 | ROM_LOAD32_WORD( "spr1", 0x000002, 0x200000, CRC(5eeae537) SHA1(6bb8c658a2985c3919f0590a0147eead995c01c9) ) | |
| 1536 | ROM_LOAD32_WORD( "spr0", 0x000000, 0x200000, CRC(3fedddc9) SHA1(4bd8f402ecf8e6255326927e825179fa6d300e73) ) | |
| 1555 | ROM_LOAD32_WORD( "rock_n_4_vj-98344_8.bin", 0x000002, 0x200000, CRC(5eeae537) SHA1(6bb8c658a2985c3919f0590a0147eead995c01c9) ) | |
| 1556 | ROM_LOAD32_WORD( "rock_n_4_vj-98344_9.bin", 0x000000, 0x200000, CRC(3fedddc9) SHA1(4bd8f402ecf8e6255326927e825179fa6d300e73) ) | |
| 1537 | 1557 | |
| 1538 | 1558 | ROM_REGION( 0x200000, REGION_GFX2, ROMREGION_DISPOSE ) /* 16x16x8 (Background) */ |
| 1539 | ROM_LOAD16_WORD( " | |
| 1559 | ROM_LOAD16_WORD( "rock_n_4_vj-98344_13.bin", 0x000000, 0x200000, CRC(ead41e79) SHA1(9c24b1e52b6ed43d5b5a1caf48f2974b8fa61f4a) ) | |
| 1540 | 1560 | |
| 1541 | 1561 | ROM_REGION( 0x200000, REGION_GFX3, ROMREGION_DISPOSE ) /* 16x16x8 (Rotation) */ |
| 1542 | ROM_LOAD( "ro | |
| 1562 | ROM_LOAD( "rock_n_4_vj-98344_6.bin", 0x000000, 0x200000, CRC(eb16fc67) SHA1(5be40f2c9a5693785268eafcfcf348f147533463) ) | |
| 1543 | 1563 | |
| 1544 | 1564 | ROM_REGION( 0x100000, REGION_GFX4, ROMREGION_DISPOSE ) /* 8x8x8 (Foreground) */ |
| 1545 | ROM_LOAD( " | |
| 1565 | ROM_LOAD( " | |
| 1546 | 1566 | |
| 1547 | 1567 | ROM_REGION( 0x7000000, REGION_SOUND1, 0 ) /* Samples */ |
| 1548 | 1568 | ROM_LOAD( "sound00", 0x0000000, 0x0400000, CRC(918ea8eb) SHA1(0cd82859634635b6ce49db36fb91ed3365a101eb) ) // COMMON AREA |
| 1549 | ROM_FILL( | |
| 1569 | ROM_FILL( | |
| 1550 | 1570 | ROM_LOAD( "sound01", 0x1000000, 0x0400000, CRC(c548e51e) SHA1(4fe1e35c9ed4366dce98b4f4c00f94e202ef15dc) ) // bank 0 |
| 1551 | 1571 | ROM_LOAD( "sound02", 0x1400000, 0x0400000, CRC(ffda0253) SHA1(9b8ae98accc2f72a1cd881086f89e647e4904ad9) ) // bank 0 |
| 1552 | 1572 | ROM_LOAD( "sound03", 0x1800000, 0x0400000, CRC(1f813af5) SHA1(a72d842e39b9fc955a2fc6721673b34b1b591e4a) ) // bank 0 |
| r1649 | r1650 | |
| 1558 | 1578 | ROM_LOAD( "sound09", 0x3000000, 0x0400000, CRC(39fa512f) SHA1(d07426bc74492496756b67b8ded1b507726720c7) ) // bank 2 |
| 1559 | 1579 | ROM_END |
| 1560 | 1580 | |
| 1561 | ||
| 1562 | 1581 | ROM_START( rocknms ) |
| 1563 | 1582 | ROM_REGION( 0x100000, REGION_CPU1, 0 ) /* 68000 Code */ |
| 1564 | 1583 | ROM_LOAD16_BYTE( "mast_prg1", 0x000001, 0x80000, CRC(c36674f8) SHA1(8aeb19fcd6f786c9d76a72abee4b607d29fb7d56) ) |
| r1649 | r1650 | |
| 1627 | 1646 | |
| 1628 | 1647 | ***************************************************************************/ |
| 1629 | 1648 | |
| 1630 | GAME( 1997, tetrisp2, 0, tetrisp2, tetrisp2, 0, ROT0, "Jaleco / The Tetris Company", "Tetris Plus 2 (World | |
| 1649 | GAME( 1997, tetrisp2, 0, tetrisp2, tetrisp2, 0, ROT0, "Jaleco / The Tetris Company", "Tetris Plus 2 (World | |
| 1631 | 1650 | GAME( 1997, teplus2j, tetrisp2, tetrisp2, teplus2j, 0, ROT0, "Jaleco / The Tetris Company", "Tetris Plus 2 (Japan)", GAME_SUPPORTS_SAVE ) |
| 1632 | 1651 | |
| 1633 | 1652 | GAME( 1999, rockn, 0, rockn, rockn, rockn, ROT270, "Jaleco", "Rock'n Tread (Japan)", GAME_SUPPORTS_SAVE) |
| 1634 | 1653 | GAME( 1999, rockna, rockn, rockn, rockn, rockn1, ROT270, "Jaleco", "Rock'n Tread (Japan, alternate)", GAME_SUPPORTS_SAVE) |
| 1635 | 1654 | GAME( 1999, rockn2, 0, rockn2, rockn, rockn2, ROT270, "Jaleco", "Rock'n Tread 2 (Japan)", GAME_SUPPORTS_SAVE) |
| 1636 | GAME( 1999, rocknms, 0, rocknms, rocknms, rocknms, ROT0, "Jaleco", "Rock'n MegaSession (Japan)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) | |
| 1655 | GAME( 1999, rocknms, 0, rocknms, rocknms, rocknms, ROT0, "Jaleco", "Rock'n MegaSession (Japan)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) | |
| 1637 | 1656 | GAME( 1999, rockn3, 0, rockn2, rockn, rockn3, ROT270, "Jaleco", "Rock'n 3 (Japan)", GAME_SUPPORTS_SAVE) |
| 1638 | 1657 | GAME( 2000, rockn4, 0, rockn2, rockn, rockn3, ROT270, "Jaleco (PCCWJ)", "Rock'n 4 (Japan, prototype)", GAME_SUPPORTS_SAVE) |
| r1649 | r1650 | |
|---|---|---|
| 17 | 17 | **************************************************************************/ |
| 18 | 18 | |
| 19 | 19 | #include "driver.h" |
| 20 | #include "deprecat.h" | |
| 20 | 21 | #include "sound/2203intf.h" |
| 21 | 22 | #include "sound/okim6295.h" |
| 22 | 23 |
| r1649 | r1650 | |
|---|---|---|
| 174 | 174 | ***************************************************************************/ |
| 175 | 175 | |
| 176 | 176 | #include "driver.h" |
| 177 | #include "deprecat.h" | |
| 177 | 178 | #include "cpu/z80/z80.h" |
| 178 | 179 | #include "sound/ay8910.h" |
| 179 | 180 | #include "sound/dac.h" |
| r1649 | r1650 | |
| 2076 | 2077 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2077 | 2078 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 2078 | 2079 | MDRV_GFXDECODE(sstingry) |
| 2079 | MDRV_PALETTE_LENGTH(256) | |
| 2080 | MDRV_PALETTE_LENGTH(256 + 1) | |
| 2080 | 2081 | //AT |
| 2081 | MDRV_COLORTABLE_LENGTH(256) | |
| 2082 | 2082 | MDRV_PALETTE_INIT(kyros) |
| 2083 | 2083 | //ZT |
| 2084 | 2084 | MDRV_VIDEO_UPDATE(sstingry) |
| r1649 | r1650 | |
| 2127 | 2127 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2128 | 2128 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 2129 | 2129 | MDRV_GFXDECODE(kyros) |
| 2130 | MDRV_PALETTE_LENGTH(256) | |
| 2131 | MDRV_COLORTABLE_LENGTH(256) | |
| 2130 | MDRV_PALETTE_LENGTH(256 + 1) | |
| 2132 | 2131 | |
| 2133 | 2132 | MDRV_PALETTE_INIT(kyros) |
| 2134 | 2133 | MDRV_VIDEO_UPDATE(kyros) |
| r1649 | r1650 | |
| 2175 | 2174 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2176 | 2175 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 2177 | 2176 | MDRV_GFXDECODE(jongbou) |
| 2178 | MDRV_PALETTE_LENGTH(256) | |
| 2179 | MDRV_COLORTABLE_LENGTH(256) | |
| 2177 | MDRV_PALETTE_LENGTH(256 + 1) | |
| 2180 | 2178 | |
| 2181 | 2179 | MDRV_PALETTE_INIT(kyros) |
| 2182 | 2180 | MDRV_VIDEO_UPDATE(kyros) |
| r1649 | r1650 | |
| 2210 | 2208 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 2211 | 2209 | MDRV_GFXDECODE(paddle) |
| 2212 | 2210 | //AT |
| 2213 | MDRV_PALETTE_LENGTH(256) | |
| 2214 | MDRV_COLORTABLE_LENGTH(1024) | |
| 2211 | MDRV_PALETTE_LENGTH(1024) | |
| 2215 | 2212 | MDRV_PALETTE_INIT(paddlem) |
| 2216 | 2213 | //ZT |
| 2217 | 2214 | MDRV_VIDEO_UPDATE(alpha68k_I) |
| r1649 | r1650 | |
| 2428 | 2425 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 2429 | 2426 | MDRV_GFXDECODE(tnexspce) |
| 2430 | 2427 | |
| 2431 | MDRV_PALETTE_LENGTH(256) | |
| 2432 | MDRV_COLORTABLE_LENGTH(1024) | |
| 2428 | MDRV_PALETTE_LENGTH(1024) | |
| 2433 | 2429 | MDRV_PALETTE_INIT(paddlem) |
| 2434 | 2430 | MDRV_VIDEO_UPDATE(alpha68k_I) |
| 2435 | 2431 |
| r1649 | r1650 | |
|---|---|---|
| 31 | 31 | |
| 32 | 32 | static PALETTE_INIT( lucky8 ) |
| 33 | 33 | { |
| 34 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 35 | ||
| 36 | 34 | int i; |
| 37 | 35 | |
| 38 | 36 | for (i = 0; i < machine->drv->total_colors; i++) |
| 39 | 37 | { |
| 40 | 38 | int bit0, bit1, bit2, r, g, b; |
| 41 | 39 | |
| 42 | | |
| 40 | UINT8 pen = color_prom[0x20 + i] & 0x0f; | |
| 43 | 41 | |
| 44 | bit0 = (*color_prom >> 0) & 0x01; | |
| 45 | bit1 = (*color_prom >> 1) & 0x01; | |
| 46 | bit2 = (*color_prom >> 2) & 0x01; | |
| 47 | ||
| 42 | /* red component */ | |
| 43 | bit0 = (color_prom[pen] >> 0) & 0x01; | |
| 44 | bit1 = (color_prom[pen] >> 1) & 0x01; | |
| 45 | bit2 = (color_prom[pen] >> 2) & 0x01; | |
| 48 | 46 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 49 | 47 | |
| 50 | // green component | |
| 48 | /* green component */ | |
| 49 | bit0 = (color_prom[pen] >> 3) & 0x01; | |
| 50 | bit1 = (color_prom[pen] >> 4) & 0x01; | |
| 51 | bit2 = (color_prom[pen] >> 5) & 0x01; | |
| 51 | 52 | |
| 52 | bit0 = (*color_prom >> 3) & 0x01; | |
| 53 | bit1 = (*color_prom >> 4) & 0x01; | |
| 54 | bit2 = (*color_prom >> 5) & 0x01; | |
| 55 | ||
| 56 | 53 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 57 | 54 | |
| 58 | // blue component | |
| 59 | ||
| 55 | /* blue component */ | |
| 60 | 56 | bit0 = 0; |
| 61 | bit1 = (*color_prom >> 6) & 0x01; | |
| 62 | bit2 = (*color_prom >> 7) & 0x01; | |
| 63 | ||
| 57 | bit1 = (color_prom[pen] >> 6) & 0x01; | |
| 58 | bit2 = (color_prom[pen] >> 7) & 0x01; | |
| 64 | 59 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 65 | 60 | |
| 66 | 61 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); |
| 67 | ||
| 68 | color_prom++; | |
| 69 | 62 | } |
| 70 | ||
| 71 | for (i = 0; i < 0x100; i++) | |
| 72 | { | |
| 73 | COLOR(0, i) = (*color_prom) & 0x0f; | |
| 74 | color_prom++; | |
| 75 | } | |
| 76 | 63 | } |
| 77 | 64 | |
| 78 | 65 | static WRITE8_HANDLER( lucky8_videoram_w ) |
| r1649 | r1650 | |
| 381 | 368 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 2*8, 30*8-1) |
| 382 | 369 | |
| 383 | 370 | MDRV_GFXDECODE(lucky8) |
| 384 | MDRV_PALETTE_LENGTH(32) | |
| 385 | MDRV_COLORTABLE_LENGTH(256) | |
| 371 | MDRV_PALETTE_LENGTH(256) | |
| 386 | 372 | |
| 387 | 373 | MDRV_PALETTE_INIT(lucky8) |
| 388 | 374 | MDRV_VIDEO_START(lucky8) |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | ***************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | |
| 13 | 14 | extern UINT8* boxer_tile_ram; |
| 14 | 15 | extern UINT8* boxer_sprite_ram; |
| r1649 | r1650 | |
|---|---|---|
| 49 | 49 | |
| 50 | 50 | |
| 51 | 51 | |
| 52 | UINT8 *starfire_videoram; | |
| 53 | UINT8 *starfire_colorram; | |
| 54 | ||
| 55 | 52 | static UINT8 fireone_select; |
| 56 | 53 | static read8_handler input_read; |
| 57 | 54 | |
| r1649 | r1650 | |
| 59 | 56 | |
| 60 | 57 | /************************************* |
| 61 | 58 | * |
| 62 | * Video updates | |
| 63 | * | |
| 64 | *************************************/ | |
| 65 | ||
| 66 | #define SCANLINE_UPDATE_CHUNK 8 | |
| 67 | ||
| 68 | static TIMER_CALLBACK( update_callback ) | |
| 69 | { | |
| 70 | int scanline = param; | |
| 71 | ||
| 72 | /* update the previous chunk of scanlines */ | |
| 73 | starfire_video_update(scanline, SCANLINE_UPDATE_CHUNK); | |
| 74 | scanline += SCANLINE_UPDATE_CHUNK; | |
| 75 | if (scanline >= machine->screen[0].height) | |
| 76 | scanline = 32; | |
| 77 | timer_set(video_screen_get_time_until_pos(0, scanline + SCANLINE_UPDATE_CHUNK - 1, 0), NULL, scanline, update_callback); | |
| 78 | } | |
| 79 | ||
| 80 | ||
| 81 | static MACHINE_RESET( starfire ) | |
| 82 | { | |
| 83 | timer_set(video_screen_get_time_until_pos(0, 32 + SCANLINE_UPDATE_CHUNK - 1, 0), NULL, 32, update_callback); | |
| 84 | } | |
| 85 | ||
| 86 | ||
| 87 | ||
| 88 | /************************************* | |
| 89 | * | |
| 90 | 59 | * Scratch RAM, mapped into video RAM |
| 91 | 60 | * |
| 92 | 61 | *************************************/ |
| r1649 | r1650 | |
| 181 | 150 | * |
| 182 | 151 | *************************************/ |
| 183 | 152 | |
| 184 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 185 | AM_RANGE(0x0000, 0x7fff) AM_READ(MRA8_ROM) | |
| 186 | AM_RANGE(0x8000, 0x9fff) AM_READ(starfire_scratch_r) | |
| 187 | AM_RANGE(0xa000, 0xbfff) AM_READ(starfire_colorram_r) | |
| 188 | AM_RANGE(0xc000, 0xffff) AM_READ(starfire_videoram_r) | |
| 153 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 154 | AM_RANGE(0x0000, 0x7fff) AM_ROM | |
| 155 | AM_RANGE(0x8000, 0x9fff) AM_READWRITE(starfire_scratch_r, starfire_scratch_w) | |
| 156 | AM_RANGE(0xa000, 0xbfff) AM_READWRITE(MRA8_RAM, starfire_colorram_w) AM_BASE(&starfire_colorram) | |
| 157 | AM_RANGE(0xc000, 0xffff) AM_READWRITE(starfire_videoram_r, starfire_videoram_w) AM_BASE(&starfire_videoram) | |
| 189 | 158 | ADDRESS_MAP_END |
| 190 | 159 | |
| 191 | static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 192 | AM_RANGE(0x0000, 0x7fff) AM_WRITE(MWA8_ROM) | |
| 193 | AM_RANGE(0x8000, 0x9fff) AM_WRITE(starfire_scratch_w) | |
| 194 | AM_RANGE(0xa000, 0xbfff) AM_WRITE(starfire_colorram_w) AM_BASE(&starfire_colorram) | |
| 195 | AM_RANGE(0xc000, 0xffff) AM_WRITE(starfire_videoram_w) AM_BASE(&starfire_videoram) | |
| 196 | ADDRESS_MAP_END | |
| 197 | 160 | |
| 198 | 161 | |
| 199 | ||
| 200 | 162 | /************************************* |
| 201 | 163 | * |
| 202 | 164 | * Port definitions |
| r1649 | r1650 | |
| 302 | 264 | |
| 303 | 265 | /* basic machine hardware */ |
| 304 | 266 | MDRV_CPU_ADD(Z80, STARFIRE_CPU_CLOCK) |
| 305 | MDRV_CPU_PROGRAM_MAP( | |
| 267 | MDRV_CPU_PROGRAM_MAP( | |
| 306 | 268 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 307 | 269 | |
| 308 | MDRV_MACHINE_RESET(starfire) | |
| 309 | ||
| 310 | 270 | /* video hardware */ |
| 311 | 271 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) |
| 312 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_ | |
| 272 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32 | |
| 313 | 273 | MDRV_SCREEN_RAW_PARAMS(STARFIRE_PIXEL_CLOCK, STARFIRE_HTOTAL, STARFIRE_HBEND, STARFIRE_HBSTART, STARFIRE_VTOTAL, STARFIRE_VBEND, STARFIRE_VBSTART) |
| 314 | MDRV_PALETTE_LENGTH(64) | |
| 315 | 274 | |
| 316 | 275 | MDRV_VIDEO_START(starfire) |
| 317 | 276 | MDRV_VIDEO_UPDATE(starfire) |
| 318 | 277 | |
| 319 | /* | |
| 278 | /* a | |
| 320 | 279 | MACHINE_DRIVER_END |
| 321 | 280 | |
| 322 | 281 | |
| r1649 | r1650 | |
| 406 | 365 | static DRIVER_INIT( fireone ) |
| 407 | 366 | { |
| 408 | 367 | input_read = fireone_input_r; |
| 368 | ||
| 369 | /* register for state saving */ | |
| 370 | state_save_register_global(fireone_select); | |
| 409 | 371 | } |
| 410 | 372 | |
| 411 | 373 | |
| r1649 | r1650 | |
| 416 | 378 | * |
| 417 | 379 | *************************************/ |
| 418 | 380 | |
| 419 | GAME( 1979, starfire, 0, starfire, starfire, starfire, ROT0, "Exidy", "Star Fire (set 1)", GAME_NO_SOUND ) | |
| 420 | GAME( 1979, starfira, starfire, starfire, starfire, starfire, ROT0, "Exidy", "Star Fire (set 2)", GAME_NO_SOUND ) | |
| 421 | GAME( 1979, fireone, 0, starfire, fireone, fireone, ROT0, "Exidy", "Fire One", GAME_NO_SOUND ) | |
| 422 | GAME( 1979, starfir2, 0, starfire, starfire, starfire, ROT0, "Exidy", "Star Fire 2", GAME_NO_SOUND ) | |
| 381 | GAME( 1979, starfire, 0, starfire, starfire, starfire, ROT0, "Exidy", "Star Fire (set 1)", GAME_NO_SOUND | GAME_SUPPORTS_SAVE ) | |
| 382 | GAME( 1979, starfira, starfire, starfire, starfire, starfire, ROT0, "Exidy", "Star Fire (set 2)", GAME_NO_SOUND | GAME_SUPPORTS_SAVE ) | |
| 383 | GAME( 1979, fireone, 0, starfire, fireone, fireone, ROT0, "Exidy", "Fire One", GAME_NO_SOUND | GAME_SUPPORTS_SAVE ) | |
| 384 | GAME( 1979, starfir2, 0, starfire, starfire, starfire, ROT0, "Exidy", "Star Fire 2", GAME_NO_SOUND | GAME_SUPPORTS_SAVE ) |
| r1649 | r1650 | |
|---|---|---|
| 25 | 25 | ***************************************************************************/ |
| 26 | 26 | |
| 27 | 27 | #include "driver.h" |
| 28 | #include "deprecat.h" | |
| 28 | 29 | #include "sound/okim6295.h" |
| 29 | 30 | |
| 30 | 31 | /*************************************************************************** |
| r1649 | r1650 | |
| 141 | 142 | static VIDEO_UPDATE( tmaster ) |
| 142 | 143 | { |
| 143 | 144 | // double buffering |
| 144 | copybitmap(bitmap,tmaster_bitmap[(tmaster_regs[0x02/2]>>8)&1],0,0,0,0, | |
| 145 | copybitmap(bitmap,tmaster_bitmap[(tmaster_regs[0x02/2]>>8)&1],0,0,0,0, | |
| 145 | 146 | |
| 146 | 147 | show_touchscreen(); |
| 147 | 148 | return 0; |
| r1649 | r1650 | |
|---|---|---|
| 162 | 162 | ***************************************************************************/ |
| 163 | 163 | |
| 164 | 164 | #include "driver.h" |
| 165 | #include "deprecat.h" | |
| 165 | 166 | #include "megasys1.h" |
| 166 | 167 | #include "sound/2151intf.h" |
| 167 | 168 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
|---|---|---|
| 144 | 144 | */ |
| 145 | 145 | |
| 146 | 146 | #include "driver.h" |
| 147 | #include "deprecat.h" | |
| 147 | 148 | #include "namcos22.h" |
| 148 | 149 | #include "cpu/tms32025/tms32025.h" |
| 149 | 150 | #include "cpu/m37710/m37710.h" |
| r1649 | r1650 | |
|---|---|---|
| 21 | 21 | ***************************************************************************/ |
| 22 | 22 | |
| 23 | 23 | #include "driver.h" |
| 24 | #include "deprecat.h" | |
| 24 | 25 | |
| 25 | 26 | |
| 26 | 27 | extern WRITE8_HANDLER( redclash_videoram_w ); |
| r1649 | r1650 | |
| 234 | 235 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:5") |
| 235 | 236 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 236 | 237 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) |
| 237 | PORT_DIPNAME( 0x30, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:4,3") | |
| 238 | PORT_DIPSETTING( 0x00, "5000" ) | |
| 239 | PORT_DIPSETTING( 0x10, "8000" ) | |
| 240 | PORT_DIPSETTING( 0x20, "10000" ) | |
| 241 | PORT_DIPSETTING( 0x30, "No Bonus" ) | |
| 238 | PORT_DIPNAME( 0x30, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:4,3") /* Also determines the default topscore, 0 for "No Bonus" */ | |
| 239 | PORT_DIPSETTING( 0x00, "No Bonus" ) | |
| 240 | PORT_DIPSETTING( 0x30, "5000" ) | |
| 241 | PORT_DIPSETTING( 0x20, "8000" ) | |
| 242 | PORT_DIPSETTING( 0x10, "10000" ) | |
| 242 | 243 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:2,1") |
| 243 | 244 | PORT_DIPSETTING( 0x00, "2" ) |
| 244 | 245 | PORT_DIPSETTING( 0xc0, "3" ) |
| r1649 | r1650 | |
|---|---|---|
| 52 | 52 | ****************************************************************************/ |
| 53 | 53 | |
| 54 | 54 | #include "driver.h" |
| 55 | #include "deprecat.h" | |
| 55 | 56 | #include "vicdual.h" |
| 56 | 57 | |
| 57 | 58 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | |
| 8 | 8 | Games supported: |
| 9 | 9 | * Sasuke vs. Commander |
| 10 | * Satan of Saturn | |
| 11 | * Zarzon | |
| 10 | * Satan of Saturn [2 sets] | |
| 11 | * Zarzon (clone of 'satansat') | |
| 12 | * Vanguard [3 sets] | |
| 13 | * Fantasy [3 sets] G-202 | |
| 14 | * Pioneer Balloon G-204 | |
| 15 | * Nibbler [4 sets] G-208 | |
| 16 | ||
| 17 | DIP locations verified from manual for: | |
| 18 | * Zarzon (Satan of Saturn uses the same code, so I guess locations are the same) | |
| 12 | 19 | * Vanguard |
| 13 | * Fantasy G-202 | |
| 14 | * Pioneer Balloon G-204 | |
| 15 | * Nibbler G-208 | |
| 20 | * Nibbler | |
| 16 | 21 | |
| 17 | 22 | **************************************************************************** |
| 18 | 23 | |
| r1649 | r1650 | |
| 28 | 33 | read: |
| 29 | 34 | 3104 IN0 |
| 30 | 35 | 3105 IN1 |
| 31 | 3106 DSW | |
| 36 | 3106 DSW | |
| 32 | 37 | 3107 IN2 |
| 33 | 38 | |
| 34 | 39 | write |
| r1649 | r1650 | |
| 84 | 89 | 7000-7fff ROM 4 IC10 |
| 85 | 90 | 8000-8fff ROM 5 IC14 |
| 86 | 91 | 9000-9fff ROM 6 IC15 |
| 92 | ||
| 87 | 93 | read: |
| 88 | 94 | b104 IN0 |
| 89 | 95 | b105 IN1 |
| r1649 | r1650 | |
| 104 | 110 | |
| 105 | 111 | Interrupts: VBlank causes an IRQ. Coin insertion causes a NMI. |
| 106 | 112 | |
| 113 | **************************************************************************** | |
| 114 | ||
| 115 | Stephh's notes (based on the games M6502 code and some tests) : | |
| 116 | ||
| 117 | 1a) 'vanguard' | |
| 118 | ||
| 119 | - There are 5 different coinage settings according to the game code | |
| 120 | which are based on DSW bits 1 to 3 : | |
| 121 | ||
| 122 | bit 3 bit 2 bit 1 effect | |
| 123 | OFF OFF OFF 1C_1C | |
| 124 | OFF OFF ON 2C_1C (manual tells this is the default setting) | |
| 125 | OFF ON OFF 1C_3C | |
| 126 | ON OFF OFF 1C_2C | |
| 127 | ON ON OFF 1C_6C | |
| 128 | ||
| 129 | The 3 other combinaisons give 1C_1C | |
| 130 | - From the manual, it says that DSW bit 6 determines the cost of a game : | |
| 131 | * bit 6 = 0 : "25c / game" | |
| 132 | * bit 6 = 1 : "50c / game" | |
| 133 | When you look at the game code, it appears to be some of "Bonus Coinage" : | |
| 134 | * bit 6 = 0 : you get an additional credit each time you insert 1 coin | |
| 135 | * bit 6 = 1 : you get an additional credit each time you insert 2 coins | |
| 136 | - So, instead of having something like this : | |
| 137 | PORT_DIPNAME( 0x0e, 0x02, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:!2,!3,!4") | |
| 138 | PORT_DIPSETTING( 0x02, "25c= 1C/1C 2C/3C 50c= 2C/2C" ) | |
| 139 | PORT_DIPSETTING( 0x00, "25c= 1C/2C 50c= 1C/1C 2C/3C" ) | |
| 140 | PORT_DIPSETTING( 0x08, "25c= 1C/3C 50c= 1C/2C 2C/5C" ) | |
| 141 | PORT_DIPSETTING( 0x04, "25c= 1C/4C 50c= 1C/3C 2C/7C" ) | |
| 142 | PORT_DIPSETTING( 0x0c, "25c= 1C/7C 50c= 1C/6C 2C/13C" ) | |
| 143 | duplicate settings - untested in game code | |
| 144 | PORT_DIPSETTING( 0x06, "25c= 1C/2C 50c= 1C/1C 2C/3C" ) | |
| 145 | PORT_DIPSETTING( 0x0a, "25c= 1C/2C 50c= 1C/1C 2C/3C" ) | |
| 146 | PORT_DIPSETTING( 0x0e, "25c= 1C/2C 50c= 1C/1C 2C/3C" ) | |
| 147 | ... | |
| 148 | PORT_DIPNAME( 0x40, 0x00, "Game Cost" ) PORT_DIPLOCATION("SW1:!7") | |
| 149 | PORT_DIPSETTING( 0x00, "25c / game" ) | |
| 150 | PORT_DIPSETTING( 0x40, "50c / game" ) | |
| 151 | or using conditional Dip Switches, I've coded this the way I did. | |
| 152 | - You can always continue, provided you're on the 1st pattern. | |
| 153 | The continue text is in English ! | |
| 154 | - 10 letters when you enter your initials | |
| 155 | ||
| 156 | 1b) 'vangrdce' | |
| 157 | ||
| 158 | - Code for coinage is the same as for 'vanguard'. | |
| 159 | - You can always continue, provided you're on the 1st pattern. | |
| 160 | The continue text is in English ! | |
| 161 | - 3 letters when you enter your initials | |
| 162 | ||
| 163 | 1c) 'vanguarj' | |
| 164 | ||
| 165 | - Code for coinage is the same as for 'vanguard'. | |
| 166 | - You can always continue, provided you're on the 1st pattern. | |
| 167 | The continue text is in Japanese ! | |
| 168 | - 10 letters when you enter your initials | |
| 169 | ||
| 170 | 2a) 'fantasy' | |
| 171 | ||
| 172 | - Code for coinage is the same as for 'vanguard'. | |
| 173 | - You can always continue, provided you're on the 1st pattern. | |
| 174 | Note that the continue text is in German ! | |
| 175 | - 3 letters when you enter your initials | |
| 176 | - I can't tell if it's an ingame bug or not, but there's a mix | |
| 177 | between "COIN" and "CREDIT" ("COCR" is displayed) | |
| 178 | ||
| 179 | 2b) 'fantasyu' | |
| 180 | ||
| 181 | - Code for coinage is the same as for 'vanguard'. | |
| 182 | - This version seems easier than 'fantasy', especially on level 2 | |
| 183 | where you have a sword and an easier maze. | |
| 184 | - Code has been added to test DSW bit 7 to allow or not a continue play. | |
| 185 | Note that the continue play is only available on the 1st pattern. | |
| 186 | - 3 letters when you enter your initials | |
| 187 | - "Fantasy" is written with different "font" and color | |
| 188 | - "CREDIT" is displayed instead of "COIN" | |
| 189 | ||
| 190 | 2b) 'fantasyj' | |
| 191 | ||
| 192 | - Code for coinage is the same as for 'vanguard'. | |
| 193 | - This version seems easier than 'fantasy', especially on level 2 | |
| 194 | where you have a sword and an easier maze. | |
| 195 | - Code has been added to test DSW bit 7 to allow or not a continue play. | |
| 196 | Note that the continue play is only available on the 1st pattern. | |
| 197 | Also note that the continue text is still in English ! | |
| 198 | - 3 letters when you enter your initials | |
| 199 | - "COIN" is correctly displayed. | |
| 200 | ||
| 201 | 3) 'pballoon' | |
| 202 | ||
| 203 | - Code for coinage is the same as for 'vanguard'. | |
| 204 | - The "Language" Dip Switch only has an effect at the end of the pattern | |
| 205 | when it displays "LAND HERE" or what I suppose to be same in Japanese. | |
| 206 | - 3 letters when you enter your initials | |
| 207 | - "CREDIT" is displayed | |
| 208 | ||
| 209 | 4a) 'nibbler' | |
| 210 | ||
| 211 | - "Lives settings" : 3, 4, 5 or 6 (table at 0x4edf) | |
| 212 | - Bonus life every 4 levels | |
| 213 | - Simplified instructions | |
| 214 | - DSW bit 2 determines what happens when the snake touches a corner (code at 0x3c91) : | |
| 215 | * bit 2 = 0 : pause for 13 frames | |
| 216 | * bit 2 = 1 : no pause | |
| 217 | ||
| 218 | 4b) 'nibblera' | |
| 219 | ||
| 220 | - "Lives settings" : 3, 4, 5 or 6 (table at 0x5bf0) | |
| 221 | - Bonus life every 4 levels | |
| 222 | - Detailed instructions | |
| 223 | - DSW bit 2 is no more tested when the snake touches a corner (code at 0x3b3c); | |
| 224 | this means that the snake ALWAYS pauses for 13 frames. | |
| 225 | However, there is extra code where it is tested to determine difficulty | |
| 226 | (code at 0x31b4 and 0x32f5 - tables at 0x3391 and 0x33b2) | |
| 227 | ||
| 228 | 4c) 'nibblerb' | |
| 229 | ||
| 230 | - code based on 'nibblera' | |
| 231 | - "Lives settings" : 2, 3, 4 or 5 (table at 0x5be7) | |
| 232 | - Bonus life every 4 levels | |
| 233 | - Detailed instructions | |
| 234 | - The snake ALWAYS pauses for 13 frames (code at 0x3b38) when it touches a corner | |
| 235 | and DSW bit 2 determines difficulty as in 'nibblera' | |
| 236 | (code at 0x31b0 and 0x32f1 - tables at 0x338d and 0x33ae) | |
| 237 | ||
| 238 | 4d) 'nibblero' | |
| 239 | ||
| 240 | - code is the same as 'nibblerb' (same routines, same code and tables addresses) | |
| 241 | - "Lives settings" : 2, 3, 4 or 5 (table at 0x5be7) | |
| 242 | - Bonus life every 8 levels | |
| 243 | - Detailed instructions | |
| 244 | - The snake ALWAYS pauses for 13 frames (code at 0x3b38) when it touches a corner | |
| 245 | and DSW bit 2 determines difficulty as in 'nibblera' | |
| 246 | (code at 0x31b0 and 0x32f1 - tables at 0x338d and 0x33ae) | |
| 247 | - The game is harder than 'nibblerb' because the tables at 0x338d and 0x33ae | |
| 248 | have higher values; so the snake goes faster and grows longer. | |
| 249 | ||
| 107 | 250 | ***************************************************************************/ |
| 108 | 251 | |
| 109 | 252 | /* |
| r1649 | r1650 | |
| 114 | 257 | - vanguard/fantasy speech (hd38880/hd38882 emulation) |
| 115 | 258 | - music freq (Satan of Saturn and clone) |
| 116 | 259 | - correct music waveform/volume control |
| 117 | - clean up dips/inputs for all games | |
| 118 | 260 | - correct ROM names |
| 119 | 261 | - fantasy is German? (the continue text is in German) |
| 120 | 262 | |
| 121 | 263 | */ |
| 122 | 264 | |
| 123 | 265 | #include "driver.h" |
| 266 | #include "deprecat.h" | |
| 124 | 267 | #include "cpu/m6502/m6502.h" |
| 125 | 268 | #include "video/crtc6845.h" |
| 126 | 269 | #include "sound/sn76477.h" |
| 127 | 270 | #include "sound/custom.h" |
| 128 | 271 | #include "sound/samples.h" |
| 129 | 272 | |
| 273 | ||
| 274 | /* Change to 1 to allow fake debug buttons */ | |
| 275 | #define NIBBLER_HACK 0 | |
| 276 | ||
| 277 | ||
| 130 | 278 | #ifndef M_LN2 |
| 131 | 279 | #define M_LN2 0.69314718055994530942 |
| 132 | 280 | #endif |
| r1649 | r1650 | |
| 193 | 341 | } |
| 194 | 342 | |
| 195 | 343 | |
| 196 | /* IN1 + music0 playing */ | |
| 197 | static READ8_HANDLER( sasuke_port_1_r ) | |
| 198 | { | |
| 199 | return readinputport(1) | (rockola_music0_playing() ? 0x80 : 0x00); | |
| 200 | } | |
| 344 | /************************************* | |
| 345 | * | |
| 346 | * Custom input ports | |
| 347 | * | |
| 348 | *************************************/ | |
| 201 | 349 | |
| 202 | /* IN2 + binary counter */ | |
| 203 | static READ8_HANDLER( sasuke_port_3_r ) | |
| 350 | static CUSTOM_INPUT( rockola_music0_r ) | |
| 204 | 351 | { |
| 205 | return r | |
| 352 | return (rockola_music0_playing( | |
| 206 | 353 | } |
| 207 | 354 | |
| 208 | /* IN2 + music0 playing */ | |
| 209 | static READ8_HANDLER( vanguard_port_3_r ) | |
| 355 | static CUSTOM_INPUT( sasuke_count_r ) | |
| 210 | 356 | { |
| 211 | return | |
| 357 | return (sas | |
| 212 | 358 | } |
| 213 | 359 | |
| 214 | 360 | |
| 215 | /* Memory Maps */ | |
| 361 | /************************************* | |
| 362 | * | |
| 363 | * Memory maps | |
| 364 | * | |
| 365 | *************************************/ | |
| 216 | 366 | |
| 217 | 367 | static ADDRESS_MAP_START( sasuke_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 218 | 368 | AM_RANGE(0x0000, 0x03ff) AM_RAM |
| r1649 | r1650 | |
| 226 | 376 | AM_RANGE(0xb000, 0xb001) AM_WRITE(sasuke_sound_w) |
| 227 | 377 | AM_RANGE(0xb002, 0xb002) AM_WRITE(satansat_b002_w) /* flip screen & irq enable */ |
| 228 | 378 | AM_RANGE(0xb003, 0xb003) AM_WRITE(satansat_backcolor_w) |
| 229 | AM_RANGE(0xb004, 0xb004) AM_READ(input_port_0_r) // IN0 | |
| 230 | AM_RANGE(0xb005, 0xb005) AM_READ(sasuke_port_1_r) // IN1 + music0 playing | |
| 231 | AM_RANGE(0xb006, 0xb006) AM_READ(input_port_2_r) /* DSW */ | |
| 232 | AM_RANGE(0xb007, 0xb007) AM_READ(sasuke_port_3_r) // IN2 + binary counter | |
| 379 | AM_RANGE(0xb004, 0xb004) AM_READ_PORT("IN0") | |
| 380 | AM_RANGE(0xb005, 0xb005) AM_READ_PORT("IN1") | |
| 381 | AM_RANGE(0xb006, 0xb006) AM_READ_PORT("DSW") | |
| 382 | AM_RANGE(0xb007, 0xb007) AM_READ_PORT("IN2") | |
| 233 | 383 | AM_RANGE(0xf800, 0xffff) AM_ROM |
| 234 | 384 | ADDRESS_MAP_END |
| 235 | 385 | |
| r1649 | r1650 | |
| 245 | 395 | AM_RANGE(0xb000, 0xb001) AM_WRITE(satansat_sound_w) |
| 246 | 396 | AM_RANGE(0xb002, 0xb002) AM_WRITE(satansat_b002_w) /* flip screen & irq enable */ |
| 247 | 397 | AM_RANGE(0xb003, 0xb003) AM_WRITE(satansat_backcolor_w) |
| 248 | AM_RANGE(0xb004, 0xb004) AM_READ(input_port_0_r) // IN0 | |
| 249 | AM_RANGE(0xb005, 0xb005) AM_READ(sasuke_port_1_r) // IN1 + music0 playing | |
| 250 | AM_RANGE(0xb006, 0xb006) AM_READ(input_port_2_r) /* DSW */ | |
| 251 | AM_RANGE(0xb007, 0xb007) AM_READ(sasuke_port_3_r) // IN2 + binary counter | |
| 398 | AM_RANGE(0xb004, 0xb004) AM_READ_PORT("IN0") | |
| 399 | AM_RANGE(0xb005, 0xb005) AM_READ_PORT("IN1") | |
| 400 | AM_RANGE(0xb006, 0xb006) AM_READ_PORT("DSW") | |
| 401 | AM_RANGE(0xb007, 0xb007) AM_READ_PORT("IN2") | |
| 252 | 402 | AM_RANGE(0xf800, 0xffff) AM_ROM |
| 253 | 403 | ADDRESS_MAP_END |
| 254 | 404 | |
| r1649 | r1650 | |
| 262 | 412 | AM_RANGE(0x3001, 0x3001) AM_WRITE(crtc6845_register_w) |
| 263 | 413 | AM_RANGE(0x3100, 0x3102) AM_WRITE(vanguard_sound_w) |
| 264 | 414 | AM_RANGE(0x3103, 0x3103) AM_WRITE(rockola_flipscreen_w) |
| 265 | AM_RANGE(0x3104, 0x3104) AM_READ(input_port_0_r) // IN0 | |
| 266 | AM_RANGE(0x3105, 0x3105) AM_READ(input_port_1_r) // IN1 | |
| 267 | AM_RANGE(0x3106, 0x3106) AM_READ(input_port_2_r) /* DSW */ | |
| 268 | AM_RANGE(0x3107, 0x3107) AM_READ(vanguard_port_3_r) // IN2 + music0 playing | |
| 415 | AM_RANGE(0x3104, 0x3104) AM_READ_PORT("IN0") | |
| 416 | AM_RANGE(0x3105, 0x3105) AM_READ_PORT("IN1") | |
| 417 | AM_RANGE(0x3106, 0x3106) AM_READ_PORT("DSW") | |
| 418 | AM_RANGE(0x3107, 0x3107) AM_READ_PORT("IN2") | |
| 269 | 419 | AM_RANGE(0x3200, 0x3200) AM_WRITE(rockola_scrollx_w) |
| 270 | 420 | AM_RANGE(0x3300, 0x3300) AM_WRITE(rockola_scrolly_w) |
| 271 | 421 | AM_RANGE(0x3400, 0x3400) AM_WRITE(vanguard_speech_w) // speech |
| r1649 | r1650 | |
| 282 | 432 | AM_RANGE(0x2000, 0x2000) AM_WRITE(crtc6845_address_w) |
| 283 | 433 | AM_RANGE(0x2001, 0x2001) AM_WRITE(crtc6845_register_w) |
| 284 | 434 | AM_RANGE(0x2100, 0x2103) AM_WRITE(fantasy_sound_w) |
| 285 | AM_RANGE(0x2104, 0x2104) AM_READ(input_port_0_r) // IN0 | |
| 286 | AM_RANGE(0x2105, 0x2105) AM_READ(input_port_1_r) // IN1 | |
| 287 | AM_RANGE(0x2106, 0x2106) AM_READ(input_port_2_r) /* DSW */ | |
| 288 | AM_RANGE(0x2107, 0x2107) AM_READ(input_port_3_r) // IN2 | |
| 435 | AM_RANGE(0x2104, 0x2104) AM_READ_PORT("IN0") | |
| 436 | AM_RANGE(0x2105, 0x2105) AM_READ_PORT("IN1") | |
| 437 | AM_RANGE(0x2106, 0x2106) AM_READ_PORT("DSW") | |
| 438 | AM_RANGE(0x2107, 0x2107) AM_READ_PORT("IN2") | |
| 289 | 439 | AM_RANGE(0x2200, 0x2200) AM_WRITE(rockola_scrollx_w) |
| 290 | 440 | AM_RANGE(0x2300, 0x2300) AM_WRITE(rockola_scrolly_w) |
| 291 | 441 | AM_RANGE(0x2400, 0x2400) AM_WRITE(fantasy_speech_w) // speech |
| r1649 | r1650 | |
| 303 | 453 | AM_RANGE(0xb000, 0xb000) AM_WRITE(crtc6845_address_w) |
| 304 | 454 | AM_RANGE(0xb001, 0xb001) AM_WRITE(crtc6845_register_w) |
| 305 | 455 | AM_RANGE(0xb100, 0xb103) AM_WRITE(fantasy_sound_w) |
| 306 | AM_RANGE(0xb104, 0xb104) AM_READ(input_port_0_r) // IN0 | |
| 307 | AM_RANGE(0xb105, 0xb105) AM_READ(input_port_1_r) // IN1 | |
| 308 | AM_RANGE(0xb106, 0xb106) AM_READ(input_port_2_r) /* DSW */ | |
| 309 | AM_RANGE(0xb107, 0xb107) AM_READ(input_port_3_r) // IN2 | |
| 456 | AM_RANGE(0xb104, 0xb104) AM_READ_PORT("IN0") | |
| 457 | AM_RANGE(0xb105, 0xb105) AM_READ_PORT("IN1") | |
| 458 | AM_RANGE(0xb106, 0xb106) AM_READ_PORT("DSW") | |
| 459 | AM_RANGE(0xb107, 0xb107) AM_READ_PORT("IN2") | |
| 310 | 460 | AM_RANGE(0xb200, 0xb200) AM_WRITE(rockola_scrollx_w) |
| 311 | 461 | AM_RANGE(0xb300, 0xb300) AM_WRITE(rockola_scrolly_w) |
| 312 | 462 | AM_RANGE(0xf000, 0xffff) AM_ROM |
| 313 | 463 | ADDRESS_MAP_END |
| 314 | 464 | |
| 315 | /* Input Ports */ | |
| 316 | 465 | |
| 317 | /* Derived from Zarzon. Might not reflect the actual hardware. */ | |
| 318 | static INPUT_PORTS_START( sasuke ) | |
| 319 | PORT_START // IN0 | |
| 320 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 321 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 322 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 323 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 324 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 325 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 326 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 327 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 466 | /************************************* | |
| 467 | * | |
| 468 | * Port definitions | |
| 469 | * | |
| 470 | *************************************/ | |
| 328 | 471 | |
| 329 | PORT_START // IN1 | |
| 472 | static INPUT_PORTS_START( rockola_generic_joy8way ) | |
| 473 | PORT_START_TAG("IN0") | |
| 330 | 474 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 331 | 475 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 332 | PORT_BIT( 0x7C, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 333 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* music0 playing */ | |
| 476 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 477 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 478 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN) PORT_8WAY | |
| 479 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP) PORT_8WAY | |
| 480 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 481 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 334 | 482 | |
| 335 | PORT_START /* DSW */ | |
| 336 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) | |
| 337 | PORT_DIPSETTING( 0x01, DEF_STR( Upright )) | |
| 483 | PORT_START_TAG("IN1") | |
| 484 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 485 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 486 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 487 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 488 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 489 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 490 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 491 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 492 | ||
| 493 | PORT_START_TAG("IN2") | |
| 494 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1) | |
| 495 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(1) | |
| 496 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 497 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 498 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 499 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 500 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 501 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 502 | ||
| 503 | PORT_START_TAG("DSW") | |
| 504 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:!1") | |
| 505 | PORT_DIPSETTING( 0x01, DEF_STR( Upright ) ) | |
| 338 | 506 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| 339 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Coinage ) ) | |
| 507 | PORT_DIPNAME( 0x0e, 0x02, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:!2,!3,!4") | |
| 508 | PORT_DIPSETTING ( 0x02, DEF_STR( 2C_1C ) ) | |
| 340 | 509 | PORT_DIPSETTING ( 0x00, DEF_STR( 1C_1C ) ) |
| 341 | PORT_DIPSETTING ( 0x02, DEF_STR( 1C_2C ) ) | |
| 342 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 343 | PORT_DIPSETTING ( 0x00, DEF_STR( Off ) ) | |
| 344 | PORT_DIPSETTING ( 0x04, DEF_STR( On ) ) | |
| 345 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 346 | PORT_DIPSETTING ( 0x00, DEF_STR( Off ) ) | |
| 347 | PORT_DIPSETTING ( 0x08, DEF_STR( On ) ) | |
| 348 | PORT_DIPNAME( 0x30, 0x00, DEF_STR( Lives ) ) | |
| 349 | PORT_DIPSETTING ( 0x00, "3" ) | |
| 350 | PORT_DIPSETTING ( 0x10, "4" ) | |
| 351 | PORT_DIPSETTING ( 0x20, "5" ) | |
| 352 | /* 0x30 gives 3 again */ | |
| 353 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 354 | PORT_DIPSETTING ( 0x00, DEF_STR( Off ) ) | |
| 355 | PORT_DIPSETTING ( 0x40, DEF_STR( On ) ) | |
| 356 | PORT_DIPNAME( 0x80, 0x00, "RAM Test" ) | |
| 357 | PORT_DIPSETTING ( 0x00, DEF_STR( Off ) ) | |
| 358 | PORT_DIPSETTING ( 0x80, DEF_STR( On ) ) | |
| 359 | ||
| 360 | PORT_START // IN2 | |
| 361 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(1) | |
| 362 | PORT_BIT( 0x0e, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* NC */ | |
| 363 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* connected to a binary counter */ | |
| 510 | PORT_DIPSETTING ( 0x08, DEF_STR( 1C_2C ) ) | |
| 511 | PORT_DIPSETTING ( 0x04, DEF_STR( 1C_3C ) ) | |
| 512 | PORT_DIPSETTING ( 0x0c, DEF_STR( 1C_6C ) ) | |
| 513 | /* PORT_DIPSETTING ( 0x06, DEF_STR( 1C_1C ) ) */ | |
| 514 | /* PORT_DIPSETTING ( 0x0a, DEF_STR( 1C_1C ) ) */ | |
| 515 | /* PORT_DIPSETTING ( 0x0e, DEF_STR( 1C_1C ) ) */ | |
| 516 | PORT_DIPNAME( 0x30, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:!5,!6") | |
| 517 | PORT_DIPSETTING( 0x00, "3" ) | |
| 518 | PORT_DIPSETTING( 0x10, "4" ) | |
| 519 | PORT_DIPSETTING( 0x20, "5" ) | |
| 520 | /* PORT_DIPSETTING( 0x30, "3" ) */ | |
| 521 | PORT_DIPNAME( 0x40, 0x00, "Coinage Bonus" ) PORT_DIPLOCATION("SW1:!7") /* see notes */ | |
| 522 | PORT_DIPSETTING ( 0x40, DEF_STR( 2C_1C ) ) | |
| 523 | PORT_DIPSETTING ( 0x00, DEF_STR( 1C_1C ) ) | |
| 524 | PORT_DIPUNUSED_DIPLOC( 0x80, IP_ACTIVE_HIGH, "SW1:!8" ) | |
| 364 | 525 | INPUT_PORTS_END |
| 365 | 526 | |
| 366 | 527 | static INPUT_PORTS_START( satansat ) |
| 367 | PORT_START | |
| 528 | PORT_START_TAG("IN0") | |
| 368 | 529 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 369 | 530 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 370 | 531 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| r1649 | r1650 | |
| 374 | 535 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) |
| 375 | 536 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL |
| 376 | 537 | |
| 377 | PORT_START | |
| 538 | PORT_START_TAG("IN1") | |
| 378 | 539 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) |
| 379 | 540 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 380 | PORT_BIT( 0x7C, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 381 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* music0 playing */ | |
| 541 | PORT_BIT( 0x7c, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 542 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(rockola_music0_r, NULL) /* music0 playing */ | |
| 382 | 543 | |
| 383 | PORT_START /* DSW */ | |
| 384 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) | |
| 385 | PORT_DIPSETTING( 0x01, DEF_STR( Upright )) | |
| 544 | PORT_START_TAG("IN2") | |
| 545 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(1) | |
| 546 | PORT_BIT( 0x0e, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* NC */ | |
| 547 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(sasuke_count_r, NULL) /* connected to a binary counter */ | |
| 548 | ||
| 549 | PORT_START_TAG("DSW") | |
| 550 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:!1") | |
| 551 | PORT_DIPSETTING( 0x01, DEF_STR( Upright ) ) | |
| 386 | 552 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| 387 | PORT_DIPNAME( 0x0a, 0x00, DEF_STR( Coinage ) ) | |
| 553 | PORT_DIPNAME( 0x0a, 0x00, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:!2,!4") | |
| 388 | 554 | PORT_DIPSETTING ( 0x08, DEF_STR( 2C_1C ) ) |
| 389 | 555 | PORT_DIPSETTING ( 0x00, DEF_STR( 1C_1C ) ) |
| 390 | 556 | PORT_DIPSETTING ( 0x02, DEF_STR( 1C_2C ) ) |
| 391 | /* 0x0a gives 2/1 again */ | |
| 392 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Bonus_Life ) ) | |
| 393 | PORT_DIPSETTING ( 0x00, "5000" ) | |
| 394 | PORT_DIPSETTING ( 0x04, "10000" ) | |
| 395 | PORT_DIPNAME( 0x30, 0x00, DEF_STR( Lives ) ) | |
| 557 | /* PORT_DIPSETTING ( 0x0a, DEF_STR( 2C_1C ) ) */ | |
| 558 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:!3") | |
| 559 | PORT_DIPSETTING ( 0x04, "5000" ) | |
| 560 | PORT_DIPSETTING ( 0x00, "10000" ) | |
| 561 | PORT_DIPNAME( 0x30, 0x10, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:!5,!6") /* manual says 4 is the default value */ | |
| 396 | 562 | PORT_DIPSETTING ( 0x00, "3" ) |
| 397 | 563 | PORT_DIPSETTING ( 0x10, "4" ) |
| 398 | 564 | PORT_DIPSETTING ( 0x20, "5" ) |
| 399 | /* 0x30 gives 3 again */ | |
| 400 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 565 | /* PORT_DIPSETTING( 0x30, "3" ) */ | |
| 566 | PORT_DIPUNUSED_DIPLOC( 0x40, IP_ACTIVE_HIGH, "SW1:!7" ) | |
| 567 | PORT_DIPNAME( 0x80, 0x00, "RAM Test" ) PORT_DIPLOCATION("SW1:!8") /* unused according to manual */ | |
| 401 | 568 | PORT_DIPSETTING ( 0x00, DEF_STR( Off ) ) |
| 402 | PORT_DIPSETTING ( 0x40, DEF_STR( On ) ) | |
| 403 | PORT_DIPNAME( 0x80, 0x00, "RAM Test" ) | |
| 404 | PORT_DIPSETTING ( 0x00, DEF_STR( Off ) ) | |
| 405 | 569 | PORT_DIPSETTING ( 0x80, DEF_STR( On ) ) |
| 570 | INPUT_PORTS_END | |
| 406 | 571 | |
| 407 | PORT_START // IN2 | |
| 408 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(1) | |
| 409 | PORT_BIT( 0x0e, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* NC */ | |
| 410 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* connected to a binary counter */ | |
| 572 | /* Derived from 'satansat'. Might not reflect the actual hardware. Dip Swicthes verified from game code though. */ | |
| 573 | static INPUT_PORTS_START( sasuke ) | |
| 574 | PORT_INCLUDE(satansat) | |
| 575 | ||
| 576 | PORT_MODIFY("IN0") | |
| 577 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 578 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 579 | ||
| 580 | PORT_MODIFY("IN1") | |
| 581 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 582 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 583 | ||
| 584 | PORT_MODIFY("DSW") | |
| 585 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:!2") | |
| 586 | PORT_DIPSETTING ( 0x00, DEF_STR( 1C_1C ) ) | |
| 587 | PORT_DIPSETTING ( 0x02, DEF_STR( 1C_2C ) ) | |
| 588 | PORT_DIPUNUSED_DIPLOC( 0x08, IP_ACTIVE_HIGH, "SW1:!4" ) | |
| 411 | 589 | INPUT_PORTS_END |
| 412 | 590 | |
| 413 | 591 | static INPUT_PORTS_START( vanguard ) |
| 414 | PORT_START // IN0 | |
| 415 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON3 ) | |
| 416 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON4 ) | |
| 417 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 418 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 419 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 420 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 421 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 422 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 592 | PORT_INCLUDE(rockola_generic_joy8way) | |
| 423 | 593 | |
| 424 | PORT_START // IN1 | |
| 425 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_COCKTAIL | |
| 426 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_COCKTAIL | |
| 427 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 428 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 429 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 430 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 431 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 432 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 594 | PORT_MODIFY("IN0") | |
| 595 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON3 ) /* fire down */ | |
| 596 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON4 ) /* fire up */ | |
| 597 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 ) /* fire right */ | |
| 598 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) /* fire left */ | |
| 433 | 599 | |
| 434 | PORT_START // DSW0 | |
| 435 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) | |
| 436 | PORT_DIPSETTING( 0x01, DEF_STR( Upright ) ) | |
| 437 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 438 | PORT_DIPNAME( 0x4e, 0x02, DEF_STR( Coinage ) ) | |
| 439 | PORT_DIPSETTING( 0x42, DEF_STR( 2C_1C ) ) | |
| 440 | PORT_DIPSETTING( 0x02, "1 Coin/1 Credit 2/3" ) | |
| 441 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) | |
| 442 | PORT_DIPSETTING( 0x48, "1 Coin/2 Credits 2/5" ) | |
| 443 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_3C ) ) | |
| 444 | PORT_DIPSETTING( 0x44, "1 Coin/3 Credits 2/7" ) | |
| 445 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) | |
| 446 | PORT_DIPSETTING( 0x4c, "1 Coin/6 Credits 2/13" ) | |
| 447 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_7C ) ) | |
| 448 | /* | |
| 449 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) ) | |
| 450 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_2C ) ) | |
| 451 | PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C ) ) | |
| 452 | PORT_DIPSETTING( 0x40, "1 Coin/1 Credit + Bonus" ) | |
| 453 | PORT_DIPSETTING( 0x46, "1 Coin/1 Credit + Bonus" ) | |
| 454 | PORT_DIPSETTING( 0x4a, "1 Coin/1 Credit + Bonus" ) | |
| 455 | PORT_DIPSETTING( 0x4e, "1 Coin/1 Credit + Bonus" ) | |
| 456 | */ | |
| 457 | PORT_DIPNAME( 0x30, 0x00, DEF_STR( Lives ) ) | |
| 458 | PORT_DIPSETTING( 0x00, "3" ) | |
| 459 | PORT_DIPSETTING( 0x10, "4" ) | |
| 460 | PORT_DIPSETTING( 0x20, "5" ) | |
| 461 | /* PORT_DIPSETTING( 0x30, "3" ) */ | |
| 462 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 600 | PORT_MODIFY("IN1") | |
| 601 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_COCKTAIL /* fire down */ | |
| 602 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_COCKTAIL /* fire up */ | |
| 603 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL /* fire right */ | |
| 604 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL /* fire left */ | |
| 463 | 605 | |
| 464 | PORT_START // IN2 | |
| 465 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1) | |
| 466 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(1) | |
| 467 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 468 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 469 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* music0 playing */ | |
| 470 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 471 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 472 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 606 | PORT_MODIFY("IN2") | |
| 607 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(rockola_music0_r, NULL) /* music0 playing */ | |
| 473 | 608 | INPUT_PORTS_END |
| 474 | 609 | |
| 475 | 610 | static INPUT_PORTS_START( fantasy ) |
| 476 | PORT_START // IN0 | |
| 477 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 478 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 479 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 480 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 481 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN) PORT_8WAY | |
| 482 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP) PORT_8WAY | |
| 483 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 484 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 611 | PORT_INCLUDE(rockola_generic_joy8way) | |
| 612 | INPUT_PORTS_END | |
| 485 | 613 | |
| 486 | PORT_START // IN1 | |
| 487 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 488 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 489 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 490 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 491 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 492 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 493 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 494 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 614 | static INPUT_PORTS_START( fantasyu ) | |
| 615 | PORT_INCLUDE(fantasy) | |
| 495 | 616 | |
| 496 | PORT_START // DSW0 | |
| 497 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) | |
| 498 | PORT_DIPSETTING( 0x01, DEF_STR( Upright ) ) | |
| 499 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 500 | PORT_DIPNAME( 0x4e, 0x02, DEF_STR( Coinage ) ) | |
| 501 | PORT_DIPSETTING( 0x42, DEF_STR( 2C_1C ) ) | |
| 502 | PORT_DIPSETTING( 0x02, "1 Coin/1 Credit 2/3" ) | |
| 503 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) | |
| 504 | PORT_DIPSETTING( 0x48, "1 Coin/2 Credits 2/5" ) | |
| 505 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_3C ) ) | |
| 506 | PORT_DIPSETTING( 0x44, "1 Coin/3 Credits 2/7" ) | |
| 507 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) | |
| 508 | PORT_DIPSETTING( 0x4c, "1 Coin/6 Credits 2/13" ) | |
| 509 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_7C ) ) | |
| 510 | /* | |
| 511 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) ) | |
| 512 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_2C ) ) | |
| 513 | PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C ) ) | |
| 514 | PORT_DIPSETTING( 0x40, "1 Coin/1 Credit + Bonus" ) | |
| 515 | PORT_DIPSETTING( 0x46, "1 Coin/1 Credit + Bonus" ) | |
| 516 | PORT_DIPSETTING( 0x4a, "1 Coin/1 Credit + Bonus" ) | |
| 517 | PORT_DIPSETTING( 0x4e, "1 Coin/1 Credit + Bonus" ) | |
| 518 | */ | |
| 519 | PORT_DIPNAME( 0x30, 0x00, DEF_STR( Lives ) ) | |
| 520 | PORT_DIPSETTING( 0x00, "3" ) | |
| 521 | PORT_DIPSETTING( 0x10, "4" ) | |
| 522 | PORT_DIPSETTING( 0x20, "5" ) | |
| 523 | /* PORT_DIPSETTING( 0x30, "3" ) */ | |
| 524 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Allow_Continue ) ) | |
| 617 | PORT_MODIFY("DSW") | |
| 618 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW1:!8") | |
| 525 | 619 | PORT_DIPSETTING( 0x80, DEF_STR( No ) ) |
| 526 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 620 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) /* 1st pattern only */ | |
| 621 | INPUT_PORTS_END | |
| 527 | 622 | |
| 528 | PORT_START // IN2 | |
| 529 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1) | |
| 530 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(1) | |
| 531 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 532 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 533 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 534 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 535 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 536 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 623 | static INPUT_PORTS_START( pballoon ) | |
| 624 | PORT_INCLUDE(rockola_generic_joy8way) | |
| 625 | ||
| 626 | PORT_MODIFY("IN0") | |
| 627 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 628 | ||
| 629 | PORT_MODIFY("IN1") | |
| 630 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 631 | ||
| 632 | PORT_MODIFY("DSW") | |
| 633 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Language ) ) PORT_DIPLOCATION("SW1:!8") /* code at 0x6c83 */ | |
| 634 | PORT_DIPSETTING( 0x80, DEF_STR( English ) ) | |
| 635 | PORT_DIPSETTING( 0x00, DEF_STR( Japanese ) ) | |
| 537 | 636 | INPUT_PORTS_END |
| 538 | 637 | |
| 539 | 638 | static INPUT_PORTS_START( nibbler ) |
| 540 | PORT_START // IN0 | |
| 541 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Debug 0") PORT_CODE(KEYCODE_Z) // slow down | |
| 542 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Debug 1") PORT_CODE(KEYCODE_X) | |
| 543 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Debug 2") PORT_CODE(KEYCODE_C) | |
| 544 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Debug 3") PORT_CODE(KEYCODE_V) | |
| 545 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN) PORT_8WAY | |
| 546 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP) PORT_8WAY | |
| 547 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 548 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 639 | PORT_INCLUDE(rockola_generic_joy8way) | |
| 549 | 640 | |
| 550 | PORT_START // IN1 | |
| 551 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Debug 4") PORT_CODE(KEYCODE_B) // pause | |
| 552 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Debug 5") PORT_CODE(KEYCODE_N) // unpause | |
| 553 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Debug 6") PORT_CODE(KEYCODE_M) // end game | |
| 554 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Debug 7") PORT_CODE(KEYCODE_K) | |
| 555 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 556 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 557 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 558 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 641 | /* There are no buttons on a real "Nibbler" cabinet, but I guess that the game was tested | |
| 642 | with a "Vanguard" cabinet so they have been mapped with debug features. */ | |
| 643 | #if NIBBLER_HACK | |
| 644 | PORT_MODIFY("IN0") | |
| 645 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Debug 0") PORT_CODE(KEYCODE_Z) // slow down | |
| 646 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Debug 1") PORT_CODE(KEYCODE_X) | |
| 647 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Debug 2") PORT_CODE(KEYCODE_C) | |
| 648 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Debug 3") PORT_CODE(KEYCODE_V) | |
| 559 | 649 | |
| 560 | PORT_START // DSW0 | |
| 561 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) | |
| 650 | PORT_MODIFY("IN1") | |
| 651 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Debug 4") PORT_CODE(KEYCODE_B) // pause | |
| 652 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Debug 5") PORT_CODE(KEYCODE_N) // unpause | |
| 653 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Debug 6") PORT_CODE(KEYCODE_M) // end game | |
| 654 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Debug 7") PORT_CODE(KEYCODE_K) | |
| 655 | #endif | |
| 656 | ||
| 657 | PORT_MODIFY("DSW") | |
| 658 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:!1,!2") | |
| 562 | 659 | PORT_DIPSETTING( 0x00, "3" ) |
| 563 | 660 | PORT_DIPSETTING( 0x01, "4" ) |
| 564 | 661 | PORT_DIPSETTING( 0x02, "5" ) |
| 565 | 662 | PORT_DIPSETTING( 0x03, "6" ) |
| 566 | PORT_DIPNAME( 0x04, 0x00, "Pause at Corners" ) | |
| 663 | PORT_DIPNAME( 0x04, 0x00, "Pause at Corners" ) PORT_DIPLOCATION("SW1:!3") | |
| 567 | 664 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 568 | 665 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 569 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 666 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:!4") | |
| 570 | 667 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 571 | 668 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) |
| 572 | PORT_SERVICE( 0x10, IP_ACTIVE_HIGH ) | |
| 573 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Free_Play ) ) | |
| 669 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Service_Mode ) ) PORT_DIPLOCATION("SW1:!5") | |
| 574 | 670 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 671 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 672 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW1:!6") | |
| 673 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 575 | 674 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) |
| 576 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) ) | |
| 675 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:!7,!8") | |
| 577 | 676 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) |
| 578 | PORT_DIPSETTING( 0xc0, | |
| 677 | PORT_DIPSETTING( 0xc0, "2 | |
| 579 | 678 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| 580 | PORT_DIPSETTING( 0x80, DEF_STR( 2C_3C ) ) | |
| 581 | ||
| 582 | PORT_START // IN2 | |
| 583 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1) | |
| 584 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(1) | |
| 585 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 586 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 587 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 588 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 589 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 590 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 679 | PORT_DIPSETTING( 0x80, "1 Coin/1 Credit 2/3" ) | |
| 591 | 680 | INPUT_PORTS_END |
| 592 | 681 | |
| 593 | static INPUT_PORTS_START( pballoon ) | |
| 594 | PORT_START // IN0 | |
| 595 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 596 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 597 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 598 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 599 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 600 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 601 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 602 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 682 | static INPUT_PORTS_START( nibblera ) | |
| 683 | PORT_INCLUDE(nibbler) | |
| 603 | 684 | |
| 604 | PORT_START // IN1 | |
| 605 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 606 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 607 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 608 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 609 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 610 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 611 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 612 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 685 | PORT_MODIFY("DSW") | |
| 686 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:!3") | |
| 687 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) | |
| 688 | PORT_DIPSETTING( 0x04, DEF_STR( Hard ) ) | |
| 689 | INPUT_PORTS_END | |
| 613 | 690 | |
| 614 | PORT_START // DSW0 | |
| 615 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) | |
| 616 | PORT_DIPSETTING( 0x01, DEF_STR( Upright ) ) | |
| 617 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 618 | PORT_DIPNAME( 0x4e, 0x02, DEF_STR( Coinage ) ) | |
| 619 | PORT_DIPSETTING( 0x42, DEF_STR( 2C_1C ) ) | |
| 620 | PORT_DIPSETTING( 0x02, "1 Coin/1 Credit 2/3" ) | |
| 621 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) | |
| 622 | PORT_DIPSETTING( 0x48, "1 Coin/2 Credits 2/5" ) | |
| 623 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_3C ) ) | |
| 624 | PORT_DIPSETTING( 0x44, "1 Coin/3 Credits 2/7" ) | |
| 625 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) | |
| 626 | PORT_DIPSETTING( 0x4c, "1 Coin/6 Credits 2/11" ) | |
| 627 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_7C ) ) | |
| 628 | /* | |
| 629 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) ) | |
| 630 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_2C ) ) | |
| 631 | PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C ) ) | |
| 632 | PORT_DIPSETTING( 0x40, "1 Coin/1 Credit + Bonus" ) | |
| 633 | PORT_DIPSETTING( 0x46, "1 Coin/1 Credit + Bonus" ) | |
| 634 | PORT_DIPSETTING( 0x4a, "1 Coin/1 Credit + Bonus" ) | |
| 635 | PORT_DIPSETTING( 0x4e, "1 Coin/1 Credit + Bonus" ) | |
| 636 | */ | |
| 637 | PORT_DIPNAME( 0x30, 0x00, DEF_STR( Lives ) ) | |
| 638 | PORT_DIPSETTING( 0x00, "3" ) | |
| 639 | PORT_DIPSETTING( 0x10, "4" ) | |
| 640 | PORT_DIPSETTING( 0x20, "5" ) | |
| 641 | /* PORT_DIPSETTING( 0x30, "3" ) */ | |
| 642 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 643 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 644 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 691 | static INPUT_PORTS_START( nibblerb ) | |
| 692 | PORT_INCLUDE(nibblera) | |
| 645 | 693 | |
| 646 | PORT_START // IN2 | |
| 647 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1) | |
| 648 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(1) | |
| 649 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 650 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 651 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 652 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 653 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 654 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 694 | PORT_MODIFY("DSW") | |
| 695 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:!1,!2") | |
| 696 | PORT_DIPSETTING( 0x00, "2" ) | |
| 697 | PORT_DIPSETTING( 0x01, "3" ) | |
| 698 | PORT_DIPSETTING( 0x02, "4" ) | |
| 699 | PORT_DIPSETTING( 0x03, "5" ) | |
| 655 | 700 | INPUT_PORTS_END |
| 656 | 701 | |
| 657 | /* Graphics Layouts */ | |
| 658 | 702 | |
| 703 | /************************************* | |
| 704 | * | |
| 705 | * Graphics layouts | |
| 706 | * | |
| 707 | *************************************/ | |
| 708 | ||
| 659 | 709 | static const gfx_layout swapcharlayout = |
| 660 | 710 | { |
| 661 | 711 | 8,8, /* 8*8 characters */ |
| r1649 | r1650 | |
| 689 | 739 | 8*8 /* every char takes 8 consecutive bytes */ |
| 690 | 740 | }; |
| 691 | 741 | |
| 692 | /* Graphics Decode Information */ | |
| 693 | 742 | |
| 694 | 743 | static GFXDECODE_START( sasuke ) |
| 695 | 744 | GFXDECODE_ENTRY( 0, 0x1000, swapcharlayout, 0, 4 ) /* the game dynamically modifies this */ |
| r1649 | r1650 | |
| 706 | 755 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, charlayout, 8*4, 8 ) |
| 707 | 756 | GFXDECODE_END |
| 708 | 757 | |
| 709 | /* Sound Interfaces */ | |
| 710 | 758 | |
| 759 | /************************************* | |
| 760 | * | |
| 761 | * Sound Interfaces | |
| 762 | * | |
| 763 | *************************************/ | |
| 764 | ||
| 711 | 765 | static const struct CustomSound_interface custom_interface = |
| 712 | 766 | { |
| 713 | 767 | rockola_sh_start |
| r1649 | r1650 | |
| 935 | 989 | // BOMB GND: 2,9,26,27 +5V: 15,25 |
| 936 | 990 | }; |
| 937 | 991 | |
| 938 | /* Interrupt Generators */ | |
| 939 | 992 | |
| 993 | /************************************* | |
| 994 | * | |
| 995 | * Interrupt Generators | |
| 996 | * | |
| 997 | *************************************/ | |
| 998 | ||
| 940 | 999 | static INTERRUPT_GEN( satansat_interrupt ) |
| 941 | 1000 | { |
| 942 | 1001 | if (cpu_getiloops() != 0) |
| 943 | 1002 | { |
| 944 | UINT8 val = readinputport( | |
| 1003 | UINT8 val = readinputportbytag("IN2"); | |
| 945 | 1004 | |
| 946 | 1005 | coin_counter_w(0, val & 1); |
| 947 | 1006 | |
| r1649 | r1650 | |
| 957 | 1016 | { |
| 958 | 1017 | if (cpu_getiloops() != 0) |
| 959 | 1018 | { |
| 960 | UINT8 val = readinputport( | |
| 1019 | UINT8 val = readinputportbytag("IN2"); | |
| 961 | 1020 | |
| 962 | 1021 | coin_counter_w(0, val & 1); |
| 963 | 1022 | coin_counter_w(1, val & 2); |
| r1649 | r1650 | |
| 970 | 1029 | cpunum_set_input_line(machine, 0, M6502_IRQ_LINE, HOLD_LINE); /* one IRQ per frame */ |
| 971 | 1030 | } |
| 972 | 1031 | |
| 973 | /* Machine Initialization */ | |
| 974 | 1032 | |
| 1033 | /************************************* | |
| 1034 | * | |
| 1035 | * Machine initialisation | |
| 1036 | * | |
| 1037 | *************************************/ | |
| 1038 | ||
| 975 | 1039 | static MACHINE_RESET( sasuke ) |
| 976 | 1040 | { |
| 977 | 1041 | //rockola_set_music_clock(M_LN2 * (RES_K(1) + RES_K(10) * 2) * CAP_U(1)); |
| r1649 | r1650 | |
| 1004 | 1068 | rockola_set_music_clock(1 / 40.3); |
| 1005 | 1069 | } |
| 1006 | 1070 | |
| 1007 | /* Machine Drivers */ | |
| 1008 | 1071 | |
| 1072 | /************************************* | |
| 1073 | * | |
| 1074 | * Machine drivers | |
| 1075 | * | |
| 1076 | *************************************/ | |
| 1077 | ||
| 1009 | 1078 | static MACHINE_DRIVER_START( sasuke ) |
| 1010 | 1079 | // basic machine hardware |
| 1011 | 1080 | MDRV_CPU_ADD_TAG("main", M6502, 11289000/16) // 700 kHz |
| r1649 | r1650 | |
| 1159 | 1228 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 1160 | 1229 | MACHINE_DRIVER_END |
| 1161 | 1230 | |
| 1162 | /* ROMs */ | |
| 1163 | 1231 | |
| 1232 | /************************************* | |
| 1233 | * | |
| 1234 | * ROM definitions | |
| 1235 | * | |
| 1236 | *************************************/ | |
| 1237 | ||
| 1164 | 1238 | ROM_START( sasuke ) |
| 1165 | 1239 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 1166 | 1240 | ROM_LOAD( "sc1", 0x4000, 0x0800, CRC(34cbbe03) SHA1(3d643e11370e61dde0c42c7761a856c5cf53d621) ) |
| r1649 | r1650 | |
| 1592 | 1666 | ROM_LOAD( "g-0959-45.ic53", 0x1000, 0x0800, CRC(33189917) SHA1(01a1b1693db0172609780daeb60430fa0c8bcec2) ) |
| 1593 | 1667 | ROM_END |
| 1594 | 1668 | |
| 1595 | /* Game Drivers */ | |
| 1596 | 1669 | |
| 1670 | /************************************* | |
| 1671 | * | |
| 1672 | * Game drivers | |
| 1673 | * | |
| 1674 | *************************************/ | |
| 1675 | ||
| 1597 | 1676 | GAME( 1980, sasuke, 0, sasuke, sasuke, 0, ROT90, "SNK", "Sasuke vs. Commander", 0 ) |
| 1598 | 1677 | GAME( 1981, satansat, 0, satansat, satansat, 0, ROT90, "SNK", "Satan of Saturn (set 1)", GAME_IMPERFECT_SOUND ) |
| 1599 | 1678 | GAME( 1981, satansaa, satansat, satansat, satansat, 0, ROT90, "SNK", "Satan of Saturn (set 2)", GAME_IMPERFECT_SOUND ) |
| 1600 | 1679 | GAME( 1981, zarzon, satansat, satansat, satansat, 0, ROT90, "[SNK] (Taito America license)", "Zarzon", GAME_IMPERFECT_SOUND ) |
| 1601 | 1680 | GAME( 1981, vanguard, 0, vanguard, vanguard, 0, ROT90, "SNK", "Vanguard (SNK)", 0 ) |
| 1602 | 1681 | GAME( 1981, vangrdce, vanguard, vanguard, vanguard, 0, ROT90, "SNK (Centuri license)", "Vanguard (Centuri)", 0 ) |
| 1603 | GAME( 1981, vanguarj, | |
| 1682 | GAME( 1981, vanguarj, | |
| 1604 | 1683 | GAME( 1981, fantasy, 0, fantasy, fantasy, 0, ROT90, "SNK", "Fantasy (World)", 0 ) |
| 1605 | GAME( 1981, fantasyu, fantasy, fantasy, fantasy, 0, ROT90, "[SNK] (Rock-Ola license)", "Fantasy (US)", 0 ) | |
| 1606 | GAME( 1981, fantasyj, fantasy, fantasy, fantasy, 0, ROT90, "SNK", "Fantasy (Japan)", 0 ) | |
| 1684 | GAME( 1981, fantasyu, fantasy, fantasy, fantasyu, 0, ROT90, "[SNK] (Rock-Ola license)", "Fantasy (US)", 0 ) | |
| 1685 | GAME( 1981, fantasyj, fantasy, fantasy, fantasyu, 0, ROT90, "SNK", "Fantasy (Japan)", 0 ) | |
| 1607 | 1686 | GAME( 1982, pballoon, 0, pballoon, pballoon, 0, ROT90, "SNK", "Pioneer Balloon", 0 ) |
| 1608 | 1687 | GAME( 1982, nibbler, 0, nibbler, nibbler, 0, ROT90, "Rock-Ola", "Nibbler (set 1)", 0 ) |
| 1609 | GAME( 1982, nibblera, nibbler, nibbler, nibbler, 0, ROT90, "Rock-Ola", "Nibbler (set 2)", 0 ) | |
| 1610 | GAME( 1982, nibblerb, nibbler, nibbler, nibbler, 0, ROT90, "Rock-Ola", "Nibbler (set 3)", 0 ) | |
| 1611 | GAME( 1983, nibblero, nibbler, nibbler, nibbler, 0, ROT90, "Olympia", "Nibbler (Olympia)", 0 ) | |
| 1688 | GAME( 1982, nibblera, nibbler, nibbler, nibblera, 0, ROT90, "Rock-Ola", "Nibbler (set 2)", 0 ) | |
| 1689 | GAME( 1982, nibblerb, nibbler, nibbler, nibblerb, 0, ROT90, "Rock-Ola", "Nibbler (set 3)", 0 ) | |
| 1690 | GAME( 1983, nibblero, nibbler, nibbler, nibblerb, 0, ROT90, "Olympia", "Nibbler (Olympia)", 0 ) |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | * Maze Invaders (prototype) |
| 10 | 10 | * Bulls Eye Darts |
| 11 | 11 | |
| 12 | Centipede sync-prom added by HIGHWAYMAN. | |
| 13 | The prom pcb location is:P4 and is 256x4 | |
| 14 | (i need to update the dump, this one is read in 8bit-mode) | |
| 12 | Known ROMs (listed in the manual) that need to be dumped/verified: | |
| 15 | 13 | |
| 16 | Known roms (listed in the manual) that need to be dumped/verified: | |
| 14 | Centipede: | |
| 15 | 136001-203.d1 <-- Are these the proper labels for the timed version??? | |
| 16 | 136001-204.e1 | |
| 17 | 136001-205.fh1 | |
| 18 | 136001-206.j1 | |
| 17 | 19 | |
| 18 | Centipede: | |
| 19 | 136001-203.d1 <-- Are these the proper labels for the timed version??? | |
| 20 | 136001-204.e1 | |
| 21 | 136001-205.fh1 | |
| 22 | 136001-206.j1 | |
| 20 | 136001-303.d1 <-- Revision 3 set for the above listed roms | |
| 21 | 136001-304.e1 | |
| 22 | 136001-305.fh1 | |
| 23 | 136001-306.j1 | |
| 23 | 24 | |
| 24 | 136001-303.d1 <-- Revision 3 set for the above listed roms | |
| 25 | 136001-304.e1 | |
| 26 | 136001-305.fh1 | |
| 27 | 136001-306.j1 | |
| 25 | Milipede: | |
| 26 | 136013-109.5p | |
| 27 | 136013-110.5r | |
| 28 | 28 | |
| 29 | Milipede: | |
| 30 | 136013-109.5p | |
| 31 | 136013-110.5r | |
| 32 | ||
| 33 | 29 | **************************************************************************** |
| 34 | 30 | |
| 35 | 31 | Main clock: XTAL = 12.096 MHz |
| r1649 | r1650 | |
| 421 | 417 | ***************************************************************************/ |
| 422 | 418 | |
| 423 | 419 | #include "driver.h" |
| 420 | #include "deprecat.h" | |
| 424 | 421 | #include "cpu/s2650/s2650.h" |
| 425 | 422 | #include "machine/atari_vg.h" |
| 426 | 423 | #include "centiped.h" |
| r1649 | r1650 | |
| 1646 | 1643 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1647 | 1644 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 30*8-1) |
| 1648 | 1645 | MDRV_GFXDECODE(centiped) |
| 1649 | MDRV_PALETTE_LENGTH(4+4) | |
| 1650 | MDRV_COLORTABLE_LENGTH(4+4*4*4*4) | |
| 1646 | MDRV_PALETTE_LENGTH(4+4*4*4*4) | |
| 1651 | 1647 | |
| 1652 | MDRV_PALETTE_INIT(centiped) | |
| 1653 | 1648 | MDRV_VIDEO_START(centiped) |
| 1654 | 1649 | MDRV_VIDEO_UPDATE(centiped) |
| 1655 | 1650 | |
| r1649 | r1650 | |
| 1682 | 1677 | /* sound hardware */ |
| 1683 | 1678 | MDRV_SOUND_REPLACE("pokey", AY8910, 12096000/8) |
| 1684 | 1679 | MDRV_SOUND_CONFIG(centipdb_ay8910_interface) |
| 1685 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 1680 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 10.0) | |
| 1686 | 1681 | MACHINE_DRIVER_END |
| 1687 | 1682 | |
| 1688 | 1683 | |
| r1649 | r1650 | |
| 1695 | 1690 | /* sound hardware */ |
| 1696 | 1691 | MDRV_SOUND_REPLACE("pokey", AY8910, 12096000/8) |
| 1697 | 1692 | MDRV_SOUND_CONFIG(centipdb_ay8910_interface) |
| 1698 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 1693 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 15.0) | |
| 1699 | 1694 | MACHINE_DRIVER_END |
| 1700 | 1695 | |
| 1701 | 1696 | |
| r1649 | r1650 | |
| 1708 | 1703 | |
| 1709 | 1704 | /* video hardware */ |
| 1710 | 1705 | MDRV_GFXDECODE(milliped) |
| 1711 | MDRV_PALETTE_LENGTH(4*4+4*4) | |
| 1712 | MDRV_COLORTABLE_LENGTH(4*4+4*4*4*4*4) | |
| 1706 | MDRV_PALETTE_LENGTH(4*4+4*4*4*4*4) | |
| 1713 | 1707 | |
| 1714 | MDRV_PALETTE_INIT(milliped) | |
| 1715 | 1708 | MDRV_VIDEO_START(milliped) |
| 1716 | 1709 | MDRV_VIDEO_UPDATE(milliped) |
| 1717 | 1710 | |
| r1649 | r1650 | |
| 1735 | 1728 | |
| 1736 | 1729 | /* video hardware */ |
| 1737 | 1730 | MDRV_GFXDECODE(warlords) |
| 1738 | MDRV_PALETTE_LENGTH(128) | |
| 1739 | MDRV_COLORTABLE_LENGTH(8*4+8*4) | |
| 1731 | MDRV_PALETTE_LENGTH(8*4+8*4) | |
| 1740 | 1732 | |
| 1741 | 1733 | MDRV_PALETTE_INIT(warlords) |
| 1742 | 1734 | MDRV_VIDEO_START(warlords) |
| r1649 | r1650 | |
| 1776 | 1768 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1777 | 1769 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 30*8-1) |
| 1778 | 1770 | MDRV_GFXDECODE(centiped) |
| 1779 | MDRV_PALETTE_LENGTH(4+4) | |
| 1780 | MDRV_COLORTABLE_LENGTH(4+4*4*4*4) | |
| 1781 | MDRV_PALETTE_INIT(centiped) | |
| 1771 | MDRV_PALETTE_LENGTH(4+4*4*4*4) | |
| 1782 | 1772 | |
| 1783 | 1773 | MDRV_VIDEO_START(bullsdrt) |
| 1784 | 1774 | MDRV_VIDEO_UPDATE(bullsdrt) |
| r1649 | r1650 | |
| 1878 | 1868 | ROM_LOAD( "136001-213.p4", 0x0000, 0x0100, CRC(6fa3093a) SHA1(2b7aeca74c1ae4156bf1878453a047330f96f0a8) ) |
| 1879 | 1869 | ROM_END |
| 1880 | 1870 | |
| 1871 | ||
| 1881 | 1872 | ROM_START( millpac ) |
| 1882 | 1873 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 1883 | 1874 | ROM_LOAD( "millpac1.1d", 0x2000, 0x0800, CRC(4dd6913d) SHA1(9eca634e1a827f9bbcf3c532d44e175ac4751755) ) |
| r1649 | r1650 | |
| 1925 | 1916 | |
| 1926 | 1917 | |
| 1927 | 1918 | ROM_START( mazeinv ) |
| 1928 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 1919 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 1929 | 1920 | ROM_LOAD( "005.011", 0x3000, 0x1000, CRC(37129536) SHA1(356cb986a40b332100e00fb72194fd4dade2cba7) ) |
| 1930 | 1921 | ROM_LOAD( "004.011", 0x4000, 0x1000, CRC(2d0fbf2f) SHA1(9d4c2bc9f80604d1ff5c5bf5a4a78378efdd8b33) ) |
| 1931 | 1922 | ROM_LOAD( "003.011", 0x5000, 0x1000, CRC(0ff3747c) SHA1(1a7e1c487c24875dada967fb3a9ceaca25b7e2a7) ) |
| r1649 | r1650 | |
| 2027 | 2018 | GAME( 1980, warlords, 0, warlords, warlords, 0, ROT0, "Atari", "Warlords", GAME_SUPPORTS_SAVE ) |
| 2028 | 2019 | GAME( 1981, mazeinv, 0, mazeinv, mazeinv, 0, ROT270, "Atari", "Maze Invaders (prototype)", 0 ) |
| 2029 | 2020 | |
| 2030 | GAME( 1985, bullsdrt, 0, bullsdrt, bullsdrt, bullsdrt, ROT270, "Shinkai Inc. (Magic Eletronics Inc. licence)", "Bulls Eye Darts", GAME_ | |
| 2021 | GAME( 1985, bullsdrt, 0, bullsdrt, bullsdrt, bullsdrt, ROT270, "Shinkai Inc. (Magic Eletronics Inc. licence)", "Bulls Eye Darts", GAME_W |
| r1649 | r1650 | |
|---|---|---|
| 394 | 394 | ***************************************************************************/ |
| 395 | 395 | |
| 396 | 396 | #include "driver.h" |
| 397 | #include "deprecat.h" | |
| 397 | 398 | #include "taitoipt.h" |
| 398 | 399 | #include "cpu/m68000/m68000.h" |
| 399 | 400 | #include "video/taitoic.h" |
| r1649 | r1650 | |
|---|---|---|
| 45 | 45 | ***********************************************************************/ |
| 46 | 46 | |
| 47 | 47 | #include "driver.h" |
| 48 | #include "deprecat.h" | |
| 48 | 49 | #include "cpu/m6809/m6809.h" |
| 49 | 50 | |
| 50 | 51 | /* Set to 1 to display test results and skip on errors */ |
| r1649 | r1650 | |
|---|---|---|
| 313 | 313 | #define WELLTRIS_4P_HACK 0 |
| 314 | 314 | |
| 315 | 315 | #include "driver.h" |
| 316 | #include "deprecat.h" | |
| 316 | 317 | #include "sound/2610intf.h" |
| 317 | 318 | |
| 318 | 319 | UINT16 *welltris_spriteram; |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "includes/sprint8.h" |
| 9 | 10 | |
| 10 | 11 | static int steer_dir[8]; |
| r1649 | r1650 | |
|---|---|---|
| 729 | 729 | ROM_LOAD( "horserace_icb_1-1-87", 0x12000, 0x2000, CRC(6d5092e3) SHA1(ef99d1b858aef3c438c61c2b17e371dc6aca6623) ) |
| 730 | 730 | ROM_END |
| 731 | 731 | |
| 732 | GAME( 1982, m075, 0, gselect, gselect, 0, ROT0, "Greyhound Electronics", "M075 Poker (Version 16.03B)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) | |
| 733 | GAME( 1982, superbwl, 0, gselect, gselect, 0, ROT0, "Greyhound Electronics", "Super Bowl (Version 16.03B)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) | |
| 732 | GAME( 1982, m075, 0, gselect, gselect, 0, ROT0, "Greyhound Electronics", "M075 Poker (Version 16.03B)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) | |
| 733 | GAME( 1982, superbwl, 0, gselect, gselect, 0, ROT0, "Greyhound Electronics", "Super Bowl (Version 16.03B)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) | |
| 734 | 734 | |
| 735 | GAME( 1982, gs4002, 0, gselect, gselect, 0, ROT0, "Greyhound Electronics", "Selection (Version 40.02TMB) set 1", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 736 | GAME( 1982, gs4002a, gs4002, gselect, gselect, 0, ROT0, "Greyhound Electronics", "Selection (Version 40.02TMB) set 2", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 735 | GAME( 1982, gs4002, 0, gselect, gselect, 0, ROT0, "Greyhound Electronics", "Selection (Version 40.02TMB, set 1)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 736 | GAME( 1982, gs4002a, gs4002, gselect, gselect, 0, ROT0, "Greyhound Electronics", "Selection (Version 40.02TMB, set 2)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 737 | 737 | |
| 738 | GAME( 1984, gepoker, 0, gepoker, gepoker, 0, ROT0, "Greyhound Electronics", "Poker (Version 50.02 ICB)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 739 | GAME( 1984, gepoker1, 0, gepoker, gepoker, 0, ROT0, "Greyhound Electronics", "Poker (Version 50.08 IAM)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) | |
| 740 | GAME( 1984, gepoker2, gepoker, gepoker, gepoker, 0, ROT0, "Greyhound Electronics", "Poker (Version 50.02 ICB set 2)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 741 | GAME( 1984, gepoker3, gepoker, gepoker, gepoker, 0, ROT0, "Greyhound Electronics", "Poker (Version 50.02 ICB set 3)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 738 | GAME( 1984, gepoker, 0, gepoker, gepoker, 0, ROT0, "Greyhound Electronics", "Poker (Version 50.02 ICB, set 1)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 739 | GAME( 1984, gepoker1, 0, gepoker, gepoker, 0, ROT0, "Greyhound Electronics", "Poker (Version 50.08 IAM)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) | |
| 740 | GAME( 1984, gepoker2, gepoker, gepoker, gepoker, 0, ROT0, "Greyhound Electronics", "Poker (Version 50.02 ICB, set 2)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 741 | GAME( 1984, gepoker3, gepoker, gepoker, gepoker, 0, ROT0, "Greyhound Electronics", "Poker (Version 50.02 ICB, set 3)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 742 | 742 | |
| 743 | GAME( 1984, gt102c, 0, getrivia, getrivia, 0, ROT0, "Greyhound Electronics", "Trivia (Version 1.02C)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 744 | GAME( 1984, gt102b, gt102c, getrivia, getrivia, 0, ROT0, "Greyhound Electronics", "Trivia (Version 1.02B)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 745 | GAME( 1984, gt101c, gt102c, getrivia, getrivia, 0, ROT0, "Greyhound Electronics", "Trivia (Version 1.01C)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 746 | GAME( 1984, gt101c1, gt102c, getrivia, getrivia, 0, ROT0, "Greyhound Electronics", "Trivia (Version 1.01C Alt questions 1)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 747 | GAME( 1984, gt102c1, gt102c, getrivia, getrivia, 0, ROT0, "Greyhound Electronics", "Trivia (Version 1.02C Alt questions 1)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 748 | GAME( 1984, gt102c2, gt102c, getrivia, getrivia, 0, ROT0, "Greyhound Electronics", "Trivia (Version 1.02C Alt questions 2)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 749 | GAME( 1984, gt102c3, gt102c, getrivia, getrivia, 0, ROT0, "Greyhound Electronics", "Trivia (Version 1.02C Alt questions 3)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 743 | GAME( 1984, gt102c, 0, getrivia, getrivia, 0, ROT0, "Greyhound Electronics", "Trivia (Version 1.02C)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 744 | GAME( 1984, gt102b, gt102c, getrivia, getrivia, 0, ROT0, "Greyhound Electronics", "Trivia (Version 1.02B)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 745 | GAME( 1984, gt101c, gt102c, getrivia, getrivia, 0, ROT0, "Greyhound Electronics", "Trivia (Version 1.01C)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 746 | GAME( 1984, gt101c1, gt102c, getrivia, getrivia, 0, ROT0, "Greyhound Electronics", "Trivia (Version 1.01C, Alt questions 1)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 747 | GAME( 1984, gt102c1, gt102c, getrivia, getrivia, 0, ROT0, "Greyhound Electronics", "Trivia (Version 1.02C, Alt questions 1)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 748 | GAME( 1984, gt102c2, gt102c, getrivia, getrivia, 0, ROT0, "Greyhound Electronics", "Trivia (Version 1.02C, Alt questions 2)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 749 | GAME( 1984, gt102c3, gt102c, getrivia, getrivia, 0, ROT0, "Greyhound Electronics", "Trivia (Version 1.02C, Alt questions 3)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 750 | 750 | |
| 751 | GAME( 1985, sextriv1, 0, getrivia, sextriv1, 0, ROT0, "Kinky Kit and Game Co.", "Sexual Trivia (Version 1.02SB set 1)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 752 | GAME( 1985, sextriv2, sextriv1, getrivia, sextriv1, 0, ROT0, "Kinky Kit and Game Co.", "Sexual Trivia (Version 1.02SB set 2)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 751 | GAME( 1985, sextriv1, 0, getrivia, sextriv1, 0, ROT0, "Kinky Kit and Game Co.", "Sexual Trivia (Version 1.02SB, set 1)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 752 | GAME( 1985, sextriv2, sextriv1, getrivia, sextriv1, 0, ROT0, "Kinky Kit and Game Co.", "Sexual Trivia (Version 1.02SB, set 2)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) |
| r1649 | r1650 | |
|---|---|---|
| 39 | 39 | ***************************************************************************/ |
| 40 | 40 | |
| 41 | 41 | #include "driver.h" |
| 42 | #include "deprecat.h" | |
| 42 | 43 | #include "cpu/m6502/m6502.h" |
| 43 | 44 | #include "cpu/h6280/h6280.h" |
| 44 | 45 | #include "dec0.h" |
| r1649 | r1650 | |
|---|---|---|
| 180 | 180 | ***************************************************************************/ |
| 181 | 181 | |
| 182 | 182 | #include "driver.h" |
| 183 | #include "deprecat.h" | |
| 183 | 184 | #include "machine/eeprom.h" |
| 184 | 185 | #include "sound/es5506.h" |
| 185 | 186 | #include "seta.h" |
| 186 | 187 | |
| 187 | #include <math.h> | |
| 188 | ||
| 189 | 188 | /*************************************************************************** |
| 190 | 189 | |
| 191 | 190 |
| r1649 | r1650 | |
|---|---|---|
| 216 | 216 | ****************************************************************************/ |
| 217 | 217 | |
| 218 | 218 | #include "driver.h" |
| 219 | #include "deprecat.h" | |
| 219 | 220 | #include "taitoipt.h" |
| 220 | 221 | #include "audio/taitosnd.h" |
| 221 | 222 | #include "video/taitoic.h" |
| r1649 | r1650 | |
|---|---|---|
| 19 | 19 | |
| 20 | 20 | |
| 21 | 21 | #include "driver.h" |
| 22 | #include "deprecat.h" | |
| 22 | 23 | #include "machine/atarigen.h" |
| 23 | 24 | #include "machine/asic65.h" |
| 24 | 25 | #include "audio/atarijsa.h" |
| r1649 | r1650 | |
|---|---|---|
| 50 | 50 | |
| 51 | 51 | ***************************************************************************/ |
| 52 | 52 | #include "driver.h" |
| 53 | #include "deprecat.h" | |
| 53 | 54 | #include "sound/ay8910.h" |
| 54 | 55 | #include "sound/3812intf.h" |
| 55 | 56 | |
| r1649 | r1650 | |
| 433 | 434 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 434 | 435 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 435 | 436 | MDRV_GFXDECODE(cop01) |
| 436 | MDRV_PALETTE_LENGTH(256) | |
| 437 | MDRV_COLORTABLE_LENGTH(16+8*16+16*16) | |
| 437 | MDRV_PALETTE_LENGTH(16+8*16+16*16) | |
| 438 | 438 | |
| 439 | 439 | MDRV_PALETTE_INIT(cop01) |
| 440 | 440 | MDRV_VIDEO_START(cop01) |
| r1649 | r1650 | |
| 475 | 475 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 476 | 476 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 477 | 477 | MDRV_GFXDECODE(cop01) |
| 478 | MDRV_PALETTE_LENGTH(256) | |
| 479 | MDRV_COLORTABLE_LENGTH(16+8*16+16*16) | |
| 478 | MDRV_PALETTE_LENGTH(16+8*16+16*16) | |
| 480 | 479 | |
| 481 | 480 | MDRV_PALETTE_INIT(cop01) |
| 482 | 481 | MDRV_VIDEO_START(cop01) |
| r1649 | r1650 | |
|---|---|---|
| 182 | 182 | #include "video/crtc6845.h" |
| 183 | 183 | |
| 184 | 184 | #ifdef MAME_DEBUG |
| 185 | #define VERBOSE 1 | |
| 185 | #define MPU4VIDVERBOSE 1 | |
| 186 | 186 | #else |
| 187 | #define VERBOSE 0 | |
| 187 | #define MPU4VIDVERBOSE 0 | |
| 188 | 188 | #endif |
| 189 | 189 | |
| 190 | #define LOGSTUFF(x) do { if (VERBOSE) logerror x; } while (0) | |
| 190 | #define LOGSTUFF(x) do { if (MPU4VIDVERBOSE) logerror x; } while (0) | |
| 191 | 191 | |
| 192 | 192 | #define VIDEO_MASTER_CLOCK (10000000) |
| 193 | 193 |
| r1649 | r1650 | |
|---|---|---|
| 50 | 50 | |
| 51 | 51 | |
| 52 | 52 | #include "driver.h" |
| 53 | #include "deprecat.h" | |
| 53 | 54 | #include "sound/2151intf.h" |
| 54 | 55 | #include "sound/okim6295.h" |
| 55 | 56 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | driver by Luca Elia (l.elia@tin.it) |
| 6 | 6 | |
| 7 | 7 | |
| 8 | Main CPU : MC68000 | |
| 8 | Main CPU : MC68000 Or H8/3007 | |
| 9 | 9 | |
| 10 | 10 | Video Chips : Imagetek 14100 052 9227KK701 Or |
| 11 | 11 | Imagetek 14220 071 9338EK707 Or |
| r1649 | r1650 | |
| 45 | 45 | 98 Mahjong Gakuensai 2 VG340-A 14300 No sound CPU |
| 46 | 46 | 96 Mouja VG410-B 14300 No sound CPU |
| 47 | 47 | 99 Battle Bubble v2.00 LM2D-Y 14220 No sound CPU |
| 48 | 00 Puzzlet VG2200-(B) 14300 PIC? Protection? | |
| 48 | 49 | --------------------------------------------------------------------------- |
| 49 | 50 | |
| 50 | 51 | Not dumped yet: |
| r1649 | r1650 | |
| 80 | 81 | ***************************************************************************/ |
| 81 | 82 | |
| 82 | 83 | #include "driver.h" |
| 83 | #include "video/konamiic.h" | |
| 84 | #include "deprecat.h" | |
| 85 | #include "cpu/h83002/h83002.h" | |
| 84 | 86 | #include "cpu/upd7810/upd7810.h" |
| 85 | 87 | #include "machine/eeprom.h" |
| 88 | #include "video/konamiic.h" | |
| 86 | 89 | #include "sound/2610intf.h" |
| 87 | 90 | #include "sound/2151intf.h" |
| 88 | 91 | #include "sound/2413intf.h" |
| r1649 | r1650 | |
| 206 | 209 | if (ACCESSING_LSB) |
| 207 | 210 | { |
| 208 | 211 | data &= ~*metro_irq_enable; |
| 212 | ||
| 209 | 213 | if (data & 0x01) requested_int[0] = 0; |
| 210 | 214 | if (data & 0x02) requested_int[1] = 0; // DAITORIDE, BALCUBE, KARATOUR, MOUJA |
| 211 | 215 | if (data & 0x04) requested_int[2] = 0; |
| r1649 | r1650 | |
| 2088 | 2092 | |
| 2089 | 2093 | |
| 2090 | 2094 | /*************************************************************************** |
| 2095 | Puzzlet | |
| 2096 | ***************************************************************************/ | |
| 2091 | 2097 | |
| 2098 | static READ16_HANDLER( puzzlet_dsw_r ) | |
| 2099 | { | |
| 2100 | return readinputport(3); | |
| 2101 | } | |
| 2092 | 2102 | |
| 2103 | static WRITE16_HANDLER( puzzlet_irq_enable_w ) | |
| 2104 | { | |
| 2105 | if (ACCESSING_LSB) | |
| 2106 | *metro_irq_enable = data^0xffff; | |
| 2107 | } | |
| 2108 | ||
| 2109 | // H8/3007 CPU | |
| 2110 | static ADDRESS_MAP_START( puzzlet_map, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 2111 | AM_RANGE( 0x000000, 0x1fffff ) AM_ROM | |
| 2112 | AM_RANGE( 0x430000, 0x433fff ) AM_RAM | |
| 2113 | AM_RANGE( 0x470000, 0x47dfff ) AM_RAM | |
| 2114 | ||
| 2115 | AM_RANGE( 0x500000, 0x500001 ) AM_READWRITE( OKIM6295_status_0_msb_r, OKIM6295_data_0_msb_w ) | |
| 2116 | AM_RANGE( 0x580000, 0x580001 ) AM_WRITE( YM2413_register_port_0_msb_w ) | |
| 2117 | AM_RANGE( 0x580002, 0x580003 ) AM_WRITE( YM2413_data_port_0_msb_w ) | |
| 2118 | ||
| 2119 | AM_RANGE( 0x700000, 0x71ffff ) AM_READWRITE( MRA16_RAM, metro_vram_0_w ) AM_BASE( &metro_vram_0 ) // Layer 0 | |
| 2120 | AM_RANGE( 0x720000, 0x73ffff ) AM_READWRITE( MRA16_RAM, metro_vram_1_w ) AM_BASE( &metro_vram_1 ) // Layer 1 | |
| 2121 | AM_RANGE( 0x740000, 0x75ffff ) AM_READWRITE( MRA16_RAM, metro_vram_2_w ) AM_BASE( &metro_vram_2 ) // Layer 2 | |
| 2122 | AM_RANGE( 0x774000, 0x774fff ) AM_RAM AM_BASE( &spriteram16 ) AM_SIZE( &spriteram_size ) // Sprites | |
| 2123 | ||
| 2124 | AM_RANGE( 0x760000, 0x76ffff ) AM_READ( metro_bankedrom_r ) // Banked ROM | |
| 2125 | ||
| 2126 | // AM_RANGE( 0x772000, 0x773fff ) AM_RAM | |
| 2127 | AM_RANGE( 0x770000, 0x773fff ) AM_READWRITE( MRA16_RAM, metro_paletteram_w ) AM_BASE( &paletteram16 ) // Palette | |
| 2128 | ||
| 2129 | AM_RANGE( 0x775000, 0x777fff ) AM_RAM | |
| 2130 | ||
| 2131 | AM_RANGE( 0x778000, 0x7787ff ) AM_READWRITE( MRA16_RAM, MWA16_RAM ) AM_BASE(&metro_tiletable) AM_SIZE(&metro_tiletable_size ) // Tiles Set | |
| 2132 | AM_RANGE( 0x778800, 0x778813 ) AM_WRITE( MWA16_RAM ) AM_BASE( &metro_videoregs ) // Video Registers | |
| 2133 | AM_RANGE( 0x778840, 0x77884f ) AM_WRITE( metro_blitter_w ) AM_BASE( &metro_blitter_regs ) // Tiles Blitter | |
| 2134 | AM_RANGE( 0x778860, 0x77886b ) AM_WRITE( metro_window_w ) AM_BASE( &metro_window ) // Tilemap Window | |
| 2135 | AM_RANGE( 0x778870, 0x77887b ) AM_WRITE( MWA16_RAM ) AM_BASE( &metro_scroll ) // Scroll | |
| 2136 | AM_RANGE( 0x778890, 0x778891 ) AM_WRITE( MWA16_NOP ) // ? increasing | |
| 2137 | AM_RANGE( 0x7788a2, 0x7788a3 ) AM_WRITE( metro_irq_cause_w ) // IRQ Cause | |
| 2138 | AM_RANGE( 0x7788a4, 0x7788a5 ) AM_WRITE( puzzlet_irq_enable_w ) AM_BASE( &metro_irq_enable ) // IRQ Enable | |
| 2139 | ||
| 2140 | AM_RANGE( 0x7788aa, 0x7788ab ) AM_WRITE( MWA16_RAM ) AM_BASE( &metro_rombank ) // Rom Bank | |
| 2141 | AM_RANGE( 0x7788ac, 0x7788ad ) AM_WRITE( MWA16_RAM ) AM_BASE( &metro_screenctrl ) // Screen Control | |
| 2142 | ||
| 2143 | AM_RANGE( 0x7f2000, 0x7f3fff ) AM_RAM | |
| 2144 | ||
| 2145 | AM_RANGE( 0x7f8880, 0x7f8881 ) AM_READ( input_port_1_word_r ) | |
| 2146 | AM_RANGE( 0x7f8884, 0x7f8885 ) AM_READ( puzzlet_dsw_r ) | |
| 2147 | AM_RANGE( 0x7f8886, 0x7f8887 ) AM_READ( puzzlet_dsw_r ) | |
| 2148 | ||
| 2149 | AM_RANGE( 0x7f88a2, 0x7f88a3 ) AM_READ( metro_irq_cause_r ) // IRQ Cause | |
| 2150 | ADDRESS_MAP_END | |
| 2151 | ||
| 2152 | static READ8_HANDLER( puzzlet_port7_r ) | |
| 2153 | { | |
| 2154 | return input_port_2_word_r(0,0); | |
| 2155 | } | |
| 2156 | ||
| 2157 | static READ8_HANDLER( puzzlet_serB_r ) | |
| 2158 | { | |
| 2159 | return input_port_0_word_r(0,0); // coin | |
| 2160 | } | |
| 2161 | ||
| 2162 | static WRITE8_HANDLER( puzzlet_portb_w ) | |
| 2163 | { | |
| 2164 | // popmessage("PORTB %02x",data); | |
| 2165 | } | |
| 2166 | ||
| 2167 | static ADDRESS_MAP_START( puzzlet_io_map, ADDRESS_SPACE_IO, 8 ) | |
| 2168 | AM_RANGE( H8_PORT7, H8_PORT7 ) AM_READ( puzzlet_port7_r ) | |
| 2169 | AM_RANGE( H8_SERIAL_B, H8_SERIAL_B ) AM_READ( puzzlet_serB_r ) | |
| 2170 | AM_RANGE( H8_PORTB, H8_PORTB ) AM_READWRITE( input_port_3_r, puzzlet_portb_w ) | |
| 2171 | ADDRESS_MAP_END | |
| 2172 | ||
| 2173 | ||
| 2174 | /*************************************************************************** | |
| 2175 | ||
| 2176 | ||
| 2093 | 2177 | Input Ports |
| 2094 | 2178 | |
| 2095 | 2179 | |
| r1649 | r1650 | |
| 3300 | 3384 | |
| 3301 | 3385 | |
| 3302 | 3386 | /*************************************************************************** |
| 3387 | Puzzlet | |
| 3388 | ***************************************************************************/ | |
| 3389 | ||
| 3390 | static INPUT_PORTS_START( puzzlet ) | |
| 3391 | PORT_START // IN0 - ser B | |
| 3392 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 3393 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3394 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3395 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 3396 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3397 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_START2 ) | |
| 3398 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_START1 ) | |
| 3399 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3400 | ||
| 3401 | PORT_START // IN1 - 7f8880.w | |
| 3402 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3403 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 3404 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3405 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) // Next | |
| 3406 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3407 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3408 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3409 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3410 | ||
| 3411 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3412 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3413 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) // Rotate CW | |
| 3414 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3415 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) // Push | |
| 3416 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3417 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3418 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3419 | ||
| 3420 | PORT_START // IN2 - port 7 | |
| 3421 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 3422 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3423 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 3424 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3425 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 3426 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3427 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3428 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3429 | ||
| 3430 | PORT_START // IN3 - dsw? | |
| 3431 | PORT_DIPUNKNOWN( 0x0001, 0x0001 ) | |
| 3432 | PORT_DIPUNKNOWN( 0x0002, 0x0002 ) | |
| 3433 | PORT_DIPUNKNOWN( 0x0004, 0x0004 ) | |
| 3434 | PORT_DIPUNKNOWN( 0x0008, 0x0008 ) | |
| 3435 | PORT_DIPUNKNOWN( 0x0010, 0x0010 ) | |
| 3436 | PORT_DIPUNKNOWN( 0x0020, 0x0020 ) | |
| 3437 | PORT_DIPUNKNOWN( 0x0040, 0x0040 ) | |
| 3438 | PORT_DIPUNKNOWN( 0x0080, 0x0080 ) | |
| 3439 | ||
| 3440 | PORT_DIPUNKNOWN( 0x0100, 0x0100 ) | |
| 3441 | PORT_DIPUNKNOWN( 0x0200, 0x0200 ) | |
| 3442 | PORT_DIPUNKNOWN( 0x0400, 0x0400 ) | |
| 3443 | PORT_DIPUNKNOWN( 0x0800, 0x0800 ) | |
| 3444 | PORT_DIPUNKNOWN( 0x1000, 0x1000 ) | |
| 3445 | PORT_DIPUNKNOWN( 0x2000, 0x2000 ) | |
| 3446 | PORT_DIPUNKNOWN( 0x4000, 0x4000 ) | |
| 3447 | PORT_DIPUNKNOWN( 0x8000, 0x8000 ) | |
| 3448 | INPUT_PORTS_END | |
| 3449 | ||
| 3450 | ||
| 3451 | /*************************************************************************** | |
| 3303 | 3452 | Puzzli |
| 3304 | 3453 | ***************************************************************************/ |
| 3305 | 3454 | |
| r1649 | r1650 | |
| 4500 | 4649 | MACHINE_DRIVER_END |
| 4501 | 4650 | |
| 4502 | 4651 | |
| 4652 | static INTERRUPT_GEN( puzzlet_interrupt ) | |
| 4653 | { | |
| 4654 | switch ( cpu_getiloops() ) | |
| 4655 | { | |
| 4656 | case 0: | |
| 4657 | requested_int[1] = 1; | |
| 4658 | update_irq_state(); | |
| 4659 | break; | |
| 4660 | ||
| 4661 | case 1: | |
| 4662 | requested_int[3] = 1; | |
| 4663 | update_irq_state(); | |
| 4664 | break; | |
| 4665 | ||
| 4666 | case 2: | |
| 4667 | requested_int[5] = 1; | |
| 4668 | update_irq_state(); | |
| 4669 | break; | |
| 4670 | ||
| 4671 | case 3: | |
| 4672 | requested_int[2] = 1; | |
| 4673 | update_irq_state(); | |
| 4674 | break; | |
| 4675 | ||
| 4676 | default: | |
| 4677 | // timer | |
| 4678 | h8_3002_InterruptRequest(24); | |
| 4679 | break; | |
| 4680 | } | |
| 4681 | } | |
| 4682 | static MACHINE_DRIVER_START( puzzlet ) | |
| 4683 | ||
| 4684 | /* basic machine hardware */ | |
| 4685 | MDRV_CPU_ADD(H83007, XTAL_20MHz) // H8/3007 - Hitachi HD6413007F20 CPU. Clock 20MHz | |
| 4686 | ||
| 4687 | MDRV_CPU_PROGRAM_MAP(puzzlet_map,0) | |
| 4688 | MDRV_CPU_IO_MAP(puzzlet_io_map,0) | |
| 4689 | MDRV_CPU_VBLANK_INT(puzzlet_interrupt, 5) | |
| 4690 | ||
| 4691 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 4692 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 4693 | ||
| 4694 | MDRV_MACHINE_RESET(metro) | |
| 4695 | ||
| 4696 | /* video hardware */ | |
| 4697 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4698 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 4699 | MDRV_SCREEN_SIZE(320, 256-32) | |
| 4700 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 256-32-1) | |
| 4701 | MDRV_GFXDECODE(14300) | |
| 4702 | MDRV_PALETTE_LENGTH(8192) | |
| 4703 | ||
| 4704 | MDRV_VIDEO_START(metro_14300) | |
| 4705 | MDRV_VIDEO_UPDATE(metro) | |
| 4706 | ||
| 4707 | /* sound hardware */ | |
| 4708 | MDRV_SPEAKER_STANDARD_STEREO("left", "right") | |
| 4709 | ||
| 4710 | MDRV_SOUND_ADD(OKIM6295, XTAL_20MHz/5) | |
| 4711 | MDRV_SOUND_CONFIG(okim6295_interface_region_1_pin7low) | |
| 4712 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 0.50) | |
| 4713 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 0.50) | |
| 4714 | ||
| 4715 | MDRV_SOUND_ADD(YM2413, XTAL_20MHz/5) | |
| 4716 | MDRV_SOUND_ROUTE(0, "left", 0.90) | |
| 4717 | MDRV_SOUND_ROUTE(1, "right", 0.90) | |
| 4718 | MACHINE_DRIVER_END | |
| 4719 | ||
| 4720 | ||
| 4503 | 4721 | /*************************************************************************** |
| 4504 | 4722 | |
| 4505 | 4723 | |
| r1649 | r1650 | |
| 4641 | 4859 | blitter_bit = 3; |
| 4642 | 4860 | } |
| 4643 | 4861 | |
| 4862 | static DRIVER_INIT( puzzlet ) | |
| 4863 | { | |
| 4864 | metro_common(); | |
| 4865 | irq_line = 0; | |
| 4866 | blitter_bit = 0; | |
| 4867 | } | |
| 4644 | 4868 | |
| 4645 | 4869 | /*************************************************************************** |
| 4646 | 4870 | |
| r1649 | r1650 | |
| 5621 | 5845 | |
| 5622 | 5846 | /*************************************************************************** |
| 5623 | 5847 | |
| 5848 | Puzzlet | |
| 5849 | 2000 Yunizu Corporation | |
| 5850 | ||
| 5851 | Very small PCB using Metro-like hardware with | |
| 5852 | Imagetek GFX chip and H8/3007 CPU | |
| 5853 | ||
| 5854 | PCB Layout | |
| 5855 | ---------- | |
| 5856 | VG2200-(B) | |
| 5857 | |--------------------------------------------| | |
| 5858 | |TA7222 YM2413B SOUND4 PRG1 | | |
| 5859 | | VOL JRC3403 DSW1(8) | | |
| 5860 | | M6295 DSW2(8) CG2 CG3 | | |
| 5861 | | 20MHz | | |
| 5862 | | MM1035 |---------| | | |
| 5863 | | H8/3007 |IMAGETEK | CY7C199 | | |
| 5864 | |TD62307 HM6216255|14300 | | | |
| 5865 | |TD62064 | | CY7C199 | | |
| 5866 | | | | | | |
| 5867 | | DIP18 |---------| CY7C199 | | |
| 5868 | | JAMMA 26.666MHz | | |
| 5869 | |--------------------------------------------| | |
| 5870 | Notes: | |
| 5871 | H8/3007 - Hitachi HD6413007F20 CPU. Clock 20MHz | |
| 5872 | M6295 - Clock 4MHz [20/5]. Pin7 LOW | |
| 5873 | 14300 - Imagetek 14300 Graphics Generator IC | |
| 5874 | VSync - 58Hz | |
| 5875 | HSync - 15.26kHz | |
| 5876 | DIP18 - unknown chip with scratched surface. Probably a PIC. | |
| 5877 | HM6216255 - Hitachi 4M high speed SRAM (256-kword x16-bit) | |
| 5878 | CY7C199 - 32k x8 SRAM | |
| 5879 | YM2413B - Clock 4MHz [20/5] | |
| 5880 | MM1035 - System Reset IC with Watchdog Timer | |
| 5881 | TD62307 - 7 Channel Low Saturation Driver | |
| 5882 | TD62064 - 4 Channel High Current Darlington Driver | |
| 5883 | TA7222 - 40V 4.5A 12.5W 5.8W Audio Power Amplifier IC | |
| 5884 | ||
| 5885 | All ROMs 27C160 | |
| 5886 | ||
| 5887 | ***************************************************************************/ | |
| 5888 | ||
| 5889 | ROM_START( puzzlet ) | |
| 5890 | ROM_REGION( 0x200000, REGION_CPU1, 0 ) /* H8/3007 Code */ | |
| 5891 | ROM_LOAD16_WORD_SWAP( "prg1_ver2.u9", 0x000000, 0x200000, CRC(592760da) SHA1(08f7493d2e50831438f53bbf0ae211ec40057da7) ) | |
| 5892 | ||
| 5893 | ROM_REGION( 0x400000, REGION_GFX1, 0 ) /* Gfx + Data (Addressable by CPU & Blitter) */ | |
| 5894 | ROMX_LOAD( "cg2.u2", 0x000000, 0x200000, CRC(7720f2d8) SHA1(8e0ccd1e8efe00df909327aefdb1e23e50487524), ROM_GROUPWORD | ROM_SKIP(2)) | |
| 5895 | ROMX_LOAD( "cg3.u1", 0x000002, 0x200000, CRC(77d39d12) SHA1(4bb339e479f0425931cff4eef3a6bc6ad1fac1f5), ROM_GROUPWORD | ROM_SKIP(2)) | |
| 5896 | ||
| 5897 | ROM_REGION( 0x200000, REGION_SOUND1, 0 ) /* Samples */ | |
| 5898 | ROM_LOAD( "sound4.u23", 0x000000, 0x200000, CRC(9a611369) SHA1(97b9188354292b120a1bd0f01b4d884461bfa298) ) | |
| 5899 | ROM_END | |
| 5900 | ||
| 5901 | ||
| 5902 | /*************************************************************************** | |
| 5903 | ||
| 5624 | 5904 | Puzzli |
| 5625 | 5905 | Metro/Banpresto 1995 |
| 5626 | 5906 | |
| r1649 | r1650 | |
| 5876 | 6156 | |
| 5877 | 6157 | ***************************************************************************/ |
| 5878 | 6158 | |
| 5879 | /* year rom clone machine inputs init */ | |
| 5880 | GAME( 1992, karatour, 0, karatour, karatour, karatour, ROT0, "Mitchell", "The Karate Tournament", GAME_IMPERFECT_GRAPHICS ) | |
| 5881 | GAME( 1992, pangpoms, 0, pangpoms, pangpoms, metro, ROT0, "Metro", "Pang Pom's" , 0 ) | |
| 5882 | GAME( 1992, pangpomm, pangpoms, pangpoms, pangpoms, metro, ROT0, "Metro (Mitchell license)", "Pang Pom's (Mitchell)" , 0 ) | |
| 5883 | GAME( 1992, skyalert, 0, skyalert, skyalert, metro, ROT270, "Metro", "Sky Alert" , 0 ) | |
| 5884 | GAME( 1993?,ladykill, 0, karatour, ladykill, karatour, ROT90, "Yanyaka (Mitchell license)", "Lady Killer", GAME_IMPERFECT_GRAPHICS ) | |
| 5885 | GAME( 1993?,moegonta, ladykill, karatour, moegonta, karatour, ROT90, "Yanyaka", "Moeyo Gonta!! (Japan)", GAME_IMPERFECT_GRAPHICS ) | |
| 5886 | GAME( 1993, poitto, 0, poitto, poitto, metro, ROT0, "Metro / Able Corp.", "Poitto!" , 0 ) | |
| 5887 | GAME( 1994, dharma, 0, dharma, dharma, metro, ROT0, "Metro", "Dharma Doujou" , 0 ) | |
| 5888 | GAME( 1994, dharmak, dharma, dharma, dharma, dharmak, ROT0, "Metro", "Dharma Doujou (Korea)" , 0 ) | |
| 5889 | GAME( 1994, lastfort, 0, lastfort, lastfort, metro, ROT0, "Metro", "Last Fortress - Toride" , 0 ) | |
| 5890 | GAME( 1994, lastfero, lastfort, lastfort, lastfero, metro, ROT0, "Metro", "Last Fortress - Toride (Erotic)" , 0 ) | |
| 5891 | GAME( 1994, lastforg, lastfort, lastforg, ladykill, metro, ROT0, "Metro", "Last Fortress - Toride (German)" , 0 ) | |
| 5892 | GAME( 1994, toride2g, 0, toride2g, toride2g, metro, ROT0, "Metro", "Toride II Adauchi Gaiden", GAME_IMPERFECT_GRAPHICS ) | |
| 5893 | GAME( 1994, torid2gg, toride2g, toride2g, toride2g, metro, ROT0, "Metro", "Toride II Adauchi Gaiden (German)", GAME_IMPERFECT_GRAPHICS ) | |
| 5894 | GAME( 1994, toride2j, toride2g, toride2g, toride2g, metro, ROT0, "Metro", "Toride II (Japan)", GAME_IMPERFECT_GRAPHICS ) | |
| 5895 | GAME( 1994, gunmast, 0, pururun, gunmast, daitorid, ROT0, "Metro", "Gun Master" , 0 ) | |
| 5896 | GAME( 1995, daitorid, 0, daitorid, daitorid, daitorid, ROT0, "Metro", "Daitoride", GAME_IMPERFECT_GRAPHICS ) | |
| 5897 | GAME( 1995, dokyusei, 0, dokyusei, dokyusei, gakusai, ROT0, "Make Software / Elf / Media Trading", "Mahjong Doukyuusei" , 0 ) | |
| 5898 | GAME( 1995, dokyusp, 0, dokyusp, gakusai, gakusai, ROT0, "Make Software / Elf / Media Trading", "Mahjong Doukyuusei Special", 0 ) | |
| 5899 | GAME( 1995, pururun, 0, pururun, pururun, daitorid, ROT0, "Metro / Banpresto", "Pururun" , 0 ) | |
| 5900 | GAME( 1995, puzzli, 0, daitorid, puzzli, daitorid, ROT0, "Metro / Banpresto", "Puzzli", GAME_IMPERFECT_GRAPHICS ) | |
| 5901 | GAME( 1996, 3kokushi, 0, 3kokushi, 3kokushi, karatour, ROT0, "Mitchell", "Sankokushi (Japan)", GAME_IMPERFECT_GRAPHICS ) | |
| 5902 | GAME( 1996, balcube, 0, balcube, balcube, balcube, ROT0, "Metro", "Bal Cube" , 0 ) | |
| 5903 | GAME( 1996, bangball, 0, bangball, bangball, balcube, ROT0, "Banpresto / Kunihiko Tashiro+Goodhouse", "Bang Bang Ball (v1.05)" , 0 ) | |
| 5904 | GAME( 1999, batlbubl, bangball, batlbubl, batlbubl, balcube, ROT0, "Limenko", "Battle Bubble (v2.00)" , 0 ) | |
| 5905 | GAME( 1996, mouja, 0, mouja, mouja, mouja, ROT0, "Etona", "Mouja (Japan)", GAME_NO_COCKTAIL ) | |
| 5906 | GAME( 1997, gakusai, 0, gakusai, gakusai, gakusai, ROT0, "MakeSoft", "Mahjong Gakuensai (Japan)", GAME_IMPERFECT_GRAPHICS ) | |
| 5907 | GAME( 1998, gakusai2, 0, gakusai2, gakusai, gakusai, ROT0, "MakeSoft", "Mahjong Gakuensai 2 (Japan)" , 0 ) | |
| 5908 | ||
| 5909 | GAME( 1994, blzntrnd, 0, blzntrnd, blzntrnd, blzntrnd, ROT0, "Human Amusement", "Blazing Tornado", GAME_IMPERFECT_GRAPHICS ) | |
| 5910 | GAME( 1996, gstrik2, 0, gstrik2, gstrik2, blzntrnd, ROT0, "Human Amusement", "Grand Striker 2 (Japan)", GAME_IMPERFECT_GRAPHICS ) // priority between rounds | |
| 6159 | GAME( 1992, karatour, 0, karatour, karatour, karatour, ROT0, "Mitchell", "The Karate Tournament", GAME_IMPERFECT_GRAPHICS ) | |
| 6160 | GAME( 1992, pangpoms, 0, pangpoms, pangpoms, metro, ROT0, "Metro", "Pang Pom's", 0 ) | |
| 6161 | GAME( 1992, pangpomm, pangpoms, pangpoms, pangpoms, metro, ROT0, "Metro (Mitchell license)", "Pang Pom's (Mitchell)", 0 ) | |
| 6162 | GAME( 1992, skyalert, 0, skyalert, skyalert, metro, ROT270, "Metro", "Sky Alert", 0 ) | |
| 6163 | GAME( 1993?,ladykill, 0, karatour, ladykill, karatour, ROT90, "Yanyaka (Mitchell license)", "Lady Killer", GAME_IMPERFECT_GRAPHICS ) | |
| 6164 | GAME( 1993?,moegonta, ladykill, karatour, moegonta, karatour, ROT90, "Yanyaka", "Moeyo Gonta!! (Japan)", GAME_IMPERFECT_GRAPHICS ) | |
| 6165 | GAME( 1993, poitto, 0, poitto, poitto, metro, ROT0, "Metro / Able Corp.", "Poitto!", 0 ) | |
| 6166 | GAME( 1994, blzntrnd, 0, blzntrnd, blzntrnd, blzntrnd, ROT0, "Human Amusement", "Blazing Tornado", GAME_IMPERFECT_GRAPHICS ) | |
| 6167 | GAME( 1994, dharma, 0, dharma, dharma, metro, ROT0, "Metro", "Dharma Doujou", 0 ) | |
| 6168 | GAME( 1994, dharmak, dharma, dharma, dharma, dharmak, ROT0, "Metro", "Dharma Doujou (Korea)", 0 ) | |
| 6169 | GAME( 1994, lastfort, 0, lastfort, lastfort, metro, ROT0, "Metro", "Last Fortress - Toride", 0 ) | |
| 6170 | GAME( 1994, lastfero, lastfort, lastfort, lastfero, metro, ROT0, "Metro", "Last Fortress - Toride (Erotic)", 0 ) | |
| 6171 | GAME( 1994, lastforg, lastfort, lastforg, ladykill, metro, ROT0, "Metro", "Last Fortress - Toride (German)", 0 ) | |
| 6172 | GAME( 1994, toride2g, 0, toride2g, toride2g, metro, ROT0, "Metro", "Toride II Adauchi Gaiden", GAME_IMPERFECT_GRAPHICS ) | |
| 6173 | GAME( 1994, torid2gg, toride2g, toride2g, toride2g, metro, ROT0, "Metro", "Toride II Adauchi Gaiden (German)", GAME_IMPERFECT_GRAPHICS ) | |
| 6174 | GAME( 1994, toride2j, toride2g, toride2g, toride2g, metro, ROT0, "Metro", "Toride II (Japan)", GAME_IMPERFECT_GRAPHICS ) | |
| 6175 | GAME( 1994, gunmast, 0, pururun, gunmast, daitorid, ROT0, "Metro", "Gun Master", 0 ) | |
| 6176 | GAME( 1995, daitorid, 0, daitorid, daitorid, daitorid, ROT0, "Metro", "Daitoride", GAME_IMPERFECT_GRAPHICS ) | |
| 6177 | GAME( 1995, dokyusei, 0, dokyusei, dokyusei, gakusai, ROT0, "Make Software / Elf / Media Trading", "Mahjong Doukyuusei", 0 ) | |
| 6178 | GAME( 1995, dokyusp, 0, dokyusp, gakusai, gakusai, ROT0, "Make Software / Elf / Media Trading", "Mahjong Doukyuusei Special", 0 ) | |
| 6179 | GAME( 1995, pururun, 0, pururun, pururun, daitorid, ROT0, "Metro / Banpresto", "Pururun", 0 ) | |
| 6180 | GAME( 1995, puzzli, 0, daitorid, puzzli, daitorid, ROT0, "Metro / Banpresto", "Puzzli", GAME_IMPERFECT_GRAPHICS ) | |
| 6181 | GAME( 1996, 3kokushi, 0, 3kokushi, 3kokushi, karatour, ROT0, "Mitchell", "Sankokushi (Japan)", GAME_IMPERFECT_GRAPHICS ) | |
| 6182 | GAME( 1996, balcube, 0, balcube, balcube, balcube, ROT0, "Metro", "Bal Cube", 0 ) | |
| 6183 | GAME( 1996, bangball, 0, bangball, bangball, balcube, ROT0, "Banpresto / Kunihiko Tashiro+Goodhouse", "Bang Bang Ball (v1.05)", 0 ) | |
| 6184 | GAME( 1996, gstrik2, 0, gstrik2, gstrik2, blzntrnd, ROT0, "Human Amusement", "Grand Striker 2 (Japan)", GAME_IMPERFECT_GRAPHICS ) // priority between rounds | |
| 6185 | GAME( 1999, batlbubl, bangball, batlbubl, batlbubl, balcube, ROT0, "Limenko", "Battle Bubble (v2.00)", 0 ) | |
| 6186 | GAME( 1996, mouja, 0, mouja, mouja, mouja, ROT0, "Etona", "Mouja (Japan)", GAME_NO_COCKTAIL ) | |
| 6187 | GAME( 1997, gakusai, 0, gakusai, gakusai, gakusai, ROT0, "MakeSoft", "Mahjong Gakuensai (Japan)", GAME_IMPERFECT_GRAPHICS ) | |
| 6188 | GAME( 1998, gakusai2, 0, gakusai2, gakusai, gakusai, ROT0, "MakeSoft", "Mahjong Gakuensai 2 (Japan)", 0 ) | |
| 6189 | GAME( 2000, puzzlet, 0, puzzlet, puzzlet, puzzlet, ROT0, "Yunizu Corporation", "Puzzlet (Japan)", GAME_NOT_WORKING | GAME_NO_SOUND ) |
| r1649 | r1650 | |
|---|---|---|
| 127 | 127 | |
| 128 | 128 | |
| 129 | 129 | #include "driver.h" |
| 130 | #include "deprecat.h" | |
| 130 | 131 | #include "cpu/z80/z80.h" |
| 131 | 132 | #include "machine/segacrpt.h" |
| 132 | 133 | #include "sound/2203intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 99 | 99 | ***************************************************************************/ |
| 100 | 100 | |
| 101 | 101 | #include "driver.h" |
| 102 | #include "deprecat.h" | |
| 102 | 103 | #include "pacman.h" |
| 103 | 104 | #include "sound/namco.h" |
| 104 | 105 |
| r1649 | r1650 | |
|---|---|---|
| 35 | 35 | |
| 36 | 36 | |
| 37 | 37 | #include "driver.h" |
| 38 | #include "deprecat.h" | |
| 38 | 39 | #include "genesis.h" |
| 39 | 40 | |
| 40 | 41 | #define MASTER_CLOCK 53693100 |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | ***************************************************************************/ |
| 15 | 15 | |
| 16 | 16 | #include "driver.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | #include "cpu/m6809/m6809.h" |
| 18 | 19 | #include "sound/dac.h" |
| 19 | 20 | #include "sound/sn76496.h" |
| r1649 | r1650 | |
| 320 | 321 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 321 | 322 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 322 | 323 | MDRV_GFXDECODE(circusc) |
| 323 | MDRV_PALETTE_LENGTH(32) | |
| 324 | MDRV_COLORTABLE_LENGTH(16*16+16*16) | |
| 324 | MDRV_PALETTE_LENGTH(16*16+16*16) | |
| 325 | 325 | |
| 326 | 326 | MDRV_PALETTE_INIT(circusc) |
| 327 | 327 | MDRV_VIDEO_START(circusc) |
| r1649 | r1650 | |
| 382 | 382 | |
| 383 | 383 | ROM_REGION( 0x0220, REGION_PROMS, 0 ) |
| 384 | 384 | ROM_LOAD( "380_j18.2a", 0x0000, 0x020, CRC(10dd4eaa) SHA1(599acd25f36445221c553510a5de23ddba5ecc15) ) /* palette */ |
| 385 | ROM_LOAD( "380_j16.10c", 0x0020, 0x100, CRC(c244f2aa) SHA1(86df21c8e0b1ed51a0a4bd33dbb33f6efdea7d39) ) /* character lookup table */ | |
| 386 | ROM_LOAD( "380_j17.7b", 0x0120, 0x100, CRC(13989357) SHA1(0d61d468f6d3e1570fd18d236ec8cab92db4ed5c) ) /* sprite lookup table */ | |
| 385 | ROM_LOAD( "380_j17.7b", 0x0020, 0x100, CRC(13989357) SHA1(0d61d468f6d3e1570fd18d236ec8cab92db4ed5c) ) /* character lookup table */ | |
| 386 | ROM_LOAD( "380_j16.10c", 0x0120, 0x100, CRC(c244f2aa) SHA1(86df21c8e0b1ed51a0a4bd33dbb33f6efdea7d39) ) /* sprite lookup table */ | |
| 387 | 387 | ROM_END |
| 388 | 388 | |
| 389 | 389 | ROM_START( circusc2 ) |
| r1649 | r1650 | |
| 412 | 412 | |
| 413 | 413 | ROM_REGION( 0x0220, REGION_PROMS, 0 ) |
| 414 | 414 | ROM_LOAD( "380_j18.2a", 0x0000, 0x020, CRC(10dd4eaa) SHA1(599acd25f36445221c553510a5de23ddba5ecc15) ) /* palette */ |
| 415 | ROM_LOAD( "380_j16.10c", 0x0020, 0x100, CRC(c244f2aa) SHA1(86df21c8e0b1ed51a0a4bd33dbb33f6efdea7d39) ) /* character lookup table */ | |
| 416 | ROM_LOAD( "380_j17.7b", 0x0120, 0x100, CRC(13989357) SHA1(0d61d468f6d3e1570fd18d236ec8cab92db4ed5c) ) /* sprite lookup table */ | |
| 415 | ROM_LOAD( "380_j17.7b", 0x0020, 0x100, CRC(13989357) SHA1(0d61d468f6d3e1570fd18d236ec8cab92db4ed5c) ) /* character lookup table */ | |
| 416 | ROM_LOAD( "380_j16.10c", 0x0120, 0x100, CRC(c244f2aa) SHA1(86df21c8e0b1ed51a0a4bd33dbb33f6efdea7d39) ) /* sprite lookup table */ | |
| 417 | 417 | ROM_END |
| 418 | 418 | |
| 419 | 419 | ROM_START( circusc3 ) |
| r1649 | r1650 | |
| 442 | 442 | |
| 443 | 443 | ROM_REGION( 0x0220, REGION_PROMS, 0 ) |
| 444 | 444 | ROM_LOAD( "380_j18.2a", 0x0000, 0x020, CRC(10dd4eaa) SHA1(599acd25f36445221c553510a5de23ddba5ecc15) ) /* palette */ |
| 445 | ROM_LOAD( "380_j16.10c", 0x0020, 0x100, CRC(c244f2aa) SHA1(86df21c8e0b1ed51a0a4bd33dbb33f6efdea7d39) ) /* character lookup table */ | |
| 446 | ROM_LOAD( "380_j17.7b", 0x0120, 0x100, CRC(13989357) SHA1(0d61d468f6d3e1570fd18d236ec8cab92db4ed5c) ) /* sprite lookup table */ | |
| 445 | ROM_LOAD( "380_j17.7b", 0x0020, 0x100, CRC(13989357) SHA1(0d61d468f6d3e1570fd18d236ec8cab92db4ed5c) ) /* character lookup table */ | |
| 446 | ROM_LOAD( "380_j16.10c", 0x0120, 0x100, CRC(c244f2aa) SHA1(86df21c8e0b1ed51a0a4bd33dbb33f6efdea7d39) ) /* sprite lookup table */ | |
| 447 | 447 | ROM_END |
| 448 | 448 | |
| 449 | 449 | ROM_START( circuscc ) /* Version U */ |
| r1649 | r1650 | |
| 472 | 472 | |
| 473 | 473 | ROM_REGION( 0x0220, REGION_PROMS, 0 ) |
| 474 | 474 | ROM_LOAD( "380_j18.2a", 0x0000, 0x020, CRC(10dd4eaa) SHA1(599acd25f36445221c553510a5de23ddba5ecc15) ) /* palette */ |
| 475 | ROM_LOAD( "380_j16.10c", 0x0020, 0x100, CRC(c244f2aa) SHA1(86df21c8e0b1ed51a0a4bd33dbb33f6efdea7d39) ) /* character lookup table */ | |
| 476 | ROM_LOAD( "380_j17.7b", 0x0120, 0x100, CRC(13989357) SHA1(0d61d468f6d3e1570fd18d236ec8cab92db4ed5c) ) /* sprite lookup table */ | |
| 475 | ROM_LOAD( "380_j17.7b", 0x0020, 0x100, CRC(13989357) SHA1(0d61d468f6d3e1570fd18d236ec8cab92db4ed5c) ) /* character lookup table */ | |
| 476 | ROM_LOAD( "380_j16.10c", 0x0120, 0x100, CRC(c244f2aa) SHA1(86df21c8e0b1ed51a0a4bd33dbb33f6efdea7d39) ) /* sprite lookup table */ | |
| 477 | 477 | ROM_END |
| 478 | 478 | |
| 479 | 479 | ROM_START( circusce ) /* Version P */ |
| r1649 | r1650 | |
| 502 | 502 | |
| 503 | 503 | ROM_REGION( 0x0220, REGION_PROMS, 0 ) |
| 504 | 504 | ROM_LOAD( "380_j18.2a", 0x0000, 0x020, CRC(10dd4eaa) SHA1(599acd25f36445221c553510a5de23ddba5ecc15) ) /* palette */ |
| 505 | ROM_LOAD( "380_j16.10c", 0x0020, 0x100, CRC(c244f2aa) SHA1(86df21c8e0b1ed51a0a4bd33dbb33f6efdea7d39) ) /* character lookup table */ | |
| 506 | ROM_LOAD( "380_j17.7b", 0x0120, 0x100, CRC(13989357) SHA1(0d61d468f6d3e1570fd18d236ec8cab92db4ed5c) ) /* sprite lookup table */ | |
| 505 | ROM_LOAD( "380_j17.7b", 0x0020, 0x100, CRC(13989357) SHA1(0d61d468f6d3e1570fd18d236ec8cab92db4ed5c) ) /* character lookup table */ | |
| 506 | ROM_LOAD( "380_j16.10c", 0x0120, 0x100, CRC(c244f2aa) SHA1(86df21c8e0b1ed51a0a4bd33dbb33f6efdea7d39) ) /* sprite lookup table */ | |
| 507 | 507 | ROM_END |
| 508 | 508 | |
| 509 | 509 | |
| r1649 | r1650 | |
| 513 | 513 | } |
| 514 | 514 | |
| 515 | 515 | |
| 516 | GAME( 1984, circusc, 0, circusc, circusc, circusc, ROT90, "Konami", "Circus Charlie (Selectable level set 1)", GAME_SUPPORTS_SAVE ) | |
| 517 | GAME( 1984, circusc2, circusc, circusc, circusc, circusc, ROT90, "Konami", "Circus Charlie (Selectable level set 2)", GAME_SUPPORTS_SAVE ) | |
| 518 | GAME( 1984, circusc3, circusc, circusc, circusc, circusc, ROT90, "Konami", "Circus Charlie (No level select)", GAME_SUPPORTS_SAVE ) | |
| 516 | GAME( 1984, circusc, 0, circusc, circusc, circusc, ROT90, "Konami", "Circus Charlie (level select, set 1)", GAME_SUPPORTS_SAVE ) | |
| 517 | GAME( 1984, circusc2, circusc, circusc, circusc, circusc, ROT90, "Konami", "Circus Charlie (level select, set 2)", GAME_SUPPORTS_SAVE ) | |
| 518 | GAME( 1984, circusc3, circusc, circusc, circusc, circusc, ROT90, "Konami", "Circus Charlie (no level select)", GAME_SUPPORTS_SAVE ) | |
| 519 | 519 | GAME( 1984, circuscc, circusc, circusc, circusc, circusc, ROT90, "Konami (Centuri license)", "Circus Charlie (Centuri)", GAME_SUPPORTS_SAVE ) |
| 520 | 520 | GAME( 1984, circusce, circusc, circusc, circusc, circusc, ROT90, "Konami (Centuri license)", "Circus Charlie (Centuri, earlier)", GAME_SUPPORTS_SAVE ) |
| r1649 | r1650 | |
|---|---|---|
| 17 | 17 | ********************************************/ |
| 18 | 18 | |
| 19 | 19 | #include "driver.h" |
| 20 | #include "deprecat.h" | |
| 20 | 21 | |
| 21 | 22 | static UINT8 *vram1,*vram2; |
| 22 | 23 | static int vrambank=0; |
| r1649 | r1650 | |
|---|---|---|
| 17 | 17 | ***************************************************************************/ |
| 18 | 18 | |
| 19 | 19 | #include "driver.h" |
| 20 | #include "deprecat.h" | |
| 20 | 21 | #include "cpu/m6809/m6809.h" |
| 21 | 22 | #include "sound/sn76496.h" |
| 22 | 23 |
| r1649 | r1650 | |
|---|---|---|
| 19 | 19 | **************************************************************************/ |
| 20 | 20 | |
| 21 | 21 | #include "driver.h" |
| 22 | #include "deprecat.h" | |
| 22 | 23 | #include "cpu/tms32031/tms32031.h" |
| 23 | 24 | #include "cpu/adsp2100/adsp2100.h" |
| 24 | 25 | #include "audio/dcs.h" |
| r1649 | r1650 | |
|---|---|---|
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | 22 | #include "driver.h" |
| 23 | #include "deprecat.h" | |
| 23 | 24 | #include "video/tms9928a.h" |
| 24 | 25 | #include "sound/ay8910.h" |
| 25 | 26 |
| r1649 | r1650 | |
|---|---|---|
| 94 | 94 | ***************************************************************************/ |
| 95 | 95 | |
| 96 | 96 | #include "driver.h" |
| 97 | #include "deprecat.h" | |
| 97 | 98 | #include "taitoipt.h" |
| 98 | 99 | #include "video/taitoic.h" |
| 99 | 100 | #include "audio/taitosnd.h" |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | ***************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "cpu/konami/konami.h" /* for the callback and the firq irq definition */ |
| 13 | 14 | #include "video/konamiic.h" |
| 14 | 15 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 22 | 22 | ***************************************************************************/ |
| 23 | 23 | |
| 24 | 24 | #include "driver.h" |
| 25 | #include "deprecat.h" | |
| 25 | 26 | #include "sound/dac.h" |
| 26 | 27 | #include "sound/2151intf.h" |
| 27 | 28 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
|---|---|---|
| 34 | 34 | ***************************************************************************/ |
| 35 | 35 | |
| 36 | 36 | #include "driver.h" |
| 37 | #include "deprecat.h" | |
| 37 | 38 | #include "machine/6821pia.h" |
| 38 | 39 | #include "machine/8255ppi.h" |
| 39 | 40 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
|---|---|---|
| 77 | 77 | */ |
| 78 | 78 | |
| 79 | 79 | #include "driver.h" |
| 80 | #include "deprecat.h" | |
| 80 | 81 | #include "sound/2151intf.h" |
| 81 | 82 | #include "sound/okim6295.h" |
| 82 | 83 |
| r1649 | r1650 | |
|---|---|---|
| 59 | 59 | */ |
| 60 | 60 | |
| 61 | 61 | #include "driver.h" |
| 62 | #include "deprecat.h" | |
| 62 | 63 | |
| 63 | 64 | static UINT16 littlerb_vdp_address_low; |
| 64 | 65 | static UINT16 littlerb_vdp_address_high; |
| r1649 | r1650 | |
|---|---|---|
| 109 | 109 | */ |
| 110 | 110 | |
| 111 | 111 | #include "driver.h" |
| 112 | #include "deprecat.h" | |
| 112 | 113 | #include "cpu/powerpc/ppc.h" |
| 113 | 114 | #include "machine/intelfsh.h" |
| 114 | 115 | #include "machine/scsicd.h" |
| r1649 | r1650 | |
|---|---|---|
| 25 | 25 | ***************************************************************************/ |
| 26 | 26 | |
| 27 | 27 | #include "driver.h" |
| 28 | #include "deprecat.h" | |
| 28 | 29 | #include "cpu/m6502/m6502.h" |
| 29 | 30 | #include "sound/ay8910.h" |
| 30 | 31 | #include "sound/dac.h" |
| r1649 | r1650 | |
|---|---|---|
| 52 | 52 | *********************************************************************/ |
| 53 | 53 | |
| 54 | 54 | #include "driver.h" |
| 55 | #include "deprecat.h" | |
| 55 | 56 | #include "machine/eeprom.h" |
| 56 | 57 | |
| 57 | 58 | READ32_HANDLER(eolith_vram_r); |
| r1649 | r1650 | |
|---|---|---|
| 56 | 56 | ***************************************************************************/ |
| 57 | 57 | |
| 58 | 58 | #include "driver.h" |
| 59 | #include "deprecat.h" | |
| 59 | 60 | #include "sound/ay8910.h" |
| 60 | 61 | #include "sound/msm5232.h" |
| 61 | 62 | #include "cpu/m6805/m6805.h" |
| r1649 | r1650 | |
|---|---|---|
| 324 | 324 | |
| 325 | 325 | |
| 326 | 326 | #include "driver.h" |
| 327 | #include "deprecat.h" | |
| 327 | 328 | #include "cpu/mips/mips3.h" |
| 328 | 329 | #include "cpu/h83002/h83002.h" |
| 329 | 330 | #include "sound/c352.h" |
| r1649 | r1650 | |
|---|---|---|
| 68 | 68 | ******************************************************************************/ |
| 69 | 69 | |
| 70 | 70 | #include "driver.h" |
| 71 | #include "deprecat.h" | |
| 71 | 72 | #include "cpu/m68000/m68000.h" |
| 72 | 73 | #include "cpu/z80/z80.h" |
| 73 | 74 | #include "machine/eeprom.h" |
| r1649 | r1650 | |
|---|---|---|
| 124 | 124 | |
| 125 | 125 | |
| 126 | 126 | #include "driver.h" |
| 127 | #include "deprecat.h" | |
| 127 | 128 | #include "cpu/t11/t11.h" |
| 128 | 129 | #include "machine/atarigen.h" |
| 129 | 130 | #include "slapstic.h" |
| r1649 | r1650 | |
| 131 | 132 | #include "sound/5220intf.h" |
| 132 | 133 | #include "sound/2151intf.h" |
| 133 | 134 | #include "sound/pokey.h" |
| 134 | #include <math.h> | |
| 135 | 135 | |
| 136 | 136 | |
| 137 | 137 | #define MASTER_CLOCK XTAL_20MHz |
| r1649 | r1650 | |
|---|---|---|
| 122 | 122 | ******************************************************************************/ |
| 123 | 123 | |
| 124 | 124 | #include "driver.h" |
| 125 | #include "deprecat.h" | |
| 125 | 126 | #include "sound/2203intf.h" |
| 126 | 127 | #include "sound/samples.h" |
| 127 | 128 | #include "machine/mc8123.h" |
| r1649 | r1650 | |
| 1472 | 1473 | GAME( 1987, mnight, 0, mnight, mnight, mnight, ROT0, "UPL (Kawakus license)", "Mutant Night", GAME_IMPERFECT_GRAPHICS ) |
| 1473 | 1474 | GAME( 1987, arkarea, 0, mnight, arkarea, mnight, ROT0, "UPL", "Ark Area", 0 ) |
| 1474 | 1475 | GAME( 1988, robokid, 0, robokid, robokid, 0, ROT0, "UPL", "Atomic Robo-kid", 0 ) |
| 1475 | GAME( 1988, robokidj, robokid, robokid, robokidj, 0, ROT0, "UPL", "Atomic Robo-kid (Japan, Set 1)", 0 ) | |
| 1476 | GAME( 1988, robokdj2, robokid, robokid, robokidj, 0, ROT0, "UPL", "Atomic Robo-kid (Japan, Set 2)", 0 ) | |
| 1476 | GAME( 1988, robokidj, robokid, robokid, robokidj, 0, ROT0, "UPL", "Atomic Robo-kid (Japan, set 1)", 0 ) | |
| 1477 | GAME( 1988, robokdj2, robokid, robokid, robokidj, 0, ROT0, "UPL", "Atomic Robo-kid (Japan, set 2)", 0 ) | |
| 1477 | 1478 | GAME( 1989, omegaf, 0, omegaf, omegaf, 0, ROT270, "UPL", "Omega Fighter", 0 ) |
| 1478 | 1479 | GAME( 1989, omegafs, omegaf, omegaf, omegaf, 0, ROT270, "UPL", "Omega Fighter Special", 0 ) |
| r1649 | r1650 | |
|---|---|---|
| 30 | 30 | ***************************************************************************/ |
| 31 | 31 | |
| 32 | 32 | #include "driver.h" |
| 33 | #include "deprecat.h" | |
| 33 | 34 | #include "cpu/z80/z80.h" |
| 34 | 35 | #include "sound/3812intf.h" |
| 35 | 36 | #include "sound/msm5205.h" |
| r0 | r1650 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | Irem M52 hardware | |
| 4 | ||
| 5 | **************************************************************************** | |
| 6 | ||
| 7 | Moon Patrol memory map | |
| 8 | ||
| 9 | driver by Nicola Salmoria | |
| 10 | ||
| 11 | 0000-3fff ROM | |
| 12 | 8000-83ff Video RAM | |
| 13 | 8400-87ff Color RAM | |
| 14 | e000-e7ff RAM | |
| 15 | ||
| 16 | ||
| 17 | read: | |
| 18 | 8800 protection | |
| 19 | d000 IN0 | |
| 20 | d001 IN1 | |
| 21 | d002 IN2 | |
| 22 | d003 DSW1 | |
| 23 | d004 DSW2 | |
| 24 | ||
| 25 | write: | |
| 26 | c800-c8ff sprites | |
| 27 | d000 sound command | |
| 28 | d001 flip screen | |
| 29 | ||
| 30 | I/O ports | |
| 31 | write: | |
| 32 | 10-1f scroll registers | |
| 33 | 40 background #1 x position | |
| 34 | 60 background #1 y position | |
| 35 | 80 background #2 x position | |
| 36 | a0 background #2 y position | |
| 37 | c0 background control | |
| 38 | ||
| 39 | NOTE: It may be possible to remove the fake port now that conditional DIPS | |
| 40 | are supported. What should really be filled in for each mode? | |
| 41 | ||
| 42 | ***************************************************************************/ | |
| 43 | ||
| 44 | #include "driver.h" | |
| 45 | #include "m52.h" | |
| 46 | #include "audio/irem.h" | |
| 47 | #include "cpu/z80/z80.h" | |
| 48 | ||
| 49 | ||
| 50 | #define MASTER_CLOCK XTAL_18_432MHz | |
| 51 | ||
| 52 | ||
| 53 | ||
| 54 | /************************************* | |
| 55 | * | |
| 56 | * Custom input ports | |
| 57 | * | |
| 58 | *************************************/ | |
| 59 | ||
| 60 | static CUSTOM_INPUT( coin_mode ) | |
| 61 | { | |
| 62 | /* Based on the coin mode fill in the upper bits */ | |
| 63 | UINT8 port5 = readinputport(5); | |
| 64 | return (readinputport(4) & 0x04) ? (port5 & 0x0f) : (port5 >> 4); | |
| 65 | } | |
| 66 | ||
| 67 | ||
| 68 | ||
| 69 | /************************************* | |
| 70 | * | |
| 71 | * Memory maps | |
| 72 | * | |
| 73 | *************************************/ | |
| 74 | ||
| 75 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 76 | AM_RANGE(0x0000, 0x3fff) AM_ROM | |
| 77 | AM_RANGE(0x8000, 0x83ff) AM_READWRITE(MRA8_RAM, m52_videoram_w) AM_BASE(&videoram) | |
| 78 | AM_RANGE(0x8400, 0x87ff) AM_READWRITE(MRA8_RAM, m52_colorram_w) AM_BASE(&colorram) | |
| 79 | AM_RANGE(0x8800, 0x8800) AM_MIRROR(0x07ff) AM_READ(m52_protection_r) | |
| 80 | AM_RANGE(0xc800, 0xcbff) AM_MIRROR(0x0400) AM_WRITE(MWA8_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size) | |
| 81 | AM_RANGE(0xd000, 0xd000) AM_MIRROR(0x07fc) AM_WRITE(irem_sound_cmd_w) | |
| 82 | AM_RANGE(0xd001, 0xd001) AM_MIRROR(0x07fc) AM_WRITE(m52_flipscreen_w) /* + coin counters */ | |
| 83 | AM_RANGE(0xd000, 0xd000) AM_MIRROR(0x07f8) AM_READ_PORT("IN0") | |
| 84 | AM_RANGE(0xd001, 0xd001) AM_MIRROR(0x07f8) AM_READ_PORT("IN1") | |
| 85 | AM_RANGE(0xd002, 0xd002) AM_MIRROR(0x07f8) AM_READ_PORT("IN2") | |
| 86 | AM_RANGE(0xd003, 0xd003) AM_MIRROR(0x07f8) AM_READ_PORT("DSW0") | |
| 87 | AM_RANGE(0xd004, 0xd004) AM_MIRROR(0x07f8) AM_READ_PORT("DSW1") | |
| 88 | AM_RANGE(0xe000, 0xe7ff) AM_RAM | |
| 89 | ADDRESS_MAP_END | |
| 90 | ||
| 91 | ||
| 92 | static ADDRESS_MAP_START( alpha1v_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 93 | AM_RANGE(0x0000, 0x6fff) AM_ROM | |
| 94 | AM_RANGE(0x8000, 0x83ff) AM_READWRITE(MRA8_RAM, m52_videoram_w) AM_BASE(&videoram) | |
| 95 | AM_RANGE(0x8400, 0x87ff) AM_READWRITE(MRA8_RAM, m52_colorram_w) AM_BASE(&colorram) | |
| 96 | AM_RANGE(0xc800, 0xc9ff) AM_WRITE(MWA8_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size) AM_SHARE(1) // bigger or mirrored? | |
| 97 | AM_RANGE(0xd000, 0xd000) AM_READ_PORT("IN0") AM_WRITE(irem_sound_cmd_w) | |
| 98 | AM_RANGE(0xd001, 0xd001) AM_READ_PORT("IN1") AM_WRITE(m52_flipscreen_w) /* + coin counters */ | |
| 99 | AM_RANGE(0xd002, 0xd002) AM_READ_PORT("IN2") | |
| 100 | AM_RANGE(0xd003, 0xd003) AM_READ_PORT("DSW0") | |
| 101 | AM_RANGE(0xd004, 0xd004) AM_READ_PORT("DSW1") | |
| 102 | AM_RANGE(0xe000, 0xefff) AM_RAM // bigger or mirrored? | |
| 103 | ADDRESS_MAP_END | |
| 104 | ||
| 105 | ||
| 106 | static ADDRESS_MAP_START( main_portmap, ADDRESS_SPACE_IO, 8 ) | |
| 107 | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) ) | |
| 108 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x1f) AM_WRITE(m52_scroll_w) | |
| 109 | AM_RANGE(0x40, 0x40) AM_MIRROR(0x1f) AM_WRITE(m52_bg1xpos_w) | |
| 110 | AM_RANGE(0x60, 0x60) AM_MIRROR(0x1f) AM_WRITE(m52_bg1ypos_w) | |
| 111 | AM_RANGE(0x80, 0x80) AM_MIRROR(0x1f) AM_WRITE(m52_bg2xpos_w) | |
| 112 | AM_RANGE(0xa0, 0xa0) AM_MIRROR(0x1f) AM_WRITE(m52_bg2ypos_w) | |
| 113 | AM_RANGE(0xc0, 0xc0) AM_MIRROR(0x1f) AM_WRITE(m52_bgcontrol_w) | |
| 114 | ADDRESS_MAP_END | |
| 115 | ||
| 116 | ||
| 117 | ||
| 118 | /************************************* | |
| 119 | * | |
| 120 | * Port definitions | |
| 121 | * | |
| 122 | *************************************/ | |
| 123 | ||
| 124 | static INPUT_PORTS_START( mpatrol ) | |
| 125 | PORT_START_TAG("IN0") | |
| 126 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) | |
| 127 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) | |
| 128 | /* coin input must be active for ? frames to be consistently recognized */ | |
| 129 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_IMPULSE(17) | |
| 130 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 131 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 132 | ||
| 133 | PORT_START_TAG("IN1") | |
| 134 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 135 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 136 | PORT_BIT( 0x1c, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 137 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 138 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 139 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 140 | ||
| 141 | PORT_START_TAG("IN2") | |
| 142 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 143 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 144 | PORT_BIT( 0x0c, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 145 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 146 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 147 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 148 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 149 | ||
| 150 | PORT_START_TAG("DSW0") | |
| 151 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) | |
| 152 | PORT_DIPSETTING( 0x00, "1" ) | |
| 153 | PORT_DIPSETTING( 0x01, "2" ) | |
| 154 | PORT_DIPSETTING( 0x02, "3" ) | |
| 155 | PORT_DIPSETTING( 0x03, "5" ) | |
| 156 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) | |
| 157 | PORT_DIPSETTING( 0x0c, "10000 30000 50000" ) | |
| 158 | PORT_DIPSETTING( 0x08, "20000 40000 60000" ) | |
| 159 | PORT_DIPSETTING( 0x04, "10000" ) | |
| 160 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 161 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(coin_mode, NULL) | |
| 162 | /* Gets filled in based on the coin mode */ | |
| 163 | ||
| 164 | PORT_START_TAG("DSW1") | |
| 165 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) | |
| 166 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 167 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 168 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Cabinet ) ) | |
| 169 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 170 | PORT_DIPSETTING( 0x02, DEF_STR( Cocktail ) ) | |
| 171 | PORT_DIPNAME( 0x04, 0x04, "Coin Mode" ) | |
| 172 | PORT_DIPSETTING( 0x04, "Mode 1" ) | |
| 173 | PORT_DIPSETTING( 0x00, "Mode 2" ) | |
| 174 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 175 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 176 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 177 | /* In stop mode, press 2 to stop and 1 to restart */ | |
| 178 | PORT_DIPNAME( 0x10, 0x10, "Stop Mode (Cheat)") | |
| 179 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 180 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 181 | PORT_DIPNAME( 0x20, 0x20, "Sector Selection (Cheat)") | |
| 182 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 183 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 184 | PORT_DIPNAME( 0x40, 0x40, "Invulnerability (Cheat)") | |
| 185 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 186 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 187 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) | |
| 188 | ||
| 189 | /* Fake port to support the two different coin modes */ | |
| 190 | PORT_START_TAG("FAKE") | |
| 191 | PORT_DIPNAME( 0x0f, 0x0f, "Coinage Mode 1" ) /* mapped on coin mode 1 */ | |
| 192 | PORT_DIPSETTING( 0x09, DEF_STR( 7C_1C ) ) | |
| 193 | PORT_DIPSETTING( 0x0a, DEF_STR( 6C_1C ) ) | |
| 194 | PORT_DIPSETTING( 0x0b, DEF_STR( 5C_1C ) ) | |
| 195 | PORT_DIPSETTING( 0x0c, DEF_STR( 4C_1C ) ) | |
| 196 | PORT_DIPSETTING( 0x0d, DEF_STR( 3C_1C ) ) | |
| 197 | PORT_DIPSETTING( 0x0e, DEF_STR( 2C_1C ) ) | |
| 198 | PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) ) | |
| 199 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_2C ) ) | |
| 200 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_3C ) ) | |
| 201 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_4C ) ) | |
| 202 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_5C ) ) | |
| 203 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_6C ) ) | |
| 204 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_7C ) ) | |
| 205 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_8C ) ) | |
| 206 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 207 | PORT_DIPNAME( 0x30, 0x30, "Coin A Mode 2" ) /* mapped on coin mode 2 */ | |
| 208 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 209 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) | |
| 210 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) | |
| 211 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 212 | PORT_DIPNAME( 0xc0, 0xc0, "Coin B Mode 2" ) | |
| 213 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) | |
| 214 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) | |
| 215 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) | |
| 216 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) | |
| 217 | INPUT_PORTS_END | |
| 218 | ||
| 219 | ||
| 220 | static INPUT_PORTS_START( mpatrolw ) | |
| 221 | PORT_INCLUDE(mpatrol) | |
| 222 | ||
| 223 | PORT_MODIFY("DSW0") | |
| 224 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) | |
| 225 | PORT_DIPSETTING( 0x00, "2" ) | |
| 226 | PORT_DIPSETTING( 0x01, "3" ) | |
| 227 | PORT_DIPSETTING( 0x02, "4" ) | |
| 228 | PORT_DIPSETTING( 0x03, "5" ) | |
| 229 | INPUT_PORTS_END | |
| 230 | ||
| 231 | ||
| 232 | static INPUT_PORTS_START( alpha1v ) | |
| 233 | PORT_INCLUDE(mpatrol) | |
| 234 | ||
| 235 | PORT_MODIFY("IN1") | |
| 236 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) | |
| 237 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) | |
| 238 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) | |
| 239 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) | |
| 240 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 241 | ||
| 242 | PORT_MODIFY("IN2") | |
| 243 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_COCKTAIL | |
| 244 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_COCKTAIL | |
| 245 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_COCKTAIL | |
| 246 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_COCKTAIL | |
| 247 | ||
| 248 | PORT_MODIFY("DSW0") | |
| 249 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) | |
| 250 | PORT_DIPSETTING( 0x00, "2" ) | |
| 251 | PORT_DIPSETTING( 0x01, "3" ) | |
| 252 | PORT_DIPSETTING( 0x02, "4" ) | |
| 253 | PORT_DIPSETTING( 0x03, "5" ) | |
| 254 | INPUT_PORTS_END | |
| 255 | ||
| 256 | ||
| 257 | ||
| 258 | /************************************* | |
| 259 | * | |
| 260 | * Graphics layouts | |
| 261 | * | |
| 262 | *************************************/ | |
| 263 | ||
| 264 | static const gfx_layout charlayout = | |
| 265 | { | |
| 266 | 8,8, | |
| 267 | RGN_FRAC(1,2), | |
| 268 | 2, | |
| 269 | { RGN_FRAC(0,2), RGN_FRAC(1,2) }, | |
| 270 | { STEP8(0,1) }, | |
| 271 | { STEP8(0,8) }, | |
| 272 | 8*8 | |
| 273 | }; | |
| 274 | ||
| 275 | static const gfx_layout spritelayout = | |
| 276 | { | |
| 277 | 16,16, | |
| 278 | RGN_FRAC(1,2), | |
| 279 | 2, | |
| 280 | { RGN_FRAC(0,2), RGN_FRAC(1,2) }, | |
| 281 | { STEP8(0,1), STEP8(16*8,1) }, | |
| 282 | { STEP16(0,8) }, | |
| 283 | 32*8 | |
| 284 | }; | |
| 285 | ||
| 286 | static const UINT32 bgcharlayout_xoffset[256] = | |
| 287 | { | |
| 288 | STEP4(0x000,1), STEP4(0x008,1), STEP4(0x010,1), STEP4(0x018,1), | |
| 289 | STEP4(0x020,1), STEP4(0x028,1), STEP4(0x030,1), STEP4(0x038,1), | |
| 290 | STEP4(0x040,1), STEP4(0x048,1), STEP4(0x050,1), STEP4(0x058,1), | |
| 291 | STEP4(0x060,1), STEP4(0x068,1), STEP4(0x070,1), STEP4(0x078,1), | |
| 292 | STEP4(0x080,1), STEP4(0x088,1), STEP4(0x090,1), STEP4(0x098,1), | |
| 293 | STEP4(0x0a0,1), STEP4(0x0a8,1), STEP4(0x0b0,1), STEP4(0x0b8,1), | |
| 294 | STEP4(0x0c0,1), STEP4(0x0c8,1), STEP4(0x0d0,1), STEP4(0x0d8,1), | |
| 295 | STEP4(0x0e0,1), STEP4(0x0e8,1), STEP4(0x0f0,1), STEP4(0x0f8,1), | |
| 296 | STEP4(0x100,1), STEP4(0x108,1), STEP4(0x110,1), STEP4(0x118,1), | |
| 297 | STEP4(0x120,1), STEP4(0x128,1), STEP4(0x130,1), STEP4(0x138,1), | |
| 298 | STEP4(0x140,1), STEP4(0x148,1), STEP4(0x150,1), STEP4(0x158,1), | |
| 299 | STEP4(0x160,1), STEP4(0x168,1), STEP4(0x170,1), STEP4(0x178,1), | |
| 300 | STEP4(0x180,1), STEP4(0x188,1), STEP4(0x190,1), STEP4(0x198,1), | |
| 301 | STEP4(0x1a0,1), STEP4(0x1a8,1), STEP4(0x1b0,1), STEP4(0x1b8,1), | |
| 302 | STEP4(0x1c0,1), STEP4(0x1c8,1), STEP4(0x1d0,1), STEP4(0x1d8,1), | |
| 303 | STEP4(0x1e0,1), STEP4(0x1e8,1), STEP4(0x1f0,1), STEP4(0x1f8,1) | |
| 304 | }; | |
| 305 | ||
| 306 | static const UINT32 bgcharlayout_yoffset[64] = | |
| 307 | { | |
| 308 | STEP32(0x0000,0x200), STEP32(0x4000,0x200) | |
| 309 | }; | |
| 310 | ||
| 311 | static const gfx_layout bgcharlayout = | |
| 312 | { | |
| 313 | 256, 64, /* 256x64 image format */ | |
| 314 | 1, /* 1 image */ | |
| 315 | 2, /* 2 bits per pixel */ | |
| 316 | { 4, 0 }, /* the two bitplanes for 4 pixels are packed into one byte */ | |
| 317 | EXTENDED_XOFFS, | |
| 318 | EXTENDED_YOFFS, | |
| 319 | 0x8000, | |
| 320 | bgcharlayout_xoffset, | |
| 321 | bgcharlayout_yoffset | |
| 322 | }; | |
| 323 | ||
| 324 | ||
| 325 | static GFXDECODE_START( m52 ) | |
| 326 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, charlayout, 0, 128 ) | |
| 327 | GFXDECODE_ENTRY( REGION_GFX2, 0x0000, spritelayout, 128*4, 16 ) | |
| 328 | GFXDECODE_ENTRY( REGION_GFX3, 0x0000, bgcharlayout, 128*4+16*4+0*4, 1 ) | |
| 329 | GFXDECODE_ENTRY( REGION_GFX4, 0x0000, bgcharlayout, 128*4+16*4+1*4, 1 ) | |
| 330 | GFXDECODE_ENTRY( REGION_GFX5, 0x0000, bgcharlayout, 128*4+16*4+2*4, 1 ) | |
| 331 | GFXDECODE_END | |
| 332 | ||
| 333 | ||
| 334 | ||
| 335 | /************************************* | |
| 336 | * | |
| 337 | * Machine drivers | |
| 338 | * | |
| 339 | *************************************/ | |
| 340 | ||
| 341 | static MACHINE_DRIVER_START( m52 ) | |
| 342 | ||
| 343 | /* basic machine hardware */ | |
| 344 | MDRV_CPU_ADD_TAG("main", Z80, MASTER_CLOCK/6) | |
| 345 | MDRV_CPU_PROGRAM_MAP(main_map,0) | |
| 346 | MDRV_CPU_IO_MAP(main_portmap,0) | |
| 347 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) | |
| 348 | ||
| 349 | /* video hardware */ | |
| 350 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 351 | MDRV_GFXDECODE(m52) | |
| 352 | MDRV_PALETTE_LENGTH(128*4+16*4+3*4) | |
| 353 | ||
| 354 | MDRV_SCREEN_ADD("main", 0) | |
| 355 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK/3, 384, 136, 376, 282, 22, 274) | |
| 356 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 357 | ||
| 358 | MDRV_PALETTE_INIT(m52) | |
| 359 | MDRV_VIDEO_START(m52) | |
| 360 | MDRV_VIDEO_UPDATE(m52) | |
| 361 | ||
| 362 | /* sound hardware */ | |
| 363 | MDRV_IMPORT_FROM(m52_small_audio) | |
| 364 | MACHINE_DRIVER_END | |
| 365 | ||
| 366 | ||
| 367 | static MACHINE_DRIVER_START( alpha1v ) | |
| 368 | MDRV_IMPORT_FROM(m52) | |
| 369 | ||
| 370 | /* basic machine hardware */ | |
| 371 | MDRV_CPU_MODIFY("main") | |
| 372 | MDRV_CPU_PROGRAM_MAP(alpha1v_map,0) | |
| 373 | MACHINE_DRIVER_END | |
| 374 | ||
| 375 | ||
| 376 | ||
| 377 | /************************************* | |
| 378 | * | |
| 379 | * ROM definitions | |
| 380 | * | |
| 381 | *************************************/ | |
| 382 | ||
| 383 | ROM_START( mpatrol ) | |
| 384 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 385 | ROM_LOAD( "mpa-1.3m", 0x0000, 0x1000, CRC(5873a860) SHA1(8c03726d6e049c3edbc277440184e31679f78258) ) | |
| 386 | ROM_LOAD( "mpa-2.3l", 0x1000, 0x1000, CRC(f4b85974) SHA1(dfb2efb57378a20af6f20569f4360cde95596f93) ) | |
| 387 | ROM_LOAD( "mpa-3.3k", 0x2000, 0x1000, CRC(2e1a598c) SHA1(112c3c9678db8a8540a8df3708020c87fd10c91b) ) | |
| 388 | ROM_LOAD( "mpa-4.3j", 0x3000, 0x1000, CRC(dd05b587) SHA1(727961b0dafa4a96b580d51013336db2a18aff1e) ) | |
| 389 | ||
| 390 | ROM_REGION( 0x8000, REGION_CPU2, 0 ) | |
| 391 | ROM_LOAD( "mp-s1.1a", 0x7000, 0x1000, CRC(561d3108) SHA1(4998c68a9e9a8002251fa8f07aa1082444a9dc80) ) | |
| 392 | ||
| 393 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 394 | ROM_LOAD( "mpe-5.3e", 0x0000, 0x1000, CRC(e3ee7f75) SHA1(b03d0d56150d3e9da4a4c871338097b4f450b649) ) /* chars */ | |
| 395 | ROM_LOAD( "mpe-4.3f", 0x1000, 0x1000, CRC(cca6d023) SHA1(fecb3059fb09897a096add9452b50aec55c07545) ) | |
| 396 | ||
| 397 | ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 398 | ROM_LOAD( "mpb-2.3m", 0x0000, 0x1000, CRC(707ace5e) SHA1(93c682e13e74bce29ced3a87bffb29569c114c3b) ) /* sprites */ | |
| 399 | ROM_LOAD( "mpb-1.3n", 0x1000, 0x1000, CRC(9b72133a) SHA1(1393ef92ae1ad58a4b62ca1660c0793d30a8b5e2) ) | |
| 400 | ||
| 401 | ROM_REGION( 0x1000, REGION_GFX3, ROMREGION_DISPOSE ) | |
| 402 | ROM_LOAD( "mpe-1.3l", 0x0000, 0x1000, CRC(c46a7f72) SHA1(8bb7c9acaf6833fb6c0575b015991b873a305a84) ) /* background graphics */ | |
| 403 | ||
| 404 | ROM_REGION( 0x1000, REGION_GFX4, ROMREGION_DISPOSE ) | |
| 405 | ROM_LOAD( "mpe-2.3k", 0x0000, 0x1000, CRC(c7aa1fb0) SHA1(14c6c76e1d0db2c0745e5d6d33ea6945fac8e9ee) ) | |
| 406 | ||
| 407 | ROM_REGION( 0x1000, REGION_GFX5, ROMREGION_DISPOSE ) | |
| 408 | ROM_LOAD( "mpe-3.3h", 0x0000, 0x1000, CRC(a0919392) SHA1(8a090cb8d483a3d67c7360058e3fdd70e151cd62) ) | |
| 409 | ||
| 410 | ROM_REGION( 0x0340, REGION_PROMS, 0 ) | |
| 411 | ROM_LOAD( "mpc-4.2a", 0x0000, 0x0200, CRC(07f99284) SHA1(dfc52958f2520e1ce4446dd4c84c91413bbacf76) ) | |
| 412 | ROM_LOAD( "mpc-3.1m", 0x0200, 0x0020, CRC(6a57eff2) SHA1(2d1c12dab5915da2ccd466e39436c88be434d634) ) /* background palette */ | |
| 413 | ROM_LOAD( "mpc-1.1f", 0x0220, 0x0020, CRC(26979b13) SHA1(8c41a8cce4f3384c392a9f7a223a50d7be0e14a5) ) /* sprite palette */ | |
| 414 | ROM_LOAD( "mpc-2.2h", 0x0240, 0x0100, CRC(7ae4cd97) SHA1(bc0662fac82ffe65f02092d912b2c2b0c7a8ac2b) ) /* sprite lookup table */ | |
| 415 | ROM_END | |
| 416 | ||
| 417 | ROM_START( mpatrolw ) | |
| 418 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 419 | ROM_LOAD( "mpa-1w.3m", 0x0000, 0x1000, CRC(baa1a1d4) SHA1(7968a7f221e7f4c9c81ddc8de17f6568e17b9ea8) ) | |
| 420 | ROM_LOAD( "mpa-2w.3l", 0x1000, 0x1000, CRC(52459e51) SHA1(ae685b7848baa1b87a3f2bce97356286171e16d4) ) | |
| 421 | ROM_LOAD( "mpa-3w.3k", 0x2000, 0x1000, CRC(9b249fe5) SHA1(c01e0d572c4c163f3cf4b2aa9f4246427811b78d) ) | |
| 422 | ROM_LOAD( "mpa-4w.3j", 0x3000, 0x1000, CRC(fee76972) SHA1(c3166b027f89f61964ead804d3c2da387454c4c2) ) | |
| 423 | ||
| 424 | ROM_REGION( 0x8000, REGION_CPU2, 0 ) | |
| 425 | ROM_LOAD( "mp-s1.1a", 0x7000, 0x1000, CRC(561d3108) SHA1(4998c68a9e9a8002251fa8f07aa1082444a9dc80) ) | |
| 426 | ||
| 427 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 428 | ROM_LOAD( "mpe-5w.3e", 0x0000, 0x1000, CRC(f56e01fe) SHA1(93f582d63b9cd5c6dca207aa57b213c939cdda1d) ) /* chars */ | |
| 429 | ROM_LOAD( "mpe-4w.3f", 0x1000, 0x1000, CRC(caaba2d9) SHA1(7016a26c2d01e3209749598e993cd8ce91f12c88) ) | |
| 430 | ||
| 431 | ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 432 | ROM_LOAD( "mpb-2.3m", 0x0000, 0x1000, CRC(707ace5e) SHA1(93c682e13e74bce29ced3a87bffb29569c114c3b) ) /* sprites */ | |
| 433 | ROM_LOAD( "mpb-1.3n", 0x1000, 0x1000, CRC(9b72133a) SHA1(1393ef92ae1ad58a4b62ca1660c0793d30a8b5e2) ) | |
| 434 | ||
| 435 | ROM_REGION( 0x1000, REGION_GFX3, ROMREGION_DISPOSE ) | |
| 436 | ROM_LOAD( "mpe-1.3l", 0x0000, 0x1000, CRC(c46a7f72) SHA1(8bb7c9acaf6833fb6c0575b015991b873a305a84) ) /* background graphics */ | |
| 437 | ||
| 438 | ROM_REGION( 0x1000, REGION_GFX4, ROMREGION_DISPOSE ) | |
| 439 | ROM_LOAD( "mpe-2.3k", 0x0000, 0x1000, CRC(c7aa1fb0) SHA1(14c6c76e1d0db2c0745e5d6d33ea6945fac8e9ee) ) | |
| 440 | ||
| 441 | ROM_REGION( 0x1000, REGION_GFX5, ROMREGION_DISPOSE ) | |
| 442 | ROM_LOAD( "mpe-3.3h", 0x0000, 0x1000, CRC(a0919392) SHA1(8a090cb8d483a3d67c7360058e3fdd70e151cd62) ) | |
| 443 | ||
| 444 | ROM_REGION( 0x0340, REGION_PROMS, 0 ) | |
| 445 | ROM_LOAD( "mpc-4a.2a", 0x0000, 0x0200, CRC(cb0a5ff3) SHA1(d3f88b4e0c4858abac8b52105656ecece0cf4df9) ) | |
| 446 | ROM_LOAD( "mpc-3.1m", 0x0200, 0x0020, CRC(6a57eff2) SHA1(2d1c12dab5915da2ccd466e39436c88be434d634) ) /* background palette */ | |
| 447 | ROM_LOAD( "mpc-1.1f", 0x0220, 0x0020, CRC(26979b13) SHA1(8c41a8cce4f3384c392a9f7a223a50d7be0e14a5) ) /* sprite palette */ | |
| 448 | ROM_LOAD( "mpc-2.2h", 0x0240, 0x0100, CRC(7ae4cd97) SHA1(bc0662fac82ffe65f02092d912b2c2b0c7a8ac2b) ) /* sprite lookup table */ | |
| 449 | ROM_END | |
| 450 | ||
| 451 | ||
| 452 | ROM_START( alpha1v ) | |
| 453 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 454 | ROM_LOAD( "2-m3", 0x0000, 0x1000, CRC(3a679d34) SHA1(1a54a43070c56dc91d4d258f29e29613bb309f1c) ) | |
| 455 | ROM_LOAD( "3-l3", 0x1000, 0x1000, CRC(2f09df64) SHA1(e91602e9e41ad24dd1d7f384ed81b9bdaadd03e1) ) | |
| 456 | ROM_LOAD( "4-k3", 0x2000, 0x1000, CRC(64fb9c8a) SHA1(735fd00cc42193a417e6cde75f12b4cf2e804942) ) | |
| 457 | ROM_LOAD( "5-j3", 0x3000, 0x1000, CRC(d1643d18) SHA1(7c794b82e17e2ba0a6237e3fc20d8314f6c2481c) ) | |
| 458 | ROM_LOAD( "6-h3", 0x4000, 0x1000, CRC(cf34ab51) SHA1(3696da71e2bc7edd1ee7aeaac87be5386608c09e) ) | |
| 459 | ROM_LOAD( "7-f3", 0x5000, 0x1000, CRC(99db9781) SHA1(a56a675cc4cbc9681bfe8052f51f19336eb2a0a6) ) | |
| 460 | ROM_LOAD( "7a e3", 0x6000, 0x1000, CRC(3b0b4b0d) SHA1(0d8eea1e2db269943611289b3490a578ee347f85) ) | |
| 461 | ||
| 462 | ROM_REGION( 0x8000, REGION_CPU2, 0 ) | |
| 463 | ROM_LOAD( "1-a1", 0x7000, 0x1000, CRC(9e07fdd5) SHA1(ed4f462fcfe91fa8e88bfeaaba0a0c11fa0b4601) ) | |
| 464 | ||
| 465 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 466 | ROM_LOAD( "14-e3", 0x0000, 0x1000, CRC(cf00c737) SHA1(415e90289039cac4d04cb1d559f1378ca6a32132) ) /* chars */ | |
| 467 | ROM_LOAD( "13-f3", 0x1000, 0x1000, CRC(4b799229) SHA1(42cbdcf787b08b041d30504d699a12c378224933) ) | |
| 468 | ||
| 469 | ROM_REGION( 0x3000, REGION_GFX2, ROMREGION_DISPOSE ) // 3bpp? (mpatrol is 2bpp..) | |
| 470 | ROM_LOAD( "15-n3", 0x0000, 0x1000, CRC(dc26df76) SHA1(dd1cff7935f5559f9d1b440e02d5e5aa521b0054) ) | |
| 471 | ROM_LOAD( "16-l3", 0x1000, 0x1000, CRC(39b9863b) SHA1(da9da9a1066188f050c422dfed1bbbd3ba612ccc) ) | |
| 472 | ROM_LOAD( "17-k3", 0x2000, 0x1000, CRC(cfd90773) SHA1(052e126888b6de636db9c521a090699c282b620b) ) | |
| 473 | ||
| 474 | /* all the background roms just contain stars.. */ | |
| 475 | ROM_REGION( 0x1000, REGION_GFX3, ROMREGION_DISPOSE ) | |
| 476 | ROM_LOAD( "11-k3", 0x0000, 0x1000, CRC(7659440a) SHA1(2efd27c82913513dd03e799f1ed3c10b0863677d) ) // these two match.. | |
| 477 | ROM_LOAD( "12-jh3", 0x0000, 0x1000, CRC(7659440a) SHA1(2efd27c82913513dd03e799f1ed3c10b0863677d) ) | |
| 478 | ||
| 479 | ROM_REGION( 0x1000, REGION_GFX4, ROMREGION_DISPOSE ) | |
| 480 | ROM_LOAD( "9-n3", 0x0000, 0x1000, CRC(0fdb7d13) SHA1(e828254a4f94df633d338b5772719276d41c6b7f) ) | |
| 481 | ||
| 482 | ROM_REGION( 0x1000, REGION_GFX5, ROMREGION_DISPOSE ) | |
| 483 | ROM_LOAD( "10-lm3", 0x0000, 0x1000, CRC(9dde3a75) SHA1(293d093485be19bfb20685d76a08ac78e24062bf) ) | |
| 484 | ||
| 485 | ROM_REGION( 0x0340, REGION_PROMS, 0 ) | |
| 486 | ROM_LOAD( "63s481-a2", 0x0000, 0x0200, CRC(58678ea8) SHA1(b13a78a5bca8ad5bdec1293512b53654768a7a7a) ) | |
| 487 | ROM_LOAD( "18s030-m1", 0x0200, 0x0020, CRC(6a57eff2) SHA1(2d1c12dab5915da2ccd466e39436c88be434d634) ) /* background palette */ | |
| 488 | ROM_LOAD( "mb7051-f1", 0x0220, 0x0020, CRC(d8bdd0df) SHA1(ca522428927911808214d319af314f601497ded4) ) /* sprite palette */ | |
| 489 | ROM_LOAD( "mb7052-h2", 0x0240, 0x0100, CRC(ce9f0ef9) SHA1(3afb94ed033f272983bbed22a59856df7824ef8a) ) /* sprite lookup table */ | |
| 490 | ROM_END | |
| 491 | ||
| 492 | ||
| 493 | ||
| 494 | /************************************* | |
| 495 | * | |
| 496 | * Game drivers | |
| 497 | * | |
| 498 | *************************************/ | |
| 499 | ||
| 500 | GAME( 1982, mpatrol, 0, m52, mpatrol, 0, ROT0, "Irem", "Moon Patrol", GAME_SUPPORTS_SAVE ) | |
| 501 | GAME( 1982, mpatrolw, mpatrol, m52, mpatrolw, 0, ROT0, "Irem (Williams license)", "Moon Patrol (Williams)", GAME_SUPPORTS_SAVE ) | |
| 502 | GAME( 1988, alpha1v, 0, alpha1v, alpha1v, 0, ROT0, "Vision Electronics", "Alpha One (Vision Electronics / Kyle Hodgetts)", GAME_NOT_WORKING|GAME_NO_SOUND ) |
| r1649 | r1650 | |
|---|---|---|
| 127 | 127 | ***************************************************************************/ |
| 128 | 128 | |
| 129 | 129 | #include "driver.h" |
| 130 | #include "deprecat.h" | |
| 130 | 131 | #include "sound/custom.h" |
| 131 | 132 | #include "includes/warpwarp.h" |
| 132 | 133 | #include "geebee.lh" |
| r1649 | r1650 | |
|---|---|---|
| 48 | 48 | #include "sound/custom.h" |
| 49 | 49 | #include "includes/amiga.h" |
| 50 | 50 | #include "includes/cubocd32.h" |
| 51 | //#include "memconv.h" | |
| 52 | 51 | |
| 53 | 52 | //READWRITE16BETO32BE(amiga_cia32,amiga_cia_r,amiga_cia_w) |
| 54 | 53 | //READWRITE16BETO32BE(amiga_custom32,amiga_custom_r,amiga_custom_w) |
| r1649 | r1650 | |
|---|---|---|
| 49 | 49 | |
| 50 | 50 | |
| 51 | 51 | #include "driver.h" |
| 52 | #include "deprecat.h" | |
| 53 | ||
| 52 | 54 | static int toggle_bit; |
| 53 | 55 | |
| 54 | 56 | static READ16_HANDLER( wheelfir_rand1 ) |
| r1649 | r1650 | |
| 299 | 301 | if (base<0x000000) base = 0x000000; |
| 300 | 302 | if (base>0x3c0000) base = 0x3c0000; |
| 301 | 303 | |
| 302 | copybitmap(bitmap, wheelfir_tmp_bitmap[2], 0, 0, 0, 0, cliprect, TRANSPARENCY_NONE, 0); | |
| 303 | //copybitmap(bitmap, wheelfir_tmp_bitmap[1], 0, 0, 0, 0, cliprect, TRANSPARENCY_PEN, 0); | |
| 304 | copybitmap(bitmap, wheelfir_tmp_bitmap[0], 0, 0, 0, 0, cliprect, TRANSPARENCY_PEN, 0); | |
| 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); | |
| 305 | 307 | fillbitmap(wheelfir_tmp_bitmap[0], 0,&machine->screen[0].visarea); |
| 306 | 308 | |
| 307 | 309 | if ( input_code_pressed(KEYCODE_R) ) |
| r1649 | r1650 | |
| 323 | 325 | } |
| 324 | 326 | */ |
| 325 | 327 | |
| 326 | copybitmap(bitmap, render_bitmap, 0, 0, 0, 0, cliprect, TRANSPARENCY_NONE, 0); | |
| 327 | copybitmap(bitmap, wheelfir_tmp_bitmap[0], 0, 0, 0, 0, cliprect, TRANSPARENCY_PEN, 0); | |
| 328 | copybitmap(bitmap, render_bitmap, 0, 0, 0, 0, cliprect); | |
| 329 | copybitmap_trans(bitmap, wheelfir_tmp_bitmap[0], 0, 0, 0, 0, cliprect, 0); | |
| 328 | 330 | |
| 329 | 331 | { |
| 330 | 332 | int x; |
| r1649 | r1650 | |
|---|---|---|
| 35 | 35 | |
| 36 | 36 | |
| 37 | 37 | #include "driver.h" |
| 38 | #include "deprecat.h" | |
| 38 | 39 | |
| 39 | 40 | static VIDEO_START(steaser) |
| 40 | 41 | { |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | ***************************************************************************/ |
| 15 | 15 | |
| 16 | 16 | #include "driver.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | #include "cpu/h6280/h6280.h" |
| 18 | 19 | #include "sound/2203intf.h" |
| 19 | 20 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 50 | 50 | *********************************************************************************************************************/ |
| 51 | 51 | |
| 52 | 52 | #include "driver.h" |
| 53 | #include "deprecat.h" | |
| 53 | 54 | #include "sound/ay8910.h" |
| 54 | 55 | #include "sound/okim6295.h" |
| 55 | 56 | #include "sound/2413intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 36 | 36 | */ |
| 37 | 37 | |
| 38 | 38 | #include "driver.h" |
| 39 | #include "deprecat.h" | |
| 39 | 40 | #include "sound/okim6295.h" |
| 40 | 41 | #include "sound/3812intf.h" |
| 41 | 42 |
| r1649 | r1650 | |
|---|---|---|
| 32 | 32 | ******************************************************************************/ |
| 33 | 33 | |
| 34 | 34 | #include "driver.h" |
| 35 | #include "deprecat.h" | |
| 35 | 36 | #include "cpu/z80/z80.h" |
| 36 | 37 | #include "sound/ay8910.h" |
| 37 | 38 | #include "sound/msm5205.h" |
| r1649 | r1650 | |
|---|---|---|
| 71 | 71 | */ |
| 72 | 72 | |
| 73 | 73 | #include "driver.h" |
| 74 | #include "deprecat.h" | |
| 74 | 75 | #include "cpu/z80/z80.h" |
| 75 | 76 | #include "sound/2203intf.h" |
| 76 | 77 | #include "sound/msm5205.h" |
| r1649 | r1650 | |
|---|---|---|
| 37 | 37 | extern UINT8 *kncljoe_scrollregs; |
| 38 | 38 | |
| 39 | 39 | |
| 40 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 41 | AM_RANGE(0x0000, 0xbfff) AM_READ(MRA8_ROM) | |
| 42 | AM_RANGE(0xc000, 0xcfff) AM_READ(MRA8_RAM) /* videoram */ | |
| 40 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 41 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 42 | AM_RANGE(0xc000, 0xcfff) AM_READWRITE(MRA8_RAM, kncljoe_videoram_w) AM_BASE(&videoram) | |
| 43 | AM_RANGE(0xd000, 0xd001) AM_WRITE(kncljoe_scroll_w) AM_BASE(&kncljoe_scrollregs) | |
| 43 | 44 | AM_RANGE(0xd800, 0xd800) AM_READ(input_port_0_r) /* IN 0 */ |
| 44 | 45 | AM_RANGE(0xd801, 0xd801) AM_READ(input_port_1_r) /* IN 1 */ |
| 45 | 46 | AM_RANGE(0xd802, 0xd802) AM_READ(input_port_2_r) /* IN 2 */ |
| 46 | 47 | AM_RANGE(0xd803, 0xd803) AM_READ(input_port_3_r) /* DSW A */ |
| 47 | 48 | AM_RANGE(0xd804, 0xd804) AM_READ(input_port_4_r) /* DSW B */ |
| 49 | AM_RANGE(0xd800, 0xd800) AM_WRITE(irem_sound_cmd_w) | |
| 50 | AM_RANGE(0xd801, 0xd803) AM_WRITE(kncljoe_control_w) | |
| 48 | 51 | AM_RANGE(0xd807, 0xd807) AM_READ(MRA8_NOP) /* unknown read */ |
| 49 | 52 | AM_RANGE(0xd817, 0xd817) AM_READ(MRA8_NOP) /* unknown read */ |
| 50 | AM_RANGE(0xe800, 0xefff) AM_READ(MRA8_RAM) /* spriteram */ | |
| 51 | AM_RANGE(0xf000, 0xffff) AM_READ(MRA8_RAM) | |
| 53 | AM_RANGE(0xe800, 0xefff) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size) | |
| 54 | AM_RANGE(0xf000, 0xffff) AM_RAM | |
| 52 | 55 | ADDRESS_MAP_END |
| 53 | 56 | |
| 54 | static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 55 | AM_RANGE(0x0000, 0xbfff) AM_WRITE(MWA8_ROM) | |
| 56 | AM_RANGE(0xc000, 0xcfff) AM_WRITE(kncljoe_videoram_w) AM_BASE(&videoram) | |
| 57 | AM_RANGE(0xd000, 0xd001) AM_WRITE(kncljoe_scroll_w) AM_BASE(&kncljoe_scrollregs) | |
| 58 | AM_RANGE(0xd800, 0xd800) AM_WRITE(irem_sound_cmd_w) | |
| 59 | AM_RANGE(0xd801, 0xd803) AM_WRITE(kncljoe_control_w) | |
| 60 | AM_RANGE(0xe800, 0xefff) AM_WRITE(MWA8_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size) | |
| 61 | AM_RANGE(0xf000, 0xffff) AM_WRITE(MWA8_RAM) | |
| 62 | ADDRESS_MAP_END | |
| 63 | ||
| 64 | 57 | /******************************************************************************/ |
| 65 | 58 | |
| 66 | 59 | static INPUT_PORTS_START( kncljoe ) |
| r1649 | r1650 | |
| 181 | 174 | /* basic machine hardware */ |
| 182 | 175 | // MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz */ |
| 183 | 176 | MDRV_CPU_ADD(Z80, 5500000) /* 4 MHz is too low. The game loop never finishes a frame in time. */ |
| 184 | MDRV_CPU_PROGRAM_MAP( | |
| 177 | MDRV_CPU_PROGRAM_MAP( | |
| 185 | 178 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 186 | 179 | |
| 187 | 180 | MDRV_SCREEN_REFRESH_RATE(60) |
| r1649 | r1650 | |
| 201 | 194 | MDRV_VIDEO_UPDATE(kncljoe) |
| 202 | 195 | |
| 203 | 196 | /* sound hardware */ |
| 204 | MDRV_IMPORT_FROM( | |
| 197 | MDRV_IMPORT_FROM( | |
| 205 | 198 | MACHINE_DRIVER_END |
| 206 | 199 | |
| 207 | 200 | |
| r1649 | r1650 | |
| 212 | 205 | ROM_LOAD( "kj-2.bin", 0x4000, 0x4000, CRC(cb11514b) SHA1(c75d4019d1617493ff074ce8187a81ad70d9b60c) ) |
| 213 | 206 | ROM_LOAD( "kj-3.bin", 0x8000, 0x4000, CRC(0f50697b) SHA1(412c6aba270824299ca2a74e9bea42b83e69797b) ) |
| 214 | 207 | |
| 215 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for audio code */ | |
| 216 | ROM_LOAD( "kj-13.bin",0xe000, 0x2000, CRC(0a0be3f5) SHA1(00be47fc76500843b6f5de63622edb1748ef5f7d) ) | |
| 208 | ROM_REGION( 0x8000, REGION_CPU2, 0 ) /* 64k for audio code */ | |
| 209 | ROM_LOAD( "kj-13.bin",0x6000, 0x2000, CRC(0a0be3f5) SHA1(00be47fc76500843b6f5de63622edb1748ef5f7d) ) | |
| 217 | 210 | |
| 218 | 211 | ROM_REGION( 0xc000, REGION_GFX1, ROMREGION_DISPOSE ) /* tiles */ |
| 219 | 212 | ROM_LOAD( "kj-10.bin", 0x0000, 0x4000, CRC(74d3ba33) SHA1(c7887d690cb7f7a7b24d59d490ffc088fb6cc49c) ) |
| r1649 | r1650 | |
| 244 | 237 | ROM_LOAD( "kj-2.bin", 0x4000, 0x4000, CRC(cb11514b) SHA1(c75d4019d1617493ff074ce8187a81ad70d9b60c) ) |
| 245 | 238 | ROM_LOAD( "kj-3.bin", 0x8000, 0x4000, CRC(0f50697b) SHA1(412c6aba270824299ca2a74e9bea42b83e69797b) ) |
| 246 | 239 | |
| 247 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for audio code */ | |
| 248 | ROM_LOAD( "kj-13.bin",0xe000, 0x2000, CRC(0a0be3f5) SHA1(00be47fc76500843b6f5de63622edb1748ef5f7d) ) | |
| 240 | ROM_REGION( 0x8000, REGION_CPU2, 0 ) /* 64k for audio code */ | |
| 241 | ROM_LOAD( "kj-13.bin",0x6000, 0x2000, CRC(0a0be3f5) SHA1(00be47fc76500843b6f5de63622edb1748ef5f7d) ) | |
| 249 | 242 | |
| 250 | 243 | ROM_REGION( 0xc000, REGION_GFX1, ROMREGION_DISPOSE ) /* tiles */ |
| 251 | 244 | ROM_LOAD( "kj-10.bin", 0x0000, 0x4000, CRC(74d3ba33) SHA1(c7887d690cb7f7a7b24d59d490ffc088fb6cc49c) ) |
| r1649 | r1650 | |
| 276 | 269 | ROM_LOAD( "bcrush2.bin", 0x4000, 0x4000, CRC(1be4c731) SHA1(11f3a33263d66172902dfb6f3fe2d0ab5cad38d7) ) |
| 277 | 270 | ROM_LOAD( "bcrush3.bin", 0x8000, 0x4000, CRC(0772d993) SHA1(430f0319bd4765add2f1ee197e7217fdf9ae79c8) ) |
| 278 | 271 | |
| 279 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for audio code */ | |
| 280 | ROM_LOAD( "kj-13.bin",0xe000, 0x2000, CRC(0a0be3f5) SHA1(00be47fc76500843b6f5de63622edb1748ef5f7d) ) | |
| 272 | ROM_REGION( 0x8000, REGION_CPU2, 0 ) /* 64k for audio code */ | |
| 273 | ROM_LOAD( "kj-13.bin",0x6000, 0x2000, CRC(0a0be3f5) SHA1(00be47fc76500843b6f5de63622edb1748ef5f7d) ) | |
| 281 | 274 | |
| 282 | 275 | ROM_REGION( 0xc000, REGION_GFX1, ROMREGION_DISPOSE ) /* tiles */ |
| 283 | 276 | ROM_LOAD( "bcrush10.bin", 0x0000, 0x4000, CRC(a62f4572) SHA1(4e38e175e25a955e5f83cac8c935163e2e861e94) ) |
| r1649 | r1650 | |
|---|---|---|
| 22 | 22 | ***************************************************************************/ |
| 23 | 23 | |
| 24 | 24 | #include "driver.h" |
| 25 | #include "deprecat.h" | |
| 25 | 26 | #include "cpu/m6809/m6809.h" |
| 26 | 27 | #include "sound/3812intf.h" |
| 27 | 28 | #include "sound/msm5205.h" |
| r1649 | r1650 | |
|---|---|---|
| 83 | 83 | ***************************************************************************/ |
| 84 | 84 | |
| 85 | 85 | #include "driver.h" |
| 86 | #include "deprecat.h" | |
| 86 | 87 | #include "cpu/s2650/s2650.h" |
| 87 | 88 | #include "sound/dac.h" |
| 88 | 89 | #include "sound/5110intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 145 | 145 | **************************************************************************/ |
| 146 | 146 | |
| 147 | 147 | #include "driver.h" |
| 148 | #include "deprecat.h" | |
| 148 | 149 | #include "machine/8255ppi.h" |
| 149 | 150 | #include "turbo.h" |
| 150 | 151 | #include "machine/segacrpt.h" |
| r1649 | r1650 | |
| 162 | 163 | * |
| 163 | 164 | *************************************/ |
| 164 | 165 | |
| 165 | #define MASTER_CLOCK (19968 | |
| 166 | #define MASTER_CLOCK (XTAL_19_968MHz) | |
| 166 | 167 | |
| 167 | 168 | #define PIXEL_CLOCK (MASTER_CLOCK/4*TURBO_X_SCALE) |
| 168 | 169 |
| r1649 | r1650 | |
|---|---|---|
| 81 | 81 | - The NEC D4701 used by Caliber 50 is a mouse interface IC (uPD4701c). |
| 82 | 82 | Of course it's used to control the spinner. DownTown probably has it as well. |
| 83 | 83 | |
| 84 | DIP Locations verified from manuals for: | |
| 85 | - Zing Zing Zip | |
| 86 | - Extreme Downhill | |
| 87 | ||
| 84 | 88 | TODO: |
| 85 | 89 | - I think the best way to correctly align tilemaps and sprites and account for |
| 86 | 90 | both flipping and different visible areas is to have a table with per game |
| r1649 | r1650 | |
| 89 | 93 | Current issues: metafox test grid not aligned when screen flipped, madshark & utoukond |
| 90 | 94 | ("floating tilemaps" sprites when flipped) |
| 91 | 95 | krzybowl not aligned vertically when screen flipped |
| 96 | zombraid not aligned when flipped vertically or horizantally | |
| 92 | 97 | |
| 93 | 98 | - bad sound in sokonuke? |
| 94 | 99 | - in msgunda1, colors for the score display screw up after the second animation |
| r1649 | r1650 | |
| 1283 | 1288 | ***************************************************************************/ |
| 1284 | 1289 | |
| 1285 | 1290 | #include "driver.h" |
| 1291 | #include "deprecat.h" | |
| 1286 | 1292 | #include "seta.h" |
| 1287 | 1293 | #include "machine/6821pia.h" |
| 1288 | 1294 | #include "machine/6850acia.h" |
| r1649 | r1650 | |
| 3345 | 3351 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3346 | 3352 | |
| 3347 | 3353 | PORT_START_TAG("IN3") // 2 DSWs - $e00001 & 3.b |
| 3348 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) | |
| 3354 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW2:1,2,3") | |
| 3349 | 3355 | PORT_DIPSETTING( 0x0001, DEF_STR( 4C_1C ) ) |
| 3350 | 3356 | PORT_DIPSETTING( 0x0002, DEF_STR( 3C_1C ) ) |
| 3351 | 3357 | PORT_DIPSETTING( 0x0004, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 3354 | 3360 | PORT_DIPSETTING( 0x0006, DEF_STR( 1C_2C ) ) |
| 3355 | 3361 | PORT_DIPSETTING( 0x0005, DEF_STR( 1C_3C ) ) |
| 3356 | 3362 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 3357 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) | |
| 3363 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2:4,5,6") | |
| 3358 | 3364 | PORT_DIPSETTING( 0x0008, DEF_STR( 4C_1C ) ) |
| 3359 | 3365 | PORT_DIPSETTING( 0x0010, DEF_STR( 3C_1C ) ) |
| 3360 | 3366 | PORT_DIPSETTING( 0x0020, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 3363 | 3369 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_2C ) ) |
| 3364 | 3370 | PORT_DIPSETTING( 0x0028, DEF_STR( 1C_3C ) ) |
| 3365 | 3371 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 3366 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Demo_Sounds ) ) | |
| 3372 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:7") | |
| 3367 | 3373 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 3368 | 3374 | PORT_DIPSETTING( 0x0040, DEF_STR( On ) ) |
| 3369 | PORT_DIPNAME( 0x0080, 0x0080, "Unknown 2-7" ) // manual: unused | |
| 3370 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 3371 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 3375 | PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0080, "SW2:8" ) /* Listed as "Unused" */ | |
| 3372 | 3376 | |
| 3373 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Flip_Screen ) ) | |
| 3377 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:1") | |
| 3374 | 3378 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) |
| 3375 | 3379 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3376 | PORT_SERVICE( 0x0200, IP_ACTIVE_LOW ) | |
| 3377 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) | |
| 3380 | PORT_SERVICE_DIPLOC( 0x0200, IP_ACTIVE_LOW, "SW1:2" ) | |
| 3381 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:3,4") | |
| 3378 | 3382 | PORT_DIPSETTING( 0x0800, DEF_STR( Easy ) ) |
| 3379 | 3383 | PORT_DIPSETTING( 0x0c00, DEF_STR( Normal ) ) |
| 3380 | 3384 | PORT_DIPSETTING( 0x0400, DEF_STR( Hard ) ) |
| 3381 | 3385 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 3382 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Lives ) ) | |
| 3386 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:5,6") | |
| 3383 | 3387 | PORT_DIPSETTING( 0x0000, "2" ) |
| 3384 | 3388 | PORT_DIPSETTING( 0x3000, "3" ) |
| 3385 | 3389 | PORT_DIPSETTING( 0x1000, "4" ) |
| 3386 | 3390 | PORT_DIPSETTING( 0x2000, "5" ) |
| 3387 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Bonus_Life ) ) | |
| 3391 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:7,8") | |
| 3388 | 3392 | PORT_DIPSETTING( 0xc000, DEF_STR( None ) ) |
| 3389 | 3393 | PORT_DIPSETTING( 0x0000, "20K Only" ) |
| 3390 | 3394 | PORT_DIPSETTING( 0x8000, "20K, Every 30K" ) |
| r1649 | r1650 | |
| 3414 | 3418 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3415 | 3419 | |
| 3416 | 3420 | PORT_START_TAG("IN3") //2 DSWs - $600001 & 3.b |
| 3417 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Demo_Sounds ) ) | |
| 3421 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") | |
| 3418 | 3422 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 3419 | 3423 | PORT_DIPSETTING( 0x0001, DEF_STR( On ) ) |
| 3420 | PORT_DIPNAME( 0x0002, 0x0002, "Coinage Type" ) // not supported | |
| 3424 | PORT_DIPNAME( 0x0002, 0x0002, "Coinage Type" ) PORT_DIPLOCATION("SW2:2") // not supported | |
| 3421 | 3425 | PORT_DIPSETTING( 0x0002, "1" ) |
| 3422 | 3426 | PORT_DIPSETTING( 0x0000, "2" ) |
| 3423 | PORT_DIPNAME( 0x001c, 0x001c, DEF_STR( Coin_A ) ) | |
| 3427 | PORT_DIPNAME( 0x001c, 0x001c, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW2:3,4,5") | |
| 3424 | 3428 | PORT_DIPSETTING( 0x0010, DEF_STR( 3C_1C ) ) |
| 3425 | 3429 | PORT_DIPSETTING( 0x000c, DEF_STR( 2C_1C ) ) |
| 3426 | 3430 | PORT_DIPSETTING( 0x001c, DEF_STR( 1C_1C ) ) |
| r1649 | r1650 | |
| 3429 | 3433 | PORT_DIPSETTING( 0x0008, DEF_STR( 2C_5C ) ) |
| 3430 | 3434 | PORT_DIPSETTING( 0x0014, DEF_STR( 1C_3C ) ) |
| 3431 | 3435 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 3432 | PORT_DIPNAME( 0x00e0, 0x00e0, DEF_STR( Coin_B ) ) | |
| 3436 | PORT_DIPNAME( 0x00e0, 0x00e0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2:6,7,8") | |
| 3433 | 3437 | PORT_DIPSETTING( 0x00e0, DEF_STR( 1C_1C ) ) |
| 3434 | 3438 | PORT_DIPSETTING( 0x0060, DEF_STR( 2C_4C ) ) |
| 3435 | 3439 | PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_2C ) ) |
| 3436 | PORT_DIPSETTING( 0x0080, "3 Coins/7 Credit" ) | |
| 3440 | PORT_DIPSETTING( 0x0080, "3 Coins/7 Credits" ) | |
| 3437 | 3441 | PORT_DIPSETTING( 0x0020, DEF_STR( 2C_5C ) ) |
| 3438 | 3442 | PORT_DIPSETTING( 0x0040, DEF_STR( 2C_6C ) ) |
| 3439 | 3443 | PORT_DIPSETTING( 0x00a0, DEF_STR( 1C_3C ) ) |
| 3440 | 3444 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 3441 | 3445 | |
| 3442 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) | |
| 3446 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") | |
| 3443 | 3447 | PORT_DIPSETTING( 0x0200, "1" ) |
| 3444 | 3448 | PORT_DIPSETTING( 0x0300, "2" ) |
| 3445 | 3449 | PORT_DIPSETTING( 0x0100, "3" ) |
| 3446 | 3450 | PORT_DIPSETTING( 0x0000, "4" ) |
| 3447 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) | |
| 3451 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:3,4") | |
| 3448 | 3452 | PORT_DIPSETTING( 0x0800, DEF_STR( Easy ) ) |
| 3449 | 3453 | PORT_DIPSETTING( 0x0c00, DEF_STR( Normal ) ) |
| 3450 | 3454 | PORT_DIPSETTING( 0x0400, DEF_STR( Hard ) ) |
| 3451 | 3455 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 3452 | PORT_DIPNAME( 0x1000, 0x1000, "2 Player Game" ) | |
| 3456 | PORT_DIPNAME( 0x1000, 0x1000, "2 Player Game" ) PORT_DIPLOCATION("SW1:5") | |
| 3453 | 3457 | PORT_DIPSETTING( 0x1000, "2 Credits" ) |
| 3454 | 3458 | PORT_DIPSETTING( 0x0000, "1 Credit" ) |
| 3455 | PORT_DIPNAME( 0x2000, 0x2000, "Continue" ) | |
| 3459 | PORT_DIPNAME( 0x2000, 0x2000, "Continue" ) PORT_DIPLOCATION("SW1:6") | |
| 3456 | 3460 | PORT_DIPSETTING( 0x2000, "1 Credit" ) |
| 3457 | 3461 | PORT_DIPSETTING( 0x0000, "1 Coin" ) |
| 3458 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Flip_Screen ) ) | |
| 3462 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:7") | |
| 3459 | 3463 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) |
| 3460 | 3464 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3461 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) | |
| 3465 | PORT_SERVICE_DIPLOC( 0x8000, IP_ACTIVE_LOW, "SW1:8" ) | |
| 3462 | 3466 | INPUT_PORTS_END |
| 3463 | 3467 | |
| 3464 | 3468 | |
| r1649 | r1650 | |
| 3479 | 3483 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(5) |
| 3480 | 3484 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 3481 | 3485 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_TILT ) |
| 3482 | PORT_DIPNAME( 0x0010, 0x0000, "Title" ) | |
| 3486 | PORT_DIPNAME( 0x0010, 0x0000, "Title" ) /* This is a jumper pad */ | |
| 3483 | 3487 | PORT_DIPSETTING( 0x0010, "Thunder & Lightning 2" ) |
| 3484 | 3488 | PORT_DIPSETTING( 0x0000, "Block Carnival" ) |
| 3485 | 3489 | |
| 3486 | 3490 | PORT_START_TAG("IN3") //2 DSWs - $300003 & 1.b |
| 3487 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) | |
| 3491 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 3488 | 3492 | PORT_DIPSETTING( 0x0002, DEF_STR( Easy ) ) |
| 3489 | 3493 | PORT_DIPSETTING( 0x0003, DEF_STR( Normal ) ) |
| 3490 | 3494 | PORT_DIPSETTING( 0x0001, DEF_STR( Hard ) ) |
| 3491 | 3495 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 3492 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Bonus_Life ) ) | |
| 3496 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 3493 | 3497 | PORT_DIPSETTING( 0x000c, "20K, Every 50K" ) |
| 3494 | 3498 | PORT_DIPSETTING( 0x0004, "20K, Every 70K" ) |
| 3495 | 3499 | PORT_DIPSETTING( 0x0008, "30K, Every 60K" ) |
| 3496 | 3500 | PORT_DIPSETTING( 0x0000, "30K, Every 90K" ) |
| 3497 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Lives ) ) | |
| 3501 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 3498 | 3502 | PORT_DIPSETTING( 0x0000, "1" ) |
| 3499 | 3503 | PORT_DIPSETTING( 0x0030, "2" ) |
| 3500 | 3504 | PORT_DIPSETTING( 0x0020, "3" ) |
| 3501 | 3505 | PORT_DIPSETTING( 0x0010, "4" ) |
| 3502 | PORT_DIPNAME( 0x0040, 0x0040, "Unknown 2-6" ) | |
| 3503 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 3504 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 3505 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Free_Play ) ) | |
| 3506 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "SW2:7" ) /* Listed as "Unused" */ | |
| 3507 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW2:8") /* Listed as "Unused" */ | |
| 3506 | 3508 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 3507 | 3509 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3508 | 3510 | |
| 3509 | PORT_DIPNAME( 0x0100, 0x0100, "Unknown 1-0" ) | |
| 3510 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 3511 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 3512 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Flip_Screen ) ) | |
| 3511 | PORT_DIPUNUSED_DIPLOC( 0x0100, 0x0100, "SW1:1" ) /* Listed as "Unused" */ | |
| 3512 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:2") | |
| 3513 | 3513 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) |
| 3514 | 3514 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3515 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Demo_Sounds ) ) | |
| 3515 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:3") | |
| 3516 | 3516 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 3517 | 3517 | PORT_DIPSETTING( 0x0400, DEF_STR( On ) ) |
| 3518 | PORT_DIPNAME( 0x0800, 0x0800, "Unknown 1-3" ) // service mode, according to a file in the archive | |
| 3518 | PORT_DIPNAME( 0x0800, 0x0800, "Unknown 1-3" ) PORT_DIPLOCATION("SW1:4") // service mode, according to a file in the archive | |
| 3519 | 3519 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) |
| 3520 | 3520 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3521 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Coin_A ) ) | |
| 3521 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:5,6") | |
| 3522 | 3522 | PORT_DIPSETTING( 0x1000, DEF_STR( 2C_1C ) ) |
| 3523 | 3523 | PORT_DIPSETTING( 0x3000, DEF_STR( 1C_1C ) ) |
| 3524 | 3524 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_3C ) ) |
| 3525 | 3525 | PORT_DIPSETTING( 0x2000, DEF_STR( 1C_2C ) ) |
| 3526 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Coin_B ) ) | |
| 3526 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:7,8") | |
| 3527 | 3527 | PORT_DIPSETTING( 0x4000, DEF_STR( 2C_1C ) ) |
| 3528 | 3528 | PORT_DIPSETTING( 0xc000, DEF_STR( 1C_1C ) ) |
| 3529 | 3529 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_3C ) ) |
| r1649 | r1650 | |
| 3637 | 3637 | PORT_DIPSETTING( 0x0000, "Japan (2 buttons)" ) |
| 3638 | 3638 | |
| 3639 | 3639 | PORT_START_TAG("IN3") |
| 3640 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) | |
| 3640 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW2:1,2,3") | |
| 3641 | 3641 | PORT_DIPSETTING( 0x0001, DEF_STR( 4C_1C ) ) |
| 3642 | 3642 | PORT_DIPSETTING( 0x0002, DEF_STR( 3C_1C ) ) |
| 3643 | 3643 | PORT_DIPSETTING( 0x0004, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 3646 | 3646 | PORT_DIPSETTING( 0x0006, DEF_STR( 1C_2C ) ) |
| 3647 | 3647 | PORT_DIPSETTING( 0x0005, DEF_STR( 1C_3C ) ) |
| 3648 | 3648 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 3649 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) | |
| 3650 | PORT_DIPSETTING( 0x0008, DEF_STR( 4C_1C )) | |
| 3649 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2:4,5,6") | |
| 3650 | PORT_DIPSETTING( 0x0008, DEF_STR( 4C_1C ) ) | |
| 3651 | 3651 | PORT_DIPSETTING( 0x0010, DEF_STR( 3C_1C ) ) |
| 3652 | 3652 | PORT_DIPSETTING( 0x0020, DEF_STR( 2C_1C ) ) |
| 3653 | 3653 | PORT_DIPSETTING( 0x0038, DEF_STR( 1C_1C ) ) |
| r1649 | r1650 | |
| 3655 | 3655 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_2C ) ) |
| 3656 | 3656 | PORT_DIPSETTING( 0x0028, DEF_STR( 1C_3C ) ) |
| 3657 | 3657 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 3658 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Demo_Sounds ) ) | |
| 3658 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:7") | |
| 3659 | 3659 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 3660 | 3660 | PORT_DIPSETTING( 0x0040, DEF_STR( On ) ) |
| 3661 | PORT_DIPNAME( 0x0080, 0x0000, "Auto Shot" ) | |
| 3661 | PORT_DIPNAME( 0x0080, 0x0000, "Auto Shot" ) PORT_DIPLOCATION("SW2:8") | |
| 3662 | 3662 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 3663 | 3663 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3664 | 3664 | |
| 3665 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Flip_Screen ) ) | |
| 3665 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:1") | |
| 3666 | 3666 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) |
| 3667 | 3667 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3668 | PORT_SERVICE( 0x0200, IP_ACTIVE_LOW ) | |
| 3669 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) | |
| 3668 | PORT_SERVICE_DIPLOC( 0x0200, IP_ACTIVE_LOW, "SW1:2" ) | |
| 3669 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:3,4") | |
| 3670 | 3670 | PORT_DIPSETTING( 0x0800, DEF_STR( Easy ) ) |
| 3671 | 3671 | PORT_DIPSETTING( 0x0c00, DEF_STR( Normal ) ) |
| 3672 | 3672 | PORT_DIPSETTING( 0x0400, DEF_STR( Hard ) ) |
| 3673 | 3673 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 3674 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Lives ) ) | |
| 3674 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:5,6") | |
| 3675 | 3675 | PORT_DIPSETTING( 0x0000, "1" ) |
| 3676 | 3676 | PORT_DIPSETTING( 0x1000, "2" ) |
| 3677 | 3677 | PORT_DIPSETTING( 0x3000, "3" ) |
| 3678 | 3678 | PORT_DIPSETTING( 0x2000, "5" ) |
| 3679 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Bonus_Life ) ) | |
| 3679 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:7,8") | |
| 3680 | 3680 | PORT_DIPSETTING( 0x8000, "300k and every 800k" ) |
| 3681 | 3681 | PORT_DIPSETTING( 0xc000, "500k and every 1000k" ) |
| 3682 | 3682 | PORT_DIPSETTING( 0x4000, "800k and 2000k only" ) |
| r1649 | r1650 | |
| 3722 | 3722 | PORT_DIPSETTING( 0x0000, "Seta USA / Romstar" ) |
| 3723 | 3723 | |
| 3724 | 3724 | PORT_START_TAG("IN3") //2 DSWs - $600001 & 3.b |
| 3725 | PORT_DIPNAME( 0x0003, 0x0002, DEF_STR( Difficulty ) ) | |
| 3725 | PORT_DIPNAME( 0x0003, 0x0002, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:1,2") | |
| 3726 | 3726 | PORT_DIPSETTING( 0x0003, DEF_STR( Easy ) ) |
| 3727 | 3727 | PORT_DIPSETTING( 0x0002, DEF_STR( Normal ) ) |
| 3728 | 3728 | PORT_DIPSETTING( 0x0001, DEF_STR( Hard ) ) |
| 3729 | 3729 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 3730 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Bonus_Life ) ) | |
| 3730 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:3,4") | |
| 3731 | 3731 | PORT_DIPSETTING( 0x0008, "150K, Every 300K" ) |
| 3732 | 3732 | PORT_DIPSETTING( 0x000c, "200K, Every 400K" ) |
| 3733 | 3733 | PORT_DIPSETTING( 0x0004, "300K, Every 500K" ) |
| 3734 | 3734 | PORT_DIPSETTING( 0x0000, "400K Only" ) |
| 3735 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Lives ) ) | |
| 3735 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:5,6") | |
| 3736 | 3736 | PORT_DIPSETTING( 0x0000, "1" ) |
| 3737 | 3737 | PORT_DIPSETTING( 0x0010, "2" ) |
| 3738 | 3738 | PORT_DIPSETTING( 0x0030, "3" ) |
| 3739 | 3739 | PORT_DIPSETTING( 0x0020, "5" ) |
| 3740 | PORT_DIPNAME( 0x0040, 0x0040, "Unknown 1-6" ) /* Labeled "Don't Touch" in manual */ | |
| 3741 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 3742 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 3743 | PORT_DIPNAME( 0x0080, 0x0080, "Unknown 1-7*" ) /* Labeled "Don't Touch" in manual */ | |
| 3740 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "SW1:7" ) /* Labeled "Don't Touch" in manual */ | |
| 3741 | PORT_DIPNAME( 0x0080, 0x0080, "Unknown 1-8*" ) PORT_DIPLOCATION("SW1:8") /* Labeled "Don't Touch" in manual (seems to be used though) */ | |
| 3744 | 3742 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 3745 | 3743 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3746 | 3744 | |
| 3747 | PORT_DIPNAME( 0x0100, 0x0100, "Unknown 2-0" ) /* Labeled "Don't Touch" in manual */ | |
| 3748 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 3749 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 3750 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Flip_Screen ) ) | |
| 3745 | PORT_DIPUNUSED_DIPLOC( 0x0100, 0x0100, "SW2:1" ) /* Labeled "Don't Touch" in manual */ | |
| 3746 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:2") | |
| 3751 | 3747 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) |
| 3752 | 3748 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3753 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Demo_Sounds ) ) | |
| 3749 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:3") | |
| 3754 | 3750 | PORT_DIPSETTING( 0x0400, "1 of 4 Scenes" ) |
| 3755 | 3751 | PORT_DIPSETTING( 0x0000, "1 of 8 Scenes" ) |
| 3756 | PORT_SERVICE( 0x0800, IP_ACTIVE_LOW ) | |
| 3757 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Coin_A ) ) | |
| 3752 | PORT_SERVICE_DIPLOC( 0x0800, IP_ACTIVE_LOW, "SW2:4" ) | |
| 3753 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 3758 | 3754 | PORT_DIPSETTING( 0x1000, DEF_STR( 2C_1C ) ) |
| 3759 | 3755 | PORT_DIPSETTING( 0x3000, DEF_STR( 1C_1C ) ) |
| 3760 | 3756 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_3C ) ) |
| 3761 | 3757 | PORT_DIPSETTING( 0x2000, DEF_STR( 1C_2C ) ) |
| 3762 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Coin_B ) ) | |
| 3758 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 3763 | 3759 | PORT_DIPSETTING( 0x4000, DEF_STR( 2C_1C ) ) |
| 3764 | 3760 | PORT_DIPSETTING( 0xc000, DEF_STR( 1C_1C ) ) |
| 3765 | 3761 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_3C ) ) |
| r1649 | r1650 | |
| 3790 | 3786 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(5) |
| 3791 | 3787 | |
| 3792 | 3788 | PORT_START_TAG("IN3") //2 DSWs - $600001 & 3.b |
| 3793 | PORT_DIPNAME( 0x0001, 0x0000, "Sales" ) /* Manual for USA version says "Always Off" */ | |
| 3789 | PORT_DIPNAME( 0x0001, 0x0000, "Sales" ) PORT_DIPLOCATION("SW1:1") /* Manual for USA version says "Always Off" */ | |
| 3794 | 3790 | PORT_DIPSETTING( 0x0001, "Japan Only" ) |
| 3795 | 3791 | PORT_DIPSETTING( 0x0000, DEF_STR( World ) ) |
| 3796 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) ) | |
| 3792 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:2") | |
| 3797 | 3793 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) |
| 3798 | 3794 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3799 | PORT_SERVICE( 0x0004, IP_ACTIVE_LOW ) | |
| 3800 | PORT_DIPNAME( 0x0008, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 3795 | PORT_SERVICE_DIPLOC( 0x0004, IP_ACTIVE_LOW, "SW1:3" ) | |
| 3796 | PORT_DIPNAME( 0x0008, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:4") | |
| 3801 | 3797 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) |
| 3802 | 3798 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3803 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Coin_A ) ) | |
| 3799 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:5,6") | |
| 3804 | 3800 | PORT_DIPSETTING( 0x0010, DEF_STR( 2C_1C ) ) |
| 3805 | 3801 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_1C ) ) |
| 3806 | 3802 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_3C ) ) |
| 3807 | 3803 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_2C ) ) |
| 3808 | PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Coin_B ) ) | |
| 3804 | PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:7,8") | |
| 3809 | 3805 | PORT_DIPSETTING( 0x0040, DEF_STR( 2C_1C ) ) |
| 3810 | 3806 | PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_1C ) ) |
| 3811 | 3807 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_3C ) ) |
| 3812 | 3808 | PORT_DIPSETTING( 0x0080, DEF_STR( 1C_2C ) ) |
| 3813 | 3809 | // other coinage |
| 3814 | 3810 | #if 0 |
| 3815 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Coin_A ) ) | |
| 3811 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:5,6") | |
| 3816 | 3812 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) |
| 3817 | 3813 | PORT_DIPSETTING( 0x0010, DEF_STR( 3C_1C ) ) |
| 3818 | 3814 | PORT_DIPSETTING( 0x0020, DEF_STR( 2C_1C ) ) |
| 3819 | 3815 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_1C ) ) |
| 3820 | PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Coin_B ) ) | |
| 3816 | PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:7,8") | |
| 3821 | 3817 | PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_2C ) ) |
| 3822 | 3818 | PORT_DIPSETTING( 0x0080, DEF_STR( 1C_3C ) ) |
| 3823 | 3819 | PORT_DIPSETTING( 0x0040, DEF_STR( 1C_4C ) ) |
| 3824 | 3820 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 3825 | 3821 | #endif |
| 3826 | 3822 | |
| 3827 | PORT_DIPNAME( 0x0300, 0x0100, DEF_STR( Difficulty ) ) | |
| 3823 | PORT_DIPNAME( 0x0300, 0x0100, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 3828 | 3824 | PORT_DIPSETTING( 0x0200, DEF_STR( Easy ) ) |
| 3829 | 3825 | PORT_DIPSETTING( 0x0300, DEF_STR( Normal ) ) |
| 3830 | 3826 | PORT_DIPSETTING( 0x0100, DEF_STR( Hard ) ) |
| 3831 | 3827 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 3832 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Bonus_Life ) ) | |
| 3828 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 3833 | 3829 | PORT_DIPSETTING( 0x0c00, "Never" ) |
| 3834 | 3830 | PORT_DIPSETTING( 0x0800, "50K Only" ) |
| 3835 | 3831 | PORT_DIPSETTING( 0x0400, "100K Only" ) |
| 3836 | 3832 | PORT_DIPSETTING( 0x0000, "50K, Every 150K" ) |
| 3837 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Lives ) ) | |
| 3833 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 3838 | 3834 | PORT_DIPSETTING( 0x1000, "2" ) |
| 3839 | 3835 | PORT_DIPSETTING( 0x3000, "3" ) |
| 3840 | 3836 | PORT_DIPSETTING( 0x0000, "4" ) |
| 3841 | 3837 | PORT_DIPSETTING( 0x2000, "5" ) |
| 3842 | PORT_DIPNAME( 0x4000, 0x0000, "World License" ) /* Manual for USA version says "Unused" */ | |
| 3838 | PORT_DIPNAME( 0x4000, 0x0000, "World License" ) PORT_DIPLOCATION("SW2:7") /* Manual for USA version says "Unused" */ | |
| 3843 | 3839 | PORT_DIPSETTING( 0x4000, "Romstar" ) |
| 3844 | 3840 | PORT_DIPSETTING( 0x0000, "Taito" ) |
| 3845 | PORT_DIPNAME( 0x8000, 0x8000, "Coinage Type" ) /* Manual for USA version says "Unused", but currently not implemented */ | |
| 3841 | PORT_DIPNAME( 0x8000, 0x8000, "Coinage Type" ) PORT_DIPLOCATION("SW2:8") /* Manual for USA version says "Unused", but currently not implemented */ | |
| 3846 | 3842 | PORT_DIPSETTING( 0x8000, "1" ) |
| 3847 | 3843 | PORT_DIPSETTING( 0x0000, "2" ) |
| 3848 | 3844 | |
| r1649 | r1650 | |
| 3877 | 3873 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3878 | 3874 | |
| 3879 | 3875 | PORT_START_TAG("IN3") //2 DSWs - $600001 & 3.b |
| 3880 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) | |
| 3876 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW2:1,2,3") | |
| 3881 | 3877 | PORT_DIPSETTING( 0x0004, DEF_STR( 4C_1C ) ) |
| 3882 | 3878 | PORT_DIPSETTING( 0x0005, DEF_STR( 3C_1C ) ) |
| 3883 | 3879 | PORT_DIPSETTING( 0x0006, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 3886 | 3882 | PORT_DIPSETTING( 0x0002, DEF_STR( 1C_3C ) ) |
| 3887 | 3883 | PORT_DIPSETTING( 0x0001, DEF_STR( 1C_4C ) ) |
| 3888 | 3884 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 3889 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) | |
| 3885 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2:4,5,6") | |
| 3890 | 3886 | PORT_DIPSETTING( 0x0020, DEF_STR( 4C_1C ) ) |
| 3891 | 3887 | PORT_DIPSETTING( 0x0028, DEF_STR( 3C_1C ) ) |
| 3892 | 3888 | PORT_DIPSETTING( 0x0030, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 3895 | 3891 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_3C ) ) |
| 3896 | 3892 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_4C ) ) |
| 3897 | 3893 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 3898 | PORT_DIPNAME( 0x0040, 0x0040, "Shared Credits" ) | |
| 3894 | PORT_DIPNAME( 0x0040, 0x0040, "Shared Credits" ) PORT_DIPLOCATION("SW2:7") | |
| 3899 | 3895 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 3900 | 3896 | PORT_DIPSETTING( 0x0040, DEF_STR( On ) ) |
| 3901 | PORT_DIPNAME( 0x0080, 0x0080, "Credits To Start" ) | |
| 3897 | PORT_DIPNAME( 0x0080, 0x0080, "Credits To Start" ) PORT_DIPLOCATION("SW2:8") | |
| 3902 | 3898 | PORT_DIPSETTING( 0x0080, "1" ) |
| 3903 | 3899 | PORT_DIPSETTING( 0x0000, "2" ) |
| 3904 | 3900 | |
| 3905 | PORT_SERVICE( 0x0100, IP_ACTIVE_LOW ) | |
| 3906 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Flip_Screen ) ) | |
| 3901 | PORT_SERVICE_DIPLOC( 0x0100, IP_ACTIVE_LOW, "SW1:1" ) | |
| 3902 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:2") | |
| 3907 | 3903 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) |
| 3908 | 3904 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3909 | PORT_DIPNAME( 0x0400, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 3905 | PORT_DIPNAME( 0x0400, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:3") | |
| 3910 | 3906 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) |
| 3911 | 3907 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3912 | PORT_DIPNAME( 0x1800, 0x1800, DEF_STR( Difficulty ) ) | |
| 3908 | PORT_DIPNAME( 0x1800, 0x1800, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:4,5") | |
| 3913 | 3909 | PORT_DIPSETTING( 0x1000, DEF_STR( Easy ) ) |
| 3914 | 3910 | PORT_DIPSETTING( 0x1800, DEF_STR( Normal ) ) |
| 3915 | 3911 | PORT_DIPSETTING( 0x0800, DEF_STR( Hard ) ) |
| 3916 | 3912 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 3917 | PORT_DIPNAME( 0x6000, 0x6000, DEF_STR( Lives ) ) | |
| 3913 | PORT_DIPNAME( 0x6000, 0x6000, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:6,7") | |
| 3918 | 3914 | PORT_DIPSETTING( 0x4000, "2" ) |
| 3919 | 3915 | PORT_DIPSETTING( 0x6000, "3" ) |
| 3920 | 3916 | PORT_DIPSETTING( 0x2000, "4" ) |
| 3921 | 3917 | PORT_DIPSETTING( 0x0000, "5" ) |
| 3922 | PORT_DIPNAME( 0x8000, 0x0000, DEF_STR( Language ) ) | |
| 3918 | PORT_DIPNAME( 0x8000, 0x0000, DEF_STR( Language ) ) PORT_DIPLOCATION("SW1:8") | |
| 3923 | 3919 | PORT_DIPSETTING( 0x0000, DEF_STR( English ) ) |
| 3924 | 3920 | PORT_DIPSETTING( 0x8000, DEF_STR( Japanese ) ) |
| 3925 | 3921 | INPUT_PORTS_END |
| r1649 | r1650 | |
| 3970 | 3966 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3971 | 3967 | |
| 3972 | 3968 | PORT_START_TAG("IN3") //2 DSWs - $400009 & b.b |
| 3973 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 3969 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:1") | |
| 3974 | 3970 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 3975 | 3971 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3976 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) | |
| 3972 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 3977 | 3973 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 3978 | 3974 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) |
| 3979 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) | |
| 3975 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 3980 | 3976 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) |
| 3981 | 3977 | PORT_DIPSETTING( 0x000c, DEF_STR( Normal ) ) |
| 3982 | 3978 | PORT_DIPSETTING( 0x0004, DEF_STR( Hard ) ) |
| 3983 | 3979 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 3984 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Free_Play ) ) | |
| 3980 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW2:5") | |
| 3985 | 3981 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) |
| 3986 | 3982 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3987 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Cabinet ) ) | |
| 3983 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW2:6") | |
| 3988 | 3984 | PORT_DIPSETTING( 0x0020, DEF_STR( Upright ) ) |
| 3989 | 3985 | PORT_DIPSETTING( 0x0000, DEF_STR( Cocktail ) ) |
| 3990 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Controls ) ) | |
| 3986 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Controls ) ) PORT_DIPLOCATION("SW2:7") | |
| 3991 | 3987 | PORT_DIPSETTING( 0x0040, "2" ) |
| 3992 | 3988 | PORT_DIPSETTING( 0x0000, "1" ) |
| 3993 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 3989 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW2:8" ) | |
| 3994 | 3990 | |
| 3995 | PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coin_A ) ) | |
| 3991 | PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3") | |
| 3996 | 3992 | PORT_DIPSETTING( 0x0500, DEF_STR( 3C_1C ) ) |
| 3997 | 3993 | PORT_DIPSETTING( 0x0600, DEF_STR( 2C_1C ) ) |
| 3998 | 3994 | PORT_DIPSETTING( 0x0700, DEF_STR( 1C_1C ) ) |
| r1649 | r1650 | |
| 4001 | 3997 | PORT_DIPSETTING( 0x0200, DEF_STR( 1C_4C ) ) |
| 4002 | 3998 | PORT_DIPSETTING( 0x0100, DEF_STR( 1C_5C ) ) |
| 4003 | 3999 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 4004 | PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coin_B ) ) | |
| 4000 | PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:4,5,6") | |
| 4005 | 4001 | PORT_DIPSETTING( 0x2800, DEF_STR( 3C_1C ) ) |
| 4006 | 4002 | PORT_DIPSETTING( 0x3000, DEF_STR( 2C_1C ) ) |
| 4007 | 4003 | PORT_DIPSETTING( 0x3800, DEF_STR( 1C_1C ) ) |
| r1649 | r1650 | |
| 4010 | 4006 | PORT_DIPSETTING( 0x1000, DEF_STR( 1C_4C ) ) |
| 4011 | 4007 | PORT_DIPSETTING( 0x0800, DEF_STR( 1C_5C ) ) |
| 4012 | 4008 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 4013 | PORT_DIPNAME( 0x4000, 0x4000, "Cheap Continue" ) | |
| 4014 | PORT_DIPSETTING( 0x4000, DEF_STR( No ) ) | |
| 4015 | PORT_DIPSETTING( 0x0000, DEF_STR( Yes ) ) | |
| 4016 | PORT_DIPNAME( 0x8000, 0x8000, "Game Mode" ) | |
| 4009 | PORT_DIPNAME( 0x4000, 0x4000, "Continue Coin" ) PORT_DIPLOCATION("SW1:7") | |
| 4010 | PORT_DIPSETTING( 0x4000, "Normal: Start 1C / Continue 1C" ) | |
| 4011 | PORT_DIPSETTING( 0x0000, "Half Continue: Start 2C / Continue 1C" ) | |
| 4012 | PORT_DIPNAME( 0x8000, 0x8000, "Game Mode" ) PORT_DIPLOCATION("SW1:8") | |
| 4017 | 4013 | PORT_DIPSETTING( 0x8000, "Finals Only" ) |
| 4018 | 4014 | PORT_DIPSETTING( 0x0000, "Semi-Finals & Finals" ) |
| 4019 | 4015 | INPUT_PORTS_END |
| r1649 | r1650 | |
| 4042 | 4038 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 4043 | 4039 | |
| 4044 | 4040 | PORT_START_TAG("IN3") //2 DSWs - $600001 & 3.b |
| 4045 | PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coin_A ) ) | |
| 4041 | PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW2:1,2,3,4") | |
| 4046 | 4042 | PORT_DIPSETTING( 0x0002, DEF_STR( 4C_1C ) ) |
| 4047 | 4043 | PORT_DIPSETTING( 0x0005, DEF_STR( 3C_1C ) ) |
| 4048 | 4044 | PORT_DIPSETTING( 0x0008, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 4059 | 4055 | PORT_DIPSETTING( 0x000a, DEF_STR( 1C_6C ) ) |
| 4060 | 4056 | PORT_DIPSETTING( 0x0009, DEF_STR( 1C_7C ) ) |
| 4061 | 4057 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 4062 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Coin_B ) ) | |
| 4058 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 4063 | 4059 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) |
| 4064 | 4060 | PORT_DIPSETTING( 0x0010, DEF_STR( 2C_1C ) ) |
| 4065 | 4061 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_1C ) ) |
| 4066 | 4062 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_2C ) ) |
| 4067 | PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Language ) ) /* Yes, the shows it takes both switches */ | |
| 4063 | PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Language ) ) PORT_DIPLOCATION("SW2:7,8") /* Yes, the manual shows it takes both switches */ | |
| 4068 | 4064 | PORT_DIPSETTING( 0x00c0, DEF_STR( Japanese ) ) |
| 4069 | 4065 | PORT_DIPSETTING( 0x0000, DEF_STR( English ) ) |
| 4070 | 4066 | |
| 4071 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Difficulty ) ) | |
| 4067 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:1,2") | |
| 4072 | 4068 | PORT_DIPSETTING( 0x0200, DEF_STR( Easy ) ) |
| 4073 | 4069 | PORT_DIPSETTING( 0x0300, DEF_STR( Normal ) ) |
| 4074 | 4070 | PORT_DIPSETTING( 0x0100, DEF_STR( Hard ) ) |
| 4075 | 4071 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 4076 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Lives ) ) | |
| 4072 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:3,4") | |
| 4077 | 4073 | PORT_DIPSETTING( 0x0800, "1" ) |
| 4078 | 4074 | PORT_DIPSETTING( 0x0c00, "2" ) |
| 4079 | 4075 | PORT_DIPSETTING( 0x0400, "3" ) |
| 4080 | 4076 | PORT_DIPSETTING( 0x0000, "4" ) |
| 4081 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Bonus_Life ) ) | |
| 4077 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:5,6") | |
| 4082 | 4078 | PORT_DIPSETTING( 0x3000, "200K" ) |
| 4083 | 4079 | PORT_DIPSETTING( 0x2000, "200K, Every 200K" ) |
| 4084 | 4080 | PORT_DIPSETTING( 0x1000, "400K" ) |
| 4085 | 4081 | PORT_DIPSETTING( 0x0000, DEF_STR( None ) ) |
| 4086 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Demo_Sounds ) ) | |
| 4082 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:7") | |
| 4087 | 4083 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 4088 | 4084 | PORT_DIPSETTING( 0x4000, DEF_STR( On ) ) |
| 4089 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) | |
| 4085 | PORT_SERVICE_DIPLOC( 0x8000, IP_ACTIVE_LOW, "SW1:8" ) | |
| 4090 | 4086 | INPUT_PORTS_END |
| 4091 | 4087 | |
| 4092 | 4088 | /*************************************************************************** |
| r1649 | r1650 | |
| 4125 | 4121 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 4126 | 4122 | |
| 4127 | 4123 | PORT_START_TAG("IN3") |
| 4128 | PORT_DIPNAME( 0x0001, 0x0001, | |
| 4124 | PORT_DIPNAME( 0x0001, 0x0001, "Vert | |
| 4129 | 4125 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 4130 | 4126 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 4131 | PORT_DIPNAME( 0x0002, 0x0000, " | |
| 4127 | PORT_DIPNAME( 0x0002, 0x0000, "Horizontal Screen Flip" ) PORT_DIPLOCATION("SW2:2") | |
| 4132 | 4128 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 4133 | 4129 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) |
| 4134 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Demo_Sounds ) ) | |
| 4130 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:3") | |
| 4135 | 4131 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 4136 | 4132 | PORT_DIPSETTING( 0x0004, DEF_STR( On ) ) |
| 4137 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Difficulty ) ) | |
| 4133 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:4,5") | |
| 4138 | 4134 | PORT_DIPSETTING( 0x0010, DEF_STR( Easy ) ) |
| 4139 | 4135 | PORT_DIPSETTING( 0x0018, DEF_STR( Normal ) ) |
| 4140 | 4136 | PORT_DIPSETTING( 0x0008, DEF_STR( Hard ) ) |
| 4141 | 4137 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 4142 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Allow_Continue ) ) | |
| 4138 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:6") | |
| 4143 | 4139 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 4144 | 4140 | PORT_DIPSETTING( 0x0020, DEF_STR( On ) ) |
| 4145 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) | |
| 4146 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 4147 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 4148 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 4141 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "SW2:7" ) /* Listed as "Unused" */ | |
| 4142 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW2:8" ) | |
| 4149 | 4143 | |
| 4150 | PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coin_A ) ) | |
| 4144 | PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3") | |
| 4151 | 4145 | PORT_DIPSETTING( 0x0500, DEF_STR( 3C_1C ) ) |
| 4152 | 4146 | PORT_DIPSETTING( 0x0600, DEF_STR( 2C_1C ) ) |
| 4153 | 4147 | PORT_DIPSETTING( 0x0700, DEF_STR( 1C_1C ) ) |
| r1649 | r1650 | |
| 4156 | 4150 | PORT_DIPSETTING( 0x0200, DEF_STR( 1C_4C ) ) |
| 4157 | 4151 | PORT_DIPSETTING( 0x0100, DEF_STR( 1C_5C ) ) |
| 4158 | 4152 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 4159 | PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coin_B ) ) | |
| 4153 | PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:4,5,6") | |
| 4160 | 4154 | PORT_DIPSETTING( 0x2800, DEF_STR( 3C_1C ) ) |
| 4161 | 4155 | PORT_DIPSETTING( 0x3000, DEF_STR( 2C_1C ) ) |
| 4162 | 4156 | PORT_DIPSETTING( 0x3800, DEF_STR( 1C_1C ) ) |
| r1649 | r1650 | |
| 4165 | 4159 | PORT_DIPSETTING( 0x1000, DEF_STR( 1C_4C ) ) |
| 4166 | 4160 | PORT_DIPSETTING( 0x0800, DEF_STR( 1C_5C ) ) |
| 4167 | 4161 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 4168 | PORT_DIPNAME( 0x4000, 0x4000, "2 Coins to Start, 1 to Continue" ) | |
| 4162 | PORT_DIPNAME( 0x4000, 0x4000, "2 Coins to Start, 1 to Continue" ) PORT_DIPLOCATION("SW1:7") | |
| 4169 | 4163 | PORT_DIPSETTING( 0x4000, DEF_STR( No ) ) |
| 4170 | 4164 | PORT_DIPSETTING( 0x0000, DEF_STR( Yes ) ) |
| 4171 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unused ) ) | |
| 4172 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 4173 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 4165 | PORT_DIPUNUSED_DIPLOC( 0x8000, 0x8000, "SW1:8" ) /* Listed as "Unused" */ | |
| 4174 | 4166 | |
| 4175 | 4167 | /* Gun on screen left=0xc0, right=0x40, top=0x48, bottom=0xa8 */ |
| 4176 | 4168 | PORT_START_TAG("IN5") /* Player 1 Gun X ($f00003) */ |
| r1649 | r1650 | |
| 4207 | 4199 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 4208 | 4200 | |
| 4209 | 4201 | PORT_START_TAG("IN3") //2 DSWs - $600001 & 3.b |
| 4210 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) | |
| 4202 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW2:1,2,3") | |
| 4211 | 4203 | PORT_DIPSETTING( 0x0001, DEF_STR( 4C_1C ) ) |
| 4212 | 4204 | PORT_DIPSETTING( 0x0002, DEF_STR( 3C_1C ) ) |
| 4213 | 4205 | PORT_DIPSETTING( 0x0004, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 4216 | 4208 | PORT_DIPSETTING( 0x0006, DEF_STR( 1C_2C ) ) |
| 4217 | 4209 | PORT_DIPSETTING( 0x0005, DEF_STR( 1C_3C ) ) |
| 4218 | 4210 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 4219 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) | |
| 4211 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2:4,5,6") | |
| 4220 | 4212 | PORT_DIPSETTING( 0x0008, DEF_STR( 4C_1C ) ) |
| 4221 | 4213 | PORT_DIPSETTING( 0x0010, DEF_STR( 3C_1C ) ) |
| 4222 | 4214 | PORT_DIPSETTING( 0x0020, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 4225 | 4217 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_2C ) ) |
| 4226 | 4218 | PORT_DIPSETTING( 0x0028, DEF_STR( 1C_3C ) ) |
| 4227 | 4219 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 4228 | PORT_DIPNAME( 0x0040, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 4220 | PORT_DIPNAME( 0x0040, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:7") | |
| 4229 | 4221 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) |
| 4230 | 4222 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 4231 | PORT_DIPNAME( 0x0080, 0x0080, "Unknown 2- | |
| 4223 | PORT_DIPNAME( 0x0080, 0x0080, "Unknown 2-8" ) PORT_DIPLOCATION("SW2:8") // ?? screen related | |
| 4232 | 4224 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 4233 | 4225 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 4234 | 4226 | |
| 4235 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Flip_Screen ) ) | |
| 4227 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:1") | |
| 4236 | 4228 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) |
| 4237 | 4229 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 4238 | PORT_SERVICE( 0x0200, IP_ACTIVE_LOW ) | |
| 4239 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) | |
| 4230 | PORT_SERVICE_DIPLOC( 0x0200, IP_ACTIVE_LOW, "SW1:2" ) | |
| 4231 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:3,4") | |
| 4240 | 4232 | PORT_DIPSETTING( 0x0800, DEF_STR( Easy ) ) |
| 4241 | 4233 | PORT_DIPSETTING( 0x0c00, DEF_STR( Normal ) ) |
| 4242 | 4234 | PORT_DIPSETTING( 0x0400, DEF_STR( Hard ) ) |
| 4243 | 4235 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 4244 | PORT_DIPNAME( 0x3000, 0x3000, "Energy" ) | |
| 4236 | PORT_DIPNAME( 0x3000, 0x3000, "Energy" ) PORT_DIPLOCATION("SW1:5,6") | |
| 4245 | 4237 | PORT_DIPSETTING( 0x2000, "2" ) |
| 4246 | 4238 | PORT_DIPSETTING( 0x3000, "3" ) |
| 4247 | 4239 | PORT_DIPSETTING( 0x1000, "4" ) |
| 4248 | 4240 | PORT_DIPSETTING( 0x0000, "5" ) |
| 4249 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Bonus_Life ) ) | |
| 4241 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:7,8") | |
| 4250 | 4242 | PORT_DIPSETTING( 0x8000, "20K, Every 100K" ) |
| 4251 | 4243 | PORT_DIPSETTING( 0xc000, "50K, Every 200K" ) |
| 4252 | 4244 | PORT_DIPSETTING( 0x4000, "70K, 200K Only" ) |
| r1649 | r1650 | |
| 4361 | 4353 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 4362 | 4354 | |
| 4363 | 4355 | PORT_START_TAG("IN3") //2 DSWs - $600001 & 3.b |
| 4364 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 4356 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:1") | |
| 4365 | 4357 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 4366 | 4358 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 4367 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) | |
| 4359 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:2") | |
| 4368 | 4360 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 4369 | 4361 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) |
| 4370 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) | |
| 4362 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:3,4") | |
| 4371 | 4363 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) |
| 4372 | 4364 | PORT_DIPSETTING( 0x000c, DEF_STR( Normal ) ) |
| 4373 | 4365 | PORT_DIPSETTING( 0x0004, DEF_STR( Hard ) ) |
| 4374 | 4366 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 4375 | PORT_DIPNAME( 0x0010, 0x0010, "Frames" ) | |
| 4367 | PORT_DIPNAME( 0x0010, 0x0010, "Frames" ) PORT_DIPLOCATION("SW1:5") | |
| 4376 | 4368 | PORT_DIPSETTING( 0x0010, "10" ) |
| 4377 | 4369 | PORT_DIPSETTING( 0x0000, "5" ) |
| 4378 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Cabinet ) ) | |
| 4370 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:6") | |
| 4379 | 4371 | PORT_DIPSETTING( 0x0020, DEF_STR( Upright ) ) |
| 4380 | 4372 | PORT_DIPSETTING( 0x0000, DEF_STR( Cocktail ) ) |
| 4381 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Controls ) ) | |
| 4373 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Controls ) ) PORT_DIPLOCATION("SW1:7") | |
| 4382 | 4374 | PORT_DIPSETTING( 0x0040, DEF_STR( Trackball ) ) |
| 4383 | 4375 | PORT_DIPSETTING( 0x0000, DEF_STR( Joystick ) ) |
| 4384 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 4376 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW1:8" ) | |
| 4385 | 4377 | |
| 4386 | PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coin_A ) ) | |
| 4378 | PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW2:1,2,3") | |
| 4387 | 4379 | PORT_DIPSETTING( 0x0500, DEF_STR( 3C_1C ) ) |
| 4388 | 4380 | PORT_DIPSETTING( 0x0600, DEF_STR( 2C_1C ) ) |
| 4389 | 4381 | PORT_DIPSETTING( 0x0700, DEF_STR( 1C_1C ) ) |
| r1649 | r1650 | |
| 4392 | 4384 | PORT_DIPSETTING( 0x0200, DEF_STR( 1C_4C ) ) |
| 4393 | 4385 | PORT_DIPSETTING( 0x0100, DEF_STR( 1C_5C ) ) |
| 4394 | 4386 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 4395 | PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coin_B ) ) | |
| 4387 | PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2:4,5,6") | |
| 4396 | 4388 | PORT_DIPSETTING( 0x2800, DEF_STR( 3C_1C ) ) |
| 4397 | 4389 | PORT_DIPSETTING( 0x3000, DEF_STR( 2C_1C ) ) |
| 4398 | 4390 | PORT_DIPSETTING( 0x3800, DEF_STR( 1C_1C ) ) |
| r1649 | r1650 | |
| 4401 | 4393 | PORT_DIPSETTING( 0x1000, DEF_STR( 1C_4C ) ) |
| 4402 | 4394 | PORT_DIPSETTING( 0x0800, DEF_STR( 1C_5C ) ) |
| 4403 | 4395 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 4404 | PORT_DIPNAME( 0x4000, 0x4000, "Force Coinage" ) | |
| 4396 | PORT_DIPNAME( 0x4000, 0x4000, "Force Coinage" ) PORT_DIPLOCATION("SW2:7") | |
| 4405 | 4397 | PORT_DIPSETTING( 0x4000, DEF_STR( No ) ) |
| 4406 | 4398 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_1C ) ) |
| 4407 | PORT_DIPNAME( 0x8000, 0x8000, "Unknown 2- | |
| 4399 | PORT_DIPNAME( 0x8000, 0x8000, "Unknown 2-8" ) PORT_DIPLOCATION("SW2:8") | |
| 4408 | 4400 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 4409 | 4401 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 4410 | 4402 | |
| r1649 | r1650 | |
| 4453 | 4445 | PORT_DIPSETTING( 0x0000, DEF_STR( World ) ) |
| 4454 | 4446 | |
| 4455 | 4447 | PORT_START_TAG("IN3") //2 DSWs |
| 4456 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 4448 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:1") | |
| 4457 | 4449 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 4458 | 4450 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 4459 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) | |
| 4451 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 4460 | 4452 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 4461 | 4453 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) |
| 4462 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unknown ) ) | |
| 4463 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 4464 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 4465 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Bonus_Life ) ) | |
| 4454 | PORT_DIPUNUSED_DIPLOC( 0x0004, 0x0004, "SW2:3" ) | |
| 4455 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:4,5") | |
| 4466 | 4456 | PORT_DIPSETTING( 0x0018, "1000k" ) |
| 4467 | 4457 | PORT_DIPSETTING( 0x0008, "1000k 2000k" ) |
| 4468 | 4458 | PORT_DIPSETTING( 0x0010, "1500k 3000k" ) |
| 4469 | 4459 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) |
| 4470 | PORT_DIPNAME( 0x0060, 0x0060, DEF_STR( Difficulty ) ) | |
| 4460 | PORT_DIPNAME( 0x0060, 0x0060, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:6,7") | |
| 4471 | 4461 | PORT_DIPSETTING( 0x0040, DEF_STR( Easy ) ) |
| 4472 | 4462 | PORT_DIPSETTING( 0x0060, DEF_STR( Normal ) ) |
| 4473 | 4463 | PORT_DIPSETTING( 0x0020, DEF_STR( Hard ) ) |
| 4474 | 4464 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 4475 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 4465 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW2:8" ) | |
| 4476 | 4466 | |
| 4477 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) | |
| 4467 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") | |
| 4478 | 4468 | PORT_DIPSETTING( 0x0200, "2" ) |
| 4479 | 4469 | PORT_DIPSETTING( 0x0300, "3" ) |
| 4480 | 4470 | PORT_DIPSETTING( 0x0100, "4" ) |
| 4481 | 4471 | PORT_DIPSETTING( 0x0000, "5" ) |
| 4482 | PORT_DIPNAME( 0x1c00, 0x1c00, DEF_STR( Coin_A ) ) | |
| 4472 | PORT_DIPNAME( 0x1c00, 0x1c00, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:3,4,5") | |
| 4483 | 4473 | PORT_DIPSETTING( 0x0400, DEF_STR( 4C_1C ) ) |
| 4484 | 4474 | PORT_DIPSETTING( 0x0800, DEF_STR( 3C_1C ) ) |
| 4485 | 4475 | PORT_DIPSETTING( 0x1000, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 4488 | 4478 | PORT_DIPSETTING( 0x1800, DEF_STR( 1C_2C ) ) |
| 4489 | 4479 | PORT_DIPSETTING( 0x1400, DEF_STR( 1C_3C ) ) |
| 4490 | 4480 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_4C ) ) |
| 4491 | PORT_DIPNAME( 0xe000, 0xe000, DEF_STR( Coin_A ) ) | |
| 4481 | PORT_DIPNAME( 0xe000, 0xe000, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:6,7,8") | |
| 4492 | 4482 | PORT_DIPSETTING( 0x2000, DEF_STR( 4C_1C ) ) |
| 4493 | 4483 | PORT_DIPSETTING( 0x4000, DEF_STR( 3C_1C ) ) |
| 4494 | 4484 | PORT_DIPSETTING( 0x8000, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 4593 | 4583 | PORT_DIPSETTING( 0x0000, DEF_STR( Japanese ) ) |
| 4594 | 4584 | |
| 4595 | 4585 | PORT_START_TAG("IN3") //2 DSWs - $600001 & 3.b |
| 4596 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) | |
| 4586 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW2:1,2,3") | |
| 4597 | 4587 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) |
| 4598 | 4588 | PORT_DIPSETTING( 0x0001, DEF_STR( 3C_1C ) ) |
| 4599 | 4589 | PORT_DIPSETTING( 0x0002, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 4602 | 4592 | PORT_DIPSETTING( 0x0005, DEF_STR( 1C_3C ) ) |
| 4603 | 4593 | PORT_DIPSETTING( 0x0003, DEF_STR( 1C_4C ) ) |
| 4604 | 4594 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_5C ) ) |
| 4605 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) | |
| 4595 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2:4,5,6") | |
| 4606 | 4596 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) |
| 4607 | 4597 | PORT_DIPSETTING( 0x0008, DEF_STR( 3C_1C ) ) |
| 4608 | 4598 | PORT_DIPSETTING( 0x0010, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 4611 | 4601 | PORT_DIPSETTING( 0x0028, DEF_STR( 1C_3C ) ) |
| 4612 | 4602 | PORT_DIPSETTING( 0x0018, DEF_STR( 1C_4C ) ) |
| 4613 | 4603 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_5C ) ) |
| 4614 | PORT_DIPNAME( 0x0040, 0x0040, "Unknown 2- | |
| 4604 | PORT_DIPNAME( 0x0040, 0x0040, "Unknown 2-7" ) PORT_DIPLOCATION("SW2:7") | |
| 4615 | 4605 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) |
| 4616 | 4606 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 4617 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Free_Play ) ) | |
| 4607 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW2:8") | |
| 4618 | 4608 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 4619 | 4609 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 4620 | 4610 | |
| 4621 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Demo_Sounds ) ) | |
| 4611 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1") | |
| 4622 | 4612 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 4623 | 4613 | PORT_DIPSETTING( 0x0100, DEF_STR( On ) ) |
| 4624 | PORT_DIPNAME( 0x0600, 0x0600, DEF_STR( Difficulty ) ) // unverified, from the manual | |
| 4625 | PORT_DIPSETTING( 0x0400, DEF_STR( Easy ) ) | |
| 4626 | PORT_DIPSETTING( 0x0600, DEF_STR( Normal ) ) | |
| 4627 | PORT_DIPSETTING( 0x0200, DEF_STR( Hard ) ) | |
| 4614 | PORT_DIPNAME( 0x0600, 0x0600, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:2,3") // unverified, from the manual | |
| 4615 | PORT_DIPSETTING( 0x0400, DEF_STR( Easy ) ) | |
| 4616 | PORT_DIPSETTING( 0x0600, DEF_STR( Normal ) ) | |
| 4617 | PORT_DIPSETTING( 0x0200, DEF_STR( Hard ) ) | |
| 4628 | 4618 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 4629 | PORT_DIPNAME( 0x0800, 0x0800, "Unknown 1- | |
| 4619 | PORT_DIPNAME( 0x0800, 0x0800, "Unknown 1-4" ) PORT_DIPLOCATION("SW1:4") | |
| 4630 | 4620 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) |
| 4631 | 4621 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 4632 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Flip_Screen ) ) | |
| 4622 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:5") | |
| 4633 | 4623 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) |
| 4634 | 4624 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 4635 | PORT_DIPNAME( 0x2000, 0x2000, "Memory Check" ) | |
| 4625 | PORT_DIPNAME( 0x2000, 0x2000, "Memory Check" ) PORT_DIPLOCATION("SW1:6") | |
| 4636 | 4626 | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) |
| 4637 | 4627 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 4638 | PORT_DIPNAME( 0x4000, 0x4000, "Unknown 1- | |
| 4628 | PORT_DIPNAME( 0x4000, 0x4000, "Unknown 1-7" ) PORT_DIPLOCATION("SW1:7") | |
| 4639 | 4629 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) |
| 4640 | 4630 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 4641 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) | |
| 4631 | PORT_SERVICE_DIPLOC( 0x8000, IP_ACTIVE_LOW, "SW1:8" ) | |
| 4642 | 4632 | INPUT_PORTS_END |
| 4643 | 4633 | |
| 4644 | 4634 | static INPUT_PORTS_START( msgunda1 ) |
| 4645 | PORT_START_TAG("IN0") //Player 1 - $400000.w | |
| 4646 | JOY_TYPE1_2BUTTONS(1) | |
| 4635 | PORT_INCLUDE(msgundam) | |
| 4647 | 4636 | |
| 4648 | PORT_START_TAG("IN1") //Player 2 - $400002.w | |
| 4649 | JOY_TYPE1_2BUTTONS(2) | |
| 4650 | ||
| 4651 | PORT_START // IN2 - Coins - $400004.w | |
| 4652 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(5) | |
| 4653 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(5) | |
| 4654 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 4655 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_TILT ) | |
| 4656 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 4657 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 4658 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 4637 | PORT_MODIFY("IN2") // IN2 - Coins - $400004.w | |
| 4659 | 4638 | /* this set seems to be a japan set, english mode doesn't work correctly */ |
| 4660 | 4639 | PORT_DIPNAME( 0x0080, 0x0000, DEF_STR( Language ) ) |
| 4661 | 4640 | // PORT_DIPSETTING( 0x0080, DEF_STR( English ) ) |
| 4662 | 4641 | PORT_DIPSETTING( 0x0000, DEF_STR( Japanese ) ) |
| 4663 | ||
| 4664 | PORT_START_TAG("IN3") //2 DSWs - $600001 & 3.b | |
| 4665 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) | |
| 4666 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) | |
| 4667 | PORT_DIPSETTING( 0x0001, DEF_STR( 3C_1C ) ) | |
| 4668 | PORT_DIPSETTING( 0x0002, DEF_STR( 2C_1C ) ) | |
| 4669 | PORT_DIPSETTING( 0x0007, DEF_STR( 1C_1C ) ) | |
| 4670 | PORT_DIPSETTING( 0x0006, DEF_STR( 1C_2C ) ) | |
| 4671 | PORT_DIPSETTING( 0x0005, DEF_STR( 1C_3C ) ) | |
| 4672 | PORT_DIPSETTING( 0x0003, DEF_STR( 1C_4C ) ) | |
| 4673 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_5C ) ) | |
| 4674 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) | |
| 4675 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) | |
| 4676 | PORT_DIPSETTING( 0x0008, DEF_STR( 3C_1C ) ) | |
| 4677 | PORT_DIPSETTING( 0x0010, DEF_STR( 2C_1C ) ) | |
| 4678 | PORT_DIPSETTING( 0x0038, DEF_STR( 1C_1C ) ) | |
| 4679 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_2C ) ) | |
| 4680 | PORT_DIPSETTING( 0x0028, DEF_STR( 1C_3C ) ) | |
| 4681 | PORT_DIPSETTING( 0x0018, DEF_STR( 1C_4C ) ) | |
| 4682 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_5C ) ) | |
| 4683 | PORT_DIPNAME( 0x0040, 0x0040, "Unknown 2-6" ) | |
| 4684 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 4685 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 4686 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Free_Play ) ) | |
| 4687 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 4688 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 4689 | ||
| 4690 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Demo_Sounds ) ) | |
| 4691 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 4692 | PORT_DIPSETTING( 0x0100, DEF_STR( On ) ) | |
| 4693 | PORT_DIPNAME( 0x0600, 0x0600, DEF_STR( Difficulty ) ) // unverified, from the manual | |
| 4694 | PORT_DIPSETTING( 0x0400, DEF_STR( Easy ) ) | |
| 4695 | PORT_DIPSETTING( 0x0600, DEF_STR( Normal ) ) | |
| 4696 | PORT_DIPSETTING( 0x0200, DEF_STR( Hard ) ) | |
| 4697 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 4698 | PORT_DIPNAME( 0x0800, 0x0800, "Unknown 1-3" ) | |
| 4699 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) | |
| 4700 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 4701 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Flip_Screen ) ) | |
| 4702 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) | |
| 4703 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 4704 | PORT_DIPNAME( 0x2000, 0x2000, "Memory Check" ) | |
| 4705 | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) | |
| 4706 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 4707 | PORT_DIPNAME( 0x4000, 0x4000, "Unknown 1-6" ) | |
| 4708 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) | |
| 4709 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 4710 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) | |
| 4711 | 4642 | INPUT_PORTS_END |
| 4712 | 4643 | |
| 4713 | 4644 | |
| r1649 | r1650 | |
| 4733 | 4664 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 4734 | 4665 | |
| 4735 | 4666 | PORT_START_TAG("IN3") //2 DSWs - $600001 & 3.b |
| 4736 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) | |
| 4667 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 4737 | 4668 | PORT_DIPSETTING( 0x0002, DEF_STR( Easy ) ) |
| 4738 | 4669 | PORT_DIPSETTING( 0x0003, DEF_STR( Normal ) ) |
| 4739 | 4670 | PORT_DIPSETTING( 0x0001, DEF_STR( Hard ) ) |
| 4740 | 4671 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 4741 | PORT_DIPNAME( 0x0004, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 4672 | PORT_DIPNAME( 0x0004, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:3") | |
| 4742 | 4673 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) |
| 4743 | 4674 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 4744 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unused ) ) /* Manual States dips 4-7 are unused */ | |
| 4745 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 4746 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 4747 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unused ) ) | |
| 4748 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 4749 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 4750 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) ) | |
| 4751 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 4752 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 4753 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) | |
| 4754 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 4755 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 4756 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 4675 | PORT_DIPUNUSED_DIPLOC( 0x0008, 0x0008, "SW2:4" ) /* Manual States dips 4-7 are unused */ | |
| 4676 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0010, "SW2:5" ) /* Listed as "Unused" */ | |
| 4677 | PORT_DIPUNUSED_DIPLOC( 0x0020, 0x0020, "SW2:6" ) /* Listed as "Unused" */ | |
| 4678 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "SW2:7" ) /* Listed as "Unused" */ | |
| 4679 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW2:8" ) | |
| 4757 | 4680 | |
| 4758 | PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coin_A ) ) | |
| 4681 | PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3") | |
| 4759 | 4682 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| 4760 | 4683 | PORT_DIPSETTING( 0x0100, DEF_STR( 4C_1C ) ) |
| 4761 | 4684 | PORT_DIPSETTING( 0x0200, DEF_STR( 3C_1C ) ) |
| r1649 | r1650 | |
| 4764 | 4687 | PORT_DIPSETTING( 0x0600, DEF_STR( 1C_2C ) ) |
| 4765 | 4688 | PORT_DIPSETTING( 0x0500, DEF_STR( 1C_3C ) ) |
| 4766 | 4689 | PORT_DIPSETTING( 0x0400, DEF_STR( 1C_4C ) ) |
| 4767 | PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coin_B ) ) | |
| 4690 | PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:4,5,6") | |
| 4768 | 4691 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| 4769 | 4692 | PORT_DIPSETTING( 0x0800, DEF_STR( 4C_1C ) ) |
| 4770 | 4693 | PORT_DIPSETTING( 0x1000, DEF_STR( 3C_1C ) ) |
| r1649 | r1650 | |
| 4773 | 4696 | PORT_DIPSETTING( 0x3000, DEF_STR( 1C_2C ) ) |
| 4774 | 4697 | PORT_DIPSETTING( 0x2800, DEF_STR( 1C_3C ) ) |
| 4775 | 4698 | PORT_DIPSETTING( 0x2000, DEF_STR( 1C_4C ) ) |
| 4776 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unused ) ) /* Manual States this dip is unused */ | |
| 4777 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 4778 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 4699 | PORT_DIPUNUSED_DIPLOC( 0x4000, 0x4000, "SW1:7" ) /* Listed as "Unused" */ | |
| 4700 | PORT_DIPUNUSED_DIPLOC( 0x8000, 0x8000, "SW1:8" ) /* Listed as "Unused" */ | |
| 4779 | 4701 | INPUT_PORTS_END |
| 4780 | 4702 | |
| 4781 | 4703 | |
| r1649 | r1650 | |
| 4794 | 4716 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_IMPULSE(5) |
| 4795 | 4717 | |
| 4796 | 4718 | PORT_START_TAG("IN3") //2 DSWs - $e00001 & 3.b |
| 4797 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) | |
| 4719 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW2:1,2,3") | |
| 4798 | 4720 | PORT_DIPSETTING( 0x0001, DEF_STR( 4C_1C ) ) |
| 4799 | 4721 | PORT_DIPSETTING( 0x0002, DEF_STR( 3C_1C ) ) |
| 4800 | 4722 | PORT_DIPSETTING( 0x0004, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 4803 | 4725 | PORT_DIPSETTING( 0x0006, DEF_STR( 1C_2C ) ) |
| 4804 | 4726 | PORT_DIPSETTING( 0x0005, DEF_STR( 1C_3C ) ) |
| 4805 | 4727 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 4806 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) | |
| 4728 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2:4,5,6") | |
| 4807 | 4729 | PORT_DIPSETTING( 0x0008, DEF_STR( 4C_1C ) ) |
| 4808 | 4730 | PORT_DIPSETTING( 0x0010, DEF_STR( 3C_1C ) ) |
| 4809 | 4731 | PORT_DIPSETTING( 0x0020, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 4812 | 4734 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_2C ) ) |
| 4813 | 4735 | PORT_DIPSETTING( 0x0028, DEF_STR( 1C_3C ) ) |
| 4814 | 4736 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 4815 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Demo_Sounds ) ) | |
| 4737 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:7") | |
| 4816 | 4738 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 4817 | 4739 | PORT_DIPSETTING( 0x0040, DEF_STR( On ) ) |
| 4818 | PORT_DIPNAME( 0x0080, 0x0080, "Player's TSUMO" ) | |
| 4740 | PORT_DIPNAME( 0x0080, 0x0080, "Player's TSUMO" ) PORT_DIPLOCATION("SW2:8") | |
| 4819 | 4741 | PORT_DIPSETTING( 0x0080, "Manual" ) |
| 4820 | 4742 | PORT_DIPSETTING( 0x0000, "Auto" ) |
| 4821 | 4743 | |
| 4822 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Flip_Screen ) ) | |
| 4744 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:1") | |
| 4823 | 4745 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) |
| 4824 | 4746 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 4825 | 4747 | PORT_SERVICE( 0x0200, IP_ACTIVE_LOW ) |
| 4826 | PORT_DIPNAME( 0x1c00, 0x1c00, DEF_STR( Difficulty ) ) | |
| 4748 | PORT_SERVICE_DIPLOC( 0x0200, IP_ACTIVE_LOW, "SW1:2" ) | |
| 4749 | PORT_DIPNAME( 0x1c00, 0x1c00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:3,4,5") | |
| 4827 | 4750 | PORT_DIPSETTING( 0x1c00, DEF_STR( None ) ) |
| 4828 | 4751 | PORT_DIPSETTING( 0x1800, "Prelim 1" ) |
| 4829 | 4752 | PORT_DIPSETTING( 0x1400, "Prelim 2" ) |
| r1649 | r1650 | |
| 4832 | 4755 | PORT_DIPSETTING( 0x0800, "Final 3" ) |
| 4833 | 4756 | PORT_DIPSETTING( 0x0400, "Qrt Final" ) |
| 4834 | 4757 | PORT_DIPSETTING( 0x0000, "SemiFinal" ) |
| 4835 | PORT_DIPNAME( 0xe000, 0xe000, "Points Gap" ) | |
| 4758 | PORT_DIPNAME( 0xe000, 0xe000, "Points Gap" ) PORT_DIPLOCATION("SW1:6,7,8") | |
| 4836 | 4759 | PORT_DIPSETTING( 0xe000, DEF_STR( None ) ) |
| 4837 | 4760 | PORT_DIPSETTING( 0xc000, "+6000" ) |
| 4838 | 4761 | PORT_DIPSETTING( 0xa000, "+4000" ) |
| r1649 | r1650 | |
| 5076 | 4999 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 5077 | 5000 | |
| 5078 | 5001 | PORT_START_TAG("IN3") //2 DSWs - $600001 & 3.b |
| 5079 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 5002 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:1") | |
| 5080 | 5003 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 5081 | 5004 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 5082 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) | |
| 5005 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 5083 | 5006 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 5084 | 5007 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) |
| 5085 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unused ) ) | |
| 5086 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 5087 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 5088 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Cabinet ) ) | |
| 5008 | PORT_DIPUNUSED_DIPLOC( 0x0004, 0x0004, "SW2:3" ) /* Listed as "Unused" */ | |
| 5009 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW2:4,5") | |
| 5089 | 5010 | PORT_DIPSETTING( 0x0000, "Upright 1 Controller" ) |
| 5090 | 5011 | PORT_DIPSETTING( 0x0018, "Upright 2 Controllers" ) |
| 5091 | 5012 | PORT_DIPSETTING( 0x0008, DEF_STR( Cocktail ) ) |
| 5092 | 5013 | // PORT_DIPSETTING( 0x0010, "10" ) /* Unused / Not Defined */ |
| 5093 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) ) | |
| 5094 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 5095 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 5096 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) | |
| 5097 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 5098 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 5099 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 5014 | PORT_DIPUNUSED_DIPLOC( 0x0020, 0x0020, "SW2:6" ) /* Listed as "Unused" */ | |
| 5015 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "SW2:7" ) /* Listed as "Unused" */ | |
| 5016 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW2:8" ) | |
| 5100 | 5017 | |
| 5101 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) | |
| 5018 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") | |
| 5102 | 5019 | PORT_DIPSETTING( 0x0200, "2" ) |
| 5103 | 5020 | PORT_DIPSETTING( 0x0300, "3" ) |
| 5104 | 5021 | PORT_DIPSETTING( 0x0100, "4" ) |
| 5105 | 5022 | PORT_DIPSETTING( 0x0000, "5" ) |
| 5106 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) | |
| 5023 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:3,4") | |
| 5107 | 5024 | PORT_DIPSETTING( 0x0800, DEF_STR( Easy ) ) |
| 5108 | 5025 | PORT_DIPSETTING( 0x0c00, DEF_STR( Normal ) ) |
| 5109 | 5026 | PORT_DIPSETTING( 0x0400, DEF_STR( Hard ) ) |
| 5110 | 5027 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 5111 | PORT_DIPNAME( 0xf000, 0xf000, DEF_STR( Coinage ) ) | |
| 5028 | PORT_DIPNAME( 0xf000, 0xf000, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:5,6,7,8") | |
| 5112 | 5029 | PORT_DIPSETTING( 0xa000, DEF_STR( 6C_1C ) ) |
| 5113 | 5030 | PORT_DIPSETTING( 0xb000, DEF_STR( 5C_1C ) ) |
| 5114 | 5031 | PORT_DIPSETTING( 0xc000, DEF_STR( 4C_1C ) ) |
| r1649 | r1650 | |
| 5308 | 5225 | title logo, but the table is filled with just 1 value */ |
| 5309 | 5226 | |
| 5310 | 5227 | PORT_START_TAG("IN3") //2 DSWs - $600001 & 3.b |
| 5311 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) | |
| 5228 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 5312 | 5229 | PORT_DIPSETTING( 0x0002, DEF_STR( Easy ) ) // 0 |
| 5313 | 5230 | PORT_DIPSETTING( 0x0003, DEF_STR( Normal ) ) // 4 |
| 5314 | 5231 | PORT_DIPSETTING( 0x0001, DEF_STR( Hard ) ) // 8 |
| 5315 | 5232 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) // b |
| 5316 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unused ) ) | |
| 5317 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 5318 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 5319 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unused ) ) | |
| 5320 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 5321 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 5322 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Lives ) ) | |
| 5233 | PORT_DIPUNUSED_DIPLOC( 0x0004, 0x0004, "SW2:3" ) | |
| 5234 | PORT_DIPUNUSED_DIPLOC( 0x0008, 0x0008, "SW2:4" ) | |
| 5235 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 5323 | 5236 | PORT_DIPSETTING( 0x0010, "1" ) |
| 5324 | 5237 | PORT_DIPSETTING( 0x0000, "2" ) |
| 5325 | 5238 | PORT_DIPSETTING( 0x0030, "3" ) |
| 5326 | 5239 | PORT_DIPSETTING( 0x0020, "5" ) |
| 5327 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) | |
| 5328 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 5329 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 5330 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unused ) ) | |
| 5331 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 5332 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 5240 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "SW2:7" ) | |
| 5241 | PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0080, "SW2:8" ) | |
| 5333 | 5242 | |
| 5334 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Unused ) ) | |
| 5243 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW1:1") | |
| 5335 | 5244 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) |
| 5336 | 5245 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 5337 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Flip_Screen ) ) | |
| 5246 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:2") | |
| 5338 | 5247 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) |
| 5339 | 5248 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 5340 | PORT_SERVICE( 0x0400, IP_ACTIVE_LOW ) | |
| 5341 | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Unused ) ) | |
| 5342 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) | |
| 5343 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 5344 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Coin_A ) ) | |
| 5249 | PORT_SERVICE_DIPLOC( 0x0400, IP_ACTIVE_LOW, "SW1:3" ) | |
| 5250 | PORT_DIPUNUSED_DIPLOC( 0x0800, 0x0800, "SW1:4" ) | |
| 5251 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:5,6") | |
| 5345 | 5252 | PORT_DIPSETTING( 0x1000, DEF_STR( 2C_1C ) ) |
| 5346 | 5253 | PORT_DIPSETTING( 0x3000, DEF_STR( 1C_1C ) ) |
| 5347 | 5254 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_3C ) ) |
| 5348 | 5255 | PORT_DIPSETTING( 0x2000, DEF_STR( 1C_2C ) ) |
| 5349 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Demo_Sounds ) ) | |
| 5256 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:7") | |
| 5350 | 5257 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 5351 | 5258 | PORT_DIPSETTING( 0x4000, DEF_STR( On ) ) |
| 5352 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unused ) ) | |
| 5353 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 5354 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 5259 | PORT_DIPUNUSED_DIPLOC( 0x8000, 0x8000, "SW1:8" ) | |
| 5355 | 5260 | INPUT_PORTS_END |
| 5356 | 5261 | |
| 5357 | 5262 | |
| r1649 | r1650 | |
| 5386 | 5291 | // PORT_DIPSETTING( 0x0000, DEF_STR( None ) ) |
| 5387 | 5292 | |
| 5388 | 5293 | PORT_START_TAG("IN3") //2 DSWs - $600003 & 1.b |
| 5389 | PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coin_A ) ) | |
| 5294 | PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW2:1,2,3,4") | |
| 5390 | 5295 | PORT_DIPSETTING( 0x000c, DEF_STR( 4C_1C ) ) |
| 5391 | 5296 | PORT_DIPSETTING( 0x000d, DEF_STR( 3C_1C ) ) |
| 5392 | 5297 | PORT_DIPSETTING( 0x0008, DEF_STR( 4C_2C ) ) |
| r1649 | r1650 | |
| 5403 | 5308 | PORT_DIPSETTING( 0x000b, DEF_STR( 1C_2C ) ) |
| 5404 | 5309 | PORT_DIPSETTING( 0x0007, DEF_STR( 1C_3C ) ) |
| 5405 | 5310 | PORT_DIPSETTING( 0x0003, DEF_STR( 1C_4C ) ) |
| 5406 | PORT_DIPNAME( 0x00f0, 0x00f0, DEF_STR( Coin_B ) ) | |
| 5311 | PORT_DIPNAME( 0x00f0, 0x00f0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2:5,6,7,8") | |
| 5407 | 5312 | PORT_DIPSETTING( 0x00c0, DEF_STR( 4C_1C ) ) |
| 5408 | 5313 | PORT_DIPSETTING( 0x00d0, DEF_STR( 3C_1C ) ) |
| 5409 | 5314 | PORT_DIPSETTING( 0x0080, DEF_STR( 4C_2C ) ) |
| r1649 | r1650 | |
| 5421 | 5326 | PORT_DIPSETTING( 0x0070, DEF_STR( 1C_3C ) ) |
| 5422 | 5327 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_4C ) ) |
| 5423 | 5328 | |
| 5424 | PORT_SERVICE( 0x0100, IP_ACTIVE_LOW ) | |
| 5425 | PORT_DIPNAME( 0x0200, 0x0000, DEF_STR( Flip_Screen ) ) | |
| 5329 | PORT_SERVICE_DIPLOC( 0x0100, IP_ACTIVE_LOW, "SW1:1" ) | |
| 5330 | PORT_DIPNAME( 0x0200, 0x0000, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:2") | |
| 5426 | 5331 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) // WEIRD! |
| 5427 | 5332 | PORT_DIPSETTING( 0x0200, DEF_STR( On ) ) |
| 5428 | PORT_DIPNAME( 0x0400, 0x0000, DEF_STR( Cabinet ) ) | |
| 5333 | PORT_DIPNAME( 0x0400, 0x0000, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:3") | |
| 5429 | 5334 | PORT_DIPSETTING( 0x0000, DEF_STR( Upright ) ) |
| 5430 | 5335 | PORT_DIPSETTING( 0x0400, DEF_STR( Cocktail ) ) |
| 5431 | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Controls ) ) | |
| 5336 | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Controls ) ) PORT_DIPLOCATION("SW1:4") | |
| 5432 | 5337 | PORT_DIPSETTING( 0x0800, "2" ) |
| 5433 | 5338 | PORT_DIPSETTING( 0x0000, "1" ) |
| 5434 | PORT_DIPNAME( 0x1000, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 5339 | PORT_DIPNAME( 0x1000, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:5") | |
| 5435 | 5340 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) |
| 5436 | 5341 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 5437 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Lives ) ) | |
| 5342 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:6") | |
| 5438 | 5343 | PORT_DIPSETTING( 0x2000, "3" ) |
| 5439 | 5344 | PORT_DIPSETTING( 0x0000, "2" ) |
| 5440 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Difficulty ) ) | |
| 5345 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:7,8") | |
| 5441 | 5346 | PORT_DIPSETTING( 0x8000, DEF_STR( Easy ) ) |
| 5442 | 5347 | PORT_DIPSETTING( 0xc000, DEF_STR( Normal ) ) |
| 5443 | 5348 | PORT_DIPSETTING( 0x4000, DEF_STR( Hard ) ) |
| r1649 | r1650 | |
| 5468 | 5373 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 5469 | 5374 | |
| 5470 | 5375 | PORT_START_TAG("IN3") //2 DSWs - $600001 & 3.b |
| 5471 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) | |
| 5376 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 5472 | 5377 | PORT_DIPSETTING( 0x0002, DEF_STR( Easy ) ) |
| 5473 | 5378 | PORT_DIPSETTING( 0x0003, DEF_STR( Normal ) ) |
| 5474 | 5379 | PORT_DIPSETTING( 0x0001, DEF_STR( Hard ) ) |
| 5475 | 5380 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 5476 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Bonus_Life ) ) | |
| 5381 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 5477 | 5382 | PORT_DIPSETTING( 0x000c, "50K Only" ) |
| 5478 | 5383 | PORT_DIPSETTING( 0x0004, "50K, Every 150K" ) |
| 5479 | 5384 | PORT_DIPSETTING( 0x0000, "70K, Every 200K" ) |
| 5480 | 5385 | PORT_DIPSETTING( 0x0008, "100K Only" ) |
| 5481 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Lives ) ) | |
| 5386 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 5482 | 5387 | PORT_DIPSETTING( 0x0010, "1" ) |
| 5483 | 5388 | PORT_DIPSETTING( 0x0000, "2" ) |
| 5484 | 5389 | PORT_DIPSETTING( 0x0030, "3" ) |
| 5485 | 5390 | PORT_DIPSETTING( 0x0020, "5" ) |
| 5486 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Allow_Continue ) ) | |
| 5391 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:7") | |
| 5487 | 5392 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 5488 | 5393 | PORT_DIPSETTING( 0x0040, DEF_STR( On ) ) |
| 5489 | PORT_DIPNAME( 0x0080, 0x0000, "Licensed To" ) // + coin mode (not supported) | |
| 5394 | PORT_DIPNAME( 0x0080, 0x0000, "Licensed To" ) PORT_DIPLOCATION("SW2:8") // + coin mode (not supported) | |
| 5490 | 5395 | PORT_DIPSETTING( 0x0080, "Taito America Corp." ) |
| 5491 | 5396 | PORT_DIPSETTING( 0x0000, "Taito Corp. Japan" ) |
| 5492 | 5397 | |
| 5493 | PORT_DIPNAME( 0x0100, 0x0100, "Title" ) | |
| 5398 | PORT_DIPNAME( 0x0100, 0x0100, "Title" ) PORT_DIPLOCATION("SW1:1") | |
| 5494 | 5399 | PORT_DIPSETTING( 0x0100, "Thundercade" ) |
| 5495 | 5400 | PORT_DIPSETTING( 0x0000, "Twin Formation" ) |
| 5496 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Flip_Screen ) ) | |
| 5401 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:2") | |
| 5497 | 5402 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) |
| 5498 | 5403 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 5499 | PORT_SERVICE( 0x0400, IP_ACTIVE_LOW ) | |
| 5500 | PORT_DIPNAME( 0x0800, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 5404 | PORT_SERVICE_DIPLOC( 0x0400, IP_ACTIVE_LOW, "SW1:3" ) | |
| 5405 | PORT_DIPNAME( 0x0800, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:4") | |
| 5501 | 5406 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) |
| 5502 | 5407 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 5503 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Coin_A ) ) | |
| 5408 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:5,6") | |
| 5504 | 5409 | PORT_DIPSETTING( 0x1000, DEF_STR( 2C_1C ) ) |
| 5505 | 5410 | PORT_DIPSETTING( 0x3000, DEF_STR( 1C_1C ) ) |
| 5506 | 5411 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_3C ) ) |
| 5507 | 5412 | PORT_DIPSETTING( 0x2000, DEF_STR( 1C_2C ) ) |
| 5508 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Coin_B ) ) | |
| 5413 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:7,8") | |
| 5509 | 5414 | PORT_DIPSETTING( 0x4000, DEF_STR( 2C_1C ) ) |
| 5510 | 5415 | PORT_DIPSETTING( 0xc000, DEF_STR( 1C_1C ) ) |
| 5511 | 5416 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_3C ) ) |
| r1649 | r1650 | |
| 5518 | 5423 | ***************************************************************************/ |
| 5519 | 5424 | |
| 5520 | 5425 | static INPUT_PORTS_START( tndrcadj ) |
| 5521 | PORT_START_TAG("IN0") //Player 1 | |
| 5522 | JOY_TYPE1_2BUTTONS(1) | |
| 5426 | PORT_INCLUDE(tndrcade) | |
| 5523 | 5427 | |
| 5524 | PORT_START_TAG("IN1") //Player 2 | |
| 5525 | JOY_TYPE1_2BUTTONS(2) | |
| 5526 | ||
| 5527 | PORT_START_TAG("IN2") //Coins | |
| 5528 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(5) | |
| 5529 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(5) | |
| 5530 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_START1 ) | |
| 5531 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START2 ) | |
| 5532 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 5533 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_TILT ) | |
| 5534 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 5535 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 5536 | ||
| 5537 | PORT_START_TAG("IN3") //2 DSWs - $600001 & 3.b | |
| 5538 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) | |
| 5539 | PORT_DIPSETTING( 0x0002, DEF_STR( Easy ) ) | |
| 5540 | PORT_DIPSETTING( 0x0003, DEF_STR( Normal ) ) | |
| 5541 | PORT_DIPSETTING( 0x0001, DEF_STR( Hard ) ) | |
| 5542 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 5543 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Bonus_Life ) ) | |
| 5544 | PORT_DIPSETTING( 0x000c, "50K Only" ) | |
| 5545 | PORT_DIPSETTING( 0x0004, "50K, Every 150K" ) | |
| 5546 | PORT_DIPSETTING( 0x0000, "70K, Every 200K" ) | |
| 5547 | PORT_DIPSETTING( 0x0008, "100K Only" ) | |
| 5548 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Lives ) ) | |
| 5549 | PORT_DIPSETTING( 0x0010, "1" ) | |
| 5550 | PORT_DIPSETTING( 0x0000, "2" ) | |
| 5551 | PORT_DIPSETTING( 0x0030, "3" ) | |
| 5552 | PORT_DIPSETTING( 0x0020, "5" ) | |
| 5553 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Allow_Continue ) ) | |
| 5554 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 5555 | PORT_DIPSETTING( 0x0040, DEF_STR( On ) ) | |
| 5556 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Free_Play ) ) | |
| 5428 | PORT_MODIFY("IN3") //2 DSWs - $600001 & 3.b | |
| 5429 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW2:8") | |
| 5557 | 5430 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 5558 | 5431 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 5559 | 5432 | |
| 5560 | PORT_DIPNAME( 0x0100, 0x0100, "Invulnerability (Cheat)") | |
| 5433 | PORT_DIPNAME( 0x0100, 0x0100, "Invulnerability (Cheat)") PORT_DIPLOCATION("SW1:1") | |
| 5561 | 5434 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) |
| 5562 | 5435 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 5563 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Flip_Screen ) ) | |
| 5564 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) | |
| 5565 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 5566 | PORT_SERVICE( 0x0400, IP_ACTIVE_LOW ) | |
| 5567 | PORT_DIPNAME( 0x0800, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 5568 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) | |
| 5569 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 5570 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Coin_A ) ) | |
| 5571 | PORT_DIPSETTING( 0x1000, DEF_STR( 2C_1C ) ) | |
| 5572 | PORT_DIPSETTING( 0x3000, DEF_STR( 1C_1C ) ) | |
| 5573 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_3C ) ) | |
| 5574 | PORT_DIPSETTING( 0x2000, DEF_STR( 1C_2C ) ) | |
| 5575 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Coin_B ) ) | |
| 5576 | PORT_DIPSETTING( 0x4000, DEF_STR( 2C_1C ) ) | |
| 5577 | PORT_DIPSETTING( 0xc000, DEF_STR( 1C_1C ) ) | |
| 5578 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_3C ) ) | |
| 5579 | PORT_DIPSETTING( 0x8000, DEF_STR( 1C_2C ) ) | |
| 5580 | 5436 | INPUT_PORTS_END |
| 5581 | 5437 | |
| 5582 | 5438 | |
| r1649 | r1650 | |
| 5753 | 5609 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 5754 | 5610 | |
| 5755 | 5611 | PORT_START_TAG("IN3") //2 DSWs |
| 5756 | PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coin_A ) ) | |
| 5612 | PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW2:1,2,3,4") | |
| 5757 | 5613 | PORT_DIPSETTING( 0x0002, DEF_STR( 4C_1C ) ) |
| 5758 | 5614 | PORT_DIPSETTING( 0x0005, DEF_STR( 3C_1C ) ) |
| 5759 | 5615 | PORT_DIPSETTING( 0x0008, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 5770 | 5626 | PORT_DIPSETTING( 0x000a, DEF_STR( 1C_6C ) ) |
| 5771 | 5627 | PORT_DIPSETTING( 0x0009, DEF_STR( 1C_7C ) ) |
| 5772 | 5628 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 5773 | PORT_DIPNAME( 0x00f0, 0x00f0, DEF_STR( Coin_B ) ) | |
| 5629 | PORT_DIPNAME( 0x00f0, 0x00f0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2:5,6,7,8") | |
| 5774 | 5630 | PORT_DIPSETTING( 0x0020, DEF_STR( 4C_1C ) ) |
| 5775 | 5631 | PORT_DIPSETTING( 0x0050, DEF_STR( 3C_1C ) ) |
| 5776 | 5632 | PORT_DIPSETTING( 0x0080, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 5788 | 5644 | PORT_DIPSETTING( 0x00a0, DEF_STR( 1C_6C ) ) |
| 5789 | 5645 | PORT_DIPSETTING( 0x0090, DEF_STR( 1C_7C ) ) |
| 5790 | 5646 | |
| 5791 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) | |
| 5647 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") | |
| 5792 | 5648 | PORT_DIPSETTING( 0x0000, "1" ) |
| 5793 | 5649 | PORT_DIPSETTING( 0x0200, "2" ) |
| 5794 | 5650 | PORT_DIPSETTING( 0x0300, "3" ) |
| 5795 | 5651 | PORT_DIPSETTING( 0x0100, "4" ) |
| 5796 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) | |
| 5652 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:3,4") | |
| 5797 | 5653 | PORT_DIPSETTING( 0x0800, DEF_STR( Easy ) ) |
| 5798 | 5654 | PORT_DIPSETTING( 0x0c00, DEF_STR( Normal ) ) |
| 5799 | 5655 | PORT_DIPSETTING( 0x0400, DEF_STR( Hard ) ) |
| 5800 | 5656 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 5801 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Flip_Screen ) ) | |
| 5657 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:5") | |
| 5802 | 5658 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) |
| 5803 | 5659 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 5804 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Demo_Sounds ) ) | |
| 5660 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:6") | |
| 5805 | 5661 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 5806 | 5662 | PORT_DIPSETTING( 0x2000, DEF_STR( On ) ) |
| 5807 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Bonus_Life ) ) | |
| 5663 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:7") | |
| 5808 | 5664 | PORT_DIPSETTING( 0x4000, "100k" ) |
| 5809 | 5665 | PORT_DIPSETTING( 0x0000, "150k" ) |
| 5810 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) | |
| 5666 | PORT_SERVICE_DIPLOC( 0x8000, IP_ACTIVE_LOW, "SW1:8" ) | |
| 5811 | 5667 | INPUT_PORTS_END |
| 5812 | 5668 | |
| 5813 | 5669 | /*************************************************************************** |
| r1649 | r1650 | |
| 5843 | 5699 | PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_TILT ) |
| 5844 | 5700 | |
| 5845 | 5701 | PORT_START_TAG("IN3") //2 DSWs - $600001 & 3.b |
| 5846 | PORT_DIPNAME( 0x0001, 0x0001, "Credits For 9-Hole" ) | |
| 5702 | PORT_DIPNAME( 0x0001, 0x0001, "Credits For 9-Hole" ) PORT_DIPLOCATION("SW2:1") | |
| 5847 | 5703 | PORT_DIPSETTING( 0x0001, "2" ) |
| 5848 | 5704 | PORT_DIPSETTING( 0x0000, "3" ) |
| 5849 | PORT_DIPNAME( 0x0002, 0x0002, "Game Type" ) | |
| 5705 | PORT_DIPNAME( 0x0002, 0x0002, "Game Type" ) PORT_DIPLOCATION("SW2:2") | |
| 5850 | 5706 | PORT_DIPSETTING( 0x0002, "Domestic" ) |
| 5851 | 5707 | PORT_DIPSETTING( 0x0000, "Foreign" ) |
| 5852 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Lives ) ) | |
| 5708 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 5853 | 5709 | PORT_DIPSETTING( 0x0004, "1" ) |
| 5854 | 5710 | PORT_DIPSETTING( 0x0008, "2" ) |
| 5855 | 5711 | PORT_DIPSETTING( 0x000c, "3" ) |
| 5856 | 5712 | PORT_DIPSETTING( 0x0000, "4" ) |
| 5857 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Coin_A ) ) | |
| 5713 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 5858 | 5714 | PORT_DIPSETTING( 0x0010, DEF_STR( 2C_1C ) ) |
| 5859 | 5715 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_1C ) ) |
| 5860 | 5716 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_3C ) ) |
| 5861 | 5717 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_2C ) ) |
| 5862 | PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Coin_B ) ) | |
| 5718 | PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 5863 | 5719 | PORT_DIPSETTING( 0x0040, DEF_STR( 2C_1C ) ) |
| 5864 | 5720 | PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_1C ) ) |
| 5865 | 5721 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_3C ) ) |
| 5866 | 5722 | PORT_DIPSETTING( 0x0080, DEF_STR( 1C_2C ) ) |
| 5867 | 5723 | |
| 5868 | PORT_DIPNAME( 0x0100, 0x0000, DEF_STR( Cabinet ) ) | |
| 5724 | PORT_DIPNAME( 0x0100, 0x0000, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:1") | |
| 5869 | 5725 | PORT_DIPSETTING( 0x0000, DEF_STR( Upright ) ) |
| 5870 | 5726 | PORT_DIPSETTING( 0x0100, DEF_STR( Cocktail ) ) |
| 5871 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Flip_Screen ) ) | |
| 5727 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:2") | |
| 5872 | 5728 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) |
| 5873 | 5729 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 5874 | PORT_SERVICE( 0x0400, IP_ACTIVE_LOW ) | |
| 5875 | PORT_DIPNAME( 0x3800, 0x3800, "Flight Distance" ) | |
| 5730 | PORT_SERVICE_DIPLOC( 0x0400, IP_ACTIVE_LOW, "SW1:3" ) | |
| 5731 | PORT_DIPNAME( 0x3800, 0x3800, "Flight Distance" ) PORT_DIPLOCATION("SW1:4,5,6") | |
| 5876 | 5732 | PORT_DIPSETTING( 0x3800, DEF_STR( Normal ) ) |
| 5877 | 5733 | PORT_DIPSETTING( 0x3000, "-30 Yards" ) |
| 5878 | 5734 | PORT_DIPSETTING( 0x2800, "+10 Yards" ) |
| r1649 | r1650 | |
| 5881 | 5737 | PORT_DIPSETTING( 0x1000, "+40 Yards" ) |
| 5882 | 5738 | PORT_DIPSETTING( 0x0800, "+50 Yards" ) |
| 5883 | 5739 | PORT_DIPSETTING( 0x0000, "+60 Yards" ) |
| 5884 | PORT_DIPNAME( 0xc000, 0xc000, "Licensed To" ) | |
| 5885 | PORT_DIPSETTING( 0xc000, "Romstar" ) | |
| 5886 | PORT_DIPSETTING( 0x8000, "None (Japan)" ) | |
| 5887 | PORT_DIPSETTING( 0x4000, "Taito" ) | |
| 5740 | PORT_DIPNAME( 0xc000, 0xc000, "Licensed To" ) PORT_DIPLOCATION("SW1:7,8") | |
| 5741 | PORT_DIPSETTING( 0xc000, "Romstar" ) | |
| 5742 | PORT_DIPSETTING( 0x8000, "None (Japan)" ) | |
| 5743 | PORT_DIPSETTING( 0x4000, "Taito" ) | |
| 5888 | 5744 | PORT_DIPSETTING( 0x0000, "Taito America" ) |
| 5889 | 5745 | INPUT_PORTS_END |
| 5890 | 5746 | |
| r1649 | r1650 | |
| 5913 | 5769 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 5914 | 5770 | |
| 5915 | 5771 | PORT_START_TAG("IN3") //2 DSWs - $600001 & 3.b |
| 5916 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 5772 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:1") | |
| 5917 | 5773 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 5918 | 5774 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 5919 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) | |
| 5775 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:2") | |
| 5920 | 5776 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 5921 | 5777 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) |
| 5922 | PORT_DIPNAME( 0x0004, 0x0004, "Unknown 1- | |
| 5778 | PORT_DIPNAME( 0x0004, 0x0004, "Unknown 1-3*" ) PORT_DIPLOCATION("SW1:3") // tested...Manual states "Unused" | |
| 5923 | 5779 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) |
| 5924 | 5780 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 5925 | PORT_DIPNAME( 0x0008, 0x0008, "Stage & Weapon Select (Cheat)") // P2 Start Is Freeze Screen... | |
| 5781 | PORT_DIPNAME( 0x0008, 0x0008, "Stage & Weapon Select (Cheat)") PORT_DIPLOCATION("SW1:4") // P2 Start Is Freeze Screen...Manual states "Unused" | |
| 5926 | 5782 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) |
| 5927 | 5783 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 5928 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unused ) ) /* Manual states dips 3-7 are "Unused" */ | |
| 5929 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 5930 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 5931 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) ) | |
| 5932 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 5933 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 5934 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) | |
| 5935 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 5936 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 5937 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 5784 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0010, "SW1:5" ) /* Listed as "Unused" */ | |
| 5785 | PORT_DIPUNUSED_DIPLOC( 0x0020, 0x0020, "SW1:6" ) /* Listed as "Unused" */ | |
| 5786 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "SW1:7" ) /* Listed as "Unused" */ | |
| 5787 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW1:8" ) | |
| 5938 | 5788 | |
| 5939 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) | |
| 5789 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 5940 | 5790 | PORT_DIPSETTING( 0x0200, "2" ) |
| 5941 | 5791 | PORT_DIPSETTING( 0x0300, "3" ) |
| 5942 | 5792 | PORT_DIPSETTING( 0x0100, "4" ) |
| 5943 | 5793 | PORT_DIPSETTING( 0x0000, "5" ) |
| 5944 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) | |
| 5794 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 5945 | 5795 | PORT_DIPSETTING( 0x0800, DEF_STR( Easy ) ) |
| 5946 | 5796 | PORT_DIPSETTING( 0x0c00, DEF_STR( Normal ) ) |
| 5947 | 5797 | PORT_DIPSETTING( 0x0400, DEF_STR( Hard ) ) |
| 5948 | 5798 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 5949 | PORT_DIPNAME( 0xf000, 0xf000, DEF_STR( Coinage ) ) | |
| 5799 | PORT_DIPNAME( 0xf000, 0xf000, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:5,6,7,8") | |
| 5950 | 5800 | PORT_DIPSETTING( 0xa000, DEF_STR( 6C_1C ) ) |
| 5951 | 5801 | PORT_DIPSETTING( 0xb000, DEF_STR( 5C_1C ) ) |
| 5952 | 5802 | PORT_DIPSETTING( 0xc000, DEF_STR( 4C_1C ) ) |
| r1649 | r1650 | |
| 5996 | 5846 | PORT_DIPSETTING( 0x0000, "Athena (Japan Only)" ) |
| 5997 | 5847 | |
| 5998 | 5848 | PORT_START_TAG("IN3") //2 DSWs - $600003 & 1.b |
| 5999 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) | |
| 5849 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 6000 | 5850 | PORT_DIPSETTING( 0x0002, DEF_STR( Easy ) ) |
| 6001 | 5851 | PORT_DIPSETTING( 0x0003, DEF_STR( Normal ) ) |
| 6002 | 5852 | PORT_DIPSETTING( 0x0001, DEF_STR( Hard ) ) |
| 6003 | 5853 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 6004 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Bonus_Life ) ) | |
| 5854 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 6005 | 5855 | PORT_DIPSETTING( 0x0008, "150k, 350k" ) |
| 6006 | 5856 | PORT_DIPSETTING( 0x000c, "200k, 500k" ) |
| 6007 | 5857 | PORT_DIPSETTING( 0x0004, "300k, 600k" ) |
| 6008 | 5858 | PORT_DIPSETTING( 0x0000, "400k" ) |
| 6009 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Lives ) ) | |
| 5859 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 6010 | 5860 | PORT_DIPSETTING( 0x0000, "1" ) |
| 6011 | 5861 | PORT_DIPSETTING( 0x0010, "2" ) |
| 6012 | 5862 | PORT_DIPSETTING( 0x0030, "3" ) |
| 6013 | 5863 | PORT_DIPSETTING( 0x0020, "5" ) |
| 6014 | PORT_DIPNAME( 0x0040, 0x0040, "Play Mode" ) | |
| 5864 | PORT_DIPNAME( 0x0040, 0x0040, "Play Mode" ) PORT_DIPLOCATION("SW2:7") | |
| 6015 | 5865 | PORT_DIPSETTING( 0x0040, "2 Players" ) |
| 6016 | 5866 | PORT_DIPSETTING( 0x0000, "4 Players" ) |
| 6017 | PORT_DIPNAME( 0x0080, 0x0080, "CPU Player During Multi-Player Game" ) | |
| 5867 | PORT_DIPNAME( 0x0080, 0x0080, "CPU Player During Multi-Player Game" ) PORT_DIPLOCATION("SW2:8") | |
| 6018 | 5868 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) |
| 6019 | 5869 | PORT_DIPSETTING( 0x0080, DEF_STR( Yes ) ) |
| 6020 | 5870 | |
| 6021 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Cabinet ) ) | |
| 5871 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:1") | |
| 6022 | 5872 | PORT_DIPSETTING( 0x0100, DEF_STR( Upright ) ) |
| 6023 | 5873 | PORT_DIPSETTING( 0x0000, DEF_STR( Cocktail ) ) |
| 6024 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Flip_Screen ) ) | |
| 5874 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:2") | |
| 6025 | 5875 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) |
| 6026 | 5876 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 6027 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Demo_Sounds ) ) | |
| 5877 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:3") | |
| 6028 | 5878 | PORT_DIPSETTING( 0x0400, "Every 3rd Loop" ) |
| 6029 | 5879 | PORT_DIPSETTING( 0x0000, "Every 7th Loop" ) |
| 6030 | PORT_SERVICE( 0x0800, IP_ACTIVE_LOW ) | |
| 6031 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Coin_A ) ) | |
| 5880 | PORT_SERVICE_DIPLOC( 0x0800, IP_ACTIVE_LOW, "SW1:4" ) | |
| 5881 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:5,6") | |
| 6032 | 5882 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) |
| 6033 | 5883 | PORT_DIPSETTING( 0x1000, DEF_STR( 3C_1C ) ) |
| 6034 | 5884 | PORT_DIPSETTING( 0x2000, DEF_STR( 2C_1C ) ) |
| 6035 | 5885 | PORT_DIPSETTING( 0x3000, DEF_STR( 1C_1C ) ) |
| 6036 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Coin_B ) ) | |
| 5886 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:7,8") | |
| 6037 | 5887 | PORT_DIPSETTING( 0xc000, DEF_STR( 1C_2C ) ) |
| 6038 | 5888 | PORT_DIPSETTING( 0x8000, DEF_STR( 1C_3C ) ) |
| 6039 | 5889 | PORT_DIPSETTING( 0x4000, DEF_STR( 1C_4C ) ) |
| r1649 | r1650 | |
| 6069 | 5919 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 6070 | 5920 | |
| 6071 | 5921 | PORT_START_TAG("IN3") //2 DSWs - $600001 & 3.b |
| 6072 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 5922 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:1") | |
| 6073 | 5923 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 6074 | 5924 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 6075 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) | |
| 5925 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 6076 | 5926 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 6077 | 5927 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) |
| 6078 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unused ) ) | |
| 6079 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 6080 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 6081 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unused ) ) | |
| 6082 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 6083 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 6084 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unused ) ) | |
| 6085 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 6086 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 6087 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) ) | |
| 6088 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 6089 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 6090 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) | |
| 6091 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 6092 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 6093 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 5928 | PORT_DIPUNUSED_DIPLOC( 0x0004, 0x0004, "SW2:3" ) /* Manual States dips 3-7 are unused */ | |
| 5929 | PORT_DIPUNUSED_DIPLOC( 0x0008, 0x0008, "SW2:4" ) /* Listed as "Unused" */ | |
| 5930 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0010, "SW2:5" ) /* Listed as "Unused" */ | |
| 5931 | PORT_DIPUNUSED_DIPLOC( 0x0020, 0x0020, "SW2:6" ) /* Listed as "Unused" */ | |
| 5932 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "SW2:7" ) /* Listed as "Unused" */ | |
| 5933 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW2:8" ) | |
| 6094 | 5934 | |
| 6095 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) | |
| 5935 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") | |
| 6096 | 5936 | PORT_DIPSETTING( 0x0200, "2" ) |
| 6097 | 5937 | PORT_DIPSETTING( 0x0300, "3" ) |
| 6098 | 5938 | PORT_DIPSETTING( 0x0100, "4" ) |
| 6099 | 5939 | PORT_DIPSETTING( 0x0000, "5" ) |
| 6100 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) | |
| 5940 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:3,4") | |
| 6101 | 5941 | PORT_DIPSETTING( 0x0800, DEF_STR( Easy ) ) |
| 6102 | 5942 | PORT_DIPSETTING( 0x0c00, DEF_STR( Normal ) ) |
| 6103 | 5943 | PORT_DIPSETTING( 0x0400, DEF_STR( Hard ) ) |
| 6104 | 5944 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 6105 | PORT_DIPNAME( 0xf000, 0xf000, DEF_STR( Coinage ) ) | |
| 5945 | PORT_DIPNAME( 0xf000, 0xf000, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:5,6,7,8") | |
| 6106 | 5946 | PORT_DIPSETTING( 0xa000, DEF_STR( 6C_1C ) ) |
| 6107 | 5947 | PORT_DIPSETTING( 0xb000, DEF_STR( 5C_1C ) ) |
| 6108 | 5948 | PORT_DIPSETTING( 0xc000, DEF_STR( 4C_1C ) ) |
| r1649 | r1650 | |
| 6122 | 5962 | INPUT_PORTS_END |
| 6123 | 5963 | |
| 6124 | 5964 | /************************************* |
| 6125 | Pairs Love | |
| 5965 | Pairs Love | |
| 6126 | 5966 | *************************************/ |
| 6127 | 5967 | |
| 6128 | 5968 | static INPUT_PORTS_START( pairlove ) |
| r1649 | r1650 | |
| 6139 | 5979 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_TILT ) |
| 6140 | 5980 | |
| 6141 | 5981 | PORT_START_TAG("DSW") // 2 DIP switches |
| 6142 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 5982 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:1") | |
| 6143 | 5983 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 6144 | 5984 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 6145 | PORT_DIPNAME( 0x0002, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 5985 | PORT_DIPNAME( 0x0002, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 6146 | 5986 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) |
| 6147 | 5987 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 6148 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unused ) ) | |
| 6149 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 6150 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 6151 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unused ) ) | |
| 6152 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 6153 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 6154 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unused ) ) | |
| 6155 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 6156 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 6157 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) ) | |
| 6158 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 6159 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 6160 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) | |
| 6161 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 6162 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 6163 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 5988 | PORT_DIPUNUSED_DIPLOC( 0x0004, 0x0004, "SW2:3" ) /* Listed as "Unused" */ | |
| 5989 | PORT_DIPUNUSED_DIPLOC( 0x0008, 0x0008, "SW2:4" ) /* Listed as "Unused" */ | |
| 5990 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0010, "SW2:5" ) /* Listed as "Unused" */ | |
| 5991 | PORT_DIPUNUSED_DIPLOC( 0x0020, 0x0020, "SW2:6" ) /* Listed as "Unused" */ | |
| 5992 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "SW2:7" ) /* Listed as "Unused" */ | |
| 5993 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW2:8" ) | |
| 6164 | 5994 | |
| 6165 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Unused ) ) | |
| 6166 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 6167 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 6168 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unused ) ) | |
| 6169 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) | |
| 6170 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 6171 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) | |
| 5995 | PORT_DIPUNUSED_DIPLOC( 0x0100, 0x0100, "SW1:1" ) /* Listed as "Unused" */ | |
| 5996 | PORT_DIPUNUSED_DIPLOC( 0x0200, 0x0200, "SW1:2" ) /* Listed as "Unused" */ | |
| 5997 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:3,4") | |
| 6172 | 5998 | PORT_DIPSETTING( 0x0800, DEF_STR( Easy ) ) |
| 6173 | 5999 | PORT_DIPSETTING( 0x0c00, DEF_STR( Normal ) ) |
| 6174 | 6000 | PORT_DIPSETTING( 0x0400, DEF_STR( Hard ) ) |
| 6175 | 6001 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 6176 | PORT_DIPNAME( 0xf000, 0xf000, DEF_STR( Coinage ) ) | |
| 6002 | PORT_DIPNAME( 0xf000, 0xf000, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:5,6,7,8") | |
| 6177 | 6003 | PORT_DIPSETTING( 0xa000, DEF_STR( 6C_1C ) ) |
| 6178 | 6004 | PORT_DIPSETTING( 0xb000, DEF_STR( 5C_1C ) ) |
| 6179 | 6005 | PORT_DIPSETTING( 0xc000, DEF_STR( 4C_1C ) ) |
| r1649 | r1650 | |
| 6214 | 6040 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 6215 | 6041 | |
| 6216 | 6042 | PORT_START_TAG("IN3") //2 DSWs - $600001 & 3.b |
| 6217 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 6043 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:1") | |
| 6218 | 6044 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 6219 | 6045 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 6220 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) | |
| 6046 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 6221 | 6047 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 6222 | 6048 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) |
| 6223 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) | |
| 6049 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 6224 | 6050 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) |
| 6225 | 6051 | PORT_DIPSETTING( 0x000c, DEF_STR( Normal ) ) |
| 6226 | 6052 | PORT_DIPSETTING( 0x0004, DEF_STR( Hard ) ) |
| 6227 | 6053 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 6228 | PORT_DIPNAME( 0x0010, 0x0010, "Stock" ) | |
| 6054 | PORT_DIPNAME( 0x0010, 0x0010, "Stock" ) PORT_DIPLOCATION("SW2:5") | |
| 6229 | 6055 | PORT_DIPSETTING( 0x0010, "1" ) |
| 6230 | 6056 | PORT_DIPSETTING( 0x0000, "2" ) |
| 6231 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Level_Select ) ) | |
| 6057 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Level_Select ) ) PORT_DIPLOCATION("SW2:6") | |
| 6232 | 6058 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) |
| 6233 | 6059 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 6234 | PORT_DIPNAME( 0x0040, 0x0040, "Timer speed" ) | |
| 6060 | PORT_DIPNAME( 0x0040, 0x0040, "Timer speed" ) PORT_DIPLOCATION("SW2:7") | |
| 6235 | 6061 | PORT_DIPSETTING( 0x0040, DEF_STR( Normal ) ) |
| 6236 | 6062 | PORT_DIPSETTING( 0x0000, "Fast" ) |
| 6237 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 6063 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW2:8" ) | |
| 6238 | 6064 | |
| 6239 | PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coin_A ) ) | |
| 6065 | PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3") | |
| 6240 | 6066 | PORT_DIPSETTING( 0x0500, DEF_STR( 3C_1C ) ) |
| 6241 | 6067 | PORT_DIPSETTING( 0x0600, DEF_STR( 2C_1C ) ) |
| 6242 | 6068 | PORT_DIPSETTING( 0x0700, DEF_STR( 1C_1C ) ) |
| r1649 | r1650 | |
| 6245 | 6071 | PORT_DIPSETTING( 0x0200, DEF_STR( 1C_4C ) ) |
| 6246 | 6072 | PORT_DIPSETTING( 0x0100, DEF_STR( 1C_5C ) ) |
| 6247 | 6073 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 6248 | PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coin_B ) ) | |
| 6074 | PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:4,5,6") | |
| 6249 | 6075 | PORT_DIPSETTING( 0x2800, DEF_STR( 3C_1C ) ) |
| 6250 | 6076 | PORT_DIPSETTING( 0x3000, DEF_STR( 2C_1C ) ) |
| 6251 | 6077 | PORT_DIPSETTING( 0x3800, DEF_STR( 1C_1C ) ) |
| r1649 | r1650 | |
| 6254 | 6080 | PORT_DIPSETTING( 0x1000, DEF_STR( 1C_4C ) ) |
| 6255 | 6081 | PORT_DIPSETTING( 0x0800, DEF_STR( 1C_5C ) ) |
| 6256 | 6082 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 6257 | PORT_DIPNAME( 0x4000, 0x4000, "Force Coinage (Half Coin | |
| 6083 | PORT_DIPNAME( 0x4000, 0x4000, "Force Coinage (Half Coin | |
| 6258 | 6084 | PORT_DIPSETTING( 0x4000, DEF_STR( No ) ) |
| 6259 | 6085 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_1C ) ) |
| 6260 | PORT_DIPNAME( 0x8000, 0x8000, "Unknown | |
| 6086 | PORT_DIPNAME( 0x8000, 0x8000, "Unknown 1-8" ) PORT_DIPLOCATION("SW1:8") | |
| 6261 | 6087 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 6262 | 6088 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 6263 | 6089 | INPUT_PORTS_END |
| r1649 | r1650 | |
| 6298 | 6124 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_SERVICE1 ) // ticket |
| 6299 | 6125 | |
| 6300 | 6126 | PORT_START_TAG("IN3") //2 DSWs - $630001 & 3.b |
| 6301 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) | |
| 6127 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW2:1,2,3") | |
| 6302 | 6128 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) |
| 6303 | 6129 | PORT_DIPSETTING( 0x0001, DEF_STR( 3C_1C ) ) |
| 6304 | 6130 | PORT_DIPSETTING( 0x0002, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 6307 | 6133 | PORT_DIPSETTING( 0x0005, DEF_STR( 1C_3C ) ) |
| 6308 | 6134 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) ) |
| 6309 | 6135 | PORT_DIPSETTING( 0x0003, DEF_STR( 1C_5C ) ) |
| 6310 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) | |
| 6136 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2:4,5,6") | |
| 6311 | 6137 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) |
| 6312 | 6138 | PORT_DIPSETTING( 0x0008, DEF_STR( 3C_1C ) ) |
| 6313 | 6139 | PORT_DIPSETTING( 0x0010, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 6316 | 6142 | PORT_DIPSETTING( 0x0028, DEF_STR( 1C_3C ) ) |
| 6317 | 6143 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_4C ) ) |
| 6318 | 6144 | PORT_DIPSETTING( 0x0018, DEF_STR( 1C_5C ) ) |
| 6319 | PORT_DIPNAME( 0x00c0, 0x0000, DEF_STR( Unknown ) ) | |
| 6145 | PORT_DIPNAME( 0x00c0, 0x0000, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 6320 | 6146 | PORT_DIPSETTING( 0x00c0, "5" ) |
| 6321 | 6147 | PORT_DIPSETTING( 0x0080, "10" ) |
| 6322 | 6148 | PORT_DIPSETTING( 0x0040, "15" ) |
| 6323 | 6149 | PORT_DIPSETTING( 0x0000, "20" ) |
| 6324 | 6150 | |
| 6325 | PORT_SERVICE( 0x0100, IP_ACTIVE_LOW ) | |
| 6326 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unknown ) ) | |
| 6151 | PORT_SERVICE_DIPLOC( 0x0100, IP_ACTIVE_LOW, "SW1:1" ) | |
| 6152 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:2") | |
| 6327 | 6153 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) |
| 6328 | 6154 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 6329 | PORT_DIPNAME( 0x0c00, 0x0c00, "Difficulty?" ) | |
| 6155 | PORT_DIPNAME( 0x0c00, 0x0c00, "Difficulty?" ) PORT_DIPLOCATION("SW1:3,4") | |
| 6330 | 6156 | PORT_DIPSETTING( 0x0c00, "0" ) |
| 6331 | 6157 | PORT_DIPSETTING( 0x0800, "1" ) |
| 6332 | 6158 | PORT_DIPSETTING( 0x0400, "2" ) |
| 6333 | 6159 | PORT_DIPSETTING( 0x0000, "3" ) |
| 6334 | PORT_DIPNAME( 0x3000, 0x3000, "Energy" ) | |
| 6160 | PORT_DIPNAME( 0x3000, 0x3000, "Energy" ) PORT_DIPLOCATION("SW1:5,6") | |
| 6335 | 6161 | PORT_DIPSETTING( 0x1000, "24" ) |
| 6336 | 6162 | PORT_DIPSETTING( 0x2000, "32" ) |
| 6337 | 6163 | PORT_DIPSETTING( 0x3000, "48" ) |
| 6338 | 6164 | PORT_DIPSETTING( 0x0000, "100" ) |
| 6339 | PORT_DIPNAME( 0xc000, 0xc000, "Bonus?" ) | |
| 6165 | PORT_DIPNAME( 0xc000, 0xc000, "Bonus?" ) PORT_DIPLOCATION("SW1:7,8") | |
| 6340 | 6166 | PORT_DIPSETTING( 0xc000, "0" ) |
| 6341 | 6167 | PORT_DIPSETTING( 0x8000, "1" ) |
| 6342 | 6168 | PORT_DIPSETTING( 0x4000, "2" ) |
| r1649 | r1650 | |
|---|---|---|
| 17 | 17 | */ |
| 18 | 18 | |
| 19 | 19 | #include "driver.h" |
| 20 | #include "deprecat.h" | |
| 20 | 21 | #include "cpu/s2650/s2650.h" |
| 21 | 22 | #include "machine/6821pia.h" |
| 22 | 23 | #include "video/s2636.h" |
| r1649 | r1650 | |
|---|---|---|
| 35 | 35 | */ |
| 36 | 36 | |
| 37 | 37 | #include "driver.h" |
| 38 | #include "deprecat.h" | |
| 38 | 39 | #include "machine/6522via.h" |
| 39 | 40 | #include "sound/ay8910.h" |
| 40 | 41 |
| r1649 | r1650 | |
|---|---|---|
| 218 | 218 | ***************************************************************************/ |
| 219 | 219 | |
| 220 | 220 | #include "driver.h" |
| 221 | #include "deprecat.h" | |
| 221 | 222 | #include "cpu/i8x41/i8x41.h" |
| 222 | 223 | #include "sound/2203intf.h" |
| 223 | 224 | #include "sound/dac.h" |
| r1649 | r1650 | |
|---|---|---|
| 82 | 82 | ***************************************************************************/ |
| 83 | 83 | |
| 84 | 84 | #include "driver.h" |
| 85 | #include "deprecat.h" | |
| 85 | 86 | #include "sound/sn76496.h" |
| 86 | 87 | #include "sound/flt_rc.h" |
| 87 | 88 |
| r1649 | r1650 | |
|---|---|---|
| 108 | 108 | ***************************************************************************/ |
| 109 | 109 | |
| 110 | 110 | #include "driver.h" |
| 111 | #include "deprecat.h" | |
| 111 | 112 | #include "cpu/h6280/h6280.h" |
| 112 | 113 | #include "decocrpt.h" |
| 113 | 114 | #include "decoprot.h" |
| r1649 | r1650 | |
|---|---|---|
| 88 | 88 | *********************************************************************************************************************/ |
| 89 | 89 | |
| 90 | 90 | #include "driver.h" |
| 91 | #include "deprecat.h" | |
| 91 | 92 | #include "cpu/m6502/m6502.h" |
| 92 | 93 | #include "cpu/z80/z80.h" |
| 93 | 94 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ****************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "sound/ay8910.h" |
| 11 | 12 | |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 44 | 44 | */ |
| 45 | 45 | |
| 46 | 46 | #include "driver.h" |
| 47 | ||
| 47 | #include "deprecat.h" | |
| 48 | 48 | #include "video/konamiic.h" |
| 49 | 49 | #include "cpu/m68000/m68000.h" |
| 50 | 50 | #include "cpu/z80/z80.h" |
| r1649 | r1650 | |
|---|---|---|
| 18 | 18 | |
| 19 | 19 | |
| 20 | 20 | #include "driver.h" |
| 21 | #include "deprecat.h" | |
| 21 | 22 | #include "machine/atarigen.h" |
| 22 | 23 | #include "audio/atarijsa.h" |
| 23 | 24 | #include "batman.h" |
| r1649 | r1650 | |
|---|---|---|
| 710 | 710 | |
| 711 | 711 | EPR-21576g - NAOMI BOOT ROM 2001 09/10 1.70 (Japan) |
| 712 | 712 | EPR-21577e - NAOMI BOOT ROM 2000 08/25 1.50 (USA) |
| 713 | EPR-21577d - NAOMI BOOT ROM 1999 06/04 1.40 (USA) | |
| 713 | 714 | EPR-21578e - NAOMI BOOT ROM 2000 08/25 1.50 (Export) |
| 714 | 715 | EPR-21578d - NAOMI BOOT ROM 1999 06/04 1.40 (Export) |
| 715 | 716 | EPR-21578a - NAOMI BOOT ROM 1999 02/15 1.20 (Export) |
| r1649 | r1650 | |
| 745 | 746 | ROM_LOAD16_WORD_SWAP_BIOS( 2, "epr-21578a.bin", 0x000000, 0x200000, CRC(6c9aad83) SHA1(555918de76d8dbee2a97d8a95297ef694b3e803f) ) \ |
| 746 | 747 | ROM_SYSTEM_BIOS( 3, "bios3", "epr-21577e" ) \ |
| 747 | 748 | ROM_LOAD16_WORD_SWAP_BIOS( 3, "epr-21577e.bin", 0x000000, 0x200000, CRC(cf36e97b) SHA1(b085305982e7572e58b03a9d35f17ae319c3bbc6) ) \ |
| 748 | ROM_SYSTEM_BIOS( 4, "bios4", "epr-21576g" ) \ | |
| 749 | ROM_LOAD16_WORD_SWAP_BIOS( 4, "epr-21576g.bin", 0x000000, 0x200000, CRC(d2a1c6bf) SHA1(6d27d71aec4dfba98f66316ae74a1426d567698a) ) \ | |
| 750 | ROM_SYSTEM_BIOS( 5, "bios5", "epr-22851" ) \ | |
| 751 | ROM_LOAD16_WORD_SWAP_BIOS( 5, "epr-22851.bin", 0x000000, 0x200000, CRC(62483677) SHA1(3e3bcacf5f972c376b569f45307ee7fd0b5031b7) ) \ | |
| 749 | ROM_SYSTEM_BIOS( 4, "bios4", "epr-21577d" ) \ | |
| 750 | ROM_LOAD16_WORD_SWAP_BIOS( 4, "epr-21577d.bin", 0x000000, 0x200000, CRC(60ddcbbe) SHA1(58b15096d269d6df617ca1810b66b47deb184958) ) \ | |
| 751 | ROM_SYSTEM_BIOS( 5, "bios5", "epr-21576g" ) \ | |
| 752 | ROM_LOAD16_WORD_SWAP_BIOS( 5, "epr-21576g.bin", 0x000000, 0x200000, CRC(d2a1c6bf) SHA1(6d27d71aec4dfba98f66316ae74a1426d567698a) ) \ | |
| 753 | ROM_SYSTEM_BIOS( 6, "bios6", "epr-22851" ) \ | |
| 754 | ROM_LOAD16_WORD_SWAP_BIOS( 6, "epr-22851.bin", 0x000000, 0x200000, CRC(62483677) SHA1(3e3bcacf5f972c376b569f45307ee7fd0b5031b7) ) \ | |
| 755 | ROM_SYSTEM_BIOS( 7, "bios7", "Naomi Dev BIOS" ) \ | |
| 756 | ROM_LOAD16_WORD_SWAP_BIOS( 7, "dcnaodev.bios", 0x000000, 0x080000, CRC(7a50fab9) SHA1(ef79f448e0bf735d1264ad4f051d24178822110f) ) /* This one comes from a dev / beta board. The eprom was a 27C4096 */ | |
| 752 | 757 | |
| 753 | 758 | |
| 754 | 759 | /* NAOMI2 BIOS: |
| 755 | 760 | |
| 756 | EPR-23609 - NAOMI BOOT ROM 2001 01/19 1.50 | |
| 761 | EPR-23605 - NAOMI BOOT ROM 2001 01/19 1.50 | |
| 762 | EPR-23607 - NAOMI BOOT ROM 2001 01/19 1.50 | |
| 763 | EPR-23608 - NAOMI BOOT ROM 2001 01/19 1.50 | |
| 757 | 764 | EPR-2360xB - NAOMI BOOT ROM 2001 09/10 1.70 |
| 758 | 765 | |
| 759 | EPR-23605B, EPR-23607B & EPR-23608B all differ by | |
| 766 | EPR-23605B, EPR-23607B & EPR-23608B all differ by 8 bytes: | |
| 760 | 767 | |
| 761 | 768 | 0x0553a0 is the first region byte |
| 762 | 769 | 0x1ecf40 is a second region byte (value is the same as the first region byte ) |
| 763 | 0x1fff | |
| 770 | 0x1fffa-1ffff is the BIOS rom checksum | |
| 764 | 771 | |
| 765 | EPR-2360 | |
| 772 | EPR-23605 - Japan (region = 0x00) | |
| 766 | 773 | EPR-23605b - Japan (region = 0x00) |
| 774 | EPR-23607 - USA (region = 0x01) | |
| 767 | 775 | EPR-23607b - USA (region = 0x01) |
| 768 | 776 | EPR-23608b - Export (region = 0x02) |
| 777 | EPR-23608 - Export (region = 0x02) | |
| 769 | 778 | |
| 770 | 779 | */ |
| 771 | 780 | |
| 772 | 781 | #define NAOMI2_BIOS \ |
| 773 | 782 | ROM_SYSTEM_BIOS( 0, "bios0", "epr-23608b" ) \ |
| 774 | 783 | ROM_LOAD16_WORD_SWAP_BIOS( 0, "epr-23608b.bin", 0x000000, 0x200000, CRC(a554b1e3) SHA1(343b727a3619d1c75a9b6d4cc156a9050447f155) ) \ |
| 775 | ROM_SYSTEM_BIOS( 1, "bios1", "epr-23607b" ) \ | |
| 776 | ROM_LOAD16_WORD_SWAP_BIOS( 1, "epr-23607b.bin", 0x000000, 0x200000, CRC(f308c5e9) SHA1(5470ab1cee6afecbd8ca8cf40f8fbe4ec2cb1471) ) \ | |
| 777 | ROM_SYSTEM_BIOS( 2, "bios2", "epr-23605b" ) \ | |
| 778 | ROM_LOAD16_WORD_SWAP_BIOS( 2, "epr-23605b.bin", 0x000000, 0x200000, CRC(3a3242d4) SHA1(aaca4df51ef91d926f8191d372f3dfe1d20d9484) ) \ | |
| 779 | ROM_SYSTEM_BIOS( 3, "bios3", "epr-23609" ) \ | |
| 780 | ROM_LOAD16_WORD_SWAP_BIOS( 3, "epr-23609.bin", 0x000000, 0x200000, CRC(5731e446) SHA1(787b0844fc408cf124c12405c095c59948709ea6) ) \ | |
| 784 | ROM_SYSTEM_BIOS( 1, "bios1", "epr-23608" ) \ | |
| 785 | ROM_LOAD16_WORD_SWAP_BIOS( 1, "epr-23608.bin", 0x000000, 0x200000, CRC(929cc3a6) SHA1(47d00c818de23f733a4a33b1bbc72eb8aa729246) ) \ | |
| 786 | ROM_SYSTEM_BIOS( 2, "bios2", "epr-23607b" ) \ | |
| 787 | ROM_LOAD16_WORD_SWAP_BIOS( 2, "epr-23607b.bin", 0x000000, 0x200000, CRC(f308c5e9) SHA1(5470ab1cee6afecbd8ca8cf40f8fbe4ec2cb1471) ) \ | |
| 788 | ROM_SYSTEM_BIOS( 3, "bios3", "epr-23607" ) \ | |
| 789 | ROM_LOAD16_WORD_SWAP_BIOS( 3, "epr-23607.bin", 0x000000, 0x200000, CRC(2b55add2) SHA1(547de5f97d3183c8cd069c4fa3c09f13d8b637d9) ) \ | |
| 790 | ROM_SYSTEM_BIOS( 4, "bios4", "epr-23605b" ) \ | |
| 791 | ROM_LOAD16_WORD_SWAP_BIOS( 4, "epr-23605b.bin", 0x000000, 0x200000, CRC(3a3242d4) SHA1(aaca4df51ef91d926f8191d372f3dfe1d20d9484) ) \ | |
| 792 | ROM_SYSTEM_BIOS( 5, "bios5", "epr-23605" ) \ | |
| 793 | ROM_LOAD16_WORD_SWAP_BIOS( 5, "epr-23605.bin", 0x000000, 0x200000, CRC(5731e446) SHA1(787b0844fc408cf124c12405c095c59948709ea6) ) | |
| 781 | 794 | |
| 782 | 795 | /* this is one flashrom, however the second half looks like it's used for game settings, may differ between dumps, and may not be needed / could be blanked */ |
| 783 | 796 | #define AW_BIOS \ |
| 784 | 797 | ROM_SYSTEM_BIOS( 0, "bios0", "Atomiswave BIOS" ) \ |
| 785 | 798 | ROM_LOAD16_WORD_SWAP_BIOS( 0, "bios.ic23_l", 0x000000, 0x010000, BAD_DUMP CRC(e5693ce3) SHA1(1bde3ed87af64b0f675ebd47f12a53e1fc5709c1) ) /* Might be bad.. especially. bytes 0x0000, 0x6000, 0x8000 which gave different reads */ \ |
| 786 | ROM_LOAD16_WORD_SWAP_BIOS( 0, "bios.ic23_h-dolhpin_blue_settings", 0x010000, 0x010000, BAD_DUMP CRC(5d5687c7) SHA1(2600ce09c44872d1793f6b55bf44342673da5ad1) ) /* it appears to flash settings game data here */ | |
| 799 | ROM_LOAD16_WORD_SWAP_BIOS( 0, "bios.ic23_h-dolhpin_blue_settings", 0x010000, 0x010000, BAD_DUMP CRC(5d5687c7) SHA1(2600ce09c44872d1793f6b55bf44342673da5ad1) ) /* it appears to flash settings game data here */ /* this is one flashrom, however the second half looks like it's used for game settings, may differ between dumps, and may not be needed / could be blanked */ | |
| 787 | 800 | |
| 788 | 801 | |
| 789 | 802 | ROM_START( naomi ) |
| r1649 | r1650 | |
| 2119 | 2132 | */ |
| 2120 | 2133 | |
| 2121 | 2134 | /* Naomi & Naomi GD-ROM */ |
| 2122 | GAME( 1998, naomi, 0, naomi, naomi, 0, ROT0, "Sega", "Naomi Bios", GAME_NO_SOUND|GAME_NOT_WORKING|GAME_IS_BIOS_ROOT ) | |
| 2135 | GAME( 1998, naomi, 0, naomi, naomi, 0, ROT0, "Sega", "Naomi Bios", GAME_NO_SOUND|GAME_NOT_WORKING|GAME_IS_BIOS_ROOT ) | |
| 2123 | 2136 | // Complete Dumps |
| 2124 | GAME( 2001, csmash, naomi, naomi, naomi, 0, ROT0, "Sega", "Cosmic Smash (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2125 | GAME( 1999, suchie3, naomi, naomi, naomi, 0, ROT0, "Jaleco", "Idol Janshi Suchie-Pai 3 (JPN)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2126 | GAME( 1999, vs2_2k, naomi, naomi, naomi, 0, ROT0, "Sega", "Virtua Striker 2 Ver. 2000 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2127 | GAME( 1999, vs2_2ka, vs2_2k, naomi, naomi, 0, ROT0, "Sega", "Virtua Striker 2 Ver. 2000 (set 2) (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2128 | GAME( 1999, smarinef, naomi, naomi, naomi, 0, ROT0, "Sega", "Sega Marine Fishing", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2137 | GAME( 2001, csmash, naomi, naomi, naomi, 0, ROT0, "Sega", "Cosmic Smash (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2138 | GAME( 1999, suchie3, naomi, naomi, naomi, 0, ROT0, "Jaleco", "Idol Janshi Suchie-Pai 3 (JPN)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2139 | GAME( 1999, vs2_2k, naomi, naomi, naomi, 0, ROT0, "Sega", "Virtua Striker 2 Ver. 2000 (JPN, USA, EXP, KOR, AUS) (set 1)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2140 | GAME( 1999, vs2_2ka, vs2_2k, naomi, naomi, 0, ROT0, "Sega", "Virtua Striker 2 Ver. 2000 (JPN, USA, EXP, KOR, AUS) (set 2)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2141 | GAME( 1999, smarinef, naomi, naomi, naomi, 0, ROT0, "Sega", "Sega Marine Fishing", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2129 | 2142 | // Incomplete Dumps (just IC22) |
| 2130 | GAME( 2000, cspike, naomi, naomi, naomi, 0, ROT0, "Psikyo / Capcom","Gun Spike (JPN) / Cannon Spike (USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2131 | GAME( 2000, capsnk, naomi, naomi, naomi, 0, ROT0, "Capcom / SNK", "Capcom Vs. SNK Millennium Fight 2000 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2132 | GAME( ????, derbyoc, naomi, naomi, naomi, 0, ROT0, "Sega", "Derby Owners Club (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2133 | GAME( 1998, dybb99, naomi, naomi, naomi, 0, ROT0, "Sega", "Dynamite Baseball '99 (JPN) / World Series '99 (USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2134 | GAME( 2000, gram2000, naomi, naomi, naomi, 0, ROT0, "Sega", "Giant Gram 2000 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2135 | GAME( 1999, ggram2, naomi, naomi, naomi, 0, ROT0, "Sega", "Giant Gram (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) // strings in rom don't contain '2' | |
| 2136 | GAME( 2001, hmgeo, naomi, naomi, naomi, 0, ROT0, "Capcom", "Heavy Metal Geomatrix (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2137 | GAME( 2000, gwing2, naomi, naomi, naomi, 0, ROT0, "Takumi / Capcom","Giga Wing 2 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2138 | GAME( 2000, pjustic, naomi, naomi, naomi, 0, ROT0, "Capcom", "Moero Justice Gakuen (JPN) / Project Justice (USA, EXP, KOR, AUS) ", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2139 | GAME( 1999, pstone, naomi, naomi, naomi, 0, ROT0, "Capcom", "Power Stone (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2140 | GAME( 2000, pstone2, naomi, naomi, naomi, 0, ROT0, "Capcom", "Power Stone 2 (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2141 | GAME( 1999, otrigger, naomi, naomi, naomi, 0, ROT0, "Sega", "OutTrigger (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2142 | GAME( 1999, samba, naomi, naomi, naomi, 0, ROT0, "Sega", "Samba De Amigo (JPN)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2143 | GAME( 2000, slasho, naomi, naomi, naomi, 0, ROT0, "Sega", "Slashout (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2144 | GAME( 1999, spawn, naomi, naomi, naomi, 0, ROT0, "Capcom", "Spawn (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2145 | GAME( 2000, virnba, naomi, naomi, naomi, 0, ROT0, "Sega", "Virtua NBA (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2146 | GAME( 1999, vtennis, naomi, naomi, naomi, 0, ROT0, "Sega", "Power Smash (JPN) / Virtua Tennis (USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2147 | GAME( 1999, zombrvn, naomi, naomi, naomi, 0, ROT0, "Sega", "Zombie Revenge (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2148 | GAME( 1999, doa2, naomi, naomi, naomi, 0, ROT0, "Tecmo", "Dead or Alive 2 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2149 | GAME( 2000, doa2m, doa2, naomi, naomi, 0, ROT0, "Tecmo", "Dead or Alive 2 Millennium (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2150 | GAME( 1998, dybbnao, naomi, naomi, naomi, 0, ROT0, "Sega", "Dynamite Baseball NAOMI (JPN)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2143 | GAME( 2000, cspike, naomi, naomi, naomi, 0, ROT0, "Psikyo / Capcom", "Gun Spike (JPN) / Cannon Spike (USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2144 | GAME( 2000, capsnk, naomi, naomi, naomi, 0, ROT0, "Capcom / SNK", "Capcom Vs. SNK Millennium Fight 2000 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2145 | GAME( ????, derbyoc, naomi, naomi, naomi, 0, ROT0, "Sega", "Derby Owners Club (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2146 | GAME( 1998, dybb99, naomi, naomi, naomi, 0, ROT0, "Sega", "Dynamite Baseball '99 (JPN) / World Series '99 (USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2147 | GAME( 2000, gram2000, naomi, naomi, naomi, 0, ROT0, "Sega", "Giant Gram 2000 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2148 | GAME( 1999, ggram2, naomi, naomi, naomi, 0, ROT0, "Sega", "Giant Gram (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) // strings in rom don't contain '2' | |
| 2149 | GAME( 2001, hmgeo, naomi, naomi, naomi, 0, ROT0, "Capcom", "Heavy Metal Geomatrix (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2150 | GAME( 2000, gwing2, naomi, naomi, naomi, 0, ROT0, "Takumi / Capcom", "Giga Wing 2 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2151 | GAME( 2000, pjustic, naomi, naomi, naomi, 0, ROT0, "Capcom", "Moero Justice Gakuen (JPN) / Project Justice (USA, EXP, KOR, AUS) ", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2152 | GAME( 1999, pstone, naomi, naomi, naomi, 0, ROT0, "Capcom", "Power Stone (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2153 | GAME( 2000, pstone2, naomi, naomi, naomi, 0, ROT0, "Capcom", "Power Stone 2 (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2154 | GAME( 1999, otrigger, naomi, naomi, naomi, 0, ROT0, "Sega", "OutTrigger (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2155 | GAME( 1999, samba, naomi, naomi, naomi, 0, ROT0, "Sega", "Samba De Amigo (JPN)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2156 | GAME( 2000, slasho, naomi, naomi, naomi, 0, ROT0, "Sega", "Slashout (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2157 | GAME( 1999, spawn, naomi, naomi, naomi, 0, ROT0, "Capcom", "Spawn (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2158 | GAME( 2000, virnba, naomi, naomi, naomi, 0, ROT0, "Sega", "Virtua NBA (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2159 | GAME( 1999, vtennis, naomi, naomi, naomi, 0, ROT0, "Sega", "Power Smash (JPN) / Virtua Tennis (USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2160 | GAME( 1999, zombrvn, naomi, naomi, naomi, 0, ROT0, "Sega", "Zombie Revenge (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2161 | GAME( 1999, doa2, naomi, naomi, naomi, 0, ROT0, "Tecmo", "Dead or Alive 2 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2162 | GAME( 2000, doa2m, doa2, naomi, naomi, 0, ROT0, "Tecmo", "Dead or Alive 2 Millennium (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2163 | GAME( 1998, dybbnao, naomi, naomi, naomi, 0, ROT0, "Sega", "Dynamite Baseball NAOMI (JPN)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2151 | 2164 | |
| 2152 | 2165 | |
| 2153 | 2166 | |
| 2154 | 2167 | // No GD-Rom Sets Supported */ |
| 2155 | 2168 | |
| 2156 | 2169 | /* Naomi 2 & Naomi 2 GD-ROM */ |
| 2157 | GAME( 2001, naomi2, 0,naomi, naomi, 0, ROT0, "Sega", "Naomi 2 Bios", GAME_NO_SOUND|GAME_NOT_WORKING|GAME_IS_BIOS_ROOT ) | |
| 2170 | GAME( 2001, naomi2, 0, naomi, naomi, 0, ROT0, "Sega", "Naomi 2 Bios", GAME_NO_SOUND|GAME_NOT_WORKING|GAME_IS_BIOS_ROOT ) | |
| 2158 | 2171 | // No Supported Sets |
| 2159 | 2172 | |
| 2160 | 2173 | /* Atomiswave */ |
| 2161 | GAME( 2001, awbios, 0,naomi, naomi, 0, ROT0, "Sammy", "Atomiswave Bios", GAME_NO_SOUND|GAME_NOT_WORKING|GAME_IS_BIOS_ROOT ) | |
| 2162 | // No Supported Setas | |
| 2174 | GAME( 2001, awbios, 0, naomi, naomi, 0, ROT0, "Sammy", "Atomiswave Bios", GAME_NO_SOUND|GAME_NOT_WORKING|GAME_IS_BIOS_ROOT ) | |
| 2175 | // No Supported Sets |
| r1649 | r1650 | |
|---|---|---|
| 37 | 37 | ***************************************************************************/ |
| 38 | 38 | |
| 39 | 39 | #include "driver.h" |
| 40 | #include "deprecat.h" | |
| 40 | 41 | #include "cpu/z80/z80.h" |
| 41 | 42 | #include "sound/ay8910.h" |
| 42 | 43 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | ***************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "cpu/m68000/m68000.h" |
| 13 | 14 | #include "sound/ay8910.h" |
| 14 | 15 |
| r1649 | r1650 | |
|---|---|---|
| 166 | 166 | */ |
| 167 | 167 | |
| 168 | 168 | #include "driver.h" |
| 169 | #include "deprecat.h" | |
| 169 | 170 | #include "machine/eeprom.h" |
| 170 | 171 | #include "cpu/sh2/sh2.h" |
| 171 | 172 | #include "machine/stvcd.h" |
| r1649 | r1650 | |
|---|---|---|
| 78 | 78 | |
| 79 | 79 | */ |
| 80 | 80 | #include "driver.h" |
| 81 | #include "deprecat.h" | |
| 81 | 82 | #include "genesis.h" |
| 82 | 83 | #include "rendlay.h" |
| 83 | 84 | #include "megadriv.h" |
| r1649 | r1650 | |
| 306 | 307 | #ifdef UNUSED_FUNCTION |
| 307 | 308 | READ8_HANDLER( md_sms_ioport_dc_r ) |
| 308 | 309 | { |
| 309 | return 0xff; | |
| 310 | return 0xff; | |
| 310 | 311 | } |
| 311 | 312 | |
| 312 | 313 | READ8_HANDLER( md_sms_ioport_dd_r ) |
| 313 | 314 | { |
| 314 | return 0xff; | |
| 315 | return 0xff; | |
| 315 | 316 | } |
| 316 | 317 | #endif |
| 317 | 318 |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | ***************************************************************************/ |
| 12 | 12 | |
| 13 | 13 | #include "driver.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "sound/ay8910.h" |
| 15 | 16 | |
| 16 | 17 | /* from video */ |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "sound/ay8910.h" |
| 12 | 13 | |
| 13 | 14 | static tilemap *bg_tilemap; |
| r1649 | r1650 | |
|---|---|---|
| 144 | 144 | ***************************************************************************/ |
| 145 | 145 | |
| 146 | 146 | #include "driver.h" |
| 147 | #include "deprecat.h" | |
| 147 | 148 | #include "taitoipt.h" |
| 148 | 149 | #include "rendlay.h" |
| 149 | 150 | #include "cpu/m68000/m68000.h" |
| r1649 | r1650 | |
|---|---|---|
| 35 | 35 | ***************************************************************************/ |
| 36 | 36 | |
| 37 | 37 | #include "driver.h" |
| 38 | #include "deprecat.h" | |
| 38 | 39 | #include "sound/okim6295.h" |
| 39 | 40 | #include "sound/2413intf.h" |
| 40 | 41 | #include "sound/3812intf.h" |
| r1649 | r1650 | |
| 3007 | 3008 | |
| 3008 | 3009 | ***************************************************************************/ |
| 3009 | 3010 | |
| 3010 | GAME( 1995, lhb, 0, lhb, lhb, lhb, ROT0, "IGS", "Long Hu Bang | |
| 3011 | GAME( 1995, lhb, 0, lhb, lhb, lhb, ROT0, "IGS", "Long Hu Bang | |
| 3011 | 3012 | // the screenshot in the zip shows a 1995 copyright, but only 199 is displayed in MAME? todo: verify protection patch is correct for this set |
| 3012 | 3013 | GAME( 1995, lhba, lhb, lhb, lhb, lhb, ROT0, "IGS", "Long Hu Bang (set 2)", 0 ) |
| 3013 | 3014 | GAME( 199?, dbc, 0, lhb, lhb, 0, ROT0, "IGS", "Da Ban Cheng", GAME_NOT_WORKING ) // needs decrypting / prot patches |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "sound/2203intf.h" |
| 12 | 13 | #include "sound/okim6295.h" |
| 13 | 14 | #include "sound/msm5205.h" |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | ***************************************************************************/ |
| 12 | 12 | |
| 13 | 13 | #include "driver.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "video/konamiic.h" |
| 15 | 16 | #include "cpu/m68000/m68000.h" |
| 16 | 17 | #include "sound/ymz280b.h" |
| r1649 | r1650 | |
|---|---|---|
| 28 | 28 | *********************************************************************/ |
| 29 | 29 | |
| 30 | 30 | #include "driver.h" |
| 31 | #include "deprecat.h" | |
| 31 | 32 | #include "machine/eeprom.h" |
| 32 | 33 | #include "sound/2151intf.h" |
| 33 | 34 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
|---|---|---|
| 73 | 73 | ***************************************************************************/ |
| 74 | 74 | |
| 75 | 75 | #include "driver.h" |
| 76 | #include "deprecat.h" | |
| 76 | 77 | #include "sound/ay8910.h" |
| 77 | 78 | |
| 78 | 79 | |
| r1649 | r1650 | |
| 168 | 169 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 169 | 170 | |
| 170 | 171 | PORT_START_TAG("DSWA") |
| 171 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW | |
| 172 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SWA:8,7,6") | |
| 172 | 173 | PORT_DIPSETTING( 0x01, DEF_STR( 4C_1C ) ) |
| 173 | 174 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) |
| 174 | 175 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 177 | 178 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) ) |
| 178 | 179 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_4C ) ) |
| 179 | 180 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 180 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW | |
| 181 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWA:5") | |
| 181 | 182 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 182 | 183 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) |
| 183 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW | |
| 184 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SWA:4,3") | |
| 184 | 185 | PORT_DIPSETTING( 0x30, "20K 80K 80K+" ) |
| 185 | 186 | PORT_DIPSETTING( 0x20, "20K 100K 100K+" ) |
| 186 | 187 | PORT_DIPSETTING( 0x10, "30K 80K 80K+" ) |
| 187 | 188 | PORT_DIPSETTING( 0x00, "30K 100K 100K+" ) |
| 188 | PORT_DIPNAME( 0xc0, 0x40, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW | |
| 189 | PORT_DIPNAME( 0xc0, 0x40, DEF_STR( Lives ) ) PORT_DIPLOCATION("SWA:2,1") | |
| 189 | 190 | PORT_DIPSETTING( 0x80, "1" ) |
| 190 | 191 | PORT_DIPSETTING( 0x40, "2" ) |
| 191 | 192 | PORT_DIPSETTING( 0xc0, "3" ) |
| 192 | 193 | PORT_DIPSETTING( 0x00, "5" ) |
| 193 | 194 | |
| 194 | 195 | PORT_START_TAG("DSWB") |
| 195 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW | |
| 196 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SWB:8,7,6") | |
| 196 | 197 | PORT_DIPSETTING( 0x01, DEF_STR( 4C_1C ) ) |
| 197 | 198 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) |
| 198 | 199 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 201 | 202 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) ) |
| 202 | 203 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_4C ) ) |
| 203 | 204 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 204 | PORT_SERVICE_DIPLOC( 0x08, IP_ACTIVE_LOW, "SW2:5" ) | |
| 205 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:4") | |
| 205 | PORT_SERVICE_DIPLOC(0x08, IP_ACTIVE_LOW, "SWB:5" ) | |
| 206 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SWB:4") | |
| 206 | 207 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 207 | 208 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 208 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 209 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SWB:3,2") | |
| 209 | 210 | PORT_DIPSETTING( 0x40, DEF_STR( Easy ) ) |
| 210 | 211 | PORT_DIPSETTING( 0x60, DEF_STR( Normal ) ) |
| 211 | 212 | PORT_DIPSETTING( 0x20, "Difficult" ) |
| 212 | 213 | PORT_DIPSETTING( 0x00, "Very Difficult" ) |
| 213 | PORT_DIPNAME( 0x80, 0x80, " | |
| 214 | PORT_DIPNAME( 0x80, 0x80, "Screen Stop" ) PORT_DIPLOCATION("SWB:1") | |
| 214 | 215 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 215 | 216 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 216 | 217 | INPUT_PORTS_END |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "poolshrk.h" |
| 9 | 10 | #include "sound/discrete.h" |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 22 | 22 | |
| 23 | 23 | #include "driver.h" |
| 24 | 24 | #include "render.h" |
| 25 | #include "deprecat.h" | |
| 25 | 26 | #include "includes/amiga.h" |
| 26 | 27 | #include "machine/laserdsc.h" |
| 27 | 28 |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | *********************************************************************/ |
| 14 | 14 | |
| 15 | 15 | #include "driver.h" |
| 16 | #include "deprecat.h" | |
| 16 | 17 | #include "machine/at28c16.h" |
| 17 | 18 | #include "eolithsp.h" |
| 18 | 19 |
| r1649 | r1650 | |
|---|---|---|
| 22 | 22 | ******************************************************************************/ |
| 23 | 23 | |
| 24 | 24 | #include "driver.h" |
| 25 | #include "deprecat.h" | |
| 25 | 26 | #include "cpu/m68000/m68000.h" |
| 26 | 27 | #include "cpu/z80/z80.h" |
| 27 | 28 | #include "machine/eeprom.h" |
| r1649 | r1650 | |
|---|---|---|
| 180 | 180 | ***************************************************************************/ |
| 181 | 181 | |
| 182 | 182 | #include "driver.h" |
| 183 | #include "deprecat.h" | |
| 183 | 184 | #include "audio/timeplt.h" |
| 184 | 185 | #include "sound/namco.h" |
| 185 | 186 | #include "sound/samples.h" |
| r1649 | r1650 | |
| 876 | 877 | MDRV_CPU_PROGRAM_MAP(locomotn_map,0) |
| 877 | 878 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 878 | 879 | |
| 879 | MDRV_CPU_ADD(Z80, 14318180/8) /* 1.789772727 MHz */ | |
| 880 | /* audio CPU */ | |
| 881 | MDRV_CPU_PROGRAM_MAP(locomotn_sound_readmem,locomotn_sound_writemem) | |
| 882 | ||
| 883 | 880 | MDRV_SCREEN_REFRESH_RATE(60) |
| 884 | 881 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION /* frames per second, vblank duration */) |
| 885 | 882 | |
| r1649 | r1650 | |
| 897 | 894 | MDRV_VIDEO_UPDATE(rallyx) |
| 898 | 895 | |
| 899 | 896 | /* sound hardware */ |
| 900 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 901 | ||
| 902 | MDRV_SOUND_ADD(AY8910, 14318180/8) | |
| 903 | MDRV_SOUND_CONFIG(timeplt_ay8910_interface) | |
| 904 | MDRV_SOUND_ROUTE(0, "filter.0.0", 0.60) | |
| 905 | MDRV_SOUND_ROUTE(1, "filter.0.1", 0.60) | |
| 906 | MDRV_SOUND_ROUTE(2, "filter.0.2", 0.60) | |
| 907 | ||
| 908 | MDRV_SOUND_ADD(AY8910, 14318180/8) | |
| 909 | MDRV_SOUND_ROUTE(0, "filter.1.0", 0.60) | |
| 910 | MDRV_SOUND_ROUTE(1, "filter.1.1", 0.60) | |
| 911 | MDRV_SOUND_ROUTE(2, "filter.1.2", 0.60) | |
| 912 | ||
| 913 | MDRV_SOUND_ADD_TAG("filter.0.0", FILTER_RC, 0) | |
| 914 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 915 | MDRV_SOUND_ADD_TAG("filter.0.1", FILTER_RC, 0) | |
| 916 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 917 | MDRV_SOUND_ADD_TAG("filter.0.2", FILTER_RC, 0) | |
| 918 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 919 | ||
| 920 | MDRV_SOUND_ADD_TAG("filter.1.0", FILTER_RC, 0) | |
| 921 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 922 | MDRV_SOUND_ADD_TAG("filter.1.1", FILTER_RC, 0) | |
| 923 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 924 | MDRV_SOUND_ADD_TAG("filter.1.2", FILTER_RC, 0) | |
| 925 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 897 | MDRV_IMPORT_FROM(locomotn_sound) | |
| 926 | 898 | MACHINE_DRIVER_END |
| 927 | 899 | |
| 928 | 900 |
| r1649 | r1650 | |
|---|---|---|
| 87 | 87 | */ |
| 88 | 88 | |
| 89 | 89 | #include "driver.h" |
| 90 | #include "deprecat.h" | |
| 90 | 91 | #include "sound/ymf271.h" |
| 91 | 92 | #include "rendlay.h" |
| 92 | 93 | |
| r1649 | r1650 | |
| 117 | 118 | int tileno, colour; |
| 118 | 119 | |
| 119 | 120 | tileno = ms32_tx0_ram[tile_index *2+0] & 0x0000ffff; |
| 120 | colour = ms32_tx0_ram[tile_index *2+1] & 0x000000 | |
| 121 | colour = ms32_tx0_ram[tile_index *2+1] & 0x000000 | |
| 121 | 122 | |
| 122 | 123 | SET_TILE_INFO(3,tileno,colour,0); |
| 123 | 124 | } |
| r1649 | r1650 | |
| 127 | 128 | int tileno, colour; |
| 128 | 129 | |
| 129 | 130 | tileno = ms32_tx1_ram[tile_index *2+0] & 0x0000ffff; |
| 130 | colour = ms32_tx1_ram[tile_index *2+1] & 0x000000 | |
| 131 | colour = ms32_tx1_ram[tile_index *2+1] & 0x000000 | |
| 131 | 132 | |
| 132 | 133 | SET_TILE_INFO(7,tileno,colour,0); |
| 133 | 134 | } |
| r1649 | r1650 | |
| 151 | 152 | int tileno,colour; |
| 152 | 153 | |
| 153 | 154 | tileno = ms32_bg0_ram[tile_index *2+0] & 0x0000ffff; |
| 154 | colour = ms32_bg0_ram[tile_index *2+1] & 0x000000 | |
| 155 | colour = ms32_bg0_ram[tile_index *2+1] & 0x000000 | |
| 155 | 156 | |
| 156 | 157 | SET_TILE_INFO(2,tileno,colour,0); |
| 157 | 158 | } |
| r1649 | r1650 | |
| 161 | 162 | int tileno,colour; |
| 162 | 163 | |
| 163 | 164 | tileno = ms32_bg1_ram[tile_index *2+0] & 0x0000ffff; |
| 164 | colour = ms32_bg1_ram[tile_index *2+1] & 0x000000 | |
| 165 | colour = ms32_bg1_ram[tile_index *2+1] & 0x000000 | |
| 165 | 166 | |
| 166 | 167 | SET_TILE_INFO(6,tileno,colour,0); |
| 167 | 168 | } |
| r1649 | r1650 | |
| 270 | 271 | int tileno,colour; |
| 271 | 272 | |
| 272 | 273 | tileno = ms32_roz0_ram[tile_index *2+0] & 0x0000ffff; |
| 273 | colour = ms32_roz0_ram[tile_index *2+1] & 0x000000 | |
| 274 | colour = ms32_roz0_ram[tile_index *2+1] & 0x000000 | |
| 274 | 275 | |
| 275 | 276 | SET_TILE_INFO(1,tileno,colour,0); |
| 276 | 277 | } |
| r1649 | r1650 | |
| 280 | 281 | int tileno,colour; |
| 281 | 282 | |
| 282 | 283 | tileno = ms32_roz1_ram[tile_index *2+0] & 0x0000ffff; |
| 283 | colour = ms32_roz1_ram[tile_index *2+1] & 0x000000 | |
| 284 | colour = ms32_roz1_ram[tile_index *2+1] & 0x000000 | |
| 284 | 285 | |
| 285 | 286 | SET_TILE_INFO(5,tileno,colour,0); |
| 286 | 287 | } |
| r1649 | r1650 | |
| 1405 | 1406 | ROM_LOAD32_WORD( "mr96004-08.31", 0x0c00002, 0x200000, CRC(f6df27b2) SHA1(60590976020d86bdccd4eaf57b349ea31bec6830) ) |
| 1406 | 1407 | |
| 1407 | 1408 | /* Roz Tiles #1 (Screen 1) */ |
| 1408 | ROM_REGION( 0x200000, REGION_GFX2, 0 ) /* roz tiles, don't dispose since we use GFX_RAW */ | |
| 1409 | ROM_LOAD( "mr96004-09.1", 0x000000, 0x200000, BAD_DUMP CRC(603143e8) SHA1(197ff72d4a6bf9cc5e89505c1a25edad104a9a65) ) | |
| 1409 | ROM_REGION( 0x400000, REGION_GFX2, 0 ) /* roz tiles, don't dispose since we use GFX_RAW */ | |
| 1410 | ROM_LOAD( "mr96004-09.1", 0x000000, 0x400000, CRC(7f8ea9f0) SHA1(f1fe682dcb884f1aa4a5536e17ab94157a99f519) ) | |
| 1410 | 1411 | |
| 1411 | 1412 | /* Roz Tiles #2 (Screen 2) */ |
| 1412 | ROM_REGION( 0x200000, REGION_GFX3, 0 ) /* roz tiles, don't dispose since we use GFX_RAW */ | |
| 1413 | ROM_LOAD( "mr96004-09.7", 0x000000, 0x200000, BAD_DUMP CRC(603143e8) SHA1(197ff72d4a6bf9cc5e89505c1a25edad104a9a65) ) | |
| 1413 | ROM_REGION( 0x400000, REGION_GFX3, 0 ) /* roz tiles, don't dispose since we use GFX_RAW */ | |
| 1414 | ROM_LOAD( "mr96004-09.7", 0x000000, 0x400000, CRC(7f8ea9f0) SHA1(f1fe682dcb884f1aa4a5536e17ab94157a99f519) ) | |
| 1414 | 1415 | |
| 1415 | 1416 | /* BG Tiles #1 (Screen 1?) */ |
| 1416 | 1417 | ROM_REGION( 0x200000, REGION_GFX4, 0 ) /* bg tiles, don't dispose since we use GFX_RAW */ |
| r1649 | r1650 | |
| 1435 | 1436 | |
| 1436 | 1437 | /* Samples #1 (Screen 1?) */ |
| 1437 | 1438 | ROM_REGION( 0x400000, REGION_SOUND1, 0 ) /* samples - 8-bit signed PCM */ |
| 1438 | ROM_LOAD( "mr96004-10.1", 0x000000, 0x | |
| 1439 | ROM_LOAD( "mr96004-10.1", 0x000000, 0x400000, | |
| 1439 | 1440 | |
| 1440 | 1441 | /* Samples #2 (Screen 2?) */ |
| 1441 | 1442 | ROM_REGION( 0x400000, REGION_SOUND2, 0 ) /* samples - 8-bit signed PCM */ |
| 1442 | ROM_LOAD( "mr96004-10.1", 0x000000, 0x | |
| 1443 | ROM_LOAD( "mr96004-10.1", 0x000000, 0x400000, | |
| 1443 | 1444 | ROM_END |
| 1444 | 1445 | |
| 1445 | 1446 |
| r1649 | r1650 | |
|---|---|---|
| 23 | 23 | ***************************************************************************/ |
| 24 | 24 | |
| 25 | 25 | #include "driver.h" |
| 26 | #include "deprecat.h" | |
| 26 | 27 | #include "machine/eeprom.h" |
| 27 | 28 | #include "unico.h" |
| 28 | 29 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 20 | 20 | ***************************************************************************/ |
| 21 | 21 | |
| 22 | 22 | #include "driver.h" |
| 23 | #include "deprecat.h" | |
| 23 | 24 | #include "cpu/konami/konami.h" /* for the callback and the firq irq definition */ |
| 24 | 25 | #include "video/konamiic.h" |
| 25 | 26 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 41 | 41 | ***************************************************************************/ |
| 42 | 42 | |
| 43 | 43 | #include "driver.h" |
| 44 | #include "deprecat.h" | |
| 44 | 45 | #include "machine/tmp68301.h" |
| 45 | 46 | #include "realbrk.h" |
| 46 | 47 | #include "sound/2413intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 47 | 47 | */ |
| 48 | 48 | |
| 49 | 49 | #include "driver.h" |
| 50 | #include "deprecat.h" | |
| 50 | 51 | #include "sound/okim6295.h" |
| 51 | 52 | |
| 52 | 53 | extern UINT16 *diverboy_spriteram; |
| r1649 | r1650 | |
|---|---|---|
| 133 | 133 | ***************************************************************************/ |
| 134 | 134 | |
| 135 | 135 | #include "driver.h" |
| 136 | #include "deprecat.h" | |
| 136 | 137 | #include "sound/ay8910.h" |
| 137 | 138 | #include "sound/samples.h" |
| 138 | 139 | #include "audio/segasnd.h" |
| r1649 | r1650 | |
|---|---|---|
| 204 | 204 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 205 | 205 | MDRV_GFXDECODE(carjmbre) |
| 206 | 206 | MDRV_PALETTE_LENGTH(64) |
| 207 | MDRV_COLORTABLE_LENGTH(64) | |
| 208 | 207 | |
| 209 | 208 | MDRV_PALETTE_INIT(carjmbre) |
| 210 | 209 | MDRV_VIDEO_START(carjmbre) |
| r1649 | r1650 | |
|---|---|---|
| 38 | 38 | ****************************************************************************/ |
| 39 | 39 | |
| 40 | 40 | #include "driver.h" |
| 41 | #include "deprecat.h" | |
| 41 | 42 | |
| 42 | 43 | |
| 43 | 44 | static UINT8 *ace_scoreram; |
| r1649 | r1650 | |
| 330 | 331 | MDRV_SCREEN_VISIBLE_AREA(4*8, 32*8-1, 2*8, 32*8-1) |
| 331 | 332 | MDRV_GFXDECODE(ace) |
| 332 | 333 | MDRV_PALETTE_LENGTH(2) |
| 333 | MDRV_COLORTABLE_LENGTH(2*2) | |
| 334 | 334 | |
| 335 | 335 | MDRV_PALETTE_INIT(ace) |
| 336 | 336 | MDRV_VIDEO_UPDATE(ace) |
| r1649 | r1650 | |
|---|---|---|
| 112 | 112 | |
| 113 | 113 | static READ16_HANDLER ( varia_random ) |
| 114 | 114 | { |
| 115 | // return mame_rand(Machine); // dips etc.. weird | |
| 116 | 115 | return 0xffff; |
| 117 | 116 | } |
| 118 | 117 |
| r1649 | r1650 | |
|---|---|---|
| 34 | 34 | ***************************************************************************/ |
| 35 | 35 | |
| 36 | 36 | #include "driver.h" |
| 37 | #include "deprecat.h" | |
| 37 | 38 | #include "cpu/m68000/m68000.h" |
| 38 | 39 | #include "video/taitoic.h" |
| 39 | 40 | #include "audio/taitosnd.h" |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | ***************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "cpu/m6809/m6809.h" |
| 13 | 14 | #include "video/konamiic.h" |
| 14 | 15 | #include "sound/k007232.h" |
| r1649 | r1650 | |
|---|---|---|
| 33 | 33 | */ |
| 34 | 34 | |
| 35 | 35 | #include "driver.h" |
| 36 | #include "deprecat.h" | |
| 36 | 37 | #include "sound/custom.h" |
| 37 | 38 | |
| 38 | 39 | extern UINT8 *flower_textram, *flower_bg0ram, *flower_bg1ram, *flower_bg0_scroll, *flower_bg1_scroll; |
| r1649 | r1650 | |
|---|---|---|
| 21 | 21 | **********************************************************************/ |
| 22 | 22 | |
| 23 | 23 | #include "driver.h" |
| 24 | #include "deprecat.h" | |
| 24 | 25 | #include "cpu/h6280/h6280.h" |
| 25 | 26 | #include "sound/2203intf.h" |
| 26 | 27 | #include "sound/msm5205.h" |
| r1649 | r1650 | |
|---|---|---|
| 37 | 37 | */ |
| 38 | 38 | |
| 39 | 39 | #include "driver.h" |
| 40 | #include "deprecat.h" | |
| 40 | 41 | #include "sound/okim6295.h" |
| 41 | 42 | |
| 42 | 43 | #define MASTER_CLOCK 32000000 |
| r1649 | r1650 | |
|---|---|---|
| 142 | 142 | ***************************************************************************/ |
| 143 | 143 | |
| 144 | 144 | #include "driver.h" |
| 145 | #include "deprecat.h" | |
| 145 | 146 | #include "cpu/m6809/m6809.h" |
| 146 | 147 | #include "cpu/m6805/m6805.h" |
| 147 | 148 | #include "sound/2203intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 47 | 47 | ***************************************************************************/ |
| 48 | 48 | |
| 49 | 49 | #include "driver.h" |
| 50 | #include "deprecat.h" | |
| 50 | 51 | #include "sound/2203intf.h" |
| 51 | 52 | |
| 52 | 53 |
| r1649 | r1650 | |
|---|---|---|
| 339 | 339 | ***********************************************************************/ |
| 340 | 340 | |
| 341 | 341 | #include "driver.h" |
| 342 | #include "deprecat.h" | |
| 342 | 343 | #include "cpu/m6809/m6809.h" |
| 343 | 344 | #include "cpu/m6800/m6800.h" |
| 344 | 345 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 21 | 21 | ***************************************************************************/ |
| 22 | 22 | |
| 23 | 23 | #include "driver.h" |
| 24 | #include "deprecat.h" | |
| 24 | 25 | #include "video/konamiic.h" |
| 25 | 26 | #include "cpu/m6809/m6809.h" |
| 26 | 27 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 60 | 60 | **************************************************************************/ |
| 61 | 61 | |
| 62 | 62 | #include "driver.h" |
| 63 | #include "m62.h" | |
| 63 | 64 | #include "audio/irem.h" |
| 64 | 65 | |
| 65 | 66 | |
| 66 | PALETTE_INIT( m62 ); | |
| 67 | PALETTE_INIT( lotlot ); | |
| 68 | PALETTE_INIT( battroad ); | |
| 69 | PALETTE_INIT( spelunk2 ); | |
| 70 | ||
| 71 | WRITE8_HANDLER( m62_tileram_w ); | |
| 72 | WRITE8_HANDLER( m62_textram_w ); | |
| 73 | WRITE8_HANDLER( m62_flipscreen_w ); | |
| 74 | WRITE8_HANDLER( m62_hscroll_low_w ); | |
| 75 | WRITE8_HANDLER( m62_hscroll_high_w ); | |
| 76 | WRITE8_HANDLER( m62_vscroll_low_w ); | |
| 77 | WRITE8_HANDLER( m62_vscroll_high_w ); | |
| 78 | extern UINT8 *m62_tileram; | |
| 79 | extern UINT8 *m62_textram; | |
| 80 | ||
| 81 | VIDEO_START( kungfum ); | |
| 82 | VIDEO_UPDATE( kungfum ); | |
| 83 | WRITE8_HANDLER( kungfum_tileram_w ); | |
| 84 | ||
| 85 | VIDEO_START( ldrun ); | |
| 86 | VIDEO_UPDATE( ldrun ); | |
| 87 | ||
| 88 | VIDEO_START( ldrun2 ); | |
| 89 | ||
| 90 | VIDEO_START( battroad ); | |
| 91 | VIDEO_UPDATE( battroad ); | |
| 92 | ||
| 93 | VIDEO_START( ldrun4 ); | |
| 94 | VIDEO_UPDATE( ldrun4 ); | |
| 95 | ||
| 96 | VIDEO_START( lotlot ); | |
| 97 | VIDEO_UPDATE( lotlot ); | |
| 98 | ||
| 99 | WRITE8_HANDLER( kidniki_text_vscroll_low_w ); | |
| 100 | WRITE8_HANDLER( kidniki_text_vscroll_high_w ); | |
| 101 | WRITE8_HANDLER( kidniki_background_bank_w ); | |
| 102 | VIDEO_START( kidniki ); | |
| 103 | VIDEO_UPDATE( kidniki ); | |
| 104 | ||
| 105 | WRITE8_HANDLER( spelunkr_palbank_w ); | |
| 106 | VIDEO_START( spelunkr ); | |
| 107 | VIDEO_UPDATE( spelunkr ); | |
| 108 | ||
| 109 | WRITE8_HANDLER( spelunk2_gfxport_w ); | |
| 110 | VIDEO_START( spelunk2 ); | |
| 111 | VIDEO_UPDATE( spelunk2 ); | |
| 112 | ||
| 113 | VIDEO_START( youjyudn ); | |
| 114 | VIDEO_UPDATE( youjyudn ); | |
| 115 | ||
| 116 | VIDEO_START( horizon ); | |
| 117 | VIDEO_UPDATE( horizon ); | |
| 118 | WRITE8_HANDLER( horizon_scrollram_w ); | |
| 119 | extern UINT8 *horizon_scrollram; | |
| 120 | ||
| 121 | ||
| 122 | 67 | /* Lode Runner 2 seems to have a simple protection on the bank switching */ |
| 123 | 68 | /* circuitry. It writes data to ports 0x80 and 0x81, then reads port 0x80 */ |
| 124 | 69 | /* a variable number of times (discarding the result) and finally retrieves */ |
| r1649 | r1650 | |
| 1381 | 1326 | MDRV_VIDEO_UPDATE(ldrun) |
| 1382 | 1327 | |
| 1383 | 1328 | /* sound hardware */ |
| 1384 | MDRV_IMPORT_FROM( | |
| 1329 | MDRV_IMPORT_FROM( | |
| 1385 | 1330 | MACHINE_DRIVER_END |
| 1386 | 1331 | |
| 1387 | 1332 |
| r1649 | r1650 | |
|---|---|---|
| 101 | 101 | ****************************************************************************/ |
| 102 | 102 | |
| 103 | 103 | #include "driver.h" |
| 104 | #include "deprecat.h" | |
| 104 | 105 | #include "cpu/z80/z80daisy.h" |
| 105 | 106 | #include "includes/astrocde.h" |
| 106 | 107 | #include "machine/z80ctc.h" |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "cpu/m6809/m6809.h" |
| 11 | 12 | #include "cpu/i8039/i8039.h" |
| 12 | 13 | #include "cpu/z80/z80.h" |
| r1649 | r1650 | |
|---|---|---|
| 16 | 16 | extern void decrypt156(void); |
| 17 | 17 | |
| 18 | 18 | #include "driver.h" |
| 19 | #include "deprecat.h" | |
| 19 | 20 | #include "decocrpt.h" |
| 20 | 21 | #include "deco32.h" |
| 21 | 22 | #include "machine/eeprom.h" |
| r1649 | r1650 | |
|---|---|---|
| 35 | 35 | ***************************************************************************/ |
| 36 | 36 | |
| 37 | 37 | #include "driver.h" |
| 38 | #include "deprecat.h" | |
| 38 | 39 | #include "cpu/z80/z80.h" |
| 39 | 40 | #include "audio/seibu.h" |
| 40 | 41 | #include "sound/3812intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 81 | 81 | */ |
| 82 | 82 | |
| 83 | 83 | #include "driver.h" |
| 84 | #include "deprecat.h" | |
| 84 | 85 | #include "cpu/i8085/i8085.h" |
| 85 | 86 | #include "sound/ay8910.h" |
| 86 | 87 |
| r1649 | r1650 | |
|---|---|---|
| 216 | 216 | |
| 217 | 217 | */ |
| 218 | 218 | |
| 219 | #include <math.h> | |
| 220 | 219 | #include "driver.h" |
| 220 | #include "deprecat.h" | |
| 221 | 221 | #include "cpu/z80/z80.h" |
| 222 | 222 | #include "cpu/m6805/m6805.h" |
| 223 | 223 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
|---|---|---|
| 78 | 78 | |
| 79 | 79 | |
| 80 | 80 | #include "driver.h" |
| 81 | #include "deprecat.h" | |
| 82 | #include "tutankhm.h" | |
| 81 | 83 | #include "cpu/m6809/m6809.h" |
| 82 | 84 | #include "cpu/i8039/i8039.h" |
| 83 | 85 | #include "cpu/z80/z80.h" |
| r1649 | r1650 | |
| 88 | 90 | |
| 89 | 91 | void konami1_decode(void); |
| 90 | 92 | |
| 91 | extern UINT8 *tutankhm_videoram; | |
| 92 | extern size_t tutankhm_videoram_size; | |
| 93 | extern UINT8 *tutankhm_paletteram; | |
| 94 | extern UINT8 *tutankhm_scroll; | |
| 95 | ||
| 96 | 93 | static int i8039_status; |
| 97 | 94 | |
| 98 | WRITE8_HANDLER( tutankhm_flip_screen_x_w ); | |
| 99 | WRITE8_HANDLER( tutankhm_flip_screen_y_w ); | |
| 100 | WRITE8_HANDLER( junofrst_blitter_w ); | |
| 101 | VIDEO_UPDATE( tutankhm ); | |
| 102 | ||
| 103 | 95 | WRITE8_HANDLER( tutankhm_sh_irqtrigger_w ); |
| 104 | 96 | |
| 105 | 97 | |
| r1649 | r1650 | |
| 189 | 181 | |
| 190 | 182 | |
| 191 | 183 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 192 | AM_RANGE(0x0000, 0x7fff) AM_RAM AM_BASE(&tutankhm_videoram) AM_SIZE(&tutankhm_videoram_size) | |
| 193 | AM_RANGE(0x8000, 0x800f) AM_RAM AM_BASE(&tutankhm_paletteram) | |
| 184 | AM_RANGE(0x0000, 0x7fff) AM_RAM AM_BASE(&videoram) AM_SIZE(&videoram_size) | |
| 185 | AM_RANGE(0x8000, 0x800f) AM_RAM AM_BASE(&paletteram) | |
| 194 | 186 | AM_RANGE(0x8010, 0x8010) AM_READ(input_port_0_r) /* DSW2 (inverted bits) */ |
| 195 | 187 | AM_RANGE(0x801c, 0x801c) AM_READ(watchdog_reset_r) |
| 196 | 188 | AM_RANGE(0x8020, 0x8020) AM_READ(input_port_1_r) /* IN0 I/O: Coin slots, service, 1P/2P buttons */ |
| r1649 | r1650 | |
| 365 | 357 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 366 | 358 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) /* not sure about the visible area */ |
| 367 | 359 | |
| 360 | MDRV_VIDEO_START(tutankhm) | |
| 368 | 361 | MDRV_VIDEO_UPDATE(tutankhm) |
| 369 | 362 | |
| 370 | 363 | /* sound hardware */ |
| r1649 | r1650 | |
|---|---|---|
| 101 | 101 | |
| 102 | 102 | #include "driver.h" |
| 103 | 103 | #include "streams.h" |
| 104 | #include "deprecat.h" | |
| 104 | 105 | #include "cpu/m6502/m6502.h" |
| 105 | 106 | #include "cpu/m6809/m6809.h" |
| 106 | 107 | #include "sound/3812intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 112 | 112 | ******************************************************/ |
| 113 | 113 | |
| 114 | 114 | #include "driver.h" |
| 115 | #include "deprecat.h" | |
| 115 | 116 | #include "sound/sn76496.h" |
| 116 | 117 | #include "video/tms9928a.h" |
| 117 | 118 | #include "machine/segacrpt.h" |
| r1649 | r1650 | |
|---|---|---|
| 697 | 697 | ***************************************************************************/ |
| 698 | 698 | |
| 699 | 699 | #include "driver.h" |
| 700 | #include "deprecat.h" | |
| 700 | 701 | #include "machine/atari_vg.h" |
| 701 | 702 | #include "machine/namcoio.h" |
| 702 | 703 | #include "machine/namco50.h" |
| r1649 | r1650 | |
|---|---|---|
| 60 | 60 | */ |
| 61 | 61 | |
| 62 | 62 | #include "driver.h" |
| 63 | #include "deprecat.h" | |
| 63 | 64 | #include "audio/t5182.h" |
| 64 | 65 | |
| 65 | 66 | static tilemap *bgtilemap, *txttilemap; |
| r1649 | r1650 | |
|---|---|---|
| 22 | 22 | */ |
| 23 | 23 | |
| 24 | 24 | #include "driver.h" |
| 25 | #include "deprecat.h" | |
| 25 | 26 | #include "render.h" |
| 26 | 27 | #include "machine/laserdsc.h" |
| 27 | 28 |
| r1649 | r1650 | |
|---|---|---|
| 23 | 23 | ***************************************************************************/ |
| 24 | 24 | |
| 25 | 25 | #include "driver.h" |
| 26 | #include "deprecat.h" | |
| 26 | 27 | #include "cpu/z80/z80.h" |
| 27 | 28 | #include "lasso.h" |
| 28 | 29 | #include "sound/dac.h" |
| r1649 | r1650 | |
|---|---|---|
| 38 | 38 | ***********************************************************/ |
| 39 | 39 | |
| 40 | 40 | #include "driver.h" |
| 41 | #include "deprecat.h" | |
| 41 | 42 | #include "cpu/i8039/i8039.h" |
| 42 | 43 | #include "video/resnet.h" |
| 43 | 44 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
| 95 | 96 | { |
| 96 | 97 | fillbitmap(bitmap,machine->pens[0x18],cliprect); |
| 97 | 98 | tilemap_draw(bitmap,cliprect,sb_tilemap,0,0); |
| 98 | copybitmap(bitmap,tmpbitmap,0,0,0,0,cliprect | |
| 99 | copybitmap_trans(bitmap,tmpbitmap,0,0,0,0,cliprect | |
| 99 | 100 | return 0; |
| 100 | 101 | } |
| 101 | 102 |
| r1649 | r1650 | |
|---|---|---|
| 310 | 310 | */ |
| 311 | 311 | |
| 312 | 312 | #include "driver.h" |
| 313 | #include "deprecat.h" | |
| 313 | 314 | #include "sound/2203intf.h" |
| 314 | 315 | |
| 315 | 316 |
| r1649 | r1650 | |
|---|---|---|
| 128 | 128 | |
| 129 | 129 | |
| 130 | 130 | #include "driver.h" |
| 131 | #include "deprecat.h" | |
| 131 | 132 | #include "taitoipt.h" |
| 132 | 133 | #include "audio/taitosnd.h" |
| 133 | 134 | #include "video/taitoic.h" |
| r1649 | r1650 | |
|---|---|---|
| 77 | 77 | /****************************************************************************/ |
| 78 | 78 | |
| 79 | 79 | #include "driver.h" |
| 80 | #include "deprecat.h" | |
| 80 | 81 | #include "8080bw.h" |
| 81 | 82 | #include "mw8080bw.h" |
| 82 | 83 | #include "machine/mb14241.h" |
| r1649 | r1650 | |
|---|---|---|
| 231 | 231 | ***************************************************************************/ |
| 232 | 232 | |
| 233 | 233 | #include "driver.h" |
| 234 | #include "deprecat.h" | |
| 234 | 235 | #include "taitoipt.h" |
| 235 | 236 | #include "cpu/m68000/m68000.h" |
| 236 | 237 | #include "machine/eeprom.h" |
| r1649 | r1650 | |
|---|---|---|
| 49 | 49 | ***************************************************************************/ |
| 50 | 50 | |
| 51 | 51 | #include "driver.h" |
| 52 | #include "deprecat.h" | |
| 52 | 53 | #include "sound/ay8910.h" |
| 53 | 54 | #include "sound/3812intf.h" |
| 54 | 55 |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | ***************************************************************************/ |
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | #include "deprecat.h" | |
| 13 | 14 | #include "video/konamiic.h" |
| 14 | 15 | #include "cpu/z80/z80.h" |
| 15 | 16 | #include "sound/2608intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 132 | 132 | ***************************************************************************/ |
| 133 | 133 | |
| 134 | 134 | #include "driver.h" |
| 135 | #include "deprecat.h" | |
| 135 | 136 | #include "cpu/m68000/m68000.h" |
| 136 | 137 | #include "video/taitoic.h" |
| 137 | 138 | #include "audio/taitosnd.h" |
| r1649 | r1650 | |
|---|---|---|
| 27 | 27 | |
| 28 | 28 | **********************************************************************/ |
| 29 | 29 | #include "driver.h" |
| 30 | #include "deprecat.h" | |
| 30 | 31 | #include "cpu/arm/arm.h" |
| 31 | 32 | |
| 32 | 33 | static UINT32 *ertictac_mainram; |
| r1649 | r1650 | |
|---|---|---|
| 2818 | 2818 | GAME( 1986, suprmria, suprmrio, vsnes, suprmrio, suprmrio, ROT0, "Nintendo", "Vs. Super Mario Bros. (alt)", 0 ) |
| 2819 | 2819 | GAME( 1985, vsskykid, 0, vsnes, vsskykid, MMC3, ROT0, "Namco", "Vs. Super SkyKid" , 0 ) |
| 2820 | 2820 | GAME( 1987, tkoboxng, 0, vsnes, tkoboxng, tkoboxng, ROT0, "Namco LTD.","Vs. TKO Boxing", GAME_WRONG_COLORS | GAME_IMPERFECT_GRAPHICS ) |
| 2821 | GAME( 1984, smgolf, 0, vsnes, golf4s, machridr, ROT0, "Nintendo", "Vs. Stroke & Match Golf (Men Version)", 0 ) | |
| 2821 | GAME( 1984, smgolf, 0, vsnes, golf4s, machridr, ROT0, "Nintendo", "Vs. Stroke & Match Golf (Men Version, set 1)", 0 ) | |
| 2822 | 2822 | GAME( 1984, smgolfj, smgolf, vsnes, golf, vsnormal, ROT0, "Nintendo", "Vs. Stroke & Match Golf (Men Version) (Japan)", 0 ) |
| 2823 | 2823 | GAME( 1984, ladygolf, smgolf, vsnes, golf, machridr, ROT0, "Nintendo", "Vs. Stroke & Match Golf (Ladies Version)", 0 ) |
| 2824 | 2824 | GAME( 1984, vspinbal, 0, vsnes, vspinbal, vspinbal, ROT0, "Nintendo", "Vs. Pinball", 0 ) |
| r1649 | r1650 | |
| 2848 | 2848 | GAME( 1984, iceclmrj, 0, vsdual, iceclmrj, iceclmrj, ROT0, "Nintendo", "Vs. Ice Climber Dual (Japan)" , 0 ) |
| 2849 | 2849 | |
| 2850 | 2850 | /* Not Working (bad dumps) */ |
| 2851 | GAME( 1985, smgolfb, smgolf, vsnes, golf, machridr, ROT0, "Nintendo", "Vs. Stroke & Match Golf (Men set 2)", GAME_NOT_WORKING ) | |
| 2851 | GAME( 1985, smgolfb, smgolf, vsnes, golf, machridr, ROT0, "Nintendo", "Vs. Stroke & Match Golf (Men Version, set 2)", GAME_NOT_WORKING ) | |
| 2852 | 2852 | GAME( 1984, vsbbaljb, vsbball, vsdual, vsbballj, vsbball, ROT0, "Nintendo of America", "Vs. BaseBall (Japan set 3)", GAME_NOT_WORKING ) |
| r1649 | r1650 | |
|---|---|---|
| 20 | 20 | ******************************************************************************/ |
| 21 | 21 | |
| 22 | 22 | #include "driver.h" |
| 23 | #include "deprecat.h" | |
| 23 | 24 | #include "cpu/z80/z80.h" |
| 24 | 25 | #include "sound/sn76496.h" |
| 25 | 26 |
| r1649 | r1650 | |
|---|---|---|
| 120 | 120 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 121 | 121 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 122 | 122 | |
| 123 | PORT_START_TAG("DSW0") | |
| 124 | PORT_DIPNAME( 0x0f, 0x08, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:5,6,7,8") | |
| 123 | PORT_START_TAG("DSWA") | |
| 124 | PORT_DIPNAME( 0x0f, 0x08, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SWA:5,6,7,8") | |
| 125 | 125 | PORT_DIPSETTING( 0x0f, "1 (Easy)" ) |
| 126 | 126 | PORT_DIPSETTING( 0x0e, "2" ) |
| 127 | 127 | PORT_DIPSETTING( 0x0d, "3" ) |
| r1649 | r1650 | |
| 138 | 138 | PORT_DIPSETTING( 0x02, "14" ) |
| 139 | 139 | PORT_DIPSETTING( 0x01, "15" ) |
| 140 | 140 | PORT_DIPSETTING( 0x00, "16 (Difficult)" ) |
| 141 | PORT_DIPNAME( 0x10, 0x10, "2 Player Game" ) PORT_DIPLOCATION("SW | |
| 141 | PORT_DIPNAME( 0x10, 0x10, "2 Player Game" ) PORT_DIPLOCATION("SWA:4") | |
| 142 | 142 | PORT_DIPSETTING( 0x00, "1 Credit/2 Players" ) |
| 143 | 143 | PORT_DIPSETTING( 0x10, "2 Credits/2 Players" ) |
| 144 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:3") | |
| 145 | PORT_DIPSETTING( 0x20, DEF_STR( Off )) | |
| 146 | PORT_DIPSETTING( 0x00, DEF_STR( On )) | |
| 147 | PORT_DIPNAME( 0x40, 0x40, "Freeze" ) PORT_DIPLOCATION("SW1:2") | |
| 144 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWA:3") | |
| 145 | PORT_DIPSETTING( 0x20, DEF_STR( Upright )) | |
| 146 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail )) | |
| 147 | PORT_DIPNAME( 0x40, 0x40, "Screen Stop" ) PORT_DIPLOCATION("SWA:2") | |
| 148 | 148 | PORT_DIPSETTING( 0x40, DEF_STR( Off )) |
| 149 | 149 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 150 | PORT_SERVICE_DIPLOC( | |
| 150 | PORT_SERVICE_DIPLOC( | |
| 151 | 151 | |
| 152 | PORT_START_TAG("DSW1") | |
| 153 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW2:6,7,8") | |
| 152 | PORT_START_TAG("DSWB") | |
| 153 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SWB:6,7,8") | |
| 154 | 154 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C )) |
| 155 | 155 | PORT_DIPSETTING( 0x01, DEF_STR( 3C_1C ) ) |
| 156 | 156 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 159 | 159 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) ) |
| 160 | 160 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) |
| 161 | 161 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_5C ) ) |
| 162 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW | |
| 162 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SWB:3,4,5") | |
| 163 | 163 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C )) |
| 164 | 164 | PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) ) |
| 165 | 165 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 168 | 168 | PORT_DIPSETTING( 0x28, DEF_STR( 1C_3C ) ) |
| 169 | 169 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_4C ) ) |
| 170 | 170 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_5C ) ) |
| 171 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW | |
| 171 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SWB:2") | |
| 172 | 172 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 173 | 173 | PORT_DIPSETTING( 0x40, DEF_STR( Yes ) ) |
| 174 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW | |
| 174 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:1") | |
| 175 | 175 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 176 | 176 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 177 | 177 | INPUT_PORTS_END |
| r1649 | r1650 | |
| 267 | 267 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 268 | 268 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 269 | 269 | MDRV_GFXDECODE(1943) |
| 270 | MDRV_PALETTE_LENGTH(256) | |
| 271 | MDRV_COLORTABLE_LENGTH(32*4+16*16+16*16+16*16) | |
| 270 | MDRV_PALETTE_LENGTH(32*4+16*16+16*16+16*16) | |
| 272 | 271 | |
| 273 | 272 | MDRV_PALETTE_INIT(1943) |
| 274 | 273 | MDRV_VIDEO_START(1943) |
| r1649 | r1650 | |
|---|---|---|
| 41 | 41 | ***************************************************************************/ |
| 42 | 42 | |
| 43 | 43 | #include "driver.h" |
| 44 | #include "deprecat.h" | |
| 44 | 45 | #include "cninja.h" |
| 45 | 46 | #include "cpu/h6280/h6280.h" |
| 46 | 47 | #include "deco16ic.h" |
| r1649 | r1650 | |
|---|---|---|
| 173 | 173 | ***************************************************************************/ |
| 174 | 174 | |
| 175 | 175 | #include "driver.h" |
| 176 | #include "deprecat.h" | |
| 176 | 177 | #include "cpu/m6800/m6800.h" |
| 177 | 178 | #include "sound/namco.h" |
| 178 | 179 |
| r1649 | r1650 | |
|---|---|---|
| 127 | 127 | ----------------------------------------------------------------*/ |
| 128 | 128 | |
| 129 | 129 | #include "driver.h" |
| 130 | #include "deprecat.h" | |
| 130 | 131 | |
| 131 | 132 | #include "cpu/sh2/sh2.h" |
| 132 | 133 | #include "machine/eeprom.h" |
| r1649 | r1650 | |
|---|---|---|
| 124 | 124 | |
| 125 | 125 | |
| 126 | 126 | #include "driver.h" |
| 127 | #include "deprecat.h" | |
| 127 | 128 | #include "video/crtc6845.h" |
| 128 | 129 | #include "cpu/tms32010/tms32010.h" |
| 129 | 130 | #include "twincobr.h" |
| r1649 | r1650 | |
|---|---|---|
| 17 | 17 | */ |
| 18 | 18 | |
| 19 | 19 | #include "driver.h" |
| 20 | #include "deprecat.h" | |
| 20 | 21 | #include "cpu/z80/z80.h" |
| 21 | 22 | #include "snk.h" |
| 22 | 23 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
|---|---|---|
| 31 | 31 | */ |
| 32 | 32 | |
| 33 | 33 | #include "driver.h" |
| 34 | #include "deprecat.h" | |
| 34 | 35 | #include "decocrpt.h" |
| 35 | 36 | #include "decoprot.h" |
| 36 | 37 | #include "deco16ic.h" |
| r1649 | r1650 | |
|---|---|---|
| 239 | 239 | ******************************************************************************************/ |
| 240 | 240 | |
| 241 | 241 | #include "driver.h" |
| 242 | #include "deprecat.h" | |
| 242 | 243 | #include "sound/pokey.h" |
| 243 | 244 | |
| 244 | 245 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "cpu/m6809/m6809.h" |
| 11 | 12 | #include "sound/2203intf.h" |
| 12 | 13 | #include "sound/vlm5030.h" |
| r1649 | r1650 | |
| 135 | 136 | static ADDRESS_MAP_START( writemem_cpu0, ADDRESS_SPACE_PROGRAM, 8 ) |
| 136 | 137 | AM_RANGE(0x0000, 0x0004) AM_WRITE(K005885_0_w) /* video registers (005885 #1) */ |
| 137 | 138 | AM_RANGE(0x0800, 0x0804) AM_WRITE(K005885_1_w) /* video registers (005885 #2) */ |
| 138 | AM_RANGE(0x1800, 0x187f) AM_WRITE( | |
| 139 | AM_RANGE(0x1800, 0x187f) AM_WRITE(MWA8 | |
| 139 | 140 | AM_RANGE(0x2000, 0x2fff) AM_WRITE(ddrible_fg_videoram_w) AM_BASE(&ddrible_fg_videoram)/* Video RAM 1 */ |
| 140 | 141 | AM_RANGE(0x3000, 0x3fff) AM_WRITE(MWA8_RAM) AM_BASE(&ddrible_spriteram_1) /* Object RAM 1 */ |
| 141 | 142 | AM_RANGE(0x4000, 0x5fff) AM_WRITE(MWA8_RAM) AM_BASE(&ddrible_sharedram) /* shared RAM with CPU #1 */ |
| r1649 | r1650 | |
| 362 | 363 | /* MDRV_SCREEN_SIZE(64*8, 32*8) |
| 363 | 364 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 2*8, 30*8-1) */ |
| 364 | 365 | MDRV_GFXDECODE(ddrible) |
| 365 | MDRV_PALETTE_LENGTH(64) | |
| 366 | MDRV_COLORTABLE_LENGTH(64 + 256) | |
| 366 | MDRV_PALETTE_LENGTH(64 + 256) | |
| 367 | 367 | |
| 368 | 368 | MDRV_PALETTE_INIT(ddrible) |
| 369 | 369 | MDRV_VIDEO_START(ddrible) |
| r1649 | r1650 | |
|---|---|---|
| 79 | 79 | */ |
| 80 | 80 | |
| 81 | 81 | #include "driver.h" |
| 82 | #include "deprecat.h" | |
| 82 | 83 | #include "sound/ay8910.h" |
| 83 | 84 | |
| 84 | 85 | extern UINT8 *popper_videoram, *popper_attribram, *popper_ol_videoram, *popper_ol_attribram, *popper_spriteram; |
| r1649 | r1650 | |
|---|---|---|
| 47 | 47 | #define ladyfrog_scr_size 0 |
| 48 | 48 | |
| 49 | 49 | #include "driver.h" |
| 50 | #include "deprecat.h" | |
| 50 | 51 | #include "sound/ay8910.h" |
| 51 | 52 | #include "sound/msm5232.h" |
| 52 | 53 |
| r1649 | r1650 | |
|---|---|---|
| 154 | 154 | */ |
| 155 | 155 | |
| 156 | 156 | #include "driver.h" |
| 157 | #include "deprecat.h" | |
| 157 | 158 | #include "cpu/z80/z80.h" |
| 158 | 159 | #include "sound/2203intf.h" |
| 159 | 160 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
|---|---|---|
| 36 | 36 | ***************************************************************************/ |
| 37 | 37 | |
| 38 | 38 | #include "driver.h" |
| 39 | #include "deprecat.h" | |
| 39 | 40 | #include "sound/2203intf.h" |
| 40 | 41 | #include "sound/2151intf.h" |
| 41 | 42 |
| r1649 | r1650 | |
|---|---|---|
| 311 | 311 | ***************************************************************************/ |
| 312 | 312 | |
| 313 | 313 | #include "driver.h" |
| 314 | #include "deprecat.h" | |
| 314 | 315 | #include "taitoipt.h" |
| 315 | 316 | #include "audio/taitosnd.h" |
| 316 | 317 | #include "seta.h" |
| r1649 | r1650 | |
|---|---|---|
| 42 | 42 | ***************************************************************************/ |
| 43 | 43 | |
| 44 | 44 | #include "driver.h" |
| 45 | #include "deprecat.h" | |
| 45 | 46 | #include "cpu/z80/z80.h" |
| 46 | 47 | #include "sound/ay8910.h" |
| 47 | 48 |
| r1649 | r1650 | |
|---|---|---|
| 40 | 40 | ***************************************************************************/ |
| 41 | 41 | |
| 42 | 42 | #include "driver.h" |
| 43 | #include "deprecat.h" | |
| 43 | 44 | #include "cpu/h6280/h6280.h" |
| 44 | 45 | #include "decocrpt.h" |
| 45 | 46 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "dogfgt.h" |
| 12 | 13 | #include "sound/ay8910.h" |
| 13 | 14 |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | #include "deprecat.h" | |
| 13 | 14 | #include "cpu/h6280/h6280.h" |
| 14 | 15 | #include "sound/2151intf.h" |
| 15 | 16 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
|---|---|---|
| 164 | 164 | ***************************************************************************/ |
| 165 | 165 | |
| 166 | 166 | #include "driver.h" |
| 167 | #include "deprecat.h" | |
| 167 | 168 | #include "cpu/z80/z80.h" |
| 168 | 169 | #include "cpu/m6805/m6805.h" |
| 169 | 170 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
|---|---|---|
| 16 | 16 | ***************************************************************************/ |
| 17 | 17 | |
| 18 | 18 | #include "driver.h" |
| 19 | #include "deprecat.h" | |
| 19 | 20 | #include "sound/ay8910.h" |
| 20 | 21 | #include "sound/dac.h" |
| 21 | 22 |
| r1649 | r1650 | |
|---|---|---|
| 28 | 28 | ***************************************************************************/ |
| 29 | 29 | |
| 30 | 30 | #include "driver.h" |
| 31 | #include "deprecat.h" | |
| 31 | 32 | #include "sound/dac.h" |
| 32 | 33 | #include "sound/3812intf.h" |
| 33 | 34 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "cpu/z80/z80.h" |
| 11 | 12 | #include "sound/2151intf.h" |
| 12 | 13 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
|---|---|---|
| 42 | 42 | ****************************************************************************/ |
| 43 | 43 | |
| 44 | 44 | #include "driver.h" |
| 45 | #include "deprecat.h" | |
| 45 | 46 | #include "cpu/z80/z80.h" |
| 46 | 47 | #include "sound/ay8910.h" |
| 47 | 48 | #include "sound/dac.h" |
| r1649 | r1650 | |
|---|---|---|
| 15 | 15 | |
| 16 | 16 | driver by Pierpaolo Prazzoli, thanks to Tomasz Slanina too. |
| 17 | 17 | |
| 18 | Notes: | |
| 19 | ||
| 20 | You can swap the question ROMs arbitrarily on these boards. This means | |
| 21 | the ROMsets in this driver aren't true sets per se, they're just how | |
| 22 | boards were found "in the wild." | |
| 23 | ROMs with music questions come in hi|lo pairs. | |
| 24 | ||
| 18 | 25 | */ |
| 19 | 26 | |
| 20 | 27 | #include "driver.h" |
| r1649 | r1650 | |
| 343 | 350 | ROM_LOAD( "pal16l8a-ep-0.u9", 0x0200, 0x0104, CRC(180e95ad) SHA1(9c8dbe159aaf2595b9934fd4afff16b2e9ab584c) ) |
| 344 | 351 | ROM_END |
| 345 | 352 | |
| 353 | ROM_START( promutrc ) | |
| 354 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 355 | ROM_LOAD( "u16.u16", 0x0000, 0x8000, CRC(e37d48be) SHA1(1d700cff0c28e50fa2851e0c46de21aa47a23416) ) | |
| 356 | ||
| 357 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 358 | ROM_LOAD( "mt44.ic44", 0x0000, 0x1000, CRC(8d543ea4) SHA1(86ab848a45851540d5d3315e15b92f7b2ac0b77c) ) | |
| 359 | ROM_LOAD( "mt46.ic46", 0x1000, 0x1000, CRC(6d6e1f68) SHA1(e8196ecd915a2528122407d31a7078f177be0beb) ) | |
| 360 | ||
| 361 | ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 362 | ROM_LOAD( "mt48.ic48", 0x0000, 0x1000, CRC(f2efe300) SHA1(419e889b2f4d038ae64e3ccf4e2498add80b4c9f) ) | |
| 363 | ROM_LOAD( "mt50.ic50", 0x1000, 0x1000, CRC(ee89d24e) SHA1(e3536df549278040255657201433ab23e0386533) ) | |
| 364 | ||
| 365 | ROM_REGION( 0x0200, REGION_PROMS, 0 ) | |
| 366 | ROM_LOAD( "dm74s287n.ic63", 0x0000, 0x0100, CRC(749da5a8) SHA1(8e30f5b014bc8ff2dc4986ef35a979e525681cb9) ) /* palette low bits */ | |
| 367 | ROM_LOAD( "dm74s287n.ic64", 0x0100, 0x0100, CRC(1cf9c914) SHA1(4c39b10c1be889d6ef4313b2112f4216d34f7327) ) /* palette high bits */ | |
| 368 | ||
| 369 | ROM_REGION( 0x40000, REGION_USER1, 0 ) /* Question roms */ | |
| 370 | ROM_LOAD( "sports.lo0.u8", 0x00000, 0x8000, CRC(bb28fa92) SHA1(a3c4c67be0e31793d68b0b048f3a73e9ce1d5859) ) | |
| 371 | ROM_LOAD( "sports2.hi0.u7", 0x08000, 0x8000, CRC(4d0107d7) SHA1(4cbef1bc5faaca52ce6bb490560f213d60a96191) ) | |
| 372 | ROM_LOAD( "expert.lo1.u6", 0x10000, 0x8000, CRC(19153d1a) SHA1(a2f2bbabbd1c68aae58ff29a43cb02b0e8867f5a) ) | |
| 373 | ROM_LOAD( "potpouri.hi1.u5", 0x18000, 0x8000, CRC(cbfa6491) SHA1(74120ea6b3678d54737c37ec3b4b309c346c460e) ) | |
| 374 | ROM_LOAD( "country.lo2.u4", 0x20000, 0x8000, CRC(44673138) SHA1(4e5a3181300bd5f0e9336c2d0ddf900a9b4256d9) ) | |
| 375 | ROM_LOAD( "country.hi2.u3", 0x28000, 0x8000, CRC(3d35a612) SHA1(9d17477c8097b1110ed752caa6d280160368eac1) ) | |
| 376 | ROM_LOAD( "sex3.lo3.u2", 0x30000, 0x8000, CRC(1a2322be) SHA1(22f930dc29e2b9a2c5fbf16479bc213e94df5620) ) | |
| 377 | ROM_LOAD( "geninfo.hi3.u1", 0x38000, 0x8000, CRC(2747fd74) SHA1(d34ac30349dc965ecd8b05b3f1cb7ee24627f369) ) | |
| 378 | ||
| 379 | ROM_REGION( 0x0400, REGION_PLDS, 0 ) | |
| 380 | ROM_LOAD( "pal16l8a-ep-0.u10", 0x0000, 0x0104, CRC(ccbd5f41) SHA1(49e815dc3377b7ed4312c3c9c215c1a6fbce2769) ) | |
| 381 | ROM_LOAD( "pal16l8a-ep-0.u9", 0x0200, 0x0104, CRC(180e95ad) SHA1(9c8dbe159aaf2595b9934fd4afff16b2e9ab584c) ) | |
| 382 | ROM_END | |
| 383 | ||
| 346 | 384 | ROM_START( strvmstr ) |
| 347 | 385 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 348 | 386 | ROM_LOAD( "stm16.u16", 0x0000, 0x8000, CRC(ae734db9) SHA1(1bacdfdebaa1f250bfbd49053c3910f1396afe11) ) |
| r1649 | r1650 | |
| 373 | 411 | GAME( 1985, promutrv, 0, ettrivia, ettrivia, 0, ROT270, "Enerdyne Technologies Inc.", "Progressive Music Trivia (Question set 1)", 0 ) |
| 374 | 412 | GAME( 1985, promutra, promutrv, ettrivia, ettrivia, 0, ROT270, "Enerdyne Technologies Inc.", "Progressive Music Trivia (Question set 2)", 0 ) |
| 375 | 413 | GAME( 1985, promutrb, promutrv, ettrivia, ettrivia, 0, ROT270, "Enerdyne Technologies Inc.", "Progressive Music Trivia (Question set 3)", 0 ) |
| 414 | GAME( 1985, promutrc, promutrv, ettrivia, ettrivia, 0, ROT270, "Enerdyne Technologies Inc.", "Progressive Music Trivia (Question set 4)", 0 ) | |
| 376 | 415 | GAME( 1986, strvmstr, 0, ettrivia, ettrivia, 0, ROT270, "Enerdyne Technologies Inc.", "Super Trivia Master", GAME_WRONG_COLORS ) |
| r1649 | r1650 | |
|---|---|---|
| 42 | 42 | ***************************************************************************/ |
| 43 | 43 | |
| 44 | 44 | #include "driver.h" |
| 45 | #include "deprecat.h" | |
| 45 | 46 | #include "cpu/z80/z80.h" |
| 46 | 47 | #include "cpu/m68000/m68000.h" |
| 47 | 48 | #include "sound/2203intf.h" |
| r1649 | r1650 | |
| 942 | 943 | GAME( 1992, splash10, splash, splash, splash, splash10, ROT0, "Gaelco", "Splash! (Ver. 1.0 World)", 0 ) |
| 943 | 944 | GAME( 1992, paintlad, splash, splash, splash, splash, ROT0, "Gaelco", "Painted Lady (Splash) (Ver. 1.3 US)", 0 ) |
| 944 | 945 | |
| 945 | GAME( 1993, roldfrog, 0, roldfrog, splash, roldfrog, ROT0, "Microhard", "The Return of Lady Frog", GAME_NO_SOUND ) | |
| 946 | GAME( 1993, roldfrog, 0, roldfrog, splash, roldfrog, ROT0, "Microhard", "The Return of Lady Frog (set 1)", GAME_NO_SOUND ) | |
| 946 | 947 | GAME( 1993, roldfrga, roldfrog, roldfrog, splash, roldfrog, ROT0, "Microhard", "The Return of Lady Frog (set 2)", GAME_NO_SOUND ) |
| 947 | 948 | GAME( 1995, rebus, 0, roldfrog, splash, rebus, ROT0, "Microhard", "Rebus", GAME_NOT_WORKING|GAME_UNEMULATED_PROTECTION|GAME_NO_SOUND ) |
| 948 | GAME( 199?, funystrp, 0, funystrp, funystrp, funystrp, ROT0, "Microhard / MagicGames", "Funny Strip",GAME_NOT_WORKING|GAME_UNEMULATED_PROTECTION|GAME_NO_SOUND ) | |
| 949 | GAME( 199?, puckpepl, funystrp, funystrp, funystrp, funystrp, ROT0, "Microhard", "Puck People",GAME_NOT_WORKING|GAME_UNEMULATED_PROTECTION|GAME_NO_SOUND ) | |
| 949 | GAME( 199?, funystrp, 0, funystrp, funystrp, funystrp, ROT0, "Microhard / MagicGames", "Funny Strip", GAME_NOT_WORKING|GAME_UNEMULATED_PROTECTION|GAME_NO_SOUND ) | |
| 950 | GAME( 199?, puckpepl, funystrp, funystrp, funystrp, funystrp, ROT0, "Microhard", "Puck People", GAME_NOT_WORKING|GAME_UNEMULATED_PROTECTION|GAME_NO_SOUND ) |
| r1649 | r1650 | |
|---|---|---|
| 20 | 20 | ***************************************************************************/ |
| 21 | 21 | |
| 22 | 22 | #include "driver.h" |
| 23 | #include "deprecat.h" | |
| 23 | 24 | #include "video/konamiic.h" |
| 24 | 25 | #include "f1gp.h" |
| 25 | 26 | #include "sound/2610intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 953 | 953 | * |
| 954 | 954 | *************************************/ |
| 955 | 955 | |
| 956 | GAME( 1981, route16, 0, route16, route16, route16, ROT270, "Tehkan/Sun (Centuri license)", "Route 16", 0 ) | |
| 956 | GAME( 1981, route16, 0, route16, route16, route16, ROT270, "Tehkan/Sun (Centuri license)", "Route 16 (set 1)", 0 ) | |
| 957 | 957 | GAME( 1981, route16a, route16, route16, route16, route16a, ROT270, "Tehkan/Sun (Centuri license)", "Route 16 (set 2)", 0 ) |
| 958 | 958 | GAME( 1981, route16b, route16, route16, route16, 0, ROT270, "bootleg", "Route 16 (bootleg)", 0 ) |
| 959 | 959 | GAME( 1981, routex, route16, routex, route16, 0, ROT270, "bootleg", "Route X (bootleg)", 0 ) |
| r1649 | r1650 | |
|---|---|---|
| 102 | 102 | */ |
| 103 | 103 | |
| 104 | 104 | #include "driver.h" |
| 105 | #include "deprecat.h" | |
| 105 | 106 | #include "machine/eeprom.h" |
| 106 | 107 | #include "cpu/m68000/m68k.h" |
| 107 | 108 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
|---|---|---|
| 79 | 79 | ***************************************************************************/ |
| 80 | 80 | |
| 81 | 81 | #include "driver.h" |
| 82 | #include "deprecat.h" | |
| 82 | 83 | #include "cpu/z80/z80.h" |
| 83 | 84 | #include "sound/samples.h" |
| 84 | 85 |
| r1649 | r1650 | |
|---|---|---|
| 28 | 28 | ****************************************************************************/ |
| 29 | 29 | |
| 30 | 30 | #include "driver.h" |
| 31 | #include "deprecat.h" | |
| 31 | 32 | #include "taitoipt.h" |
| 32 | 33 | #include "audio/taitosnd.h" |
| 33 | 34 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 215 | 215 | ***************************************************************************/ |
| 216 | 216 | |
| 217 | 217 | #include "driver.h" |
| 218 | #include "deprecat.h" | |
| 218 | 219 | #include "exidy440.h" |
| 219 | 220 | |
| 220 | 221 | |
| r1649 | r1650 | |
| 520 | 521 | * |
| 521 | 522 | *************************************/ |
| 522 | 523 | |
| 523 | static ADDRESS_MAP_START( | |
| 524 | static ADDRESS_MAP_START( exidy440_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 524 | 525 | AM_RANGE(0x0000, 0x1fff) AM_RAM AM_BASE(&exidy440_imageram) |
| 525 | 526 | AM_RANGE(0x2000, 0x209f) AM_READWRITE(MRA8_RAM, exidy440_spriteram_w) AM_BASE(&spriteram) |
| 526 | 527 | AM_RANGE(0x20a0, 0x29ff) AM_RAM |
| r1649 | r1650 | |
| 540 | 541 | |
| 541 | 542 | /************************************* |
| 542 | 543 | * |
| 543 | * Sound CPU memory handlers | |
| 544 | * | |
| 545 | *************************************/ | |
| 546 | ||
| 547 | static ADDRESS_MAP_START( cpu2_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 548 | AM_RANGE(0x8000, 0x8016) AM_READWRITE(exidy440_m6844_r, exidy440_m6844_w) AM_BASE(&exidy440_m6844_data) | |
| 549 | AM_RANGE(0x8400, 0x8407) AM_READWRITE(MRA8_RAM, exidy440_sound_volume_w) AM_BASE(&exidy440_sound_volume) | |
| 550 | AM_RANGE(0x8800, 0x8800) AM_READ(exidy440_sound_command_r) | |
| 551 | AM_RANGE(0x9400, 0x9403) AM_WRITE(MWA8_RAM) AM_BASE(&exidy440_sound_banks) | |
| 552 | AM_RANGE(0x9800, 0x9800) AM_READWRITE(MRA8_NOP, exidy440_sound_interrupt_clear_w) | |
| 553 | AM_RANGE(0xa000, 0xbfff) AM_RAM | |
| 554 | AM_RANGE(0xe000, 0xffff) AM_ROM | |
| 555 | ADDRESS_MAP_END | |
| 556 | ||
| 557 | ||
| 558 | ||
| 559 | /************************************* | |
| 560 | * | |
| 561 | 544 | * Port definitions |
| 562 | 545 | * |
| 563 | 546 | *************************************/ |
| r1649 | r1650 | |
| 1036 | 1019 | |
| 1037 | 1020 | /************************************* |
| 1038 | 1021 | * |
| 1039 | * | |
| 1022 | * Machine dr | |
| 1040 | 1023 | * |
| 1041 | 1024 | *************************************/ |
| 1042 | 1025 | |
| 1043 | static const struct CustomSound_interface custom_interface = | |
| 1044 | { | |
| 1045 | exidy440_sh_start, | |
| 1046 | exidy440_sh_stop | |
| 1047 | }; | |
| 1048 | ||
| 1049 | ||
| 1050 | ||
| 1051 | /************************************* | |
| 1052 | * | |
| 1053 | * Machine driver | |
| 1054 | * | |
| 1055 | *************************************/ | |
| 1056 | ||
| 1057 | 1026 | static MACHINE_DRIVER_START( exidy440 ) |
| 1058 | 1027 | |
| 1059 | 1028 | /* basic machine hardware */ |
| 1060 | 1029 | MDRV_CPU_ADD(M6809,EXIDY440_MAIN_CPU_CLOCK) |
| 1061 | MDRV_CPU_PROGRAM_MAP( | |
| 1030 | MDRV_CPU_PROGRAM_MAP(exidy440_map,0) | |
| 1062 | 1031 | MDRV_CPU_VBLANK_INT(main_interrupt,1) |
| 1063 | 1032 | |
| 1064 | MDRV_CPU_ADD(M6809,12979200/4/4) | |
| 1065 | MDRV_CPU_PROGRAM_MAP(cpu2_map,0) | |
| 1066 | MDRV_CPU_VBLANK_INT(irq0_line_assert,1) | |
| 1067 | ||
| 1068 | 1033 | MDRV_MACHINE_RESET(exidy440) |
| 1069 | 1034 | MDRV_NVRAM_HANDLER(exidy440) |
| 1070 | 1035 | |
| r1649 | r1650 | |
| 1078 | 1043 | MDRV_VIDEO_EOF(exidy440) |
| 1079 | 1044 | MDRV_VIDEO_UPDATE(exidy440) |
| 1080 | 1045 | |
| 1081 | /* sound hardware */ | |
| 1082 | MDRV_SPEAKER_STANDARD_STEREO("left", "right") | |
| 1083 | ||
| 1084 | MDRV_SOUND_ADD(CUSTOM, 12979200/256) | |
| 1085 | MDRV_SOUND_CONFIG(custom_interface) | |
| 1086 | MDRV_SOUND_ROUTE(0, "left", 1.0) | |
| 1087 | MDRV_SOUND_ROUTE(1, "right", 1.0) | |
| 1046 | /* audio hardware */ | |
| 1047 | MDRV_IMPORT_FROM(exidy440_audio) | |
| 1088 | 1048 | MACHINE_DRIVER_END |
| 1089 | 1049 | |
| 1090 | 1050 |
| r1649 | r1650 | |
|---|---|---|
| 41 | 41 | ***************************************************************************/ |
| 42 | 42 | |
| 43 | 43 | #include "driver.h" |
| 44 | #include "deprecat.h" | |
| 44 | 45 | #include "sound/ay8910.h" |
| 45 | 46 | #include "sound/custom.h" |
| 46 | 47 | #include "cpu/i86/i86.h" |
| r1649 | r1650 | |
|---|---|---|
| 15 | 15 | |
| 16 | 16 | #include "driver.h" |
| 17 | 17 | #include "render.h" |
| 18 | #include "deprecat.h" | |
| 18 | 19 | #include "machine/laserdsc.h" |
| 19 | 20 | #include "cpu/cop400/cop400.h" |
| 20 | 21 |
| r1649 | r1650 | |
|---|---|---|
| 134 | 134 | */ |
| 135 | 135 | |
| 136 | 136 | #include "driver.h" |
| 137 | #include "deprecat.h" | |
| 137 | 138 | #include "genesis.h" |
| 138 | 139 | |
| 139 | 140 |
| r1649 | r1650 | |
|---|---|---|
| 31 | 31 | */ |
| 32 | 32 | |
| 33 | 33 | #include "driver.h" |
| 34 | #include "deprecat.h" | |
| 34 | 35 | #include "machine/8255ppi.h" |
| 35 | 36 | #include "sound/ay8910.h" |
| 36 | 37 |
| r1649 | r1650 | |
|---|---|---|
| 119 | 119 | ***************************************************************************/ |
| 120 | 120 | |
| 121 | 121 | #include "driver.h" |
| 122 | #include "deprecat.h" | |
| 122 | 123 | #include "cpu/h6280/h6280.h" |
| 123 | 124 | #include "deco16ic.h" |
| 124 | 125 | #include "sound/2203intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "sound/sn76496.h" |
| 3 | 4 | |
| 4 | 5 | extern WRITE8_HANDLER( pingpong_videoram_w ); |
| r1649 | r1650 | |
|---|---|---|
| 18 | 18 | |
| 19 | 19 | |
| 20 | 20 | #include "driver.h" |
| 21 | #include "deprecat.h" | |
| 21 | 22 | #include "machine/atarigen.h" |
| 22 | 23 | #include "audio/atarijsa.h" |
| 23 | 24 | #include "blstroid.h" |
| r1649 | r1650 | |
|---|---|---|
| 211 | 211 | MDRV_SCREEN_SIZE(36*8, 32*8) |
| 212 | 212 | MDRV_SCREEN_VISIBLE_AREA(0, 36*8-1, 2*8, 30*8-1) |
| 213 | 213 | MDRV_GFXDECODE(gotya) |
| 214 | MDRV_PALETTE_LENGTH(8) | |
| 215 | MDRV_COLORTABLE_LENGTH(16*4) | |
| 214 | MDRV_PALETTE_LENGTH(16*4) | |
| 216 | 215 | |
| 217 | 216 | MDRV_PALETTE_INIT(gotya) |
| 218 | 217 | MDRV_VIDEO_START(gotya) |
| r1649 | r1650 | |
|---|---|---|
| 2 | 2 | /* Nothing else is known about this set / game */ |
| 3 | 3 | |
| 4 | 4 | #include "driver.h" |
| 5 | #include "deprecat.h" | |
| 5 | 6 | |
| 6 | 7 | static VIDEO_START(gtipoker) |
| 7 | 8 | { |
| r1649 | r1650 | |
|---|---|---|
| 138 | 138 | ***************************************************************************/ |
| 139 | 139 | |
| 140 | 140 | #include "driver.h" |
| 141 | #include "deprecat.h" | |
| 141 | 142 | #include "tatsumi.h" |
| 142 | 143 | #include "sound/2151intf.h" |
| 143 | 144 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
|---|---|---|
| 21 | 21 | ***************************************************************************/ |
| 22 | 22 | |
| 23 | 23 | #include "driver.h" |
| 24 | #include "deprecat.h" | |
| 24 | 25 | #include "cpu/h6280/h6280.h" |
| 25 | 26 | #include "sound/2151intf.h" |
| 26 | 27 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
|---|---|---|
| 24 | 24 | ***************************************************************************/ |
| 25 | 25 | |
| 26 | 26 | #include "driver.h" |
| 27 | #include "deprecat.h" | |
| 27 | 28 | #include "sound/okim6295.h" |
| 28 | 29 | |
| 29 | 30 | /* Variables defined in video: */ |
| r1649 | r1650 | |
|---|---|---|
| 18 | 18 | ***************************************************************************/ |
| 19 | 19 | |
| 20 | 20 | #include "driver.h" |
| 21 | #include "deprecat.h" | |
| 21 | 22 | #include "machine/6821pia.h" |
| 22 | 23 | #include "sound/sn76477.h" |
| 23 | 24 |
| r1649 | r1650 | |
|---|---|---|
| 29 | 29 | ***************************************************************************/ |
| 30 | 30 | |
| 31 | 31 | #include "driver.h" |
| 32 | #include "deprecat.h" | |
| 32 | 33 | #include "cpu/m6805/m6805.h" |
| 33 | 34 | #include "sound/sn76496.h" |
| 34 | 35 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "cpu/konami/konami.h" /* for the callback and the firq irq definition */ |
| 12 | 13 | #include "video/konamiic.h" |
| 13 | 14 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 40 | 40 | */ |
| 41 | 41 | |
| 42 | 42 | #include "driver.h" |
| 43 | #include "deprecat.h" | |
| 43 | 44 | #include "genesis.h" |
| 44 | 45 | #include "megadriv.h" |
| 45 | 46 |
| r1649 | r1650 | |
|---|---|---|
| 132 | 132 | * |
| 133 | 133 | *************************************/ |
| 134 | 134 | |
| 135 | static UINT | |
| 135 | static UINT64 cycles_at_vsync; | |
| 136 | 136 | static UINT8 main_sense_state; |
| 137 | 137 | static UINT8 sound_sense_state; |
| 138 | 138 | static UINT8 coin1_state; |
| r1649 | r1650 | |
|---|---|---|
| 56 | 56 | |
| 57 | 57 | |
| 58 | 58 | #include "driver.h" |
| 59 | #include "deprecat.h" | |
| 59 | 60 | #include "sound/ay8910.h" |
| 60 | 61 | #include "sound/msm5205.h" |
| 61 | 62 |
| r1649 | r1650 | |
|---|---|---|
| 3557 | 3557 | GAME( 1988, imgfight, 0, m72, imgfight, imgfight, ROT270, "Irem", "Image Fight (Japan)", 0 ) |
| 3558 | 3558 | GAME( 1989, loht, 0, m72, loht, loht, ROT0, "Irem", "Legend of Hero Tonma", GAME_NO_COCKTAIL ) |
| 3559 | 3559 | GAME( 1989, lohtj, loht, m72, loht, loht, ROT0, "Irem", "Legend of Hero Tonma (Japan)", GAME_NO_COCKTAIL ) |
| 3560 | GAME( 1989, lohtb, loht, m72, loht, 0, ROT0, "Irem", "Legend of Hero Tonma (bootleg)", GAME_NOT_WORKING| GAME_NO_COCKTAIL ) | |
| 3560 | GAME( 1989, lohtb, loht, m72, loht, 0, ROT0, "Irem", "Legend of Hero Tonma (bootleg, set 1)", GAME_NOT_WORKING| GAME_NO_COCKTAIL ) | |
| 3561 | 3561 | GAME( 1989, lohtb2, loht, m72_8751, loht, loht_mcu, ROT0, "Irem", "Legend of Hero Tonma (bootleg, set 2)", GAME_NO_COCKTAIL ) |
| 3562 | 3562 | GAME( 1989, xmultipl, 0, xmultipl, xmultipl, xmultipl, ROT0, "Irem", "X Multiply (Japan)", GAME_NO_COCKTAIL ) |
| 3563 | 3563 | GAME( 1989, dbreed, 0, dbreed, dbreed, 0, ROT0, "Irem", "Dragon Breed (M81 pcb version)", GAME_NO_COCKTAIL ) |
| r1649 | r1650 | |
|---|---|---|
| 31 | 31 | ********************************************************************/ |
| 32 | 32 | |
| 33 | 33 | #include "driver.h" |
| 34 | #include "deprecat.h" | |
| 34 | 35 | #include "rescap.h" |
| 35 | 36 | #include "machine/6821pia.h" |
| 36 | 37 | #include "machine/74123.h" |
| r1649 | r1650 | |
|---|---|---|
| 45 | 45 | */ |
| 46 | 46 | |
| 47 | 47 | #include "driver.h" |
| 48 | #include "deprecat.h" | |
| 48 | 49 | #include "cpu/m6502/m6502.h" |
| 49 | 50 | #include "sound/2203intf.h" |
| 50 | 51 | #include "sound/3812intf.h" |
| 51 | //#include "sound/msm5205.h" | |
| 52 | 52 | #include "sound/okim6295.h" |
| 53 | 53 | |
| 54 | 54 | extern WRITE8_HANDLER( pokechmp_videoram_w ); |
| r1649 | r1650 | |
|---|---|---|
| 34 | 34 | ***************************************************************************/ |
| 35 | 35 | |
| 36 | 36 | #include "driver.h" |
| 37 | #include "deprecat.h" | |
| 37 | 38 | #include "cpu/z80/z80.h" |
| 38 | 39 | #include "sound/3812intf.h" |
| 39 | 40 | #include "sound/upd7759.h" |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "video/crtc6845.h" |
| 11 | 12 | #include "sound/ay8910.h" |
| 12 | 13 | |
| r1649 | r1650 | |
| 320 | 321 | } |
| 321 | 322 | } |
| 322 | 323 | |
| 323 | copybitmap(bitmap, tmp_bitmap, flip_screen, flip_screen, | |
| 324 | 0, 0, cliprect, TRANSPARENCY_NONE, 0); | |
| 324 | copybitmap(bitmap, tmp_bitmap, flip_screen, flip_screen, 0, 0, cliprect); | |
| 325 | 325 | |
| 326 | 326 | return 0; |
| 327 | 327 | } |
| r1649 | r1650 | |
|---|---|---|
| 2 | 2 | /* also see iqblock.c and tarzan.c */ |
| 3 | 3 | |
| 4 | 4 | #include "driver.h" |
| 5 | #include "deprecat.h" | |
| 5 | 6 | #include "cpu/z180/z180.h" |
| 6 | 7 | #include "sound/2413intf.h" |
| 7 | 8 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
|---|---|---|
| 57 | 57 | ***************************************************************************/ |
| 58 | 58 | |
| 59 | 59 | #include "driver.h" |
| 60 | #include "deprecat.h" | |
| 60 | 61 | #include "cpu/m6502/m6502.h" |
| 61 | 62 | #include "sound/3812intf.h" |
| 62 | 63 | #include "sound/msm5205.h" |
| r1649 | r1650 | |
|---|---|---|
| 27 | 27 | ***************************************************************************/ |
| 28 | 28 | |
| 29 | 29 | #include "driver.h" |
| 30 | #include "deprecat.h" | |
| 30 | 31 | #include "crgolf.h" |
| 31 | 32 | #include "sound/ay8910.h" |
| 32 | 33 | #include "sound/msm5205.h" |
| r1649 | r1650 | |
| 238 | 239 | AM_RANGE(0x8007, 0x8007) AM_WRITE(MWA8_RAM) AM_BASE(&crgolf_screena_enable) |
| 239 | 240 | AM_RANGE(0x8800, 0x8800) AM_READWRITE(sound_to_main_r, main_to_sound_w) |
| 240 | 241 | AM_RANGE(0x9000, 0x9000) AM_WRITE(rom_bank_select_w) |
| 241 | AM_RANGE(0xa000, 0xbfff) AM_READWRITE(crgolf_videoram_bit1_r, crgolf_videoram_bit1_w) | |
| 242 | AM_RANGE(0xc000, 0xdfff) AM_READWRITE(crgolf_videoram_bit0_r, crgolf_videoram_bit0_w) | |
| 243 | AM_RANGE(0xe000, 0xffff) AM_READWRITE(crgolf_videoram_bit2_r, crgolf_videoram_bit2_w) | |
| 242 | AM_RANGE(0xa000, 0xffff) AM_READWRITE(crgolf_videoram_r, crgolf_videoram_w) | |
| 244 | 243 | ADDRESS_MAP_END |
| 245 | 244 | |
| 246 | 245 | |
| r1649 | r1650 | |
| 371 | 370 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 372 | 371 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 373 | 372 | |
| 374 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 375 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 376 | ||
| 377 | 373 | MDRV_MACHINE_START(crgolf) |
| 378 | 374 | MDRV_INTERLEAVE(100) |
| 379 | 375 | |
| 380 | 376 | /* video hardware */ |
| 381 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 382 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 383 | MDRV_SCREEN_SIZE(256, 256) | |
| 384 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 8, 247) | |
| 385 | MDRV_PALETTE_LENGTH(32) | |
| 377 | MDRV_IMPORT_FROM(crgolf_video) | |
| 386 | 378 | |
| 387 | MDRV_PALETTE_INIT(crgolf) | |
| 388 | MDRV_VIDEO_START(crgolf) | |
| 389 | MDRV_VIDEO_UPDATE(crgolf) | |
| 390 | ||
| 391 | 379 | /* sound hardware */ |
| 392 | 380 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 393 | 381 | MDRV_SOUND_ADD(AY8910, MASTER_CLOCK/3/2/2) |
| r1649 | r1650 | |
|---|---|---|
| 434 | 434 | */ |
| 435 | 435 | |
| 436 | 436 | #include "driver.h" |
| 437 | #include "deprecat.h" | |
| 437 | 438 | #include "sound/saa1099.h" |
| 438 | 439 | #include "sound/msm5205.h" |
| 439 | 440 |
| r1649 | r1650 | |
|---|---|---|
| 25 | 25 | ***************************************************************************/ |
| 26 | 26 | |
| 27 | 27 | #include "driver.h" |
| 28 | #include "deprecat.h" | |
| 28 | 29 | #include "thedeep.h" |
| 29 | 30 | #include "sound/2203intf.h" |
| 30 | 31 |
| r1649 | r1650 | |
|---|---|---|
| 30 | 30 | */ |
| 31 | 31 | |
| 32 | 32 | #include "driver.h" |
| 33 | #include "deprecat.h" | |
| 33 | 34 | #include "sound/okim6295.h" |
| 34 | 35 | #include "sound/3812intf.h" |
| 35 | 36 |
| r1649 | r1650 | |
|---|---|---|
| 230 | 230 | ***************************************************************************/ |
| 231 | 231 | |
| 232 | 232 | #include "driver.h" |
| 233 | #include "deprecat.h" | |
| 233 | 234 | #include "taitoipt.h" |
| 234 | 235 | #include "cpu/m68000/m68000.h" |
| 235 | 236 | #include "video/taitoic.h" |
| r1649 | r1650 | |
|---|---|---|
| 40 | 40 | */ |
| 41 | 41 | |
| 42 | 42 | #include "driver.h" |
| 43 | #include "deprecat.h" | |
| 43 | 44 | #include "cpu/powerpc/ppc.h" |
| 44 | 45 | #include "cpu/sharc/sharc.h" |
| 45 | 46 | #include "sound/k054539.h" |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | ***************************************************************************/ |
| 15 | 15 | |
| 16 | 16 | #include "driver.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | #include "sound/2151intf.h" |
| 18 | 19 | |
| 19 | 20 | /* Variables & functions defined in video: */ |
| r1649 | r1650 | |
|---|---|---|
| 296 | 296 | */ |
| 297 | 297 | |
| 298 | 298 | #include "driver.h" |
| 299 | #include "deprecat.h" | |
| 299 | 300 | #include "sound/sn76496.h" |
| 300 | 301 | #include "machine/mc8123.h" |
| 301 | 302 | #include "machine/segacrpt.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 1 | /*************************************************************************************** | |
| 2 | 2 | |
| 3 | 3 | -= Electronic Devices / International Games =- |
| 4 | 4 | |
| r1649 | r1650 | |
| 12 | 12 | ---------------------------------------------------------------------------------------- |
| 13 | 13 | Year + Game Main CPU Sound CPU Sound Video |
| 14 | 14 | ---------------------------------------------------------------------------------------- |
| 15 | >=1987 Born To Fight 8086? 8086? YM2151 + DAC ? | |
| 16 | >=1987 Fantasy Land V20 8088 4 x MSM5205 2 x I.G.1BB 48844758V | |
| 15 | >=1987 Born To Fight V20 8088 4 x MSM5205 2 x I.G.1BB 48844758V | |
| 16 | >=1987 Fantasy Land 8086? 8086? YM2151 + DAC ? | |
| 17 | 1988? Wheels Runner V20 Z80 YM3526 + ? 2 x PLCC84 FPGA | |
| 17 | 18 | 1989 Galaxy Gunners 8086? 8086? YM2151 ? |
| 18 | 19 | ---------------------------------------------------------------------------------------- |
| 19 | 20 | |
| r1649 | r1650 | |
| 35 | 36 | - Verify sound. Also speech is a bit garbled / low volume (rom 15) |
| 36 | 37 | - Trackball controls don't work well |
| 37 | 38 | |
| 38 | ||
| 39 | [wheelrun] | |
| 39 | 40 | |
| 41 | - On a car hit / crash the game tries to produce sound through ports b000 & c000, | |
| 42 | probably connected to the EP1210. This is not emulated. | |
| 43 | ||
| 44 | ***************************************************************************************/ | |
| 45 | ||
| 40 | 46 | #include "driver.h" |
| 47 | #include "deprecat.h" | |
| 41 | 48 | #include "sound/2151intf.h" |
| 49 | #include "sound/3812intf.h" | |
| 42 | 50 | #include "sound/dac.h" |
| 43 | 51 | #include "sound/msm5205.h" |
| 44 | 52 | |
| r1649 | r1650 | |
| 108 | 116 | spriteram_2[2*offset+1] = data >> 8; |
| 109 | 117 | } |
| 110 | 118 | |
| 111 | static ADDRESS_MAP_START( fantland_readmem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 112 | AM_RANGE(0xa4000, 0xa67ff) AM_READ(spriteram_16_r ) // not actually read | |
| 113 | AM_RANGE(0xc0000, 0xcffff) AM_READ(spriteram2_16_r ) // "" | |
| 114 | AM_RANGE(0xe0000, 0xfffff) AM_READ(MRA16_ROM ) | |
| 115 | ADDRESS_MAP_END | |
| 119 | static ADDRESS_MAP_START( fantland_map, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 120 | AM_RANGE( 0x00000, 0x07fff ) AM_RAM | |
| 121 | AM_RANGE( 0x08000, 0x7ffff ) AM_ROM | |
| 116 | 122 | |
| 117 | static ADDRESS_MAP_START( fantland_writemem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 118 | AM_RANGE(0x00000, 0x07fff) AM_RAM | |
| 119 | AM_RANGE(0x00000, 0x7ffff) AM_ROM | |
| 120 | AM_RANGE(0xa2000, 0xa21ff) AM_READWRITE(MRA16_RAM, paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16 ) | |
| 121 | AM_RANGE(0xa3000, 0xa3001) AM_READ(input_port_0_word_r ) | |
| 122 | AM_RANGE(0xa3002, 0xa3003) AM_READ(input_port_1_word_r ) | |
| 123 | AM_RANGE(0xa3000, 0xa3001) AM_WRITE(fantland_nmi_enable_16_w) | |
| 124 | AM_RANGE(0xa3002, 0xa3003) AM_WRITE(fantland_soundlatch_16_w) | |
| 125 | AM_RANGE(0xa4000, 0xa67ff) AM_WRITE(spriteram_16_w) AM_BASE((UINT16 **)&spriteram) | |
| 126 | AM_RANGE(0xc0000, 0xcffff) AM_WRITE(spriteram2_16_w) AM_BASE((UINT16 **)&spriteram_2) | |
| 123 | AM_RANGE( 0xa2000, 0xa21ff ) AM_READWRITE( MRA16_RAM, paletteram16_xRRRRRGGGGGBBBBB_word_w ) AM_BASE( &paletteram16 ) | |
| 124 | ||
| 125 | AM_RANGE( 0xa3000, 0xa3001 ) AM_READWRITE( input_port_0_word_r, fantland_nmi_enable_16_w ) | |
| 126 | AM_RANGE( 0xa3002, 0xa3003 ) AM_READWRITE( input_port_1_word_r, fantland_soundlatch_16_w ) | |
| 127 | ||
| 128 | AM_RANGE( 0xa4000, 0xa67ff ) AM_READWRITE( spriteram_16_r, spriteram_16_w ) AM_BASE( (UINT16 **)&spriteram ) | |
| 129 | AM_RANGE( 0xc0000, 0xcffff ) AM_READWRITE( spriteram2_16_r, spriteram2_16_w ) AM_BASE( (UINT16 **)&spriteram_2 ) | |
| 130 | ||
| 131 | AM_RANGE( 0xe0000, 0xfffff ) AM_ROM | |
| 127 | 132 | ADDRESS_MAP_END |
| 128 | 133 | |
| 129 | 134 | |
| r1649 | r1650 | |
| 131 | 136 | Galaxy Gunners |
| 132 | 137 | ***************************************************************************/ |
| 133 | 138 | |
| 134 | static ADDRESS_MAP_START( galaxygn_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 135 | AM_RANGE(0x00000, 0x07fff) AM_READ(MRA8_RAM ) | |
| 136 | AM_RANGE(0x10000, 0x2ffff) AM_READ(MRA8_ROM ) | |
| 137 | AM_RANGE(0x52000, 0x521ff) AM_READ(MRA8_RAM ) // not actually read | |
| 138 | AM_RANGE(0x53000, 0x53000) AM_READ(input_port_0_r ) | |
| 139 | AM_RANGE(0x53001, 0x53001) AM_READ(input_port_1_r ) | |
| 140 | AM_RANGE(0x53002, 0x53002) AM_READ(input_port_2_r ) | |
| 141 | AM_RANGE(0x53003, 0x53003) AM_READ(input_port_3_r ) | |
| 142 | AM_RANGE(0x54000, 0x567ff) AM_READ(MRA8_RAM ) // not actually read | |
| 143 | AM_RANGE(0x60000, 0x6ffff) AM_READ(MRA8_RAM ) // "" | |
| 144 | AM_RANGE(0x70000, 0x7ffff) AM_READ(MRA8_ROM ) | |
| 145 | AM_RANGE(0xf0000, 0xfffff) AM_READ(MRA8_ROM ) | |
| 146 | ADDRESS_MAP_END | |
| 139 | static ADDRESS_MAP_START( galaxygn_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 140 | AM_RANGE( 0x00000, 0x07fff ) AM_RAM | |
| 141 | AM_RANGE( 0x10000, 0x2ffff ) AM_ROM | |
| 147 | 142 | |
| 148 | static ADDRESS_MAP_START( galaxygn_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 149 | AM_RANGE(0x00000, 0x07fff) AM_WRITE(MWA8_RAM ) | |
| 150 | AM_RANGE(0x52000, 0x521ff) AM_WRITE(paletteram_xRRRRRGGGGGBBBBB_le_w) AM_BASE(&paletteram ) | |
| 151 | AM_RANGE(0x53000, 0x53000) AM_WRITE(fantland_nmi_enable_w ) | |
| 152 | AM_RANGE(0x53002, 0x53002) AM_WRITE(fantland_soundlatch_w ) | |
| 153 | AM_RANGE(0x54000, 0x567ff) AM_WRITE(MWA8_RAM) AM_BASE(&spriteram ) | |
| 154 | AM_RANGE(0x60000, 0x6ffff) AM_WRITE(MWA8_RAM) AM_BASE(&spriteram_2 ) | |
| 143 | AM_RANGE( 0x52000, 0x521ff ) AM_READWRITE( MRA8_RAM, paletteram_xRRRRRGGGGGBBBBB_le_w ) AM_BASE( &paletteram ) | |
| 144 | ||
| 145 | AM_RANGE( 0x53000, 0x53000 ) AM_READWRITE( input_port_0_r, fantland_nmi_enable_w ) | |
| 146 | AM_RANGE( 0x53001, 0x53001 ) AM_READ( input_port_1_r ) | |
| 147 | AM_RANGE( 0x53002, 0x53002 ) AM_READWRITE( input_port_2_r, fantland_soundlatch_w ) | |
| 148 | AM_RANGE( 0x53003, 0x53003 ) AM_READ( input_port_3_r) | |
| 149 | ||
| 150 | AM_RANGE( 0x54000, 0x567ff ) AM_RAM AM_BASE( &spriteram ) | |
| 151 | AM_RANGE( 0x60000, 0x6ffff ) AM_RAM AM_BASE( &spriteram_2 ) | |
| 152 | ||
| 153 | AM_RANGE( 0x70000, 0x7ffff ) AM_ROM | |
| 154 | AM_RANGE( 0xf0000, 0xfffff ) AM_ROM | |
| 155 | 155 | ADDRESS_MAP_END |
| 156 | 156 | |
| 157 | 157 | |
| r1649 | r1650 | |
| 215 | 215 | return ret[offset]; |
| 216 | 216 | } |
| 217 | 217 | |
| 218 | static ADDRESS_MAP_START( borntofi_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 219 | AM_RANGE(0x00000, 0x07fff) AM_READ( MRA8_RAM ) | |
| 220 | AM_RANGE(0x10000, 0x2ffff) AM_READ( MRA8_ROM ) | |
| 221 | // AM_RANGE(0x52000, 0x521ff) AM_READ( MRA8_RAM ) // not actually read | |
| 222 | AM_RANGE(0x53000, 0x53001) AM_READ( borntofi_inputs_r ) | |
| 223 | AM_RANGE(0x53002, 0x53002) AM_READ( input_port_6_r ) | |
| 224 | AM_RANGE(0x53003, 0x53003) AM_READ( input_port_7_r ) | |
| 225 | // AM_RANGE(0x54000, 0x567ff) AM_READ( MRA8_RAM ) // not actually read | |
| 226 | AM_RANGE(0x57000, 0x57000) AM_READ( input_port_8_r ) | |
| 227 | AM_RANGE(0x57001, 0x57001) AM_READ( input_port_9_r ) | |
| 228 | AM_RANGE(0x57002, 0x57002) AM_READ( input_port_10_r ) | |
| 229 | AM_RANGE(0x57003, 0x57003) AM_READ( input_port_11_r ) | |
| 230 | // AM_RANGE(0x60000, 0x6ffff) AM_READ( MRA8_RAM ) // not actually read | |
| 231 | AM_RANGE(0x70000, 0x7ffff) AM_READ( MRA8_ROM ) | |
| 232 | AM_RANGE(0xf0000, 0xfffff) AM_READ( MRA8_ROM ) | |
| 218 | static ADDRESS_MAP_START( borntofi_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 219 | AM_RANGE( 0x00000, 0x07fff ) AM_RAM | |
| 220 | AM_RANGE( 0x10000, 0x2ffff ) AM_ROM | |
| 221 | ||
| 222 | AM_RANGE( 0x52000, 0x521ff ) AM_READWRITE( MRA8_RAM, paletteram_xRRRRRGGGGGBBBBB_le_w ) AM_BASE( &paletteram ) | |
| 223 | AM_RANGE( 0x53000, 0x53001 ) AM_READWRITE( borntofi_inputs_r, borntofi_nmi_enable_w ) | |
| 224 | AM_RANGE( 0x53002, 0x53002 ) AM_READWRITE( input_port_6_r, fantland_soundlatch_w ) | |
| 225 | AM_RANGE( 0x53003, 0x53003 ) AM_READ( input_port_7_r ) | |
| 226 | ||
| 227 | AM_RANGE( 0x54000, 0x567ff ) AM_RAM AM_BASE( &spriteram ) | |
| 228 | ||
| 229 | AM_RANGE( 0x57000, 0x57000 ) AM_READ( input_port_8_r ) | |
| 230 | AM_RANGE( 0x57001, 0x57001 ) AM_READ( input_port_9_r ) | |
| 231 | AM_RANGE( 0x57002, 0x57002 ) AM_READ( input_port_10_r ) | |
| 232 | AM_RANGE( 0x57003, 0x57003 ) AM_READ( input_port_11_r ) | |
| 233 | ||
| 234 | AM_RANGE( 0x60000, 0x6ffff ) AM_RAM AM_BASE( &spriteram_2 ) | |
| 235 | ||
| 236 | AM_RANGE( 0x70000, 0x7ffff ) AM_ROM | |
| 237 | AM_RANGE( 0xf0000, 0xfffff ) AM_ROM | |
| 233 | 238 | ADDRESS_MAP_END |
| 234 | 239 | |
| 235 | static ADDRESS_MAP_START( borntofi_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 236 | AM_RANGE(0x00000, 0x07fff) AM_WRITE( MWA8_RAM ) | |
| 237 | AM_RANGE(0x52000, 0x521ff) AM_WRITE( paletteram_xRRRRRGGGGGBBBBB_le_w ) AM_BASE(&paletteram ) | |
| 238 | AM_RANGE(0x53000, 0x53000) AM_WRITE( borntofi_nmi_enable_w ) | |
| 239 | AM_RANGE(0x53002, 0x53002) AM_WRITE( fantland_soundlatch_w ) | |
| 240 | AM_RANGE(0x54000, 0x567ff) AM_WRITE( MWA8_RAM ) AM_BASE(&spriteram ) | |
| 241 | AM_RANGE(0x60000, 0x6ffff) AM_WRITE( MWA8_RAM ) AM_BASE(&spriteram_2 ) | |
| 240 | ||
| 241 | /*************************************************************************** | |
| 242 | Wheels Runner | |
| 243 | ***************************************************************************/ | |
| 244 | ||
| 245 | static ADDRESS_MAP_START( wheelrun_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 246 | AM_RANGE(0x00000, 0x07fff) AM_RAM | |
| 247 | ||
| 248 | AM_RANGE(0x30000, 0x3ffff) AM_ROM | |
| 249 | AM_RANGE(0x70000, 0x7ffff) AM_ROM | |
| 250 | ||
| 251 | AM_RANGE(0x52000, 0x521ff) AM_READWRITE(MRA8_RAM, paletteram_xRRRRRGGGGGBBBBB_le_w ) AM_BASE(&paletteram ) | |
| 252 | ||
| 253 | AM_RANGE(0x53000, 0x53000) AM_READWRITE( input_port_0_r, borntofi_nmi_enable_w ) | |
| 254 | AM_RANGE(0x53001, 0x53001) AM_READ( input_port_1_r ) | |
| 255 | AM_RANGE(0x53002, 0x53002) AM_READWRITE( input_port_2_r, fantland_soundlatch_w ) | |
| 256 | AM_RANGE(0x53003, 0x53003) AM_READWRITE( input_port_3_r, MWA8_NOP) | |
| 257 | ||
| 258 | AM_RANGE(0x54000, 0x567ff) AM_RAM AM_BASE(&spriteram ) | |
| 259 | AM_RANGE(0x60000, 0x6ffff) AM_RAM AM_BASE(&spriteram_2 ) | |
| 260 | ||
| 261 | AM_RANGE(0xf0000, 0xfffff) AM_ROM | |
| 242 | 262 | ADDRESS_MAP_END |
| 243 | 263 | |
| 244 | 264 | |
| 265 | ||
| 245 | 266 | /*************************************************************************** |
| 246 | 267 | |
| 247 | 268 | Memory Maps - Sound CPU |
| 248 | 269 | |
| 249 | 270 | ***************************************************************************/ |
| 250 | 271 | |
| 251 | static ADDRESS_MAP_START( fantland_sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 252 | AM_RANGE(0x00000, 0x01fff) AM_READ(MRA8_RAM) | |
| 253 | AM_RANGE(0x80000, 0x9ffff) AM_READ(MRA8_ROM ) | |
| 254 | AM_RANGE(0xc0000, 0xfffff) AM_READ(MRA8_ROM ) | |
| 272 | static ADDRESS_MAP_START( fantland_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 273 | AM_RANGE( 0x00000, 0x01fff ) AM_RAM | |
| 274 | AM_RANGE( 0x80000, 0x9ffff ) AM_ROM | |
| 275 | AM_RANGE( 0xc0000, 0xfffff ) AM_ROM | |
| 255 | 276 | ADDRESS_MAP_END |
| 256 | 277 | |
| 257 | static ADDRESS_MAP_START( fantland_sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 258 | AM_RANGE(0x00000, 0x01fff) AM_WRITE(MWA8_RAM ) | |
| 259 | AM_RANGE(0x80000, 0x9ffff) AM_WRITE(MWA8_ROM ) | |
| 260 | AM_RANGE(0xc0000, 0xfffff) AM_WRITE(MWA8_ROM ) | |
| 278 | static ADDRESS_MAP_START( fantland_sound_iomap, ADDRESS_SPACE_IO, 8 ) | |
| 279 | AM_RANGE( 0x0080, 0x0080 ) AM_READ( soundlatch_r ) | |
| 280 | AM_RANGE( 0x0100, 0x0100 ) AM_WRITE( YM2151_register_port_0_w ) | |
| 281 | AM_RANGE( 0x0101, 0x0101 ) AM_READWRITE( YM2151_status_port_0_r, YM2151_data_port_0_w ) | |
| 282 | AM_RANGE( 0x0180, 0x0180 ) AM_WRITE( DAC_0_data_w ) | |
| 261 | 283 | ADDRESS_MAP_END |
| 262 | 284 | |
| 263 | static ADDRESS_MAP_START( fantland_sound_readport, ADDRESS_SPACE_IO, 8 ) | |
| 264 | AM_RANGE(0x0080, 0x0080) AM_READ(soundlatch_r ) | |
| 265 | AM_RANGE(0x0101, 0x0101) AM_READ(YM2151_status_port_0_r ) | |
| 266 | ADDRESS_MAP_END | |
| 267 | 285 | |
| 268 | static ADDRESS_MAP_START( fantland_sound_writeport, ADDRESS_SPACE_IO, 8 ) | |
| 269 | AM_RANGE(0x0100, 0x0100) AM_WRITE(YM2151_register_port_0_w ) | |
| 270 | AM_RANGE(0x0101, 0x0101) AM_WRITE(YM2151_data_port_0_w ) | |
| 271 | AM_RANGE(0x0180, 0x0180) AM_WRITE(DAC_0_data_w ) | |
| 272 | ADDRESS_MAP_END | |
| 273 | ||
| 274 | ||
| 275 | 286 | /*************************************************************************** |
| 276 | 287 | Born To Fight |
| 277 | 288 | ***************************************************************************/ |
| r1649 | r1650 | |
| 357 | 368 | } |
| 358 | 369 | } |
| 359 | 370 | |
| 360 | static ADDRESS_MAP_START( borntofi_sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 361 | AM_RANGE(0x00000, 0x003ff) AM_READ( MRA8_RAM ) | |
| 362 | AM_RANGE(0x04000, 0x04000) AM_READ( soundlatch_r ) | |
| 363 | AM_RANGE(0x08000, 0x0ffff) AM_READ( MRA8_ROM ) | |
| 364 | AM_RANGE(0xf8000, 0xfffff) AM_READ( MRA8_ROM ) | |
| 371 | static ADDRESS_MAP_START( borntofi_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 372 | AM_RANGE( 0x00000, 0x003ff ) AM_RAM | |
| 373 | AM_RANGE( 0x04000, 0x04000 ) AM_READ( soundlatch_r ) | |
| 374 | AM_RANGE( 0x04000, 0x0401f ) AM_WRITE( borntofi_msm5205_w ) | |
| 375 | AM_RANGE( 0x08000, 0x0ffff ) AM_ROM | |
| 376 | AM_RANGE( 0xf8000, 0xfffff ) AM_ROM | |
| 365 | 377 | ADDRESS_MAP_END |
| 366 | 378 | |
| 367 | static ADDRESS_MAP_START( borntofi_sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 368 | AM_RANGE(0x00000, 0x003ff) AM_WRITE( MWA8_RAM ) | |
| 369 | AM_RANGE(0x04000, 0x0401f) AM_WRITE( borntofi_msm5205_w ) | |
| 379 | ||
| 380 | /*************************************************************************** | |
| 381 | Wheels Runner | |
| 382 | ***************************************************************************/ | |
| 383 | ||
| 384 | static ADDRESS_MAP_START( wheelrun_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 385 | AM_RANGE(0x0000, 0x7fff) AM_ROM | |
| 386 | AM_RANGE(0x8000, 0x87ff) AM_RAM | |
| 387 | AM_RANGE(0xa000, 0xa000) AM_READWRITE( YM3526_status_port_0_r, YM3526_control_port_0_w ) | |
| 388 | AM_RANGE(0xa001, 0xa001) AM_WRITE( YM3526_write_port_0_w ) | |
| 389 | ||
| 390 | AM_RANGE(0xb000, 0xb000) AM_WRITE( MWA8_NOP ) // on a car crash / hit | |
| 391 | AM_RANGE(0xc000, 0xc000) AM_WRITE( MWA8_NOP ) // "" | |
| 392 | ||
| 393 | AM_RANGE(0xd000, 0xd000) AM_READ( soundlatch_r ) // during NMI | |
| 370 | 394 | ADDRESS_MAP_END |
| 371 | 395 | |
| 372 | 396 | |
| r1649 | r1650 | |
| 385 | 409 | PORT_START /* IN0 - a3000 */ |
| 386 | 410 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 387 | 411 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START1 ) |
| 388 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | |
| 412 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | |
| 389 | 413 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) |
| 390 | 414 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) |
| 391 | 415 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) |
| 392 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 393 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 416 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 417 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 394 | 418 | |
| 395 | 419 | /* IN1 - a3001 */ |
| 396 | 420 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 397 | 421 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_START2 ) |
| 398 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | |
| 422 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | |
| 399 | 423 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) |
| 400 | 424 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) |
| 401 | 425 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) |
| 402 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 403 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 426 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 427 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 404 | 428 | |
| 405 | 429 | PORT_START /* IN2 - a3002 */ |
| 406 | 430 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coinage ) ) |
| r1649 | r1650 | |
| 666 | 690 | |
| 667 | 691 | |
| 668 | 692 | /*************************************************************************** |
| 693 | Wheels Runner | |
| 694 | ***************************************************************************/ | |
| 669 | 695 | |
| 696 | static CUSTOM_INPUT( wheelrun_wheel_r ) | |
| 697 | { | |
| 698 | int player = (FPTR)param; | |
| 699 | int delta = readinputport(4 + player); | |
| 700 | delta = (delta & 0x7f) - (delta & 0x80) + 4; | |
| 701 | ||
| 702 | if (delta > 7) delta = 7; | |
| 703 | else if (delta < 1) delta = 1; | |
| 704 | ||
| 705 | // if (player == 0) popmessage("%x",delta); | |
| 706 | return delta; | |
| 707 | } | |
| 708 | ||
| 709 | static INPUT_PORTS_START( wheelrun ) | |
| 710 | PORT_START /* IN0 - 53000 */ | |
| 711 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 712 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 713 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 714 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 715 | PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(wheelrun_wheel_r, 0) | |
| 716 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 717 | ||
| 718 | PORT_START /* IN1 - 53001 */ | |
| 719 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 720 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 721 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 722 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 723 | PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(wheelrun_wheel_r, 1) | |
| 724 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 725 | ||
| 726 | PORT_START /* IN2 - 53002 */ | |
| 727 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) ) | |
| 728 | PORT_DIPSETTING( 0x01, DEF_STR( 4C_1C ) ) | |
| 729 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) | |
| 730 | PORT_DIPSETTING( 0x03, DEF_STR( 2C_1C ) ) | |
| 731 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) ) | |
| 732 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) ) | |
| 733 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) ) | |
| 734 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) | |
| 735 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 736 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) | |
| 737 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 738 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 739 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Allow_Continue ) ) | |
| 740 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 741 | PORT_DIPSETTING( 0x10, DEF_STR( Yes ) ) | |
| 742 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Difficulty ) ) | |
| 743 | PORT_DIPSETTING( 0x60, DEF_STR( Normal ) ) | |
| 744 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) | |
| 745 | PORT_DIPSETTING( 0x20, DEF_STR( Harder ) ) | |
| 746 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 747 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) | |
| 748 | ||
| 749 | PORT_START /* IN3 - 53003 */ | |
| 750 | PORT_DIPNAME( 0xff, 0xdf, "Wheel Sensitivity" ) | |
| 751 | PORT_DIPSETTING( 0x7f, "0" ) | |
| 752 | PORT_DIPSETTING( 0xbf, "1" ) | |
| 753 | PORT_DIPSETTING( 0xdf, "2" ) | |
| 754 | PORT_DIPSETTING( 0xef, "3" ) | |
| 755 | PORT_DIPSETTING( 0xf7, "4" ) | |
| 756 | PORT_DIPSETTING( 0xfb, "5" ) | |
| 757 | PORT_DIPSETTING( 0xfd, "6" ) | |
| 758 | PORT_DIPSETTING( 0xfe, "7" ) | |
| 759 | ||
| 760 | PORT_START /* IN4 */ | |
| 761 | PORT_BIT( 0xff, 0, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_RESET PORT_REVERSE PORT_PLAYER(1) | |
| 762 | PORT_START /* IN5 */ | |
| 763 | PORT_BIT( 0xff, 0, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_RESET PORT_REVERSE PORT_PLAYER(2) | |
| 764 | INPUT_PORTS_END | |
| 765 | ||
| 766 | ||
| 767 | /*************************************************************************** | |
| 768 | ||
| 670 | 769 | Graphics Layouts |
| 671 | 770 | |
| 672 | 771 | ***************************************************************************/ |
| r1649 | r1650 | |
| 711 | 810 | static MACHINE_DRIVER_START( fantland ) |
| 712 | 811 | /* basic machine hardware */ |
| 713 | 812 | MDRV_CPU_ADD(I8086, 8000000) // ? |
| 714 | MDRV_CPU_PROGRAM_MAP(fantland_ | |
| 813 | MDRV_CPU_PROGRAM_MAP(fantland_ | |
| 715 | 814 | MDRV_CPU_VBLANK_INT(fantland_irq,1) |
| 716 | 815 | |
| 717 | 816 | /* audio CPU */ |
| 718 | 817 | MDRV_CPU_ADD(I8088, 8000000) // ? |
| 719 | MDRV_CPU_PROGRAM_MAP(fantland_sound_readmem, fantland_sound_writemem) | |
| 720 | MDRV_CPU_IO_MAP(fantland_sound_readport,fantland_sound_writeport) | |
| 818 | MDRV_CPU_PROGRAM_MAP(fantland_sound_map, 0) | |
| 819 | MDRV_CPU_IO_MAP(fantland_sound_iomap, 0) | |
| 721 | 820 | MDRV_CPU_PERIODIC_INT(fantland_sound_irq, 8000) |
| 722 | 821 | // NMI when soundlatch is written |
| 723 | 822 | |
| r1649 | r1650 | |
| 763 | 862 | static MACHINE_DRIVER_START( galaxygn ) |
| 764 | 863 | /* basic machine hardware */ |
| 765 | 864 | MDRV_CPU_ADD(I8088, 8000000) // ? |
| 766 | MDRV_CPU_PROGRAM_MAP(galaxygn_ | |
| 865 | MDRV_CPU_PROGRAM_MAP(galaxygn_ | |
| 767 | 866 | MDRV_CPU_VBLANK_INT(fantland_irq,1) |
| 768 | 867 | |
| 769 | 868 | /* audio CPU */ |
| 770 | 869 | MDRV_CPU_ADD(I8088, 8000000) // ? |
| 771 | MDRV_CPU_PROGRAM_MAP(fantland_sound_readmem, fantland_sound_writemem) | |
| 772 | MDRV_CPU_IO_MAP(fantland_sound_readport,fantland_sound_writeport) | |
| 870 | MDRV_CPU_PROGRAM_MAP(fantland_sound_map, 0) | |
| 871 | MDRV_CPU_IO_MAP(fantland_sound_iomap, 0) | |
| 773 | 872 | // IRQ by YM2151, NMI when soundlatch is written |
| 774 | 873 | |
| 775 | 874 | MDRV_SCREEN_REFRESH_RATE(60) |
| r1649 | r1650 | |
| 817 | 916 | static MACHINE_DRIVER_START( borntofi ) |
| 818 | 917 | /* basic machine hardware */ |
| 819 | 918 | MDRV_CPU_ADD(V20, 16000000/2) // D701080C-8 - NEC D70108C-8 V20 CPU, running at 8.000MHz [16/2] |
| 820 | MDRV_CPU_PROGRAM_MAP(borntofi_ | |
| 919 | MDRV_CPU_PROGRAM_MAP(borntofi_ | |
| 821 | 920 | MDRV_CPU_VBLANK_INT(fantland_irq,1) |
| 822 | 921 | |
| 823 | 922 | /* audio CPU */ |
| 824 | 923 | MDRV_CPU_ADD(I8088, 18432000/3) // 8088 - AMD P8088-2 CPU, running at 6.144MHz [18.432/3] |
| 825 | MDRV_CPU_PROGRAM_MAP(borntofi_sound_ | |
| 924 | MDRV_CPU_PROGRAM_MAP(borntofi_sound_ | |
| 826 | 925 | |
| 827 | 926 | MDRV_SCREEN_REFRESH_RATE(54) // 54 Hz |
| 828 | 927 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) |
| r1649 | r1650 | |
| 848 | 947 | MDRV_SOUND_ADD(MSM5205, 384000) MDRV_SOUND_CONFIG(msm5205_interface) MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 849 | 948 | MACHINE_DRIVER_END |
| 850 | 949 | |
| 950 | ||
| 951 | ||
| 952 | static void wheelrun_ym3526_irqhandler(int state) | |
| 953 | { | |
| 954 | cpunum_set_input_line(Machine, 1, INPUT_LINE_IRQ0, state); | |
| 955 | } | |
| 956 | ||
| 957 | static const struct YM3526interface wheelrun_ym3526_interface = | |
| 958 | { | |
| 959 | wheelrun_ym3526_irqhandler | |
| 960 | }; | |
| 961 | ||
| 962 | static MACHINE_DRIVER_START( wheelrun ) | |
| 963 | /* basic machine hardware */ | |
| 964 | MDRV_CPU_ADD(V20, XTAL_18MHz/2) // D701080C-8 (V20) | |
| 965 | MDRV_CPU_PROGRAM_MAP(wheelrun_map, 0) | |
| 966 | MDRV_CPU_VBLANK_INT(fantland_irq,1) | |
| 967 | ||
| 968 | /* audio CPU */ | |
| 969 | MDRV_CPU_ADD(Z80, XTAL_18MHz/2) // Z8400BB1 (Z80B) | |
| 970 | MDRV_CPU_PROGRAM_MAP(wheelrun_sound_map, 0) | |
| 971 | // IRQ by YM3526, NMI when soundlatch is written | |
| 972 | ||
| 973 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 974 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 975 | ||
| 976 | MDRV_MACHINE_RESET(fantland) | |
| 977 | ||
| 978 | /* video hardware */ | |
| 979 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 980 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 981 | MDRV_SCREEN_SIZE(256,224) | |
| 982 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 224-1) | |
| 983 | MDRV_GFXDECODE(fantland) | |
| 984 | MDRV_PALETTE_LENGTH(256) | |
| 985 | ||
| 986 | MDRV_VIDEO_UPDATE(fantland) | |
| 987 | ||
| 988 | /* sound hardware */ | |
| 989 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 990 | ||
| 991 | MDRV_SOUND_ADD(YM3526, XTAL_14MHz/4) | |
| 992 | MDRV_SOUND_CONFIG(wheelrun_ym3526_interface) | |
| 993 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 994 | MACHINE_DRIVER_END | |
| 995 | ||
| 996 | ||
| 851 | 997 | /*************************************************************************** |
| 852 | 998 | |
| 853 | 999 | ROMs Loading |
| r1649 | r1650 | |
| 1117 | 1263 | ROMX_LOAD( "63.bin", 0x1b0000, 0x10000, CRC(5f530559) SHA1(d1d3edc2082985ccec9fe8ca0b27810623cb5b89), ROM_SKIP(2) ) |
| 1118 | 1264 | ROM_END |
| 1119 | 1265 | |
| 1120 | GAME( 19??, borntofi, 0, borntofi, borntofi, 0, ROT0, "International Games", "Born To Fight" , 0 ) | |
| 1121 | GAME( 19??, fantland, 0, fantland, fantland, 0, ROT0, "Electronic Devices Italy", "Fantasy Land (set 1)", 0 ) | |
| 1122 | GAME( 19??, fantlnda, fantland, fantland, fantland, 0, ROT0, "Electronic Devices Italy", "Fantasy Land (set 2)", 0 ) | |
| 1123 | GAME( 1989, galaxygn, 0, galaxygn, galaxygn, 0, ROT90, "Electronic Devices Italy", "Galaxy Gunners" , 0 ) | |
| 1266 | /*************************************************************************** | |
| 1267 | ||
| 1268 | Wheels Runner by International Games | |
| 1269 | ||
| 1270 | PCB: | |
| 1271 | (revision 8801) | |
| 1272 | ||
| 1273 | 1x NEC D70108C-8 (NEC V20) | |
| 1274 | 1x SGS Z8400BB1 (Z80B) | |
| 1275 | 1x YM3526 (sound) | |
| 1276 | 1x Y3014B (DAC) | |
| 1277 | 1x LM324A (sound) | |
| 1278 | 1x TDA2002 (sound) | |
| 1279 | 1x oscillator 18.000 | |
| 1280 | 1x oscillator 14.000 | |
| 1281 | 1x ALTERA EP1210PC | |
| 1282 | 2x INGA (black quad chips with 84 legs, maybe FPGA) | |
| 1283 | ||
| 1284 | ROMs: | |
| 1285 | ||
| 1286 | 15x M27512 | |
| 1287 | 3x PAL16R6CN (read protected) | |
| 1288 | 2x PAL20L8aCNS (read protected) | |
| 1289 | 5x TIBPAL16l8-25CN (read protected) | |
| 1290 | 4x TIBPAL16r4-25CN (read protected) | |
| 1291 | 1x TIBPAL16r8-25CN (read protected) | |
| 1292 | eprom location 2,5,6 are empty | |
| 1293 | ||
| 1294 | Notes: | |
| 1295 | ||
| 1296 | 1x JAMMA edge connector | |
| 1297 | 1x trimmer (volume) | |
| 1298 | 2x 8 bit dip switch | |
| 1299 | ||
| 1300 | Hardware info by f205v | |
| 1301 | ||
| 1302 | ***************************************************************************/ | |
| 1303 | ||
| 1304 | ROM_START( wheelrun ) | |
| 1305 | ROM_REGION( 0x100000, REGION_CPU1, 0 ) // V20 | |
| 1306 | ROM_LOAD( "4.4", 0x30000, 0x10000, CRC(359303df) SHA1(583b70f65b775e99856ffda61334be3b85046ed1) ) | |
| 1307 | ROM_LOAD( "3.3", 0x70000, 0x10000, CRC(c28d0b31) SHA1(add8c4ffe529755c101b72a3b0530e796948876b) ) | |
| 1308 | ROM_COPY( REGION_CPU1, 0x70000, 0xf0000, 0x10000 ) | |
| 1309 | ||
| 1310 | ROM_REGION( 0x100000, REGION_CPU2, 0 ) // Z80 | |
| 1311 | ROM_LOAD( "1.1", 0x00000, 0x10000, CRC(67b5f31f) SHA1(5553b132077686221fb7a21a0246fd55cb443332) ) // 1xxxxxxxxxxxxxxx = 0xFF | |
| 1312 | ||
| 1313 | ROM_REGION( 0xc0000, REGION_GFX1,0 ) // gfx | |
| 1314 | ROMX_LOAD( "7.7", 0x00000, 0x10000, CRC(e0e5ff64) SHA1(e2ed5ea5b75ed627a9d305864196160267cad438), ROM_SKIP(2) ) | |
| 1315 | ROMX_LOAD( "11.11", 0x00001, 0x10000, CRC(ce9718fb) SHA1(ade47deedd5d0c927fdf8626aa1b0fac470f03a0), ROM_SKIP(2) ) | |
| 1316 | ROMX_LOAD( "15.15", 0x00002, 0x10000, CRC(f6665f31) SHA1(e308a049697622bcda9d3c630e061d30c2b70687), ROM_SKIP(2) ) | |
| 1317 | ||
| 1318 | ROMX_LOAD( "8.8", 0x30000, 0x10000, CRC(fa1ec091) SHA1(bd436788651fc2f679897ccd0f7ec51014eb9e90), ROM_SKIP(2) ) | |
| 1319 | ROMX_LOAD( "12.12", 0x30001, 0x10000, CRC(8923dce4) SHA1(a8f8aeb6f214454c6125a36043aebdf7cc79c253), ROM_SKIP(2) ) | |
| 1320 | ROMX_LOAD( "16.16", 0x30002, 0x10000, CRC(49801733) SHA1(4d8f79afbb5bf33787ad437d04b95a17e4008894), ROM_SKIP(2) ) | |
| 1321 | ||
| 1322 | ROMX_LOAD( "9.9", 0x60000, 0x10000, CRC(9fea30d0) SHA1(308caa360f556e085ce05f35e26856d6944b03af), ROM_SKIP(2) ) | |
| 1323 | ROMX_LOAD( "13.13", 0x60001, 0x10000, CRC(8b0aae8d) SHA1(413821fdbf599004b57f3588360ccf881547e104), ROM_SKIP(2) ) | |
| 1324 | ROMX_LOAD( "17.17", 0x60002, 0x10000, CRC(be8ab48d) SHA1(1520d70eb9c65f84deddc2d7c8de7ae2cbb1ec09), ROM_SKIP(2) ) | |
| 1325 | ||
| 1326 | ROMX_LOAD( "10.10", 0x90000, 0x10000, CRC(c5bdd367) SHA1(c432762d23b8799643fd5f1775a44d31582e7290), ROM_SKIP(2) ) // 1111xxxxxxxxxxxx = 0x00 | |
| 1327 | ROMX_LOAD( "14.14", 0x90001, 0x10000, CRC(e592302f) SHA1(d4f668d259ec649e3126db27d990a2e5fa9cad8d), ROM_SKIP(2) ) | |
| 1328 | ROMX_LOAD( "18.18", 0x90002, 0x10000, CRC(6bd42d8e) SHA1(0745428a54da85707d4435f20cc2094576a95e5b), ROM_SKIP(2) ) // 1111xxxxxxxxxxxx = 0x00 | |
| 1329 | ||
| 1330 | ROM_REGION( 0x144, REGION_PLDS,0 ) // pals | |
| 1331 | ROM_LOAD( "pal16r6cn.pal3", 0x000, 0x104, NO_DUMP ) | |
| 1332 | ROM_LOAD( "pal16r6cn.pal4", 0x000, 0x104, NO_DUMP ) | |
| 1333 | ROM_LOAD( "pal16r6cn.pal5", 0x000, 0x104, NO_DUMP ) | |
| 1334 | ROM_LOAD( "tibpal16l8-25cn.pal1", 0x000, 0x104, NO_DUMP ) | |
| 1335 | ROM_LOAD( "tibpal16l8-25cn.pal13", 0x000, 0x104, NO_DUMP ) | |
| 1336 | ROM_LOAD( "tibpal16l8-25cn.pal14", 0x000, 0x104, NO_DUMP ) | |
| 1337 | ROM_LOAD( "tibpal16l8-25cn.pal7", 0x000, 0x104, NO_DUMP ) | |
| 1338 | ROM_LOAD( "tibpal16l8-25cn.pal8", 0x000, 0x104, NO_DUMP ) | |
| 1339 | ROM_LOAD( "tibpal16r4-25cn.pal10", 0x000, 0x104, NO_DUMP ) | |
| 1340 | ROM_LOAD( "tibpal16r4-25cn.pal15", 0x000, 0x104, NO_DUMP ) | |
| 1341 | ROM_LOAD( "tibpal16r4-25cn.pal6", 0x000, 0x104, NO_DUMP ) | |
| 1342 | ROM_LOAD( "tibpal16r4-25cn.pal9", 0x000, 0x104, NO_DUMP ) | |
| 1343 | ROM_LOAD( "tibpal16r8-25cn.pal2", 0x000, 0x104, NO_DUMP ) | |
| 1344 | ROM_LOAD( "pal20l8acns.pal11", 0x000, 0x144, NO_DUMP ) | |
| 1345 | ROM_LOAD( "pal20l8acns.pal12", 0x000, 0x144, NO_DUMP ) | |
| 1346 | ROM_END | |
| 1347 | ||
| 1348 | ||
| 1349 | GAME( 19??, borntofi, 0, borntofi, borntofi, 0, ROT0, "International Games", "Born To Fight", 0 ) | |
| 1350 | GAME( 19??, fantland, 0, fantland, fantland, 0, ROT0, "Electronic Devices Italy", "Fantasy Land (set 1)", 0 ) | |
| 1351 | GAME( 19??, fantlnda, fantland, fantland, fantland, 0, ROT0, "Electronic Devices Italy", "Fantasy Land (set 2)", 0 ) | |
| 1352 | GAME( 19??, wheelrun, 0, wheelrun, wheelrun, 0, ROT0, "International Games", "Wheels Runner", 0 ) | |
| 1353 | GAME( 1989, galaxygn, 0, galaxygn, galaxygn, 0, ROT90, "Electronics Devices Italy", "Galaxy Gunners", GAME_IMPERFECT_SOUND ) |
| r1649 | r1650 | |
|---|---|---|
| 151 | 151 | /* I don't know if this has a purpose - also read in 'arkatayt' but not handled */ |
| 152 | 152 | static READ8_HANDLER( dominob_unk_port02_r ) |
| 153 | 153 | { |
| 154 | return 0xff; | |
| 154 | return 0xff; | |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | static ADDRESS_MAP_START( portmap, ADDRESS_SPACE_IO, 8 ) |
| r1649 | r1650 | |
|---|---|---|
| 1114 | 1114 | static UINT16 m_p_n_root_count[ 3 ]; |
| 1115 | 1115 | static UINT16 m_p_n_root_mode[ 3 ]; |
| 1116 | 1116 | static UINT16 m_p_n_root_target[ 3 ]; |
| 1117 | static UINT | |
| 1117 | static UINT64 m_p_n_root_start[ 3 ]; | |
| 1118 | 1118 | |
| 1119 | 1119 | #define RC_STOP ( 0x01 ) |
| 1120 | 1120 | #define RC_RESET ( 0x04 ) /* guess */ |
| r1649 | r1650 | |
| 1125 | 1125 | #define RC_CLC ( 0x100 ) |
| 1126 | 1126 | #define RC_DIV ( 0x200 ) |
| 1127 | 1127 | |
| 1128 | static UINT | |
| 1128 | static UINT64 psxcpu_gettotalcycles( void ) | |
| 1129 | 1129 | { |
| 1130 | 1130 | /* TODO: should return the start of the current tick. */ |
| 1131 | 1131 | return cpunum_gettotalcycles(0) * 2; |
| r1649 | r1650 | |
| 1157 | 1157 | } |
| 1158 | 1158 | else |
| 1159 | 1159 | { |
| 1160 | UINT | |
| 1160 | UINT64 n_current; | |
| 1161 | 1161 | n_current = psxcpu_gettotalcycles() - m_p_n_root_start[ n_counter ]; |
| 1162 | 1162 | n_current /= root_divider( n_counter ); |
| 1163 | 1163 | n_current += m_p_n_root_count[ n_counter ]; |
| r1649 | r1650 | |
|---|---|---|
| 31 | 31 | ***************************************************************************/ |
| 32 | 32 | |
| 33 | 33 | #include "driver.h" |
| 34 | #include "deprecat.h" | |
| 34 | 35 | #include "sound/dac.h" |
| 35 | 36 | |
| 36 | 37 | #include "sbrkout.lh" |
| r1649 | r1650 | |
|---|---|---|
| 26 | 26 | ***************************************************************************/ |
| 27 | 27 | |
| 28 | 28 | #include "driver.h" |
| 29 | #include "deprecat.h" | |
| 29 | 30 | #include "cpu/m6809/m6809.h" |
| 30 | 31 | #include "cpu/hd6309/hd6309.h" |
| 31 | 32 | #include "video/konamiic.h" |
| r1649 | r1650 | |
| 34 | 35 | |
| 35 | 36 | /* from video */ |
| 36 | 37 | int bladestl_spritebank; |
| 38 | PALETTE_INIT( bladestl ); | |
| 37 | 39 | VIDEO_START( bladestl ); |
| 38 | 40 | VIDEO_UPDATE( bladestl ); |
| 39 | PALETTE_INIT( bladestl ); | |
| 40 | 41 | WRITE8_HANDLER( bladestl_vreg_w ); |
| 41 | 42 | |
| 42 | 43 | static INTERRUPT_GEN( bladestl_interrupt ) |
| r1649 | r1650 | |
| 124 | 125 | AM_RANGE(0x0000, 0x1fff) AM_WRITE(K007342_w) /* Color RAM + Video RAM */ |
| 125 | 126 | AM_RANGE(0x2000, 0x21ff) AM_WRITE(K007420_w) /* Sprite RAM */ |
| 126 | 127 | AM_RANGE(0x2200, 0x23ff) AM_WRITE(K007342_scroll_w) /* Scroll RAM */ |
| 127 | AM_RANGE(0x2400, 0x245f) AM_WRITE( | |
| 128 | AM_RANGE(0x2400, 0x245f) AM_WRITE(MWA8 | |
| 128 | 129 | AM_RANGE(0x2600, 0x2607) AM_WRITE(K007342_vreg_w) /* Video Registers */ |
| 129 | 130 | AM_RANGE(0x2e80, 0x2e80) AM_WRITE(bladestl_sh_irqtrigger_w)/* cause interrupt on audio CPU */ |
| 130 | 131 | AM_RANGE(0x2ec0, 0x2ec0) AM_WRITE(watchdog_reset_w) /* watchdog reset */ |
| r1649 | r1650 | |
| 449 | 450 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 450 | 451 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 451 | 452 | MDRV_GFXDECODE(bladestl) |
| 452 | MDRV_PALETTE_LENGTH(48) | |
| 453 | MDRV_COLORTABLE_LENGTH(48 + 16*16) | |
| 453 | MDRV_PALETTE_INIT(bladestl) | |
| 454 | MDRV_PALETTE_LENGTH(32 + 16*16) | |
| 454 | 455 | |
| 455 | MDRV_PALETTE_INIT(bladestl) | |
| 456 | 456 | MDRV_VIDEO_START(bladestl) |
| 457 | 457 | MDRV_VIDEO_UPDATE(bladestl) |
| 458 | 458 |
| r1649 | r1650 | |
|---|---|---|
| 18 | 18 | |
| 19 | 19 | |
| 20 | 20 | #include "driver.h" |
| 21 | #include "deprecat.h" | |
| 21 | 22 | #include "machine/atarigen.h" |
| 22 | 23 | #include "audio/atarijsa.h" |
| 23 | 24 | #include "toobin.h" |
| r1649 | r1650 | |
|---|---|---|
| 214 | 214 | ***************************************************************************/ |
| 215 | 215 | |
| 216 | 216 | #include "driver.h" |
| 217 | #include "deprecat.h" | |
| 217 | 218 | #include "video/vector.h" |
| 218 | 219 | #include "video/avgdvg.h" |
| 219 | 220 | #include "machine/atari_vg.h" |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | ***************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "cpu/m6809/m6809.h" |
| 13 | 14 | #include "sound/2203intf.h" |
| 14 | 15 |
| r1649 | r1650 | |
|---|---|---|
| 91 | 91 | ***************************************************************************/ |
| 92 | 92 | |
| 93 | 93 | #include "driver.h" |
| 94 | #include "deprecat.h" | |
| 94 | 95 | #include "cpu/z80/z80.h" |
| 95 | 96 | #include "audio/seibu.h" |
| 96 | 97 | #include "sound/3812intf.h" |
| r1649 | r1650 | |
| 4378 | 4379 | GAME( 1993, sdgndmrb, 0, sdgndmrb, sdgndmrb, 0, ROT0, "Banpresto", "SD Gundam Sangokushi Rainbow Tairiku Senki", GAME_UNEMULATED_PROTECTION | GAME_NOT_WORKING ) |
| 4379 | 4380 | GAME( 1993, denjinmk, 0, denjinmk, godzilla, 0, ROT0, "Banpresto", "Denjin Makai", GAME_UNEMULATED_PROTECTION | GAME_NOT_WORKING ) |
| 4380 | 4381 | |
| 4381 | GAME( 1992, cupsoc, 0, cupsoc, cupsoc, 0, ROT0, "Seibu", "Seibu Cup Soccer", GAME_UNEMULATED_PROTECTION | GAME_NOT_WORKING ) | |
| 4382 | GAME( 1992, cupsoc, 0, cupsoc, cupsoc, 0, ROT0, "Seibu", "Seibu Cup Soccer (set 1)", GAME_UNEMULATED_PROTECTION | GAME_NOT_WORKING ) | |
| 4382 | 4383 | GAME( 1992, cupsoc2, cupsoc, cupsoc, cupsoc, 0, ROT0, "Seibu", "Seibu Cup Soccer (set 2)", GAME_UNEMULATED_PROTECTION | GAME_NOT_WORKING ) |
| 4383 | 4384 | GAME( 1992, olysoc92, cupsoc, cupsoc, cupsoc, 0, ROT0, "Seibu", "Olympic Soccer '92", GAME_UNEMULATED_PROTECTION | GAME_NOT_WORKING ) |
| 4384 | GAME( 1992, cupsocbl, cupsoc, cupsocbl, cupsoc, cupsoc, ROT0, "bootleg", "Seibu Cup Soccer (bootleg)", GAME_NOT_WORKING | GAME_NO_SOUND ) | |
| 4385 | GAME( 1992, cupsocbl, cupsoc, cupsocbl, cupsoc, cupsoc, ROT0, "bootleg", "Seibu Cup Soccer (bootleg)", GAME_NOT_WORKING | GAME_NO_SOUND ) |
| r1649 | r1650 | |
|---|---|---|
| 34 | 34 | ***************************************************************************/ |
| 35 | 35 | |
| 36 | 36 | #include "driver.h" |
| 37 | #include "deprecat.h" | |
| 37 | 38 | #include "sound/ay8910.h" |
| 38 | 39 | #include "machine/segacrpt.h" |
| 39 | 40 |
| r1649 | r1650 | |
|---|---|---|
| 19 | 19 | ***************************************************************************/ |
| 20 | 20 | |
| 21 | 21 | #include "driver.h" |
| 22 | #include "deprecat.h" | |
| 22 | 23 | #include "video/konamiic.h" |
| 23 | 24 | #include "machine/eeprom.h" |
| 24 | 25 | #include "cpu/m6809/m6809.h" |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | ***************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "cpu/konami/konami.h" /* for the callback and the firq irq definition */ |
| 13 | 14 | #include "video/konamiic.h" |
| 14 | 15 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
| 1058 | 1059 | |
| 1059 | 1060 | GAME( 1988, scontra, 0, scontra, scontra, scontra, ROT90, "Konami", "Super Contra", 0 ) |
| 1060 | 1061 | GAME( 1988, scontraj, scontra, scontra, scontra, scontra, ROT90, "Konami", "Super Contra (Japan)", 0 ) |
| 1061 | GAME( 1988, thunderx, 0, thunderx, thunderx, scontra, ROT0, "Konami", "Thunder Cross", 0 ) | |
| 1062 | GAME( 1988, thnderxa, thunderx, thunderx, thunderx, scontra, ROT0, "Konami", "Thunder Cross (Set 2)", 0 ) | |
| 1063 | GAME( 1988, thnderxb, thunderx, thunderx, thunderx, scontra, ROT0, "Konami", "Thunder Cross (Set 3)", 0 ) | |
| 1062 | GAME( 1988, thunderx, 0, thunderx, thunderx, scontra, ROT0, "Konami", "Thunder Cross (set 1)", 0 ) | |
| 1063 | GAME( 1988, thnderxa, thunderx, thunderx, thunderx, scontra, ROT0, "Konami", "Thunder Cross (set 2)", 0 ) | |
| 1064 | GAME( 1988, thnderxb, thunderx, thunderx, thunderx, scontra, ROT0, "Konami", "Thunder Cross (set 3)", 0 ) | |
| 1064 | 1065 | GAME( 1988, thnderxj, thunderx, thunderx, thunderx, scontra, ROT0, "Konami", "Thunder Cross (Japan)", 0 ) |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "sound/okim6295.h" |
| 13 | 14 | |
| 14 | 15 | |
| r1649 | r1650 | |
| 75 | 76 | |
| 76 | 77 | static READ16_HANDLER( jackpool_io_r ) |
| 77 | 78 | { |
| 78 | // return mame_rand(Machine); | |
| 79 | 79 | return 0xffff; |
| 80 | 80 | } |
| 81 | 81 |
| r1649 | r1650 | |
|---|---|---|
| 32 | 32 | ***************************************************************************/ |
| 33 | 33 | |
| 34 | 34 | #include "driver.h" |
| 35 | #include "deprecat.h" | |
| 35 | 36 | #include "cpu/i8085/i8085.h" |
| 36 | 37 | #include "cpu/i8039/i8039.h" |
| 37 | 38 | #include "sound/sn76496.h" |
| r1649 | r1650 | |
| 365 | 366 | ROM_END |
| 366 | 367 | |
| 367 | 368 | |
| 368 | GAME( 1980, spcforce, 0, spcforce, spcforce, 0, ROT270, "Venture Line", "Space Force", GAME_IMPERFECT_COLORS ) | |
| 369 | GAME( 1980, spcforce, 0, spcforce, spcforce, 0, ROT270, "Venture Line", "Space Force (set 1)", GAME_IMPERFECT_COLORS ) | |
| 369 | 370 | GAME( 19??, spcforc2, spcforce, spcforce, spcforc2, 0, ROT270, "Elcon (bootleg?)", "Space Force (set 2)", GAME_IMPERFECT_COLORS ) |
| 370 | 371 | GAME( 1981, meteor, spcforce, spcforce, spcforc2, 0, ROT270, "Venture Line", "Meteoroids", GAME_IMPERFECT_COLORS ) |
| r1649 | r1650 | |
|---|---|---|
| 142 | 142 | ******************************************/ |
| 143 | 143 | |
| 144 | 144 | #include "driver.h" |
| 145 | #include "deprecat.h" | |
| 145 | 146 | #include "cpu/z80/z80.h" |
| 146 | 147 | #include "machine/tait8741.h" |
| 147 | 148 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
|---|---|---|
| 220 | 220 | */ |
| 221 | 221 | |
| 222 | 222 | #include "driver.h" |
| 223 | #include "deprecat.h" | |
| 223 | 224 | #include "sound/okim6295.h" |
| 224 | 225 | #include "sound/3812intf.h" |
| 225 | 226 |
| r1649 | r1650 | |
|---|---|---|
| 90 | 90 | ***************************************************************************/ |
| 91 | 91 | |
| 92 | 92 | #include "driver.h" |
| 93 | #include "deprecat.h" | |
| 93 | 94 | #include "machine/z80dma.h" |
| 94 | 95 | |
| 95 | 96 | #include "mario.h" |
| r1649 | r1650 | |
| 182 | 183 | static ADDRESS_MAP_START( masao_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 183 | 184 | AM_RANGE(0x0000, 0x5fff) AM_ROM |
| 184 | 185 | AM_RANGE(0x6000, 0x6fff) AM_RAM |
| 185 | AM_RANGE(0x7000, 0x73ff) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size) /* physical sprite ram */ | |
| 186 | AM_RANGE(0x7400, 0x77ff) AM_READWRITE(MRA8_RAM, mario_videoram_w) AM_BASE(&videoram) | |
| 186 | AM_RANGE(0x7000, 0x73ff) AM_RAM AM_BASE_MEMBER(mario_state, spriteram) AM_SIZE_MEMBER(mario_state, spriteram_size) /* physical sprite ram */ | |
| 187 | AM_RANGE(0x7400, 0x77ff) AM_READWRITE(MRA8_RAM, mario_videoram_w) AM_BASE_MEMBER(mario_state, videoram) | |
| 187 | 188 | AM_RANGE(0x7c00, 0x7c00) AM_READ_PORT("IN0") |
| 188 | 189 | AM_RANGE(0x7c80, 0x7c80) AM_READ_PORT("IN1") |
| 189 | 190 | AM_RANGE(0x7d00, 0x7d00) AM_WRITE(mario_scroll_w) |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | |
| 15 | 15 | ***************************************************************************/ |
| 16 | 16 | #include "driver.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | #include "video/konamiic.h" |
| 18 | 19 | #include "machine/eeprom.h" |
| 19 | 20 | #include "cpu/z80/z80.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "sound/2151intf.h" |
| 3 | 4 | #include "sound/okim6295.h" |
| 4 | 5 |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | 14 | #include "driver.h" |
| 15 | #include "deprecat.h" | |
| 15 | 16 | #include "sound/ay8910.h" |
| 16 | 17 | |
| 17 | 18 | static tilemap *bg_tilemap; |
| r1649 | r1650 | |
|---|---|---|
| 165 | 165 | ***************************************************************************/ |
| 166 | 166 | |
| 167 | 167 | #include "driver.h" |
| 168 | #include "deprecat.h" | |
| 168 | 169 | #include "video/konamiic.h" |
| 169 | 170 | #include "cpu/m6809/m6809.h" |
| 170 | 171 | #include "cpu/hd6309/hd6309.h" |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | *************************************************************************/ |
| 12 | 12 | |
| 13 | 13 | #include "driver.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "videopin.h" |
| 15 | 16 | #include "videopin.lh" |
| 16 | 17 | #include "sound/discrete.h" |
| r1649 | r1650 | |
|---|---|---|
| 61 | 61 | ***************************************************************************/ |
| 62 | 62 | |
| 63 | 63 | #include "driver.h" |
| 64 | #include "deprecat.h" | |
| 64 | 65 | #include "cpu/m6809/m6809.h" |
| 65 | 66 | #include "sound/2203intf.h" |
| 66 | 67 | #include "sound/3812intf.h" |
| r1649 | r1650 | |
| 612 | 613 | } |
| 613 | 614 | |
| 614 | 615 | |
| 615 | GAME( 1986, exprraid, 0, exprraid, exprraid, exprraid, ROT0, "Data East USA", "Express Raider (US)", 0 ) | |
| 616 | GAME( 1986, exprraid, 0, exprraid, exprraid, exprraid, ROT0, "Data East USA", "Express Raider (US set 1)", 0 ) | |
| 616 | 617 | GAME( 1986, exprrada, exprraid, exprraid, exprraid, exprraid, ROT0, "Data East USA", "Express Raider (US set 2)", 0 ) |
| 617 | 618 | GAME( 1986, wexpress, exprraid, exprraid, exprraid, wexpress, ROT0, "Data East Corporation", "Western Express (World?)", 0 ) |
| 618 | 619 | GAME( 1986, wexpresb, exprraid, exprraid, exprraid, wexpresb, ROT0, "bootleg", "Western Express (bootleg set 1)", 0 ) |
| r1649 | r1650 | |
|---|---|---|
| 24 | 24 | ******************************************************************************/ |
| 25 | 25 | |
| 26 | 26 | #include "driver.h" |
| 27 | #include "deprecat.h" | |
| 27 | 28 | #include "cpu/m68000/m68000.h" |
| 28 | 29 | #include "cpu/z80/z80.h" |
| 29 | 30 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 51 | 51 | */ |
| 52 | 52 | |
| 53 | 53 | #include "driver.h" |
| 54 | #include "deprecat.h" | |
| 54 | 55 | #include "sound/2610intf.h" |
| 55 | 56 | |
| 56 | 57 | static UINT16 *unkram; |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | ****************************************************************************/ |
| 12 | 12 | |
| 13 | 13 | #include "driver.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "machine/atari_vg.h" |
| 15 | 16 | #include "sound/pokey.h" |
| 16 | 17 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | |
| 6 | 6 | #include "driver.h" |
| 7 | 7 | #include "memconv.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "machine/8237dma.h" |
| 9 | 10 | #include "machine/pic8259.h" |
| 10 | 11 | #include "machine/pit8253.h" |
| r1649 | r1650 | |
|---|---|---|
| 30 | 30 | ****************************************/ |
| 31 | 31 | |
| 32 | 32 | #include "driver.h" |
| 33 | #include "deprecat.h" | |
| 33 | 34 | #include "machine/namcoio.h" |
| 34 | 35 | #include "sound/namco.h" |
| 35 | 36 |
| r1649 | r1650 | |
|---|---|---|
| 262 | 262 | ***************************************************************************/ |
| 263 | 263 | |
| 264 | 264 | #include "driver.h" |
| 265 | #include "deprecat.h" | |
| 265 | 266 | #include "cpu/h6280/h6280.h" |
| 266 | 267 | #include "decocrpt.h" |
| 267 | 268 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 22 | 22 | /*====================================================================*/ |
| 23 | 23 | |
| 24 | 24 | #include "driver.h" |
| 25 | ||
| 25 | ||
| 26 | 26 | #include "cpu/tms34010/tms34010.h" |
| 27 | 27 | #include "cpu/tms34010/34010ops.h" |
| 28 | 28 | #include "cpu/i8051/i8051.h" |
| r1649 | r1650 | |
|---|---|---|
| 62 | 62 | |
| 63 | 63 | ***************************************************************************/ |
| 64 | 64 | #include "driver.h" |
| 65 | #include "deprecat.h" | |
| 65 | 66 | #include "cpu/z80/z80.h" |
| 66 | 67 | #include "sound/ay8910.h" |
| 67 | 68 | #include "sound/dac.h" |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | ***************************************************************************/ |
| 12 | 12 | |
| 13 | 13 | #include "driver.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "sound/ay8910.h" |
| 15 | 16 | |
| 16 | 17 | static tilemap *bg_tilemap; |
| r1649 | r1650 | |
| 18 | 19 | static PALETTE_INIT( olibochu ) |
| 19 | 20 | { |
| 20 | 21 | int i; |
| 21 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 22 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 23 | 22 | |
| 24 | ||
| 25 | for (i = 0;i < machine->drv->total_colors;i++) | |
| 23 | for (i = 0; i < machine->drv->total_colors; i++) | |
| 26 | 24 | { |
| 27 | int bit0,bit1,bit2,r,g,b; | |
| 25 | UINT8 pen; | |
| 26 | int bit0, bit1, bit2, r, g, b; | |
| 28 | 27 | |
| 28 | if (i < 0x100) | |
| 29 | /* characters */ | |
| 30 | pen = (color_prom[0x020 + (i - 0x000)] & 0x0f) | 0x10; | |
| 31 | else | |
| 32 | /* sprites */ | |
| 33 | pen = (color_prom[0x120 + (i - 0x100)] & 0x0f) | 0x00; | |
| 29 | 34 | |
| 30 | 35 | /* red component */ |
| 31 | bit0 = (*color_prom >> 0) & 0x01; | |
| 32 | bit1 = (*color_prom >> 1) & 0x01; | |
| 33 | bit2 = (*color_prom >> 2) & 0x01; | |
| 36 | bit0 = (color_prom[pen] >> 0) & 0x01; | |
| 37 | bit1 = (color_prom[pen] >> 1) & 0x01; | |
| 38 | bit2 = (color_prom[pen] >> 2) & 0x01; | |
| 34 | 39 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 40 | ||
| 35 | 41 | /* green component */ |
| 36 | bit0 = (*color_prom >> 3) & 0x01; | |
| 37 | bit1 = (*color_prom >> 4) & 0x01; | |
| 38 | bit2 = (*color_prom >> 5) & 0x01; | |
| 42 | bit0 = (color_prom[pen] >> 3) & 0x01; | |
| 43 | bit1 = (color_prom[pen] >> 4) & 0x01; | |
| 44 | bit2 = (color_prom[pen] >> 5) & 0x01; | |
| 39 | 45 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 46 | ||
| 40 | 47 | /* blue component */ |
| 41 | bit0 = (*color_prom >> 6) & 0x01; | |
| 42 | bit1 = (*color_prom >> 7) & 0x01; | |
| 48 | bit0 = (color_prom[pen] >> 6) & 0x01; | |
| 49 | bit1 = (color_prom[pen] >> 7) & 0x01; | |
| 43 | 50 | b = 0x4f * bit0 + 0xa8 * bit1; |
| 44 | 51 | |
| 45 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 46 | color_prom++; | |
| 52 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); | |
| 47 | 53 | } |
| 48 | ||
| 49 | /* color_prom now points to the beginning of the lookup table */ | |
| 50 | ||
| 51 | ||
| 52 | /* characters */ | |
| 53 | for (i = 0;i < TOTAL_COLORS(0);i++) | |
| 54 | COLOR(0,i) = (*(color_prom++) & 0x0f) + 0x10; | |
| 55 | ||
| 56 | /* sprites */ | |
| 57 | for (i = 0;i < TOTAL_COLORS(1);i++) | |
| 58 | COLOR(1,i) = (*(color_prom++) & 0x0f); | |
| 59 | 54 | } |
| 60 | 55 | |
| 61 | 56 | static WRITE8_HANDLER( olibochu_videoram_w ) |
| r1649 | r1650 | |
| 389 | 384 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 390 | 385 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 391 | 386 | MDRV_GFXDECODE(olibochu) |
| 392 | MDRV_PALETTE_LENGTH(32) | |
| 393 | MDRV_COLORTABLE_LENGTH(512) | |
| 387 | MDRV_PALETTE_LENGTH(512) | |
| 394 | 388 | |
| 395 | 389 | MDRV_PALETTE_INIT(olibochu) |
| 396 | 390 | MDRV_VIDEO_START(olibochu) |
| r1649 | r1650 | |
|---|---|---|
| 45 | 45 | ***************************************************************************/ |
| 46 | 46 | |
| 47 | 47 | #include "driver.h" |
| 48 | #include "deprecat.h" | |
| 48 | 49 | #include "cpu/m68000/m68000.h" |
| 49 | 50 | #include "video/taitoic.h" |
| 50 | 51 | #include "audio/taitosnd.h" |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "sound/2203intf.h" |
| 11 | 12 | |
| 12 | 13 | extern UINT8 *scotrsht_scroll; |
| r1649 | r1650 | |
|---|---|---|
| 771 | 771 | ***************************************************************************/ |
| 772 | 772 | |
| 773 | 773 | #include "driver.h" |
| 774 | #include "deprecat.h" | |
| 774 | 775 | #include "cpu/m68000/m68000.h" |
| 775 | 776 | #include "machine/eeprom.h" |
| 776 | 777 | #include "video/taitoic.h" |
| r1649 | r1650 | |
|---|---|---|
| 63 | 63 | *********************************************************************************************************************/ |
| 64 | 64 | |
| 65 | 65 | #include "driver.h" |
| 66 | #include "deprecat.h" | |
| 66 | 67 | #include "cpu/h83002/h83002.h" |
| 67 | 68 | |
| 68 | 69 | /*************************************************************************** |
| r1649 | r1650 | |
| 119 | 120 | #endif |
| 120 | 121 | #endif |
| 121 | 122 | |
| 122 | copybitmap(bitmap,lastfght_bitmap[lastfght_dest^1],0,0,0,0, | |
| 123 | copybitmap(bitmap,lastfght_bitmap[lastfght_dest^1],0,0,0,0, | |
| 123 | 124 | |
| 124 | 125 | return 0; |
| 125 | 126 | } |
| r1649 | r1650 | |
| 460 | 461 | } |
| 461 | 462 | |
| 462 | 463 | static MACHINE_DRIVER_START( lastfght ) |
| 463 | MDRV_CPU_ADD(H830 | |
| 464 | MDRV_CPU_ADD(H83044, 32000000/2) | |
| 464 | 465 | MDRV_CPU_PROGRAM_MAP( lastfght_map, 0 ) |
| 465 | 466 | MDRV_CPU_VBLANK_INT(unknown_interrupt,2) |
| 466 | 467 |
| r1649 | r1650 | |
|---|---|---|
| 6 | 6 | |
| 7 | 7 | ****************************************************************************/ |
| 8 | 8 | |
| 9 | #include <math.h> | |
| 10 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 11 | 11 | #include "cpu/z80/z80.h" |
| 12 | 12 | #include "cpu/m6805/m6805.h" |
| 13 | 13 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
|---|---|---|
| 107 | 107 | ***************************************************************************/ |
| 108 | 108 | |
| 109 | 109 | #include "driver.h" |
| 110 | #include "deprecat.h" | |
| 110 | 111 | #include "cpu/m6805/m6805.h" |
| 111 | 112 | #include "sound/ay8910.h" |
| 112 | 113 | #include "sound/samples.h" |
| r1649 | r1650 | |
|---|---|---|
| 540 | 540 | |
| 541 | 541 | static UINT32 *main_speedup; |
| 542 | 542 | static int main_speedup_hits; |
| 543 | static UINT32 main_speedup_last_cycles; | |
| 544 | static UINT32 main_speedup_max_cycles; | |
| 543 | static UINT64 main_speedup_last_cycles; | |
| 544 | static UINT64 main_speedup_max_cycles; | |
| 545 | 545 | |
| 546 | 546 | static READ32_HANDLER( cojagr3k_main_speedup_r ) |
| 547 | 547 | { |
| 548 | UINT | |
| 548 | UINT64 curcycles = activecpu_gettotalcycles(); | |
| 549 | 549 | |
| 550 | 550 | /* if it's been less than main_speedup_max_cycles cycles since the last time */ |
| 551 | 551 | if (curcycles - main_speedup_last_cycles < main_speedup_max_cycles) |
| r1649 | r1650 | |
| 620 | 620 | |
| 621 | 621 | static WRITE32_HANDLER( area51_main_speedup_w ) |
| 622 | 622 | { |
| 623 | UINT | |
| 623 | UINT64 curcycles = activecpu_gettotalcycles(); | |
| 624 | 624 | |
| 625 | 625 | /* store the data */ |
| 626 | 626 | COMBINE_DATA(main_speedup); |
| r1649 | r1650 | |
| 654 | 654 | |
| 655 | 655 | static WRITE32_HANDLER( area51mx_main_speedup_w ) |
| 656 | 656 | { |
| 657 | UINT | |
| 657 | UINT64 curcycles = activecpu_gettotalcycles(); | |
| 658 | 658 | |
| 659 | 659 | /* store the data */ |
| 660 | 660 | COMBINE_DATA(&main_speedup[offset]); |
| r1649 | r1650 | |
|---|---|---|
| 20 | 20 | |
| 21 | 21 | |
| 22 | 22 | #include "driver.h" |
| 23 | #include "deprecat.h" | |
| 23 | 24 | #include "rendlay.h" |
| 24 | 25 | #include "machine/atarigen.h" |
| 25 | 26 | #include "audio/atarijsa.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | /*==================================================================== | |
| 2 | Lock-On (Tatsumi 1986) | |
| 3 | ====================== | |
| 1 | /*************************************************************************** | |
| 4 | 2 | |
| 5 | Preliminary Driver by Philip J Bennett | |
| 6 | ====================================== | |
| 3 | Tatsumi Lock-On hardware | |
| 7 | 4 | |
| 8 | To do | |
| 9 | ====== | |
| 5 | driver by Phil Bennett | |
| 10 | 6 | |
| 11 | Almost everything video related :) | |
| 7 | Known bugs: | |
| 8 | * None | |
| 12 | 9 | |
| 13 | o Scene tilemap scrolling | |
| 14 | o Colours | |
| 15 | o Objects | |
| 16 | o HUD layer | |
| 17 | o Ground layer | |
| 18 | o Layer mixing | |
| 10 | ***************************************************************************/ | |
| 19 | 11 | |
| 20 | =====================================================================*/ | |
| 21 | ||
| 22 | 12 | #include "driver.h" |
| 13 | #include "deprecat.h" | |
| 23 | 14 | #include "sound/2203intf.h" |
| 15 | #include "sound/flt_vol.h" | |
| 16 | #include "lockon.h" | |
| 24 | 17 | |
| 25 | static UINT16 *lockon_vram0; | |
| 26 | static UINT16 *lockon_vram1; | |
| 27 | static UINT16 *lockon_vram2; | |
| 28 | static UINT16 *object_ram; | |
| 29 | static UINT16 *ground_ram; | |
| 30 | static UINT8 *z80_ram; | |
| 31 | static UINT16 *v30_gnd; | |
| 32 | static UINT16 *v30_obj; | |
| 33 | static UINT16 *clut_ram; | |
| 18 | #define V30_GND_ADDR ((lockon_ctrl_reg & 0x3) << 16) | |
| 19 | #define V30_OBJ_ADDR ((lockon_ctrl_reg & 0x18) << 13) | |
| 34 | 20 | |
| 35 | static int v30_obj_addr=0; | |
| 36 | static int v30_gnd_addr=0; | |
| 37 | static int main_inten=0; | |
| 38 | 21 | |
| 39 | static size_t objectram_size; | |
| 40 | static size_t lockon_ground_size; | |
| 22 | /************************************* | |
| 23 | * | |
| 24 | * Forward definitions | |
| 25 | * | |
| 26 | *************************************/ | |
| 41 | 27 | |
| 42 | static tilemap *lockon_tilemap0; | |
| 43 | static tilemap *lockon_tilemap1; | |
| 44 | static tilemap *lockon_tilemap2; | |
| 28 | static WRITE8_HANDLER( sound_vol ); | |
| 29 | static READ8_HANDLER( adc_r ); | |
| 45 | 30 | |
| 46 | 31 | |
| 47 | /* | |
| 48 | Three sources are mixed at the RGB output PROMs: | |
| 32 | /************************************* | |
| 33 | * | |
| 34 | * Globals | |
| 35 | * | |
| 36 | *************************************/ | |
| 49 | 37 | |
| 50 | * Characters | |
| 51 | * HUD | |
| 52 | * Objects/scene/ground | |
| 38 | UINT32 lockon_main_inten; | |
| 39 | UINT8 lockon_ctrl_reg; | |
| 53 | 40 | |
| 54 | A = !( ((VCDDB6 || VCDDB1) && !VCDDB7) || HUDPT0 ) | |
| 55 | B = !( (!HUDPT0 || !VCDDB7) && (VCDDB6 || VCDDB1) ) | |
| 56 | 41 | |
| 57 | A B Layer Colours | |
| 58 | 0 0 Characters 0-255 | |
| 59 | 0 1 Characters 256-511 | |
| 60 | 1 0 HUD 512-767 | |
| 61 | 1 1 Objects/scene/ground 768-1023 | |
| 62 | */ | |
| 42 | /************************************* | |
| 43 | * | |
| 44 | * Machine functions | |
| 45 | * | |
| 46 | *************************************/ | |
| 63 | 47 | |
| 64 | /* Very preliminary! */ | |
| 65 | static void draw_sprites(running_machine *machine, mame_bitmap *bitmap,const rectangle *cliprect) | |
| 66 | { | |
| 67 | int offs=0; | |
| 68 | int index_x=0, index_y=0; | |
| 69 | 48 | |
| 70 | UINT16 *ROM_LUTA = (UINT16 *)memory_region(REGION_USER1); | |
| 71 | UINT8 *ROM_LUTB = (UINT8 *)memory_region(REGION_USER2); | |
| 72 | UINT8 *ROM_LUTC = (UINT8 *)memory_region(REGION_USER2)+0x8000; // Selected by bit 7... | |
| 49 | /************************************* | |
| 73 | 50 | |
| 74 | for (offs = 0x0; offs <= (objectram_size/2); offs += 4) | |
| 75 | { | |
| 76 | int offs0 = (object_ram[offs+3] & 0x3f) << 8; // Lower 6-bits go into upper ROM portion | |
| 77 | int bit7 = (object_ram[offs+3] >> 7) & 0x1; // Selects which ROM to use in calculating lookup | |
| 78 | int lut; | |
| 51 | Main control register | |
| 79 | 52 | |
| 80 | if(!object_ram[offs+2]) | |
| 81 | continue; | |
| 82 | if((object_ram[offs+3] >> 8) == 0xfc || (object_ram[offs+3] >> 8) == 0xff) // ? | |
| 83 | break; | |
| 53 | 76543210 | |
| 54 | |......xx| Ground CPU A17-A16 | |
| 55 | |.....x..| /Ground CPU bus req. | |
| 56 | |...xx...| Object CPU A17-A16 | |
| 57 | |..x.....| /Object CPU bus req. | |
| 58 | |.x......| /Z80 bus req. | |
| 59 | |x.......| Display enable | |
| 84 | 60 | |
| 85 | if(!bit7) | |
| 86 | lut = (ROM_LUTC[offs0 | (index_y<<4) | index_x]) & 0x7f; | |
| 87 | else | |
| 88 | lut = (ROM_LUTB[offs0 | (index_y<<4) | index_x]) & 0x7f; | |
| 61 | *************************************/ | |
| 89 | 62 | |
| 90 | // Bits 12,13,14 = bank | |
| 91 | // Bits 0-11 obj | |
| 92 | for(index_y=0; index_y<8; index_y++) | |
| 93 | { | |
| 94 | int index_x; | |
| 95 | for(index_x=0; index_x<8; index_x++) | |
| 96 | { | |
| 97 | ||
| 98 | /* Index into the object lookup table */ | |
| 99 | int ref = object_ram[offs+2] + lut; | |
| 100 | ||
| 101 | int pix = ROM_LUTA[ref+index_x+(16*index_y)]; // ??? | |
| 102 | ||
| 103 | int flip_x = 0;//(object_ram[offs+1] >> 7) & 0x1; // Bit 15 | |
| 104 | int flip_y = 0;//(object_ram[offs+1] >> 6) & 0x1; // Bit 14 | |
| 105 | ||
| 106 | int scale_x = 0xffff; //+ object_ram[offs+1] & 0xff; //0x1ffff; | |
| 107 | int scale_y = 0xffff; //+ object_ram[offs+1] >> 8; //0x1ffff; | |
| 108 | ||
| 109 | int sy = 255-(object_ram[offs] & 0xff)+(index_y*8)*(scale_y/0xffff); | |
| 110 | int sx = (object_ram[offs] >> 8)+(index_x*8)*(scale_x/0xffff); | |
| 111 | ||
| 112 | int bank = ((pix >> 12) & 0x7); | |
| 113 | int index = pix & 0xfff; | |
| 114 | ||
| 115 | int color = 1; | |
| 116 | ||
| 117 | const gfx_element *gfx = machine->gfx[bank]; | |
| 118 | ||
| 119 | drawgfxzoom(bitmap, gfx, | |
| 120 | index, | |
| 121 | color, | |
| 122 | flip_x,flip_y, // FlipX, flipY | |
| 123 | sx,sy, | |
| 124 | cliprect,TRANSPARENCY_PEN,1, | |
| 125 | scale_x,scale_y); | |
| 126 | } | |
| 127 | } | |
| 128 | } | |
| 129 | } | |
| 130 | ||
| 131 | /* Characters */ | |
| 132 | static WRITE16_HANDLER( lockon_vram_0_w ) | |
| 63 | static WRITE16_HANDLER( adrst_w ) | |
| 133 | 64 | { |
| 134 | COMBINE_DATA(&lockon_vram0[offset]); | |
| 135 | tilemap_mark_tile_dirty(lockon_tilemap0,offset); | |
| 136 | } | |
| 65 | lockon_ctrl_reg = data & 0xff; | |
| 137 | 66 | |
| 138 | /* Scene */ | |
| 139 | static WRITE16_HANDLER( lockon_vram_1_w ) | |
| 140 | { | |
| 141 | COMBINE_DATA(&lockon_vram1[offset]); | |
| 142 | tilemap_mark_tile_dirty(lockon_tilemap1,offset); | |
| 67 | /* Bus mastering for shared access */ | |
| 68 | cpunum_set_input_line(Machine, GROUND_CPU, INPUT_LINE_HALT, data & 0x04 ? ASSERT_LINE : CLEAR_LINE); | |
| 69 | cpunum_set_input_line(Machine, OBJECT_CPU, INPUT_LINE_HALT, data & 0x20 ? ASSERT_LINE : CLEAR_LINE); | |
| 70 | cpunum_set_input_line(Machine, SOUND_CPU, INPUT_LINE_HALT, data & 0x40 ? CLEAR_LINE : ASSERT_LINE); | |
| 143 | 71 | } |
| 144 | 72 | |
| 145 | /* HUD */ | |
| 146 | static WRITE16_HANDLER( lockon_vram_2_w ) | |
| 73 | static READ16_HANDLER( main_gnd_r ) | |
| 147 | 74 | { |
| 148 | COMBINE_DATA(&lockon_vram2[offset]); | |
| 149 | tilemap_mark_tile_dirty(lockon_tilemap2,offset); | |
| 150 | } | |
| 75 | UINT16 result; | |
| 151 | 76 | |
| 152 | /* 8*8 characters */ | |
| 153 | static TILE_GET_INFO( get_lockon_tile_info0 ) | |
| 154 | { | |
| 155 | int tileno, color; | |
| 156 | tileno = lockon_vram0[tile_index]; | |
| 157 | color = 0; | |
| 77 | cpuintrf_push_context(GROUND_CPU); | |
| 78 | result = program_read_word(V30_GND_ADDR | offset * 2); | |
| 79 | cpuintrf_pop_context(); | |
| 158 | 80 | |
| 159 | | |
| 81 | r | |
| 160 | 82 | } |
| 161 | 83 | |
| 162 | /* Scene tiles */ | |
| 163 | static TILE_GET_INFO( get_lockon_tile_info1 ) | |
| 84 | static WRITE16_HANDLER( main_gnd_w ) | |
| 164 | 85 | { |
| 165 | int tileno, color; | |
| 166 | tileno = lockon_vram1[tile_index]; | |
| 167 | color = 0; | |
| 86 | cpuintrf_push_context(GROUND_CPU); | |
| 168 | 87 | |
| 169 | SET_TILE_INFO(5,tileno,color,0); | |
| 170 | } | |
| 171 | ||
| 172 | /* HUD tiles */ | |
| 173 | static TILE_GET_INFO( get_lockon_tile_info2 ) | |
| 174 | { | |
| 175 | int tileno, color; | |
| 176 | tileno = lockon_vram2[tile_index]; | |
| 177 | color = 0; | |
| 178 | ||
| 179 | SET_TILE_INFO(6,tileno,color,0); | |
| 180 | } | |
| 181 | ||
| 182 | ||
| 183 | static VIDEO_START( lockon ) | |
| 184 | { | |
| 185 | lockon_tilemap0 = tilemap_create(get_lockon_tile_info0,tilemap_scan_rows,TILEMAP_TYPE_PEN, 8,8,64,32); | |
| 186 | lockon_tilemap1 = tilemap_create(get_lockon_tile_info1,tilemap_scan_rows,TILEMAP_TYPE_PEN, 8,8,64,32); | |
| 187 | lockon_tilemap2 = tilemap_create(get_lockon_tile_info2,tilemap_scan_rows,TILEMAP_TYPE_PEN, 8,8,16,16); // HUD -> wrong | |
| 188 | tilemap_set_transparent_pen(lockon_tilemap0,0x00); | |
| 189 | } | |
| 190 | ||
| 191 | static VIDEO_UPDATE( lockon ) | |
| 192 | { | |
| 193 | tilemap_draw(bitmap,cliprect,lockon_tilemap1,0,0); // Scene | |
| 194 | tilemap_draw(bitmap,cliprect,lockon_tilemap0,0,0); // Characters | |
| 195 | //tilemap_draw(bitmap,cliprect,lockon_tilemap2,0,0); // HUD | |
| 196 | draw_sprites(machine,bitmap,cliprect); | |
| 197 | return 0; | |
| 198 | } | |
| 199 | ||
| 200 | /* Wrong last time I checked */ | |
| 201 | static INPUT_PORTS_START( lockon ) | |
| 202 | PORT_START_TAG("DSW") | |
| 203 | PORT_DIPNAME( 0x0003, 0x0000, DEF_STR( Lives ) ) | |
| 204 | PORT_DIPSETTING( 0x0000, "5" ) | |
| 205 | PORT_DIPSETTING( 0x0001, "4" ) | |
| 206 | PORT_DIPSETTING( 0x0002, "2" ) | |
| 207 | PORT_DIPSETTING( 0x0003, "3" ) | |
| 208 | ||
| 209 | PORT_DIPNAME( 0x0006, 0x0008, DEF_STR( Difficulty ) ) | |
| 210 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) | |
| 211 | PORT_DIPSETTING( 0x0006, DEF_STR( Normal ) ) | |
| 212 | PORT_DIPSETTING( 0x0004, DEF_STR( Hard ) ) | |
| 213 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 214 | ||
| 215 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Bonus_Life ) ) | |
| 216 | PORT_DIPSETTING( 0x0010, "150K & every 200K" ) | |
| 217 | PORT_DIPSETTING( 0x0000, "200K & every 200K" ) | |
| 218 | ||
| 219 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Allow_Continue ) ) | |
| 220 | PORT_DIPSETTING( 0x0020, DEF_STR( No ) ) | |
| 221 | PORT_DIPSETTING( 0x0000, DEF_STR( Yes ) ) | |
| 222 | ||
| 223 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Demo_Sounds ) ) | |
| 224 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 225 | PORT_DIPSETTING( 0x0040, DEF_STR( On ) ) | |
| 226 | ||
| 227 | PORT_DIPNAME( 0x0300, 0x0000, "Coins" ) | |
| 228 | PORT_DIPSETTING( 0x0000, "Free" ) | |
| 229 | PORT_DIPSETTING( 0x0100, "4" ) | |
| 230 | PORT_DIPSETTING( 0x0200, "2" ) | |
| 231 | PORT_DIPSETTING( 0x0300, "3" ) | |
| 232 | ||
| 233 | PORT_START | |
| 234 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 235 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 236 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) // Service coin | |
| 237 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) PORT_TOGGLE | |
| 238 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) // 'Trigger A' | |
| 239 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) // 'Trigger B' | |
| 240 | PORT_DIPNAME( 0x40, 0x00, "Jumper 1" ) | |
| 241 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 242 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 243 | PORT_DIPNAME( 0x80, 0x00, "Jumper 0" ) | |
| 244 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 245 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 246 | ||
| 247 | PORT_START_TAG("analog_bank") | |
| 248 | PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_X ) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_PLAYER(1) | |
| 249 | ||
| 250 | PORT_START_TAG("analog_pitch") | |
| 251 | PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_Y ) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_PLAYER(1) | |
| 252 | ||
| 253 | PORT_START_TAG("analog_missile") | |
| 254 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_BUTTON3 ) // Digital input read by ADC | |
| 255 | ||
| 256 | PORT_START_TAG("analog_hover") | |
| 257 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_BUTTON4 ) // Digital input read by ADC | |
| 258 | INPUT_PORTS_END | |
| 259 | ||
| 260 | ||
| 261 | static READ8_HANDLER(adc_r) | |
| 262 | { | |
| 263 | switch(offset) | |
| 264 | { | |
| 265 | case 0: return readinputportbytag("analog_bank"); | |
| 266 | case 1: return readinputportbytag("analog_pitch"); | |
| 267 | case 2: return readinputportbytag("analog_missile"); | |
| 268 | case 3: return readinputportbytag("analog_hover"); | |
| 269 | default: return 0; | |
| 270 | } | |
| 271 | } | |
| 272 | ||
| 273 | static READ16_HANDLER(unk_read) | |
| 274 | { | |
| 275 | return 1; // Main CPU jumps to 18002 otherwise | |
| 276 | } | |
| 277 | ||
| 278 | ||
| 279 | static INTERRUPT_GEN( lockon_irq ) | |
| 280 | { | |
| 281 | if(main_inten) | |
| 282 | cpunum_set_input_line_and_vector(machine, 0, 0, HOLD_LINE, 0x60/4); | |
| 283 | ||
| 284 | // Ground CPU takes an interrupt on BUFEND - this is incorrect. | |
| 285 | cpunum_set_input_line_and_vector(machine, 1, 0, HOLD_LINE, 0x60/4); | |
| 286 | } | |
| 287 | ||
| 288 | /* | |
| 289 | Main CPU control register | |
| 290 | ------------------------- | |
| 291 | ||
| 292 | Bit 0 = MGAB16 Ground CPU A16 | |
| 293 | Bit 1 = MGAB17 Ground CPU A17 | |
| 294 | Bit 2 = MGABREQ Object CPU Bus Request | |
| 295 | Bit 3 = MOAB16 Object CPU A16 | |
| 296 | ||
| 297 | Bit 4 = MOAB17 Object CPU A17 | |
| 298 | Bit 5 = OMLBRQ Object CPU Bus Request | |
| 299 | Bit 6 = /ZBRQ Z80 Bus Request | |
| 300 | Bit 7 = /ZCCLR Clear screen | |
| 301 | */ | |
| 302 | ||
| 303 | static WRITE16_HANDLER(adrst_w) | |
| 304 | { | |
| 305 | 88 | if (ACCESSING_LSB) |
| 306 | { | |
| 307 | v30_gnd_addr = (data & 0x3); | |
| 308 | v30_obj_addr = (data & 0x18) >> 3; | |
| 89 | program_write_byte(V30_GND_ADDR | (offset * 2 + 0), data); | |
| 90 | if (ACCESSING_MSB) | |
| 91 | program_write_byte(V30_GND_ADDR | (offset * 2 + 1), data >> 8); | |
| 309 | 92 | |
| 310 | if (data & 0x04) | |
| 311 | cpunum_set_input_line(Machine, 1, INPUT_LINE_HALT, ASSERT_LINE); | |
| 312 | else | |
| 313 | cpunum_set_input_line(Machine, 1, INPUT_LINE_HALT, CLEAR_LINE); | |
| 314 | ||
| 315 | if (data & 0x20) | |
| 316 | cpunum_set_input_line(Machine, 2, INPUT_LINE_HALT, ASSERT_LINE); | |
| 317 | else | |
| 318 | cpunum_set_input_line(Machine, 2, INPUT_LINE_HALT, CLEAR_LINE); | |
| 319 | ||
| 320 | /* Suspend the Z80 when writing to shared RAM */ | |
| 321 | if (data & 0x40) | |
| 322 | cpunum_set_input_line(Machine, 3, INPUT_LINE_HALT, CLEAR_LINE); | |
| 323 | else | |
| 324 | cpunum_set_input_line(Machine, 3, INPUT_LINE_HALT, ASSERT_LINE); | |
| 325 | } | |
| 93 | cpuintrf_pop_context(); | |
| 326 | 94 | } |
| 327 | 95 | |
| 328 | static READ16_HANDLER( | |
| 96 | static READ16_HANDLER( m | |
| 329 | 97 | { |
| 330 | return z80_ram[offset] | 0xff00; | |
| 331 | } | |
| 332 | ||
| 333 | static WRITE16_HANDLER(z80_shared_w) | |
| 334 | { | |
| 335 | if (ACCESSING_LSB) | |
| 336 | z80_ram[offset] = data; | |
| 337 | } | |
| 338 | ||
| 339 | static READ16_HANDLER(main_gnd_r) | |
| 340 | { | |
| 341 | 98 | UINT16 result; |
| 342 | cpuintrf_push_context(1); | |
| 343 | result = program_read_word((offset * 2) | (v30_gnd_addr << 16)); | |
| 344 | cpuintrf_pop_context(); | |
| 345 | return result; | |
| 346 | } | |
| 347 | 99 | |
| 348 | static WRITE16_HANDLER(main_gnd_w) | |
| 349 | { | |
| 350 | cpuintrf_push_context(1); | |
| 351 | if (ACCESSING_LSB) | |
| 352 | program_write_byte((offset * 2 + 0) | (v30_gnd_addr << 16), data); | |
| 353 | if (ACCESSING_MSB) | |
| 354 | program_write_byte((offset * 2 + 1) | (v30_gnd_addr << 16), data >> 8); | |
| 100 | cpuintrf_push_context(OBJECT_CPU); | |
| 101 | result = program_read_word(V30_OBJ_ADDR | offset * 2); | |
| 355 | 102 | cpuintrf_pop_context(); |
| 356 | } | |
| 357 | 103 | |
| 358 | static READ16_HANDLER(main_obj_r) | |
| 359 | { | |
| 360 | UINT16 result; | |
| 361 | cpuintrf_push_context(2); | |
| 362 | result = program_read_word((offset * 2) | (v30_obj_addr << 16)); | |
| 363 | cpuintrf_pop_context(); | |
| 364 | 104 | return result; |
| 365 | 105 | } |
| 366 | 106 | |
| 367 | static WRITE16_HANDLER(main_obj_w) | |
| 107 | static WRITE16_HANDLER( main_obj_w ) | |
| 368 | 108 | { |
| 369 | cpuintrf_push_context(2); | |
| 109 | cpuintrf_push_context(OBJECT_CPU); | |
| 110 | ||
| 370 | 111 | if (ACCESSING_LSB) |
| 371 | program_write_byte((offset * 2 + 0 | |
| 112 | program_write_byte(V30_OBJ_ADDR | (offset * 2 + 0 | |
| 372 | 113 | if (ACCESSING_MSB) |
| 373 | program_write_byte((offset * 2 + 1) | (v30_obj_addr << 16), data >> 8); | |
| 114 | program_write_byte(V30_OBJ_ADDR | (offset * 2 + 1), data >> 8); | |
| 115 | ||
| 374 | 116 | cpuintrf_pop_context(); |
| 375 | 117 | } |
| 376 | 118 | |
| 377 | ||
| 378 | static WRITE16_HANDLER(testcs_w) | |
| 119 | static WRITE16_HANDLER( tst_w ) | |
| 379 | 120 | { |
| 380 | if (offset < 0x | |
| 121 | if (offset < 0x800) | |
| 381 | 122 | { |
| 382 | cpuintrf_push_context( | |
| 123 | cpuintrf_push_context(GROUND_CPU); | |
| 383 | 124 | if (ACCESSING_LSB) |
| 384 | program_write_byte((offset*2+ | |
| 125 | program_write_byte(V30_GND_ADDR | (offset * 2 + | |
| 385 | 126 | if (ACCESSING_MSB) |
| 386 | program_write_byte((offset*2+ | |
| 127 | program_write_byte(V30_GND_ADDR | (offset * 2 + | |
| 387 | 128 | cpuintrf_pop_context(); |
| 388 | 129 | |
| 389 | cpuintrf_push_context( | |
| 130 | cpuintrf_push_context(OBJECT_CPU); | |
| 390 | 131 | if (ACCESSING_LSB) |
| 391 | program_write_byte((offset*2+ | |
| 132 | program_write_byte(V30_OBJ_ADDR | (offset * 2 + | |
| 392 | 133 | if (ACCESSING_MSB) |
| 393 | program_write_byte((offset*2+ | |
| 134 | program_write_byte(V30_OBJ_ADDR | (offset * 2 + | |
| 394 | 135 | cpuintrf_pop_context(); |
| 395 | 136 | } |
| 396 | 137 | } |
| 397 | 138 | |
| 398 | /* | |
| 399 | The ground register is as follows: | |
| 139 | static READ16_HANDLER( main_z80_r ) | |
| 140 | { | |
| 141 | UINT16 val; | |
| 400 | 142 | |
| 401 | 0 27512x4 A14 | |
| 402 | 1 27512x4 A15 | |
| 403 | 2 Select 27512 A | |
| 404 | 3 Select 27512 B | |
| 405 | 4 LO3_04A A12 | |
| 406 | 5 LO3_04A A13 | |
| 407 | 6 LO3_04A A14 | |
| 408 | 7 CS - ROMs | |
| 409 | */ | |
| 410 | static WRITE16_HANDLER(ground_bank_w) | |
| 411 | { | |
| 412 | // Nothing here yet | |
| 143 | cpuintrf_push_context(SOUND_CPU); | |
| 144 | val = program_read_byte(offset); | |
| 145 | cpuintrf_pop_context(); | |
| 146 | ||
| 147 | return 0xff00 | val; | |
| 413 | 148 | } |
| 414 | 149 | |
| 415 | ||
| 416 | #ifdef UNUSED_FUNCTION | |
| 417 | /* Allow /CUDISP to interrupt main CPU */ | |
| 418 | static WRITE8_HANDLER(sound_atten) | |
| 150 | static WRITE16_HANDLER( main_z80_w ) | |
| 419 | 151 | { |
| 420 | mame_printf_debug("%x\n",data); | |
| 152 | cpuintrf_push_context(SOUND_CPU); | |
| 153 | program_write_byte(offset, data); | |
| 154 | cpuintrf_pop_context(); | |
| 421 | 155 | } |
| 422 | #endif | |
| 423 | 156 | |
| 424 | /* Allow /CUDISP to interrupt main CPU */ | |
| 425 | static WRITE16_HANDLER(inten_w) | |
| 157 | static WRITE16_HANDLER( inten_w ) | |
| 426 | 158 | { |
| 427 | main_inten = | |
| 159 | lockon_main_inten = 1 | |
| 428 | 160 | } |
| 429 | 161 | |
| 430 | /* Reset watchdog and mask /CUDISP interrupt */ | |
| 431 | static WRITE16_HANDLER(emres_w) | |
| 162 | static WRITE16_HANDLER( emres_w ) | |
| 432 | 163 | { |
| 433 | // Implement watchdog reset here. | |
| 434 | main_inten = FALSE; | |
| 164 | watchdog_reset_r(0); | |
| 165 | lockon_main_inten = 0; | |
| 435 | 166 | } |
| 436 | 167 | |
| 437 | 168 | |
| 169 | /************************************* | |
| 170 | * | |
| 171 | * CPU memory maps | |
| 172 | * | |
| 173 | *************************************/ | |
| 174 | ||
| 438 | 175 | static ADDRESS_MAP_START( main_v30, ADDRESS_SPACE_PROGRAM, 16 ) |
| 439 | AM_RANGE(0x00000, 0x03fff) AM_RAM // IC69/IC70 | |
| 440 | AM_RANGE(0x04000, 0x04003) AM_NOP // CRT Controller | |
| 441 | AM_RANGE(0x06000, 0x06001) AM_READ_PORT("DSW") | |
| 442 | AM_RANGE(0x08000, 0x081ff) AM_READWRITE(MRA16_RAM,lockon_vram_2_w) AM_BASE(&lockon_vram2) // HUD RAM (IC30/IC31) | |
| 443 | AM_RANGE(0x09000, 0x09fff) AM_READWRITE(MRA16_RAM,lockon_vram_0_w) AM_BASE(&lockon_vram0) // Character RAM | |
| 444 | AM_RANGE(0x0a000, 0x0a001) AM_WRITE(adrst_w) // /ADRST: CPU access register | |
| 445 | AM_RANGE(0x0b000, 0x0bfff) AM_RAM // /BKBCS - ground control registers | |
| 446 | AM_RANGE(0x0c000, 0x0cfff) AM_RAM AM_BASE(&clut_ram) // /CCRS - 8kB palette RAM - write only | |
| 447 | AM_RANGE(0x0e000, 0x0e001) AM_WRITE(inten_w) // /INTEN: /CUDISP interrupt enable | |
| 448 | AM_RANGE(0x0f000, 0x0f001) AM_WRITE(emres_w) // /EMRES: Watchdog reset and interrupt mask | |
| 449 | AM_RANGE(0x10000, 0x1ffff) AM_WRITE(testcs_w) // /TESTCS: Write to both object and ground CPU RAM | |
| 450 | AM_RANGE(0x18000, 0x18001) AM_READ(unk_read) // Not sure what this is | |
| 451 | AM_RANGE(0x20000, 0x2dfff) AM_ROM // Z80 ROM | |
| 452 | AM_RANGE(0x2f000, 0x2ffff) AM_READWRITE(z80_shared_r, z80_shared_w) // Z80 shared RAM | |
| 453 | AM_RANGE(0x30000, 0x3ffff) AM_READWRITE(main_gnd_r, main_gnd_w) // Ground CPU memory access | |
| 454 | AM_RANGE(0x40000, 0x4ffff) AM_READWRITE(main_obj_r, main_obj_w) // Object CPU memory access | |
| 455 | AM_RANGE(0x50000, 0x5ffff) AM_ROM // IC76/IC77 | |
| 456 | AM_RANGE(0x60000, 0x6ffff) AM_ROM // IC88/IC89 | |
| 457 | AM_RANGE(0xf0000, 0xfffff) AM_ROM // IC95/IC96 | |
| 176 | ADDRESS_MAP_FLAGS( AMEF_UNMAP(1) ) | |
| 177 | AM_RANGE(0x00000, 0x03fff) AM_RAM | |
| 178 | AM_RANGE(0x04000, 0x04003) AM_READWRITE(lockon_crtc_r, lockon_crtc_w) | |
| 179 | AM_RANGE(0x06000, 0x06001) AM_READ(input_port_0_word_r) | |
| 180 | AM_RANGE(0x08000, 0x081ff) AM_RAM AM_BASE(&lockon_hud_ram) AM_SIZE(&lockon_hudram_size) | |
| 181 | AM_RANGE(0x09000, 0x09fff) AM_READWRITE(MRA16_RAM, lockon_char_w) AM_BASE(&lockon_char_ram) | |
| 182 | AM_RANGE(0x0a000, 0x0a001) AM_WRITE(adrst_w) | |
| 183 | AM_RANGE(0x0b000, 0x0bfff) AM_WRITE(lockon_rotate_w) | |
| 184 | AM_RANGE(0x0c000, 0x0cfff) AM_WRITE(lockon_fb_clut_w) | |
| 185 | AM_RANGE(0x0e000, 0x0e001) AM_WRITE(inten_w) | |
| 186 | AM_RANGE(0x0f000, 0x0f001) AM_WRITE(emres_w) | |
| 187 | AM_RANGE(0x10000, 0x1ffff) AM_READWRITE(MRA16_NOP, tst_w) | |
| 188 | AM_RANGE(0x20000, 0x2ffff) AM_READWRITE(main_z80_r, main_z80_w) | |
| 189 | AM_RANGE(0x30000, 0x3ffff) AM_READWRITE(main_gnd_r, main_gnd_w) | |
| 190 | AM_RANGE(0x40000, 0x4ffff) AM_READWRITE(main_obj_r, main_obj_w) | |
| 191 | AM_RANGE(0x50000, 0x5ffff) AM_MIRROR(0x80000) AM_ROM | |
| 192 | AM_RANGE(0x60000, 0x6ffff) AM_MIRROR(0x80000) AM_ROM | |
| 193 | AM_RANGE(0x70000, 0x7ffff) AM_MIRROR(0x80000) AM_ROM | |
| 458 | 194 | ADDRESS_MAP_END |
| 459 | 195 | |
| 196 | ||
| 460 | 197 | static ADDRESS_MAP_START( ground_v30, ADDRESS_SPACE_PROGRAM, 16 ) |
| 461 | 198 | ADDRESS_MAP_FLAGS( AMEF_UNMAP(1) ) |
| 462 | AM_RANGE(0x00000, 0x03fff) AM_RAM AM_BASE(&v30_gnd) // IC31/IC34) | |
| 463 | AM_RANGE(0x04000, 0x04fff) AM_READWRITE(MRA16_RAM,lockon_vram_1_w) AM_BASE(&lockon_vram1) // Scene RAM (IC112/IC113) | |
| 464 | AM_RANGE(0x08000, 0x08fff) AM_RAM AM_BASE(&ground_ram) AM_SIZE(&lockon_ground_size) // Ground RAM (IC98/IC99) | |
| 465 | AM_RANGE(0x0c000, 0x0c001) AM_RAM // /SHNH CS: Horizontal Scroll | |
| 466 | AM_RANGE(0x0c002, 0x0c003) AM_RAM // /SHNV CS: Vertical Scroll | |
| 467 | AM_RANGE(0x0c004, 0x0c005) AM_RAM AM_WRITE(ground_bank_w) // /UNB CS: Ground ROM Bank select | |
| 468 | AM_RANGE(0x20000, 0x2ffff) AM_ROM // Ground ROM (IC30/IC33) | |
| 469 | AM_RANGE(0x30000, 0x3ffff) AM_ROM // Program ROM mirror (use macros?) | |
| 470 | AM_RANGE(0xe0000, 0xeffff) AM_ROM // Ground ROM mirror | |
| 471 | AM_RANGE(0xf0000, 0xfffff) AM_ROM | |
| 199 | AM_RANGE(0x00000, 0x03fff) AM_RAM | |
| 200 | AM_RANGE(0x04000, 0x04fff) AM_RAM AM_BASE(&lockon_scene_ram) | |
| 201 | AM_RANGE(0x08000, 0x08fff) AM_RAM AM_BASE(&lockon_ground_ram) AM_SIZE(&lockon_groundram_size) | |
| 202 | AM_RANGE(0x0C000, 0x0C001) AM_WRITE(lockon_scene_h_scr_w) | |
| 203 | AM_RANGE(0x0C002, 0x0C003) AM_WRITE(lockon_scene_v_scr_w) | |
| 204 | AM_RANGE(0x0C004, 0x0C005) AM_WRITE(lockon_ground_ctrl_w) | |
| 205 | AM_RANGE(0x20000, 0x2ffff) AM_MIRROR(0xc0000) AM_ROM | |
| 206 | AM_RANGE(0x30000, 0x3ffff) AM_MIRROR(0xc0000) AM_ROM | |
| 472 | 207 | ADDRESS_MAP_END |
| 473 | 208 | |
| 209 | ||
| 474 | 210 | static ADDRESS_MAP_START( object_v30, ADDRESS_SPACE_PROGRAM, 16 ) |
| 475 | AM_RANGE(0x00000, 0x03fff) AM_RAM AM_BASE(&v30_obj) // Work RAM (IC29, IC44) | |
| 476 | AM_RANGE(0x04000, 0x04001) AM_RAM // Read = assert CPU /POLL input (halt on WAIT instruction) | |
| 477 | AM_RANGE(0x08000, 0x081ff) AM_RAM // TZA112 sprite chip write? | |
| 478 | AM_RANGE(0x0c000, 0x0c1ff) AM_RAM AM_BASE(&object_ram) AM_SIZE(&objectram_size) // Object RAM (IC39/IC54) | |
| 479 | AM_RANGE(0x20000, 0x2ffff) AM_ROM // Program ROM mirror | |
| 480 | AM_RANGE(0xf0000, 0xfffff) AM_ROM // Program ROM | |
| 211 | ADDRESS_MAP_FLAGS( AMEF_UNMAP(1) ) | |
| 212 | AM_RANGE(0x00000, 0x03fff) AM_RAM | |
| 213 | AM_RANGE(0x04000, 0x04001) AM_READWRITE(lockon_obj_4000_r, lockon_obj_4000_w) | |
| 214 | AM_RANGE(0x08000, 0x08fff) AM_WRITE(lockon_tza112_w) | |
| 215 | AM_RANGE(0x0c000, 0x0c1ff) AM_RAM AM_BASE(&lockon_object_ram) AM_SIZE(&lockon_objectram_size) | |
| 216 | AM_RANGE(0x30000, 0x3ffff) AM_MIRROR(0xc0000) AM_ROM | |
| 481 | 217 | ADDRESS_MAP_END |
| 482 | 218 | |
| 219 | ||
| 483 | 220 | static ADDRESS_MAP_START( sound_prg, ADDRESS_SPACE_PROGRAM, 8 ) |
| 484 | AM_RANGE(0x0000, 0x1fff) AM_ROM | |
| 485 | AM_RANGE(0xf810, 0xf810) AM_WRITE(MWA8_NOP) // /TS | |
| 486 | AM_RANGE(0x7000, 0x7000) AM_WRITE(MWA8_NOP) // Attenuate YM3014 output (not used?) | |
| 487 | AM_RANGE(0x7400, 0x7403) AM_READWRITE(adc_r,MWA8_NOP) // M58990 ADC | |
| 488 | AM_RANGE(0x7800, 0x7fff) AM_RAM AM_BASE(&z80_ram) | |
| 221 | ADDRESS_MAP_FLAGS( AMEF_UNMAP(1) ) | |
| 222 | AM_RANGE(0x0000, 0x6fff) AM_ROM | |
| 223 | AM_RANGE(0x7000, 0x7000) AM_WRITE(sound_vol) | |
| 224 | AM_RANGE(0x7400, 0x7403) AM_READWRITE(adc_r, MWA8_NOP) | |
| 225 | AM_RANGE(0x7800, 0x7fff) AM_MIRROR(0x8000) AM_RAM | |
| 489 | 226 | ADDRESS_MAP_END |
| 490 | 227 | |
| 491 | 228 | static ADDRESS_MAP_START( sound_io, ADDRESS_SPACE_IO, 8 ) |
| 492 | 229 | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) ) |
| 493 | 230 | AM_RANGE(0x00, 0x00) AM_READWRITE(YM2203_status_port_0_r, YM2203_control_port_0_w) |
| 494 | 231 | AM_RANGE(0x01, 0x01) AM_READWRITE(YM2203_read_port_0_r, YM2203_write_port_0_w) |
| 232 | AM_RANGE(0x02, 0x02) AM_NOP | |
| 495 | 233 | ADDRESS_MAP_END |
| 496 | 234 | |
| 497 | 235 | |
| 236 | /************************************* | |
| 237 | * | |
| 238 | * Port definitions | |
| 239 | * | |
| 240 | *************************************/ | |
| 241 | ||
| 242 | static INPUT_PORTS_START( lockon ) | |
| 243 | PORT_START_TAG("DSW") | |
| 244 | /* DSW 1 - verified on PCB as a 8 position dipswitch block */ | |
| 245 | PORT_DIPNAME( 0x0003, 0x0000, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") | |
| 246 | PORT_DIPSETTING( 0x0001, "2" ) | |
| 247 | PORT_DIPSETTING( 0x0000, "3" ) | |
| 248 | PORT_DIPSETTING( 0x0002, "4" ) | |
| 249 | PORT_DIPSETTING( 0x0003, "5" ) | |
| 250 | PORT_DIPNAME( 0x000c, 0x0000, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:3,4") | |
| 251 | PORT_DIPSETTING( 0x0004, DEF_STR( Easy ) ) | |
| 252 | PORT_DIPSETTING( 0x0000, DEF_STR( Medium ) ) | |
| 253 | PORT_DIPSETTING( 0x0008, DEF_STR( Hard ) ) | |
| 254 | PORT_DIPSETTING( 0x000c, DEF_STR( Hardest ) ) | |
| 255 | ||
| 256 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:5") | |
| 257 | PORT_DIPSETTING( 0x0000, "150K & every 200K" ) | |
| 258 | PORT_DIPSETTING( 0x0010, "200K & every 200K" ) | |
| 259 | ||
| 260 | PORT_DIPNAME( 0x0020, 0x0000, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW1:6") | |
| 261 | PORT_DIPSETTING( 0x0020, DEF_STR( No ) ) | |
| 262 | PORT_DIPSETTING( 0x0000, DEF_STR( Yes ) ) | |
| 263 | ||
| 264 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:7") | |
| 265 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 266 | PORT_DIPSETTING( 0x0040, DEF_STR( On ) ) | |
| 267 | ||
| 268 | PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0080, "SW1:8" ) | |
| 269 | ||
| 270 | /* DSW 2 - verified on PCB as a 6 position dipswitch block */ | |
| 271 | PORT_DIPNAME( 0x0700, 0x0000, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW2:1,2,3") | |
| 272 | PORT_DIPSETTING( 0x0200, DEF_STR( 3C_1C ) ) | |
| 273 | PORT_DIPSETTING( 0x0100, DEF_STR( 2C_1C ) ) | |
| 274 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_1C ) ) | |
| 275 | PORT_DIPSETTING( 0x0600, DEF_STR( 2C_3C ) ) | |
| 276 | PORT_DIPSETTING( 0x0300, DEF_STR( 1C_2C ) ) | |
| 277 | PORT_DIPSETTING( 0x0400, DEF_STR( 1C_5C ) ) | |
| 278 | PORT_DIPSETTING( 0x0500, DEF_STR( 1C_6C ) ) | |
| 279 | PORT_DIPSETTING( 0x0700, DEF_STR( Free_Play ) ) | |
| 280 | ||
| 281 | PORT_DIPNAME( 0x3800, 0x0000, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2:4,5,6") | |
| 282 | PORT_DIPSETTING( 0x3000, DEF_STR( 4C_1C ) ) | |
| 283 | PORT_DIPSETTING( 0x0800, DEF_STR( 2C_1C ) ) | |
| 284 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_1C ) ) | |
| 285 | PORT_DIPSETTING( 0x1000, DEF_STR( 1C_2C ) ) | |
| 286 | PORT_DIPSETTING( 0x2000, DEF_STR( 1C_3C ) ) | |
| 287 | PORT_DIPSETTING( 0x2800, DEF_STR( 1C_4C ) ) | |
| 288 | PORT_DIPSETTING( 0x1800, DEF_STR( 1C_5C ) ) | |
| 289 | PORT_DIPSETTING( 0x3800, DEF_STR( 1C_6C ) ) | |
| 290 | ||
| 291 | /* | |
| 292 | Wire jumper beside the dipswitches on PCB TF011. | |
| 293 | To access the menu, press the service coin during | |
| 294 | test mode. | |
| 295 | */ | |
| 296 | PORT_DIPNAME( 0x4000, 0x4000, "Enable H/W Tests Menu" ) | |
| 297 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) | |
| 298 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 299 | ||
| 300 | PORT_START_TAG("YM2203") | |
| 301 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 302 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 303 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 ) | |
| 304 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) PORT_TOGGLE | |
| 305 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 306 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 307 | PORT_DIPNAME( 0x40, 0x00, "Jumper 1" ) | |
| 308 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 309 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 310 | PORT_DIPNAME( 0x80, 0x00, "Jumper 0" ) | |
| 311 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 312 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 313 | ||
| 314 | PORT_START_TAG("ADC_BANK") | |
| 315 | PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_X ) PORT_MINMAX(0,0xff) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) | |
| 316 | PORT_START_TAG("ADC_PITCH") | |
| 317 | PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_Y ) PORT_MINMAX(0,0xff) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) | |
| 318 | PORT_START_TAG("ADC_MISSILE") | |
| 319 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_BUTTON3 ) | |
| 320 | PORT_START_TAG("ADC_HOVER") | |
| 321 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_BUTTON4 ) | |
| 322 | INPUT_PORTS_END | |
| 323 | ||
| 324 | ||
| 325 | static INPUT_PORTS_START( lockone ) | |
| 326 | PORT_INCLUDE( lockon ) | |
| 327 | ||
| 328 | PORT_MODIFY("DSW") | |
| 329 | PORT_DIPNAME( 0x0700, 0x0000, DEF_STR( Coin_A ) ) | |
| 330 | PORT_DIPSETTING( 0x0300, DEF_STR( 4C_1C ) ) | |
| 331 | PORT_DIPSETTING( 0x0200, DEF_STR( 3C_1C ) ) | |
| 332 | PORT_DIPSETTING( 0x0100, DEF_STR( 2C_1C ) ) | |
| 333 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_1C ) ) | |
| 334 | PORT_DIPSETTING( 0x0600, DEF_STR( 2C_3C ) ) | |
| 335 | PORT_DIPSETTING( 0x0700, DEF_STR( 2C_4C ) ) | |
| 336 | PORT_DIPSETTING( 0x0400, DEF_STR( 1C_2C ) ) | |
| 337 | PORT_DIPSETTING( 0x0500, DEF_STR( 1C_3C ) ) | |
| 338 | ||
| 339 | PORT_DIPNAME( 0x0800, 0x0000, "Buy-In" ) | |
| 340 | PORT_DIPSETTING( 0x0800, DEF_STR( 2C_1C ) ) | |
| 341 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_1C ) ) | |
| 342 | ||
| 343 | PORT_DIPNAME( 0x1000, 0x0000, DEF_STR( Unused ) ) | |
| 344 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) | |
| 345 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 346 | PORT_DIPNAME( 0x2000, 0x0000, DEF_STR( Unused ) ) | |
| 347 | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) | |
| 348 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 349 | INPUT_PORTS_END | |
| 350 | ||
| 351 | ||
| 352 | /************************************* | |
| 353 | * | |
| 354 | * M58990P ADC | |
| 355 | * | |
| 356 | *************************************/ | |
| 357 | ||
| 358 | static READ8_HANDLER( adc_r ) | |
| 359 | { | |
| 360 | switch (offset) | |
| 361 | { | |
| 362 | case 0: return readinputportbytag("ADC_BANK"); | |
| 363 | case 1: return readinputportbytag("ADC_PITCH"); | |
| 364 | case 2: return readinputportbytag("ADC_MISSILE"); | |
| 365 | case 3: return readinputportbytag("ADC_HOVER"); | |
| 366 | default: return 0; | |
| 367 | } | |
| 368 | } | |
| 369 | ||
| 370 | /************************************* | |
| 371 | * | |
| 372 | * Graphics definitions | |
| 373 | * | |
| 374 | *************************************/ | |
| 375 | ||
| 498 | 376 | static const gfx_layout char_layout = |
| 499 | 377 | { |
| 500 | 378 | 8,8, |
| 501 | 379 | 1024, |
| 502 | 380 | 2, |
| 503 | 381 | { 0, 8*8*1024 }, |
| 504 | { 0,1,2,3,4,5,6,7 }, | |
| 382 | { 0, 1, 2, 3, 4, 5, 6, 7 }, | |
| 505 | 383 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, |
| 506 | 384 | 8*8 |
| 507 | 385 | }; |
| 508 | 386 | |
| 509 | static const gfx_layout object_layout = | |
| 510 | { | |
| 511 | 8,8, | |
| 512 | 4096, | |
| 513 | 8, | |
| 514 | { 0, 0x8000*8, 0x8000*2*8, 0x8000*3*8, 0x8000*4*8, 0x8000*5*8, 0x8000*6*8, 0x8000*7*8 }, | |
| 515 | { 0,1,2,3,4,5,6,7 }, | |
| 516 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, | |
| 517 | 8*8 | |
| 518 | }; | |
| 387 | static GFXDECODE_START( lockon ) | |
| 388 | GFXDECODE_ENTRY( REGION_GFX1, 0, char_layout, 0, 128 ) | |
| 389 | GFXDECODE_END | |
| 519 | 390 | |
| 520 | static const gfx_layout scene_layout = | |
| 521 | { | |
| 522 | 8,8, | |
| 523 | 4096, | |
| 524 | 3, | |
| 525 | { 0, 0x10000*8, 0x20000*8 }, | |
| 526 | { 0,1,2,3,4,5,6,7 }, | |
| 527 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, | |
| 528 | 8*8 | |
| 529 | }; | |
| 530 | 391 | |
| 531 | static const gfx_layout hud_layout = | |
| 532 | { | |
| 533 | 8,8, | |
| 534 | 1024, | |
| 535 | 1, | |
| 536 | { 0 }, | |
| 537 | { 0,1,2,3,4,5,6,7 }, | |
| 538 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, | |
| 539 | 8*8 | |
| 540 | }; | |
| 392 | /************************************* | |
| 393 | * | |
| 394 | * Sound related | |
| 395 | * | |
| 396 | *************************************/ | |
| 541 | 397 | |
| 542 | static | |
| 398 | static WRITE8 | |
| 543 | 399 | { |
| 544 | 8,8, | |
| 545 | 8192, | |
| 546 | 3, | |
| 547 | { 0, 0x10000*8, 0x20000*8 }, | |
| 548 | { 0,1,2,3,4,5,6,7 }, | |
| 549 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, | |
| 550 | 8*8 | |
| 551 | }; | |
| 400 | #define LO_SHUNT 250.0 | |
| 401 | #define LO_R0 5600.0 | |
| 402 | #define LO_R1 10000.0 | |
| 403 | #define LO_R2 22000.0 | |
| 404 | #define LO_R3 47000.0 | |
| 405 | #define LO_R0S (1/(1/LO_SHUNT + 1/LO_R0)) | |
| 406 | #define LO_R1S (1/(1/LO_SHUNT + 1/LO_R1)) | |
| 407 | #define LO_R2S (1/(1/LO_SHUNT + 1/LO_R2)) | |
| 408 | #define LO_R3S (1/(1/LO_SHUNT + 1/LO_R3)) | |
| 409 | #define LO_RI 100000.0 | |
| 410 | #define LO_RP 100000.0 | |
| 552 | 411 | |
| 412 | static const double gains[16] = | |
| 413 | { | |
| 414 | -( 1 / (1/LO_RP + 1/(LO_R3 + LO_R2 + LO_R1 + LO_R0)) ) / LO_RI, | |
| 415 | -( 1 / (1/LO_RP + 1/(LO_R3 + LO_R2 + LO_R1 + LO_R0S)) ) / LO_RI, | |
| 416 | -( 1 / (1/LO_RP + 1/(LO_R3 + LO_R2 + LO_R1S + LO_R0)) ) / LO_RI, | |
| 417 | -( 1 / (1/LO_RP + 1/(LO_R3 + LO_R2 + LO_R1S + LO_R0S)) ) / LO_RI, | |
| 418 | -( 1 / (1/LO_RP + 1/(LO_R3 + LO_R2S + LO_R1 + LO_R0)) ) / LO_RI, | |
| 419 | -( 1 / (1/LO_RP + 1/(LO_R3 + LO_R2S + LO_R1 + LO_R0S)) ) / LO_RI, | |
| 420 | -( 1 / (1/LO_RP + 1/(LO_R3 + LO_R2S + LO_R1S + LO_R0)) ) / LO_RI, | |
| 421 | -( 1 / (1/LO_RP + 1/(LO_R3 + LO_R2S + LO_R1S + LO_R0S)) ) / LO_RI, | |
| 422 | -( 1 / (1/LO_RP + 1/(LO_R3S + LO_R2 + LO_R1 + LO_R0)) ) / LO_RI, | |
| 423 | -( 1 / (1/LO_RP + 1/(LO_R3S + LO_R2 + LO_R1 + LO_R0S)) ) / LO_RI, | |
| 424 | -( 1 / (1/LO_RP + 1/(LO_R3S + LO_R2 + LO_R1S + LO_R0)) ) / LO_RI, | |
| 425 | -( 1 / (1/LO_RP + 1/(LO_R3S + LO_R2 + LO_R1S + LO_R0S)) ) / LO_RI, | |
| 426 | -( 1 / (1/LO_RP + 1/(LO_R3S + LO_R2S + LO_R1 + LO_R0)) ) / LO_RI, | |
| 427 | -( 1 / (1/LO_RP + 1/(LO_R3S + LO_R2S + LO_R1 + LO_R0S)) ) / LO_RI, | |
| 428 | -( 1 / (1/LO_RP + 1/(LO_R3S + LO_R2S + LO_R1S + LO_R0)) ) / LO_RI, | |
| 429 | -( 1 / (1/LO_RP + 1/(LO_R3S + LO_R2S + LO_R1S + LO_R0S)) ) / LO_RI, | |
| 430 | }; | |
| 553 | 431 | |
| 554 | static GFXDECODE_START( lockon ) | |
| 555 | GFXDECODE_ENTRY( REGION_GFX1, 0, object_layout, 0, 16 ) | |
| 556 | GFXDECODE_ENTRY( REGION_GFX2, 0, object_layout, 0, 16 ) | |
| 557 | GFXDECODE_ENTRY( REGION_GFX3, 0, object_layout, 0, 16 ) | |
| 558 | GFXDECODE_ENTRY( REGION_GFX4, 0, object_layout, 0, 16 ) | |
| 559 | GFXDECODE_ENTRY( REGION_GFX5, 0, char_layout, 0, 16 ) | |
| 560 | GFXDECODE_ENTRY( REGION_GFX6, 0, scene_layout, 0, 16 ) | |
| 561 | GFXDECODE_ENTRY( REGION_GFX7, 0, hud_layout, 0, 16 ) | |
| 562 | GFXDECODE_ENTRY( REGION_GFX8, 0, ground_layout, 0, 16 ) | |
| 563 | GFXDECODE_END | |
| 432 | double lgain = gains[data & 0xf]; | |
| 433 | double rgain = gains[data >> 4]; | |
| 564 | 434 | |
| 565 | static void YM2203_irq(int irq) | |
| 435 | flt_volume_set_volume(0, lgain); | |
| 436 | flt_volume_set_volume(2, lgain); | |
| 437 | flt_volume_set_volume(4, lgain); | |
| 438 | ||
| 439 | flt_volume_set_volume(1, rgain); | |
| 440 | flt_volume_set_volume(3, rgain); | |
| 441 | flt_volume_set_volume(5, rgain); | |
| 442 | } | |
| 443 | ||
| 444 | static void ym2203_irq(int irq) | |
| 566 | 445 | { |
| 567 | cpunum_set_input_line(Machine, | |
| 446 | cpunum_set_input_line(Machine, SOUND_CPU, 0, irq ? ASSERT_LINE : CLEAR_LINE ); | |
| 568 | 447 | } |
| 569 | 448 | |
| 570 | static WRITE8_HANDLER( | |
| 449 | static WRITE8_HANDLER( ym2203_out_b ) | |
| 571 | 450 | { |
| 572 | coin_counter_w(0,data & 0x80); | |
| 573 | coin_counter_w(1,data & 0x40); | |
| 574 | coin_counter_w(2,data & 0x20); | |
| 575 | set_led_status(1,!(data & 0x10)); // 'LOCK-ON' lamp | |
| 451 | coin_counter_w(0, data & 0x80); | |
| 452 | coin_counter_w(1, data & 0x40); | |
| 453 | coin_counter_w(2, data & 0x20); | |
| 454 | ||
| 455 | /* 'Lock-On' lamp */ | |
| 456 | set_led_status(1, !(data & 0x10)); | |
| 576 | 457 | } |
| 577 | 458 | |
| 578 | 459 | static const struct YM2203interface ym2203_interface = |
| 579 | 460 | { |
| 580 | input_port_ | |
| 461 | input_port_1_r, | |
| 581 | 462 | 0, |
| 582 | 463 | 0, |
| 583 | YM2203_out_b, | |
| 584 | YM2203_irq | |
| 464 | ym2203_out_b, | |
| 465 | ym2203_irq | |
| 585 | 466 | }; |
| 586 | 467 | |
| 468 | ||
| 469 | /************************************* | |
| 470 | * | |
| 471 | * Machine driver | |
| 472 | * | |
| 473 | *************************************/ | |
| 474 | ||
| 587 | 475 | static MACHINE_DRIVER_START( lockon ) |
| 588 | MDRV_CPU_ADD(V30,8000000) | |
| 589 | MDRV_CPU_PROGRAM_MAP(main_v30,0) | |
| 476 | MDRV_CPU_ADD(V30, XTAL_16MHz / 2) | |
| 477 | MDRV_CPU_PROGRAM_MAP(main_v30, 0) | |
| 590 | 478 | |
| 591 | MDRV_CPU_ADD(V30,8000000) | |
| 592 | MDRV_CPU_PROGRAM_MAP(ground_v30,0) | |
| 479 | MDRV_CPU_ADD(V30, XTAL_16MHz / 2) | |
| 480 | MDRV_CPU_PROGRAM_MAP(ground_v30, 0) | |
| 593 | 481 | |
| 594 | MDRV_CPU_ADD(V30,8000000) | |
| 595 | MDRV_CPU_PROGRAM_MAP(object_v30,0) | |
| 482 | MDRV_CPU_ADD(V30, XTAL_16MHz / 2) | |
| 483 | MDRV_CPU_PROGRAM_MAP(object_v30, 0) | |
| 596 | 484 | |
| 597 | MDRV_CPU_ADD(Z80,4000000) | |
| 598 | MDRV_CPU_PROGRAM_MAP(sound_prg,0) | |
| 599 | MDRV_CPU_IO_MAP(sound_io,0) | |
| 485 | MDRV_CPU_ADD(Z80, XTAL_16MHz / 4) | |
| 486 | MDRV_CPU_PROGRAM_MAP(sound_prg, 0) | |
| 487 | MDRV_CPU_IO_MAP(sound_io, 0) | |
| 600 | 488 | |
| 601 | MDRV_CPU_VBLANK_INT(lockon_irq,1) | |
| 602 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 603 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 604 | MDRV_INTERLEAVE(100) | |
| 489 | MDRV_WATCHDOG_TIME_INIT(attotime_mul(PERIOD_OF_555_ASTABLE(10000, 4700, 10000e-12), 4096)) | |
| 490 | MDRV_INTERLEAVE(10) | |
| 605 | 491 | |
| 606 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 492 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK) | |
| 607 | 493 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 608 | MDRV_SCREEN_SIZE(320, 240) | |
| 609 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) | |
| 494 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) | |
| 495 | ||
| 610 | 496 | MDRV_GFXDECODE(lockon) |
| 497 | MDRV_PALETTE_INIT(lockon) | |
| 498 | MDRV_PALETTE_LENGTH(1024 + 2048) | |
| 611 | 499 | |
| 612 | MDRV_PALETTE_LENGTH(1024) | |
| 613 | ||
| 614 | 500 | MDRV_VIDEO_START(lockon) |
| 615 | 501 | MDRV_VIDEO_UPDATE(lockon) |
| 502 | MDRV_VIDEO_EOF(lockon) | |
| 616 | 503 | |
| 617 | MDRV_SPEAKER_STANDARD_STEREO("left","right") | |
| 504 | MDRV_SPEAKER_STANDARD_STEREO("left", "right") | |
| 618 | 505 | |
| 619 | MDRV_SOUND_ADD(YM2203, 4 | |
| 506 | MDRV_SOUND_ADD(YM2203, XTAL_16MHz / 4 | |
| 620 | 507 | MDRV_SOUND_CONFIG(ym2203_interface) |
| 621 | MDRV_SOUND_ROUTE(0, "left", 0.2) | |
| 622 | MDRV_SOUND_ROUTE(1, "left", 0.4) | |
| 623 | MDRV_SOUND_ROUTE(2, "left", 0.4) | |
| 624 | MDRV_SOUND_ROUTE(3, "left", 0.4) | |
| 625 | MDRV_SOUND_ROUTE(0, "right", 0.2) | |
| 626 | MDRV_SOUND_ROUTE(1, "right", 0.4) | |
| 627 | MDRV_SOUND_ROUTE(2, "right", 0.4) | |
| 628 | MDRV_SOUND_ROUTE(3, "right", 0.4) | |
| 508 | MDRV_SOUND_ROUTE(0, "left", 0.40) | |
| 509 | MDRV_SOUND_ROUTE(0, "right", 0.40) | |
| 510 | MDRV_SOUND_ROUTE(1, "f2203.1l", 1.0) | |
| 511 | MDRV_SOUND_ROUTE(1, "f2203.1r", 1.0) | |
| 512 | MDRV_SOUND_ROUTE(2, "f2203.2l", 1.0) | |
| 513 | MDRV_SOUND_ROUTE(2, "f2203.2r", 1.0) | |
| 514 | MDRV_SOUND_ROUTE(3, "f2203.3l", 1.0) | |
| 515 | MDRV_SOUND_ROUTE(3, "f2203.3r", 1.0) | |
| 516 | ||
| 517 | MDRV_SOUND_ADD_TAG("f2203.1l", FILTER_VOLUME, 0) | |
| 518 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 1.0) | |
| 519 | MDRV_SOUND_ADD_TAG("f2203.1r", FILTER_VOLUME, 0) | |
| 520 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 1.0) | |
| 521 | MDRV_SOUND_ADD_TAG("f2203.2l", FILTER_VOLUME, 0) | |
| 522 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 1.0) | |
| 523 | MDRV_SOUND_ADD_TAG("f2203.2r", FILTER_VOLUME, 0) | |
| 524 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 1.0) | |
| 525 | MDRV_SOUND_ADD_TAG("f2203.3l", FILTER_VOLUME, 0) | |
| 526 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 1.0) | |
| 527 | MDRV_SOUND_ADD_TAG("f2203.3r", FILTER_VOLUME, 0) | |
| 528 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 1.0) | |
| 629 | 529 | MACHINE_DRIVER_END |
| 630 | 530 | |
| 631 | 531 | |
| 532 | /************************************* | |
| 533 | * | |
| 534 | * ROM definition(s) | |
| 535 | * | |
| 536 | *************************************/ | |
| 537 | ||
| 538 | ||
| 632 | 539 | ROM_START( lockon ) |
| 540 | /* TF012 V30 (Main) */ | |
| 633 | 541 | ROM_REGION( 0x100000, REGION_CPU1, 0 ) |
| 634 | ROM_LOAD16_BYTE( "lo1_02c", 0x50000, 0x8000, CRC(bbf17263) SHA1(96821a0ecd6efe6764380fef094f87c1d6e1d299) ) | |
| 635 | ROM_LOAD16_BYTE( "lo1_03c", 0x50001, 0x8000, CRC(fa58fd36) SHA1(16af24027610bf6d3fdc4c3df3bf6d94c6776420) ) | |
| 542 | ROM_LOAD16_BYTE( "lo1_02c.89", 0x60000, 0x8000, CRC(bbf17263) SHA1(96821a0ecd6efe6764380fef094f87c1d6e1d299) ) | |
| 543 | ROM_LOAD16_BYTE( "lo1_03c.88", 0x60001, 0x8000, CRC(fa58fd36) SHA1(16af24027610bf6d3fdc4c3df3bf6d94c6776420) ) | |
| 636 | 544 | |
| 637 | ROM_LOAD16_BYTE( "lo1_04c", 0x60000, 0x8000, CRC(4a88576e) SHA1(80a8bd89cedebf080b2c08a6e81d3c2754024d8a) ) | |
| 638 | ROM_LOAD16_BYTE( "lo1_05c", 0x60001, 0x8000, CRC(5a171b02) SHA1(f41f641136574e6af67c2245eb5a84799984474a) ) | |
| 545 | ROM_LOAD16_BYTE( "lo1_04c.77", 0x50000, 0x8000, CRC(4a88576e) SHA1(80a8bd89cedebf080b2c08a6e81d3c2754024d8a) ) | |
| 546 | ROM_LOAD16_BYTE( "lo1_05c.76", 0x50001, 0x8000, CRC(5a171b02) SHA1(f41f641136574e6af67c2245eb5a84799984474a) ) | |
| 639 | 547 | |
| 640 | ROM_LOAD16_BYTE( "lo1_00c", 0xf0000, 0x8000, CRC(e2db493b) SHA1(7491c634b698973ea54c25612d1e79c7efea8a45) ) | |
| 641 | ROM_LOAD16_BYTE( "lo1_01c", 0xf0001, 0x8000, CRC(3e6065e0) SHA1(d870f5b466fab90d5c51dd27ecc807e7b38b5f79)) | |
| 548 | ROM_LOAD16_BYTE( "lo1_00e.96", 0x70000, 0x8000, CRC(25eec97f) SHA1(884d4e75111d532afed9755bd678cb7678385a86) ) | |
| 549 | ROM_LOAD16_BYTE( "lo1_01e.95", 0x70001, 0x8000, CRC(03f0391d) SHA1(53795eab8f1b33c86a72d2f0f1cbcf7faab0011b) ) | |
| 642 | 550 | |
| 643 | // Z80 | |
| 644 | ROM_LOAD16_BYTE( "lo1_08b", 0x20000, 0x8000, CRC(73860ec9) SHA1(a94afa274321b9f9ac2184e133132f9829fb9485) ) | |
| 551 | /* TF013 V30 (Ground) */ | |
| 552 | ROM_REGION( 0x100000, REGION_CPU2, 0 ) | |
| 553 | ROM_LOAD16_BYTE( "lo3_01a.30", 0x20000, 0x8000, CRC(3eacdb6b) SHA1(7934c36dac9253dec4d8910954f6f2ae85951fe9) ) | |
| 554 | ROM_LOAD16_BYTE( "lo3_03a.33", 0x20001, 0x8000, CRC(4ce96d71) SHA1(cedbc33e86a93d11d5e11c2ef18bcf6390790a88) ) | |
| 555 | ROM_LOAD16_BYTE( "lo3_00b.29", 0x30000, 0x8000, CRC(1835dccb) SHA1(8dfb0fea61a3e61f4da3b7f0da02cd19df2e68be) ) | |
| 556 | ROM_LOAD16_BYTE( "lo3_02b.32", 0x30001, 0x8000, CRC(2b8931d3) SHA1(f6f40b7857f3d47da8626450b1c1d3c46a1072ab) ) | |
| 645 | 557 | |
| 646 | // TF013 V30 (Ground) | |
| 558 | /* TF014 V30 (Object) */ | |
| 559 | ROM_REGION( 0x100000, REGION_CPU3, 0 ) | |
| 560 | ROM_LOAD16_BYTE( "lo4_00b", 0x30000, 0x8000, CRC(5f6b5a50) SHA1(daf82cafcae86d05587c191b0ff194ca7950e130) ) | |
| 561 | ROM_LOAD16_BYTE( "lo4_01b", 0x30001, 0x8000, CRC(7e88bcf2) SHA1(d541458ba6178ec3bce0e9b872b9fa1d8edb107c) ) | |
| 562 | ||
| 563 | /* TF014 Z80 (Sound) */ | |
| 564 | ROM_REGION( 0x10000, REGION_CPU4, 0 ) | |
| 565 | ROM_LOAD( "lo1_08b.24", 0x00000, 0x8000, CRC(73860ec9) SHA1(a94afa274321b9f9ac2184e133132f9829fb9485) ) | |
| 566 | ||
| 567 | /* 8x8x2 characters */ | |
| 568 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 569 | ROM_LOAD( "lo1_07a", 0x00000, 0x2000, CRC(73673b79) SHA1(246b80f0c465cefb7ce1c87dc90a58f0f0ea3e0d) ) | |
| 570 | ROM_LOAD( "lo1_06a", 0x02000, 0x2000, CRC(c8205913) SHA1(c791ff14418873ce68b502440c3d7ccc1f9cc00e) ) | |
| 571 | ||
| 572 | /* 8x8x3 scene tiles and CLUT */ | |
| 573 | ROM_REGION( 0x40000, REGION_GFX2, 0 ) | |
| 574 | ROM_LOAD( "lo3_12a.120", 0x00000, 0x10000, CRC(a34262a7) SHA1(08204a4474ab1b07b9114da8af03442737922d3b) ) | |
| 575 | ROM_LOAD( "lo3_11a.119", 0x10000, 0x10000, CRC(018efa36) SHA1(99eec3f06146627c7f7177b854424e7162ab7c8e) ) | |
| 576 | ROM_LOAD( "lo3_10a.118", 0x20000, 0x10000, CRC(d5f4a8f3) SHA1(fcfaef46ef89c4b97970418a75d110271e94d55f) ) | |
| 577 | ROM_LOAD( "lo3_13a.121", 0x30000, 0x10000, CRC(e44774a7) SHA1(010d95ea497690ddd2406b8fef1b0aee375a165e) ) | |
| 578 | ||
| 579 | /* 8x8x1 HUD sprites */ | |
| 580 | ROM_REGION( 0x2000, REGION_GFX3, 0 ) | |
| 581 | ROM_LOAD( "lo2_00.53", 0x00000, 0x2000, CRC(8affea15) SHA1(b7bcf0abde9c933e3f2c75c1f5e2ca3417d50ca1) ) | |
| 582 | ||
| 583 | /* Ground GFX and LUTs */ | |
| 584 | ROM_REGION( 0x60000, REGION_GFX4, 0 ) | |
| 585 | ROM_LOAD( "lo3_07a.94", 0x00000, 0x10000, CRC(cebc50e1) SHA1(f8b06ce576c3d41b0a8e2cc3ac60d3515d434812) ) | |
| 586 | ROM_LOAD( "lo3_06a.92", 0x10000, 0x10000, CRC(f6b6ebdd) SHA1(30e92da3bf83c4bb30faf00cbf01664b993f137c) ) | |
| 587 | ROM_LOAD( "lo3_05a.90", 0x20000, 0x10000, CRC(5b6f4c8e) SHA1(fc8b2c929c60fb0177ed3e407e3f0aacc5df8401) ) | |
| 588 | ROM_LOAD( "lo3_08.104", 0x30000, 0x10000, CRC(f418cecd) SHA1(6cf2d13c9df86bad9c24609cb8387e817b5d4281) ) | |
| 589 | ROM_LOAD( "lo3_09.105", 0x40000, 0x10000, CRC(3c245568) SHA1(9ff6a23d83627f55c9d4f68e0bd89927bfe10664) ) | |
| 590 | ROM_LOAD( "lo3_04a.88", 0x50000, 0x10000, CRC(80b67ba9) SHA1(fdbef463b26cd13c43596310f585432c6e0896d0) ) | |
| 591 | ||
| 592 | /* 8x8x4 object tiles */ | |
| 593 | ROM_REGION( 0x100000, REGION_GFX5, 0 ) | |
| 594 | ROM_LOAD( "lo5_28a.76", 0x00000, 0x8000, CRC(1186f9b4) SHA1(55598552dafa8cccfb423fc3b65a7fa15831d75b) ) | |
| 595 | ROM_LOAD( "lo5_20a.48", 0x08000, 0x8000, CRC(3c1a67b5) SHA1(399935830b32a457ad0de243dd3eb4d368d5c6a6) ) | |
| 596 | ROM_LOAD( "lo5_08a.58", 0x10000, 0x8000, CRC(9dedeff5) SHA1(53b0917a4fde4053182d38ea7f99f66e52543c10) ) | |
| 597 | ROM_LOAD( "lo5_00a.14", 0x18000, 0x8000, CRC(e9f23ce6) SHA1(4030384a0e8f47e8eea9483482ed1be264aec992) ) | |
| 598 | ROM_LOAD( "lo5_24a.62", 0x20000, 0x8000, CRC(1892d083) SHA1(8ee92be93ac222ecc2d9f4fcda3099b1db67516c) ) | |
| 599 | ROM_LOAD( "lo5_16a.32", 0x28000, 0x8000, CRC(c4500159) SHA1(e695e31e363cc954aab449f9d3dbc027e27fe7bf) ) | |
| 600 | ROM_LOAD( "lo5_04a.28", 0x30000, 0x8000, CRC(099323bc) SHA1(001d30f4c3c27277fadac89dcf616ff89eb0ea1c) ) | |
| 601 | ROM_LOAD( "lo5_12a.8", 0x38000, 0x8000, CRC(2f5164ab) SHA1(df775b9e1c3c605a85d44404e4db42e33e80e664) ) | |
| 602 | ||
| 603 | ROM_LOAD( "lo5_29a.77", 0x40000, 0x8000, CRC(45353d8d) SHA1(45cacd36700d24ae9f6eeaebed2fc860ef2d2978) ) | |
| 604 | ROM_LOAD( "lo5_21a.49", 0x48000, 0x8000, CRC(39ce2000) SHA1(05f8e6f364ad714232fcea5b535ed5e181febd1e) ) | |
| 605 | ROM_LOAD( "lo5_10a.72", 0x50000, 0x8000, CRC(23eeec5a) SHA1(08edd997d773684d329ef554776bc7acff1ac4ce) ) | |
| 606 | ROM_LOAD( "lo5_01a.15", 0x58000, 0x8000, CRC(528d1395) SHA1(0221f81900757c10f288807f5c9549b9fdf5390f) ) | |
| 607 | ROM_LOAD( "lo5_25a.93", 0x60000, 0x8000, CRC(7f3418bd) SHA1(5e595500f996b71aa73c637a6fddced30d78e222) ) | |
| 608 | ROM_LOAD( "lo5_17a.33", 0x68000, 0x8000, CRC(ccf138d3) SHA1(971e7abe5b4d1a9dc8fc71b1ded5d2b81bcffaf2) ) | |
| 609 | ROM_LOAD( "lo5_06a.44", 0x70000, 0x8000, CRC(be539b01) SHA1(1eebcbc592c51a676409b5be6c5d6609cd7118c9) ) | |
| 610 | ROM_LOAD( "lo5_14a.22", 0x78000, 0x8000, CRC(e63cd59e) SHA1(0518461acdc6c65dca8f21ca29bf528197e7cabe) ) | |
| 611 | ||
| 612 | ROM_LOAD( "lo5_30a.78", 0x80000, 0x8000, CRC(7d3993c5) SHA1(fb18daffcfc46bc1e1cfdee928eea861494af221) ) | |
| 613 | ROM_LOAD( "lo5_22a.50", 0x88000, 0x8000, CRC(b1ed0361) SHA1(4bdf439026a858fdd929d5a7baac7d76f51550c5) ) | |
| 614 | ROM_LOAD( "lo5_09a.59", 0x90000, 0x8000, CRC(953289bc) SHA1(197066af45c1193c36cd59b4b72b14f1c3bdd33e) ) | |
| 615 | ROM_LOAD( "lo5_02a.16", 0x98000, 0x8000, CRC(07aa32a1) SHA1(712b1983747acdd754d3abe934642cbc02ee13f2) ) | |
| 616 | ROM_LOAD( "lo5_26a.64", 0xa0000, 0x8000, CRC(a0b5c040) SHA1(ef63f89a368bc73eb77fc02d83b499a0231c1989) ) | |
| 617 | ROM_LOAD( "lo5_18a.34", 0xa8000, 0x8000, CRC(89884b24) SHA1(23c1fcc97f3a1abcaad413f4448db26f7c55fd5e) ) | |
| 618 | ROM_LOAD( "lo5_05a.29", 0xb0000, 0x8000, CRC(f6b775a2) SHA1(e0146866f2e89675181c5d9d5aba23116daac420) ) | |
| 619 | ROM_LOAD( "lo5_13a.9", 0xb8000, 0x8000, CRC(67fbb061) SHA1(78b071cd54642ee7b6d7b9f6b759a1412bb9eef5) ) | |
| 620 | ||
| 621 | ROM_LOAD( "lo5_31a.79", 0xc0000, 0x8000, CRC(d3595292) SHA1(9c45be919296626796b07f70b871fba5d444dbb3) ) | |
| 622 | ROM_LOAD( "lo5_23a.51", 0xc8000, 0x8000, CRC(1487895b) SHA1(9d617f37932ca17d902307a97d16cf3b4bb5bc4e) ) | |
| 623 | ROM_LOAD( "lo5_11a.73", 0xd0000, 0x8000, CRC(9df0b287) SHA1(6ea3b32a7826186c854cc079711ddea4ebf2ab7c) ) | |
| 624 | ROM_LOAD( "lo5_03a.17", 0xd8000, 0x8000, CRC(7aca5d83) SHA1(95456b6c5adc5b776fbd33fd95cc62d4a83c34b6) ) | |
| 625 | ROM_LOAD( "lo5_27a.65", 0xe0000, 0x8000, CRC(119ff70a) SHA1(e64d41bc7822c9e99fd025b771551a6c511d13f2) ) | |
| 626 | ROM_LOAD( "lo5_19a.35", 0xe8000, 0x8000, CRC(5aaa6a53) SHA1(f8ff547979883ac9a969e76d90d028ec4286ec4c) ) | |
| 627 | ROM_LOAD( "lo5_07a.45", 0xf0000, 0x8000, CRC(313f127f) SHA1(0782b8dd5f3a3384c3e7bc9cacaadf6804e06a38) ) | |
| 628 | ROM_LOAD( "lo5_15a.23", 0xf8000, 0x8000, CRC(66f9c5db) SHA1(cc68da9312ee0a3441b62d14107e1b7de9b04de3) ) | |
| 629 | ||
| 630 | /* Object LUTs */ | |
| 631 | ROM_REGION( 0x10000, REGION_USER1, 0 ) | |
| 632 | ROM_LOAD( "lo4_02.109", 0x0000, 0x8000, CRC(0832edde) SHA1(77f9efbe029773417dbc3836a36687e37b5bee4b) ) | |
| 633 | ROM_LOAD( "lo4_03.108", 0x8000, 0x8000, CRC(1efac891) SHA1(faf305a30cab1c6bf8a9d6e2682b2c3745aec956) ) | |
| 634 | ||
| 635 | /* Object chunk LUTs */ | |
| 636 | ROM_REGION16_LE( 0x20000, REGION_USER2, 0 ) | |
| 637 | ROM_LOAD16_BYTE( "lo4_04a.119", 0x00000, 0x10000, CRC(098f4151) SHA1(cf38e3c5f3442fbfa97870d25f7c89c465f847a9) ) | |
| 638 | ROM_LOAD16_BYTE( "lo4_05a.118", 0x00001, 0x10000, CRC(3b21667c) SHA1(b8337f733ede35145602ee3f0de25c2d4db1b2a5) ) | |
| 639 | ||
| 640 | /* Colour PROMs */ | |
| 641 | ROM_REGION( 0x1800, REGION_PROMS, 0 ) | |
| 642 | ROM_LOAD( "lo1a.5", 0x000, 0x400, CRC(82391f30) SHA1(d7153c1f3a3e54de4d4d6f432fbcd66449b96b6e) ) | |
| 643 | ROM_LOAD( "lo2a.2", 0x400, 0x400, CRC(2bfc6288) SHA1(03d293ddc0c614b606be823826a4375b3d35901f) ) | |
| 644 | ||
| 645 | /* Object scale PROMs */ | |
| 646 | ROM_LOAD_NIB_LOW ( "lo_3.69", 0x800, 0x800, CRC(9d9c41a9) SHA1(aabeefe95274f10400b4b7810ea50afcc4f19fde) ) | |
| 647 | ROM_LOAD_NIB_HIGH( "lo_4.68", 0x800, 0x800, CRC(ca4874ef) SHA1(c742f79729b0dc4d227379e9109c7ed21b4c38bb) ) | |
| 648 | ROM_END | |
| 649 | ||
| 650 | ||
| 651 | ROM_START( lockonc ) | |
| 652 | /* TF012 V30 (Main) */ | |
| 653 | ROM_REGION( 0x100000, REGION_CPU1, 0 ) | |
| 654 | ROM_LOAD16_BYTE( "lo1_02c.89", 0x60000, 0x8000, CRC(bbf17263) SHA1(96821a0ecd6efe6764380fef094f87c1d6e1d299) ) | |
| 655 | ROM_LOAD16_BYTE( "lo1_03c.88", 0x60001, 0x8000, CRC(fa58fd36) SHA1(16af24027610bf6d3fdc4c3df3bf6d94c6776420) ) | |
| 656 | ||
| 657 | ROM_LOAD16_BYTE( "lo1_04c.77", 0x50000, 0x8000, CRC(4a88576e) SHA1(80a8bd89cedebf080b2c08a6e81d3c2754024d8a) ) | |
| 658 | ROM_LOAD16_BYTE( "lo1_05c.76", 0x50001, 0x8000, CRC(5a171b02) SHA1(f41f641136574e6af67c2245eb5a84799984474a) ) | |
| 659 | ||
| 660 | ROM_LOAD16_BYTE( "lo1_00c.96", 0x70000, 0x8000, CRC(e2db493b) SHA1(7491c634b698973ea54c25612d1e79c7efea8a45) ) | |
| 661 | ROM_LOAD16_BYTE( "lo1_01c.95", 0x70001, 0x8000, CRC(3e6065e0) SHA1(d870f5b466fab90d5c51dd27ecc807e7b38b5f79) ) | |
| 662 | ||
| 663 | /* TF013 V30 (Ground) */ | |
| 647 | 664 | ROM_REGION( 0x100000, REGION_CPU2, 0 ) |
| 648 | ROM_LOAD16_BYTE( "lo3_01a", 0x20000, 0x8000, CRC(3eacdb6b) SHA1(7934c36dac9253dec4d8910954f6f2ae85951fe9) ) | |
| 649 | ROM_RELOAD( 0xe0000, 0x8000 ) | |
| 650 | ROM_LOAD16_BYTE( "lo3_03a", 0x20001, 0x8000, CRC(4ce96d71) SHA1(cedbc33e86a93d11d5e11c2ef18bcf6390790a88) ) | |
| 651 | ROM_RELOAD( 0xe0001, 0x8000 ) | |
| 665 | ROM_LOAD16_BYTE( "lo3_01a.30", 0x20000, 0x8000, CRC(3eacdb6b) SHA1(7934c36dac9253dec4d8910954f6f2ae85951fe9) ) | |
| 666 | ROM_LOAD16_BYTE( "lo3_03a.33", 0x20001, 0x8000, CRC(4ce96d71) SHA1(cedbc33e86a93d11d5e11c2ef18bcf6390790a88) ) | |
| 667 | ROM_LOAD16_BYTE( "lo3_00b.29", 0x30000, 0x8000, CRC(1835dccb) SHA1(8dfb0fea61a3e61f4da3b7f0da02cd19df2e68be) ) | |
| 668 | ROM_LOAD16_BYTE( "lo3_02b.32", 0x30001, 0x8000, CRC(2b8931d3) SHA1(f6f40b7857f3d47da8626450b1c1d3c46a1072ab) ) | |
| 652 | 669 | |
| 653 | ROM_LOAD16_BYTE( "lo3_00b", 0xf0000, 0x8000, CRC(1835dccb) SHA1(8dfb0fea61a3e61f4da3b7f0da02cd19df2e68be) ) | |
| 654 | ROM_RELOAD( 0x30000, 0x8000 ) | |
| 655 | ROM_LOAD16_BYTE( "lo3_02b", 0xf0001, 0x8000, CRC(2b8931d3) SHA1(f6f40b7857f3d47da8626450b1c1d3c46a1072ab) ) | |
| 656 | ROM_RELOAD( 0x30001, 0x8000 ) | |
| 657 | ||
| 658 | // TF014 V30 (Object) | |
| 670 | /* TF014 V30 (Object) */ | |
| 659 | 671 | ROM_REGION( 0x100000, REGION_CPU3, 0 ) |
| 660 | ROM_LOAD16_BYTE( "lo4_00b", 0xf0000, 0x8000, CRC(5f6b5a50) SHA1(daf82cafcae86d05587c191b0ff194ca7950e130) ) | |
| 661 | ROM_RELOAD( 0x30000, 0x8000 ) | |
| 672 | ROM_LOAD16_BYTE( "lo4_00b", 0x30000, 0x8000, CRC(5f6b5a50) SHA1(daf82cafcae86d05587c191b0ff194ca7950e130) ) | |
| 673 | ROM_LOAD16_BYTE( "lo4_01b", 0x30001, 0x8000, CRC(7e88bcf2) SHA1(d541458ba6178ec3bce0e9b872b9fa1d8edb107c) ) | |
| 662 | 674 | |
| 663 | ROM_LOAD16_BYTE( "lo4_01b", 0xf0001, 0x8000, CRC(7e88bcf2) SHA1(d541458ba6178ec3bce0e9b872b9fa1d8edb107c) ) | |
| 664 | ROM_RELOAD( 0x30001, 0x8000 ) | |
| 665 | ||
| 666 | // TF014 Z80 (Sound) | |
| 675 | /* TF014 Z80 (Sound) */ | |
| 667 | 676 | ROM_REGION( 0x10000, REGION_CPU4, 0 ) |
| 668 | ROM_LOAD( "lo1_08b", 0x00000, 0x8000, CRC(73860ec9) SHA1(a94afa274321b9f9ac2184e133132f9829fb9485) ) | |
| 677 | ROM_LOAD( "lo1_08b.24", 0x00000, 0x8000, CRC(73860ec9) SHA1(a94afa274321b9f9ac2184e133132f9829fb9485) ) | |
| 669 | 678 | |
| 670 | // 8x8x8 object chunks | |
| 671 | ROM_REGION( 0x400000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 672 | ROM_LOAD( "lo5_00a", 0x00000, 0x8000, CRC(e9f23ce6) SHA1(4030384a0e8f47e8eea9483482ed1be264aec992) ) | |
| 673 | ROM_LOAD( "lo5_04a", 0x08000, 0x8000, CRC(099323bc) SHA1(001d30f4c3c27277fadac89dcf616ff89eb0ea1c) ) | |
| 674 | ROM_LOAD( "lo5_08a", 0x10000, 0x8000, CRC(9dedeff5) SHA1(53b0917a4fde4053182d38ea7f99f66e52543c10) ) | |
| 675 | ROM_LOAD( "lo5_12a", 0x18000, 0x8000, CRC(2f5164ab) SHA1(df775b9e1c3c605a85d44404e4db42e33e80e664) ) | |
| 676 | ROM_LOAD( "lo5_16a", 0x20000, 0x8000, CRC(c4500159) SHA1(e695e31e363cc954aab449f9d3dbc027e27fe7bf) ) | |
| 677 | ROM_LOAD( "lo5_20a", 0x28000, 0x8000, CRC(3c1a67b5) SHA1(399935830b32a457ad0de243dd3eb4d368d5c6a6) ) | |
| 678 | ROM_LOAD( "lo5_24a", 0x30000, 0x8000, CRC(1892d083) SHA1(8ee92be93ac222ecc2d9f4fcda3099b1db67516c) ) | |
| 679 | ROM_LOAD( "lo5_28a", 0x38000, 0x8000, CRC(1186f9b4) SHA1(55598552dafa8cccfb423fc3b65a7fa15831d75b) ) | |
| 679 | /* 8x8x2 characters */ | |
| 680 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 681 | ROM_LOAD( "lo1_07a", 0x00000, 0x2000, CRC(73673b79) SHA1(246b80f0c465cefb7ce1c87dc90a58f0f0ea3e0d) ) | |
| 682 | ROM_LOAD( "lo1_06a", 0x02000, 0x2000, CRC(c8205913) SHA1(c791ff14418873ce68b502440c3d7ccc1f9cc00e) ) | |
| 680 | 683 | |
| 681 | // 8x8x8 object chunks | |
| 682 | ROM_REGION( 0x400000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 683 | ROM_LOAD( "lo5_01a", 0x00000, 0x8000, CRC(528d1395) SHA1(0221f81900757c10f288807f5c9549b9fdf5390f) ) | |
| 684 | ROM_LOAD( "lo5_06a", 0x08000, 0x8000, CRC(be539b01) SHA1(1eebcbc592c51a676409b5be6c5d6609cd7118c9) ) | |
| 685 | ROM_LOAD( "lo5_10a", 0x10000, 0x8000, CRC(23eeec5a) SHA1(08edd997d773684d329ef554776bc7acff1ac4ce) ) | |
| 686 | ROM_LOAD( "lo5_14a", 0x18000, 0x8000, CRC(e63cd59e) SHA1(0518461acdc6c65dca8f21ca29bf528197e7cabe) ) | |
| 687 | ROM_LOAD( "lo5_17a", 0x20000, 0x8000, CRC(ccf138d3) SHA1(971e7abe5b4d1a9dc8fc71b1ded5d2b81bcffaf2) ) | |
| 688 | ROM_LOAD( "lo5_21a", 0x28000, 0x8000, CRC(39ce2000) SHA1(05f8e6f364ad714232fcea5b535ed5e181febd1e) ) | |
| 689 | ROM_LOAD( "lo5_25a", 0x30000, 0x8000, CRC(7f3418bd) SHA1(5e595500f996b71aa73c637a6fddced30d78e222) ) | |
| 690 | ROM_LOAD( "lo5_29a", 0x38000, 0x8000, CRC(45353d8d) SHA1(45cacd36700d24ae9f6eeaebed2fc860ef2d2978) ) | |
| 684 | /* 8x8x3 scene tiles and CLUT */ | |
| 685 | ROM_REGION( 0x40000, REGION_GFX2, 0 ) | |
| 686 | ROM_LOAD( "lo3_12a.120", 0x00000, 0x10000, CRC(a34262a7) SHA1(08204a4474ab1b07b9114da8af03442737922d3b) ) | |
| 687 | ROM_LOAD( "lo3_11a.119", 0x10000, 0x10000, CRC(018efa36) SHA1(99eec3f06146627c7f7177b854424e7162ab7c8e) ) | |
| 688 | ROM_LOAD( "lo3_10a.118", 0x20000, 0x10000, CRC(d5f4a8f3) SHA1(fcfaef46ef89c4b97970418a75d110271e94d55f) ) | |
| 689 | ROM_LOAD( "lo3_13a.121", 0x30000, 0x10000, CRC(e44774a7) SHA1(010d95ea497690ddd2406b8fef1b0aee375a165e) ) | |
| 691 | 690 | |
| 692 | // 8x8x8 object chunks | |
| 693 | ROM_REGION( 0x400000, REGION_GFX3, ROMREGION_DISPOSE ) | |
| 694 | ROM_LOAD( "lo5_02a", 0x00000, 0x8000, CRC(07aa32a1) SHA1(712b1983747acdd754d3abe934642cbc02ee13f2) ) | |
| 695 | ROM_LOAD( "lo5_05a", 0x08000, 0x8000, CRC(f6b775a2) SHA1(e0146866f2e89675181c5d9d5aba23116daac420) ) | |
| 696 | ROM_LOAD( "lo5_09a", 0x10000, 0x8000, CRC(953289bc) SHA1(197066af45c1193c36cd59b4b72b14f1c3bdd33e) ) | |
| 697 | ROM_LOAD( "lo5_13a", 0x18000, 0x8000, CRC(67fbb061) SHA1(78b071cd54642ee7b6d7b9f6b759a1412bb9eef5) ) | |
| 698 | ROM_LOAD( "lo5_18a", 0x20000, 0x8000, CRC(89884b24) SHA1(23c1fcc97f3a1abcaad413f4448db26f7c55fd5e) ) | |
| 699 | ROM_LOAD( "lo5_22a", 0x28000, 0x8000, CRC(b1ed0361) SHA1(4bdf439026a858fdd929d5a7baac7d76f51550c5) ) | |
| 700 | ROM_LOAD( "lo5_26a", 0x30000, 0x8000, CRC(a0b5c040) SHA1(ef63f89a368bc73eb77fc02d83b499a0231c1989) ) | |
| 701 | ROM_LOAD( "lo5_30a", 0x38000, 0x8000, CRC(7d3993c5) SHA1(fb18daffcfc46bc1e1cfdee928eea861494af221) ) | |
| 691 | /* 8x8x1 HUD sprites */ | |
| 692 | ROM_REGION( 0x2000, REGION_GFX3, 0 ) | |
| 693 | ROM_LOAD( "lo2_00.53", 0x00000, 0x2000, CRC(8affea15) SHA1(b7bcf0abde9c933e3f2c75c1f5e2ca3417d50ca1) ) | |
| 702 | 694 | |
| 703 | // 8x8x8 object chunks | |
| 704 | ROM_REGION( 0x400000, REGION_GFX4, ROMREGION_DISPOSE ) | |
| 705 | ROM_LOAD( "lo5_03a", 0x00000, 0x8000, CRC(7aca5d83) SHA1(95456b6c5adc5b776fbd33fd95cc62d4a83c34b6) ) | |
| 706 | ROM_LOAD( "lo5_07a", 0x08000, 0x8000, CRC(313f127f) SHA1(0782b8dd5f3a3384c3e7bc9cacaadf6804e06a38) ) | |
| 707 | ROM_LOAD( "lo5_11a", 0x10000, 0x8000, CRC(9df0b287) SHA1(6ea3b32a7826186c854cc079711ddea4ebf2ab7c) ) | |
| 708 | ROM_LOAD( "lo5_15a", 0x18000, 0x8000, CRC(66f9c5db) SHA1(cc68da9312ee0a3441b62d14107e1b7de9b04de3) ) | |
| 709 | ROM_LOAD( "lo5_19a", 0x20000, 0x8000, CRC(5aaa6a53) SHA1(f8ff547979883ac9a969e76d90d028ec4286ec4c) ) | |
| 710 | ROM_LOAD( "lo5_23a", 0x28000, 0x8000, CRC(1487895b) SHA1(9d617f37932ca17d902307a97d16cf3b4bb5bc4e) ) | |
| 711 | ROM_LOAD( "lo5_27a", 0x30000, 0x8000, CRC(119ff70a) SHA1(e64d41bc7822c9e99fd025b771551a6c511d13f2) ) | |
| 712 | ROM_LOAD( "lo5_31a", 0x38000, 0x8000, CRC(d3595292) SHA1(9c45be919296626796b07f70b871fba5d444dbb3) ) | |
| 695 | /* Ground GFX and LUTs */ | |
| 696 | ROM_REGION( 0x60000, REGION_GFX4, 0 ) | |
| 697 | ROM_LOAD( "lo3_07a.94", 0x00000, 0x10000, CRC(cebc50e1) SHA1(f8b06ce576c3d41b0a8e2cc3ac60d3515d434812) ) | |
| 698 | ROM_LOAD( "lo3_06a.92", 0x10000, 0x10000, CRC(f6b6ebdd) SHA1(30e92da3bf83c4bb30faf00cbf01664b993f137c) ) | |
| 699 | ROM_LOAD( "lo3_05a.90", 0x20000, 0x10000, CRC(5b6f4c8e) SHA1(fc8b2c929c60fb0177ed3e407e3f0aacc5df8401) ) | |
| 700 | ROM_LOAD( "lo3_08.104", 0x30000, 0x10000, CRC(f418cecd) SHA1(6cf2d13c9df86bad9c24609cb8387e817b5d4281) ) | |
| 701 | ROM_LOAD( "lo3_09.105", 0x40000, 0x10000, CRC(3c245568) SHA1(9ff6a23d83627f55c9d4f68e0bd89927bfe10664) ) | |
| 702 | ROM_LOAD( "lo3_04a.88", 0x50000, 0x10000, CRC(80b67ba9) SHA1(fdbef463b26cd13c43596310f585432c6e0896d0) ) | |
| 713 | 703 | |
| 714 | // 8x8x2 characters | |
| 715 | ROM_REGION( 0x20000, REGION_GFX5, ROMREGION_DISPOSE ) | |
| 716 | ROM_LOAD( "lo1_06a", 0x00000, 0x2000, CRC(c8205913) SHA1(c791ff14418873ce68b502440c3d7ccc1f9cc00e) ) | |
| 717 | ROM_LOAD( "lo1_07a", 0x02000, 0x2000, CRC(73673b79) SHA1(246b80f0c465cefb7ce1c87dc90a58f0f0ea3e0d) ) | |
| 704 | /* 8x8x4 object tiles */ | |
| 705 | ROM_REGION( 0x100000, REGION_GFX5, 0 ) | |
| 706 | ROM_LOAD( "lo5_28a.76", 0x00000, 0x8000, CRC(1186f9b4) SHA1(55598552dafa8cccfb423fc3b65a7fa15831d75b) ) | |
| 707 | ROM_LOAD( "lo5_20a.48", 0x08000, 0x8000, CRC(3c1a67b5) SHA1(399935830b32a457ad0de243dd3eb4d368d5c6a6) ) | |
| 708 | ROM_LOAD( "lo5_08a.58", 0x10000, 0x8000, CRC(9dedeff5) SHA1(53b0917a4fde4053182d38ea7f99f66e52543c10) ) | |
| 709 | ROM_LOAD( "lo5_00a.14", 0x18000, 0x8000, CRC(e9f23ce6) SHA1(4030384a0e8f47e8eea9483482ed1be264aec992) ) | |
| 710 | ROM_LOAD( "lo5_24a.62", 0x20000, 0x8000, CRC(1892d083) SHA1(8ee92be93ac222ecc2d9f4fcda3099b1db67516c) ) | |
| 711 | ROM_LOAD( "lo5_16a.32", 0x28000, 0x8000, CRC(c4500159) SHA1(e695e31e363cc954aab449f9d3dbc027e27fe7bf) ) | |
| 712 | ROM_LOAD( "lo5_04a.28", 0x30000, 0x8000, CRC(099323bc) SHA1(001d30f4c3c27277fadac89dcf616ff89eb0ea1c) ) | |
| 713 | ROM_LOAD( "lo5_12a.8", 0x38000, 0x8000, CRC(2f5164ab) SHA1(df775b9e1c3c605a85d44404e4db42e33e80e664) ) | |
| 718 | 714 | |
| 719 | // 8x8x3 'scene' tiles | |
| 720 | ROM_REGION( 0x40000, REGION_GFX6, ROMREGION_DISPOSE ) | |
| 721 | ROM_LOAD( "lo3_10a", 0x00000, 0x10000, CRC(d5f4a8f3) SHA1(fcfaef46ef89c4b97970418a75d110271e94d55f) ) | |
| 722 | ROM_LOAD( "lo3_11a", 0x10000, 0x10000, CRC(018efa36) SHA1(99eec3f06146627c7f7177b854424e7162ab7c8e) ) | |
| 723 | ROM_LOAD( "lo3_12a", 0x20000, 0x10000, CRC(a34262a7) SHA1(08204a4474ab1b07b9114da8af03442737922d3b) ) | |
| 715 | ROM_LOAD( "lo5_29a.77", 0x40000, 0x8000, CRC(45353d8d) SHA1(45cacd36700d24ae9f6eeaebed2fc860ef2d2978) ) | |
| 716 | ROM_LOAD( "lo5_21a.49", 0x48000, 0x8000, CRC(39ce2000) SHA1(05f8e6f364ad714232fcea5b535ed5e181febd1e) ) | |
| 717 | ROM_LOAD( "lo5_10a.72", 0x50000, 0x8000, CRC(23eeec5a) SHA1(08edd997d773684d329ef554776bc7acff1ac4ce) ) | |
| 718 | ROM_LOAD( "lo5_01a.15", 0x58000, 0x8000, CRC(528d1395) SHA1(0221f81900757c10f288807f5c9549b9fdf5390f) ) | |
| 719 | ROM_LOAD( "lo5_25a.93", 0x60000, 0x8000, CRC(7f3418bd) SHA1(5e595500f996b71aa73c637a6fddced30d78e222) ) | |
| 720 | ROM_LOAD( "lo5_17a.33", 0x68000, 0x8000, CRC(ccf138d3) SHA1(971e7abe5b4d1a9dc8fc71b1ded5d2b81bcffaf2) ) | |
| 721 | ROM_LOAD( "lo5_06a.44", 0x70000, 0x8000, CRC(be539b01) SHA1(1eebcbc592c51a676409b5be6c5d6609cd7118c9) ) | |
| 722 | ROM_LOAD( "lo5_14a.22", 0x78000, 0x8000, CRC(e63cd59e) SHA1(0518461acdc6c65dca8f21ca29bf528197e7cabe) ) | |
| 724 | 723 | |
| 725 | // 8x8x1 HUD tiles | |
| 726 | ROM_REGION( 0x40000, REGION_GFX7, ROMREGION_DISPOSE ) | |
| 727 | ROM_LOAD( "lo2_00", 0x00000, 0x2000, CRC(8affea15) SHA1(b7bcf0abde9c933e3f2c75c1f5e2ca3417d50ca1) ) | |
| 724 | ROM_LOAD( "lo5_30a.78", 0x80000, 0x8000, CRC(7d3993c5) SHA1(fb18daffcfc46bc1e1cfdee928eea861494af221) ) | |
| 725 | ROM_LOAD( "lo5_22a.50", 0x88000, 0x8000, CRC(b1ed0361) SHA1(4bdf439026a858fdd929d5a7baac7d76f51550c5) ) | |
| 726 | ROM_LOAD( "lo5_09a.59", 0x90000, 0x8000, CRC(953289bc) SHA1(197066af45c1193c36cd59b4b72b14f1c3bdd33e) ) | |
| 727 | ROM_LOAD( "lo5_02a.16", 0x98000, 0x8000, CRC(07aa32a1) SHA1(712b1983747acdd754d3abe934642cbc02ee13f2) ) | |
| 728 | ROM_LOAD( "lo5_26a.64", 0xa0000, 0x8000, CRC(a0b5c040) SHA1(ef63f89a368bc73eb77fc02d83b499a0231c1989) ) | |
| 729 | ROM_LOAD( "lo5_18a.34", 0xa8000, 0x8000, CRC(89884b24) SHA1(23c1fcc97f3a1abcaad413f4448db26f7c55fd5e) ) | |
| 730 | ROM_LOAD( "lo5_05a.29", 0xb0000, 0x8000, CRC(f6b775a2) SHA1(e0146866f2e89675181c5d9d5aba23116daac420) ) | |
| 731 | ROM_LOAD( "lo5_13a.9", 0xb8000, 0x8000, CRC(67fbb061) SHA1(78b071cd54642ee7b6d7b9f6b759a1412bb9eef5) ) | |
| 728 | 732 | |
| 729 | // 8x8 ground GFX | |
| 730 | ROM_REGION( 0x400000, REGION_GFX8, ROMREGION_DISPOSE ) | |
| 731 | ROM_LOAD( "lo3_05a", 0x00000, 0x10000, CRC(5b6f4c8e) SHA1(fc8b2c929c60fb0177ed3e407e3f0aacc5df8401) ) | |
| 732 | ROM_LOAD( "lo3_06a", 0x10000, 0x10000, CRC(f6b6ebdd) SHA1(30e92da3bf83c4bb30faf00cbf01664b993f137c) ) | |
| 733 | ROM_LOAD( "lo3_07a", 0x20000, 0x10000, CRC(cebc50e1) SHA1(f8b06ce576c3d41b0a8e2cc3ac60d3515d434812) ) | |
| 733 | ROM_LOAD( "lo5_31a.79", 0xc0000, 0x8000, CRC(d3595292) SHA1(9c45be919296626796b07f70b871fba5d444dbb3) ) | |
| 734 | ROM_LOAD( "lo5_23a.51", 0xc8000, 0x8000, CRC(1487895b) SHA1(9d617f37932ca17d902307a97d16cf3b4bb5bc4e) ) | |
| 735 | ROM_LOAD( "lo5_11a.73", 0xd0000, 0x8000, CRC(9df0b287) SHA1(6ea3b32a7826186c854cc079711ddea4ebf2ab7c) ) | |
| 736 | ROM_LOAD( "lo5_03a.17", 0xd8000, 0x8000, CRC(7aca5d83) SHA1(95456b6c5adc5b776fbd33fd95cc62d4a83c34b6) ) | |
| 737 | ROM_LOAD( "lo5_27a.65", 0xe0000, 0x8000, CRC(119ff70a) SHA1(e64d41bc7822c9e99fd025b771551a6c511d13f2) ) | |
| 738 | ROM_LOAD( "lo5_19a.35", 0xe8000, 0x8000, CRC(5aaa6a53) SHA1(f8ff547979883ac9a969e76d90d028ec4286ec4c) ) | |
| 739 | ROM_LOAD( "lo5_07a.45", 0xf0000, 0x8000, CRC(313f127f) SHA1(0782b8dd5f3a3384c3e7bc9cacaadf6804e06a38) ) | |
| 740 | ROM_LOAD( "lo5_15a.23", 0xf8000, 0x8000, CRC(66f9c5db) SHA1(cc68da9312ee0a3441b62d14107e1b7de9b04de3) ) | |
| 734 | 741 | |
| 735 | // Object chunk LUTs | |
| 736 | ROM_REGION( 0x30000, REGION_USER1, 0 ) | |
| 737 | ROM_LOAD16_BYTE( "lo4_04a", 0x00000, 0x10000, CRC(098f4151) SHA1(cf38e3c5f3442fbfa97870d25f7c89c465f847a9) ) | |
| 738 | ROM_LOAD16_BYTE( "lo4_05a", 0x00001, 0x10000, CRC(3b21667c) SHA1(b8337f733ede35145602ee3f0de25c2d4db1b2a5) ) | |
| 742 | /* Object LUTs */ | |
| 743 | ROM_REGION( 0x10000, REGION_USER1, 0 ) | |
| 744 | ROM_LOAD( "lo4_02.109", 0x0000, 0x8000, CRC(0832edde) SHA1(77f9efbe029773417dbc3836a36687e37b5bee4b) ) | |
| 745 | ROM_LOAD( "lo4_03.108", 0x8000, 0x8000, CRC(1efac891) SHA1(faf305a30cab1c6bf8a9d6e2682b2c3745aec956) ) | |
| 739 | 746 | |
| 740 | // Object LUTs | |
| 741 | ROM_REGION( 0x30000, REGION_USER2, 0 ) | |
| 742 | ROM_LOAD( "lo4_02", 0x0000, 0x8000, CRC(0832edde) SHA1(77f9efbe029773417dbc3836a36687e37b5bee4b) ) | |
| 743 | ROM_LOAD( "lo4_03", 0x8000, 0x8000, CRC(1efac891) SHA1(faf305a30cab1c6bf8a9d6e2682b2c3745aec956) ) | |
| 747 | /* Object chunk LUTs */ | |
| 748 | ROM_REGION16_LE( 0x20000, REGION_USER2, 0 ) | |
| 749 | ROM_LOAD16_BYTE( "lo4_04a.119", 0x00000, 0x10000, CRC(098f4151) SHA1(cf38e3c5f3442fbfa97870d25f7c89c465f847a9) ) | |
| 750 | ROM_LOAD16_BYTE( "lo4_05a.118", 0x00001, 0x10000, CRC(3b21667c) SHA1(b8337f733ede35145602ee3f0de25c2d4db1b2a5) ) | |
| 744 | 751 | |
| 745 | // Ground LUTs | |
| 746 | ROM_REGION( 0x30000, REGION_USER3, 0 ) | |
| 747 | ROM_LOAD( "lo3_08", 0x00000, 0x10000, CRC(f418cecd) SHA1(6cf2d13c9df86bad9c24609cb8387e817b5d4281) ) | |
| 748 | ROM_LOAD( "lo3_09", 0x10000, 0x10000, CRC(3c245568) SHA1(9ff6a23d83627f55c9d4f68e0bd89927bfe10664) ) | |
| 749 | ROM_LOAD( "lo3_04a", 0x00000, 0x10000, CRC(80b67ba9) SHA1(fdbef463b26cd13c43596310f585432c6e0896d0) ) | |
| 752 | /* Colour PROMs */ | |
| 753 | ROM_REGION( 0x1800, REGION_PROMS, 0 ) | |
| 754 | ROM_LOAD( "lo1a.5", 0x000, 0x400, CRC(82391f30) SHA1(d7153c1f3a3e54de4d4d6f432fbcd66449b96b6e) ) | |
| 755 | ROM_LOAD( "lo2a.2", 0x400, 0x400, CRC(2bfc6288) SHA1(03d293ddc0c614b606be823826a4375b3d35901f) ) | |
| 750 | 756 | |
| 751 | // Scene tiles CLUT | |
| 752 | ROM_REGION( 0x10000, REGION_USER4, 0 ) | |
| 753 | ROM_LOAD( "lo3_13a", 0x0000, 0x10000, CRC(e44774a7) SHA1(010d95ea497690ddd2406b8fef1b0aee375a165e) ) | |
| 754 | ||
| 755 | // Colour PROMs | |
| 756 | ROM_REGION( 0x1000, REGION_PROMS, 0 ) | |
| 757 | ROM_LOAD( "lo1a", 0x400, 0x400, CRC(82391f30) SHA1(d7153c1f3a3e54de4d4d6f432fbcd66449b96b6e) ) | |
| 758 | ROM_LOAD( "lo2a", 0x000, 0x400, CRC(2bfc6288) SHA1(03d293ddc0c614b606be823826a4375b3d35901f) ) | |
| 757 | /* Object scale PROMs */ | |
| 758 | ROM_LOAD_NIB_LOW ( "lo_3.69", 0x800, 0x800, CRC(9d9c41a9) SHA1(aabeefe95274f10400b4b7810ea50afcc4f19fde) ) | |
| 759 | ROM_LOAD_NIB_HIGH( "lo_4.68", 0x800, 0x800, CRC(ca4874ef) SHA1(c742f79729b0dc4d227379e9109c7ed21b4c38bb) ) | |
| 759 | 760 | ROM_END |
| 760 | 761 | |
| 761 | GAME( 1986, lockon, 0, lockon, lockon, 0, ROT0, "Tatsumi", "Lock-On", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS ) | |
| 762 | 762 | |
| 763 | /************************************* | |
| 764 | * | |
| 765 | * Game driver(s) | |
| 766 | * | |
| 767 | *************************************/ | |
| 768 | ||
| 769 | GAME( 1986, lockon, 0, lockon, lockon, 0, ROT0, "Tatsumi", "Lock-On (rev. E)", 0 ) | |
| 770 | GAME( 1986, lockonc, lockon, lockon, lockone, 0, ROT0, "Tatsumi", "Lock-On (rev. C)", 0 ) |
| r1649 | r1650 | |
|---|---|---|
| 547 | 547 | ***************************************************************************/ |
| 548 | 548 | |
| 549 | 549 | #include "driver.h" |
| 550 | #include "deprecat.h" | |
| 550 | 551 | #include "machine/namcoio.h" |
| 551 | 552 | #include "sound/dac.h" |
| 552 | 553 | #include "sound/namco.h" |
| r1649 | r1650 | |
|---|---|---|
| 159 | 159 | ***************************************************************************/ |
| 160 | 160 | |
| 161 | 161 | #include "driver.h" |
| 162 | #include "deprecat.h" | |
| 162 | 163 | #include "taitoipt.h" |
| 163 | 164 | #include "video/taitoic.h" |
| 164 | 165 | #include "audio/taitosnd.h" |
| r1649 | r1650 | |
|---|---|---|
| 121 | 121 | */ |
| 122 | 122 | |
| 123 | 123 | #include "driver.h" |
| 124 | #include "deprecat.h" | |
| 124 | 125 | #include "machine/eeprom.h" |
| 125 | 126 | |
| 126 | 127 |
| r1649 | r1650 | |
|---|---|---|
| 37 | 37 | ***************************************************************************/ |
| 38 | 38 | |
| 39 | 39 | #include "driver.h" |
| 40 | #include "deprecat.h" | |
| 40 | 41 | #include "video/konamiic.h" |
| 41 | 42 | #include "cpu/z80/z80.h" |
| 42 | 43 | #include "machine/eeprom.h" |
| r1649 | r1650 | |
|---|---|---|
| 24 | 24 | */ |
| 25 | 25 | |
| 26 | 26 | #include "driver.h" |
| 27 | #include "deprecat.h" | |
| 27 | 28 | #include "machine/pcecommn.h" |
| 28 | 29 | #include "video/vdc.h" |
| 29 | 30 | #include "cpu/h6280/h6280.h" |
| r1649 | r1650 | |
|---|---|---|
| 20 | 20 | ***************************************************************************/ |
| 21 | 21 | |
| 22 | 22 | #include "driver.h" |
| 23 | #include "deprecat.h" | |
| 23 | 24 | #include "cpu/z80/z80.h" |
| 24 | 25 | #include "sound/2203intf.h" |
| 25 | 26 | #include "sound/msm5205.h" |
| r1649 | r1650 | |
|---|---|---|
| 22 | 22 | ***************************************************************************/ |
| 23 | 23 | |
| 24 | 24 | #include "driver.h" |
| 25 | #include "deprecat.h" | |
| 25 | 26 | #include "cpu/i8039/i8039.h" |
| 26 | 27 | #include "sound/ay8910.h" |
| 27 | 28 | #include "sound/samples.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "cpu/z80/z80.h" |
| 3 | 4 | #include "sound/dac.h" |
| 4 | 5 | #include "sound/sn76496.h" |
| r1649 | r1650 | |
|---|---|---|
| 52 | 52 | */ |
| 53 | 53 | |
| 54 | 54 | #include "driver.h" |
| 55 | #include "deprecat.h" | |
| 55 | 56 | #include "sound/ay8910.h" |
| 56 | 57 | #include "sound/dac.h" |
| 57 | 58 | #include "sound/5220intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 292 | 292 | ***************************************************************************/ |
| 293 | 293 | |
| 294 | 294 | #include "driver.h" |
| 295 | #include "deprecat.h" | |
| 295 | 296 | #include "rendlay.h" |
| 296 | 297 | #include "segas32.h" |
| 297 | 298 | #include "machine/eeprom.h" |
| r1649 | r1650 | |
|---|---|---|
| 1676 | 1676 | } |
| 1677 | 1677 | |
| 1678 | 1678 | |
| 1679 | /* ( YEAR NAME PARENT MACHINE INPUT INIT MONITOR COMPANY FULLNAME FLAGS ) */ | |
| 1680 | GAME( 1985, perfrman, 0, perfrman, perfrman, 0, ROT270, "[Toaplan] Data East Corporation","Performan (Japan)", 0 ) | |
| 1681 | GAME( 1985, perfrmau, perfrman, perfrman, perfrman, 0, ROT270, "[Toaplan] Data East USA", "Performan (US)", 0 ) | |
| 1679 | /* ( YEAR NAME PARENT MACHINE INPUT INIT MONITOR COMPANY FULLNAME FLAGS ) */ | |
| 1680 | GAME( 1985, perfrman, 0, perfrman, perfrman, 0, ROT270, "[Toaplan] Data East Corporation", "Performan (Japan)", 0 ) | |
| 1681 | GAME( 1985, perfrmau, perfrman, perfrman, perfrman, 0, ROT270, "[Toaplan] Data East USA", "Performan (US)", 0 ) | |
| 1682 | 1682 | GAME( 1985, tigerh, 0, tigerh, tigerh, tigerh, ROT270, "Taito America Corp.", "Tiger Heli (US)", GAME_NO_COCKTAIL ) |
| 1683 | GAME( 1985, tigerh2, tigerh, tigerh, tigerh, tigerh, ROT270, "Taito Corp.", "Tiger Heli (Japan set 1)", GAME_NOT_WORKING | GAME_NO_COCKTAIL ) | |
| 1684 | GAME( 1985, tigerhj, tigerh, tigerh, tigerh, tigerh, ROT270, "Taito Corp.", "Tiger Heli (Japan set 2)", GAME_NO_COCKTAIL ) | |
| 1685 | GAME( 1985, tigerhb1, tigerh, tigerhb, tigerh, 0, ROT270, "bootleg", "Tiger Heli (bootleg set 1)", 0 ) | |
| 1686 | GAME( 1985, tigerhb2, tigerh, tigerhb, tigerh, 0, ROT270, "bootleg", "Tiger Heli (bootleg set 2)", GAME_NO_COCKTAIL ) | |
| 1687 | GAME( 1986, slapfigh, 0, slapfigh, slapfigh, slapfigh, ROT270, "Taito", "Slap Fight (set 1)", GAME_NOT_WORKING | GAME_NO_COCKTAIL ) | |
| 1688 | GAME( 1986, slapfiga, slapfigh, slapfigh, slapfigh, slapfigh, ROT270, "Taito", "Slap Fight (set 2)", GAME_NOT_WORKING | GAME_NO_COCKTAIL ) | |
| 1689 | GAME( 1986, slapbtjp, slapfigh, slapfigh, slapfigh, 0, ROT270, "bootleg", "Slap Fight (Japan bootleg)", GAME_NO_COCKTAIL ) | |
| 1690 | GAME( 1986, slapbtuk, slapfigh, slapbtuk, slapfigh, 0, ROT270, "bootleg", "Slap Fight (English bootleg)", GAME_NO_COCKTAIL ) | |
| 1691 | GAME( 1986, slapfgtr, slapfigh, slapbtuk, slapfigh, 0, ROT270, "bootleg", "Slap Fight (bootleg)", GAME_NO_COCKTAIL ) // PCB labeled 'slap fighter' | |
| 1692 | GAME( 1986, alcon, slapfigh, slapfigh, slapfigh, slapfigh, ROT270, "Taito America Corp.","Alcon", GAME_NOT_WORKING | GAME_NO_COCKTAIL ) | |
| 1693 | GAME( 1986, getstar, 0, slapfigh, getstar, getstar, ROT0, "Taito", "Guardian", GAME_NOT_WORKING | GAME_NO_COCKTAIL ) | |
| 1694 | GAME( 1986, getstarj, getstar, slapfigh, getstar, getstar, ROT0, "Taito", "Get Star (Japan)", GAME_NOT_WORKING | GAME_NO_COCKTAIL ) | |
| 1695 | GAME( 1986, getstarb, getstar, slapfigh, getstar, getstarb, ROT0, "bootleg","Get Star (bootleg, set 1)", GAME_NO_COCKTAIL ) | |
| 1696 | GAME( 1986, gtstarba, getstar, slapfigh, gtstarba, gtstarba, ROT0, "bootleg","Get Star (bootleg, set 2)", GAME_NO_COCKTAIL ) | |
| 1683 | GAME( 1985, tigerh2, tigerh, tigerh, tigerh, tigerh, ROT270, "Taito", "Tiger Heli (Japan set 1)", GAME_NOT_WORKING | GAME_NO_COCKTAIL ) | |
| 1684 | GAME( 1985, tigerhj, tigerh, tigerh, tigerh, tigerh, ROT270, "Taito", "Tiger Heli (Japan set 2)", GAME_NO_COCKTAIL ) | |
| 1685 | GAME( 1985, tigerhb1, tigerh, tigerhb, tigerh, 0, ROT270, "bootleg", "Tiger Heli (bootleg set 1)", 0 ) | |
| 1686 | GAME( 1985, tigerhb2, tigerh, tigerhb, tigerh, 0, ROT270, "bootleg", "Tiger Heli (bootleg set 2)", GAME_NO_COCKTAIL ) | |
| 1687 | GAME( 1986, slapfigh, 0, slapfigh, slapfigh, slapfigh, ROT270, "Taito", "Slap Fight (set 1)", GAME_NOT_WORKING | GAME_NO_COCKTAIL ) | |
| 1688 | GAME( 1986, slapfiga, slapfigh, slapfigh, slapfigh, slapfigh, ROT270, "Taito", "Slap Fight (set 2)", GAME_NOT_WORKING | GAME_NO_COCKTAIL ) | |
| 1689 | GAME( 1986, slapbtjp, slapfigh, slapfigh, slapfigh, 0, ROT270, "bootleg", "Slap Fight (Japan bootleg)", GAME_NO_COCKTAIL ) | |
| 1690 | GAME( 1986, slapbtuk, slapfigh, slapbtuk, slapfigh, 0, ROT270, "bootleg", "Slap Fight (English bootleg)", GAME_NO_COCKTAIL ) | |
| 1691 | GAME( 1986, slapfgtr, slapfigh, slapbtuk, slapfigh, 0, ROT270, "bootleg", "Slap Fight (bootleg)", GAME_NO_COCKTAIL ) // PCB labeled 'slap fighter' | |
| 1692 | GAME( 1986, alcon, slapfigh, slapfigh, slapfigh, slapfigh, ROT270, "Taito America Corp.", "Alcon", GAME_NOT_WORKING | GAME_NO_COCKTAIL ) | |
| 1693 | GAME( 1986, getstar, 0, slapfigh, getstar, getstar, ROT0, "Taito", "Guardian", GAME_NOT_WORKING | GAME_NO_COCKTAIL ) | |
| 1694 | GAME( 1986, getstarj, getstar, slapfigh, getstar, getstar, ROT0, "Taito", "Get Star (Japan)", GAME_NOT_WORKING | GAME_NO_COCKTAIL ) | |
| 1695 | GAME( 1986, getstarb, getstar, slapfigh, getstar, getstarb, ROT0, "bootleg", "Get Star (bootleg set 1)", GAME_NO_COCKTAIL ) | |
| 1696 | GAME( 1986, gtstarba, getstar, slapfigh, gtstarba, gtstarba, ROT0, "bootleg", "Get Star (bootleg set 2)", GAME_NO_COCKTAIL ) |
| r1649 | r1650 | |
|---|---|---|
| 270 | 270 | */ |
| 271 | 271 | |
| 272 | 272 | #include "driver.h" |
| 273 | #include "deprecat.h" | |
| 273 | 274 | |
| 274 | 275 | #include "cpu/sh2/sh2.h" |
| 275 | 276 | #include "machine/eeprom.h" |
| r1649 | r1650 | |
|---|---|---|
| 75 | 75 | */ |
| 76 | 76 | |
| 77 | 77 | #include "driver.h" |
| 78 | #include "deprecat.h" | |
| 78 | 79 | #include "cpu/m68000/m68000.h" |
| 79 | 80 | #include "cpu/h6280/h6280.h" |
| 80 | 81 | #include "decocrpt.h" |
| r1649 | r1650 | |
|---|---|---|
| 96 | 96 | |
| 97 | 97 | |
| 98 | 98 | #include "driver.h" |
| 99 | #include "deprecat.h" | |
| 99 | 100 | #include "sound/ay8910.h" |
| 100 | 101 | |
| 101 | 102 |
| r1649 | r1650 | |
|---|---|---|
| 55 | 55 | ***************************************************************************/ |
| 56 | 56 | |
| 57 | 57 | #include "driver.h" |
| 58 | #include "deprecat.h" | |
| 58 | 59 | #include "machine/eeprom.h" |
| 59 | 60 | #include "sound/okim6295.h" |
| 60 | 61 |
| r1649 | r1650 | |
|---|---|---|
| 46 | 46 | *********************************************************************************************************************/ |
| 47 | 47 | |
| 48 | 48 | #include "driver.h" |
| 49 | #include "deprecat.h" | |
| 49 | 50 | #include "cpu/h83002/h83002.h" |
| 50 | 51 | |
| 51 | 52 | #define BISHJAN_DEBUG 0 |
| r1649 | r1650 | |
| 439 | 440 | } |
| 440 | 441 | |
| 441 | 442 | static MACHINE_DRIVER_START( bishjan ) |
| 442 | MDRV_CPU_ADD(H830 | |
| 443 | MDRV_CPU_ADD(H83044, 44100000/3) | |
| 443 | 444 | MDRV_CPU_PROGRAM_MAP( bishjan_map, 0 ) |
| 444 | 445 | MDRV_CPU_VBLANK_INT(bishjan_interrupt,2) |
| 445 | 446 |
| r1649 | r1650 | |
|---|---|---|
| 18 | 18 | |
| 19 | 19 | |
| 20 | 20 | #include "driver.h" |
| 21 | #include "deprecat.h" | |
| 21 | 22 | #include "machine/atarigen.h" |
| 22 | 23 | #include "audio/atarijsa.h" |
| 23 | 24 | #include "offtwall.h" |
| r1649 | r1650 | |
|---|---|---|
| 130 | 130 | // Directives |
| 131 | 131 | |
| 132 | 132 | #include "driver.h" |
| 133 | #include "deprecat.h" | |
| 133 | 134 | |
| 134 | 135 | #define HVOLTAGE_HACK 0 |
| 135 | 136 | #define EASY_TEST_MODE 1 |
| r1649 | r1650 | |
| 141 | 142 | // Imports |
| 142 | 143 | |
| 143 | 144 | // Common Hardware Start |
| 144 | #define EQUITES_ADD_SOUNDBOARD7 \ | |
| 145 | MDRV_CPU_ADD(8085A, XTAL_6_144MHz) /* verified on pcb */ \ | |
| 146 | /* audio CPU */ \ | |
| 147 | MDRV_CPU_PROGRAM_MAP(equites_s_readmem, equites_s_writemem) \ | |
| 148 | MDRV_CPU_IO_MAP(0, equites_s_writeport) \ | |
| 149 | MDRV_CPU_PERIODIC_INT(nmi_line_pulse, 4000) \ | |
| 150 | MDRV_SPEAKER_STANDARD_MONO("mono") \ | |
| 151 | \ | |
| 152 | MDRV_SOUND_ADD(MSM5232, XTAL_6_144MHz/2) \ | |
| 153 | /* OSC is connected to a pot which varies the frequency of M5232 from 6.144mhz to few Khz. Here I assume a value which gives a good pitch */ \ | |
| 154 | MDRV_SOUND_CONFIG(equites_5232intf) \ | |
| 155 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) \ | |
| 156 | \ | |
| 157 | MDRV_SOUND_ADD(AY8910, XTAL_6_144MHz/4) /* verified on pcb */ \ | |
| 158 | MDRV_SOUND_CONFIG(equites_8910intf) \ | |
| 159 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) \ | |
| 160 | \ | |
| 161 | MDRV_SOUND_ADD(DAC, 0) \ | |
| 162 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) \ | |
| 163 | \ | |
| 164 | MDRV_SOUND_ADD(DAC, 0) \ | |
| 165 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) \ | |
| 166 | ||
| 167 | 145 | extern void equites_8404init(void); |
| 168 | 146 | extern void equites_8404rule(unsigned pc, int offset, int data); |
| 169 | 147 | |
| r1649 | r1650 | |
| 178 | 156 | extern struct MSM5232interface equites_5232intf; |
| 179 | 157 | extern struct AY8910interface equites_8910intf; |
| 180 | 158 | |
| 181 | static ADDRESS_MAP_START( equites_s_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 182 | AM_RANGE(0x0000, 0xbfff) AM_READ(MRA8_ROM) // sound program | |
| 159 | static ADDRESS_MAP_START( equites_s_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 160 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 183 | 161 | AM_RANGE(0xc000, 0xc000) AM_READ(soundlatch_r) |
| 184 | AM_RANGE(0xe000, 0xe0ff) AM_READ(MRA8_RAM) // stack and variables | |
| 185 | ADDRESS_MAP_END | |
| 186 | ||
| 187 | static ADDRESS_MAP_START( equites_s_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 188 | AM_RANGE(0x0000, 0xbfff) AM_WRITE(MWA8_ROM) // sound program | |
| 189 | 162 | AM_RANGE(0xc080, 0xc08d) AM_WRITE(equites_5232_w) |
| 190 | 163 | AM_RANGE(0xc0a0, 0xc0a0) AM_WRITE(equites_8910data_w) |
| 191 | 164 | AM_RANGE(0xc0a1, 0xc0a1) AM_WRITE(equites_8910control_w) |
| r1649 | r1650 | |
| 195 | 168 | AM_RANGE(0xc0e0, 0xc0e0) AM_WRITE(equites_dac1_w) |
| 196 | 169 | AM_RANGE(0xc0f8, 0xc0fe) AM_WRITE(MWA8_NOP) // soundboard I/O, ignored |
| 197 | 170 | AM_RANGE(0xc0ff, 0xc0ff) AM_WRITE(soundlatch_clear_w) |
| 198 | AM_RANGE(0xe000, 0xe0ff) AM_ | |
| 171 | AM_RANGE(0xe000, 0xe0ff) AM_ | |
| 199 | 172 | ADDRESS_MAP_END |
| 200 | 173 | |
| 201 | static ADDRESS_MAP_START( equites_s_ | |
| 174 | static ADDRESS_MAP_START( equites_s_ | |
| 202 | 175 | AM_RANGE(0x00e0, 0x00e5) AM_WRITE(MWA8_NOP) // soundboard I/O, ignored |
| 203 | 176 | ADDRESS_MAP_END |
| 177 | ||
| 178 | static MACHINE_DRIVER_START( equites_sound ) | |
| 179 | ||
| 180 | /* basic machine hardware */ | |
| 181 | MDRV_CPU_ADD(8085A, XTAL_6_144MHz) /* verified on pcb */ | |
| 182 | MDRV_CPU_PROGRAM_MAP(equites_s_map,0) | |
| 183 | MDRV_CPU_IO_MAP(equites_s_portmap,0) | |
| 184 | MDRV_CPU_PERIODIC_INT(nmi_line_pulse,4000) | |
| 185 | ||
| 186 | /* sound hardware */ | |
| 187 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 188 | ||
| 189 | MDRV_SOUND_ADD(MSM5232, XTAL_6_144MHz/2) | |
| 190 | /* OSC is connected to a pot which varies the frequency of M5232 | |
| 191 | from 6.144mhz to few Khz. Here I assume a value which gives a good pitch */ | |
| 192 | MDRV_SOUND_CONFIG(equites_5232intf) | |
| 193 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) | |
| 194 | ||
| 195 | MDRV_SOUND_ADD(AY8910, XTAL_6_144MHz/4) /* verified on pcb */ | |
| 196 | MDRV_SOUND_CONFIG(equites_8910intf) | |
| 197 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) | |
| 198 | ||
| 199 | MDRV_SOUND_ADD(DAC, 0) | |
| 200 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) | |
| 201 | ||
| 202 | MDRV_SOUND_ADD(DAC, 0) | |
| 203 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) | |
| 204 | MACHINE_DRIVER_END | |
| 205 | ||
| 204 | 206 | // Common Hardware End |
| 205 | 207 | |
| 206 | 208 | // Equites Hardware |
| r1649 | r1650 | |
| 326 | 328 | // Main CPU Memory Map |
| 327 | 329 | |
| 328 | 330 | // Equites Hardware |
| 329 | static ADDRESS_MAP_START( equites_readmem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 330 | AM_RANGE(0x000000, 0x00ffff) AM_READ(MRA16_ROM) // main program | |
| 331 | AM_RANGE(0x040000, 0x040fff) AM_READ(MRA16_RAM) // work RAM | |
| 332 | AM_RANGE(0x080000, 0x080fff) AM_READ(MRA16_RAM) // char RAM | |
| 333 | AM_RANGE(0x0c0000, 0x0c0fff) AM_READ(MRA16_RAM) // scroll RAM | |
| 334 | AM_RANGE(0x100000, 0x100fff) AM_READ(equites_spriteram_r) // sprite RAM | |
| 335 | AM_RANGE(0x140000, 0x1407ff) AM_READ(equites_8404_r) // 8404 RAM | |
| 336 | AM_RANGE(0x180000, 0x180001) AM_READ(input_port_1_word_r) // MSB: DIP switches | |
| 337 | AM_RANGE(0x1c0000, 0x1c0001) AM_READ(equites_joyport_r) // joyport[2211] (shares the same addr with scrollreg) | |
| 338 | ADDRESS_MAP_END | |
| 339 | ||
| 340 | static ADDRESS_MAP_START( equites_writemem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 341 | AM_RANGE(0x000000, 0x00ffff) AM_WRITE(MWA16_NOP) // ROM area is written several times (dev system?) | |
| 342 | AM_RANGE(0x040000, 0x040fff) AM_WRITE(MWA16_RAM) AM_BASE(&equites_workram) | |
| 343 | AM_RANGE(0x080000, 0x080fff) AM_WRITE(equites_charram_w) AM_BASE(&videoram16) | |
| 344 | AM_RANGE(0x0c0000, 0x0c0fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16_2) | |
| 345 | AM_RANGE(0x100000, 0x100fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) | |
| 346 | AM_RANGE(0x140000, 0x1407ff) AM_WRITE(MWA16_RAM) AM_BASE(&equites_8404ram) | |
| 347 | AM_RANGE(0x180000, 0x180001) AM_WRITE(soundlatch_word_w) // LSB: sound latch | |
| 331 | static ADDRESS_MAP_START( equites_map, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 332 | AM_RANGE(0x000000, 0x00ffff) AM_ROM AM_WRITENOP // ROM area is written several times (dev system?) | |
| 333 | AM_RANGE(0x040000, 0x040fff) AM_RAM AM_BASE(&equites_workram) | |
| 334 | AM_RANGE(0x080000, 0x080fff) AM_READWRITE(MRA16_RAM, equites_charram_w) AM_BASE(&videoram16) | |
| 335 | AM_RANGE(0x0c0000, 0x0c0fff) AM_RAM AM_BASE(&spriteram16_2) | |
| 336 | AM_RANGE(0x100000, 0x100fff) AM_READWRITE(equites_spriteram_r, MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) | |
| 337 | AM_RANGE(0x140000, 0x1407ff) AM_READWRITE(equites_8404_r, MWA16_RAM) AM_BASE(&equites_8404ram) | |
| 338 | AM_RANGE(0x180000, 0x180001) AM_READWRITE(input_port_1_word_r, soundlatch_word_w) // LSB: sound latch | |
| 348 | 339 | AM_RANGE(0x184000, 0x184001) AM_WRITE(equites_flip0_w) // [MMLL] MM: normal screen, LL: use joystick 1 only |
| 349 | 340 | AM_RANGE(0x188000, 0x188001) AM_WRITE(MWA16_NOP) // 8404 control port1 |
| 350 | 341 | AM_RANGE(0x18c000, 0x18c001) AM_WRITE(MWA16_NOP) // 8404 control port2 |
| 351 | 342 | AM_RANGE(0x1a4000, 0x1a4001) AM_WRITE(equites_flip1_w) // [MMLL] MM: flip screen, LL: use both joysticks |
| 352 | 343 | AM_RANGE(0x1a8000, 0x1a8001) AM_WRITE(MWA16_NOP) // 8404 control port3 |
| 353 | 344 | AM_RANGE(0x1ac000, 0x1ac001) AM_WRITE(MWA16_NOP) // 8404 control port4 |
| 354 | AM_RANGE(0x1c0000, 0x1c0001) AM_WRITE(equites_scrollreg_w) // scroll register[XXYY] | |
| 345 | AM_RANGE(0x1c0000, 0x1c0001) AM_READWRITE(equites_joyport_r, equites_scrollreg_w) // scroll register[XXYY] | |
| 355 | 346 | AM_RANGE(0x380000, 0x380001) AM_WRITE(equites_bgcolor_w) // bg color register[CC--] |
| 356 | 347 | AM_RANGE(0x780000, 0x780001) AM_WRITE(MWA16_NOP) // watchdog |
| 357 | 348 | ADDRESS_MAP_END |
| 358 | 349 | |
| 359 | 350 | // Splendor Blast Hardware |
| 360 | static ADDRESS_MAP_START( splndrbt_readmem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 361 | AM_RANGE(0x000000, 0x00ffff) AM_READ(MRA16_ROM) // main program | |
| 362 | AM_RANGE(0x040000, 0x040fff) AM_READ(MRA16_RAM) // work RAM | |
| 351 | static ADDRESS_MAP_START( splndrbt_map, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 352 | AM_RANGE(0x000000, 0x00ffff) AM_ROM | |
| 353 | AM_RANGE(0x040000, 0x040fff) AM_RAM AM_BASE(&equites_workram) // work RAM | |
| 363 | 354 | AM_RANGE(0x080000, 0x080001) AM_READ(input_port_0_word_r) // joyport [2211] |
| 364 | AM_RANGE(0x0c0000, 0x0c0001) AM_READ(input_port_1_word_r) // MSB: DIP switches LSB: not used | |
| 365 | AM_RANGE(0x100000, 0x100001) AM_READ(MRA16_RAM) // no read | |
| 366 | AM_RANGE(0x1c0000, 0x1c0001) AM_READ(MRA16_RAM) // LSB: watchdog | |
| 367 | AM_RANGE(0x180000, 0x1807ff) AM_READ(equites_8404_r) // 8404 RAM | |
| 368 | AM_RANGE(0x200000, 0x200fff) AM_READ(MRA16_RAM) // char page 0 | |
| 369 | AM_RANGE(0x201000, 0x201fff) AM_READ(splndrbt_bankedchar_r) // banked char page 1, 2 | |
| 370 | AM_RANGE(0x400000, 0x400fff) AM_READ(MRA16_RAM) // scroll RAM 0,1 | |
| 371 | AM_RANGE(0x600000, 0x6001ff) AM_READ(MRA16_RAM) // sprite RAM 0,1,2 | |
| 372 | ADDRESS_MAP_END | |
| 373 | ||
| 374 | static ADDRESS_MAP_START( splndrbt_writemem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 375 | AM_RANGE(0x000000, 0x00ffff) AM_WRITE(MWA16_NOP) | |
| 376 | AM_RANGE(0x040000, 0x040fff) AM_WRITE(MWA16_RAM) AM_BASE(&equites_workram) // work RAM | |
| 377 | AM_RANGE(0x0c0000, 0x0c0001) AM_WRITE(splndrbt_flip0_w) // [MMLL] MM: bg color register, LL: normal screen | |
| 355 | AM_RANGE(0x0c0000, 0x0c0001) AM_READWRITE(input_port_1_word_r, splndrbt_flip0_w) // [MMLL] MM: bg color register, LL: normal screen | |
| 378 | 356 | AM_RANGE(0x0c4000, 0x0c4001) AM_WRITE(MWA16_NOP) // 8404 control port1 |
| 379 | 357 | AM_RANGE(0x0c8000, 0x0c8001) AM_WRITE(MWA16_NOP) // 8404 control port2 |
| 380 | 358 | AM_RANGE(0x0cc000, 0x0cc001) AM_WRITE(splndrbt_selchar0_w) // select active char map |
| r1649 | r1650 | |
| 382 | 360 | AM_RANGE(0x0e4000, 0x0e4001) AM_WRITE(MWA16_NOP) // 8404 control port3 |
| 383 | 361 | AM_RANGE(0x0e8000, 0x0e8001) AM_WRITE(MWA16_NOP) // 8404 control port4 |
| 384 | 362 | AM_RANGE(0x0ec000, 0x0ec001) AM_WRITE(splndrbt_selchar1_w) // select active char map |
| 385 | AM_RANGE(0x100000, 0x100001) AM_ | |
| 363 | AM_RANGE(0x100000, 0x100001) AM_ | |
| 386 | 364 | AM_RANGE(0x140000, 0x140001) AM_WRITE(soundlatch_word_w) // LSB: sound command |
| 387 | AM_RANGE(0x1c0000, 0x1c0001) AM_WRITE(MWA16_RAM) AM_BASE(&splndrbt_scrolly) // scrolly | |
| 388 | AM_RANGE(0x180000, 0x1807ff) AM_WRITE(MWA16_RAM) AM_BASE(&equites_8404ram) // 8404 RAM | |
| 389 | AM_RANGE(0x200000, 0x200fff) AM_WRITE(splndrbt_charram_w) AM_BASE(&videoram16) AM_SIZE(&videoram_size) // char RAM page 0 | |
| 390 | AM_RANGE(0x201000, 0x201fff) AM_WRITE(splndrbt_bankedchar_w) // banked char RAM page 1,2 | |
| 391 | AM_RANGE(0x400000, 0x400fff) AM_WRITE(splndrbt_scrollram_w) AM_BASE(&spriteram16_2) // scroll RAM 0,1 | |
| 392 | AM_RANGE(0x600000, 0x6001ff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) // sprite RAM 0,1,2 | |
| 365 | AM_RANGE(0x1c0000, 0x1c0001) AM_RAM AM_BASE(&splndrbt_scrolly) // scrolly | |
| 366 | AM_RANGE(0x180000, 0x1807ff) AM_READWRITE(equites_8404_r, MWA16_RAM) AM_BASE(&equites_8404ram) // 8404 RAM | |
| 367 | AM_RANGE(0x200000, 0x200fff) AM_READWRITE(MRA16_RAM, splndrbt_charram_w) AM_BASE(&videoram16) AM_SIZE(&videoram_size) // char RAM page 0 | |
| 368 | AM_RANGE(0x201000, 0x201fff) AM_READWRITE(splndrbt_bankedchar_r, splndrbt_bankedchar_w) // banked char RAM page 1,2 | |
| 369 | AM_RANGE(0x400000, 0x400fff) AM_READWRITE(MRA16_RAM, splndrbt_scrollram_w) AM_BASE(&spriteram16_2) // scroll RAM 0,1 | |
| 370 | AM_RANGE(0x600000, 0x6001ff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) // sprite RAM 0,1,2 | |
| 393 | 371 | ADDRESS_MAP_END |
| 394 | 372 | |
| 395 | 373 | /******************************************************************************/ |
| r1649 | r1650 | |
| 687 | 665 | |
| 688 | 666 | /* basic machine hardware */ |
| 689 | 667 | MDRV_CPU_ADD(M68000, XTAL_12MHz/4) /* 68000P8 running at 3mhz! verified on pcb */ |
| 690 | MDRV_CPU_PROGRAM_MAP(equites_ | |
| 668 | MDRV_CPU_PROGRAM_MAP(equites_ | |
| 691 | 669 | MDRV_CPU_VBLANK_INT(equites_interrupt, 2) |
| 692 | 670 | |
| 693 | 671 | MDRV_SCREEN_REFRESH_RATE(60) |
| r1649 | r1650 | |
| 706 | 684 | MDRV_VIDEO_UPDATE(equites) |
| 707 | 685 | |
| 708 | 686 | /* sound hardware */ |
| 709 | | |
| 687 | M | |
| 710 | 688 | |
| 711 | 689 | MACHINE_DRIVER_END |
| 712 | 690 | |
| r1649 | r1650 | |
| 714 | 692 | |
| 715 | 693 | /* basic machine hardware */ |
| 716 | 694 | MDRV_CPU_ADD(M68000, XTAL_24MHz/4) /* 68000P8 running at 6mhz, verified on pcb */ |
| 717 | MDRV_CPU_PROGRAM_MAP(splndrbt_ | |
| 695 | MDRV_CPU_PROGRAM_MAP(splndrbt_ | |
| 718 | 696 | MDRV_CPU_VBLANK_INT(splndrbt_interrupt, 2) |
| 719 | 697 | |
| 720 | 698 | MDRV_SCREEN_REFRESH_RATE(60) |
| r1649 | r1650 | |
| 734 | 712 | MDRV_VIDEO_UPDATE(splndrbt) |
| 735 | 713 | |
| 736 | 714 | /* sound hardware */ |
| 737 | | |
| 715 | M | |
| 738 | 716 | |
| 739 | 717 | MACHINE_DRIVER_END |
| 740 | 718 |
| r1649 | r1650 | |
|---|---|---|
| 23 | 23 | */ |
| 24 | 24 | |
| 25 | 25 | #include "driver.h" |
| 26 | #include " | |
| 26 | #include " | |
| 27 | 27 | #include "machine/laserdsc.h" |
| 28 | 28 | |
| 29 | 29 | /* From daphne */ |
| r1649 | r1650 | |
| 373 | 373 | } |
| 374 | 374 | |
| 375 | 375 | /* YEAR NAME PARENT MACHINE INPUT INIT MONITOR COMPANY FULLNAME FLAGS) */ |
| 376 | GAME( 1983, esh, 0, esh, esh, esh, ROT0, "Funai/Gakken", "Esh's Aurunmilla | |
| 376 | GAME( 1983, esh, 0, esh, esh, esh, ROT0, "Funai/Gakken", "Esh's Aurunmilla | |
| 377 | 377 | GAME( 1983, esha, 0, esh, esh, esh, ROT0, "Funai/Gakken", "Esh's Aurunmilla (Set 2)", GAME_NOT_WORKING|GAME_NO_SOUND) |
| 378 | 378 | GAME( 1983, eshb, 0, esh, esh, esh, ROT0, "Funai/Gakken", "Esh's Aurunmilla (Set 3)", GAME_NOT_WORKING|GAME_NO_SOUND) |
| r1649 | r1650 | |
|---|---|---|
| 7127 | 7127 | |
| 7128 | 7128 | |
| 7129 | 7129 | |
| 7130 | /* YEAR NAME PARENT BIOS MACHINE INPUT INIT MONITOR */ | |
| 7131 | GAME( 1990, neogeo, 0, neogeo, neogeo, neogeo, ROT0, "SNK", "Neo-Geo", GAME_IS_BIOS_ROOT ) | |
| 7130 | /* YEAR NAME PARENT MACHINE INPUT INIT MONITOR */ | |
| 7131 | GAME( 1990, neogeo, 0, neogeo, neogeo, neogeo, ROT0, "SNK", "Neo-Geo", GAME_IS_BIOS_ROOT ) | |
| 7132 | 7132 | |
| 7133 | 7133 | /* SNK */ |
| 7134 | GAME( 1990, nam1975, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "NAM-1975", 0 ) | |
| 7135 | GAME( 1990, bstars, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Baseball Stars Professional", 0 ) | |
| 7136 | GAME( 1990, tpgolf, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Top Player's Golf", 0 ) | |
| 7137 | GAME( 1990, mahretsu, neogeo, neogeo, mjneogeo,neogeo, ROT0, "SNK", "Mahjong Kyoretsuden", 0 ) | |
| 7138 | GAME( 1990, ridhero, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Riding Hero (set 1)", 0 ) | |
| 7139 | GAME( 1990, ridheroh, ridhero, neogeo, neogeo, neogeo, ROT0, "SNK", "Riding Hero (set 2)", 0 ) | |
| 7140 | GAME( 1991, alpham2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Alpha Mission II / ASO II - Last Guardian", 0 ) | |
| 7141 | GAME( 1990, cyberlip, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Cyber-Lip", 0 ) | |
| 7142 | GAME( 1990, superspy, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "The Super Spy", 0 ) | |
| 7143 | GAME( 1992, mutnat, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Mutation Nation", 0 ) | |
| 7144 | GAME( 1991, kotm, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "King of the Monsters (set 1)", 0 ) | |
| 7145 | GAME( 1991, kotmh, kotm, neogeo, neogeo, neogeo, ROT0, "SNK", "King of the Monsters (set 2)", 0 ) | |
| 7146 | GAME( 1991, sengoku, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Sengoku / Sengoku Denshou (set 1)", 0 ) | |
| 7147 | GAME( 1991, sengokh, sengoku, neogeo, neogeo, neogeo, ROT0, "SNK", "Sengoku / Sengoku Denshou (set 2)", 0 ) | |
| 7148 | GAME( 1991, burningf, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Burning Fight (set 1)", 0 ) | |
| 7149 | GAME( 1991, burningh, burningf, neogeo, neogeo, neogeo, ROT0, "SNK", "Burning Fight (set 2)", 0 ) | |
| 7150 | GAME( 1990, lbowling, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "League Bowling", 0 ) | |
| 7151 | GAME( 1991, gpilots, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Ghost Pilots", 0 ) | |
| 7152 | GAME( 1990, joyjoy, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Puzzled / Joy Joy Kid", 0 ) | |
| 7153 | GAME( 1991, quizdais, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Quiz Daisousa Sen - The Last Count Down", 0 ) | |
| 7154 | GAME( 1992, lresort, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Last Resort", 0 ) | |
| 7155 | GAME( 1991, eightman, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK / Pallas", "Eight Man", 0 ) | |
| 7156 | GAME( 1991, legendos, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Legend of Success Joe / Ashitano Joe Densetsu", 0 ) | |
| 7157 | GAME( 1991, 2020bb, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK / Pallas", "2020 Super Baseball (set 1)", 0 ) | |
| 7158 | GAME( 1991, 2020bba, 2020bb, neogeo, neogeo, neogeo, ROT0, "SNK / Pallas", "2020 Super Baseball (set 2)", 0 ) | |
| 7159 | GAME( 1991, 2020bbh, 2020bb, neogeo, neogeo, neogeo, ROT0, "SNK / Pallas", "2020 Super Baseball (set 3)", 0 ) | |
| 7160 | GAME( 1991, socbrawl, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Soccer Brawl (set 1)", 0 ) | |
| 7161 | GAME( 1991, socbrala, socbrawl, neogeo, neogeo, neogeo, ROT0, "SNK", "Soccer Brawl (set 2)", 0 ) | |
| 7162 | GAME( 1991, fatfury1, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Fatal Fury - King of Fighters / Garou Densetsu - shukumei no tatakai", 0 ) | |
| 7163 | GAME( 1991, roboarmy, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Robo Army (set 1)", 0 ) | |
| 7164 | GAME( 1991, roboarma, roboarmy, neogeo, neogeo, neogeo, ROT0, "SNK", "Robo Army (set 2)", 0 ) | |
| 7165 | GAME( 1992, fbfrenzy, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Football Frenzy", 0 ) | |
| 7166 | GAME( 1992, kotm2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "King of the Monsters 2 - The Next Thing", 0 ) | |
| 7167 | GAME( 1993, sengoku2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Sengoku 2 / Sengoku Denshou 2", 0 ) | |
| 7168 | GAME( 1992, bstars2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Baseball Stars 2", 0 ) | |
| 7169 | GAME( 1992, quizdai2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Quiz Meitantei Neo & Geo - Quiz Daisousa Sen part 2", 0 ) | |
| 7170 | GAME( 1993, 3countb, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "3 Count Bout / Fire Suplex", 0 ) | |
| 7171 | GAME( 1992, aof, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Art of Fighting / Ryuuko no Ken", 0 ) | |
| 7172 | GAME( 1993, samsho, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Samurai Shodown / Samurai Spirits", 0 ) | |
| 7173 | GAME( 1994, tophuntr, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Top Hunter - Roddy & Cathy (set 1)", 0 ) | |
| 7174 | GAME( 1994, tophunta, tophuntr, neogeo, neogeo, neogeo, ROT0, "SNK", "Top Hunter - Roddy & Cathy (set 2)", 0 ) | |
| 7175 | GAME( 1992, fatfury2, neogeo, neogeo, neogeo, fatfury2, ROT0, "SNK", "Fatal Fury 2 / Garou Densetsu 2 - arata-naru tatakai", 0 ) | |
| 7176 | GAME( 1992, ssideki, neogeo, neogeo, neogeo, fatfury2, ROT0, "SNK", "Super Sidekicks / Tokuten Ou", 0 ) | |
| 7177 | GAME( 1994, kof94, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '94", 0 ) | |
| 7178 | GAME( 1994, aof2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Art of Fighting 2 / Ryuuko no Ken 2 (set 1)", 0 ) | |
| 7179 | GAME( 1994, aof2a, aof2, neogeo, neogeo, neogeo, ROT0, "SNK", "Art of Fighting 2 / Ryuuko no Ken 2 (set 2)", 0 ) | |
| 7180 | GAME( 1993, fatfursp, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Fatal Fury Special / Garou Densetsu Special (set 1)", 0 ) | |
| 7181 | GAME( 1993, fatfursa, fatfursp, neogeo, neogeo, neogeo, ROT0, "SNK", "Fatal Fury Special / Garou Densetsu Special (set 2)", 0 ) | |
| 7182 | GAME( 1995, savagere, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Savage Reign / Fu'un Mokushiroku - kakutou sousei", 0 ) | |
| 7183 | GAME( 1994, ssideki2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Super Sidekicks 2 - The World Championship / Tokuten Ou 2 - real fight football", 0 ) | |
| 7184 | GAME( 1994, samsho2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Samurai Shodown II / Shin Samurai Spirits - Haohmaru jigokuhen", 0 ) | |
| 7134 | GAME( 1990, nam1975, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "NAM-1975", 0 ) | |
| 7135 | GAME( 1990, bstars, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Baseball Stars Professional", 0 ) | |
| 7136 | GAME( 1990, tpgolf, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Top Player's Golf", 0 ) | |
| 7137 | GAME( 1990, mahretsu, neogeo, neogeo, mjneogeo, neogeo, ROT0, "SNK", "Mahjong Kyoretsuden", 0 ) | |
| 7138 | GAME( 1990, ridhero, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Riding Hero (set 1)", 0 ) | |
| 7139 | GAME( 1990, ridheroh, ridhero, neogeo, neogeo, neogeo, ROT0, "SNK", "Riding Hero (set 2)", 0 ) | |
| 7140 | GAME( 1991, alpham2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Alpha Mission II / ASO II - Last Guardian", 0 ) | |
| 7141 | GAME( 1990, cyberlip, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Cyber-Lip", 0 ) | |
| 7142 | GAME( 1990, superspy, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "The Super Spy", 0 ) | |
| 7143 | GAME( 1992, mutnat, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Mutation Nation", 0 ) | |
| 7144 | GAME( 1991, kotm, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "King of the Monsters (set 1)", 0 ) | |
| 7145 | GAME( 1991, kotmh, kotm, neogeo, neogeo, neogeo, ROT0, "SNK", "King of the Monsters (set 2)", 0 ) | |
| 7146 | GAME( 1991, sengoku, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Sengoku / Sengoku Denshou (set 1)", 0 ) | |
| 7147 | GAME( 1991, sengokh, sengoku, neogeo, neogeo, neogeo, ROT0, "SNK", "Sengoku / Sengoku Denshou (set 2)", 0 ) | |
| 7148 | GAME( 1991, burningf, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Burning Fight (set 1)", 0 ) | |
| 7149 | GAME( 1991, burningh, burningf, neogeo, neogeo, neogeo, ROT0, "SNK", "Burning Fight (set 2)", 0 ) | |
| 7150 | GAME( 1990, lbowling, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "League Bowling", 0 ) | |
| 7151 | GAME( 1991, gpilots, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Ghost Pilots", 0 ) | |
| 7152 | GAME( 1990, joyjoy, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Puzzled / Joy Joy Kid", 0 ) | |
| 7153 | GAME( 1991, quizdais, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Quiz Daisousa Sen - The Last Count Down", 0 ) | |
| 7154 | GAME( 1992, lresort, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Last Resort", 0 ) | |
| 7155 | GAME( 1991, eightman, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK / Pallas", "Eight Man", 0 ) | |
| 7156 | GAME( 1991, legendos, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Legend of Success Joe / Ashitano Joe Densetsu", 0 ) | |
| 7157 | GAME( 1991, 2020bb, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK / Pallas", "2020 Super Baseball (set 1)", 0 ) | |
| 7158 | GAME( 1991, 2020bba, 2020bb, neogeo, neogeo, neogeo, ROT0, "SNK / Pallas", "2020 Super Baseball (set 2)", 0 ) | |
| 7159 | GAME( 1991, 2020bbh, 2020bb, neogeo, neogeo, neogeo, ROT0, "SNK / Pallas", "2020 Super Baseball (set 3)", 0 ) | |
| 7160 | GAME( 1991, socbrawl, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Soccer Brawl (set 1)", 0 ) | |
| 7161 | GAME( 1991, socbrala, socbrawl, neogeo, neogeo, neogeo, ROT0, "SNK", "Soccer Brawl (set 2)", 0 ) | |
| 7162 | GAME( 1991, fatfury1, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Fatal Fury - King of Fighters / Garou Densetsu - shukumei no tatakai", 0 ) | |
| 7163 | GAME( 1991, roboarmy, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Robo Army (set 1)", 0 ) | |
| 7164 | GAME( 1991, roboarma, roboarmy, neogeo, neogeo, neogeo, ROT0, "SNK", "Robo Army (set 2)", 0 ) | |
| 7165 | GAME( 1992, fbfrenzy, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Football Frenzy", 0 ) | |
| 7166 | GAME( 1992, kotm2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "King of the Monsters 2 - The Next Thing", 0 ) | |
| 7167 | GAME( 1993, sengoku2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Sengoku 2 / Sengoku Denshou 2", 0 ) | |
| 7168 | GAME( 1992, bstars2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Baseball Stars 2", 0 ) | |
| 7169 | GAME( 1992, quizdai2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Quiz Meitantei Neo & Geo - Quiz Daisousa Sen part 2", 0 ) | |
| 7170 | GAME( 1993, 3countb, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "3 Count Bout / Fire Suplex", 0 ) | |
| 7171 | GAME( 1992, aof, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Art of Fighting / Ryuuko no Ken", 0 ) | |
| 7172 | GAME( 1993, samsho, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Samurai Shodown / Samurai Spirits", 0 ) | |
| 7173 | GAME( 1994, tophuntr, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Top Hunter - Roddy & Cathy (set 1)", 0 ) | |
| 7174 | GAME( 1994, tophunta, tophuntr, neogeo, neogeo, neogeo, ROT0, "SNK", "Top Hunter - Roddy & Cathy (set 2)", 0 ) | |
| 7175 | GAME( 1992, fatfury2, neogeo, neogeo, neogeo, fatfury2, ROT0, "SNK", "Fatal Fury 2 / Garou Densetsu 2 - arata-naru tatakai", 0 ) | |
| 7176 | GAME( 1992, ssideki, neogeo, neogeo, neogeo, fatfury2, ROT0, "SNK", "Super Sidekicks / Tokuten Ou", 0 ) | |
| 7177 | GAME( 1994, kof94, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '94", 0 ) | |
| 7178 | GAME( 1994, aof2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Art of Fighting 2 / Ryuuko no Ken 2 (set 1)", 0 ) | |
| 7179 | GAME( 1994, aof2a, aof2, neogeo, neogeo, neogeo, ROT0, "SNK", "Art of Fighting 2 / Ryuuko no Ken 2 (set 2)", 0 ) | |
| 7180 | GAME( 1993, fatfursp, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Fatal Fury Special / Garou Densetsu Special (set 1)", 0 ) | |
| 7181 | GAME( 1993, fatfursa, fatfursp, neogeo, neogeo, neogeo, ROT0, "SNK", "Fatal Fury Special / Garou Densetsu Special (set 2)", 0 ) | |
| 7182 | GAME( 1995, savagere, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Savage Reign / Fu'un Mokushiroku - kakutou sousei", 0 ) | |
| 7183 | GAME( 1994, ssideki2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Super Sidekicks 2 - The World Championship / Tokuten Ou 2 - real fight football", 0 ) | |
| 7184 | GAME( 1994, samsho2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Samurai Shodown II / Shin Samurai Spirits - Haohmaru jigokuhen", 0 ) | |
| 7185 | 7185 | /* Jin Saulabi Tu Hon (Samurai shodown 2) - Korean censored version - http://www.kmrb.or.kr/Game_Image/1999/%EC%A0%9C1273%ED%98%B8.jpg */ |
| 7186 | GAME( 1995, fatfury3, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Fatal Fury 3 - Road to the Final Victory / Garou Densetsu 3 - haruka-naru tatakai", 0 ) | |
| 7187 | GAME( 1995, ssideki3, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Super Sidekicks 3 - The Next Glory / Tokuten Ou 3 - eikoue no michi", 0 ) | |
| 7188 | GAME( 1995, kof95, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '95 (set 1)", 0 ) | |
| 7189 | GAME( 1995, kof95a, kof95, neogeo, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '95 (set 2)", 0 ) | |
| 7190 | GAME( 1995, samsho3, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Samurai Shodown III / Samurai Spirits - Zankurou Musouken (set 1)", 0 ) | |
| 7191 | GAME( 1995, samsho3a, samsho3, neogeo, neogeo, neogeo, ROT0, "SNK", "Samurai Shodown III / Samurai Spirits - Zankurou Musouken (set 2)", 0 ) | |
| 7192 | GAME( 1995, fswords, samsho3, neogeo, neogeo, neogeo, ROT0, "SNK", "Fighters Swords (Korean release of Samurai Shodown III)", 0 ) | |
| 7193 | GAME( 1995, rbff1, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Real Bout Fatal Fury / Real Bout Garou Densetsu", 0 ) | |
| 7194 | GAME( 1996, aof3, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Art of Fighting 3 - The Path of the Warrior / Art of Fighting - Ryuuko no Ken Gaiden", 0 ) | |
| 7195 | GAME( 1996, aof3k, aof3, neogeo, neogeo, neogeo, ROT0, "SNK", "Art of Fighting 3 - The Path of the Warrior (Korean release)", 0 ) // no Japanese title / mode | |
| 7196 | GAME( 1996, kof96, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '96 (set 1)", 0 ) | |
| 7197 | GAME( 1996, kof96h, kof96, neogeo, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '96 (set 2)", 0 ) | |
| 7198 | GAME( 1996, ssideki4, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Ultimate 11 - The SNK Football Championship / Tokuten Ou - Honoo no Libero, The", 0 ) | |
| 7199 | GAME( 1996, kizuna, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Kizuna Encounter - Super Tag Battle / Fu'un Super Tag Battle", 0 ) | |
| 7200 | GAME( 1996, samsho4, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Samurai Shodown IV - Amakusa's Revenge / Samurai Spirits - Amakusa Kourin", 0 ) | |
| 7186 | GAME( 1995, fatfury3, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Fatal Fury 3 - Road to the Final Victory / Garou Densetsu 3 - haruka-naru tatakai", 0 ) | |
| 7187 | GAME( 1995, ssideki3, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Super Sidekicks 3 - The Next Glory / Tokuten Ou 3 - eikoue no michi", 0 ) | |
| 7188 | GAME( 1995, kof95, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '95 (set 1)", 0 ) | |
| 7189 | GAME( 1995, kof95a, kof95, neogeo, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '95 (set 2)", 0 ) | |
| 7190 | GAME( 1995, samsho3, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Samurai Shodown III / Samurai Spirits - Zankurou Musouken (set 1)", 0 ) | |
| 7191 | GAME( 1995, samsho3a, samsho3, neogeo, neogeo, neogeo, ROT0, "SNK", "Samurai Shodown III / Samurai Spirits - Zankurou Musouken (set 2)", 0 ) | |
| 7192 | GAME( 1995, fswords, samsho3, neogeo, neogeo, neogeo, ROT0, "SNK", "Fighters Swords (Korean release of Samurai Shodown III)", 0 ) | |
| 7193 | GAME( 1995, rbff1, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Real Bout Fatal Fury / Real Bout Garou Densetsu", 0 ) | |
| 7194 | GAME( 1996, aof3, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Art of Fighting 3 - The Path of the Warrior / Art of Fighting - Ryuuko no Ken Gaiden", 0 ) | |
| 7195 | GAME( 1996, aof3k, aof3, neogeo, neogeo, neogeo, ROT0, "SNK", "Art of Fighting 3 - The Path of the Warrior (Korean release)", 0 ) // no Japanese title / mode | |
| 7196 | GAME( 1996, kof96, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '96 (set 1)", 0 ) | |
| 7197 | GAME( 1996, kof96h, kof96, neogeo, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '96 (set 2)", 0 ) | |
| 7198 | GAME( 1996, ssideki4, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Ultimate 11 - The SNK Football Championship / Tokuten Ou - Honoo no Libero, The", 0 ) | |
| 7199 | GAME( 1996, kizuna, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Kizuna Encounter - Super Tag Battle / Fu'un Super Tag Battle", 0 ) | |
| 7200 | GAME( 1996, samsho4, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Samurai Shodown IV - Amakusa's Revenge / Samurai Spirits - Amakusa Kourin", 0 ) | |
| 7201 | 7201 | /* Pae Wang Jeon Seol / Legend of Warrior - Korean / Chinese censored version of SamSho4, see http://www.kmrb.or.kr/Game_Image/1999/%EC%A0%9C2064%ED%98%B8.jpg */ |
| 7202 | GAME( 1996, rbffspec, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Real Bout Fatal Fury Special / Real Bout Garou Densetsu Special", 0 ) | |
| 7203 | GAME( 1997, kof97, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '97 (set 1)", 0 ) | |
| 7204 | GAME( 1997, kof97a, kof97, neogeo, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '97 (set 2)", 0 ) | |
| 7205 | GAME( 1997, kof97pls, kof97, neogeo, neogeo, neogeo, ROT0, "bootleg", "The King of Fighters '97 Plus (bootleg)", 0 ) | |
| 7206 | GAME( 1997, kog, kof97, neogeo, kog, kog, ROT0, "bootleg", "King of Gladiator (The King of Fighters '97 bootleg)", GAME_NOT_WORKING) // protected bootleg | |
| 7207 | GAME( 1997, lastblad, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Last Blade / Bakumatsu Roman - Gekka no Kenshi, The (set 1)", 0 ) | |
| 7208 | GAME( 1997, lastbldh, lastblad, neogeo, neogeo, neogeo, ROT0, "SNK", "Last Blade / Bakumatsu Roman - Gekka no Kenshi, The (set 2)", 0 ) | |
| 7209 | GAME( 1997, lastsold, lastblad, neogeo, neogeo, neogeo, ROT0, "SNK", "The Last Soldier (Korean release of The Last Blade)", 0 ) | |
| 7210 | GAME( 1997, irrmaze, neogeo, neogeo, irrmaze, neogeo, ROT0, "SNK / Saurus", "The Irritating Maze / Ultra Denryu Iraira Bou", 0 ) | |
| 7211 | GAME( 1998, rbff2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Real Bout Fatal Fury 2 - The Newcomers / Real Bout Garou Densetsu 2 - the newcomers (set 1)", 0 ) | |
| 7212 | GAME( 1998, rbff2h, rbff2, neogeo, neogeo, neogeo, ROT0, "SNK", "Real Bout Fatal Fury 2 - The Newcomers / Real Bout Garou Densetsu 2 - the newcomers (set 2)", 0 ) | |
| 7213 | GAME( 1998, rbff2k, rbff2, neogeo, neogeo, neogeo, ROT0, "SNK", "Real Bout Fatal Fury 2 - The Newcomers (Korean release)", 0 ) // no Japanese title / mode | |
| 7214 | GAME( 1998, mslug2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Metal Slug 2 - Super Vehicle-001/II", 0 ) | |
| 7215 | GAME( 1998, kof98, neogeo, neogeo, neogeo, kof98, ROT0, "SNK", "The King of Fighters '98 - The Slugfest / King of Fighters '98 - dream match never ends", 0 ) | |
| 7216 | GAME( 1998, kof98k, kof98, neogeo, neogeo, kof98, ROT0, "SNK", "The King of Fighters '98 - The Slugfest / King of Fighters '98 - dream match never ends (Korean board)", 0 ) | |
| 7217 | GAME( 1998, kof98n, kof98, neogeo, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '98 - The Slugfest / King of Fighters '98 - dream match never ends (not encrypted)", 0 ) | |
| 7218 | GAME( 1998, lastbld2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Last Blade 2 / Bakumatsu Roman - Dai Ni Maku Gekka no Kenshi, The", 0 ) | |
| 7219 | GAME( 1998, neocup98, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Neo-Geo Cup '98 - The Road to the Victory", 0 ) | |
| 7220 | GAME( 1999, mslugx, neogeo, neogeo, neogeo, mslugx, ROT0, "SNK", "Metal Slug X - Super Vehicle-001", 0 ) | |
| 7221 | GAME( 1999, kof99, neogeo, neogeo, neogeo, kof99, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (set 1)" , 0 ) /* Encrypted Code & GFX */ | |
| 7222 | GAME( 1999, kof99a, kof99, neogeo, neogeo, kof99, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (set 2)" , 0 ) /* Encrypted Code & GFX, crashes going into attract demo */ | |
| 7223 | GAME( 1999, kof99e, kof99, neogeo, neogeo, kof99, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (earlier)" , 0 ) /* Encrypted Code & GFX */ | |
| 7224 | GAME( 1999, kof99n, kof99, neogeo, neogeo, kof99n, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (not encrypted)" , 0 ) /* Encrypted GFX */ | |
| 7225 | GAME( 1999, kof99p, kof99, neogeo, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (prototype)", 0 ) | |
| 7226 | GAME( 1999, garou, neogeo, neogeo, neogeo, garou, ROT0, "SNK", "Garou - Mark of the Wolves (set 1)" , 0 ) /* Encrypted Code & GFX */ | |
| 7227 | GAME( 1999, garouo, garou, neogeo, neogeo, garouo, ROT0, "SNK", "Garou - Mark of the Wolves (set 2)" , 0 ) /* Encrypted Code & GFX */ | |
| 7228 | GAME( 1999, garoup, garou, neogeo, neogeo, neogeo, ROT0, "SNK", "Garou - Mark of the Wolves (prototype)", 0 ) | |
| 7229 | GAME( 1999, garoubl, garou, neogeo, neogeo, garoubl, ROT0, "bootleg", "Garou - Mark of the Wolves (bootleg)", 0 ) /* Bootleg of garoup */ | |
| 7230 | GAME( 2000, mslug3, neogeo, neogeo, neogeo, mslug3, ROT0, "SNK", "Metal Slug 3" , 0 ) /* Encrypted Code & GFX */ | |
| 7231 | GAME( 2000, mslug3n, mslug3, neogeo, neogeo, mslug3n, ROT0, "SNK", "Metal Slug 3 (not encrypted)" , 0 ) /* Encrypted GFX */ | |
| 7232 | GAME( 2000, mslug3b6, mslug3, neogeo, neogeo, mslug3b6, ROT0, "bootleg", "Metal Slug 6 (Metal Slug 3 bootleg)", 0 ) /* real Metal Slug 6 is an Atomiswave HW game, see atomswav.c ;-) */ | |
| 7233 | GAME( 2000, kof2000, neogeo, neogeo, neogeo, kof2000, ROT0, "SNK", "The King of Fighters 2000" , 0 ) /* Encrypted Code & GFX */ | |
| 7234 | GAME( 2000, kof2000n, kof2000, neogeo, neogeo, kof2000n, ROT0, "SNK", "The King of Fighters 2000 (not encrypted)" , 0 ) /* Encrypted GFX */ | |
| 7235 | GAME( 2001, zupapa, neogeo, neogeo, neogeo, zupapa, ROT0, "SNK", "Zupapa!" , 0 ) /* Encrypted GFX */ | |
| 7236 | GAME( 2001, sengoku3, neogeo, neogeo, neogeo, sengoku3, ROT0, "SNK", "Sengoku 3" , 0 ) /* Encrypted GFX */ | |
| 7237 | GAME( 2001, kof2001, neogeo, neogeo, neogeo, kof2001, ROT0, "Eolith / SNK", "The King of Fighters 2001 (set 1)" , 0 ) /* Encrypted GFX */ | |
| 7238 | GAME( 2001, kof2001h, kof2001, neogeo, neogeo, kof2001, ROT0, "Eolith / SNK", "The King of Fighters 2001 (set 2)" , 0 ) /* Encrypted GFX */ | |
| 7239 | GAME( 2003, cthd2003, kof2001, neogeo, neogeo, cthd2003, ROT0, "bootleg", "Crouching Tiger Hidden Dragon 2003 (The King of Fighters 2001 bootleg)", 0 ) /* Protected Hack / Bootleg of kof2001 */ | |
| 7240 | GAME( 2003, ct2k3sp, kof2001, neogeo, neogeo, ct2k3sp, ROT0, "bootleg", "Crouching Tiger Hidden Dragon 2003 Super Plus (The King of Fighters 2001 bootleg)", 0 ) /* Protected Hack / Bootleg of kof2001 */ | |
| 7241 | GAME( 2003, ct2k3sa, kof2001, neogeo, neogeo, ct2k3sa, ROT0, "bootleg", "Crouching Tiger Hidden Dragon 2003 Super Plus alternate (The King of Fighters 2001 bootleg)", 0 ) /* Hack / Bootleg of kof2001 */ | |
| 7242 | GAME( 2002, kof2002, neogeo, neogeo, neogeo, kof2002, ROT0, "Eolith / Playmore", "The King of Fighters 2002" , 0 ) /* Encrypted GFX */ | |
| 7243 | GAME( 2002, kf2k2pls, kof2002, neogeo, neogeo, kf2k2pls, ROT0, "bootleg", "The King of Fighters 2002 Plus (set 1, bootleg)" , 0 ) /* Encrypted GFX */ | |
| 7244 | GAME( 2002, kf2k2pla, kof2002, neogeo, neogeo, kf2k2pls, ROT0, "bootleg", "The King of Fighters 2002 Plus (set 2, bootleg)" , 0 ) /* Encrypted GFX */ | |
| 7245 | GAME( 2002, kf2k2mp, kof2002, neogeo, neogeo, kf2k2mp, ROT0, "bootleg", "The King of Fighters 2002 Magic Plus (bootleg)" , 0 ) /* Encrypted GFX */ | |
| 7246 | GAME( 2002, kf2k2mp2, kof2002, neogeo, neogeo, kof2km2, ROT0, "bootleg", "The King of Fighters 2002 Magic Plus II (bootleg)" , 0 ) /* Encrypted GFX */ | |
| 7247 | GAME( 2002, kof10th, kof2002, neogeo, neogeo, kof10th, ROT0, "bootleg", "The King of Fighters 10th Anniversary (The King of Fighters 2002 bootleg)", 0 ) // fake SNK copyright | |
| 7248 | GAME( 2004, kf2k5uni, kof2002, neogeo, neogeo, kf2k5uni, ROT0, "bootleg", "The King of Fighters 10th Anniversary 2005 Unique (The King of Fighters 2002 bootleg)", 0 ) // fake SNK copyright | |
| 7249 | GAME( 2005, kf10thep, kof2002, neogeo, neogeo, kf10thep, ROT0, "bootleg", "The King of Fighters 10th Anniversary Extra Plus (The King of Fighters 2002 bootleg)", 0 ) // fake SNK copyright | |
| 7250 | GAME( 2004, kof2k4se, kof2002, neogeo, neogeo, kof2k4se, ROT0, "bootleg", "The King of Fighters Special Edition 2004 (The King of Fighters 2002 bootleg)", 0 ) /* Hack / Bootleg of kof2002 */ | |
| 7251 | GAME( 2003, mslug5, neogeo, neogeo, neogeo, mslug5, ROT0, "SNK Playmore", "Metal Slug 5", 0 ) | |
| 7252 | GAME( 2003, ms5pcb, 0, neogeo, neogeo, ms5pcb, ROT0, "SNK Playmore", "Metal Slug 5 (JAMMA PCB)", 0 ) | |
| 7253 | GAME( 2003, ms5plus, mslug5, neogeo, neogeo, ms5plus, ROT0, "bootleg", "Metal Slug 5 Plus (bootleg)",0 ) | |
| 7254 | GAME( 2003, svcpcb, 0, neogeo, svcpcb, svcpcb, ROT0, "SNK Playmore", "SNK vs. CAPCOM SVC CHAOS (JAMMA PCB)", 0 ) // not a clone of neogeo because it's NOT a neogeo cart. | |
| 7255 | GAME( 2003, svcpcba, svcpcb, neogeo, svcpcb, svcpcb, ROT0, "SNK Playmore", "SNK vs. CAPCOM SVC CHAOS (JAMMA PCB, set 2)" , 0 ) /* Encrypted Code */ | |
| 7256 | GAME( 2003, svc, neogeo, neogeo, neogeo, svc, ROT0, "SNK Playmore", "SNK vs. CAPCOM SVC CHAOS", 0 ) | |
| 7257 | GAME( 2003, svcboot, svc, neogeo, neogeo, svcboot, ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS (bootleg)", 0 ) | |
| 7258 | GAME( 2003, svcplus, svc, neogeo, neogeo, svcplus, ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS Plus (set 1, bootleg)", 0 ) | |
| 7259 | GAME( 2003, svcplusa, svc, neogeo, neogeo, svcplusa, ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS Plus (set 2, bootleg)", 0 ) | |
| 7260 | GAME( 2003, svcsplus, svc, neogeo, neogeo, svcsplus, ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS Super Plus (bootleg)", 0 ) | |
| 7261 | GAME( 2003, samsho5, neogeo, neogeo, neogeo, samsho5, ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V / Samurai Spirits Zero (set 1)", 0 ) | |
| 7262 | GAME( 2003, samsho5h, samsho5, neogeo, neogeo, samsho5, ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V / Samurai Spirits Zero (set 2)", 0 ) | |
| 7263 | GAME( 2003, samsho5b, samsho5, neogeo, neogeo, samsho5b, ROT0, "bootleg", "Samurai Shodown V / Samurai Spirits Zero (bootleg)", 0 ) // different program scrambling | |
| 7264 | GAME( 2003, kf2k3pcb, 0, neogeo, neogeo, kf2k3pcb, ROT0, "SNK Playmore", "The King of Fighters 2003 (Japan, JAMMA PCB)", 0 ) // not a clone of neogeo because it's NOT a neogeo cart. | |
| 7265 | GAME( 2003, kof2003, neogeo, neogeo, neogeo, kof2003, ROT0, "SNK Playmore", "The King of Fighters 2003 (World / US, MVS)", 0 ) | |
| 7266 | GAME( 2003, kf2k3bl, kof2003, neogeo, neogeo, kof2003b, ROT0, "bootleg", "The King of Fighters 2003 (bootleg, set 1)", 0 ) // zooming is wrong because its a bootleg of the pcb version on a cart (unless it was a bootleg pcb with the new bios?) | |
| 7267 | GAME( 2003, kf2k3bla, kof2003, neogeo, neogeo, kof2k3pl, ROT0, "bootleg", "The King of Fighters 2003 (bootleg, set 2)", 0 ) // zooming is wrong because its a bootleg of the pcb version on a cart | |
| 7268 | GAME( 2003, kf2k3pl, kof2003, neogeo, neogeo, kof2k3pl, ROT0, "bootleg", "The King of Fighters 2004 Plus / Hero (The King of Fighters 2003 bootleg)", 0 ) // zooming is wrong because its a bootleg of the pcb version on a cart | |
| 7269 | GAME( 2003, kf2k3upl, kof2003, neogeo, neogeo, kof2k3up, ROT0, "bootleg", "The King of Fighters 2004 Ultra Plus (The King of Fighters 2003 bootleg)", 0 ) // zooming is wrong because its a bootleg of the pcb version on a cart | |
| 7270 | GAME( 2003, samsh5sp, neogeo, neogeo, neogeo, samsh5sp, ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V Special / Samurai Spirits Zero Special (set 1, uncensored)", 0 ) | |
| 7271 | GAME( 2003, samsh5sh, samsh5sp, neogeo, neogeo, samsh5sp, ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V Special / Samurai Spirits Zero Special (set 2, censored)", 0 ) | |
| 7272 | GAME( 2003, samsh5sn, samsh5sp, neogeo, neogeo, samsh5sp, ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V Special / Samurai Spirits Zero Special (set 3, less censored)", 0 ) | |
| 7202 | GAME( 1996, rbffspec, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Real Bout Fatal Fury Special / Real Bout Garou Densetsu Special", 0 ) | |
| 7203 | GAME( 1997, kof97, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '97 (set 1)", 0 ) | |
| 7204 | GAME( 1997, kof97a, kof97, neogeo, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '97 (set 2)", 0 ) | |
| 7205 | GAME( 1997, kof97pls, kof97, neogeo, neogeo, neogeo, ROT0, "bootleg", "The King of Fighters '97 Plus (bootleg)", 0 ) | |
| 7206 | GAME( 1997, kog, kof97, neogeo, kog, kog, ROT0, "bootleg", "King of Gladiator (The King of Fighters '97 bootleg)", GAME_NOT_WORKING) // protected bootleg | |
| 7207 | GAME( 1997, lastblad, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Last Blade / Bakumatsu Roman - Gekka no Kenshi, The (set 1)", 0 ) | |
| 7208 | GAME( 1997, lastbldh, lastblad, neogeo, neogeo, neogeo, ROT0, "SNK", "Last Blade / Bakumatsu Roman - Gekka no Kenshi, The (set 2)", 0 ) | |
| 7209 | GAME( 1997, lastsold, lastblad, neogeo, neogeo, neogeo, ROT0, "SNK", "The Last Soldier (Korean release of The Last Blade)", 0 ) | |
| 7210 | GAME( 1997, irrmaze, neogeo, neogeo, irrmaze, neogeo, ROT0, "SNK / Saurus", "The Irritating Maze / Ultra Denryu Iraira Bou", 0 ) | |
| 7211 | GAME( 1998, rbff2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Real Bout Fatal Fury 2 - The Newcomers / Real Bout Garou Densetsu 2 - the newcomers (set 1)", 0 ) | |
| 7212 | GAME( 1998, rbff2h, rbff2, neogeo, neogeo, neogeo, ROT0, "SNK", "Real Bout Fatal Fury 2 - The Newcomers / Real Bout Garou Densetsu 2 - the newcomers (set 2)", 0 ) | |
| 7213 | GAME( 1998, rbff2k, rbff2, neogeo, neogeo, neogeo, ROT0, "SNK", "Real Bout Fatal Fury 2 - The Newcomers (Korean release)", 0 ) // no Japanese title / mode | |
| 7214 | GAME( 1998, mslug2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Metal Slug 2 - Super Vehicle-001/II", 0 ) | |
| 7215 | GAME( 1998, kof98, neogeo, neogeo, neogeo, kof98, ROT0, "SNK", "The King of Fighters '98 - The Slugfest / King of Fighters '98 - dream match never ends", 0 ) | |
| 7216 | GAME( 1998, kof98k, kof98, neogeo, neogeo, kof98, ROT0, "SNK", "The King of Fighters '98 - The Slugfest / King of Fighters '98 - dream match never ends (Korean board)", 0 ) | |
| 7217 | GAME( 1998, kof98n, kof98, neogeo, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '98 - The Slugfest / King of Fighters '98 - dream match never ends (not encrypted)", 0 ) | |
| 7218 | GAME( 1998, lastbld2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Last Blade 2 / Bakumatsu Roman - Dai Ni Maku Gekka no Kenshi, The", 0 ) | |
| 7219 | GAME( 1998, neocup98, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Neo-Geo Cup '98 - The Road to the Victory", 0 ) | |
| 7220 | GAME( 1999, mslugx, neogeo, neogeo, neogeo, mslugx, ROT0, "SNK", "Metal Slug X - Super Vehicle-001", 0 ) | |
| 7221 | GAME( 1999, kof99, neogeo, neogeo, neogeo, kof99, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (set 1)" , 0 ) /* Encrypted Code & GFX */ | |
| 7222 | GAME( 1999, kof99a, kof99, neogeo, neogeo, kof99, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (set 2)" , 0 ) /* Encrypted Code & GFX, crashes going into attract demo */ | |
| 7223 | GAME( 1999, kof99e, kof99, neogeo, neogeo, kof99, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (earlier)" , 0 ) /* Encrypted Code & GFX */ | |
| 7224 | GAME( 1999, kof99n, kof99, neogeo, neogeo, kof99n, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (not encrypted)" , 0 ) /* Encrypted GFX */ | |
| 7225 | GAME( 1999, kof99p, kof99, neogeo, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (prototype)", 0 ) | |
| 7226 | GAME( 1999, garou, neogeo, neogeo, neogeo, garou, ROT0, "SNK", "Garou - Mark of the Wolves (set 1)" , 0 ) /* Encrypted Code & GFX */ | |
| 7227 | GAME( 1999, garouo, garou, neogeo, neogeo, garouo, ROT0, "SNK", "Garou - Mark of the Wolves (set 2)" , 0 ) /* Encrypted Code & GFX */ | |
| 7228 | GAME( 1999, garoup, garou, neogeo, neogeo, neogeo, ROT0, "SNK", "Garou - Mark of the Wolves (prototype)", 0 ) | |
| 7229 | GAME( 1999, garoubl, garou, neogeo, neogeo, garoubl, ROT0, "bootleg", "Garou - Mark of the Wolves (bootleg)", 0 ) /* Bootleg of garoup */ | |
| 7230 | GAME( 2000, mslug3, neogeo, neogeo, neogeo, mslug3, ROT0, "SNK", "Metal Slug 3" , 0 ) /* Encrypted Code & GFX */ | |
| 7231 | GAME( 2000, mslug3n, mslug3, neogeo, neogeo, mslug3n, ROT0, "SNK", "Metal Slug 3 (not encrypted)" , 0 ) /* Encrypted GFX */ | |
| 7232 | GAME( 2000, mslug3b6, mslug3, neogeo, neogeo, mslug3b6, ROT0, "bootleg", "Metal Slug 6 (Metal Slug 3 bootleg)", 0 ) /* real Metal Slug 6 is an Atomiswave HW game, see atomswav.c ;-) */ | |
| 7233 | GAME( 2000, kof2000, neogeo, neogeo, neogeo, kof2000, ROT0, "SNK", "The King of Fighters 2000" , 0 ) /* Encrypted Code & GFX */ | |
| 7234 | GAME( 2000, kof2000n, kof2000, neogeo, neogeo, kof2000n, ROT0, "SNK", "The King of Fighters 2000 (not encrypted)" , 0 ) /* Encrypted GFX */ | |
| 7235 | GAME( 2001, zupapa, neogeo, neogeo, neogeo, zupapa, ROT0, "SNK", "Zupapa!" , 0 ) /* Encrypted GFX */ | |
| 7236 | GAME( 2001, sengoku3, neogeo, neogeo, neogeo, sengoku3, ROT0, "SNK", "Sengoku 3" , 0 ) /* Encrypted GFX */ | |
| 7237 | GAME( 2001, kof2001, neogeo, neogeo, neogeo, kof2001, ROT0, "Eolith / SNK", "The King of Fighters 2001 (set 1)" , 0 ) /* Encrypted GFX */ | |
| 7238 | GAME( 2001, kof2001h, kof2001, neogeo, neogeo, kof2001, ROT0, "Eolith / SNK", "The King of Fighters 2001 (set 2)" , 0 ) /* Encrypted GFX */ | |
| 7239 | GAME( 2003, cthd2003, kof2001, neogeo, neogeo, cthd2003, ROT0, "bootleg", "Crouching Tiger Hidden Dragon 2003 (The King of Fighters 2001 bootleg)", 0 ) /* Protected Hack / Bootleg of kof2001 */ | |
| 7240 | GAME( 2003, ct2k3sp, kof2001, neogeo, neogeo, ct2k3sp, ROT0, "bootleg", "Crouching Tiger Hidden Dragon 2003 Super Plus (The King of Fighters 2001 bootleg)", 0 ) /* Protected Hack / Bootleg of kof2001 */ | |
| 7241 | GAME( 2003, ct2k3sa, kof2001, neogeo, neogeo, ct2k3sa, ROT0, "bootleg", "Crouching Tiger Hidden Dragon 2003 Super Plus alternate (The King of Fighters 2001 bootleg)", 0 ) /* Hack / Bootleg of kof2001 */ | |
| 7242 | GAME( 2002, kof2002, neogeo, neogeo, neogeo, kof2002, ROT0, "Eolith / Playmore", "The King of Fighters 2002" , 0 ) /* Encrypted GFX */ | |
| 7243 | GAME( 2002, kf2k2pls, kof2002, neogeo, neogeo, kf2k2pls, ROT0, "bootleg", "The King of Fighters 2002 Plus (bootleg set 1)" , 0 ) /* Encrypted GFX */ | |
| 7244 | GAME( 2002, kf2k2pla, kof2002, neogeo, neogeo, kf2k2pls, ROT0, "bootleg", "The King of Fighters 2002 Plus (bootleg set 2)" , 0 ) /* Encrypted GFX */ | |
| 7245 | GAME( 2002, kf2k2mp, kof2002, neogeo, neogeo, kf2k2mp, ROT0, "bootleg", "The King of Fighters 2002 Magic Plus (bootleg)" , 0 ) /* Encrypted GFX */ | |
| 7246 | GAME( 2002, kf2k2mp2, kof2002, neogeo, neogeo, kof2km2, ROT0, "bootleg", "The King of Fighters 2002 Magic Plus II (bootleg)" , 0 ) /* Encrypted GFX */ | |
| 7247 | GAME( 2002, kof10th, kof2002, neogeo, neogeo, kof10th, ROT0, "bootleg", "The King of Fighters 10th Anniversary (The King of Fighters 2002 bootleg)", 0 ) // fake SNK copyright | |
| 7248 | GAME( 2004, kf2k5uni, kof2002, neogeo, neogeo, kf2k5uni, ROT0, "bootleg", "The King of Fighters 10th Anniversary 2005 Unique (The King of Fighters 2002 bootleg)", 0 ) // fake SNK copyright | |
| 7249 | GAME( 2005, kf10thep, kof2002, neogeo, neogeo, kf10thep, ROT0, "bootleg", "The King of Fighters 10th Anniversary Extra Plus (The King of Fighters 2002 bootleg)", 0 ) // fake SNK copyright | |
| 7250 | GAME( 2004, kof2k4se, kof2002, neogeo, neogeo, kof2k4se, ROT0, "bootleg", "The King of Fighters Special Edition 2004 (The King of Fighters 2002 bootleg)", 0 ) /* Hack / Bootleg of kof2002 */ | |
| 7251 | GAME( 2003, mslug5, neogeo, neogeo, neogeo, mslug5, ROT0, "SNK Playmore", "Metal Slug 5", 0 ) | |
| 7252 | GAME( 2003, ms5pcb, 0, neogeo, neogeo, ms5pcb, ROT0, "SNK Playmore", "Metal Slug 5 (JAMMA PCB)", 0 ) | |
| 7253 | GAME( 2003, ms5plus, mslug5, neogeo, neogeo, ms5plus, ROT0, "bootleg", "Metal Slug 5 Plus (bootleg)",0 ) | |
| 7254 | GAME( 2003, svcpcb, 0, neogeo, svcpcb, svcpcb, ROT0, "SNK Playmore", "SNK vs. CAPCOM SVC CHAOS (JAMMA PCB, set 1)", 0 ) // not a clone of neogeo because it's NOT a neogeo cart. | |
| 7255 | GAME( 2003, svcpcba, svcpcb, neogeo, svcpcb, svcpcb, ROT0, "SNK Playmore", "SNK vs. CAPCOM SVC CHAOS (JAMMA PCB, set 2)" , 0 ) /* Encrypted Code */ | |
| 7256 | GAME( 2003, svc, neogeo, neogeo, neogeo, svc, ROT0, "SNK Playmore", "SNK vs. CAPCOM SVC CHAOS", 0 ) | |
| 7257 | GAME( 2003, svcboot, svc, neogeo, neogeo, svcboot, ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS (bootleg)", 0 ) | |
| 7258 | GAME( 2003, svcplus, svc, neogeo, neogeo, svcplus, ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS Plus (bootleg set 1)", 0 ) | |
| 7259 | GAME( 2003, svcplusa, svc, neogeo, neogeo, svcplusa, ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS Plus (bootleg set 2)", 0 ) | |
| 7260 | GAME( 2003, svcsplus, svc, neogeo, neogeo, svcsplus, ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS Super Plus (bootleg)", 0 ) | |
| 7261 | GAME( 2003, samsho5, neogeo, neogeo, neogeo, samsho5, ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V / Samurai Spirits Zero (set 1)", 0 ) | |
| 7262 | GAME( 2003, samsho5h, samsho5, neogeo, neogeo, samsho5, ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V / Samurai Spirits Zero (set 2)", 0 ) | |
| 7263 | GAME( 2003, samsho5b, samsho5, neogeo, neogeo, samsho5b, ROT0, "bootleg", "Samurai Shodown V / Samurai Spirits Zero (bootleg)", 0 ) // different program scrambling | |
| 7264 | GAME( 2003, kf2k3pcb, 0, neogeo, neogeo, kf2k3pcb, ROT0, "SNK Playmore", "The King of Fighters 2003 (Japan, JAMMA PCB)", 0 ) // not a clone of neogeo because it's NOT a neogeo cart. | |
| 7265 | GAME( 2003, kof2003, neogeo, neogeo, neogeo, kof2003, ROT0, "SNK Playmore", "The King of Fighters 2003 (World / US, MVS)", 0 ) | |
| 7266 | GAME( 2003, kf2k3bl, kof2003, neogeo, neogeo, kof2003b, ROT0, "bootleg", "The King of Fighters 2003 (bootleg set 1)", 0 ) // zooming is wrong because its a bootleg of the pcb version on a cart (unless it was a bootleg pcb with the new bios?) | |
| 7267 | GAME( 2003, kf2k3bla, kof2003, neogeo, neogeo, kof2k3pl, ROT0, "bootleg", "The King of Fighters 2003 (bootleg set 2)", 0 ) // zooming is wrong because its a bootleg of the pcb version on a cart | |
| 7268 | GAME( 2003, kf2k3pl, kof2003, neogeo, neogeo, kof2k3pl, ROT0, "bootleg", "The King of Fighters 2004 Plus / Hero (The King of Fighters 2003 bootleg)", 0 ) // zooming is wrong because its a bootleg of the pcb version on a cart | |
| 7269 | GAME( 2003, kf2k3upl, kof2003, neogeo, neogeo, kof2k3up, ROT0, "bootleg", "The King of Fighters 2004 Ultra Plus (The King of Fighters 2003 bootleg)", 0 ) // zooming is wrong because its a bootleg of the pcb version on a cart | |
| 7270 | GAME( 2003, samsh5sp, neogeo, neogeo, neogeo, samsh5sp, ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V Special / Samurai Spirits Zero Special (set 1, uncensored)", 0 ) | |
| 7271 | GAME( 2003, samsh5sh, samsh5sp, neogeo, neogeo, samsh5sp, ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V Special / Samurai Spirits Zero Special (set 2, censored)", 0 ) | |
| 7272 | GAME( 2003, samsh5sn, samsh5sp, neogeo, neogeo, samsh5sp, ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V Special / Samurai Spirits Zero Special (set 3, less censored)", 0 ) | |
| 7273 | 7273 | |
| 7274 | 7274 | /* there are other bootlegs kof2002b etc. kof96ep, matrimbl?, kf2k1pls -- work out which should be supported */ |
| 7275 | 7275 | |
| 7276 | 7276 | /* Alpha Denshi Co. / ADK (changed name in 1993) */ |
| 7277 | GAME( 1990, maglord, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Magician Lord (set 1)", 0 ) | |
| 7278 | GAME( 1990, maglordh, maglord, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Magician Lord (set 2)", 0 ) | |
| 7279 | GAME( 1990, ncombat, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Ninja Combat (set 1)", 0 ) | |
| 7280 | GAME( 1990, ncombath, ncombat, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Ninja Combat (set 2)", 0 ) | |
| 7281 | GAME( 1990, bjourney, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Blue's Journey / Raguy", 0 ) | |
| 7282 | GAME( 1991, crsword, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Crossed Swords", 0 ) | |
| 7283 | GAME( 1991, trally, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Thrash Rally", 0 ) | |
| 7284 | GAME( 1992, ncommand, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Ninja Commando", 0 ) | |
| 7285 | GAME( 1992, wh1, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "World Heroes (set 1)", 0 ) | |
| 7286 | GAME( 1992, wh1h, wh1, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "World Heroes (set 2)", 0 ) | |
| 7287 | GAME( 1992, wh1ha, wh1, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "World Heroes (set 3)", 0 ) | |
| 7288 | GAME( 1993, wh2, neogeo, neogeo, neogeo, neogeo, ROT0, "ADK", "World Heroes 2", 0 ) | |
| 7289 | GAME( 1994, wh2j, neogeo, neogeo, neogeo, neogeo, ROT0, "ADK / SNK", "World Heroes 2 Jet (set 1)", 0 ) | |
| 7290 | GAME( 1994, wh2jh, wh2j, neogeo, neogeo, neogeo, ROT0, "ADK / SNK", "World Heroes 2 Jet (set 2)", 0 ) | |
| 7291 | GAME( 1994, aodk, neogeo, neogeo, neogeo, neogeo, ROT0, "ADK / SNK", "Aggressors of Dark Kombat / Tsuukai GANGAN Koushinkyoku", 0 ) | |
| 7292 | GAME( 1995, whp, neogeo, neogeo, neogeo, neogeo, ROT0, "ADK / SNK", "World Heroes Perfect", 0 ) | |
| 7293 | GAME( 1995, mosyougi, neogeo, neogeo, neogeo, neogeo, ROT0, "ADK / SNK", "Syougi No Tatsujin - Master of Syougi", 0 ) | |
| 7294 | GAME( 1996, overtop, neogeo, neogeo, neogeo, neogeo, ROT0, "ADK", "Over Top", 0 ) | |
| 7295 | GAME( 1996, ninjamas, neogeo, neogeo, neogeo, neogeo, ROT0, "ADK / SNK", "Ninja Master's - haoh-ninpo-cho", 0 ) | |
| 7296 | GAME( 1996, twinspri, neogeo, neogeo, neogeo, neogeo, ROT0, "ADK", "Twinkle Star Sprites", 0 ) | |
| 7297 | GAME( 1996, zintrckb, neogeo, neogeo, neogeo, neogeo, ROT0, "hack / bootleg", "Zintrick / Oshidashi Zentrix (hack / bootleg)", 0 ) | |
| 7277 | GAME( 1990, maglord, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Magician Lord (set 1)", 0 ) | |
| 7278 | GAME( 1990, maglordh, maglord, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Magician Lord (set 2)", 0 ) | |
| 7279 | GAME( 1990, ncombat, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Ninja Combat (set 1)", 0 ) | |
| 7280 | GAME( 1990, ncombath, ncombat, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Ninja Combat (set 2)", 0 ) | |
| 7281 | GAME( 1990, bjourney, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Blue's Journey / Raguy", 0 ) | |
| 7282 | GAME( 1991, crsword, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Crossed Swords", 0 ) | |
| 7283 | GAME( 1991, trally, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Thrash Rally", 0 ) | |
| 7284 | GAME( 1992, ncommand, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Ninja Commando", 0 ) | |
| 7285 | GAME( 1992, wh1, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "World Heroes (set 1)", 0 ) | |
| 7286 | GAME( 1992, wh1h, wh1, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "World Heroes (set 2)", 0 ) | |
| 7287 | GAME( 1992, wh1ha, wh1, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "World Heroes (set 3)", 0 ) | |
| 7288 | GAME( 1993, wh2, neogeo, neogeo, neogeo, neogeo, ROT0, "ADK", "World Heroes 2", 0 ) | |
| 7289 | GAME( 1994, wh2j, neogeo, neogeo, neogeo, neogeo, ROT0, "ADK / SNK", "World Heroes 2 Jet (set 1)", 0 ) | |
| 7290 | GAME( 1994, wh2jh, wh2j, neogeo, neogeo, neogeo, ROT0, "ADK / SNK", "World Heroes 2 Jet (set 2)", 0 ) | |
| 7291 | GAME( 1994, aodk, neogeo, neogeo, neogeo, neogeo, ROT0, "ADK / SNK", "Aggressors of Dark Kombat / Tsuukai GANGAN Koushinkyoku", 0 ) | |
| 7292 | GAME( 1995, whp, neogeo, neogeo, neogeo, neogeo, ROT0, "ADK / SNK", "World Heroes Perfect", 0 ) | |
| 7293 | GAME( 1995, mosyougi, neogeo, neogeo, neogeo, neogeo, ROT0, "ADK / SNK", "Syougi No Tatsujin - Master of Syougi", 0 ) | |
| 7294 | GAME( 1996, overtop, neogeo, neogeo, neogeo, neogeo, ROT0, "ADK", "Over Top", 0 ) | |
| 7295 | GAME( 1996, ninjamas, neogeo, neogeo, neogeo, neogeo, ROT0, "ADK / SNK", "Ninja Master's - haoh-ninpo-cho", 0 ) | |
| 7296 | GAME( 1996, twinspri, neogeo, neogeo, neogeo, neogeo, ROT0, "ADK", "Twinkle Star Sprites", 0 ) | |
| 7297 | GAME( 1996, zintrckb, neogeo, neogeo, neogeo, neogeo, ROT0, "hack / bootleg", "Zintrick / Oshidashi Zentrix (hack / bootleg)", 0 ) | |
| 7298 | 7298 | |
| 7299 | 7299 | /* Aicom */ |
| 7300 | GAME( 1994, janshin, neogeo, neogeo, mjneogeo,neogeo, ROT0, "Aicom", "Jyanshin Densetsu - Quest of Jongmaster", 0 ) | |
| 7301 | GAME( 1995, pulstar, neogeo, neogeo, neogeo, neogeo, ROT0, "Aicom", "Pulstar", 0 ) | |
| 7300 | GAME( 1994, janshin, neogeo, neogeo, mjneogeo, neogeo, ROT0, "Aicom", "Jyanshin Densetsu - Quest of Jongmaster", 0 ) | |
| 7301 | GAME( 1995, pulstar, neogeo, neogeo, neogeo, neogeo, ROT0, "Aicom", "Pulstar", 0 ) | |
| 7302 | 7302 | |
| 7303 | 7303 | /* Data East Corporation */ |
| 7304 | GAME( 1993, spinmast, neogeo, neogeo, neogeo, neogeo, ROT0, "Data East Corporation", "Spin Master / Miracle Adventure", 0 ) | |
| 7305 | GAME( 1994, wjammers, neogeo, neogeo, neogeo, neogeo, ROT0, "Data East Corporation", "Windjammers / Flying Power Disc", 0 ) | |
| 7306 | GAME( 1994, karnovr, neogeo, neogeo, neogeo, neogeo, ROT0, "Data East Corporation", "Karnov's Revenge / Fighter's History Dynamite", 0 ) | |
| 7307 | GAME( 1994, strhoop, neogeo, neogeo, neogeo, neogeo, ROT0, "Data East Corporation", "Street Hoop / Street Slam / Dunk Dream", 0 ) | |
| 7308 | GAME( 1996, ghostlop, neogeo, neogeo, neogeo, neogeo, ROT0, "Data East Corporation", "Ghostlop (prototype)", 0 ) | |
| 7309 | GAME( 1996, magdrop2, neogeo, neogeo, neogeo, neogeo, ROT0, "Data East Corporation", "Magical Drop II", 0 ) | |
| 7310 | GAME( 1997, magdrop3, neogeo, neogeo, neogeo, neogeo, ROT0, "Data East Corporation", "Magical Drop III", 0 ) | |
| 7304 | GAME( 1993, spinmast, neogeo, neogeo, neogeo, neogeo, ROT0, "Data East Corporation", "Spin Master / Miracle Adventure", 0 ) | |
| 7305 | GAME( 1994, wjammers, neogeo, neogeo, neogeo, neogeo, ROT0, "Data East Corporation", "Windjammers / Flying Power Disc", 0 ) | |
| 7306 | GAME( 1994, karnovr, neogeo, neogeo, neogeo, neogeo, ROT0, "Data East Corporation", "Karnov's Revenge / Fighter's History Dynamite", 0 ) | |
| 7307 | GAME( 1994, strhoop, neogeo, neogeo, neogeo, neogeo, ROT0, "Data East Corporation", "Street Hoop / Street Slam / Dunk Dream", 0 ) | |
| 7308 | GAME( 1996, ghostlop, neogeo, neogeo, neogeo, neogeo, ROT0, "Data East Corporation", "Ghostlop (prototype)", 0 ) | |
| 7309 | GAME( 1996, magdrop2, neogeo, neogeo, neogeo, neogeo, ROT0, "Data East Corporation", "Magical Drop II", 0 ) | |
| 7310 | GAME( 1997, magdrop3, neogeo, neogeo, neogeo, neogeo, ROT0, "Data East Corporation", "Magical Drop III", 0 ) | |
| 7311 | 7311 | |
| 7312 | 7312 | /* Eleven */ |
| 7313 | GAME( 2000, nitd, neogeo, neogeo, neogeo, nitd, ROT0, "Eleven / Gavaking", "Nightmare in the Dark" , 0 ) /* Encrypted GFX */ | |
| 7314 | GAME( 2001, nitdbl, nitd, neogeo, neogeo, neogeo, ROT0, "bootleg", "Nightmare in the Dark (bootleg)" , 0 ) | |
| 7313 | GAME( 2000, nitd, neogeo, neogeo, neogeo, nitd, ROT0, "Eleven / Gavaking", "Nightmare in the Dark" , 0 ) /* Encrypted GFX */ | |
| 7314 | GAME( 2001, nitdbl, nitd, neogeo, neogeo, neogeo, ROT0, "bootleg", "Nightmare in the Dark (bootleg)" , 0 ) | |
| 7315 | 7315 | |
| 7316 | 7316 | /* Face */ |
| 7317 | GAME( 1994, gururin, neogeo, neogeo, neogeo, neogeo, ROT0, "Face", "Gururin", 0 ) | |
| 7318 | GAME( 1997, miexchng, neogeo, neogeo, neogeo, neogeo, ROT0, "Face", "Money Puzzle Exchanger / Money Idol Exchanger", 0 ) | |
| 7317 | GAME( 1994, gururin, neogeo, neogeo, neogeo, neogeo, ROT0, "Face", "Gururin", 0 ) | |
| 7318 | GAME( 1997, miexchng, neogeo, neogeo, neogeo, neogeo, ROT0, "Face", "Money Puzzle Exchanger / Money Idol Exchanger", 0 ) | |
| 7319 | 7319 | |
| 7320 | 7320 | /* Hudson Soft */ |
| 7321 | GAME( 1994, panicbom, neogeo, neogeo, neogeo, neogeo, ROT0, "Eighting / Hudson", "Panic Bomber", 0 ) | |
| 7322 | GAME( 1995, kabukikl, neogeo, neogeo, neogeo, neogeo, ROT0, "Hudson", "Far East of Eden - Kabuki Klash / Tengai Makyou - Shin Den", 0 ) | |
| 7323 | GAME( 1997, neobombe, neogeo, neogeo, neogeo, neogeo, ROT0, "Hudson", "Neo Bomberman", 0 ) | |
| 7321 | GAME( 1994, panicbom, neogeo, neogeo, neogeo, neogeo, ROT0, "Eighting / Hudson", "Panic Bomber", 0 ) | |
| 7322 | GAME( 1995, kabukikl, neogeo, neogeo, neogeo, neogeo, ROT0, "Hudson", "Far East of Eden - Kabuki Klash / Tengai Makyou - Shin Den", 0 ) | |
| 7323 | GAME( 1997, neobombe, neogeo, neogeo, neogeo, neogeo, ROT0, "Hudson", "Neo Bomberman", 0 ) | |
| 7324 | 7324 | |
| 7325 | 7325 | /* Monolith Corp. */ |
| 7326 | GAME( 1990, minasan, neogeo, neogeo, mjneogeo,neogeo, ROT0, "Monolith Corp.", "Minnasanno Okagesamadesu", 0 ) | |
| 7327 | GAME( 1991, bakatono, neogeo, neogeo, mjneogeo,neogeo, ROT0, "Monolith Corp.", "Bakatonosama Mahjong Manyuki", 0 ) | |
| 7326 | GAME( 1990, minasan, neogeo, neogeo, mjneogeo, neogeo, ROT0, "Monolith Corp.", "Minnasanno Okagesamadesu", 0 ) | |
| 7327 | GAME( 1991, bakatono, neogeo, neogeo, mjneogeo, neogeo, ROT0, "Monolith Corp.", "Bakatonosama Mahjong Manyuki", 0 ) | |
| 7328 | 7328 | |
| 7329 | 7329 | /* Nazca */ |
| 7330 | GAME( 1996, turfmast, neogeo, neogeo, neogeo, neogeo, ROT0, "Nazca", "Neo Turf Masters / Big Tournament Golf", 0 ) | |
| 7331 | GAME( 1996, mslug, neogeo, neogeo, neogeo, neogeo, ROT0, "Nazca", "Metal Slug - Super Vehicle-001", 0 ) | |
| 7330 | GAME( 1996, turfmast, neogeo, neogeo, neogeo, neogeo, ROT0, "Nazca", "Neo Turf Masters / Big Tournament Golf", 0 ) | |
| 7331 | GAME( 1996, mslug, neogeo, neogeo, neogeo, neogeo, ROT0, "Nazca", "Metal Slug - Super Vehicle-001", 0 ) | |
| 7332 | 7332 | |
| 7333 | 7333 | /* NMK */ |
| 7334 | GAME( 1994, zedblade, neogeo, neogeo, neogeo, neogeo, ROT0, "NMK", "Zed Blade / Operation Ragnarok", 0 ) | |
| 7334 | GAME( 1994, zedblade, neogeo, neogeo, neogeo, neogeo, ROT0, "NMK", "Zed Blade / Operation Ragnarok", 0 ) | |
| 7335 | 7335 | |
| 7336 | 7336 | /* Psikyo */ |
| 7337 | GAME( 1999, s1945p, neogeo, neogeo, neogeo, s1945p, ROT0, "Psikyo", "Strikers 1945 Plus" , 0 ) /* Encrypted GFX */ | |
| 7337 | GAME( 1999, s1945p, neogeo, neogeo, neogeo, s1945p, ROT0, "Psikyo", "Strikers 1945 Plus" , 0 ) /* Encrypted GFX */ | |
| 7338 | 7338 | |
| 7339 | 7339 | /* Sammy */ |
| 7340 | GAME( 1992, viewpoin, neogeo, neogeo, neogeo, neogeo, ROT0, "Sammy", "Viewpoint", 0 ) | |
| 7340 | GAME( 1992, viewpoin, neogeo, neogeo, neogeo, neogeo, ROT0, "Sammy", "Viewpoint", 0 ) | |
| 7341 | 7341 | |
| 7342 | 7342 | /* Saurus */ |
| 7343 | GAME( 1995, quizkof, neogeo, neogeo, neogeo, neogeo, ROT0, "Saurus", "Quiz King of Fighters", 0 ) | |
| 7344 | GAME( 1995, stakwin, neogeo, neogeo, neogeo, neogeo, ROT0, "Saurus", "Stakes Winner / Stakes Winner - GI kinzen seihae no michi", 0 ) | |
| 7345 | GAME( 1996, ragnagrd, neogeo, neogeo, neogeo, neogeo, ROT0, "Saurus", "Ragnagard / Shin-Oh-Ken", 0 ) | |
| 7346 | GAME( 1996, pgoal, neogeo, neogeo, neogeo, neogeo, ROT0, "Saurus", "Pleasure Goal / Futsal - 5 on 5 Mini Soccer", 0 ) | |
| 7347 | GAME( 1996, stakwin2, neogeo, neogeo, neogeo, neogeo, ROT0, "Saurus", "Stakes Winner 2", 0 ) | |
| 7348 | GAME( 1997, shocktro, neogeo, neogeo, neogeo, neogeo, ROT0, "Saurus", "Shock Troopers (set 1)", 0 ) | |
| 7349 | GAME( 1997, shocktra, shocktro, neogeo, neogeo, neogeo, ROT0, "Saurus", "Shock Troopers (set 2)", 0 ) | |
| 7350 | GAME( 1998, shocktr2, neogeo, neogeo, neogeo, neogeo, ROT0, "Saurus", "Shock Troopers - 2nd Squad", 0 ) | |
| 7351 | GAME( 1998, lans2004, shocktr2, neogeo, neogeo, lans2004, ROT0, "bootleg", "Lansquenet 2004 (Shock Troopers - 2nd Squad bootleg)", 0 ) | |
| 7343 | GAME( 1995, quizkof, neogeo, neogeo, neogeo, neogeo, ROT0, "Saurus", "Quiz King of Fighters", 0 ) | |
| 7344 | GAME( 1995, stakwin, neogeo, neogeo, neogeo, neogeo, ROT0, "Saurus", "Stakes Winner / Stakes Winner - GI kinzen seihae no michi", 0 ) | |
| 7345 | GAME( 1996, ragnagrd, neogeo, neogeo, neogeo, neogeo, ROT0, "Saurus", "Ragnagard / Shin-Oh-Ken", 0 ) | |
| 7346 | GAME( 1996, pgoal, neogeo, neogeo, neogeo, neogeo, ROT0, "Saurus", "Pleasure Goal / Futsal - 5 on 5 Mini Soccer", 0 ) | |
| 7347 | GAME( 1996, stakwin2, neogeo, neogeo, neogeo, neogeo, ROT0, "Saurus", "Stakes Winner 2", 0 ) | |
| 7348 | GAME( 1997, shocktro, neogeo, neogeo, neogeo, neogeo, ROT0, "Saurus", "Shock Troopers (set 1)", 0 ) | |
| 7349 | GAME( 1997, shocktra, shocktro, neogeo, neogeo, neogeo, ROT0, "Saurus", "Shock Troopers (set 2)", 0 ) | |
| 7350 | GAME( 1998, shocktr2, neogeo, neogeo, neogeo, neogeo, ROT0, "Saurus", "Shock Troopers - 2nd Squad", 0 ) | |
| 7351 | GAME( 1998, lans2004, shocktr2, neogeo, neogeo, lans2004, ROT0, "bootleg", "Lansquenet 2004 (Shock Troopers - 2nd Squad bootleg)", 0 ) | |
| 7352 | 7352 | |
| 7353 | 7353 | /* Sunsoft */ |
| 7354 | GAME( 1995, galaxyfg, neogeo, neogeo, neogeo, neogeo, ROT0, "Sunsoft", "Galaxy Fight - Universal Warriors", 0 ) | |
| 7355 | GAME( 1996, wakuwak7, neogeo, neogeo, neogeo, neogeo, ROT0, "Sunsoft", "Waku Waku 7", 0 ) | |
| 7354 | GAME( 1995, galaxyfg, neogeo, neogeo, neogeo, neogeo, ROT0, "Sunsoft", "Galaxy Fight - Universal Warriors", 0 ) | |
| 7355 | GAME( 1996, wakuwak7, neogeo, neogeo, neogeo, neogeo, ROT0, "Sunsoft", "Waku Waku 7", 0 ) | |
| 7356 | 7356 | |
| 7357 | 7357 | /* Taito */ |
| 7358 | GAME( 1994, pbobblen, neogeo, neogeo, neogeo, neogeo, ROT0, "Taito", "Puzzle Bobble / Bust-A-Move (Neo-Geo) (set 1)", 0 ) | |
| 7359 | GAME( 1994, pbobblna, pbobblen, neogeo, neogeo, neogeo, ROT0, "Taito", "Puzzle Bobble / Bust-A-Move (Neo-Geo) (set 2)", 0 ) | |
| 7360 | GAME( 1999, pbobbl2n, neogeo, neogeo, neogeo, neogeo, ROT0, "Taito (SNK license)", "Puzzle Bobble 2 / Bust-A-Move Again (Neo-Geo)", 0 ) | |
| 7361 | GAME( 2003, pnyaa, neogeo, neogeo, neogeo, pnyaa, ROT0, "Aiky / Taito", "Pochi and Nyaa", 0 ) | |
| 7358 | GAME( 1994, pbobblen, neogeo, neogeo, neogeo, neogeo, ROT0, "Taito", "Puzzle Bobble / Bust-A-Move (Neo-Geo) (set 1)", 0 ) | |
| 7359 | GAME( 1994, pbobblna, pbobblen, neogeo, neogeo, neogeo, ROT0, "Taito", "Puzzle Bobble / Bust-A-Move (Neo-Geo) (set 2)", 0 ) | |
| 7360 | GAME( 1999, pbobbl2n, neogeo, neogeo, neogeo, neogeo, ROT0, "Taito (SNK license)", "Puzzle Bobble 2 / Bust-A-Move Again (Neo-Geo)", 0 ) | |
| 7361 | GAME( 2003, pnyaa, neogeo, neogeo, neogeo, pnyaa, ROT0, "Aiky / Taito", "Pochi and Nyaa", 0 ) | |
| 7362 | 7362 | |
| 7363 | 7363 | /* Takara */ |
| 7364 | GAME( 1995, marukodq, neogeo, neogeo, neogeo, neogeo, ROT0, "Takara", "Chibi Marukochan Deluxe Quiz", 0 ) | |
| 7364 | GAME( 1995, marukodq, neogeo, neogeo, neogeo, neogeo, ROT0, "Takara", "Chibi Marukochan Deluxe Quiz", 0 ) | |
| 7365 | 7365 | |
| 7366 | 7366 | /* Technos */ |
| 7367 | GAME( 1995, doubledr, neogeo, neogeo, neogeo, neogeo, ROT0, "Technos", "Double Dragon (Neo-Geo)", 0 ) | |
| 7368 | GAME( 1995, gowcaizr, neogeo, neogeo, neogeo, neogeo, ROT0, "Technos", "Voltage Fighter - Gowcaizer / Choujin Gakuen Gowcaizer", 0 ) | |
| 7369 | GAME( 1996, sdodgeb, neogeo, neogeo, neogeo, neogeo, ROT0, "Technos", "Super Dodge Ball / Kunio no Nekketsu Toukyuu Densetsu", 0 ) | |
| 7367 | GAME( 1995, doubledr, neogeo, neogeo, neogeo, neogeo, ROT0, "Technos", "Double Dragon (Neo-Geo)", 0 ) | |
| 7368 | GAME( 1995, gowcaizr, neogeo, neogeo, neogeo, neogeo, ROT0, "Technos", "Voltage Fighter - Gowcaizer / Choujin Gakuen Gowcaizer", 0 ) | |
| 7369 | GAME( 1996, sdodgeb, neogeo, neogeo, neogeo, neogeo, ROT0, "Technos", "Super Dodge Ball / Kunio no Nekketsu Toukyuu Densetsu", 0 ) | |
| 7370 | 7370 | |
| 7371 | 7371 | /* Tecmo */ |
| 7372 | GAME( 1996, tws96, neogeo, neogeo, neogeo, neogeo, ROT0, "Tecmo", "Tecmo World Soccer '96", 0 ) | |
| 7372 | GAME( 1996, tws96, neogeo, neogeo, neogeo, neogeo, ROT0, "Tecmo", "Tecmo World Soccer '96", 0 ) | |
| 7373 | 7373 | |
| 7374 | 7374 | /* Yumekobo */ |
| 7375 | GAME( 1998, blazstar, neogeo, neogeo, neogeo, neogeo, ROT0, "Yumekobo", "Blazing Star", 0 ) | |
| 7376 | GAME( 1999, preisle2, neogeo, neogeo, neogeo, preisle2, ROT0, "Yumekobo", "Prehistoric Isle 2" , 0 ) /* Encrypted GFX */ | |
| 7375 | GAME( 1998, blazstar, neogeo, neogeo, neogeo, neogeo, ROT0, "Yumekobo", "Blazing Star", 0 ) | |
| 7376 | GAME( 1999, preisle2, neogeo, neogeo, neogeo, preisle2, ROT0, "Yumekobo", "Prehistoric Isle 2" , 0 ) /* Encrypted GFX */ | |
| 7377 | 7377 | |
| 7378 | 7378 | /* Viccom */ |
| 7379 | GAME( 1994, fightfev, neogeo, neogeo, neogeo, neogeo, ROT0, "Viccom", "Fight Fever (set 1)", 0 ) | |
| 7380 | GAME( 1994, fightfva, fightfev, neogeo, neogeo, neogeo, ROT0, "Viccom", "Fight Fever (set 2)", 0 ) | |
| 7379 | GAME( 1994, fightfev, neogeo, neogeo, neogeo, neogeo, ROT0, "Viccom", "Fight Fever (set 1)", 0 ) | |
| 7380 | GAME( 1994, fightfva, fightfev, neogeo, neogeo, neogeo, ROT0, "Viccom", "Fight Fever (set 2)", 0 ) | |
| 7381 | 7381 | |
| 7382 | 7382 | /* Video System Co. */ |
| 7383 | GAME( 1994, pspikes2, neogeo, neogeo, neogeo, neogeo, ROT0, "Video System Co.", "Power Spikes II", 0 ) | |
| 7384 | GAME( 1994, sonicwi2, neogeo, neogeo, neogeo, neogeo, ROT0, "Video System Co.", "Aero Fighters 2 / Sonic Wings 2", 0 ) | |
| 7385 | GAME( 1995, sonicwi3, neogeo, neogeo, neogeo, neogeo, ROT0, "Video System Co.", "Aero Fighters 3 / Sonic Wings 3", 0 ) | |
| 7386 | GAME( 1997, popbounc, neogeo, neogeo, popbounc,neogeo, ROT0, "Video System Co.", "Pop 'n Bounce / Gapporin", 0 ) | |
| 7383 | GAME( 1994, pspikes2, neogeo, neogeo, neogeo, neogeo, ROT0, "Video System Co.", "Power Spikes II", 0 ) | |
| 7384 | GAME( 1994, sonicwi2, neogeo, neogeo, neogeo, neogeo, ROT0, "Video System Co.", "Aero Fighters 2 / Sonic Wings 2", 0 ) | |
| 7385 | GAME( 1995, sonicwi3, neogeo, neogeo, neogeo, neogeo, ROT0, "Video System Co.", "Aero Fighters 3 / Sonic Wings 3", 0 ) | |
| 7386 | GAME( 1997, popbounc, neogeo, neogeo, popbounc, neogeo, ROT0, "Video System Co.", "Pop 'n Bounce / Gapporin", 0 ) | |
| 7387 | 7387 | |
| 7388 | 7388 | /* Visco */ |
| 7389 | GAME( 1992, androdun, neogeo, neogeo, neogeo, neogeo, ROT0, "Visco", "Andro Dunos", 0 ) | |
| 7390 | GAME( 1995, puzzledp, neogeo, neogeo, neogeo, neogeo, ROT0, "Taito (Visco license)", "Puzzle De Pon!", 0 ) | |
| 7391 | GAME( 1996, neomrdo, neogeo, neogeo, neogeo, neogeo, ROT0, "Visco", "Neo Mr. Do!", 0 ) | |
| 7392 | GAME( 1995, goalx3, neogeo, neogeo, neogeo, neogeo, ROT0, "Visco", "Goal! Goal! Goal!", 0 ) | |
| 7393 | GAME( 1996, neodrift, neogeo, neogeo, neogeo, neogeo, ROT0, "Visco", "Neo Drift Out - New Technology", 0 ) | |
| 7394 | GAME( 1996, breakers, neogeo, neogeo, neogeo, neogeo, ROT0, "Visco", "Breakers", 0 ) | |
| 7395 | GAME( 1997, puzzldpr, puzzledp, neogeo, neogeo, neogeo, ROT0, "Taito (Visco license)", "Puzzle De Pon! R!", 0 ) | |
| 7396 | GAME( 1998, breakrev, breakers, neogeo, neogeo, neogeo, ROT0, "Visco", "Breakers Revenge", 0 ) | |
| 7397 | GAME( 1998, flipshot, neogeo, neogeo, neogeo, neogeo, ROT0, "Visco", "Battle Flip Shot", 0 ) | |
| 7398 | GAME( 1999, ctomaday, neogeo, neogeo, neogeo, neogeo, ROT0, "Visco", "Captain Tomaday", 0 ) | |
| 7399 | GAME( 1999, ganryu, neogeo, neogeo, neogeo, ganryu, ROT0, "Visco", "Ganryu / Musashi Ganryuki" , 0 ) /* Encrypted GFX */ | |
| 7400 | GAME( 2000, bangbead, neogeo, neogeo, neogeo, bangbead, ROT0, "Visco", "Bang Bead", 0 ) | |
| 7401 | //GAME( 2000, bangbedp, bangbead, neogeo, neogeo, neogeo, ROT0, "Visco", "Bang Bead (prototype)", 0 ) | |
| 7389 | GAME( 1992, androdun, neogeo, neogeo, neogeo, neogeo, ROT0, "Visco", "Andro Dunos", 0 ) | |
| 7390 | GAME( 1995, puzzledp, neogeo, neogeo, neogeo, neogeo, ROT0, "Taito (Visco license)", "Puzzle De Pon!", 0 ) | |
| 7391 | GAME( 1996, neomrdo, neogeo, neogeo, neogeo, neogeo, ROT0, "Visco", "Neo Mr. Do!", 0 ) | |
| 7392 | GAME( 1995, goalx3, neogeo, neogeo, neogeo, neogeo, ROT0, "Visco", "Goal! Goal! Goal!", 0 ) | |
| 7393 | GAME( 1996, neodrift, neogeo, neogeo, neogeo, neogeo, ROT0, "Visco", "Neo Drift Out - New Technology", 0 ) | |
| 7394 | GAME( 1996, breakers, neogeo, neogeo, neogeo, neogeo, ROT0, "Visco", "Breakers", 0 ) | |
| 7395 | GAME( 1997, puzzldpr, puzzledp, neogeo, neogeo, neogeo, ROT0, "Taito (Visco license)", "Puzzle De Pon! R!", 0 ) | |
| 7396 | GAME( 1998, breakrev, breakers, neogeo, neogeo, neogeo, ROT0, "Visco", "Breakers Revenge", 0 ) | |
| 7397 | GAME( 1998, flipshot, neogeo, neogeo, neogeo, neogeo, ROT0, "Visco", "Battle Flip Shot", 0 ) | |
| 7398 | GAME( 1999, ctomaday, neogeo, neogeo, neogeo, neogeo, ROT0, "Visco", "Captain Tomaday", 0 ) | |
| 7399 | GAME( 1999, ganryu, neogeo, neogeo, neogeo, ganryu, ROT0, "Visco", "Ganryu / Musashi Ganryuki" , 0 ) /* Encrypted GFX */ | |
| 7400 | GAME( 2000, bangbead, neogeo, neogeo, neogeo, bangbead, ROT0, "Visco", "Bang Bead", 0 ) | |
| 7401 | //GAME( 2000, bangbedp, bangbead, neogeo, neogeo, neogeo, ROT0, "Visco", "Bang Bead (prototype)", 0 ) | |
| 7402 | 7402 | |
| 7403 | 7403 | /* Mega Enterprise */ |
| 7404 | GAME( 2002, mslug4, neogeo, neogeo, neogeo, mslug4, ROT0, "Mega", "Metal Slug 4", 0 ) | |
| 7405 | GAME( 2002, ms4plus, mslug4, neogeo, neogeo, neogeo, ROT0, "bootleg", "Metal Slug 4 Plus (bootleg)", 0 ) | |
| 7404 | GAME( 2002, mslug4, neogeo, neogeo, neogeo, mslug4, ROT0, "Mega", "Metal Slug 4", 0 ) | |
| 7405 | GAME( 2002, ms4plus, mslug4, neogeo, neogeo, neogeo, ROT0, "bootleg", "Metal Slug 4 Plus (bootleg)", 0 ) | |
| 7406 | 7406 | |
| 7407 | 7407 | /* Evoga */ |
| 7408 | GAME( 2002, rotd, neogeo, neogeo, neogeo, rotd, ROT0, "Evoga / Playmore", "Rage of the Dragons", 0 ) | |
| 7408 | GAME( 2002, rotd, neogeo, neogeo, neogeo, rotd, ROT0, "Evoga / Playmore", "Rage of the Dragons", 0 ) | |
| 7409 | 7409 | |
| 7410 | 7410 | /* Atlus */ |
| 7411 | GAME( 2002, matrim, neogeo, neogeo, neogeo, matrim, ROT0, "Noise Factory / Atlus", "Matrimelee / Shin Gouketsuji Ichizoku Toukon", 0 ) | |
| 7411 | GAME( 2002, matrim, neogeo, neogeo, neogeo, matrim, ROT0, "Noise Factory / Atlus", "Matrimelee / Shin Gouketsuji Ichizoku Toukon", 0 ) | |
| 7412 | 7412 | |
| 7413 | 7413 | /* Breezasoft */ |
| 7414 | GAME( 2001, jockeygp, neogeo, neogeo, jockeygp,jockeygp, ROT0, "Sun Amusement / BrezzaSoft", "Jockey Grand Prix", 0 ) | |
| 7415 | GAME( 2001, vliner, neogeo, neogeo, vliner, vliner, ROT0, "Dyna / BreezaSoft", "V-Liner (set 1)", 0 ) | |
| 7416 | GAME( 2001, vlinero, vliner, neogeo, vliner, vliner, ROT0, "Dyna / BreezaSoft", "V-Liner (set 2)", 0 ) | |
| 7414 | GAME( 2001, jockeygp, neogeo, neogeo, jockeygp, jockeygp, ROT0, "Sun Amusement / BrezzaSoft", "Jockey Grand Prix", 0 ) | |
| 7415 | GAME( 2001, vliner, neogeo, neogeo, vliner, vliner, ROT0, "Dyna / BreezaSoft", "V-Liner (set 1)", 0 ) | |
| 7416 | GAME( 2001, vlinero, vliner, neogeo, vliner, vliner, ROT0, "Dyna / BreezaSoft", "V-Liner (set 2)", 0 ) | |
| 7417 | 7417 | |
| 7418 | 7418 | /* Kyle Hodgetts */ |
| 7419 | GAME( 2000, diggerma, neogeo, neogeo, neogeo, neogeo, ROT0, "Kyle Hodgetts", "Digger Man (prototype)", 0 ) | |
| 7419 | GAME( 2000, diggerma, neogeo, neogeo, neogeo, neogeo, ROT0, "Kyle Hodgetts", "Digger Man (prototype)", 0 ) | |
| 7420 | 7420 |
| r1649 | r1650 | |
|---|---|---|
| 16 | 16 | ***************************************************************************/ |
| 17 | 17 | |
| 18 | 18 | #include "driver.h" |
| 19 | #include "deprecat.h" | |
| 19 | 20 | #include "video/konamiic.h" |
| 20 | 21 | #include "cpu/m68000/m68000.h" |
| 21 | 22 | #include "cpu/z80/z80.h" |
| r1649 | r1650 | |
|---|---|---|
| 217 | 217 | ***************************************************************************/ |
| 218 | 218 | |
| 219 | 219 | #include "driver.h" |
| 220 | #include "deprecat.h" | |
| 220 | 221 | #include "video/vector.h" |
| 221 | 222 | #include "video/avgdvg.h" |
| 222 | 223 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "includes/eolithsp.h" |
| 13 | 14 | |
| 14 | 15 | static int eolith_speedup_address; |
| r1649 | r1650 | |
|---|---|---|
| 22 | 22 | */ |
| 23 | 23 | |
| 24 | 24 | #include "driver.h" |
| 25 | #include "deprecat.h" | |
| 25 | 26 | |
| 26 | 27 | #include "video/konamiic.h" |
| 27 | 28 | #include "machine/konamigx.h" |
| r1649 | r1650 | |
|---|---|---|
| 40 | 40 | ******************************************************************************/ |
| 41 | 41 | |
| 42 | 42 | #include "driver.h" |
| 43 | #include "deprecat.h" | |
| 43 | 44 | #include "cpu/z80/z80.h" |
| 44 | 45 | #include "fromance.h" |
| 45 | 46 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
|---|---|---|
| 34 | 34 | |
| 35 | 35 | #include "driver.h" |
| 36 | 36 | #include "render.h" |
| 37 | #include "deprecat.h" | |
| 37 | 38 | #include "cpu/z80/z80daisy.h" |
| 38 | 39 | #include "machine/laserdsc.h" |
| 39 | 40 | #include "machine/z80ctc.h" |
| r1649 | r1650 | |
|---|---|---|
| 75 | 75 | ****************************************************************************/ |
| 76 | 76 | |
| 77 | 77 | #include "driver.h" |
| 78 | #include "deprecat.h" | |
| 78 | 79 | #include "cpu/m6809/m6809.h" |
| 79 | 80 | #include "sound/pokey.h" |
| 80 | 81 | #include "irobot.h" |
| r1649 | r1650 | |
| 312 | 313 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 313 | 314 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 29*8-1) |
| 314 | 315 | MDRV_GFXDECODE(irobot) |
| 315 | MDRV_PALETTE_LENGTH(64 + 32) | |
| 316 | MDRV_COLORTABLE_LENGTH(64 + 32) /* 64 for polygons, 32 for text */ | |
| 316 | MDRV_PALETTE_LENGTH(64 + 32) /* 64 for polygons, 32 for text */ | |
| 317 | 317 | |
| 318 | 318 | MDRV_PALETTE_INIT(irobot) |
| 319 | 319 | MDRV_VIDEO_START(irobot) |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | ***************************************************************************/ |
| 15 | 15 | |
| 16 | 16 | #include "driver.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | #include "cpu/m6800/m6800.h" |
| 18 | 19 | #include "sound/namco.h" |
| 19 | 20 |
| r1649 | r1650 | |
|---|---|---|
| 158 | 158 | // Compiler Directives |
| 159 | 159 | |
| 160 | 160 | #include "driver.h" |
| 161 | #include "deprecat.h" | |
| 161 | 162 | #include "cpu/m6809/m6809.h" |
| 162 | 163 | #include "sound/ay8910.h" |
| 163 | 164 |
| r1649 | r1650 | |
|---|---|---|
| 38 | 38 | */ |
| 39 | 39 | |
| 40 | 40 | #include "driver.h" |
| 41 | #include "deprecat.h" | |
| 41 | 42 | #include "cpu/m68000/m68000.h" |
| 42 | 43 | #include "machine/idectrl.h" |
| 43 | 44 | #include "sound/k054539.h" |
| r1649 | r1650 | |
|---|---|---|
| 121 | 121 | */ |
| 122 | 122 | |
| 123 | 123 | #include "driver.h" |
| 124 | #include "deprecat.h" | |
| 124 | 125 | #include "cpu/arm7/arm7core.h" |
| 125 | 126 | |
| 126 | 127 | enum |
| r0 | r1650 | |
|---|---|---|
| 1 | /**************************************************************************** | |
| 2 | ||
| 3 | Irem M57 hardware | |
| 4 | ||
| 5 | ***************************************************************************** | |
| 6 | ||
| 7 | Tropical Angel | |
| 8 | ||
| 9 | driver by Phil Stroffolino | |
| 10 | ||
| 11 | IREM M57 board stack with a M52-SOUND-E sound PCB. | |
| 12 | ||
| 13 | M57-A-A: | |
| 14 | TA-A-xx roms and proms | |
| 15 | NEC D780C (Z80) CPU | |
| 16 | NANAO KNA6032601 custom chip | |
| 17 | NANAO KNA6032701 custom chip | |
| 18 | 8-way dipswitch (x2) | |
| 19 | M58725P RAM (x3) | |
| 20 | CN1 - Ribbon cable connector | |
| 21 | CN2 - Ribbon cable connector | |
| 22 | Ribbon cable connector to sound PCB | |
| 23 | ||
| 24 | M57-B-A: | |
| 25 | TA-B-xx roms and proms | |
| 26 | 18.432 MHz OSC | |
| 27 | CN1 - Ribbon cable connector | |
| 28 | CN2 - Ribbon cable connector | |
| 29 | ||
| 30 | M52: | |
| 31 | HD6803 CPU | |
| 32 | AY-3-9810 (x2) sound chips | |
| 33 | MSM5205 OKI sound chip (and an unpopulated socket for a second MSM5202) | |
| 34 | 3.579545 MHz OSC | |
| 35 | 2764 Program rom labeled "TA S-1A-" | |
| 36 | Ribbon cable connector to M57-A-A PCB | |
| 37 | ||
| 38 | New Tropical Angel: | |
| 39 | Roms where found on an official IREM board with genuine IREM Tropical Angel | |
| 40 | license seal and genuine IREM serial number sticker. | |
| 41 | The "new" roms have hand written labels, while those that match the current | |
| 42 | Tropical Angel set look to be factory labeled chips. | |
| 43 | ||
| 44 | ****************************************************************************/ | |
| 45 | ||
| 46 | #include "driver.h" | |
| 47 | #include "m57.h" | |
| 48 | #include "audio/irem.h" | |
| 49 | ||
| 50 | ||
| 51 | #define MASTER_CLOCK XTAL_18_432MHz | |
| 52 | ||
| 53 | ||
| 54 | ||
| 55 | /************************************* | |
| 56 | * | |
| 57 | * Memory maps | |
| 58 | * | |
| 59 | *************************************/ | |
| 60 | ||
| 61 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 62 | AM_RANGE(0x0000, 0x7fff) AM_ROM | |
| 63 | AM_RANGE(0x8000, 0x87ff) AM_READWRITE(MRA8_RAM, m57_videoram_w) AM_BASE(&videoram) | |
| 64 | AM_RANGE(0x9000, 0x91ff) AM_RAM AM_BASE(&m57_scroll) | |
| 65 | AM_RANGE(0xc820, 0xc8ff) AM_WRITE(MWA8_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size) | |
| 66 | AM_RANGE(0xd000, 0xd000) AM_WRITE(irem_sound_cmd_w) | |
| 67 | AM_RANGE(0xd001, 0xd001) AM_WRITE(m57_flipscreen_w) /* + coin counters */ | |
| 68 | AM_RANGE(0xd000, 0xd000) AM_READ_PORT("IN0") | |
| 69 | AM_RANGE(0xd001, 0xd001) AM_READ_PORT("IN1") | |
| 70 | AM_RANGE(0xd002, 0xd002) AM_READ_PORT("IN2") | |
| 71 | AM_RANGE(0xd003, 0xd003) AM_READ_PORT("DSW1") | |
| 72 | AM_RANGE(0xd004, 0xd004) AM_READ_PORT("DSW2") | |
| 73 | AM_RANGE(0xe000, 0xe7ff) AM_RAM | |
| 74 | ADDRESS_MAP_END | |
| 75 | ||
| 76 | ||
| 77 | ||
| 78 | /************************************* | |
| 79 | * | |
| 80 | * Port definitions | |
| 81 | * | |
| 82 | *************************************/ | |
| 83 | ||
| 84 | static INPUT_PORTS_START( troangel ) | |
| 85 | PORT_START_TAG("IN0") | |
| 86 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) | |
| 87 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) | |
| 88 | /* coin input must be active for 19 frames to be consistently recognized */ | |
| 89 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) PORT_IMPULSE(19) | |
| 90 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 91 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 92 | ||
| 93 | PORT_START_TAG("IN1") | |
| 94 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 95 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 96 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 97 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 98 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 99 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 100 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 101 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 102 | ||
| 103 | PORT_START_TAG("IN2") | |
| 104 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 105 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 106 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 107 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 108 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 109 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 110 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 111 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 112 | ||
| 113 | PORT_START_TAG("DSW1") | |
| 114 | PORT_DIPNAME( 0x03, 0x03, "Time" ) | |
| 115 | PORT_DIPSETTING( 0x03, "180 160 140" ) | |
| 116 | PORT_DIPSETTING( 0x02, "160 140 120" ) | |
| 117 | PORT_DIPSETTING( 0x01, "140 120 100" ) | |
| 118 | PORT_DIPSETTING( 0x00, "120 100 100" ) | |
| 119 | PORT_DIPNAME( 0x04, 0x04, "Crash Loss Time" ) | |
| 120 | PORT_DIPSETTING( 0x04, "5" ) | |
| 121 | PORT_DIPSETTING( 0x00, "10" ) | |
| 122 | PORT_DIPNAME( 0x08, 0x08, "Background Sound" ) | |
| 123 | PORT_DIPSETTING( 0x08, "Boat Motor" ) | |
| 124 | PORT_DIPSETTING( 0x00, "Music" ) | |
| 125 | /* TODO: support the different settings which happen in Coin Mode 2 */ | |
| 126 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coinage ) ) /* mapped on coin mode 1 */ | |
| 127 | PORT_DIPSETTING( 0xa0, DEF_STR( 6C_1C ) ) | |
| 128 | PORT_DIPSETTING( 0xb0, DEF_STR( 5C_1C ) ) | |
| 129 | PORT_DIPSETTING( 0xc0, DEF_STR( 4C_1C ) ) | |
| 130 | PORT_DIPSETTING( 0xd0, DEF_STR( 3C_1C ) ) | |
| 131 | PORT_DIPSETTING( 0xe0, DEF_STR( 2C_1C ) ) | |
| 132 | PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) | |
| 133 | PORT_DIPSETTING( 0x70, DEF_STR( 1C_2C ) ) | |
| 134 | PORT_DIPSETTING( 0x60, DEF_STR( 1C_3C ) ) | |
| 135 | PORT_DIPSETTING( 0x50, DEF_STR( 1C_4C ) ) | |
| 136 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) | |
| 137 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_6C ) ) | |
| 138 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 139 | /* settings 0x10, 0x20, 0x80, 0x90 all give 1 Coin/1 Credit */ | |
| 140 | ||
| 141 | PORT_START_TAG("DSW2") | |
| 142 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) | |
| 143 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 144 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 145 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Cabinet ) ) | |
| 146 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 147 | PORT_DIPSETTING( 0x02, DEF_STR( Cocktail ) ) | |
| 148 | /* This activates a different coin mode. Look at the dip switch setting schematic */ | |
| 149 | PORT_DIPNAME( 0x04, 0x04, "Coin Mode" ) | |
| 150 | PORT_DIPSETTING( 0x04, "Mode 1" ) | |
| 151 | PORT_DIPSETTING( 0x00, "Mode 2" ) | |
| 152 | /* TODO: the following enables an analog accelerator input read from 0xd003 */ | |
| 153 | /* however that is the DSW1 input so it must be multiplexed some way */ | |
| 154 | PORT_DIPNAME( 0x08, 0x08, "Analog Accelarator" ) | |
| 155 | PORT_DIPSETTING( 0x08, DEF_STR( No ) ) | |
| 156 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 157 | /* In stop mode, press 2 to stop and 1 to restart */ | |
| 158 | PORT_DIPNAME( 0x10, 0x10, "Stop Mode (Cheat)") | |
| 159 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 160 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 161 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) | |
| 162 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 163 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 164 | PORT_DIPNAME( 0x40, 0x40, "Invulnerability (Cheat)") | |
| 165 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 166 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 167 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) | |
| 168 | INPUT_PORTS_END | |
| 169 | ||
| 170 | ||
| 171 | ||
| 172 | /************************************* | |
| 173 | * | |
| 174 | * Graphics layouts | |
| 175 | * | |
| 176 | *************************************/ | |
| 177 | ||
| 178 | static const gfx_layout spritelayout = | |
| 179 | { | |
| 180 | 16,32, | |
| 181 | RGN_FRAC(1,3), | |
| 182 | 3, | |
| 183 | { RGN_FRAC(0,3), RGN_FRAC(1,3), RGN_FRAC(2,3) }, | |
| 184 | { STEP8(0,1), STEP8(16*8,1) }, | |
| 185 | { STEP16(0,8), STEP16(256*64,8) }, | |
| 186 | 32*8 | |
| 187 | }; | |
| 188 | ||
| 189 | static GFXDECODE_START( m57 ) | |
| 190 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, gfx_8x8x3_planar, 0, 32 ) | |
| 191 | GFXDECODE_ENTRY( REGION_GFX2, 0x0000, spritelayout, 32*8, 32 ) | |
| 192 | GFXDECODE_END | |
| 193 | ||
| 194 | ||
| 195 | ||
| 196 | /************************************* | |
| 197 | * | |
| 198 | * Machine drivers | |
| 199 | * | |
| 200 | *************************************/ | |
| 201 | ||
| 202 | static MACHINE_DRIVER_START( m57 ) | |
| 203 | ||
| 204 | /* basic machine hardware */ | |
| 205 | MDRV_CPU_ADD(Z80, XTAL_18_432MHz/6) /* verified on pcb */ | |
| 206 | MDRV_CPU_PROGRAM_MAP(main_map,0) | |
| 207 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) | |
| 208 | ||
| 209 | MDRV_SCREEN_REFRESH_RATE(57) | |
| 210 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1790) /* accurate frequency, measured on a Moon Patrol board, is 56.75Hz. */) | |
| 211 | /* the Lode Runner manual (similar but different hardware) */ | |
| 212 | /* talks about 55Hz and 1790ms vblank duration. */ | |
| 213 | ||
| 214 | /* video hardware */ | |
| 215 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 216 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 217 | MDRV_SCREEN_SIZE(32*8, 32*8) | |
| 218 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 1*8, 31*8-1) | |
| 219 | MDRV_GFXDECODE(m57) | |
| 220 | MDRV_PALETTE_LENGTH(32*8+32*8) | |
| 221 | ||
| 222 | MDRV_PALETTE_INIT(m57) | |
| 223 | MDRV_VIDEO_START(m57) | |
| 224 | MDRV_VIDEO_UPDATE(m57) | |
| 225 | ||
| 226 | /* sound hardware */ | |
| 227 | MDRV_IMPORT_FROM(m52_small_audio) | |
| 228 | MACHINE_DRIVER_END | |
| 229 | ||
| 230 | ||
| 231 | ||
| 232 | /************************************* | |
| 233 | * | |
| 234 | * ROM definitions | |
| 235 | * | |
| 236 | *************************************/ | |
| 237 | ||
| 238 | ROM_START( troangel ) | |
| 239 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) /* main CPU */ | |
| 240 | ROM_LOAD( "ta-a-3k", 0x0000, 0x2000, CRC(f21f8196) SHA1(7cbf74b77a559ee70312b799e707394d9b849f5b) ) | |
| 241 | ROM_LOAD( "ta-a-3m", 0x2000, 0x2000, CRC(58801e55) SHA1(91bdda778f2c4486001bc4ad26d6f21ba275ae08) ) | |
| 242 | ROM_LOAD( "ta-a-3n", 0x4000, 0x2000, CRC(de3dea44) SHA1(1290755ffc04dc3b3667e063118669a0eab6fb79) ) | |
| 243 | ROM_LOAD( "ta-a-3q", 0x6000, 0x2000, CRC(fff0fc2a) SHA1(82f3f5a8817e956192323eb555daa85b7766676d) ) | |
| 244 | ||
| 245 | ROM_REGION( 0x8000 , REGION_CPU2, 0 ) /* sound CPU */ | |
| 246 | ROM_LOAD( "ta-s-1a", 0x6000, 0x2000, CRC(15a83210) SHA1(8ada510db689ffa372b2f4dc4bd1b1c69a0c5307) ) | |
| 247 | ||
| 248 | ROM_REGION( 0x06000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 249 | ROM_LOAD( "ta-a-3e", 0x00000, 0x2000, CRC(e49f7ad8) SHA1(915de1084fd3c5fc81dd8c80107c28cc57b33226) ) | |
| 250 | ROM_LOAD( "ta-a-3d", 0x02000, 0x2000, CRC(06eef241) SHA1(4f327a54169046d8d84b5f5cf5d9f45e1df4dae6) ) | |
| 251 | ROM_LOAD( "ta-a-3c", 0x04000, 0x2000, CRC(7ff5482f) SHA1(fe8c181fed113007d69d11e8aa467e86a6357ffb) ) /* characters */ | |
| 252 | ||
| 253 | ROM_REGION( 0x0c000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 254 | ROM_LOAD( "ta-b-5j", 0x00000, 0x2000, CRC(86895c0c) SHA1(b42b041e3e20dadd8411805d492133d371426ebf) ) /* sprites */ | |
| 255 | ROM_LOAD( "ta-b-5h", 0x02000, 0x2000, CRC(f8cff29d) SHA1(dabf3bbf50f73a381056131c2239c84dd966b63e) ) | |
| 256 | ROM_LOAD( "ta-b-5e", 0x04000, 0x2000, CRC(8b21ee9a) SHA1(1272722211d22d5b153e9415cc189a5aa9028543) ) | |
| 257 | ROM_LOAD( "ta-b-5d", 0x06000, 0x2000, CRC(cd473d47) SHA1(854cb532bd62851a206da2affd66a1257b7085b6) ) | |
| 258 | ROM_LOAD( "ta-b-5c", 0x08000, 0x2000, CRC(c19134c9) SHA1(028660e66fd033473c468b694e870c633ca05ec6) ) | |
| 259 | ROM_LOAD( "ta-b-5a", 0x0a000, 0x2000, CRC(0012792a) SHA1(b4380f5fbe5e9ce9b44f87ce48a8b402bab58b52) ) | |
| 260 | ||
| 261 | ROM_REGION( 0x0320, REGION_PROMS, 0 ) | |
| 262 | ROM_LOAD( "ta-a-5a", 0x0000, 0x0100, CRC(01de1167) SHA1(b9070f8c70eb362fc4d6a0a92235ce0a5b2ab858) ) /* chars palette low 4 bits */ | |
| 263 | ROM_LOAD( "ta-a-5b", 0x0100, 0x0100, CRC(efd11d4b) SHA1(7c7c356063ab35e4ffb8d65cd20c27c2a4b36537) ) /* chars palette high 4 bits */ | |
| 264 | ROM_LOAD( "ta-b-1b", 0x0200, 0x0020, CRC(f94911ea) SHA1(ad61a323476a97156a255a72048a28477b421284) ) /* sprites palette */ | |
| 265 | ROM_LOAD( "ta-b-3d", 0x0220, 0x0100, CRC(ed3e2aa4) SHA1(cfdfc151803080d1ecdd04af1bfea3dbdce8dca0) ) /* sprites lookup table */ | |
| 266 | ROM_END | |
| 267 | ||
| 268 | ROM_START( newtangl ) /* Offical "upgrade" or hack? */ | |
| 269 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) /* main CPU */ | |
| 270 | ROM_LOAD( "3k", 0x0000, 0x2000, CRC(3c6299a8) SHA1(a21a8452b75ce6174076878128d4f20b39b6d69d) ) | |
| 271 | ROM_LOAD( "3m", 0x2000, 0x2000, CRC(8d09056c) SHA1(4d2585103cc6e6c04015501d3c9e1578a8f9c0f5) ) | |
| 272 | ROM_LOAD( "3n", 0x4000, 0x2000, CRC(17b5a775) SHA1(d85c3371080bea82f19ac96fa0f1b332e1c86e27) ) | |
| 273 | ROM_LOAD( "3q", 0x6000, 0x2000, CRC(2e5fa773) SHA1(9a34fa43bde021fc7b00d8c3762c248e7b96dbf1) ) | |
| 274 | ||
| 275 | ROM_REGION( 0x8000 , REGION_CPU2, 0 ) /* sound CPU */ | |
| 276 | ROM_LOAD( "ta-s-1a-", 0x6000, 0x2000, CRC(ea8a05cb) SHA1(5683e4dca93066ee788287ab73a766fa303ebe84) ) | |
| 277 | ||
| 278 | ROM_REGION( 0x06000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 279 | ROM_LOAD( "ta-a-3e", 0x00000, 0x2000, CRC(e49f7ad8) SHA1(915de1084fd3c5fc81dd8c80107c28cc57b33226) ) | |
| 280 | ROM_LOAD( "ta-a-3d", 0x02000, 0x2000, CRC(06eef241) SHA1(4f327a54169046d8d84b5f5cf5d9f45e1df4dae6) ) | |
| 281 | ROM_LOAD( "ta-a-3c", 0x04000, 0x2000, CRC(7ff5482f) SHA1(fe8c181fed113007d69d11e8aa467e86a6357ffb) ) /* characters */ | |
| 282 | ||
| 283 | ROM_REGION( 0x0c000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 284 | ROM_LOAD( "5j", 0x00000, 0x2000, CRC(89409130) SHA1(3f37f820b1b86166cde7c039d657ebd036d490dd) ) /* sprites */ | |
| 285 | ROM_LOAD( "ta-b-5h", 0x02000, 0x2000, CRC(f8cff29d) SHA1(dabf3bbf50f73a381056131c2239c84dd966b63e) ) | |
| 286 | ROM_LOAD( "5e", 0x04000, 0x2000, CRC(5460a467) SHA1(505c1d9e69c39a74369da17f354b90486ee6afcd) ) | |
| 287 | ROM_LOAD( "ta-b-5d", 0x06000, 0x2000, CRC(cd473d47) SHA1(854cb532bd62851a206da2affd66a1257b7085b6) ) | |
| 288 | ROM_LOAD( "5c", 0x08000, 0x2000, CRC(4a20637a) SHA1(74099cb7f1727c2de2f066497097f1a9eeec0cea) ) | |
| 289 | ROM_LOAD( "ta-b-5a", 0x0a000, 0x2000, CRC(0012792a) SHA1(b4380f5fbe5e9ce9b44f87ce48a8b402bab58b52) ) | |
| 290 | ||
| 291 | ROM_REGION( 0x0320, REGION_PROMS, 0 ) | |
| 292 | ROM_LOAD( "ta-a-5a", 0x0000, 0x0100, CRC(01de1167) SHA1(b9070f8c70eb362fc4d6a0a92235ce0a5b2ab858) ) /* chars palette low 4 bits */ | |
| 293 | ROM_LOAD( "ta-a-5b", 0x0100, 0x0100, CRC(efd11d4b) SHA1(7c7c356063ab35e4ffb8d65cd20c27c2a4b36537) ) /* chars palette high 4 bits */ | |
| 294 | ROM_LOAD( "ta-b-1b", 0x0200, 0x0020, CRC(f94911ea) SHA1(ad61a323476a97156a255a72048a28477b421284) ) /* sprites palette */ | |
| 295 | ROM_LOAD( "ta-b-3d", 0x0220, 0x0100, CRC(ed3e2aa4) SHA1(cfdfc151803080d1ecdd04af1bfea3dbdce8dca0) ) /* sprites lookup table */ | |
| 296 | ROM_END | |
| 297 | ||
| 298 | ||
| 299 | ||
| 300 | /************************************* | |
| 301 | * | |
| 302 | * Game drivers | |
| 303 | * | |
| 304 | *************************************/ | |
| 305 | ||
| 306 | GAME( 1983, troangel, 0, m57, troangel, 0, ROT0, "Irem", "Tropical Angel", 0 ) | |
| 307 | GAME( 1983, newtangl, troangel, m57, troangel, 0, ROT0, "Irem", "New Tropical Angel", 0 ) |
| r1649 | r1650 | |
|---|---|---|
| 151 | 151 | ***********************************************************************************/ |
| 152 | 152 | |
| 153 | 153 | #include "driver.h" |
| 154 | #include "deprecat.h" | |
| 154 | 155 | #include "sound/ay8910.h" |
| 155 | 156 | #include "cpu/i8051/i8051.h" |
| 156 | 157 | #include "machine/i2cmem.h" |
| r1649 | r1650 | |
| 189 | 190 | static UINT8 *io_port; |
| 190 | 191 | |
| 191 | 192 | /* Coin, Door, Hopper and EEPROM States */ |
| 192 | static UINT | |
| 193 | static UINT64 last_cycles; | |
| 193 | 194 | static UINT8 coin_state = 0; |
| 194 | static UINT | |
| 195 | static UINT64 last_door; | |
| 195 | 196 | static UINT8 door_open = 0; |
| 196 | static UINT | |
| 197 | static UINT64 last_coin_out; | |
| 197 | 198 | static UINT8 coin_out_state = 0; |
| 198 | 199 | static int sda_dir = 0; |
| 199 | 200 | |
| r1649 | r1650 | |
| 521 | 522 | UINT8 bank_a = 0x50; // Turn Off Low Battery and Hopper Full Statuses |
| 522 | 523 | UINT8 coin_optics = 0x00; |
| 523 | 524 | UINT8 coin_out = 0x00; |
| 524 | UINT | |
| 525 | UINT64 curr_cycles = activecpu_gettotalcycles(); | |
| 525 | 526 | |
| 526 | 527 | UINT8 sda = 0; |
| 527 | 528 | if(!sda_dir) |
| r1649 | r1650 | |
|---|---|---|
| 332 | 332 | */ |
| 333 | 333 | |
| 334 | 334 | #include "driver.h" |
| 335 | #include "deprecat.h" | |
| 335 | 336 | #include "cpu/m68000/m68k.h" |
| 336 | 337 | #include "segas24.h" |
| 337 | 338 | #include "system16.h" |
| r1649 | r1650 | |
| 2288 | 2289 | /* 01 */GAME( 1988, hotrodj, hotrod, system24, hotrodj, hotrod, ROT0, "Sega", "Hot Rod (Japan, 4 Players, Floppy Based)", GAME_NO_SOUND ) |
| 2289 | 2290 | /* 02 */GAME( 1988, sspirits, 0, system24, sspirits, sspirits, ROT270, "Sega", "Scramble Spirits (World, Floppy Based)", 0 ) |
| 2290 | 2291 | /* 02 */GAME( 1988, sspiritj, sspirits, system24, sspirits, sspiritj, ROT270, "Sega", "Scramble Spirits (Japan, Floppy DS3-5000-02-REV-A Based)", 0 ) |
| 2291 | /* 02 */GAME( 1988, sspirtfc, sspirits, system24, sspirits, sspirits, ROT270, "Sega", "Scramble Spirits (World | |
| 2292 | /* 02 */GAME( 1988, sspirtfc, sspirits, system24, sspirits, sspirits, ROT270, "Sega", "Scramble Spirits (World | |
| 2292 | 2293 | /* 03 */GAME( 1988, gground, 0, system24, gground, gground, ROT270, "Sega", "Gain Ground (World, 3 Players, Floppy Based, FD1094 317-0058-03c?)", 0 ) |
| 2293 | 2294 | /* 03 */GAME( 1988, ggroundj, gground, system24, gground, gground, ROT270, "Sega", "Gain Ground (Japan, 2 Players, Floppy Based, FD1094 317-0058-03b)", 0 ) |
| 2294 | 2295 | /* 04 */GAME( 1989, crkdown, 0, system24, crkdown, crkdown, ROT0, "Sega", "Crack Down (World, Floppy Based, FD1094 317-0058-04c)", GAME_IMPERFECT_GRAPHICS ) // clipping probs / solid layer probs? (radar display) |
| r1649 | r1650 | |
|---|---|---|
| 52 | 52 | */ |
| 53 | 53 | |
| 54 | 54 | #include "driver.h" |
| 55 | #include "deprecat.h" | |
| 55 | 56 | #include "sound/ay8910.h" |
| 56 | 57 | |
| 57 | 58 | static INT32 char_bank = 0; |
| r1649 | r1650 | |
| 574 | 575 | |
| 575 | 576 | } |
| 576 | 577 | |
| 577 | GAME( 1984, ddayjlc, 0, ddayjlc, ddayjlc, ddayjlc, ROT90, "Jaleco", "D-Day (Jaleco - set 1)", GAME_IMPERFECT_GRAPHICS | GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 578 | GAME( 1984, ddayjlca, ddayjlc, ddayjlc, ddayjlc, ddayjlc, ROT90, "Jaleco", "D-Day (Jaleco - set 2)", GAME_IMPERFECT_GRAPHICS | GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 578 | GAME( 1984, ddayjlc, 0, ddayjlc, ddayjlc, ddayjlc, ROT90, "Jaleco", "D-Day (Jaleco set 1)", GAME_IMPERFECT_GRAPHICS | GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) | |
| 579 | GAME( 1984, ddayjlca, ddayjlc, ddayjlc, ddayjlc, ddayjlc, ROT90, "Jaleco", "D-Day (Jaleco set 2)", GAME_IMPERFECT_GRAPHICS | GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND ) |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | Known bugs: |
| 8 | 8 | * none at this time |
| 9 | 9 | |
| 10 | DIP locations verified from manual for: | |
| 11 | * aceattaa | |
| 12 | * aliensyn | |
| 13 | * aliensy1 | |
| 14 | * pshot16a | |
| 15 | * quartet | |
| 16 | * quart2 | |
| 17 | * shinobi | |
| 18 | * tetris | |
| 19 | * timescan | |
| 20 | * wb3 | |
| 21 | ||
| 10 | 22 | *************************************************************************** |
| 11 | 23 | |
| 12 | 24 | System16A Hardware Overview |
| r1649 | r1650 | |
| 132 | 144 | */ |
| 133 | 145 | |
| 134 | 146 | #include "driver.h" |
| 147 | #include "deprecat.h" | |
| 135 | 148 | #include "system16.h" |
| 136 | 149 | #include "machine/8255ppi.h" |
| 137 | 150 | #include "cpu/i8039/i8039.h" |
| r1649 | r1650 | |
| 912 | 925 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 913 | 926 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 914 | 927 | |
| 915 | PORT_START_TAG("COINAGE") | |
| 916 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SWA:1,2,3,4") | |
| 928 | PORT_START_TAG("DSW1") | |
| 929 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3,4") | |
| 917 | 930 | PORT_DIPSETTING( 0x07, DEF_STR( 4C_1C ) ) |
| 918 | 931 | PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) ) |
| 919 | 932 | PORT_DIPSETTING( 0x09, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 930 | 943 | PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ) ) |
| 931 | 944 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) ) |
| 932 | 945 | PORT_DIPSETTING( 0x00, "Free Play (if Coin B too) or 1/1" ) |
| 933 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW | |
| 946 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:5,6,7,8") | |
| 934 | 947 | PORT_DIPSETTING( 0x70, DEF_STR( 4C_1C ) ) |
| 935 | 948 | PORT_DIPSETTING( 0x80, DEF_STR( 3C_1C ) ) |
| 936 | 949 | PORT_DIPSETTING( 0x90, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 948 | 961 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) ) |
| 949 | 962 | PORT_DIPSETTING( 0x00, "Free Play (if Coin A too) or 1/1" ) |
| 950 | 963 | |
| 951 | PORT_START_TAG("DSW") | |
| 952 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:1") | |
| 953 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 954 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 955 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:2") | |
| 956 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 957 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 958 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:3") | |
| 959 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 960 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 961 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:4") | |
| 962 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 963 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 964 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:5") | |
| 965 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 966 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 967 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:6") | |
| 968 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 969 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 970 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:7") | |
| 971 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 972 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 973 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:8") | |
| 974 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 975 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 964 | PORT_START_TAG("DSW2") | |
| 965 | PORT_DIPUNUSED_DIPLOC( 0x0001, 0x0001, "SW2:1" ) | |
| 966 | PORT_DIPUNUSED_DIPLOC( 0x0002, 0x0002, "SW2:2" ) | |
| 967 | PORT_DIPUNUSED_DIPLOC( 0x0004, 0x0004, "SW2:3" ) | |
| 968 | PORT_DIPUNUSED_DIPLOC( 0x0008, 0x0008, "SW2:4" ) | |
| 969 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0010, "SW2:5" ) | |
| 970 | PORT_DIPUNUSED_DIPLOC( 0x0020, 0x0020, "SW2:6" ) | |
| 971 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "SW2:7" ) | |
| 972 | PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0080, "SW2:8" ) | |
| 976 | 973 | INPUT_PORTS_END |
| 977 | 974 | |
| 978 | 975 | |
| r1649 | r1650 | |
| 1052 | 1049 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON11 ) PORT_PLAYER(2) |
| 1053 | 1050 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON12 ) PORT_PLAYER(2) |
| 1054 | 1051 | |
| 1055 | PORT_MODIFY("DSW") | |
| 1056 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:1") | |
| 1052 | PORT_MODIFY("DSW2") | |
| 1053 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") | |
| 1057 | 1054 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1058 | 1055 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1059 | PORT_DIPNAME( 0x0e, 0x0e, "Starting Points" ) PORT_DIPLOCATION("SW | |
| 1056 | PORT_DIPNAME( 0x0e, 0x0e, "Starting Points" ) PORT_DIPLOCATION("SW2:2,3,4") | |
| 1060 | 1057 | PORT_DIPSETTING( 0x06, "2000" ) |
| 1061 | 1058 | PORT_DIPSETTING( 0x0a, "3000" ) |
| 1062 | 1059 | PORT_DIPSETTING( 0x0c, "4000" ) |
| r1649 | r1650 | |
| 1065 | 1062 | PORT_DIPSETTING( 0x04, "7000" ) |
| 1066 | 1063 | PORT_DIPSETTING( 0x02, "8000" ) |
| 1067 | 1064 | PORT_DIPSETTING( 0x00, "9000" ) |
| 1068 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:5") | |
| 1069 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 1070 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1071 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:6") | |
| 1072 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 1073 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1074 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:7") | |
| 1075 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1076 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1077 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:8") | |
| 1078 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1079 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1065 | PORT_DIPNAME( 0x30, 0x30, "Point Table" ) PORT_DIPLOCATION("SW2:5,6") | |
| 1066 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) | |
| 1067 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) | |
| 1068 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) | |
| 1069 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 1070 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 1071 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) | |
| 1072 | PORT_DIPSETTING( 0xc0, DEF_STR( Normal ) ) | |
| 1073 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) | |
| 1074 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 1080 | 1075 | |
| 1081 | 1076 | PORT_START_TAG("ANALOGX1") |
| 1082 | 1077 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(75) PORT_KEYDELTA(5) PORT_REVERSE |
| r1649 | r1650 | |
| 1100 | 1095 | static INPUT_PORTS_START( afighter ) |
| 1101 | 1096 | PORT_INCLUDE( system16a_2button ) |
| 1102 | 1097 | |
| 1103 | PORT_MODIFY("DSW") | |
| 1104 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1") | |
| 1098 | PORT_MODIFY("DSW2") | |
| 1099 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW2:1") | |
| 1105 | 1100 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1106 | 1101 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 1107 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW | |
| 1102 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 1108 | 1103 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1109 | 1104 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1110 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW | |
| 1105 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 1111 | 1106 | PORT_DIPSETTING( 0x08, "2" ) |
| 1112 | 1107 | PORT_DIPSETTING( 0x0c, "3" ) |
| 1113 | 1108 | PORT_DIPSETTING( 0x04, "4" ) |
| 1114 | 1109 | PORT_DIPSETTING( 0x00, DEF_STR( Infinite ) ) |
| 1115 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW | |
| 1110 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 1116 | 1111 | PORT_DIPSETTING( 0x30, "10000 - 20000" ) |
| 1117 | 1112 | PORT_DIPSETTING( 0x20, "20000 - 40000" ) |
| 1118 | 1113 | PORT_DIPSETTING( 0x10, "30000 - 60000" ) |
| 1119 | 1114 | PORT_DIPSETTING( 0x00, "40000 - 80000" ) |
| 1120 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 1115 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7") | |
| 1121 | 1116 | PORT_DIPSETTING( 0x40, DEF_STR( Normal ) ) |
| 1122 | 1117 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) |
| 1123 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW | |
| 1118 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:8") | |
| 1124 | 1119 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 1125 | 1120 | PORT_DIPSETTING( 0x80, DEF_STR( Yes ) ) |
| 1126 | 1121 | INPUT_PORTS_END |
| r1649 | r1650 | |
| 1129 | 1124 | static INPUT_PORTS_START( alexkidd ) |
| 1130 | 1125 | PORT_INCLUDE( system16a_2button ) |
| 1131 | 1126 | |
| 1132 | PORT_MODIFY("DSW") | |
| 1133 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Continues ) ) PORT_DIPLOCATION("SWB:1") | |
| 1127 | PORT_MODIFY("DSW2") | |
| 1128 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Continues ) ) PORT_DIPLOCATION("SW2:1") | |
| 1134 | 1129 | PORT_DIPSETTING( 0x01, "Only before level 5" ) |
| 1135 | 1130 | PORT_DIPSETTING( 0x00, "Unlimited" ) |
| 1136 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW | |
| 1131 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 1137 | 1132 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1138 | 1133 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1139 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW | |
| 1134 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 1140 | 1135 | PORT_DIPSETTING( 0x0c, "3" ) |
| 1141 | 1136 | PORT_DIPSETTING( 0x08, "4" ) |
| 1142 | 1137 | PORT_DIPSETTING( 0x04, "5" ) |
| 1143 | 1138 | PORT_DIPSETTING( 0x00, "240 (Cheat)") |
| 1144 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW | |
| 1139 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 1145 | 1140 | PORT_DIPSETTING( 0x20, "10000" ) |
| 1146 | 1141 | PORT_DIPSETTING( 0x30, "20000" ) |
| 1147 | 1142 | PORT_DIPSETTING( 0x10, "40000" ) |
| 1148 | 1143 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) |
| 1149 | PORT_DIPNAME( 0xc0, 0xc0, "Time Adjust" ) PORT_DIPLOCATION("SW | |
| 1144 | PORT_DIPNAME( 0xc0, 0xc0, "Time Adjust" ) PORT_DIPLOCATION("SW2:7,8") | |
| 1150 | 1145 | PORT_DIPSETTING( 0x80, "70" ) |
| 1151 | 1146 | PORT_DIPSETTING( 0xc0, "60" ) |
| 1152 | 1147 | PORT_DIPSETTING( 0x40, "50" ) |
| r1649 | r1650 | |
| 1157 | 1152 | static INPUT_PORTS_START( aliensyn ) |
| 1158 | 1153 | PORT_INCLUDE( system16a_1button ) |
| 1159 | 1154 | |
| 1160 | PORT_MODIFY("DSW") | |
| 1161 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:2") | |
| 1155 | PORT_MODIFY("DSW2") | |
| 1156 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 1162 | 1157 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1163 | 1158 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1164 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW | |
| 1159 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 1165 | 1160 | PORT_DIPSETTING( 0x08, "2" ) |
| 1166 | 1161 | PORT_DIPSETTING( 0x0c, "3" ) |
| 1167 | 1162 | PORT_DIPSETTING( 0x04, "4" ) |
| 1168 | PORT_DIPSETTING( 0x00, "127 (Cheat)") | |
| 1169 | PORT_DIPNAME( 0x30, 0x30, "Timer" ) PORT_DIPLOCATION("SWB:5,6") | |
| 1163 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 1164 | PORT_DIPNAME( 0x30, 0x30, "Timer" ) PORT_DIPLOCATION("SW2:5,6") | |
| 1170 | 1165 | PORT_DIPSETTING( 0x00, "120" ) |
| 1171 | 1166 | PORT_DIPSETTING( 0x10, "130" ) |
| 1172 | 1167 | PORT_DIPSETTING( 0x20, "140" ) |
| 1173 | 1168 | PORT_DIPSETTING( 0x30, "150" ) |
| 1174 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 1169 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 1175 | 1170 | PORT_DIPSETTING( 0x80, DEF_STR( Easy ) ) |
| 1176 | 1171 | PORT_DIPSETTING( 0xc0, DEF_STR( Normal ) ) |
| 1177 | 1172 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) |
| r1649 | r1650 | |
| 1182 | 1177 | static INPUT_PORTS_START( aliensy1 ) |
| 1183 | 1178 | PORT_INCLUDE( system16a_1button ) |
| 1184 | 1179 | |
| 1185 | PORT_MODIFY("DSW") | |
| 1186 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:2") | |
| 1180 | PORT_MODIFY("DSW2") | |
| 1181 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 1187 | 1182 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1188 | 1183 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1189 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW | |
| 1184 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 1190 | 1185 | PORT_DIPSETTING( 0x08, "2" ) |
| 1191 | 1186 | PORT_DIPSETTING( 0x0c, "3" ) |
| 1192 | 1187 | PORT_DIPSETTING( 0x04, "4" ) |
| 1193 | PORT_DIPSETTING( 0x00, "127 (Cheat)") | |
| 1194 | PORT_DIPNAME( 0x30, 0x30, "Timer" ) PORT_DIPLOCATION("SWB:5,6") | |
| 1188 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 1189 | PORT_DIPNAME( 0x30, 0x30, "Timer" ) PORT_DIPLOCATION("SW2:5,6") | |
| 1195 | 1190 | PORT_DIPSETTING( 0x00, "150" ) |
| 1196 | 1191 | PORT_DIPSETTING( 0x10, "160" ) |
| 1197 | 1192 | PORT_DIPSETTING( 0x20, "170" ) |
| 1198 | 1193 | PORT_DIPSETTING( 0x30, "180" ) |
| 1199 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 1194 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 1200 | 1195 | PORT_DIPSETTING( 0x80, DEF_STR( Easy ) ) |
| 1201 | 1196 | PORT_DIPSETTING( 0xc0, DEF_STR( Normal ) ) |
| 1202 | 1197 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) |
| r1649 | r1650 | |
| 1207 | 1202 | static INPUT_PORTS_START( bodyslam ) |
| 1208 | 1203 | PORT_INCLUDE( system16a_generic ) |
| 1209 | 1204 | |
| 1210 | PORT_MODIFY("DSW") | |
| 1211 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:2") | |
| 1205 | PORT_MODIFY("DSW2") | |
| 1206 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 1212 | 1207 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1213 | 1208 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1214 | 1209 | INPUT_PORTS_END |
| r1649 | r1650 | |
| 1217 | 1212 | static INPUT_PORTS_START( fantzone ) |
| 1218 | 1213 | PORT_INCLUDE( system16a_2button ) |
| 1219 | 1214 | |
| 1220 | PORT_MODIFY("DSW") | |
| 1221 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1") | |
| 1215 | PORT_MODIFY("DSW2") | |
| 1216 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW2:1") | |
| 1222 | 1217 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1223 | 1218 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 1224 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW | |
| 1219 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 1225 | 1220 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1226 | 1221 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1227 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW | |
| 1222 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 1228 | 1223 | PORT_DIPSETTING( 0x08, "2" ) |
| 1229 | 1224 | PORT_DIPSETTING( 0x0c, "3" ) |
| 1230 | 1225 | PORT_DIPSETTING( 0x04, "4" ) |
| 1231 | 1226 | PORT_DIPSETTING( 0x00, "240 (Cheat)") |
| 1232 | PORT_DIPNAME( 0x30, 0x30, "Extra Ship Cost" ) PORT_DIPLOCATION("SW | |
| 1227 | PORT_DIPNAME( 0x30, 0x30, "Extra Ship Cost" ) PORT_DIPLOCATION("SW2:5,6") | |
| 1233 | 1228 | PORT_DIPSETTING( 0x30, "5000" ) |
| 1234 | 1229 | PORT_DIPSETTING( 0x20, "10000" ) |
| 1235 | 1230 | PORT_DIPSETTING( 0x10, "15000" ) |
| 1236 | 1231 | PORT_DIPSETTING( 0x00, "20000" ) |
| 1237 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 1232 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 1238 | 1233 | PORT_DIPSETTING( 0x80, DEF_STR( Easy ) ) |
| 1239 | 1234 | PORT_DIPSETTING( 0xc0, DEF_STR( Normal ) ) |
| 1240 | 1235 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) |
| r1649 | r1650 | |
| 1255 | 1250 | PORT_MODIFY("P2") |
| 1256 | 1251 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_SPECIAL ) |
| 1257 | 1252 | |
| 1258 | PORT_MODIFY("DSW") | |
| 1259 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1") | |
| 1253 | PORT_MODIFY("DSW2") | |
| 1254 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW2:1") | |
| 1260 | 1255 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1261 | 1256 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 1262 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW | |
| 1257 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 1263 | 1258 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1264 | 1259 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1265 | PORT_DIPNAME( 0x0c, 0x00, "Starting Points" ) PORT_DIPLOCATION("SW | |
| 1260 | PORT_DIPNAME( 0x0c, 0x00, "Starting Points" ) PORT_DIPLOCATION("SW2:3,4") | |
| 1266 | 1261 | PORT_DIPSETTING( 0x0c, "2000" ) |
| 1267 | 1262 | PORT_DIPSETTING( 0x08, "3000" ) |
| 1268 | 1263 | PORT_DIPSETTING( 0x04, "5000" ) |
| 1269 | 1264 | PORT_DIPSETTING( 0x00, "10000" ) |
| 1270 | PORT_DIPNAME( 0x10, 0x10, "Team Select" ) PORT_DIPLOCATION("SW | |
| 1265 | PORT_DIPNAME( 0x10, 0x10, "Team Select" ) PORT_DIPLOCATION("SW2:5") | |
| 1271 | 1266 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1272 | 1267 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) |
| 1273 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW | |
| 1268 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:6") //??? something to do with cocktail mode? | |
| 1274 | 1269 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 1275 | 1270 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1276 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW | |
| 1271 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:7") | |
| 1277 | 1272 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 1278 | 1273 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1279 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW | |
| 1274 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:8") | |
| 1280 | 1275 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1281 | 1276 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1282 | 1277 | |
| r1649 | r1650 | |
| 1361 | 1356 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(4) |
| 1362 | 1357 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(4) |
| 1363 | 1358 | |
| 1364 | PORT_MODIFY("DSW") | |
| 1365 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:1") | |
| 1359 | PORT_MODIFY("DSW2") | |
| 1360 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") | |
| 1366 | 1361 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1367 | 1362 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1368 | PORT_DIPNAME( 0x0e, 0x0 | |
| 1363 | PORT_DIPNAME( 0x0e, 0x0e, "Initial Point" ) PORT_DIPLOCATION("SW2:2,3,4") | |
| 1369 | 1364 | PORT_DIPSETTING( 0x06, "2000" ) |
| 1370 | 1365 | PORT_DIPSETTING( 0x0a, "3000" ) |
| 1371 | 1366 | PORT_DIPSETTING( 0x0c, "4000" ) |
| r1649 | r1650 | |
| 1374 | 1369 | PORT_DIPSETTING( 0x04, "7000" ) |
| 1375 | 1370 | PORT_DIPSETTING( 0x02, "8000" ) |
| 1376 | 1371 | PORT_DIPSETTING( 0x00, "9000" ) |
| 1377 | PORT_DIPNAME( 0x30, 0x30, "Point Table" ) PORT_DIPLOCATION("SW | |
| 1372 | PORT_DIPNAME( 0x30, 0x30, "Point Table" ) PORT_DIPLOCATION("SW2:5,6") | |
| 1378 | 1373 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 1379 | 1374 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) |
| 1380 | 1375 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) |
| 1381 | 1376 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 1382 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 1377 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 1383 | 1378 | PORT_DIPSETTING( 0x80, DEF_STR( Easy ) ) |
| 1384 | 1379 | PORT_DIPSETTING( 0xc0, DEF_STR( Normal ) ) |
| 1385 | 1380 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) |
| r1649 | r1650 | |
| 1430 | 1425 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN4 ) |
| 1431 | 1426 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE4 ) |
| 1432 | 1427 | |
| 1433 | PORT_MODIFY("DSW") | |
| 1434 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:1") | |
| 1428 | PORT_MODIFY("DSW2") | |
| 1429 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") | |
| 1435 | 1430 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1436 | 1431 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1437 | PORT_DIPNAME( 0x06, 0x06, "Credit Power" ) PORT_DIPLOCATION("SW | |
| 1432 | PORT_DIPNAME( 0x06, 0x06, "Credit Power" ) PORT_DIPLOCATION("SW2:2,3") | |
| 1438 | 1433 | PORT_DIPSETTING( 0x04, "500" ) |
| 1439 | 1434 | PORT_DIPSETTING( 0x06, "1000" ) |
| 1440 | 1435 | PORT_DIPSETTING( 0x02, "2000" ) |
| 1441 | 1436 | PORT_DIPSETTING( 0x00, "9000" ) |
| 1442 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 1437 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:4,5") | |
| 1443 | 1438 | PORT_DIPSETTING( 0x10, DEF_STR( Easy ) ) |
| 1444 | 1439 | PORT_DIPSETTING( 0x18, DEF_STR( Normal ) ) |
| 1445 | 1440 | PORT_DIPSETTING( 0x08, DEF_STR( Hard ) ) |
| 1446 | 1441 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 1447 | PORT_DIPNAME( 0x20, 0x20, "Coin During Game" ) PORT_DIPLOCATION("SW | |
| 1442 | PORT_DIPNAME( 0x20, 0x20, "Coin During Game" ) PORT_DIPLOCATION("SW2:6") | |
| 1448 | 1443 | PORT_DIPSETTING( 0x20, "Power" ) |
| 1449 | 1444 | PORT_DIPSETTING( 0x00, "Credit" ) |
| 1450 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW | |
| 1445 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW2:7") | |
| 1451 | 1446 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 1452 | 1447 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1453 | PORT_SERVICE( | |
| 1448 | PORT_SERVICE_DIPLOC( | |
| 1454 | 1449 | INPUT_PORTS_END |
| 1455 | 1450 | |
| 1456 | 1451 | |
| 1457 | 1452 | static INPUT_PORTS_START( quart2 ) |
| 1458 | 1453 | PORT_INCLUDE( system16a_2button ) |
| 1459 | 1454 | |
| 1460 | PORT_MODIFY("DSW") | |
| 1461 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:1") | |
| 1455 | PORT_MODIFY("DSW2") | |
| 1456 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") | |
| 1462 | 1457 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1463 | 1458 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1464 | PORT_DIPNAME( 0x06, 0x06, "Credit Power" ) PORT_DIPLOCATION("SW | |
| 1459 | PORT_DIPNAME( 0x06, 0x06, "Credit Power" ) PORT_DIPLOCATION("SW2:2,3") | |
| 1465 | 1460 | PORT_DIPSETTING( 0x04, "500" ) |
| 1466 | 1461 | PORT_DIPSETTING( 0x06, "1000" ) |
| 1467 | 1462 | PORT_DIPSETTING( 0x02, "2000" ) |
| 1468 | 1463 | PORT_DIPSETTING( 0x00, "9000" ) |
| 1469 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 1464 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:4,5") | |
| 1470 | 1465 | PORT_DIPSETTING( 0x10, DEF_STR( Easy ) ) |
| 1471 | 1466 | PORT_DIPSETTING( 0x18, DEF_STR( Normal ) ) |
| 1472 | 1467 | PORT_DIPSETTING( 0x08, DEF_STR( Hard ) ) |
| r1649 | r1650 | |
| 1497 | 1492 | PORT_MODIFY("P2") |
| 1498 | 1493 | PORT_BIT( 0xff, 0x80, IPT_SPECIAL ) |
| 1499 | 1494 | |
| 1500 | PORT_MODIFY("DSW") | |
| 1501 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SWB:1") | |
| 1495 | PORT_MODIFY("DSW2") | |
| 1496 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:1") | |
| 1502 | 1497 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1503 | 1498 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1504 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW | |
| 1499 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 1505 | 1500 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1506 | 1501 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1507 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW | |
| 1502 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 1508 | 1503 | PORT_DIPSETTING( 0x08, "2" ) |
| 1509 | 1504 | PORT_DIPSETTING( 0x0c, "3" ) |
| 1510 | 1505 | PORT_DIPSETTING( 0x04, "4" ) |
| 1511 | 1506 | PORT_DIPSETTING( 0x00, "Free") |
| 1512 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 1507 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 1513 | 1508 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 1514 | 1509 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) |
| 1515 | 1510 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) |
| 1516 | 1511 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 1517 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW | |
| 1512 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 1518 | 1513 | PORT_DIPSETTING( 0x80, "Every 50000" ) |
| 1519 | 1514 | PORT_DIPSETTING( 0xc0, "50000" ) |
| 1520 | 1515 | PORT_DIPSETTING( 0x40, "100000" ) |
| r1649 | r1650 | |
| 1537 | 1532 | static INPUT_PORTS_START( shinobi ) |
| 1538 | 1533 | PORT_INCLUDE( system16a_generic ) |
| 1539 | 1534 | |
| 1540 | PORT_MODIFY("DSW") | |
| 1541 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1") | |
| 1535 | PORT_MODIFY("DSW2") | |
| 1536 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW2:1") | |
| 1542 | 1537 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1543 | 1538 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 1544 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW | |
| 1539 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 1545 | 1540 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1546 | 1541 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1547 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW | |
| 1542 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 1548 | 1543 | PORT_DIPSETTING( 0x08, "2" ) |
| 1549 | 1544 | PORT_DIPSETTING( 0x0c, "3" ) |
| 1550 | 1545 | PORT_DIPSETTING( 0x04, "5" ) |
| 1551 | PORT_DIPSETTING( 0x00, "240 (Cheat)") | |
| 1552 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SWB:5,6") | |
| 1546 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 1547 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 1553 | 1548 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 1554 | 1549 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) |
| 1555 | 1550 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) |
| 1556 | 1551 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 1557 | PORT_DIPNAME( 0x40, 0x40, "Enemy's Bullet Speed" ) PORT_DIPLOCATION("SW | |
| 1552 | PORT_DIPNAME( 0x40, 0x40, "Enemy's Bullet Speed" ) PORT_DIPLOCATION("SW2:7") | |
| 1558 | 1553 | PORT_DIPSETTING( 0x40, "Slow" ) |
| 1559 | 1554 | PORT_DIPSETTING( 0x00, "Fast" ) |
| 1560 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Language ) ) PORT_DIPLOCATION("SW | |
| 1555 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Language ) ) PORT_DIPLOCATION("SW2:8") | |
| 1561 | 1556 | PORT_DIPSETTING( 0x80, DEF_STR( Japanese ) ) |
| 1562 | 1557 | PORT_DIPSETTING( 0x00, DEF_STR( English ) ) |
| 1563 | 1558 | INPUT_PORTS_END |
| r1649 | r1650 | |
| 1627 | 1622 | PORT_MODIFY("P2") |
| 1628 | 1623 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1629 | 1624 | |
| 1630 | PORT_MODIFY("DSW") | |
| 1631 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:2") | |
| 1625 | PORT_MODIFY("DSW2") | |
| 1626 | /* SW2:1,3,4,7,8 Unused according to manual. | |
| 1627 | From the code SW2:3,4 looks like some kind of difficulty level, | |
| 1628 | but all 4 levels points to the same place so it doesn't actually change anything!! */ | |
| 1629 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 1632 | 1630 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1633 | 1631 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1634 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:3,4") // from the code it looks like some kind of difficulty | |
| 1635 | PORT_DIPSETTING( 0x0c, "A" ) // level, but all 4 levels points to the same place | |
| 1636 | PORT_DIPSETTING( 0x08, "B" ) // so it doesn't actually change anything!! | |
| 1637 | PORT_DIPSETTING( 0x04, "C" ) | |
| 1638 | PORT_DIPSETTING( 0x00, "D" ) | |
| 1639 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SWB:5,6") | |
| 1632 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 1640 | 1633 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 1641 | 1634 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) |
| 1642 | 1635 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) |
| r1649 | r1650 | |
| 1665 | 1658 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SWE:5") |
| 1666 | 1659 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 1667 | 1660 | PORT_DIPSETTING( 0x10, DEF_STR( Yes ) ) |
| 1668 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unused ) ) PORT_DIPLOCATION("SWE:6") | |
| 1669 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 1670 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1671 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) PORT_DIPLOCATION("SWE:7") | |
| 1672 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1673 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1674 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) PORT_DIPLOCATION("SWE:8") | |
| 1675 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1676 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1661 | PORT_DIPUNUSED_DIPLOC( 0x0020, 0x0020, "SWE:6" ) /* Listed as "Unused" */ | |
| 1662 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "SWE:7" ) /* Listed as "Unused" */ | |
| 1663 | PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0080, "SWE:8" ) /* Listed as "Unused" */ | |
| 1677 | 1664 | |
| 1678 | 1665 | PORT_MODIFY("P2") |
| 1679 | 1666 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1680 | 1667 | |
| 1681 | PORT_MODIFY("DSW") | |
| 1682 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1") | |
| 1668 | PORT_MODIFY("DSW2") | |
| 1669 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW2:1") | |
| 1683 | 1670 | PORT_DIPSETTING( 0x01, DEF_STR( Upright ) ) |
| 1684 | 1671 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| 1685 | PORT_DIPNAME( 0x1e, 0x14, "Bonus" ) PORT_DIPLOCATION("SWB:2,3,4,5") | |
| 1686 | PORT_DIPSETTING( 0x16, "Replay 1000000/2000000" ) | |
| 1687 | PORT_DIPSETTING( 0x14, "Replay 1200000/2500000" ) | |
| 1688 | PORT_DIPSETTING( 0x12, "Replay 1500000/3000000" ) | |
| 1689 | PORT_DIPSETTING( 0x10, "Replay 2000000/4000000" ) | |
| 1690 | PORT_DIPSETTING( 0x1c, "Replay 1000000" ) | |
| 1691 | PORT_DIPSETTING( 0x1e, "Replay 1200000" ) | |
| 1692 | PORT_DIPSETTING( 0x1a, "Replay 1500000" ) | |
| 1693 | PORT_DIPSETTING( 0x18, "Replay 1800000" ) | |
| 1694 | PORT_DIPSETTING( 0x0e, "ExtraBall 100000" ) | |
| 1695 | PORT_DIPSETTING( 0x0c, "ExtraBall 200000" ) | |
| 1696 | PORT_DIPSETTING( 0x0a, "ExtraBall 300000" ) | |
| 1697 | PORT_DIPSETTING( 0x08, "ExtraBall 400000" ) | |
| 1698 | PORT_DIPSETTING( 0x06, "ExtraBall 500000" ) | |
| 1699 | PORT_DIPSETTING( 0x04, "ExtraBall 600000" ) | |
| 1700 | PORT_DIPSETTING( 0x02, "ExtraBall 700000" ) | |
| 1672 | PORT_DIPNAME( 0x1e, 0x1e, "Extended Score" ) PORT_DIPLOCATION("SW2:2,3,4,5") | |
| 1673 | PORT_DIPSETTING( 0x16, "Credit 1000000/2000000" ) | |
| 1674 | PORT_DIPSETTING( 0x14, "Credit 1200000/2500000" ) | |
| 1675 | PORT_DIPSETTING( 0x12, "Credit 1500000/3000000" ) | |
| 1676 | PORT_DIPSETTING( 0x10, "Credit 2000000/4000000" ) | |
| 1677 | PORT_DIPSETTING( 0x1c, "Credit 1000000" ) | |
| 1678 | PORT_DIPSETTING( 0x1e, "Credit 1200000" ) | |
| 1679 | PORT_DIPSETTING( 0x1a, "Credit 1500000" ) | |
| 1680 | PORT_DIPSETTING( 0x18, "Credit 1800000" ) | |
| 1681 | PORT_DIPSETTING( 0x0e, "Ball 100000" ) | |
| 1682 | PORT_DIPSETTING( 0x0c, "Ball 200000" ) | |
| 1683 | PORT_DIPSETTING( 0x0a, "Ball 300000" ) | |
| 1684 | PORT_DIPSETTING( 0x08, "Ball 400000" ) | |
| 1685 | PORT_DIPSETTING( 0x06, "Ball 500000" ) | |
| 1686 | PORT_DIPSETTING( 0x04, "Ball 600000" ) | |
| 1687 | PORT_DIPSETTING( 0x02, "Ball 700000" ) | |
| 1701 | 1688 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) |
| 1702 | PORT_DIPNAME( 0x20, 0x20, "Match" ) PORT_DIPLOCATION("SWB:6") | |
| 1703 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1704 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1705 | PORT_DIPNAME( 0x40, 0x40, "Pin Rebound" ) PORT_DIPLOCATION("SWB:7") | |
| 1689 | PORT_DIPNAME( 0x20, 0x20, "Number Match" ) PORT_DIPLOCATION("SW2:6") | |
| 1690 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 1691 | PORT_DIPSETTING( 0x20, DEF_STR( Yes ) ) | |
| 1692 | PORT_DIPNAME( 0x40, 0x40, "Pin Rebound" ) PORT_DIPLOCATION("SW2:7") | |
| 1706 | 1693 | PORT_DIPSETTING( 0x40, "Well" ) |
| 1707 | 1694 | PORT_DIPSETTING( 0x00, "A Little" ) |
| 1708 | 1695 | /* |
| r1649 | r1650 | |
| 1710 | 1697 | rebound strength and the resulting difficulty or ease in which the |
| 1711 | 1698 | ball goes out of play. |
| 1712 | 1699 | */ |
| 1713 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW | |
| 1700 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:8") | |
| 1714 | 1701 | PORT_DIPSETTING( 0x80, "3" ) |
| 1715 | 1702 | PORT_DIPSETTING( 0x00, "5" ) |
| 1716 | 1703 | INPUT_PORTS_END |
| r1649 | r1650 | |
| 1719 | 1706 | static INPUT_PORTS_START( wb3 ) |
| 1720 | 1707 | PORT_INCLUDE( system16a_2button ) |
| 1721 | 1708 | |
| 1722 | PORT_MODIFY("DSW") | |
| 1723 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:2") | |
| 1709 | PORT_MODIFY("DSW2") | |
| 1710 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 1724 | 1711 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1725 | 1712 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1726 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW | |
| 1713 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 1727 | 1714 | PORT_DIPSETTING( 0x00, "2" ) |
| 1728 | 1715 | PORT_DIPSETTING( 0x0c, "3" ) |
| 1729 | 1716 | PORT_DIPSETTING( 0x08, "4" ) |
| 1730 | 1717 | PORT_DIPSETTING( 0x04, "5" ) |
| 1731 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SWB:5") //?? | |
| 1732 | PORT_DIPSETTING( 0x10, "5000/10000/18000/30000" ) | |
| 1733 | PORT_DIPSETTING( 0x00, "5000/15000/30000" ) | |
| 1734 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SWB:6") | |
| 1718 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:5") | |
| 1719 | PORT_DIPSETTING( 0x10, "50k/100k/180k/300k" ) | |
| 1720 | PORT_DIPSETTING( 0x00, "50k/150k/300k" ) | |
| 1721 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:6") | |
| 1735 | 1722 | PORT_DIPSETTING( 0x20, DEF_STR( Normal ) ) |
| 1736 | 1723 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) |
| 1737 | PORT_DIPNAME( 0x40, 0x40, "Test Mode" ) PORT_DIPLOCATION("SW | |
| 1724 | PORT_DIPNAME( 0x40, 0x40, "Test Mode" ) PORT_DIPLOCATION("SW2:7") | |
| 1738 | 1725 | PORT_DIPSETTING( 0x40, DEF_STR( No ) ) /* Normal game */ |
| 1739 | 1726 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) /* Levels are selectable / Player is Invincible */ |
| 1740 | 1727 | /* Swtches 1 & 8 are listed as "Always off" */ |
| r1649 | r1650 | |
| 3195 | 3182 | GAME( 1987, sdi, 0, system16a_no7751, sdi, sdi, ROT0, "Sega", "SDI - Strategic Defense Initiative (Europe, System 16A, FD1089B 317-0027)", 0 ) |
| 3196 | 3183 | GAME( 1987, shinobi, 0, system16a, shinobi, generic_16a, ROT0, "Sega", "Shinobi (set 5, System 16A, unprotected)", 0 ) |
| 3197 | 3184 | GAME( 1987, shinobi1, shinobi, system16a, shinobi, generic_16a, ROT0, "Sega", "Shinobi (set 1, System 16A, FD1094 317-0050)", 0 ) |
| 3198 | GAME( 1987, shinobls, | |
| 3185 | GAME( 1987, shinobls, | |
| 3199 | 3186 | GAME( 1987, sjryuko1, sjryuko, system16a, sjryuko, sjryukoa, ROT0, "White Board", "Sukeban Jansi Ryuko (set 1, System 16A, FD1089B 317-5021)", 0 ) |
| 3200 | 3187 | GAME( 1988, tetris, 0, system16a_no7751, tetris, generic_16a, ROT0, "Sega", "Tetris (set 4, Japan, System 16A, FD1094 317-0093)", 0 ) |
| 3201 | 3188 | GAME( 1988, tetris3, tetris, system16a_no7751, tetris, generic_16a, ROT0, "Sega", "Tetris (set 3, Japan, System 16A, FD1094 317-0093a)", 0 ) |
| r1649 | r1650 | |
|---|---|---|
| 80 | 80 | ****************************************************************************/ |
| 81 | 81 | |
| 82 | 82 | #include "driver.h" |
| 83 | #include "deprecat.h" | |
| 83 | 84 | #include "neogeo.h" |
| 84 | 85 | #include "machine/pd4990a.h" |
| 85 | 86 | #include "cpu/z80/z80.h" |
| r1649 | r1650 | |
|---|---|---|
| 95 | 95 | */ |
| 96 | 96 | |
| 97 | 97 | #include "driver.h" |
| 98 | #include "deprecat.h" | |
| 98 | 99 | |
| 99 | 100 | #include "video/konamiic.h" |
| 100 | 101 | #include "cpu/m68000/m68000.h" |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | ***************************************************************************/ |
| 15 | 15 | |
| 16 | 16 | #include "driver.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | #include "system16.h" |
| 18 | 19 | #include "machine/segaic16.h" |
| 19 | 20 | #include "machine/8255ppi.h" |
| r1649 | r1650 | |
|---|---|---|
| 55 | 55 | */ |
| 56 | 56 | |
| 57 | 57 | #include "driver.h" |
| 58 | #include "deprecat.h" | |
| 58 | 59 | #include "sound/sn76496.h" |
| 59 | 60 | |
| 60 | 61 | extern UINT8 *sprcros2_fgvideoram, *sprcros2_spriteram, *sprcros2_bgvideoram; |
| r1649 | r1650 | |
|---|---|---|
| 42 | 42 | #define MASTER_CLOCK 22118400 |
| 43 | 43 | |
| 44 | 44 | #include "driver.h" |
| 45 | #include "deprecat.h" | |
| 45 | 46 | #include "sound/ay8910.h" |
| 46 | 47 | #include "video/crtc6845.h" |
| 47 | 48 |
| r1649 | r1650 | |
|---|---|---|
| 18 | 18 | |
| 19 | 19 | |
| 20 | 20 | #include "driver.h" |
| 21 | #include "deprecat.h" | |
| 21 | 22 | #include "machine/atarigen.h" |
| 22 | 23 | #include "audio/atarijsa.h" |
| 23 | 24 | #include "thunderj.h" |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "cpu/z80/z80.h" |
| 11 | 12 | #include "cpu/m68000/m68000.h" |
| 12 | 13 | #include "video/konamiic.h" |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "cpu/konami/konami.h" /* for the callback and the firq irq definition */ |
| 11 | 12 | #include "video/konamiic.h" |
| 12 | 13 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 1003 | 1003 | |
| 1004 | 1004 | GAME( 1981, cavenger, 0, ladybug, cavenger, 0, ROT0, "Universal", "Cosmic Avenger", 0 ) |
| 1005 | 1005 | GAME( 1981, ladybug, 0, ladybug, ladybug, 0, ROT270, "Universal", "Lady Bug", 0 ) |
| 1006 | GAME( 1981, ladybugb, ladybug, ladybug, ladybug, 0, ROT270, "bootleg", "Lady Bug (bootleg)", 0 ) | |
| 1007 | GAME( 1981, ladybgb2, ladybug, ladybug, ladybug, 0, ROT270, "bootleg", "Lady Bug (bootleg Set 2)", 0 ) | |
| 1006 | GAME( 1981, ladybugb, ladybug, ladybug, ladybug, 0, ROT270, "bootleg", "Lady Bug (bootleg set 1)", 0 ) | |
| 1007 | GAME( 1981, ladybgb2, ladybug, ladybug, ladybug, 0, ROT270, "bootleg", "Lady Bug (bootleg set 2)", 0 ) | |
| 1008 | 1008 | GAME( 1982, dorodon, 0, ladybug, dorodon, dorodon, ROT270, "Falcon", "Dorodon (set 1)", 0 ) |
| 1009 | 1009 | GAME( 1982, dorodon2, dorodon, ladybug, dorodon, dorodon, ROT270, "Falcon", "Dorodon (set 2)", 0 ) |
| 1010 | 1010 | GAME( 1982, snapjack, 0, ladybug, snapjack, 0, ROT0, "Universal", "Snap Jack", 0 ) |
| r1649 | r1650 | |
|---|---|---|
| 71 | 71 | static PALETTE_INIT( yamato ) |
| 72 | 72 | { |
| 73 | 73 | int i; |
| 74 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 75 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + (offs)]) | |
| 76 | 74 | |
| 77 | ||
| 78 | 75 | /* chars - 12 bits RGB */ |
| 79 | for (i = 0;i < | |
| 76 | for (i = 0; i < 0x40; i++) | |
| 80 | 77 | { |
| 81 | int bit0,bit1,bit2,bit3,r,g,b; | |
| 78 | int bit0, bit1, bit2, bit3; | |
| 79 | int r, g, b; | |
| 82 | 80 | |
| 83 | ||
| 84 | 81 | /* red component */ |
| 85 | bit0 = (color_prom[0] >> 0) & 0x01; | |
| 86 | bit1 = (color_prom[0] >> 1) & 0x01; | |
| 87 | bit2 = (color_prom[0] >> 2) & 0x01; | |
| 88 | bit3 = (color_prom[0] >> 3) & 0x01; | |
| 82 | bit0 = (color_prom[i + 0x00] >> 0) & 0x01; | |
| 83 | bit1 = (color_prom[i + 0x00] >> 1) & 0x01; | |
| 84 | bit2 = (color_prom[i + 0x00] >> 2) & 0x01; | |
| 85 | bit3 = (color_prom[i + 0x00] >> 3) & 0x01; | |
| 89 | 86 | r = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 87 | ||
| 90 | 88 | /* green component */ |
| 91 | bit0 = (color_prom[0] >> 4) & 0x01; | |
| 92 | bit1 = (color_prom[0] >> 5) & 0x01; | |
| 93 | bit2 = (color_prom[0] >> 6) & 0x01; | |
| 94 | bit3 = (color_prom[0] >> 7) & 0x01; | |
| 89 | bit0 = (color_prom[i + 0x00] >> 4) & 0x01; | |
| 90 | bit1 = (color_prom[i + 0x00] >> 5) & 0x01; | |
| 91 | bit2 = (color_prom[i + 0x00] >> 6) & 0x01; | |
| 92 | bit3 = (color_prom[i + 0x00] >> 7) & 0x01; | |
| 95 | 93 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 94 | ||
| 96 | 95 | /* blue component */ |
| 97 | bit0 = (color_prom[64] >> 0) & 0x01; | |
| 98 | bit1 = (color_prom[64] >> 1) & 0x01; | |
| 99 | bit2 = (color_prom[64] >> 2) & 0x01; | |
| 100 | bit3 = (color_prom[64] >> 3) & 0x01; | |
| 96 | bit0 = (color_prom[i + 0x40] >> 0) & 0x01; | |
| 97 | bit1 = (color_prom[i + 0x40] >> 1) & 0x01; | |
| 98 | bit2 = (color_prom[i + 0x40] >> 2) & 0x01; | |
| 99 | bit3 = (color_prom[i + 0x40] >> 3) & 0x01; | |
| 101 | 100 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 102 | 101 | |
| 103 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 104 | color_prom++; | |
| 102 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); | |
| 105 | 103 | } |
| 106 | color_prom += 64; | |
| 107 | 104 | |
| 108 | 105 | /* big sprite - 8 bits RGB */ |
| 109 | for (i = 0;i < | |
| 106 | for (i = 0; i < 0x20; i++) | |
| 110 | 107 | { |
| 111 | int bit0,bit1,bit2,r,g,b; | |
| 108 | int bit0, bit1, bit2; | |
| 109 | int r, g, b; | |
| 112 | 110 | |
| 113 | ||
| 114 | 111 | /* red component */ |
| 115 | bit0 = (*color_prom >> 0) & 0x01; | |
| 116 | bit1 = (*color_prom >> 1) & 0x01; | |
| 117 | bit2 = (*color_prom >> 2) & 0x01; | |
| 112 | bit0 = (color_prom[i + 0x80] >> 0) & 0x01; | |
| 113 | bit1 = (color_prom[i + 0x80] >> 1) & 0x01; | |
| 114 | bit2 = (color_prom[i + 0x80] >> 2) & 0x01; | |
| 118 | 115 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 116 | ||
| 119 | 117 | /* green component */ |
| 120 | bit0 = (*color_prom >> 3) & 0x01; | |
| 121 | bit1 = (*color_prom >> 4) & 0x01; | |
| 122 | bit2 = (*color_prom >> 5) & 0x01; | |
| 118 | bit0 = (color_prom[i + 0x80] >> 3) & 0x01; | |
| 119 | bit1 = (color_prom[i + 0x80] >> 4) & 0x01; | |
| 120 | bit2 = (color_prom[i + 0x80] >> 5) & 0x01; | |
| 123 | 121 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 122 | ||
| 124 | 123 | /* blue component */ |
| 125 | 124 | bit0 = 0; |
| 126 | bit1 = (*color_prom >> 6) & 0x01; | |
| 127 | bit2 = (*color_prom >> 7) & 0x01; | |
| 125 | bit1 = (color_prom[i + 0x80] >> 6) & 0x01; | |
| 126 | bit2 = (color_prom[i + 0x80] >> 7) & 0x01; | |
| 128 | 127 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 129 | 128 | |
| 130 | palette_set_color(machine,i+64,MAKE_RGB(r,g,b)); | |
| 131 | color_prom++; | |
| 129 | palette_set_color(machine, i + 0x40, MAKE_RGB(r, g, b)); | |
| 132 | 130 | } |
| 133 | 131 | |
| 134 | ||
| 135 | /* character and sprite lookup table */ | |
| 136 | /* they use colors 0-63 */ | |
| 137 | for (i = 0;i < TOTAL_COLORS(0);i++) | |
| 138 | { | |
| 139 | /* pen 0 always uses color 0 (background in River Patrol and Silver Land) */ | |
| 140 | if (i % 4 == 0) COLOR(0,i) = 0; | |
| 141 | else COLOR(0,i) = i; | |
| 142 | } | |
| 143 | ||
| 144 | /* big sprite lookup table */ | |
| 145 | /* it uses colors 64-95 */ | |
| 146 | for (i = 0;i < TOTAL_COLORS(2);i++) | |
| 147 | { | |
| 148 | if (i % 4 == 0) COLOR(2,i) = 0; | |
| 149 | else COLOR(2,i) = i + 64; | |
| 150 | } | |
| 151 | ||
| 152 | 132 | /* fake colors for bg gradient */ |
| 153 | for (i = 0;i < 256;i++) | |
| 154 | { | |
| 155 | palette_set_color(machine,i+16*4+8*4,MAKE_RGB(0,0,i)); | |
| 156 | } | |
| 133 | for (i = 0; i < 0x100; i++) | |
| 134 | palette_set_color(machine, i + 0x60, MAKE_RGB(0, 0, i)); | |
| 157 | 135 | } |
| 158 | 136 | |
| 159 | 137 | static PALETTE_INIT( toprollr ) |
| 160 | 138 | { |
| 161 | 139 | int i; |
| 162 | 140 | |
| 163 | for (i = 0;i < 32*5;i++) | |
| 141 | for (i = 0; i < 32*5; i++) | |
| 164 | 142 | { |
| 165 | int bit0,bit1,bit2,r,g,b; | |
| 143 | int bit0,bit1,bit2; | |
| 144 | int r,g,b; | |
| 166 | 145 | |
| 167 | ||
| 168 | 146 | /* red component */ |
| 169 | 147 | bit0 = (color_prom[0] >> 0) & 0x01; |
| 170 | 148 | bit1 = (color_prom[0] >> 1) & 0x01; |
| 171 | 149 | bit2 = (color_prom[0] >> 2) & 0x01; |
| 172 | ||
| 173 | ||
| 174 | 150 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 175 | 151 | |
| 176 | 152 | /* green component */ |
| 177 | 153 | bit0 = (color_prom[0] >> 3) & 0x01; |
| 178 | 154 | bit1 = (color_prom[0] >> 4) & 0x01; |
| 179 | 155 | bit2 = (color_prom[0] >> 5) & 0x01; |
| 180 | ||
| 181 | 156 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 182 | 157 | |
| 183 | 158 | /* blue component */ |
| 184 | 159 | bit0 = 0; |
| 185 | 160 | bit1 = (color_prom[0] >> 6) & 0x01; |
| 186 | 161 | bit2 = (color_prom[0] >> 7) & 0x01; |
| 187 | ||
| 188 | 162 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 189 | 163 | |
| 190 | ||
| 191 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 164 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); | |
| 192 | 165 | color_prom++; |
| 193 | 166 | } |
| 194 | 167 | |
| r1649 | r1650 | |
| 244 | 217 | AM_RANGE(0x0000, 0x5fff) AM_WRITE(MWA8_ROM) |
| 245 | 218 | AM_RANGE(0x6000, 0x6fff) AM_WRITE(MWA8_RAM) |
| 246 | 219 | AM_RANGE(0x7000, 0x7fff) AM_WRITE(MWA8_ROM) |
| 247 | AM_RANGE(0x8800, 0x88ff) AM_WRITE( | |
| 220 | AM_RANGE(0x8800, 0x88ff) AM_WRITE(MWA8 | |
| 248 | 221 | AM_RANGE(0x8900, 0x8bff) AM_WRITE(MWA8_RAM) /* not used, but initialized */ |
| 249 | 222 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(MWA8_RAM) AM_BASE(&videoram) AM_SIZE(&videoram_size) |
| 250 | 223 | //AM_RANGE(0x9400, 0x97ff) AM_WRITE(MWA8_RAM) /* mirror address, used by Crazy Climber to draw windows */ |
| r1649 | r1650 | |
| 307 | 280 | } |
| 308 | 281 | } |
| 309 | 282 | |
| 310 | static ADDRESS_MAP_START( tr | |
| 283 | static ADDRESS_MAP_START( toprollr_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 311 | 284 | AM_RANGE(0x0000, 0x5fff) AM_READ(MRA8_BANK1) |
| 312 | 285 | AM_RANGE(0x6000, 0x6bff) AM_RAM |
| 313 | AM_RANGE(0x8800, 0x88ff) AM_ | |
| 286 | AM_RANGE(0x8800, 0x88ff) AM_ | |
| 314 | 287 | AM_RANGE(0x8c00, 0x8fff) AM_RAM AM_BASE(&toprollr_videoram3) |
| 315 | 288 | AM_RANGE(0x9000, 0x93ff) AM_RAM AM_BASE(&videoram) |
| 316 | 289 | AM_RANGE(0x9400, 0x97ff) AM_RAM AM_BASE(&toprollr_videoram4) |
| r1649 | r1650 | |
| 330 | 303 | ADDRESS_MAP_END |
| 331 | 304 | |
| 332 | 305 | |
| 333 | static ADDRESS_MAP_START( t | |
| 306 | static ADDRESS_MAP_START( toprollr_io_map, ADDRESS_SPACE_IO, 8 ) | |
| 334 | 307 | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) ) |
| 335 | 308 | AM_RANGE(0x08, 0x08) AM_WRITE(AY8910_control_port_0_w) |
| 336 | 309 | AM_RANGE(0x09, 0x09) AM_WRITE(AY8910_write_port_0_w) |
| r1649 | r1650 | |
| 490 | 463 | }; |
| 491 | 464 | |
| 492 | 465 | |
| 493 | static const gfx_layout trcharlayout = | |
| 466 | static const gfx_layout toprollr_charlayout = | |
| 494 | 467 | { |
| 495 | 468 | 8,8, |
| 496 | 469 | RGN_FRAC(1,2), |
| r1649 | r1650 | |
| 501 | 474 | 8*8 |
| 502 | 475 | }; |
| 503 | 476 | |
| 504 | static const gfx_layout trspritelayout = | |
| 477 | static const gfx_layout toprollr_spritelayout = | |
| 505 | 478 | { |
| 506 | 479 | 16,16, /* 16*16 sprites */ |
| 507 | 480 | RGN_FRAC(1,2), /* 128 sprites (64 in Crazy Climber) */ |
| r1649 | r1650 | |
| 523 | 496 | GFXDECODE_ENTRY( REGION_GFX1, 0x2000, spritelayout, 0, 16 ) /* sprite set #2 */ |
| 524 | 497 | GFXDECODE_END |
| 525 | 498 | |
| 526 | static GFXDECODE_START( tr ) | |
| 527 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, trcharlayout, 0, 40 ) | |
| 528 | GFXDECODE_ENTRY( REGION_GFX2, 0x0000, trcharlayout, 0, 40 ) | |
| 529 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, trspritelayout, 0, 40 ) | |
| 530 | GFXDECODE_ENTRY( REGION_GFX3, 0x0000, trcharlayout, 0, 40 ) | |
| 499 | static GFXDECODE_START( toprollr ) | |
| 500 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, toprollr_charlayout, 0, 40 ) | |
| 501 | GFXDECODE_ENTRY( REGION_GFX2, 0x0000, toprollr_charlayout, 0, 40 ) | |
| 502 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, toprollr_spritelayout, 0, 40 ) | |
| 503 | GFXDECODE_ENTRY( REGION_GFX3, 0x0000, toprollr_charlayout, 0, 40 ) | |
| 531 | 504 | GFXDECODE_END |
| 532 | 505 | |
| 533 | 506 | static MACHINE_DRIVER_START( yamato ) |
| r1649 | r1650 | |
| 553 | 526 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 554 | 527 | MDRV_GFXDECODE(yamato) |
| 555 | 528 | MDRV_PALETTE_LENGTH(96+256) |
| 556 | MDRV_COLORTABLE_LENGTH(16*4+8*4) | |
| 557 | 529 | |
| 558 | 530 | MDRV_PALETTE_INIT(yamato) |
| 559 | 531 | MDRV_VIDEO_START(generic) |
| r1649 | r1650 | |
| 573 | 545 | |
| 574 | 546 | /* basic machine hardware */ |
| 575 | 547 | MDRV_CPU_ADD(Z80, 3072000) |
| 576 | MDRV_CPU_PROGRAM_MAP(trmem_map,0) | |
| 577 | MDRV_CPU_IO_MAP(trport_map,0) | |
| 548 | MDRV_CPU_PROGRAM_MAP(toprollr_map,0) | |
| 549 | MDRV_CPU_IO_MAP(toprollr_io_map,0) | |
| 578 | 550 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 579 | 551 | |
| 580 | 552 | MDRV_SCREEN_REFRESH_RATE(60) |
| r1649 | r1650 | |
| 586 | 558 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 587 | 559 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 588 | 560 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 2*8, 30*8-1) |
| 589 | MDRV_GFXDECODE(tr) | |
| 561 | MDRV_GFXDECODE(toprollr) | |
| 590 | 562 | MDRV_PALETTE_LENGTH(32*5) |
| 591 | 563 | MDRV_PALETTE_INIT(toprollr) |
| 592 | 564 |
| r1649 | r1650 | |
|---|---|---|
| 51 | 51 | */ |
| 52 | 52 | |
| 53 | 53 | #include "driver.h" |
| 54 | #include "deprecat.h" | |
| 54 | 55 | #include "cpu/z80/z80.h" |
| 55 | 56 | #include "sound/ay8910.h" |
| 56 | 57 | |
| r1649 | r1650 | |
| 311 | 312 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 312 | 313 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 313 | 314 | MDRV_GFXDECODE(blueprnt) |
| 314 | MDRV_PALETTE_LENGTH(16) | |
| 315 | MDRV_COLORTABLE_LENGTH(128*4+8) | |
| 315 | MDRV_PALETTE_LENGTH(128*4+8) | |
| 316 | 316 | |
| 317 | 317 | MDRV_PALETTE_INIT(blueprnt) |
| 318 | 318 | MDRV_VIDEO_START(blueprnt) |
| r1649 | r1650 | |
|---|---|---|
| 118 | 118 | ***************************************************************************/ |
| 119 | 119 | |
| 120 | 120 | #include "driver.h" |
| 121 | #include "deprecat.h" | |
| 121 | 122 | #include "cpu/z80/z80.h" |
| 122 | 123 | #include "sound/2203intf.h" |
| 123 | 124 | #include "sound/upd7759.h" |
| r1649 | r1650 | |
| 284 | 285 | AM_RANGE(0x0414, 0x0414) AM_WRITE(soundlatch_w) |
| 285 | 286 | AM_RANGE(0x0418, 0x0418) AM_WRITE(combasc_sh_irqtrigger_w) |
| 286 | 287 | AM_RANGE(0x041c, 0x041c) AM_WRITE(watchdog_reset_w) /* watchdog reset? */ |
| 287 | AM_RANGE(0x0600, 0x06ff) AM_WRITE( | |
| 288 | AM_RANGE(0x0600, 0x06ff) AM_WRITE(MWA8 | |
| 288 | 289 | AM_RANGE(0x0800, 0x1fff) AM_WRITE(MWA8_RAM) /* RAM */ |
| 289 | 290 | AM_RANGE(0x2000, 0x3fff) AM_WRITE(combasc_video_w) |
| 290 | 291 | AM_RANGE(0x4000, 0x7fff) AM_WRITE(MWA8_ROM) /* banked ROM area */ |
| r1649 | r1650 | |
| 303 | 304 | static ADDRESS_MAP_START( combascb_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 304 | 305 | AM_RANGE(0x0000, 0x04ff) AM_WRITE(MWA8_RAM) |
| 305 | 306 | AM_RANGE(0x0500, 0x0500) AM_WRITE(combascb_bankselect_w) |
| 306 | AM_RANGE(0x0600, 0x06ff) AM_WRITE( | |
| 307 | AM_RANGE(0x0600, 0x06ff) AM_WRITE(MWA8 | |
| 307 | 308 | AM_RANGE(0x0800, 0x1fff) AM_WRITE(MWA8_RAM) |
| 308 | 309 | AM_RANGE(0x2000, 0x3fff) AM_WRITE(combasc_video_w) |
| 309 | 310 | AM_RANGE(0x4000, 0x7fff) AM_WRITE(MWA8_BANK1) /* banked ROM/RAM area */ |
| r1649 | r1650 | |
| 679 | 680 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 680 | 681 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 681 | 682 | MDRV_GFXDECODE(combasc) |
| 682 | MDRV_PALETTE_LENGTH(128) | |
| 683 | MDRV_COLORTABLE_LENGTH(8*16*16) | |
| 683 | MDRV_PALETTE_LENGTH(8*16*16) | |
| 684 | 684 | |
| 685 | 685 | MDRV_PALETTE_INIT(combasc) |
| 686 | 686 | MDRV_VIDEO_START(combasc) |
| r1649 | r1650 | |
| 722 | 722 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 723 | 723 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 724 | 724 | MDRV_GFXDECODE(combascb) |
| 725 | MDRV_PALETTE_LENGTH(128) | |
| 726 | MDRV_COLORTABLE_LENGTH(8*16*16) | |
| 725 | MDRV_PALETTE_LENGTH(8*16*16) | |
| 727 | 726 | |
| 728 | 727 | MDRV_PALETTE_INIT(combascb) |
| 729 | 728 | MDRV_VIDEO_START(combascb) |
| r1649 | r1650 | |
|---|---|---|
| 48 | 48 | ***************************************************************************/ |
| 49 | 49 | |
| 50 | 50 | #include "driver.h" |
| 51 | #include "deprecat.h" | |
| 51 | 52 | #include "cpu/m6809/m6809.h" |
| 52 | 53 | #include "cpu/hd6309/hd6309.h" |
| 53 | 54 | #include "video/konamiic.h" |
| r1649 | r1650 | |
|---|---|---|
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | #include "driver.h" |
| 9 | #include "deprecat.h" | |
| 9 | 10 | #include "machine/eeprom.h" |
| 10 | 11 | #include "cpu/sh2/sh2.h" |
| 11 | 12 | #include "machine/stvprot.h" |
| r1649 | r1650 | |
|---|---|---|
| 42 | 42 | */ |
| 43 | 43 | |
| 44 | 44 | #include "driver.h" |
| 45 | #include "deprecat.h" | |
| 46 | ||
| 45 | 47 | static UINT16 *peno_vram; |
| 46 | 48 | |
| 47 | 49 |
| r1649 | r1650 | |
|---|---|---|
| 42 | 42 | */ |
| 43 | 43 | |
| 44 | 44 | #include "driver.h" |
| 45 | #include "deprecat.h" | |
| 45 | 46 | #include "sound/okim6295.h" |
| 46 | 47 | |
| 47 | 48 | static UINT8 *egghunt_bgram; |
| r1649 | r1650 | |
|---|---|---|
| 78 | 78 | ***************************************************************************/ |
| 79 | 79 | |
| 80 | 80 | #include "driver.h" |
| 81 | #include "deprecat.h" | |
| 81 | 82 | #include "cpu/z80/z80.h" |
| 82 | 83 | #include "cpu/m6805/m6805.h" |
| 83 | 84 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | |
| 14 | 14 | Year Game Developer Protection Chip Board |
| 15 | 15 | ==== ==================== ================ =============== ===== |
| 16 | 1989 Bloxeed Sega / Elorg C | |
| 17 | 1990 Columns Sega C | |
| 18 | 1990 Columns II Sega C | |
| 19 | 1990 Borench Sega C2 | |
| 20 | 1990 ThunderForce AC Sega / Technosoft C2 | |
| 21 | 1991 Twin Squash Sega C2 | |
| 22 | 1992 Ribbit! Sega C2 | |
| 23 | 1992 Tant-R (Japan) Sega 317-0211 C2 | |
| 24 | 1992 Tant-R (Korea) Sega C2 | |
| 16 | 1989 Bloxeed Sega / Elorg n/a C | |
| 17 | 1990 Columns Sega 317-0149 C | |
| 18 | 1990 Columns II Sega 317-0160 C | |
| 19 | 1990 ThunderForce AC Sega / Technosoft 317-0172 C2 | |
| 20 | 1990 Borench Sega 317-0173 C2 | |
| 21 | 1991 Twin Squash Sega 317-0193 C2 | |
| 22 | 1992 Ribbit! Sega 317-0178 C2 | |
| 25 | 23 | 1992 Puyo Puyo Sega / Compile 317-0203 C2 |
| 26 | 1994 Ichidant-R (World) Sega C2 | |
| 27 | 1994 Ichidant-R (Japan) Sega C2 | |
| 28 | 1994 Ichidant-R (Korea) Sega C2 | |
| 29 | 1994 PotoPoto (Japan) Sega C2 | |
| 30 | 1994 Puyo Puyo 2 Compile C2 | |
| 24 | 1992 Tant-R (Japan) Sega 317-0211 C2 | |
| 25 | 1992 Tant-R (Korea) Sega ? C2 | |
| 26 | 1994 PotoPoto (Japan) Sega 317-0218 C2 | |
| 27 | 1994 Stack Columns (Japan) Sega 317-0219 C2 | |
| 31 | 28 | 1994 Stack Columns (World) Sega 317-0223 C2 |
| 32 | 1994 Stack Columns (Japan) Sega C2 | |
| 33 | 1994 Zunzunkyou No Yabou Sega C2 | |
| 29 | 1994 Ichidant-R (Japan) Sega 317-0224 C2 | |
| 30 | 1994 Ichidant-R (World) Sega ? C2 | |
| 31 | 1994 Ichidant-R (Korea) Sega ? C2 | |
| 32 | 1994 Puyo Puyo 2 Compile 317-0228 C2 | |
| 33 | 1994 Zunzunkyou No Yabou Sega ? C2 | |
| 34 | 34 | |
| 35 | + Print Club Vols 1,2,4,5 (and 3?) | |
| 35 | 1995 Print Club (Vol.1) Atlus ? C2 | |
| 36 | 1995 Print Club (Vol.2) Atlus ? C2 | |
| 37 | 1996 Print Club (Vol.4) Atlus ? C2 | |
| 38 | 1996 Print Club (Vol.5) Atlus ? C2 | |
| 36 | 39 | |
| 37 | 40 | |
| 38 | 41 | Notes: |
| r1649 | r1650 | |
| 78 | 81 | |
| 79 | 82 | |
| 80 | 83 | #include "driver.h" |
| 84 | #include "deprecat.h" | |
| 81 | 85 | #include "cpu/m68000/m68000.h" |
| 82 | 86 | #include "genesis.h" |
| 83 | 87 | |
| r1649 | r1650 | |
| 100 | 104 | static UINT8 misc_io_data[0x10]; /* holds values written to the I/O chip */ |
| 101 | 105 | |
| 102 | 106 | /* protection-related tracking */ |
| 103 | static | |
| 107 | static i | |
| 104 | 108 | static UINT8 prot_write_buf; /* remembers what was written */ |
| 105 | 109 | static UINT8 prot_read_buf; /* remembers what was returned */ |
| 106 | 110 | |
| r1649 | r1650 | |
| 517 | 521 | /* protection chip reads */ |
| 518 | 522 | static READ16_HANDLER( prot_r ) |
| 519 | 523 | { |
| 520 | if (LOG_PROTECTION) logerror("%06X:protection r=%02X\n", activecpu_get_previouspc(), prot_ | |
| 524 | if (LOG_PROTECTION) logerror("%06X:protection r=%02X\n", activecpu_get_previouspc(), prot_func | |
| 521 | 525 | return prot_read_buf | 0xf0; |
| 522 | 526 | } |
| 523 | 527 | |
| r1649 | r1650 | |
| 540 | 544 | prot_write_buf = data & 0x0f; |
| 541 | 545 | |
| 542 | 546 | /* determine the value to return, should a read occur */ |
| 543 | if (prot_table) | |
| 544 | prot_read_buf = (prot_table[table_index >> 3] << (4 * (table_index & 7))) >> 28; | |
| 547 | if (prot_func) | |
| 548 | prot_read_buf = prot_func(table_index); | |
| 545 | 549 | if (LOG_PROTECTION) logerror("%06X:protection w=%02X, new result=%02X\n", activecpu_get_previouspc(), data & 0x0f, prot_read_buf); |
| 546 | 550 | |
| 547 | 551 | /* if the palette changed, force an update */ |
| r1649 | r1650 | |
| 1730 | 1734 | Machine Init Functions |
| 1731 | 1735 | ******************************************************************************* |
| 1732 | 1736 | |
| 1733 | All of the Sega C/C2 games apart from Bloxeed used a protection chip. | |
| 1734 | The games contain various checks which make sure this protection chip is | |
| 1735 | present and returning the expected values. The chip uses a table of | |
| 1736 | 256x4-bit values to produce its results. It appears that different | |
| 1737 | tables are used for Japanese vs. English variants of some games | |
| 1738 | (Puzzle & Action 2) but not others (Columns). | |
| 1737 | All of the Sega C/C2 games apart from Bloxeed used a protection chip. | |
| 1738 | The games contain various checks which make sure this protection chip is | |
| 1739 | present and returning the expected values. It appears that different | |
| 1740 | tables are used for Japanese vs. English variants of some games | |
| 1741 | (Puzzle & Action 2) but not others (Columns). | |
| 1739 | 1742 | |
| 1743 | ||
| 1744 | The basic operation in the EPM5032 macrocell (that is, without using the expander | |
| 1745 | products) is: | |
| 1746 | ||
| 1747 | out = x1 XOR (x2 OR x3 OR x4) | |
| 1748 | ||
| 1749 | where x1, x2, x3, and x4 are the AND of any number of input bits. Each input can | |
| 1750 | be inverted. The inputs come either from the external pins or from feedback from | |
| 1751 | the output pins. | |
| 1752 | ||
| 1753 | Expander products (64 in total) are the NOT of the AND of any number of input bits | |
| 1754 | (optionally inverted). It's not clear whether the I/O feedback is available to | |
| 1755 | the expander or not. Looking at bit 1 of prot_func_tfrceac(), it would seem that | |
| 1756 | it should be, otherwise I don't see how the formula could be computed. | |
| 1757 | ||
| 1740 | 1758 | ******************************************************************************/ |
| 1741 | 1759 | |
| 1742 | static void segac2_common_init( | |
| 1760 | static void segac2_common_init(i | |
| 1743 | 1761 | { |
| 1744 | prot_ | |
| 1762 | prot_func | |
| 1745 | 1763 | bloxeed_sound = 0; |
| 1746 | 1764 | } |
| 1747 | 1765 | |
| 1748 | 1766 | |
| 1749 | static DRIVER_INIT( c2boot ) | |
| 1767 | ||
| 1768 | /* 317-0149 */ | |
| 1769 | static int prot_func_columns(int in) | |
| 1750 | 1770 | { |
| 1751 | segac2_common_init(NULL); | |
| 1771 | int const b0 = BIT( in,2) ^ ((BIT(~in,0) && BIT( in,7)) || (BIT( in,4) && BIT( in,6))); | |
| 1772 | int const b1 = BIT(~in,0) ^ (BIT( in,2) || (BIT( in,5) && BIT(~in,6) && BIT( in,7))); | |
| 1773 | int const b2 = BIT( in,3) ^ ((BIT( in,0) && BIT( in,1)) || (BIT( in,4) && BIT( in,6))); | |
| 1774 | int const b3 = BIT( in,1) ^ ((BIT( in,0) && BIT( in,1)) || (BIT( in,4) && BIT( in,5)) || (BIT(~in,6) && BIT( in,7))); // 1 repeated | |
| 1775 | ||
| 1776 | return (b3 << 3) | (b2 << 2) | (b1 << 1) | b0; | |
| 1752 | 1777 | } |
| 1753 | 1778 | |
| 1779 | /* 317-0160 */ | |
| 1780 | static int prot_func_columns2(int in) | |
| 1781 | { | |
| 1782 | int const b0 = BIT( in,2) ^ (BIT( in,1) || (BIT( in,4) && BIT( in,5))); | |
| 1783 | int const b1 = (BIT( in,0) && BIT( in,3) && BIT( in,4)) ^ (BIT( in,6) || (BIT( in,5) && BIT( in,7))); | |
| 1784 | int const b2 = (BIT( in,3) && BIT(~in,2) && BIT( in,4)) ^ (BIT( in,5) || (BIT( in,0) && BIT( in,1)) || (BIT( in,4) && BIT( in,6))); // 4 repeated | |
| 1785 | int const b3 = (BIT( in,1) && BIT( in,0) && BIT( in,2)) ^ ((BIT( in,4) && BIT(~in,6)) || (BIT( in,6) && BIT( in,7))); // 6 repeated | |
| 1754 | 1786 | |
| 1755 | static DRIVER_INIT( bloxeedc ) | |
| 1787 | return (b3 << 3) | (b2 << 2) | (b1 << 1) | b0; | |
| 1788 | } | |
| 1789 | ||
| 1790 | /* 317-0172 */ | |
| 1791 | static int prot_func_tfrceac(int in) | |
| 1756 | 1792 | { |
| 1757 | segac2_common_init(NULL); | |
| 1758 | bloxeed_sound = 1; | |
| 1793 | int const b0 = BIT(~in,2) ^ ((BIT( in,0) && BIT(~in,7)) || (BIT( in,3) && BIT( in,4))); | |
| 1794 | int const b1 = (BIT( in,4) && BIT(~in,5) && BIT( in,7)) ^ ((BIT(~in,0) || BIT(~in,3)) && (BIT(~in,6) || BIT(~in,7))); // not in the form x1 XOR (x2 OR x3 OR x4) | |
| 1795 | int const b2 = BIT( in,2) ^ ((BIT( in,4) && BIT(~in,5) && BIT( in,7)) || (BIT(~in,1) && BIT( in,6))); | |
| 1796 | int const b3 = BIT( in,0) ^ ((BIT( in,1) && BIT( in,4) && BIT( in,6)) || (BIT( in,1) && BIT( in,4) && BIT( in,7))); // 1,4 repeated | |
| 1797 | ||
| 1798 | return (b3 << 3) | (b2 << 2) | (b1 << 1) | b0; | |
| 1759 | 1799 | } |
| 1760 | 1800 | |
| 1801 | /* 317-0173 */ | |
| 1802 | static int prot_func_borench(int in) | |
| 1803 | { | |
| 1804 | int const b0 = (BIT( in,1) && BIT( in,2) && BIT( in,3) && BIT( in,7)) ^ (BIT( in,5) || (BIT(~in,0) && BIT(~in,4))); | |
| 1805 | int const b1 = (BIT(~in,2) && BIT( in,3) && BIT( in,5)) ^ (BIT( in,1) || (BIT( in,0) && BIT(~in,4))); | |
| 1806 | int const b2 = (BIT( in,1) && BIT(~in,4) && BIT(~in,6)) ^ (BIT( in,2) || BIT( in,3) || (BIT( in,5) && BIT( in,7))); | |
| 1807 | int const b3 = (BIT(~in,0) && BIT( in,5) && (BIT( in,6) || BIT( in,7))) ^ (BIT( in,1) || (BIT( in,3) && BIT( in,4))); // not in the form x1 XOR (x2 OR x3 OR x4) | |
| 1761 | 1808 | |
| 1762 | static DRIVER_INIT( columns ) | |
| 1809 | return (b3 << 3) | (b2 << 2) | (b1 << 1) | b0; | |
| 1810 | } | |
| 1811 | ||
| 1812 | /* 317-0178 */ | |
| 1813 | static int prot_func_ribbit(int in) | |
| 1763 | 1814 | { |
| 1764 | static const UINT32 table[256/8] = | |
| 1765 | { | |
| 1766 | 0x20a41397, 0x64e057d3, 0x20a41397, 0x64e057d3, | |
| 1767 | 0x20a41397, 0x64e057d3, 0xa8249b17, 0xec60df53, | |
| 1768 | 0x20a41397, 0x64e057d3, 0x75f546c6, 0x31b10282, | |
| 1769 | 0x20a41397, 0x64e057d3, 0xfd75ce46, 0xb9318a02, | |
| 1770 | 0xb8348b07, 0xfc70cf43, 0xb8348b07, 0xfc70cf43, | |
| 1771 | 0x9a168b07, 0xde52cf43, 0x9a168b07, 0xde52cf43, | |
| 1772 | 0x30b40387, 0x74f047c3, 0x75f546c6, 0x31b10282, | |
| 1773 | 0x30b40387, 0x74f047c3, 0xfd75ce46, 0xb9318a02 | |
| 1774 | }; | |
| 1775 | segac2_common_init(table); | |
| 1815 | int const b0 = (BIT( in,0) && BIT( in,4)) ^ ((BIT( in,1) && BIT( in,2)) || BIT( in,3) || BIT(~in,5)); | |
| 1816 | int const b1 = (BIT( in,1) && BIT( in,5)) ^ ((BIT( in,2) && BIT( in,3)) || BIT( in,0) || BIT(~in,6)); | |
| 1817 | int const b2 = (BIT( in,2) && BIT( in,7)) ^ ((BIT( in,3) && BIT( in,0)) || BIT(~in,1) || BIT( in,7)); | |
| 1818 | int const b3 = (BIT( in,3) && BIT( in,6)) ^ ((BIT( in,0) && BIT( in,1)) || BIT(~in,2) || BIT( in,4)); | |
| 1819 | ||
| 1820 | return (b3 << 3) | (b2 << 2) | (b1 << 1) | b0; | |
| 1776 | 1821 | } |
| 1777 | 1822 | |
| 1823 | /* 317-0193 */ | |
| 1824 | static int prot_func_twinsqua(int in) | |
| 1825 | { | |
| 1826 | int const b0 = (BIT( in,2) && BIT(~in,5)) ^ (BIT( in,3) || BIT(~in,4)); | |
| 1827 | int const b1 = (BIT( in,0) && BIT(~in,2) && BIT( in,4)) ^ (BIT(~in,0) || BIT(~in,4) || BIT(~in,6)); // 0,4 repeated | |
| 1828 | int const b2 = (BIT( in,3) && BIT(~in,5)) ^ (BIT( in,4) && BIT( in,7)); | |
| 1829 | int const b3 = BIT( in,1) ^ ((BIT(~in,3) && BIT(~in,6)) || (BIT( in,4) && BIT(~in,6)) || (BIT(~in,1) && BIT( in,3) && BIT(~in,4))); // 1,3,4,6 repeated | |
| 1778 | 1830 | |
| 1779 | static DRIVER_INIT( columns2 ) | |
| 1831 | return (b3 << 3) | (b2 << 2) | (b1 << 1) | b0; | |
| 1832 | } | |
| 1833 | ||
| 1834 | /* 317-0203 */ | |
| 1835 | static int prot_func_puyo(int in) | |
| 1780 | 1836 | { |
| 1781 | static const UINT32 table[256/8] = | |
| 1782 | { | |
| 1783 | 0x0015110c, 0x0015110c, 0x889d9984, 0xcedb9b86, | |
| 1784 | 0x4455554c, 0x4455554c, 0xddddccc4, 0x9b9bcec6, | |
| 1785 | 0x2237332e, 0x2237332e, 0x6677776e, 0x2031756c, | |
| 1786 | 0x6677776e, 0x6677776e, 0x7777666e, 0x3131646c, | |
| 1787 | 0x0015110c, 0x0015110c, 0x889d9984, 0xcedb9b86, | |
| 1788 | 0x6677776e, 0x6677776e, 0xffffeee6, 0xb9b9ece4, | |
| 1789 | 0xaabfbba6, 0xaabfbba6, 0xeeffffe6, 0xa8b9fde4, | |
| 1790 | 0xeeffffe6, 0xeeffffe6, 0xffffeee6, 0xb9b9ece4 | |
| 1791 | }; | |
| 1792 | segac2_common_init(table); | |
| 1837 | int const b0 = (BIT(~in,3) && BIT( in,7)) ^ ((BIT(~in,0) && BIT(~in,1)) || (BIT(~in,1) && BIT(~in,4))); // 1 repeated | |
| 1838 | int const b1 = (BIT( in,3) && BIT( in,5)) ^ (BIT(~in,2) || BIT( in,4) || BIT( in,6)); | |
| 1839 | int const b2 = (BIT(~in,2) && BIT(~in,5)) ^ (BIT( in,1) || BIT(~in,3) || BIT(~in,6)); | |
| 1840 | int const b3 = BIT( in,1) ^ ((BIT( in,0) && BIT( in,3) && BIT( in,7)) || BIT( in,4)); | |
| 1841 | ||
| 1842 | return (b3 << 3) | (b2 << 2) | (b1 << 1) | b0; | |
| 1793 | 1843 | } |
| 1794 | 1844 | |
| 1845 | /* 317-0211 */ | |
| 1846 | static int prot_func_tantr(int in) | |
| 1847 | { | |
| 1848 | int const b0 = (BIT( in,0) && BIT( in,4)) ^ ( BIT( in,5) || BIT(~in,6) || (BIT(~in,3) && BIT( in,7))); | |
| 1849 | int const b1 = (BIT( in,2) && BIT( in,6)) ^ ((BIT( in,1) && BIT( in,5)) || (BIT( in,3) && BIT( in,4))); | |
| 1850 | int const b2 = (BIT(~in,0) && BIT( in,2)) ^ ( BIT( in,4) || BIT( in,7) || (BIT( in,1) && BIT(~in,5))); | |
| 1851 | int const b3 = (BIT(~in,2) && BIT( in,7)) ^ ( BIT(~in,0) || BIT( in,1) || (BIT( in,3) && BIT( in,6))); | |
| 1795 | 1852 | |
| 1796 | static DRIVER_INIT( borench ) | |
| 1853 | return (b3 << 3) | (b2 << 2) | (b1 << 1) | b0; | |
| 1854 | } | |
| 1855 | ||
| 1856 | /* 317-???? */ | |
| 1857 | static int prot_func_tantrkor(int in) | |
| 1797 | 1858 | { |
| 1798 | /* 317-0173 */ | |
| 1799 | static const UINT32 table[256/8] = | |
| 1800 | { | |
| 1801 | 0x12fe56ba, 0x56ba56ba, 0x00aa44ee, 0xcceeccee, | |
| 1802 | 0x13ff57bb, 0x759957bb, 0x11bb55ff, 0xffddddff, | |
| 1803 | 0x12ba56fe, 0x56fe56fe, 0x00aa44ee, 0xcceeccee, | |
| 1804 | 0x933bd77f, 0xf55dd77f, 0x913bd57f, 0x7f5d5d7f, | |
| 1805 | 0x12fe56ba, 0x56ba56ab, 0x00aa44ee, 0xcceeccff, | |
| 1806 | 0xd73bd73b, 0xf519d72a, 0xd57fd57f, 0x7f5d5d6e, | |
| 1807 | 0x12ba56fe, 0x56fe56ef, 0x00aa44ee, 0xcceeccff, | |
| 1808 | 0xd77fd77f, 0xf55dd76e, 0xd57fd57f, 0x7f5d5d6e | |
| 1809 | }; | |
| 1810 | segac2_common_init(table); | |
| 1859 | int const b0 = (BIT(~in,1) && BIT(~in,7)) ^ (BIT(~in,2) && BIT(~in,4)); | |
| 1860 | int const b1 = (BIT( in,2) && BIT( in,6)) ^ (BIT( in,0) && BIT( in,1)); | |
| 1861 | int const b2 = (BIT(~in,3) && BIT(~in,6)) ^ (BIT( in,1) || BIT(~in,4)); | |
| 1862 | int const b3 = (BIT(~in,0) && BIT(~in,2)) ^ (BIT( in,5) && BIT(~in,6)); | |
| 1863 | ||
| 1864 | return (b3 << 3) | (b2 << 2) | (b1 << 1) | b0; | |
| 1811 | 1865 | } |
| 1812 | 1866 | |
| 1867 | /* 317-0218 */ | |
| 1868 | static int prot_func_potopoto(int in) | |
| 1869 | { | |
| 1870 | int const b0 = (BIT(~in,2) && BIT(~in,4)) ^ (BIT(~in,1) && BIT( in,3)); | |
| 1871 | int const b1 = (BIT( in,0) && BIT( in,5)) ^ (BIT( in,2) || BIT(~in,7)); | |
| 1872 | int const b2 = (BIT( in,0) && BIT( in,6)) ^ (BIT(~in,1) && BIT( in,7)); | |
| 1873 | int const b3 = (BIT( in,0) && BIT(~in,7)) ^ (BIT(~in,1) && BIT(~in,6)); | |
| 1813 | 1874 | |
| 1814 | static DRIVER_INIT( tfrceac ) | |
| 1875 | return (b3 << 3) | (b2 << 2) | (b1 << 1) | b0; | |
| 1876 | } | |
| 1877 | ||
| 1878 | /* 317-0219 */ | |
| 1879 | static int prot_func_stkclmnj(int in) | |
| 1815 | 1880 | { |
| 1816 | static const UINT32 table[256/8] = | |
| 1817 | { | |
| 1818 | 0x3a3a6f6f, 0x38386d6d, 0x3a3a6f6f, 0x28287d7d, | |
| 1819 | 0x3a3a6f6f, 0x38386d6d, 0x3a3a6f6f, 0x28287d7d, | |
| 1820 | 0x7e3a2b6f, 0x7c38296d, 0x7eb22be7, 0x6ca039f5, | |
| 1821 | 0x7e3a2b6f, 0x7c38296d, 0x7eb22be7, 0x6ca039f5, | |
| 1822 | 0x3b3b6e6e, 0x39396c6c, 0x5dd50880, 0x4ec61b93, | |
| 1823 | 0x3b3b6e6e, 0x39396c6c, 0x3bb36ee6, 0x28a07df5, | |
| 1824 | 0x5d19084c, 0x5d19084c, 0x7ff72aa2, 0x6ee63bb3, | |
| 1825 | 0x5d19084c, 0x5d19084c, 0x5d9108c4, 0x4c8019d5 | |
| 1826 | }; | |
| 1827 | segac2_common_init(table); | |
| 1881 | int const b0 = (BIT( in,1) && BIT( in,4)) ^ (BIT( in,5) && BIT( in,2)); | |
| 1882 | int const b1 = (BIT(~in,2) && BIT( in,6)) ^ (BIT(~in,5) && BIT( in,7)); | |
| 1883 | int const b2 = (BIT(~in,3) && BIT( in,6)) ^ (BIT(~in,5) && BIT(~in,1)); | |
| 1884 | int const b3 = (BIT(~in,3) && BIT( in,5)) ^ (BIT(~in,6) || BIT(~in,7)); | |
| 1885 | ||
| 1886 | return (b3 << 3) | (b2 << 2) | (b1 << 1) | b0; | |
| 1828 | 1887 | } |
| 1829 | 1888 | |
| 1889 | /* 317-0223 */ | |
| 1890 | static int prot_func_stkclmns(int in) | |
| 1891 | { | |
| 1892 | int const b0 = (BIT( in,2) && BIT( in,4)) ^ (BIT( in,1) || BIT(~in,3)); | |
| 1893 | int const b1 = (BIT( in,0) && BIT( in,5)) ^ (BIT( in,2) && BIT( in,7)); | |
| 1894 | int const b2 = (BIT( in,0) && BIT(~in,6)) ^ (BIT( in,1) && BIT(~in,7)); | |
| 1895 | int const b3 = (BIT( in,0) && BIT(~in,7)) ^ (BIT(~in,1) && BIT( in,6)); | |
| 1830 | 1896 | |
| 1831 | static DRIVER_INIT( tfrceacb ) | |
| 1897 | return (b3 << 3) | (b2 << 2) | (b1 << 1) | b0; | |
| 1898 | } | |
| 1899 | ||
| 1900 | /* 317-0224 */ | |
| 1901 | static int prot_func_ichirj(int in) | |
| 1832 | 1902 | { |
| 1833 | /* disable the palette bank switching from the protection chip */ | |
| 1834 | segac2_common_init(NULL); | |
| 1835 | memory_install_write16_handler(0, ADDRESS_SPACE_PROGRAM, 0x800000, 0x800001, 0, 0, MWA16_NOP); | |
| 1903 | int const b0 = (BIT( in,2) && BIT( in,4)) ^ (BIT(~in,5) && BIT(~in,2)); | |
| 1904 | int const b1 = (BIT( in,2) && BIT(~in,6)) ^ (BIT( in,5) && BIT( in,7)); | |
| 1905 | int const b2 = (BIT(~in,3) && BIT( in,6)) ^ (BIT(~in,5) && BIT(~in,1)); | |
| 1906 | int const b3 = (BIT(~in,1) && BIT( in,5)) ^ (BIT(~in,5) && BIT( in,7)); | |
| 1907 | ||
| 1908 | return (b3 << 3) | (b2 << 2) | (b1 << 1) | b0; | |
| 1836 | 1909 | } |
| 1837 | 1910 | |
| 1911 | /* 317-???? */ | |
| 1912 | static int prot_func_ichir(int in) | |
| 1913 | { | |
| 1914 | int const b0 = (BIT(~in,2) && BIT( in,4)) ^ (BIT( in,5) && BIT(~in,2)); | |
| 1915 | int const b1 = (BIT( in,1) && BIT( in,6)) ^ (BIT( in,5) || BIT( in,7)); | |
| 1916 | int const b2 = (BIT(~in,3) && BIT( in,6)) ^ (BIT(~in,5) && BIT(~in,3)); | |
| 1917 | int const b3 = (BIT( in,0) && BIT(~in,5)) ^ (BIT( in,5) && BIT( in,7)); | |
| 1838 | 1918 | |
| 1839 | static DRIVER_INIT( twinsqua ) | |
| 1919 | return (b3 << 3) | (b2 << 2) | (b1 << 1) | b0; | |
| 1920 | } | |
| 1921 | ||
| 1922 | /* 317-???? */ | |
| 1923 | static int prot_func_ichirk(int in) | |
| 1840 | 1924 | { |
| 1841 | static const UINT32 table[256/8] = | |
| 1842 | { | |
| 1843 | 0xbb33aa22, 0xffffeeee, 0xa820bb33, 0xfd75ee66, | |
| 1844 | 0xbb33bb33, 0xbbbbbbbb, 0xa820aa22, 0xb931bb33, | |
| 1845 | 0x33bb22aa, 0xffffeeee, 0x22aa31b9, 0x77ff64ec, | |
| 1846 | 0x33bb33bb, 0xbbbbbbbb, 0x22aa20a8, 0x33bb31b9, | |
| 1847 | 0xbb33aa22, 0xffffeeee, 0xec64ff77, 0xb931aa22, | |
| 1848 | 0xbb33bb33, 0xbbbbbbbb, 0xec64ee66, 0xfd75ff77, | |
| 1849 | 0x33bb22aa, 0xffffeeee, 0x66ee75fd, 0x33bb20a8, | |
| 1850 | 0x33bb33bb, 0xbbbbbbbb, 0x66ee64ec, 0x77ff75fd | |
| 1851 | }; | |
| 1852 | segac2_common_init(table); | |
| 1925 | int const b0 = (BIT(~in,2) && BIT( in,4)) ^ (BIT( in,5) && BIT(~in,1)); | |
| 1926 | int const b1 = (BIT( in,0) && BIT( in,6)) ^ (BIT( in,5) && BIT( in,4)); | |
| 1927 | int const b2 = (BIT(~in,1) && BIT(~in,6)) ^ (BIT(~in,5) && BIT( in,3)); | |
| 1928 | int const b3 = (BIT( in,1) && BIT( in,5)) ^ (BIT( in,6) && BIT( in,7)); | |
| 1929 | ||
| 1930 | return (b3 << 3) | (b2 << 2) | (b1 << 1) | b0; | |
| 1853 | 1931 | } |
| 1854 | 1932 | |
| 1933 | /* 317-0228 */ | |
| 1934 | static int prot_func_puyopuy2(int in) | |
| 1935 | { | |
| 1936 | int const b0 = (BIT(~in,0) && BIT(~in,7)) ^ (BIT( in,1) || BIT(~in,4) || BIT(~in,6)); | |
| 1937 | int const b1 = (BIT( in,0) && BIT(~in,6)) ^ (BIT( in,3) && BIT( in,5)); | |
| 1938 | int const b2 = (BIT(~in,4) && BIT(~in,7)) ^ (BIT( in,0) || BIT(~in,6)); | |
| 1939 | int const b3 = (BIT(~in,1) && BIT( in,4)) ^ (BIT( in,2) && BIT(~in,3)); | |
| 1855 | 1940 | |
| 1856 | static DRIVER_INIT( ribbit ) | |
| 1941 | return (b3 << 3) | (b2 << 2) | (b1 << 1) | b0; | |
| 1942 | } | |
| 1943 | ||
| 1944 | static int prot_func_zunkyou(int in) | |
| 1857 | 1945 | { |
| 1858 | static const UINT32 table[256/8] = | |
| 1859 | { | |
| 1860 | 0xffbb773b, 0xffbf773f, 0xfebafeba, 0xfebefebe, | |
| 1861 | 0xee886619, 0xff9d771d, 0xef89ef98, 0xfe9cfe9c, | |
| 1862 | 0xdf9b571b, 0x5717ffb7, 0xde9ade9a, 0x56167636, | |
| 1863 | 0xcea84639, 0x5735ff95, 0xcfa9cfb8, 0x56347614, | |
| 1864 | 0xffff333b, 0xffff333b, 0xfefebaba, 0xfefebaba, | |
| 1865 | 0xeecc2219, 0xffdd3319, 0xefcdab98, 0xfedcba98, | |
| 1866 | 0xdfdf131b, 0x5757bbb3, 0xdede9a9a, 0x56563232, | |
| 1867 | 0xceec0239, 0x5775bb91, 0xcfed8bb8, 0x56743210 | |
| 1868 | }; | |
| 1869 | segac2_common_init(table); | |
| 1946 | int const b0 = (BIT(~in,1) && BIT( in,6)) ^ (BIT(~in,5) && BIT( in,7)); | |
| 1947 | int const b1 = (BIT( in,0) && BIT(~in,5)) ^ (BIT(~in,3) || BIT( in,4)); | |
| 1948 | int const b2 = (BIT( in,2) && BIT(~in,3)) ^ (BIT( in,4) && BIT(~in,5)); | |
| 1949 | int const b3 = (BIT( in,0) && BIT(~in,4)) ^ (BIT(~in,2) && BIT(~in,6)); | |
| 1950 | ||
| 1951 | return (b3 << 3) | (b2 << 2) | (b1 << 1) | b0; | |
| 1870 | 1952 | } |
| 1871 | 1953 | |
| 1954 | static int prot_func_pclub(int in) | |
| 1955 | { | |
| 1956 | return 0xf; | |
| 1957 | } | |
| 1872 | 1958 | |
| 1873 | static | |
| 1959 | static int | |
| 1874 | 1960 | { |
| 1875 | /* 317-0211 */ | |
| 1876 | static const UINT32 table[256/8] = | |
| 1877 | { | |
| 1878 | 0x91ddd19d, 0x91ddd19d, 0xd4dc949c, 0xf6feb6be, | |
| 1879 | 0x91bbd1fb, 0x91bbd1fb, 0xd4fe94be, 0xf6feb6be, | |
| 1880 | 0x80cce2ae, 0x88cceaae, 0xc5cda7af, 0xefef8d8d, | |
| 1881 | 0x91bbf3d9, 0x99bbfbd9, 0xd4feb69c, 0xfefe9c9c, | |
| 1882 | 0x5d55959d, 0x5d55959d, 0x5c54949c, 0x7e76b6be, | |
| 1883 | 0x5d7795bf, 0x5d7795bf, 0x5c7694be, 0x7e76b6be, | |
| 1884 | 0x5d55b7bf, 0x4444aeae, 0x5c54b6be, 0x67678d8d, | |
| 1885 | 0x5d77b79d, 0x5577bf9d, 0x5c76b69c, 0x76769c9c | |
| 1886 | }; | |
| 1887 | segac2_common_init(table); | |
| 1961 | int const b0 = (BIT( in,3) && BIT(~in,4)) ^ ((BIT(~in,1) && BIT(~in,7)) || BIT( in,6)); | |
| 1962 | int const b1 = (BIT( in,0) && BIT( in,5)) ^ (BIT( in,2) && BIT(~in,6)); | |
| 1963 | int const b2 = (BIT(~in,1) && BIT( in,6)) ^ (BIT( in,3) || BIT(~in,5) || BIT(~in,1)); // 1 repeated | |
| 1964 | int const b3 = (BIT(~in,2) && BIT(~in,7)) ^ (BIT(~in,0) || BIT(~in,4)); | |
| 1965 | ||
| 1966 | return (b3 << 3) | (b2 << 2) | (b1 << 1) | b0; | |
| 1888 | 1967 | } |
| 1889 | 1968 | |
| 1969 | static int prot_func_pclubjv4(int in) | |
| 1970 | { | |
| 1971 | int const b0 = (BIT(~in,2) && BIT( in,4)) ^ (BIT( in,1) && BIT(~in,6) && BIT(~in,3)); | |
| 1972 | int const b1 = (BIT(~in,3) && BIT(~in,4)) ^ (BIT( in,0) && BIT( in,5) && BIT(~in,6)); | |
| 1973 | int const b2 = BIT(~in,0) ^ (BIT( in,3) && BIT( in,4)); | |
| 1974 | int const b3 = (BIT(~in,1) && BIT( in,7)) ^ (BIT( in,5) && BIT(~in,7)); // 7 repeated | |
| 1890 | 1975 | |
| 1891 | static DRIVER_INIT( tantrkor ) | |
| 1976 | return (b3 << 3) | (b2 << 2) | (b1 << 1) | b0; | |
| 1977 | } | |
| 1978 | ||
| 1979 | static int prot_func_pclubjv5(int in) | |
| 1892 | 1980 | { |
| 1893 | static const UINT32 table[256/8] = | |
| 1894 | { | |
| 1895 | 0x80931102, 0xc4d75546, 0xd5825502, 0x91c61146, | |
| 1896 | 0x081b998a, 0x4c5fddce, 0x5d0add8a, 0x194e99ce, | |
| 1897 | 0xc4d77764, 0xc4d77764, 0x91c63364, 0x91c63364, | |
| 1898 | 0xc4d77764, 0xc4d77764, 0x91c63364, 0x91c63364, | |
| 1899 | 0x91930002, 0xd5d74446, 0xc4824402, 0x80c60046, | |
| 1900 | 0x191b888a, 0x5d5fccce, 0x4c0acc8a, 0x084e88ce, | |
| 1901 | 0xd5d76664, 0xd5d76664, 0x80c62264, 0x80c62264, | |
| 1902 | 0xd5d76664, 0xd5d76664, 0x80c62264, 0x80c62264 | |
| 1903 | }; | |
| 1904 | segac2_common_init(table); | |
| 1981 | int const b0 = (BIT(~in,1) && BIT( in,5)) ^ (BIT(~in,2) && BIT(~in,6)); | |
| 1982 | int const b1 = (BIT(~in,0) && BIT( in,4)) ^ (BIT(~in,3) && BIT(~in,7)); | |
| 1983 | int const b2 = (BIT(~in,3) && BIT( in,7)) ^ (BIT(~in,0) || BIT(~in,4)); | |
| 1984 | int const b3 = (BIT(~in,2) && BIT( in,6)) ^ (BIT(~in,1) && BIT(~in,5)); | |
| 1985 | ||
| 1986 | return (b3 << 3) | (b2 << 2) | (b1 << 1) | b0; | |
| 1905 | 1987 | } |
| 1906 | 1988 | |
| 1907 | 1989 | |
| 1908 | static DRIVER_INIT( puyo ) | |
| 1990 | ||
| 1991 | static DRIVER_INIT( c2boot ) | |
| 1909 | 1992 | { |
| 1910 | /* 317-0203 */ | |
| 1911 | static const UINT32 table[256/8] = | |
| 1912 | { | |
| 1913 | 0x33aa55cc, 0x33aa55cc, 0xba22fe66, 0xba22fe66, | |
| 1914 | 0x77ee55cc, 0x55cc77ee, 0xfe66fe66, 0xdc44dc44, | |
| 1915 | 0x33aa77ee, 0x77aa33ee, 0xba22fe66, 0xfe22ba66, | |
| 1916 | 0x77ee77ee, 0x11cc11cc, 0xfe66fe66, 0x98449844, | |
| 1917 | 0x22bb44dd, 0x3ba25dc4, 0xab33ef77, 0xba22fe66, | |
| 1918 | 0x66ff44dd, 0x5dc47fe6, 0xef77ef77, 0xdc44dc44, | |
| 1919 | 0x22bb66ff, 0x7fa23be6, 0xab33ef77, 0xfe22ba66, | |
| 1920 | 0x66ff66ff, 0x19c419c4, 0xef77ef77, 0x98449844 | |
| 1921 | }; | |
| 1922 | segac2_common_init(table); | |
| 1993 | segac2_common_init(NULL); | |
| 1923 | 1994 | } |
| 1924 | 1995 | |
| 1925 | static DRIVER_INIT( | |
| 1996 | static DRIVER_INIT( bloxeedc | |
| 1926 | 1997 | { |
| 1927 | static const UINT32 table[256/8] = | |
| 1928 | { | |
| 1929 | 0x4c4c4c4c, 0x08080808, 0x5d5d4c4c, 0x19190808, | |
| 1930 | 0x33332222, 0x33332222, 0x22222222, 0x22222222, | |
| 1931 | 0x082a082a, 0x082a082a, 0x193b082a, 0x193b082a, | |
| 1932 | 0x77556644, 0x33112200, 0x66446644, 0x22002200, | |
| 1933 | 0x6e6e6e6e, 0x2a2a2a2a, 0x7f7f6e6e, 0x3b3b2a2a, | |
| 1934 | 0xbbbbaaaa, 0xbbbbaaaa, 0xaaaaaaaa, 0xaaaaaaaa, | |
| 1935 | 0x2a082a08, 0x2a082a08, 0x3b192a08, 0x3b192a08, | |
| 1936 | 0xffddeecc, 0xbb99aa88, 0xeecceecc, 0xaa88aa88 | |
| 1937 | }; | |
| 1938 | segac2_common_init(table); | |
| 1998 | segac2_common_init(NULL); | |
| 1999 | bloxeed_sound = 1; | |
| 1939 | 2000 | } |
| 1940 | 2001 | |
| 1941 | static DRIVER_INIT( | |
| 2002 | static DRIVER_INIT( | |
| 1942 | 2003 | { |
| 1943 | static const UINT32 table[256/8] = | |
| 1944 | { | |
| 1945 | 0x44004400, 0x00440044, 0x55114400, 0x11550044, | |
| 1946 | 0x55885588, 0x55885588, 0x66bb77aa, 0x66bb77aa, | |
| 1947 | 0x02020202, 0x46464646, 0x13130202, 0x57574646, | |
| 1948 | 0x138a138a, 0x138a138a, 0x20b931a8, 0x20b931a8, | |
| 1949 | 0x44004400, 0x00440044, 0x55114400, 0x11550044, | |
| 1950 | 0x55885588, 0x55885588, 0x66bb77aa, 0x66bb77aa, | |
| 1951 | 0x8a8a8a8a, 0xcececece, 0x9b9b8a8a, 0xdfdfcece, | |
| 1952 | 0x9b029b02, 0x9b029b02, 0xa831b920, 0xa831b920 | |
| 1953 | }; | |
| 1954 | segac2_common_init(table); | |
| 2004 | segac2_common_init(prot_func_columns); | |
| 1955 | 2005 | } |
| 1956 | 2006 | |
| 1957 | static DRIVER_INIT( | |
| 2007 | static DRIVER_INIT( | |
| 1958 | 2008 | { |
| 1959 | /* 317-0224 */ | |
| 1960 | static const UINT32 table[256/8] = | |
| 1961 | { | |
| 1962 | 0x55116622, 0x55116622, 0x55117733, 0x55117733, | |
| 1963 | 0x8800aa22, 0x8800aa22, 0x8800bb33, 0x8800bb33, | |
| 1964 | 0x11550044, 0x55114400, 0x11551155, 0x55115511, | |
| 1965 | 0xcc44cc44, 0x88008800, 0xcc44dd55, 0x88009911, | |
| 1966 | 0xdd99eeaa, 0xdd99eeaa, 0xdd99ffbb, 0xdd99ffbb, | |
| 1967 | 0xaa228800, 0xaa228800, 0xaa229911, 0xaa229911, | |
| 1968 | 0x99dd88cc, 0xdd99cc88, 0x99dd99dd, 0xdd99dd99, | |
| 1969 | 0xee66ee66, 0xaa22aa22, 0xee66ff77, 0xaa22bb33 | |
| 1970 | }; | |
| 1971 | segac2_common_init(table); | |
| 2009 | segac2_common_init(prot_func_columns2); | |
| 1972 | 2010 | } |
| 1973 | static DRIVER_INIT( ichirjbl ) | |
| 2011 | ||
| 2012 | static DRIVER_INIT( tfrceac ) | |
| 1974 | 2013 | { |
| 1975 | /* when did this actually work? - the protection is patched but the new check fails? */ | |
| 1976 | UINT16 *rom = (UINT16 *)memory_region(REGION_CPU1); | |
| 1977 | rom[0x390/2] = 0x6600; | |
| 2014 | segac2_common_init(prot_func_tfrceac); | |
| 1978 | 2015 | } |
| 1979 | 2016 | |
| 2017 | static DRIVER_INIT( tfrceacb ) | |
| 2018 | { | |
| 2019 | /* disable the palette bank switching from the protection chip */ | |
| 2020 | segac2_common_init(NULL); | |
| 2021 | memory_install_write16_handler(0, ADDRESS_SPACE_PROGRAM, 0x800000, 0x800001, 0, 0, MWA16_NOP); | |
| 2022 | } | |
| 1980 | 2023 | |
| 2024 | static DRIVER_INIT( borench ) | |
| 2025 | { | |
| 2026 | segac2_common_init(prot_func_borench); | |
| 2027 | } | |
| 2028 | ||
| 2029 | static DRIVER_INIT( twinsqua ) | |
| 2030 | { | |
| 2031 | segac2_common_init(prot_func_twinsqua); | |
| 2032 | } | |
| 2033 | ||
| 2034 | static DRIVER_INIT( ribbit ) | |
| 2035 | { | |
| 2036 | segac2_common_init(prot_func_ribbit); | |
| 2037 | } | |
| 2038 | ||
| 2039 | static DRIVER_INIT( puyo ) | |
| 2040 | { | |
| 2041 | segac2_common_init(prot_func_puyo); | |
| 2042 | } | |
| 2043 | ||
| 2044 | static DRIVER_INIT( tantr ) | |
| 2045 | { | |
| 2046 | segac2_common_init(prot_func_tantr); | |
| 2047 | } | |
| 2048 | ||
| 2049 | static DRIVER_INIT( tantrkor ) | |
| 2050 | { | |
| 2051 | segac2_common_init(prot_func_tantrkor); | |
| 2052 | } | |
| 2053 | ||
| 2054 | static DRIVER_INIT( potopoto ) | |
| 2055 | { | |
| 2056 | segac2_common_init(prot_func_potopoto); | |
| 2057 | } | |
| 2058 | ||
| 1981 | 2059 | static DRIVER_INIT( stkclmns ) |
| 1982 | 2060 | { |
| 1983 | static const UINT32 table[256/8] = | |
| 1984 | { | |
| 1985 | 0x1d591d59, 0x0c590c59, 0x1d590c48, 0x0c591d48, | |
| 1986 | 0x1f5b1f5b, 0x0e5b0e5b, 0x1f5b0e4a, 0x0e5b1f4a, | |
| 1987 | 0x915d915d, 0x805d805d, 0x915d804c, 0x805d914c, | |
| 1988 | 0x935f935f, 0x825f825f, 0x935f824e, 0x825f934e, | |
| 1989 | 0x15153737, 0x04152637, 0x15152626, 0x04153726, | |
| 1990 | 0x17173535, 0x06172435, 0x17172424, 0x06173524, | |
| 1991 | 0x9911bb33, 0x8811aa33, 0x9911aa22, 0x8811bb22, | |
| 1992 | 0x9b13b931, 0x8a13a831, 0x9b13a820, 0x8a13b920 | |
| 1993 | }; | |
| 1994 | segac2_common_init(table); | |
| 2061 | segac2_common_init(prot_func_stkclmns); | |
| 1995 | 2062 | } |
| 1996 | 2063 | |
| 1997 | 2064 | static DRIVER_INIT( stkclmnj ) |
| 1998 | 2065 | { |
| 1999 | static const UINT32 table[256/8] = | |
| 2000 | { | |
| 2001 | 0xcc88cc88, 0xcc88cc88, 0xcc99cc99, 0xcc99cc99, | |
| 2002 | 0x00001111, 0x88889999, 0x00111100, 0x88999988, | |
| 2003 | 0xaaee88cc, 0xeeaacc88, 0xaaff88dd, 0xeebbcc99, | |
| 2004 | 0x66665555, 0xaaaa9999, 0x66775544, 0xaabb9988, | |
| 2005 | 0xeeaaeeaa, 0xeeaaeeaa, 0xeebbeebb, 0xeebbeebb, | |
| 2006 | 0x00001111, 0x88889999, 0x00111100, 0x88999988, | |
| 2007 | 0x00442266, 0x44006622, 0x00552277, 0x44116633, | |
| 2008 | 0xeeeedddd, 0x22221111, 0xeeffddcc, 0x22331100 | |
| 2009 | }; | |
| 2010 | segac2_common_init(table); | |
| 2066 | segac2_common_init(prot_func_stkclmnj); | |
| 2011 | 2067 | } |
| 2012 | 2068 | |
| 2069 | static DRIVER_INIT( ichir ) | |
| 2070 | { | |
| 2071 | segac2_common_init(prot_func_ichir); | |
| 2072 | } | |
| 2013 | 2073 | |
| 2014 | static DRIVER_INIT( | |
| 2074 | static DRIVER_INIT( ichirk | |
| 2015 | 2075 | { |
| 2016 | /* 317-0228 */ | |
| 2017 | static const UINT32 table[256/8] = | |
| 2018 | { | |
| 2019 | 0x03038b8b, 0x03030303, 0xcf4747cf, 0xcf47cf47, | |
| 2020 | 0x03038b8b, 0x21212121, 0xcf4747cf, 0xed65ed65, | |
| 2021 | 0x4141c9c9, 0x41414141, 0x9c05148d, 0x9c059c05, | |
| 2022 | 0x4141c9c9, 0x63636363, 0x9c05148d, 0xbe27be27, | |
| 2023 | 0x5757dfdf, 0x57575757, 0xdf5757df, 0xdf57df57, | |
| 2024 | 0x5757dfdf, 0x75757575, 0xdf5757df, 0xfd75fd75, | |
| 2025 | 0x15159d9d, 0x15151515, 0x8c15049d, 0x8c158c15, | |
| 2026 | 0x15159d9d, 0x37373737, 0x8c15049d, 0xae37ae37 | |
| 2027 | }; | |
| 2028 | segac2_common_init(table); | |
| 2076 | segac2_common_init(prot_func_ichirk); | |
| 2029 | 2077 | } |
| 2030 | 2078 | |
| 2079 | static DRIVER_INIT( ichirj ) | |
| 2080 | { | |
| 2081 | segac2_common_init(prot_func_ichirj); | |
| 2082 | } | |
| 2031 | 2083 | |
| 2032 | static DRIVER_INIT( | |
| 2084 | static DRIVER_INIT( ichirjbl ) | |
| 2033 | 2085 | { |
| 2034 | /* 317-0218 */ | |
| 2035 | static const UINT32 table[256/8] = | |
| 2036 | { | |
| 2037 | 0xb33ba22a, 0xa23bb32a, 0xa22aa22a, 0xb32ab32a, | |
| 2038 | 0xb139a028, 0xa039b128, 0xa028a028, 0xb128b128, | |
| 2039 | 0x3f3f2e2e, 0x2e3f3f2e, 0x2e2e2e2e, 0x3f2e3f2e, | |
| 2040 | 0x3d3d2c2c, 0x2c3d3d2c, 0x2c2c2c2c, 0x3d2c3d2c, | |
| 2041 | 0xdd11ee22, 0xcc11ff22, 0xcc00ee22, 0xdd00ff22, | |
| 2042 | 0xdf13ec20, 0xce13fd20, 0xce02ec20, 0xdf02fd20, | |
| 2043 | 0x51156226, 0x40157326, 0x40046226, 0x51047326, | |
| 2044 | 0x53176024, 0x42177124, 0x42066024, 0x53067124 | |
| 2045 | }; | |
| 2046 | segac2_common_init(table); | |
| 2086 | /* when did this actually work? - the protection is patched but the new check fails? */ | |
| 2087 | UINT16 *rom = (UINT16 *)memory_region(REGION_CPU1); | |
| 2088 | rom[0x390/2] = 0x6600; | |
| 2047 | 2089 | } |
| 2048 | 2090 | |
| 2091 | static DRIVER_INIT( puyopuy2 ) | |
| 2092 | { | |
| 2093 | segac2_common_init(prot_func_puyopuy2); | |
| 2094 | } | |
| 2049 | 2095 | |
| 2050 | 2096 | static DRIVER_INIT( zunkyou ) |
| 2051 | 2097 | { |
| 2052 | static const UINT32 table[256/8] = | |
| 2053 | { | |
| 2054 | 0xa0a06c6c, 0x82820a0a, 0xecec2020, 0xecec6464, | |
| 2055 | 0xa2a26e6e, 0x80800808, 0xaaaa6666, 0xaaaa2222, | |
| 2056 | 0x39287d6c, 0x1b0a1b0a, 0x75643120, 0x75647564, | |
| 2057 | 0x3b2a7f6e, 0x19081908, 0x33227766, 0x33223322, | |
| 2058 | 0xb1b17d7d, 0x93931b1b, 0xfdfd3131, 0xfdfd7575, | |
| 2059 | 0xa2a26e6e, 0x80800808, 0xaaaa6666, 0xaaaa2222, | |
| 2060 | 0x28396c7d, 0x0a1b0a1b, 0x64752031, 0x64756475, | |
| 2061 | 0x3b2a7f6e, 0x19081908, 0x33227766, 0x33223322 | |
| 2062 | }; | |
| 2063 | segac2_common_init(table); | |
| 2098 | segac2_common_init(prot_func_zunkyou); | |
| 2064 | 2099 | } |
| 2065 | 2100 | |
| 2066 | 2101 | |
| 2067 | 2102 | static DRIVER_INIT( pclub ) |
| 2068 | 2103 | { |
| 2069 | static const UINT32 table[256/8] = | |
| 2070 | { | |
| 2071 | 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, | |
| 2072 | 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, | |
| 2073 | 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, | |
| 2074 | 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, | |
| 2075 | 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, | |
| 2076 | 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, | |
| 2077 | 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, | |
| 2078 | 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff | |
| 2079 | }; | |
| 2080 | segac2_common_init(table); | |
| 2104 | segac2_common_init(prot_func_pclub); | |
| 2081 | 2105 | |
| 2082 | 2106 | memory_install_read16_handler(0, ADDRESS_SPACE_PROGRAM, 0x880120, 0x880121, 0, 0, printer_r );/*Print Club Vol.1*/ |
| 2083 | 2107 | memory_install_read16_handler(0, ADDRESS_SPACE_PROGRAM, 0x880124, 0x880125, 0, 0, printer_r );/*Print Club Vol.2*/ |
| r1649 | r1650 | |
| 2086 | 2110 | |
| 2087 | 2111 | static DRIVER_INIT( pclubjv2 ) |
| 2088 | 2112 | { |
| 2089 | static const UINT32 table[256/8] = | |
| 2090 | { | |
| 2091 | 0x5544ffee, 0x4455eeff, 0x5d4cf7e6, 0x5d4cf7e6, | |
| 2092 | 0x5702fda8, 0x4657ecfd, 0x5f0af5a0, 0x5f4ef5e4, | |
| 2093 | 0x115599dd, 0x004488cc, 0x195d91d5, 0x195d91d5, | |
| 2094 | 0x13139b9b, 0x02468ace, 0x1b1b9393, 0x1b5f93d7, | |
| 2095 | 0xcccceeee, 0xddddffff, 0xc4c4e6e6, 0xc4c4e6e6, | |
| 2096 | 0xce8aeca8, 0xdfdffdfd, 0xc682e4a0, 0xc6c6e4e4, | |
| 2097 | 0x99dd99dd, 0x88cc88cc, 0x91d591d5, 0x91d591d5, | |
| 2098 | 0x9b9b9b9b, 0x8ace8ace, 0x93939393, 0x93d793d7 | |
| 2099 | }; | |
| 2100 | segac2_common_init(table); | |
| 2113 | segac2_common_init(prot_func_pclubjv2); | |
| 2101 | 2114 | |
| 2102 | 2115 | memory_install_read16_handler(0, ADDRESS_SPACE_PROGRAM, 0x880120, 0x880121, 0, 0, printer_r );/*Print Club Vol.1*/ |
| 2103 | 2116 | memory_install_read16_handler(0, ADDRESS_SPACE_PROGRAM, 0x880124, 0x880125, 0, 0, printer_r );/*Print Club Vol.2*/ |
| r1649 | r1650 | |
| 2106 | 2119 | |
| 2107 | 2120 | static DRIVER_INIT( pclubjv4 ) |
| 2108 | 2121 | { |
| 2109 | static const UINT32 table[256/8] = | |
| 2110 | { | |
| 2111 | 0x62736273, 0x40404040, 0x51404051, 0x15150404, | |
| 2112 | 0xe8f9e8f9, 0xcacacaca, 0xdbcacadb, 0x9f9f8e8e, | |
| 2113 | 0x62626262, 0x40404040, 0x51514040, 0x15150404, | |
| 2114 | 0xeaeaeaea, 0xc8c8c8c8, 0xd9d9c8c8, 0x9d9d8c8c, | |
| 2115 | 0xea73ea73, 0xc840c840, 0xd940c851, 0x9d158c04, | |
| 2116 | 0xe871e871, 0xca42ca42, 0xdb42ca53, 0x9f178e06, | |
| 2117 | 0xea62ea62, 0xc840c840, 0xd951c840, 0x9d158c04, | |
| 2118 | 0xea62ea62, 0xc840c840, 0xd951c840, 0x9d158c04 | |
| 2119 | }; | |
| 2120 | segac2_common_init(table); | |
| 2122 | segac2_common_init(prot_func_pclubjv4); | |
| 2121 | 2123 | |
| 2122 | 2124 | memory_install_read16_handler(0, ADDRESS_SPACE_PROGRAM, 0x880120, 0x880121, 0, 0, printer_r );/*Print Club Vol.1*/ |
| 2123 | 2125 | memory_install_read16_handler(0, ADDRESS_SPACE_PROGRAM, 0x880124, 0x880125, 0, 0, printer_r );/*Print Club Vol.2*/ |
| r1649 | r1650 | |
| 2126 | 2128 | |
| 2127 | 2129 | static DRIVER_INIT( pclubjv5 ) |
| 2128 | 2130 | { |
| 2129 | static const UINT32 table[256/8] = | |
| 2130 | { | |
| 2131 | 0xff77ee66, 0xdd55cc44, 0xdb53ca42, 0xf971e860, | |
| 2132 | 0x66777766, 0x44555544, 0x42535342, 0x60717160, | |
| 2133 | 0x66eeee66, 0x44cccc44, 0x42caca42, 0x60e8e860, | |
| 2134 | 0xffee7766, 0xddcc5544, 0xdbca5342, 0xf9e87160, | |
| 2135 | 0x99118800, 0xdd55cc44, 0xbd35ac24, 0xf971e860, | |
| 2136 | 0x00111100, 0x44555544, 0x24353524, 0x60717160, | |
| 2137 | 0x00888800, 0x44cccc44, 0x24acac24, 0x60e8e860, | |
| 2138 | 0x99881100, 0xddcc5544, 0xbdac3524, 0xf9e87160 | |
| 2139 | }; | |
| 2140 | segac2_common_init(table); | |
| 2131 | segac2_common_init(prot_func_pclubjv5); | |
| 2141 | 2132 | |
| 2142 | 2133 | memory_install_read16_handler(0, ADDRESS_SPACE_PROGRAM, 0x880120, 0x880121, 0, 0, printer_r );/*Print Club Vol.1*/ |
| 2143 | 2134 | memory_install_read16_handler(0, ADDRESS_SPACE_PROGRAM, 0x880124, 0x880125, 0, 0, printer_r );/*Print Club Vol.2*/ |
| r1649 | r1650 | |
| 2173 | 2164 | GAME( 1990, column2j, columns2, segac, columns2, columns2, ROT0, "Sega", "Columns II: The Voyage Through Time (Japan)", 0 ) |
| 2174 | 2165 | |
| 2175 | 2166 | /* System C-2 Games */ |
| 2176 | GAME( 1990, borench, 0, segac2, borench, borench, ROT0, "Sega", "Borench", 0 ) | |
| 2177 | 2167 | GAME( 1990, tfrceac, 0, segac2, tfrceac, tfrceac, ROT0, "Sega / Technosoft", "ThunderForce AC", 0 ) |
| 2178 | 2168 | GAME( 1990, tfrceacj, tfrceac, segac2, tfrceac, tfrceac, ROT0, "Sega / Technosoft", "ThunderForce AC (Japan)", 0 ) |
| 2179 | 2169 | GAME( 1990, tfrceacb, tfrceac, segac2, tfrceac, tfrceacb, ROT0, "bootleg", "ThunderForce AC (bootleg)", 0 ) |
| 2170 | GAME( 1990, borench, 0, segac2, borench, borench, ROT0, "Sega", "Borench", 0 ) | |
| 2180 | 2171 | GAME( 1991, twinsqua, 0, segac2, twinsqua, twinsqua, ROT0, "Sega", "Twin Squash", 0 ) |
| 2181 | 2172 | GAME( 1991, ribbit, 0, segac2, ribbit, ribbit, ROT0, "Sega", "Ribbit!", 0 ) |
| 2173 | GAME( 1992, puyo, 0, segac2, puyo, puyo, ROT0, "Sega / Compile", "Puyo Puyo (World)", 0 ) | |
| 2174 | GAME( 1992, puyobl, puyo, segac2, puyo, puyo, ROT0, "bootleg", "Puyo Puyo (World, bootleg)", 0 ) | |
| 2175 | GAME( 1992, puyoj, puyo, segac2, puyo, puyo, ROT0, "Sega / Compile", "Puyo Puyo (Japan)", 0 ) | |
| 2176 | GAME( 1992, puyoja, puyo, segac2, puyo, puyo, ROT0, "Sega / Compile", "Puyo Puyo (Japan, Rev A)", 0 ) | |
| 2182 | 2177 | GAME( 1992, tantr, 0, segac2, ichir, tantr, ROT0, "Sega", "Puzzle & Action: Tant-R (Japan)", 0 ) |
| 2183 | 2178 | GAME( 1993, tantrkor, tantr, segac2, ichir, tantrkor, ROT0, "Sega", "Puzzle & Action: Tant-R (Korea)", 0 ) |
| 2184 | 2179 | GAME( 1992, tantrbl, tantr, segac2, ichir, c2boot, ROT0, "bootleg", "Puzzle & Action: Tant-R (Japan) (bootleg set 1)", 0 ) |
| 2185 | 2180 | GAME( 1994, tantrbl2, tantr, segac, ichir, tantr, ROT0, "bootleg", "Puzzle & Action: Tant-R (Japan) (bootleg set 2)", 0 ) // Common bootleg in Europe, C board, no samples |
| 2186 | 2181 | GAME( 1994, tantrbl3, tantr, segac, ichir, tantr, ROT0, "bootleg", "Puzzle & Action: Tant-R (Japan) (bootleg set 3)", 0 ) // Common bootleg in Europe, C board, no samples |
| 2187 | GAME( 1992, puyo, 0, segac2, puyo, puyo, ROT0, "Sega / Compile", "Puyo Puyo (World)", 0 ) | |
| 2188 | GAME( 1992, puyobl, puyo, segac2, puyo, puyo, ROT0, "bootleg", "Puyo Puyo (World, bootleg)", 0 ) | |
| 2189 | GAME( 1992, puyoj, puyo, segac2, puyo, puyo, ROT0, "Sega / Compile", "Puyo Puyo (Japan)", 0 ) | |
| 2190 | GAME( 1992, puyoja, puyo, segac2, puyo, puyo, ROT0, "Sega / Compile", "Puyo Puyo (Japan, Rev A)", 0 ) | |
| 2182 | GAME( 1994, potopoto, 0, segac2, potopoto, potopoto, ROT0, "Sega", "Poto Poto (Japan)", 0 ) | |
| 2183 | GAME( 1994, stkclmns, 0, segac2, stkclmns, stkclmns, ROT0, "Sega", "Stack Columns (World)", 0 ) | |
| 2184 | GAME( 1994, stkclmnj, stkclmns, segac2, stkclmns, stkclmnj, ROT0, "Sega", "Stack Columns (Japan)", 0 ) | |
| 2191 | 2185 | GAME( 1994, ichir, 0, segac2, ichir, ichir, ROT0, "Sega", "Puzzle & Action: Ichidant-R (World)", 0 ) |
| 2192 | 2186 | GAME( 1994, ichirk, ichir, segac2, ichir, ichirk, ROT0, "Sega", "Puzzle & Action: Ichidant-R (Korea)", 0 ) |
| 2193 | 2187 | GAME( 1994, ichirj, ichir, segac2, ichir, ichirj, ROT0, "Sega", "Puzzle & Action: Ichidant-R (Japan)", 0 ) |
| 2194 | 2188 | GAME( 1994, ichirjbl, ichir, segac, ichir, ichirjbl, ROT0, "bootleg", "Puzzle & Action: Ichidant-R (Japan) (bootleg)", 0 ) // C board, no samples |
| 2195 | GAME( 1994, stkclmns, 0, segac2, stkclmns, stkclmns, ROT0, "Sega", "Stack Columns (World)", 0 ) | |
| 2196 | GAME( 1994, stkclmnj, stkclmns, segac2, stkclmns, stkclmnj, ROT0, "Sega", "Stack Columns (Japan)", 0 ) | |
| 2197 | 2189 | GAME( 1994, puyopuy2, 0, segac2, puyopuy2, puyopuy2, ROT0, "Compile (Sega license)", "Puyo Puyo 2 (Japan)", 0 ) |
| 2198 | GAME( 1994, potopoto, 0, segac2, potopoto, potopoto, ROT0, "Sega", "Poto Poto (Japan)", 0 ) | |
| 2199 | 2190 | GAME( 1994, zunkyou, 0, segac2, zunkyou, zunkyou, ROT0, "Sega", "Zunzunkyou No Yabou (Japan)", 0 ) |
| 2200 | 2191 | |
| 2201 | 2192 | /* Atlus Print Club 'Games' (C-2 Hardware, might not be possible to support them because they use camera + printer, really just put here for reference) */ |
| r1649 | r1650 | |
|---|---|---|
| 58 | 58 | ***************************************************************************/ |
| 59 | 59 | |
| 60 | 60 | #include "driver.h" |
| 61 | #include "deprecat.h" | |
| 61 | 62 | #include "sound/2151intf.h" |
| 62 | 63 | #include "sound/okim6295.h" |
| 63 | 64 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "includes/starshp1.h" |
| 12 | 13 | |
| 13 | 14 | int starshp1_attract; |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | ***************************************************************************/ |
| 15 | 15 | |
| 16 | 16 | #include "driver.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | #include "cpu/m6809/m6809.h" |
| 18 | 19 | #include "cpu/z80/z80.h" |
| 19 | 20 | #include "cpu/i8039/i8039.h" |
| r1649 | r1650 | |
|---|---|---|
| 289 | 289 | ***************************************************************************/ |
| 290 | 290 | |
| 291 | 291 | #include "driver.h" |
| 292 | #include "deprecat.h" | |
| 292 | 293 | #include "cpu/m68000/m68000.h" |
| 293 | 294 | #include "video/taitoic.h" |
| 294 | 295 | #include "audio/taitosnd.h" |
| r1649 | r1650 | |
|---|---|---|
| 66 | 66 | ***************************************************************************/ |
| 67 | 67 | |
| 68 | 68 | #include "driver.h" |
| 69 | #include "deprecat.h" | |
| 69 | 70 | #include "sound/sn76496.h" |
| 70 | 71 | |
| 71 | 72 | |
| r1649 | r1650 | |
| 83 | 84 | extern VIDEO_UPDATE( gberetb ); |
| 84 | 85 | |
| 85 | 86 | |
| 86 | static | |
| 87 | static UINT8 nmi_enable | |
| 87 | 88 | |
| 88 | 89 | |
| 90 | /* Interrupt Generators */ | |
| 91 | ||
| 92 | static INTERRUPT_GEN( gberet_interrupt ) | |
| 93 | { | |
| 94 | if (cpu_getiloops() == 0) | |
| 95 | { | |
| 96 | if (irq_enable) | |
| 97 | cpunum_set_input_line(machine, 0, 0, HOLD_LINE); | |
| 98 | } | |
| 99 | ||
| 100 | if (cpu_getiloops() % 2) | |
| 101 | { | |
| 102 | if (nmi_enable) | |
| 103 | cpunum_set_input_line(machine, 0, INPUT_LINE_NMI, PULSE_LINE); | |
| 104 | } | |
| 105 | } | |
| 106 | ||
| 107 | ||
| 89 | 108 | /* Read/Write Handlers */ |
| 90 | 109 | |
| 91 | 110 | static WRITE8_HANDLER( gberet_coin_counter_w ) |
| r1649 | r1650 | |
| 97 | 116 | |
| 98 | 117 | static WRITE8_HANDLER( gberet_flipscreen_w ) |
| 99 | 118 | { |
| 100 | enable_NMI = data & 0x01; | |
| 101 | enable_IRQ = data & 0x04; | |
| 119 | nmi_enable = data & 0x01; | |
| 120 | irq_enable = data & 0x04; | |
| 102 | 121 | |
| 103 | 122 | flip_screen_set(data & 0x08); |
| 104 | 123 | } |
| r1649 | r1650 | |
| 118 | 137 | |
| 119 | 138 | static WRITE8_HANDLER( mrgoemon_flipscreen_w ) |
| 120 | 139 | { |
| 121 | enable_NMI = data & 0x01; | |
| 122 | enable_IRQ = data & 0x02; | |
| 140 | nmi_enable = data & 0x01; | |
| 141 | irq_enable = data & 0x02; | |
| 123 | 142 | |
| 124 | 143 | flip_screen_set(data & 0x08); |
| 125 | 144 | } |
| r1649 | r1650 | |
| 527 | 546 | GFXDECODE_ENTRY( REGION_GFX2, 0, gberetb_spritelayout, 16*16, 16 ) |
| 528 | 547 | GFXDECODE_END |
| 529 | 548 | |
| 530 | /* Interrupt Generators */ | |
| 531 | ||
| 532 | static INTERRUPT_GEN( gberet_interrupt ) | |
| 533 | { | |
| 534 | if (cpu_getiloops() == 0) | |
| 535 | { | |
| 536 | if (enable_IRQ) | |
| 537 | cpunum_set_input_line(machine, 0, 0, HOLD_LINE); | |
| 538 | } | |
| 539 | ||
| 540 | if (cpu_getiloops() % 2) | |
| 541 | { | |
| 542 | if (enable_NMI) | |
| 543 | cpunum_set_input_line(machine, 0, INPUT_LINE_NMI, PULSE_LINE); | |
| 544 | } | |
| 545 | } | |
| 546 | ||
| 547 | 549 | /* Machine Drivers */ |
| 548 | 550 | |
| 549 | 551 | static MACHINE_DRIVER_START( gberet ) |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "machine/eeprom.h" |
| 9 | 10 | #include "includes/kaneko16.h" |
| 10 | 11 | #include "sound/2203intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 40 | 40 | |
| 41 | 41 | |
| 42 | 42 | #include "driver.h" |
| 43 | #include " | |
| 43 | #include " | |
| 44 | 44 | #include "machine/laserdsc.h" |
| 45 | 45 | |
| 46 | 46 | /* Assumed to be the same as segald hardware */ |
| r1649 | r1650 | |
|---|---|---|
| 65 | 65 | ***************************************************************************/ |
| 66 | 66 | |
| 67 | 67 | #include "driver.h" |
| 68 | #include "deprecat.h" | |
| 68 | 69 | #include "cpu/m6800/m6800.h" |
| 69 | 70 | #include "cpu/m6805/m6805.h" |
| 70 | 71 | #include "cpu/m6809/m6809.h" |
| r1649 | r1650 | |
|---|---|---|
| 53 | 53 | *******************************************************************************************/ |
| 54 | 54 | |
| 55 | 55 | #include "driver.h" |
| 56 | #include "deprecat.h" | |
| 56 | 57 | #include "sound/okim6295.h" |
| 57 | 58 | |
| 58 | 59 | static tilemap *tx_tilemap,*bg_tilemap; |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | ***************************************************************************/ |
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | #include "deprecat.h" | |
| 13 | 14 | #include "video/konamiic.h" |
| 14 | 15 | #include "cpu/z80/z80.h" |
| 15 | 16 | #include "machine/eeprom.h" |
| r1649 | r1650 | |
|---|---|---|
| 99 | 99 | |
| 100 | 100 | |
| 101 | 101 | #include "driver.h" |
| 102 | #include "deprecat.h" | |
| 102 | 103 | #include "cpu/z80/z80.h" |
| 103 | 104 | #include "cpu/m6805/m6805.h" |
| 104 | 105 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
|---|---|---|
| 217 | 217 | ***************************************************************************/ |
| 218 | 218 | |
| 219 | 219 | #include "driver.h" |
| 220 | #include "deprecat.h" | |
| 220 | 221 | #include "cpu/m6809/m6809.h" |
| 221 | 222 | #include "cpu/upd7810/upd7810.h" |
| 222 | 223 | #include "homedata.h" |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | *****************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "sound/2203intf.h" |
| 13 | 14 | |
| 14 | 15 | VIDEO_UPDATE( xxmissio ); |
| r1649 | r1650 | |
|---|---|---|
| 40 | 40 | */ |
| 41 | 41 | |
| 42 | 42 | #include "driver.h" |
| 43 | #include "deprecat.h" | |
| 43 | 44 | #include "sound/2151intf.h" |
| 44 | 45 | #include "sound/okim6295.h" |
| 45 | 46 |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | ***************************************************************************/ |
| 14 | 14 | |
| 15 | 15 | #include "driver.h" |
| 16 | #include "deprecat.h" | |
| 16 | 17 | #include "cpu/m6502/m6502.h" |
| 17 | 18 | #include "sound/2203intf.h" |
| 18 | 19 | #include "sound/3812intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 458 | 458 | |
| 459 | 459 | #define MASTER_CLOCK 50000000 |
| 460 | 460 | #include "driver.h" |
| 461 | #include "deprecat.h" | |
| 461 | 462 | #include "cpu/mips/mips3.h" |
| 462 | 463 | |
| 463 | 464 | static UINT32 *rombase; |
| r1649 | r1650 | |
|---|---|---|
| 6 | 6 | |
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | #include "driver.h" |
| 9 | #include "deprecat.h" | |
| 9 | 10 | #include "cpu/z80/z80.h" |
| 10 | 11 | #include "sound/ay8910.h" |
| 11 | 12 |
| r1649 | r1650 | |
|---|---|---|
| 38 | 38 | ******************************************************************************/ |
| 39 | 39 | |
| 40 | 40 | #include "driver.h" |
| 41 | #include "deprecat.h" | |
| 41 | 42 | #include "sound/es5506.h" |
| 42 | 43 | |
| 43 | 44 | /*** README INFO ************************************************************** |
| r1649 | r1650 | |
|---|---|---|
| 182 | 182 | ***************************************************************************/ |
| 183 | 183 | |
| 184 | 184 | #include "driver.h" |
| 185 | #include "deprecat.h" | |
| 185 | 186 | #include "machine/tait8741.h" |
| 186 | 187 | #include "cpu/z80/z80.h" |
| 187 | 188 | #include "sound/2203intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 74 | 74 | ***************************************************************************/ |
| 75 | 75 | |
| 76 | 76 | #include "driver.h" |
| 77 | #include "deprecat.h" | |
| 77 | 78 | #include "cpu/z80/z80.h" |
| 78 | 79 | #include "machine/8255ppi.h" |
| 79 | 80 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
|---|---|---|
| 42 | 42 | ***************************************************************************/ |
| 43 | 43 | |
| 44 | 44 | #include "driver.h" |
| 45 | #include "deprecat.h" | |
| 45 | 46 | #include "video/konamiic.h" |
| 46 | 47 | #include "cpu/m68000/m68000.h" |
| 47 | 48 | #include "cpu/z80/z80.h" |
| r1649 | r1650 | |
|---|---|---|
| 102 | 102 | |
| 103 | 103 | ***************************************************************************/ |
| 104 | 104 | #include "driver.h" |
| 105 | #include "deprecat.h" | |
| 105 | 106 | #include "sound/samples.h" |
| 106 | 107 | |
| 107 | 108 | #include "skychut.h" |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | ||
| 11 | ||
| 12 | 12 | |
| 13 | 13 | static READ16_HANDLER( unknown_read_0xc00000 ) |
| 14 | 14 | { |
| r1649 | r1650 | |
|---|---|---|
| 44 | 44 | |
| 45 | 45 | |
| 46 | 46 | #include "driver.h" |
| 47 | #include "deprecat.h" | |
| 47 | 48 | #include "cpu/z80/z80.h" |
| 48 | 49 | #include "audio/taitosnd.h" |
| 49 | 50 | #include "sound/2203intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 331 | 331 | |
| 332 | 332 | |
| 333 | 333 | static GFXDECODE_START( gyruss ) |
| 334 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, charlayout, 0, 16 ) | |
| 335 | GFXDECODE_ENTRY( REGION_GFX2, 0x0000, spritelayout, 16*4, 16 ) /* upper half */ | |
| 336 | GFXDECODE_ENTRY( REGION_GFX2, 0x0010, spritelayout, 16*4, 16 ) /* lower half */ | |
| 334 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, spritelayout, 0, 16 ) /* upper half */ | |
| 335 | GFXDECODE_ENTRY( REGION_GFX1, 0x0010, spritelayout, 0, 16 ) /* lower half */ | |
| 336 | GFXDECODE_ENTRY( REGION_GFX2, 0x0000, charlayout, 16*16, 16 ) | |
| 337 | 337 | GFXDECODE_END |
| 338 | 338 | |
| 339 | 339 | |
| r1649 | r1650 | |
| 391 | 391 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 392 | 392 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 393 | 393 | MDRV_GFXDECODE(gyruss) |
| 394 | MDRV_PALETTE_LENGTH(32) | |
| 395 | MDRV_COLORTABLE_LENGTH(16*4+16*16) | |
| 394 | MDRV_PALETTE_LENGTH(16*4+16*16) | |
| 396 | 395 | |
| 397 | 396 | MDRV_PALETTE_INIT(gyruss) |
| 398 | 397 | MDRV_VIDEO_START(gyruss) |
| r1649 | r1650 | |
| 467 | 466 | ROM_REGION( 0x1000, REGION_CPU4, 0 ) /* 8039 */ |
| 468 | 467 | ROM_LOAD( "gyrussk.3a", 0x0000, 0x1000, CRC(3f9b5dea) SHA1(6e807da02c2885b18e8cc2199f12f6be9040bf75) ) |
| 469 | 468 | |
| 470 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 471 | ROM_LOAD( "gyrussk.4", 0x0000, 0x2000, CRC(27d8329b) SHA1(564ff945465a23d93a93137ad277298770dfa06a) ) | |
| 472 | ||
| 473 | ROM_REGION( 0x8000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 469 | ROM_REGION( 0x8000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 474 | 470 | ROM_LOAD( "gyrussk.6", 0x0000, 0x2000, CRC(c949db10) SHA1(fcb8bcbd2bdd751fecb322a33c8a92fb6f07a7ab) ) |
| 475 | 471 | ROM_LOAD( "gyrussk.5", 0x2000, 0x2000, CRC(4f22411a) SHA1(763bcd039f8c1838a0d7da7d4dadc14a26e25596) ) |
| 476 | 472 | ROM_LOAD( "gyrussk.8", 0x4000, 0x2000, CRC(47cd1fbc) SHA1(8203c4ff0b1cd7b4dbc708e300bfeac1e7366e09) ) |
| 477 | 473 | ROM_LOAD( "gyrussk.7", 0x6000, 0x2000, CRC(8e8d388c) SHA1(8f2928d71c02aba977d67575d6e34d69bda2b9d4) ) |
| 478 | 474 | |
| 475 | ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 476 | ROM_LOAD( "gyrussk.4", 0x0000, 0x2000, CRC(27d8329b) SHA1(564ff945465a23d93a93137ad277298770dfa06a) ) | |
| 477 | ||
| 479 | 478 | ROM_REGION( 0x0220, REGION_PROMS, 0 ) |
| 480 | 479 | ROM_LOAD( "gyrussk.pr3", 0x0000, 0x0020, CRC(98782db3) SHA1(b891e43b25187faca8002919ccb44d744daa3594) ) /* palette */ |
| 481 | 480 | ROM_LOAD( "gyrussk.pr1", 0x0020, 0x0100, CRC(7ed057de) SHA1(c04069ae1e2c62f9b3048844cd8cf5e1b03b7d3c) ) /* sprite lookup table */ |
| r1649 | r1650 | |
| 500 | 499 | ROM_REGION( 0x1000, REGION_CPU4, 0 ) /* 8039 */ |
| 501 | 500 | ROM_LOAD( "gyrussk.3a", 0x0000, 0x1000, CRC(3f9b5dea) SHA1(6e807da02c2885b18e8cc2199f12f6be9040bf75) ) |
| 502 | 501 | |
| 503 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 504 | ROM_LOAD( "gyrussk.4", 0x0000, 0x2000, CRC(27d8329b) SHA1(564ff945465a23d93a93137ad277298770dfa06a) ) | |
| 505 | ||
| 506 | ROM_REGION( 0x8000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 502 | ROM_REGION( 0x8000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 507 | 503 | ROM_LOAD( "gyrussk.6", 0x0000, 0x2000, CRC(c949db10) SHA1(fcb8bcbd2bdd751fecb322a33c8a92fb6f07a7ab) ) |
| 508 | 504 | ROM_LOAD( "gyrussk.5", 0x2000, 0x2000, CRC(4f22411a) SHA1(763bcd039f8c1838a0d7da7d4dadc14a26e25596) ) |
| 509 | 505 | ROM_LOAD( "gyrussk.8", 0x4000, 0x2000, CRC(47cd1fbc) SHA1(8203c4ff0b1cd7b4dbc708e300bfeac1e7366e09) ) |
| 510 | 506 | ROM_LOAD( "gyrussk.7", 0x6000, 0x2000, CRC(8e8d388c) SHA1(8f2928d71c02aba977d67575d6e34d69bda2b9d4) ) |
| 511 | 507 | |
| 508 | ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 509 | ROM_LOAD( "gyrussk.4", 0x0000, 0x2000, CRC(27d8329b) SHA1(564ff945465a23d93a93137ad277298770dfa06a) ) | |
| 510 | ||
| 512 | 511 | ROM_REGION( 0x0220, REGION_PROMS, 0 ) |
| 513 | 512 | ROM_LOAD( "gyrussk.pr3", 0x0000, 0x0020, CRC(98782db3) SHA1(b891e43b25187faca8002919ccb44d744daa3594) ) /* palette */ |
| 514 | 513 | ROM_LOAD( "gyrussk.pr1", 0x0020, 0x0100, CRC(7ed057de) SHA1(c04069ae1e2c62f9b3048844cd8cf5e1b03b7d3c) ) /* sprite lookup table */ |
| r1649 | r1650 | |
| 533 | 532 | ROM_REGION( 0x1000, REGION_CPU4, 0 ) /* 8039 */ |
| 534 | 533 | ROM_LOAD( "gyrussk.3a", 0x0000, 0x1000, CRC(3f9b5dea) SHA1(6e807da02c2885b18e8cc2199f12f6be9040bf75) ) |
| 535 | 534 | |
| 536 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 537 | ROM_LOAD( "gyrussk.4", 0x0000, 0x2000, CRC(27d8329b) SHA1(564ff945465a23d93a93137ad277298770dfa06a) ) | |
| 538 | ||
| 539 | ROM_REGION( 0x8000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 535 | ROM_REGION( 0x8000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 540 | 536 | ROM_LOAD( "gyrussk.6", 0x0000, 0x2000, CRC(c949db10) SHA1(fcb8bcbd2bdd751fecb322a33c8a92fb6f07a7ab) ) |
| 541 | 537 | ROM_LOAD( "gyrussk.5", 0x2000, 0x2000, CRC(4f22411a) SHA1(763bcd039f8c1838a0d7da7d4dadc14a26e25596) ) |
| 542 | 538 | ROM_LOAD( "gyrussk.8", 0x4000, 0x2000, CRC(47cd1fbc) SHA1(8203c4ff0b1cd7b4dbc708e300bfeac1e7366e09) ) |
| 543 | 539 | ROM_LOAD( "gyrussk.7", 0x6000, 0x2000, CRC(8e8d388c) SHA1(8f2928d71c02aba977d67575d6e34d69bda2b9d4) ) |
| 544 | 540 | |
| 541 | ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 542 | ROM_LOAD( "gyrussk.4", 0x0000, 0x2000, CRC(27d8329b) SHA1(564ff945465a23d93a93137ad277298770dfa06a) ) | |
| 543 | ||
| 545 | 544 | ROM_REGION( 0x0220, REGION_PROMS, 0 ) |
| 546 | 545 | ROM_LOAD( "gyrussk.pr3", 0x0000, 0x0020, CRC(98782db3) SHA1(b891e43b25187faca8002919ccb44d744daa3594) ) /* palette */ |
| 547 | 546 | ROM_LOAD( "gyrussk.pr1", 0x0020, 0x0100, CRC(7ed057de) SHA1(c04069ae1e2c62f9b3048844cd8cf5e1b03b7d3c) ) /* sprite lookup table */ |
| r1649 | r1650 | |
|---|---|---|
| 63 | 63 | ***************************************************************************/ |
| 64 | 64 | |
| 65 | 65 | #include "driver.h" |
| 66 | #include "deprecat.h" | |
| 66 | 67 | #include "cpu/m68000/m68000.h" |
| 67 | 68 | #include "video/taitoic.h" |
| 68 | 69 | #include "machine/eeprom.h" |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | ***************************************************************************/ |
| 13 | 13 | |
| 14 | 14 | #include "driver.h" |
| 15 | #include "deprecat.h" | |
| 15 | 16 | #include "cpu/hd6309/hd6309.h" |
| 16 | 17 | #include "video/konamiic.h" |
| 17 | 18 | #include "sound/k007232.h" |
| r1649 | r1650 | |
| 111 | 112 | AM_RANGE(0x0d00, 0x0d0d) AM_WRITE(fastlane_K007232_write_port_0_w) /* 007232 registers (chip 1) */ |
| 112 | 113 | AM_RANGE(0x0e00, 0x0e0d) AM_WRITE(fastlane_K007232_write_port_1_w) /* 007232 registers (chip 2) */ |
| 113 | 114 | AM_RANGE(0x0f00, 0x0f1f) AM_WRITE(K051733_w) /* 051733 (protection) */ |
| 114 | AM_RANGE(0x1000, 0x17ff) AM_WRITE( | |
| 115 | AM_RANGE(0x1000, 0x17ff) AM_WRITE(MWA8 | |
| 115 | 116 | AM_RANGE(0x1800, 0x1fff) AM_WRITE(MWA8_RAM) /* Work RAM */ |
| 116 | 117 | AM_RANGE(0x2000, 0x27ff) AM_WRITE(fastlane_vram1_w) AM_BASE(&fastlane_videoram1) |
| 117 | 118 | AM_RANGE(0x2800, 0x2fff) AM_WRITE(fastlane_vram2_w) AM_BASE(&fastlane_videoram2) |
| r1649 | r1650 | |
| 289 | 290 | MDRV_SCREEN_SIZE(37*8, 32*8) |
| 290 | 291 | MDRV_SCREEN_VISIBLE_AREA(0*8, 35*8-1, 2*8, 30*8-1) |
| 291 | 292 | MDRV_GFXDECODE(fastlane) |
| 292 | MDRV_PALETTE_LENGTH(1024) | |
| 293 | MDRV_COLORTABLE_LENGTH(1024*16) | |
| 293 | MDRV_PALETTE_LENGTH(1024*16) | |
| 294 | 294 | |
| 295 | 295 | MDRV_PALETTE_INIT(fastlane) |
| 296 | 296 | MDRV_VIDEO_START(fastlane) |
| r1649 | r1650 | |
|---|---|---|
| 40 | 40 | |
| 41 | 41 | #include "driver.h" |
| 42 | 42 | #include "memconv.h" |
| 43 | #include "deprecat.h" | |
| 43 | 44 | #include "machine/8237dma.h" |
| 44 | 45 | #include "machine/pic8259.h" |
| 45 | 46 | #include "machine/pit8253.h" |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | |
| 14 | 14 | **************************************************************************** |
| 15 | 15 | |
| 16 | Memory map | |
| 16 | 0000-0fff tvg75 | |
| 17 | 1000-1fff tvg76 | |
| 18 | 2000-2fff tvg77 | |
| 19 | 3000-3fff tvg78 | |
| 20 | 4000-4fff tvg79 | |
| 21 | 5000-5fff tvg80 | |
| 22 | 8000-bfff VIDEO RAM (four banks) | |
| 23 | c000-cfff tvg83/84 (banked) | |
| 24 | d000-dfff tvg85/86 (banked) | |
| 25 | e000-e3ff RAM | |
| 17 | 26 | |
| 18 | **************************************************************************** | |
| 19 | 27 | |
| 20 | ======================================================================== | |
| 21 | CPU #1 | |
| 22 | ======================================================================== | |
| 23 | 0000-7FFF R xxxxxxxx Program ROM | |
| 24 | 8000-BFFF R/W xxxxxxxx Bitmap RAM | |
| 25 | C000 R ----xxxx Coin inputs | |
| 26 | C200 R ----xxxx Option switches | |
| 27 | D000-DFFF R/W xxxxxxxx Custom microprocessor RAM | |
| 28 | E000 W ----xxxx BSEL Bank select | |
| 29 | E001 W xxxxxxxx DMA ROM start address low | |
| 30 | E002 W xxxxxxxx DMA ROM start address high | |
| 31 | E003 W xxxxxxxx DMA RAM start address low | |
| 32 | E004 W xxxxxxxx DMA RAM start address high | |
| 33 | E005 W xxxxxxxx Picture size/DMA start low | |
| 34 | E006 W xxxxxxxx Picture size/DMA start high | |
| 35 | ======================================================================== | |
| 36 | C800 W xxxxxxxx Sound chip address | |
| 37 | CA00 R/W xxxxxxxx Sound chip data | |
| 38 | ======================================================================== | |
| 39 | Interrupts: | |
| 40 | NMI not connected | |
| 41 | IRQ generated by VBLANK | |
| 42 | ======================================================================== | |
| 28 | memory mapped ports: | |
| 29 | read: | |
| 30 | e400 DSW 0 | |
| 31 | ec00 IN 0 | |
| 32 | ed00 IN 1 | |
| 33 | ee00 IN 2 | |
| 34 | efxx (4 bits wide) security chip in. It seems to work like a clock. | |
| 43 | 35 | |
| 36 | write: | |
| 37 | e800-e801 low/high byte start address of data in picture ROM for DMA | |
| 38 | e802-e803 low/high byte start address in bitmap RAM (where picture is to be | |
| 39 | written) during DMA | |
| 40 | e804-e805 picture size for DMA, and DMA start | |
| 41 | e806 vertical scroll of playfield | |
| 42 | e807 horizontal scroll of playfield | |
| 43 | e808 bank select latch | |
| 44 | e809 A & B bitmap control latch (A=playfield B=motion) | |
| 45 | bit 5 FLIP A | |
| 46 | bit 4 FLIP B | |
| 47 | bit 3 EN A | |
| 48 | bit 2 EN B | |
| 49 | bit 1 PRI A | |
| 50 | bit 0 PRI B | |
| 51 | e80a color shading latch | |
| 52 | ec00 command to sound CPU | |
| 53 | ed00 coin counters | |
| 54 | efxx (4 bits wide) security chip out | |
| 55 | ||
| 56 | --------------------------------------------------------------------------- | |
| 57 | CPU #1 (sound) | |
| 58 | ||
| 59 | 0000 0fff tvg81 | |
| 60 | 4000 43ff RAM | |
| 61 | 6000 command from main CPU | |
| 62 | ||
| 63 | I/O ports: | |
| 64 | 7000 AY-3-8910 write | |
| 65 | 8000 AY-3-8910 control | |
| 66 | --------------------------------------------------------------------------- | |
| 67 | ||
| 68 | interrupts: | |
| 69 | (CPU#0) standard IM 1 interrupt mode (rst #38 every vblank) | |
| 70 | (CPU#1) same here | |
| 71 | ||
| 44 | 72 | **************************************************************************** |
| 45 | 73 | |
| 46 | 74 | In test mode, to test sound press 1 and 2 player start simultaneously. |
| r1649 | r1650 | |
| 55 | 83 | |
| 56 | 84 | ***************************************************************************/ |
| 57 | 85 | |
| 58 | /* | |
| 59 | CPU #0 | |
| 86 | #include "driver.h" | |
| 87 | #include "kangaroo.h" | |
| 88 | #include "cpu/z80/z80.h" | |
| 89 | #include "sound/ay8910.h" | |
| 60 | 90 | |
| 61 | 0000-0fff tvg75 | |
| 62 | 1000-1fff tvg76 | |
| 63 | 2000-2fff tvg77 | |
| 64 | 3000-3fff tvg78 | |
| 65 | 4000-4fff tvg79 | |
| 66 | 5000-5fff tvg80 | |
| 67 | 8000-bfff VIDEO RAM (four banks) | |
| 68 | c000-cfff tvg83/84 (banked) | |
| 69 | d000-dfff tvg85/86 (banked) | |
| 70 | e000-e3ff RAM | |
| 71 | 91 | |
| 92 | #define MASTER_CLOCK XTAL_10MHz | |
| 72 | 93 | |
| 73 | memory mapped ports: | |
| 74 | read: | |
| 75 | e400 DSW 0 | |
| 76 | ec00 IN 0 | |
| 77 | ed00 IN 1 | |
| 78 | ee00 IN 2 | |
| 79 | efxx (4 bits wide) security chip in. It seems to work like a clock. | |
| 80 | 94 | |
| 81 | write: | |
| 82 | e800-e801 low/high byte start address of data in picture ROM for DMA | |
| 83 | e802-e803 low/high byte start address in bitmap RAM (where picture is to be | |
| 84 | written) during DMA | |
| 85 | e804-e805 picture size for DMA, and DMA start | |
| 86 | e806 vertical scroll of playfield | |
| 87 | e807 horizontal scroll of playfield | |
| 88 | e808 bank select latch | |
| 89 | e809 A & B bitmap control latch (A=playfield B=motion) | |
| 90 | bit 5 FLIP A | |
| 91 | bit 4 FLIP B | |
| 92 | bit 3 EN A | |
| 93 | bit 2 EN B | |
| 94 | bit 1 PRI A | |
| 95 | bit 0 PRI B | |
| 96 | e80a color shading latch | |
| 97 | ec00 command to sound CPU | |
| 98 | ed00 coin counters | |
| 99 | efxx (4 bits wide) security chip out | |
| 100 | 95 | |
| 101 | --------------------------------------------------------------------------- | |
| 102 | CPU #1 (sound) | |
| 96 | static READ8_HANDLER(mcu_sim_r); | |
| 97 | static WRITE8_HANDLER(mcu_sim_w); | |
| 103 | 98 | |
| 104 | 0000 0fff tvg81 | |
| 105 | 4000 43ff RAM | |
| 106 | 6000 command from main CPU | |
| 99 | static UINT8 kangaroo_clock; | |
| 107 | 100 | |
| 108 | I/O ports: | |
| 109 | 7000 AY-3-8910 write | |
| 110 | 8000 AY-3-8910 control | |
| 111 | --------------------------------------------------------------------------- | |
| 112 | 101 | |
| 113 | interrupts: | |
| 114 | (CPU#0) standard IM 1 interrupt mode (rst #38 every vblank) | |
| 115 | (CPU#1) same here | |
| 116 | 102 | |
| 117 | ***************************************************************************/ | |
| 118 | ||
| 119 | #include "driver.h" | |
| 120 | #include "kangaroo.h" | |
| 121 | #include "cpu/z80/z80.h" | |
| 122 | #include "sound/ay8910.h" | |
| 123 | ||
| 124 | ||
| 125 | ||
| 126 | 103 | /************************************* |
| 127 | 104 | * |
| 128 | 105 | * Machine init |
| 129 | 106 | * |
| 130 | 107 | *************************************/ |
| 131 | 108 | |
| 109 | static MACHINE_START( kangaroo ) | |
| 110 | { | |
| 111 | memory_configure_bank(1, 0, 2, memory_region(REGION_GFX1), 0x2000); | |
| 112 | state_save_register_global(kangaroo_clock); | |
| 113 | } | |
| 114 | ||
| 115 | ||
| 116 | static MACHINE_START( kangaroo_mcu ) | |
| 117 | { | |
| 118 | MACHINE_START_CALL(kangaroo); | |
| 119 | memory_install_readwrite8_handler(0, ADDRESS_SPACE_PROGRAM, 0xef00, 0xefff, 0, 0, mcu_sim_r, mcu_sim_w); | |
| 120 | kangaroo_clock = 0; | |
| 121 | } | |
| 122 | ||
| 123 | ||
| 132 | 124 | static MACHINE_RESET( kangaroo ) |
| 133 | 125 | { |
| 134 | 126 | /* I think there is a bug in the startup checks of the game. At the very */ |
| r1649 | r1650 | |
| 153 | 145 | * |
| 154 | 146 | *************************************/ |
| 155 | 147 | |
| 156 | static UINT8 kangaroo_clock=0; | |
| 157 | ||
| 158 | ||
| 159 | 148 | /* I have no idea what the security chip is nor whether it really does, |
| 160 | 149 | this just seems to do the trick -V- |
| 161 | 150 | */ |
| 162 | 151 | |
| 163 | static READ8_HANDLER( | |
| 152 | static READ8_HANDLER( m | |
| 164 | 153 | { |
| 165 | /* kangaroo_clock = (kangaroo_clock << 1) + 1; */ | |
| 166 | kangaroo_clock++; | |
| 167 | return (kangaroo_clock & 0x0f); | |
| 154 | return ++kangaroo_clock & 0x0f; | |
| 168 | 155 | } |
| 169 | 156 | |
| 170 | static WRITE8_HANDLER( | |
| 157 | static WRITE8_HANDLER( m | |
| 171 | 158 | { |
| 172 | /* kangaroo_clock = val & 0x0f; */ | |
| 173 | 159 | } |
| 174 | 160 | |
| 175 | 161 | |
| r1649 | r1650 | |
| 194 | 180 | * |
| 195 | 181 | *************************************/ |
| 196 | 182 | |
| 197 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 198 | AM_RANGE(0x0000, 0x5fff) AM_READ(MRA8_ROM) | |
| 199 | AM_RANGE(0xc000, 0xdfff) AM_READ(MRA8_BANK1) | |
| 200 | AM_RANGE(0xe000, 0xe3ff) AM_READ(MRA8_RAM) | |
| 201 | AM_RANGE(0xe400, 0xe400) AM_READ(input_port_3_r) | |
| 202 | AM_RANGE(0xec00, 0xec00) AM_READ(input_port_0_r) | |
| 203 | AM_RANGE(0xed00, 0xed00) AM_READ(input_port_1_r) | |
| 204 | AM_RANGE(0xee00, 0xee00) AM_READ(input_port_2_r) | |
| 205 | AM_RANGE(0xef00, 0xef00) AM_READ(kangaroo_sec_chip_r) | |
| 206 | ADDRESS_MAP_END | |
| 207 | ||
| 208 | ||
| 209 | static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 210 | AM_RANGE(0x0000, 0x5fff) AM_WRITE(MWA8_ROM) | |
| 183 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 184 | AM_RANGE(0x0000, 0x5fff) AM_ROM | |
| 211 | 185 | AM_RANGE(0x8000, 0xbfff) AM_WRITE(kangaroo_videoram_w) |
| 212 | AM_RANGE(0xc000, 0xdfff) AM_WRITE(MWA8_ROM) | |
| 213 | AM_RANGE(0xe000, 0xe3ff) AM_WRITE(MWA8_RAM) | |
| 214 | AM_RANGE(0xe800, 0xe805) AM_WRITE(kangaroo_blitter_w) AM_BASE(&kangaroo_blitter) | |
| 215 | AM_RANGE(0xe806, 0xe807) AM_WRITE(MWA8_RAM) AM_BASE(&kangaroo_scroll) | |
| 216 | AM_RANGE(0xe808, 0xe808) AM_WRITE(kangaroo_bank_select_w) AM_BASE(&kangaroo_bank_select) | |
| 217 | AM_RANGE(0xe809, 0xe809) AM_WRITE(kangaroo_video_control_w) AM_BASE(&kangaroo_video_control) | |
| 218 | AM_RANGE(0xe80a, 0xe80a) AM_WRITE(kangaroo_color_mask_w) | |
| 219 | AM_RANGE(0xec00, 0xec00) AM_WRITE(soundlatch_w) | |
| 220 | AM_RANGE(0xed00, 0xed00) AM_WRITE(kangaroo_coin_counter_w) | |
| 221 | AM_RANGE(0xef00, 0xefff) AM_WRITE(kangaroo_sec_chip_w) | |
| 186 | AM_RANGE(0xc000, 0xdfff) AM_ROMBANK(1) | |
| 187 | AM_RANGE(0xe000, 0xe3ff) AM_RAM | |
| 188 | AM_RANGE(0xe400, 0xe400) AM_MIRROR(0x03ff) AM_READ_PORT("DSW0") | |
| 189 | AM_RANGE(0xe800, 0xe80a) AM_MIRROR(0x03f0) AM_WRITE(kangaroo_video_control_w) AM_BASE(&kangaroo_video_control) | |
| 190 | AM_RANGE(0xec00, 0xec00) AM_MIRROR(0x00ff) AM_READ_PORT("IN0") AM_WRITE(soundlatch_w) | |
| 191 | AM_RANGE(0xed00, 0xed00) AM_MIRROR(0x00ff) AM_READ_PORT("IN1") AM_WRITE(kangaroo_coin_counter_w) | |
| 192 | AM_RANGE(0xee00, 0xee00) AM_MIRROR(0x00ff) AM_READ_PORT("IN2") | |
| 222 | 193 | ADDRESS_MAP_END |
| 223 | 194 | |
| 224 | 195 | |
| r1649 | r1650 | |
| 229 | 200 | * |
| 230 | 201 | *************************************/ |
| 231 | 202 | |
| 232 | static ADDRESS_MAP_START( sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 233 | AM_RANGE(0x0000, 0x0fff) AM_READ(MRA8_ROM) | |
| 234 | AM_RANGE(0x4000, 0x43ff) AM_READ(MRA8_RAM) | |
| 235 | AM_RANGE(0x6000, 0x6000) AM_READ(soundlatch_r) | |
| 203 | static ADDRESS_MAP_START( sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 204 | AM_RANGE(0x0000, 0x0fff) AM_ROM | |
| 205 | AM_RANGE(0x4000, 0x43ff) AM_MIRROR(0x0c00) AM_RAM | |
| 206 | AM_RANGE(0x6000, 0x6000) AM_MIRROR(0x0fff) AM_READ(soundlatch_r) | |
| 207 | AM_RANGE(0x7000, 0x7000) AM_MIRROR(0x0fff) AM_WRITE(AY8910_write_port_0_w) | |
| 208 | AM_RANGE(0x8000, 0x8000) AM_MIRROR(0x0fff) AM_WRITE(AY8910_control_port_0_w) | |
| 236 | 209 | ADDRESS_MAP_END |
| 237 | 210 | |
| 238 | 211 | |
| 239 | static ADDRESS_MAP_START( sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 240 | AM_RANGE(0x0000, 0x0fff) AM_WRITE(MWA8_ROM) | |
| 241 | AM_RANGE(0x4000, 0x43ff) AM_WRITE(MWA8_RAM) | |
| 212 | /* yes, this is indentical */ | |
| 213 | static ADDRESS_MAP_START( sound_portmap, ADDRESS_SPACE_IO, 8 ) | |
| 214 | AM_RANGE(0x0000, 0x0fff) AM_ROM | |
| 215 | AM_RANGE(0x4000, 0x43ff) AM_MIRROR(0x0c00) AM_RAM | |
| 216 | AM_RANGE(0x6000, 0x6000) AM_MIRROR(0x0fff) AM_READ(soundlatch_r) | |
| 217 | AM_RANGE(0x7000, 0x7000) AM_MIRROR(0x0fff) AM_WRITE(AY8910_write_port_0_w) | |
| 218 | AM_RANGE(0x8000, 0x8000) AM_MIRROR(0x0fff) AM_WRITE(AY8910_control_port_0_w) | |
| 242 | 219 | ADDRESS_MAP_END |
| 243 | 220 | |
| 244 | 221 | |
| 245 | static ADDRESS_MAP_START( sound_writeport, ADDRESS_SPACE_IO, 8 ) | |
| 246 | AM_RANGE(0x7000, 0x7000) AM_WRITE(AY8910_write_port_0_w) | |
| 247 | AM_RANGE(0x8000, 0x8000) AM_WRITE(AY8910_control_port_0_w) | |
| 222 | ||
| 223 | /************************************* | |
| 224 | * | |
| 225 | * Microcontroller memory handlers | |
| 226 | * | |
| 227 | *************************************/ | |
| 228 | ||
| 229 | static ADDRESS_MAP_START( mcu_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 230 | AM_RANGE(0x0000, 0x07ff) AM_ROM | |
| 248 | 231 | ADDRESS_MAP_END |
| 249 | 232 | |
| 250 | 233 | |
| r1649 | r1650 | |
| 256 | 239 | *************************************/ |
| 257 | 240 | |
| 258 | 241 | static INPUT_PORTS_START( fnkyfish ) |
| 259 | PORT_START | |
| 242 | PORT_START_TAG(" | |
| 260 | 243 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| 261 | 244 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 ) |
| 262 | 245 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START2 ) |
| 263 | 246 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 264 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 265 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 266 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 267 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 247 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 268 | 248 | |
| 269 | PORT_START | |
| 249 | PORT_START_TAG(" | |
| 270 | 250 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 271 | 251 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 272 | 252 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| 273 | 253 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 274 | 254 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 275 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 276 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 277 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 255 | PORT_BIT( 0xe0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 278 | 256 | |
| 279 | PORT_START | |
| 257 | PORT_START_TAG(" | |
| 280 | 258 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 281 | 259 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 282 | 260 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 283 | 261 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL |
| 284 | 262 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL |
| 285 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 286 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 287 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 263 | PORT_BIT( 0xe0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 288 | 264 | |
| 289 | PORT_START | |
| 265 | PORT_START_TAG(" | |
| 290 | 266 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives ) ) |
| 291 | 267 | PORT_DIPSETTING( 0x00, "3" ) |
| 292 | 268 | PORT_DIPSETTING( 0x01, "5" ) |
| r1649 | r1650 | |
| 315 | 291 | |
| 316 | 292 | |
| 317 | 293 | static INPUT_PORTS_START( kangaroo ) |
| 318 | PORT_START | |
| 294 | PORT_START_TAG(" | |
| 319 | 295 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| 320 | 296 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 ) |
| 321 | 297 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START2 ) |
| r1649 | r1650 | |
| 331 | 307 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 332 | 308 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 333 | 309 | |
| 334 | PORT_START | |
| 310 | PORT_START_TAG(" | |
| 335 | 311 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 336 | 312 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 337 | 313 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| r1649 | r1650 | |
| 341 | 317 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 342 | 318 | PORT_SERVICE( 0x80, IP_ACTIVE_HIGH ) |
| 343 | 319 | |
| 344 | PORT_START | |
| 320 | PORT_START_TAG(" | |
| 345 | 321 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 346 | 322 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 347 | 323 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| r1649 | r1650 | |
| 351 | 327 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 352 | 328 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 353 | 329 | |
| 354 | PORT_START | |
| 330 | PORT_START_TAG(" | |
| 355 | 331 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives ) ) |
| 356 | 332 | PORT_DIPSETTING( 0x00, "3" ) |
| 357 | 333 | PORT_DIPSETTING( 0x01, "5" ) |
| r1649 | r1650 | |
| 391 | 367 | * |
| 392 | 368 | *************************************/ |
| 393 | 369 | |
| 394 | static MACHINE_DRIVER_START( | |
| 370 | static MACHINE_DRIVER_START( | |
| 395 | 371 | |
| 396 | 372 | /* basic machine hardware */ |
| 397 | MDRV_CPU_ADD(Z80, 10000000/4) /* 2.5 MHz */ | |
| 398 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) | |
| 373 | MDRV_CPU_ADD(Z80, MASTER_CLOCK/4) | |
| 374 | MDRV_CPU_PROGRAM_MAP(main_map,0) | |
| 399 | 375 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 400 | 376 | |
| 401 | MDRV_CPU_ADD(Z80, 10000000/4) /* 2.5 MHz */ | |
| 402 | /* audio CPU */ | |
| 403 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) | |
| 404 | MDRV_CPU_IO_MAP(0,sound_writeport) | |
| 377 | MDRV_CPU_ADD(Z80, MASTER_CLOCK/8) | |
| 378 | MDRV_CPU_PROGRAM_MAP(sound_map,0) | |
| 379 | MDRV_CPU_IO_MAP(sound_portmap,0) | |
| 405 | 380 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 406 | 381 | |
| 407 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 408 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 409 | ||
| 382 | MDRV_MACHINE_START(kangaroo) | |
| 410 | 383 | MDRV_MACHINE_RESET(kangaroo) |
| 411 | 384 | |
| 412 | 385 | /* video hardware */ |
| 413 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 414 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 415 | MDRV_SCREEN_SIZE(32*8, 32*8) | |
| 416 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 8, 255-8) | |
| 417 | MDRV_PALETTE_LENGTH(24) | |
| 386 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_SCANLINE) | |
| 387 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 418 | 388 | |
| 419 | MDRV_PALETTE_INIT(kangaroo) | |
| 389 | MDRV_SCREEN_ADD("main", 0) | |
| 390 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK, 320*2, 0*2, 256*2, 260, 8, 248) | |
| 391 | ||
| 420 | 392 | MDRV_VIDEO_START(kangaroo) |
| 421 | 393 | MDRV_VIDEO_UPDATE(kangaroo) |
| 422 | 394 | |
| 423 | 395 | /* sound hardware */ |
| 424 | 396 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 425 | MDRV_SOUND_ADD(AY8910, | |
| 397 | MDRV_SOUND_ADD(AY8910, MASTER_CLOCK/8) | |
| 426 | 398 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 427 | 399 | MACHINE_DRIVER_END |
| 428 | 400 | |
| 429 | 401 | |
| 402 | static MACHINE_DRIVER_START( mcu ) | |
| 403 | MDRV_IMPORT_FROM(nomcu) | |
| 430 | 404 | |
| 405 | MDRV_MACHINE_START(kangaroo_mcu) | |
| 406 | ||
| 407 | MDRV_CPU_ADD(MB8841, MASTER_CLOCK/4/12) | |
| 408 | MDRV_CPU_FLAGS(CPU_DISABLE) | |
| 409 | MDRV_CPU_PROGRAM_MAP(mcu_map,0) | |
| 410 | MACHINE_DRIVER_END | |
| 411 | ||
| 412 | ||
| 413 | ||
| 431 | 414 | /************************************* |
| 432 | 415 | * |
| 433 | 416 | * ROM definitions |
| r1649 | r1650 | |
| 464 | 447 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) |
| 465 | 448 | ROM_LOAD( "tvg_81.8", 0x0000, 0x1000, CRC(fb449bfd) SHA1(f593a0339f47e121736a927587132aeb52704557) ) |
| 466 | 449 | |
| 467 | ROM_REGION( 0x0800, REGION_CPU3, 0 ) /* 8k for the MB8841 custom microcontroller (currently not emulated) */ | |
| 450 | ROM_REGION( 0x0800, REGION_CPU3, 0 ) /* code for the 8841 custom MCU */ | |
| 451 | ROM_LOAD( "8841.rom", 0x0000, 0x0800, NO_DUMP ) | |
| 452 | ||
| 453 | ROM_REGION( 0x0800, REGION_USER1, 0 ) /* data for the 8841 custom MCU */ | |
| 468 | 454 | ROM_LOAD( "tvg_82.12", 0x0000, 0x0800, CRC(57766f69) SHA1(94a7a557d8325799523d5e1a88653a9a3fbe34f9) ) |
| 469 | 455 | |
| 470 | 456 | ROM_REGION( 0x4000, REGION_GFX1, 0 ) |
| r1649 | r1650 | |
| 477 | 463 | |
| 478 | 464 | ROM_START( kangaroa ) |
| 479 | 465 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 480 | ROM_LOAD( "tvg_75.0", 0x0000, 0x1000, CRC(0d18c581) SHA1(0e0f89d644b79e887c53e5294783843ca7e875ba) ) | |
| 481 | ROM_LOAD( "tvg_76.1", 0x1000, 0x1000, CRC(5978d37a) SHA1(684c1092de4a0927a03752903c86c3bbe99e868a) ) | |
| 482 | ROM_LOAD( "tvg_77.2", 0x2000, 0x1000, CRC(522d1097) SHA1(09fe627a46d32df2e098d9fad7757f9d61bef41f) ) | |
| 483 | ROM_LOAD( "tvg_78.3", 0x3000, 0x1000, CRC(063da970) SHA1(582ff21dd46c651f07a4846e0f8a7544a5891988) ) | |
| 484 | ROM_LOAD( "tvg79.bin", 0x4000, 0x1000, CRC(82a26c7d) SHA1(09087552dbe4d27df79396072c0f9b916f78f89b) ) | |
| 485 | ROM_LOAD( "tvg80.bin", 0x5000, 0x1000, CRC(3dead542) SHA1(0b5d329b1ebbacc650d06289b4e080304e728ea7) ) | |
| 466 | ROM_LOAD( "136008-101.ic7", 0x0000, 0x1000, CRC(0d18c581) SHA1(0e0f89d644b79e887c53e5294783843ca7e875ba) ) | |
| 467 | ROM_LOAD( "136008-102.ic8", 0x1000, 0x1000, CRC(5978d37a) SHA1(684c1092de4a0927a03752903c86c3bbe99e868a) ) | |
| 468 | ROM_LOAD( "136008-103.ic9", 0x2000, 0x1000, CRC(522d1097) SHA1(09fe627a46d32df2e098d9fad7757f9d61bef41f) ) | |
| 469 | ROM_LOAD( "136008-104.ic10", 0x3000, 0x1000, CRC(063da970) SHA1(582ff21dd46c651f07a4846e0f8a7544a5891988) ) | |
| 470 | ROM_LOAD( "136008-105.ic16", 0x4000, 0x1000, CRC(82a26c7d) SHA1(09087552dbe4d27df79396072c0f9b916f78f89b) ) | |
| 471 | ROM_LOAD( "136008-106.ic17", 0x5000, 0x1000, CRC(3dead542) SHA1(0b5d329b1ebbacc650d06289b4e080304e728ea7) ) | |
| 486 | 472 | |
| 487 | 473 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) |
| 488 | ROM_LOAD( " | |
| 474 | ROM_LOAD( "136008-107.ic24", | |
| 489 | 475 | |
| 490 | ROM_REGION( 0x0800, REGION_CPU3, 0 ) /* 8k for the MB8841 custom microcontroller (currently not emulated) */ | |
| 491 | ROM_LOAD( "tvg_82.12", 0x0000, 0x0800, CRC(57766f69) SHA1(94a7a557d8325799523d5e1a88653a9a3fbe34f9) ) | |
| 476 | ROM_REGION( 0x0800, REGION_CPU3, 0 ) /* code for the 8841 custom MCU */ | |
| 477 | ROM_LOAD( "8841.rom", 0x0000, 0x0800, NO_DUMP ) | |
| 492 | 478 | |
| 479 | ROM_REGION( 0x0800, REGION_USER1, 0 ) /* data for the 8841 custom MCU */ | |
| 480 | ROM_LOAD( "136008-112.ic28", 0x0000, 0x0800, CRC(57766f69) SHA1(94a7a557d8325799523d5e1a88653a9a3fbe34f9) ) | |
| 481 | ||
| 493 | 482 | ROM_REGION( 0x4000, REGION_GFX1, 0 ) |
| 494 | ROM_LOAD( "tvg_83.v0", 0x0000, 0x1000, CRC(c0446ca6) SHA1(fca6ba565051337c0198c93b7b8477632e0dd0b6) ) | |
| 495 | ROM_LOAD( "tvg_85.v2", 0x1000, 0x1000, CRC(72c52695) SHA1(87f4715fbb7d509bd9cc4e71e2afb0d475bbac13) ) | |
| 496 | ROM_LOAD( "tvg_84.v1", 0x2000, 0x1000, CRC(e4cb26c2) SHA1(5016db9d48fdcfb757618659d063b90862eb0e90) ) | |
| 497 | ROM_LOAD( "tvg_86.v3", 0x3000, 0x1000, CRC(9e6a599f) SHA1(76b4eddb4efcd8189d8cc5962d8497e82885f212) ) | |
| 483 | ROM_LOAD( "136008-108.ic76", 0x0000, 0x1000, CRC(c0446ca6) SHA1(fca6ba565051337c0198c93b7b8477632e0dd0b6) ) | |
| 484 | ROM_LOAD( "136008-110.ic77", 0x1000, 0x1000, CRC(72c52695) SHA1(87f4715fbb7d509bd9cc4e71e2afb0d475bbac13) ) | |
| 485 | ROM_LOAD( "136008-109.ic52", 0x2000, 0x1000, CRC(e4cb26c2) SHA1(5016db9d48fdcfb757618659d063b90862eb0e90) ) | |
| 486 | ROM_LOAD( "136008-111.ic53", 0x3000, 0x1000, CRC(9e6a599f) SHA1(76b4eddb4efcd8189d8cc5962d8497e82885f212) ) | |
| 498 | 487 | ROM_END |
| 499 | 488 | |
| 500 | 489 | |
| r1649 | r1650 | |
| 525 | 514 | * |
| 526 | 515 | *************************************/ |
| 527 | 516 | |
| 528 | GAME( 1981, fnkyfish, 0, kangaroo, fnkyfish, 0, ROT90, "Sun Electronics", "Funky Fish", 0 ) | |
| 529 | GAME( 1982, kangaroo, 0, kangaroo, kangaroo, 0, ROT90, "Sun Electronics", "Kangaroo", 0 ) | |
| 530 | GAME( 1982, kangaroa, kangaroo, kangaroo, kangaroo, 0, ROT90, "[Sun Electronics] (Atari license)", "Kangaroo (Atari)", 0 ) | |
| 531 | GAME( 1982, kangarob, kangaroo, kangaroo, kangaroo, 0, ROT90, "bootleg", "Kangaroo (bootleg)", 0 ) | |
| 517 | GAME( 1981, fnkyfish, 0, nomcu, fnkyfish, 0, ROT90, "Sun Electronics", "Funky Fish", 0 ) | |
| 518 | GAME( 1982, kangaroo, 0, mcu, kangaroo, 0, ROT90, "Sun Electronics", "Kangaroo", 0 ) | |
| 519 | GAME( 1982, kangaroa, kangaroo, mcu, kangaroo, 0, ROT90, "[Sun Electronics] (Atari license)", "Kangaroo (Atari)", 0 ) | |
| 520 | GAME( 1982, kangarob, kangaroo, nomcu, kangaroo, 0, ROT90, "bootleg", "Kangaroo (bootleg)", 0 ) |
| r1649 | r1650 | |
|---|---|---|
| 41 | 41 | ******************************************************************/ |
| 42 | 42 | |
| 43 | 43 | #include "driver.h" |
| 44 | #include " | |
| 44 | #include "deprecat | |
| 45 | 45 | #include "cpu/z80/z80.h" |
| 46 | 46 | #include "audio/seibu.h" |
| 47 | 47 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "cpu/cdp1802/cdp1802.h" |
| 3 | 4 | #include "cpu/cop400/cop400.h" |
| 4 | 5 | #include "video/cdp1869.h" |
| r1649 | r1650 | |
|---|---|---|
| 67 | 67 | { |
| 68 | 68 | |
| 69 | 69 | // mame_printf_debug("port4_r\n"); |
| 70 | return 0x00; | |
| 70 | return 0x00; | |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | ******************************************************************************/ |
| 13 | 13 | |
| 14 | 14 | #include "driver.h" |
| 15 | #include "deprecat.h" | |
| 15 | 16 | #include "video/system1.h" |
| 16 | 17 | #include "cpu/z80/z80.h" |
| 17 | 18 | #include "machine/segacrpt.h" |
| r1649 | r1650 | |
|---|---|---|
| 189 | 189 | *****************************************************************************/ |
| 190 | 190 | |
| 191 | 191 | #include "driver.h" |
| 192 | #include "deprecat.h" | |
| 192 | 193 | #include "includes/m92.h" |
| 193 | 194 | #include "drivers/m92.h" |
| 194 | 195 | #include "machine/irem_cpu.h" |
| r1649 | r1650 | |
|---|---|---|
| 53 | 53 | */ |
| 54 | 54 | |
| 55 | 55 | #include "driver.h" |
| 56 | #include "deprecat.h" | |
| 56 | 57 | #include "cpu/z80/z80.h" |
| 57 | 58 | #include "snk.h" |
| 58 | 59 | #include "sound/ay8910.h" |
| r0 | r1650 | |
|---|---|---|
| 1 | /**************************************************************************** | |
| 2 | ||
| 3 | Irem M58 hardware | |
| 4 | ||
| 5 | L Taylor | |
| 6 | J Clegg | |
| 7 | ||
| 8 | Loosely based on the Kung Fu Master driver. | |
| 9 | ||
| 10 | ****************************************************************************/ | |
| 11 | ||
| 12 | #include "driver.h" | |
| 13 | #include "m58.h" | |
| 14 | #include "audio/irem.h" | |
| 15 | ||
| 16 | #define MASTER_CLOCK XTAL_18_432MHz | |
| 17 | ||
| 18 | ||
| 19 | ||
| 20 | /************************************* | |
| 21 | * | |
| 22 | * Outputs | |
| 23 | * | |
| 24 | *************************************/ | |
| 25 | ||
| 26 | static WRITE8_HANDLER( yard_flipscreen_w ) | |
| 27 | { | |
| 28 | flip_screen_set((data & 0x01) ^ (~readinputport(4) & 0x01)); | |
| 29 | ||
| 30 | coin_counter_w(0, data & 0x02); | |
| 31 | coin_counter_w(1, data & 0x20); | |
| 32 | } | |
| 33 | ||
| 34 | ||
| 35 | ||
| 36 | /************************************* | |
| 37 | * | |
| 38 | * Memory maps | |
| 39 | * | |
| 40 | *************************************/ | |
| 41 | ||
| 42 | static ADDRESS_MAP_START( yard_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 43 | AM_RANGE(0x0000, 0x5fff) AM_ROM | |
| 44 | AM_RANGE(0x8000, 0x8fff) AM_RAM AM_WRITE(yard_videoram_w) AM_BASE(&videoram) | |
| 45 | AM_RANGE(0x9000, 0x9fff) AM_WRITE(yard_scroll_panel_w) | |
| 46 | AM_RANGE(0xc820, 0xc87f) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size) | |
| 47 | AM_RANGE(0xa000, 0xa000) AM_RAM AM_BASE(&yard_scroll_x_low) | |
| 48 | AM_RANGE(0xa200, 0xa200) AM_RAM AM_BASE(&yard_scroll_x_high) | |
| 49 | AM_RANGE(0xa400, 0xa400) AM_RAM AM_BASE(&yard_scroll_y_low) | |
| 50 | AM_RANGE(0xa800, 0xa800) AM_RAM AM_BASE(&yard_score_panel_disabled) | |
| 51 | AM_RANGE(0xd000, 0xd000) AM_READWRITE(input_port_0_r, irem_sound_cmd_w) | |
| 52 | AM_RANGE(0xd001, 0xd001) AM_READWRITE(input_port_1_r, yard_flipscreen_w) | |
| 53 | AM_RANGE(0xd002, 0xd002) AM_READ(input_port_2_r) | |
| 54 | AM_RANGE(0xd003, 0xd003) AM_READ(input_port_3_r) | |
| 55 | AM_RANGE(0xd004, 0xd004) AM_READ(input_port_4_r) | |
| 56 | AM_RANGE(0xe000, 0xefff) AM_RAM | |
| 57 | ADDRESS_MAP_END | |
| 58 | ||
| 59 | ||
| 60 | ||
| 61 | /************************************* | |
| 62 | * | |
| 63 | * Port definitions | |
| 64 | * | |
| 65 | *************************************/ | |
| 66 | ||
| 67 | static INPUT_PORTS_START( yard ) | |
| 68 | PORT_START_TAG("IN0") | |
| 69 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) | |
| 70 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) | |
| 71 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_IMPULSE(19) // coin input must be active for 19 frames to be consistently recognized | |
| 72 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 73 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 74 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 75 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 76 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 77 | ||
| 78 | PORT_START_TAG("IN1") | |
| 79 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 80 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 81 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 82 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 83 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 84 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 85 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 86 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 87 | ||
| 88 | PORT_START_TAG("IN2") | |
| 89 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 90 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 91 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 92 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 93 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 94 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 95 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 96 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 97 | ||
| 98 | PORT_START_TAG("DSW1") | |
| 99 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW1:1") /* Listed as "Unused" */ | |
| 100 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 101 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 102 | PORT_DIPNAME( 0x02, 0x02, "Defensive Man Pause" ) PORT_DIPLOCATION("SW1:2") /* Listed as "Unused" */ | |
| 103 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 104 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 105 | PORT_DIPNAME( 0x0c, 0x0c, "Time Reduced by Ball Dead" ) PORT_DIPLOCATION("SW1:3,4") | |
| 106 | PORT_DIPSETTING( 0x0c, DEF_STR( Normal ) ) | |
| 107 | PORT_DIPSETTING( 0x08, "x1.3" ) | |
| 108 | PORT_DIPSETTING( 0x04, "x1.5" ) | |
| 109 | PORT_DIPSETTING( 0x00, "x1.8" ) | |
| 110 | // coin mode 1 | |
| 111 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coinage ) ) PORT_CONDITION("DSW2", 0x04, PORTCOND_NOTEQUALS, 0x00) PORT_DIPLOCATION("SW1:5,6,7,8") | |
| 112 | PORT_DIPSETTING( 0xa0, DEF_STR( 6C_1C ) ) | |
| 113 | PORT_DIPSETTING( 0xb0, DEF_STR( 5C_1C ) ) | |
| 114 | PORT_DIPSETTING( 0xc0, DEF_STR( 4C_1C ) ) | |
| 115 | PORT_DIPSETTING( 0xd0, DEF_STR( 3C_1C ) ) | |
| 116 | PORT_DIPSETTING( 0xe0, DEF_STR( 2C_1C ) ) | |
| 117 | PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) | |
| 118 | PORT_DIPSETTING( 0x70, DEF_STR( 1C_2C ) ) | |
| 119 | PORT_DIPSETTING( 0x60, DEF_STR( 1C_3C ) ) | |
| 120 | PORT_DIPSETTING( 0x50, DEF_STR( 1C_4C ) ) | |
| 121 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) | |
| 122 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_6C ) ) | |
| 123 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 124 | // coin mode 2 | |
| 125 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_CONDITION("DSW2", 0x04, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION("SW1:5,6") | |
| 126 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 127 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) | |
| 128 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) | |
| 129 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 130 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) PORT_CONDITION("DSW2", 0x04, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION("SW1:7,8") | |
| 131 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) | |
| 132 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) | |
| 133 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) | |
| 134 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) | |
| 135 | ||
| 136 | PORT_START_TAG("DSW2") | |
| 137 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:1") | |
| 138 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 139 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 140 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW2:2") | |
| 141 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 142 | PORT_DIPSETTING( 0x02, DEF_STR( Cocktail ) ) | |
| 143 | PORT_DIPNAME( 0x04, 0x04, "Coin Mode" ) PORT_DIPLOCATION("SW2:3") | |
| 144 | PORT_DIPSETTING( 0x04, "Mode 1" ) | |
| 145 | PORT_DIPSETTING( 0x00, "Mode 2" ) | |
| 146 | PORT_DIPNAME( 0x08, 0x08, "Slow Motion" ) PORT_DIPLOCATION("SW2:4") /* Listed as "Unused" */ | |
| 147 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 148 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 149 | PORT_DIPNAME( 0x10, 0x10, "Freeze Picture" ) PORT_DIPLOCATION("SW2:5") /* 2P Start stops gameplay, 1P Start continues */ | |
| 150 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 151 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 152 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Level_Select ) ) PORT_DIPLOCATION("SW2:6") /* Listed as "Unused" */ | |
| 153 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 154 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 155 | PORT_DIPNAME( 0x40, 0x40, "Invulnerability" ) PORT_DIPLOCATION("SW2:7") | |
| 156 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 157 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 158 | PORT_SERVICE_DIPLOC(0x80, IP_ACTIVE_LOW, "SW2:8" ) | |
| 159 | INPUT_PORTS_END | |
| 160 | ||
| 161 | static INPUT_PORTS_START( vsyard ) | |
| 162 | PORT_INCLUDE(yard) | |
| 163 | ||
| 164 | PORT_MODIFY("DSW1") | |
| 165 | PORT_DIPNAME( 0x01, 0x01, "Allow Continue (Vs. Mode)" ) PORT_DIPLOCATION("SW1:1") | |
| 166 | PORT_DIPSETTING( 0x01, DEF_STR( No ) ) | |
| 167 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 168 | INPUT_PORTS_END | |
| 169 | ||
| 170 | ||
| 171 | ||
| 172 | /************************************* | |
| 173 | * | |
| 174 | * Graphics layouts | |
| 175 | * | |
| 176 | *************************************/ | |
| 177 | ||
| 178 | static const gfx_layout spritelayout = | |
| 179 | { | |
| 180 | 16, 16, | |
| 181 | RGN_FRAC(1,3), | |
| 182 | 3, | |
| 183 | { RGN_FRAC(2,3), RGN_FRAC(1,3), RGN_FRAC(0,3) }, | |
| 184 | { STEP8(0,1), STEP8(16*8,1) }, | |
| 185 | { STEP16(0,8) }, | |
| 186 | 32*8 | |
| 187 | }; | |
| 188 | ||
| 189 | ||
| 190 | static GFXDECODE_START( yard ) | |
| 191 | GFXDECODE_ENTRY( REGION_GFX1, 0, gfx_8x8x3_planar, 0, 32 ) | |
| 192 | GFXDECODE_ENTRY( REGION_GFX2, 0, spritelayout, 512, 32 ) | |
| 193 | GFXDECODE_END | |
| 194 | ||
| 195 | ||
| 196 | ||
| 197 | /************************************* | |
| 198 | * | |
| 199 | * Machine drivers | |
| 200 | * | |
| 201 | *************************************/ | |
| 202 | ||
| 203 | static MACHINE_DRIVER_START( yard ) | |
| 204 | ||
| 205 | /* basic machine hardware */ | |
| 206 | MDRV_CPU_ADD(Z80, MASTER_CLOCK/3/2) | |
| 207 | MDRV_CPU_PROGRAM_MAP(yard_map, 0) | |
| 208 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) | |
| 209 | ||
| 210 | /* video hardware */ | |
| 211 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 212 | MDRV_GFXDECODE(yard) | |
| 213 | MDRV_PALETTE_LENGTH(256+256+256) | |
| 214 | ||
| 215 | MDRV_SCREEN_ADD("main", 0) | |
| 216 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK/3, 384, 0, 256, 282, 42, 266) | |
| 217 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 218 | ||
| 219 | MDRV_PALETTE_INIT(yard) | |
| 220 | MDRV_VIDEO_START(yard) | |
| 221 | MDRV_VIDEO_UPDATE(yard) | |
| 222 | ||
| 223 | /* sound hardware */ | |
| 224 | MDRV_IMPORT_FROM(m52_large_audio) | |
| 225 | MACHINE_DRIVER_END | |
| 226 | ||
| 227 | ||
| 228 | ||
| 229 | /************************************* | |
| 230 | * | |
| 231 | * ROM definitions | |
| 232 | * | |
| 233 | *************************************/ | |
| 234 | ||
| 235 | ROM_START( 10yard ) | |
| 236 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 237 | ROM_LOAD( "yf-a-3p-b", 0x0000, 0x2000, CRC(2e205ec2) SHA1(fcfa08f45423b35f2c99d4e6b5474ab1b3a84fec) ) | |
| 238 | ROM_LOAD( "yf-a-3n-b", 0x2000, 0x2000, CRC(82fcd980) SHA1(7846705b29961cb95ee1571ee7e16baceea522d4) ) | |
| 239 | ROM_LOAD( "yf-a-3m-b", 0x4000, 0x2000, CRC(a8d5c311) SHA1(28edb5cfd943a2262d7e37ef9a7245f7017cbc51) ) | |
| 240 | ||
| 241 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 242 | ROM_LOAD( "yf-s.3b", 0x8000, 0x2000, CRC(0392a60c) SHA1(68030504eafc58db250099edd3c3323bdb9eff6b) ) | |
| 243 | ROM_LOAD( "yf-s.1b", 0xa000, 0x2000, CRC(6588f41a) SHA1(209305efc68171886427216b9a0b37333f40daa8) ) | |
| 244 | ROM_LOAD( "yf-s.3a", 0xc000, 0x2000, CRC(bd054e44) SHA1(f10c32c70d60680229fc0891d0e1308015fa69d6) ) | |
| 245 | ROM_LOAD( "yf-s.1a", 0xe000, 0x2000, CRC(2490d4c3) SHA1(e4da7b01e8ad075b7e3c8beb6668faff72db9aa2) ) | |
| 246 | ||
| 247 | ROM_REGION( 0x06000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 248 | ROM_LOAD( "yf-a.3e", 0x00000, 0x2000, CRC(77e9e9cc) SHA1(90b0226fc125713dbee2804aeceeb5aa2c8e275e) ) /* chars */ | |
| 249 | ROM_LOAD( "yf-a.3d", 0x02000, 0x2000, CRC(854d5ff4) SHA1(9ba09bfabf159facb57faecfe73a6258fa48d152) ) | |
| 250 | ROM_LOAD( "yf-a.3c", 0x04000, 0x2000, CRC(0cd8ffad) SHA1(bd1262de3823c34f7394b718477fb5bc58a6e293) ) | |
| 251 | ||
| 252 | ROM_REGION( 0x0c000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 253 | ROM_LOAD( "yf-b.5b", 0x00000, 0x2000, CRC(1299ae30) SHA1(07d47f827d8bc78a41011ec02ab64036fb8a7a18) ) /* sprites */ | |
| 254 | ROM_LOAD( "yf-b.5c", 0x02000, 0x2000, CRC(8708b888) SHA1(8c4f305a339f23ec8ed40dfd72fac0f62ee65378) ) | |
| 255 | ROM_LOAD( "yf-b.5f", 0x04000, 0x2000, CRC(d9bb8ab8) SHA1(1325308b4c85355298fec4aa3e5fec1b4b13ad86) ) | |
| 256 | ROM_LOAD( "yf-b.5e", 0x06000, 0x2000, CRC(47077e8d) SHA1(5f78b15fb360e9926ef11841d5d86f2bd9af04d1) ) | |
| 257 | ROM_LOAD( "yf-b.5j", 0x08000, 0x2000, CRC(713ef31f) SHA1(b48df9ed4f26fded3c7eaac3a52b580b2dd60477) ) | |
| 258 | ROM_LOAD( "yf-b.5k", 0x0a000, 0x2000, CRC(f49651cc) SHA1(5b87d7360bcd5883ec265b2a01a3e02e10a85345) ) | |
| 259 | ||
| 260 | ROM_REGION( 0x0520, REGION_PROMS, 0 ) | |
| 261 | ROM_LOAD( "yard.1c", 0x0000, 0x0100, CRC(08fa5103) SHA1(98af48dafbbaa42f58232bf74ccbf5da41723e71) ) /* chars palette low 4 bits */ | |
| 262 | ROM_LOAD( "yard.1d", 0x0100, 0x0100, CRC(7c04994c) SHA1(790bf1616335b9df4943cffcafa48d8e8aee009e) ) /* chars palette high 4 bits */ | |
| 263 | ROM_LOAD( "yard.1f", 0x0200, 0x0020, CRC(b8554da5) SHA1(963ca815b5f791b8a7b0937a5d392d5203049eb3) ) /* sprites palette */ | |
| 264 | ROM_LOAD( "yard.2h", 0x0220, 0x0100, CRC(e1cdfb06) SHA1(a8cc3456cfc272e3faac80370b2298d8e1f8c2fe) ) /* sprites lookup table */ | |
| 265 | ROM_LOAD( "yard.2n", 0x0320, 0x0100, CRC(cd85b646) SHA1(5268db705006058eec308afe474f4df3c15465bb) ) /* radar palette low 4 bits */ | |
| 266 | ROM_LOAD( "yard.2m", 0x0420, 0x0100, CRC(45384397) SHA1(e4c662ee81aef63efd8b4a45f85c4a78dc2d419e) ) /* radar palette high 4 bits */ | |
| 267 | ROM_END | |
| 268 | ||
| 269 | ROM_START( 10yardj ) | |
| 270 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 271 | ROM_LOAD( "yf-a.3p", 0x0000, 0x2000, CRC(4586114f) SHA1(a31c68770e7a7eed805c5ba46af302c2895e3cee) ) | |
| 272 | ROM_LOAD( "yf-a.3n", 0x2000, 0x2000, CRC(947fa760) SHA1(bd6c2ee6e6800b063b81dbdd9fc929120019439d) ) | |
| 273 | ROM_LOAD( "yf-a.3m", 0x4000, 0x2000, CRC(d4975633) SHA1(84a506ae680a9dd26ef6f33880400e965ccf8260) ) | |
| 274 | ||
| 275 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 276 | ROM_LOAD( "yf-s.3b", 0x8000, 0x2000, CRC(0392a60c) SHA1(68030504eafc58db250099edd3c3323bdb9eff6b) ) | |
| 277 | ROM_LOAD( "yf-s.1b", 0xa000, 0x2000, CRC(6588f41a) SHA1(209305efc68171886427216b9a0b37333f40daa8) ) | |
| 278 | ROM_LOAD( "yf-s.3a", 0xc000, 0x2000, CRC(bd054e44) SHA1(f10c32c70d60680229fc0891d0e1308015fa69d6) ) | |
| 279 | ROM_LOAD( "yf-s.1a", 0xe000, 0x2000, CRC(2490d4c3) SHA1(e4da7b01e8ad075b7e3c8beb6668faff72db9aa2) ) | |
| 280 | ||
| 281 | ROM_REGION( 0x06000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 282 | ROM_LOAD( "yf-a.3e", 0x00000, 0x2000, CRC(77e9e9cc) SHA1(90b0226fc125713dbee2804aeceeb5aa2c8e275e) ) /* chars */ | |
| 283 | ROM_LOAD( "yf-a.3d", 0x02000, 0x2000, CRC(854d5ff4) SHA1(9ba09bfabf159facb57faecfe73a6258fa48d152) ) | |
| 284 | ROM_LOAD( "yf-a.3c", 0x04000, 0x2000, CRC(0cd8ffad) SHA1(bd1262de3823c34f7394b718477fb5bc58a6e293) ) | |
| 285 | ||
| 286 | ROM_REGION( 0x0c000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 287 | ROM_LOAD( "yf-b.5b", 0x00000, 0x2000, CRC(1299ae30) SHA1(07d47f827d8bc78a41011ec02ab64036fb8a7a18) ) /* sprites */ | |
| 288 | ROM_LOAD( "yf-b.5c", 0x02000, 0x2000, CRC(8708b888) SHA1(8c4f305a339f23ec8ed40dfd72fac0f62ee65378) ) | |
| 289 | ROM_LOAD( "yf-b.5f", 0x04000, 0x2000, CRC(d9bb8ab8) SHA1(1325308b4c85355298fec4aa3e5fec1b4b13ad86) ) | |
| 290 | ROM_LOAD( "yf-b.5e", 0x06000, 0x2000, CRC(47077e8d) SHA1(5f78b15fb360e9926ef11841d5d86f2bd9af04d1) ) | |
| 291 | ROM_LOAD( "yf-b.5j", 0x08000, 0x2000, CRC(713ef31f) SHA1(b48df9ed4f26fded3c7eaac3a52b580b2dd60477) ) | |
| 292 | ROM_LOAD( "yf-b.5k", 0x0a000, 0x2000, CRC(f49651cc) SHA1(5b87d7360bcd5883ec265b2a01a3e02e10a85345) ) | |
| 293 | ||
| 294 | ROM_REGION( 0x0520, REGION_PROMS, 0 ) | |
| 295 | ROM_LOAD( "yard.1c", 0x0000, 0x0100, CRC(08fa5103) SHA1(98af48dafbbaa42f58232bf74ccbf5da41723e71) ) /* chars palette low 4 bits */ | |
| 296 | ROM_LOAD( "yard.1d", 0x0100, 0x0100, CRC(7c04994c) SHA1(790bf1616335b9df4943cffcafa48d8e8aee009e) ) /* chars palette high 4 bits */ | |
| 297 | ROM_LOAD( "yard.1f", 0x0200, 0x0020, CRC(b8554da5) SHA1(963ca815b5f791b8a7b0937a5d392d5203049eb3) ) /* sprites palette */ | |
| 298 | ROM_LOAD( "yard.2h", 0x0220, 0x0100, CRC(e1cdfb06) SHA1(a8cc3456cfc272e3faac80370b2298d8e1f8c2fe) ) /* sprites lookup table */ | |
| 299 | ROM_LOAD( "yard.2n", 0x0320, 0x0100, CRC(cd85b646) SHA1(5268db705006058eec308afe474f4df3c15465bb) ) /* radar palette low 4 bits */ | |
| 300 | ROM_LOAD( "yard.2m", 0x0420, 0x0100, CRC(45384397) SHA1(e4c662ee81aef63efd8b4a45f85c4a78dc2d419e) ) /* radar palette high 4 bits */ | |
| 301 | ROM_END | |
| 302 | ||
| 303 | ROM_START( vs10yard ) | |
| 304 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 305 | ROM_LOAD( "a.3p", 0x0000, 0x2000, CRC(1edac08f) SHA1(c6a3290e9dba663dccf0613853abfab8e912477d) ) | |
| 306 | ROM_LOAD( "vyf-a.3m", 0x2000, 0x2000, CRC(3b9330f8) SHA1(b35fe72cf724cfb887906060bbcf40b0c896ccf0) ) | |
| 307 | ROM_LOAD( "a.3m", 0x4000, 0x2000, CRC(cf783dad) SHA1(0b1b875ac65ba90c92ca06d0aa01c477b7427322) ) | |
| 308 | ||
| 309 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 310 | ROM_LOAD( "yf-s.3b", 0x8000, 0x2000, CRC(0392a60c) SHA1(68030504eafc58db250099edd3c3323bdb9eff6b) ) | |
| 311 | ROM_LOAD( "yf-s.1b", 0xa000, 0x2000, CRC(6588f41a) SHA1(209305efc68171886427216b9a0b37333f40daa8) ) | |
| 312 | ROM_LOAD( "yf-s.3a", 0xc000, 0x2000, CRC(bd054e44) SHA1(f10c32c70d60680229fc0891d0e1308015fa69d6) ) | |
| 313 | ROM_LOAD( "yf-s.1a", 0xe000, 0x2000, CRC(2490d4c3) SHA1(e4da7b01e8ad075b7e3c8beb6668faff72db9aa2) ) | |
| 314 | ||
| 315 | ROM_REGION( 0x06000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 316 | ROM_LOAD( "vyf-a.3a", 0x00000, 0x2000, CRC(354d7330) SHA1(0dac87e502d5e9089c4e5ca87c7626940a17e9b2) ) /* chars */ | |
| 317 | ROM_LOAD( "vyf-a.3c", 0x02000, 0x2000, CRC(f48eedca) SHA1(6aef3208de8b1dd4078de20c0b5ce96219c79d40) ) | |
| 318 | ROM_LOAD( "vyf-a.3d", 0x04000, 0x2000, CRC(7d1b4d93) SHA1(9389de1230b93f529c492af6fb911c00280cae8a) ) | |
| 319 | ||
| 320 | ROM_REGION( 0x0c000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 321 | ROM_LOAD( "yf-b.5b", 0x00000, 0x2000, CRC(1299ae30) SHA1(07d47f827d8bc78a41011ec02ab64036fb8a7a18) ) /* sprites */ | |
| 322 | ROM_LOAD( "yf-b.5c", 0x02000, 0x2000, CRC(8708b888) SHA1(8c4f305a339f23ec8ed40dfd72fac0f62ee65378) ) | |
| 323 | ROM_LOAD( "yf-b.5f", 0x04000, 0x2000, CRC(d9bb8ab8) SHA1(1325308b4c85355298fec4aa3e5fec1b4b13ad86) ) | |
| 324 | ROM_LOAD( "yf-b.5e", 0x06000, 0x2000, CRC(47077e8d) SHA1(5f78b15fb360e9926ef11841d5d86f2bd9af04d1) ) | |
| 325 | ROM_LOAD( "yf-b.5j", 0x08000, 0x2000, CRC(713ef31f) SHA1(b48df9ed4f26fded3c7eaac3a52b580b2dd60477) ) | |
| 326 | ROM_LOAD( "yf-b.5k", 0x0a000, 0x2000, CRC(f49651cc) SHA1(5b87d7360bcd5883ec265b2a01a3e02e10a85345) ) | |
| 327 | ||
| 328 | ROM_REGION( 0x0520, REGION_PROMS, 0 ) | |
| 329 | ROM_LOAD( "yard.1c", 0x0000, 0x0100, CRC(08fa5103) SHA1(98af48dafbbaa42f58232bf74ccbf5da41723e71) ) /* chars palette low 4 bits */ | |
| 330 | ROM_LOAD( "yard.1d", 0x0100, 0x0100, CRC(7c04994c) SHA1(790bf1616335b9df4943cffcafa48d8e8aee009e) ) /* chars palette high 4 bits */ | |
| 331 | ROM_LOAD( "yard.1f", 0x0200, 0x0020, CRC(b8554da5) SHA1(963ca815b5f791b8a7b0937a5d392d5203049eb3) ) /* sprites palette */ | |
| 332 | ROM_LOAD( "yard.2h", 0x0220, 0x0100, CRC(e1cdfb06) SHA1(a8cc3456cfc272e3faac80370b2298d8e1f8c2fe) ) /* sprites lookup table */ | |
| 333 | ROM_LOAD( "yard.2n", 0x0320, 0x0100, CRC(cd85b646) SHA1(5268db705006058eec308afe474f4df3c15465bb) ) /* radar palette low 4 bits */ | |
| 334 | ROM_LOAD( "yard.2m", 0x0420, 0x0100, CRC(45384397) SHA1(e4c662ee81aef63efd8b4a45f85c4a78dc2d419e) ) /* radar palette high 4 bits */ | |
| 335 | ROM_END | |
| 336 | ||
| 337 | ROM_START( vs10yarj ) | |
| 338 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 339 | ROM_LOAD( "vyf-a.3n", 0x0000, 0x2000, CRC(418e01fc) SHA1(56a6515735cd88ec803e24574a28aef823a5d36b) ) | |
| 340 | ROM_LOAD( "vyf-a.3m", 0x2000, 0x2000, CRC(3b9330f8) SHA1(b35fe72cf724cfb887906060bbcf40b0c896ccf0) ) | |
| 341 | ROM_LOAD( "vyf-a.3k", 0x4000, 0x2000, CRC(a0ec15bb) SHA1(a5ce9341e9d05e33c025ac62a27faf738c88326e) ) | |
| 342 | ||
| 343 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 344 | ROM_LOAD( "yf-s.3b", 0x8000, 0x2000, CRC(0392a60c) SHA1(68030504eafc58db250099edd3c3323bdb9eff6b) ) | |
| 345 | ROM_LOAD( "yf-s.1b", 0xa000, 0x2000, CRC(6588f41a) SHA1(209305efc68171886427216b9a0b37333f40daa8) ) | |
| 346 | ROM_LOAD( "yf-s.3a", 0xc000, 0x2000, CRC(bd054e44) SHA1(f10c32c70d60680229fc0891d0e1308015fa69d6) ) | |
| 347 | ROM_LOAD( "yf-s.1a", 0xe000, 0x2000, CRC(2490d4c3) SHA1(e4da7b01e8ad075b7e3c8beb6668faff72db9aa2) ) | |
| 348 | ||
| 349 | ROM_REGION( 0x06000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 350 | ROM_LOAD( "vyf-a.3a", 0x00000, 0x2000, CRC(354d7330) SHA1(0dac87e502d5e9089c4e5ca87c7626940a17e9b2) ) /* chars */ | |
| 351 | ROM_LOAD( "vyf-a.3c", 0x02000, 0x2000, CRC(f48eedca) SHA1(6aef3208de8b1dd4078de20c0b5ce96219c79d40) ) | |
| 352 | ROM_LOAD( "vyf-a.3d", 0x04000, 0x2000, CRC(7d1b4d93) SHA1(9389de1230b93f529c492af6fb911c00280cae8a) ) | |
| 353 | ||
| 354 | ROM_REGION( 0x0c000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 355 | ROM_LOAD( "yf-b.5b", 0x00000, 0x2000, CRC(1299ae30) SHA1(07d47f827d8bc78a41011ec02ab64036fb8a7a18) ) /* sprites */ | |
| 356 | ROM_LOAD( "yf-b.5c", 0x02000, 0x2000, CRC(8708b888) SHA1(8c4f305a339f23ec8ed40dfd72fac0f62ee65378) ) | |
| 357 | ROM_LOAD( "yf-b.5f", 0x04000, 0x2000, CRC(d9bb8ab8) SHA1(1325308b4c85355298fec4aa3e5fec1b4b13ad86) ) | |
| 358 | ROM_LOAD( "yf-b.5e", 0x06000, 0x2000, CRC(47077e8d) SHA1(5f78b15fb360e9926ef11841d5d86f2bd9af04d1) ) | |
| 359 | ROM_LOAD( "yf-b.5j", 0x08000, 0x2000, CRC(713ef31f) SHA1(b48df9ed4f26fded3c7eaac3a52b580b2dd60477) ) | |
| 360 | ROM_LOAD( "yf-b.5k", 0x0a000, 0x2000, CRC(f49651cc) SHA1(5b87d7360bcd5883ec265b2a01a3e02e10a85345) ) | |
| 361 | ||
| 362 | ROM_REGION( 0x0520, REGION_PROMS, 0 ) | |
| 363 | ROM_LOAD( "yard.1c", 0x0000, 0x0100, CRC(08fa5103) SHA1(98af48dafbbaa42f58232bf74ccbf5da41723e71) ) /* chars palette low 4 bits */ | |
| 364 | ROM_LOAD( "yard.1d", 0x0100, 0x0100, CRC(7c04994c) SHA1(790bf1616335b9df4943cffcafa48d8e8aee009e) ) /* chars palette high 4 bits */ | |
| 365 | ROM_LOAD( "yard.1f", 0x0200, 0x0020, CRC(b8554da5) SHA1(963ca815b5f791b8a7b0937a5d392d5203049eb3) ) /* sprites palette */ | |
| 366 | ROM_LOAD( "yard.2h", 0x0220, 0x0100, CRC(e1cdfb06) SHA1(a8cc3456cfc272e3faac80370b2298d8e1f8c2fe) ) /* sprites lookup table */ | |
| 367 | ROM_LOAD( "yard.2n", 0x0320, 0x0100, CRC(cd85b646) SHA1(5268db705006058eec308afe474f4df3c15465bb) ) /* radar palette low 4 bits */ | |
| 368 | ROM_LOAD( "yard.2m", 0x0420, 0x0100, CRC(45384397) SHA1(e4c662ee81aef63efd8b4a45f85c4a78dc2d419e) ) /* radar palette high 4 bits */ | |
| 369 | ROM_END | |
| 370 | ||
| 371 | ||
| 372 | ||
| 373 | /************************************* | |
| 374 | * | |
| 375 | * Game drivers | |
| 376 | * | |
| 377 | *************************************/ | |
| 378 | ||
| 379 | GAME( 1983, 10yard, 0, yard, yard, 0, ROT0, "Irem", "10-Yard Fight (World)", 0 ) | |
| 380 | GAME( 1983, 10yardj, 10yard, yard, yard, 0, ROT0, "Irem", "10-Yard Fight (Japan)", 0 ) | |
| 381 | GAME( 1984, vs10yard, 10yard, yard, vsyard, 0, ROT0, "Irem", "Vs 10-Yard Fight (World, 11/05/84)", 0 ) | |
| 382 | GAME( 1984, vs10yarj, 10yard, yard, vsyard, 0, ROT0, "Irem", "Vs 10-Yard Fight (Japan)", 0 ) |
| r1649 | r1650 | |
|---|---|---|
| 87 | 87 | ***************************************************************************/ |
| 88 | 88 | |
| 89 | 89 | #include "driver.h" |
| 90 | #include "deprecat.h" | |
| 90 | 91 | #include "video/konamiic.h" |
| 91 | 92 | #include "cpu/konami/konami.h" /* for the callback and the firq irq definition */ |
| 92 | 93 | #include "machine/eeprom.h" |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | |
| 9 | 10 | extern VIDEO_UPDATE( destroyr ); |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | Known bugs: |
| 8 | 8 | * none at this time |
| 9 | 9 | |
| 10 | DIP locations verified from manual for: | |
| 11 | * aceattac | |
| 12 | * aliensyn | |
| 13 | * altbeast | |
| 14 | * atomicp | |
| 15 | * aurail | |
| 16 | * bayroute | |
| 17 | * cotton | |
| 18 | * ddux | |
| 19 | * eswat | |
| 20 | * fpoint | |
| 21 | * goldnaxe | |
| 22 | * mvp | |
| 23 | * passsht | |
| 24 | * shinobi | |
| 25 | * sonicbom | |
| 26 | * tetris | |
| 27 | * timescan | |
| 28 | * toryumon | |
| 29 | * wb3 | |
| 30 | * wrestwar | |
| 31 | ||
| 10 | 32 | **************************************************************************** |
| 11 | 33 | |
| 12 | 34 | Altered Beast 171-5521 |
| r1649 | r1650 | |
| 829 | 851 | */ |
| 830 | 852 | |
| 831 | 853 | #include "driver.h" |
| 854 | #include "deprecat.h" | |
| 832 | 855 | #include "system16.h" |
| 833 | 856 | #include "machine/segaic16.h" |
| 834 | 857 | #include "machine/fd1094.h" |
| r1649 | r1650 | |
| 1809 | 1832 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 1810 | 1833 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 1811 | 1834 | |
| 1812 | PORT_START_TAG("DSW") | |
| 1813 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:1") | |
| 1814 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1815 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1816 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:2") | |
| 1817 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 1818 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1819 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:3") | |
| 1820 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 1821 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1822 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:4") | |
| 1823 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 1824 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1825 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:5") | |
| 1826 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 1827 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1828 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:6") | |
| 1829 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 1830 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1831 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:7") | |
| 1832 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1833 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1834 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:8") | |
| 1835 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1836 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1835 | PORT_START_TAG("DSW2") | |
| 1836 | PORT_DIPUNUSED_DIPLOC( 0x0001, 0x0001, "SW2:1" ) | |
| 1837 | PORT_DIPUNUSED_DIPLOC( 0x0002, 0x0002, "SW2:2" ) | |
| 1838 | PORT_DIPUNUSED_DIPLOC( 0x0004, 0x0004, "SW2:3" ) | |
| 1839 | PORT_DIPUNUSED_DIPLOC( 0x0008, 0x0008, "SW2:4" ) | |
| 1840 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0010, "SW2:5" ) | |
| 1841 | PORT_DIPUNUSED_DIPLOC( 0x0020, 0x0020, "SW2:6" ) | |
| 1842 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "SW2:7" ) | |
| 1843 | PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0080, "SW2:8" ) | |
| 1837 | 1844 | |
| 1838 | PORT_START_TAG("COINAGE") | |
| 1839 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SWA:1,2,3,4") | |
| 1845 | PORT_START_TAG("DSW1") | |
| 1846 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3,4") | |
| 1840 | 1847 | PORT_DIPSETTING( 0x07, DEF_STR( 4C_1C ) ) |
| 1841 | 1848 | PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) ) |
| 1842 | 1849 | PORT_DIPSETTING( 0x09, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 1853 | 1860 | PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ) ) |
| 1854 | 1861 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) ) |
| 1855 | 1862 | PORT_DIPSETTING( 0x00, "Free Play (if Coin B too) or 1/1" ) |
| 1856 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW | |
| 1863 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:5,6,7,8") | |
| 1857 | 1864 | PORT_DIPSETTING( 0x70, DEF_STR( 4C_1C ) ) |
| 1858 | 1865 | PORT_DIPSETTING( 0x80, DEF_STR( 3C_1C ) ) |
| 1859 | 1866 | PORT_DIPSETTING( 0x90, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 1911 | 1918 | * |
| 1912 | 1919 | *************************************/ |
| 1913 | 1920 | |
| 1921 | static INPUT_PORTS_START( aceattac ) | |
| 1922 | PORT_INCLUDE( system16b_generic ) | |
| 1923 | ||
| 1924 | PORT_MODIFY("SERVICE") | |
| 1925 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) /* Block Switch */ | |
| 1926 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) /* Block Switch */ | |
| 1927 | ||
| 1928 | /* This is the direction control of the "hand" device for player 1 */ | |
| 1929 | /* I'm sure there is a better way to do this but I don't fully understand how the device works yet */ | |
| 1930 | PORT_MODIFY("P1") | |
| 1931 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1932 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON3 ) | |
| 1933 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON4 ) | |
| 1934 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON5 ) | |
| 1935 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON6 ) | |
| 1936 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON7 ) | |
| 1937 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON8 ) | |
| 1938 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON9 ) | |
| 1939 | ||
| 1940 | /* This is the power control of the "hand" device for player 1 */ | |
| 1941 | PORT_MODIFY("UNUSED") | |
| 1942 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON10 ) | |
| 1943 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON11 ) | |
| 1944 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON12 ) | |
| 1945 | ||
| 1946 | /* This is the direction control of the "hand" device for player 2 */ | |
| 1947 | /* I'm sure there is a better way to do this but I don't fully understand how the device works yet */ | |
| 1948 | PORT_MODIFY("P2") | |
| 1949 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1950 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 1951 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 1952 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(2) | |
| 1953 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(2) | |
| 1954 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_PLAYER(2) | |
| 1955 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_PLAYER(2) | |
| 1956 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON9 ) PORT_PLAYER(2) | |
| 1957 | ||
| 1958 | /* This is the power control of the "hand" device for player 2 */ | |
| 1959 | PORT_START_TAG("POW2") | |
| 1960 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON10 ) PORT_PLAYER(2) | |
| 1961 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON11 ) PORT_PLAYER(2) | |
| 1962 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON12 ) PORT_PLAYER(2) | |
| 1963 | ||
| 1964 | PORT_MODIFY("DSW2") | |
| 1965 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") | |
| 1966 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1967 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1968 | PORT_DIPNAME( 0x0e, 0x0e, "Starting Points" ) PORT_DIPLOCATION("SW2:2,3,4") | |
| 1969 | PORT_DIPSETTING( 0x06, "2000" ) | |
| 1970 | PORT_DIPSETTING( 0x0a, "3000" ) | |
| 1971 | PORT_DIPSETTING( 0x0c, "4000" ) | |
| 1972 | PORT_DIPSETTING( 0x0e, "5000" ) | |
| 1973 | PORT_DIPSETTING( 0x08, "6000" ) | |
| 1974 | PORT_DIPSETTING( 0x04, "7000" ) | |
| 1975 | PORT_DIPSETTING( 0x02, "8000" ) | |
| 1976 | PORT_DIPSETTING( 0x00, "9000" ) | |
| 1977 | PORT_DIPNAME( 0x30, 0x30, "Point Table" ) PORT_DIPLOCATION("SW2:5,6") | |
| 1978 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) | |
| 1979 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) | |
| 1980 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) | |
| 1981 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 1982 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 1983 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) | |
| 1984 | PORT_DIPSETTING( 0xc0, DEF_STR( Normal ) ) | |
| 1985 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) | |
| 1986 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 1987 | ||
| 1988 | PORT_START_TAG("ANALOGX1") | |
| 1989 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(75) PORT_KEYDELTA(5) PORT_REVERSE | |
| 1990 | ||
| 1991 | PORT_START_TAG("ANALOGY1") | |
| 1992 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(75) PORT_KEYDELTA(5) | |
| 1993 | ||
| 1994 | PORT_START_TAG("DIAL1") | |
| 1995 | PORT_BIT( 0x0f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(15) | |
| 1996 | ||
| 1997 | PORT_START_TAG("ANALOGX2") | |
| 1998 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(75) PORT_KEYDELTA(5) PORT_REVERSE | |
| 1999 | ||
| 2000 | PORT_START_TAG("ANALOGY2") | |
| 2001 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(75) PORT_KEYDELTA(5) | |
| 2002 | ||
| 2003 | PORT_START_TAG("DIAL2") | |
| 2004 | PORT_BIT( 0x0f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(15) | |
| 2005 | INPUT_PORTS_END | |
| 2006 | ||
| 1914 | 2007 | static INPUT_PORTS_START( aliensyn ) |
| 1915 | 2008 | PORT_INCLUDE( system16b_1button ) |
| 1916 | 2009 | |
| 1917 | PORT_MODIFY("DSW") | |
| 1918 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:2") | |
| 2010 | PORT_MODIFY("DSW2") | |
| 2011 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 1919 | 2012 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1920 | 2013 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1921 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW | |
| 2014 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 1922 | 2015 | PORT_DIPSETTING( 0x08, "2" ) |
| 1923 | 2016 | PORT_DIPSETTING( 0x0c, "3" ) |
| 1924 | 2017 | PORT_DIPSETTING( 0x04, "4" ) |
| 1925 | PORT_DIPSETTING( 0x00, "127") | |
| 1926 | PORT_DIPNAME( 0x30, 0x30, "Timer" ) PORT_DIPLOCATION("SWB:5,6") | |
| 2018 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 2019 | PORT_DIPNAME( 0x30, 0x30, "Timer" ) PORT_DIPLOCATION("SW2:5,6") | |
| 1927 | 2020 | PORT_DIPSETTING( 0x00, "120" ) |
| 1928 | 2021 | PORT_DIPSETTING( 0x10, "130" ) |
| 1929 | 2022 | PORT_DIPSETTING( 0x20, "140" ) |
| 1930 | 2023 | PORT_DIPSETTING( 0x30, "150" ) |
| 1931 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 2024 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 1932 | 2025 | PORT_DIPSETTING( 0x80, DEF_STR( Easy ) ) |
| 1933 | 2026 | PORT_DIPSETTING( 0xc0, DEF_STR( Normal ) ) |
| 1934 | 2027 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) |
| r1649 | r1650 | |
| 1939 | 2032 | static INPUT_PORTS_START( altbeast ) |
| 1940 | 2033 | PORT_INCLUDE( system16b_generic ) |
| 1941 | 2034 | |
| 1942 | PORT_MODIFY("DSW") | |
| 1943 | PORT_DIPNAME( 0x01, 0x01, "Credits needed" ) PORT_DIPLOCATION("SWB:1") | |
| 1944 | PORT_DIPSETTING( 0x01, "1 to start, 1 to continue" ) | |
| 1945 | PORT_DIPSETTING( 0x00, "2 to start, 1 to continue" ) | |
| 1946 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:2") | |
| 2035 | PORT_MODIFY("DSW2") | |
| 2036 | PORT_DIPNAME( 0x01, 0x01, "Credits Needed" ) PORT_DIPLOCATION("SW2:1") | |
| 2037 | PORT_DIPSETTING( 0x01, "1 Credit To Start" ) | |
| 2038 | PORT_DIPSETTING( 0x00, "2 Credit To Start" ) | |
| 2039 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 1947 | 2040 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1948 | 2041 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1949 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW | |
| 2042 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 1950 | 2043 | PORT_DIPSETTING( 0x08, "2" ) |
| 1951 | 2044 | PORT_DIPSETTING( 0x0c, "3" ) |
| 1952 | 2045 | PORT_DIPSETTING( 0x04, "4" ) |
| 1953 | PORT_DIPSETTING( 0x00, "240") | |
| 1954 | PORT_DIPNAME( 0x30, 0x30, "Energy Meter" ) PORT_DIPLOCATION("SWB:5,6") | |
| 2046 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 2047 | PORT_DIPNAME( 0x30, 0x30, "Player Meter" ) PORT_DIPLOCATION("SW2:5,6") | |
| 1955 | 2048 | PORT_DIPSETTING( 0x20, "2" ) |
| 1956 | 2049 | PORT_DIPSETTING( 0x30, "3" ) |
| 1957 | 2050 | PORT_DIPSETTING( 0x10, "4" ) |
| 1958 | 2051 | PORT_DIPSETTING( 0x00, "5" ) |
| 1959 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 2052 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 1960 | 2053 | PORT_DIPSETTING( 0x80, DEF_STR( Easy ) ) |
| 1961 | 2054 | PORT_DIPSETTING( 0xc0, DEF_STR( Normal ) ) |
| 1962 | 2055 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) |
| r1649 | r1650 | |
| 1967 | 2060 | static INPUT_PORTS_START( aurail ) |
| 1968 | 2061 | PORT_INCLUDE( system16b_generic ) |
| 1969 | 2062 | |
| 1970 | PORT_MODIFY("DSW") | |
| 1971 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1") | |
| 2063 | PORT_MODIFY("DSW2") | |
| 2064 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW2:1") | |
| 1972 | 2065 | PORT_DIPSETTING( 0x01, DEF_STR( Upright ) ) |
| 1973 | 2066 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| 1974 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW | |
| 2067 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 1975 | 2068 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1976 | 2069 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1977 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW | |
| 2070 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 1978 | 2071 | PORT_DIPSETTING( 0x00, "2" ) |
| 1979 | 2072 | PORT_DIPSETTING( 0x0c, "3" ) |
| 1980 | 2073 | PORT_DIPSETTING( 0x08, "4" ) |
| 1981 | 2074 | PORT_DIPSETTING( 0x04, "5" ) |
| 1982 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SWB:5") | |
| 1983 | PORT_DIPSETTING( 0x10, "80K/200K/500K/1 Mil" ) | |
| 1984 | PORT_DIPSETTING( 0x00, "100K/300K/700K/1 Mil" ) | |
| 1985 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SWB:6") | |
| 2075 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:5") | |
| 2076 | PORT_DIPSETTING( 0x10, "80K/200K/500K/1000K" ) | |
| 2077 | PORT_DIPSETTING( 0x00, "100K/300K/700K/1000K" ) | |
| 2078 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:6") | |
| 1986 | 2079 | PORT_DIPSETTING( 0x20, DEF_STR( Normal ) ) |
| 1987 | 2080 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) |
| 1988 | PORT_DIPNAME( 0x40, 0x40, "Controller select" ) PORT_DIPLOCATION("SWB:7") | |
| 1989 | PORT_DIPSETTING( 0x40, "1 Player side" ) | |
| 1990 | PORT_DIPSETTING( 0x00, "2 Players side" ) | |
| 1991 | PORT_DIPNAME( 0x80, 0x80, "Special Function Mode" ) PORT_DIPLOCATION("SWB:8") | |
| 2081 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Controller ) ) PORT_DIPLOCATION("SW2:7") | |
| 2082 | PORT_DIPSETTING( 0x40, "1 Player Side" ) | |
| 2083 | PORT_DIPSETTING( 0x00, "2 Players Side" ) | |
| 2084 | PORT_DIPNAME( 0x80, 0x80, "Special Function Mode" ) PORT_DIPLOCATION("SW2:8") | |
| 1992 | 2085 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1993 | 2086 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1994 | 2087 | INPUT_PORTS_END |
| r1649 | r1650 | |
| 1997 | 2090 | static INPUT_PORTS_START( bayroute ) |
| 1998 | 2091 | PORT_INCLUDE( system16b_generic ) |
| 1999 | 2092 | |
| 2000 | PORT_MODIFY("DSW") | |
| 2001 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SWB:1") | |
| 2093 | PORT_MODIFY("DSW2") | |
| 2094 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:1") | |
| 2002 | 2095 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2003 | 2096 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 2004 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW | |
| 2097 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 2005 | 2098 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 2006 | 2099 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2007 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW | |
| 2100 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 2008 | 2101 | PORT_DIPSETTING( 0x04, "1" ) |
| 2009 | 2102 | PORT_DIPSETTING( 0x0c, "3" ) |
| 2010 | 2103 | PORT_DIPSETTING( 0x08, "5" ) |
| 2011 | PORT_DIPSETTING( 0x00, "Unlimited") | |
| 2012 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SWB:5,6") | |
| 2013 | PORT_DIPSETTING( 0x30, "100000" ) | |
| 2014 | PORT_DIPSETTING( 0x20, "150000" ) | |
| 2015 | PORT_DIPSETTING( 0x10, "200000" ) | |
| 2104 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 2105 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 2106 | PORT_DIPSETTING( 0x30, "100k" ) | |
| 2107 | PORT_DIPSETTING( 0x20, "150k" ) | |
| 2108 | PORT_DIPSETTING( 0x10, "200k" ) | |
| 2016 | 2109 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) |
| 2017 | PORT_DIPNAME( 0xc0, 0x80, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 2110 | PORT_DIPNAME( 0xc0, 0x80, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 2018 | 2111 | PORT_DIPSETTING( 0xc0, DEF_STR( Easy ) ) |
| 2019 | 2112 | PORT_DIPSETTING( 0x80, DEF_STR( Normal ) ) |
| 2020 | 2113 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) |
| r1649 | r1650 | |
| 2058 | 2151 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_8WAY PORT_PLAYER(2) |
| 2059 | 2152 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 2060 | 2153 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 2061 | ||
| 2062 | PORT_MODIFY("DSW") | |
| 2063 | PORT_DIPUNUSED( 0x01, 0x01 ) /* 2p vs. 3p */ | |
| 2064 | PORT_DIPUNUSED( 0x02, 0x02 ) | |
| 2065 | PORT_DIPUNUSED( 0x04, 0x04 ) | |
| 2066 | PORT_DIPUNUSED( 0x08, 0x08 ) | |
| 2067 | PORT_DIPUNUSED( 0x10, 0x10 ) | |
| 2068 | PORT_DIPUNUSED( 0x20, 0x20 ) | |
| 2069 | PORT_DIPUNUSED( 0x40, 0x40 ) | |
| 2070 | PORT_DIPUNUSED( 0x80, 0x80 ) | |
| 2154 | /* | |
| 2155 | PORT_MODIFY("DSW2") | |
| 2156 | PORT_DIPUNUSED( 0x01, 0x01 ) // 2p vs. 3p | |
| 2157 | */ | |
| 2071 | 2158 | INPUT_PORTS_END |
| 2072 | 2159 | |
| 2073 | 2160 | |
| 2074 | 2161 | static INPUT_PORTS_START( cotton ) |
| 2075 | 2162 | PORT_INCLUDE( system16b_2button ) |
| 2076 | 2163 | |
| 2077 | PORT_MODIFY("DSW") | |
| 2078 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) )PORT_DIPLOCATION("SWB:1") | |
| 2164 | PORT_MODIFY("DSW2") | |
| 2165 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) )PORT_DIPLOCATION("SW2:1") | |
| 2079 | 2166 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2080 | 2167 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2081 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW | |
| 2168 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:2,3") | |
| 2082 | 2169 | PORT_DIPSETTING( 0x04, "2" ) |
| 2083 | 2170 | PORT_DIPSETTING( 0x06, "3" ) |
| 2084 | 2171 | PORT_DIPSETTING( 0x02, "4" ) |
| 2085 | 2172 | PORT_DIPSETTING( 0x00, "5" ) |
| 2086 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 2173 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:4,5") | |
| 2087 | 2174 | PORT_DIPSETTING( 0x10, DEF_STR( Easy ) ) |
| 2088 | 2175 | PORT_DIPSETTING( 0x18, DEF_STR( Normal ) ) |
| 2089 | 2176 | PORT_DIPSETTING( 0x08, DEF_STR( Hard ) ) |
| r1649 | r1650 | |
| 2094 | 2181 | static INPUT_PORTS_START( ddux ) |
| 2095 | 2182 | PORT_INCLUDE( system16b_2button ) |
| 2096 | 2183 | |
| 2097 | PORT_MODIFY("DSW") | |
| 2098 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:1") | |
| 2184 | PORT_MODIFY("DSW2") | |
| 2185 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") | |
| 2099 | 2186 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2100 | 2187 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2101 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 2188 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:2,3") | |
| 2102 | 2189 | PORT_DIPSETTING( 0x04, DEF_STR( Easy ) ) |
| 2103 | 2190 | PORT_DIPSETTING( 0x06, DEF_STR( Normal ) ) |
| 2104 | 2191 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) |
| 2105 | 2192 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 2106 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW | |
| 2193 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:4,5") | |
| 2107 | 2194 | PORT_DIPSETTING( 0x10, "2" ) |
| 2108 | 2195 | PORT_DIPSETTING( 0x18, "3" ) |
| 2109 | 2196 | PORT_DIPSETTING( 0x08, "4" ) |
| 2110 | 2197 | PORT_DIPSETTING( 0x00, "5" ) |
| 2111 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SWB:6,7") | |
| 2112 | PORT_DIPSETTING( 0x40, "150000" ) | |
| 2113 | PORT_DIPSETTING( 0x60, "200000" ) | |
| 2114 | PORT_DIPSETTING( 0x20, "300000" ) | |
| 2115 | PORT_DIPSETTING( 0x00, "400000" ) | |
| 2198 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:6,7") | |
| 2199 | PORT_DIPSETTING( 0x40, "150k" ) | |
| 2200 | PORT_DIPSETTING( 0x60, "200k" ) | |
| 2201 | PORT_DIPSETTING( 0x20, "300k" ) | |
| 2202 | PORT_DIPSETTING( 0x00, "400k" ) | |
| 2116 | 2203 | /* Switch #8 is listed as "NOT USED" and "Always OFF" */ |
| 2117 | 2204 | INPUT_PORTS_END |
| 2118 | 2205 | |
| r1649 | r1650 | |
| 2137 | 2224 | PORT_MODIFY("P2") |
| 2138 | 2225 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2139 | 2226 | |
| 2140 | PORT_MODIFY("DSW") | |
| 2141 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:2") | |
| 2227 | PORT_MODIFY("DSW2") | |
| 2228 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 2142 | 2229 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 2143 | 2230 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2144 | 2231 | PORT_DIPNAME( 0x0c, 0x0c, "VS Time" ) |
| r1649 | r1650 | |
| 2146 | 2233 | PORT_DIPSETTING( 0x0c, "2P 2:00/ 3P 2:30/ 4P 3:00" ) |
| 2147 | 2234 | PORT_DIPSETTING( 0x04, "2P 2:30/ 3P 3:00/ 4P 3:30" ) |
| 2148 | 2235 | PORT_DIPSETTING( 0x00, "2P 3:00/ 3P 3:30/ 4P 4:00" ) |
| 2149 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 2236 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 2150 | 2237 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 2151 | 2238 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) |
| 2152 | 2239 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) |
| 2153 | 2240 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 2154 | PORT_DIPNAME( 0x40, 0x40, "CPU Starts With +6 Pts." ) PORT_DIPLOCATION("SW | |
| 2241 | PORT_DIPNAME( 0x40, 0x40, "CPU Starts With +6 Pts." ) PORT_DIPLOCATION("SW2:7") | |
| 2155 | 2242 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 2156 | 2243 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2157 | 2244 | |
| r1649 | r1650 | |
| 2184 | 2271 | static INPUT_PORTS_START( eswat ) |
| 2185 | 2272 | PORT_INCLUDE( system16b_generic ) |
| 2186 | 2273 | |
| 2187 | PORT_MODIFY("DSW") | |
| 2188 | PORT_DIPNAME( 0x01, 0x01, "2 Credits to Start" ) PORT_DIPLOCATION("SWB:1") | |
| 2189 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 2190 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2191 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:2") | |
| 2274 | PORT_MODIFY("DSW2") | |
| 2275 | PORT_DIPNAME( 0x01, 0x01, "Credits To Start" ) PORT_DIPLOCATION("SW2:1") | |
| 2276 | PORT_DIPSETTING( 0x01, "1 Credit" ) | |
| 2277 | PORT_DIPSETTING( 0x00, "2 Credits" ) | |
| 2278 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 2192 | 2279 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 2193 | 2280 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2194 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW | |
| 2281 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:3") | |
| 2195 | 2282 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 2196 | 2283 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2197 | PORT_DIPNAME( 0x08, 0x08, "Time" ) PORT_DIPLOCATION("SW | |
| 2284 | PORT_DIPNAME( 0x08, 0x08, "Timer" ) PORT_DIPLOCATION("SW2:4") | |
| 2198 | 2285 | PORT_DIPSETTING( 0x08, DEF_STR( Normal ) ) |
| 2199 | 2286 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) |
| 2200 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 2287 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 2201 | 2288 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 2202 | 2289 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) |
| 2203 | 2290 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) |
| 2204 | 2291 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 2205 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW | |
| 2292 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 2206 | 2293 | PORT_DIPSETTING( 0x00, "1" ) |
| 2207 | 2294 | PORT_DIPSETTING( 0x40, "2" ) |
| 2208 | 2295 | PORT_DIPSETTING( 0xc0, "3" ) |
| r1649 | r1650 | |
| 2243 | 2330 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_PLAYER(2) /* MID */ |
| 2244 | 2331 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_PLAYER(2) /* HI */ |
| 2245 | 2332 | |
| 2246 | PORT_MODIFY("DSW") | |
| 2247 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:1") | |
| 2333 | PORT_MODIFY("DSW2") | |
| 2334 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") | |
| 2248 | 2335 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2249 | 2336 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2250 | PORT_DIPNAME( 0x0e, 0x0e, "Starting Points" ) PORT_DIPLOCATION("SW | |
| 2337 | PORT_DIPNAME( 0x0e, 0x0e, "Starting Points" ) PORT_DIPLOCATION("SW2:2,3,4") | |
| 2251 | 2338 | PORT_DIPSETTING( 0x06, "2000" ) |
| 2252 | 2339 | PORT_DIPSETTING( 0x0a, "3000" ) |
| 2253 | 2340 | PORT_DIPSETTING( 0x0c, "4000" ) |
| r1649 | r1650 | |
| 2256 | 2343 | PORT_DIPSETTING( 0x04, "7000" ) |
| 2257 | 2344 | PORT_DIPSETTING( 0x02, "8000" ) |
| 2258 | 2345 | PORT_DIPSETTING( 0x00, "9000" ) |
| 2259 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 2346 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 2260 | 2347 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 2261 | 2348 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) |
| 2262 | 2349 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) |
| 2263 | 2350 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 2264 | PORT_DIPNAME( 0xc0, 0xc0, "Point Table" ) PORT_DIPLOCATION("SW | |
| 2351 | PORT_DIPNAME( 0xc0, 0xc0, "Point Table" ) PORT_DIPLOCATION("SW2:7,8") | |
| 2265 | 2352 | PORT_DIPSETTING( 0x80, DEF_STR( Easy ) ) |
| 2266 | 2353 | PORT_DIPSETTING( 0xc0, DEF_STR( Normal ) ) |
| 2267 | 2354 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) |
| r1649 | r1650 | |
| 2290 | 2377 | static INPUT_PORTS_START( fpoint ) |
| 2291 | 2378 | PORT_INCLUDE( system16b_1button ) |
| 2292 | 2379 | |
| 2293 | PORT_MODIFY("DSW") | |
| 2294 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:2") | |
| 2380 | PORT_MODIFY("DSW2") | |
| 2381 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 2295 | 2382 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 2296 | 2383 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2297 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 2384 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 2298 | 2385 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 2299 | 2386 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) |
| 2300 | 2387 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) |
| 2301 | 2388 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 2302 | PORT_DIPNAME( 0x40, 0x40, "Clear | |
| 2389 | PORT_DIPNAME( 0x40, 0x40, "Clear Round Allowed" ) PORT_DIPLOCATION("SW2:7") /* Use button 3 */ | |
| 2303 | 2390 | PORT_DIPSETTING( 0x00, "1" ) |
| 2304 | 2391 | PORT_DIPSETTING( 0x40, "2" ) |
| 2305 | PORT_DIPNAME( 0x80, 0x80, "2 Cell Move" ) PORT_DIPLOCATION("SWB:8") | |
| 2306 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2307 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 2392 | /* SW2:8 The mode in which a block falls at twice [ usual ] speed as this when playing 25 minutes or more on one coin. */ | |
| 2393 | PORT_DIPNAME( 0x80, 0x80, "2 Cell Move" ) PORT_DIPLOCATION("SW2:8") | |
| 2394 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 2395 | PORT_DIPSETTING( 0x80, DEF_STR( Yes ) ) | |
| 2308 | 2396 | /* Switches 1, 3, 4 & 7 are listed as "Always off" */ |
| 2309 | 2397 | INPUT_PORTS_END |
| 2310 | 2398 | |
| r1649 | r1650 | |
| 2312 | 2400 | static INPUT_PORTS_START( goldnaxe ) |
| 2313 | 2401 | PORT_INCLUDE( system16b_generic ) |
| 2314 | 2402 | |
| 2315 | PORT_MODIFY("DSW") | |
| 2316 | PORT_DIPNAME( 0x01, 0x01, "Credits needed" ) PORT_DIPLOCATION("SWB:1") | |
| 2317 | PORT_DIPSETTING( 0x01, "1 to start, 1 to continue" ) | |
| 2318 | PORT_DIPSETTING( 0x00, "2 to start, 1 to continue" ) | |
| 2319 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:2") | |
| 2403 | PORT_MODIFY("DSW2") | |
| 2404 | PORT_DIPNAME( 0x01, 0x01, "Credits Needed" ) PORT_DIPLOCATION("SW2:1") | |
| 2405 | PORT_DIPSETTING( 0x01, "1 Credit To Start" ) | |
| 2406 | PORT_DIPSETTING( 0x00, "2 Credits To Start" ) | |
| 2407 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 2320 | 2408 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 2321 | 2409 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2322 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SWB:3,4") | |
| 2323 | PORT_DIPSETTING( 0x08, "1" ) | |
| 2324 | PORT_DIPSETTING( 0x0c, "2" ) | |
| 2325 | PORT_DIPSETTING( 0x04, "3" ) | |
| 2326 | PORT_DIPSETTING( 0x00, "5" ) | |
| 2327 | PORT_DIPNAME( 0x30, 0x30, "Energy Meter" ) PORT_DIPLOCATION("SWB:5,6") | |
| 2328 | PORT_DIPSETTING( 0x20, "2" ) | |
| 2329 | PORT_DIPSETTING( 0x30, "3" ) | |
| 2330 | PORT_DIPSETTING( 0x10, "4" ) | |
| 2331 | PORT_DIPSETTING( 0x00, "5" ) | |
| 2410 | PORT_DIPNAME( 0x3c, 0x3c, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:3,4,5,6") /* Definition according to manual */ | |
| 2411 | PORT_DIPSETTING( 0x00, "Special" ) | |
| 2412 | PORT_DIPSETTING( 0x14, DEF_STR( Easiest ) ) | |
| 2413 | PORT_DIPSETTING( 0x1c, DEF_STR( Easier ) ) | |
| 2414 | PORT_DIPSETTING( 0x34, DEF_STR( Easy ) ) | |
| 2415 | PORT_DIPSETTING( 0x3c, DEF_STR( Normal ) ) | |
| 2416 | PORT_DIPSETTING( 0x38, DEF_STR( Hard ) ) | |
| 2417 | PORT_DIPSETTING( 0x2c, DEF_STR( Harder ) ) | |
| 2418 | PORT_DIPSETTING( 0x28, DEF_STR( Hardest ) ) | |
| 2419 | /* | |
| 2420 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 2421 | PORT_DIPSETTING( 0x08, "1" ) | |
| 2422 | PORT_DIPSETTING( 0x0c, "2" ) | |
| 2423 | PORT_DIPSETTING( 0x04, "3" ) | |
| 2424 | PORT_DIPSETTING( 0x00, "5" ) | |
| 2425 | PORT_DIPNAME( 0x30, 0x30, "Energy Meter" ) PORT_DIPLOCATION("SW2:5,6") | |
| 2426 | PORT_DIPSETTING( 0x20, "2" ) | |
| 2427 | PORT_DIPSETTING( 0x30, "3" ) | |
| 2428 | PORT_DIPSETTING( 0x10, "4" ) | |
| 2429 | PORT_DIPSETTING( 0x00, "5" ) | |
| 2430 | */ | |
| 2332 | 2431 | INPUT_PORTS_END |
| 2333 | 2432 | |
| 2334 | 2433 | |
| r1649 | r1650 | |
| 2341 | 2440 | PORT_MODIFY("P2") |
| 2342 | 2441 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2343 | 2442 | |
| 2344 | PORT_MODIFY("DSW") | |
| 2345 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:2") | |
| 2443 | PORT_MODIFY("DSW2") | |
| 2444 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 2346 | 2445 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 2347 | 2446 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2348 | PORT_DIPNAME( 0x04, 0x00, "Start Level Select" ) PORT_DIPLOCATION("SW | |
| 2447 | PORT_DIPNAME( 0x04, 0x00, "Start Level Select" ) PORT_DIPLOCATION("SW2:3") | |
| 2349 | 2448 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 2350 | 2449 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2351 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW | |
| 2450 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:4") | |
| 2352 | 2451 | PORT_DIPSETTING( 0x08, DEF_STR( No ) ) |
| 2353 | 2452 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 2354 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 2453 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 2355 | 2454 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 2356 | 2455 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) |
| 2357 | 2456 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) |
| 2358 | 2457 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 2359 | PORT_DIPNAME( 0xc0, 0xc0, "Time Adjust" ) PORT_DIPLOCATION("SW | |
| 2458 | PORT_DIPNAME( 0xc0, 0xc0, "Time Adjust" ) PORT_DIPLOCATION("SW2:7,8") | |
| 2360 | 2459 | PORT_DIPSETTING( 0x80, DEF_STR( Easy ) ) |
| 2361 | 2460 | PORT_DIPSETTING( 0xc0, DEF_STR( Normal ) ) |
| 2362 | 2461 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) |
| r1649 | r1650 | |
| 2376 | 2475 | static INPUT_PORTS_START( mvp ) |
| 2377 | 2476 | PORT_INCLUDE( system16b_generic ) |
| 2378 | 2477 | |
| 2379 | PORT_MODIFY("DSW") | |
| 2380 | PORT_DIPNAME( 0x01, 0x01, "Credits needed" ) PORT_DIPLOCATION("SWB:1") | |
| 2381 | PORT_DIPSETTING( 0x01, "1 to start, 1 to continue" ) | |
| 2382 | PORT_DIPSETTING( 0x00, "2 to start, 1 to continue" ) | |
| 2383 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:2") | |
| 2478 | PORT_MODIFY("DSW2") | |
| 2479 | PORT_DIPNAME( 0x01, 0x01, "Credits To Start" ) PORT_DIPLOCATION("SW2:1") | |
| 2480 | PORT_DIPSETTING( 0x01, "1 Credit" ) | |
| 2481 | PORT_DIPSETTING( 0x00, "2 Credits" ) | |
| 2482 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 2384 | 2483 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 2385 | 2484 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2386 | PORT_DIPNAME( 0x04, 0x04, "Innings" ) PORT_DIPLOCATION("SWB:3") | |
| 2387 | PORT_DIPSETTING( 0x04, "1 Credit 1 Inning Only" ) | |
| 2388 | PORT_DIPSETTING( 0x00, "+2 Credits 3 Innings" ) | |
| 2389 | PORT_DIPNAME( 0x38, 0x38, "Time Limits" ) PORT_DIPLOCATION("SWB:4,5,6") | |
| 2390 | PORT_DIPSETTING( 0x18, DEF_STR( Easy ) ) | |
| 2391 | PORT_DIPSETTING( 0x28, "Easy 2" ) | |
| 2392 | PORT_DIPSETTING( 0x08, "Easy 3" ) | |
| 2393 | PORT_DIPSETTING( 0x38, DEF_STR( Normal ) ) | |
| 2394 | PORT_DIPSETTING( 0x30, DEF_STR( Hard ) ) | |
| 2395 | PORT_DIPSETTING( 0x10, "Hard 2" ) | |
| 2396 | PORT_DIPSETTING( 0x20, "Hard 3" ) | |
| 2397 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 2398 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SWB:7,8") | |
| 2485 | PORT_DIPNAME( 0x04, 0x04, "Innings" ) PORT_DIPLOCATION("SW2:3") | |
| 2486 | PORT_DIPSETTING( 0x04, "1 Credit 1 Inning" ) | |
| 2487 | PORT_DIPSETTING( 0x00, "2 Credits 3 Innings" ) | |
| 2488 | PORT_DIPNAME( 0x38, 0x38, "Time Limits" ) PORT_DIPLOCATION("SW2:4,5,6") | |
| 2489 | PORT_DIPSETTING( 0x38, "1 Normal" ) | |
| 2490 | PORT_DIPSETTING( 0x18, "2" ) | |
| 2491 | PORT_DIPSETTING( 0x28, "3" ) | |
| 2492 | PORT_DIPSETTING( 0x08, "4" ) | |
| 2493 | PORT_DIPSETTING( 0x30, "5" ) | |
| 2494 | PORT_DIPSETTING( 0x10, "6" ) | |
| 2495 | PORT_DIPSETTING( 0x20, "7" ) | |
| 2496 | PORT_DIPSETTING( 0x00, "8 Hardest" ) | |
| 2497 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 2399 | 2498 | PORT_DIPSETTING( 0x80, DEF_STR( Easy ) ) |
| 2400 | PORT_DIPSETTING( 0x40, | |
| 2499 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) | |
| 2401 | 2500 | PORT_DIPSETTING( 0xc0, DEF_STR( Normal ) ) |
| 2402 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) | |
| 2501 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 2403 | 2502 | INPUT_PORTS_END |
| 2404 | 2503 | |
| 2405 | 2504 | |
| r1649 | r1650 | |
| 2412 | 2511 | PORT_MODIFY("P2") |
| 2413 | 2512 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) |
| 2414 | 2513 | |
| 2415 | PORT_MODIFY("DSW") | |
| 2416 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:1") | |
| 2514 | PORT_MODIFY("DSW2") | |
| 2515 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") | |
| 2417 | 2516 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2418 | 2517 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2419 | PORT_DIPNAME( 0x0e, 0x0 | |
| 2518 | PORT_DIPNAME( 0x0e, 0x0e, "Initial Point" ) PORT_DIPLOCATION("SW2:2,3,4") | |
| 2420 | 2519 | PORT_DIPSETTING( 0x06, "2000" ) |
| 2421 | 2520 | PORT_DIPSETTING( 0x0a, "3000" ) |
| 2422 | 2521 | PORT_DIPSETTING( 0x0c, "4000" ) |
| r1649 | r1650 | |
| 2425 | 2524 | PORT_DIPSETTING( 0x04, "7000" ) |
| 2426 | 2525 | PORT_DIPSETTING( 0x02, "8000" ) |
| 2427 | 2526 | PORT_DIPSETTING( 0x00, "9000" ) |
| 2428 | PORT_DIPNAME( 0x30, 0x30, "Point Table" ) PORT_DIPLOCATION("SW | |
| 2527 | PORT_DIPNAME( 0x30, 0x30, "Point Table" ) PORT_DIPLOCATION("SW2:5,6") | |
| 2429 | 2528 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 2430 | 2529 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) |
| 2431 | 2530 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) |
| 2432 | 2531 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 2433 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 2532 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 2434 | 2533 | PORT_DIPSETTING( 0x80, DEF_STR( Easy ) ) |
| 2435 | 2534 | PORT_DIPSETTING( 0xc0, DEF_STR( Normal ) ) |
| 2436 | 2535 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) |
| r1649 | r1650 | |
| 2485 | 2584 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(4) |
| 2486 | 2585 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(4) |
| 2487 | 2586 | |
| 2488 | PORT_MODIFY("DSW") | |
| 2489 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:1") | |
| 2587 | PORT_MODIFY("DSW2") | |
| 2588 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") | |
| 2490 | 2589 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2491 | 2590 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2492 | PORT_DIPNAME( 0x0e, 0x00, "Initial Point" ) PORT_DIPLOCATION("SW | |
| 2591 | PORT_DIPNAME( 0x0e, 0x00, "Initial Point" ) PORT_DIPLOCATION("SW2:2,3,4") | |
| 2493 | 2592 | PORT_DIPSETTING( 0x06, "2000" ) |
| 2494 | 2593 | PORT_DIPSETTING( 0x0a, "3000" ) |
| 2495 | 2594 | PORT_DIPSETTING( 0x0c, "4000" ) |
| r1649 | r1650 | |
| 2498 | 2597 | PORT_DIPSETTING( 0x04, "7000" ) |
| 2499 | 2598 | PORT_DIPSETTING( 0x02, "8000" ) |
| 2500 | 2599 | PORT_DIPSETTING( 0x00, "9000" ) |
| 2501 | PORT_DIPNAME( 0x30, 0x30, "Point Table" ) PORT_DIPLOCATION("SW | |
| 2600 | PORT_DIPNAME( 0x30, 0x30, "Point Table" ) PORT_DIPLOCATION("SW2:5,6") | |
| 2502 | 2601 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 2503 | 2602 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) |
| 2504 | 2603 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) |
| 2505 | 2604 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 2506 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 2605 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 2507 | 2606 | PORT_DIPSETTING( 0x80, DEF_STR( Easy ) ) |
| 2508 | 2607 | PORT_DIPSETTING( 0xc0, DEF_STR( Normal ) ) |
| 2509 | 2608 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) |
| r1649 | r1650 | |
| 2515 | 2614 | static INPUT_PORTS_START( riotcity ) |
| 2516 | 2615 | PORT_INCLUDE( system16b_2button ) |
| 2517 | 2616 | |
| 2518 | PORT_MODIFY("DSW") | |
| 2519 | PORT_DIPNAME( 0x01, 0x01, "2 Credits to Start" ) PORT_DIPLOCATION("SWB:1") | |
| 2617 | PORT_MODIFY("DSW2") | |
| 2618 | PORT_DIPNAME( 0x01, 0x01, "2 Credits to Start" ) PORT_DIPLOCATION("SW2:1") | |
| 2520 | 2619 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2521 | 2620 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2522 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW | |
| 2621 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 2523 | 2622 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 2524 | 2623 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2525 | PORT_DIPNAME( 0x0c, 0x08, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW | |
| 2624 | PORT_DIPNAME( 0x0c, 0x08, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 2526 | 2625 | PORT_DIPSETTING( 0x00, "1" ) |
| 2527 | 2626 | PORT_DIPSETTING( 0x0c, "2" ) |
| 2528 | 2627 | PORT_DIPSETTING( 0x08, "3" ) |
| 2529 | 2628 | PORT_DIPSETTING( 0x04, "4" ) |
| 2530 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW | |
| 2629 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 2531 | 2630 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 2532 | 2631 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) |
| 2533 | 2632 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) |
| 2534 | 2633 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 2535 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 2634 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7") | |
| 2536 | 2635 | PORT_DIPSETTING( 0x40, DEF_STR( Normal ) ) |
| 2537 | 2636 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) |
| 2538 | PORT_DIPNAME( 0x80, 0x80, "Attack Button to Start" ) PORT_DIPLOCATION("SW | |
| 2637 | PORT_DIPNAME( 0x80, 0x80, "Attack Button to Start" ) PORT_DIPLOCATION("SW2:8") | |
| 2539 | 2638 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2540 | 2639 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2541 | 2640 | INPUT_PORTS_END |
| r1649 | r1650 | |
| 2550 | 2649 | PORT_MODIFY("P2") |
| 2551 | 2650 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2552 | 2651 | |
| 2553 | PORT_MODIFY("DSW") | |
| 2554 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:1") | |
| 2652 | PORT_MODIFY("DSW2") | |
| 2653 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") | |
| 2555 | 2654 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2556 | 2655 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2557 | PORT_DIPNAME( 0x02, 0x02, "Cancel per Credit" ) PORT_DIPLOCATION("SW | |
| 2656 | PORT_DIPNAME( 0x02, 0x02, "Cancel per Credit" ) PORT_DIPLOCATION("SW2:2") | |
| 2558 | 2657 | PORT_DIPSETTING( 0x00, "2" ) |
| 2559 | 2658 | PORT_DIPSETTING( 0x02, "3" ) |
| 2560 | PORT_DIPNAME( 0x04, 0x00, "Timer Speed" ) PORT_DIPLOCATION("SW | |
| 2659 | PORT_DIPNAME( 0x04, 0x00, "Timer Speed" ) PORT_DIPLOCATION("SW2:3") | |
| 2561 | 2660 | PORT_DIPSETTING( 0x04, "20 seconds" ) |
| 2562 | 2661 | PORT_DIPSETTING( 0x00, "30 seconds" ) |
| 2563 | PORT_DIPNAME( 0x08, 0x08, "PCM Voice" ) PORT_DIPLOCATION("SW | |
| 2662 | PORT_DIPNAME( 0x08, 0x08, "PCM Voice" ) PORT_DIPLOCATION("SW2:4") | |
| 2564 | 2663 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2565 | 2664 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 2566 | PORT_DIPNAME( 0x30, 0x30, "Omikuji Difficulty" ) PORT_DIPLOCATION("SW | |
| 2665 | PORT_DIPNAME( 0x30, 0x30, "Omikuji Difficulty" ) PORT_DIPLOCATION("SW2:5,6") | |
| 2567 | 2666 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 2568 | 2667 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) |
| 2569 | 2668 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) |
| 2570 | 2669 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 2571 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 2670 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 2572 | 2671 | PORT_DIPSETTING( 0x80, DEF_STR( Easy ) ) |
| 2573 | 2672 | PORT_DIPSETTING( 0xc0, DEF_STR( Normal ) ) |
| 2574 | 2673 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) |
| r1649 | r1650 | |
| 2599 | 2698 | PORT_MODIFY("P2") |
| 2600 | 2699 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2601 | 2700 | |
| 2602 | PORT_MODIFY("DSW") | |
| 2603 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SWB:1") | |
| 2701 | PORT_MODIFY("DSW2") | |
| 2702 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:1") | |
| 2604 | 2703 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2605 | 2704 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2606 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW | |
| 2705 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 2607 | 2706 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 2608 | 2707 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2609 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW | |
| 2708 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 2610 | 2709 | PORT_DIPSETTING( 0x08, "2" ) |
| 2611 | 2710 | PORT_DIPSETTING( 0x0c, "3" ) |
| 2612 | 2711 | PORT_DIPSETTING( 0x04, "4" ) |
| 2613 | 2712 | PORT_DIPSETTING( 0x00, "Free") |
| 2614 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 2713 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 2615 | 2714 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 2616 | 2715 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) |
| 2617 | 2716 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) |
| 2618 | 2717 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 2619 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW | |
| 2718 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 2620 | 2719 | PORT_DIPSETTING( 0x80, "Every 50000" ) |
| 2621 | 2720 | PORT_DIPSETTING( 0xc0, "50000" ) |
| 2622 | 2721 | PORT_DIPSETTING( 0x40, "100000" ) |
| r1649 | r1650 | |
| 2639 | 2738 | static INPUT_PORTS_START( shinobi ) |
| 2640 | 2739 | PORT_INCLUDE( system16b_generic ) |
| 2641 | 2740 | |
| 2642 | PORT_MODIFY("DSW") | |
| 2643 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1") | |
| 2741 | PORT_MODIFY("DSW2") | |
| 2742 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW2:1") | |
| 2644 | 2743 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 2645 | 2744 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 2646 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW | |
| 2745 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 2647 | 2746 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 2648 | 2747 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2649 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW | |
| 2748 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 2650 | 2749 | PORT_DIPSETTING( 0x08, "2" ) |
| 2651 | 2750 | PORT_DIPSETTING( 0x0c, "3" ) |
| 2652 | 2751 | PORT_DIPSETTING( 0x04, "5" ) |
| 2653 | PORT_DIPSETTING( 0x00, "240") | |
| 2654 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SWB:5,6") | |
| 2752 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 2753 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 2655 | 2754 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 2656 | 2755 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) |
| 2657 | 2756 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) |
| 2658 | 2757 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 2659 | PORT_DIPNAME( 0x40, 0x40, "Enemy's Bullet Speed" ) PORT_DIPLOCATION("SW | |
| 2758 | PORT_DIPNAME( 0x40, 0x40, "Enemy's Bullet Speed" ) PORT_DIPLOCATION("SW2:7") | |
| 2660 | 2759 | PORT_DIPSETTING( 0x40, "Slow" ) |
| 2661 | 2760 | PORT_DIPSETTING( 0x00, "Fast" ) |
| 2662 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Language ) ) PORT_DIPLOCATION("SW | |
| 2761 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Language ) ) PORT_DIPLOCATION("SW2:8") | |
| 2663 | 2762 | PORT_DIPSETTING( 0x80, DEF_STR( Japanese ) ) |
| 2664 | 2763 | PORT_DIPSETTING( 0x00, DEF_STR( English ) ) |
| 2665 | 2764 | INPUT_PORTS_END |
| r1649 | r1650 | |
| 2720 | 2819 | static INPUT_PORTS_START( sonicbom ) |
| 2721 | 2820 | PORT_INCLUDE( system16b_2button ) |
| 2722 | 2821 | |
| 2723 | PORT_MODIFY("DSW") | |
| 2724 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SWB:1,2,3") | |
| 2822 | PORT_MODIFY("DSW2") | |
| 2823 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:1,2,3") | |
| 2725 | 2824 | PORT_DIPSETTING( 0x06, DEF_STR( Easy ) ) |
| 2726 | 2825 | PORT_DIPSETTING( 0x07, DEF_STR( Normal ) ) |
| 2727 | 2826 | PORT_DIPSETTING( 0x05, "Hard 1" ) |
| r1649 | r1650 | |
| 2730 | 2829 | PORT_DIPSETTING( 0x02, "Hard 4" ) |
| 2731 | 2830 | PORT_DIPSETTING( 0x01, "Hard 5" ) |
| 2732 | 2831 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 2733 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW | |
| 2832 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:4,5") | |
| 2734 | 2833 | PORT_DIPSETTING( 0x10, "2" ) |
| 2735 | 2834 | PORT_DIPSETTING( 0x18, "3" ) |
| 2736 | 2835 | PORT_DIPSETTING( 0x08, "4" ) |
| 2737 | 2836 | PORT_DIPSETTING( 0x00, "5" ) |
| 2738 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SWB:6,7") | |
| 2739 | PORT_DIPSETTING( 0x40, "30000" ) | |
| 2740 | PORT_DIPSETTING( 0x60, "40000" ) | |
| 2741 | PORT_DIPSETTING( 0x20, "50000" ) | |
| 2742 | PORT_DIPSETTING( 0x00, "60000" ) | |
| 2743 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:8") | |
| 2837 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:6,7") | |
| 2838 | PORT_DIPSETTING( 0x40, "30k" ) | |
| 2839 | PORT_DIPSETTING( 0x60, "40k" ) | |
| 2840 | PORT_DIPSETTING( 0x20, "50k" ) | |
| 2841 | PORT_DIPSETTING( 0x00, "80k" ) | |
| 2842 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW2:8") | |
| 2744 | 2843 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 2745 | 2844 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) |
| 2746 | 2845 | INPUT_PORTS_END |
| r1649 | r1650 | |
| 2755 | 2854 | PORT_MODIFY("P2") |
| 2756 | 2855 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2757 | 2856 | |
| 2758 | PORT_MODIFY("DSW") | |
| 2759 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:2") | |
| 2857 | PORT_MODIFY("DSW2") | |
| 2858 | /* SW2:1,3,4,7,8 Unused according to manual. | |
| 2859 | From the code SW2:3,4 looks like some kind of difficulty level, | |
| 2860 | but all 4 levels points to the same place so it doesn't actually change anything!! */ | |
| 2861 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 2760 | 2862 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 2761 | 2863 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2762 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:3,4") // from the code it looks like some kind of difficulty | |
| 2763 | PORT_DIPSETTING( 0x0c, "A" ) // level, but all 4 levels points to the same place | |
| 2764 | PORT_DIPSETTING( 0x08, "B" ) // so it doesn't actually change anything!! | |
| 2765 | PORT_DIPSETTING( 0x04, "C" ) | |
| 2766 | PORT_DIPSETTING( 0x00, "D" ) | |
| 2767 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SWB:5,6") | |
| 2864 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 2768 | 2865 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 2769 | 2866 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) |
| 2770 | 2867 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) |
| r1649 | r1650 | |
| 2796 | 2893 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SWE:5") |
| 2797 | 2894 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 2798 | 2895 | PORT_DIPSETTING( 0x10, DEF_STR( Yes ) ) |
| 2799 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unused ) ) PORT_DIPLOCATION("SWE:6") | |
| 2800 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 2801 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2802 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) PORT_DIPLOCATION("SWE:7") | |
| 2803 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 2804 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2805 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) PORT_DIPLOCATION("SWE:8") | |
| 2806 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 2807 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2896 | PORT_DIPUNUSED_DIPLOC( 0x0020, 0x0020, "SWE:6" ) /* Listed as "Unused" */ | |
| 2897 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "SWE:7" ) /* Listed as "Unused" */ | |
| 2898 | PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0080, "SWE:8" ) /* Listed as "Unused" */ | |
| 2808 | 2899 | |
| 2809 | PORT_MODIFY("DSW") | |
| 2810 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1") | |
| 2900 | PORT_MODIFY("DSW2") | |
| 2901 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW2:1") | |
| 2811 | 2902 | PORT_DIPSETTING( 0x01, DEF_STR( Upright ) ) |
| 2812 | 2903 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| 2813 | PORT_DIPNAME( 0x1e, 0x14, "Bonus" ) PORT_DIPLOCATION("SWB:2,3,4,5") | |
| 2814 | PORT_DIPSETTING( 0x16, "Replay 1000000/2000000" ) | |
| 2815 | PORT_DIPSETTING( 0x14, "Replay 1200000/2500000" ) | |
| 2816 | PORT_DIPSETTING( 0x12, "Replay 1500000/3000000" ) | |
| 2817 | PORT_DIPSETTING( 0x10, "Replay 2000000/4000000" ) | |
| 2818 | PORT_DIPSETTING( 0x1c, "Replay 1000000" ) | |
| 2819 | PORT_DIPSETTING( 0x1e, "Replay 1200000" ) | |
| 2820 | PORT_DIPSETTING( 0x1a, "Replay 1500000" ) | |
| 2821 | PORT_DIPSETTING( 0x18, "Replay 1800000" ) | |
| 2822 | PORT_DIPSETTING( 0x0e, "ExtraBall 100000" ) | |
| 2823 | PORT_DIPSETTING( 0x0c, "ExtraBall 200000" ) | |
| 2824 | PORT_DIPSETTING( 0x0a, "ExtraBall 300000" ) | |
| 2825 | PORT_DIPSETTING( 0x08, "ExtraBall 400000" ) | |
| 2826 | PORT_DIPSETTING( 0x06, "ExtraBall 500000" ) | |
| 2827 | PORT_DIPSETTING( 0x04, "ExtraBall 600000" ) | |
| 2828 | PORT_DIPSETTING( 0x02, "ExtraBall 700000" ) | |
| 2904 | PORT_DIPNAME( 0x1e, 0x1e, "Extended Score" ) PORT_DIPLOCATION("SW2:2,3,4,5") | |
| 2905 | PORT_DIPSETTING( 0x16, "Credit 1000000/2000000" ) | |
| 2906 | PORT_DIPSETTING( 0x14, "Credit 1200000/2500000" ) | |
| 2907 | PORT_DIPSETTING( 0x12, "Credit 1500000/3000000" ) | |
| 2908 | PORT_DIPSETTING( 0x10, "Credit 2000000/4000000" ) | |
| 2909 | PORT_DIPSETTING( 0x1c, "Credit 1000000" ) | |
| 2910 | PORT_DIPSETTING( 0x1e, "Credit 1200000" ) | |
| 2911 | PORT_DIPSETTING( 0x1a, "Credit 1500000" ) | |
| 2912 | PORT_DIPSETTING( 0x18, "Credit 1800000" ) | |
| 2913 | PORT_DIPSETTING( 0x0e, "Ball 100000" ) | |
| 2914 | PORT_DIPSETTING( 0x0c, "Ball 200000" ) | |
| 2915 | PORT_DIPSETTING( 0x0a, "Ball 300000" ) | |
| 2916 | PORT_DIPSETTING( 0x08, "Ball 400000" ) | |
| 2917 | PORT_DIPSETTING( 0x06, "Ball 500000" ) | |
| 2918 | PORT_DIPSETTING( 0x04, "Ball 600000" ) | |
| 2919 | PORT_DIPSETTING( 0x02, "Ball 700000" ) | |
| 2829 | 2920 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) |
| 2830 | PORT_DIPNAME( 0x20, 0x20, "Match" ) PORT_DIPLOCATION("SWB:6") | |
| 2831 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2832 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 2833 | PORT_DIPNAME( 0x40, 0x40, "Pin Rebound" ) PORT_DIPLOCATION("SWB:7") | |
| 2921 | PORT_DIPNAME( 0x20, 0x20, "Number Match" ) PORT_DIPLOCATION("SW2:6") | |
| 2922 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 2923 | PORT_DIPSETTING( 0x20, DEF_STR( Yes ) ) | |
| 2924 | PORT_DIPNAME( 0x40, 0x40, "Pin Rebound" ) PORT_DIPLOCATION("SW2:7") | |
| 2834 | 2925 | PORT_DIPSETTING( 0x40, "Well" ) |
| 2835 | 2926 | PORT_DIPSETTING( 0x00, "A Little" ) |
| 2836 | 2927 | /* |
| r1649 | r1650 | |
| 2838 | 2929 | rebound strength and the resulting difficulty or ease in which the |
| 2839 | 2930 | ball goes out of play. |
| 2840 | 2931 | */ |
| 2841 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Lives ) ) | |
| 2932 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:8") | |
| 2842 | 2933 | PORT_DIPSETTING( 0x80, "3" ) |
| 2843 | 2934 | PORT_DIPSETTING( 0x00, "5" ) |
| 2844 | 2935 | INPUT_PORTS_END |
| r1649 | r1650 | |
| 2847 | 2938 | static INPUT_PORTS_START( toryumon ) |
| 2848 | 2939 | PORT_INCLUDE( system16b_1button ) |
| 2849 | 2940 | |
| 2850 | PORT_MODIFY("DSW") | |
| 2851 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:1") | |
| 2941 | PORT_MODIFY("DSW2") | |
| 2942 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") | |
| 2852 | 2943 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2853 | 2944 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2854 | PORT_DIPNAME( 0x10, 0x10, "VS-Mode Battle" ) PORT_DIPLOCATION("SWB:5") | |
| 2855 | PORT_DIPSETTING( 0x10, "1" ) | |
| 2856 | PORT_DIPSETTING( 0x00, "3" ) | |
| 2857 | PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SWB:6,7,8") | |
| 2945 | PORT_DIPNAME( 0x10, 0x10, "VS Play Mode" ) PORT_DIPLOCATION("SW2:5") | |
| 2946 | PORT_DIPSETTING( 0x10, "1 Set" ) | |
| 2947 | PORT_DIPSETTING( 0x00, "3 Set" ) | |
| 2948 | PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:6,7,8") | |
| 2858 | 2949 | PORT_DIPSETTING( 0xc0, DEF_STR( Easy ) ) |
| 2859 | 2950 | PORT_DIPSETTING( 0xe0, DEF_STR( Normal ) ) |
| 2860 | 2951 | PORT_DIPSETTING( 0xa0, DEF_STR( Hard ) ) |
| r1649 | r1650 | |
| 2869 | 2960 | static INPUT_PORTS_START( tturf ) |
| 2870 | 2961 | PORT_INCLUDE( system16b_generic ) |
| 2871 | 2962 | |
| 2872 | PORT_MODIFY("DSW") | |
| 2873 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Continues ) ) PORT_DIPLOCATION("SWB:1,2") | |
| 2963 | PORT_MODIFY("DSW2") | |
| 2964 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Continues ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 2874 | 2965 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) |
| 2875 | 2966 | PORT_DIPSETTING( 0x01, "3" ) |
| 2876 | 2967 | PORT_DIPSETTING( 0x02, "Unlimited" ) |
| 2877 | 2968 | PORT_DIPSETTING( 0x03, "Unlimited" ) |
| 2878 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 2969 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 2879 | 2970 | PORT_DIPSETTING( 0x08, DEF_STR( Easy ) ) |
| 2880 | 2971 | PORT_DIPSETTING( 0x0c, DEF_STR( Normal ) ) |
| 2881 | 2972 | PORT_DIPSETTING( 0x04, DEF_STR( Hard ) ) |
| 2882 | 2973 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 2883 | PORT_DIPNAME( 0x30, 0x20, "Starting Energy" ) PORT_DIPLOCATION("SW | |
| 2974 | PORT_DIPNAME( 0x30, 0x20, "Starting Energy" ) PORT_DIPLOCATION("SW2:5,6") | |
| 2884 | 2975 | PORT_DIPSETTING( 0x00, "3" ) |
| 2885 | 2976 | PORT_DIPSETTING( 0x10, "4" ) |
| 2886 | 2977 | PORT_DIPSETTING( 0x20, "6" ) |
| 2887 | 2978 | PORT_DIPSETTING( 0x30, "8" ) |
| 2888 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW | |
| 2979 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:7") | |
| 2889 | 2980 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 2890 | 2981 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2891 | PORT_DIPNAME( 0x80, 0x00, "Bonus Energy" ) PORT_DIPLOCATION("SW | |
| 2982 | PORT_DIPNAME( 0x80, 0x00, "Bonus Energy" ) PORT_DIPLOCATION("SW2:8") | |
| 2892 | 2983 | PORT_DIPSETTING( 0x80, "1" ) |
| 2893 | 2984 | PORT_DIPSETTING( 0x00, "2" ) |
| 2894 | 2985 | INPUT_PORTS_END |
| r1649 | r1650 | |
| 2897 | 2988 | static INPUT_PORTS_START( wb3 ) |
| 2898 | 2989 | PORT_INCLUDE( system16b_2button ) |
| 2899 | 2990 | |
| 2900 | PORT_MODIFY("DSW") | |
| 2901 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:2") | |
| 2991 | PORT_MODIFY("DSW2") | |
| 2992 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 2902 | 2993 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 2903 | 2994 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2904 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW | |
| 2995 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 2905 | 2996 | PORT_DIPSETTING( 0x00, "2" ) |
| 2906 | 2997 | PORT_DIPSETTING( 0x0c, "3" ) |
| 2907 | 2998 | PORT_DIPSETTING( 0x08, "4" ) |
| 2908 | 2999 | PORT_DIPSETTING( 0x04, "5" ) |
| 2909 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SWB:5") //?? | |
| 2910 | PORT_DIPSETTING( 0x10, "5000/10000/18000/30000" ) | |
| 2911 | PORT_DIPSETTING( 0x00, "5000/15000/30000" ) | |
| 2912 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SWB:6") | |
| 3000 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:5") | |
| 3001 | PORT_DIPSETTING( 0x10, "50k/100k/180k/300k" ) | |
| 3002 | PORT_DIPSETTING( 0x00, "50k/150k/300k" ) | |
| 3003 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:6") | |
| 2913 | 3004 | PORT_DIPSETTING( 0x20, DEF_STR( Normal ) ) |
| 2914 | 3005 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) |
| 2915 | PORT_DIPNAME( 0x40, 0x40, "Test Mode" ) PORT_DIPLOCATION("SW | |
| 3006 | PORT_DIPNAME( 0x40, 0x40, "Test Mode" ) PORT_DIPLOCATION("SW2:7") | |
| 2916 | 3007 | PORT_DIPSETTING( 0x40, DEF_STR( No ) ) /* Normal game */ |
| 2917 | 3008 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) /* Levels are selectable / Player is Invincible */ |
| 2918 | 3009 | /* Switches 1 & 8 are listed as "Always off" */ |
| r1649 | r1650 | |
| 2922 | 3013 | static INPUT_PORTS_START( wrestwar ) |
| 2923 | 3014 | PORT_INCLUDE( system16b_2button ) |
| 2924 | 3015 | |
| 2925 | PORT_MODIFY("DSW") | |
| 2926 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:2") | |
| 3016 | PORT_MODIFY("DSW2") | |
| 3017 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 2927 | 3018 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 2928 | 3019 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2929 | PORT_DIPNAME( 0x0c, 0x0c, "Round Time" ) PORT_DIPLOCATION("SW | |
| 3020 | PORT_DIPNAME( 0x0c, 0x0c, "Round Time" ) PORT_DIPLOCATION("SW2:3,4") | |
| 2930 | 3021 | PORT_DIPSETTING( 0x00, "100" ) |
| 2931 | 3022 | PORT_DIPSETTING( 0x0c, "110" ) |
| 2932 | 3023 | PORT_DIPSETTING( 0x08, "120" ) |
| 2933 | 3024 | PORT_DIPSETTING( 0x04, "130" ) |
| 2934 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW | |
| 3025 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:6") | |
| 2935 | 3026 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 2936 | 3027 | PORT_DIPSETTING( 0x20, DEF_STR( Yes ) ) |
| 2937 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW | |
| 3028 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 2938 | 3029 | PORT_DIPSETTING( 0x80, DEF_STR( Easy ) ) |
| 2939 | 3030 | PORT_DIPSETTING( 0xc0, DEF_STR( Normal ) ) |
| 2940 | 3031 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) |
| r1649 | r1650 | |
| 2963 | 3054 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) |
| 2964 | 3055 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2965 | 3056 | |
| 2966 | PORT_START_TAG("DSW0") | |
| 2967 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW0:1,2,3") | |
| 3057 | PORT_START_TAG("DSW1") | |
| 3058 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:1,2,3") | |
| 2968 | 3059 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) |
| 2969 | 3060 | PORT_DIPSETTING( 0x04, DEF_STR( 3C_1C ) ) |
| 2970 | 3061 | PORT_DIPSETTING( 0x03, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 2973 | 3064 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) ) |
| 2974 | 3065 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_4C ) ) |
| 2975 | 3066 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_5C ) ) |
| 2976 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW | |
| 3067 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:4,5,6") | |
| 2977 | 3068 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) |
| 2978 | 3069 | PORT_DIPSETTING( 0x20, DEF_STR( 3C_1C ) ) |
| 2979 | 3070 | PORT_DIPSETTING( 0x18, DEF_STR( 2C_1C ) ) |
| r1649 | r1650 | |
| 2982 | 3073 | PORT_DIPSETTING( 0x28, DEF_STR( 1C_3C ) ) |
| 2983 | 3074 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_4C ) ) |
| 2984 | 3075 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_5C ) ) |
| 2985 | PORT_DIPNAME( 0xC0, 0xC0, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW | |
| 3076 | PORT_DIPNAME( 0xC0, 0xC0, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:7,8") | |
| 2986 | 3077 | PORT_DIPSETTING( 0xC0, "1" ) |
| 2987 | 3078 | PORT_DIPSETTING( 0x80, "2" ) |
| 2988 | 3079 | PORT_DIPSETTING( 0x40, "3" ) |
| 2989 | 3080 | PORT_DIPSETTING( 0x00, "5" ) |
| 2990 | 3081 | |
| 2991 | PORT_START_TAG("DSW1") | |
| 2992 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:1,2") | |
| 3082 | PORT_START_TAG("DSW2") | |
| 3083 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 2993 | 3084 | PORT_DIPSETTING( 0x01, DEF_STR( Easy ) ) |
| 2994 | 3085 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) |
| 2995 | 3086 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) |
| 2996 | 3087 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 2997 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Level_Select ) ) PORT_DIPLOCATION("SW | |
| 3088 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Level_Select ) ) PORT_DIPLOCATION("SW2:3") /* doesn't seem to work? */ | |
| 2998 | 3089 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 2999 | 3090 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 3000 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW | |
| 3091 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:4") /* doesn't seem to work? */ | |
| 3001 | 3092 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 3002 | 3093 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 3003 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW | |
| 3094 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:5") | |
| 3004 | 3095 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 3005 | 3096 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 3006 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW | |
| 3097 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:6") | |
| 3007 | 3098 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 3008 | 3099 | PORT_DIPSETTING( 0x20, DEF_STR( Yes ) ) |
| 3009 | PORT_DIPNAME( 0x40, 0x00, "Game Mode" ) PORT_DIPLOCATION("SW | |
| 3100 | PORT_DIPNAME( 0x40, 0x00, "Game Mode" ) PORT_DIPLOCATION("SW2:7") | |
| 3010 | 3101 | PORT_DIPSETTING( 0x40, "Normal Tetris" ) |
| 3011 | 3102 | PORT_DIPSETTING( 0x00, "Atomic Point" ) |
| 3012 | PORT_SERVICE_DIPLOC( 0x80, IP_ACTIVE_HIGH, "SW | |
| 3103 | PORT_SERVICE_DIPLOC( 0x80, IP_ACTIVE_HIGH, "SW2:8" ) | |
| 3013 | 3104 | |
| 3014 | 3105 | PORT_START_TAG("DUMMY1") |
| 3015 | 3106 | |
| r1649 | r1650 | |
| 3071 | 3162 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:4") |
| 3072 | 3163 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 3073 | 3164 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 3074 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:5") | |
| 3075 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3076 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 3165 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:5") | |
| 3166 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 3167 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3077 | 3168 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:6") |
| 3078 | 3169 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 3079 | 3170 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r1649 | r1650 | |
| 6181 | 6272 | * |
| 6182 | 6273 | *************************************/ |
| 6183 | 6274 | |
| 6184 | GAME( 1988, aceattac, 0, system16b, | |
| 6275 | GAME( 1988, aceattac, 0, system16b, aceattac, | |
| 6185 | 6276 | GAME( 1987, aliensyn, 0, system16b, aliensyn, generic_5358, ROT0, "Sega", "Alien Syndrome (set 4, System 16B, unprotected)", 0 ) |
| 6186 | 6277 | GAME( 1987, aliensy3, aliensyn, system16b, aliensyn, aliensy3_5358, ROT0, "Sega", "Alien Syndrome (set 3, System 16B, FD1089A 317-0033)", 0 ) |
| 6187 | 6278 | GAME( 1988, altbeast, 0, system16b_8751, altbeast, altbeast_5521, ROT0, "Sega", "Altered Beast (set 7, 8751 317-0078)", 0 ) |
| r1649 | r1650 | |
|---|---|---|
| 38 | 38 | *******************************************************************************/ |
| 39 | 39 | |
| 40 | 40 | #include "driver.h" |
| 41 | #include "deprecat.h" | |
| 41 | 42 | #include "cpu/m68000/m68000.h" |
| 42 | 43 | #include "cpu/z80/z80.h" |
| 43 | 44 | #include "wwfwfest.h" |
| r1649 | r1650 | |
|---|---|---|
| 54 | 54 | */ |
| 55 | 55 | |
| 56 | 56 | #include "driver.h" |
| 57 | #include "deprecat.h" | |
| 57 | 58 | #include "decocrpt.h" |
| 58 | 59 | #include "decoprot.h" |
| 59 | 60 | #include "deco16ic.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | Time Pilot | |
| 3 | Time Pilot | |
| 4 | 4 | |
| 5 | driver by Nicola Salmoria | |
| 5 | driver by Nicola Salmoria | |
| 6 | 6 | |
| 7 | Main processor memory map. | |
| 8 | 0000-5fff ROM | |
| 9 | a000-a3ff Color RAM | |
| 10 | a400-a7ff Video RAM | |
| 11 | a800-afff RAM | |
| 12 | b000-b7ff sprite RAM (only areas 0xb010 and 0xb410 are used). | |
| 7 | **************************************************************************** | |
| 13 | 8 | |
| 14 | memory map | |
| 9 | memory map | |
| 15 | 10 | |
| 16 | read: | |
| 17 | c000 video scan line. This is used by the program to multiplex the cloud | |
| 18 | sprites, drawing them twice offset by 128 pixels. | |
| 19 | c200 DSW2 | |
| 20 | c300 IN0 | |
| 21 | c320 IN1 | |
| 22 | c340 IN2 | |
| 23 | c360 DSW1 | |
| 11 | Main processor memory map. | |
| 12 | 0000-5fff ROM | |
| 13 | a000-a3ff Color RAM | |
| 14 | a400-a7ff Video RAM | |
| 15 | a800-afff RAM | |
| 16 | b000-b7ff sprite RAM (only areas 0xb010 and 0xb410 are used). | |
| 24 | 17 | |
| 25 | write: | |
| 26 | c000 command for the audio CPU | |
| 27 | c200 watchdog reset | |
| 28 | c300 interrupt enable | |
| 29 | c302 flip screen | |
| 30 | c304 trigger interrupt on audio CPU | |
| 31 | c308 Protection ??? Stuffs in some values computed from ROM content | |
| 32 | c30a coin counter 1 | |
| 33 | c30c coin counter 2 | |
| 18 | memory mapped ports: | |
| 34 | 19 | |
| 35 | interrupts: | |
| 36 | standard NMI at 0x66 | |
| 20 | read: | |
| 21 | c000 video scan line. This is used by the program to multiplex the cloud | |
| 22 | sprites, drawing them twice offset by 128 pixels. | |
| 23 | c200 DSW2 | |
| 24 | c300 IN0 | |
| 25 | c320 IN1 | |
| 26 | c340 IN2 | |
| 27 | c360 DSW1 | |
| 37 | 28 | |
| 38 | SOUND BOARD: | |
| 39 | same as Pooyan | |
| 29 | write: | |
| 30 | c000 command for the audio CPU | |
| 31 | c200 watchdog reset | |
| 32 | c300 interrupt enable | |
| 33 | c302 flip screen | |
| 34 | c304 trigger interrupt on audio CPU | |
| 35 | c308 Protection ??? Stuffs in some values computed from ROM content | |
| 36 | c30a coin counter 1 | |
| 37 | c30c coin counter 2 | |
| 40 | 38 | |
| 39 | interrupts: | |
| 40 | standard NMI at 0x66 | |
| 41 | ||
| 42 | SOUND BOARD: | |
| 43 | same as Pooyan | |
| 44 | ||
| 41 | 45 | ***************************************************************************/ |
| 42 | 46 | |
| 43 | 47 | #include "driver.h" |
| 48 | #include "deprecat.h" | |
| 49 | #include "timeplt.h" | |
| 44 | 50 | #include "audio/timeplt.h" |
| 45 | 51 | |
| 46 | 52 | |
| 47 | e | |
| 53 | #defi | |
| 48 | 54 | |
| 49 | READ8_HANDLER( timeplt_scanline_r ); | |
| 50 | WRITE8_HANDLER( timeplt_videoram_w ); | |
| 51 | WRITE8_HANDLER( timeplt_colorram_w ); | |
| 52 | WRITE8_HANDLER( timeplt_flipscreen_w ); | |
| 53 | VIDEO_START( timeplt ); | |
| 54 | PALETTE_INIT( timeplt ); | |
| 55 | VIDEO_UPDATE( timeplt ); | |
| 56 | INTERRUPT_GEN( timeplt_interrupt ); | |
| 57 | 55 | |
| 58 | 56 | |
| 57 | static UINT8 irq_enable; | |
| 59 | 58 | |
| 60 | static WRITE8_HANDLER( timeplt_coin_counter_w ) | |
| 59 | ||
| 60 | /************************************* | |
| 61 | * | |
| 62 | * Interrupts | |
| 63 | * | |
| 64 | *************************************/ | |
| 65 | ||
| 66 | static MACHINE_START( timeplt ) | |
| 61 | 67 | { |
| 62 | | |
| 68 | state_save_register_global(irq_en | |
| 63 | 69 | } |
| 64 | 70 | |
| 65 | static READ8_HANDLER( psurge_protection_r ) | |
| 71 | ||
| 72 | static INTERRUPT_GEN( timeplt_interrupt ) | |
| 66 | 73 | { |
| 67 | return 0x80; | |
| 74 | if (irq_enable) | |
| 75 | cpunum_set_input_line(machine, 0, INPUT_LINE_NMI, ASSERT_LINE); | |
| 68 | 76 | } |
| 69 | 77 | |
| 70 | 78 | |
| 79 | static WRITE8_HANDLER( irq_enable_w ) | |
| 80 | { | |
| 81 | irq_enable = data & 1; | |
| 82 | if (!irq_enable) | |
| 83 | cpunum_set_input_line(Machine, 0, INPUT_LINE_NMI, CLEAR_LINE); | |
| 84 | } | |
| 71 | 85 | |
| 72 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 73 | AM_RANGE(0x0000, 0x5fff) AM_READ(MRA8_ROM) | |
| 74 | AM_RANGE(0x6004, 0x6004) AM_READ(psurge_protection_r) /* psurge only */ | |
| 75 | AM_RANGE(0xa000, 0xbfff) AM_READ(MRA8_RAM) | |
| 76 | AM_RANGE(0xc000, 0xc000) AM_READ(timeplt_scanline_r) | |
| 77 | AM_RANGE(0xc200, 0xc200) AM_READ(input_port_4_r) /* DSW2 */ | |
| 78 | AM_RANGE(0xc300, 0xc300) AM_READ(input_port_0_r) /* IN0 */ | |
| 79 | AM_RANGE(0xc320, 0xc320) AM_READ(input_port_1_r) /* IN1 */ | |
| 80 | AM_RANGE(0xc340, 0xc340) AM_READ(input_port_2_r) /* IN2 */ | |
| 81 | AM_RANGE(0xc360, 0xc360) AM_READ(input_port_3_r) /* DSW1 */ | |
| 82 | ADDRESS_MAP_END | |
| 83 | 86 | |
| 84 | static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 85 | AM_RANGE(0x0000, 0x5fff) AM_WRITE(MWA8_ROM) | |
| 86 | AM_RANGE(0xa000, 0xa3ff) AM_WRITE(timeplt_colorram_w) AM_BASE(&timeplt_colorram) | |
| 87 | AM_RANGE(0xa400, 0xa7ff) AM_WRITE(timeplt_videoram_w) AM_BASE(&timeplt_videoram) | |
| 88 | AM_RANGE(0xa800, 0xafff) AM_WRITE(MWA8_RAM) | |
| 89 | 87 | |
| 90 | AM_RANGE(0xb000, 0xb00f) AM_WRITE(MWA8_RAM) | |
| 91 | AM_RANGE(0xb010, 0xb03f) AM_WRITE(MWA8_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size) | |
| 92 | AM_RANGE(0xb040, 0xb40f) AM_WRITE(MWA8_RAM) | |
| 93 | AM_RANGE(0xb410, 0xb43f) AM_WRITE(MWA8_RAM) AM_BASE(&spriteram_2) | |
| 94 | AM_RANGE(0xb440, 0xbfff) AM_WRITE(MWA8_RAM) | |
| 88 | /************************************* | |
| 89 | * | |
| 90 | * Outputs | |
| 91 | * | |
| 92 | *************************************/ | |
| 95 | 93 | |
| 96 | AM_RANGE(0xc000, 0xc000) AM_WRITE(soundlatch_w) | |
| 97 | AM_RANGE(0xc200, 0xc200) AM_WRITE(watchdog_reset_w) | |
| 98 | AM_RANGE(0xc300, 0xc300) AM_WRITE(interrupt_enable_w) | |
| 99 | AM_RANGE(0xc302, 0xc302) AM_WRITE(timeplt_flipscreen_w) | |
| 100 | AM_RANGE(0xc304, 0xc304) AM_WRITE(timeplt_sh_irqtrigger_w) | |
| 101 | AM_RANGE(0xc30a, 0xc30c) AM_WRITE(timeplt_coin_counter_w) /* c30b is not used */ | |
| 94 | static WRITE8_HANDLER( timeplt_coin_counter_w ) | |
| 95 | { | |
| 96 | coin_counter_w(offset >> 1, data); | |
| 97 | } | |
| 98 | ||
| 99 | ||
| 100 | ||
| 101 | /************************************* | |
| 102 | * | |
| 103 | * Memory maps | |
| 104 | * | |
| 105 | *************************************/ | |
| 106 | ||
| 107 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 108 | ADDRESS_MAP_FLAGS( AMEF_UNMAP(1) ) | |
| 109 | AM_RANGE(0x0000, 0x5fff) AM_ROM | |
| 110 | AM_RANGE(0xa000, 0xa3ff) AM_READWRITE(MRA8_RAM, timeplt_colorram_w) AM_BASE(&colorram) | |
| 111 | AM_RANGE(0xa400, 0xa7ff) AM_READWRITE(MRA8_RAM, timeplt_videoram_w) AM_BASE(&videoram) | |
| 112 | AM_RANGE(0xa800, 0xafff) AM_RAM | |
| 113 | AM_RANGE(0xb000, 0xb0ff) AM_MIRROR(0x0b00) AM_RAM AM_BASE(&spriteram) | |
| 114 | AM_RANGE(0xb400, 0xb4ff) AM_MIRROR(0x0b00) AM_RAM AM_BASE(&spriteram_2) | |
| 115 | AM_RANGE(0xc000, 0xc000) AM_MIRROR(0x0cff) AM_WRITE(soundlatch_w) | |
| 116 | AM_RANGE(0xc200, 0xc200) AM_MIRROR(0x0cff) AM_WRITE(watchdog_reset_w) | |
| 117 | AM_RANGE(0xc300, 0xc300) AM_MIRROR(0x0cf1) AM_WRITE(irq_enable_w) | |
| 118 | AM_RANGE(0xc302, 0xc302) AM_MIRROR(0x0cf1) AM_WRITE(timeplt_flipscreen_w) | |
| 119 | AM_RANGE(0xc304, 0xc304) AM_MIRROR(0x0cf1) AM_WRITE(timeplt_sh_irqtrigger_w) | |
| 120 | AM_RANGE(0xc30a, 0xc30c) AM_MIRROR(0x0cf1) AM_WRITE(timeplt_coin_counter_w) | |
| 121 | AM_RANGE(0xc000, 0xc000) AM_MIRROR(0x0cff) AM_READ(timeplt_scanline_r) | |
| 122 | AM_RANGE(0xc200, 0xc200) AM_MIRROR(0x0cff) AM_READ_PORT("DSW1") | |
| 123 | AM_RANGE(0xc300, 0xc300) AM_MIRROR(0x0c9f) AM_READ_PORT("IN0") | |
| 124 | AM_RANGE(0xc320, 0xc320) AM_MIRROR(0x0c9f) AM_READ_PORT("IN1") | |
| 125 | AM_RANGE(0xc340, 0xc340) AM_MIRROR(0x0c9f) AM_READ_PORT("IN2") | |
| 126 | AM_RANGE(0xc360, 0xc360) AM_MIRROR(0x0c9f) AM_READ_PORT("DSW0") | |
| 102 | 127 | ADDRESS_MAP_END |
| 103 | 128 | |
| 104 | #define TIMEPILOT_INPUTS \ | |
| 105 | PORT_START_TAG("IN0")\ | |
| 106 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )\ | |
| 107 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )\ | |
| 108 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 )\ | |
| 109 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 )\ | |
| 110 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 )\ | |
| 111 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )\ | |
| 112 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )\ | |
| 113 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )\ | |
| 114 | PORT_START_TAG("IN1")\ | |
| 115 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY\ | |
| 116 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY\ | |
| 117 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY\ | |
| 118 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY\ | |
| 119 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )\ | |
| 120 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )\ | |
| 121 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )\ | |
| 122 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )\ | |
| 123 | PORT_START_TAG("IN2")\ | |
| 124 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL\ | |
| 125 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL\ | |
| 126 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL\ | |
| 127 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL\ | |
| 128 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL\ | |
| 129 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )\ | |
| 130 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )\ | |
| 131 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 132 | 129 | |
| 130 | ||
| 131 | /************************************* | |
| 132 | * | |
| 133 | * Port definitions | |
| 134 | * | |
| 135 | *************************************/ | |
| 136 | ||
| 133 | 137 | static INPUT_PORTS_START( timeplt ) |
| 134 | TIMEPILOT_INPUTS | |
| 138 | PORT_START_TAG("IN0") | |
| 139 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 140 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 141 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 142 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 ) | |
| 143 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 ) | |
| 144 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 135 | 145 | |
| 146 | PORT_START_TAG("IN1") | |
| 147 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 148 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 149 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 150 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 151 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 152 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 153 | ||
| 154 | PORT_START_TAG("IN2") | |
| 155 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 156 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 157 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 158 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 159 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 160 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 161 | ||
| 136 | 162 | PORT_START_TAG("DSW0") |
| 137 | 163 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 138 | 164 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| r1649 | r1650 | |
| 196 | 222 | INPUT_PORTS_END |
| 197 | 223 | |
| 198 | 224 | static INPUT_PORTS_START( psurge ) |
| 199 | ||
| 225 | | |
| 200 | 226 | |
| 201 | PORT_ | |
| 227 | PORT_MODIFY | |
| 202 | 228 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 203 | 229 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 204 | 230 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r1649 | r1650 | |
| 223 | 249 | PORT_DIPSETTING( 0x80, DEF_STR( Upright ) ) |
| 224 | 250 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| 225 | 251 | |
| 226 | PORT_ | |
| 252 | PORT_MODIFY | |
| 227 | 253 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) |
| 228 | 254 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) |
| 229 | 255 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) |
| r1649 | r1650 | |
| 250 | 276 | |
| 251 | 277 | |
| 252 | 278 | |
| 279 | /************************************* | |
| 280 | * | |
| 281 | * Graphics layouts | |
| 282 | * | |
| 283 | *************************************/ | |
| 284 | ||
| 253 | 285 | static const gfx_layout charlayout = |
| 254 | 286 | { |
| 255 | 8,8, /* 8*8 characters */ | |
| 256 | 512, /* 512 characters */ | |
| 257 | 2, /* 2 bits per pixel */ | |
| 287 | 8,8, | |
| 288 | RGN_FRAC(1,1), | |
| 289 | 2, | |
| 258 | 290 | { 4, 0 }, |
| 259 | { 0, 1, 2, 3, 8*8+0,8*8+1,8*8+2,8*8+3 }, | |
| 260 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, | |
| 261 | 16*8 /* every char takes 16 consecutive bytes */ | |
| 291 | { STEP4(0,1), STEP4(8*8,1) }, | |
| 292 | { STEP8(0,8) }, | |
| 293 | 16*8 | |
| 262 | 294 | }; |
| 295 | ||
| 263 | 296 | static const gfx_layout spritelayout = |
| 264 | 297 | { |
| 265 | 16,16, /* 16*16 sprites */ | |
| 266 | 256, /* 256 sprites */ | |
| 267 | 2, /* 2 bits per pixel */ | |
| 298 | 16,16, | |
| 299 | RGN_FRAC(1,1), | |
| 300 | 2, | |
| 268 | 301 | { 4, 0 }, |
| 269 | { 0, 1, 2, 3, 8*8, 8*8+1, 8*8+2, 8*8+3, | |
| 270 | 16*8+0, 16*8+1, 16*8+2, 16*8+3, 24*8+0, 24*8+1, 24*8+2, 24*8+3 }, | |
| 271 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8, | |
| 272 | 32*8, 33*8, 34*8, 35*8, 36*8, 37*8, 38*8, 39*8 }, | |
| 273 | 64*8 /* every sprite takes 64 consecutive bytes */ | |
| 302 | { STEP4(0,1), STEP4(8*8,1), STEP4(16*8,1), STEP4(24*8,1) }, | |
| 303 | { STEP8(0,8), STEP8(32*8,8) }, | |
| 304 | 64*8 | |
| 274 | 305 | }; |
| 275 | 306 | |
| 276 | 307 | |
| r1649 | r1650 | |
| 281 | 312 | |
| 282 | 313 | |
| 283 | 314 | |
| 315 | /************************************* | |
| 316 | * | |
| 317 | * Machine drivers | |
| 318 | * | |
| 319 | *************************************/ | |
| 320 | ||
| 284 | 321 | static MACHINE_DRIVER_START( timeplt ) |
| 285 | 322 | |
| 286 | 323 | /* basic machine hardware */ |
| 287 | MDRV_CPU_ADD(Z80, 3072000) /* 3.072 MHz (?) */ | |
| 288 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) | |
| 289 | MDRV_CPU_VBLANK_INT(timeplt_interrupt,256) | |
| 324 | MDRV_CPU_ADD(Z80, MASTER_CLOCK/3/2) /* not confirmed, but common for Konami games of the era */ | |
| 325 | MDRV_CPU_PROGRAM_MAP(main_map,0) | |
| 326 | MDRV_CPU_VBLANK_INT(timeplt_interrupt,1) | |
| 290 | 327 | |
| 291 | MDRV_CPU_ADD(Z80,14318180/8) | |
| 292 | /* audio CPU */ /* 1.789772727 MHz */ \ | |
| 293 | MDRV_CPU_PROGRAM_MAP(timeplt_sound_readmem,timeplt_sound_writemem) | |
| 294 | ||
| 295 | 328 | MDRV_SCREEN_REFRESH_RATE(60) |
| 296 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 297 | 329 | |
| 330 | MDRV_MACHINE_START(timeplt) | |
| 331 | ||
| 298 | 332 | /* video hardware */ |
| 299 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 333 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_SCANLINE) | |
| 300 | 334 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 301 | 335 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 302 | 336 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 303 | 337 | MDRV_GFXDECODE(timeplt) |
| 304 | MDRV_PALETTE_LENGTH(32) | |
| 305 | MDRV_COLORTABLE_LENGTH(32*4+64*4) | |
| 338 | MDRV_PALETTE_LENGTH(32*4+64*4) | |
| 306 | 339 | |
| 307 | 340 | MDRV_PALETTE_INIT(timeplt) |
| 308 | 341 | MDRV_VIDEO_START(timeplt) |
| 309 | 342 | MDRV_VIDEO_UPDATE(timeplt) |
| 310 | 343 | |
| 311 | 344 | /* sound hardware */ |
| 312 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 313 | ||
| 314 | MDRV_SOUND_ADD(AY8910, 14318180/8) | |
| 315 | MDRV_SOUND_CONFIG(timeplt_ay8910_interface) | |
| 316 | MDRV_SOUND_ROUTE(0, "filter.0.0", 0.60) | |
| 317 | MDRV_SOUND_ROUTE(1, "filter.0.1", 0.60) | |
| 318 | MDRV_SOUND_ROUTE(2, "filter.0.2", 0.60) | |
| 319 | ||
| 320 | MDRV_SOUND_ADD(AY8910, 14318180/8) | |
| 321 | MDRV_SOUND_ROUTE(0, "filter.1.0", 0.60) | |
| 322 | MDRV_SOUND_ROUTE(1, "filter.1.1", 0.60) | |
| 323 | MDRV_SOUND_ROUTE(2, "filter.1.2", 0.60) | |
| 324 | ||
| 325 | MDRV_SOUND_ADD_TAG("filter.0.0", FILTER_RC, 0) | |
| 326 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 327 | MDRV_SOUND_ADD_TAG("filter.0.1", FILTER_RC, 0) | |
| 328 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 329 | MDRV_SOUND_ADD_TAG("filter.0.2", FILTER_RC, 0) | |
| 330 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 331 | ||
| 332 | MDRV_SOUND_ADD_TAG("filter.1.0", FILTER_RC, 0) | |
| 333 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 334 | MDRV_SOUND_ADD_TAG("filter.1.1", FILTER_RC, 0) | |
| 335 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 336 | MDRV_SOUND_ADD_TAG("filter.1.2", FILTER_RC, 0) | |
| 337 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 345 | MDRV_IMPORT_FROM(timeplt_sound) | |
| 338 | 346 | MACHINE_DRIVER_END |
| 339 | 347 | |
| 340 | 348 | |
| 341 | 349 | |
| 342 | /*************************************************************************** | |
| 350 | /************************************* | |
| 351 | * | |
| 352 | * ROM definitions | |
| 353 | * | |
| 354 | *************************************/ | |
| 343 | 355 | |
| 344 | Game driver(s) | |
| 345 | ||
| 346 | ***************************************************************************/ | |
| 347 | ||
| 348 | 356 | ROM_START( timeplt ) |
| 349 | 357 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 350 | 358 | ROM_LOAD( "tm1", 0x0000, 0x2000, CRC(1551f1b9) SHA1(c72f30988ac00cbe6549b71c3bcb414511e8b997) ) |
| r1649 | r1650 | |
| 368 | 376 | ROM_LOAD( "timeplt.e12", 0x0140, 0x0100, CRC(f7b7663e) SHA1(151bd2dff4e4ef76d6438c1ab2cae71f987b9dad) ) /* char lookup table */ |
| 369 | 377 | ROM_END |
| 370 | 378 | |
| 379 | ROM_START( timeplta ) | |
| 380 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 381 | ROM_LOAD( "cd_e1.bin", 0x0000, 0x2000, CRC(a4513b35) SHA1(1b1944ec5317d71af86e21e0691caae180dee7b5) ) | |
| 382 | ROM_LOAD( "cd_e2.bin", 0x2000, 0x2000, CRC(38b0c72a) SHA1(8f0950deb2f9e2b65714318b9e837a1c837f52a9) ) | |
| 383 | ROM_LOAD( "cd_e3.bin", 0x4000, 0x2000, CRC(83846870) SHA1(b1741e7e5674f9e63e113ead0cb7f5ef874eac5f) ) | |
| 384 | ||
| 385 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 386 | ROM_LOAD( "tm7", 0x0000, 0x1000, CRC(d66da813) SHA1(408fca4515e8af84211df3e204c8776b2f8adb23) ) | |
| 387 | ||
| 388 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 389 | ROM_LOAD( "tm6", 0x0000, 0x2000, CRC(c2507f40) SHA1(07221875e3f81d9def67c57a7ccd82d52ce65e01) ) | |
| 390 | ||
| 391 | ROM_REGION( 0x4000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 392 | ROM_LOAD( "tm4", 0x0000, 0x2000, CRC(7e437c3e) SHA1(cbe2ccd2cd503af62f009cd5aab73aa7366230b1) ) | |
| 393 | ROM_LOAD( "tm5", 0x2000, 0x2000, CRC(e8ca87b9) SHA1(5dd30d3fb9fd8cf9e6a8e37e7ea858c7fd038a7e) ) | |
| 394 | ||
| 395 | ROM_REGION( 0x0240, REGION_PROMS, 0 ) | |
| 396 | ROM_LOAD( "timeplt.b4", 0x0000, 0x0020, CRC(34c91839) SHA1(f62e279e21fce171231d3139be7adabe1f4b8c2e) ) /* palette */ | |
| 397 | ROM_LOAD( "timeplt.b5", 0x0020, 0x0020, CRC(463b2b07) SHA1(9ad275365eba4869f94749f39ff8705d92056a10) ) /* palette */ | |
| 398 | ROM_LOAD( "timeplt.e9", 0x0040, 0x0100, CRC(4bbb2150) SHA1(678433b21aae1daa938e32d3293eeed529a42ef9) ) /* sprite lookup table */ | |
| 399 | ROM_LOAD( "timeplt.e12", 0x0140, 0x0100, CRC(f7b7663e) SHA1(151bd2dff4e4ef76d6438c1ab2cae71f987b9dad) ) /* char lookup table */ | |
| 400 | ROM_END | |
| 401 | ||
| 371 | 402 | ROM_START( timepltc ) |
| 372 | 403 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 373 | 404 | ROM_LOAD( "cd1y", 0x0000, 0x2000, CRC(83ec72c2) SHA1(f3dbc8362f6bdad1baa65cf5d95611e79de381a4) ) |
| r1649 | r1650 | |
| 414 | 445 | ROM_LOAD( "timeplt.e12", 0x0140, 0x0100, CRC(f7b7663e) SHA1(151bd2dff4e4ef76d6438c1ab2cae71f987b9dad) ) /* char lookup table */ |
| 415 | 446 | ROM_END |
| 416 | 447 | |
| 448 | ||
| 417 | 449 | ROM_START( psurge ) |
| 418 | 450 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 419 | 451 | ROM_LOAD( "p1", 0x0000, 0x2000, CRC(05f9ba12) SHA1(ad88838d1a0c64830281e425d4ad2498ba959098) ) |
| r1649 | r1650 | |
| 438 | 470 | ROM_LOAD( "timeplt.e12", 0x0140, 0x0100, BAD_DUMP CRC(f7b7663e) SHA1(151bd2dff4e4ef76d6438c1ab2cae71f987b9dad) ) /* char lookup table */ |
| 439 | 471 | ROM_END |
| 440 | 472 | |
| 441 | ROM_START( timeplta ) | |
| 442 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 443 | ROM_LOAD( "cd_e1.bin", 0x0000, 0x2000, CRC(a4513b35) SHA1(1b1944ec5317d71af86e21e0691caae180dee7b5) ) | |
| 444 | ROM_LOAD( "cd_e2.bin", 0x2000, 0x2000, CRC(38b0c72a) SHA1(8f0950deb2f9e2b65714318b9e837a1c837f52a9) ) | |
| 445 | ROM_LOAD( "cd_e3.bin", 0x4000, 0x2000, CRC(83846870) SHA1(b1741e7e5674f9e63e113ead0cb7f5ef874eac5f) ) | |
| 446 | 473 | |
| 447 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 448 | ROM_LOAD( "tm7", 0x0000, 0x1000, CRC(d66da813) SHA1(408fca4515e8af84211df3e204c8776b2f8adb23) ) | |
| 449 | 474 | |
| 450 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 451 | ROM_LOAD( "tm6", 0x0000, 0x2000, CRC(c2507f40) SHA1(07221875e3f81d9def67c57a7ccd82d52ce65e01) ) | |
| 475 | /************************************* | |
| 476 | * | |
| 477 | * Game drivers | |
| 478 | * | |
| 479 | *************************************/ | |
| 452 | 480 | |
| 453 | ROM_REGION( 0x4000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 454 | ROM_LOAD( "tm4", 0x0000, 0x2000, CRC(7e437c3e) SHA1(cbe2ccd2cd503af62f009cd5aab73aa7366230b1) ) | |
| 455 | ROM_LOAD( "tm5", 0x2000, 0x2000, CRC(e8ca87b9) SHA1(5dd30d3fb9fd8cf9e6a8e37e7ea858c7fd038a7e) ) | |
| 456 | ||
| 457 | ROM_REGION( 0x0240, REGION_PROMS, 0 ) | |
| 458 | ROM_LOAD( "timeplt.b4", 0x0000, 0x0020, CRC(34c91839) SHA1(f62e279e21fce171231d3139be7adabe1f4b8c2e) ) /* palette */ | |
| 459 | ROM_LOAD( "timeplt.b5", 0x0020, 0x0020, CRC(463b2b07) SHA1(9ad275365eba4869f94749f39ff8705d92056a10) ) /* palette */ | |
| 460 | ROM_LOAD( "timeplt.e9", 0x0040, 0x0100, CRC(4bbb2150) SHA1(678433b21aae1daa938e32d3293eeed529a42ef9) ) /* sprite lookup table */ | |
| 461 | ROM_LOAD( "timeplt.e12", 0x0140, 0x0100, CRC(f7b7663e) SHA1(151bd2dff4e4ef76d6438c1ab2cae71f987b9dad) ) /* char lookup table */ | |
| 462 | ROM_END | |
| 463 | ||
| 464 | ||
| 465 | ||
| 466 | GAME( 1982, timeplt, 0, timeplt, timeplt, 0, ROT90, "Konami", "Time Pilot", 0 ) | |
| 467 | GAME( 1982, timepltc, timeplt, timeplt, timeplt, 0, ROT90, "Konami (Centuri license)", "Time Pilot (Centuri)", 0 ) | |
| 468 | GAME( 1982, timeplta, timeplt, timeplt, timeplt, 0, ROT90, "Konami (Atari license)", "Time Pilot (Atari)", 0 ) | |
| 469 | GAME( 1982, spaceplt, timeplt, timeplt, timeplt, 0, ROT90, "bootleg", "Space Pilot", 0 ) | |
| 470 | GAME( 1988, psurge, 0, timeplt, psurge, 0, ROT270, "<unknown>", "Power Surge", 0 ) | |
| 481 | GAME( 1982, timeplt, 0, timeplt, timeplt, 0, ROT90, "Konami", "Time Pilot", GAME_SUPPORTS_SAVE ) | |
| 482 | GAME( 1982, timepltc, timeplt, timeplt, timeplt, 0, ROT90, "Konami (Centuri license)", "Time Pilot (Centuri)", GAME_SUPPORTS_SAVE ) | |
| 483 | GAME( 1982, timeplta, timeplt, timeplt, timeplt, 0, ROT90, "Konami (Atari license)", "Time Pilot (Atari)", GAME_SUPPORTS_SAVE ) | |
| 484 | GAME( 1982, spaceplt, timeplt, timeplt, timeplt, 0, ROT90, "bootleg", "Space Pilot", GAME_SUPPORTS_SAVE ) | |
| 485 | GAME( 1988, psurge, 0, timeplt, psurge, 0, ROT270, "<unknown>", "Power Surge", GAME_SUPPORTS_SAVE ) |
| r1649 | r1650 | |
|---|---|---|
| 38 | 38 | */ |
| 39 | 39 | |
| 40 | 40 | #include "driver.h" |
| 41 | #include "deprecat.h" | |
| 41 | 42 | #include "video/ppu2c0x.h" |
| 42 | 43 | #include "sound/nes_apu.h" |
| 43 | 44 | #include "cpu/m6502/m6502.h" |
| r1649 | r1650 | |
| 276 | 277 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 30*8-1) |
| 277 | 278 | MDRV_GFXDECODE(multigam) |
| 278 | 279 | MDRV_PALETTE_LENGTH(8*4*16) |
| 279 | MDRV_COLORTABLE_LENGTH(4*8) | |
| 280 | 280 | |
| 281 | 281 | MDRV_PALETTE_INIT(multigam) |
| 282 | 282 | MDRV_VIDEO_START(multigam) |
| r1649 | r1650 | |
| 332 | 332 | ROM_END |
| 333 | 333 | |
| 334 | 334 | |
| 335 | GAME( 1992, multigam, 0, multigam, multigam, multigam, ROT0, "unknown", "Multi Game (set 1)", 0 ) | |
| 335 | GAME( 1992, multigam, 0, multigam, multigam, multigam, ROT0, "unknown", "Multi Game (set 1)", 0 ) | |
| 336 | 336 | GAME( 1992, multigmb, multigam, multigam, multigam, multigam, ROT0, "unknown", "Multi Game (set 2)", 0 ) |
| r1649 | r1650 | |
|---|---|---|
| 20 | 20 | |
| 21 | 21 | |
| 22 | 22 | #include "driver.h" |
| 23 | #include "deprecat.h" | |
| 23 | 24 | #include "machine/atarigen.h" |
| 24 | 25 | #include "audio/atarijsa.h" |
| 25 | 26 | #include "video/atarirle.h" |
| r1649 | r1650 | |
|---|---|---|
| 33 | 33 | ***************************************************************************/ |
| 34 | 34 | |
| 35 | 35 | #include "driver.h" |
| 36 | #include "deprecat.h" | |
| 36 | 37 | #include "sound/2203intf.h" |
| 37 | 38 | #include "sound/3812intf.h" |
| 38 | 39 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
|---|---|---|
| 30 | 30 | */ |
| 31 | 31 | |
| 32 | 32 | #include "driver.h" |
| 33 | #include "deprecat.h" | |
| 33 | 34 | #include "cpu/powerpc/ppc.h" |
| 34 | 35 | #include "cpu/sharc/sharc.h" |
| 35 | 36 | #include "machine/konppc.h" |
| r1649 | r1650 | |
|---|---|---|
| 40 | 40 | ***************************************************************************/ |
| 41 | 41 | |
| 42 | 42 | #include "driver.h" |
| 43 | #include "deprecat.h" | |
| 43 | 44 | #include "sound/ay8910.h" |
| 44 | 45 | |
| 45 | 46 |
| r1649 | r1650 | |
|---|---|---|
| 20 | 20 | ***************************************************************************/ |
| 21 | 21 | |
| 22 | 22 | #include "driver.h" |
| 23 | #include "deprecat.h" | |
| 23 | 24 | #include "cpu/z80/z80.h" |
| 24 | 25 | #include "sound/ay8910.h" |
| 25 | 26 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | 14 | #include "driver.h" |
| 15 | #include " | |
| 15 | #include "d | |
| 16 | 16 | #include "sound/2203intf.h" |
| 17 | 17 | |
| 18 | 18 | static int interrupt_scanline=192; |
| r1649 | r1650 | |
|---|---|---|
| 62 | 62 | ***************************************************************************/ |
| 63 | 63 | |
| 64 | 64 | #include "driver.h" |
| 65 | #include "deprecat.h" | |
| 65 | 66 | #include "sound/ay8910.h" |
| 66 | 67 | |
| 67 | 68 |
| r1649 | r1650 | |
|---|---|---|
| 64 | 64 | |
| 65 | 65 | |
| 66 | 66 | #include "driver.h" |
| 67 | #include "deprecat.h" | |
| 67 | 68 | #include "sound/2610intf.h" |
| 68 | 69 | |
| 69 | 70 | #define TAOTAIDO_SHOW_ALL_INPUTS 0 |
| r1649 | r1650 | |
|---|---|---|
| 19 | 19 | |
| 20 | 20 | |
| 21 | 21 | #include "driver.h" |
| 22 | #include "deprecat.h" | |
| 22 | 23 | |
| 23 | 24 | static UINT8 *fortecar_ram; |
| 24 | 25 |
| r1649 | r1650 | |
|---|---|---|
| 18 | 18 | |
| 19 | 19 | |
| 20 | 20 | #include "driver.h" |
| 21 | #include "deprecat.h" | |
| 21 | 22 | #include "machine/atarigen.h" |
| 22 | 23 | #include "relief.h" |
| 23 | 24 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
|---|---|---|
| 46 | 46 | */ |
| 47 | 47 | |
| 48 | 48 | #include "driver.h" |
| 49 | #include "deprecat.h" | |
| 49 | 50 | |
| 50 | 51 | static UINT16 *unkram; |
| 51 | 52 | static UINT16 *mainram; |
| r1649 | r1650 | |
|---|---|---|
| 36 | 36 | ***************************************************************************/ |
| 37 | 37 | |
| 38 | 38 | #include "driver.h" |
| 39 | #include "deprecat.h" | |
| 39 | 40 | #include "machine/eeprom.h" |
| 40 | 41 | #include "taito_f3.h" |
| 41 | 42 | #include "sound/es5506.h" |
| r1649 | r1650 | |
|---|---|---|
| 100 | 100 | ***************************************************************************/ |
| 101 | 101 | |
| 102 | 102 | #include "driver.h" |
| 103 | #include "deprecat.h" | |
| 103 | 104 | #include "cpu/m6800/m6800.h" |
| 104 | 105 | #include "sound/namco.h" |
| 105 | 106 |
| r1649 | r1650 | |
|---|---|---|
| 55 | 55 | ***************************************************************************/ |
| 56 | 56 | |
| 57 | 57 | #include "driver.h" |
| 58 | #include "deprecat.h" | |
| 58 | 59 | #include "sound/ay8910.h" |
| 59 | 60 | #include "sound/dac.h" |
| 60 | 61 | |
| 61 | 62 | |
| 62 | extern WRITE8_HANDLER( champbas_videoram_w ); | |
| 63 | extern WRITE8_HANDLER( champbas_colorram_w ); | |
| 64 | extern WRITE8_HANDLER( champbas_gfxbank_w ); | |
| 65 | extern WRITE8_HANDLER( champbas_flipscreen_w ); | |
| 63 | WRITE8_HANDLER( champbas_videoram_w ); | |
| 64 | WRITE8_HANDLER( champbas_colorram_w ); | |
| 65 | WRITE8_HANDLER( champbas_gfxbank_w ); | |
| 66 | WRITE8_HANDLER( champbas_palette_bank_w ); | |
| 67 | WRITE8_HANDLER( champbas_flipscreen_w ); | |
| 66 | 68 | |
| 67 | extern PALETTE_INIT( champbas ); | |
| 68 | extern VIDEO_START( champbas ); | |
| 69 | extern VIDEO_UPDATE( champbas ); | |
| 69 | PALETTE_INIT( champbas ); | |
| 70 | VIDEO_START( champbas ); | |
| 71 | VIDEO_UPDATE( champbas ); | |
| 70 | 72 | |
| 71 | 73 | static WRITE8_HANDLER( champbas_dac_w ) |
| 72 | 74 | { |
| r1649 | r1650 | |
| 122 | 124 | AM_RANGE(0x8000, 0x83ff) AM_WRITE(champbas_videoram_w) AM_READ(MRA8_RAM) AM_BASE(&videoram) |
| 123 | 125 | AM_RANGE(0x8400, 0x87ff) AM_WRITE(champbas_colorram_w) AM_READ(MRA8_RAM) AM_BASE(&colorram) |
| 124 | 126 | AM_RANGE(0x8800, 0x8fef) AM_RAM |
| 125 | AM_RANGE(0x8ff0, 0x8fff) AM_ | |
| 127 | AM_RANGE(0x8ff0, 0x8fff) AM_ | |
| 126 | 128 | AM_RANGE(0xa000, 0xa000) AM_WRITE(interrupt_enable_w) AM_READ(input_port_0_r) |
| 127 | 129 | AM_RANGE(0xa002, 0xa002) AM_WRITE(champbas_gfxbank_w) |
| 128 | 130 | AM_RANGE(0xa003, 0xa003) AM_WRITE(champbas_flipscreen_w) |
| 131 | AM_RANGE(0xa004, 0xa004) AM_WRITE(champbas_palette_bank_w) | |
| 129 | 132 | AM_RANGE(0xa005, 0xa005) AM_NOP |
| 130 | 133 | |
| 131 | 134 | AM_RANGE(0xa040, 0xa040) AM_READ(input_port_1_r) |
| r1649 | r1650 | |
| 243 | 246 | }; |
| 244 | 247 | |
| 245 | 248 | static GFXDECODE_START( champbas ) |
| 246 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, charlayout, 0, 64 ) | |
| 247 | GFXDECODE_ENTRY( REGION_GFX2, 0x0000, charlayout, 0, 64 ) | |
| 248 | GFXDECODE_ENTRY( REGION_GFX1, 0x1000, spritelayout, 0, 64 ) | |
| 249 | GFXDECODE_ENTRY( REGION_GFX2, 0x1000, spritelayout, 0, 64 ) | |
| 249 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, charlayout, 0, 128 ) | |
| 250 | GFXDECODE_ENTRY( REGION_GFX2, 0x0000, charlayout, 0, 128 ) | |
| 251 | GFXDECODE_ENTRY( REGION_GFX1, 0x1000, spritelayout, 0, 128 ) | |
| 252 | GFXDECODE_ENTRY( REGION_GFX2, 0x1000, spritelayout, 0, 128 ) | |
| 250 | 253 | GFXDECODE_END |
| 251 | 254 | |
| 252 | 255 | |
| r1649 | r1650 | |
| 280 | 283 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 281 | 284 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 282 | 285 | MDRV_GFXDECODE(champbas) |
| 283 | MDRV_PALETTE_LENGTH(32) | |
| 284 | MDRV_COLORTABLE_LENGTH(64*4) | |
| 286 | MDRV_PALETTE_LENGTH(128*4) | |
| 285 | 287 | |
| 286 | 288 | MDRV_PALETTE_INIT(champbas) |
| 287 | 289 | MDRV_VIDEO_START(champbas) |
| r1649 | r1650 | |
| 329 | 331 | ROM_LOAD( "champbb.2", 0x2000, 0x2000, CRC(5ddd872e) SHA1(68e21572e27707c991180b1bd0a6b31f7b64abf6) ) |
| 330 | 332 | ROM_LOAD( "champbb.3", 0x4000, 0x2000, CRC(f39a7046) SHA1(3097bffe84ac74ce9e6481028a0ebbe8b1d6eaf9) ) |
| 331 | 333 | |
| 332 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 334 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 333 | 335 | ROM_LOAD( "champbb.6", 0x0000, 0x2000, CRC(26ab3e16) SHA1(019b9d34233a6b7a53e204154b782ceb42915d2b) ) |
| 334 | 336 | ROM_LOAD( "champbb.7", 0x2000, 0x2000, CRC(7c01715f) SHA1(b15b2001b8c110f2599eee3aeed79f67686ebd7e) ) |
| 335 | 337 | ROM_LOAD( "champbb.8", 0x4000, 0x2000, CRC(3c911786) SHA1(eea0c467e213d237b5bb9d04b19a418d6090c2dc) ) |
| r1649 | r1650 | |
| 351 | 353 | ROM_LOAD( "12.2g", 0x2000, 0x2000, CRC(7b4e5faa) SHA1(b7201816a819ef313ddc81f312d26982b83ef1c7) ) |
| 352 | 354 | ROM_LOAD( "13.2h", 0x4000, 0x2000, CRC(b201e31f) SHA1(bba3b611ff60ad8d5dd8484df4cfc2026f4fd344) ) |
| 353 | 355 | |
| 354 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 356 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 355 | 357 | ROM_LOAD( "16.2k", 0x0000, 0x2000, CRC(24c482ee) SHA1(c25bdf77014e095fc11a9a6b17f16858f19db451) ) |
| 356 | 358 | ROM_LOAD( "17.2l", 0x2000, 0x2000, CRC(f10b148b) SHA1(d66516d509f6f16e51ee59d27c4867e276064c3f) ) |
| 357 | 359 | ROM_LOAD( "18.2n", 0x4000, 0x2000, CRC(2dc484dd) SHA1(28bd68c787d7e6989849ca52009948dbd5cdcc79) ) |
| r1649 | r1650 | |
| 373 | 375 | ROM_LOAD( "09", 0x2000, 0x2000, CRC(9d39e5b3) SHA1(11c1a1d2296c0bf16d7610eaa79b034bfd813740) ) |
| 374 | 376 | ROM_LOAD( "08", 0x4000, 0x2000, CRC(53468a0f) SHA1(d4b5ea48b27754eebe593c8b4fcf5bf117f27ae4) ) |
| 375 | 377 | |
| 376 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 378 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 377 | 379 | ROM_LOAD( "16.2k", 0x0000, 0x2000, CRC(24c482ee) SHA1(c25bdf77014e095fc11a9a6b17f16858f19db451) ) |
| 378 | 380 | ROM_LOAD( "17.2l", 0x2000, 0x2000, CRC(f10b148b) SHA1(d66516d509f6f16e51ee59d27c4867e276064c3f) ) |
| 379 | 381 | ROM_LOAD( "18.2n", 0x4000, 0x2000, CRC(2dc484dd) SHA1(28bd68c787d7e6989849ca52009948dbd5cdcc79) ) |
| r1649 | r1650 | |
| 396 | 398 | ROM_LOAD( "epr5930", 0x4000, 0x2000, CRC(b6570a90) SHA1(5a2651aeac986000913b5854792b2d81df6b2fc6) ) |
| 397 | 399 | ROM_LOAD( "epr5931", 0x7800, 0x0800, CRC(0592434d) SHA1(a7f61546c39ffdbff46c4db485c9b3f6eefcf1ac) ) |
| 398 | 400 | |
| 399 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 401 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 400 | 402 | ROM_LOAD( "epr5933", 0x0000, 0x2000, CRC(26ab3e16) SHA1(019b9d34233a6b7a53e204154b782ceb42915d2b) ) |
| 401 | 403 | ROM_LOAD( "epr5934", 0x2000, 0x2000, CRC(7c01715f) SHA1(b15b2001b8c110f2599eee3aeed79f67686ebd7e) ) |
| 402 | 404 | ROM_LOAD( "epr5935", 0x4000, 0x2000, CRC(3c911786) SHA1(eea0c467e213d237b5bb9d04b19a418d6090c2dc) ) |
| r1649 | r1650 | |
| 420 | 422 | ROM_LOAD( "4.bin", 0x7800, 0x0800, NO_DUMP ) |
| 421 | 423 | |
| 422 | 424 | /* not in this set, but probably the same */ |
| 423 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 425 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 424 | 426 | ROM_LOAD( "epr5933", 0x0000, 0x2000, CRC(26ab3e16) SHA1(019b9d34233a6b7a53e204154b782ceb42915d2b) ) |
| 425 | 427 | ROM_LOAD( "epr5934", 0x2000, 0x2000, CRC(7c01715f) SHA1(b15b2001b8c110f2599eee3aeed79f67686ebd7e) ) |
| 426 | 428 | ROM_LOAD( "epr5935", 0x4000, 0x2000, CRC(3c911786) SHA1(eea0c467e213d237b5bb9d04b19a418d6090c2dc) ) |
| r1649 | r1650 | |
| 436 | 438 | ROM_LOAD( "pr5956", 0x0020, 0x100, CRC(872dd450) SHA1(6c1e2c4a2fc072f4bf4996c731adb0b01b347506) ) /* look-up table */ |
| 437 | 439 | ROM_END |
| 438 | 440 | |
| 439 | GAME( 1983, champbas, 0, champbas, champbas, 0, ROT0, "Sega", "Champion Baseball", 0 ) | |
| 440 | GAME( 1983, champbbj, champbas, champbb2, champbas, champbb2, ROT0, "Alpha Denshi Co.", "Champion Baseball (Japan set 1)", 0 ) | |
| 441 | GAME( 1983, champbja, champbas, champbb2, champbas, champbb2, ROT0, "Alpha Denshi Co.", "Champion Baseball (Japan set 2)", 0 ) | |
| 442 | GAME( 1983, champbb2, 0, champbb2, champbas, champbb2, ROT0, "Sega", "Champion Baseball II (set 1)", 0 ) | |
| 441 | GAME( 1983, champbas, 0, champbas, champbas, 0, ROT0, "Sega", "Champion Base Ball", 0 ) | |
| 442 | GAME( 1983, champbbj, champbas, champbb2, champbas, champbb2, ROT0, "Alpha Denshi Co.", "Champion Base Ball (Japan set 1)", 0 ) | |
| 443 | GAME( 1983, champbja, champbas, champbb2, champbas, champbb2, ROT0, "Alpha Denshi Co.", "Champion Base Ball (Japan set 2)", 0 ) | |
| 444 | GAME( 1983, champbb2, 0, champbb2, champbas, champbb2, ROT0, "Sega", "Champion Base Ball Part-2: Pair Play (set 1)", 0 ) | |
| 443 | 445 | |
| 444 | 446 | /* NO DUMP */ |
| 445 | 447 | GAME( 1983, champb2a, champbb2, champbb2, champbas, champbb2, ROT0, "Alpha Denshi Co.", "Champion Baseball II (set 2)", GAME_NOT_WORKING) |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "cpu/m6502/m6502.h" |
| 12 | 13 | #include "cpu/m6809/m6809.h" |
| 13 | 14 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | *******************************************************************************/ |
| 15 | 15 | |
| 16 | 16 | #include "driver.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | #include "m107.h" |
| 18 | 19 | #include "machine/irem_cpu.h" |
| 19 | 20 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 190 | 190 | ***************************************************************************/ |
| 191 | 191 | |
| 192 | 192 | #include "driver.h" |
| 193 | #include "deprecat.h" | |
| 193 | 194 | #include "taitoipt.h" |
| 194 | 195 | #include "cpu/m68000/m68000.h" |
| 195 | 196 | #include "video/taitoic.h" |
| r1649 | r1650 | |
|---|---|---|
| 21 | 21 | ***************************************************************************/ |
| 22 | 22 | |
| 23 | 23 | #include "driver.h" |
| 24 | #include "deprecat.h" | |
| 24 | 25 | #include "cpu/m6502/m6502.h" |
| 25 | 26 | #include "cpu/m6809/m6809.h" |
| 26 | 27 | #include "cpu/m6805/m6805.h" |
| r1649 | r1650 | |
|---|---|---|
| 53 | 53 | */ |
| 54 | 54 | |
| 55 | 55 | #include "driver.h" |
| 56 | #include "deprecat.h" | |
| 56 | 57 | #include "cpu/m68000/m68000.h" |
| 57 | 58 | #include "cpu/z80/z80.h" |
| 58 | 59 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 119 | 119 | ***************************************************************************/ |
| 120 | 120 | |
| 121 | 121 | #include "driver.h" |
| 122 | #include "deprecat.h" | |
| 122 | 123 | #include "megasys1.h" |
| 123 | 124 | #include "sound/2203intf.h" |
| 124 | 125 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 124 | 124 | ***************************************************************************/ |
| 125 | 125 | |
| 126 | 126 | #include "driver.h" |
| 127 | #include "deprecat.h" | |
| 127 | 128 | #include "video/konamiic.h" |
| 128 | 129 | #include "sound/2610intf.h" |
| 129 | 130 | #include "crshrace.h" |
| r1649 | r1650 | |
|---|---|---|
| 218 | 218 | */ |
| 219 | 219 | |
| 220 | 220 | #include "driver.h" |
| 221 | #include "deprecat.h" | |
| 221 | 222 | #include "cpu/z80/z80.h" |
| 222 | 223 | #include "sound/2203intf.h" |
| 223 | 224 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
|---|---|---|
| 324 | 324 | MDRV_SCREEN_SIZE(0x120, 0x100) |
| 325 | 325 | MDRV_SCREEN_VISIBLE_AREA(0, 0x120-1, 0x0+16, 0x100-16-1) |
| 326 | 326 | MDRV_GFXDECODE(firebatl) |
| 327 | MDRV_PALETTE_LENGTH(512) | |
| 328 | MDRV_COLORTABLE_LENGTH(512+64*4) | |
| 327 | MDRV_PALETTE_LENGTH(512+64*4) | |
| 329 | 328 | |
| 330 | 329 | MDRV_PALETTE_INIT(firebatl) |
| 331 | 330 | MDRV_VIDEO_START(firebatl) |
| r1649 | r1650 | |
|---|---|---|
| 328 | 328 | ****************************************************************************/ |
| 329 | 329 | |
| 330 | 330 | #include "driver.h" |
| 331 | #include "deprecat.h" | |
| 331 | 332 | #include "pacman.h" |
| 332 | 333 | #include "cpu/s2650/s2650.h" |
| 333 | 334 | #include "sound/namco.h" |
| r1649 | r1650 | |
| 5400 | 5401 | GAME( 1980, pacmanf, puckman, pacman, pacman, 0, ROT90, "[Namco] (Midway license)", "Pac-Man (Midway, with speedup hack)", GAME_SUPPORTS_SAVE ) |
| 5401 | 5402 | GAME( 1981, puckmod, puckman, pacman, pacman, 0, ROT90, "Namco", "PuckMan (Japan set 3)", GAME_SUPPORTS_SAVE ) |
| 5402 | 5403 | GAME( 1981, pacmod, puckman, pacman, pacman, 0, ROT90, "[Namco] (Midway license)", "Pac-Man (Midway, harder)", GAME_SUPPORTS_SAVE ) |
| 5403 | GAME( 1980, newpuc2, puckman, pacman, pacman, 0, ROT90, "hack", "Newpuc2", GAME_SUPPORTS_SAVE ) | |
| 5404 | GAME( 1980, newpuc2, puckman, pacman, pacman, 0, ROT90, "hack", "Newpuc2 (set 1)", GAME_SUPPORTS_SAVE ) | |
| 5404 | 5405 | GAME( 1980, newpuc2b, puckman, pacman, pacman, 0, ROT90, "hack", "Newpuc2 (set 2)", GAME_SUPPORTS_SAVE ) |
| 5405 | 5406 | GAME( 1980, newpuckx, puckman, pacman, pacman, 0, ROT90, "hack", "New Puck-X", GAME_SUPPORTS_SAVE ) |
| 5406 | 5407 | GAME( 1981, pacheart, puckman, pacman, pacman, 0, ROT90, "hack", "Pac-Man (Hearts)", GAME_SUPPORTS_SAVE ) |
| r1649 | r1650 | |
|---|---|---|
| 28 | 28 | |
| 29 | 29 | |
| 30 | 30 | #include "driver.h" |
| 31 | #include "deprecat.h" | |
| 31 | 32 | #include "machine/eeprom.h" |
| 32 | 33 | #include "machine/ticket.h" |
| 33 | 34 | #include "sound/bsmt2000.h" |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | ***************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "cpu/z80/z80.h" |
| 13 | 14 | #include "cpu/konami/konami.h" |
| 14 | 15 | #include "video/konamiic.h" |
| r1649 | r1650 | |
|---|---|---|
| 23 | 23 | // Directives |
| 24 | 24 | |
| 25 | 25 | #include "driver.h" |
| 26 | #include "deprecat.h" | |
| 26 | 27 | #include "cpu/m6809/m6809.h" |
| 27 | 28 | #include "cpu/m6502/m6502.h" |
| 28 | 29 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
|---|---|---|
| 67 | 67 | |
| 68 | 68 | |
| 69 | 69 | #include "driver.h" |
| 70 | #include "deprecat.h" | |
| 70 | 71 | |
| 71 | 72 | static UINT16* tileram; |
| 72 | 73 | static UINT8* dirty_tileram; |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | ***************************************************************************/ |
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | #include "deprecat.h" | |
| 13 | 14 | #include "cpu/z80/z80.h" |
| 14 | 15 | #include "cpu/m68000/m68000.h" |
| 15 | 16 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 147 | 147 | ***************************************************************************/ |
| 148 | 148 | |
| 149 | 149 | #include "driver.h" |
| 150 | #include "deprecat.h" | |
| 150 | 151 | #include "cpu/m6805/m6805.h" |
| 151 | 152 | #include "sound/ay8910.h" |
| 152 | 153 | #include "sound/2203intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 96 | 96 | */ |
| 97 | 97 | |
| 98 | 98 | #include "driver.h" |
| 99 | #include "deprecat.h" | |
| 99 | 100 | #include "cdrom.h" |
| 100 | 101 | #include "cpu/powerpc/ppc.h" |
| 101 | 102 |
| r1649 | r1650 | |
|---|---|---|
| 55 | 55 | */ |
| 56 | 56 | |
| 57 | 57 | #include "driver.h" |
| 58 | #include "deprecat.h" | |
| 58 | 59 | #include "video/ppu2c0x.h" |
| 59 | 60 | #include "sound/nes_apu.h" |
| 60 | 61 | #include "cpu/m6502/m6502.h" |
| r1649 | r1650 | |
| 265 | 266 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 30*8-1) |
| 266 | 267 | MDRV_GFXDECODE(cham24) |
| 267 | 268 | MDRV_PALETTE_LENGTH(8*4*16) |
| 268 | MDRV_COLORTABLE_LENGTH(4*8) | |
| 269 | 269 | |
| 270 | 270 | MDRV_PALETTE_INIT(cham24) |
| 271 | 271 | MDRV_VIDEO_START(cham24) |
| r1649 | r1650 | |
|---|---|---|
| 69 | 69 | ***************************************************************************/ |
| 70 | 70 | |
| 71 | 71 | #include "driver.h" |
| 72 | #include "deprecat.h" | |
| 72 | 73 | #include "machine/eeprom.h" |
| 73 | 74 | #include "machine/nmk112.h" |
| 74 | 75 | #include "cpu/z80/z80.h" |
| r1649 | r1650 | |
|---|---|---|
| 50 | 50 | ***************************************************************************/ |
| 51 | 51 | |
| 52 | 52 | #include "driver.h" |
| 53 | #include "deprecat.h" | |
| 53 | 54 | #include "sound/2203intf.h" |
| 54 | 55 | #include "sound/2151intf.h" |
| 55 | 56 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
|---|---|---|
| 46 | 46 | ***************************************************************************/ |
| 47 | 47 | |
| 48 | 48 | #include "driver.h" |
| 49 | #include "deprecat.h" | |
| 49 | 50 | #include "cpu/m6809/m6809.h" |
| 50 | 51 | #include "sound/2203intf.h" |
| 51 | 52 | #include "sound/3812intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 523 | 523 | void defender_install_io_space(void) |
| 524 | 524 | { |
| 525 | 525 | /* this routine dynamically installs the memory mapped above from c000-cfff */ |
| 526 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xc000, 0xc00f, 0, 0x03e0, williams_paletteram_w); | |
| 527 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xc010, 0xc01f, 0, 0x03e0, defender_video_control_w); | |
| 528 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xc3ff, 0xc3ff, 0, 0, williams_watchdog_reset_w); | |
| 529 | memory_install_read8_handler (0, ADDRESS_SPACE_PROGRAM, 0xc400, 0xc4ff, 0, 0x0300, MRA8_BANK3); | |
| 530 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xc400, 0xc4ff, 0, 0x0300, williams_cmos_w); | |
| 531 | memory_install_read8_handler (0, ADDRESS_SPACE_PROGRAM, 0xc800, 0xcbff, 0, 0x03e0, williams_video_counter_r); | |
| 532 | memory_install_read8_handler (0, ADDRESS_SPACE_PROGRAM, 0xcc00, 0xcc03, 0, 0x03e0, pia_1_r); | |
| 533 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xcc00, 0xcc03, 0, 0x03e0, pia_1_w); | |
| 534 | memory_install_read8_handler (0, ADDRESS_SPACE_PROGRAM, 0xcc04, 0xcc07, 0, 0x03e0, pia_0_r); | |
| 535 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xcc04, 0xcc07, 0, 0x03e0, pia_0_w); | |
| 526 | memory_install_write8_handler (0, ADDRESS_SPACE_PROGRAM, 0xc000, 0xc00f, 0, 0x03e0, MWA8_BANK4); | |
| 527 | memory_install_write8_handler (0, ADDRESS_SPACE_PROGRAM, 0xc010, 0xc01f, 0, 0x03e0, defender_video_control_w); | |
| 528 | memory_install_write8_handler (0, ADDRESS_SPACE_PROGRAM, 0xc3ff, 0xc3ff, 0, 0, williams_watchdog_reset_w); | |
| 529 | memory_install_readwrite8_handler (0, ADDRESS_SPACE_PROGRAM, 0xc400, 0xc4ff, 0, 0x0300, MRA8_BANK3, williams_cmos_w); | |
| 530 | memory_install_read8_handler (0, ADDRESS_SPACE_PROGRAM, 0xc800, 0xcbff, 0, 0x03e0, williams_video_counter_r); | |
| 531 | memory_install_readwrite8_handler (0, ADDRESS_SPACE_PROGRAM, 0xcc00, 0xcc03, 0, 0x03e0, pia_1_r, pia_1_w); | |
| 532 | memory_install_readwrite8_handler (0, ADDRESS_SPACE_PROGRAM, 0xcc04, 0xcc07, 0, 0x03e0, pia_0_r, pia_0_w); | |
| 536 | 533 | memory_set_bankptr(3, generic_nvram); |
| 534 | memory_set_bankptr(4, paletteram); | |
| 537 | 535 | } |
| 538 | 536 | |
| 539 | 537 | |
| r1649 | r1650 | |
| 547 | 545 | static ADDRESS_MAP_START( williams_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 548 | 546 | AM_RANGE(0x0000, 0x8fff) AM_READWRITE(MRA8_BANK1, MWA8_RAM) AM_BASE(&williams_videoram) |
| 549 | 547 | AM_RANGE(0x9000, 0xbfff) AM_RAM |
| 550 | AM_RANGE(0xc000, 0xc00f) AM_MIRROR(0x03f0) AM_WRITE( | |
| 548 | AM_RANGE(0xc000, 0xc00f) AM_MIRROR(0x03f0) AM_WRITE(MWA8 | |
| 551 | 549 | AM_RANGE(0xc804, 0xc807) AM_MIRROR(0x00f0) AM_READWRITE(pia_0_r, pia_0_w) |
| 552 | 550 | AM_RANGE(0xc80c, 0xc80f) AM_MIRROR(0x00f0) AM_READWRITE(pia_1_r, pia_1_w) |
| 553 | 551 | AM_RANGE(0xc900, 0xc9ff) AM_WRITE(williams_vram_select_w) |
| r1649 | r1650 | |
| 562 | 560 | static ADDRESS_MAP_START( williams_extra_ram_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 563 | 561 | AM_RANGE(0x0000, 0x8fff) AM_READWRITE(MRA8_BANK1, MWA8_RAM) AM_BASE(&williams_videoram) |
| 564 | 562 | AM_RANGE(0x9000, 0xbfff) AM_RAM |
| 565 | AM_RANGE(0xc000, 0xc00f) AM_MIRROR(0x03f0) AM_WRITE( | |
| 563 | AM_RANGE(0xc000, 0xc00f) AM_MIRROR(0x03f0) AM_WRITE(MWA8 | |
| 566 | 564 | AM_RANGE(0xc804, 0xc807) AM_MIRROR(0x00f0) AM_READWRITE(pia_0_r, pia_0_w) |
| 567 | 565 | AM_RANGE(0xc80c, 0xc80f) AM_MIRROR(0x00f0) AM_READWRITE(pia_1_r, pia_1_w) |
| 568 | 566 | AM_RANGE(0xc900, 0xc9ff) AM_WRITE(sinistar_vram_select_w) |
| r1649 | r1650 | |
| 585 | 583 | static ADDRESS_MAP_START( blaster_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 586 | 584 | AM_RANGE(0x0000, 0x3fff) AM_READWRITE(MRA8_BANK1, MWA8_RAM) AM_BASE(&williams_videoram) |
| 587 | 585 | AM_RANGE(0x4000, 0x8fff) AM_READWRITE(MRA8_BANK2, MWA8_RAM) |
| 588 | AM_RANGE(0xbb00, 0xbbff) AM_WRITE(blaster_palette_0_w) AM_BASE(&blaster_palette_0) | |
| 589 | AM_RANGE(0xbc00, 0xbcff) AM_WRITE(blaster_scanline_control_w) AM_BASE(&blaster_scanline_control) | |
| 586 | AM_RANGE(0xbb00, 0xbbff) AM_WRITE(MWA8_RAM) AM_BASE(&blaster_palette_0) | |
| 587 | AM_RANGE(0xbc00, 0xbcff) AM_WRITE(MWA8_RAM) AM_BASE(&blaster_scanline_control) | |
| 590 | 588 | AM_RANGE(0x9000, 0xbfff) AM_RAM |
| 591 | AM_RANGE(0xc000, 0xc00f) AM_MIRROR(0x03f0) AM_WRITE( | |
| 589 | AM_RANGE(0xc000, 0xc00f) AM_MIRROR(0x03f0) AM_WRITE(MWA8 | |
| 592 | 590 | AM_RANGE(0xc804, 0xc807) AM_MIRROR(0x00f0) AM_READWRITE(pia_0_r, pia_0_w) |
| 593 | 591 | AM_RANGE(0xc80c, 0xc80f) AM_MIRROR(0x00f0) AM_READWRITE(pia_1_r, pia_1_w) |
| 594 | 592 | AM_RANGE(0xc900, 0xc93f) AM_WRITE(blaster_vram_select_w) |
| r1649 | r1650 | |
| 1416 | 1414 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 1417 | 1415 | |
| 1418 | 1416 | /* video hardware */ |
| 1419 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1420 | MDRV_PALETTE_LENGTH(16) | |
| 1417 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_SCANLINE) | |
| 1421 | 1418 | |
| 1422 | 1419 | MDRV_SCREEN_ADD("main", 0) |
| 1423 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_ | |
| 1420 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32 | |
| 1424 | 1421 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK*2/3, 512, 10, 304, 260, 7, 245) |
| 1425 | 1422 | |
| 1426 | 1423 | MDRV_VIDEO_START(williams) |
| r1649 | r1650 | |
| 1516 | 1513 | MDRV_MACHINE_RESET(blaster) |
| 1517 | 1514 | |
| 1518 | 1515 | /* video hardware */ |
| 1519 | MDRV_PALETTE_LENGTH(16+256) | |
| 1520 | ||
| 1521 | 1516 | MDRV_VIDEO_START(blaster) |
| 1522 | 1517 | MDRV_VIDEO_UPDATE(blaster) |
| 1523 | 1518 | MACHINE_DRIVER_END |
| r1649 | r1650 | |
| 1536 | 1531 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 1537 | 1532 | |
| 1538 | 1533 | /* video hardware */ |
| 1539 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1540 | MDRV_GFXDECODE(williams2) | |
| 1534 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_SCANLINE) | |
| 1541 | 1535 | MDRV_PALETTE_LENGTH(1024) |
| 1536 | MDRV_GFXDECODE(williams2) | |
| 1542 | 1537 | |
| 1543 | 1538 | MDRV_SCREEN_ADD("main", 0) |
| 1544 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_ | |
| 1539 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32 | |
| 1545 | 1540 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK*2/3, 512, 8, 284, 260, 8, 248) |
| 1546 | 1541 | |
| 1547 | 1542 | MDRV_VIDEO_START(williams2) |
| r1649 | r1650 | |
| 2774 | 2769 | GAME( 1980, defndjeu, defender, defender, defender, defndjeu, ROT0, "Jeutel", "Defender (bootleg)", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) |
| 2775 | 2770 | GAME( 1980, tornado1, defender, defender, defender, defndjeu, ROT0, "Jeutel", "Tornado (bootleg set 1)", GAME_SUPPORTS_SAVE ) |
| 2776 | 2771 | GAME( 1980, tornado2, defender, defender, defender, defndjeu, ROT0, "Jeutel", "Tornado (bootleg set 2)", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) // bad dump? |
| 2777 | GAME( 1980, zero, defender, defender, defender, defndjeu, ROT0, "Jeutel", "Zero", GAME_SUPPORTS_SAVE ) | |
| 2772 | GAME( 1980, zero, defender, defender, defender, defndjeu, ROT0, "Jeutel", "Zero (set 1)", GAME_SUPPORTS_SAVE ) | |
| 2778 | 2773 | GAME( 1980, zero2, defender, defender, defender, defndjeu, ROT0, "Amtec", "Zero (set 2)", GAME_SUPPORTS_SAVE ) |
| 2779 | GAME( 1980, defcmnd, defender, defender, defender, defender, ROT0, "bootleg", "Defense Command | |
| 2774 | GAME( 1980, defcmnd, defender, defender, defender, defender, ROT0, "bootleg", "Defense Command | |
| 2780 | 2775 | GAME( 1981, defence, defender, defender, defender, defender, ROT0, "Outer Limits", "Defence Command", GAME_SUPPORTS_SAVE ) |
| 2781 | 2776 | GAME( 1981, startrkd, defender, defender, defender, defender, ROT0, "bootleg", "Star Trek (Defender bootleg)", GAME_SUPPORTS_SAVE ) |
| 2782 | 2777 | GAME( 1980, mayday, 0, defender, mayday, mayday, ROT0, "<unknown>", "Mayday (set 1)", GAME_SUPPORTS_SAVE ) |
| r1649 | r1650 | |
|---|---|---|
| 149 | 149 | ***************************************************************************/ |
| 150 | 150 | |
| 151 | 151 | #include "driver.h" |
| 152 | #include "deprecat.h" | |
| 152 | 153 | #include "sound/262intf.h" |
| 153 | 154 | #include "sound/ymf278b.h" |
| 154 | 155 |
| r1649 | r1650 | |
|---|---|---|
| 38 | 38 | ***************************************************************************/ |
| 39 | 39 | |
| 40 | 40 | #include "driver.h" |
| 41 | #include "deprecat.h" | |
| 41 | 42 | #include "cpu/m6809/m6809.h" |
| 42 | 43 | #include "cpu/m6502/m6502.h" |
| 43 | 44 | #include "sound/2203intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | ***/ |
| 14 | 14 | |
| 15 | 15 | #include "driver.h" |
| 16 | #include "deprecat.h" | |
| 16 | 17 | #include "cpu/z80/z80.h" |
| 17 | 18 | #include "sound/3812intf.h" |
| 18 | 19 | #include "sound/msm5205.h" |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | ***************************************************************************/ |
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | #include "deprecat.h" | |
| 13 | 14 | #include "cpu/m6809/m6809.h" |
| 14 | 15 | #include "sound/3812intf.h" |
| 15 | 16 |
| r1649 | r1650 | |
|---|---|---|
| 19 | 19 | |
| 20 | 20 | |
| 21 | 21 | #include "driver.h" |
| 22 | #include "deprecat.h" | |
| 22 | 23 | #include "machine/atarigen.h" |
| 23 | 24 | #include "video/atarirle.h" |
| 24 | 25 | #include "cpu/m68000/m68000.h" |
| r1649 | r1650 | |
|---|---|---|
| 369 | 369 | |
| 370 | 370 | MDRV_GFXDECODE(cherrym2) |
| 371 | 371 | MDRV_PALETTE_LENGTH(256) |
| 372 | MDRV_COLORTABLE_LENGTH(256) | |
| 373 | 372 | |
| 374 | 373 | MDRV_VIDEO_START(cm2) |
| 375 | 374 | MDRV_VIDEO_UPDATE(cm2) |
| r1649 | r1650 | |
|---|---|---|
| 56 | 56 | */ |
| 57 | 57 | |
| 58 | 58 | #include "driver.h" |
| 59 | #include "deprecat.h" | |
| 59 | 60 | #include "sound/okim6295.h" |
| 60 | 61 | #include "machine/eeprom.h" |
| 61 | 62 |
| r1649 | r1650 | |
|---|---|---|
| 109 | 109 | |
| 110 | 110 | **********************************************************************/ |
| 111 | 111 | #include "driver.h" |
| 112 | #include "deprecat.h" | |
| 112 | 113 | #include "sound/dac.h" |
| 113 | 114 | #include "sound/okim6295.h" |
| 114 | 115 | #include "sound/3812intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | 14 | #include "driver.h" |
| 15 | #include "deprecat.h" | |
| 15 | 16 | #include "genesis.h" |
| 16 | 17 | |
| 17 | 18 | #define MASTER_CLOCK 53693100 |
| r1649 | r1650 | |
|---|---|---|
| 61 | 61 | */ |
| 62 | 62 | |
| 63 | 63 | #include "driver.h" |
| 64 | #include "deprecat.h" | |
| 64 | 65 | #include "sound/ay8910.h" |
| 65 | 66 | |
| 66 | 67 | static tilemap *bg_tilemap; |
| r1649 | r1650 | |
|---|---|---|
| 91 | 91 | ***************************************************************************/ |
| 92 | 92 | |
| 93 | 93 | #include "driver.h" |
| 94 | #include "deprecat.h" | |
| 94 | 95 | #include "sound/pokey.h" |
| 95 | 96 | #include "cloud9.h" |
| 96 | 97 |
| r1649 | r1650 | |
|---|---|---|
| 105 | 105 | |
| 106 | 106 | |
| 107 | 107 | #include "driver.h" |
| 108 | #include "deprecat.h" | |
| 108 | 109 | #include "cpu/m6809/m6809.h" |
| 109 | 110 | #include "sound/2151intf.h" |
| 110 | 111 | #include "sound/upd7759.h" |
| 111 | #include <math.h> | |
| 112 | 112 | |
| 113 | 113 | |
| 114 | 114 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "cpu/konami/konami.h" /* for the callback and the firq irq definition */ |
| 12 | 13 | #include "video/konamiic.h" |
| 13 | 14 | #include "sound/2151intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 80 | 80 | */ |
| 81 | 81 | |
| 82 | 82 | #include "driver.h" |
| 83 | #include "deprecat.h" | |
| 83 | 84 | #include "machine/eeprom.h" |
| 84 | 85 | |
| 85 | 86 | #define VERBOSE_AUDIO_LOG (0) // enable to show audio writes (very noisy when music is playing) |
| r1649 | r1650 | |
|---|---|---|
| 205 | 205 | ***************************************************************************/ |
| 206 | 206 | |
| 207 | 207 | #include "driver.h" |
| 208 | #include "deprecat.h" | |
| 208 | 209 | #include "taitoipt.h" |
| 209 | 210 | #include "video/taitoic.h" |
| 210 | 211 | #include "audio/taitosnd.h" |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | ***************************************************************************/ |
| 12 | 12 | |
| 13 | 13 | #include "driver.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "triplhnt.h" |
| 15 | 16 | |
| 16 | 17 | static UINT8 triplhnt_cmos[16]; |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | Notes: | |
| 4 | - Several people claim that colors are wrong, but the way the color PROMs | |
| 5 | are used seems correct. | |
| 3 | Pooyan | |
| 6 | 4 | |
| 5 | Original driver by Allard Van Der Bas | |
| 7 | 6 | |
| 8 | ||
| 7 | This hardware is ve | |
| 9 | 8 | |
| 10 | ||
| 9 | ***************************************************************************/ | |
| 11 | 10 | |
| 12 | Thanks must go to Mike Cuddy for providing information on this one. | |
| 11 | #include "driver.h" | |
| 12 | #include "deprecat.h" | |
| 13 | #include "pooyan.h" | |
| 14 | #include "audio/timeplt.h" | |
| 13 | 15 | |
| 14 | Sound processor memory map. | |
| 15 | 0x3000-0x33ff RAM. | |
| 16 | AY-8910 #1 : reg 0x5000 | |
| 17 | wr 0x4000 | |
| 18 | rd 0x4000 | |
| 19 | 16 | |
| 20 | AY-8910 #2 : reg 0x7000 | |
| 21 | wr 0x6000 | |
| 22 | rd 0x6000 | |
| 17 | #define MASTER_CLOCK XTAL_18_432MHz | |
| 23 | 18 | |
| 24 | Main processor memory map. | |
| 25 | 0000-7fff ROM | |
| 26 | 8000-83ff color RAM | |
| 27 | 8400-87ff video RAM | |
| 28 | 8800-8fff RAM | |
| 29 | 9000-97ff sprite RAM (only areas 0x9010 and 0x9410 are used). | |
| 30 | 19 | |
| 31 | memory mapped ports: | |
| 32 | 20 | |
| 33 | read: | |
| 34 | 0xA000 Dipswitch 2 adddbtll | |
| 35 | a = attract mode | |
| 36 | ddd = difficulty 0=easy, 7=hardest. | |
| 37 | b = bonus setting (easy/hard) | |
| 38 | t = table / upright | |
| 39 | ll = lives: 11=3, 10=4, 01=5, 00=255. | |
| 21 | static UINT8 irq_enable; | |
| 40 | 22 | |
| 41 | 0xA0E0 llllrrrr | |
| 42 | l == left coin mech, r = right coinmech. | |
| 43 | 23 | |
| 44 | 0xA080 IN0 Port | |
| 45 | 0xA0A0 IN1 Port | |
| 46 | 0xA0C0 IN2 Port | |
| 24 | /************************************* | |
| 25 | * | |
| 26 | * Interrupts | |
| 27 | * | |
| 28 | *************************************/ | |
| 47 | 29 | |
| 48 | write: | |
| 49 | 0xA100 command for the audio CPU. | |
| 50 | 0xA180 NMI enable. (0xA180 == 1 = deliver NMI to CPU). | |
| 30 | static MACHINE_START( pooyan ) | |
| 31 | { | |
| 32 | state_save_register_global(irq_enable); | |
| 33 | } | |
| 51 | 34 | |
| 52 | 0xA181 interrupt trigger on audio CPU. | |
| 53 | 35 | |
| 54 | 0xA183 maybe reset sound cpu? | |
| 36 | static INTERRUPT_GEN( pooyan_interrupt ) | |
| 37 | { | |
| 38 | if (irq_enable) | |
| 39 | cpunum_set_input_line(machine, 0, INPUT_LINE_NMI, ASSERT_LINE); | |
| 40 | } | |
| 55 | 41 | |
| 56 | 0xA184 ???? | |
| 57 | 42 | |
| 58 | 0xA187 Flip screen | |
| 43 | static WRITE8_HANDLER( irq_enable_w ) | |
| 44 | { | |
| 45 | irq_enable = data & 1; | |
| 46 | if (!irq_enable) | |
| 47 | cpunum_set_input_line(Machine, 0, INPUT_LINE_NMI, CLEAR_LINE); | |
| 48 | } | |
| 59 | 49 | |
| 60 | interrupts: | |
| 61 | standard NMI at 0x66 | |
| 62 | 50 | |
| 63 | ***************************************************************************/ | |
| 64 | 51 | |
| 65 | #include "driver.h" | |
| 66 | #include "audio/timeplt.h" | |
| 52 | /************************************* | |
| 53 | * | |
| 54 | * Memory maps | |
| 55 | * | |
| 56 | *************************************/ | |
| 67 | 57 | |
| 68 | ||
| 69 | extern WRITE8_HANDLER( pooyan_videoram_w ); | |
| 70 | extern WRITE8_HANDLER( pooyan_colorram_w ); | |
| 71 | extern WRITE8_HANDLER( pooyan_flipscreen_w ); | |
| 72 | ||
| 73 | extern PALETTE_INIT( pooyan ); | |
| 74 | extern VIDEO_START( pooyan ); | |
| 75 | extern VIDEO_UPDATE( pooyan ); | |
| 76 | ||
| 77 | ||
| 78 | static ADDRESS_MAP_START( pooyan_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 58 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 79 | 59 | AM_RANGE(0x0000, 0x7fff) AM_ROM |
| 80 | 60 | AM_RANGE(0x8000, 0x83ff) AM_RAM AM_WRITE(pooyan_colorram_w) AM_BASE(&colorram) |
| 81 | 61 | AM_RANGE(0x8400, 0x87ff) AM_RAM AM_WRITE(pooyan_videoram_w) AM_BASE(&videoram) |
| 82 | 62 | AM_RANGE(0x8800, 0x8fff) AM_RAM |
| 83 | AM_RANGE(0x9010, 0x903f) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size) | |
| 84 | AM_RANGE(0x9410, 0x943f) AM_RAM AM_BASE(&spriteram_2) | |
| 85 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_4_r) AM_WRITENOP /* DSW2 */ /* watchdog reset? */ | |
| 86 | AM_RANGE(0xa028, 0xa028) AM_WRITENOP // ??? | |
| 87 | AM_RANGE(0xa080, 0xa080) AM_READ(input_port_0_r) /* IN0 */ | |
| 88 | AM_RANGE(0xa0a0, 0xa0a0) AM_READ(input_port_1_r) /* IN1 */ | |
| 89 | AM_RANGE(0xa0c0, 0xa0c0) AM_READ(input_port_2_r) /* IN2 */ | |
| 90 | AM_RANGE(0xa0e0, 0xa0e0) AM_READ(input_port_3_r) /* DSW1 */ | |
| 91 | AM_RANGE(0xa100, 0xa100) AM_WRITE(soundlatch_w) | |
| 92 | AM_RANGE(0xa180, 0xa180) AM_WRITE(interrupt_enable_w) | |
| 93 | AM_RANGE(0xa181, 0xa181) AM_WRITE(timeplt_sh_irqtrigger_w) | |
| 94 | AM_RANGE(0xa183, 0xa183) AM_WRITENOP // ??? | |
| 95 | AM_RANGE(0xa187, 0xa187) AM_WRITE(pooyan_flipscreen_w) | |
| 63 | AM_RANGE(0x9000, 0x90ff) AM_MIRROR(0x0b00) AM_RAM AM_BASE(&spriteram) | |
| 64 | AM_RANGE(0x9400, 0x94ff) AM_MIRROR(0x0b00) AM_RAM AM_BASE(&spriteram_2) | |
| 65 | AM_RANGE(0xa000, 0xa000) AM_MIRROR(0x5e7f) AM_READ_PORT("DSW1") | |
| 66 | AM_RANGE(0xa080, 0xa080) AM_MIRROR(0x5e1f) AM_READ_PORT("IN0") | |
| 67 | AM_RANGE(0xa0a0, 0xa0a0) AM_MIRROR(0x5e1f) AM_READ_PORT("IN1") | |
| 68 | AM_RANGE(0xa0c0, 0xa0c0) AM_MIRROR(0x5e1f) AM_READ_PORT("IN2") | |
| 69 | AM_RANGE(0xa0e0, 0xa0e0) AM_MIRROR(0x5e1f) AM_READ_PORT("DSW0") | |
| 70 | AM_RANGE(0xa000, 0xa000) AM_MIRROR(0x5e7f) AM_WRITE(watchdog_reset_w) | |
| 71 | AM_RANGE(0xa100, 0xa100) AM_MIRROR(0x5e7f) AM_WRITE(soundlatch_w) | |
| 72 | AM_RANGE(0xa180, 0xa180) AM_MIRROR(0x5e78) AM_WRITE(irq_enable_w) | |
| 73 | AM_RANGE(0xa181, 0xa181) AM_MIRROR(0x5e78) AM_WRITE(timeplt_sh_irqtrigger_w) | |
| 74 | AM_RANGE(0xa183, 0xa183) AM_MIRROR(0x5e78) AM_WRITENOP // ??? | |
| 75 | AM_RANGE(0xa187, 0xa187) AM_MIRROR(0x5e78) AM_WRITE(pooyan_flipscreen_w) | |
| 96 | 76 | ADDRESS_MAP_END |
| 97 | 77 | |
| 98 | 78 | |
| 79 | ||
| 80 | /************************************* | |
| 81 | * | |
| 82 | * Port definitions | |
| 83 | * | |
| 84 | *************************************/ | |
| 85 | ||
| 99 | 86 | static INPUT_PORTS_START( pooyan ) |
| 100 | PORT_START | |
| 87 | PORT_START_TAG("IN0") | |
| 101 | 88 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 102 | 89 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 103 | 90 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r1649 | r1650 | |
| 105 | 92 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 ) |
| 106 | 93 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 107 | 94 | |
| 108 | PORT_START | |
| 95 | PORT_START_TAG("IN1") | |
| 109 | 96 | PORT_BIT( 0x03, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 110 | 97 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_2WAY |
| 111 | 98 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_2WAY |
| 112 | 99 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 113 | 100 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 114 | 101 | |
| 115 | PORT_START | |
| 102 | PORT_START_TAG("IN2") | |
| 116 | 103 | PORT_BIT( 0x03, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 117 | 104 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_2WAY PORT_COCKTAIL |
| 118 | 105 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_2WAY PORT_COCKTAIL |
| 119 | 106 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| 120 | 107 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 121 | 108 | |
| 122 | PORT_START | |
| 109 | PORT_START_TAG("DSW0") | |
| 123 | 110 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 124 | 111 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 125 | 112 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r1649 | r1650 | |
| 154 | 141 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) ) |
| 155 | 142 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) |
| 156 | 143 | |
| 157 | PORT_START | |
| 144 | PORT_START_TAG("DSW1") | |
| 158 | 145 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 159 | 146 | PORT_DIPSETTING( 0x03, "3" ) |
| 160 | 147 | PORT_DIPSETTING( 0x02, "4" ) |
| r1649 | r1650 | |
| 182 | 169 | |
| 183 | 170 | |
| 184 | 171 | |
| 172 | /************************************* | |
| 173 | * | |
| 174 | * Graphics layouts | |
| 175 | * | |
| 176 | *************************************/ | |
| 177 | ||
| 185 | 178 | static const gfx_layout charlayout = |
| 186 | 179 | { |
| 187 | 8,8, /* 8*8 characters */ | |
| 188 | 256, /* 256 characters */ | |
| 189 | 4, /* 4 bits per pixel */ | |
| 190 | { 0x1000*8+4, 0x1000*8+0, 4, 0 }, | |
| 191 | { 0, 1, 2, 3, 8*8+0,8*8+1,8*8+2,8*8+3 }, | |
| 192 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, | |
| 193 | 16*8 /* every char takes 16 consecutive bytes */ | |
| 180 | 8,8, | |
| 181 | RGN_FRAC(1,2), | |
| 182 | 4, | |
| 183 | { RGN_FRAC(1,2)+4, RGN_FRAC(1,2)+0, 4, 0 }, | |
| 184 | { STEP4(0,1), STEP4(8*8,1) }, | |
| 185 | { STEP8(0,8) }, | |
| 186 | 16*8 | |
| 194 | 187 | }; |
| 188 | ||
| 195 | 189 | static const gfx_layout spritelayout = |
| 196 | 190 | { |
| 197 | 16,16, /* 16*16 sprites */ | |
| 198 | 64, /* 64 sprites */ | |
| 199 | 4, /* 4 bits per pixel */ | |
| 200 | { 0x1000*8+4, 0x1000*8+0, 4, 0 }, | |
| 201 | { 0, 1, 2, 3, 8*8+0, 8*8+1, 8*8+2, 8*8+3, | |
| 202 | 16*8+0, 16*8+1, 16*8+2, 16*8+3, 24*8+0, 24*8+1, 24*8+2, 24*8+3 }, | |
| 203 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8, | |
| 204 | 32*8, 33*8, 34*8, 35*8, 36*8, 37*8, 38*8, 39*8 }, | |
| 205 | 64*8 /* every sprite takes 64 consecutive bytes */ | |
| 191 | 16,16, | |
| 192 | RGN_FRAC(1,2), | |
| 193 | 4, | |
| 194 | { RGN_FRAC(1,2)+4, RGN_FRAC(1,2)+0, 4, 0 }, | |
| 195 | { STEP4(0,1), STEP4(8*8,1), STEP4(16*8,1), STEP4(24*8,1) }, | |
| 196 | { STEP8(0,8), STEP8(32*8,8) }, | |
| 197 | 64*8 | |
| 206 | 198 | }; |
| 207 | 199 | |
| 208 | 200 | |
| 209 | ||
| 210 | 201 | static GFXDECODE_START( pooyan ) |
| 211 | 202 | GFXDECODE_ENTRY( REGION_GFX1, 0, charlayout, 0, 16 ) |
| 212 | 203 | GFXDECODE_ENTRY( REGION_GFX2, 0, spritelayout, 16*16, 16 ) |
| r1649 | r1650 | |
| 214 | 205 | |
| 215 | 206 | |
| 216 | 207 | |
| 208 | /************************************* | |
| 209 | * | |
| 210 | * Machine drivers | |
| 211 | * | |
| 212 | *************************************/ | |
| 213 | ||
| 217 | 214 | static MACHINE_DRIVER_START( pooyan ) |
| 218 | 215 | |
| 219 | 216 | /* basic machine hardware */ |
| 220 | MDRV_CPU_ADD(Z80, 3072000) /* 3.072 MHz (?) */ | |
| 221 | MDRV_CPU_PROGRAM_MAP(pooyan_map, 0) | |
| 222 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) | |
| 217 | MDRV_CPU_ADD(Z80, MASTER_CLOCK/3/2) | |
| 218 | MDRV_CPU_PROGRAM_MAP(main_map,0) | |
| 219 | MDRV_CPU_VBLANK_INT(pooyan_interrupt,1) | |
| 223 | 220 | |
| 224 | MDRV_CPU_ADD(Z80,14318180/8) | |
| 225 | /* audio CPU */ /* 1.789772727 MHz */ | |
| 226 | MDRV_CPU_PROGRAM_MAP(timeplt_sound_readmem,timeplt_sound_writemem) | |
| 227 | ||
| 228 | 221 | MDRV_SCREEN_REFRESH_RATE(60) |
| 229 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 230 | 222 | |
| 223 | MDRV_MACHINE_START(pooyan) | |
| 224 | ||
| 231 | 225 | /* video hardware */ |
| 232 | 226 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) |
| 233 | 227 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 234 | 228 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 235 | 229 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 236 | 230 | MDRV_GFXDECODE(pooyan) |
| 237 | MDRV_PALETTE_LENGTH(32) | |
| 238 | MDRV_COLORTABLE_LENGTH(16*16+16*16) | |
| 231 | MDRV_PALETTE_LENGTH(16*16+16*16) | |
| 239 | 232 | |
| 240 | 233 | MDRV_PALETTE_INIT(pooyan) |
| 241 | 234 | MDRV_VIDEO_START(pooyan) |
| 242 | 235 | MDRV_VIDEO_UPDATE(pooyan) |
| 243 | 236 | |
| 244 | 237 | /* sound hardware */ |
| 245 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 246 | ||
| 247 | MDRV_SOUND_ADD(AY8910, 14318180/8) | |
| 248 | MDRV_SOUND_CONFIG(timeplt_ay8910_interface) | |
| 249 | MDRV_SOUND_ROUTE(0, "filter.0.0", 0.60) | |
| 250 | MDRV_SOUND_ROUTE(1, "filter.0.1", 0.60) | |
| 251 | MDRV_SOUND_ROUTE(2, "filter.0.2", 0.60) | |
| 252 | ||
| 253 | MDRV_SOUND_ADD(AY8910, 14318180/8) | |
| 254 | MDRV_SOUND_ROUTE(0, "filter.1.0", 0.60) | |
| 255 | MDRV_SOUND_ROUTE(1, "filter.1.1", 0.60) | |
| 256 | MDRV_SOUND_ROUTE(2, "filter.1.2", 0.60) | |
| 257 | ||
| 258 | MDRV_SOUND_ADD_TAG("filter.0.0", FILTER_RC, 0) | |
| 259 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 260 | MDRV_SOUND_ADD_TAG("filter.0.1", FILTER_RC, 0) | |
| 261 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 262 | MDRV_SOUND_ADD_TAG("filter.0.2", FILTER_RC, 0) | |
| 263 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 264 | ||
| 265 | MDRV_SOUND_ADD_TAG("filter.1.0", FILTER_RC, 0) | |
| 266 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 267 | MDRV_SOUND_ADD_TAG("filter.1.1", FILTER_RC, 0) | |
| 268 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 269 | MDRV_SOUND_ADD_TAG("filter.1.2", FILTER_RC, 0) | |
| 270 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 238 | MDRV_IMPORT_FROM(timeplt_sound) | |
| 271 | 239 | MACHINE_DRIVER_END |
| 272 | 240 | |
| 273 | 241 | |
| 274 | 242 | |
| 275 | /*************************************************************************** | |
| 243 | /************************************* | |
| 244 | * | |
| 245 | * ROM definitions | |
| 246 | * | |
| 247 | *************************************/ | |
| 276 | 248 | |
| 277 | Game driver(s) | |
| 278 | ||
| 279 | ***************************************************************************/ | |
| 280 | ||
| 281 | 249 | ROM_START( pooyan ) |
| 282 | 250 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 283 | 251 | ROM_LOAD( "1.4a", 0x0000, 0x2000, CRC(bb319c63) SHA1(5401b8ef586127c8cf5a431e5c44e38be2254a98) ) |
| r1649 | r1650 | |
| 355 | 323 | |
| 356 | 324 | |
| 357 | 325 | |
| 358 | GAME( 1982, pooyan, 0, pooyan, pooyan, 0, ROT270, "Konami", "Pooyan", 0 ) | |
| 359 | GAME( 1982, pooyans, pooyan, pooyan, pooyan, 0, ROT270, "[Konami] (Stern license)", "Pooyan (Stern)", 0 ) | |
| 360 | GAME( 1982, pootan, pooyan, pooyan, pooyan, 0, ROT270, "bootleg", "Pootan", 0 ) | |
| 326 | /************************************* | |
| 327 | * | |
| 328 | * Game drivers | |
| 329 | * | |
| 330 | *************************************/ | |
| 331 | ||
| 332 | GAME( 1982, pooyan, 0, pooyan, pooyan, 0, ROT90, "Konami", "Pooyan", GAME_SUPPORTS_SAVE ) | |
| 333 | GAME( 1982, pooyans, pooyan, pooyan, pooyan, 0, ROT90, "[Konami] (Stern license)", "Pooyan (Stern)", GAME_SUPPORTS_SAVE ) | |
| 334 | GAME( 1982, pootan, pooyan, pooyan, pooyan, 0, ROT90, "bootleg", "Pootan", GAME_SUPPORTS_SAVE ) |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | extern void decrypt156(void); |
| 15 | 15 | |
| 16 | 16 | #include "driver.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | #include "decocrpt.h" |
| 18 | 19 | #include "deco32.h" |
| 19 | 20 | #include "machine/eeprom.h" |
| r1649 | r1650 | |
| 695 | 696 | memory_install_read32_handler(0, ADDRESS_SPACE_PROGRAM, 0x0170018, 0x017001b, 0, 0, backfire_speedup_r ); |
| 696 | 697 | } |
| 697 | 698 | |
| 698 | GAME( 1995, backfire, 0, backfire, backfire, backfire, ROT0, "Data East Corporation", "Backfire!", 0 ) | |
| 699 | GAME( 1995, backfire, 0, backfire, backfire, backfire, ROT0, "Data East Corporation", "Backfire! (set 1)", 0 ) | |
| 699 | 700 | GAME( 1995, backfira, backfire, backfire, backfire, backfire, ROT0, "Data East Corporation", "Backfire! (set 2)", 0 ) // defaults to wheel controls, must change to joystick to play |
| 700 | ||
| 701 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "video/konamiic.h" |
| 11 | 12 | #include "cpu/konami/konami.h" /* for the callback and the firq irq definition */ |
| 12 | 13 | #include "machine/eeprom.h" |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | ***************************************************************************/ |
| 15 | 15 | |
| 16 | 16 | #include "driver.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | #include "cpu/m6809/m6809.h" |
| 18 | 19 | #include "cpu/m6502/m6502.h" |
| 19 | 20 | #include "sound/2203intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 23 | 23 | ***************************************************************************/ |
| 24 | 24 | |
| 25 | 25 | #include "driver.h" |
| 26 | #include "deprecat.h" | |
| 26 | 27 | #include "cpu/m6809/m6809.h" |
| 27 | 28 | #include "video/vector.h" |
| 28 | 29 | #include "video/avgdvg.h" |
| r1649 | r1650 | |
|---|---|---|
| 56 | 56 | ***************************************************************************/ |
| 57 | 57 | |
| 58 | 58 | #include "driver.h" |
| 59 | #include "deprecat.h" | |
| 59 | 60 | #include "cpu/m6502/m6502.h" |
| 60 | 61 | #include "sound/samples.h" |
| 61 | 62 |
| r1649 | r1650 | |
|---|---|---|
| 173 | 173 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Bit 1") PORT_CODE(KEYCODE_S) |
| 174 | 174 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 175 | 175 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Bit 3") PORT_CODE(KEYCODE_F) |
| 176 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Bit 4") PORT_CODE(KEYCODE_G) | |
| 177 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Bit 5") PORT_CODE(KEYCODE_H) | |
| 178 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN3 ) // 50 Credits | |
| 176 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 ) // PORT_NAME("Bit 4") PORT_CODE(KEYCODE_G) | |
| 177 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN4 ) // PORT_NAME("Bit 5") PORT_CODE(KEYCODE_H) | |
| 178 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN3 ) // Key-In | |
| 179 | 179 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) // 10 Credits |
| 180 | 180 | |
| 181 | 181 | PORT_START_TAG("TEST") |
| r1649 | r1650 | |
| 189 | 189 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_F2) PORT_NAME("Analyzer") |
| 190 | 190 | |
| 191 | 191 | PORT_START_TAG("DSW1") |
| 192 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 193 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 194 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 195 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) | |
| 196 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 197 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 198 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 199 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 200 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 201 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 202 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 203 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 204 | PORT_DIPNAME( 0x10, 0x00, "Double Up %" ) | |
| 192 | PORT_DIPUNUSED_DIPLOC( 0x01, 0x00, "SW1:!1" ) /* Listed as "Unused" */ | |
| 193 | PORT_DIPNAME( 0x02, 0x00, "Hopper Out Switch" ) PORT_DIPLOCATION("SW1:!2") | |
| 194 | PORT_DIPSETTING( 0x02, "Active High" ) | |
| 195 | PORT_DIPSETTING( 0x00, "Active Low" ) | |
| 196 | PORT_DIPNAME( 0x04, 0x00, "Type Of Payout" ) PORT_DIPLOCATION("SW1:!3") | |
| 197 | PORT_DIPSETTING( 0x04, "Automatic" ) | |
| 198 | PORT_DIPSETTING( 0x00, "Payout SH" ) | |
| 199 | PORT_DIPNAME( 0x08, 0x00, "@ IN DoubleUp" ) PORT_DIPLOCATION("SW1:!4") | |
| 200 | PORT_DIPSETTING( 0x08, "Even" ) | |
| 201 | PORT_DIPSETTING( 0x00, "LOST" ) | |
| 202 | PORT_DIPNAME( 0x10, 0x00, "DoubleUp Pay-Rate" ) PORT_DIPLOCATION("SW1:!5") | |
| 205 | 203 | PORT_DIPSETTING( 0x00, "80%" ) |
| 206 | 204 | PORT_DIPSETTING( 0x10, "90%" ) |
| 207 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 208 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 209 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 210 | PORT_DIPNAME( 0xc0, 0x00, "Bet Max" ) | |
| 211 | PORT_DIPSETTING( 0x00, "16" ) | |
| 212 | PORT_DIPSETTING( 0x40, "32" ) | |
| 213 | PORT_DIPSETTING( 0x80, "64" ) | |
| 214 | PORT_DIPSETTING( 0xc0, "96" ) | |
| 205 | PORT_DIPNAME( 0x20, 0x00, "DoubleUp" ) PORT_DIPLOCATION("SW1:!6") | |
| 206 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 207 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 208 | PORT_DIPNAME( 0xc0, 0x00, "Bet Max" ) PORT_DIPLOCATION("SW1:!7,!8") /* Manual says 8/16/32/64 */ | |
| 209 | PORT_DIPSETTING( 0x00, "16 Bet" ) | |
| 210 | PORT_DIPSETTING( 0x40, "32 Bet" ) | |
| 211 | PORT_DIPSETTING( 0x80, "64 Bet" ) | |
| 212 | PORT_DIPSETTING( 0xc0, "96 Bet" ) | |
| 215 | 213 | |
| 216 | 214 | PORT_START_TAG("DSW2") |
| 217 | PORT_DIPNAME( 0x07, 0x00, "Main Game %" ) | |
| 218 | PORT_DIPSETTING( 0x07, "35%" ) | |
| 219 | PORT_DIPSETTING( 0x06, "40%" ) | |
| 220 | PORT_DIPSETTING( 0x05, "45%" ) | |
| 221 | PORT_DIPSETTING( 0x04, "50%" ) | |
| 222 | PORT_DIPSETTING( 0x03, "55%" ) | |
| 223 | PORT_DIPSETTING( 0x02, "60%" ) | |
| 224 | PORT_DIPSETTING( 0x01, "65%" ) | |
| 225 | PORT_DIPSETTING( 0x00, "70%" ) | |
| 226 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 227 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 228 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 229 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 230 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 231 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 232 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 233 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 234 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 235 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 236 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 237 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 238 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 239 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 240 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 241 | ||
| 242 | PORT_START_TAG("DSW3") | |
| 243 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 244 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 245 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 246 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) | |
| 247 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 248 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 249 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) | |
| 250 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 251 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 252 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 253 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 254 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 255 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) | |
| 256 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 257 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 258 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) | |
| 215 | PORT_DIPNAME( 0x07, 0x07, "Main Game Pay-Rate" ) PORT_DIPLOCATION("SW2:!1,!2,!3") | |
| 216 | PORT_DIPSETTING( 0x07, "55 30% 45" ) /* Displays 35% */ | |
| 217 | PORT_DIPSETTING( 0x06, "60 38% 50" ) /* Displays 40% */ | |
| 218 | PORT_DIPSETTING( 0x05, "65 46% 55" ) /* Displays 45% */ | |
| 219 | PORT_DIPSETTING( 0x04, "70 54% 60" ) /* Displays 50% */ | |
| 220 | PORT_DIPSETTING( 0x03, "75 62% 65" ) /* Displays 55% */ | |
| 221 | PORT_DIPSETTING( 0x02, "80 70% 70" ) /* Displays 60% */ | |
| 222 | PORT_DIPSETTING( 0x01, "85 78% 75" ) /* Displays 65% */ | |
| 223 | PORT_DIPSETTING( 0x00, "90 86% 80" ) /* Displays 70% */ | |
| 224 | PORT_DIPNAME( 0x18, 0x18, "Hopper Limit" ) PORT_DIPLOCATION("SW2:!4,!5") | |
| 225 | PORT_DIPSETTING( 0x00, "300" ) | |
| 226 | PORT_DIPSETTING( 0x08, "500" ) | |
| 227 | PORT_DIPSETTING( 0x10, "1000" ) | |
| 228 | PORT_DIPSETTING( 0x18, "Unlimited" ) | |
| 229 | PORT_DIPNAME( 0x20, 0x20, "Sound On/Off Odds Over 100" ) PORT_DIPLOCATION("SW2:!6") | |
| 259 | 230 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 260 | 231 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 261 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) | |
| 262 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 263 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 264 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) | |
| 265 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 266 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 232 | PORT_DIPNAME( 0x40, 0x40, "Type Of Key In" ) PORT_DIPLOCATION("SW2:!7") /* Manual says C-Type/D-Type probably a typo */ | |
| 233 | PORT_DIPSETTING( 0x40, "A-Type" ) | |
| 234 | PORT_DIPSETTING( 0x00, "B-Type" ) | |
| 235 | PORT_DIPNAME( 0x80, 0x80, "Bet Limit For Center Super 7" ) PORT_DIPLOCATION("SW2:!8") | |
| 236 | PORT_DIPSETTING( 0x00, "Unlimited" ) | |
| 237 | PORT_DIPSETTING( 0x80, "Limited" ) /* "Number is fixed by 4-6" */ | |
| 267 | 238 | |
| 239 | PORT_START_TAG("DSW3") | |
| 240 | PORT_DIPNAME( 0x03, 0x03, "Key In Rate" ) PORT_DIPLOCATION("SW3:1,2") | |
| 241 | PORT_DIPSETTING( 0x00, "1 Coin/10 Credits" ) PORT_CONDITION("DSW2",0x40,PORTCOND_EQUALS,0x40) // A-Type | |
| 242 | PORT_DIPSETTING( 0x01, "1 Coin/20 Credits" ) PORT_CONDITION("DSW2",0x40,PORTCOND_EQUALS,0x40) | |
| 243 | PORT_DIPSETTING( 0x02, "1 Coin/50 Credits" ) PORT_CONDITION("DSW2",0x40,PORTCOND_EQUALS,0x40) | |
| 244 | PORT_DIPSETTING( 0x03, "1 Coin/100 Credits" ) PORT_CONDITION("DSW2",0x40,PORTCOND_EQUALS,0x40) | |
| 245 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_5C ) ) PORT_CONDITION("DSW2",0x40,PORTCOND_EQUALS,0x00) // B-Type | |
| 246 | PORT_DIPSETTING( 0x01, "1 Coin/10 Credits" ) PORT_CONDITION("DSW2",0x40,PORTCOND_EQUALS,0x00) | |
| 247 | PORT_DIPSETTING( 0x02, "1 Coin/25 Credits" ) PORT_CONDITION("DSW2",0x40,PORTCOND_EQUALS,0x00) | |
| 248 | PORT_DIPSETTING( 0x03, "1 Coin/50 Credits" ) PORT_CONDITION("DSW2",0x40,PORTCOND_EQUALS,0x00) | |
| 249 | PORT_DIPNAME( 0x0c, 0x0c, "Coin A Rate" ) PORT_DIPLOCATION("SW3:3,4") | |
| 250 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 251 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) ) | |
| 252 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_5C ) ) | |
| 253 | PORT_DIPSETTING( 0x0c, "1 Coin/10 Credits" ) | |
| 254 | PORT_DIPNAME( 0x30, 0x30, "Coin D Rate" ) PORT_DIPLOCATION("SW3:5,6") | |
| 255 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_5C ) ) PORT_CONDITION("DSW4",0x10,PORTCOND_EQUALS,0x00) // C-Type | |
| 256 | PORT_DIPSETTING( 0x10, "1 Coin/10 Credits" ) PORT_CONDITION("DSW4",0x10,PORTCOND_EQUALS,0x00) | |
| 257 | PORT_DIPSETTING( 0x20, "1 Coin/25 Credits" ) PORT_CONDITION("DSW4",0x10,PORTCOND_EQUALS,0x00) | |
| 258 | PORT_DIPSETTING( 0x30, "1 Coin/50 Credits" ) PORT_CONDITION("DSW4",0x10,PORTCOND_EQUALS,0x00) | |
| 259 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) PORT_CONDITION("DSW4",0x10,PORTCOND_EQUALS,0x10) // D-Type | |
| 260 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSW4",0x10,PORTCOND_EQUALS,0x10) | |
| 261 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_1C ) ) PORT_CONDITION("DSW4",0x10,PORTCOND_EQUALS,0x10) | |
| 262 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSW4",0x10,PORTCOND_EQUALS,0x10) | |
| 263 | PORT_DIPNAME( 0xc0, 0xc0, "Coin C Rate" ) PORT_DIPLOCATION("SW3:7,8") | |
| 264 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_1C ) ) | |
| 265 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) | |
| 266 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) | |
| 267 | PORT_DIPSETTING( 0x00, "1 Coin/10 Credits" ) | |
| 268 | ||
| 268 | 269 | PORT_START_TAG("DSW4") |
| 269 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 270 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 271 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 272 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) | |
| 273 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 274 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 275 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) | |
| 276 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 277 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 278 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 270 | PORT_DIPNAME( 0x07, 0x07, "Credit Limit" ) PORT_DIPLOCATION("SW4:1,2,3") | |
| 271 | PORT_DIPSETTING( 0x07, "5,000" ) | |
| 272 | PORT_DIPSETTING( 0x06, "10,000" ) | |
| 273 | PORT_DIPSETTING( 0x05, "20,000" ) | |
| 274 | PORT_DIPSETTING( 0x04, "30,000" ) | |
| 275 | PORT_DIPSETTING( 0x03, "40,000" ) | |
| 276 | PORT_DIPSETTING( 0x02, "50,000" ) | |
| 277 | PORT_DIPSETTING( 0x01, "100,000" ) | |
| 278 | PORT_DIPSETTING( 0x00, "Unlimited" ) | |
| 279 | PORT_DIPNAME( 0x08, 0x08, "Display Of Payout Limit" ) PORT_DIPLOCATION("SW4:4") | |
| 279 | 280 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 280 | 281 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 281 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) | |
| 282 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 283 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 284 | PORT_DIPNAME( 0x20, 0x20, "Bet Over" ) | |
| 285 | PORT_DIPSETTING( 0x20, "16" ) | |
| 286 | PORT_DIPSETTING( 0x00, "8" ) | |
| 287 | PORT_DIPNAME( 0x40, 0x40, "Reel Speed" ) | |
| 288 | PORT_DIPSETTING( 0x40, DEF_STR( Low ) ) | |
| 289 | PORT_DIPSETTING( 0x00, DEF_STR( High ) ) | |
| 290 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) | |
| 282 | PORT_DIPNAME( 0x10, 0x10, "Type Of Coin D" ) PORT_DIPLOCATION("SW4:5") | |
| 283 | PORT_DIPSETTING( 0x10, "C-Type" ) | |
| 284 | PORT_DIPSETTING( 0x00, "D-Type" ) | |
| 285 | PORT_DIPNAME( 0x20, 0x20, "Min. Bet For Bonus Play" ) PORT_DIPLOCATION("SW4:6") | |
| 286 | PORT_DIPSETTING( 0x20, "16 Bet" ) | |
| 287 | PORT_DIPSETTING( 0x00, "8 Bet" ) | |
| 288 | PORT_DIPNAME( 0x40, 0x40, "Reel Speed" ) PORT_DIPLOCATION("SW4:7") | |
| 289 | PORT_DIPSETTING( 0x40, DEF_STR( High ) ) | |
| 290 | PORT_DIPSETTING( 0x00, DEF_STR( Low ) ) | |
| 291 | PORT_DIPNAME( 0x80, 0x80, "Hopper Out By Coin A" ) PORT_DIPLOCATION("SW4:8") | |
| 291 | 292 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 292 | 293 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 293 | 294 | |
| 294 | 295 | PORT_START_TAG("DSW5") |
| 295 | PORT_DIPNAME( 0x01, 0x01, D | |
| 296 | PORT_DIPNAME( 0x01, 0x01, "Display | |
| 296 | 297 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 297 | 298 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 298 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) | |
| 299 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 300 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 301 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) | |
| 302 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 303 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 304 | PORT_DIPNAME( 0x18, 0x18, "Cherry/Bell Bonus" ) | |
| 305 | PORT_DIPSETTING( 0x00, "3/2" ) | |
| 306 | PORT_DIPSETTING( 0x08, "6/3" ) | |
| 307 | PORT_DIPSETTING( 0x10, "9/5" ) | |
| 308 | PORT_DIPSETTING( 0x18, "12/7" ) | |
| 309 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) | |
| 310 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 311 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 312 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) | |
| 313 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 314 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 315 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) | |
| 299 | PORT_DIPNAME( 0x06, 0x06, "Coin In Limit" ) PORT_DIPLOCATION("SW5:2,3") | |
| 300 | PORT_DIPSETTING( 0x06, "1,000" ) | |
| 301 | PORT_DIPSETTING( 0x04, "5,000" ) | |
| 302 | PORT_DIPSETTING( 0x02, "10,000" ) | |
| 303 | PORT_DIPSETTING( 0x00, "20,000" ) | |
| 304 | PORT_DIPNAME( 0x18, 0x18, "Condition For 3 Kind Of Bonus" ) PORT_DIPLOCATION("SW5:4,5") | |
| 305 | PORT_DIPSETTING( 0x18, "12-7-1" ) | |
| 306 | PORT_DIPSETTING( 0x10, "9-5-1" ) | |
| 307 | PORT_DIPSETTING( 0x08, "6-3-1" ) | |
| 308 | PORT_DIPSETTING( 0x00, "3-2-1" ) | |
| 309 | PORT_DIPNAME( 0x20, 0x20, "Display Of Doll At All Fr. Bonus" ) PORT_DIPLOCATION("SW5:6") | |
| 310 | PORT_DIPSETTING( 0x20, DEF_STR( Low ) ) | |
| 311 | PORT_DIPSETTING( 0x00, DEF_STR( High ) ) | |
| 312 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW5:7" ) /* Listed as "Unused" */ | |
| 313 | PORT_DIPNAME( 0x80, 0x80, "Test Mode For Disp. Of Doll" ) PORT_DIPLOCATION("SW5:8") | |
| 316 | 314 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 317 | 315 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 318 | 316 | INPUT_PORTS_END |
| r1649 | r1650 | |
|---|---|---|
| 28 | 28 | ***************************************************************************/ |
| 29 | 29 | |
| 30 | 30 | #include "driver.h" |
| 31 | #include "deprecat.h" | |
| 31 | 32 | #include "machine/segaic16.h" |
| 32 | 33 | #include "system16.h" |
| 33 | 34 | #include "genesis.h" |
| r1649 | r1650 | |
|---|---|---|
| 59 | 59 | |
| 60 | 60 | */ |
| 61 | 61 | #include "driver.h" |
| 62 | #include "deprecat.h" | |
| 62 | 63 | #include "video/resnet.h" |
| 63 | 64 | #include "sound/ay8910.h" |
| 64 | 65 |
| r1649 | r1650 | |
|---|---|---|
| 27 | 27 | */ |
| 28 | 28 | |
| 29 | 29 | #include "driver.h" |
| 30 | #include "deprecat.h" | |
| 30 | 31 | #include "sound/okim6295.h" |
| 31 | 32 | #include "sound/3812intf.h" |
| 32 | 33 |
| r1649 | r1650 | |
|---|---|---|
| 85 | 85 | ****************************************************************************/ |
| 86 | 86 | |
| 87 | 87 | #include "driver.h" |
| 88 | #include "deprecat.h" | |
| 88 | 89 | #include "cpu/tlcs90/tlcs90.h" |
| 89 | 90 | #include "machine/msm6242.h" |
| 90 | 91 | #include "sound/ay8910.h" |
| r1649 | r1650 | |
|---|---|---|
| 68 | 68 | |
| 69 | 69 | */ |
| 70 | 70 | |
| 71 | #include <stdio.h> | |
| 72 | 71 | #include "driver.h" |
| 72 | #include "deprecat.h" | |
| 73 | 73 | #include "sound/scsp.h" |
| 74 | 74 | |
| 75 | 75 | /* video */ |
| r1649 | r1650 | |
|---|---|---|
| 24 | 24 | */ |
| 25 | 25 | |
| 26 | 26 | #include "driver.h" |
| 27 | #include "deprecat.h" | |
| 27 | 28 | #include "audio/t5182.h" |
| 28 | 29 | |
| 29 | 30 |
| r1649 | r1650 | |
|---|---|---|
| 25 | 25 | ***************************************************************************/ |
| 26 | 26 | |
| 27 | 27 | #include "driver.h" |
| 28 | #include "deprecat.h" | |
| 28 | 29 | #include "sound/ay8910.h" |
| 29 | 30 | #include "sound/dac.h" |
| 30 | 31 |
| r0 | r1650 | |
|---|---|---|
| 1 | /* | |
| 2 | Galaxy Games | |
| 3 | ||
| 4 | ---- | |
| 5 | ||
| 6 | This is a multi-game coctail cabinet released in 1998. Namco seems to have | |
| 7 | made some cartridges for it (or at least licensed their IP). | |
| 8 | ||
| 9 | Trackball-based. 'BIOS' has 7 built-in games. There are two LEDs on the PCB. | |
| 10 | ||
| 11 | More information here : http://www.cesgames.com/museum/galaxy/index.html | |
| 12 | ||
| 13 | ---- | |
| 14 | ||
| 15 | Board silkscreend 237-0211-00 | |
| 16 | REV.-D | |
| 17 | ||
| 18 | Cartridge based mother board | |
| 19 | Holds up to 4 cartridges | |
| 20 | Chips labeled | |
| 21 | GALAXY U1 V1.90 12/1/98 | |
| 22 | GALAXY U2 V1.90 12/1/98 | |
| 23 | ||
| 24 | NAMCO 307 Cartridge has surface mount Flash chips in it (not dumped?). | |
| 25 | ||
| 26 | Looks like it requires a medium resolution monitor | |
| 27 | ||
| 28 | Motorola MC68HC000FN12 | |
| 29 | 24 MHz oscillator | |
| 30 | Xilinx XC5206 | |
| 31 | Xilinx XC5202 | |
| 32 | BT481AKPJ110 | |
| 33 | NKK N341024SJ-15 x8 (128kb RAM) | |
| 34 | OKI M6295 8092352-2 | |
| 35 | ||
| 36 | PAL16V8H-15 @ U24 Blue dot on it | |
| 37 | PAL16V8H-15 @ U25 Yellow dot on it | |
| 38 | PAL16V8H-15 @ U26 Red dot on it | |
| 39 | PAL16V8H-15 @ U27 Green dot on it | |
| 40 | PAL16V8H-15 @ U45 red dot on it | |
| 41 | ||
| 42 | ---- | |
| 43 | ||
| 44 | There are a few built-in games on the hardware, so the driver can grow mature without carts dumped. | |
| 45 | ||
| 46 | TODO : This is a skeleton driver. Just about everything. | |
| 47 | ||
| 48 | */ | |
| 49 | ||
| 50 | #include <stdio.h> | |
| 51 | #include "driver.h" | |
| 52 | #include "video/generic.h" | |
| 53 | ||
| 54 | static READ16_HANDLER( dummy_read_01 ) | |
| 55 | { | |
| 56 | return 0x3; // Pass the check at PC = 0x00000FAE & a later one | |
| 57 | } | |
| 58 | ||
| 59 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 60 | AM_RANGE(0x000000, 0x1fffff) AM_ROM | |
| 61 | /* AM_RANGE(0x01a900, 0x01a9ff) AM_RAM Need to install memory handlers | |
| 62 | ... in the middle of the ROM space? | |
| 63 | AM_RANGE(0x01f700, 0x01f7ff) AM_RAM */ | |
| 64 | AM_RANGE(0x200000, 0x23ffff) AM_RAM /* 2x N341024SJ-15 */ | |
| 65 | AM_RANGE(0x400000, 0x400001) AM_RAM | |
| 66 | AM_RANGE(0x600000, 0x600001) AM_READ(dummy_read_01) | |
| 67 | AM_RANGE(0x700000, 0x700001) AM_RAM /* Writes a 0x0002 here early, reads it later */ | |
| 68 | AM_RANGE(0x900000, 0x900001) AM_NOP /* Writes 0xffff here before each test memory access. */ | |
| 69 | AM_RANGE(0xb00000, 0xb7ffff) AM_RAM /* 4x N341024SJ-15 */ | |
| 70 | AM_RANGE(0xd00000, 0xd00001) AM_RAM | |
| 71 | ADDRESS_MAP_END | |
| 72 | ||
| 73 | ||
| 74 | static INPUT_PORTS_START( galgames ) | |
| 75 | INPUT_PORTS_END | |
| 76 | ||
| 77 | ||
| 78 | static MACHINE_DRIVER_START( galgames ) | |
| 79 | MDRV_CPU_ADD_TAG("main", M68000, XTAL_24MHz) | |
| 80 | MDRV_CPU_PROGRAM_MAP(main_map,0) | |
| 81 | //MDRV_CPU_VBLANK_INT(main_int, 2) | |
| 82 | ||
| 83 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 84 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 85 | ||
| 86 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 87 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 88 | ||
| 89 | MDRV_SCREEN_SIZE(640, 480) | |
| 90 | MDRV_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1) | |
| 91 | MDRV_PALETTE_LENGTH(0x100) | |
| 92 | ||
| 93 | MDRV_VIDEO_START(generic_bitmapped) | |
| 94 | MDRV_VIDEO_UPDATE(generic_bitmapped) | |
| 95 | MACHINE_DRIVER_END | |
| 96 | ||
| 97 | ||
| 98 | ROM_START( galgbios ) | |
| 99 | ROM_REGION( 0x200000, REGION_CPU1, 0 ) | |
| 100 | ROM_LOAD16_BYTE( "galaxy.u2", 0x000000, 0x100000, CRC(e51ff184) SHA1(aaa795f2c15ec29b3ceeb5c917b643db0dbb7083) ) | |
| 101 | ROM_LOAD16_BYTE( "galaxy.u1", 0x000001, 0x100000, CRC(c6d7bc6d) SHA1(93c032f9aa38cbbdda59a8a25ff9f38f7ad9c760) ) | |
| 102 | ROM_END | |
| 103 | ||
| 104 | ||
| 105 | /* System board BIOS */ | |
| 106 | /* YEAR NAME PARENT MACHINE INPUT INIT MONITOR COMPANY FULLNAME FLAGS */ | |
| 107 | GAME( 1998, galgbios, 0, galgames, galgames, 0, ROT0, "Creative Electonics", "Galaxy Games BIOS", GAME_NOT_WORKING | GAME_IS_BIOS_ROOT ) |
| r1649 | r1650 | |
|---|---|---|
| 49 | 49 | |
| 50 | 50 | |
| 51 | 51 | #include "driver.h" |
| 52 | #include "deprecat.h" | |
| 52 | 53 | #include "sound/okim6295.h" |
| 53 | 54 | |
| 54 | 55 | /* video/funybubl.c */ |
| r1649 | r1650 | |
|---|---|---|
| 420 | 420 | /* no samples on this board */ |
| 421 | 421 | ROM_END |
| 422 | 422 | |
| 423 | GAME( 1989, matchit, 0, shisen, matchit, 0, ROT0, "Tamtex", "Match It", 0 ) | |
| 424 | GAME( 1989, shisen, matchit, shisen, shisen, 0, ROT0, "Tamtex", "Shisensho - Joshiryo-Hen (Japan)", 0 ) | |
| 425 | GAME( 1989, sichuan2, matchit, shisen, shisen, 0, ROT0, "hack", "Sichuan II (hack set 1)", 0 ) | |
| 426 | GAME( 1989, sichuana, matchit, shisen, shisen, 0, ROT0, "hack", "Sichuan II (hack set 2)", 0 ) | |
| 423 | GAME( 1989, matchit, 0, shisen, matchit, 0, ROT0, "Tamtex", "Match It", 0 ) | |
| 424 | GAME( 1989, shisen, matchit, shisen, shisen, 0, ROT0, "Tamtex", "Shisensho - Joshiryo-Hen (Japan)", 0 ) | |
| 425 | GAME( 1989, sichuan2, matchit, shisen, shisen, 0, ROT0, "hack", "Sichuan II (hack, set 1)", 0 ) | |
| 426 | GAME( 1989, sichuana, matchit, shisen, shisen, 0, ROT0, "hack", "Sichuan II (hack, set 2)", 0 ) |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | Tutankham | |
| 3 | Tutankham | |
| 4 | 4 | |
| 5 | driver by Mirko Buffoni | |
| 5 | driver by Mirko Buffoni | |
| 6 | based on original work by Rob Jarrett | |
| 6 | 7 | |
| 7 | I include here the document based on Rob Jarrett's research because it's | |
| 8 | really exaustive. | |
| 8 | I include here the document based on Rob Jarrett's research because it's | |
| 9 | really exaustive. | |
| 9 | 10 | |
| 11 | Sound board: uses the same board as Pooyan. | |
| 10 | 12 | |
| 13 | ***************************************************************************/ | |
| 11 | 14 | |
| 12 | Tutankham Emu Info | |
| 13 | ------------------ | |
| 15 | #include "driver.h" | |
| 16 | #include "deprecat.h" | |
| 17 | #include "tutankhm.h" | |
| 18 | #include "cpu/m6809/m6809.h" | |
| 19 | #include "audio/timeplt.h" | |
| 14 | 20 | |
| 15 | By Rob Jarrett | |
| 16 | robj@astound.com (until June 20, 1997) | |
| 17 | or robncait@inforamp.net | |
| 18 | 21 | |
| 19 | Special thanks go to Pete Custerson for the schematics!! | |
| 20 | 22 | |
| 23 | static UINT8 irq_toggle; | |
| 24 | static UINT8 irq_enable; | |
| 21 | 25 | |
| 22 | I've recently been working on an emulator for Tutankham. Unfortunately, | |
| 23 | time and resources are not on my side so I'd like to provide anyone with | |
| 24 | the technical information I've gathered so far, that way someone can | |
| 25 | finish the project. | |
| 26 | 26 | |
| 27 | First of all, I'd like to say that I've had no prior experience in | |
| 28 | writing an emulator, and my hardware knowledge is weak. I've managed to | |
| 29 | find out a fair amount by looking at the schematics of the game and the | |
| 30 | disassembled ROMs. Using the USim C++ 6809 core I have the game sort of | |
| 31 | up and running, albeit in a pathetic state. It's not playable, and | |
| 32 | crashes after a short amount of time. I don't feel the source code is | |
| 33 | worth releasing because of the bad design; I was using it as a testing | |
| 34 | bed and anticipated rewriting everything in the future. | |
| 35 | 27 | |
| 36 | Here's all the info I know about Tutankham: | |
| 28 | /************************************* | |
| 29 | * | |
| 30 | * Interrupts | |
| 31 | * | |
| 32 | *************************************/ | |
| 37 | 33 | |
| 38 | Processor: 6809 | |
| 39 | Sound: Z80 slave w/2 AY3910 sound chips | |
| 40 | Graphics: Bitmapped display, no sprites (!) | |
| 41 | Memory Map: | |
| 34 | static INTERRUPT_GEN( tutankhm_interrupt ) | |
| 35 | { | |
| 36 | /* flip flops cause the interrupt to be signalled every other frame */ | |
| 37 | irq_toggle ^= 1; | |
| 38 | if (irq_toggle && irq_enable) | |
| 39 | cpunum_set_input_line(machine, 0, 0, ASSERT_LINE); | |
| 40 | } | |
| 42 | 41 | |
| 43 | Address R/W Bits Function | |
| 44 | ------------------------------------------------------------------------------------------------------ | |
| 45 | $0000-$7fff Video RAM | |
| 46 | - Screen is stored sideways, 256x256 pixels | |
| 47 | - 1 byte=2 pixels | |
| 48 | R/W aaaaxxxx - leftmost pixel palette index | |
| 49 | R/W xxxxbbbb - rightmost pixel palette index | |
| 50 | - **** not correct **** Looks like some of this memory is for I/O state, (I think < $0100) | |
| 51 | so you might want to blit from $0100-$7fff | |
| 52 | 42 | |
| 53 | $8000-$800f R/W aaaaaaaa Palette colors | |
| 54 | - Don't know how to decode them into RGB values | |
| 43 | static WRITE8_HANDLER( irq_enable_w ) | |
| 44 | { | |
| 45 | irq_enable = data & 1; | |
| 46 | if (!irq_enable) | |
| 47 | cpunum_set_input_line(Machine, 0, 0, CLEAR_LINE); | |
| 48 | } | |
| 55 | 49 | |
| 56 | $8100 W Not sure | |
| 57 | - Video chip function of some sort | |
| 58 | ( split screen y pan position -- TT ) | |
| 59 | 50 | |
| 60 | $8120 R Not sure | |
| 61 | - Read from quite frequently | |
| 62 | - Some sort of video or interrupt thing? | |
| 63 | - Or a random number seed? | |
| 64 | ( watchdog reset -- NS ) | |
| 65 | 51 | |
| 66 | $8160 Dip Switch 2 | |
| 67 | - Inverted bits (ie. 1=off) | |
| 68 | R xxxxxxxa DSWI1 | |
| 69 | R | |
| 70 | R . | |
| 71 | R . | |
| 72 | R . | |
| 73 | R | |
| 74 | R | |
| 75 | R axxxxxxx DSWI8 | |
| 52 | /************************************* | |
| 53 | * | |
| 54 | * Bank selection | |
| 55 | * | |
| 56 | *************************************/ | |
| 76 | 57 | |
| 77 | $8180 I/O: Coin slots, service, 1P/2P buttons | |
| 78 | R | |
| 58 | static MACHINE_START( tutankhm ) | |
| 59 | { | |
| 60 | memory_configure_bank(1, 0, 16, memory_region(REGION_CPU1) + 0x10000, 0x1000); | |
| 61 | state_save_register_global(irq_toggle); | |
| 62 | state_save_register_global(irq_enable); | |
| 63 | } | |
| 79 | 64 | |
| 80 | $81a0 Player 1 I/O | |
| 81 | R | |
| 82 | 65 | |
| 83 | $81c0 Player 2 I/O | |
| 84 | R | |
| 66 | static WRITE8_HANDLER( tutankhm_bankselect_w ) | |
| 67 | { | |
| 68 | memory_set_bank(1, data & 0x0f); | |
| 69 | } | |
| 85 | 70 | |
| 86 | $81e0 Dip Switch 1 | |
| 87 | - Inverted bits | |
| 88 | R xxxxxxxa DSWI1 | |
| 89 | R | |
| 90 | R . | |
| 91 | R . | |
| 92 | R . | |
| 93 | R | |
| 94 | R | |
| 95 | R axxxxxxx DSWI8 | |
| 96 | 71 | |
| 97 | $8200 IST on schematics | |
| 98 | - Enable/disable IRQ | |
| 99 | R/W xxxxxxxa - a=1 IRQ can be fired, a=0 IRQ can't be fired | |
| 100 | 72 | |
| 101 | $8202 OUT2 (Coin counter) | |
| 102 | W xxxxxxxa - Increment coin counter | |
| 73 | /************************************* | |
| 74 | * | |
| 75 | * Outputs | |
| 76 | * | |
| 77 | *************************************/ | |
| 103 | 78 | |
| 104 | $8203 OUT1 (Coin counter) | |
| 105 | W xxxxxxxa - Increment coin counter | |
| 106 | ||
| 107 | $8204 Not sure - 401 on schematics | |
| 108 | W | |
| 109 | ||
| 110 | $8205 MUT on schematics | |
| 111 | R/W xxxxxxxa - Sound amplification on/off? | |
| 112 | ||
| 113 | $8206 HFF on schematics | |
| 114 | W - Don't know what it does | |
| 115 | ( horizontal screen flip -- NS ) | |
| 116 | ||
| 117 | $8207 Not sure - can't resolve on schematics | |
| 118 | W | |
| 119 | ( vertical screen flip -- NS ) | |
| 120 | ||
| 121 | $8300 Graphics bank select | |
| 122 | W xxxxxaaa - Selects graphics ROM 0-11 that appears at $9000-9fff | |
| 123 | - But wait! There's only 9 ROMs not 12! I think the PCB allows 12 | |
| 124 | ROMs for patches/mods to the game. Just make 9-11 return 0's | |
| 125 | ||
| 126 | $8600 W SON on schematics | |
| 127 | ( trigger interrupt on audio CPU -- NS ) | |
| 128 | $8608 R/W SON on schematics | |
| 129 | - Sound on/off? i.e. Run/halt Z80 sound CPU? | |
| 130 | ||
| 131 | $8700 W aaaaaaaa SDA on schematics | |
| 132 | - Sound data? Maybe Z80 polls here and plays the appropriate sound? | |
| 133 | - If so, easy to trigger samples here | |
| 134 | ||
| 135 | $8800-$8fff RAM | |
| 136 | R/W - Memory for the program ROMs | |
| 137 | ||
| 138 | $9000-$9fff Graphics ROMs ra1_1i.cpu - ra1_9i.cpu | |
| 139 | R aaaaaaaa - See address $8300 for usage | |
| 140 | ||
| 141 | $a000-$afff ROM ra1_1h.cpu | |
| 142 | R aaaaaaaa - 6809 Code | |
| 143 | ||
| 144 | $b000-$bfff ROM ra1_2h.cpu | |
| 145 | R aaaaaaaa - 6809 Code | |
| 146 | ||
| 147 | $c000-$cfff ROM ra1_3h.cpu | |
| 148 | R aaaaaaaa - 6809 Code | |
| 149 | ||
| 150 | $d000-$dfff ROM ra1_4h.cpu | |
| 151 | R aaaaaaaa - 6809 Code | |
| 152 | ||
| 153 | $e000-$efff ROM ra1_5h.cpu | |
| 154 | R aaaaaaaa - 6809 Code | |
| 155 | ||
| 156 | $f000-$ffff ROM ra1_6h.cpu | |
| 157 | R aaaaaaaa - 6809 Code | |
| 158 | ||
| 159 | Programming notes: | |
| 160 | ||
| 161 | I found that generating an IRQ every 4096 instructions seemed to kinda work. Again, I know | |
| 162 | little about emu writing and I think some fooling with this number might be needed. | |
| 163 | ||
| 164 | Sorry I didn't supply the DSW and I/O bits, this info is available elsewhere on the net, I | |
| 165 | think at tant or something. I just couldn't remember what they were at this writing!! | |
| 166 | ||
| 167 | If there are any questions at all, please feel free to email me at robj@astound.com (until | |
| 168 | June 20, 1997) or robncait@inforamp.net. | |
| 169 | ||
| 170 | ||
| 171 | BTW, this information is completely free - do as you wish with it. I'm not even sure if it's | |
| 172 | correct! (Most of it seems to be). Giving me some credit if credit is due would be nice, | |
| 173 | and please let me know about your emulator if you release it. | |
| 174 | ||
| 175 | ||
| 176 | Sound board: uses the same board as Pooyan. | |
| 177 | ||
| 178 | ***************************************************************************/ | |
| 179 | ||
| 180 | #include "driver.h" | |
| 181 | #include "cpu/m6809/m6809.h" | |
| 182 | #include "audio/timeplt.h" | |
| 183 | ||
| 184 | ||
| 185 | ||
| 186 | extern UINT8 *tutankhm_videoram; | |
| 187 | extern size_t tutankhm_videoram_size; | |
| 188 | extern UINT8 *tutankhm_paletteram; | |
| 189 | extern UINT8 *tutankhm_scroll; | |
| 190 | ||
| 191 | WRITE8_HANDLER( tutankhm_flip_screen_x_w ); | |
| 192 | WRITE8_HANDLER( tutankhm_flip_screen_y_w ); | |
| 193 | VIDEO_UPDATE( tutankhm ); | |
| 194 | ||
| 195 | ||
| 196 | static WRITE8_HANDLER( tutankhm_bankselect_w ) | |
| 79 | static WRITE8_HANDLER( sound_mute_w ) | |
| 197 | 80 | { |
| 198 | offs_t bankaddress; | |
| 199 | UINT8 *RAM = memory_region(REGION_CPU1); | |
| 200 | ||
| 201 | bankaddress = 0x10000 + (data & 0x0f) * 0x1000; | |
| 202 | memory_set_bankptr(1,&RAM[bankaddress]); | |
| 81 | sound_global_enable(~data & 1); | |
| 203 | 82 | } |
| 204 | 83 | |
| 205 | 84 | |
| r1649 | r1650 | |
| 209 | 88 | } |
| 210 | 89 | |
| 211 | 90 | |
| 91 | ||
| 92 | /************************************* | |
| 93 | * | |
| 94 | * Main CPU memory handlers | |
| 95 | * | |
| 96 | *************************************/ | |
| 97 | ||
| 212 | 98 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 213 | AM_RANGE(0x0000, 0x7fff) AM_RAM AM_BASE(&tutankhm_videoram) AM_SIZE(&tutankhm_videoram_size) | |
| 214 | AM_RANGE(0x8000, 0x800f) AM_RAM AM_BASE(&tutankhm_paletteram) | |
| 215 | AM_RANGE(0x8100, 0x8100) AM_RAM AM_BASE(&tutankhm_scroll) | |
| 216 | AM_RANGE(0x8120, 0x8120) AM_READ(watchdog_reset_r) | |
| 217 | AM_RANGE(0x8160, 0x8160) AM_READ(input_port_0_r) /* DSW2 (inverted bits) */ | |
| 218 | AM_RANGE(0x8180, 0x8180) AM_READ(input_port_1_r) /* IN0 I/O: Coin slots, service, 1P/2P buttons */ | |
| 219 | AM_RANGE(0x81a0, 0x81a0) AM_READ(input_port_2_r) /* IN1: Player 1 I/O */ | |
| 220 | AM_RANGE(0x81c0, 0x81c0) AM_READ(input_port_3_r) /* IN2: Player 2 I/O */ | |
| 221 | AM_RANGE(0x81e0, 0x81e0) AM_READ(input_port_4_r) /* DSW1 (inverted bits) */ | |
| 222 | AM_RANGE(0x8200, 0x8200) AM_WRITE(interrupt_enable_w) | |
| 223 | AM_RANGE(0x8202, 0x8203) AM_WRITE(tutankhm_coin_counter_w) | |
| 224 | AM_RANGE(0x8205, 0x8205) AM_WRITE(MWA8_NOP) /* ??? */ | |
| 225 | AM_RANGE(0x8206, 0x8206) AM_WRITE(tutankhm_flip_screen_x_w) | |
| 226 | AM_RANGE(0x8207, 0x8207) AM_WRITE(tutankhm_flip_screen_y_w) | |
| 227 | AM_RANGE(0x8300, 0x8300) AM_WRITE(tutankhm_bankselect_w) | |
| 228 | AM_RANGE(0x8600, 0x8600) AM_WRITE(timeplt_sh_irqtrigger_w) | |
| 229 | AM_RANGE(0x8700, 0x8700) AM_WRITE(soundlatch_w) | |
| 99 | AM_RANGE(0x0000, 0x7fff) AM_RAM AM_BASE(&videoram) AM_SIZE(&videoram_size) | |
| 100 | AM_RANGE(0x8000, 0x800f) AM_MIRROR(0x00f0) AM_RAM AM_BASE(&paletteram) | |
| 101 | AM_RANGE(0x8100, 0x8100) AM_MIRROR(0x000f) AM_RAM AM_BASE(&tutankhm_scroll) | |
| 102 | AM_RANGE(0x8120, 0x8120) AM_MIRROR(0x000f) AM_READ(watchdog_reset_r) | |
| 103 | AM_RANGE(0x8160, 0x8160) AM_MIRROR(0x000f) AM_READ_PORT("DSW2") /* DSW2 (inverted bits) */ | |
| 104 | AM_RANGE(0x8180, 0x8180) AM_MIRROR(0x000f) AM_READ_PORT("IN0") /* IN0 I/O: Coin slots, service, 1P/2P buttons */ | |
| 105 | AM_RANGE(0x81a0, 0x81a0) AM_MIRROR(0x000f) AM_READ_PORT("IN1") /* IN1: Player 1 I/O */ | |
| 106 | AM_RANGE(0x81c0, 0x81c0) AM_MIRROR(0x000f) AM_READ_PORT("IN2") /* IN2: Player 2 I/O */ | |
| 107 | AM_RANGE(0x81e0, 0x81e0) AM_MIRROR(0x000f) AM_READ_PORT("DSW1") /* DSW1 (inverted bits) */ | |
| 108 | AM_RANGE(0x8200, 0x8200) AM_MIRROR(0x00f8) AM_READWRITE(MRA8_NOP, irq_enable_w) | |
| 109 | AM_RANGE(0x8202, 0x8203) AM_MIRROR(0x00f8) AM_WRITE(tutankhm_coin_counter_w) | |
| 110 | AM_RANGE(0x8205, 0x8205) AM_MIRROR(0x00f8) AM_WRITE(sound_mute_w) | |
| 111 | AM_RANGE(0x8206, 0x8206) AM_MIRROR(0x00f8) AM_WRITE(tutankhm_flip_screen_x_w) | |
| 112 | AM_RANGE(0x8207, 0x8207) AM_MIRROR(0x00f8) AM_WRITE(tutankhm_flip_screen_y_w) | |
| 113 | AM_RANGE(0x8300, 0x8300) AM_MIRROR(0x00ff) AM_WRITE(tutankhm_bankselect_w) | |
| 114 | AM_RANGE(0x8600, 0x8600) AM_MIRROR(0x00ff) AM_WRITE(timeplt_sh_irqtrigger_w) | |
| 115 | AM_RANGE(0x8700, 0x8700) AM_MIRROR(0x00ff) AM_WRITE(soundlatch_w) | |
| 230 | 116 | AM_RANGE(0x8800, 0x8fff) AM_RAM |
| 231 | AM_RANGE(0x9000, 0x9fff) AM_R | |
| 117 | AM_RANGE(0x9000, 0x9fff) AM_RO | |
| 232 | 118 | AM_RANGE(0xa000, 0xffff) AM_ROM |
| 233 | 119 | ADDRESS_MAP_END |
| 234 | 120 | |
| 235 | 121 | |
| 122 | ||
| 123 | /************************************* | |
| 124 | * | |
| 125 | * Port definitions | |
| 126 | * | |
| 127 | *************************************/ | |
| 128 | ||
| 236 | 129 | static INPUT_PORTS_START( tutankhm ) |
| 237 | 130 | PORT_START_TAG("DSW2") |
| 238 | 131 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| r1649 | r1650 | |
| 328 | 221 | |
| 329 | 222 | |
| 330 | 223 | |
| 224 | /************************************* | |
| 225 | * | |
| 226 | * Machine drivers | |
| 227 | * | |
| 228 | *************************************/ | |
| 229 | ||
| 331 | 230 | static MACHINE_DRIVER_START( tutankhm ) |
| 332 | 231 | |
| 333 | 232 | /* basic machine hardware */ |
| 334 | 233 | MDRV_CPU_ADD(M6809, 1500000) /* 1.5 MHz ??? */ |
| 335 | 234 | MDRV_CPU_PROGRAM_MAP(main_map,0) |
| 336 | MDRV_CPU_VBLANK_INT( | |
| 235 | MDRV_CPU_VBLANK_INT(tutankhm_ | |
| 337 | 236 | |
| 338 | MDRV_CPU_ADD(Z80,14318180/8) | |
| 339 | /* audio CPU */ /* 1.789772727 MHz */ \ | |
| 340 | MDRV_CPU_PROGRAM_MAP(timeplt_sound_readmem,timeplt_sound_writemem) | |
| 237 | MDRV_MACHINE_START(tutankhm) | |
| 341 | 238 | |
| 342 | MDRV_SCREEN_REFRESH_RATE(30) | |
| 343 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_30HZ_VBLANK_DURATION) | |
| 239 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 240 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 344 | 241 | |
| 345 | 242 | /* video hardware */ |
| 346 | 243 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) |
| r1649 | r1650 | |
| 348 | 245 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 349 | 246 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) /* not sure about the visible area */ |
| 350 | 247 | |
| 248 | MDRV_VIDEO_START(tutankhm) | |
| 351 | 249 | MDRV_VIDEO_UPDATE(tutankhm) |
| 352 | 250 | |
| 353 | 251 | /* sound hardware */ |
| 354 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 252 | MDRV_IMPORT_FROM(timeplt_sound) | |
| 253 | MACHINE_DRIVER_END | |
| 355 | 254 | |
| 356 | MDRV_SOUND_ADD(AY8910, 14318180/8) | |
| 357 | MDRV_SOUND_CONFIG(timeplt_ay8910_interface) | |
| 358 | MDRV_SOUND_ROUTE(0, "filter.0.0", 0.60) | |
| 359 | MDRV_SOUND_ROUTE(1, "filter.0.1", 0.60) | |
| 360 | MDRV_SOUND_ROUTE(2, "filter.0.2", 0.60) | |
| 361 | 255 | |
| 362 | MDRV_SOUND_ADD(AY8910, 14318180/8) | |
| 363 | MDRV_SOUND_ROUTE(0, "filter.1.0", 0.60) | |
| 364 | MDRV_SOUND_ROUTE(1, "filter.1.1", 0.60) | |
| 365 | MDRV_SOUND_ROUTE(2, "filter.1.2", 0.60) | |
| 366 | 256 | |
| 367 | MDRV_SOUND_ADD_TAG("filter.0.0", FILTER_RC, 0) | |
| 368 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 369 | MDRV_SOUND_ADD_TAG("filter.0.1", FILTER_RC, 0) | |
| 370 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 371 | MDRV_SOUND_ADD_TAG("filter.0.2", FILTER_RC, 0) | |
| 372 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 257 | /************************************* | |
| 258 | * | |
| 259 | * ROM definitions | |
| 260 | * | |
| 261 | *************************************/ | |
| 373 | 262 | |
| 374 | MDRV_SOUND_ADD_TAG("filter.1.0", FILTER_RC, 0) | |
| 375 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 376 | MDRV_SOUND_ADD_TAG("filter.1.1", FILTER_RC, 0) | |
| 377 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 378 | MDRV_SOUND_ADD_TAG("filter.1.2", FILTER_RC, 0) | |
| 379 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 380 | MACHINE_DRIVER_END | |
| 381 | ||
| 382 | ||
| 383 | 263 | ROM_START( tutankhm ) |
| 384 | 264 | ROM_REGION( 0x20000, REGION_CPU1, 0 ) /* 64k for M6809 CPU code + 64k for ROM banks */ |
| 385 | 265 | ROM_LOAD( "h1.bin", 0x0a000, 0x1000, CRC(da18679f) SHA1(8d2a3665db937d0e1d19300ae22277d9db61fcbc) ) /* program ROMs */ |
| r1649 | r1650 | |
| 431 | 311 | |
| 432 | 312 | |
| 433 | 313 | |
| 434 | GAME( 1982, tutankhm, 0, tutankhm, tutankhm, 0, ROT90, "Konami", "Tutankham", 0 ) | |
| 435 | GAME( 1982, tutankst, tutankhm, tutankhm, tutankhm, 0, ROT90, "[Konami] (Stern license)", "Tutankham (Stern)", 0 ) | |
| 314 | /************************************* | |
| 315 | * | |
| 316 | * Game drivers | |
| 317 | * | |
| 318 | *************************************/ | |
| 319 | ||
| 320 | GAME( 1982, tutankhm, 0, tutankhm, tutankhm, 0, ROT90, "Konami", "Tutankham", GAME_SUPPORTS_SAVE ) | |
| 321 | GAME( 1982, tutankst, tutankhm, tutankhm, tutankhm, 0, ROT90, "[Konami] (Stern license)", "Tutankham (Stern)", GAME_SUPPORTS_SAVE ) |
| r1649 | r1650 | |
|---|---|---|
| 145 | 145 | ********************************************************************/ |
| 146 | 146 | |
| 147 | 147 | #include "driver.h" |
| 148 | #include "deprecat.h" | |
| 148 | 149 | #include "audio/seibu.h" |
| 149 | 150 | #include "sound/2203intf.h" |
| 150 | 151 | #include "sound/okim6295.h" |
| r1649 | r1650 | |
| 232 | 233 | VIDEO_UPDATE( hachamf ); |
| 233 | 234 | VIDEO_UPDATE( tdragon ); |
| 234 | 235 | VIDEO_EOF( nmk ); |
| 236 | VIDEO_EOF( strahl ); | |
| 235 | 237 | |
| 236 | 238 | /* Variables defined in video: */ |
| 237 | 239 | |
| r1649 | r1650 | |
| 4207 | 4209 | MDRV_PALETTE_LENGTH(1024) |
| 4208 | 4210 | |
| 4209 | 4211 | MDRV_VIDEO_START(strahl) |
| 4210 | MDRV_VIDEO_EOF( | |
| 4212 | MDRV_VIDEO_EOF(strahl) | |
| 4211 | 4213 | MDRV_VIDEO_UPDATE(strahl) |
| 4212 | 4214 | |
| 4213 | 4215 | /* sound hardware */ |
| r1649 | r1650 | |
|---|---|---|
| 125 | 125 | |
| 126 | 126 | #include "driver.h" |
| 127 | 127 | #include "video/crtc6845.h" |
| 128 | //#include "machine/6821pia.h" | |
| 129 | 128 | |
| 130 | 129 | |
| 131 | 130 | /************************* |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | // MAME headers |
| 15 | 15 | #include "osdepend.h" |
| 16 | 16 | #include "driver.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | |
| 18 | 19 | // MAMEOS headers |
| 19 | 20 | #include "output.h" |
| r1649 | r1650 | |
|---|---|---|
| 249 | 249 | $(WINOBJ)/drawgdi.o : $(SRC)/emu/rendersw.c |
| 250 | 250 | |
| 251 | 251 | # add debug-specific files |
| 252 | ifdef DEBUG | |
| 252 | ifdef DEBUGGER | |
| 253 | 253 | OSDOBJS += \ |
| 254 | 254 | $(WINOBJ)/debugwin.o |
| 255 | 255 | endif |
| r1649 | r1650 | |
| 290 | 290 | #------------------------------------------------- |
| 291 | 291 | |
| 292 | 292 | VERINFO = $(WINOBJ)/verinfo$(EXE) |
| 293 | ||
| 294 | ifneq ($(CROSS_BUILD),1) | |
| 293 | 295 | BUILD += $(VERINFO) |
| 294 | 296 | |
| 295 | 297 | VERINFOOBJS = \ |
| r1649 | r1650 | |
| 298 | 300 | $(VERINFO): $(VERINFOOBJS) $(LIBOCORE) |
| 299 | 301 | @echo Linking $@... |
| 300 | 302 | $(LD) $(LDFLAGS) $^ $(LIBS) -o $@ |
| 303 | endif | |
| 301 | 304 | |
| 302 | 305 | |
| 303 | 306 | |
| 304 | ||
| 305 | 307 | #------------------------------------------------- |
| 306 | 308 | # generic rule for the resource compiler |
| 307 | 309 | #------------------------------------------------- |
| r1649 | r1650 | |
|---|---|---|
| 20 | 20 | #include "osdepend.h" |
| 21 | 21 | #include "driver.h" |
| 22 | 22 | #include "osdepend.h" |
| 23 | #include "deprecat.h" | |
| 23 | 24 | |
| 24 | 25 | // MAMEOS headers |
| 25 | 26 | #include "winmain.h" |
| r1649 | r1650 | |
|---|---|---|
| 408 | 408 | ExitProcess(100); |
| 409 | 409 | already_hit = 1; |
| 410 | 410 | |
| 411 | #ifdef | |
| 411 | #ifdef ENABLE_DEBUGGER | |
| 412 | 412 | { |
| 413 | 413 | extern void debug_flush_traces(void); |
| 414 | 414 | debug_flush_traces(); |
| r1649 | r1650 | |
|---|---|---|
| 21 | 21 | #include "debug/debugvw.h" |
| 22 | 22 | #include "debug/debugcon.h" |
| 23 | 23 | #include "debug/debugcpu.h" |
| 24 | #include "deprecat.h" | |
| 24 | 25 | |
| 25 | 26 | // MAMEOS headers |
| 26 | 27 | #include "debugwin.h" |
| r1649 | r1650 | |
|---|---|---|
| 23 | 23 | #include "render.h" |
| 24 | 24 | #include "rendutil.h" |
| 25 | 25 | #include "options.h" |
| 26 | #include "deprecat.h" | |
| 26 | 27 | |
| 27 | 28 | // MAMEOS headers |
| 28 | 29 | #include "winmain.h" |
| r1649 | r1650 | |
|---|---|---|
| 30 | 30 | #include "render.h" |
| 31 | 31 | #include "rendutil.h" |
| 32 | 32 | #include "ui.h" |
| 33 | #include "deprecat.h" | |
| 33 | 34 | |
| 34 | 35 | // MAMEOS headers |
| 35 | 36 | #include "winmain.h" |
| r1649 | r1650 | |
| 110 | 111 | SetForegroundWindow(win_window_list->hwnd); |
| 111 | 112 | |
| 112 | 113 | // possibly create the debug window, but don't show it yet |
| 113 | #ifdef | |
| 114 | #ifdef ENABLE_DEBUGGER | |
| 114 | 115 | if (options_get_bool(mame_options(), OPTION_DEBUG)) |
| 115 | 116 | debugwin_init_windows(); |
| 116 | 117 | #endif |
| r1649 | r1650 | |
| 129 | 130 | effect_bitmap = NULL; |
| 130 | 131 | |
| 131 | 132 | // possibly kill the debug window |
| 132 | #ifdef | |
| 133 | #ifdef ENABLE_DEBUGGER | |
| 133 | 134 | if (options_get_bool(mame_options(), OPTION_DEBUG)) |
| 134 | 135 | debugwin_destroy_windows(); |
| 135 | 136 | #endif |
| r1649 | r1650 | |
| 383 | 384 | video_config.prescale = options_get_int(mame_options(), WINOPTION_PRESCALE); |
| 384 | 385 | video_config.keepaspect = options_get_bool(mame_options(), WINOPTION_KEEPASPECT); |
| 385 | 386 | video_config.numscreens = options_get_int(mame_options(), WINOPTION_NUMSCREENS); |
| 386 | #ifdef | |
| 387 | #ifdef ENABLE_DEBUGGER | |
| 387 | 388 | // if we are in debug mode, never go full screen |
| 388 | 389 | if (options_get_bool(mame_options(), OPTION_DEBUG)) |
| 389 | 390 | video_config.windowed = TRUE; |
| r1649 | r1650 | |
|---|---|---|
| 27 | 27 | // MAME headers |
| 28 | 28 | #include "osdepend.h" |
| 29 | 29 | #include "driver.h" |
| 30 | #include "deprecat.h" | |
| 30 | 31 | |
| 31 | 32 | // MAMEOS headers |
| 32 | 33 | #include "winmain.h" |
| r1649 | r1650 | |
| 352 | 353 | assert(GetCurrentThreadId() == main_threadid); |
| 353 | 354 | |
| 354 | 355 | // if we're running, disable some parts of the debugger |
| 355 | #if | |
| 356 | #if | |
| 356 | 357 | if (ingame) |
| 357 | 358 | debugwin_update_during_game(); |
| 358 | 359 | #endif |
| r1649 | r1650 | |
| 494 | 495 | |
| 495 | 496 | assert(GetCurrentThreadId() == main_threadid); |
| 496 | 497 | |
| 497 | #ifdef | |
| 498 | #ifdef ENABLE_DEBUGGER | |
| 498 | 499 | // if we are in debug mode, never go full screen |
| 499 | 500 | if (options_get_bool(mame_options(), OPTION_DEBUG)) |
| 500 | 501 | return; |
| r1649 | r1650 | |
|---|---|---|
| 29 | 29 | #include "render.h" |
| 30 | 30 | #include "rendutil.h" |
| 31 | 31 | #include "options.h" |
| 32 | #include "deprecat.h" | |
| 32 | 33 | |
| 33 | 34 | // MAMEOS headers |
| 34 | 35 | #include "d3dintf.h" |
| r1649 | r1650 | |
|---|---|---|
| 17 | 17 | #include "debugcon.h" |
| 18 | 18 | #include "express.h" |
| 19 | 19 | #include "debugvw.h" |
| 20 | #include "deprecat.h" | |
| 20 | 21 | #include <ctype.h> |
| 21 | 22 | |
| 22 | 23 | |
| r1649 | r1650 | |
| 705 | 706 | before executing each instruction |
| 706 | 707 | -------------------------------------------------*/ |
| 707 | 708 | |
| 708 | void mame_debug_hook( | |
| 709 | void mame_debug_hook( | |
| 709 | 710 | { |
| 710 | 711 | int cpunum = cpu_getactivecpu(); |
| 711 | offs_t curpc = activecpu_get_pc(); | |
| 712 | 712 | debug_cpu_info *info = &debug_cpuinfo[cpunum]; |
| 713 | 713 | |
| 714 | 714 | /* update the history */ |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /********************************************************************* |
| 2 | 2 | |
| 3 | debugcmd. | |
| 3 | debugcmd.c | |
| 4 | 4 | |
| 5 | 5 | Debugger command interface engine. |
| 6 | 6 | |
| r1649 | r1650 | |
| 18 | 18 | #include "debughlp.h" |
| 19 | 19 | #include "debugvw.h" |
| 20 | 20 | #include "render.h" |
| 21 | #include | |
| 21 | #include " | |
| 22 | 22 | #include <ctype.h> |
| 23 | 23 | |
| 24 | 24 |
| r1649 | r1650 | |
|---|---|---|
| 15 | 15 | #include "debughlp.h" |
| 16 | 16 | #include "debugvw.h" |
| 17 | 17 | #include "textbuf.h" |
| 18 | #include | |
| 18 | #include " | |
| 19 | 19 | #include <ctype.h> |
| 20 | 20 | |
| 21 | 21 |
| r1649 | r1650 | |
|---|---|---|
| 26 | 26 | #include "debugcpu.h" |
| 27 | 27 | #include "debugvw.h" |
| 28 | 28 | #include "info.h" |
| 29 | #include "deprecat.h" | |
| 29 | 30 | #include <zlib.h> |
| 30 | 31 | |
| 31 | 32 |
| r1649 | r1650 | |
|---|---|---|
| 32 | 32 | |
| 33 | 33 | |
| 34 | 34 | #include "debugger.h" |
| 35 | #include "deprecat.h" | |
| 35 | 36 | #include "m6805.h" |
| 36 | 37 | |
| 37 | 38 | #define IRQ_LEVEL_DETECT 0 |
| r1649 | r1650 | |
| 520 | 521 | } |
| 521 | 522 | } |
| 522 | 523 | |
| 523 | CALL_ | |
| 524 | CALL_ | |
| 524 | 525 | |
| 525 | 526 | ireg=M_RDOP(PC++); |
| 526 | 527 | |
| r1649 | r1650 | |
| 937 | 938 | case CPUINFO_PTR_EXIT: info->exit = m6805_exit; break; |
| 938 | 939 | case CPUINFO_PTR_EXECUTE: info->execute = m6805_execute; break; |
| 939 | 940 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 940 | #ifdef | |
| 941 | #ifdef ENABLE_DEBUGGER | |
| 941 | 942 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = m6805_dasm; break; |
| 942 | #endif /* | |
| 943 | #endif /* ENABLE_DEBUGGER */ | |
| 943 | 944 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &m6805_ICount; break; |
| 944 | 945 | |
| 945 | 946 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 82 | 82 | /****************************************************************************/ |
| 83 | 83 | #define M6805_RDOP_ARG(Addr) ((unsigned)cpu_readop_arg(Addr)) |
| 84 | 84 | |
| 85 | #ifdef | |
| 85 | #ifdef ENABLE_DEBUGGER | |
| 86 | 86 | offs_t m6805_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 87 | 87 | #endif |
| 88 | 88 |
| r1649 | r1650 | |
|---|---|---|
| 41 | 41 | ****************************************************************************/ |
| 42 | 42 | |
| 43 | 43 | #include "debugger.h" |
| 44 | #include "deprecat.h" | |
| 44 | 45 | |
| 45 | 46 | typedef UINT8 BOOLEAN; |
| 46 | 47 | typedef UINT8 BYTE; |
| r1649 | r1650 | |
| 916 | 917 | } |
| 917 | 918 | } |
| 918 | 919 | |
| 919 | #ifdef | |
| 920 | #ifdef ENABLE_DEBUGGER | |
| 920 | 921 | static offs_t nec_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 921 | 922 | { |
| 922 | 923 | return necv_dasm_one(buffer, pc, oprom); |
| 923 | 924 | } |
| 924 | #endif /* | |
| 925 | #endif /* ENABLE_DEBUGGER */ | |
| 925 | 926 | |
| 926 | 927 | static void nec_init(int index, int clock, const void *config, int (*irqcallback)(int), int type) |
| 927 | 928 | { |
| r1649 | r1650 | |
| 969 | 970 | if (I.no_interrupt) |
| 970 | 971 | I.no_interrupt--; |
| 971 | 972 | |
| 972 | CALL_ | |
| 973 | CALL_ | |
| 973 | 974 | nec_instruction[FETCHOP](); |
| 974 | 975 | } |
| 975 | 976 | |
| r1649 | r1650 | |
| 1096 | 1097 | case CPUINFO_PTR_RESET: info->reset = nec_reset; break; |
| 1097 | 1098 | case CPUINFO_PTR_EXIT: info->exit = nec_exit; break; |
| 1098 | 1099 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1099 | #ifdef | |
| 1100 | #ifdef ENABLE_DEBUGGER | |
| 1100 | 1101 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = nec_dasm; break; |
| 1101 | #endif /* | |
| 1102 | #endif /* ENABLE_DEBUGGER */ | |
| 1102 | 1103 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &nec_ICount; break; |
| 1103 | 1104 | |
| 1104 | 1105 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 17 | 17 | * based on info found on an artikel for the tandy trs80 pc2 |
| 18 | 18 | * |
| 19 | 19 | *****************************************************************************/ |
| 20 | #include "cpuintrf.h" | |
| 21 | 20 | #include "debugger.h" |
| 21 | #include "deprecat.h" | |
| 22 | 22 | |
| 23 | 23 | #include "lh5801.h" |
| 24 | 24 | |
| 25 | //typedef int bool; | |
| 26 | ||
| 27 | 25 | #define VERBOSE 0 |
| 28 | 26 | |
| 29 | 27 | #define LOG(x) do { if (VERBOSE) logerror x; } while (0) |
| r1649 | r1650 | |
| 134 | 132 | { |
| 135 | 133 | lh5801.oldpc = P; |
| 136 | 134 | |
| 137 | CALL_ | |
| 135 | CALL_ | |
| 138 | 136 | lh5801_instruction(); |
| 139 | 137 | |
| 140 | 138 | } while (lh5801_icount > 0); |
| r1649 | r1650 | |
| 237 | 235 | case CPUINFO_PTR_EXIT: info->exit = NULL; break; |
| 238 | 236 | case CPUINFO_PTR_EXECUTE: info->execute = lh5801_execute; break; |
| 239 | 237 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 240 | #ifdef | |
| 238 | #ifdef ENABLE_DEBUGGER | |
| 241 | 239 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = lh5801_dasm; break; |
| 242 | #endif /* | |
| 240 | #endif /* ENABLE_DEBUGGER */ | |
| 243 | 241 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &lh5801_icount; break; |
| 244 | 242 | |
| 245 | 243 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 71 | 71 | *****************************************************************************/ |
| 72 | 72 | |
| 73 | 73 | #include "debugger.h" |
| 74 | #include "deprecat.h" | |
| 74 | 75 | #include "m6809.h" |
| 75 | 76 | |
| 76 | 77 | /* Enable big switch statement for the main opcodes */ |
| r1649 | r1650 | |
| 82 | 83 | |
| 83 | 84 | #define LOG(x) do { if (VERBOSE) logerror x; } while (0) |
| 84 | 85 | |
| 85 | #ifdef | |
| 86 | #ifdef ENABLE_DEBUGGER | |
| 86 | 87 | extern offs_t m6809_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 87 | 88 | #endif |
| 88 | 89 | |
| r1649 | r1650 | |
| 517 | 518 | |
| 518 | 519 | if (m6809.int_state & (M6809_CWAI | M6809_SYNC)) |
| 519 | 520 | { |
| 520 | CALL_ | |
| 521 | CALL_ | |
| 521 | 522 | m6809_ICount = 0; |
| 522 | 523 | } |
| 523 | 524 | else |
| r1649 | r1650 | |
| 526 | 527 | { |
| 527 | 528 | pPPC = pPC; |
| 528 | 529 | |
| 529 | CALL_ | |
| 530 | CALL_ | |
| 530 | 531 | |
| 531 | 532 | m6809.ireg = ROP(PCD); |
| 532 | 533 | PC++; |
| r1649 | r1650 | |
| 1173 | 1174 | case CPUINFO_PTR_EXIT: info->exit = m6809_exit; break; |
| 1174 | 1175 | case CPUINFO_PTR_EXECUTE: info->execute = m6809_execute; break; |
| 1175 | 1176 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1176 | #ifdef | |
| 1177 | #ifdef ENABLE_DEBUGGER | |
| 1177 | 1178 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = m6809_dasm; break; |
| 1178 | #endif /* | |
| 1179 | #endif /* ENABLE_DEBUGGER */ | |
| 1179 | 1180 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &m6809_ICount; break; |
| 1180 | 1181 | |
| 1181 | 1182 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | #include "debugger.h" |
| 12 | 12 | #include "h83002.h" |
| 13 | 13 | |
| 14 | static const char *const bit_instr[8] = {"bset", "bnot", "bclr", "btst", "bor", "bxor", "band", "bld"}; | |
| 15 | static const char *const bit_instr2[8] = {"bset", "bnot", "bclr", "btst", "bior", "bixor", "biand", "bild"}; | |
| 16 | static const char *const imm32l_instr[8] = {"mov", "add", "cmp", "sub", "or", "xor", "and", "?"}; | |
| 17 | static const char *const branch_instr[16] = {"bt", "bf", "bhi", "bls", "bcc", "bcs", "bne", "beq", "bvc", "bvs", "bpl", "bmi", "bge", "blt", "bgt", "ble"}; | |
| 18 | static const char *const reg_names32[8] = {"ER0", "ER1", "ER2", "ER3", "ER4", "ER5", "ER6", "SP"}; | |
| 19 | static const char *const reg_names16[16] = {"R0", "R1", "R2", "R3", "R4", "R5", "R6", "R7", "E0", "E1", "E2", "E3", "E4", "E5", "E6", "E7"}; | |
| 20 | static const char *const reg_names8[16] = {"R0H", "R1H", "R2H", "R3H", "R4H", "R5H", "R6H", "R7H","R0L", "R1L", "R2L", "R3L", "R4L", "R5L", "R6L", "R7L"}; | |
| 14 | static const char *const bit_instr[8] = {"bset", "bnot", "bclr", "btst", "bor", "bxor", "band", "bld"}; | |
| 15 | static const char *const bit_instr2[8] = {"bset", "bnot", "bclr", "btst", "bior", "bixor", "biand", "bild"}; | |
| 16 | static const char *const imm32l_instr[8] = {"mov", "add", "cmp", "sub", "or", "xor", "and", "?"}; | |
| 17 | static const char *const branch_instr[16] = {"bt", "bf", "bhi", "bls", "bcc", "bcs", "bne", "beq", "bvc", "bvs", "bpl", "bmi", "bge", "blt", "bgt", "ble"}; | |
| 21 | 18 | |
| 19 | static const char *const reg_names32[8] = {"ER0", "ER1", "ER2", "ER3", "ER4", "ER5", "ER6", "SP"}; | |
| 20 | static const char *const reg_names16[16] = {"R0", "R1", "R2", "R3", "R4", "R5", "R6", "R7", "E0", "E1", "E2", "E3", "E4", "E5", "E6", "E7"}; | |
| 21 | static const char *const reg_names8[16] = {"R0H", "R1H", "R2H", "R3H", "R4H", "R5H", "R6H", "R7H","R0L", "R1L", "R2L", "R3L", "R4L", "R5L", "R6L", "R7L"}; | |
| 22 | ||
| 22 | 23 | static UINT32 h8disasm_0(UINT32 address, UINT32 opcode, char *output, const UINT8 *oprom); |
| 23 | 24 | static UINT32 h8disasm_1(UINT32 address, UINT32 opcode, char *output, const UINT8 *oprom); |
| 24 | 25 | static UINT32 h8disasm_5(UINT32 address, UINT32 opcode, char *output, const UINT8 *oprom); |
| r1649 | r1650 | |
| 248 | 249 | break; |
| 249 | 250 | // 01f0 and.l prefix |
| 250 | 251 | case 0xf: |
| 251 | // and.l rs, rd | |
| 252 | // or.l/xor.l/and.l rs, rd | |
| 252 | 253 | data16 = h8_mem_read16(2); |
| 253 | sprintf(output, "%4.4x and.l %s, %s", opcode, reg_names16[(data16>>4) & 0x7], reg_names16[data16 & 0x7]); | |
| 254 | size = 2; | |
| 254 | size = 4; | |
| 255 | switch((data16>>8)&0xff) | |
| 256 | { | |
| 257 | case 0x64: // or.l ERs, ERd | |
| 258 | sprintf(output, "%4.4x or.l %s, %s", opcode, reg_names32[(data16>>4) & 0x7], reg_names32[data16 & 0x7]); | |
| 259 | break; | |
| 260 | case 0x65: // xor.l ERs, ERd | |
| 261 | sprintf(output, "%4.4x xor.l %s, %s", opcode, reg_names32[(data16>>4) & 0x7], reg_names32[data16 & 0x7]); | |
| 262 | break; | |
| 263 | case 0x66: // and.l ERs, ERd | |
| 264 | sprintf(output, "%4.4x and.l %s, %s", opcode, reg_names32[(data16>>4) & 0x7], reg_names32[data16 & 0x7]); | |
| 265 | break; | |
| 266 | default: | |
| 267 | sprintf(output, "%4.4x default", opcode); | |
| 268 | break; | |
| 269 | } | |
| 255 | 270 | break; |
| 256 | 271 | default: |
| 257 | 272 | sprintf(output, "%4.4x default", opcode); |
| r1649 | r1650 | |
| 355 | 370 | sprintf(output, "%4.4x adds.l #2, %s", opcode, reg_names32[opcode & 0x7]); |
| 356 | 371 | break; |
| 357 | 372 | case 9: |
| 358 | sprintf(output, "%4.4x adds.l # | |
| 373 | sprintf(output, "%4.4x adds.l #4, %s", opcode, reg_names32[opcode & 0x7]); | |
| 359 | 374 | break; |
| 360 | 375 | case 0xd: |
| 361 | 376 | sprintf(output, "%4.4x inc.w #2, %s", opcode, reg_names16[opcode & 0xf]); |
| r1649 | r1650 | |
| 1196 | 1211 | case 0xc: |
| 1197 | 1212 | case 0xd: |
| 1198 | 1213 | data16 = h8_mem_read16(2); |
| 1199 | if(((data16>>4)&0x8) == 0) | |
| 1214 | size = 4; | |
| 1215 | switch(data16>>8) | |
| 1200 | 1216 | { |
| 1201 | sprintf(output, "%4.4x %s.b #%1.1x, @%s", opcode, bit_instr[(data16>>8)&7], (data16>>4)&7, reg_names32[(opcode>>4) & 0x7]); | |
| 1217 | case 0x60: // bset/bnot/bclr.b rn, @erd | |
| 1218 | case 0x61: | |
| 1219 | case 0x62: | |
| 1220 | if (((opcode & 0x8f)!=0)||((data16 & 0x0f)!=0)) | |
| 1221 | { | |
| 1222 | sprintf(output, "%4.4x default", opcode); | |
| 1223 | break; | |
| 1224 | } | |
| 1225 | sprintf(output, "%4.4x %s.b %s, @%s", opcode, bit_instr[(data16>>8)&7], reg_names16[(data16>>4)&0xf], reg_names32[(opcode>>4) & 0x7]); | |
| 1226 | break; | |
| 1227 | ||
| 1228 | case 0x67: // bst/bist.b #xx:3, @erd | |
| 1229 | if (((opcode & 0x8f)!=0)||((data16 & 0x0f)!=0)) | |
| 1230 | { | |
| 1231 | sprintf(output, "%4.4x default", opcode); | |
| 1232 | break; | |
| 1233 | } | |
| 1234 | if ((data16 & 0x80)!=0) | |
| 1235 | sprintf(output, "%4.4x bist.b #%1.1x, @%s", opcode, (data16>>4)&7, reg_names32[(opcode>>4) & 0x7]); | |
| 1236 | else | |
| 1237 | sprintf(output, "%4.4x bst.b #%1.1x, @%s", opcode, (data16>>4)&7, reg_names32[(opcode>>4) & 0x7]); | |
| 1238 | break; | |
| 1239 | ||
| 1240 | case 0x70: // bset/bnot/bclr.b #xx:3, @erd | |
| 1241 | case 0x71: | |
| 1242 | case 0x72: | |
| 1243 | if (((opcode & 0x8f)!=0)||((data16 & 0x8f)!=0)) | |
| 1244 | { | |
| 1245 | sprintf(output, "%4.4x default", opcode); | |
| 1246 | break; | |
| 1247 | } | |
| 1248 | sprintf(output, "%4.4x %s.b #%1.1x, @%s", opcode, bit_instr[(data16>>8)&7], (data16>>4)&7, reg_names32[(opcode>>4) & 0x7]); | |
| 1249 | break; | |
| 1202 | 1250 | } |
| 1203 | else | |
| 1204 | { | |
| 1205 | sprintf(output, "%4.4x %s.b #%1.1x, @%s", opcode, bit_instr2[(opcode>>4)&7], (data16>>4)&7, reg_names32[(opcode>>4) & 0x7]); | |
| 1206 | } | |
| 1207 | size = 4; | |
| 1208 | 1251 | break; |
| 1209 | 1252 | // bxx.b #imm, @aa:8 |
| 1210 | 1253 | case 0xe: |
| r1649 | r1650 | |
|---|---|---|
| 19 | 19 | instructions were being picked. |
| 20 | 20 | |
| 21 | 21 | TS 20060412 Added exts.l, sub.l, divxs.w (buggy), jsr @reg, rotxl.l reg, mov.l @(adr, reg), reg |
| 22 | LE 20070903 Added divxu.b shal.l extu.w dec.l #Imm,Rd subx.b | |
| 23 | LE 20080202 Separated 3002/3044/3007, Added or.l shal.l rotl.l not.l neg.l exts.w | |
| 24 | sub/or/xor.l #Imm:32,ERd bset/bnot/bclr.b Rn,@ERd bst/bist.b #Imm:3,@ERd bnot.b #Imm:3,@ERd | |
| 22 | 25 | |
| 23 | 26 | Note: The H8/3000 series is normally back-compatible to the 8-bit H8/300, |
| 24 | 27 | but the 3002 does not include "emulation mode" - it always runs in full |
| r1649 | r1650 | |
| 28 | 31 | ****************************************************************************/ |
| 29 | 32 | |
| 30 | 33 | #include "debugger.h" |
| 34 | #include "deprecat.h" | |
| 31 | 35 | #include "h83002.h" |
| 32 | 36 | #include "h8priv.h" |
| 33 | 37 | |
| r1649 | r1650 | |
| 48 | 52 | #define H8_WORD_TIMING(x, adr) if (address24 >= 0xffff10) h8_cyccnt -= (x) * 3; else h8_cyccnt -= (x) * 4; |
| 49 | 53 | #define H8_IOP_TIMING(x) h8_cyccnt -= (x); |
| 50 | 54 | |
| 51 | extern UINT8 h8_register_read8(UINT32 address); | |
| 52 | extern void h8_register_write8(UINT32 address, UINT8 val); | |
| 53 | ||
| 54 | 55 | INLINE UINT32 h8_mem_read32(offs_t address) |
| 55 | 56 | { |
| 56 | 57 | UINT32 result = program_read_word_16be(address) << 16; |
| r1649 | r1650 | |
| 109 | 110 | |
| 110 | 111 | static UINT8 h8_or8(UINT8 src, UINT8 dst); |
| 111 | 112 | static UINT16 h8_or16(UINT16 src, UINT16 dst); |
| 113 | static UINT32 h8_or32(UINT32 src, UINT32 dst); | |
| 112 | 114 | |
| 113 | 115 | static UINT8 h8_xor8(UINT8 src, UINT8 dst); |
| 114 | 116 | static UINT16 h8_xor16(UINT16 src, UINT16 dst); |
| r1649 | r1650 | |
| 120 | 122 | |
| 121 | 123 | static INT8 h8_neg8(INT8 src); |
| 122 | 124 | static INT16 h8_neg16(INT16 src); |
| 125 | static INT32 h8_neg32(INT32 src); | |
| 123 | 126 | |
| 124 | 127 | static UINT16 h8_divxu8 (UINT16 dst, UINT8 src); |
| 125 | 128 | static UINT32 h8_divxu16(UINT32 dst, UINT16 src); |
| 126 | 129 | |
| 127 | 130 | static UINT8 h8_not8(UINT8 src); |
| 128 | 131 | static UINT16 h8_not16(UINT16 src); |
| 132 | static UINT32 h8_not32(UINT32 src); | |
| 129 | 133 | |
| 130 | 134 | static UINT8 h8_rotl8(UINT8 src); |
| 131 | 135 | static UINT16 h8_rotl16(UINT16 src); |
| 136 | static UINT32 h8_rotl32(UINT32 src); | |
| 132 | 137 | |
| 133 | 138 | static UINT8 h8_rotxl8(UINT8 src); |
| 134 | 139 | static UINT16 h8_rotxl16(UINT16 src); |
| r1649 | r1650 | |
| 147 | 152 | |
| 148 | 153 | static INT8 h8_shal8(INT8 src); |
| 149 | 154 | static INT16 h8_shal16(INT16 src); |
| 155 | static INT32 h8_shal32(INT32 src); | |
| 150 | 156 | |
| 151 | 157 | static INT8 h8_shar8(INT8 src); |
| 152 | 158 | static INT16 h8_shar16(INT16 src); |
| r1649 | r1650 | |
| 160 | 166 | static UINT16 h8_inc16(UINT16 src); |
| 161 | 167 | static UINT32 h8_inc32(UINT32 src); |
| 162 | 168 | |
| 163 | ||
| 169 | ||
| 164 | 170 | static UINT8 h8_bst8(UINT8 src, UINT8 dst); |
| 165 | 171 | static UINT8 h8_bist8(UINT8 src, UINT8 dst); |
| 166 | 172 | static UINT8 h8_bset8(UINT8 src, UINT8 dst); |
| r1649 | r1650 | |
| 175 | 181 | |
| 176 | 182 | /* implementation */ |
| 177 | 183 | |
| 178 | #ifdef | |
| 184 | #ifdef ENABLE_DEBUGGER | |
| 179 | 185 | extern offs_t h8_disasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 180 | #endif /* | |
| 186 | #endif /* ENABLE_DEBUGGER */ | |
| 181 | 187 | |
| 182 | 188 | void h8_3002_InterruptRequest(UINT8 source) |
| 183 | 189 | { |
| r1649 | r1650 | |
| 343 | 349 | h8_itu_init(); |
| 344 | 350 | } |
| 345 | 351 | |
| 352 | static void h8_3007_init(int index, int clock, const void *config, int (*irqcallback)(int)) | |
| 353 | { | |
| 354 | h8_init(index, clock, config, irqcallback); | |
| 355 | h8_3007_itu_init(); | |
| 356 | } | |
| 357 | ||
| 346 | 358 | static void h8_reset(void) |
| 347 | 359 | { |
| 348 | 360 | h8.h8err = 0; |
| r1649 | r1650 | |
| 367 | 379 | |
| 368 | 380 | // generate address from vector |
| 369 | 381 | h8_set_ccr(h8_get_ccr() | 0x80); |
| 382 | if (h8.h8uiflag == 0) | |
| 383 | h8_set_ccr(h8_get_ccr() | 0x40); | |
| 370 | 384 | h8.pc = h8_mem_read32(vectornr * 4) & 0xffffff; |
| 371 | 385 | change_pc(h8.pc); |
| 372 | 386 | |
| r1649 | r1650 | |
| 465 | 479 | { |
| 466 | 480 | h8.ppc = h8.pc; |
| 467 | 481 | |
| 468 | #ifdef MAME_DEBUG | |
| 469 | CALL_MAME_DEBUG; | |
| 470 | #endif | |
| 482 | CALL_DEBUGGER(h8.pc); | |
| 483 | ||
| 471 | 484 | opcode = cpu_readop16(h8.pc); |
| 472 | 485 | // mame_printf_debug("[%06x]: %04x => %x\n", h8.pc, opcode, (opcode>>12)&0xf); |
| 473 | 486 | h8.pc += 2; |
| r1649 | r1650 | |
| 606 | 619 | } |
| 607 | 620 | else |
| 608 | 621 | { |
| 622 | dstreg = ext16 & 0x7; | |
| 609 | 623 | switch((ext16>>8)&0xff) |
| 610 | 624 | { |
| 611 | case 0x65: | |
| 612 | dstreg = ext16 & 0x7; | |
| 625 | case 0x64: // or.l ERs, ERd | |
| 626 | udata32 = h8_or32(h8_getreg32((ext16>>4) & 0x7), h8_getreg32(dstreg)); | |
| 627 | break; | |
| 628 | case 0x65: // xor.l ERs, ERd | |
| 613 | 629 | udata32 = h8_xor32(h8_getreg32((ext16>>4) & 0x7), h8_getreg32(dstreg)); |
| 614 | h8_setreg32(dstreg, udata32); | |
| 615 | H8_IFETCH_TIMING(2); | |
| 616 | 630 | break; |
| 617 | case 0x66: | |
| 618 | dstreg = ext16 & 0x7; | |
| 631 | case 0x66: // and.l ERs, ERd | |
| 619 | 632 | udata32 = h8_and32(h8_getreg32((ext16>>4) & 0x7), h8_getreg32(dstreg)); |
| 620 | h8_setreg32(dstreg, udata32); | |
| 621 | H8_IFETCH_TIMING(2); | |
| 622 | 633 | break; |
| 623 | 634 | default: |
| 624 | 635 | h8.h8err = 1; |
| 625 | | |
| 636 | | |
| 626 | 637 | } |
| 638 | h8_setreg32(dstreg, udata32); | |
| 639 | H8_IFETCH_TIMING(2); | |
| 627 | 640 | } |
| 628 | 641 | break; |
| 629 | 642 | |
| r1649 | r1650 | |
| 1084 | 1097 | h8_setreg8(opcode & 0xf, udata8); |
| 1085 | 1098 | H8_IFETCH_TIMING(1); |
| 1086 | 1099 | break; |
| 1100 | case 0x9: | |
| 1087 | 1101 | // shal.w Rx |
| 1088 | case 0x9: | |
| 1089 | 1102 | udata16 = h8_getreg16(opcode & 0xf); |
| 1090 | 1103 | udata16 = h8_shal16(udata16); |
| 1091 | 1104 | h8_setreg16(opcode & 0xf, udata16); |
| 1092 | 1105 | H8_IFETCH_TIMING(1); |
| 1093 | 1106 | break; |
| 1107 | case 0xb: | |
| 1108 | // shal.l ERx | |
| 1109 | udata32 = h8_getreg32(opcode & 0x7); | |
| 1110 | udata32 = h8_shal32(udata32); | |
| 1111 | h8_setreg32(opcode & 0x7, udata32); | |
| 1112 | H8_IFETCH_TIMING(1); | |
| 1113 | break; | |
| 1094 | 1114 | |
| 1095 | 1115 | default: |
| 1096 | 1116 | logerror("H8/3002: Unk. group 1 0 %x\n", opcode); |
| r1649 | r1650 | |
| 1189 | 1209 | h8_setreg16(opcode & 0xf, udata16); |
| 1190 | 1210 | H8_IFETCH_TIMING(1); |
| 1191 | 1211 | break; |
| 1192 | // rotl.l Rx | |
| 1212 | case 0xb: | |
| 1213 | // rotl.l ERx | |
| 1214 | udata32 = h8_getreg32(opcode & 0x7); | |
| 1215 | udata32 = h8_rotl32(udata32); | |
| 1216 | h8_setreg32(opcode & 0x7, udata32); | |
| 1217 | H8_IFETCH_TIMING(1); | |
| 1218 | break; | |
| 1219 | ||
| 1193 | 1220 | default: |
| 1194 | 1221 | logerror("H8/3002: Unk. group 1 2 %x\n", opcode); |
| 1195 | 1222 | h8.h8err = 1; |
| r1649 | r1650 | |
| 1258 | 1285 | h8_setreg16(dstreg, udata16); |
| 1259 | 1286 | H8_IFETCH_TIMING(1); |
| 1260 | 1287 | break; |
| 1288 | case 0x3: | |
| 1289 | // not.l ERx | |
| 1290 | dstreg = opcode & 0x7; | |
| 1291 | udata32 = h8_not32(h8_getreg32(dstreg)); | |
| 1292 | h8_setreg32(dstreg, udata32); | |
| 1293 | H8_IFETCH_TIMING(1); | |
| 1294 | break; | |
| 1261 | 1295 | |
| 1262 | 1296 | case 0x5: |
| 1263 | 1297 | // extu.w Rx |
| r1649 | r1650 | |
| 1281 | 1315 | break; |
| 1282 | 1316 | case 0x8: |
| 1283 | 1317 | // neg.b Rx |
| 1284 | //sprintf(output, "%4.4x neg.b %s", opcode, reg_names8[opcode & 0xf]); | |
| 1285 | 1318 | dstreg = opcode & 0xf; |
| 1286 | 1319 | sdata8 = h8_neg8(h8_getreg8(dstreg)); |
| 1287 | 1320 | h8_setreg8(dstreg, sdata8); |
| r1649 | r1650 | |
| 1289 | 1322 | break; |
| 1290 | 1323 | case 0x9: |
| 1291 | 1324 | // neg.w Rx |
| 1292 | //sprintf(output, "%4.4x neg.w %s", opcode, reg_names16[opcode & 0xf]); | |
| 1293 | 1325 | dstreg = opcode & 0xf; |
| 1294 | 1326 | sdata16 = h8_neg16(h8_getreg16(dstreg)); |
| 1295 | 1327 | h8_setreg16(dstreg, sdata16); |
| 1296 | 1328 | H8_IFETCH_TIMING(1); |
| 1297 | 1329 | break; |
| 1330 | case 0xb: | |
| 1331 | // neg.l ERx | |
| 1332 | dstreg = opcode & 0x7; | |
| 1333 | sdata32 = h8_neg32(h8_getreg32(dstreg)); | |
| 1334 | h8_setreg32(dstreg, sdata32); | |
| 1335 | H8_IFETCH_TIMING(1); | |
| 1336 | break; | |
| 1337 | case 0xd: | |
| 1338 | // exts.w Rx | |
| 1339 | dstreg = opcode & 0xf; | |
| 1340 | udata16=h8_getreg16(dstreg)&0xff; | |
| 1341 | if(udata16&0x80) | |
| 1342 | { | |
| 1343 | udata16|=0xff00; | |
| 1344 | } | |
| 1345 | h8_setreg16(dstreg, udata16); | |
| 1346 | ||
| 1347 | h8.h8vflag = 0; | |
| 1348 | h8.h8nflag = (udata16 & 0xff00) ? 1 : 0; | |
| 1349 | h8.h8zflag = (udata16) ? 0 : 1; | |
| 1350 | ||
| 1351 | H8_IFETCH_TIMING(1); | |
| 1352 | break; | |
| 1353 | ||
| 1298 | 1354 | case 0xf: |
| 1299 | 1355 | // exts.l Rx |
| 1300 | dstreg = opcode & 0x | |
| 1356 | dstreg = opcode & 0x7; | |
| 1301 | 1357 | udata32=h8_getreg32(dstreg)&0xffff; |
| 1302 | 1358 | if(udata32&0x8000) |
| 1303 | 1359 | { |
| r1649 | r1650 | |
| 2112 | 2168 | case 0: dst32 = h8_mov32(udata32); h8_setreg32(dstreg, dst32); H8_IFETCH_TIMING(3); break; |
| 2113 | 2169 | case 1: dst32 = h8_add32(udata32, dst32); h8_setreg32(dstreg, dst32); H8_IFETCH_TIMING(3); break; |
| 2114 | 2170 | case 2: h8_cmp32(udata32, dst32); H8_IFETCH_TIMING(3); break; |
| 2171 | case 3: dst32 = h8_sub32(udata32, dst32); h8_setreg32(dstreg, dst32); H8_IFETCH_TIMING(3); break; | |
| 2172 | case 4: dst32 = h8_or32(udata32, dst32); h8_setreg32(dstreg, dst32); H8_IFETCH_TIMING(3); break; | |
| 2173 | case 5: dst32 = h8_xor32(udata32, dst32); h8_setreg32(dstreg, dst32); H8_IFETCH_TIMING(3); break; | |
| 2115 | 2174 | case 6: dst32 = h8_and32(udata32, dst32); h8_setreg32(dstreg, dst32); H8_IFETCH_TIMING(3); break; |
| 2116 | 2175 | default: |
| 2117 | 2176 | logerror("H8/3002: Unk. group 7 a2 %x\n", opcode); |
| r1649 | r1650 | |
| 2178 | 2237 | } |
| 2179 | 2238 | break; |
| 2180 | 2239 | case 0xd: |
| 2240 | ext16 = h8_mem_read16(h8.pc); | |
| 2241 | h8.pc += 2; | |
| 2242 | address24 = h8_getreg32((opcode>>4) & 0x7); | |
| 2243 | H8_IFETCH_TIMING(2); | |
| 2244 | H8_BYTE_TIMING(1, address24); | |
| 2245 | switch(ext16>>8) | |
| 2181 | 2246 | { |
| 2182 | UINT8 bitnr; | |
| 2183 | sdata16 = h8_mem_read16(h8.pc); | |
| 2184 | h8.pc += 2; | |
| 2185 | address24 = h8_getreg32((opcode>>4) & 0x7); | |
| 2186 | udata8 = h8_mem_read8(address24); | |
| 2187 | bitnr = (sdata16>>4)&7; | |
| 2247 | // bset/bnot/bclr.b Rn, @ERd | |
| 2248 | case 0x60: | |
| 2249 | if (((opcode & 0x8f)!=0)||((ext16 & 0x0f)!=0)) { h8.h8err=1; break; } | |
| 2250 | h8_mem_write8(address24, h8_bset8(h8_getreg16((ext16>>4)&0xf)&7, h8_mem_read8(address24))); | |
| 2251 | break; | |
| 2252 | case 0x61: | |
| 2253 | if (((opcode & 0x8f)!=0)||((ext16 & 0x0f)!=0)) { h8.h8err=1; break; } | |
| 2254 | h8_mem_write8(address24, h8_bnot8(h8_getreg16((ext16>>4)&0xf)&7, h8_mem_read8(address24))); | |
| 2255 | break; | |
| 2256 | case 0x62: | |
| 2257 | if (((opcode & 0x8f)!=0)||((ext16 & 0x0f)!=0)) { h8.h8err=1; break; } | |
| 2258 | h8_mem_write8(address24, h8_bclr8(h8_getreg16((ext16>>4)&0xf)&7, h8_mem_read8(address24))); | |
| 2259 | break; | |
| 2188 | 2260 | |
| 2189 | if(((sdata16>>4)&0x8) == 0) | |
| 2190 | { | |
| 2191 | switch ((sdata16>>8)&0xff) | |
| 2261 | case 0x67: // bst/bist.b #Imm:3, @ERd | |
| 2262 | if (((opcode & 0x8f)!=0)||((ext16 & 0x0f)!=0)) { h8.h8err=1; break; } | |
| 2263 | if ((ext16 & 0x80)!=0) | |
| 2192 | 2264 | { |
| 2193 | // bset.b #imm, @Rn | |
| 2194 | case 0x70: udata8 = h8_bset8(bitnr, udata8); h8_mem_write8(address24, udata8); H8_IFETCH_TIMING(2); H8_BYTE_TIMING(2, address24); break; | |
| 2195 | // bclr.b #imm, @Rn | |
| 2196 | case 0x72: udata8 = h8_bclr8(bitnr, udata8); h8_mem_write8(address24, udata8); H8_IFETCH_TIMING(2); H8_BYTE_TIMING(2, address24); break; | |
| 2197 | default: | |
| 2198 | h8.h8err=1; | |
| 2199 | logerror("H8/3002: Unk. group 7 cd-1 %x (%x)\n", opcode, (sdata16>>4)&7); | |
| 2200 | break; | |
| 2265 | h8_mem_write8(address24, h8_bist8((ext16>>4)&7, h8_mem_read8(address24))); | |
| 2201 | 2266 | } |
| 2202 | } | |
| 2203 | else | |
| 2204 | { | |
| 2205 | switch ((sdata16>>8)&7) | |
| 2267 | else | |
| 2206 | 2268 | { |
| 2207 | default: | |
| 2208 | h8.h8err=1; | |
| 2209 | logerror("H8/3002: Unk. group 7 cd-2 %x %x\n", opcode, sdata16); | |
| 2210 | break; | |
| 2269 | h8_mem_write8(address24, h8_bst8((ext16>>4)&7, h8_mem_read8(address24))); | |
| 2211 | 2270 | } |
| 2212 | } | |
| 2271 | break; | |
| 2272 | ||
| 2273 | // bset/bnot/bclr.b #Imm:3, @ERd | |
| 2274 | case 0x70: | |
| 2275 | if (((opcode & 0x8f)!=0)||((ext16 & 0x8f)!=0)) { h8.h8err=1; break; } | |
| 2276 | h8_mem_write8(address24, h8_bset8((ext16>>4)&7, h8_mem_read8(address24))); | |
| 2277 | break; | |
| 2278 | case 0x71: | |
| 2279 | if (((opcode & 0x8f)!=0)||((ext16 & 0x8f)!=0)) { h8.h8err=1; break; } | |
| 2280 | h8_mem_write8(address24, h8_bnot8((ext16>>4)&7, h8_mem_read8(address24))); | |
| 2281 | break; | |
| 2282 | case 0x72: | |
| 2283 | if (((opcode & 0x8f)!=0)||((ext16 & 0x8f)!=0)) { h8.h8err=1; break; } | |
| 2284 | h8_mem_write8(address24, h8_bclr8((ext16>>4)&7, h8_mem_read8(address24))); | |
| 2285 | break; | |
| 2213 | 2286 | } |
| 2214 | 2287 | break; |
| 2288 | ||
| 2215 | 2289 | // bxxx.b #imm, @aa:8 |
| 2216 | 2290 | case 0xe: |
| 2217 | 2291 | case 0xf: |
| r1649 | r1650 | |
| 2603 | 2677 | return res; |
| 2604 | 2678 | } |
| 2605 | 2679 | |
| 2680 | static UINT32 h8_or32(UINT32 src, UINT32 dst) | |
| 2681 | { | |
| 2682 | UINT32 res; | |
| 2683 | res = src | dst; | |
| 2684 | ||
| 2685 | h8.h8nflag = (res>>31) & 1; | |
| 2686 | h8.h8vflag = 0; | |
| 2687 | ||
| 2688 | // zflag | |
| 2689 | if(res==0) | |
| 2690 | { | |
| 2691 | h8.h8zflag = 1; | |
| 2692 | } | |
| 2693 | else | |
| 2694 | { | |
| 2695 | h8.h8zflag = 0; | |
| 2696 | } | |
| 2697 | ||
| 2698 | return res; | |
| 2699 | } | |
| 2700 | ||
| 2606 | 2701 | static UINT8 h8_xor8(UINT8 src, UINT8 dst) |
| 2607 | 2702 | { |
| 2608 | 2703 | UINT8 res; |
| r1649 | r1650 | |
| 2751 | 2846 | h8.h8cflag = (dst >> bit) & 1; |
| 2752 | 2847 | } |
| 2753 | 2848 | |
| 2754 | #ifdef UNUSED_FUNCTION | |
| 2755 | 2849 | static UINT8 h8_bnot8(UINT8 src, UINT8 dst) |
| 2756 | 2850 | { |
| 2757 | UINT8 res; | |
| 2758 | ||
| 2759 | 2851 | // invert single bit, no effect on C flag |
| 2760 | res = dst ^ (1<<src); | |
| 2761 | ||
| 2762 | return res; | |
| 2852 | return dst ^ (1<<src); | |
| 2763 | 2853 | } |
| 2764 | #endif | |
| 2765 | 2854 | |
| 2766 | 2855 | static UINT8 h8_bst8(UINT8 src, UINT8 dst) |
| 2767 | 2856 | { |
| r1649 | r1650 | |
| 2898 | 2987 | return res; |
| 2899 | 2988 | } |
| 2900 | 2989 | |
| 2990 | static INT32 h8_neg32(INT32 src) | |
| 2991 | { | |
| 2992 | INT32 res; | |
| 2993 | ||
| 2994 | if((UINT32)src == 0x80000000) | |
| 2995 | { | |
| 2996 | // overflow ! | |
| 2997 | h8.h8vflag = 1; | |
| 2998 | res = 0x80000000; | |
| 2999 | } | |
| 3000 | else | |
| 3001 | { | |
| 3002 | h8.h8vflag = 0; | |
| 3003 | res = 0-src; | |
| 3004 | } | |
| 3005 | ||
| 3006 | // N and Z modified | |
| 3007 | h8.h8nflag = (res>>31) & 1; | |
| 3008 | // zflag | |
| 3009 | if(res==0) | |
| 3010 | { | |
| 3011 | h8.h8zflag = 1; | |
| 3012 | } | |
| 3013 | else | |
| 3014 | { | |
| 3015 | h8.h8zflag = 0; | |
| 3016 | } | |
| 3017 | ||
| 3018 | h8.h8hflag = ((src|res)&0x08000000) ? 1 : 0; | |
| 3019 | h8.h8cflag = ((src|res)&0x80000000) ? 1 : 0; | |
| 3020 | ||
| 3021 | return res; | |
| 3022 | } | |
| 3023 | ||
| 2901 | 3024 | static UINT8 h8_not8(UINT8 src) |
| 2902 | 3025 | { |
| 2903 | 3026 | UINT8 res; |
| r1649 | r1650 | |
| 2944 | 3067 | return res; |
| 2945 | 3068 | } |
| 2946 | 3069 | |
| 3070 | static UINT32 h8_not32(UINT32 src) | |
| 3071 | { | |
| 3072 | UINT32 res; | |
| 3073 | ||
| 3074 | res = ~src; | |
| 3075 | ||
| 3076 | // N and Z modified | |
| 3077 | h8.h8nflag = (res>>31) & 1; | |
| 3078 | h8.h8vflag = 0; | |
| 3079 | ||
| 3080 | // zflag | |
| 3081 | if(res==0) | |
| 3082 | { | |
| 3083 | h8.h8zflag = 1; | |
| 3084 | } | |
| 3085 | else | |
| 3086 | { | |
| 3087 | h8.h8zflag = 0; | |
| 3088 | } | |
| 3089 | ||
| 3090 | return res; | |
| 3091 | } | |
| 3092 | ||
| 2947 | 3093 | static UINT8 h8_rotxr8(UINT8 src) |
| 2948 | 3094 | { |
| 2949 | 3095 | UINT8 res; |
| r1649 | r1650 | |
| 3127 | 3273 | return res; |
| 3128 | 3274 | } |
| 3129 | 3275 | |
| 3276 | static UINT32 h8_rotl32(UINT32 src) | |
| 3277 | { | |
| 3278 | UINT32 res; | |
| 3279 | ||
| 3280 | // rotate | |
| 3281 | res = src<<1; | |
| 3282 | h8.h8cflag = (src>>31) & 1; | |
| 3283 | res |= (h8.h8cflag & 1); | |
| 3284 | ||
| 3285 | // N and Z modified | |
| 3286 | h8.h8nflag = (res>>31) & 1; | |
| 3287 | h8.h8vflag = 0; | |
| 3288 | ||
| 3289 | // zflag | |
| 3290 | if(res==0) | |
| 3291 | { | |
| 3292 | h8.h8zflag = 1; | |
| 3293 | } | |
| 3294 | else | |
| 3295 | { | |
| 3296 | h8.h8zflag = 0; | |
| 3297 | } | |
| 3298 | ||
| 3299 | return res; | |
| 3300 | } | |
| 3301 | ||
| 3130 | 3302 | static UINT8 h8_shll8(UINT8 src) |
| 3131 | 3303 | { |
| 3132 | 3304 | UINT8 res; |
| r1649 | r1650 | |
| 3335 | 3507 | res = src<<1; |
| 3336 | 3508 | // N and Z modified |
| 3337 | 3509 | h8.h8nflag = (res>>7)&1; |
| 3338 | h8.h8vflag = ( | |
| 3510 | h8.h8vflag = ( | |
| 3339 | 3511 | |
| 3340 | 3512 | // zflag |
| 3341 | 3513 | if(res==0) |
| r1649 | r1650 | |
| 3358 | 3530 | res = src<<1; |
| 3359 | 3531 | // N and Z modified |
| 3360 | 3532 | h8.h8nflag = (res>>15)&1; |
| 3361 | h8.h8vflag = ( | |
| 3533 | h8.h8vflag = ( | |
| 3362 | 3534 | |
| 3363 | 3535 | // zflag |
| 3364 | 3536 | if(res==0) |
| r1649 | r1650 | |
| 3373 | 3545 | return res; |
| 3374 | 3546 | } |
| 3375 | 3547 | |
| 3548 | static INT32 h8_shal32(INT32 src) | |
| 3549 | { | |
| 3550 | INT32 res; | |
| 3551 | ||
| 3552 | h8.h8cflag = (src>>31)&1; | |
| 3553 | res = src<<1; | |
| 3554 | // N and Z modified | |
| 3555 | h8.h8nflag = (res>>31)&1; | |
| 3556 | h8.h8vflag = (src ^ res) >> 31; | |
| 3557 | ||
| 3558 | // zflag | |
| 3559 | if(res==0) | |
| 3560 | { | |
| 3561 | h8.h8zflag = 1; | |
| 3562 | } | |
| 3563 | else | |
| 3564 | { | |
| 3565 | h8.h8zflag = 0; | |
| 3566 | } | |
| 3567 | ||
| 3568 | return res; | |
| 3569 | } | |
| 3570 | ||
| 3376 | 3571 | static UINT8 h8_dec8(UINT8 src) |
| 3377 | 3572 | { |
| 3378 | 3573 | UINT8 res; |
| r1649 | r1650 | |
| 3781 | 3976 | } |
| 3782 | 3977 | } |
| 3783 | 3978 | |
| 3979 | static READ16_HANDLER( h8_3007_itu_r ) | |
| 3980 | { | |
| 3981 | if (mem_mask == 0) | |
| 3982 | { | |
| 3983 | // 16-bit read | |
| 3984 | return h8_3007_register_read8(offset*2 + 0xffff20)<<8 | h8_3007_register_read8((offset*2) + 1 + 0xffff20); | |
| 3985 | } | |
| 3986 | else if (mem_mask == 0xff) | |
| 3987 | { | |
| 3988 | return h8_3007_register_read8(offset*2 + 0xffff20)<<8; | |
| 3989 | } | |
| 3990 | else if (mem_mask == 0xff00) | |
| 3991 | { | |
| 3992 | return h8_3007_register_read8((offset*2) + 1 + 0xffff20); | |
| 3993 | } | |
| 3994 | ||
| 3995 | return 0; | |
| 3996 | } | |
| 3997 | static WRITE16_HANDLER( h8_3007_itu_w ) | |
| 3998 | { | |
| 3999 | if (mem_mask == 0) | |
| 4000 | { | |
| 4001 | // 16-bit write | |
| 4002 | h8_3007_register_write8(offset*2 + 0xffff20, data>>8); | |
| 4003 | h8_3007_register_write8((offset*2) + 1 + 0xffff20, data&0xff); | |
| 4004 | } | |
| 4005 | else if (mem_mask == 0xff) | |
| 4006 | { | |
| 4007 | h8_3007_register_write8(offset*2 + 0xffff20, data>>8); | |
| 4008 | } | |
| 4009 | else if (mem_mask == 0xff00) | |
| 4010 | { | |
| 4011 | h8_3007_register_write8((offset*2) + 1 + 0xffff20, data&0xff); | |
| 4012 | } | |
| 4013 | } | |
| 4014 | ||
| 4015 | static READ16_HANDLER( h8_3007_itu1_r ) | |
| 4016 | { | |
| 4017 | if (mem_mask == 0) | |
| 4018 | { | |
| 4019 | // 16-bit read | |
| 4020 | return h8_3007_register1_read8(offset*2 + 0xfee000)<<8 | h8_3007_register1_read8((offset*2) + 1 + 0xfee000); | |
| 4021 | } | |
| 4022 | else if (mem_mask == 0xff) | |
| 4023 | { | |
| 4024 | return h8_3007_register1_read8(offset*2 + 0xfee000)<<8; | |
| 4025 | } | |
| 4026 | else if (mem_mask == 0xff00) | |
| 4027 | { | |
| 4028 | return h8_3007_register1_read8((offset*2) + 1 + 0xfee000); | |
| 4029 | } | |
| 4030 | ||
| 4031 | return 0; | |
| 4032 | } | |
| 4033 | static WRITE16_HANDLER( h8_3007_itu1_w ) | |
| 4034 | { | |
| 4035 | if (mem_mask == 0) | |
| 4036 | { | |
| 4037 | // 16-bit write | |
| 4038 | h8_3007_register1_write8(offset*2 + 0xfee000, data>>8); | |
| 4039 | h8_3007_register1_write8((offset*2) + 1 + 0xfee000, data&0xff); | |
| 4040 | } | |
| 4041 | else if (mem_mask == 0xff) | |
| 4042 | { | |
| 4043 | h8_3007_register1_write8(offset*2 + 0xfee000, data>>8); | |
| 4044 | } | |
| 4045 | else if (mem_mask == 0xff00) | |
| 4046 | { | |
| 4047 | h8_3007_register1_write8((offset*2) + 1 + 0xfee000, data&0xff); | |
| 4048 | } | |
| 4049 | } | |
| 4050 | ||
| 3784 | 4051 | // On-board RAM and peripherals |
| 3785 | static ADDRESS_MAP_START( h8_internal_map, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 4052 | static ADDRESS_MAP_START( h8_3002_internal_map, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 4053 | // 512B RAM | |
| 3786 | 4054 | AM_RANGE(0xfffd10, 0xffff0f) AM_RAM |
| 3787 | 4055 | AM_RANGE(0xffff10, 0xffffff) AM_READWRITE( h8_itu_r, h8_itu_w ) |
| 3788 | 4056 | ADDRESS_MAP_END |
| 3789 | 4057 | |
| 4058 | static ADDRESS_MAP_START( h8_3044_internal_map, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 4059 | // 32k ROM, 2k RAM | |
| 4060 | AM_RANGE(0xfff710, 0xffff0f) AM_RAM | |
| 4061 | AM_RANGE(0xffff1c, 0xffffff) AM_READWRITE( h8_itu_r, h8_itu_w ) | |
| 4062 | ADDRESS_MAP_END | |
| 4063 | ||
| 4064 | static ADDRESS_MAP_START( h8_3007_internal_map, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 4065 | // ROM-less, 4k RAM | |
| 4066 | AM_RANGE(0xfee000, 0xfee0ff) AM_READWRITE( h8_3007_itu1_r, h8_3007_itu1_w ) | |
| 4067 | AM_RANGE(0xffef20, 0xffff1f) AM_RAM | |
| 4068 | AM_RANGE(0xffff20, 0xffffe9) AM_READWRITE( h8_3007_itu_r, h8_3007_itu_w ) | |
| 4069 | ADDRESS_MAP_END | |
| 4070 | ||
| 4071 | ||
| 3790 | 4072 | void h8_3002_get_info(UINT32 state, cpuinfo *info) |
| 3791 | 4073 | { |
| 3792 | 4074 | switch(state) { |
| r1649 | r1650 | |
| 3799 | 4081 | case CPUINFO_PTR_EXIT: info->exit = 0; break; |
| 3800 | 4082 | case CPUINFO_PTR_EXECUTE: info->execute = h8_execute; break; |
| 3801 | 4083 | case CPUINFO_PTR_BURN: info->burn = 0; break; |
| 3802 | #ifdef | |
| 4084 | #ifdef ENABLE_DEBUGGER | |
| 3803 | 4085 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = h8_disasm; break; |
| 3804 | #endif /* | |
| 4086 | #endif /* ENABLE_DEBUGGER */ | |
| 3805 | 4087 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &h8_cyccnt; break; |
| 3806 | 4088 | case CPUINFO_INT_CONTEXT_SIZE: info->i = sizeof(h83002_state); break; |
| 3807 | 4089 | case CPUINFO_INT_MIN_INSTRUCTION_BYTES: info->i = 2; break; |
| r1649 | r1650 | |
| 3819 | 4101 | case CPUINFO_INT_ADDRBUS_SHIFT + ADDRESS_SPACE_IO: info->i = 0; break; |
| 3820 | 4102 | |
| 3821 | 4103 | // Internal maps |
| 3822 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM: info->internal_map = construct_map_h8_internal_map; break; | |
| 4104 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM: info->internal_map = construct_map_h8_3002_internal_map; break; | |
| 3823 | 4105 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: info->internal_map = 0; break; |
| 3824 | 4106 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_IO: info->internal_map = 0; break; |
| 3825 | 4107 | |
| r1649 | r1650 | |
| 3863 | 4145 | case CPUINFO_STR_REGISTER + H8_E7: sprintf(info->s, " SP :%08x", h8.regs[7]); break; |
| 3864 | 4146 | } |
| 3865 | 4147 | } |
| 4148 | ||
| 4149 | void h8_3044_get_info(UINT32 state, cpuinfo *info) | |
| 4150 | { | |
| 4151 | switch (state) | |
| 4152 | { | |
| 4153 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM: info->internal_map = construct_map_h8_3044_internal_map; break; | |
| 4154 | case CPUINFO_STR_NAME: strcpy(info->s, "H8/3044"); break; | |
| 4155 | default: | |
| 4156 | h8_3002_get_info(state,info); | |
| 4157 | } | |
| 4158 | } | |
| 4159 | ||
| 4160 | void h8_3007_get_info(UINT32 state, cpuinfo *info) | |
| 4161 | { | |
| 4162 | switch (state) | |
| 4163 | { | |
| 4164 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM: info->internal_map = construct_map_h8_3007_internal_map; break; | |
| 4165 | case CPUINFO_PTR_INIT: info->init = h8_3007_init; break; | |
| 4166 | case CPUINFO_STR_NAME: strcpy(info->s, "H8/3007"); break; | |
| 4167 | default: | |
| 4168 | h8_3002_get_info(state,info); | |
| 4169 | } | |
| 4170 | } |
| r1649 | r1650 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | extern h83002_state h8; |
| 38 | 38 | |
| 39 | UINT8 h8_register_read8(UINT32 address); | |
| 40 | UINT8 h8_3007_register_read8(UINT32 address); | |
| 41 | UINT8 h8_3007_register1_read8(UINT32 address); | |
| 42 | void h8_register_write8(UINT32 address, UINT8 val); | |
| 43 | void h8_3007_register_write8(UINT32 address, UINT8 val); | |
| 44 | void h8_3007_register1_write8(UINT32 address, UINT8 val); | |
| 45 | ||
| 39 | 46 | void h8_itu_init(void); |
| 47 | void h8_3007_itu_init(void); | |
| 40 | 48 | void h8_itu_reset(void); |
| 41 | 49 | UINT8 h8_itu_read8(UINT8 reg); |
| 50 | UINT8 h8_3007_itu_read8(UINT8 reg); | |
| 42 | 51 | void h8_itu_write8(UINT8 reg, UINT8 val); |
| 52 | void h8_3007_itu_write8(UINT8 reg, UINT8 val); | |
| 43 | 53 | |
| 44 | 54 | #endif |
| r1649 | r1650 | |
|---|---|---|
| 349 | 349 | #endif |
| 350 | 350 | |
| 351 | 351 | |
| 352 | static UINT8 h8_ISR_r(void) | |
| 353 | { | |
| 354 | UINT8 res = 0; | |
| 355 | ||
| 356 | int i; | |
| 357 | for (i = 0; i < 6; i++) | |
| 358 | if (h8.h8_IRQrequestL & (1 << (12+i))) res |= (1 << i); | |
| 359 | ||
| 360 | return res; | |
| 361 | } | |
| 362 | ||
| 363 | static void h8_ISR_w(UINT8 val) | |
| 364 | { | |
| 365 | int i; | |
| 366 | for (i = 0; i < 6; i++) | |
| 367 | if ((~val) & (1 << i)) h8.h8_IRQrequestL &= ~(1 << (12+i)); | |
| 368 | } | |
| 369 | ||
| 370 | ||
| 352 | 371 | UINT8 h8_register_read8(UINT32 address) |
| 353 | 372 | { |
| 354 | 373 | UINT8 val; |
| r1649 | r1650 | |
| 428 | 447 | case 0xd6: // port b data |
| 429 | 448 | val = io_read_byte_8(H8_PORTB); |
| 430 | 449 | break; |
| 450 | case 0xf6: | |
| 451 | val = h8_ISR_r(); | |
| 452 | break; | |
| 453 | ||
| 431 | 454 | default: |
| 432 | 455 | val = h8.per_regs[reg]; |
| 433 | 456 | break; |
| r1649 | r1650 | |
| 479 | 502 | case 0xd6: // port b data |
| 480 | 503 | io_write_byte_8(H8_PORTB, val); |
| 481 | 504 | break; |
| 505 | case 0xf6: | |
| 506 | h8_ISR_w(val); | |
| 507 | break; | |
| 482 | 508 | } |
| 483 | 509 | |
| 484 | 510 | h8.per_regs[reg] = val; |
| 485 | 511 | } |
| 486 | 512 | |
| 513 | static void h8_3007_itu_refresh_timer(int tnum) | |
| 514 | { | |
| 515 | attotime period; | |
| 516 | static const int tscales[4] = { 1, 2, 4, 8 }; | |
| 517 | int ourTCR = h8.per_regs[0x68+(tnum*8)]; | |
| 518 | ||
| 519 | period = attotime_mul(ATTOTIME_IN_HZ(cpunum_get_clock(h8.cpu_number)), tscales[ourTCR & 3]); | |
| 520 | ||
| 521 | if (ourTCR & 4) | |
| 522 | { | |
| 523 | logerror("H8/3007: Timer %d is using an external clock. Unsupported!\n", tnum); | |
| 524 | } | |
| 525 | ||
| 526 | timer_adjust(h8.timer[tnum], period, 0, attotime_zero); | |
| 527 | } | |
| 528 | ||
| 529 | INLINE void h8itu_3007_timer_cb(int tnum) | |
| 530 | { | |
| 531 | int base = 0x68 + (tnum*8); | |
| 532 | UINT16 count = (h8.per_regs[base + 0x2]<<8) | h8.per_regs[base + 0x3]; | |
| 533 | count++; | |
| 534 | ||
| 535 | // logerror("h8/3007 timer %d count = %04x\n",tnum,count); | |
| 536 | ||
| 537 | // GRA match | |
| 538 | if ((h8.per_regs[base + 0x1] & 0x03) && (count == ((h8.per_regs[base + 0x4]<<8) | h8.per_regs[base + 0x5]))) | |
| 539 | { | |
| 540 | if ((h8.per_regs[base + 0x0] & 0x60) == 0x20) | |
| 541 | { | |
| 542 | // logerror("h8/3007 timer %d GRA match, restarting\n",tnum); | |
| 543 | count = 0; | |
| 544 | h8_3007_itu_refresh_timer(tnum); | |
| 545 | } | |
| 546 | else | |
| 547 | { | |
| 548 | // logerror("h8/3007 timer %d GRA match, stopping\n",tnum); | |
| 549 | timer_adjust(h8.timer[tnum], attotime_never, 0, attotime_zero); | |
| 550 | } | |
| 551 | ||
| 552 | h8.per_regs[0x64] |= 1<<tnum; | |
| 553 | if(h8.per_regs[0x64] & (4<<tnum)) // interrupt enable | |
| 554 | { | |
| 555 | // logerror("h8/3007 timer %d GRA INTERRUPT\n",tnum); | |
| 556 | h8_3002_InterruptRequest(24+tnum*4); | |
| 557 | } | |
| 558 | } | |
| 559 | // GRB match | |
| 560 | if ((h8.per_regs[base + 0x1] & 0x30) && (count == ((h8.per_regs[base + 0x6]<<8) | h8.per_regs[base + 0x7]))) | |
| 561 | { | |
| 562 | if ((h8.per_regs[base + 0x0] & 0x60) == 0x40) | |
| 563 | { | |
| 564 | // logerror("h8/3007 timer %d GRB match, restarting\n",tnum); | |
| 565 | count = 0; | |
| 566 | h8_3007_itu_refresh_timer(tnum); | |
| 567 | } | |
| 568 | else | |
| 569 | { | |
| 570 | // logerror("h8/3007 timer %d GRB match, stopping\n",tnum); | |
| 571 | timer_adjust(h8.timer[tnum], attotime_never, 0, attotime_zero); | |
| 572 | } | |
| 573 | ||
| 574 | h8.per_regs[0x65] |= 1<<tnum; | |
| 575 | if(h8.per_regs[0x65] & (4<<tnum)) // interrupt enable | |
| 576 | { | |
| 577 | // logerror("h8/3007 timer %d GRB INTERRUPT\n",tnum); | |
| 578 | h8_3002_InterruptRequest(25+tnum*4); | |
| 579 | } | |
| 580 | } | |
| 581 | // Overflow | |
| 582 | if (((h8.per_regs[base + 0x1] & 0x33) == 0) && (count == 0)) | |
| 583 | { | |
| 584 | // logerror("h8/3007 timer %d OVF match, restarting\n",tnum); | |
| 585 | h8.per_regs[0x66] |= 1<<tnum; | |
| 586 | if(h8.per_regs[0x66] & (4<<tnum)) // interrupt enable | |
| 587 | { | |
| 588 | // logerror("h8/3007 timer %d OVF INTERRUPT\n",tnum); | |
| 589 | h8_3002_InterruptRequest(26+tnum*4); | |
| 590 | } | |
| 591 | } | |
| 592 | ||
| 593 | h8.per_regs[base + 0x2] = count >> 8; | |
| 594 | h8.per_regs[base + 0x3] = count & 0xff; | |
| 595 | } | |
| 596 | ||
| 597 | static TIMER_CALLBACK( h8itu_3007_timer_0_cb ) | |
| 598 | { | |
| 599 | h8itu_3007_timer_cb(0); | |
| 600 | } | |
| 601 | static TIMER_CALLBACK( h8itu_3007_timer_1_cb ) | |
| 602 | { | |
| 603 | h8itu_3007_timer_cb(1); | |
| 604 | } | |
| 605 | static TIMER_CALLBACK( h8itu_3007_timer_2_cb ) | |
| 606 | { | |
| 607 | h8itu_3007_timer_cb(2); | |
| 608 | } | |
| 609 | ||
| 610 | ||
| 611 | UINT8 h8_3007_itu_read8(UINT8 reg) | |
| 612 | { | |
| 613 | UINT8 val; | |
| 614 | ||
| 615 | switch(reg) | |
| 616 | { | |
| 617 | case 0x60: | |
| 618 | val = h8.h8TSTR | 0xf8; | |
| 619 | break; | |
| 620 | default: | |
| 621 | val = h8.per_regs[reg]; | |
| 622 | break; | |
| 623 | } | |
| 624 | ||
| 625 | return val; | |
| 626 | } | |
| 627 | ||
| 628 | void h8_3007_itu_write8(UINT8 reg, UINT8 val) | |
| 629 | { | |
| 630 | // logerror("%06x: h8/3007 reg %02x = %02x\n",activecpu_get_pc(),reg,val); | |
| 631 | h8.per_regs[reg] = val; | |
| 632 | switch(reg) | |
| 633 | { | |
| 634 | case 0x60: | |
| 635 | if ((val & 1) && !(h8.h8TSTR & 1)) | |
| 636 | { | |
| 637 | h8_3007_itu_refresh_timer(0); | |
| 638 | } | |
| 639 | if ((val & 2) && !(h8.h8TSTR & 2)) | |
| 640 | { | |
| 641 | h8_3007_itu_refresh_timer(1); | |
| 642 | } | |
| 643 | if ((val & 4) && !(h8.h8TSTR & 4)) | |
| 644 | { | |
| 645 | h8_3007_itu_refresh_timer(2); | |
| 646 | } | |
| 647 | h8.h8TSTR = val; | |
| 648 | break; | |
| 649 | default: | |
| 650 | val = 0; | |
| 651 | break; | |
| 652 | } | |
| 653 | } | |
| 654 | ||
| 655 | UINT8 h8_3007_register_read8(UINT32 address) | |
| 656 | { | |
| 657 | UINT8 val; | |
| 658 | UINT8 reg; | |
| 659 | ||
| 660 | address &= 0xffffff; | |
| 661 | ||
| 662 | reg = address & 0xff; | |
| 663 | ||
| 664 | if(reg >= 0x60 && reg <= 0x7f) | |
| 665 | { | |
| 666 | return h8_3007_itu_read8(reg); | |
| 667 | } | |
| 668 | else | |
| 669 | { | |
| 670 | switch(reg) | |
| 671 | { | |
| 672 | case 0xb4: // serial port A status | |
| 673 | val = h8.per_regs[reg]; | |
| 674 | val |= 0xc4; // transmit finished, receive ready, no errors | |
| 675 | break; | |
| 676 | case 0xb5: // serial port A receive | |
| 677 | val = io_read_byte(H8_SERIAL_A); | |
| 678 | break; | |
| 679 | case 0xbc: // serial port B status | |
| 680 | val = h8.per_regs[reg]; | |
| 681 | val |= 0xc4; // transmit finished, receive ready, no errors | |
| 682 | break; | |
| 683 | case 0xbd: // serial port B receive | |
| 684 | val = io_read_byte(H8_SERIAL_B); | |
| 685 | break; | |
| 686 | case 0xe0: | |
| 687 | val = io_read_byte_8(H8_ADC_0_H); | |
| 688 | break; | |
| 689 | case 0xe1: | |
| 690 | val = io_read_byte_8(H8_ADC_0_L); | |
| 691 | break; | |
| 692 | case 0xe2: | |
| 693 | val = io_read_byte_8(H8_ADC_1_H); | |
| 694 | break; | |
| 695 | case 0xe3: | |
| 696 | val = io_read_byte_8(H8_ADC_1_L); | |
| 697 | break; | |
| 698 | case 0xe4: | |
| 699 | val = io_read_byte_8(H8_ADC_2_H); | |
| 700 | break; | |
| 701 | case 0xe5: | |
| 702 | val = io_read_byte_8(H8_ADC_2_L); | |
| 703 | break; | |
| 704 | case 0xe6: | |
| 705 | val = io_read_byte_8(H8_ADC_3_H); | |
| 706 | break; | |
| 707 | case 0xe7: | |
| 708 | val = io_read_byte_8(H8_ADC_3_L); | |
| 709 | break; | |
| 710 | case 0xe8: // adc status | |
| 711 | val = 0x80; | |
| 712 | break; | |
| 713 | ||
| 714 | case 0xd3: // port 4 data | |
| 715 | val = io_read_byte_8(H8_PORT4); | |
| 716 | break; | |
| 717 | case 0xd5: // port 6 data | |
| 718 | val = io_read_byte_8(H8_PORT6); | |
| 719 | break; | |
| 720 | case 0xd6: // port 7 data | |
| 721 | val = io_read_byte_8(H8_PORT7); | |
| 722 | break; | |
| 723 | case 0xd7: // port 8 data | |
| 724 | val = io_read_byte_8(H8_PORT8); | |
| 725 | break; | |
| 726 | case 0xd8: // port 9 data | |
| 727 | val = io_read_byte_8(H8_PORT9); | |
| 728 | break; | |
| 729 | case 0xd9: // port a data | |
| 730 | val = io_read_byte_8(H8_PORTA); | |
| 731 | break; | |
| 732 | case 0xda: // port b data | |
| 733 | val = io_read_byte_8(H8_PORTB); | |
| 734 | break; | |
| 735 | default: | |
| 736 | val = h8.per_regs[reg]; | |
| 737 | break; | |
| 738 | } | |
| 739 | } | |
| 740 | ||
| 741 | return val; | |
| 742 | } | |
| 743 | ||
| 744 | void h8_3007_register_write8(UINT32 address, UINT8 val) | |
| 745 | { | |
| 746 | UINT8 reg; | |
| 747 | ||
| 748 | address &= 0xffffff; | |
| 749 | ||
| 750 | reg = address & 0xff; | |
| 751 | ||
| 752 | h8.per_regs[reg] = val; | |
| 753 | ||
| 754 | if(reg >= 0x60 && reg <= 0x7f) | |
| 755 | { | |
| 756 | h8_3007_itu_write8(reg, val); | |
| 757 | } | |
| 758 | else | |
| 759 | { | |
| 760 | switch (reg) | |
| 761 | { | |
| 762 | case 0xb3: | |
| 763 | io_write_byte(H8_SERIAL_A, val); | |
| 764 | break; | |
| 765 | case 0xbb: | |
| 766 | io_write_byte(H8_SERIAL_B, val); | |
| 767 | break; | |
| 768 | case 0xd3: | |
| 769 | io_write_byte_8(H8_PORT4, val); | |
| 770 | break; | |
| 771 | case 0xd5: // port 6 data | |
| 772 | io_write_byte_8(H8_PORT6, val); | |
| 773 | break; | |
| 774 | case 0xd6: // port 7 data | |
| 775 | io_write_byte_8(H8_PORT7, val); | |
| 776 | break; | |
| 777 | case 0xd7: // port 8 data | |
| 778 | io_write_byte_8(H8_PORT8, val); | |
| 779 | break; | |
| 780 | case 0xd8: // port 9 data | |
| 781 | io_write_byte_8(H8_PORT9, val); | |
| 782 | break; | |
| 783 | case 0xd9: // port a data | |
| 784 | io_write_byte_8(H8_PORTA, val); | |
| 785 | break; | |
| 786 | case 0xda: // port b data | |
| 787 | io_write_byte_8(H8_PORTB, val); | |
| 788 | break; | |
| 789 | } | |
| 790 | } | |
| 791 | } | |
| 792 | ||
| 793 | UINT8 h8_3007_register1_read8(UINT32 address) | |
| 794 | { | |
| 795 | switch (address) | |
| 796 | { | |
| 797 | case 0xfee012: return h8.per_regs[0xF2]; // SYSCR | |
| 798 | case 0xfee016: return h8_ISR_r(); // ISR | |
| 799 | case 0xfee018: return h8.per_regs[0xF8]; // IPRA | |
| 800 | } | |
| 801 | ||
| 802 | logerror("cpu #%d (PC=%08X): unmapped I/O(1) byte read from %08X\n",cpu_getactivecpu(),activecpu_get_pc(),address); | |
| 803 | return 0; | |
| 804 | } | |
| 805 | ||
| 806 | void h8_3007_register1_write8(UINT32 address, UINT8 val) | |
| 807 | { | |
| 808 | switch (address) | |
| 809 | { | |
| 810 | case 0xfee012: h8.per_regs[0xF2] = val; return; // SYSCR | |
| 811 | case 0xfee016: h8_ISR_w(val); return; // ISR | |
| 812 | case 0xfee018: h8.per_regs[0xF8] = val; return; // IPRA | |
| 813 | } | |
| 814 | logerror("cpu #%d (PC=%08X): unmapped I/O(1) byte write to %08X = %02X\n",cpu_getactivecpu(),activecpu_get_pc(),address,val); | |
| 815 | } | |
| 816 | ||
| 817 | void h8_3007_itu_init(void) | |
| 818 | { | |
| 819 | h8.timer[0] = timer_alloc(h8itu_3007_timer_0_cb, NULL); | |
| 820 | h8.timer[1] = timer_alloc(h8itu_3007_timer_1_cb, NULL); | |
| 821 | h8.timer[2] = timer_alloc(h8itu_3007_timer_2_cb, NULL); | |
| 822 | ||
| 823 | h8_itu_reset(); | |
| 824 | } | |
| 825 | ||
| 487 | 826 | void h8_itu_init(void) |
| 488 | 827 | { |
| 489 | 828 | h8.timer[0] = timer_alloc(h8itu_timer_0_cb, NULL); |
| r1649 | r1650 | |
|---|---|---|
| 494 | 494 | |
| 495 | 495 | #if M68K_INSTRUCTION_HOOK |
| 496 | 496 | #if M68K_INSTRUCTION_HOOK == OPT_SPECIFY_HANDLER |
| 497 | #define m68ki_instr_hook() M68K_INSTRUCTION_CALLBACK() | |
| 497 | #define m68ki_instr_hook(pc) M68K_INSTRUCTION_CALLBACK(pc) | |
| 498 | 498 | #else |
| 499 | #define m68ki_instr_hook() CALLBACK_INSTR_HOOK() | |
| 499 | #define m68ki_instr_hook(pc) CALLBACK_INSTR_HOOK(pc) | |
| 500 | 500 | #endif |
| 501 | 501 | #else |
| 502 | 502 | #define m68ki_instr_hook() |
| r1649 | r1650 | |
| 905 | 905 | int (*tas_instr_callback)(void); /* Called when a TAS instruction is encountered, allows / disallows writeback */ |
| 906 | 906 | void (*pc_changed_callback)(unsigned int new_pc); /* Called when the PC changes by a large amount */ |
| 907 | 907 | void (*set_fc_callback)(unsigned int new_fc); /* Called when the CPU function code changes */ |
| 908 | void (*instr_hook_callback)( | |
| 908 | void (*instr_hook_callback)(unsigned | |
| 909 | 909 | |
| 910 | 910 | } m68ki_cpu_core; |
| 911 | 911 |
| r1649 | r1650 | |
|---|---|---|
| 237 | 237 | m68k_set_context(src); |
| 238 | 238 | } |
| 239 | 239 | |
| 240 | #ifdef | |
| 240 | #ifdef ENABLE_DEBUGGER | |
| 241 | 241 | static offs_t m68000_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 242 | 242 | { |
| 243 | 243 | M68K_SET_PC_CALLBACK(pc); |
| 244 | 244 | return m68k_disassemble_raw(buffer, pc, oprom, opram, M68K_CPU_TYPE_68000); |
| 245 | 245 | } |
| 246 | #endif /* | |
| 246 | #endif /* ENABLE_DEBUGGER */ | |
| 247 | 247 | |
| 248 | 248 | /**************************************************************************** |
| 249 | 249 | * M68008 section |
| r1649 | r1650 | |
| 286 | 286 | m68k_set_context(src); |
| 287 | 287 | } |
| 288 | 288 | |
| 289 | #ifdef | |
| 289 | #ifdef ENABLE_DEBUGGER | |
| 290 | 290 | static offs_t m68008_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 291 | 291 | { |
| 292 | 292 | M68K_SET_PC_CALLBACK(pc); |
| 293 | 293 | return m68k_disassemble_raw(buffer, pc, oprom, opram, M68K_CPU_TYPE_68008); |
| 294 | 294 | } |
| 295 | #endif /* | |
| 295 | #endif /* ENABLE_DEBUGGER */ | |
| 296 | 296 | |
| 297 | 297 | #endif /* HAS_M68008 */ |
| 298 | 298 | |
| r1649 | r1650 | |
| 310 | 310 | m68k_set_int_ack_callback(irqcallback); |
| 311 | 311 | } |
| 312 | 312 | |
| 313 | #ifdef | |
| 313 | #ifdef ENABLE_DEBUGGER | |
| 314 | 314 | static offs_t m68010_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 315 | 315 | { |
| 316 | 316 | M68K_SET_PC_CALLBACK(pc); |
| 317 | 317 | return m68k_disassemble_raw(buffer, pc, oprom, opram, M68K_CPU_TYPE_68010); |
| 318 | 318 | } |
| 319 | #endif /* | |
| 319 | #endif /* ENABLE_DEBUGGER */ | |
| 320 | 320 | |
| 321 | 321 | #endif /* HAS_M68010 */ |
| 322 | 322 | |
| r1649 | r1650 | |
| 360 | 360 | m68k_set_context(src); |
| 361 | 361 | } |
| 362 | 362 | |
| 363 | #ifdef | |
| 363 | #ifdef ENABLE_DEBUGGER | |
| 364 | 364 | static offs_t m68020_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 365 | 365 | { |
| 366 | 366 | M68K_SET_PC_CALLBACK(pc); |
| 367 | 367 | return m68k_disassemble_raw(buffer, pc, oprom, opram, M68K_CPU_TYPE_68020); |
| 368 | 368 | } |
| 369 | #endif /* | |
| 369 | #endif /* ENABLE_DEBUGGER */ | |
| 370 | 370 | |
| 371 | 371 | |
| 372 | 372 | /**************************************************************************** |
| r1649 | r1650 | |
| 383 | 383 | m68k_set_int_ack_callback(irqcallback); |
| 384 | 384 | } |
| 385 | 385 | |
| 386 | #ifdef | |
| 386 | #ifdef ENABLE_DEBUGGER | |
| 387 | 387 | static offs_t m68ec020_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 388 | 388 | { |
| 389 | 389 | M68K_SET_PC_CALLBACK(pc); |
| 390 | 390 | return m68k_disassemble_raw(buffer, pc, oprom, opram, M68K_CPU_TYPE_68EC020); |
| 391 | 391 | } |
| 392 | #endif /* | |
| 392 | #endif /* ENABLE_DEBUGGER */ | |
| 393 | 393 | |
| 394 | 394 | #endif /* HAS_M68EC020 */ |
| 395 | 395 | |
| r1649 | r1650 | |
| 434 | 434 | m68k_set_context(src); |
| 435 | 435 | } |
| 436 | 436 | |
| 437 | #ifdef | |
| 437 | #ifdef ENABLE_DEBUGGER | |
| 438 | 438 | static offs_t m68040_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 439 | 439 | { |
| 440 | 440 | M68K_SET_PC_CALLBACK(pc); |
| 441 | 441 | return m68k_disassemble_raw(buffer, pc, oprom, opram, M68K_CPU_TYPE_68040); |
| 442 | 442 | } |
| 443 | #endif /* | |
| 443 | #endif /* ENABLE_DEBUGGER */ | |
| 444 | 444 | |
| 445 | 445 | #endif /* HAS_M68040 */ |
| 446 | 446 | |
| r1649 | r1650 | |
| 573 | 573 | case CPUINFO_PTR_EXIT: info->exit = m68000_exit; break; |
| 574 | 574 | case CPUINFO_PTR_EXECUTE: info->execute = m68000_execute; break; |
| 575 | 575 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 576 | #ifdef | |
| 576 | #ifdef ENABLE_DEBUGGER | |
| 577 | 577 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = m68000_dasm; break; |
| 578 | #endif /* | |
| 578 | #endif /* ENABLE_DEBUGGER */ | |
| 579 | 579 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &m68k_ICount; break; |
| 580 | 580 | |
| 581 | 581 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
| 753 | 753 | case CPUINFO_PTR_EXIT: info->exit = m68008_exit; break; |
| 754 | 754 | case CPUINFO_PTR_EXECUTE: info->execute = m68008_execute; break; |
| 755 | 755 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 756 | #ifdef | |
| 756 | #ifdef ENABLE_DEBUGGER | |
| 757 | 757 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = m68008_dasm; break; |
| 758 | #endif /* | |
| 758 | #endif /* ENABLE_DEBUGGER */ | |
| 759 | 759 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &m68k_ICount; break; |
| 760 | 760 | |
| 761 | 761 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
| 844 | 844 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 845 | 845 | case CPUINFO_PTR_SET_INFO: info->setinfo = m68010_set_info; break; |
| 846 | 846 | case CPUINFO_PTR_INIT: info->init = m68010_init; break; |
| 847 | #ifdef | |
| 847 | #ifdef ENABLE_DEBUGGER | |
| 848 | 848 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = m68010_dasm; break; |
| 849 | #endif /* | |
| 849 | #endif /* ENABLE_DEBUGGER */ | |
| 850 | 850 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 851 | 851 | case CPUINFO_STR_NAME: strcpy(info->s, "68010"); break; |
| 852 | 852 | case CPUINFO_STR_REGISTER + M68K_SFC: sprintf(info->s, "SFC:%X", m68k_get_reg(NULL, M68K_REG_SFC)); break; |
| r1649 | r1650 | |
| 994 | 994 | case CPUINFO_PTR_EXIT: info->exit = m68020_exit; break; |
| 995 | 995 | case CPUINFO_PTR_EXECUTE: info->execute = m68020_execute; break; |
| 996 | 996 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 997 | #ifdef | |
| 997 | #ifdef ENABLE_DEBUGGER | |
| 998 | 998 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = m68020_dasm; break; |
| 999 | #endif /* | |
| 999 | #endif /* ENABLE_DEBUGGER */ | |
| 1000 | 1000 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &m68k_ICount; break; |
| 1001 | 1001 | |
| 1002 | 1002 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
| 1087 | 1087 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 1088 | 1088 | case CPUINFO_PTR_SET_INFO: info->setinfo = m68ec020_set_info; break; |
| 1089 | 1089 | case CPUINFO_PTR_INIT: info->init = m68ec020_init; break; |
| 1090 | #ifdef | |
| 1090 | #ifdef ENABLE_DEBUGGER | |
| 1091 | 1091 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = m68ec020_dasm; break; |
| 1092 | #endif /* | |
| 1092 | #endif /* ENABLE_DEBUGGER */ | |
| 1093 | 1093 | |
| 1094 | 1094 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 1095 | 1095 | case CPUINFO_STR_NAME: strcpy(info->s, "68EC020"); break; |
| r1649 | r1650 | |
| 1236 | 1236 | case CPUINFO_PTR_EXIT: info->exit = m68040_exit; break; |
| 1237 | 1237 | case CPUINFO_PTR_EXECUTE: info->execute = m68040_execute; break; |
| 1238 | 1238 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1239 | #ifdef | |
| 1239 | #ifdef ENABLE_DEBUGGER | |
| 1240 | 1240 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = m68040_dasm; break; |
| 1241 | #endif /* | |
| 1241 | #endif /* ENABLE_DEBUGGER */ | |
| 1242 | 1242 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &m68k_ICount; break; |
| 1243 | 1243 | |
| 1244 | 1244 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 274 | 274 | * instruction cycle. |
| 275 | 275 | * Default behavior: do nothing. |
| 276 | 276 | */ |
| 277 | void m68k_set_instr_hook_callback(void (*callback)( | |
| 277 | void m68k_set_instr_hook_callback(void (*callback)(unsigned int pc)); | |
| 278 | 278 | |
| 279 | 279 | |
| 280 | 280 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | /* ============================== MAME STUFF ============================== */ |
| 6 | 6 | /* ======================================================================== */ |
| 7 | 7 | |
| 8 | #include "cpuintrf.h" | |
| 9 | 8 | #include "debugger.h" |
| 9 | #include "deprecat.h" | |
| 10 | 10 | #include "m68000.h" |
| 11 | 11 | |
| 12 | 12 | /* Configuration switches (see m68kconf.h for explanation) */ |
| r1649 | r1650 | |
| 41 | 41 | #define M68K_SET_PC_CALLBACK(A) change_pc(A) |
| 42 | 42 | |
| 43 | 43 | #define M68K_INSTRUCTION_HOOK OPT_SPECIFY_HANDLER |
| 44 | #define M68K_INSTRUCTION_CALLBACK() CALL_ | |
| 44 | #define M68K_INSTRUCTION_CALLBACK(A) CALL_ | |
| 45 | 45 | |
| 46 | 46 | #define M68K_EMULATE_PREFETCH OPT_ON |
| 47 | 47 |
| r1649 | r1650 | |
|---|---|---|
| 500 | 500 | } |
| 501 | 501 | |
| 502 | 502 | /* Called every instruction cycle prior to execution */ |
| 503 | static void default_instr_hook_callback( | |
| 503 | static void default_instr_hook_callback(unsigned int pc) | |
| 504 | 504 | { |
| 505 | 505 | } |
| 506 | 506 | |
| r1649 | r1650 | |
| 670 | 670 | CALLBACK_SET_FC = callback ? callback : default_set_fc_callback; |
| 671 | 671 | } |
| 672 | 672 | |
| 673 | void m68k_set_instr_hook_callback(void (*callback)( | |
| 673 | void m68k_set_instr_hook_callback(void (*callback)(unsigned int pc)) | |
| 674 | 674 | { |
| 675 | 675 | CALLBACK_INSTR_HOOK = callback ? callback : default_instr_hook_callback; |
| 676 | 676 | } |
| r1649 | r1650 | |
| 808 | 808 | m68ki_use_data_space(); /* auto-disable (see m68kcpu.h) */ |
| 809 | 809 | |
| 810 | 810 | /* Call external hook to peek at CPU */ |
| 811 | m68ki_instr_hook(); /* auto-disable (see m68kcpu.h) */ | |
| 811 | m68ki_instr_hook(REG_PC); /* auto-disable (see m68kcpu.h) */ | |
| 812 | 812 | |
| 813 | 813 | /* Record previous program counter */ |
| 814 | 814 | REG_PPC = REG_PC; |
| r1649 | r1650 | |
|---|---|---|
| 50 | 50 | |
| 51 | 51 | void ccpu_get_info(UINT32 state, cpuinfo *info); |
| 52 | 52 | |
| 53 | #ifdef | |
| 53 | #ifdef ENABLE_DEBUGGER | |
| 54 | 54 | offs_t ccpu_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 55 | 55 | #endif |
| 56 | 56 |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | ***************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "debugger.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "ccpu.h" |
| 13 | 14 | |
| 14 | 15 | |
| r1649 | r1650 | |
| 186 | 187 | ccpu.nextmiflag = ccpu.nextnextmiflag; |
| 187 | 188 | |
| 188 | 189 | /* fetch the opcode */ |
| 189 | CALL_ | |
| 190 | CALL_ | |
| 190 | 191 | opcode = READOP(ccpu.PC++); |
| 191 | 192 | |
| 192 | 193 | switch (opcode) |
| r1649 | r1650 | |
| 765 | 766 | case CPUINFO_PTR_EXIT: info->exit = NULL; break; |
| 766 | 767 | case CPUINFO_PTR_EXECUTE: info->execute = ccpu_execute; break; |
| 767 | 768 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 768 | #ifdef | |
| 769 | #ifdef ENABLE_DEBUGGER | |
| 769 | 770 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = ccpu_dasm; break; |
| 770 | #endif /* | |
| 771 | #endif /* ENABLE_DEBUGGER */ | |
| 771 | 772 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &ccpu_icount; break; |
| 772 | 773 | |
| 773 | 774 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 25 | 25 | /****************************************************************************/ |
| 26 | 26 | extern void z80gb_get_info(UINT32 state, cpuinfo *info); |
| 27 | 27 | |
| 28 | #ifdef | |
| 28 | #ifdef ENABLE_DEBUGGER | |
| 29 | 29 | extern unsigned z80gb_dasm( char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram ); |
| 30 | #endif /* | |
| 30 | #endif /* ENABLE_DEBUGGER */ | |
| 31 | 31 | |
| 32 | 32 | #endif |
| r1649 | r1650 | |
|---|---|---|
| 36 | 36 | /** Split fetch and execute cycles. **/ |
| 37 | 37 | /** **/ |
| 38 | 38 | /*************************************************************/ |
| 39 | #include "debugger.h" | |
| 40 | #include "deprecat.h" | |
| 39 | 41 | #include "z80gb.h" |
| 40 | #include "debugger.h" | |
| 41 | 42 | |
| 42 | 43 | #define FLAG_Z 0x80 |
| 43 | 44 | #define FLAG_N 0x40 |
| r1649 | r1650 | |
| 306 | 307 | } else { |
| 307 | 308 | /* Fetch and count cycles */ |
| 308 | 309 | z80gb_ProcessInterrupts (); |
| 309 | CALL_ | |
| 310 | CALL_ | |
| 310 | 311 | if ( Regs.w.enable & HALTED ) { |
| 311 | 312 | CYCLES_PASSED( Cycles[0x76] ); |
| 312 | 313 | Regs.w.execution_state = 1; |
| r1649 | r1650 | |
| 465 | 466 | case CPUINFO_PTR_EXECUTE: info->execute = z80gb_execute; break; |
| 466 | 467 | case CPUINFO_PTR_BURN: info->burn = z80gb_burn; break; |
| 467 | 468 | |
| 468 | #ifdef | |
| 469 | #ifdef ENABLE_DEBUGGER | |
| 469 | 470 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = z80gb_dasm; break; |
| 470 | 471 | #endif |
| 471 | 472 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &z80gb_ICount; break; |
| r1649 | r1650 | |
|---|---|---|
| 122 | 122 | #define TOWORD(bitaddr) ((offs_t)(bitaddr) >> 4) |
| 123 | 123 | |
| 124 | 124 | |
| 125 | #ifdef | |
| 125 | #ifdef ENABLE_DEBUGGER | |
| 126 | 126 | offs_t tms34010_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 127 | 127 | offs_t tms34020_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 128 | 128 | #endif |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include <stddef.h> |
| 11 | #include "cpuintrf.h" | |
| 12 | 11 | #include "debugger.h" |
| 12 | #include "deprecat.h" | |
| 13 | #include "osd_cpu.h" | |
| 13 | 14 | #include "tms34010.h" |
| 14 | 15 | #include "34010ops.h" |
| 15 | #include "osd_cpu.h" | |
| 16 | #include "driver.h" | |
| 17 | 16 | |
| 18 | 17 | |
| 19 | 18 | /*************************************************************************** |
| r1649 | r1650 | |
| 836 | 835 | do |
| 837 | 836 | { |
| 838 | 837 | |
| 839 | #ifdef MAME_DEBUG | |
| 840 | if (Machine->debug_mode) { state.st = GET_ST(); mame_debug_hook(); } | |
| 838 | #ifdef ENABLE_DEBUGGER | |
| 839 | if (Machine->debug_mode) { state.st = GET_ST(); mame_debug_hook(PC); } | |
| 841 | 840 | #endif |
| 842 | 841 | state.op = ROPCODE(); |
| 843 | 842 | (*opcode_table[state.op >> 4])(); |
| r1649 | r1650 | |
| 1865 | 1864 | case CPUINFO_PTR_EXIT: info->exit = tms34010_exit; break; |
| 1866 | 1865 | case CPUINFO_PTR_EXECUTE: info->execute = tms34010_execute; break; |
| 1867 | 1866 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1868 | #ifdef | |
| 1867 | #ifdef ENABLE_DEBUGGER | |
| 1869 | 1868 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = tms34010_dasm; break; |
| 1870 | #endif /* | |
| 1869 | #endif /* ENABLE_DEBUGGER */ | |
| 1871 | 1870 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &tms34010_ICount; break; |
| 1872 | 1871 | |
| 1873 | 1872 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
| 1954 | 1953 | case CPUINFO_PTR_GET_CONTEXT: info->getcontext = tms34020_get_context; break; |
| 1955 | 1954 | case CPUINFO_PTR_SET_CONTEXT: info->setcontext = tms34020_set_context; break; |
| 1956 | 1955 | case CPUINFO_PTR_RESET: info->reset = tms34020_reset; break; |
| 1957 | #ifdef | |
| 1956 | #ifdef ENABLE_DEBUGGER | |
| 1958 | 1957 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = tms34020_dasm; break; |
| 1959 | #endif /* | |
| 1958 | #endif /* ENABLE_DEBUGGER */ | |
| 1960 | 1959 | |
| 1961 | 1960 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 1962 | 1961 | case CPUINFO_STR_NAME: strcpy(info->s, "TMS34020"); break; |
| r1649 | r1650 | |
|---|---|---|
| 85 | 85 | |
| 86 | 86 | static void illegal(void) |
| 87 | 87 | { |
| 88 | #ifdef | |
| 88 | #ifdef ENABLE_DEBUGGER | |
| 89 | 89 | logerror("Illegal op @ %06X: %08X (tbl=%03X)\n", tms32031.pc - 1, OP, OP >> 21); |
| 90 | 90 | DEBUGGER_BREAK; |
| 91 | 91 | #endif |
| r1649 | r1650 | |
| 100 | 100 | |
| 101 | 101 | INLINE void execute_one(void) |
| 102 | 102 | { |
| 103 | CALL_ | |
| 103 | CALL_ | |
| 104 | 104 | OP = ROPCODE(tms32031.pc); |
| 105 | 105 | tms32031_icount -= 2; /* 2 clocks per cycle */ |
| 106 | 106 | tms32031.pc++; |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "debugger.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "tms32031.h" |
| 11 | 12 | #include "eminline.h" |
| 12 | 13 | |
| r1649 | r1650 | |
| 519 | 520 | |
| 520 | 521 | while (tms32031_icount > 0) |
| 521 | 522 | { |
| 522 | #ifdef | |
| 523 | #ifdef ENABLE_DEBUGGER | |
| 523 | 524 | if (IREG(TMR_SP) & 0xff000000) |
| 524 | 525 | DEBUGGER_BREAK; |
| 525 | 526 | #endif |
| r1649 | r1650 | |
| 558 | 559 | DISASSEMBLY HOOK |
| 559 | 560 | ***************************************************************************/ |
| 560 | 561 | |
| 561 | #ifdef | |
| 562 | #ifdef ENABLE_DEBUGGER | |
| 562 | 563 | static offs_t tms32031_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 563 | 564 | { |
| 564 | 565 | UINT32 op = oprom[0] | (oprom[1] << 8) | (oprom[2] << 16) | (oprom[3] << 24); |
| 565 | 566 | extern unsigned dasm_tms32031(char *, unsigned, UINT32); |
| 566 | 567 | return dasm_tms32031(buffer, pc, op); |
| 567 | 568 | } |
| 568 | #endif /* | |
| 569 | #endif /* ENABLE_DEBUGGER */ | |
| 569 | 570 | |
| 570 | 571 | |
| 571 | 572 | |
| r1649 | r1650 | |
| 815 | 816 | case CPUINFO_PTR_EXIT: info->exit = tms32031_exit; break; |
| 816 | 817 | case CPUINFO_PTR_EXECUTE: info->execute = tms32031_execute; break; |
| 817 | 818 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 818 | #ifdef | |
| 819 | #ifdef ENABLE_DEBUGGER | |
| 819 | 820 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = tms32031_dasm; break; |
| 820 | #endif /* | |
| 821 | #endif /* ENABLE_DEBUGGER */ | |
| 821 | 822 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &tms32031_icount; break; |
| 822 | 823 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM: info->internal_map = construct_map_internal_32031; break; |
| 823 | 824 |
| r1649 | r1650 | |
|---|---|---|
| 1019 | 1019 | CPUOBJS += $(CPUOBJ)/m68000/m68kcpu.o $(CPUOBJ)/m68000/m68kmame.o $(CPUOBJ)/m68000/m68kops.o |
| 1020 | 1020 | DBGOBJS += $(CPUOBJ)/m68000/m68kdasm.o |
| 1021 | 1021 | endif |
| 1022 | M68KMAKE = $(CPUOBJ)/m68000/m68kmake$(EXE) | |
| 1022 | 1023 | |
| 1023 | 1024 | # when we compile source files we need to include generated files from the OBJ directory |
| 1024 | 1025 | $(CPUOBJ)/m68000/%.o: $(CPUSRC)/m68000/%.c |
| r1649 | r1650 | |
| 1031 | 1032 | $(CC) $(CDEFS) $(CFLAGS) -I$(CPUSRC)/m68000 -c $< -o $@ |
| 1032 | 1033 | |
| 1033 | 1034 | # rule to generate the C files |
| 1034 | $(CPUOBJ)/m68000/m68kops.c: $( | |
| 1035 | $(CPUOBJ)/m68000/m68kops.c: $(M | |
| 1035 | 1036 | @echo Generating M68K source files... |
| 1036 | $( | |
| 1037 | $(M | |
| 1037 | 1038 | |
| 1038 | 1039 | # rule to build the generator |
| 1039 | $(CPUOBJ)/m68000/m68kmake$(EXE): $(CPUOBJ)/m68000/m68kmake.o $(LIBOCORE) | |
| 1040 | ifneq ($(CROSS_BUILD),1) | |
| 1041 | $(M68KMAKE): $(CPUOBJ)/m68000/m68kmake.o $(LIBOCORE) | |
| 1040 | 1042 | @echo Linking $@... |
| 1041 | 1043 | $(LD) $(LDFLAGS) $(OSDBGLDFLAGS) $^ $(LIBS) -o $@ |
| 1044 | endif | |
| 1042 | 1045 | |
| 1043 | 1046 | # rule to ensure we build the header before building the core CPU file |
| 1044 | 1047 | $(CPUOBJ)/m68000/m68kcpu.o: $(CPUOBJ)/m68000/m68kops.c |
| r1649 | r1650 | |
| 1233 | 1236 | |
| 1234 | 1237 | |
| 1235 | 1238 | #------------------------------------------------- |
| 1239 | # Nintendo Minx | |
| 1240 | #------------------------------------------------- | |
| 1241 | ||
| 1242 | CPUDEFS += -DHAS_MINX=$(if $(filter MINX,$(CPUS)),1,0) | |
| 1243 | ||
| 1244 | ifneq ($(filter MINX,$(CPUS)),) | |
| 1245 | OBJDIRS += $(CPUOBJ)/minx | |
| 1246 | CPUOBJS += $(CPUOBJ)/minx/minx.o | |
| 1247 | DBGOBJS += $(CPUOBJ)/minx/minxd.o | |
| 1248 | endif | |
| 1249 | ||
| 1250 | $(CPUOBJ)/minx/minx.o: $(CPUSRC)/minx/minx.c \ | |
| 1251 | $(CPUSRC)/minx/minx.h \ | |
| 1252 | $(CPUSRC)/minx/minxd.c \ | |
| 1253 | $(CPUSRC)/minx/minxopce.h \ | |
| 1254 | $(CPUSRC)/minx/minxopcf.h \ | |
| 1255 | $(CPUSRC)/minx/minxops.h \ | |
| 1256 | $(CPUSRC)/minx/minxfunc.h | |
| 1257 | ||
| 1258 | ||
| 1259 | ||
| 1260 | #------------------------------------------------- | |
| 1236 | 1261 | # Nintendo/SGI RSP (R3000-based + vector processing) |
| 1237 | 1262 | #------------------------------------------------- |
| 1238 | 1263 | |
| r1649 | r1650 | |
| 1608 | 1633 | |
| 1609 | 1634 | |
| 1610 | 1635 | #------------------------------------------------- |
| 1636 | # Game Boy Z-80 | |
| 1637 | #------------------------------------------------- | |
| 1638 | ||
| 1639 | CPUDEFS += -DHAS_Z80GB=$(if $(filter Z80GB,$(CPUS)),1,0) | |
| 1640 | ||
| 1641 | ifneq ($(filter Z80GB,$(CPUS)),) | |
| 1642 | OBJDIRS += $(CPUOBJ)/z80gb | |
| 1643 | CPUOBJS += $(CPUOBJ)/z80gb/z80gb.o | |
| 1644 | DBGOBJS += $(CPUOBJ)/z80gb/z80gbd.o | |
| 1645 | endif | |
| 1646 | ||
| 1647 | $(CPUOBJ)/z80gb/z80gb.o: $(CPUSRC)/z80gb/z80gb.c \ | |
| 1648 | $(CPUSRC)/z80gb/z80gb.h \ | |
| 1649 | $(CPUSRC)/z80gb/opc_cb.h \ | |
| 1650 | $(CPUSRC)/z80gb/opc_main.h | |
| 1651 | ||
| 1652 | ||
| 1653 | ||
| 1654 | #------------------------------------------------- | |
| 1611 | 1655 | # Zilog Z180 |
| 1612 | 1656 | #------------------------------------------------- |
| 1613 | 1657 | |
| r1649 | r1650 | |
| 1651 | 1695 | $(CPUSRC)/z8000/z8000dab.h \ |
| 1652 | 1696 | $(CPUSRC)/z8000/z8000ops.c \ |
| 1653 | 1697 | $(CPUSRC)/z8000/z8000tbl.c |
| 1654 | ||
| 1655 | ||
| 1656 | ||
| 1657 | #------------------------------------------------- | |
| 1658 | # Game Boy Z-80 | |
| 1659 | #------------------------------------------------- | |
| 1660 | ||
| 1661 | CPUDEFS += -DHAS_Z80GB=$(if $(filter Z80GB,$(CPUS)),1,0) | |
| 1662 | ||
| 1663 | ifneq ($(filter Z80GB,$(CPUS)),) | |
| 1664 | OBJDIRS += $(CPUOBJ)/z80gb | |
| 1665 | CPUOBJS += $(CPUOBJ)/z80gb/z80gb.o | |
| 1666 | DBGOBJS += $(CPUOBJ)/z80gb/z80gbd.o | |
| 1667 | endif | |
| 1668 | ||
| 1669 | $(CPUOBJ)/z80gb/z80gb.o: $(CPUSRC)/z80gb/z80gb.c \ | |
| 1670 | $(CPUSRC)/z80gb/z80gb.h \ | |
| 1671 | $(CPUSRC)/z80gb/opc_cb.h \ | |
| 1672 | $(CPUSRC)/z80gb/opc_main.h | |
| 1673 | ||
| 1674 | #------------------------------------------------- | |
| 1675 | # Nintendo Minx | |
| 1676 | #------------------------------------------------- | |
| 1677 | ||
| 1678 | CPUDEFS += -DHAS_MINX=$(if $(filter MINX,$(CPUS)),1,0) | |
| 1679 | ||
| 1680 | ifneq ($(filter MINX,$(CPUS)),) | |
| 1681 | OBJDIRS += $(CPUOBJ)/minx | |
| 1682 | CPUOBJS += $(CPUOBJ)/minx/minx.o | |
| 1683 | DBGOBJS += $(CPUOBJ)/minx/minxd.o | |
| 1684 | endif | |
| 1685 | ||
| 1686 | $(CPUOBJ)/minx/minx.o: $(CPUSRC)/minx/minx.c \ | |
| 1687 | $(CPUSRC)/minx/minx.h \ | |
| 1688 | $(CPUSRC)/minx/minxd.c \ | |
| 1689 | $(CPUSRC)/minx/minxopce.h \ | |
| 1690 | $(CPUSRC)/minx/minxopcf.h \ | |
| 1691 | $(CPUSRC)/minx/minxops.h \ | |
| 1692 | $(CPUSRC)/minx/minxfunc.h | |
| 1693 | ||
| 1694 |
| r1649 | r1650 | |
|---|---|---|
| 1032 | 1032 | #endif |
| 1033 | 1033 | |
| 1034 | 1034 | /* Disassemble an instruction */ |
| 1035 | #ifdef | |
| 1035 | #ifdef ENABLE_DEBUGGER | |
| 1036 | 1036 | #include "m7700ds.h" |
| 1037 | 1037 | |
| 1038 | 1038 | static offs_t m37710_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 1039 | 1039 | { |
| 1040 | 1040 | return m7700_disassemble(buffer, (pc&0xffff), pc>>16, oprom, FLAG_M, FLAG_X); |
| 1041 | 1041 | } |
| 1042 | #endif /* | |
| 1042 | #endif /* ENABLE_DEBUGGER */ | |
| 1043 | 1043 | |
| 1044 | 1044 | static void m37710_restore_state(void) |
| 1045 | 1045 | { |
| r1649 | r1650 | |
| 1224 | 1224 | case CPUINFO_PTR_EXIT: info->exit = m37710_exit; break; |
| 1225 | 1225 | case CPUINFO_PTR_EXECUTE: info->execute = m37710_execute; break; |
| 1226 | 1226 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1227 | #ifdef | |
| 1227 | #ifdef ENABLE_DEBUGGER | |
| 1228 | 1228 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = m37710_dasm; break; |
| 1229 | #endif /* | |
| 1229 | #endif /* ENABLE_DEBUGGER */ | |
| 1230 | 1230 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &m37710_ICount; break; |
| 1231 | 1231 | |
| 1232 | 1232 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM: info->internal_map = construct_map_m37710_internal_map; break; |
| r1649 | r1650 | |
|---|---|---|
| 2943 | 2943 | do |
| 2944 | 2944 | { |
| 2945 | 2945 | REG_PPC = REG_PC; |
| 2946 | M37710_CALL_DEBUGGER; | |
| 2946 | M37710_CALL_DEBUGGER(REG_PC); | |
| 2947 | 2947 | REG_PC++; |
| 2948 | 2948 | REG_IR = read_8_IMM(REG_PB | REG_PPC); |
| 2949 | 2949 | FTABLE_OPCODES[REG_IR](); |
| r1649 | r1650 | |
|---|---|---|
| 104 | 104 | |
| 105 | 105 | #undef M37710_CALL_DEBUGGER |
| 106 | 106 | |
| 107 | #define M37710_CALL_DEBUGGER CALL_ | |
| 107 | #define M37710_CALL_DEBUGGER CALL_ | |
| 108 | 108 | #define m37710_read_8(addr) program_read_byte_16le(addr) |
| 109 | 109 | #define m37710_write_8(addr,data) program_write_byte_16le(addr,data) |
| 110 | 110 | #define m37710_read_8_immediate(A) program_read_byte_16le(A) |
| 111 | 111 | #define m37710_read_16(addr) program_read_word_16le(addr) |
| 112 | 112 | #define m37710_write_16(addr,data) program_write_word_16le(addr,data) |
| 113 | #define m37710_jumping(A) change_pc(A) | |
| 113 | #define m37710_jumping(A) change_pc(A) | |
| 114 | 114 | #define m37710_branching(A) |
| 115 | 115 | |
| 116 | 116 |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | #include <limits.h> |
| 13 | 13 | #include "cpuintrf.h" |
| 14 | 14 | #include "debugger.h" |
| 15 | #include "deprecat.h" | |
| 15 | 16 | #include "m37710.h" |
| 16 | 17 | |
| 17 | 18 |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | 6 | #include "sharc.h" |
| 7 | #include "deprecat.h" | |
| 7 | 8 | #include "debugger.h" |
| 8 | 9 | |
| 9 | #ifdef | |
| 10 | #ifdef ENABLE_DEBUGGER | |
| 10 | 11 | static offs_t sharc_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 11 | #endif /* | |
| 12 | #endif /* ENABLE_DEBUGGER */ | |
| 12 | 13 | |
| 13 | 14 | static void sharc_dma_exec(int channel); |
| 14 | 15 | static void check_interrupts(void); |
| r1649 | r1650 | |
| 406 | 407 | } |
| 407 | 408 | } |
| 408 | 409 | |
| 409 | #ifdef | |
| 410 | #ifdef ENABLE_DEBUGGER | |
| 410 | 411 | static offs_t sharc_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 411 | 412 | { |
| 412 | 413 | UINT64 op = 0; |
| r1649 | r1650 | |
| 419 | 420 | flags = sharc_dasm_one(buffer, pc, op); |
| 420 | 421 | return 1 | flags | DASMFLAG_SUPPORTED; |
| 421 | 422 | } |
| 422 | #endif /* | |
| 423 | #endif /* ENABLE_DEBUGGER */ | |
| 423 | 424 | |
| 424 | 425 | |
| 425 | 426 | static void sharc_init(int index, int clock, const void *config, int (*irqcallback)(int)) |
| r1649 | r1650 | |
| 592 | 593 | } |
| 593 | 594 | |
| 594 | 595 | sharc_icount = 0; |
| 595 | CALL_ | |
| 596 | CALL_ | |
| 596 | 597 | |
| 597 | 598 | return cycles; |
| 598 | 599 | } |
| r1649 | r1650 | |
| 627 | 628 | // fetch next instruction |
| 628 | 629 | sharc.fetch_opcode = ROPCODE(sharc.faddr); |
| 629 | 630 | |
| 630 | CALL_ | |
| 631 | CALL_ | |
| 631 | 632 | |
| 632 | 633 | // handle looping |
| 633 | 634 | if (sharc.pc == (sharc.laddr & 0xffffff)) |
| r1649 | r1650 | |
| 1095 | 1096 | case CPUINFO_PTR_EXIT: info->exit = sharc_exit; break; |
| 1096 | 1097 | case CPUINFO_PTR_EXECUTE: info->execute = sharc_execute; break; |
| 1097 | 1098 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1098 | #ifdef | |
| 1099 | #ifdef ENABLE_DEBUGGER | |
| 1099 | 1100 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = sharc_dasm; break; |
| 1100 | #endif /* | |
| 1101 | #endif /* ENABLE_DEBUGGER */ | |
| 1101 | 1102 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &sharc_icount; break; |
| 1102 | 1103 | case CPUINFO_PTR_READ: info->read = sharc_debug_read; break; |
| 1103 | 1104 | case CPUINFO_PTR_READOP: info->readop = sharc_debug_readop; break; |
| r1649 | r1650 | |
|---|---|---|
| 2747 | 2747 | |
| 2748 | 2748 | static void sharcop_unimplemented(void) |
| 2749 | 2749 | { |
| 2750 | #ifdef | |
| 2750 | #ifdef ENABLE_DEBUGGER | |
| 2751 | 2751 | char dasm[1000]; |
| 2752 | 2752 | sharc_dasm(dasm, sharc.pc, NULL, NULL); |
| 2753 | 2753 | mame_printf_debug("SHARC: %08X: %s\n", sharc.pc, dasm); |
| r1649 | r1650 | |
|---|---|---|
| 28 | 28 | void adsp21062_get_info(UINT32 state, cpuinfo *info); |
| 29 | 29 | #endif |
| 30 | 30 | |
| 31 | #ifdef | |
| 31 | #ifdef ENABLE_DEBUGGER | |
| 32 | 32 | extern UINT32 sharc_dasm_one(char *buffer, offs_t pc, UINT64 opcode); |
| 33 | 33 | #endif |
| 34 | 34 |
| r1649 | r1650 | |
|---|---|---|
| 1 | #if TIME_LOOP_HACKS | |
| 2 | 1 | |
| 3 | #define CHECK_BC_LOOP \ | |
| 4 | if( _BC > 1 && _PCD < 0xfffc ) { \ | |
| 5 | UINT8 op1 = cpu_readop(_PCD); \ | |
| 6 | UINT8 op2 = cpu_readop(_PCD+1); \ | |
| 7 | if( (op1==0x78 && op2==0xb1) || (op1==0x79 && op2==0xb0) ) \ | |
| 8 | { \ | |
| 9 | UINT8 op3 = cpu_readop(_PCD+2); \ | |
| 10 | UINT8 op4 = cpu_readop(_PCD+3); \ | |
| 11 | if( op3==0x20 && op4==0xfb ) \ | |
| 12 | { \ | |
| 13 | int cnt = \ | |
| 14 | cc[Z180_TABLE_op][0x78] + \ | |
| 15 | cc[Z180_TABLE_op][0xb1] + \ | |
| 16 | cc[Z180_TABLE_op][0x20] + \ | |
| 17 | cc[Z180_TABLE_ex][0x20]; \ | |
| 18 | while( _BC > 0 && z180_icount > cnt ) \ | |
| 19 | { \ | |
| 20 | BURNODD( cnt, 4, cnt ); \ | |
| 21 | _BC--; \ | |
| 22 | } \ | |
| 23 | } \ | |
| 24 | else \ | |
| 25 | if( op3 == 0xc2 ) \ | |
| 26 | { \ | |
| 27 | UINT8 ad1 = cpu_readop_arg(_PCD+3); \ | |
| 28 | UINT8 ad2 = cpu_readop_arg(_PCD+4); \ | |
| 29 | if( (ad1 + 256 * ad2) == (_PCD - 1) ) \ | |
| 30 | { \ | |
| 31 | int cnt = \ | |
| 32 | cc[Z180_TABLE_op][0x78] + \ | |
| 33 | cc[Z180_TABLE_op][0xb1] + \ | |
| 34 | cc[Z180_TABLE_op][0xc2] + \ | |
| 35 | cc[Z180_TABLE_ex][0xc2]; \ | |
| 36 | while( _BC > 0 && z180_icount > cnt ) \ | |
| 37 | { \ | |
| 38 | BURNODD( cnt, 4, cnt ); \ | |
| 39 | _BC--; \ | |
| 40 | } \ | |
| 41 | } \ | |
| 42 | } \ | |
| 43 | } \ | |
| 44 | } | |
| 45 | ||
| 46 | #define CHECK_DE_LOOP \ | |
| 47 | if( _DE > 1 && _PCD < 0xfffc ) { \ | |
| 48 | UINT8 op1 = cpu_readop(_PCD); \ | |
| 49 | UINT8 op2 = cpu_readop(_PCD+1); \ | |
| 50 | if( (op1==0x7a && op2==0xb3) || (op1==0x7b && op2==0xb2) ) \ | |
| 51 | { \ | |
| 52 | UINT8 op3 = cpu_readop(_PCD+2); \ | |
| 53 | UINT8 op4 = cpu_readop(_PCD+3); \ | |
| 54 | if( op3==0x20 && op4==0xfb ) \ | |
| 55 | { \ | |
| 56 | int cnt = \ | |
| 57 | cc[Z180_TABLE_op][0x7a] + \ | |
| 58 | cc[Z180_TABLE_op][0xb3] + \ | |
| 59 | cc[Z180_TABLE_op][0x20] + \ | |
| 60 | cc[Z180_TABLE_ex][0x20]; \ | |
| 61 | while( _DE > 0 && z180_icount > cnt ) \ | |
| 62 | { \ | |
| 63 | BURNODD( cnt, 4, cnt ); \ | |
| 64 | _DE--; \ | |
| 65 | } \ | |
| 66 | } \ | |
| 67 | else \ | |
| 68 | if( op3==0xc2 ) \ | |
| 69 | { \ | |
| 70 | UINT8 ad1 = cpu_readop_arg(_PCD+3); \ | |
| 71 | UINT8 ad2 = cpu_readop_arg(_PCD+4); \ | |
| 72 | if( (ad1 + 256 * ad2) == (_PCD - 1) ) \ | |
| 73 | { \ | |
| 74 | int cnt = \ | |
| 75 | cc[Z180_TABLE_op][0x7a] + \ | |
| 76 | cc[Z180_TABLE_op][0xb3] + \ | |
| 77 | cc[Z180_TABLE_op][0xc2] + \ | |
| 78 | cc[Z180_TABLE_ex][0xc2]; \ | |
| 79 | while( _DE > 0 && z180_icount > cnt ) \ | |
| 80 | { \ | |
| 81 | BURNODD( cnt, 4, cnt ); \ | |
| 82 | _DE--; \ | |
| 83 | } \ | |
| 84 | } \ | |
| 85 | } \ | |
| 86 | } \ | |
| 87 | } | |
| 88 | ||
| 89 | #define CHECK_HL_LOOP \ | |
| 90 | if( _HL > 1 && _PCD < 0xfffc ) { \ | |
| 91 | UINT8 op1 = cpu_readop(_PCD); \ | |
| 92 | UINT8 op2 = cpu_readop(_PCD+1); \ | |
| 93 | if( (op1==0x7c && op2==0xb5) || (op1==0x7d && op2==0xb4) ) \ | |
| 94 | { \ | |
| 95 | UINT8 op3 = cpu_readop(_PCD+2); \ | |
| 96 | UINT8 op4 = cpu_readop(_PCD+3); \ | |
| 97 | if( op3==0x20 && op4==0xfb ) \ | |
| 98 | { \ | |
| 99 | int cnt = \ | |
| 100 | cc[Z180_TABLE_op][0x7c] + \ | |
| 101 | cc[Z180_TABLE_op][0xb5] + \ | |
| 102 | cc[Z180_TABLE_op][0x20] + \ | |
| 103 | cc[Z180_TABLE_ex][0x20]; \ | |
| 104 | while( _HL > 0 && z180_icount > cnt ) \ | |
| 105 | { \ | |
| 106 | BURNODD( cnt, 4, cnt ); \ | |
| 107 | _HL--; \ | |
| 108 | } \ | |
| 109 | } \ | |
| 110 | else \ | |
| 111 | if( op3==0xc2 ) \ | |
| 112 | { \ | |
| 113 | UINT8 ad1 = cpu_readop_arg(_PCD+3); \ | |
| 114 | UINT8 ad2 = cpu_readop_arg(_PCD+4); \ | |
| 115 | if( (ad1 + 256 * ad2) == (_PCD - 1) ) \ | |
| 116 | { \ | |
| 117 | int cnt = \ | |
| 118 | cc[Z180_TABLE_op][0x7c] + \ | |
| 119 | cc[Z180_TABLE_op][0xb5] + \ | |
| 120 | cc[Z180_TABLE_op][0xc2] + \ | |
| 121 | cc[Z180_TABLE_ex][0xc2]; \ | |
| 122 | while( _HL > 0 && z180_icount > cnt ) \ | |
| 123 | { \ | |
| 124 | BURNODD( cnt, 4, cnt ); \ | |
| 125 | _HL--; \ | |
| 126 | } \ | |
| 127 | } \ | |
| 128 | } \ | |
| 129 | } \ | |
| 130 | } | |
| 131 | ||
| 132 | #else | |
| 133 | ||
| 134 | #define CHECK_BC_LOOP | |
| 135 | #define CHECK_DE_LOOP | |
| 136 | #define CHECK_HL_LOOP | |
| 137 | ||
| 138 | #endif | |
| 139 | ||
| 140 | 2 | /********************************************************** |
| 141 | 3 | * main opcodes |
| 142 | 4 | **********************************************************/ |
| r1649 | r1650 | |
| 152 | 14 | OP(op,08) { EX_AF; } /* EX AF,AF' */ |
| 153 | 15 | OP(op,09) { ADD16(HL,BC); } /* ADD HL,BC */ |
| 154 | 16 | OP(op,0a) { _A = RM(_BC); } /* LD A,(BC) */ |
| 155 | OP(op,0b) { _BC--; | |
| 17 | OP(op,0b) { _BC--; | |
| 156 | 18 | OP(op,0c) { _C = INC(_C); } /* INC C */ |
| 157 | 19 | OP(op,0d) { _C = DEC(_C); } /* DEC C */ |
| 158 | 20 | OP(op,0e) { _C = ARG(); } /* LD C,n */ |
| r1649 | r1650 | |
| 170 | 32 | OP(op,18) { JR(); } /* JR o */ |
| 171 | 33 | OP(op,19) { ADD16(HL,DE); } /* ADD HL,DE */ |
| 172 | 34 | OP(op,1a) { _A = RM(_DE); } /* LD A,(DE) */ |
| 173 | OP(op,1b) { _DE--; | |
| 35 | OP(op,1b) { _DE--; | |
| 174 | 36 | OP(op,1c) { _E = INC(_E); } /* INC E */ |
| 175 | 37 | OP(op,1d) { _E = DEC(_E); } /* DEC E */ |
| 176 | 38 | OP(op,1e) { _E = ARG(); } /* LD E,n */ |
| r1649 | r1650 | |
| 188 | 50 | OP(op,28) { JR_COND( _F & ZF, 0x28 ); } /* JR Z,o */ |
| 189 | 51 | OP(op,29) { ADD16(HL,HL); } /* ADD HL,HL */ |
| 190 | 52 | OP(op,2a) { EA = ARG16(); RM16( EA, &Z180.HL ); } /* LD HL,(w) */ |
| 191 | OP(op,2b) { _HL--; | |
| 53 | OP(op,2b) { _HL--; | |
| 192 | 54 | OP(op,2c) { _L = INC(_L); } /* INC L */ |
| 193 | 55 | OP(op,2d) { _L = DEC(_L); } /* DEC L */ |
| 194 | 56 | OP(op,2e) { _L = ARG(); } /* LD L,n */ |
| r1649 | r1650 | |
|---|---|---|
| 44 | 44 | *****************************************************************************/ |
| 45 | 45 | |
| 46 | 46 | #include "debugger.h" |
| 47 | #include "deprecat.h" | |
| 47 | 48 | #include "z180.h" |
| 48 | 49 | #include "cpu/z80/z80daisy.h" |
| 49 | 50 | |
| r1649 | r1650 | |
| 59 | 60 | /* use big flag arrays (4*64K) for ADD/ADC/SUB/SBC/CP results */ |
| 60 | 61 | #define BIG_FLAGS_ARRAY 1 |
| 61 | 62 | |
| 62 | /* Set to 1 for a more exact (but somewhat slower) Z180 emulation */ | |
| 63 | #define Z180_EXACT 1 | |
| 64 | ||
| 65 | /* on JP and JR opcodes check for tight loops */ | |
| 66 | #define BUSY_LOOP_HACKS 0 | |
| 67 | ||
| 68 | /* check for delay loops counting down BC */ | |
| 69 | #define TIME_LOOP_HACKS 0 | |
| 70 | ||
| 71 | 63 | static void set_irq_line(int irqline, int state); |
| 72 | 64 | |
| 73 | 65 | /****************************************************************************/ |
| r1649 | r1650 | |
| 748 | 740 | static UINT8 SZHV_dec[256]; /* zero, sign, half carry and overflow flags DEC r8 */ |
| 749 | 741 | |
| 750 | 742 | #if BIG_FLAGS_ARRAY |
| 751 | static UINT8 *SZHVC_add = 0; | |
| 752 | static UINT8 *SZHVC_sub = 0; | |
| 743 | static UINT8 *SZHVC_add; | |
| 744 | static UINT8 *SZHVC_sub; | |
| 753 | 745 | #endif |
| 754 | 746 | |
| 755 | 747 | /**************************************************************************** |
| r1649 | r1650 | |
| 1912 | 1904 | int (*save_irqcallback)(int); |
| 1913 | 1905 | int i, p; |
| 1914 | 1906 | #if BIG_FLAGS_ARRAY |
| 1915 | if( !SZHVC_add || !SZHVC_sub ) | |
| 1907 | int oldval, newval, val; | |
| 1908 | UINT8 *padd, *padc, *psub, *psbc; | |
| 1909 | /* allocate big flag arrays once */ | |
| 1910 | SZHVC_add = (UINT8 *)auto_malloc(2*256*256); | |
| 1911 | SZHVC_sub = (UINT8 *)auto_malloc(2*256*256); | |
| 1912 | padd = &SZHVC_add[ 0*256]; | |
| 1913 | padc = &SZHVC_add[256*256]; | |
| 1914 | psub = &SZHVC_sub[ 0*256]; | |
| 1915 | psbc = &SZHVC_sub[256*256]; | |
| 1916 | for (oldval = 0; oldval < 256; oldval++) | |
| 1916 | 1917 | { |
| 1917 | int oldval, newval, val; | |
| 1918 | UINT8 *padd, *padc, *psub, *psbc; | |
| 1919 | /* allocate big flag arrays once */ | |
| 1920 | SZHVC_add = (UINT8 *)auto_malloc(2*256*256); | |
| 1921 | SZHVC_sub = (UINT8 *)auto_malloc(2*256*256); | |
| 1922 | padd = &SZHVC_add[ 0*256]; | |
| 1923 | padc = &SZHVC_add[256*256]; | |
| 1924 | psub = &SZHVC_sub[ 0*256]; | |
| 1925 | psbc = &SZHVC_sub[256*256]; | |
| 1926 | for (oldval = 0; oldval < 256; oldval++) | |
| 1918 | for (newval = 0; newval < 256; newval++) | |
| 1927 | 1919 | { |
| 1928 | for (newval = 0; newval < 256; newval++) | |
| 1929 | { | |
| 1930 | /* add or adc w/o carry set */ | |
| 1931 | val = newval - oldval; | |
| 1932 | *padd = (newval) ? ((newval & 0x80) ? SF : 0) : ZF; | |
| 1933 | #if Z180_EXACT | |
| 1934 | *padd |= (newval & (YF | XF)); /* undocumented flag bits 5+3 */ | |
| 1935 | #endif | |
| 1936 | if( (newval & 0x0f) < (oldval & 0x0f) ) *padd |= HF; | |
| 1937 | if( newval < oldval ) *padd |= CF; | |
| 1938 | if( (val^oldval^0x80) & (val^newval) & 0x80 ) *padd |= VF; | |
| 1939 | padd++; | |
| 1920 | /* add or adc w/o carry set */ | |
| 1921 | val = newval - oldval; | |
| 1922 | *padd = (newval) ? ((newval & 0x80) ? SF : 0) : ZF; | |
| 1923 | *padd |= (newval & (YF | XF)); /* undocumented flag bits 5+3 */ | |
| 1940 | 1924 | |
| 1941 | /* adc with carry set */ | |
| 1942 | val = newval - oldval - 1; | |
| 1943 | *padc = (newval) ? ((newval & 0x80) ? SF : 0) : ZF; | |
| 1944 | #if Z180_EXACT | |
| 1945 | *padc |= (newval & (YF | XF)); /* undocumented flag bits 5+3 */ | |
| 1946 | #endif | |
| 1947 | if( (newval & 0x0f) <= (oldval & 0x0f) ) *padc |= HF; | |
| 1948 | if( newval <= oldval ) *padc |= CF; | |
| 1949 | if( (val^oldval^0x80) & (val^newval) & 0x80 ) *padc |= VF; | |
| 1950 | padc++; | |
| 1925 | if( (newval & 0x0f) < (oldval & 0x0f) ) *padd |= HF; | |
| 1926 | if( newval < oldval ) *padd |= CF; | |
| 1927 | if( (val^oldval^0x80) & (val^newval) & 0x80 ) *padd |= VF; | |
| 1928 | padd++; | |
| 1951 | 1929 | |
| 1952 | /* cp, sub or sbc w/o carry set */ | |
| 1953 | val = oldval - newval; | |
| 1954 | *psub = NF | ((newval) ? ((newval & 0x80) ? SF : 0) : ZF); | |
| 1955 | #if Z180_EXACT | |
| 1956 | *psub |= (newval & (YF | XF)); /* undocumented flag bits 5+3 */ | |
| 1957 | #endif | |
| 1958 | if( (newval & 0x0f) > (oldval & 0x0f) ) *psub |= HF; | |
| 1959 | if( newval > oldval ) *psub |= CF; | |
| 1960 | if( (val^oldval) & (oldval^newval) & 0x80 ) *psub |= VF; | |
| 1961 | psub++; | |
| 1930 | /* adc with carry set */ | |
| 1931 | val = newval - oldval - 1; | |
| 1932 | *padc = (newval) ? ((newval & 0x80) ? SF : 0) : ZF; | |
| 1933 | *padc |= (newval & (YF | XF)); /* undocumented flag bits 5+3 */ | |
| 1934 | if( (newval & 0x0f) <= (oldval & 0x0f) ) *padc |= HF; | |
| 1935 | if( newval <= oldval ) *padc |= CF; | |
| 1936 | if( (val^oldval^0x80) & (val^newval) & 0x80 ) *padc |= VF; | |
| 1937 | padc++; | |
| 1962 | 1938 | |
| 1963 | /* sbc with carry set */ | |
| 1964 | val = oldval - newval - 1; | |
| 1965 | *psbc = NF | ((newval) ? ((newval & 0x80) ? SF : 0) : ZF); | |
| 1966 | #if Z180_EXACT | |
| 1967 | *psbc |= (newval & (YF | XF)); /* undocumented flag bits 5+3 */ | |
| 1968 | #endif | |
| 1969 | if( (newval & 0x0f) >= (oldval & 0x0f) ) *psbc |= HF; | |
| 1970 | if( newval >= oldval ) *psbc |= CF; | |
| 1971 | if( (val^oldval) & (oldval^newval) & 0x80 ) *psbc |= VF; | |
| 1972 | psbc++; | |
| 1973 | } | |
| 1939 | /* cp, sub or sbc w/o carry set */ | |
| 1940 | val = oldval - newval; | |
| 1941 | *psub = NF | ((newval) ? ((newval & 0x80) ? SF : 0) : ZF); | |
| 1942 | *psub |= (newval & (YF | XF)); /* undocumented flag bits 5+3 */ | |
| 1943 | if( (newval & 0x0f) > (oldval & 0x0f) ) *psub |= HF; | |
| 1944 | if( newval > oldval ) *psub |= CF; | |
| 1945 | if( (val^oldval) & (oldval^newval) & 0x80 ) *psub |= VF; | |
| 1946 | psub++; | |
| 1947 | ||
| 1948 | /* sbc with carry set */ | |
| 1949 | val = oldval - newval - 1; | |
| 1950 | *psbc = NF | ((newval) ? ((newval & 0x80) ? SF : 0) : ZF); | |
| 1951 | *psbc |= (newval & (YF | XF)); /* undocumented flag bits 5+3 */ | |
| 1952 | if( (newval & 0x0f) >= (oldval & 0x0f) ) *psbc |= HF; | |
| 1953 | if( newval >= oldval ) *psbc |= CF; | |
| 1954 | if( (val^oldval) & (oldval^newval) & 0x80 ) *psbc |= VF; | |
| 1955 | psbc++; | |
| 1974 | 1956 | } |
| 1975 | 1957 | } |
| 1976 | 1958 | #endif |
| r1649 | r1650 | |
| 1986 | 1968 | if( i&0x40 ) ++p; |
| 1987 | 1969 | if( i&0x80 ) ++p; |
| 1988 | 1970 | SZ[i] = i ? i & SF : ZF; |
| 1989 | #if Z180_EXACT | |
| 1990 | 1971 | SZ[i] |= (i & (YF | XF)); /* undocumented flag bits 5+3 */ |
| 1991 | #endif | |
| 1992 | 1972 | SZ_BIT[i] = i ? i & SF : ZF | PF; |
| 1993 | #if Z180_EXACT | |
| 1994 | 1973 | SZ_BIT[i] |= (i & (YF | XF)); /* undocumented flag bits 5+3 */ |
| 1995 | #endif | |
| 1996 | 1974 | SZP[i] = SZ[i] | ((p & 1) ? 0 : PF); |
| 1997 | 1975 | SZHV_inc[i] = SZ[i]; |
| 1998 | 1976 | if( i == 0x80 ) SZHV_inc[i] |= VF; |
| r1649 | r1650 | |
| 2201 | 2179 | if ((IO_DSTAT & Z180_DSTAT_DE0) == Z180_DSTAT_DE0 && |
| 2202 | 2180 | (IO_DMODE & Z180_DMODE_MMOD) == Z180_DMODE_MMOD) |
| 2203 | 2181 | { |
| 2204 | CALL_ | |
| 2182 | CALL_ | |
| 2205 | 2183 | |
| 2206 | 2184 | z180_dma0(); |
| 2207 | 2185 | old_icount = handle_timers(z180_icount, old_icount); |
| r1649 | r1650 | |
| 2214 | 2192 | Z180.after_EI = 0; |
| 2215 | 2193 | |
| 2216 | 2194 | _PPC = _PCD; |
| 2217 | CALL_ | |
| 2195 | CALL_ | |
| 2218 | 2196 | _R++; |
| 2219 | 2197 | |
| 2220 | 2198 | EXEC_INLINE(op,ROP()); |
| r1649 | r1650 | |
| 2241 | 2219 | Z180.after_EI = 0; |
| 2242 | 2220 | |
| 2243 | 2221 | _PPC = _PCD; |
| 2244 | CALL_ | |
| 2222 | CALL_ | |
| 2245 | 2223 | _R++; |
| 2246 | 2224 | EXEC_INLINE(op,ROP()); |
| 2247 | 2225 | old_icount = handle_timers(z180_icount, old_icount); |
| r1649 | r1650 | |
| 2579 | 2557 | case CPUINFO_PTR_RESET: info->reset = z180_reset; break; |
| 2580 | 2558 | case CPUINFO_PTR_EXECUTE: info->execute = z180_execute; break; |
| 2581 | 2559 | case CPUINFO_PTR_BURN: info->burn = z180_burn; break; |
| 2582 | #ifdef | |
| 2560 | #ifdef ENABLE_DEBUGGER | |
| 2583 | 2561 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = z180_dasm; break; |
| 2584 | #endif /* | |
| 2562 | #endif /* ENABLE_DEBUGGER */ | |
| 2585 | 2563 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &z180_icount; break; |
| 2586 | 2564 | case CPUINFO_PTR_TRANSLATE: info->translate = z180_translate; break; |
| 2587 | 2565 | case CPUINFO_PTR_Z180_CYCLE_TABLE + Z180_TABLE_op: info->p = (void *)cc[Z180_TABLE_op]; break; |
| r1649 | r1650 | |
| 2594 | 2572 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 2595 | 2573 | case CPUINFO_STR_NAME: strcpy(info->s, "Z180"); break; |
| 2596 | 2574 | case CPUINFO_STR_CORE_FAMILY: strcpy(info->s, "Zilog Z8x180"); break; |
| 2597 | case CPUINFO_STR_CORE_VERSION: strcpy(info->s, "0. | |
| 2575 | case CPUINFO_STR_CORE_VERSION: strcpy(info->s, "0.4"); break; | |
| 2598 | 2576 | case CPUINFO_STR_CORE_FILE: strcpy(info->s, __FILE__); break; |
| 2599 | 2577 | case CPUINFO_STR_CORE_CREDITS: strcpy(info->s, "Copyright Juergen Buchmueller, all rights reserved."); break; |
| 2600 | 2578 |
| r1649 | r1650 | |
|---|---|---|
| 127 | 127 | |
| 128 | 128 | extern void z180_get_info(UINT32 state, cpuinfo *info); |
| 129 | 129 | |
| 130 | #ifdef | |
| 130 | #ifdef ENABLE_DEBUGGER | |
| 131 | 131 | offs_t z180_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 132 | 132 | #endif |
| 133 | 133 |
| r1649 | r1650 | |
|---|---|---|
| 163 | 163 | /*************************************************************** |
| 164 | 164 | * JP |
| 165 | 165 | ***************************************************************/ |
| 166 | #if BUSY_LOOP_HACKS | |
| 167 | 166 | #define JP { \ |
| 168 | unsigned oldpc = _PCD-1; \ | |
| 169 | 167 | _PCD = ARG16(); \ |
| 170 | 168 | z180_change_pc(_PCD); \ |
| 171 | /* speed up busy loop */ \ | |
| 172 | if( _PCD == oldpc ) \ | |
| 173 | { \ | |
| 174 | if( !Z180.after_EI ) \ | |
| 175 | BURNODD( z180_icount, 1, cc[Z180_TABLE_op][0xc3] ); \ | |
| 176 | } \ | |
| 177 | else \ | |
| 178 | { \ | |
| 179 | UINT8 op = cpu_readop(_PCD); \ | |
| 180 | if( _PCD == oldpc-1 ) \ | |
| 181 | { \ | |
| 182 | /* NOP - JP $-1 or EI - JP $-1 */ \ | |
| 183 | if ( op == 0x00 || op == 0xfb ) \ | |
| 184 | { \ | |
| 185 | if( !Z180.after_EI ) \ | |
| 186 | BURNODD( z180_icount-cc[Z180_TABLE_op][0x00],\ | |
| 187 | 2, cc[Z180_TABLE_op][0x00]+cc[Z180_TABLE_op][0xc3]); \ | |
| 188 | } \ | |
| 189 | } \ | |
| 190 | else \ | |
| 191 | /* LD SP,#xxxx - JP $-3 (Galaga) */ \ | |
| 192 | if( _PCD == oldpc-3 && op == 0x31 ) \ | |
| 193 | { \ | |
| 194 | if( !Z180.after_EI ) \ | |
| 195 | BURNODD( z180_icount-cc[Z180_TABLE_op][0x31], \ | |
| 196 | 2, cc[Z180_TABLE_op][0x31]+cc[Z180_TABLE_op][0xc3]); \ | |
| 197 | } \ | |
| 198 | } \ | |
| 199 | 169 | } |
| 200 | #else | |
| 201 | #define JP { \ | |
| 202 | _PCD = ARG16(); \ | |
| 203 | z180_change_pc(_PCD); \ | |
| 204 | } | |
| 205 | #endif | |
| 206 | 170 | |
| 207 | 171 | /*************************************************************** |
| 208 | 172 | * JP_COND |
| r1649 | r1650 | |
| 392 | 356 | /*************************************************************** |
| 393 | 357 | * RLCA |
| 394 | 358 | ***************************************************************/ |
| 395 | #if Z180_EXACT | |
| 396 | 359 | #define RLCA \ |
| 397 | 360 | _A = (_A << 1) | (_A >> 7); \ |
| 398 | 361 | _F = (_F & (SF | ZF | PF)) | (_A & (YF | XF | CF)) |
| 399 | #else | |
| 400 | #define RLCA \ | |
| 401 | _A = (_A << 1) | (_A >> 7); \ | |
| 402 | _F = (_F & (SF | ZF | YF | XF | PF)) | (_A & CF) | |
| 403 | #endif | |
| 404 | 362 | |
| 405 | 363 | /*************************************************************** |
| 406 | 364 | * RRCA |
| 407 | 365 | ***************************************************************/ |
| 408 | #if Z180_EXACT | |
| 409 | 366 | #define RRCA \ |
| 410 | 367 | _F = (_F & (SF | ZF | PF)) | (_A & (YF | XF | CF)); \ |
| 411 | 368 | _A = (_A >> 1) | (_A << 7) |
| 412 | #else | |
| 413 | #define RRCA \ | |
| 414 | _F = (_F & (SF | ZF | YF | XF | PF)) | (_A & CF); \ | |
| 415 | _A = (_A >> 1) | (_A << 7) | |
| 416 | #endif | |
| 417 | 369 | |
| 418 | 370 | /*************************************************************** |
| 419 | 371 | * RLA |
| 420 | 372 | ***************************************************************/ |
| 421 | #if Z180_EXACT | |
| 422 | 373 | #define RLA { \ |
| 423 | 374 | UINT8 res = (_A << 1) | (_F & CF); \ |
| 424 | 375 | UINT8 c = (_A & 0x80) ? CF : 0; \ |
| 425 | 376 | _F = (_F & (SF | ZF | PF)) | c | (res & (YF | XF)); \ |
| 426 | 377 | _A = res; \ |
| 427 | 378 | } |
| 428 | #else | |
| 429 | #define RLA { \ | |
| 430 | UINT8 res = (_A << 1) | (_F & CF); \ | |
| 431 | UINT8 c = (_A & 0x80) ? CF : 0; \ | |
| 432 | _F = (_F & (SF | ZF | YF | XF | PF)) | c; \ | |
| 433 | _A = res; \ | |
| 434 | } | |
| 435 | #endif | |
| 436 | 379 | |
| 437 | 380 | /*************************************************************** |
| 438 | 381 | * RRA |
| 439 | 382 | ***************************************************************/ |
| 440 | #if Z180_EXACT | |
| 441 | 383 | #define RRA { \ |
| 442 | 384 | UINT8 res = (_A >> 1) | (_F << 7); \ |
| 443 | 385 | UINT8 c = (_A & 0x01) ? CF : 0; \ |
| 444 | 386 | _F = (_F & (SF | ZF | PF)) | c | (res & (YF | XF)); \ |
| 445 | 387 | _A = res; \ |
| 446 | 388 | } |
| 447 | #else | |
| 448 | #define RRA { \ | |
| 449 | UINT8 res = (_A >> 1) | (_F << 7); \ | |
| 450 | UINT8 c = (_A & 0x01) ? CF : 0; \ | |
| 451 | _F = (_F & (SF | ZF | YF | XF | PF)) | c; \ | |
| 452 | _A = res; \ | |
| 453 | } | |
| 454 | #endif | |
| 455 | 389 | |
| 456 | 390 | /*************************************************************** |
| 457 | 391 | * RRD |
| r1649 | r1650 | |
| 811 | 745 | /*************************************************************** |
| 812 | 746 | * BIT bit,(IX/Y+o) |
| 813 | 747 | ***************************************************************/ |
| 814 | #if Z180_EXACT | |
| 815 | 748 | #define BIT_XY(bit,reg) \ |
| 816 | 749 | _F = (_F & CF) | HF | (SZ_BIT[reg & (1<<bit)] & ~(YF|XF)) | ((EA>>8) & (YF|XF)) |
| 817 | #else | |
| 818 | #define BIT_XY BIT | |
| 819 | #endif | |
| 820 | 750 | |
| 821 | 751 | /*************************************************************** |
| 822 | 752 | * RES bit,r8 |
| r1649 | r1650 | |
| 837 | 767 | /*************************************************************** |
| 838 | 768 | * LDI |
| 839 | 769 | ***************************************************************/ |
| 840 | #if Z180_EXACT | |
| 841 | 770 | #define LDI { \ |
| 842 | 771 | UINT8 io = RM(_HL); \ |
| 843 | 772 | WM( _DE, io ); \ |
| r1649 | r1650 | |
| 847 | 776 | _HL++; _DE++; _BC--; \ |
| 848 | 777 | if( _BC ) _F |= VF; \ |
| 849 | 778 | } |
| 850 | #else | |
| 851 | #define LDI { \ | |
| 852 | WM( _DE, RM(_HL) ); \ | |
| 853 | _F &= SF | ZF | YF | XF | CF; \ | |
| 854 | _HL++; _DE++; _BC--; \ | |
| 855 | if( _BC ) _F |= VF; \ | |
| 856 | } | |
| 857 | #endif | |
| 858 | 779 | |
| 859 | 780 | /*************************************************************** |
| 860 | 781 | * CPI |
| 861 | 782 | ***************************************************************/ |
| 862 | #if Z180_EXACT | |
| 863 | 783 | #define CPI { \ |
| 864 | 784 | UINT8 val = RM(_HL); \ |
| 865 | 785 | UINT8 res = _A - val; \ |
| r1649 | r1650 | |
| 870 | 790 | if( res & 0x08 ) _F |= XF; /* bit 3 -> flag 3 */ \ |
| 871 | 791 | if( _BC ) _F |= VF; \ |
| 872 | 792 | } |
| 873 | #else | |
| 874 | #define CPI { \ | |
| 875 | UINT8 val = RM(_HL); \ | |
| 876 | UINT8 res = _A - val; \ | |
| 877 | _HL++; _BC--; \ | |
| 878 | _F = (_F & CF) | SZ[res] | ((_A ^ val ^ res) & HF) | NF; \ | |
| 879 | if( _BC ) _F |= VF; \ | |
| 880 | } | |
| 881 | #endif | |
| 882 | 793 | |
| 883 | 794 | /*************************************************************** |
| 884 | 795 | * INI |
| 885 | 796 | ***************************************************************/ |
| 886 | #if Z180_EXACT | |
| 887 | 797 | #define INI { \ |
| 888 | 798 | UINT8 io = IN(_BC); \ |
| 889 | 799 | _B--; \ |
| r1649 | r1650 | |
| 898 | 808 | (io >> 2)) & 1 ) \ |
| 899 | 809 | _F |= PF; \ |
| 900 | 810 | } |
| 901 | #else | |
| 902 | #define INI { \ | |
| 903 | _B--; \ | |
| 904 | WM( _HL, IN(_BC) ); \ | |
| 905 | _HL++; \ | |
| 906 | _F = (_B) ? NF : NF | ZF; \ | |
| 907 | } | |
| 908 | #endif | |
| 909 | 811 | |
| 910 | 812 | /*************************************************************** |
| 911 | 813 | * OUTI |
| 912 | 814 | ***************************************************************/ |
| 913 | #if Z180_EXACT | |
| 914 | 815 | #define OUTI { \ |
| 915 | 816 | UINT8 io = RM(_HL); \ |
| 916 | 817 | _B--; \ |
| r1649 | r1650 | |
| 925 | 826 | (io >> 2)) & 1 ) \ |
| 926 | 827 | _F |= PF; \ |
| 927 | 828 | } |
| 928 | #else | |
| 929 | #define OUTI { \ | |
| 930 | _B--; \ | |
| 931 | OUT( _BC, RM(_HL) ); \ | |
| 932 | _HL++; \ | |
| 933 | _F = (_B) ? NF : NF | ZF; \ | |
| 934 | } | |
| 935 | #endif | |
| 936 | 829 | |
| 937 | 830 | /*************************************************************** |
| 938 | 831 | * LDD |
| 939 | 832 | ***************************************************************/ |
| 940 | #if Z180_EXACT | |
| 941 | 833 | #define LDD { \ |
| 942 | 834 | UINT8 io = RM(_HL); \ |
| 943 | 835 | WM( _DE, io ); \ |
| r1649 | r1650 | |
| 947 | 839 | _HL--; _DE--; _BC--; \ |
| 948 | 840 | if( _BC ) _F |= VF; \ |
| 949 | 841 | } |
| 950 | #else | |
| 951 | #define LDD { \ | |
| 952 | WM( _DE, RM(_HL) ); \ | |
| 953 | _F &= SF | ZF | YF | XF | CF; \ | |
| 954 | _HL--; _DE--; _BC--; \ | |
| 955 | if( _BC ) _F |= VF; \ | |
| 956 | } | |
| 957 | #endif | |
| 958 | 842 | |
| 959 | 843 | /*************************************************************** |
| 960 | 844 | * CPD |
| 961 | 845 | ***************************************************************/ |
| 962 | #if Z180_EXACT | |
| 963 | 846 | #define CPD { \ |
| 964 | 847 | UINT8 val = RM(_HL); \ |
| 965 | 848 | UINT8 res = _A - val; \ |
| r1649 | r1650 | |
| 970 | 853 | if( res & 0x08 ) _F |= XF; /* bit 3 -> flag 3 */ \ |
| 971 | 854 | if( _BC ) _F |= VF; \ |
| 972 | 855 | } |
| 973 | #else | |
| 974 | #define CPD { \ | |
| 975 | UINT8 val = RM(_HL); \ | |
| 976 | UINT8 res = _A - val; \ | |
| 977 | _HL--; _BC--; \ | |
| 978 | _F = (_F & CF) | SZ[res] | ((_A ^ val ^ res) & HF) | NF; \ | |
| 979 | if( _BC ) _F |= VF; \ | |
| 980 | } | |
| 981 | #endif | |
| 982 | 856 | |
| 983 | 857 | /*************************************************************** |
| 984 | 858 | * IND |
| 985 | 859 | ***************************************************************/ |
| 986 | #if Z180_EXACT | |
| 987 | 860 | #define IND { \ |
| 988 | 861 | UINT8 io = IN(_BC); \ |
| 989 | 862 | _B--; \ |
| r1649 | r1650 | |
| 998 | 871 | (io >> 2)) & 1 ) \ |
| 999 | 872 | _F |= PF; \ |
| 1000 | 873 | } |
| 1001 | #else | |
| 1002 | #define IND { \ | |
| 1003 | _B--; \ | |
| 1004 | WM( _HL, IN(_BC) ); \ | |
| 1005 | _HL--; \ | |
| 1006 | _F = (_B) ? NF : NF | ZF; \ | |
| 1007 | } | |
| 1008 | #endif | |
| 1009 | 874 | |
| 1010 | 875 | /*************************************************************** |
| 1011 | 876 | * OUTD |
| 1012 | 877 | ***************************************************************/ |
| 1013 | #if Z180_EXACT | |
| 1014 | 878 | #define OUTD { \ |
| 1015 | 879 | UINT8 io = RM(_HL); \ |
| 1016 | 880 | _B--; \ |
| r1649 | r1650 | |
| 1025 | 889 | (io >> 2)) & 1 ) \ |
| 1026 | 890 | _F |= PF; \ |
| 1027 | 891 | } |
| 1028 | #else | |
| 1029 | #define OUTD { \ | |
| 1030 | _B--; \ | |
| 1031 | OUT( _BC, RM(_HL) ); \ | |
| 1032 | _HL--; \ | |
| 1033 | _F = (_B) ? NF : NF | ZF; \ | |
| 1034 | } | |
| 1035 | #endif | |
| 1036 | 892 | |
| 1037 | 893 | /*************************************************************** |
| 1038 | 894 | * LDIR |
| r1649 | r1650 | |
|---|---|---|
| 1 | #if Z180_EXACT | |
| 2 | 1 | /* tmp1 value for ini/inir/outi/otir for [C.1-0][io.1-0] */ |
| 3 | 2 | static const UINT8 irep_tmp1[4][4] = { |
| 4 | 3 | {0,0,1,0},{0,1,0,1},{1,0,1,1},{0,1,1,0} |
| r1649 | r1650 | |
| 28 | 27 | 1,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0, |
| 29 | 28 | 1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1 |
| 30 | 29 | }; |
| 31 | #endif | |
| 32 | 30 | |
| 33 | 31 | static const UINT8 cc_op[0x100] = { |
| 34 | 32 | /*-0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -a -b -c -d -e -f */ |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | ****************************************************************************/ |
| 5 | 5 | /* 26.March 2000 PeT changed set_irq_line */ |
| 6 | 6 | |
| 7 | #include "host.h" | |
| 8 | 7 | #include "debugger.h" |
| 8 | #include "deprecat.h" | |
| 9 | 9 | |
| 10 | #include "host.h" | |
| 10 | 11 | #include "i86.h" |
| 11 | 12 | #include "i86intf.h" |
| 12 | 13 | |
| r1649 | r1650 | |
| 243 | 244 | LOG(("[%04x:%04x]=%02x\tF:%04x\tAX=%04x\tBX=%04x\tCX=%04x\tDX=%04x %d%d%d%d%d%d%d%d%d\n", |
| 244 | 245 | I.sregs[CS], I.pc - I.base[CS], ReadByte(I.pc), I.flags, I.regs.w[AX], I.regs.w[BX], I.regs.w[CX], I.regs.w[DX], I.AuxVal ? 1 : 0, I.OverVal ? 1 : 0, |
| 245 | 246 | I.SignVal ? 1 : 0, I.ZeroVal ? 1 : 0, I.CarryVal ? 1 : 0, I.ParityVal ? 1 : 0, I.TF, I.IF, I.DirVal < 0 ? 1 : 0)); |
| 246 | CALL_ | |
| 247 | CALL_ | |
| 247 | 248 | |
| 248 | 249 | seg_prefix = FALSE; |
| 249 | 250 | I.prevpc = I.pc; |
| r1649 | r1650 | |
| 258 | 259 | } |
| 259 | 260 | |
| 260 | 261 | |
| 261 | #ifdef | |
| 262 | #ifdef ENABLE_DEBUGGER | |
| 262 | 263 | static offs_t i8086_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 263 | 264 | { |
| 264 | 265 | return i386_dasm_one(buffer, pc, oprom, 16); |
| 265 | 266 | } |
| 266 | #endif /* | |
| 267 | #endif /* ENABLE_DEBUGGER */ | |
| 267 | 268 | |
| 268 | 269 | |
| 269 | 270 | #if (HAS_I80186 || HAS_I80188) |
| r1649 | r1650 | |
| 298 | 299 | { |
| 299 | 300 | LOG(("[%04x:%04x]=%02x\tAX=%04x\tBX=%04x\tCX=%04x\tDX=%04x\n", I.sregs[CS], I.pc, ReadByte(I.pc), I.regs.w[AX], |
| 300 | 301 | I.regs.w[BX], I.regs.w[CX], I.regs.w[DX])); |
| 301 | CALL_ | |
| 302 | CALL_ | |
| 302 | 303 | |
| 303 | 304 | seg_prefix = FALSE; |
| 304 | 305 | I.prevpc = I.pc; |
| r1649 | r1650 | |
| 435 | 436 | case CPUINFO_PTR_EXIT: info->exit = i8086_exit; break; |
| 436 | 437 | case CPUINFO_PTR_EXECUTE: info->execute = i8086_execute; break; |
| 437 | 438 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 438 | #ifdef | |
| 439 | #ifdef ENABLE_DEBUGGER | |
| 439 | 440 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = i8086_dasm; break; |
| 440 | #endif /* | |
| 441 | #endif /* ENABLE_DEBUGGER */ | |
| 441 | 442 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &i8086_ICount; break; |
| 442 | 443 | |
| 443 | 444 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 3 | 3 | * (initial work based on David Hedley's pcemu) * |
| 4 | 4 | ****************************************************************************/ |
| 5 | 5 | |
| 6 | #include "debugger.h" | |
| 7 | #include "deprecat.h" | |
| 6 | 8 | #include "host.h" |
| 7 | #include "debugger.h" | |
| 8 | 9 | |
| 9 | 10 | |
| 10 | 11 | #define VERBOSE 0 |
| r1649 | r1650 | |
| 223 | 224 | while(i80286_ICount>0) |
| 224 | 225 | { |
| 225 | 226 | LOG(("[%04x:%04x]=%02x\tF:%04x\tAX=%04x\tBX=%04x\tCX=%04x\tDX=%04x %d%d%d%d%d%d%d%d%d\n",I.sregs[CS],I.pc - I.base[CS],ReadByte(I.pc),I.flags,I.regs.w[AX],I.regs.w[BX],I.regs.w[CX],I.regs.w[DX], I.AuxVal?1:0, I.OverVal?1:0, I.SignVal?1:0, I.ZeroVal?1:0, I.CarryVal?1:0, I.ParityVal?1:0,I.TF, I.IF, I.DirVal<0?1:0)); |
| 226 | CALL_ | |
| 227 | CALL_ | |
| 227 | 228 | |
| 228 | 229 | seg_prefix=FALSE; |
| 229 | 230 | I.prevpc = I.pc; |
| r1649 | r1650 | |
| 240 | 241 | |
| 241 | 242 | extern int i386_dasm_one(char *buffer, UINT32 eip, const UINT8 *oprom, int mode); |
| 242 | 243 | |
| 243 | #ifdef | |
| 244 | #ifdef ENABLE_DEBUGGER | |
| 244 | 245 | static offs_t i80286_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 245 | 246 | { |
| 246 | 247 | return i386_dasm_one(buffer, pc, oprom, 16); |
| 247 | 248 | } |
| 248 | #endif /* | |
| 249 | #endif /* ENABLE_DEBUGGER */ | |
| 249 | 250 | |
| 250 | 251 | static void i80286_init(int index, int clock, const void *config, int (*irqcallback)(int)) |
| 251 | 252 | { |
| r1649 | r1650 | |
| 443 | 444 | case CPUINFO_PTR_EXIT: info->exit = NULL; break; |
| 444 | 445 | case CPUINFO_PTR_EXECUTE: info->execute = i80286_execute; break; |
| 445 | 446 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 446 | #ifdef | |
| 447 | #ifdef ENABLE_DEBUGGER | |
| 447 | 448 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = i80286_dasm; break; |
| 448 | #endif /* | |
| 449 | #endif /* ENABLE_DEBUGGER */ | |
| 449 | 450 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &i80286_ICount; break; |
| 450 | 451 | |
| 451 | 452 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 397 | 397 | |
| 398 | 398 | #include "debugger.h" |
| 399 | 399 | #include "upd7810.h" |
| 400 | #include "deprecat.h" | |
| 400 | 401 | |
| 401 | 402 | static UPD7810 upd7810; |
| 402 | 403 | static int upd7810_icount; |
| r1649 | r1650 | |
| 1620 | 1621 | { |
| 1621 | 1622 | int cc = 0; |
| 1622 | 1623 | |
| 1623 | CALL_ | |
| 1624 | CALL_ | |
| 1624 | 1625 | |
| 1625 | 1626 | PPC = PC; |
| 1626 | 1627 | RDOP(OP); |
| r1649 | r1650 | |
| 1918 | 1919 | case CPUINFO_PTR_EXIT: info->exit = upd7810_exit; break; |
| 1919 | 1920 | case CPUINFO_PTR_EXECUTE: info->execute = upd7810_execute; break; |
| 1920 | 1921 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1921 | #ifdef | |
| 1922 | #ifdef ENABLE_DEBUGGER | |
| 1922 | 1923 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = upd7810_dasm; break; |
| 1923 | #endif /* | |
| 1924 | #endif /* ENABLE_DEBUGGER */ | |
| 1924 | 1925 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &upd7810_icount; break; |
| 1925 | 1926 | |
| 1926 | 1927 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
| 2006 | 2007 | { |
| 2007 | 2008 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 2008 | 2009 | case CPUINFO_PTR_RESET: info->reset = upd7807_reset; break; |
| 2009 | #ifdef | |
| 2010 | #ifdef ENABLE_DEBUGGER | |
| 2010 | 2011 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = upd7807_dasm; break; |
| 2011 | #endif /* | |
| 2012 | #endif /* ENABLE_DEBUGGER */ | |
| 2012 | 2013 | |
| 2013 | 2014 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 2014 | 2015 | case CPUINFO_STR_NAME: strcpy(info->s, "uPD7807"); break; |
| r1649 | r1650 | |
|---|---|---|
| 148 | 148 | int (*irq_callback)(int irqline); |
| 149 | 149 | } UPD7810; |
| 150 | 150 | |
| 151 | #ifdef | |
| 151 | #ifdef ENABLE_DEBUGGER | |
| 152 | 152 | offs_t upd7810_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 153 | 153 | offs_t upd7807_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 154 | 154 | #endif |
| r1649 | r1650 | |
|---|---|---|
| 46 | 46 | void (*outc)(int); |
| 47 | 47 | } SC61860_CONFIG; |
| 48 | 48 | |
| 49 | #ifdef | |
| 49 | #ifdef ENABLE_DEBUGGER | |
| 50 | 50 | unsigned sc61860_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 51 | #endif /* | |
| 51 | #endif /* ENABLE_DEBUGGER */ | |
| 52 | 52 | |
| 53 | 53 | /* this is though for power on/off of the sharps */ |
| 54 | 54 | UINT8 *sc61860_internal_ram(void); |
| r1649 | r1650 | |
|---|---|---|
| 27 | 27 | * Extended execute procudure with HLT-mode of CPU. |
| 28 | 28 | *****************************************************************************/ |
| 29 | 29 | |
| 30 | #include "cpuintrf.h" | |
| 31 | 30 | #include "debugger.h" |
| 31 | #include "deprecat.h" | |
| 32 | 32 | |
| 33 | 33 | #include "sc61860.h" |
| 34 | 34 | #include "sc.h" |
| r1649 | r1650 | |
| 117 | 117 | { |
| 118 | 118 | sc61860.oldpc = sc61860.pc; |
| 119 | 119 | |
| 120 | CALL_ | |
| 120 | CALL_ | |
| 121 | 121 | |
| 122 | 122 | sc61860_instruction(); |
| 123 | 123 | |
| r1649 | r1650 | |
| 214 | 214 | case CPUINFO_PTR_RESET: info->reset = sc61860_reset; break; |
| 215 | 215 | case CPUINFO_PTR_EXECUTE: info->execute = sc61860_execute; break; |
| 216 | 216 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 217 | #ifdef | |
| 217 | #ifdef ENABLE_DEBUGGER | |
| 218 | 218 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = sc61860_dasm; break; |
| 219 | #endif /* | |
| 219 | #endif /* ENABLE_DEBUGGER */ | |
| 220 | 220 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &sc61860_ICount; break; |
| 221 | 221 | |
| 222 | 222 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | MINX_XI, MINX_YI, |
| 11 | 11 | }; |
| 12 | 12 | |
| 13 | #ifdef | |
| 13 | #ifdef ENABLE_DEBUGGER | |
| 14 | 14 | extern unsigned minx_dasm( char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram ); |
| 15 | 15 | #endif |
| 16 | 16 |
| r1649 | r1650 | |
|---|---|---|
| 141 | 141 | minx_icount = cycles; |
| 142 | 142 | |
| 143 | 143 | do { |
| 144 | CALL_ | |
| 144 | CALL_ | |
| 145 | 145 | oldpc = minx_PC; |
| 146 | 146 | op = rdop(); |
| 147 | 147 | insnminx[op](); |
| r1649 | r1650 | |
| 279 | 279 | case CPUINFO_PTR_EXIT: info->exit = minx_exit; break; |
| 280 | 280 | case CPUINFO_PTR_EXECUTE: info->execute = minx_execute; break; |
| 281 | 281 | case CPUINFO_PTR_BURN: info->burn = minx_burn; break; |
| 282 | #ifdef | |
| 282 | #ifdef ENABLE_DEBUGGER | |
| 283 | 283 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = minx_dasm; break; |
| 284 | 284 | #endif |
| 285 | 285 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &minx_icount; break; |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | // Portability fixes by Richter Belmont |
| 5 | 5 | |
| 6 | 6 | #include "debugger.h" |
| 7 | #include "deprecat.h" | |
| 7 | 8 | #include "v60.h" |
| 8 | 9 | |
| 9 | 10 | // memory accessors |
| r1649 | r1650 | |
| 425 | 426 | v60_try_irq(); |
| 426 | 427 | while(v60_ICount >= 0) { |
| 427 | 428 | v60.PPC = PC; |
| 428 | CALL_ | |
| 429 | CALL_ | |
| 429 | 430 | v60_ICount -= 8; /* fix me -- this is just an average */ |
| 430 | 431 | inc = OpCodeTable[OpRead8(PC)](); |
| 431 | 432 | PC += inc; |
| r1649 | r1650 | |
| 452 | 453 | } |
| 453 | 454 | |
| 454 | 455 | |
| 455 | #ifdef | |
| 456 | #ifdef ENABLE_DEBUGGER | |
| 456 | 457 | offs_t v60_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 457 | 458 | offs_t v70_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 458 | #endif /* | |
| 459 | #endif /* ENABLE_DEBUGGER */ | |
| 459 | 460 | |
| 460 | 461 | |
| 461 | 462 | /************************************************************************** |
| r1649 | r1650 | |
| 641 | 642 | case CPUINFO_PTR_EXIT: info->exit = v60_exit; break; |
| 642 | 643 | case CPUINFO_PTR_EXECUTE: info->execute = v60_execute; break; |
| 643 | 644 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 644 | #ifdef | |
| 645 | #ifdef ENABLE_DEBUGGER | |
| 645 | 646 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = v60_dasm; break; |
| 646 | #endif /* | |
| 647 | #endif /* ENABLE_DEBUGGER */ | |
| 647 | 648 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &v60_ICount; break; |
| 648 | 649 | |
| 649 | 650 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
| 732 | 733 | |
| 733 | 734 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 734 | 735 | case CPUINFO_PTR_INIT: info->init = v70_init; break; |
| 735 | #ifdef | |
| 736 | #ifdef ENABLE_DEBUGGER | |
| 736 | 737 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = v70_dasm; break; |
| 737 | #endif /* | |
| 738 | #endif /* ENABLE_DEBUGGER */ | |
| 738 | 739 | |
| 739 | 740 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 740 | 741 | case CPUINFO_STR_NAME: strcpy(info->s, "V70"); break; |
| r1649 | r1650 | |
|---|---|---|
| 1460 | 1460 | /* 0xFF */ dopCLRTLB |
| 1461 | 1461 | }; |
| 1462 | 1462 | |
| 1463 | #ifdef | |
| 1463 | #ifdef ENABLE_DEBUGGER | |
| 1464 | 1464 | offs_t v60_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 1465 | 1465 | { |
| 1466 | 1466 | rombase = oprom; |
| r1649 | r1650 | |
|---|---|---|
| 61 | 61 | /* ======================================================================== */ |
| 62 | 62 | |
| 63 | 63 | #include <limits.h> |
| 64 | #include "debugger.h" | |
| 65 | #include "deprecat.h" | |
| 64 | 66 | #include "spc700.h" |
| 65 | #include "debugger.h" | |
| 66 | 67 | |
| 67 | 68 | /* ======================================================================== */ |
| 68 | 69 | /* ==================== ARCHITECTURE-DEPENDANT DEFINES ==================== */ |
| r1649 | r1650 | |
| 1397 | 1398 | } |
| 1398 | 1399 | |
| 1399 | 1400 | |
| 1400 | #ifdef | |
| 1401 | #ifdef ENABLE_DEBUGGER | |
| 1401 | 1402 | #include "spc700ds.h" |
| 1402 | 1403 | #endif |
| 1403 | 1404 | |
| r1649 | r1650 | |
| 1410 | 1411 | while(CLOCKS > 0) |
| 1411 | 1412 | { |
| 1412 | 1413 | REG_PPC = REG_PC; |
| 1413 | CALL_ | |
| 1414 | CALL_ | |
| 1414 | 1415 | REG_PC++; |
| 1415 | 1416 | |
| 1416 | 1417 | #if 0 |
| r1649 | r1650 | |
| 1790 | 1791 | case CPUINFO_PTR_EXIT: info->exit = spc700_exit; break; |
| 1791 | 1792 | case CPUINFO_PTR_EXECUTE: info->execute = spc700_execute; break; |
| 1792 | 1793 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1793 | #ifdef | |
| 1794 | #ifdef ENABLE_DEBUGGER | |
| 1794 | 1795 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = spc700_dasm; break; |
| 1795 | #endif /* | |
| 1796 | #endif /* ENABLE_DEBUGGER */ | |
| 1796 | 1797 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &spc700_ICount; break; |
| 1797 | 1798 | |
| 1798 | 1799 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | dsp56 | |
| 3 | dsp56 | |
| 4 | 4 | Core implementation for the portable Motorola/Freescale DSP56k emulator. |
| 5 | 5 | Written by Andrew Gardner |
| 6 | 6 | |
| r1649 | r1650 | |
| 117 | 117 | { |
| 118 | 118 | unsigned size = 666 ; |
| 119 | 119 | |
| 120 | CALL_ | |
| 120 | CALL_ | |
| 121 | 121 | OP = ROPCODE(PC<<1); |
| 122 | 122 | |
| 123 | 123 | if (BITS(OP,0x8000)) // First, the parallel data move instructions |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | dsp56 | |
| 3 | dsp56 | |
| 4 | 4 | Disassembler for the portable Motorola/Freescale dsp56k emulator. |
| 5 | 5 | Written by Andrew Gardner |
| 6 | 6 |
| r1649 | r1650 | |
|---|---|---|
| 19 | 19 | ***************************************************************************/ |
| 20 | 20 | |
| 21 | 21 | #include "debugger.h" |
| 22 | #include "deprecat.h" | |
| 22 | 23 | #include "dsp56k.h" |
| 23 | 24 | |
| 24 | 25 | // #define PC_E000 |
| r1649 | r1650 | |
| 1233 | 1234 | case CPUINFO_PTR_EXIT: info->exit = dsp56k_exit; break; |
| 1234 | 1235 | case CPUINFO_PTR_EXECUTE: info->execute = dsp56k_execute; break; |
| 1235 | 1236 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1236 | #ifdef | |
| 1237 | #ifdef ENABLE_DEBUGGER | |
| 1237 | 1238 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = dsp56k_dasm; break; |
| 1238 | #endif /* | |
| 1239 | #endif /* ENABLE_DEBUGGER */ | |
| 1239 | 1240 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &dsp56k_icount; break; |
| 1240 | 1241 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: |
| 1241 | 1242 | info->internal_map = construct_map_dsp56156_x_data_memory; break; |
| r1649 | r1650 | |
|---|---|---|
| 216 | 216 | */ |
| 217 | 217 | #define I8039_RDOP_ARG(A) ((unsigned)cpu_readop_arg(A)) |
| 218 | 218 | |
| 219 | #ifdef | |
| 219 | #ifdef ENABLE_DEBUGGER | |
| 220 | 220 | offs_t i8039_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 221 | 221 | #endif |
| 222 | 222 |
| r1649 | r1650 | |
|---|---|---|
| 35 | 35 | |
| 36 | 36 | |
| 37 | 37 | #include "debugger.h" |
| 38 | #include "deprecat.h" | |
| 38 | 39 | #include "i8039.h" |
| 39 | 40 | |
| 40 | 41 | |
| r1649 | r1650 | |
| 747 | 748 | { |
| 748 | 749 | R.PREVPC = R.PC; |
| 749 | 750 | |
| 750 | CALL_ | |
| 751 | CALL_ | |
| 751 | 752 | |
| 752 | 753 | opcode=M_RDOP(R.PC.w.l); |
| 753 | 754 | |
| r1649 | r1650 | |
| 942 | 943 | case CPUINFO_PTR_EXIT: info->exit = i8039_exit; break; |
| 943 | 944 | case CPUINFO_PTR_EXECUTE: info->execute = i8039_execute; break; |
| 944 | 945 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 945 | #ifdef | |
| 946 | #ifdef ENABLE_DEBUGGER | |
| 946 | 947 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = i8039_dasm; break; |
| 947 | #endif /* | |
| 948 | #endif /* ENABLE_DEBUGGER */ | |
| 948 | 949 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &i8039_ICount; break; |
| 949 | 950 | |
| 950 | 951 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 103 | 103 | *****************************************************************************/ |
| 104 | 104 | |
| 105 | 105 | #include "debugger.h" |
| 106 | #include "deprecat.h" | |
| 106 | 107 | #include "hd6309.h" |
| 107 | 108 | |
| 108 | 109 | #define VERBOSE 0 |
| r1649 | r1650 | |
| 117 | 118 | #define false 0 |
| 118 | 119 | #endif |
| 119 | 120 | |
| 120 | #ifdef | |
| 121 | #ifdef ENABLE_DEBUGGER | |
| 121 | 122 | extern offs_t hd6309_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 122 | 123 | #endif |
| 123 | 124 | |
| r1649 | r1650 | |
| 624 | 625 | |
| 625 | 626 | if (hd6309.int_state & (HD6309_CWAI | HD6309_SYNC)) |
| 626 | 627 | { |
| 627 | CALL_ | |
| 628 | CALL_ | |
| 628 | 629 | hd6309_ICount = 0; |
| 629 | 630 | } |
| 630 | 631 | else |
| r1649 | r1650 | |
| 633 | 634 | { |
| 634 | 635 | pPPC = pPC; |
| 635 | 636 | |
| 636 | CALL_ | |
| 637 | CALL_ | |
| 637 | 638 | |
| 638 | 639 | hd6309.ireg = ROP(PCD); |
| 639 | 640 | PC++; |
| r1649 | r1650 | |
| 1291 | 1292 | case CPUINFO_PTR_EXIT: info->exit = hd6309_exit; break; |
| 1292 | 1293 | case CPUINFO_PTR_EXECUTE: info->execute = hd6309_execute; break; |
| 1293 | 1294 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1294 | #ifdef | |
| 1295 | #ifdef ENABLE_DEBUGGER | |
| 1295 | 1296 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = hd6309_dasm; break; |
| 1296 | #endif /* | |
| 1297 | #endif /* ENABLE_DEBUGGER */ | |
| 1297 | 1298 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &hd6309_ICount; break; |
| 1298 | 1299 | |
| 1299 | 1300 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | *************************************************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "debugger.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "tlcs90.h" |
| 11 | 12 | |
| 12 | 13 | typedef struct |
| r1649 | r1650 | |
| 1329 | 1330 | do |
| 1330 | 1331 | { |
| 1331 | 1332 | T90.prvpc.d = T90.pc.d; |
| 1332 | CALL_ | |
| 1333 | CALL_ | |
| 1333 | 1334 | |
| 1334 | 1335 | check_interrupts(); |
| 1335 | 1336 | |
| r1649 | r1650 | |
| 2783 | 2784 | case CPUINFO_PTR_EXIT: info->exit = t90_exit; break; |
| 2784 | 2785 | case CPUINFO_PTR_EXECUTE: info->execute = t90_execute; break; |
| 2785 | 2786 | case CPUINFO_PTR_BURN: info->burn = t90_burn; break; |
| 2786 | #ifdef | |
| 2787 | #ifdef ENABLE_DEBUGGER | |
| 2787 | 2788 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = t90_dasm; break; |
| 2788 | 2789 | #endif |
| 2789 | 2790 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &t90_ICount; break; |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | void tmp91640_get_info(UINT32, cpuinfo*); |
| 9 | 9 | void tmp91641_get_info(UINT32, cpuinfo*); |
| 10 | 10 | |
| 11 | #ifdef | |
| 11 | #ifdef ENABLE_DEBUGGER | |
| 12 | 12 | unsigned t90_dasm(char *buffer, UINT32 oldpc, const UINT8 *oprom, const UINT8 *opram); |
| 13 | 13 | #endif |
| 14 | 14 |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | *************************************************************************/ |
| 14 | 14 | |
| 15 | 15 | #include "debugger.h" |
| 16 | #include "deprecat.h" | |
| 16 | 17 | #include "s2650.h" |
| 17 | 18 | #include "s2650cpu.h" |
| 18 | 19 | |
| r1649 | r1650 | |
| 864 | 865 | { |
| 865 | 866 | S.ppc = S.page + S.iar; |
| 866 | 867 | |
| 867 | CALL_ | |
| 868 | CALL_ | |
| 868 | 869 | |
| 869 | 870 | S.ir = ROP(); |
| 870 | 871 | S.r = S.ir & 3; /* register / value */ |
| r1649 | r1650 | |
| 1568 | 1569 | case CPUINFO_PTR_EXIT: info->exit = s2650_exit; break; |
| 1569 | 1570 | case CPUINFO_PTR_EXECUTE: info->execute = s2650_execute; break; |
| 1570 | 1571 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1571 | #ifdef | |
| 1572 | #ifdef ENABLE_DEBUGGER | |
| 1572 | 1573 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = s2650_dasm; break; |
| 1573 | #endif /* | |
| 1574 | #endif /* ENABLE_DEBUGGER */ | |
| 1574 | 1575 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &s2650_ICount; break; |
| 1575 | 1576 | |
| 1576 | 1577 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 23 | 23 | |
| 24 | 24 | extern void s2650_get_info(UINT32 state, cpuinfo *info); |
| 25 | 25 | |
| 26 | #ifdef | |
| 26 | #ifdef ENABLE_DEBUGGER | |
| 27 | 27 | extern offs_t s2650_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 28 | 28 | #endif |
| 29 | 29 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "state.h" | |
| 3 | 2 | #include "debugger.h" |
| 3 | #include "deprecat.h" | |
| 4 | 4 | #include "cdp1802.h" |
| 5 | 5 | |
| 6 | 6 | typedef struct |
| r1649 | r1650 | |
| 211 | 211 | |
| 212 | 212 | cdp1802_ICount -= CDP1802_CYCLES_RESET; |
| 213 | 213 | |
| 214 | CALL_ | |
| 214 | CALL_ | |
| 215 | 215 | |
| 216 | 216 | break; |
| 217 | 217 | |
| r1649 | r1650 | |
| 236 | 236 | cdp1802.state = CDP1802_STATE_0_FETCH; |
| 237 | 237 | } |
| 238 | 238 | |
| 239 | CALL_ | |
| 239 | CALL_ | |
| 240 | 240 | |
| 241 | 241 | break; |
| 242 | 242 | |
| r1649 | r1650 | |
| 713 | 713 | cdp1802.state = CDP1802_STATE_0_FETCH; |
| 714 | 714 | } |
| 715 | 715 | |
| 716 | CALL_ | |
| 716 | CALL_ | |
| 717 | 717 | |
| 718 | 718 | break; |
| 719 | 719 | |
| r1649 | r1650 | |
| 801 | 801 | cdp1802.state = CDP1802_STATE_0_FETCH; |
| 802 | 802 | } |
| 803 | 803 | |
| 804 | CALL_ | |
| 804 | CALL_ | |
| 805 | 805 | |
| 806 | 806 | break; |
| 807 | 807 | } |
| r1649 | r1650 | |
| 1002 | 1002 | case CPUINFO_PTR_RESET: info->reset = cdp1802_reset; break; |
| 1003 | 1003 | case CPUINFO_PTR_EXECUTE: info->execute = cdp1802_execute; break; |
| 1004 | 1004 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1005 | #ifdef | |
| 1005 | #ifdef ENABLE_DEBUGGER | |
| 1006 | 1006 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = cdp1802_dasm; break; |
| 1007 | #endif /* | |
| 1007 | #endif /* ENABLE_DEBUGGER */ | |
| 1008 | 1008 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &cdp1802_ICount; break; |
| 1009 | 1009 | |
| 1010 | 1010 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 83 | 83 | |
| 84 | 84 | void cdp1802_get_info(UINT32 state, cpuinfo *info); |
| 85 | 85 | |
| 86 | #ifdef | |
| 86 | #ifdef ENABLE_DEBUGGER | |
| 87 | 87 | offs_t cdp1802_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 88 | 88 | #endif |
| 89 | 89 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "debugger.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "se3208.h" |
| 3 | 4 | |
| 4 | 5 | /* |
| r1649 | r1650 | |
| 1769 | 1770 | { |
| 1770 | 1771 | UINT16 Opcode=cpu_readop16(WORD_XOR_LE(Context.PC)); |
| 1771 | 1772 | |
| 1772 | CALL_ | |
| 1773 | CALL_ | |
| 1773 | 1774 | |
| 1774 | 1775 | OpTable[Opcode](Opcode); |
| 1775 | 1776 | Context.PPC=Context.PC; |
| r1649 | r1650 | |
| 1906 | 1907 | case CPUINFO_PTR_EXIT: info->exit = SE3208_Exit; break; |
| 1907 | 1908 | case CPUINFO_PTR_EXECUTE: info->execute = SE3208_Run; break; |
| 1908 | 1909 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1909 | #ifdef | |
| 1910 | #ifdef ENABLE_DEBUGGER | |
| 1910 | 1911 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = SE3208_Dasm; break; |
| 1911 | #endif /* | |
| 1912 | #endif /* ENABLE_DEBUGGER */ | |
| 1912 | 1913 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &SE3208_ICount; break; |
| 1913 | 1914 | |
| 1914 | 1915 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | extern void SE3208_get_info(UINT32 state, cpuinfo *info); |
| 11 | 11 | |
| 12 | #ifdef | |
| 12 | #ifdef ENABLE_DEBUGGER | |
| 13 | 13 | offs_t SE3208_Dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 14 | 14 | #endif |
| r1649 | r1650 | |
|---|---|---|
| 212 | 212 | *********************************************************************/ |
| 213 | 213 | |
| 214 | 214 | #include "debugger.h" |
| 215 | #include "deprecat.h" | |
| 215 | 216 | #include "eminline.h" |
| 216 | 217 | #include "e132xs.h" |
| 217 | 218 | #include "osd_cpu.h" |
| r1649 | r1650 | |
| 602 | 603 | |
| 603 | 604 | static UINT32 compute_tr(void) |
| 604 | 605 | { |
| 605 | UINT64 cycles_since_base = activecpu_gettotalcycles | |
| 606 | UINT64 cycles_since_base = activecpu_gettotalcycles | |
| 606 | 607 | UINT64 clocks_since_base = cycles_since_base >> hyperstone.clock_scale; |
| 607 | 608 | return hyperstone.tr_base_value + (clocks_since_base / hyperstone.tr_clocks_per_tick); |
| 608 | 609 | } |
| r1649 | r1650 | |
| 618 | 619 | hyperstone.clock_cycles_6 = 6 << hyperstone.clock_scale; |
| 619 | 620 | hyperstone.tr_clocks_per_tick = ((TPR >> 16) & 0xff) + 2; |
| 620 | 621 | hyperstone.tr_base_value = prevtr; |
| 621 | hyperstone.tr_base_cycles = activecpu_gettotalcycles | |
| 622 | hyperstone.tr_base_cycles = activecpu_gettotalcycles | |
| 622 | 623 | } |
| 623 | 624 | |
| 624 | 625 | static void adjust_timer_interrupt(void) |
| 625 | 626 | { |
| 626 | UINT64 cycles_since_base = activecpu_gettotalcycles | |
| 627 | UINT64 cycles_since_base = activecpu_gettotalcycles | |
| 627 | 628 | UINT64 clocks_since_base = cycles_since_base >> hyperstone.clock_scale; |
| 628 | 629 | UINT64 cycles_until_next_clock = cycles_since_base - (clocks_since_base << hyperstone.clock_scale); |
| 629 | 630 | int cpunum = cpu_getactivecpu(); |
| r1649 | r1650 | |
| 798 | 799 | */ |
| 799 | 800 | case TR_REGISTER: |
| 800 | 801 | hyperstone.tr_base_value = val; |
| 801 | hyperstone.tr_base_cycles = activecpu_gettotalcycles | |
| 802 | hyperstone.tr_base_cycles = activecpu_gettotalcycles | |
| 802 | 803 | adjust_timer_interrupt(); |
| 803 | 804 | break; |
| 804 | 805 | |
| r1649 | r1650 | |
| 1746 | 1747 | hyperstone = *(hyperstone_regs *)regs; |
| 1747 | 1748 | } |
| 1748 | 1749 | |
| 1749 | #ifdef | |
| 1750 | #ifdef ENABLE_DEBUGGER | |
| 1750 | 1751 | static offs_t hyperstone_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 1751 | 1752 | { |
| 1752 | 1753 | return dasm_hyperstone( buffer, pc, oprom, GET_H, GET_FP ); |
| 1753 | 1754 | } |
| 1754 | #endif /* | |
| 1755 | #endif /* ENABLE_DEBUGGER */ | |
| 1755 | 1756 | |
| 1756 | 1757 | /* Opcodes */ |
| 1757 | 1758 | |
| r1649 | r1650 | |
| 4734 | 4735 | UINT16 opcode; |
| 4735 | 4736 | |
| 4736 | 4737 | PPC = PC; /* copy PC to previous PC */ |
| 4737 | CALL_ | |
| 4738 | CALL_ | |
| 4738 | 4739 | |
| 4739 | 4740 | opcode = READ_OP(PC); |
| 4740 | 4741 | PC += 2; |
| r1649 | r1650 | |
| 5056 | 5057 | case CPUINFO_PTR_EXIT: info->exit = hyperstone_exit; break; |
| 5057 | 5058 | case CPUINFO_PTR_EXECUTE: info->execute = hyperstone_execute; break; |
| 5058 | 5059 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 5059 | #ifdef | |
| 5060 | #ifdef ENABLE_DEBUGGER | |
| 5060 | 5061 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = hyperstone_dasm; break; |
| 5061 | #endif /* | |
| 5062 | #endif /* ENABLE_DEBUGGER */ | |
| 5062 | 5063 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &hyperstone_ICount; break; |
| 5063 | 5064 | |
| 5064 | 5065 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: info->internal_map = 0; break; |
| r1649 | r1650 | |
|---|---|---|
| 77 | 77 | void gms30c2232_get_info(UINT32 state, cpuinfo *info); |
| 78 | 78 | #endif |
| 79 | 79 | |
| 80 | #ifdef | |
| 80 | #ifdef ENABLE_DEBUGGER | |
| 81 | 81 | extern unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned h_flag, int private_fp); |
| 82 | 82 | #endif |
| 83 | 83 |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | |
| 11 | 11 | #define INPUT_LINE_A20 1 |
| 12 | 12 | |
| 13 | #ifdef | |
| 13 | #ifdef ENABLE_DEBUGGER | |
| 14 | 14 | extern int i386_dasm_one(char *buffer, UINT32 pc, const UINT8 *oprom, int mode); |
| 15 | 15 | #endif |
| 16 | 16 |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | 13 | #include "debugger.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "i386.h" |
| 15 | 16 | #include "i386intf.h" |
| 16 | 17 | |
| 17 | #ifdef | |
| 18 | #ifdef ENABLE_DEBUGGER | |
| 18 | 19 | #include "debug/debugcpu.h" |
| 19 | 20 | #endif |
| 20 | 21 | |
| r1649 | r1650 | |
| 442 | 443 | |
| 443 | 444 | /*************************************************************************/ |
| 444 | 445 | |
| 445 | #ifdef | |
| 446 | #ifdef ENABLE_DEBUGGER | |
| 446 | 447 | |
| 447 | 448 | static UINT64 i386_debug_segbase(UINT32 ref, UINT32 params, UINT64 *param) |
| 448 | 449 | { |
| r1649 | r1650 | |
| 484 | 485 | symtable_add_function(global_symtable, "seglimit", 0, 1, 1, i386_debug_seglimit); |
| 485 | 486 | } |
| 486 | 487 | |
| 487 | #endif /* defined( | |
| 488 | #endif /* defined(ENABLE_DEBUGGER) */ | |
| 488 | 489 | |
| 489 | 490 | /*************************************************************************/ |
| 490 | 491 | |
| r1649 | r1650 | |
| 716 | 717 | I.segment_prefix = 0; |
| 717 | 718 | I.prev_eip = I.eip; |
| 718 | 719 | |
| 719 | CALL_ | |
| 720 | CALL_ | |
| 720 | 721 | |
| 721 | 722 | i386_check_irq_line(); |
| 722 | 723 | I386OP(decode_opcode)(); |
| r1649 | r1650 | |
| 740 | 741 | return result; |
| 741 | 742 | } |
| 742 | 743 | |
| 743 | #ifdef | |
| 744 | #ifdef ENABLE_DEBUGGER | |
| 744 | 745 | static offs_t i386_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 745 | 746 | { |
| 746 | 747 | return i386_dasm_one(buffer, pc, oprom, I.sreg[CS].d ? 32 : 16); |
| 747 | 748 | } |
| 748 | #endif /* | |
| 749 | #endif /* ENABLE_DEBUGGER */ | |
| 749 | 750 | |
| 750 | 751 | static void i386_set_info(UINT32 state, cpuinfo *info) |
| 751 | 752 | { |
| r1649 | r1650 | |
| 968 | 969 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 969 | 970 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &I.cycles; break; |
| 970 | 971 | case CPUINFO_PTR_TRANSLATE: info->translate = translate_address_cb; break; |
| 971 | #ifdef | |
| 972 | #ifdef ENABLE_DEBUGGER | |
| 972 | 973 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = i386_dasm; break; |
| 973 | 974 | case CPUINFO_PTR_DEBUG_SETUP_COMMANDS: info->setup_commands = i386_debug_setup; break; |
| 974 | 975 | #endif |
| r1649 | r1650 | |
|---|---|---|
| 3 | 3 | |
| 4 | 4 | #include "cpuintrf.h" |
| 5 | 5 | |
| 6 | #ifdef | |
| 6 | #ifdef ENABLE_DEBUGGER | |
| 7 | 7 | offs_t hc11_disasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 8 | 8 | #endif |
| 9 | 9 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | 7 | #include "debugger.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "mc68hc11.h" |
| 9 | 10 | |
| 10 | 11 | enum { |
| r1649 | r1650 | |
| 388 | 389 | UINT8 op; |
| 389 | 390 | |
| 390 | 391 | hc11.ppc = hc11.pc; |
| 391 | CALL_ | |
| 392 | CALL_ | |
| 392 | 393 | |
| 393 | 394 | op = FETCH(); |
| 394 | 395 | hc11_optable[op](); |
| r1649 | r1650 | |
| 461 | 462 | case CPUINFO_PTR_EXIT: info->exit = hc11_exit; break; |
| 462 | 463 | case CPUINFO_PTR_EXECUTE: info->execute = hc11_execute; break; |
| 463 | 464 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 464 | #ifdef | |
| 465 | #ifdef ENABLE_DEBUGGER | |
| 465 | 466 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = hc11_disasm; break; |
| 466 | #endif /* | |
| 467 | #endif /* ENABLE_DEBUGGER */ | |
| 467 | 468 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &hc11.icount; break; |
| 468 | 469 | |
| 469 | 470 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 96 | 96 | ***************************************************************************/ |
| 97 | 97 | |
| 98 | 98 | #include "debugger.h" |
| 99 | #include "deprecat.h" | |
| 99 | 100 | #include "adsp2100.h" |
| 100 | 101 | |
| 101 | 102 | |
| r1649 | r1650 | |
| 950 | 951 | |
| 951 | 952 | /* debugging */ |
| 952 | 953 | adsp2100.ppc = adsp2100.pc; /* copy PC to previous PC */ |
| 953 | CALL_ | |
| 954 | CALL_ | |
| 954 | 955 | |
| 955 | 956 | #if TRACK_HOTSPOTS |
| 956 | 957 | pcbucket[adsp2100.pc & 0x3fff]++; |
| r1649 | r1650 | |
| 1690 | 1691 | DEBUGGER DEFINITIONS |
| 1691 | 1692 | ***************************************************************************/ |
| 1692 | 1693 | |
| 1693 | #ifdef | |
| 1694 | #ifdef ENABLE_DEBUGGER | |
| 1694 | 1695 | extern offs_t adsp2100_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 1695 | #endif /* | |
| 1696 | #endif /* ENABLE_DEBUGGER */ | |
| 1696 | 1697 | |
| 1697 | 1698 | |
| 1698 | 1699 | |
| r1649 | r1650 | |
| 1947 | 1948 | case CPUINFO_PTR_EXIT: info->exit = adsp2100_exit; break; |
| 1948 | 1949 | case CPUINFO_PTR_EXECUTE: info->execute = adsp2100_execute; break; |
| 1949 | 1950 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1950 | #ifdef | |
| 1951 | #ifdef ENABLE_DEBUGGER | |
| 1951 | 1952 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = adsp2100_dasm; break; |
| 1952 | #endif /* | |
| 1953 | #endif /* ENABLE_DEBUGGER */ | |
| 1953 | 1954 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &adsp2100_icount; break; |
| 1954 | 1955 | |
| 1955 | 1956 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 27 | 27 | |
| 28 | 28 | ***************************************************************************/ |
| 29 | 29 | |
| 30 | #include <math.h> | |
| 31 | 30 | #include "debugger.h" |
| 31 | #include "deprecat.h" | |
| 32 | 32 | #include "dsp32.h" |
| 33 | 33 | |
| 34 | 34 | |
| r1649 | r1650 | |
| 435 | 435 | DISASSEMBLY HOOK |
| 436 | 436 | ***************************************************************************/ |
| 437 | 437 | |
| 438 | #ifdef | |
| 438 | #ifdef ENABLE_DEBUGGER | |
| 439 | 439 | static offs_t dsp32c_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 440 | 440 | { |
| 441 | 441 | extern unsigned dasm_dsp32(char *, unsigned, UINT32); |
| 442 | 442 | return dasm_dsp32(buffer, pc, oprom[0] | (oprom[1] << 8) | (oprom[2] << 16) | (oprom[3] << 24)); |
| 443 | 443 | } |
| 444 | #endif /* | |
| 444 | #endif /* ENABLE_DEBUGGER */ | |
| 445 | 445 | |
| 446 | 446 | |
| 447 | 447 | |
| r1649 | r1650 | |
| 873 | 873 | case CPUINFO_PTR_EXIT: info->exit = dsp32c_exit; break; |
| 874 | 874 | case CPUINFO_PTR_EXECUTE: info->execute = dsp32c_execute; break; |
| 875 | 875 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 876 | #ifdef | |
| 876 | #ifdef ENABLE_DEBUGGER | |
| 877 | 877 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = dsp32c_dasm; break; |
| 878 | #endif /* | |
| 878 | #endif /* ENABLE_DEBUGGER */ | |
| 879 | 879 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &dsp32_icount; break; |
| 880 | 880 | |
| 881 | 881 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 130 | 130 | INLINE void execute_one(void) |
| 131 | 131 | { |
| 132 | 132 | PROCESS_DEFERRED_MEMORY(); |
| 133 | CALL_ | |
| 133 | CALL_ | |
| 134 | 134 | OP = ROPCODE(dsp32.PC); |
| 135 | 135 | dsp32_icount -= 4; /* 4 clocks per cycle */ |
| 136 | 136 | dsp32.PC += 4; |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | ***************************************************************************/ |
| 11 | 11 | |
| 12 | #include "cpuintrf.h" | |
| 12 | #include "debugger.h" | |
| 13 | #include "deprecat.h" | |
| 13 | 14 | #include "x86drc.h" |
| 14 | #include "debugger.h" | |
| 15 | 15 | |
| 16 | 16 | #define LOG_DISPATCHES 0 |
| 17 | 17 | #define BREAK_ON_MODIFIED_CODE 0 |
| r1649 | r1650 | |
| 391 | 391 | |
| 392 | 392 | void drc_append_call_debugger(drc_core *drc) |
| 393 | 393 | { |
| 394 | #ifdef | |
| 394 | #ifdef ENABLE_DEBUGGER | |
| 395 | 395 | if (Machine->debug_mode) |
| 396 | 396 | { |
| 397 | 397 | emit_link link; |
| r1649 | r1650 | |
| 615 | 615 | |
| 616 | 616 | while(begin_ptr < end_ptr) |
| 617 | 617 | { |
| 618 | #if defined( | |
| 618 | #if defined(ENABLE_DEBUGGER) && HAS_I386 | |
| 619 | 619 | length = i386_dasm_one(buffer, pc, (UINT8 *) begin_ptr, 32) & DASMFLAG_LENGTHMASK; |
| 620 | 620 | #else |
| 621 | 621 | sprintf(buffer, "%02X", *begin_ptr); |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | 7 | #include "cpuintrf.h" |
| 8 | #include "debugger.h" | |
| 9 | #include "deprecat.h" | |
| 8 | 10 | #include "rsp.h" |
| 9 | #include "debugger.h" | |
| 10 | #include <math.h> // sqrt | |
| 11 | 11 | |
| 12 | 12 | #define LOG_INSTRUCTION_EXECUTION 0 |
| 13 | 13 | #define SAVE_DISASM 0 |
| r1649 | r1650 | |
| 262 | 262 | |
| 263 | 263 | static void unimplemented_opcode(UINT32 op) |
| 264 | 264 | { |
| 265 | #ifdef | |
| 265 | #ifdef ENABLE_DEBUGGER | |
| 266 | 266 | char string[200]; |
| 267 | 267 | rsp_dasm_one(string, rsp.ppc, op); |
| 268 | 268 | mame_printf_debug("%08X: %s\n", rsp.ppc, string); |
| r1649 | r1650 | |
| 2596 | 2596 | while (rsp_icount > 0) |
| 2597 | 2597 | { |
| 2598 | 2598 | rsp.ppc = rsp.pc; |
| 2599 | CALL_ | |
| 2599 | CALL_ | |
| 2600 | 2600 | |
| 2601 | 2601 | op = ROPCODE(rsp.pc); |
| 2602 | 2602 | if (rsp.nextpc != ~0) |
| r1649 | r1650 | |
| 2875 | 2875 | |
| 2876 | 2876 | /*****************************************************************************/ |
| 2877 | 2877 | |
| 2878 | #ifdef | |
| 2878 | #ifdef ENABLE_DEBUGGER | |
| 2879 | 2879 | static offs_t rsp_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 2880 | 2880 | { |
| 2881 | 2881 | UINT32 op = LITTLE_ENDIANIZE_INT32(*(UINT32 *)opram); |
| 2882 | 2882 | return rsp_dasm_one(buffer, pc, op); |
| 2883 | 2883 | } |
| 2884 | #endif /* | |
| 2884 | #endif /* ENABLE_DEBUGGER */ | |
| 2885 | 2885 | |
| 2886 | 2886 | /*****************************************************************************/ |
| 2887 | 2887 | |
| r1649 | r1650 | |
| 3010 | 3010 | case CPUINFO_PTR_EXIT: info->exit = rsp_exit; break; |
| 3011 | 3011 | case CPUINFO_PTR_EXECUTE: info->execute = rsp_execute; break; |
| 3012 | 3012 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 3013 | #ifdef | |
| 3013 | #ifdef ENABLE_DEBUGGER | |
| 3014 | 3014 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = rsp_dasm; break; |
| 3015 | #endif /* | |
| 3015 | #endif /* ENABLE_DEBUGGER */ | |
| 3016 | 3016 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &rsp_icount; break; |
| 3017 | 3017 | |
| 3018 | 3018 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 69 | 69 | |
| 70 | 70 | void rsp_get_info(UINT32 state, cpuinfo *info); |
| 71 | 71 | |
| 72 | #ifdef | |
| 72 | #ifdef ENABLE_DEBUGGER | |
| 73 | 73 | extern offs_t rsp_dasm_one(char *buffer, offs_t pc, UINT32 op); |
| 74 | 74 | #endif |
| 75 | 75 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | | |
| 3 | c | |
| 4 | 4 | |
| 5 | 5 | National Semiconductor COP410 Emulator. |
| 6 | 6 | |
| r1649 | r1650 | |
| 19 | 19 | |
| 20 | 20 | #include "cpuintrf.h" |
| 21 | 21 | #include "debugger.h" |
| 22 | #include "deprecat.h" | |
| 22 | 23 | #include "cop400.h" |
| 23 | 24 | |
| 24 | 25 | /* The opcode table now is a combination of cycle counts and function pointers */ |
| r1649 | r1650 | |
| 214 | 215 | { |
| 215 | 216 | prevPC = PC; |
| 216 | 217 | |
| 217 | CALL_ | |
| 218 | CALL_ | |
| 218 | 219 | |
| 219 | 220 | opcode = ROM(PC); |
| 220 | 221 | |
| r1649 | r1650 | |
| 350 | 351 | case CPUINFO_PTR_RESET: info->reset = cop410_reset; break; |
| 351 | 352 | case CPUINFO_PTR_EXECUTE: info->execute = cop410_execute; break; |
| 352 | 353 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 353 | #ifdef | |
| 354 | #ifdef ENABLE_DEBUGGER | |
| 354 | 355 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = cop410_dasm; break; |
| 355 | #endif /* | |
| 356 | #endif /* ENABLE_DEBUGGER */ | |
| 356 | 357 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &cop410_ICount; break; |
| 357 | 358 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: |
| 358 | 359 | info->internal_map = construct_map_cop410_RAM; break; |
| r1649 | r1650 | |
|---|---|---|
| 20 | 20 | |
| 21 | 21 | #include "cpuintrf.h" |
| 22 | 22 | #include "debugger.h" |
| 23 | #include "deprecat.h" | |
| 23 | 24 | #include "cop400.h" |
| 24 | 25 | |
| 25 | 26 | /* The opcode table now is a combination of cycle counts and function pointers */ |
| r1649 | r1650 | |
| 222 | 223 | { |
| 223 | 224 | prevPC = PC; |
| 224 | 225 | |
| 225 | CALL_ | |
| 226 | CALL_ | |
| 226 | 227 | |
| 227 | 228 | opcode = ROM(PC); |
| 228 | 229 | |
| r1649 | r1650 | |
| 379 | 380 | case CPUINFO_PTR_RESET: info->reset = cop420_reset; break; |
| 380 | 381 | case CPUINFO_PTR_EXECUTE: info->execute = cop420_execute; break; |
| 381 | 382 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 382 | #ifdef | |
| 383 | #ifdef ENABLE_DEBUGGER | |
| 383 | 384 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = cop420_dasm; break; |
| 384 | #endif /* | |
| 385 | #endif /* ENABLE_DEBUGGER */ | |
| 385 | 386 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &cop420_ICount; break; |
| 386 | 387 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: |
| 387 | 388 | info->internal_map = construct_map_cop420_RAM; break; |
| r1649 | r1650 | |
|---|---|---|
| 42 | 42 | extern void cop411_get_info(UINT32 state, cpuinfo *info); |
| 43 | 43 | extern void cop420_get_info(UINT32 state, cpuinfo *info); |
| 44 | 44 | |
| 45 | #ifdef | |
| 45 | #ifdef ENABLE_DEBUGGER | |
| 46 | 46 | offs_t cop410_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 47 | 47 | offs_t cop420_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 48 | #endif /* | |
| 48 | #endif /* ENABLE_DEBUGGER */ | |
| 49 | 49 | |
| 50 | 50 | #endif /* _COP400_H */ |
| r1649 | r1650 | |
|---|---|---|
| 101 | 101 | */ |
| 102 | 102 | |
| 103 | 103 | #include "debugger.h" |
| 104 | #include "deprecat.h" | |
| 104 | 105 | #include "m6502.h" |
| 105 | 106 | #include "m4510.h" |
| 106 | 107 | |
| r1649 | r1650 | |
| 260 | 261 | UINT8 op; |
| 261 | 262 | PPC = PCD; |
| 262 | 263 | |
| 263 | CALL_ | |
| 264 | CALL_ | |
| 264 | 265 | |
| 265 | 266 | /* if an irq is pending, take it now */ |
| 266 | 267 | if( m4510.pending_irq ) |
| r1649 | r1650 | |
| 490 | 491 | case CPUINFO_PTR_EXIT: info->exit = m4510_exit; break; |
| 491 | 492 | case CPUINFO_PTR_EXECUTE: info->execute = m4510_execute; break; |
| 492 | 493 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 493 | #ifdef | |
| 494 | #ifdef ENABLE_DEBUGGER | |
| 494 | 495 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = m4510_dasm; break; |
| 495 | 496 | #endif |
| 496 | 497 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &m4510_ICount; break; |
| r1649 | r1650 | |
|---|---|---|
| 30 | 30 | #endif |
| 31 | 31 | |
| 32 | 32 | #include "debugger.h" |
| 33 | #include "deprecat.h" | |
| 33 | 34 | #include "m6502.h" |
| 34 | 35 | #include "ops02.h" |
| 35 | 36 | #include "ill02.h" |
| r1649 | r1650 | |
| 226 | 227 | UINT8 op; |
| 227 | 228 | PPC = PCD; |
| 228 | 229 | |
| 229 | CALL_ | |
| 230 | CALL_ | |
| 230 | 231 | |
| 231 | 232 | /* if an irq is pending, take it now */ |
| 232 | 233 | if( m6502.pending_irq ) |
| r1649 | r1650 | |
| 445 | 446 | UINT8 op; |
| 446 | 447 | PPC = PCD; |
| 447 | 448 | |
| 448 | CALL_ | |
| 449 | CALL_ | |
| 449 | 450 | |
| 450 | 451 | op = RDOP(); |
| 451 | 452 | (*m6502.insn[op])(); |
| r1649 | r1650 | |
| 616 | 617 | UINT8 op; |
| 617 | 618 | PPC = PCD; |
| 618 | 619 | |
| 619 | CALL_ | |
| 620 | CALL_ | |
| 620 | 621 | |
| 621 | 622 | op = RDOP(); |
| 622 | 623 | (*m6502.insn[op])(); |
| r1649 | r1650 | |
| 743 | 744 | case CPUINFO_PTR_EXIT: info->exit = m6502_exit; break; |
| 744 | 745 | case CPUINFO_PTR_EXECUTE: info->execute = m6502_execute; break; |
| 745 | 746 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 746 | #ifdef | |
| 747 | #ifdef ENABLE_DEBUGGER | |
| 747 | 748 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = m6502_dasm; break; |
| 748 | 749 | #endif |
| 749 | 750 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &m6502_ICount; break; |
| r1649 | r1650 | |
| 827 | 828 | case CPUINFO_PTR_SET_INFO: info->setinfo = m6510_set_info; break; |
| 828 | 829 | case CPUINFO_PTR_INIT: info->init = m6510_init; break; |
| 829 | 830 | case CPUINFO_PTR_RESET: info->reset = m6510_reset; break; |
| 830 | #ifdef | |
| 831 | #ifdef ENABLE_DEBUGGER | |
| 831 | 832 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = m6510_dasm; break; |
| 832 | 833 | #endif |
| 833 | 834 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP: info->internal_map = construct_map_m6510_mem; break; |
| r1649 | r1650 | |
| 925 | 926 | case CPUINFO_PTR_INIT: info->init = m65c02_init; break; |
| 926 | 927 | case CPUINFO_PTR_RESET: info->reset = m65c02_reset; break; |
| 927 | 928 | case CPUINFO_PTR_EXECUTE: info->execute = m65c02_execute; break; |
| 928 | #ifdef | |
| 929 | #ifdef ENABLE_DEBUGGER | |
| 929 | 930 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = m65c02_dasm; break; |
| 930 | 931 | #endif |
| 931 | 932 | |
| r1649 | r1650 | |
| 949 | 950 | { |
| 950 | 951 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 951 | 952 | case CPUINFO_PTR_INIT: info->init = m65sc02_init; break; |
| 952 | #ifdef | |
| 953 | #ifdef ENABLE_DEBUGGER | |
| 953 | 954 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = m65sc02_dasm; break; |
| 954 | 955 | #endif |
| 955 | 956 | |
| r1649 | r1650 | |
| 997 | 998 | case CPUINFO_PTR_INIT: info->init = deco16_init; break; |
| 998 | 999 | case CPUINFO_PTR_RESET: info->reset = deco16_reset; break; |
| 999 | 1000 | case CPUINFO_PTR_EXECUTE: info->execute = deco16_execute; break; |
| 1000 | #ifdef | |
| 1001 | #ifdef ENABLE_DEBUGGER | |
| 1001 | 1002 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = deco16_dasm; break; |
| 1002 | 1003 | #endif |
| 1003 | 1004 |
| r1649 | r1650 | |
|---|---|---|
| 39 | 39 | void m4510_get_info(UINT32 state, cpuinfo *info); |
| 40 | 40 | |
| 41 | 41 | |
| 42 | #ifdef | |
| 42 | #ifdef ENABLE_DEBUGGER | |
| 43 | 43 | extern unsigned m4510_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 44 | #endif /* | |
| 44 | #endif /* ENABLE_DEBUGGER */ | |
| 45 | 45 | |
| 46 | 46 | #endif |
| 47 | 47 |
| r1649 | r1650 | |
|---|---|---|
| 71 | 71 | |
| 72 | 72 | extern void m6502_get_info(UINT32 state, cpuinfo *info); |
| 73 | 73 | |
| 74 | #ifdef | |
| 74 | #ifdef ENABLE_DEBUGGER | |
| 75 | 75 | extern unsigned m6502_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 76 | 76 | #endif |
| 77 | 77 | |
| r1649 | r1650 | |
| 94 | 94 | |
| 95 | 95 | extern void m6510_get_info(UINT32 state, cpuinfo *info); |
| 96 | 96 | |
| 97 | #ifdef | |
| 97 | #ifdef ENABLE_DEBUGGER | |
| 98 | 98 | extern unsigned m6510_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 99 | 99 | #endif |
| 100 | 100 | |
| r1649 | r1650 | |
| 201 | 201 | |
| 202 | 202 | extern void m65c02_get_info(UINT32 state, cpuinfo *info); |
| 203 | 203 | |
| 204 | #ifdef | |
| 204 | #ifdef ENABLE_DEBUGGER | |
| 205 | 205 | extern unsigned m65c02_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 206 | 206 | #endif |
| 207 | 207 | |
| r1649 | r1650 | |
| 226 | 226 | |
| 227 | 227 | extern void m65sc02_get_info(UINT32 state, cpuinfo *info); |
| 228 | 228 | |
| 229 | #ifdef | |
| 229 | #ifdef ENABLE_DEBUGGER | |
| 230 | 230 | extern unsigned m65sc02_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 231 | 231 | #endif |
| 232 | 232 | #endif |
| r1649 | r1650 | |
| 251 | 251 | extern void deco16_get_info(UINT32 state, cpuinfo *info); |
| 252 | 252 | #endif |
| 253 | 253 | |
| 254 | #ifdef | |
| 254 | #ifdef ENABLE_DEBUGGER | |
| 255 | 255 | extern unsigned deco16_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 256 | 256 | #endif |
| 257 | 257 |
| r1649 | r1650 | |
|---|---|---|
| 38 | 38 | */ |
| 39 | 39 | |
| 40 | 40 | #include "debugger.h" |
| 41 | #include "deprecat.h" | |
| 41 | 42 | #include "m6509.h" |
| 42 | 43 | |
| 43 | 44 | #include "ops02.h" |
| r1649 | r1650 | |
| 200 | 201 | UINT8 op; |
| 201 | 202 | PPC = PCD; |
| 202 | 203 | |
| 203 | CALL_ | |
| 204 | CALL_ | |
| 204 | 205 | |
| 205 | 206 | /* if an irq is pending, take it now */ |
| 206 | 207 | if( m6509.pending_irq ) |
| r1649 | r1650 | |
| 368 | 369 | case CPUINFO_PTR_EXIT: info->exit = m6509_exit; break; |
| 369 | 370 | case CPUINFO_PTR_EXECUTE: info->execute = m6509_execute; break; |
| 370 | 371 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 371 | #ifdef | |
| 372 | #ifdef ENABLE_DEBUGGER | |
| 372 | 373 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = m6502_dasm; break; |
| 373 | 374 | #endif |
| 374 | 375 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &m6502_ICount; break; |
| r1649 | r1650 | |
|---|---|---|
| 215 | 215 | UINT8 op; |
| 216 | 216 | PPC = PCD; |
| 217 | 217 | |
| 218 | CALL_ | |
| 218 | CALL_ | |
| 219 | 219 | |
| 220 | 220 | /* if an irq is pending, take it now */ |
| 221 | 221 | if( m65ce02.pending_irq ) |
| r1649 | r1650 | |
| 373 | 373 | |
| 374 | 374 | unsigned int m65ce02_dasm(char *buffer, unsigned pc) |
| 375 | 375 | { |
| 376 | #ifdef | |
| 376 | #ifdef ENABLE_DEBUGGER | |
| 377 | 377 | return Dasm65ce02( buffer, pc ); |
| 378 | 378 | #else |
| 379 | 379 | sprintf( buffer, "$%02X", cpu_readop(pc) ); |
| r1649 | r1650 | |
|---|---|---|
| 48 | 48 | extern const char *m65ce02_info(void *context, int regnum); |
| 49 | 49 | extern unsigned m65ce02_dasm(char *buffer, unsigned pc); |
| 50 | 50 | |
| 51 | #ifdef | |
| 51 | #ifdef ENABLE_DEBUGGER | |
| 52 | 52 | extern unsigned int Dasm65ce02( char *dst, unsigned pc ); |
| 53 | 53 | #endif |
| 54 | 54 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "debugger.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "jaguar.h" |
| 11 | 12 | |
| 12 | 13 | #define LOG_GPU_IO 0 |
| r1649 | r1650 | |
| 516 | 517 | /* debugging */ |
| 517 | 518 | //if (jaguar.PC < 0xf03000 || jaguar.PC > 0xf04000) { fatalerror("GPU: jaguar.PC = %06X (ppc = %06X)", jaguar.PC, jaguar.ppc); } |
| 518 | 519 | jaguar.ppc = jaguar.PC; |
| 519 | CALL_ | |
| 520 | CALL_ | |
| 520 | 521 | |
| 521 | 522 | /* instruction fetch */ |
| 522 | 523 | jaguar.op = ROPCODE(jaguar.PC); |
| r1649 | r1650 | |
| 562 | 563 | /* debugging */ |
| 563 | 564 | //if (jaguar.PC < 0xf1b000 || jaguar.PC > 0xf1d000) { fatalerror(stderr, "DSP: jaguar.PC = %06X", jaguar.PC); } |
| 564 | 565 | jaguar.ppc = jaguar.PC; |
| 565 | CALL_ | |
| 566 | CALL_ | |
| 566 | 567 | |
| 567 | 568 | /* instruction fetch */ |
| 568 | 569 | jaguar.op = ROPCODE(jaguar.PC); |
| r1649 | r1650 | |
| 589 | 590 | DISASSEMBLY HOOK |
| 590 | 591 | ***************************************************************************/ |
| 591 | 592 | |
| 592 | #ifdef | |
| 593 | #ifdef ENABLE_DEBUGGER | |
| 593 | 594 | static offs_t jaguargpu_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 594 | 595 | { |
| 595 | 596 | extern unsigned dasmjag(int, char *, unsigned, const UINT8 *); |
| r1649 | r1650 | |
| 601 | 602 | extern unsigned dasmjag(int, char *, unsigned, const UINT8 *); |
| 602 | 603 | return dasmjag(JAGUAR_VARIANT_DSP, buffer, pc, oprom); |
| 603 | 604 | } |
| 604 | #endif /* | |
| 605 | #endif /* ENABLE_DEBUGGER */ | |
| 605 | 606 | |
| 606 | 607 | |
| 607 | 608 | |
| r1649 | r1650 | |
| 800 | 801 | { |
| 801 | 802 | INT32 r1 = (INT8)((jaguar.op >> 2) & 0xf8) >> 2; |
| 802 | 803 | UINT32 newpc = jaguar.PC + r1; |
| 803 | CALL_ | |
| 804 | CALL_ | |
| 804 | 805 | jaguar.op = ROPCODE(jaguar.PC); |
| 805 | 806 | jaguar.PC = newpc; |
| 806 | 807 | (*jaguar.table[jaguar.op >> 10])(); |
| r1649 | r1650 | |
| 817 | 818 | |
| 818 | 819 | /* special kludge for risky code in the cojag DSP interrupt handlers */ |
| 819 | 820 | UINT32 newpc = (jaguar_icount == bankswitch_icount) ? jaguar.a[reg] : jaguar.r[reg]; |
| 820 | CALL_ | |
| 821 | CALL_ | |
| 821 | 822 | jaguar.op = ROPCODE(jaguar.PC); |
| 822 | 823 | jaguar.PC = newpc; |
| 823 | 824 | (*jaguar.table[jaguar.op >> 10])(); |
| r1649 | r1650 | |
| 1653 | 1654 | case CPUINFO_PTR_EXIT: info->exit = jaguar_exit; break; |
| 1654 | 1655 | case CPUINFO_PTR_EXECUTE: info->execute = jaguargpu_execute; break; |
| 1655 | 1656 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1656 | #ifdef | |
| 1657 | #ifdef ENABLE_DEBUGGER | |
| 1657 | 1658 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = jaguargpu_dasm; break; |
| 1658 | #endif /* | |
| 1659 | #endif /* ENABLE_DEBUGGER */ | |
| 1659 | 1660 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &jaguar_icount; break; |
| 1660 | 1661 | |
| 1661 | 1662 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
| 1748 | 1749 | case CPUINFO_PTR_INIT: info->init = jaguardsp_init; break; |
| 1749 | 1750 | case CPUINFO_PTR_RESET: info->reset = jaguardsp_reset; break; |
| 1750 | 1751 | case CPUINFO_PTR_EXECUTE: info->execute = jaguardsp_execute; break; |
| 1751 | #ifdef | |
| 1752 | #ifdef ENABLE_DEBUGGER | |
| 1752 | 1753 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = jaguardsp_dasm; break; |
| 1753 | #endif /* | |
| 1754 | #endif /* ENABLE_DEBUGGER */ | |
| 1754 | 1755 | |
| 1755 | 1756 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 1756 | 1757 | case CPUINFO_STR_NAME: strcpy(info->s, "Jaguar DSP"); break; |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | void e116t_get_info(UINT32 state, cpuinfo *info); |
| 10 | 10 | #endif |
| 11 | 11 | |
| 12 | #ifdef | |
| 12 | #ifdef ENABLE_DEBUGGER | |
| 13 | 13 | extern unsigned dasm_ssp1610(char *buffer, unsigned pc, const UINT8 *oprom); |
| 14 | 14 | #endif |
| 15 | 15 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | *********************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "debugger.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "ssp1610.h" |
| 11 | #include "osd_cpu.h" | |
| 12 | 12 | |
| 13 | 13 | #define READ_OP(addr) (cpu_readop16(addr<<1)) |
| 14 | 14 | |
| r1649 | r1650 | |
| 143 | 143 | |
| 144 | 144 | PPC = PC; /* copy PC to previous PC */ |
| 145 | 145 | |
| 146 | CALL_ | |
| 146 | CALL_ | |
| 147 | 147 | |
| 148 | 148 | op = READ_OP(PC); |
| 149 | 149 | |
| r1649 | r1650 | |
| 690 | 690 | ssp1610 = *(ssp1610_regs *)regs; |
| 691 | 691 | } |
| 692 | 692 | |
| 693 | #ifdef | |
| 693 | #ifdef ENABLE_DEBUGGER | |
| 694 | 694 | static offs_t ssp1610_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 695 | 695 | { |
| 696 | 696 | return dasm_ssp1610( buffer, pc, oprom); |
| 697 | 697 | } |
| 698 | #endif /* | |
| 698 | #endif /* ENABLE_DEBUGGER */ | |
| 699 | 699 | |
| 700 | 700 | #if (HAS_SSP1610) |
| 701 | 701 | |
| r1649 | r1650 | |
| 818 | 818 | case CPUINFO_PTR_EXIT: info->exit = ssp1610_exit; break; |
| 819 | 819 | case CPUINFO_PTR_EXECUTE: info->execute = ssp1610_execute; break; |
| 820 | 820 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 821 | #ifdef | |
| 821 | #ifdef ENABLE_DEBUGGER | |
| 822 | 822 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = ssp1610_dasm; break; |
| 823 | #endif /* | |
| 823 | #endif /* ENABLE_DEBUGGER */ | |
| 824 | 824 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &ssp1610_ICount; break; |
| 825 | 825 | |
| 826 | 826 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: info->internal_map = 0; break; |
| r1649 | r1650 | |
|---|---|---|
| 51 | 51 | void i8080_get_info(UINT32 state, cpuinfo *info); |
| 52 | 52 | #endif |
| 53 | 53 | |
| 54 | #ifdef | |
| 54 | #ifdef ENABLE_DEBUGGER | |
| 55 | 55 | offs_t i8085_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 56 | 56 | #endif |
| 57 | 57 |
| r1649 | r1650 | |
|---|---|---|
| 121 | 121 | /*int survival_prot = 0; */ |
| 122 | 122 | |
| 123 | 123 | #include "debugger.h" |
| 124 | #include "deprecat.h" | |
| 124 | 125 | #include "i8085.h" |
| 125 | 126 | #include "i8085cpu.h" |
| 126 | 127 | #include "i8085daa.h" |
| r1649 | r1650 | |
| 1266 | 1267 | i8085_ICount = cycles; |
| 1267 | 1268 | do |
| 1268 | 1269 | { |
| 1269 | CALL_ | |
| 1270 | CALL_ | |
| 1270 | 1271 | /* interrupts enabled or TRAP pending ? */ |
| 1271 | 1272 | if ( (I.IM & IM_IEN) || (I.IREQ & IM_TRAP) ) |
| 1272 | 1273 | { |
| r1649 | r1650 | |
| 1688 | 1689 | case CPUINFO_PTR_EXIT: info->exit = i8085_exit; break; |
| 1689 | 1690 | case CPUINFO_PTR_EXECUTE: info->execute = i8085_execute; break; |
| 1690 | 1691 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1691 | #ifdef | |
| 1692 | #ifdef ENABLE_DEBUGGER | |
| 1692 | 1693 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = i8085_dasm; break; |
| 1693 | #endif /* | |
| 1694 | #endif /* ENABLE_DEBUGGER */ | |
| 1694 | 1695 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &i8085_ICount; break; |
| 1695 | 1696 | |
| 1696 | 1697 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 361 | 361 | /***********************************************************************/ |
| 362 | 362 | |
| 363 | 363 | |
| 364 | #ifdef | |
| 364 | #ifdef ENABLE_DEBUGGER | |
| 365 | 365 | static offs_t ppc_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 366 | 366 | { |
| 367 | 367 | UINT32 op; |
| 368 | 368 | op = BIG_ENDIANIZE_INT32(*((UINT32 *) oprom)); |
| 369 | 369 | return ppc_dasm_one(buffer, pc, op); |
| 370 | 370 | } |
| 371 | #endif /* | |
| 371 | #endif /* ENABLE_DEBUGGER */ | |
| 372 | 372 | |
| 373 | 373 | /***********************************************************************/ |
| 374 | 374 |
| r1649 | r1650 | |
|---|---|---|
| 3 | 3 | #include <setjmp.h> |
| 4 | 4 | #include "ppc.h" |
| 5 | 5 | #include "debugger.h" |
| 6 | #include "deprecat.h" | |
| 6 | 7 | |
| 7 | 8 | #if (HAS_PPC603 || HAS_PPC601 || HAS_PPC604) |
| 8 | 9 | void ppc603_exception(int exception); |
| r1649 | r1650 | |
| 1810 | 1811 | case CPUINFO_PTR_GET_CONTEXT: info->getcontext = ppc_get_context; break; |
| 1811 | 1812 | case CPUINFO_PTR_SET_CONTEXT: info->setcontext = ppc_set_context; break; |
| 1812 | 1813 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1813 | #ifdef | |
| 1814 | #ifdef ENABLE_DEBUGGER | |
| 1814 | 1815 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = ppc_dasm; break; |
| 1815 | #endif /* | |
| 1816 | #endif /* ENABLE_DEBUGGER */ | |
| 1816 | 1817 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &ppc_icount; break; |
| 1817 | 1818 | |
| 1818 | 1819 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 364 | 364 | void ppc604_get_info(UINT32 state, cpuinfo *info); |
| 365 | 365 | #endif |
| 366 | 366 | |
| 367 | #ifdef | |
| 367 | #ifdef ENABLE_DEBUGGER | |
| 368 | 368 | extern offs_t ppc_dasm_one(char *buffer, offs_t pc, UINT32 op); |
| 369 | 369 | #endif |
| 370 | 370 |
| r1649 | r1650 | |
|---|---|---|
| 177 | 177 | { |
| 178 | 178 | UINT32 opcode; |
| 179 | 179 | |
| 180 | CALL_ | |
| 180 | CALL_ | |
| 181 | 181 | ppc.pc = ppc.npc; |
| 182 | 182 | ppc.npc += 4; |
| 183 | 183 | opcode = ROPCODE(ppc.pc); |
| r1649 | r1650 | |
|---|---|---|
| 254 | 254 | while( ppc_icount > 0 ) |
| 255 | 255 | { |
| 256 | 256 | ppc.pc = ppc.npc; |
| 257 | CALL_ | |
| 257 | CALL_ | |
| 258 | 258 | |
| 259 | 259 | if (MSR & MSR_IR) |
| 260 | 260 | opcode = ppc_readop_translated(ppc.pc); |
| r1649 | r1650 | |
|---|---|---|
| 262 | 262 | while( ppc_icount > 0 ) |
| 263 | 263 | { |
| 264 | 264 | ppc.pc = ppc.npc; |
| 265 | CALL_ | |
| 265 | CALL_ | |
| 266 | 266 | |
| 267 | 267 | if (MSR & MSR_IR) |
| 268 | 268 | opcode = ppc_readop_translated(ppc.pc); |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | Written by Ville Linde |
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | #include "debugger.h" | |
| 8 | #include "deprecat.h" | |
| 7 | 9 | #include "ppc.h" |
| 8 | #include "debugger.h" | |
| 9 | 10 | #include "cpu/x86drc.h" |
| 10 | 11 | |
| 11 | 12 | |
| r1649 | r1650 | |
| 2153 | 2154 | case CPUINFO_PTR_GET_CONTEXT: info->getcontext = ppc_get_context; break; |
| 2154 | 2155 | case CPUINFO_PTR_SET_CONTEXT: info->setcontext = ppc_set_context; break; |
| 2155 | 2156 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 2156 | #ifdef | |
| 2157 | #ifdef ENABLE_DEBUGGER | |
| 2157 | 2158 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = ppc_dasm; break; |
| 2158 | #endif /* | |
| 2159 | #endif /* ENABLE_DEBUGGER */ | |
| 2159 | 2160 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &ppc_icount; break; |
| 2160 | 2161 | |
| 2161 | 2162 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 16 | 16 | */ |
| 17 | 17 | |
| 18 | 18 | #include "arm.h" |
| 19 | #include "deprecat.h" | |
| 19 | 20 | #include "debugger.h" |
| 20 | 21 | |
| 21 | 22 | #define READ8(addr) cpu_read8(addr) |
| r1649 | r1650 | |
| 323 | 324 | arm_icount = cycles; |
| 324 | 325 | do |
| 325 | 326 | { |
| 326 | CALL_ | |
| 327 | CALL_ | |
| 327 | 328 | |
| 328 | 329 | /* load instruction */ |
| 329 | 330 | pc = R15; |
| r1649 | r1650 | |
| 502 | 503 | arm_check_irq_state(); |
| 503 | 504 | } |
| 504 | 505 | |
| 505 | #ifdef | |
| 506 | #ifdef ENABLE_DEBUGGER | |
| 506 | 507 | static offs_t arm_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 507 | 508 | { |
| 508 | 509 | UINT32 opcode = oprom[0] | (oprom[1] << 8) | (oprom[2] << 16) | (oprom[3] << 24); |
| 509 | 510 | return 4 | arm_disasm(buffer, pc, opcode); |
| 510 | 511 | } |
| 511 | #endif /* | |
| 512 | #endif /* ENABLE_DEBUGGER */ | |
| 512 | 513 | |
| 513 | 514 | static void arm_init(int index, int clock, const void *config, int (*irqcallback)(int)) |
| 514 | 515 | { |
| r1649 | r1650 | |
| 1531 | 1532 | case CPUINFO_PTR_EXIT: info->exit = arm_exit; break; |
| 1532 | 1533 | case CPUINFO_PTR_EXECUTE: info->execute = arm_execute; break; |
| 1533 | 1534 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1534 | #ifdef | |
| 1535 | #ifdef ENABLE_DEBUGGER | |
| 1535 | 1536 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = arm_dasm; break; |
| 1536 | #endif /* | |
| 1537 | #endif /* ENABLE_DEBUGGER */ | |
| 1537 | 1538 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &arm_icount; break; |
| 1538 | 1539 | |
| 1539 | 1540 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 16 | 16 | |
| 17 | 17 | extern void arm_get_info(UINT32 state, cpuinfo *info); |
| 18 | 18 | |
| 19 | #ifdef | |
| 19 | #ifdef ENABLE_DEBUGGER | |
| 20 | 20 | extern UINT32 arm_disasm( char *pBuf, UINT32 pc, UINT32 opcode ); |
| 21 | 21 | #endif |
| 22 | 22 |
| r1649 | r1650 | |
|---|---|---|
| 44 | 44 | *****************************************************************************/ |
| 45 | 45 | |
| 46 | 46 | #include "debugger.h" |
| 47 | #include "deprecat.h" | |
| 47 | 48 | #include "z8000.h" |
| 48 | 49 | #include "z8000cpu.h" |
| 49 | 50 | #include "osd_cpu.h" |
| r1649 | r1650 | |
| 479 | 480 | if (IRQ_REQ) |
| 480 | 481 | Interrupt(); |
| 481 | 482 | |
| 482 | CALL_ | |
| 483 | CALL_ | |
| 483 | 484 | |
| 484 | 485 | if (IRQ_REQ & Z8000_HALT) |
| 485 | 486 | { |
| r1649 | r1650 | |
| 688 | 689 | case CPUINFO_PTR_EXIT: info->exit = z8000_exit; break; |
| 689 | 690 | case CPUINFO_PTR_EXECUTE: info->execute = z8000_execute; break; |
| 690 | 691 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 691 | #ifdef | |
| 692 | #ifdef ENABLE_DEBUGGER | |
| 692 | 693 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = z8000_dasm; break; |
| 693 | #endif /* | |
| 694 | #endif /* ENABLE_DEBUGGER */ | |
| 694 | 695 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &z8000_ICount; break; |
| 695 | 696 | |
| 696 | 697 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 22 | 22 | /* PUBLIC FUNCTIONS */ |
| 23 | 23 | extern void z8000_get_info(UINT32 state, cpuinfo *info); |
| 24 | 24 | |
| 25 | #ifdef | |
| 25 | #ifdef ENABLE_DEBUGGER | |
| 26 | 26 | offs_t z8000_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 27 | 27 | #endif |
| 28 | 28 |
| r1649 | r1650 | |
|---|---|---|
| 123 | 123 | |
| 124 | 124 | |
| 125 | 125 | |
| 126 | #ifdef | |
| 126 | #ifdef ENABLE_DEBUGGER | |
| 127 | 127 | offs_t tms32010_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 128 | 128 | #endif |
| 129 | 129 |
| r1649 | r1650 | |
|---|---|---|
| 29 | 29 | #include <string.h> |
| 30 | 30 | #include <ctype.h> |
| 31 | 31 | |
| 32 | #ifdef | |
| 32 | #ifdef ENABLE_DEBUGGER /* Compile interface to MAME */ | |
| 33 | 33 | #include "cpuintrf.h" |
| 34 | 34 | #include "tms32010.h" |
| 35 | 35 | #include "debugger.h" |
| r1649 | r1650 | |
|---|---|---|
| 53 | 53 | |
| 54 | 54 | |
| 55 | 55 | |
| 56 | #include "debugger.h" | |
| 57 | #include "deprecat.h" | |
| 56 | 58 | #include "tms32010.h" |
| 57 | #include "debugger.h" | |
| 58 | 59 | |
| 59 | 60 | |
| 60 | 61 | #define CLK 1 /* Moved the clock timing back into the driver */ |
| r1649 | r1650 | |
| 789 | 790 | |
| 790 | 791 | R.PREVPC = R.PC; |
| 791 | 792 | |
| 792 | CALL_ | |
| 793 | CALL_ | |
| 793 | 794 | |
| 794 | 795 | R.opcode.d = M_RDOP(R.PC); |
| 795 | 796 | R.PC++; |
| r1649 | r1650 | |
| 929 | 930 | case CPUINFO_PTR_EXIT: info->exit = tms32010_exit; break; |
| 930 | 931 | case CPUINFO_PTR_EXECUTE: info->execute = tms32010_execute; break; |
| 931 | 932 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 932 | #ifdef | |
| 933 | #ifdef ENABLE_DEBUGGER | |
| 933 | 934 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = tms32010_dasm; break; |
| 934 | #endif /* | |
| 935 | #endif /* ENABLE_DEBUGGER */ | |
| 935 | 936 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &tms32010_icount; break; |
| 936 | 937 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: info->internal_map = construct_map_tms32010_ram; break; |
| 937 | 938 |
| r1649 | r1650 | |
|---|---|---|
| 49 | 49 | sm85cpu_mem_writebyte( ( address + 1 ) & 0xffff, value & 0xff ); |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | #ifdef | |
| 52 | #ifdef ENABLE_DEBUGGER | |
| 53 | 53 | extern unsigned sm8500_dasm( char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram ); |
| 54 | #endif /* | |
| 54 | #endif /* ENABLE_DEBUGGER */ | |
| 55 | 55 | |
| 56 | 56 | #endif |
| 57 | 57 |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | Code by Wilbert Pol |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | #include "debugger.h" | |
| 13 | #include "deprecat.h" | |
| 12 | 14 | #include "sm8500.h" |
| 13 | #include "debugger.h" | |
| 14 | 15 | |
| 15 | 16 | #define FLAG_C 0x80 |
| 16 | 17 | #define FLAG_Z 0x40 |
| r1649 | r1650 | |
| 215 | 216 | UINT32 d1,d2; |
| 216 | 217 | UINT32 res; |
| 217 | 218 | |
| 218 | CALL_ | |
| 219 | CALL_ | |
| 219 | 220 | oldpc = regs.PC; |
| 220 | 221 | mycycles = 0; |
| 221 | 222 | sm8500_process_interrupts(); |
| r1649 | r1650 | |
| 496 | 497 | case CPUINFO_PTR_EXIT: info->exit = sm8500_exit; break; |
| 497 | 498 | case CPUINFO_PTR_EXECUTE: info->execute = sm8500_execute; break; |
| 498 | 499 | case CPUINFO_PTR_BURN: info->burn = sm8500_burn; break; |
| 499 | #ifdef | |
| 500 | #ifdef ENABLE_DEBUGGER | |
| 500 | 501 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = sm8500_dasm; break; |
| 501 | 502 | #endif |
| 502 | 503 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &sm8500_icount; break; |
| r1649 | r1650 | |
|---|---|---|
| 75 | 75 | WRITE32_HANDLER( sh2_internal_w ); |
| 76 | 76 | READ32_HANDLER( sh2_internal_r ); |
| 77 | 77 | |
| 78 | #ifdef | |
| 78 | #ifdef ENABLE_DEBUGGER | |
| 79 | 79 | extern unsigned DasmSH2( char *dst, unsigned pc, UINT16 opcode ); |
| 80 | 80 | #endif |
| 81 | 81 |
| r1649 | r1650 | |
|---|---|---|
| 101 | 101 | *****************************************************************************/ |
| 102 | 102 | |
| 103 | 103 | #include "debugger.h" |
| 104 | #include "deprecat.h" | |
| 104 | 105 | #include "sh2.h" |
| 105 | 106 | |
| 106 | 107 | /* speed up delay loops, bail out of tight loops */ |
| r1649 | r1650 | |
| 140 | 141 | |
| 141 | 142 | UINT16 frc; |
| 142 | 143 | UINT16 ocra, ocrb, icr; |
| 143 | UINT | |
| 144 | UINT64 frc_base; | |
| 144 | 145 | |
| 145 | 146 | int frt_input; |
| 146 | 147 | int internal_irq_level; |
| r1649 | r1650 | |
| 2341 | 2342 | else |
| 2342 | 2343 | opcode = cpu_readop16(WORD_XOR_BE((UINT32)(sh2.pc & AM))); |
| 2343 | 2344 | |
| 2344 | CALL_ | |
| 2345 | CALL_ | |
| 2345 | 2346 | |
| 2346 | 2347 | sh2.delay = 0; |
| 2347 | 2348 | sh2.pc += 2; |
| r1649 | r1650 | |
| 2395 | 2396 | static void sh2_timer_resync(void) |
| 2396 | 2397 | { |
| 2397 | 2398 | int divider = div_tab[(sh2.m[5] >> 8) & 3]; |
| 2398 | UINT | |
| 2399 | UINT64 cur_time = cpunum_gettotalcycles(sh2.cpu_number); | |
| 2399 | 2400 | |
| 2400 | 2401 | if(divider) |
| 2401 | 2402 | sh2.frc += (cur_time - sh2.frc_base) >> divider; |
| r1649 | r1650 | |
| 2920 | 2921 | } |
| 2921 | 2922 | } |
| 2922 | 2923 | |
| 2923 | #ifdef | |
| 2924 | #ifdef ENABLE_DEBUGGER | |
| 2924 | 2925 | static offs_t sh2_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 2925 | 2926 | { |
| 2926 | 2927 | return DasmSH2( buffer, pc, (oprom[0] << 8) | oprom[1] ); |
| 2927 | 2928 | } |
| 2928 | #endif /* | |
| 2929 | #endif /* ENABLE_DEBUGGER */ | |
| 2929 | 2930 | |
| 2930 | 2931 | static void sh2_init(int index, int clock, const void *config, int (*irqcallback)(int)) |
| 2931 | 2932 | { |
| r1649 | r1650 | |
| 3128 | 3129 | case CPUINFO_PTR_RESET: info->reset = sh2_reset; break; |
| 3129 | 3130 | case CPUINFO_PTR_EXECUTE: info->execute = sh2_execute; break; |
| 3130 | 3131 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 3131 | #ifdef | |
| 3132 | #ifdef ENABLE_DEBUGGER | |
| 3132 | 3133 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = sh2_dasm; break; |
| 3133 | #endif /* | |
| 3134 | #endif /* ENABLE_DEBUGGER */ | |
| 3134 | 3135 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &sh2_icount; break; |
| 3135 | 3136 | |
| 3136 | 3137 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | Written by Ville Linde |
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | #include "debugger.h" | |
| 8 | #include "deprecat.h" | |
| 7 | 9 | #include "cpuintrf.h" |
| 8 | 10 | #include "tms32051.h" |
| 9 | #include "debugger.h" | |
| 10 | 11 | |
| 11 | 12 | static void delay_slot(UINT16 startpc); |
| 12 | 13 | static void save_interrupt_context(void); |
| r1649 | r1650 | |
| 360 | 361 | } |
| 361 | 362 | |
| 362 | 363 | ppc = tms.pc; |
| 363 | CALL_ | |
| 364 | CALL_ | |
| 364 | 365 | |
| 365 | 366 | tms.op = ROPCODE(); |
| 366 | 367 | tms32051_opcode_table[tms.op >> 8](); |
| r1649 | r1650 | |
| 627 | 628 | case CPUINFO_PTR_EXIT: info->exit = tms_exit; break; |
| 628 | 629 | case CPUINFO_PTR_EXECUTE: info->execute = tms_execute; break; |
| 629 | 630 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 630 | #ifdef | |
| 631 | #ifdef ENABLE_DEBUGGER | |
| 631 | 632 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = tms32051_dasm; break; |
| 632 | #endif /* | |
| 633 | #endif /* ENABLE_DEBUGGER */ | |
| 633 | 634 | case CPUINFO_PTR_READ: info->read = tms_debug_read; break; |
| 634 | 635 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &tms_icount; break; |
| 635 | 636 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM: info->internal_map = construct_map_internal_pgm; break; |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | void tms32051_get_info(UINT32 state, cpuinfo *info); |
| 6 | 6 | #endif |
| 7 | 7 | |
| 8 | #ifdef | |
| 8 | #ifdef ENABLE_DEBUGGER | |
| 9 | 9 | offs_t tms32051_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 10 | 10 | #endif |
| 11 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 25 | 25 | #include "debugger.h" |
| 26 | 26 | #include "sh4.h" |
| 27 | 27 | #include "sh4regs.h" |
| 28 | #include | |
| 28 | #include "deprecat | |
| 29 | 29 | |
| 30 | 30 | /* speed up delay loops, bail out of tight loops */ |
| 31 | 31 | #define BUSY_LOOP_HACKS 0 |
| r1649 | r1650 | |
| 314 | 314 | } |
| 315 | 315 | #endif |
| 316 | 316 | |
| 317 | #ifdef | |
| 317 | #ifdef ENABLE_DEBUGGER | |
| 318 | 318 | static void sh4_syncronize_register_bank(int to) |
| 319 | 319 | { |
| 320 | 320 | int s; |
| r1649 | r1650 | |
| 426 | 426 | sh4.sgr = sh4.r[15]; |
| 427 | 427 | |
| 428 | 428 | sh4.sr |= MD; |
| 429 | #ifdef | |
| 429 | #ifdef ENABLE_DEBUGGER | |
| 430 | 430 | sh4_syncronize_register_bank((sh4.sr & sRB) >> 29); |
| 431 | 431 | #endif |
| 432 | 432 | if (!(sh4.sr & sRB)) |
| r1649 | r1650 | |
| 1093 | 1093 | /* LDC Rm,SR */ |
| 1094 | 1094 | INLINE void LDCSR(UINT32 m) |
| 1095 | 1095 | { |
| 1096 | #ifdef | |
| 1096 | #ifdef ENABLE_DEBUGGER | |
| 1097 | 1097 | sh4_syncronize_register_bank((sh4.sr & sRB) >> 29); |
| 1098 | 1098 | #endif |
| 1099 | 1099 | if ((sh4.r[m] & sRB) != (sh4.sr & sRB)) |
| r1649 | r1650 | |
| 1122 | 1122 | old = sh4.sr; |
| 1123 | 1123 | sh4.ea = sh4.r[m]; |
| 1124 | 1124 | sh4.sr = RL( sh4.ea ) & FLAGS; |
| 1125 | #ifdef | |
| 1125 | #ifdef ENABLE_DEBUGGER | |
| 1126 | 1126 | sh4_syncronize_register_bank((old & sRB) >> 29); |
| 1127 | 1127 | #endif |
| 1128 | 1128 | if ((old & sRB) != (sh4.sr & sRB)) |
| r1649 | r1650 | |
| 1709 | 1709 | { |
| 1710 | 1710 | sh4.delay = sh4.pc; |
| 1711 | 1711 | sh4.pc = sh4.ea = sh4.spc; |
| 1712 | #ifdef | |
| 1712 | #ifdef ENABLE_DEBUGGER | |
| 1713 | 1713 | sh4_syncronize_register_bank((sh4.sr & sRB) >> 29); |
| 1714 | 1714 | #endif |
| 1715 | 1715 | if ((sh4.ssr & sRB) != (sh4.sr & sRB)) |
| r1649 | r1650 | |
| 3561 | 3561 | else |
| 3562 | 3562 | opcode = cpu_readop16(WORD2_XOR_LE((UINT32)(sh4.pc & AM))); |
| 3563 | 3563 | |
| 3564 | CALL_ | |
| 3564 | CALL_ | |
| 3565 | 3565 | |
| 3566 | 3566 | sh4.delay = 0; |
| 3567 | 3567 | sh4.pc += 2; |
| r1649 | r1650 | |
| 4527 | 4527 | } |
| 4528 | 4528 | } |
| 4529 | 4529 | |
| 4530 | #ifdef | |
| 4530 | #ifdef ENABLE_DEBUGGER | |
| 4531 | 4531 | static offs_t sh4_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 4532 | 4532 | { |
| 4533 | 4533 | return DasmSH4( buffer, pc, (oprom[1] << 8) | oprom[0] ); |
| 4534 | 4534 | } |
| 4535 | #endif /* | |
| 4535 | #endif /* ENABLE_DEBUGGER */ | |
| 4536 | 4536 | |
| 4537 | 4537 | static void sh4_init(int index, int clock, const void *config, int (*irqcallback)(int)) |
| 4538 | 4538 | { |
| r1649 | r1650 | |
| 4981 | 4981 | case CPUINFO_PTR_RESET: info->reset = sh4_reset; break; |
| 4982 | 4982 | case CPUINFO_PTR_EXECUTE: info->execute = sh4_execute; break; |
| 4983 | 4983 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 4984 | #ifdef | |
| 4984 | #ifdef ENABLE_DEBUGGER | |
| 4985 | 4985 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = sh4_dasm; break; |
| 4986 | #endif /* | |
| 4986 | #endif /* ENABLE_DEBUGGER */ | |
| 4987 | 4987 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &sh4_icount; break; |
| 4988 | 4988 | |
| 4989 | 4989 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 85 | 85 | WRITE32_HANDLER( sh4_internal_w ); |
| 86 | 86 | READ32_HANDLER( sh4_internal_r ); |
| 87 | 87 | |
| 88 | #ifdef | |
| 88 | #ifdef ENABLE_DEBUGGER | |
| 89 | 89 | extern unsigned DasmSH4( char *dst, unsigned pc, UINT16 opcode ); |
| 90 | 90 | #endif |
| 91 | 91 |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | ***************************************************************************/ |
| 15 | 15 | |
| 16 | 16 | #include "debugger.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | #include "mb88xx.h" |
| 18 | 19 | |
| 19 | 20 | /*************************************************************************** |
| r1649 | r1650 | |
| 236 | 237 | UINT8 opcode, arg, oc; |
| 237 | 238 | |
| 238 | 239 | /* fetch the opcode */ |
| 239 | CALL_ | |
| 240 | CALL_ | |
| 240 | 241 | opcode = READOP(GETPC()); |
| 241 | 242 | |
| 242 | 243 | /* increment the PC */ |
| r1649 | r1650 | |
| 850 | 851 | case CPUINFO_PTR_EXIT: info->exit = NULL; break; |
| 851 | 852 | case CPUINFO_PTR_EXECUTE: info->execute = mb88_execute; break; |
| 852 | 853 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 853 | #ifdef | |
| 854 | #ifdef ENABLE_DEBUGGER | |
| 854 | 855 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = mb88_dasm; break; |
| 855 | #endif /* | |
| 856 | #endif /* ENABLE_DEBUGGER */ | |
| 856 | 857 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &mb88_icount; break; |
| 857 | 858 | |
| 858 | 859 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 71 | 71 | void mb8843_get_info(UINT32 state, cpuinfo *info); |
| 72 | 72 | void mb8844_get_info(UINT32 state, cpuinfo *info); |
| 73 | 73 | |
| 74 | #ifdef | |
| 74 | #ifdef ENABLE_DEBUGGER | |
| 75 | 75 | offs_t mb88_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 76 | 76 | #endif |
| 77 | 77 |
| r1649 | r1650 | |
|---|---|---|
| 133 | 133 | ****************************************************************************/ |
| 134 | 134 | |
| 135 | 135 | #include "debugger.h" |
| 136 | #include "deprecat.h" | |
| 136 | 137 | #include "alph8201.h" |
| 137 | 138 | |
| 138 | 139 | /* instruction cycle count */ |
| r1649 | r1650 | |
| 784 | 785 | |
| 785 | 786 | /* run */ |
| 786 | 787 | R.PREVPC = PC; |
| 787 | CALL_ | |
| 788 | CALL_ | |
| 788 | 789 | opcode =M_RDOP(PC); |
| 789 | 790 | #if TRACE_PC |
| 790 | 791 | mame_printf_debug("ALPHA8201: PC = %03x, opcode = %02x\n", PC, opcode); |
| r1649 | r1650 | |
| 948 | 949 | case CPUINFO_PTR_RESET: info->reset = ALPHA8201_reset; break; |
| 949 | 950 | case CPUINFO_PTR_EXIT: info->exit = ALPHA8201_exit; break; |
| 950 | 951 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 951 | #ifdef | |
| 952 | #ifdef ENABLE_DEBUGGER | |
| 952 | 953 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = ALPHA8201_dasm; break; |
| 953 | #endif /* | |
| 954 | #endif /* ENABLE_DEBUGGER */ | |
| 954 | 955 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &ALPHA8201_ICount; break; |
| 955 | 956 | |
| 956 | 957 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 65 | 65 | */ |
| 66 | 66 | #define ALPHA8201_RDOP_ARG(A) ((unsigned)cpu_readop_arg(A)) |
| 67 | 67 | |
| 68 | #ifdef | |
| 68 | #ifdef ENABLE_DEBUGGER | |
| 69 | 69 | offs_t ALPHA8201_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 70 | 70 | #endif |
| 71 | 71 |
| r1649 | r1650 | |
|---|---|---|
| 324 | 324 | */ |
| 325 | 325 | |
| 326 | 326 | #include "cpuintrf.h" |
| 327 | #include "debugger.h" | |
| 328 | #include "deprecat.h" | |
| 327 | 329 | #include "apexc.h" |
| 328 | #include "debugger.h" | |
| 329 | 330 | |
| 330 | 331 | typedef struct |
| 331 | 332 | { |
| r1649 | r1650 | |
| 802 | 803 | |
| 803 | 804 | do |
| 804 | 805 | { |
| 805 | CALL_ | |
| 806 | CALL_ | |
| 806 | 807 | |
| 807 | 808 | if (apexc.running) |
| 808 | 809 | execute(); |
| r1649 | r1650 | |
| 899 | 900 | case CPUINFO_PTR_EXECUTE: info->execute = apexc_execute; break; |
| 900 | 901 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 901 | 902 | |
| 902 | #ifdef | |
| 903 | #ifdef ENABLE_DEBUGGER | |
| 903 | 904 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = apexc_dasm; break; |
| 904 | #endif /* | |
| 905 | #endif /* ENABLE_DEBUGGER */ | |
| 905 | 906 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &apexc_ICount; break; |
| 906 | 907 | |
| 907 | 908 | case CPUINFO_STR_NAME: strcpy(info->s = cpuintrf_temp_str(), "APEXC"); break; |
| r1649 | r1650 | |
|---|---|---|
| 28 | 28 | #define apexc_writemem_masked(address, data, mask) cpu_writemem13_32masked((address), (data), (mask)) |
| 29 | 29 | #endif |
| 30 | 30 | |
| 31 | #ifdef | |
| 31 | #ifdef ENABLE_DEBUGGER | |
| 32 | 32 | unsigned apexc_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 33 | #endif /* | |
| 33 | #endif /* ENABLE_DEBUGGER */ | |
| 34 | 34 | |
| 35 | 35 | #define apexc_readop(address) apexc_readmem(address) |
| 36 | 36 |
| r1649 | r1650 | |
|---|---|---|
| 310 | 310 | |
| 311 | 311 | |
| 312 | 312 | /* Disassemble an instruction */ |
| 313 | #ifdef | |
| 313 | #ifdef ENABLE_DEBUGGER | |
| 314 | 314 | #include "g65816ds.h" |
| 315 | 315 | |
| 316 | 316 | static offs_t g65816_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 317 | 317 | { |
| 318 | 318 | return g65816_disassemble(buffer, (pc & 0x00ffff), (pc & 0xff0000) >> 16, oprom, FLAG_M, FLAG_X); |
| 319 | 319 | } |
| 320 | #endif /* | |
| 320 | #endif /* ENABLE_DEBUGGER */ | |
| 321 | 321 | |
| 322 | 322 | |
| 323 | 323 | |
| r1649 | r1650 | |
| 430 | 430 | case CPUINFO_PTR_EXIT: info->exit = g65816_exit; break; |
| 431 | 431 | case CPUINFO_PTR_EXECUTE: info->execute = g65816_execute; break; |
| 432 | 432 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 433 | #ifdef | |
| 433 | #ifdef ENABLE_DEBUGGER | |
| 434 | 434 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = g65816_dasm; break; |
| 435 | #endif /* | |
| 435 | #endif /* ENABLE_DEBUGGER */ | |
| 436 | 436 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &g65816_ICount; break; |
| 437 | 437 | case CPUINFO_PTR_G65816_READVECTOR_CALLBACK: info->f = (genf *) READ_VECTOR; break; |
| 438 | 438 |
| r1649 | r1650 | |
|---|---|---|
| 2435 | 2435 | g65816i_check_maskable_interrupt(); |
| 2436 | 2436 | |
| 2437 | 2437 | REGISTER_PPC = REGISTER_PC; |
| 2438 | G65816_CALL_DEBUGGER; | |
| 2438 | G65816_CALL_DEBUGGER(REGISTER_PC); | |
| 2439 | 2439 | |
| 2440 | 2440 | REGISTER_PC++; |
| 2441 | 2441 | REGISTER_IR = read_8_IMM(REGISTER_PB | REGISTER_PPC); |
| r1649 | r1650 | |
|---|---|---|
| 89 | 89 | void g65816_get_info(UINT32 state, cpuinfo *info); |
| 90 | 90 | |
| 91 | 91 | #undef G65816_CALL_DEBUGGER |
| 92 | #define G65816_CALL_DEBUGGER CALL_ | |
| 92 | #define G65816_CALL_DEBUGGER CALL_ | |
| 93 | 93 | |
| 94 | 94 | #define g65816_read_8(addr) program_read_byte_8(addr) |
| 95 | 95 | #define g65816_write_8(addr,data) program_write_byte_8(addr,data) |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | /* ================================ INCLUDES ============================== */ |
| 10 | 10 | /* ======================================================================== */ |
| 11 | 11 | |
| 12 | #include "g65816.h" | |
| 13 | #include "deprecat.h" | |
| 12 | 14 | #include <limits.h> |
| 13 | #include "g65816.h" | |
| 14 | #include <stdio.h> | |
| 15 | 15 | |
| 16 | 16 | |
| 17 | 17 | /* ======================================================================== */ |
| r1649 | r1650 | |
|---|---|---|
| 104 | 104 | ****************************************************************************/ |
| 105 | 105 | |
| 106 | 106 | #include "debugger.h" |
| 107 | #include "deprecat.h" | |
| 107 | 108 | |
| 108 | 109 | typedef UINT8 BOOLEAN; |
| 109 | 110 | typedef UINT8 BYTE; |
| r1649 | r1650 | |
| 151 | 152 | UINT32 pending_irq; |
| 152 | 153 | UINT32 nmi_state; |
| 153 | 154 | UINT32 irq_state; |
| 155 | UINT32 poll_state; | |
| 154 | 156 | UINT8 no_interrupt; |
| 155 | 157 | |
| 156 | 158 | int (*irq_callback)(int irqline); |
| r1649 | r1650 | |
| 223 | 225 | Mod_RM.RM.w[i] = (WREGS)( i & 7 ); |
| 224 | 226 | Mod_RM.RM.b[i] = (BREGS)reg_name[i & 7]; |
| 225 | 227 | } |
| 228 | ||
| 229 | I.poll_state = 1; | |
| 226 | 230 | } |
| 227 | 231 | |
| 228 | 232 | static void nec_exit (void) |
| r1649 | r1650 | |
| 636 | 640 | OP( 0x98, i_cbw ) { I.regs.b[AH] = (I.regs.b[AL] & 0x80) ? 0xff : 0; CLK(2); } |
| 637 | 641 | OP( 0x99, i_cwd ) { I.regs.w[DW] = (I.regs.b[AH] & 0x80) ? 0xffff : 0; CLK(4); } |
| 638 | 642 | OP( 0x9a, i_call_far ) { UINT32 tmp, tmp2; FETCHWORD(tmp); FETCHWORD(tmp2); PUSH(I.sregs[PS]); PUSH(I.ip); I.ip = (WORD)tmp; I.sregs[PS] = (WORD)tmp2; CHANGE_PC; CLKW(29,29,13,29,21,9,I.regs.w[SP]); } |
| 639 | OP( 0x9b, i_wait ) { | |
| 643 | OP( 0x9b, i_wait ) { if | |
| 640 | 644 | OP( 0x9c, i_pushf ) { UINT16 tmp = CompressFlags(); PUSH( tmp ); CLKS(12,8,3); } |
| 641 | 645 | OP( 0x9d, i_popf ) { UINT32 tmp; POP(tmp); ExpandFlags(tmp); CLKS(12,8,5); if (I.TF) nec_trap(); } |
| 642 | 646 | OP( 0x9e, i_sahf ) { UINT32 tmp = (CompressFlags() & 0xff00) | (I.regs.b[AH] & 0xd5); ExpandFlags(tmp); CLKS(3,3,2); } |
| r1649 | r1650 | |
| 997 | 1001 | } |
| 998 | 1002 | } |
| 999 | 1003 | |
| 1000 | #ifdef MAME_DEBUG | |
| 1004 | static void set_poll_line(int state) | |
| 1005 | { | |
| 1006 | I.poll_state = state; | |
| 1007 | } | |
| 1008 | ||
| 1009 | #ifdef ENABLE_DEBUGGER | |
| 1001 | 1010 | static offs_t nec_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 1002 | 1011 | { |
| 1003 | 1012 | return necv_dasm_one(buffer, pc, oprom); |
| 1004 | 1013 | } |
| 1005 | #endif /* | |
| 1014 | #endif /* ENABLE_DEBUGGER */ | |
| 1006 | 1015 | |
| 1007 | 1016 | static void nec_init(int index, int clock, const void *config, int (*irqcallback)(int), int type) |
| 1008 | 1017 | { |
| r1649 | r1650 | |
| 1021 | 1030 | state_save_register_item(names[type], index, I.pending_irq); |
| 1022 | 1031 | state_save_register_item(names[type], index, I.nmi_state); |
| 1023 | 1032 | state_save_register_item(names[type], index, I.irq_state); |
| 1033 | state_save_register_item(names[type], index, I.poll_state); | |
| 1024 | 1034 | state_save_register_item(names[type], index, I.AuxVal); |
| 1025 | 1035 | state_save_register_item(names[type], index, I.OverVal); |
| 1026 | 1036 | state_save_register_item(names[type], index, I.ZeroVal); |
| r1649 | r1650 | |
| 1169 | 1179 | if (I.no_interrupt) |
| 1170 | 1180 | I.no_interrupt--; |
| 1171 | 1181 | |
| 1172 | CALL_ | |
| 1182 | CALL_ | |
| 1173 | 1183 | nec_instruction[FETCHOP](); |
| 1174 | 1184 | } |
| 1175 | 1185 | return cycles - nec_ICount; |
| r1649 | r1650 | |
| 1200 | 1210 | if (I.no_interrupt) |
| 1201 | 1211 | I.no_interrupt--; |
| 1202 | 1212 | |
| 1203 | CALL_ | |
| 1213 | CALL_ | |
| 1204 | 1214 | nec_instruction[FETCHOP](); |
| 1205 | 1215 | } |
| 1206 | 1216 | return cycles - nec_ICount; |
| r1649 | r1650 | |
| 1232 | 1242 | if (I.no_interrupt) |
| 1233 | 1243 | I.no_interrupt--; |
| 1234 | 1244 | |
| 1235 | CALL_ | |
| 1245 | CALL_ | |
| 1236 | 1246 | nec_instruction[FETCHOP](); |
| 1237 | 1247 | } |
| 1238 | 1248 | |
| r1649 | r1650 | |
| 1251 | 1261 | switch (state) |
| 1252 | 1262 | { |
| 1253 | 1263 | /* --- the following bits of info are set as 64-bit signed integers --- */ |
| 1254 | case CPUINFO_INT_INPUT_STATE + 0: set_irq_line(0, info->i); break; | |
| 1255 | case CPUINFO_INT_INPUT_STATE + INPUT_LINE_NMI: set_irq_line(INPUT_LINE_NMI, info->i); break; | |
| 1264 | case CPUINFO_INT_INPUT_STATE + 0: set_irq_line(0, info->i); break; | |
| 1265 | case CPUINFO_INT_INPUT_STATE + INPUT_LINE_NMI: set_irq_line(INPUT_LINE_NMI, info->i); break; | |
| 1266 | case CPUINFO_INT_INPUT_STATE + NEC_INPUT_LINE_POLL: set_poll_line(info->i); break; | |
| 1256 | 1267 | |
| 1257 | 1268 | case CPUINFO_INT_PC: |
| 1258 | 1269 | case CPUINFO_INT_REGISTER + NEC_PC: |
| r1649 | r1650 | |
| 1329 | 1340 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_IO: info->i = 16; break; |
| 1330 | 1341 | case CPUINFO_INT_ADDRBUS_SHIFT + ADDRESS_SPACE_IO: info->i = 0; break; |
| 1331 | 1342 | |
| 1332 | case CPUINFO_INT_INPUT_STATE + 0: info->i = (I.pending_irq & INT_IRQ) ? ASSERT_LINE : CLEAR_LINE; break; | |
| 1333 | case CPUINFO_INT_INPUT_STATE + INPUT_LINE_NMI: info->i = I.nmi_state; break; | |
| 1343 | case CPUINFO_INT_INPUT_STATE + 0: info->i = (I.pending_irq & INT_IRQ) ? ASSERT_LINE : CLEAR_LINE; break; | |
| 1344 | case CPUINFO_INT_INPUT_STATE + INPUT_LINE_NMI: info->i = I.nmi_state; break; | |
| 1345 | case CPUINFO_INT_INPUT_STATE + NEC_INPUT_LINE_POLL: info->i = I.poll_state; break; | |
| 1334 | 1346 | |
| 1335 | 1347 | case CPUINFO_INT_PREVIOUSPC: /* not supported */ break; |
| 1336 | 1348 | |
| r1649 | r1650 | |
| 1363 | 1375 | case CPUINFO_PTR_EXIT: info->exit = nec_exit; break; |
| 1364 | 1376 | case CPUINFO_PTR_EXECUTE: /* set per-CPU */ break; |
| 1365 | 1377 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1366 | #ifdef | |
| 1378 | #ifdef ENABLE_DEBUGGER | |
| 1367 | 1379 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = nec_dasm; break; |
| 1368 | #endif /* | |
| 1380 | #endif /* ENABLE_DEBUGGER */ | |
| 1369 | 1381 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &nec_ICount; break; |
| 1370 | 1382 | |
| 1371 | 1383 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 3 | 3 | typedef enum { DS1, PS, SS, DS0 } SREGS; |
| 4 | 4 | typedef enum { AW, CW, DW, BW, SP, BP, IX, IY } WREGS; |
| 5 | 5 | |
| 6 | #define NEC_NMI_INT_VECTOR 2 | |
| 6 | #define NEC_NMI_INT_VECTOR 2 | |
| 7 | #define NEC_INPUT_LINE_POLL 20 | |
| 7 | 8 | |
| 8 | 9 | /* Cpu types, steps of 8 to help the cycle count calculation */ |
| 9 | 10 | #define V33 0 |
| r1649 | r1650 | |
|---|---|---|
| 64 | 64 | *****************************************************************************/ |
| 65 | 65 | |
| 66 | 66 | #include "debugger.h" |
| 67 | #include "deprecat.h" | |
| 67 | 68 | #include "i8051.h" |
| 68 | 69 | |
| 69 | 70 | #define VERBOSE 0 |
| r1649 | r1650 | |
| 599 | 600 | PPC = PC; |
| 600 | 601 | |
| 601 | 602 | //Call Debugger |
| 602 | CALL_ | |
| 603 | CALL_ | |
| 603 | 604 | |
| 604 | 605 | //remove after testing |
| 605 | 606 | if(PC != PPC) op = cpu_readop(PC); |
| 606 | 607 | |
| 607 | 608 | //Update Timer (if any timers are running) |
| 608 | if((GET_ | |
| 609 | if((GET_ | |
| 609 | 610 | update_timer(i8051.prev_used_cycles); |
| 610 | 611 | |
| 611 | 612 | //Update Serial (if serial port sending data) |
| r1649 | r1650 | |
| 1948 | 1949 | SET_AC(ac); |
| 1949 | 1950 | SET_OV(ov); |
| 1950 | 1951 | |
| 1951 | #ifdef | |
| 1952 | #ifdef ENABLE_DEBUGGER | |
| 1952 | 1953 | // mame_printf_debug("add: result=%x, c=%x, ac=%x, ov=%x\n",a+data+c,cy,ac,ov); |
| 1953 | 1954 | #endif |
| 1954 | 1955 | } |
| r1649 | r1650 | |
| 1966 | 1967 | SET_AC(ac); |
| 1967 | 1968 | SET_OV(ov); |
| 1968 | 1969 | |
| 1969 | #ifdef | |
| 1970 | #ifdef ENABLE_DEBUGGER | |
| 1970 | 1971 | // mame_printf_debug("sub: a=%x, d=%x, c=%x, result=%x, cy=%x, ac=%x, ov=%x\n",a,data,c,a-data-c,cy,ac,ov); |
| 1971 | 1972 | #endif |
| 1972 | 1973 | } |
| r1649 | r1650 | |
| 2479 | 2480 | case CPUINFO_PTR_EXIT: info->exit = i8051_exit; break; |
| 2480 | 2481 | case CPUINFO_PTR_EXECUTE: info->execute = i8051_execute; break; |
| 2481 | 2482 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 2482 | #ifdef | |
| 2483 | #ifdef ENABLE_DEBUGGER | |
| 2483 | 2484 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = i8051_dasm; break; |
| 2484 | #endif /* | |
| 2485 | #endif /* ENABLE_DEBUGGER */ | |
| 2485 | 2486 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &i8051_icount; break; |
| 2486 | 2487 | |
| 2487 | 2488 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM: info->internal_map = 0; break; |
| r1649 | r1650 | |
|---|---|---|
| 114 | 114 | extern void i8051_set_serial_rx_callback(int (*callback)(void)); |
| 115 | 115 | extern void i8051_set_eram_iaddr_callback(READ32_HANDLER((*callback))); |
| 116 | 116 | |
| 117 | #ifdef | |
| 117 | #ifdef ENABLE_DEBUGGER | |
| 118 | 118 | extern offs_t i8051_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 119 | #endif /* | |
| 119 | #endif /* ENABLE_DEBUGGER */ | |
| 120 | 120 | |
| 121 | 121 | /**************************************************************************** |
| 122 | 122 | * 8752 Section |
| r1649 | r1650 | |
|---|---|---|
| 218 | 218 | |
| 219 | 219 | size_t mips3com_init(mips3_state *mips, mips3_flavor flavor, int bigendian, int index, int clock, const struct mips3_config *config, int (*irqcallback)(int), void *memory); |
| 220 | 220 | void mips3com_reset(mips3_state *mips); |
| 221 | #ifdef | |
| 221 | #ifdef ENABLE_DEBUGGER | |
| 222 | 222 | offs_t mips3com_dasm(mips3_state *mips, char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 223 | 223 | #endif |
| 224 | 224 | void mips3com_update_cycle_counting(mips3_state *mips); |
| r1649 | r1650 | |
|---|---|---|
| 79 | 79 | ***************************************************************************/ |
| 80 | 80 | |
| 81 | 81 | #include "mips3fe.h" |
| 82 | #include "deprecat.h" | |
| 82 | 83 | |
| 83 | 84 | |
| 84 | 85 | /*************************************************************************** |
| r1649 | r1650 | |
| 228 | 229 | UINT32 abs32mask[4]; |
| 229 | 230 | |
| 230 | 231 | /* C functions */ |
| 231 | x86code * activecpu_gettotalcycles | |
| 232 | x86code * activecpu_gettotalcycles | |
| 232 | 233 | x86code * mips3com_update_cycle_counting; |
| 233 | 234 | x86code * mips3com_tlbr; |
| 234 | 235 | x86code * mips3com_tlbwi; |
| r1649 | r1650 | |
| 440 | 441 | mips3.drcdata->abs32mask[0] = 0x7fffffff; |
| 441 | 442 | |
| 442 | 443 | /* get pointers to C functions */ |
| 443 | mips3.drcdata->activecpu_gettotalcycles | |
| 444 | mips3.drcdata->activecpu_gettotalcycles | |
| 444 | 445 | mips3.drcdata->mips3com_update_cycle_counting = (x86code *)mips3com_update_cycle_counting; |
| 445 | 446 | mips3.drcdata->mips3com_tlbr = (x86code *)mips3com_tlbr; |
| 446 | 447 | mips3.drcdata->mips3com_tlbwi = (x86code *)mips3com_tlbwi; |
| r1649 | r1650 | |
| 3048 | 3049 | case COP0_Count: |
| 3049 | 3050 | emit_flush_cycles_before_instruction(drc, compiler, desc, 1); |
| 3050 | 3051 | emit_mov_m32_r32(DRCTOP, CPR0ADDR(COP0_Count), REG_EAX); // mov [Count],eax |
| 3051 | emit_call_m64(DRCTOP, MDRC(&mips3.drcdata->activecpu_gettotalcycles | |
| 3052 | emit_call_m64(DRCTOP, MDRC(&mips3.drcdata->activecpu_gettotalcycles | |
| 3052 | 3053 | emit_mov_r32_m32(DRCTOP, REG_EDX, CPR0ADDR(COP0_Count)); // mov edx,[Count] |
| 3053 | 3054 | emit_sub_r64_r64(DRCTOP, REG_RAX, REG_RDX); // sub rax,rdx |
| 3054 | 3055 | emit_sub_r64_r64(DRCTOP, REG_RAX, REG_RDX); // sub rax,rdx |
| r1649 | r1650 | |
| 3098 | 3099 | case COP0_Count: |
| 3099 | 3100 | compiler->cycles += MIPS3_COUNT_READ_CYCLES; |
| 3100 | 3101 | emit_flush_cycles_before_instruction(drc, compiler, desc, MIPS3_COUNT_READ_CYCLES); |
| 3101 | emit_call_m64(DRCTOP, MDRC(&mips3.drcdata->activecpu_gettotalcycles | |
| 3102 | emit_call_m64(DRCTOP, MDRC(&mips3.drcdata->activecpu_gettotalcycles | |
| 3102 | 3103 | emit_sub_r64_m64(DRCTOP, REG_RAX, MDRC(&mips3.core->count_zero_time)); // sub rax,[count_zero_time] |
| 3103 | 3104 | emit_shr_r64_imm(DRCTOP, REG_RAX, 1); // shr rax,1 |
| 3104 | 3105 | emit_movsxd_r64_r32(DRCTOP, REG_RAX, REG_EAX); // movsxd rax,eax |
| r1649 | r1650 | |
| 3111 | 3112 | |
| 3112 | 3113 | case COP0_Random: |
| 3113 | 3114 | emit_flush_cycles_before_instruction(drc, compiler, desc, 1); |
| 3114 | emit_call_m64(DRCTOP, MDRC(&mips3.drcdata->activecpu_gettotalcycles | |
| 3115 | emit_call_m64(DRCTOP, MDRC(&mips3.drcdata->activecpu_gettotalcycles | |
| 3115 | 3116 | emit_mov_r32_m32(DRCTOP, REG_ECX, CPR0ADDR(COP0_Wired)); // mov ecx,[Wired] |
| 3116 | 3117 | emit_mov_r32_imm(DRCTOP, REG_R8D, 48); // mov r8d,48 |
| 3117 | 3118 | emit_and_r32_imm(DRCTOP, REG_ECX, 0x3f); // and ecx,0x3f |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "debugger.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "r3000.h" |
| 11 | 12 | |
| 12 | 13 | |
| r1649 | r1650 | |
| 750 | 751 | |
| 751 | 752 | /* debugging */ |
| 752 | 753 | r3000.ppc = r3000.pc; |
| 753 | CALL_ | |
| 754 | CALL_ | |
| 754 | 755 | |
| 755 | 756 | /* instruction fetch */ |
| 756 | 757 | op = ROPCODE(r3000.pc); |
| r1649 | r1650 | |
| 932 | 933 | DISASSEMBLY HOOK |
| 933 | 934 | ***************************************************************************/ |
| 934 | 935 | |
| 935 | #ifdef | |
| 936 | #ifdef ENABLE_DEBUGGER | |
| 936 | 937 | static offs_t r3000_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 937 | 938 | { |
| 938 | 939 | extern unsigned dasmr3k(char *, unsigned, UINT32); |
| r1649 | r1650 | |
| 944 | 945 | |
| 945 | 946 | return dasmr3k(buffer, pc, op); |
| 946 | 947 | } |
| 947 | #endif /* | |
| 948 | #endif /* ENABLE_DEBUGGER */ | |
| 948 | 949 | |
| 949 | 950 | |
| 950 | 951 | |
| r1649 | r1650 | |
| 1287 | 1288 | case CPUINFO_PTR_EXIT: info->exit = r3000_exit; break; |
| 1288 | 1289 | case CPUINFO_PTR_EXECUTE: info->execute = r3000_execute; break; |
| 1289 | 1290 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1290 | #ifdef | |
| 1291 | #ifdef ENABLE_DEBUGGER | |
| 1291 | 1292 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = r3000_dasm; break; |
| 1292 | #endif /* | |
| 1293 | #endif /* ENABLE_DEBUGGER */ | |
| 1293 | 1294 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &r3000_icount; break; |
| 1294 | 1295 | |
| 1295 | 1296 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | * |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | #include "ui.h" | |
| 17 | 16 | #include "debugger.h" |
| 17 | #include "deprecat.h" | |
| 18 | #include "osd_cpu.h" | |
| 18 | 19 | #include "psx.h" |
| 19 | #include "osd_cpu.h" | |
| 20 | 20 | |
| 21 | 21 | #define LOG_BIOSCALL ( 0 ) |
| 22 | 22 | |
| r1649 | r1650 | |
| 152 | 152 | static void mips_stop( void ) |
| 153 | 153 | { |
| 154 | 154 | DEBUGGER_BREAK; |
| 155 | CALL_ | |
| 155 | CALL_ | |
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | #if LOG_BIOSCALL |
| r1649 | r1650 | |
| 987 | 987 | log_bioscall(); |
| 988 | 988 | #endif |
| 989 | 989 | |
| 990 | CALL_ | |
| 990 | CALL_ | |
| 991 | 991 | |
| 992 | 992 | mipscpu.op = cpu_readop32( mipscpu.pc ); |
| 993 | 993 | switch( INS_OP( mipscpu.op ) ) |
| r1649 | r1650 | |
| 2261 | 2261 | * Return a formatted string for a register |
| 2262 | 2262 | ****************************************************************************/ |
| 2263 | 2263 | |
| 2264 | #ifdef | |
| 2264 | #ifdef ENABLE_DEBUGGER | |
| 2265 | 2265 | static offs_t mips_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 2266 | 2266 | { |
| 2267 | 2267 | return DasmMIPS( buffer, pc, opram ); |
| 2268 | 2268 | } |
| 2269 | #endif /* | |
| 2269 | #endif /* ENABLE_DEBUGGER */ | |
| 2270 | 2270 | |
| 2271 | 2271 | /* preliminary gte code */ |
| 2272 | 2272 | |
| r1649 | r1650 | |
| 3475 | 3475 | case CPUINFO_PTR_EXIT: info->exit = mips_exit; break; |
| 3476 | 3476 | case CPUINFO_PTR_EXECUTE: info->execute = mips_execute; break; |
| 3477 | 3477 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 3478 | #ifdef | |
| 3478 | #ifdef ENABLE_DEBUGGER | |
| 3479 | 3479 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = mips_dasm; break; |
| 3480 | #endif /* | |
| 3480 | #endif /* ENABLE_DEBUGGER */ | |
| 3481 | 3481 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &mips_ICount; break; |
| 3482 | 3482 | |
| 3483 | 3483 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 195 | 195 | /* OP_COP0 */ |
| 196 | 196 | #define CF_RFE ( 16 ) |
| 197 | 197 | |
| 198 | #ifdef | |
| 198 | #ifdef ENABLE_DEBUGGER | |
| 199 | 199 | extern unsigned DasmMIPS( char *buffer, UINT32 pc, const UINT8 *opram ); |
| 200 | 200 | #endif |
| 201 | 201 |
| r1649 | r1650 | |
|---|---|---|
| 16 | 16 | #include "debugger.h" |
| 17 | 17 | #include "mips3com.h" |
| 18 | 18 | #include "mips3fe.h" |
| 19 | #include "deprecat.h" | |
| 19 | 20 | #include "cpu/x86log.h" |
| 20 | 21 | #include "cpu/drcfe.h" |
| 21 | 22 | |
| r1649 | r1650 | |
| 30 | 31 | #define LOG_CODE (0) |
| 31 | 32 | #define SINGLE_INSTRUCTION_MODE (0) |
| 32 | 33 | |
| 33 | #ifdef | |
| 34 | #ifdef ENABLE_DEBUGGER | |
| 34 | 35 | #define COMPARE_AGAINST_C (0) |
| 35 | 36 | #else |
| 36 | 37 | #define COMPARE_AGAINST_C (0) |
| r1649 | r1650 | |
| 302 | 303 | mips3_dasm - disassemble an instruction |
| 303 | 304 | -------------------------------------------------*/ |
| 304 | 305 | |
| 305 | #ifdef | |
| 306 | #ifdef ENABLE_DEBUGGER | |
| 306 | 307 | static offs_t mips3_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 307 | 308 | { |
| 308 | 309 | return mips3com_dasm(mips3.core, buffer, pc, oprom, opram); |
| 309 | 310 | } |
| 310 | #endif /* | |
| 311 | #endif /* ENABLE_DEBUGGER */ | |
| 311 | 312 | |
| 312 | 313 | |
| 313 | 314 | |
| r1649 | r1650 | |
| 568 | 569 | case CPUINFO_PTR_RESET: info->reset = mips3_reset; break; |
| 569 | 570 | case CPUINFO_PTR_EXIT: info->exit = mips3_exit; break; |
| 570 | 571 | case CPUINFO_PTR_EXECUTE: info->execute = mips3_execute; break; |
| 571 | #ifdef | |
| 572 | #ifdef ENABLE_DEBUGGER | |
| 572 | 573 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = mips3_dasm; break; |
| 573 | #endif /* | |
| 574 | #endif /* ENABLE_DEBUGGER */ | |
| 574 | 575 | case CPUINFO_PTR_TRANSLATE: info->translate = mips3_translate; break; |
| 575 | 576 | |
| 576 | 577 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
| 912 | 913 | DISASSEMBLERS |
| 913 | 914 | ***************************************************************************/ |
| 914 | 915 | |
| 915 | #if !defined( | |
| 916 | #if !defined(ENABLE_DEBUGGER) && (LOG_CODE) | |
| 916 | 917 | #include "mips3dsm.c" |
| 917 | 918 | #endif |
| 918 | 919 |
| r1649 | r1650 | |
|---|---|---|
| 1001 | 1001 | UINT32 result; |
| 1002 | 1002 | UINT32 physpc; |
| 1003 | 1003 | |
| 1004 | #ifdef | |
| 1004 | #ifdef ENABLE_DEBUGGER | |
| 1005 | 1005 | if (Machine->debug_mode) |
| 1006 | 1006 | { |
| 1007 | 1007 | /* emit debugging */ |
| r1649 | r1650 | |
| 3571 | 3571 | emit_mov_m32_r32(DRCTOP, CPR0ADDR(COP0_Status), REG_EAX); // mov [COP0_Status],eax |
| 3572 | 3572 | emit_xor_r32_r32(DRCTOP, REG_EBX, REG_EAX); // xor ebx,eax |
| 3573 | 3573 | /* |
| 3574 | #ifdef | |
| 3574 | #ifdef ENABLE_DEBUGGER | |
| 3575 | 3575 | _test_r32_imm(REG_EAX, 0xe0); // test eax,0xe0 |
| 3576 | 3576 | _jcc_short_link(COND_Z, &link1); // jz skip |
| 3577 | 3577 | _sub_r32_imm(REG_ESP, 4); // sub esp,4 |
| r1649 | r1650 | |
| 3594 | 3594 | emit_mov_m32_r32(DRCTOP, ICOUNTADDR, REG_EBP); // mov [icount],ebp |
| 3595 | 3595 | emit_sub_r32_imm(DRCTOP, REG_ESP, 8); // sub esp,8 |
| 3596 | 3596 | emit_push_r32(DRCTOP, REG_EAX); // push eax |
| 3597 | emit_call(DRCTOP, (x86code *)activecpu_gettotalcycles | |
| 3597 | emit_call(DRCTOP, (x86code *)activecpu_gettotalcycles | |
| 3598 | 3598 | emit_pop_r32(DRCTOP, REG_EBX); // pop ebx |
| 3599 | 3599 | emit_add_r32_imm(DRCTOP, REG_ESP, 8); // add esp,8 |
| 3600 | 3600 | emit_sub_r32_r32(DRCTOP, REG_EAX, REG_EBX); // sub eax,ebx |
| r1649 | r1650 | |
| 3647 | 3647 | resolve_link(DRCTOP, &link1); // notneg: |
| 3648 | 3648 | emit_mov_m32_r32(DRCTOP, ICOUNTADDR, REG_EBP); // mov [icount],ebp |
| 3649 | 3649 | emit_sub_r32_imm(DRCTOP, REG_ESP, 12); // sub esp,12 |
| 3650 | emit_call(DRCTOP, (x86code *)activecpu_gettotalcycles | |
| 3650 | emit_call(DRCTOP, (x86code *)activecpu_gettotalcycles | |
| 3651 | 3651 | emit_add_r32_imm(DRCTOP, REG_ESP, 12); // add esp,12 |
| 3652 | 3652 | emit_sub_r32_m32(DRCTOP, REG_EAX, MABS(LO(&mips3.core->count_zero_time))); // sub eax,[mips3.core->count_zero_time+0] |
| 3653 | 3653 | emit_sbb_r32_m32(DRCTOP, REG_EDX, MABS(HI(&mips3.core->count_zero_time))); // sbb edx,[mips3.core->count_zero_time+4] |
| r1649 | r1650 | |
|---|---|---|
| 144 | 144 | mips->cpr[0][COP0_Count] = 0; |
| 145 | 145 | mips->cpr[0][COP0_Config] = compute_config_register(mips); |
| 146 | 146 | mips->cpr[0][COP0_PRId] = compute_prid_register(mips); |
| 147 | mips->count_zero_time = activecpu_gettotalcycles | |
| 147 | mips->count_zero_time = activecpu_gettotalcycles | |
| 148 | 148 | |
| 149 | 149 | /* recompute the TLB table */ |
| 150 | 150 | mips3com_recompute_tlb_table(mips); |
| r1649 | r1650 | |
| 156 | 156 | CPU |
| 157 | 157 | -------------------------------------------------*/ |
| 158 | 158 | |
| 159 | #ifdef | |
| 159 | #ifdef ENABLE_DEBUGGER | |
| 160 | 160 | offs_t mips3com_dasm(mips3_state *mips, char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 161 | 161 | { |
| 162 | 162 | extern unsigned dasmmips3(char *, unsigned, UINT32); |
| r1649 | r1650 | |
| 167 | 167 | op = LITTLE_ENDIANIZE_INT32(op); |
| 168 | 168 | return dasmmips3(buffer, pc, op); |
| 169 | 169 | } |
| 170 | #endif /* | |
| 170 | #endif /* ENABLE_DEBUGGER */ | |
| 171 | 171 | |
| 172 | 172 | |
| 173 | 173 | |
| r1649 | r1650 | |
| 181 | 181 | /* modify the timer to go off */ |
| 182 | 182 | if ((mips->cpr[0][COP0_Status] & SR_IMEX5) && mips->cpr[0][COP0_Compare] != 0xffffffff) |
| 183 | 183 | { |
| 184 | UINT32 count = (activecpu_gettotalcycles | |
| 184 | UINT32 count = (activecpu_gettotalcycles | |
| 185 | 185 | UINT32 compare = mips->cpr[0][COP0_Compare]; |
| 186 | 186 | UINT32 cyclesleft = compare - count; |
| 187 | 187 | attotime newtime = ATTOTIME_IN_CYCLES(((INT64)cyclesleft * 2), cpu_getactivecpu()); |
| r1649 | r1650 | |
| 362 | 362 | |
| 363 | 363 | /* "random" is based off of the current cycle counting through the non-wired pages */ |
| 364 | 364 | if (unwired > 0) |
| 365 | index = ((activecpu_gettotalcycles | |
| 365 | index = ((activecpu_gettotalcycles | |
| 366 | 366 | |
| 367 | 367 | /* use the common handler to write to this index */ |
| 368 | 368 | tlb_write_common(mips, index); |
| r1649 | r1650 | |
| 559 | 559 | case CPUINFO_INT_REGISTER + MIPS3_SR: info->i = mips->cpr[0][COP0_Status]; break; |
| 560 | 560 | case CPUINFO_INT_REGISTER + MIPS3_EPC: info->i = mips->cpr[0][COP0_EPC]; break; |
| 561 | 561 | case CPUINFO_INT_REGISTER + MIPS3_CAUSE: info->i = mips->cpr[0][COP0_Cause]; break; |
| 562 | case CPUINFO_INT_REGISTER + MIPS3_COUNT: info->i = ((activecpu_gettotalcycles | |
| 562 | case CPUINFO_INT_REGISTER + MIPS3_COUNT: info->i = ((activecpu_gettotalcycles | |
| 563 | 563 | case CPUINFO_INT_REGISTER + MIPS3_COMPARE: info->i = mips->cpr[0][COP0_Compare]; break; |
| 564 | 564 | case CPUINFO_INT_REGISTER + MIPS3_INDEX: info->i = mips->cpr[0][COP0_Index]; break; |
| 565 | 565 | case CPUINFO_INT_REGISTER + MIPS3_RANDOM: info->i = mips->cpr[0][COP0_Random]; break; |
| r1649 | r1650 | |
| 631 | 631 | case CPUINFO_STR_REGISTER + MIPS3_SR: sprintf(info->s, "SR: %08X", (UINT32)mips->cpr[0][COP0_Status]); break; |
| 632 | 632 | case CPUINFO_STR_REGISTER + MIPS3_EPC: sprintf(info->s, "EPC:%08X", (UINT32)mips->cpr[0][COP0_EPC]); break; |
| 633 | 633 | case CPUINFO_STR_REGISTER + MIPS3_CAUSE: sprintf(info->s, "Cause:%08X", (UINT32)mips->cpr[0][COP0_Cause]); break; |
| 634 | case CPUINFO_STR_REGISTER + MIPS3_COUNT: sprintf(info->s, "Count:%08X", (UINT32)((activecpu_gettotalcycles | |
| 634 | case CPUINFO_STR_REGISTER + MIPS3_COUNT: sprintf(info->s, "Count:%08X", (UINT32)((activecpu_gettotalcycles | |
| 635 | 635 | case CPUINFO_STR_REGISTER + MIPS3_COMPARE: sprintf(info->s, "Compare:%08X", (UINT32)mips->cpr[0][COP0_Compare]); break; |
| 636 | 636 | case CPUINFO_STR_REGISTER + MIPS3_INDEX: sprintf(info->s, "Index:%08X", (UINT32)mips->cpr[0][COP0_Index]); break; |
| 637 | 637 | case CPUINFO_STR_REGISTER + MIPS3_RANDOM: sprintf(info->s, "Random:%08X", (UINT32)mips->cpr[0][COP0_Random]); break; |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | ***************************************************************************/ |
| 11 | 11 | |
| 12 | #include <math.h> | |
| 13 | #include "cpuintrf.h" | |
| 14 | 12 | #include "debugger.h" |
| 13 | #include "deprecat.h" | |
| 15 | 14 | #include "mips3com.h" |
| 16 | 15 | |
| 17 | 16 | |
| r1649 | r1650 | |
| 299 | 298 | } |
| 300 | 299 | |
| 301 | 300 | |
| 302 | #ifdef | |
| 301 | #ifdef ENABLE_DEBUGGER | |
| 303 | 302 | offs_t mips3_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 304 | 303 | { |
| 305 | 304 | /* common disassemble */ |
| 306 | 305 | return mips3com_dasm(&mips3.core, buffer, pc, oprom, opram); |
| 307 | 306 | } |
| 308 | #endif /* | |
| 307 | #endif /* ENABLE_DEBUGGER */ | |
| 309 | 308 | |
| 310 | 309 | |
| 311 | 310 | |
| r1649 | r1650 | |
| 480 | 479 | mips3.core.icount -= MIPS3_COUNT_READ_CYCLES; |
| 481 | 480 | else |
| 482 | 481 | mips3.core.icount = 0; |
| 483 | return (UINT32)((activecpu_gettotalcycles | |
| 482 | return (UINT32)((activecpu_gettotalcycles | |
| 484 | 483 | } |
| 485 | 484 | else if (idx == COP0_Cause) |
| 486 | 485 | { |
| r1649 | r1650 | |
| 496 | 495 | int wired = mips3.core.cpr[0][COP0_Wired] & 0x3f; |
| 497 | 496 | int range = 48 - wired; |
| 498 | 497 | if (range > 0) |
| 499 | return ((activecpu_gettotalcycles | |
| 498 | return ((activecpu_gettotalcycles | |
| 500 | 499 | else |
| 501 | 500 | return 47; |
| 502 | 501 | } |
| r1649 | r1650 | |
| 536 | 535 | |
| 537 | 536 | case COP0_Count: |
| 538 | 537 | mips3.core.cpr[0][idx] = val; |
| 539 | mips3.core.count_zero_time = activecpu_gettotalcycles | |
| 538 | mips3.core.count_zero_time = activecpu_gettotalcycles | |
| 540 | 539 | mips3com_update_cycle_counting(&mips3.core); |
| 541 | 540 | break; |
| 542 | 541 | |
| r1649 | r1650 | |
| 1682 | 1681 | |
| 1683 | 1682 | /* debugging */ |
| 1684 | 1683 | mips3.ppc = mips3.core.pc; |
| 1685 | CALL_ | |
| 1684 | CALL_ | |
| 1686 | 1685 | |
| 1687 | 1686 | /* instruction fetch */ |
| 1688 | 1687 | op = ROPCODE(mips3.pcbase | (mips3.core.pc & 0xfff)); |
| r1649 | r1650 | |
| 2139 | 2138 | case CPUINFO_PTR_INIT: /* provided per-CPU */ break; |
| 2140 | 2139 | case CPUINFO_PTR_RESET: info->reset = mips3_reset; break; |
| 2141 | 2140 | case CPUINFO_PTR_EXECUTE: info->execute = mips3_execute; break; |
| 2142 | #ifdef | |
| 2141 | #ifdef ENABLE_DEBUGGER | |
| 2143 | 2142 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = mips3_dasm; break; |
| 2144 | 2143 | #endif |
| 2145 | 2144 | case CPUINFO_PTR_TRANSLATE: info->translate = mips3_translate; break; |
| r1649 | r1650 | |
|---|---|---|
| 47 | 47 | extern void tms7000_get_info(UINT32 state, cpuinfo *info); |
| 48 | 48 | extern void tms7000_exl_get_info(UINT32 state, cpuinfo *info); |
| 49 | 49 | |
| 50 | #ifdef | |
| 50 | #ifdef ENABLE_DEBUGGER | |
| 51 | 51 | extern unsigned tms7000_dasm( char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram ); |
| 52 | #endif /* | |
| 52 | #endif /* ENABLE_DEBUGGER */ | |
| 53 | 53 | |
| 54 | 54 | #endif /* _TMS7000_H */ |
| 55 | 55 |
| r1649 | r1650 | |
|---|---|---|
| 31 | 31 | #include "cpuintrf.h" |
| 32 | 32 | #include "debugger.h" |
| 33 | 33 | #include "tms7000.h" |
| 34 | #include "deprecat.h" | |
| 34 | 35 | |
| 35 | 36 | #define VERBOSE 0 |
| 36 | 37 | |
| r1649 | r1650 | |
| 330 | 331 | case CPUINFO_PTR_RESET: info->reset = tms7000_reset; break; |
| 331 | 332 | case CPUINFO_PTR_EXECUTE: info->execute = tms7000_execute; break; |
| 332 | 333 | case CPUINFO_PTR_BURN: info->burn = NULL; /* Not supported */break; |
| 333 | #ifdef | |
| 334 | #ifdef ENABLE_DEBUGGER | |
| 334 | 335 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = tms7000_dasm; break; |
| 335 | 336 | #endif |
| 336 | 337 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &tms7000_icount; break; |
| r1649 | r1650 | |
| 470 | 471 | |
| 471 | 472 | do |
| 472 | 473 | { |
| 473 | CALL_ | |
| 474 | CALL_ | |
| 474 | 475 | |
| 475 | 476 | if( tms7000.idle_state == 0 ) |
| 476 | 477 | { |
| r1649 | r1650 | |
| 509 | 510 | |
| 510 | 511 | do |
| 511 | 512 | { |
| 512 | CALL_ | |
| 513 | CALL_ | |
| 513 | 514 | |
| 514 | 515 | if( tms7000.idle_state == 0 ) |
| 515 | 516 | { |
| r1649 | r1650 | |
|---|---|---|
| 26 | 26 | added interrupt functionality |
| 27 | 27 | */ |
| 28 | 28 | |
| 29 | #include <stdio.h> | |
| 30 | #include "cpuintrf.h" | |
| 31 | 29 | #include "debugger.h" |
| 30 | #include "deprecat.h" | |
| 32 | 31 | #include "f8.h" |
| 33 | 32 | |
| 34 | 33 | #define S 0x01 |
| r1649 | r1650 | |
| 1577 | 1576 | do |
| 1578 | 1577 | { |
| 1579 | 1578 | UINT8 op=f8.dbus; |
| 1580 | CALL_ | |
| 1579 | CALL_ | |
| 1581 | 1580 | |
| 1582 | 1581 | switch( op ) |
| 1583 | 1582 | { |
| r1649 | r1650 | |
| 1892 | 1891 | f8 = *(f8_Regs *) src; |
| 1893 | 1892 | } |
| 1894 | 1893 | |
| 1895 | #ifdef | |
| 1894 | #ifdef ENABLE_DEBUGGER | |
| 1896 | 1895 | unsigned f8_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 1897 | #endif /* | |
| 1896 | #endif /* ENABLE_DEBUGGER */ | |
| 1898 | 1897 | |
| 1899 | 1898 | static void f8_init (int index, int clock, const void *config, int (*irqcallback)(int)) |
| 1900 | 1899 | { |
| r1649 | r1650 | |
| 2117 | 2116 | case CPUINFO_PTR_EXECUTE: info->execute = f8_execute; break; |
| 2118 | 2117 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 2119 | 2118 | |
| 2120 | #ifdef | |
| 2119 | #ifdef ENABLE_DEBUGGER | |
| 2121 | 2120 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = f8_dasm; break; |
| 2122 | #endif /* | |
| 2121 | #endif /* ENABLE_DEBUGGER */ | |
| 2123 | 2122 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &f8_icount; break; |
| 2124 | 2123 | |
| 2125 | 2124 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 94 | 94 | *****************************************************************************/ |
| 95 | 95 | |
| 96 | 96 | #include "debugger.h" |
| 97 | #include "deprecat.h" | |
| 97 | 98 | #include "z80.h" |
| 98 | 99 | #include "z80daisy.h" |
| 99 | 100 | |
| r1649 | r1650 | |
| 3565 | 3566 | Z80.after_ei = FALSE; |
| 3566 | 3567 | |
| 3567 | 3568 | PRVPC = PCD; |
| 3568 | CALL_ | |
| 3569 | CALL_ | |
| 3569 | 3570 | R++; |
| 3570 | 3571 | EXEC_INLINE(op,ROP()); |
| 3571 | 3572 | } while( z80_ICount > 0 ); |
| r1649 | r1650 | |
| 3755 | 3756 | case CPUINFO_PTR_EXIT: info->exit = z80_exit; break; |
| 3756 | 3757 | case CPUINFO_PTR_EXECUTE: info->execute = z80_execute; break; |
| 3757 | 3758 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 3758 | #ifdef | |
| 3759 | #ifdef ENABLE_DEBUGGER | |
| 3759 | 3760 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = z80_dasm; break; |
| 3760 | 3761 | #endif |
| 3761 | 3762 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &z80_ICount; break; |
| r1649 | r1650 | |
|---|---|---|
| 29 | 29 | |
| 30 | 30 | extern void z80_get_info(UINT32 state, cpuinfo *info); |
| 31 | 31 | |
| 32 | #ifdef | |
| 32 | #ifdef ENABLE_DEBUGGER | |
| 33 | 33 | extern unsigned z80_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 34 | 34 | #endif |
| 35 | 35 |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | ***************************************************************************/ |
| 11 | 11 | |
| 12 | 12 | #include "debugger.h" |
| 13 | #include "deprecat.h" | |
| 13 | 14 | #include "asap.h" |
| 14 | 15 | |
| 15 | 16 | |
| r1649 | r1650 | |
| 508 | 509 | { |
| 509 | 510 | /* debugging */ |
| 510 | 511 | asap.ppc = asap.pc; |
| 511 | CALL_ | |
| 512 | CALL_ | |
| 512 | 513 | |
| 513 | 514 | /* instruction fetch */ |
| 514 | 515 | asap.op.d = ROPCODE(asap.pc); |
| r1649 | r1650 | |
| 564 | 565 | DISASSEMBLY HOOK |
| 565 | 566 | ***************************************************************************/ |
| 566 | 567 | |
| 567 | #ifdef | |
| 568 | #ifdef ENABLE_DEBUGGER | |
| 568 | 569 | extern offs_t asap_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 569 | #endif /* | |
| 570 | #endif /* ENABLE_DEBUGGER */ | |
| 570 | 571 | |
| 571 | 572 | |
| 572 | 573 | |
| r1649 | r1650 | |
| 1806 | 1807 | case CPUINFO_PTR_EXIT: info->exit = asap_exit; break; |
| 1807 | 1808 | case CPUINFO_PTR_EXECUTE: info->execute = asap_execute; break; |
| 1808 | 1809 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1809 | #ifdef | |
| 1810 | #ifdef ENABLE_DEBUGGER | |
| 1810 | 1811 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = asap_dasm; break; |
| 1811 | #endif /* | |
| 1812 | #endif /* ENABLE_DEBUGGER */ | |
| 1812 | 1813 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &asap_icount; break; |
| 1813 | 1814 | |
| 1814 | 1815 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 86 | 86 | */ |
| 87 | 87 | |
| 88 | 88 | |
| 89 | #include "cpuintrf.h" | |
| 90 | 89 | #include "debugger.h" |
| 90 | #include "deprecat.h" | |
| 91 | 91 | #include "tms9900.h" |
| 92 | #include <math.h> | |
| 93 | 92 | |
| 94 | 93 | |
| 95 | 94 | #if (TMS99XX_MODEL == TI990_10_ID) |
| r1649 | r1650 | |
| 1474 | 1473 | } |
| 1475 | 1474 | } |
| 1476 | 1475 | |
| 1477 | #ifdef | |
| 1476 | #ifdef ENABLE_DEBUGGER | |
| 1478 | 1477 | { |
| 1479 | 1478 | if (Machine->debug_mode) |
| 1480 | 1479 | { |
| r1649 | r1650 | |
| 1503 | 1502 | #endif |
| 1504 | 1503 | #endif |
| 1505 | 1504 | |
| 1506 | mame_debug_hook(); | |
| 1505 | mame_debug_hook(I.IR); | |
| 1507 | 1506 | } |
| 1508 | 1507 | } |
| 1509 | 1508 | #endif |
| r1649 | r1650 | |
| 1967 | 1966 | |
| 1968 | 1967 | #endif |
| 1969 | 1968 | |
| 1970 | #ifdef | |
| 1969 | #ifdef ENABLE_DEBUGGER | |
| 1971 | 1970 | static unsigned tms99xx_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 1972 | 1971 | { |
| 1973 | 1972 | return Dasm9900(buffer, pc, TMS99XX_MODEL, oprom, opram); |
| 1974 | 1973 | } |
| 1975 | #endif /* | |
| 1974 | #endif /* ENABLE_DEBUGGER */ | |
| 1976 | 1975 | |
| 1977 | 1976 | |
| 1978 | 1977 | /*****************************************************************************/ |
| r1649 | r1650 | |
| 4812 | 4811 | case CPUINFO_PTR_EXIT: info->exit = tms99xx_exit; break; |
| 4813 | 4812 | case CPUINFO_PTR_EXECUTE: info->execute = tms99xx_execute; break; |
| 4814 | 4813 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 4815 | #ifdef | |
| 4814 | #ifdef ENABLE_DEBUGGER | |
| 4816 | 4815 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = tms99xx_dasm; break; |
| 4817 | #endif /* | |
| 4816 | #endif /* ENABLE_DEBUGGER */ | |
| 4818 | 4817 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &TMS99XX_ICOUNT; break; |
| 4819 | 4818 | |
| 4820 | 4819 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 214 | 214 | |
| 215 | 215 | #endif |
| 216 | 216 | |
| 217 | #ifdef | |
| 217 | #ifdef ENABLE_DEBUGGER | |
| 218 | 218 | unsigned Dasm9900 (char *buffer, unsigned pc, int model_id, const UINT8 *oprom, const UINT8 *opram); |
| 219 | 219 | #endif |
| 220 | 220 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "debugger.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "i960.h" |
| 3 | 4 | #include "i960dis.h" |
| 4 | 5 | #include <math.h> |
| r1649 | r1650 | |
| 618 | 619 | check_irqs(); |
| 619 | 620 | while(i960_icount >= 0) { |
| 620 | 621 | i960.PIP = i960.IP; |
| 621 | CALL_ | |
| 622 | CALL_ | |
| 622 | 623 | |
| 623 | 624 | i960.bursting = 0; |
| 624 | 625 | |
| r1649 | r1650 | |
| 2067 | 2068 | state_save_register_item_array("i960", index, i960.rcache_frame_addr); |
| 2068 | 2069 | } |
| 2069 | 2070 | |
| 2070 | #ifdef | |
| 2071 | #ifdef ENABLE_DEBUGGER | |
| 2071 | 2072 | static offs_t i960_disasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 2072 | 2073 | { |
| 2073 | 2074 | disassemble_t dis; |
| r1649 | r1650 | |
| 2080 | 2081 | |
| 2081 | 2082 | return dis.IPinc | dis.disflags | DASMFLAG_SUPPORTED; |
| 2082 | 2083 | } |
| 2083 | #endif /* | |
| 2084 | #endif /* ENABLE_DEBUGGER */ | |
| 2084 | 2085 | |
| 2085 | 2086 | static void i960_reset(void) |
| 2086 | 2087 | { |
| r1649 | r1650 | |
| 2118 | 2119 | case CPUINFO_PTR_EXIT: info->exit = 0; break; |
| 2119 | 2120 | case CPUINFO_PTR_EXECUTE: info->execute = i960_execute; break; |
| 2120 | 2121 | case CPUINFO_PTR_BURN: info->burn = 0; break; |
| 2121 | #ifdef | |
| 2122 | #ifdef ENABLE_DEBUGGER | |
| 2122 | 2123 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = i960_disasm; break; |
| 2123 | #endif /* | |
| 2124 | #endif /* ENABLE_DEBUGGER */ | |
| 2124 | 2125 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &i960_icount; break; |
| 2125 | 2126 | case CPUINFO_INT_CONTEXT_SIZE: info->i = sizeof(i960_state); break; |
| 2126 | 2127 | case CPUINFO_INT_MIN_INSTRUCTION_BYTES: info->i = 4; break; |
| r1649 | r1650 | |
|---|---|---|
| 65 | 65 | #include "x64drc.h" |
| 66 | 66 | #include "debugger.h" |
| 67 | 67 | |
| 68 | #include <stddef.h> | |
| 68 | #ifdef ENABLE_DEBUGGER | |
| 69 | #include "deprecat.h" | |
| 70 | #endif | |
| 69 | 71 | |
| 70 | 72 | |
| 71 | 73 | |
| r1649 | r1650 | |
| 173 | 175 | goto error; |
| 174 | 176 | |
| 175 | 177 | /* get pointers to external C functions */ |
| 176 | #ifdef | |
| 178 | #ifdef ENABLE_DEBUGGER | |
| 177 | 179 | drc->mame_debug_hook = (x86code *)mame_debug_hook; |
| 178 | 180 | #endif |
| 179 | 181 | drc->recompile_code = (x86code *)recompile_code; |
| r1649 | r1650 | |
| 419 | 421 | |
| 420 | 422 | void drc_append_call_debugger(drc_core *drc) |
| 421 | 423 | { |
| 422 | #ifdef | |
| 424 | #ifdef ENABLE_DEBUGGER | |
| 423 | 425 | if (Machine->debug_mode) |
| 424 | 426 | emit_call_m64(DRCTOP, MDRC(&drc->mame_debug_hook)); // call mame_debug_hook |
| 425 | 427 | #endif |
| r1649 | r1650 | |
|---|---|---|
| 17 | 17 | ********************************************/ |
| 18 | 18 | |
| 19 | 19 | #include "debugger.h" |
| 20 | #include "deprecat.h" | |
| 20 | 21 | #include "v810.h" |
| 21 | 22 | |
| 22 | 23 | #define clkIF 3 |
| r1649 | r1650 | |
| 973 | 974 | while(v810_ICount>=0) |
| 974 | 975 | { |
| 975 | 976 | v810.PPC=PC; |
| 976 | CALL_ | |
| 977 | CALL_ | |
| 977 | 978 | OP=R_OP(PC); |
| 978 | 979 | PC+=2; |
| 979 | 980 | v810_ICount-= OpCodeTable[OP>>10](); |
| r1649 | r1650 | |
| 1182 | 1183 | case CPUINFO_PTR_EXIT: info->exit = NULL; break; |
| 1183 | 1184 | case CPUINFO_PTR_EXECUTE: info->execute = v810_execute; break; |
| 1184 | 1185 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1185 | #ifdef | |
| 1186 | #ifdef ENABLE_DEBUGGER | |
| 1186 | 1187 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = v810_dasm; break; |
| 1187 | #endif /* | |
| 1188 | #endif /* ENABLE_DEBUGGER */ | |
| 1188 | 1189 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &v810_ICount; break; |
| 1189 | 1190 | |
| 1190 | 1191 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 46 | 46 | #define ADD(dst, src) { UINT64 res=(UINT64)(dst)+(UINT64)(src); SetCF(res); SetOF_Add(res,src,dst); SetSZPF(res); dst=(UINT32)res; } |
| 47 | 47 | #define SUB(dst, src) { UINT64 res=(UINT64)(dst)-(INT64)(src); SetCF(res); SetOF_Sub(res,src,dst); SetSZPF(res); dst=(UINT32)res; } |
| 48 | 48 | |
| 49 | #ifdef | |
| 49 | #ifdef ENABLE_DEBUGGER | |
| 50 | 50 | offs_t v810_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 51 | 51 | #endif |
| 52 | 52 |
| r1649 | r1650 | |
|---|---|---|
| 33 | 33 | #include <string.h> |
| 34 | 34 | #include <ctype.h> |
| 35 | 35 | |
| 36 | #ifdef | |
| 36 | #ifdef ENABLE_DEBUGGER /* Compile interface to MAME */ | |
| 37 | 37 | #include "tms32025.h" |
| 38 | 38 | #include "debugger.h" |
| 39 | 39 | extern UINT16 *tms32025_pgmmap[0x200]; |
| r1649 | r1650 | |
|---|---|---|
| 118 | 118 | |
| 119 | 119 | |
| 120 | 120 | |
| 121 | #include "debugger.h" | |
| 122 | #include "deprecat.h" | |
| 121 | 123 | #include "tms32025.h" |
| 122 | #include "debugger.h" | |
| 123 | 124 | |
| 124 | 125 | |
| 125 | 126 | #define CLK 4 /* 1 cycle equals 4 clock ticks */ /* PE/DI */ |
| r1649 | r1650 | |
| 1981 | 1982 | while (R.idle && tms32025_icount > 0) |
| 1982 | 1983 | process_timer(tms32025_icount); |
| 1983 | 1984 | |
| 1984 | if (tms32025_icount <= 0) CALL_ | |
| 1985 | if (tms32025_icount <= 0) CALL_ | |
| 1985 | 1986 | |
| 1986 | 1987 | |
| 1987 | 1988 | while (tms32025_icount > 0) |
| r1649 | r1650 | |
| 1994 | 1995 | |
| 1995 | 1996 | R.PREVPC = R.PC; |
| 1996 | 1997 | |
| 1997 | CALL_ | |
| 1998 | CALL_ | |
| 1998 | 1999 | |
| 1999 | 2000 | R.opcode.d = M_RDOP(R.PC); |
| 2000 | 2001 | R.PC++; |
| r1649 | r1650 | |
| 2019 | 2020 | if (R.init_load_addr == 2) { /* Repeat next instruction */ |
| 2020 | 2021 | R.PREVPC = R.PC; |
| 2021 | 2022 | |
| 2022 | CALL_ | |
| 2023 | CALL_ | |
| 2023 | 2024 | |
| 2024 | 2025 | R.opcode.d = M_RDOP(R.PC); |
| 2025 | 2026 | R.PC++; |
| r1649 | r1650 | |
| 2384 | 2385 | case CPUINFO_PTR_EXIT: info->exit = tms32025_exit; break; |
| 2385 | 2386 | case CPUINFO_PTR_EXECUTE: info->execute = tms32025_execute; break; |
| 2386 | 2387 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 2387 | #ifdef | |
| 2388 | #ifdef ENABLE_DEBUGGER | |
| 2388 | 2389 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = tms32025_dasm; break; |
| 2389 | #endif /* | |
| 2390 | #endif /* ENABLE_DEBUGGER */ | |
| 2390 | 2391 | case CPUINFO_PTR_READ: info->read = tms32025_read; break; |
| 2391 | 2392 | case CPUINFO_PTR_WRITE: info->write = tms32025_write; break; |
| 2392 | 2393 | case CPUINFO_PTR_READOP: info->readop = tms32025_readop; break; |
| r1649 | r1650 | |
|---|---|---|
| 71 | 71 | extern void tms32026_get_info(UINT32 state, cpuinfo *info); |
| 72 | 72 | |
| 73 | 73 | |
| 74 | #ifdef | |
| 74 | #ifdef ENABLE_DEBUGGER | |
| 75 | 75 | offs_t tms32025_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 76 | 76 | #endif |
| 77 | 77 |
| r1649 | r1650 | |
|---|---|---|
| 54 | 54 | |
| 55 | 55 | |
| 56 | 56 | #include "debugger.h" |
| 57 | #include "deprecat.h" | |
| 57 | 58 | #include "pic16c5x.h" |
| 58 | 59 | |
| 59 | 60 | |
| r1649 | r1650 | |
| 840 | 841 | if (PD == 0) /* Sleep Mode */ |
| 841 | 842 | { |
| 842 | 843 | inst_cycles = (1*CLK); |
| 843 | CALL_ | |
| 844 | CALL_ | |
| 844 | 845 | if (WDTE) { |
| 845 | 846 | pic16C5x_update_watchdog(1*CLK); |
| 846 | 847 | } |
| r1649 | r1650 | |
| 849 | 850 | { |
| 850 | 851 | R.PREVPC = R.PC; |
| 851 | 852 | |
| 852 | CALL_ | |
| 853 | CALL_ | |
| 853 | 854 | |
| 854 | 855 | R.opcode.d = M_RDOP(R.PC); |
| 855 | 856 | R.PC++; |
| r1649 | r1650 | |
| 1012 | 1013 | case CPUINFO_PTR_EXIT: info->exit = pic16C5x_exit; break; |
| 1013 | 1014 | case CPUINFO_PTR_EXECUTE: info->execute = pic16C5x_execute; break; |
| 1014 | 1015 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1015 | #ifdef | |
| 1016 | #ifdef ENABLE_DEBUGGER | |
| 1016 | 1017 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = pic16C5x_dasm; break; |
| 1017 | #endif /* | |
| 1018 | #endif /* ENABLE_DEBUGGER */ | |
| 1018 | 1019 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &pic16C5x_icount; break; |
| 1019 | 1020 | |
| 1020 | 1021 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 126 | 126 | |
| 127 | 127 | |
| 128 | 128 | #if (HAS_PIC16C54) || (HAS_PIC16C55) || (HAS_PIC16C56) || (HAS_PIC16C57) || (HAS_PIC16C58) |
| 129 | #ifdef | |
| 129 | #ifdef ENABLE_DEBUGGER | |
| 130 | 130 | offs_t pic16C5x_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 131 | 131 | #endif |
| 132 | 132 | #endif |
| r1649 | r1650 | |
|---|---|---|
| 26 | 26 | #include <string.h> |
| 27 | 27 | #include <ctype.h> |
| 28 | 28 | |
| 29 | #ifdef | |
| 29 | #ifdef ENABLE_DEBUGGER /* Compile interface to MAME */ | |
| 30 | 30 | #include "cpuintrf.h" |
| 31 | 31 | static const UINT8 *rombase; |
| 32 | 32 | static const UINT8 *rambase; |
| r1649 | r1650 | |
|---|---|---|
| 44 | 44 | #define READ_TX0_18BIT(A) ((signed)program_read_dword_32be((A)<<2)) |
| 45 | 45 | #define WRITE_TX0_18BIT(A,V) (program_write_dword_32be((A)<<2,(V))) |
| 46 | 46 | |
| 47 | #ifdef | |
| 47 | #ifdef ENABLE_DEBUGGER | |
| 48 | 48 | unsigned tx0_dasm_64kw(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 49 | 49 | unsigned tx0_dasm_8kw(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 50 | #endif /* | |
| 50 | #endif /* ENABLE_DEBUGGER */ |
| r1649 | r1650 | |
|---|---|---|
| 335 | 335 | */ |
| 336 | 336 | |
| 337 | 337 | |
| 338 | #include "cpuintrf.h" | |
| 339 | 338 | #include "debugger.h" |
| 339 | #include "deprecat.h" | |
| 340 | 340 | #include "pdp1.h" |
| 341 | 341 | |
| 342 | 342 | #define LOG 0 |
| r1649 | r1650 | |
| 627 | 627 | |
| 628 | 628 | do |
| 629 | 629 | { |
| 630 | CALL_ | |
| 630 | CALL_ | |
| 631 | 631 | |
| 632 | 632 | |
| 633 | 633 | /* ioh should be cleared at the end of the instruction cycle, and ios at the |
| r1649 | r1650 | |
| 1026 | 1026 | case CPUINFO_PTR_EXECUTE: info->execute = pdp1_execute; break; |
| 1027 | 1027 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1028 | 1028 | |
| 1029 | #ifdef | |
| 1029 | #ifdef ENABLE_DEBUGGER | |
| 1030 | 1030 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = pdp1_dasm; break; |
| 1031 | #endif /* | |
| 1031 | #endif /* ENABLE_DEBUGGER */ | |
| 1032 | 1032 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &pdp1_ICount; break; |
| 1033 | 1033 | |
| 1034 | 1034 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 74 | 74 | #define IOT 035 |
| 75 | 75 | #define OPR 037 |
| 76 | 76 | |
| 77 | #ifdef | |
| 77 | #ifdef ENABLE_DEBUGGER | |
| 78 | 78 | unsigned pdp1_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 79 | #endif /* | |
| 79 | #endif /* ENABLE_DEBUGGER */ | |
| 80 | 80 | |
| 81 | 81 | #endif /* _PDP1_H */ |
| r1649 | r1650 | |
|---|---|---|
| 182 | 182 | |
| 183 | 183 | do |
| 184 | 184 | { |
| 185 | CALL_ | |
| 185 | CALL_ | |
| 186 | 186 | |
| 187 | 187 | |
| 188 | 188 | if (tx0.ioh && tx0.ios) |
| r1649 | r1650 | |
| 290 | 290 | |
| 291 | 291 | do |
| 292 | 292 | { |
| 293 | CALL_ | |
| 293 | CALL_ | |
| 294 | 294 | |
| 295 | 295 | |
| 296 | 296 | if (tx0.ioh && tx0.ios) |
| r1649 | r1650 | |
| 517 | 517 | case CPUINFO_PTR_EXECUTE: info->execute = tx0_execute_64kw; break; |
| 518 | 518 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 519 | 519 | |
| 520 | #ifdef | |
| 520 | #ifdef ENABLE_DEBUGGER | |
| 521 | 521 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = tx0_dasm_64kw; break; |
| 522 | #endif /* | |
| 522 | #endif /* ENABLE_DEBUGGER */ | |
| 523 | 523 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &tx0_ICount; break; |
| 524 | 524 | |
| 525 | 525 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
| 646 | 646 | case CPUINFO_PTR_EXECUTE: info->execute = tx0_execute_8kw; break; |
| 647 | 647 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 648 | 648 | |
| 649 | #ifdef | |
| 649 | #ifdef ENABLE_DEBUGGER | |
| 650 | 650 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = tx0_dasm_8kw; break; |
| 651 | #endif /* | |
| 651 | #endif /* ENABLE_DEBUGGER */ | |
| 652 | 652 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &tx0_ICount; break; |
| 653 | 653 | |
| 654 | 654 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | ***************************************************************************/ |
| 15 | 15 | |
| 16 | 16 | #include "mb86233.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | #include "debugger.h" |
| 18 | 19 | |
| 19 | 20 | /*************************************************************************** |
| r1649 | r1650 | |
| 906 | 907 | UINT32 val; |
| 907 | 908 | UINT32 opcode; |
| 908 | 909 | |
| 909 | CALL_ | |
| 910 | CALL_ | |
| 910 | 911 | |
| 911 | 912 | opcode = ROPCODE(GETPC()); |
| 912 | 913 | |
| r1649 | r1650 | |
| 1522 | 1523 | DISASSEMBLY HOOK |
| 1523 | 1524 | ***************************************************************************/ |
| 1524 | 1525 | |
| 1525 | #ifdef | |
| 1526 | #ifdef ENABLE_DEBUGGER | |
| 1526 | 1527 | static offs_t mb86233_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 1527 | 1528 | { |
| 1528 | 1529 | extern UINT32 dasm_mb86233(char *, UINT32); |
| r1649 | r1650 | |
| 1531 | 1532 | op = LITTLE_ENDIANIZE_INT32(op); |
| 1532 | 1533 | return dasm_mb86233(buffer, op); |
| 1533 | 1534 | } |
| 1534 | #endif /* | |
| 1535 | #endif /* ENABLE_DEBUGGER */ | |
| 1535 | 1536 | |
| 1536 | 1537 | /*************************************************************************** |
| 1537 | 1538 | Information Setters |
| r1649 | r1650 | |
| 1642 | 1643 | case CPUINFO_PTR_EXIT: info->exit = NULL; break; |
| 1643 | 1644 | case CPUINFO_PTR_EXECUTE: info->execute = mb86233_execute; break; |
| 1644 | 1645 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 1645 | #ifdef | |
| 1646 | #ifdef ENABLE_DEBUGGER | |
| 1646 | 1647 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = mb86233_dasm; break; |
| 1647 | #endif /* | |
| 1648 | #endif /* ENABLE_DEBUGGER */ | |
| 1648 | 1649 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &mb86233_icount; break; |
| 1649 | 1650 | |
| 1650 | 1651 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | *****************************************************************************/ |
| 13 | 13 | |
| 14 | 14 | #include "debugger.h" |
| 15 | #include "deprecat.h" | |
| 15 | 16 | #include "t11.h" |
| 16 | 17 | |
| 17 | 18 | |
| r1649 | r1650 | |
| 400 | 401 | { |
| 401 | 402 | t11.ppc = t11.reg[7]; /* copy PC to previous PC */ |
| 402 | 403 | |
| 403 | CALL_ | |
| 404 | CALL_ | |
| 404 | 405 | |
| 405 | 406 | t11.op = ROPCODE(); |
| 406 | 407 | (*opcode_table[t11.op >> 3])(); |
| r1649 | r1650 | |
| 505 | 506 | case CPUINFO_PTR_EXIT: info->exit = t11_exit; break; |
| 506 | 507 | case CPUINFO_PTR_EXECUTE: info->execute = t11_execute; break; |
| 507 | 508 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 508 | #ifdef | |
| 509 | #ifdef ENABLE_DEBUGGER | |
| 509 | 510 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = t11_dasm; break; |
| 510 | #endif /* | |
| 511 | #endif /* ENABLE_DEBUGGER */ | |
| 511 | 512 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &t11_ICount; break; |
| 512 | 513 | |
| 513 | 514 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 43 | 43 | #define T11_WRMEM(A,V) (program_write_byte_16le(A,V)) |
| 44 | 44 | #define T11_WRMEM_WORD(A,V) (program_write_word_16le(A,V)) |
| 45 | 45 | |
| 46 | #ifdef | |
| 46 | #ifdef ENABLE_DEBUGGER | |
| 47 | 47 | offs_t t11_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 48 | 48 | #endif |
| 49 | 49 |
| r1649 | r1650 | |
|---|---|---|
| 125 | 125 | void (*arm7_coproc_dt_r_callback)(UINT32 insn, UINT32* prn, UINT32 (*read32)(int addr)); |
| 126 | 126 | void (*arm7_coproc_dt_w_callback)(UINT32 insn, UINT32* prn, void (*write32)(int addr, UINT32 data)); |
| 127 | 127 | |
| 128 | #ifdef | |
| 128 | #ifdef ENABLE_DEBUGGER | |
| 129 | 129 | //custom dasm callback handlers for co-processor instructions |
| 130 | 130 | char *(*arm7_dasm_cop_dt_callback)( char *pBuf, UINT32 opcode, char *pConditionCode, char *pBuf0 ); |
| 131 | 131 | char *(*arm7_dasm_cop_rt_callback)( char *pBuf, UINT32 opcode, char *pConditionCode, char *pBuf0 ); |
| r1649 | r1650 | |
|---|---|---|
| 399 | 399 | extern void (*arm7_coproc_dt_r_callback)(UINT32 insn, UINT32* prn, UINT32 (*read32)(int addr)); |
| 400 | 400 | extern void (*arm7_coproc_dt_w_callback)(UINT32 insn, UINT32* prn, void (*write32)(int addr, UINT32 data)); |
| 401 | 401 | |
| 402 | #ifdef | |
| 402 | #ifdef ENABLE_DEBUGGER | |
| 403 | 403 | extern UINT32 arm7_disasm( char *pBuf, UINT32 pc, UINT32 opcode ); |
| 404 | 404 | extern UINT32 thumb_disasm( char *pBuf, UINT32 pc, UINT16 opcode ); |
| 405 | 405 |
| r1649 | r1650 | |
|---|---|---|
| 35 | 35 | ** |
| 36 | 36 | *****************************************************************************/ |
| 37 | 37 | #include "arm7.h" |
| 38 | #include "deprecat.h" | |
| 38 | 39 | #include "debugger.h" |
| 39 | 40 | #include "arm7core.h" //include arm7 core |
| 40 | 41 | |
| r1649 | r1650 | |
| 48 | 49 | static WRITE32_HANDLER(test_rt_w_callback); |
| 49 | 50 | static void test_dt_r_callback (UINT32 insn, UINT32* prn, UINT32 (*read32)(int addr)); |
| 50 | 51 | static void test_dt_w_callback (UINT32 insn, UINT32* prn, void (*write32)(int addr, UINT32 data)); |
| 51 | #ifdef | |
| 52 | #ifdef ENABLE_DEBUGGER | |
| 52 | 53 | static char *Spec_RT( char *pBuf, UINT32 opcode, char *pConditionCode, char *pBuf0); |
| 53 | 54 | static char *Spec_DT( char *pBuf, UINT32 opcode, char *pConditionCode, char *pBuf0); |
| 54 | 55 | static char *Spec_DO( char *pBuf, UINT32 opcode, char *pConditionCode, char *pBuf0); |
| r1649 | r1650 | |
| 101 | 102 | arm7_coproc_rt_w_callback = test_rt_w_callback; |
| 102 | 103 | arm7_coproc_dt_r_callback = test_dt_r_callback; |
| 103 | 104 | arm7_coproc_dt_w_callback = test_dt_w_callback; |
| 104 | #ifdef | |
| 105 | #ifdef ENABLE_DEBUGGER | |
| 105 | 106 | //setup dasm callbacks - direct method example |
| 106 | 107 | arm7_dasm_cop_dt_callback = Spec_DT; |
| 107 | 108 | arm7_dasm_cop_rt_callback = Spec_RT; |
| r1649 | r1650 | |
| 152 | 153 | } |
| 153 | 154 | } |
| 154 | 155 | |
| 155 | #ifdef | |
| 156 | #ifdef ENABLE_DEBUGGER | |
| 156 | 157 | static offs_t arm7_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 157 | 158 | { |
| 158 | 159 | if( T_IS_SET(GET_CPSR) ) |
| r1649 | r1650 | |
| 164 | 165 | return arm7_disasm( buffer, pc, oprom[0] | (oprom[1] << 8) | (oprom[2] << 16) | (oprom[3] << 24)) | 4; |
| 165 | 166 | } |
| 166 | 167 | } |
| 167 | #endif /* | |
| 168 | #endif /* ENABLE_DEBUGGER */ | |
| 168 | 169 | |
| 169 | 170 | |
| 170 | 171 | /************************************************************************** |
| r1649 | r1650 | |
| 342 | 343 | case CPUINFO_PTR_EXIT: info->exit = arm7_exit; break; |
| 343 | 344 | case CPUINFO_PTR_EXECUTE: info->execute = arm7_execute; break; |
| 344 | 345 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 345 | #ifdef | |
| 346 | #ifdef ENABLE_DEBUGGER | |
| 346 | 347 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = arm7_dasm; break; |
| 347 | #endif /* | |
| 348 | #endif /* ENABLE_DEBUGGER */ | |
| 348 | 349 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &ARM7_ICOUNT; break; |
| 349 | 350 | |
| 350 | 351 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
| 444 | 445 | } |
| 445 | 446 | |
| 446 | 447 | /* Custom Co-proc DASM handlers */ |
| 447 | #ifdef | |
| 448 | #ifdef ENABLE_DEBUGGER | |
| 448 | 449 | static char *Spec_RT( char *pBuf, UINT32 opcode, char *pConditionCode, char *pBuf0) |
| 449 | 450 | { |
| 450 | 451 | pBuf += sprintf( pBuf, "SPECRT"); |
| r1649 | r1650 | |
|---|---|---|
| 47 | 47 | ARM7_ICOUNT = cycles; |
| 48 | 48 | do |
| 49 | 49 | { |
| 50 | CALL_ | |
| 50 | CALL_ | |
| 51 | 51 | |
| 52 | 52 | /* handle Thumb instructions if active */ |
| 53 | 53 | if( T_IS_SET(GET_CPSR) ) |
| r1649 | r1650 | |
|---|---|---|
| 108 | 108 | |
| 109 | 109 | ******************************************************************************/ |
| 110 | 110 | #include "debugger.h" |
| 111 | #include "deprecat.h" | |
| 111 | 112 | #include "h6280.h" |
| 112 | 113 | |
| 113 | 114 | static int h6280_ICount = 0; |
| r1649 | r1650 | |
| 244 | 245 | CHANGE_PC; |
| 245 | 246 | h6280.ppc = h6280.pc; |
| 246 | 247 | |
| 247 | CALL_ | |
| 248 | CALL_ | |
| 248 | 249 | |
| 249 | 250 | /* Execute 1 instruction */ |
| 250 | 251 | in=RDOP(); |
| r1649 | r1650 | |
| 426 | 427 | case CPUINFO_INT_REGISTER + H6280_IRQ1_STATE: set_irq_line( 0, info->i ); break; |
| 427 | 428 | case CPUINFO_INT_REGISTER + H6280_IRQ2_STATE: set_irq_line( 1, info->i ); break; |
| 428 | 429 | case CPUINFO_INT_REGISTER + H6280_IRQT_STATE: set_irq_line( 2, info->i ); break; |
| 429 | #ifdef | |
| 430 | #ifdef ENABLE_DEBUGGER | |
| 430 | 431 | case CPUINFO_INT_REGISTER + H6280_M1: h6280.mmr[0] = info->i; break; |
| 431 | 432 | case CPUINFO_INT_REGISTER + H6280_M2: h6280.mmr[1] = info->i; break; |
| 432 | 433 | case CPUINFO_INT_REGISTER + H6280_M3: h6280.mmr[2] = info->i; break; |
| r1649 | r1650 | |
| 493 | 494 | case CPUINFO_INT_REGISTER + H6280_IRQ1_STATE: info->i = h6280.irq_state[0]; break; |
| 494 | 495 | case CPUINFO_INT_REGISTER + H6280_IRQ2_STATE: info->i = h6280.irq_state[1]; break; |
| 495 | 496 | case CPUINFO_INT_REGISTER + H6280_IRQT_STATE: info->i = h6280.irq_state[2]; break; |
| 496 | #ifdef | |
| 497 | #ifdef ENABLE_DEBUGGER | |
| 497 | 498 | case CPUINFO_INT_REGISTER + H6280_M1: info->i = h6280.mmr[0]; break; |
| 498 | 499 | case CPUINFO_INT_REGISTER + H6280_M2: info->i = h6280.mmr[1]; break; |
| 499 | 500 | case CPUINFO_INT_REGISTER + H6280_M3: info->i = h6280.mmr[2]; break; |
| r1649 | r1650 | |
| 513 | 514 | case CPUINFO_PTR_EXIT: info->exit = h6280_exit; break; |
| 514 | 515 | case CPUINFO_PTR_EXECUTE: info->execute = h6280_execute; break; |
| 515 | 516 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 516 | #ifdef | |
| 517 | #ifdef ENABLE_DEBUGGER | |
| 517 | 518 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = h6280_dasm; break; |
| 518 | #endif /* | |
| 519 | #endif /* ENABLE_DEBUGGER */ | |
| 519 | 520 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &h6280_ICount; break; |
| 520 | 521 | case CPUINFO_PTR_TRANSLATE: info->translate = h6280_translate; break; |
| 521 | 522 | |
| r1649 | r1650 | |
| 550 | 551 | case CPUINFO_STR_REGISTER + H6280_IRQ1_STATE: sprintf(info->s, "IRQ1:%X", h6280.irq_state[0]); break; |
| 551 | 552 | case CPUINFO_STR_REGISTER + H6280_IRQ2_STATE: sprintf(info->s, "IRQ2:%X", h6280.irq_state[1]); break; |
| 552 | 553 | case CPUINFO_STR_REGISTER + H6280_IRQT_STATE: sprintf(info->s, "IRQT:%X", h6280.irq_state[2]); break; |
| 553 | #ifdef | |
| 554 | #ifdef ENABLE_DEBUGGER | |
| 554 | 555 | case CPUINFO_STR_REGISTER + H6280_M1: sprintf(info->s, "M1:%02X", h6280.mmr[0]); break; |
| 555 | 556 | case CPUINFO_STR_REGISTER + H6280_M2: sprintf(info->s, "M2:%02X", h6280.mmr[1]); break; |
| 556 | 557 | case CPUINFO_STR_REGISTER + H6280_M3: sprintf(info->s, "M3:%02X", h6280.mmr[2]); break; |
| r1649 | r1650 | |
|---|---|---|
| 19 | 19 | H6280_PC=1, H6280_S, H6280_P, H6280_A, H6280_X, H6280_Y, |
| 20 | 20 | H6280_IRQ_MASK, H6280_TIMER_STATE, |
| 21 | 21 | H6280_NMI_STATE, H6280_IRQ1_STATE, H6280_IRQ2_STATE, H6280_IRQT_STATE |
| 22 | #ifdef | |
| 22 | #ifdef ENABLE_DEBUGGER | |
| 23 | 23 | , |
| 24 | 24 | H6280_M1, H6280_M2, H6280_M3, H6280_M4, |
| 25 | 25 | H6280_M5, H6280_M6, H6280_M7, H6280_M8 |
| r1649 | r1650 | |
| 47 | 47 | UINT8 h6280io_get_buffer(void); |
| 48 | 48 | void h6280io_set_buffer(UINT8); |
| 49 | 49 | |
| 50 | #ifdef | |
| 50 | #ifdef ENABLE_DEBUGGER | |
| 51 | 51 | offs_t h6280_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 52 | 52 | #endif |
| 53 | 53 |
| r1649 | r1650 | |
|---|---|---|
| 210 | 210 | # define TRUE (!FALSE) |
| 211 | 211 | #endif |
| 212 | 212 | |
| 213 | #ifdef | |
| 213 | #ifdef ENABLE_DEBUGGER | |
| 214 | 214 | offs_t m6800_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 215 | 215 | offs_t m6801_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 216 | 216 | offs_t m6802_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| r1649 | r1650 | |
|---|---|---|
| 74 | 74 | */ |
| 75 | 75 | |
| 76 | 76 | #include "debugger.h" |
| 77 | #include "deprecat.h" | |
| 77 | 78 | #include "m6800.h" |
| 78 | 79 | |
| 79 | 80 | #define VERBOSE 0 |
| r1649 | r1650 | |
| 264 | 265 | #define ONE_MORE_INSN() { \ |
| 265 | 266 | UINT8 ireg; \ |
| 266 | 267 | pPPC = pPC; \ |
| 267 | CALL_ | |
| 268 | CALL_ | |
| 268 | 269 | ireg=M_RDOP(PCD); \ |
| 269 | 270 | PC++; \ |
| 270 | 271 | (*m6800.insn[ireg])(); \ |
| r1649 | r1650 | |
| 987 | 988 | else |
| 988 | 989 | { |
| 989 | 990 | pPPC = pPC; |
| 990 | CALL_ | |
| 991 | CALL_ | |
| 991 | 992 | ireg=M_RDOP(PCD); |
| 992 | 993 | PC++; |
| 993 | 994 | |
| r1649 | r1650 | |
| 1334 | 1335 | else |
| 1335 | 1336 | { |
| 1336 | 1337 | pPPC = pPC; |
| 1337 | CALL_ | |
| 1338 | CALL_ | |
| 1338 | 1339 | ireg=M_RDOP(PCD); |
| 1339 | 1340 | PC++; |
| 1340 | 1341 | |
| r1649 | r1650 | |
| 1674 | 1675 | else |
| 1675 | 1676 | { |
| 1676 | 1677 | pPPC = pPC; |
| 1677 | CALL_ | |
| 1678 | CALL_ | |
| 1678 | 1679 | ireg=M_RDOP(PCD); |
| 1679 | 1680 | PC++; |
| 1680 | 1681 | |
| r1649 | r1650 | |
| 2006 | 2007 | else |
| 2007 | 2008 | { |
| 2008 | 2009 | pPPC = pPC; |
| 2009 | CALL_ | |
| 2010 | CALL_ | |
| 2010 | 2011 | ireg=M_RDOP(PCD); |
| 2011 | 2012 | PC++; |
| 2012 | 2013 | |
| r1649 | r1650 | |
| 2652 | 2653 | case CPUINFO_PTR_EXIT: info->exit = m6800_exit; break; |
| 2653 | 2654 | case CPUINFO_PTR_EXECUTE: info->execute = m6800_execute; break; |
| 2654 | 2655 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 2655 | #ifdef | |
| 2656 | #ifdef ENABLE_DEBUGGER | |
| 2656 | 2657 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = m6800_dasm; break; |
| 2657 | #endif /* | |
| 2658 | #endif /* ENABLE_DEBUGGER */ | |
| 2658 | 2659 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &m6800_ICount; break; |
| 2659 | 2660 | |
| 2660 | 2661 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
| 2704 | 2705 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 2705 | 2706 | case CPUINFO_PTR_INIT: info->init = m6801_init; break; |
| 2706 | 2707 | case CPUINFO_PTR_EXECUTE: info->execute = m6803_execute; break; |
| 2707 | #ifdef | |
| 2708 | #ifdef ENABLE_DEBUGGER | |
| 2708 | 2709 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = m6801_dasm; break; |
| 2709 | #endif /* | |
| 2710 | #endif /* ENABLE_DEBUGGER */ | |
| 2710 | 2711 | |
| 2711 | 2712 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 2712 | 2713 | case CPUINFO_STR_NAME: strcpy(info->s, "M6801"); break; |
| r1649 | r1650 | |
| 2731 | 2732 | |
| 2732 | 2733 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 2733 | 2734 | case CPUINFO_PTR_INIT: info->init = m6802_init; break; |
| 2734 | #ifdef | |
| 2735 | #ifdef ENABLE_DEBUGGER | |
| 2735 | 2736 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = m6802_dasm; break; |
| 2736 | #endif /* | |
| 2737 | #endif /* ENABLE_DEBUGGER */ | |
| 2737 | 2738 | |
| 2738 | 2739 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 2739 | 2740 | case CPUINFO_STR_NAME: strcpy(info->s, "M6802"); break; |
| r1649 | r1650 | |
| 2761 | 2762 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 2762 | 2763 | case CPUINFO_PTR_INIT: info->init = m6803_init; break; |
| 2763 | 2764 | case CPUINFO_PTR_EXECUTE: info->execute = m6803_execute; break; |
| 2764 | #ifdef | |
| 2765 | #ifdef ENABLE_DEBUGGER | |
| 2765 | 2766 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = m6803_dasm; break; |
| 2766 | #endif /* | |
| 2767 | #endif /* ENABLE_DEBUGGER */ | |
| 2767 | 2768 | |
| 2768 | 2769 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM: info->internal_map = construct_map_m6803_mem; break; |
| 2769 | 2770 | |
| r1649 | r1650 | |
| 2790 | 2791 | |
| 2791 | 2792 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 2792 | 2793 | case CPUINFO_PTR_INIT: info->init = m6808_init; break; |
| 2793 | #ifdef | |
| 2794 | #ifdef ENABLE_DEBUGGER | |
| 2794 | 2795 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = m6808_dasm; break; |
| 2795 | #endif /* | |
| 2796 | #endif /* ENABLE_DEBUGGER */ | |
| 2796 | 2797 | |
| 2797 | 2798 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 2798 | 2799 | case CPUINFO_STR_NAME: strcpy(info->s, "M6808"); break; |
| r1649 | r1650 | |
| 2820 | 2821 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 2821 | 2822 | case CPUINFO_PTR_INIT: info->init = hd63701_init; break; |
| 2822 | 2823 | case CPUINFO_PTR_EXECUTE: info->execute = hd63701_execute; break; |
| 2823 | #ifdef | |
| 2824 | #ifdef ENABLE_DEBUGGER | |
| 2824 | 2825 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = hd63701_dasm; break; |
| 2825 | #endif /* | |
| 2826 | #endif /* ENABLE_DEBUGGER */ | |
| 2826 | 2827 | |
| 2827 | 2828 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 2828 | 2829 | case CPUINFO_STR_NAME: strcpy(info->s, "HD63701"); break; |
| r1649 | r1650 | |
| 2848 | 2849 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 2849 | 2850 | case CPUINFO_PTR_INIT: info->init = nsc8105_init; break; |
| 2850 | 2851 | case CPUINFO_PTR_EXECUTE: info->execute = nsc8105_execute; break; |
| 2851 | #ifdef | |
| 2852 | #ifdef ENABLE_DEBUGGER | |
| 2852 | 2853 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = nsc8105_dasm; break; |
| 2853 | #endif /* | |
| 2854 | #endif /* ENABLE_DEBUGGER */ | |
| 2854 | 2855 | |
| 2855 | 2856 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 2856 | 2857 | case CPUINFO_STR_NAME: strcpy(info->s, "NSC8105"); break; |
| r1649 | r1650 | |
|---|---|---|
| 35 | 35 | |
| 36 | 36 | void cp1610_get_info(UINT32 state, cpuinfo *info); |
| 37 | 37 | |
| 38 | #ifdef | |
| 38 | #ifdef ENABLE_DEBUGGER | |
| 39 | 39 | unsigned cp1610_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 40 | #endif /* | |
| 40 | #endif /* ENABLE_DEBUGGER */ | |
| 41 | 41 | |
| 42 | 42 | // Temporary |
| 43 | 43 | #define cp1610_readop(A) program_read_word_16be((A)<<1) |
| r1649 | r1650 | |
|---|---|---|
| 23 | 23 | |
| 24 | 24 | #include "cpuintrf.h" |
| 25 | 25 | #include "debugger.h" |
| 26 | #include "deprecat.h" | |
| 26 | 27 | #include "cp1610.h" |
| 27 | 28 | |
| 28 | 29 | #define S 0x80 |
| r1649 | r1650 | |
| 2165 | 2166 | |
| 2166 | 2167 | do |
| 2167 | 2168 | { |
| 2168 | CALL_ | |
| 2169 | CALL_ | |
| 2169 | 2170 | |
| 2170 | 2171 | cp1610.mask_interrupts = 0; |
| 2171 | 2172 | |
| r1649 | r1650 | |
| 3490 | 3491 | case CPUINFO_PTR_EXECUTE: info->execute = cp1610_execute; break; |
| 3491 | 3492 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 3492 | 3493 | |
| 3493 | #ifdef | |
| 3494 | #ifdef ENABLE_DEBUGGER | |
| 3494 | 3495 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = cp1610_dasm; break; |
| 3495 | #endif /* | |
| 3496 | #endif /* ENABLE_DEBUGGER */ | |
| 3496 | 3497 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &cp1610_icount; break; |
| 3497 | 3498 | |
| 3498 | 3499 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 58 | 58 | void (*crc)(int addr, int data); |
| 59 | 59 | } SATURN_CONFIG; |
| 60 | 60 | |
| 61 | #ifdef | |
| 61 | #ifdef ENABLE_DEBUGGER | |
| 62 | 62 | unsigned saturn_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 63 | #endif /* | |
| 63 | #endif /* ENABLE_DEBUGGER */ | |
| 64 | 64 | |
| 65 | 65 | void saturn_get_info(UINT32 state, cpuinfo *info); |
| 66 | 66 |
| r1649 | r1650 | |
|---|---|---|
| 19 | 19 | * - This entire notice must remain in the source code. |
| 20 | 20 | * |
| 21 | 21 | *****************************************************************************/ |
| 22 | #include "cpuintrf.h" | |
| 23 | 22 | #include "debugger.h" |
| 23 | #include "deprecat.h" | |
| 24 | 24 | |
| 25 | 25 | #include "saturn.h" |
| 26 | 26 | #include "sat.h" |
| r1649 | r1650 | |
| 159 | 159 | { |
| 160 | 160 | saturn.oldpc = saturn.pc; |
| 161 | 161 | |
| 162 | CALL_ | |
| 162 | CALL_ | |
| 163 | 163 | |
| 164 | 164 | /* if an irq is pending, take it now */ |
| 165 | 165 | if( saturn.pending_irq ) |
| r1649 | r1650 | |
| 377 | 377 | case CPUINFO_PTR_RESET: info->reset = saturn_reset; break; |
| 378 | 378 | case CPUINFO_PTR_EXECUTE: info->execute = saturn_execute; break; |
| 379 | 379 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 380 | #ifdef | |
| 380 | #ifdef ENABLE_DEBUGGER | |
| 381 | 381 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = saturn_dasm; break; |
| 382 | #endif /* | |
| 382 | #endif /* ENABLE_DEBUGGER */ | |
| 383 | 383 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &saturn_ICount; break; |
| 384 | 384 | |
| 385 | 385 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 81 | 81 | |
| 82 | 82 | extern void i8x41_get_info(UINT32 state, cpuinfo *info); |
| 83 | 83 | |
| 84 | #ifdef | |
| 84 | #ifdef ENABLE_DEBUGGER | |
| 85 | 85 | extern offs_t i8x41_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 86 | 86 | #endif |
| 87 | 87 |
| r1649 | r1650 | |
|---|---|---|
| 87 | 87 | *****************************************************************************/ |
| 88 | 88 | |
| 89 | 89 | #include "debugger.h" |
| 90 | #include "deprecat.h" | |
| 90 | 91 | #include "i8x41.h" |
| 91 | 92 | |
| 92 | 93 | typedef struct { |
| r1649 | r1650 | |
| 1376 | 1377 | |
| 1377 | 1378 | PPC = PC; |
| 1378 | 1379 | |
| 1379 | CALL_ | |
| 1380 | CALL_ | |
| 1380 | 1381 | |
| 1381 | 1382 | PC += 1; |
| 1382 | 1383 | i8x41_ICount -= i8x41_cycles[op]; |
| r1649 | r1650 | |
| 2269 | 2270 | case CPUINFO_PTR_EXIT: info->exit = i8x41_exit; break; |
| 2270 | 2271 | case CPUINFO_PTR_EXECUTE: info->execute = i8x41_execute; break; |
| 2271 | 2272 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 2272 | #ifdef | |
| 2273 | #ifdef ENABLE_DEBUGGER | |
| 2273 | 2274 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = i8x41_dasm; break; |
| 2274 | #endif /* | |
| 2275 | #endif /* ENABLE_DEBUGGER */ | |
| 2275 | 2276 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &i8x41_ICount; break; |
| 2276 | 2277 | |
| 2277 | 2278 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r1649 | r1650 | |
|---|---|---|
| 35 | 35 | *****************************************************************************/ |
| 36 | 36 | |
| 37 | 37 | #include "debugger.h" |
| 38 | #include "deprecat.h" | |
| 38 | 39 | #include "konami.h" |
| 39 | 40 | |
| 40 | 41 | #define VERBOSE 0 |
| r1649 | r1650 | |
| 501 | 502 | { |
| 502 | 503 | pPPC = pPC; |
| 503 | 504 | |
| 504 | CALL_ | |
| 505 | CALL_ | |
| 505 | 506 | |
| 506 | 507 | konami.ireg = ROP(PCD); |
| 507 | 508 | PC++; |
| r1649 | r1650 | |
| 609 | 610 | case CPUINFO_PTR_EXIT: info->exit = konami_exit; break; |
| 610 | 611 | case CPUINFO_PTR_EXECUTE: info->execute = konami_execute; break; |
| 611 | 612 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 612 | #ifdef | |
| 613 | #ifdef ENABLE_DEBUGGER | |
| 613 | 614 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = konami_dasm; break; |
| 614 | #endif /* | |
| 615 | #endif /* ENABLE_DEBUGGER */ | |
| 615 | 616 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &konami_ICount; break; |
| 616 | 617 | case CPUINFO_PTR_KONAMI_SETLINES_CALLBACK: info->f = (genf *)konami.setlines_callback; break; |
| 617 | 618 |
| r1649 | r1650 | |
|---|---|---|
| 51 | 51 | # define TRUE (!FALSE) |
| 52 | 52 | #endif |
| 53 | 53 | |
| 54 | #ifdef | |
| 54 | #ifdef ENABLE_DEBUGGER | |
| 55 | 55 | offs_t konami_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 56 | 56 | #endif |
| 57 | 57 |
| r1649 | r1650 | |
|---|---|---|
| 45 | 45 | |
| 46 | 46 | #include "driver.h" |
| 47 | 47 | #include "streams.h" |
| 48 | #include | |
| 48 | #include "deprecat | |
| 49 | 49 | |
| 50 | 50 | |
| 51 | 51 | |
| r1649 | r1650 | |
| 112 | 112 | struct _sound_stream |
| 113 | 113 | { |
| 114 | 114 | /* linking information */ |
| 115 | running_machine * machine; /* owning machine object */ | |
| 115 | 116 | sound_stream * next; /* next stream in the chain */ |
| 116 | 117 | void * tag; /* tag (used for identification) */ |
| 117 | 118 | int index; /* index for save states */ |
| r1649 | r1650 | |
| 207 | 208 | |
| 208 | 209 | |
| 209 | 210 | /*************************************************************************** |
| 210 | | |
| 211 | SYSTE | |
| 211 | 212 | ***************************************************************************/ |
| 212 | 213 | |
| 213 | 214 | /*------------------------------------------------- |
| r1649 | r1650 | |
| 236 | 237 | |
| 237 | 238 | |
| 238 | 239 | /*------------------------------------------------- |
| 240 | streams_set_tag - set the tag to be associated | |
| 241 | with all streams allocated from now on | |
| 242 | -------------------------------------------------*/ | |
| 243 | ||
| 244 | void streams_set_tag(running_machine *machine, void *streamtag) | |
| 245 | { | |
| 246 | streams_private *strdata = machine->streams_data; | |
| 247 | strdata->current_tag = streamtag; | |
| 248 | } | |
| 249 | ||
| 250 | ||
| 251 | /*------------------------------------------------- | |
| 239 | 252 | streams_update - update all the streams |
| 240 | 253 | periodically |
| 241 | 254 | -------------------------------------------------*/ |
| r1649 | r1650 | |
| 326 | 339 | } |
| 327 | 340 | |
| 328 | 341 | |
| 329 | /*------------------------------------------------- | |
| 330 | streams_set_tag - set the tag to be associated | |
| 331 | with all streams allocated from now on | |
| 332 | -------------------------------------------------*/ | |
| 333 | 342 | |
| 334 | void streams_set_tag(running_machine *machine, void *streamtag) | |
| 335 | { | |
| 336 | streams_private *strdata = machine->streams_data; | |
| 337 | strdata->current_tag = streamtag; | |
| 338 | } | |
| 343 | /*************************************************************************** | |
| 344 | STREAM CONFIGURATION AND SETUP | |
| 345 | ***************************************************************************/ | |
| 339 | 346 | |
| 340 | ||
| 341 | 347 | /*------------------------------------------------- |
| 342 | 348 | stream_create - create a new stream |
| 343 | 349 | -------------------------------------------------*/ |
| r1649 | r1650 | |
| 356 | 362 | VPRINTF(("stream_create(%d, %d, %d) => %p\n", inputs, outputs, sample_rate, stream)); |
| 357 | 363 | |
| 358 | 364 | /* fill in the data */ |
| 365 | stream->machine = Machine; | |
| 359 | 366 | stream->tag = strdata->current_tag; |
| 360 | 367 | stream->index = strdata->stream_index++; |
| 361 | 368 | stream->sample_rate = sample_rate; |
| r1649 | r1650 | |
| 450 | 457 | input->source->dependents++; |
| 451 | 458 | |
| 452 | 459 | /* update sample rates now that we know the input */ |
| 453 | recompute_sample_rate_data( | |
| 460 | recompute_sample_rate_data(stream->machine->streams_data, stream); | |
| 454 | 461 | } |
| 455 | 462 | |
| 456 | 463 | |
| r1649 | r1650 | |
| 461 | 468 | |
| 462 | 469 | void stream_update(sound_stream *stream) |
| 463 | 470 | { |
| 464 | streams_private *strdata = | |
| 471 | streams_private *strdata = stream->machine->streams_data; | |
| 465 | 472 | INT32 update_sampindex = time_to_sampindex(strdata, stream, timer_get_time()); |
| 466 | 473 | |
| 467 | 474 | /* generate samples to get us up to the appropriate time */ |
| r1649 | r1650 | |
| 475 | 482 | |
| 476 | 483 | |
| 477 | 484 | /*------------------------------------------------- |
| 485 | stream_get_output_since_last_update - return a | |
| 486 | pointer to the output buffer and the number of | |
| 487 | samples since the last global update | |
| 488 | -------------------------------------------------*/ | |
| 489 | ||
| 490 | const stream_sample_t *stream_get_output_since_last_update(sound_stream *stream, int outputnum, int *numsamples) | |
| 491 | { | |
| 492 | stream_output *output = &stream->output[outputnum]; | |
| 493 | ||
| 494 | /* force an update on the stream */ | |
| 495 | stream_update(stream); | |
| 496 | ||
| 497 | /* compute the number of samples and a pointer to the output buffer */ | |
| 498 | *numsamples = stream->output_sampindex - stream->output_update_sampindex; | |
| 499 | return output->buffer + (stream->output_update_sampindex - stream->output_base_sampindex); | |
| 500 | } | |
| 501 | ||
| 502 | ||
| 503 | ||
| 504 | /*************************************************************************** | |
| 505 | STREAM TIMING | |
| 506 | ***************************************************************************/ | |
| 507 | ||
| 508 | /*------------------------------------------------- | |
| 509 | stream_get_sample_rate - return the currently | |
| 510 | set sample rate on a given stream | |
| 511 | -------------------------------------------------*/ | |
| 512 | ||
| 513 | int stream_get_sample_rate(sound_stream *stream) | |
| 514 | { | |
| 515 | /* take into account any pending sample rate changes */ | |
| 516 | return (stream->new_sample_rate != 0) ? stream->new_sample_rate : stream->sample_rate; | |
| 517 | } | |
| 518 | ||
| 519 | ||
| 520 | /*------------------------------------------------- | |
| 521 | stream_set_sample_rate - set the sample rate | |
| 522 | on a given stream | |
| 523 | -------------------------------------------------*/ | |
| 524 | ||
| 525 | void stream_set_sample_rate(sound_stream *stream, int sample_rate) | |
| 526 | { | |
| 527 | /* we will update this on the next global update */ | |
| 528 | if (sample_rate != stream_get_sample_rate(stream)) | |
| 529 | stream->new_sample_rate = sample_rate; | |
| 530 | } | |
| 531 | ||
| 532 | ||
| 533 | /*------------------------------------------------- | |
| 534 | stream_get_time - return the emulation time | |
| 535 | of the next sample to be generated on the | |
| 536 | stream | |
| 537 | -------------------------------------------------*/ | |
| 538 | ||
| 539 | attotime stream_get_time(sound_stream *stream) | |
| 540 | { | |
| 541 | streams_private *strdata = stream->machine->streams_data; | |
| 542 | attotime base = attotime_make(strdata->last_update.seconds, 0); | |
| 543 | return attotime_add_attoseconds(base, stream->output_sampindex * stream->attoseconds_per_sample); | |
| 544 | } | |
| 545 | ||
| 546 | ||
| 547 | /*------------------------------------------------- | |
| 548 | stream_get_sample_period - return the duration | |
| 549 | of a single sample for a stream | |
| 550 | -------------------------------------------------*/ | |
| 551 | ||
| 552 | attotime stream_get_sample_period(sound_stream *stream) | |
| 553 | { | |
| 554 | return attotime_make(0, stream->attoseconds_per_sample); | |
| 555 | } | |
| 556 | ||
| 557 | ||
| 558 | ||
| 559 | /*************************************************************************** | |
| 560 | STREAM INFORMATION AND CONTROL | |
| 561 | ***************************************************************************/ | |
| 562 | ||
| 563 | /*------------------------------------------------- | |
| 478 | 564 | stream_find_by_tag - find a stream using a |
| 479 | 565 | tag and index |
| 480 | 566 | -------------------------------------------------*/ |
| r1649 | r1650 | |
| 538 | 624 | } |
| 539 | 625 | |
| 540 | 626 | |
| 541 | /*------------------------------------------------- | |
| 542 | stream_set_sample_rate - set the sample rate | |
| 543 | on a given stream | |
| 544 | -------------------------------------------------*/ | |
| 545 | 627 | |
| 546 | void stream_set_sample_rate(sound_stream *stream, int sample_rate) | |
| 547 | { | |
| 548 | /* we will update this on the next global update */ | |
| 549 | if ((stream->new_sample_rate == 0 && sample_rate != stream->sample_rate) || (stream->new_sample_rate != 0 && sample_rate != stream->new_sample_rate)) | |
| 550 | stream->new_sample_rate = sample_rate; | |
| 551 | } | |
| 552 | ||
| 553 | ||
| 554 | /*------------------------------------------------- | |
| 555 | stream_get_output_since_last_update - return a | |
| 556 | pointer to the output buffer and the number of | |
| 557 | samples since the last global update | |
| 558 | -------------------------------------------------*/ | |
| 559 | ||
| 560 | const stream_sample_t *stream_get_output_since_last_update(sound_stream *stream, int outputnum, int *numsamples) | |
| 561 | { | |
| 562 | stream_output *output = &stream->output[outputnum]; | |
| 563 | ||
| 564 | /* force an update on the stream */ | |
| 565 | stream_update(stream); | |
| 566 | ||
| 567 | /* compute the number of samples and a pointer to the output buffer */ | |
| 568 | *numsamples = stream->output_sampindex - stream->output_update_sampindex; | |
| 569 | return output->buffer + (stream->output_update_sampindex - stream->output_base_sampindex); | |
| 570 | } | |
| 571 | ||
| 572 | ||
| 573 | ||
| 574 | 628 | /*************************************************************************** |
| 575 | 629 | STREAM BUFFER MAINTENANCE |
| 576 | 630 | ***************************************************************************/ |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | 13 | #include "generic.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | |
| 15 | 16 | |
| 16 | 17 |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | #include "rendfont.h" |
| 15 | 15 | #include "rendutil.h" |
| 16 | 16 | #include "uigfx.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | |
| 18 | 19 | |
| 19 | 20 |
| r1649 | r1650 | |
|---|---|---|
| 29 | 29 | FUNCTION PROTOTYPES |
| 30 | 30 | ***************************************************************************/ |
| 31 | 31 | |
| 32 | ||
| 33 | /* ----- system-level management ----- */ | |
| 34 | ||
| 35 | /* initialize the streams engine */ | |
| 32 | 36 | void streams_init(running_machine *machine, attoseconds_t update_subseconds); |
| 37 | ||
| 38 | /* set the tag to be associated with all streams allocated from now on */ | |
| 33 | 39 | void streams_set_tag(running_machine *machine, void *streamtag); |
| 40 | ||
| 41 | /* update all the streams periodically */ | |
| 34 | 42 | void streams_update(running_machine *machine); |
| 35 | 43 | |
| 36 | /* core stream configuration and operation */ | |
| 44 | ||
| 45 | ||
| 46 | /* ----- stream configuration and setup ----- */ | |
| 47 | ||
| 48 | /* create a new stream */ | |
| 37 | 49 | sound_stream *stream_create(int inputs, int outputs, int sample_rate, void *param, stream_callback callback); |
| 50 | ||
| 51 | /* configure a stream's input */ | |
| 38 | 52 | void stream_set_input(sound_stream *stream, int index, sound_stream *input_stream, int output_index, float gain); |
| 53 | ||
| 54 | /* force a stream to update to the current emulated time */ | |
| 39 | 55 | void stream_update(sound_stream *stream); |
| 56 | ||
| 57 | /* return a pointer to the output buffer and the number of samples since the last global update */ | |
| 40 | 58 | const stream_sample_t *stream_get_output_since_last_update(sound_stream *stream, int outputnum, int *numsamples); |
| 41 | 59 | |
| 42 | /* utilities for accessing a particular stream */ | |
| 60 | ||
| 61 | ||
| 62 | /* ----- stream timing ----- */ | |
| 63 | ||
| 64 | /* return the currently set sample rate on a given stream */ | |
| 65 | int stream_get_sample_rate(sound_stream *stream); | |
| 66 | ||
| 67 | /* set the sample rate on a given stream */ | |
| 68 | void stream_set_sample_rate(sound_stream *stream, int sample_rate); | |
| 69 | ||
| 70 | /* return the emulation time of the next sample to be generated on the stream */ | |
| 71 | attotime stream_get_time(sound_stream *stream); | |
| 72 | ||
| 73 | /* return the duration of a single sample for a stream */ | |
| 74 | attotime stream_get_sample_period(sound_stream *stream); | |
| 75 | ||
| 76 | ||
| 77 | ||
| 78 | /* ----- stream information and control ----- */ | |
| 79 | ||
| 80 | /* find a stream using a tag and index */ | |
| 43 | 81 | sound_stream *stream_find_by_tag(void *streamtag, int streamindex); |
| 82 | ||
| 83 | /* return the number of inputs for a given stream */ | |
| 44 | 84 | int stream_get_inputs(sound_stream *stream); |
| 85 | ||
| 86 | /* return the number of outputs for a given stream */ | |
| 45 | 87 | int stream_get_outputs(sound_stream *stream); |
| 88 | ||
| 89 | /* set the input gain on a given stream */ | |
| 46 | 90 | void stream_set_input_gain(sound_stream *stream, int input, float gain); |
| 91 | ||
| 92 | /* set the output gain on a given stream */ | |
| 47 | 93 | void stream_set_output_gain(sound_stream *stream, int output, float gain); |
| 48 | void stream_set_sample_rate(sound_stream *stream, int sample_rate); | |
| 49 | 94 | |
| 95 | ||
| 50 | 96 | #endif |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "cpu/cdp1802/cdp1802.h" |
| 3 | 4 | #include "video/cdp1869.h" |
| 4 | 5 | #include "sound/cdp1869.h" |
| r1649 | r1650 | |
|---|---|---|
| 398 | 398 | { |
| 399 | 399 | (*ModeHandlers[TMS_MODE])(machine, tms.tmpbmp, cliprect); |
| 400 | 400 | |
| 401 | copybitmap(bitmap, tms.tmpbmp, 0, 0, LEFT_BORDER, TOP_BORDER, cliprect | |
| 401 | copybitmap(bitmap, tms.tmpbmp, 0, 0, LEFT_BORDER, TOP_BORDER, cliprect | |
| 402 | 402 | { |
| 403 | 403 | rectangle rt; |
| 404 | 404 |
| r1649 | r1650 | |
|---|---|---|
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | 17 | #include "driver.h" |
| 18 | #include "deprecat.h" | |
| 18 | 19 | #include "v9938.h" |
| 19 | 20 | |
| 20 | 21 | typedef struct { |
| r1649 | r1650 | |
| 600 | 601 | |
| 601 | 602 | READ8_HANDLER (v9938_status_r) |
| 602 | 603 | { |
| 603 | int reg | |
| 604 | int reg | |
| 604 | 605 | UINT8 ret; |
| 605 | 606 | |
| 606 | 607 | vdp.cmd_write_first = 0; |
| r1649 | r1650 | |
| 624 | 625 | break; |
| 625 | 626 | case 2: |
| 626 | 627 | /*v9938_update_command ();*/ |
| 627 | n = cycles_currently_ran (); | |
| 628 | if ( (n < 28) || (n > 199) ) vdp.statReg[2] |= 0x20; | |
| 628 | /* | |
| 629 | WTF is this? Whatever this was intended to do, it is nonsensical. | |
| 630 | Might as well pick a random number.... | |
| 631 | n = cycles_currently_ran (); | |
| 632 | if ( (n < 28) || (n > 199) ) vdp.statReg[2] |= 0x20; | |
| 633 | else vdp.statReg[2] &= ~0x20; | |
| 634 | */ | |
| 635 | if (mame_rand(Machine) & 1) vdp.statReg[2] |= 0x20; | |
| 629 | 636 | else vdp.statReg[2] &= ~0x20; |
| 630 | 637 | ret = vdp.statReg[2]; |
| 631 | 638 | break; |
| r1649 | r1650 | |
|---|---|---|
| 30 | 30 | * |
| 31 | 31 | **************************************************************************** */ |
| 32 | 32 | |
| 33 | #include <math.h> | |
| 34 | 33 | #include "rendutil.h" |
| 34 | #include "deprecat.h" | |
| 35 | 35 | #include "vector.h" |
| 36 | 36 | |
| 37 | 37 |
| r1649 | r1650 | |
|---|---|---|
| 142 | 142 | #include "voodoo.h" |
| 143 | 143 | #include "vooddefs.h" |
| 144 | 144 | #include "ui.h" |
| 145 | #include | |
| 145 | #include "deprecat | |
| 146 | 146 | |
| 147 | 147 | |
| 148 | 148 | /************************************* |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | *********************************************************************/ |
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | #include "deprecat.h" | |
| 13 | 14 | #include "generic.h" |
| 14 | 15 | |
| 15 | 16 | |
| r1649 | r1650 | |
| 335 | 336 | |
| 336 | 337 | VIDEO_UPDATE( generic_bitmapped ) |
| 337 | 338 | { |
| 338 | copybitmap(bitmap, tmpbitmap, 0, 0, 0, 0, | |
| 339 | copybitmap(bitmap, tmpbitmap, 0, 0, 0, 0, | |
| 339 | 340 | return 0; |
| 340 | 341 | } |
| 341 | 342 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | poly | |
| 3 | poly | |
| 4 | 4 | |
| 5 | 5 | Helper routines for polygon rendering. |
| 6 | 6 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | rgb | |
| 3 | rgbsse | |
| 4 | 4 | |
| 5 | 5 | SSE optimized RGB utilities. |
| 6 | 6 |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | #include "driver.h" |
| 13 | 13 | #include "tilemap.h" |
| 14 | 14 | #include "profiler.h" |
| 15 | #include "deprecat.h" | |
| 15 | 16 | |
| 16 | 17 | |
| 17 | 18 | /*************************************************************************** |
| r1649 | r1650 | |
| 272 | 273 | tilemap_list = NULL; |
| 273 | 274 | tilemap_tailptr = &tilemap_list; |
| 274 | 275 | tilemap_instance = 0; |
| 275 | ||
| 276 | ||
| 276 | 277 | priority_bitmap = auto_bitmap_alloc(screen_width, screen_height, BITMAP_FORMAT_INDEXED8); |
| 277 | 278 | add_exit_callback(machine, tilemap_exit); |
| 278 | 279 | } |
| r0 | r1650 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | deprecat.h | |
| 4 | ||
| 5 | Definition of derprecated and obsolte constructs that should not | |
| 6 | be used by new code, if at all possible. | |
| 7 | ||
| 8 | Copyright Nicola Salmoria and the MAME Team. | |
| 9 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 10 | ||
| 11 | ***************************************************************************/ | |
| 12 | ||
| 13 | #pragma once | |
| 14 | ||
| 15 | #ifndef __DEPRECAT_H__ | |
| 16 | #define __DEPRECAT_H__ | |
| 17 | ||
| 18 | ||
| 19 | ||
| 20 | /************************************* | |
| 21 | * | |
| 22 | * Global access to the currently | |
| 23 | * executing machine. | |
| 24 | * | |
| 25 | * Please investigate if it is | |
| 26 | * possible to use a passed in | |
| 27 | * 'machine' argument. | |
| 28 | * | |
| 29 | *************************************/ | |
| 30 | ||
| 31 | extern running_machine *Machine; | |
| 32 | ||
| 33 | ||
| 34 | ||
| 35 | /************************************* | |
| 36 | * | |
| 37 | * Video timing | |
| 38 | * | |
| 39 | * These functions are no longer considered | |
| 40 | * to be the authority on scanline timing. | |
| 41 | * Please use the video_screen_* functions | |
| 42 | * in video.c for newer drivers. | |
| 43 | * | |
| 44 | *************************************/ | |
| 45 | ||
| 46 | /* Returns the number of the video frame we are currently playing */ | |
| 47 | int cpu_getcurrentframe(void); | |
| 48 | ||
| 49 | ||
| 50 | ||
| 51 | /************************************* | |
| 52 | * | |
| 53 | * Core timing | |
| 54 | * | |
| 55 | *************************************/ | |
| 56 | ||
| 57 | /* Returns the number of times the interrupt handler will be called before | |
| 58 | the end of the current video frame. This is can be useful to interrupt | |
| 59 | handlers to synchronize their operation. If you call this from outside | |
| 60 | an interrupt handler, add 1 to the result, i.e. if it returns 0, it means | |
| 61 | that the interrupt handler will be called once. */ | |
| 62 | int cpu_getiloops(void); | |
| 63 | ||
| 64 | /* Scales a given value by the ratio of fcount / fperiod */ | |
| 65 | int cpu_scalebyfcount(int value); | |
| 66 | ||
| 67 | ||
| 68 | #endif /* __DEPRECAT_H__ */ |
| r1649 | r1650 | |
|---|---|---|
| 144 | 144 | { "log", "0", OPTION_BOOLEAN, "generate an error.log file" }, |
| 145 | 145 | { "verbose;v", "0", OPTION_BOOLEAN, "display additional diagnostic information" }, |
| 146 | 146 | { "update_in_pause", "0", OPTION_BOOLEAN, "keep calling video updates while in pause" }, |
| 147 | #ifdef | |
| 147 | #ifdef ENABLE_DEBUGGER | |
| 148 | 148 | { "debug;d", "1", OPTION_BOOLEAN, "enable/disable debugger" }, |
| 149 | 149 | { "debugscript", NULL, 0, "script for debugger" }, |
| 150 | 150 | #else |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | #include "cheat.h" |
| 15 | 15 | #include "uimenu.h" |
| 16 | 16 | #include "audit.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | |
| 18 | 19 | #ifdef MESS |
| 19 | 20 | #include "uimess.h" |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | #include "profiler.h" |
| 15 | 15 | #include "png.h" |
| 16 | 16 | #include "debugger.h" |
| 17 | #include "video/vector.h" | |
| 18 | 17 | #include "render.h" |
| 19 | 18 | #include "rendutil.h" |
| 20 | 19 | #include "ui.h" |
| 20 | #include "deprecat.h" | |
| 21 | #include "video/vector.h" | |
| 21 | 22 | |
| 22 | 23 | #include "snap.lh" |
| 23 | 24 | |
| r1649 | r1650 | |
| 28 | 29 | ***************************************************************************/ |
| 29 | 30 | |
| 30 | 31 | #define LOG_THROTTLE (0) |
| 31 | #define VERBOSE (0) | |
| 32 | #define VERBOSE (0) | |
| 32 | 33 | #define LOG_PARTIAL_UPDATES(x) do { if (VERBOSE) logerror x; } while (0) |
| 33 | 34 | |
| 34 | 35 | |
| r1649 | r1650 | |
| 67 | 68 | attoseconds_t pixeltime; /* attoseconds per pixel */ |
| 68 | 69 | attotime vblank_time; /* time of last VBLANK start */ |
| 69 | 70 | emu_timer * scanline0_timer; /* scanline 0 timer */ |
| 71 | emu_timer * scanline_timer; /* scanline timer */ | |
| 70 | 72 | |
| 71 | 73 | /* movie recording */ |
| 72 | 74 | mame_file * movie_file; /* handle to the open movie file */ |
| r1649 | r1650 | |
| 176 | 178 | |
| 177 | 179 | /* global rendering */ |
| 178 | 180 | static TIMER_CALLBACK( scanline0_callback ); |
| 181 | static TIMER_CALLBACK( scanline_update_callback ); | |
| 179 | 182 | static int finish_screen_updates(running_machine *machine); |
| 180 | 183 | |
| 181 | 184 | /* throttling/frameskipping/performance */ |
| r1649 | r1650 | |
| 326 | 329 | /* reset VBLANK timing */ |
| 327 | 330 | info->vblank_time = attotime_sub_attoseconds(attotime_zero, machine->screen[0].vblank); |
| 328 | 331 | |
| 332 | /* allocate a timer to generate per-scanline updates */ | |
| 333 | if (machine->drv->video_attributes & VIDEO_UPDATE_SCANLINE) | |
| 334 | { | |
| 335 | info->scanline_timer = timer_alloc(scanline_update_callback, NULL); | |
| 336 | timer_adjust(info->scanline_timer, video_screen_get_time_until_pos(scrnum, 0, 0), scrnum, attotime_never); | |
| 337 | } | |
| 338 | ||
| 329 | 339 | /* register for save states */ |
| 330 | 340 | state_save_register_item("video", scrnum, info->vblank_time.seconds); |
| 331 | 341 | state_save_register_item("video", scrnum, info->vblank_time.attoseconds); |
| r1649 | r1650 | |
| 756 | 766 | } |
| 757 | 767 | |
| 758 | 768 | /* recompute the VBLANK timing */ |
| 759 | cpu_compute_vblank_timing(Machine); | |
| 769 | { | |
| 770 | extern void cpu_compute_vblank_timing(running_machine *machine); | |
| 771 | cpu_compute_vblank_timing(Machine); | |
| 772 | } | |
| 760 | 773 | |
| 761 | 774 | /* if we are on scanline 0 already, reset the update timer immediately */ |
| 762 | 775 | /* otherwise, defer until the next scanline 0 */ |
| r1649 | r1650 | |
| 1030 | 1043 | |
| 1031 | 1044 | |
| 1032 | 1045 | /*------------------------------------------------- |
| 1046 | scanline_update_callback - perform partial | |
| 1047 | updates on each scanline | |
| 1048 | -------------------------------------------------*/ | |
| 1049 | ||
| 1050 | static TIMER_CALLBACK( scanline_update_callback ) | |
| 1051 | { | |
| 1052 | video_private *viddata = machine->video_data; | |
| 1053 | int scrnum = param & 0xff; | |
| 1054 | int scanline = param >> 8; | |
| 1055 | ||
| 1056 | /* force a partial update to the current scanline */ | |
| 1057 | video_screen_update_partial(scrnum, scanline); | |
| 1058 | ||
| 1059 | /* compute the next visible scanline */ | |
| 1060 | scanline++; | |
| 1061 | if (scanline > machine->screen[scrnum].visarea.max_y) | |
| 1062 | scanline = machine->screen[scrnum].visarea.min_y; | |
| 1063 | timer_adjust(viddata->scrinfo[scrnum].scanline_timer, video_screen_get_time_until_pos(scrnum, scanline, 0), (scanline << 8) | scrnum, attotime_never); | |
| 1064 | } | |
| 1065 | ||
| 1066 | ||
| 1067 | /*------------------------------------------------- | |
| 1033 | 1068 | video_frame_update - handle frameskipping and |
| 1034 | 1069 | UI, plus updating the screen during normal |
| 1035 | 1070 | operations |
| r1649 | r1650 | |
| 1384 | 1419 | /* apply speed factor to emu time */ |
| 1385 | 1420 | if (global.speed != 0 && global.speed != 100) |
| 1386 | 1421 | { |
| 1387 | /* multiply emutime by 100 */ | |
| 1388 | emutime = attotime_mul(emutime, 100); | |
| 1389 | ||
| 1390 | /* divide emutime by the global speed factor */ | |
| 1391 | emutime.attoseconds /= global.speed; | |
| 1392 | emutime.attoseconds += (emutime.seconds % global.speed) * (ATTOSECONDS_PER_SECOND / global.speed); | |
| 1393 | emutime.seconds /= global.speed; | |
| 1422 | /* multiply emutime by 100, then divide by the global speed factor */ | |
| 1423 | emutime = attotime_div(attotime_mul(emutime, 100), global.speed); | |
| 1394 | 1424 | } |
| 1395 | 1425 | |
| 1396 | 1426 | /* compute conversion factors up front */ |
| r1649 | r1650 | |
|---|---|---|
| 91 | 91 | |
| 92 | 92 | #include "driver.h" |
| 93 | 93 | #include "profiler.h" |
| 94 | #ifdef MAME_DEBUG | |
| 94 | #include "deprecat.h" | |
| 95 | #ifdef ENABLE_DEBUGGER | |
| 95 | 96 | #include "debug/debugcpu.h" |
| 96 | 97 | #endif |
| 97 | #include <stdarg.h> | |
| 98 | 98 | |
| 99 | 99 | |
| 100 | 100 | #define MEM_DUMP (0) |
| r1649 | r1650 | |
| 152 | 152 | |
| 153 | 153 | #define SUBTABLE_PTR(tabledata, entry) (&(tabledata)->table[(1 << LEVEL1_BITS) + (((entry) - SUBTABLE_BASE) << LEVEL2_BITS)]) |
| 154 | 154 | |
| 155 | #ifdef | |
| 155 | #ifdef ENABLE_DEBUGGER | |
| 156 | 156 | #define DEBUG_HOOK_READ(a,b,c) if (debug_hook_read) (*debug_hook_read)(a, b, c) |
| 157 | 157 | #define DEBUG_HOOK_WRITE(a,b,c,d) if (debug_hook_write) (*debug_hook_write)(a, b, c, d) |
| 158 | 158 | #else |
| r1649 | r1650 | |
| 291 | 291 | static cpu_data cpudata[MAX_CPU]; /* data gathered for each CPU */ |
| 292 | 292 | static bank_data bankdata[STATIC_COUNT]; /* data gathered for each bank */ |
| 293 | 293 | |
| 294 | #ifdef | |
| 294 | #ifdef ENABLE_DEBUGGER | |
| 295 | 295 | static debug_hook_read_ptr debug_hook_read; /* pointer to debugger callback for memory reads */ |
| 296 | 296 | static debug_hook_write_ptr debug_hook_write; /* pointer to debugger callback for memory writes */ |
| 297 | 297 | #endif |
| r1649 | r1650 | |
| 540 | 540 | |
| 541 | 541 | opbasefunc = cpudata[activecpu].opbase; |
| 542 | 542 | |
| 543 | #ifdef | |
| 543 | #ifdef ENABLE_DEBUGGER | |
| 544 | 544 | if (activecpu != -1) |
| 545 | 545 | debug_get_memory_hooks(activecpu, &debug_hook_read, &debug_hook_write); |
| 546 | 546 | else |
| r1649 | r1650 | |
|---|---|---|
| 81 | 81 | $(EMUOBJ)/profiler.o |
| 82 | 82 | endif |
| 83 | 83 | |
| 84 | ifdef DEBUG | |
| 84 | ifdef DEBUGGER | |
| 85 | 85 | EMUOBJS += \ |
| 86 | 86 | $(EMUOBJ)/debug/debugcmd.o \ |
| 87 | 87 | $(EMUOBJ)/debug/debugcmt.o \ |
| r1649 | r1650 | |
| 190 | 190 | |
| 191 | 191 | $(LIBCPU): $(CPUOBJS) |
| 192 | 192 | |
| 193 | ifdef DEBUG | |
| 193 | ifdef DEBUGGER | |
| 194 | 194 | $(LIBCPU): $(DBGOBJS) |
| 195 | 195 | endif |
| 196 | 196 |
| r1649 | r1650 | |
|---|---|---|
| 19 | 19 | |
| 20 | 20 | |
| 21 | 21 | /*************************************************************************** |
| 22 | PARAMETERS | |
| 23 | ***************************************************************************/ | |
| 24 | ||
| 25 | #ifdef MAME_DEBUG | |
| 26 | #define CPUREADOP_SAFETY_NONE 0 | |
| 27 | #define CPUREADOP_SAFETY_PARTIAL 0 | |
| 28 | #define CPUREADOP_SAFETY_FULL 1 | |
| 29 | #elif defined(MESS) | |
| 30 | #define CPUREADOP_SAFETY_NONE 0 | |
| 31 | #define CPUREADOP_SAFETY_PARTIAL 1 | |
| 32 | #define CPUREADOP_SAFETY_FULL 0 | |
| 33 | #else | |
| 34 | #define CPUREADOP_SAFETY_NONE 1 | |
| 35 | #define CPUREADOP_SAFETY_PARTIAL 0 | |
| 36 | #define CPUREADOP_SAFETY_FULL 0 | |
| 37 | #endif | |
| 38 | ||
| 39 | ||
| 40 | ||
| 41 | /*************************************************************************** | |
| 42 | 22 | BASIC TYPE DEFINITIONS |
| 43 | 23 | ***************************************************************************/ |
| 44 | 24 | |
| r1649 | r1650 | |
| 693 | 673 | #define AM_READWRITE(_read,_write) AM_READ(_read) AM_WRITE(_write) |
| 694 | 674 | #define AM_ROM AM_READ((_rh_t)STATIC_ROM) |
| 695 | 675 | #define AM_RAM AM_READWRITE((_rh_t)STATIC_RAM, (_wh_t)STATIC_RAM) |
| 676 | #define AM_WRITEONLY AM_WRITE((_wh_t)STATIC_RAM) | |
| 696 | 677 | #define AM_UNMAP AM_READWRITE((_rh_t)STATIC_UNMAP, (_wh_t)STATIC_UNMAP) |
| 697 | 678 | #define AM_ROMBANK(_bank) AM_READ((_rh_t)(STATIC_BANK1 + (_bank) - 1)) |
| 698 | 679 | #define AM_RAMBANK(_bank) AM_READWRITE((_rh_t)(STATIC_BANK1 + (_bank) - 1), (_wh_t)(STATIC_BANK1 + (_bank) - 1)) |
| r1649 | r1650 | |
| 1030 | 1011 | #define ACCESSING_MSB32 ((mem_mask & 0xff000000) == 0) |
| 1031 | 1012 | |
| 1032 | 1013 | /* ----- opcode range safety checks ----- */ |
| 1033 | #if CPUREADOP_SAFETY_NONE | |
| 1034 | #define address_is_unsafe(A) (0) | |
| 1035 | #elif CPUREADOP_SAFETY_PARTIAL | |
| 1036 | #define address_is_unsafe(A) (UNEXPECTED((A) > opcode_memory_max)) | |
| 1037 | #elif CPUREADOP_SAFETY_FULL | |
| 1038 | 1014 | #define address_is_unsafe(A) ((UNEXPECTED((A) < opcode_memory_min) || UNEXPECTED((A) > opcode_memory_max))) |
| 1039 | #else | |
| 1040 | #error Must set either CPUREADOP_SAFETY_NONE, CPUREADOP_SAFETY_PARTIAL or CPUREADOP_SAFETY_FULL | |
| 1041 | #endif | |
| 1042 | 1015 | |
| 1043 | 1016 | /* ----- dynamic memory installation ----- */ |
| 1044 | 1017 | #define memory_install_read_handler(cpu, space, start, end, mask, mirror, handler) \ |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | |
| 12 | 12 | Since there has been confusion in the past over the order of |
| 13 | 13 | initialization and other such things, here it is, all spelled out |
| 14 | as of | |
| 14 | as of Jan | |
| 15 | 15 | |
| 16 | 16 | main() |
| 17 | 17 | - does platform-specific init |
| 18 | - calls | |
| 18 | - calls m | |
| 19 | 19 | |
| 20 | | |
| 20 | m | |
| 21 | 21 | - calls mame_validitychecks() [validity.c] to perform validity checks on all compiled drivers |
| 22 | 22 | - calls setjmp to prepare for deep error handling |
| 23 | 23 | - begins resource tracking (level 1) |
| r1649 | r1650 | |
| 29 | 29 | - calls sndintrf_init() [sndintrf.c] to determine which sound chips are available |
| 30 | 30 | - calls fileio_init() [fileio.c] to initialize file I/O info |
| 31 | 31 | - calls config_init() [config.c] to initialize configuration system |
| 32 | - calls input_init() [input.c] to initialize the input system | |
| 32 | 33 | - calls output_init() [output.c] to initialize the output system |
| 33 | 34 | - calls state_init() [state.c] to initialize save state system |
| 34 | 35 | - calls state_save_allow_registration() [state.c] to allow registrations |
| r1649 | r1650 | |
| 41 | 42 | - calls generic_sound_init() [audio/generic.c] to initialize generic sound structures |
| 42 | 43 | - calls timer_init() [timer.c] to reset the timer system |
| 43 | 44 | - calls osd_init() [osdepend.h] to do platform-specific initialization |
| 44 | - calls code_init() [input.c] to initialize the input system | |
| 45 | 45 | - calls input_port_init() [inptport.c] to set up the input ports |
| 46 | 46 | - calls rom_init() [romload.c] to load the game's ROMs |
| 47 | 47 | - calls memory_init() [memory.c] to process the game's memory maps |
| 48 | 48 | - calls cpuexec_init() [cpuexec.c] to initialize the CPUs |
| 49 | 49 | - calls cpuint_init() [cpuint.c] to initialize the CPU interrupts |
| 50 | - calls mame_debug_init() [debugcpu.c] to set up the debugger | |
| 50 | 51 | - calls the driver's DRIVER_INIT callback |
| 51 | 52 | - calls video_init() [video.c] to start the video system |
| 52 | 53 | - calls sound_init() [sound.c] to start the audio system |
| r1649 | r1650 | |
| 54 | 55 | - disposes of regions marked as disposable |
| 55 | 56 | - calls saveload_init() [mame.c] to set up for save/load |
| 56 | 57 | - calls cheat_init() [cheat.c] to initialize the cheat system |
| 57 | - calls mame_debug_init() [debugcpu.c] to set up the debugger | |
| 58 | 58 | |
| 59 | 59 | - calls config_load_settings() [config.c] to load the configuration file |
| 60 | 60 | - calls nvram_load [machine/generic.c] to load NVRAM |
| 61 | - calls ui_i | |
| 61 | - calls ui_display_startup_screens() [ui.c] to disp | |
| 62 | 62 | - begins resource tracking (level 2) |
| 63 | 63 | - calls soft_reset() [mame.c] to reset all systems |
| 64 | 64 | |
| r1649 | r1650 | |
| 84 | 84 | #include "render.h" |
| 85 | 85 | #include "ui.h" |
| 86 | 86 | #include "uimenu.h" |
| 87 | #include "deprecat.h" | |
| 87 | 88 | |
| 88 | #ifdef | |
| 89 | #ifdef ENABLE_DEBUGGER | |
| 89 | 90 | #include "debug/debugcon.h" |
| 90 | 91 | #endif |
| 91 | 92 | |
| r1649 | r1650 | |
| 1296 | 1297 | parse_ini_file(options, CONFIGNAME); |
| 1297 | 1298 | |
| 1298 | 1299 | /* debug builds: parse "debug.ini" as well */ |
| 1299 | #ifdef | |
| 1300 | #ifdef ENABLE_DEBUGGER | |
| 1300 | 1301 | parse_ini_file(options, "debug"); |
| 1301 | 1302 | #endif |
| 1302 | 1303 | |
| r1649 | r1650 | |
| 1446 | 1447 | machine->playback_file = NULL; |
| 1447 | 1448 | |
| 1448 | 1449 | /* debugger-related information */ |
| 1449 | #ifdef | |
| 1450 | #ifdef ENABLE_DEBUGGER | |
| 1450 | 1451 | machine->debug_mode = options_get_bool(mame_options(), OPTION_DEBUG); |
| 1451 | 1452 | #else |
| 1452 | 1453 | machine->debug_mode = 0; |
| r1649 | r1650 | |
| 1543 | 1544 | devices_init(machine); |
| 1544 | 1545 | #endif |
| 1545 | 1546 | |
| 1546 | #ifdef | |
| 1547 | #ifdef ENABLE_DEBUGGER | |
| 1547 | 1548 | /* initialize the debugger */ |
| 1548 | 1549 | if (machine->debug_mode) |
| 1549 | 1550 | mame_debug_init(machine); |
| r1649 | r1650 | |
|---|---|---|
| 98 | 98 | #include "profiler.h" |
| 99 | 99 | #include "inputseq.h" |
| 100 | 100 | #include "ui.h" |
| 101 | #include | |
| 101 | #include "deprecat | |
| 102 | 102 | #include <ctype.h> |
| 103 | 103 | #include <time.h> |
| 104 | 104 | |
| r1649 | r1650 | |
| 225 | 225 | int current_port;/* current port index */ |
| 226 | 226 | }; |
| 227 | 227 | |
| 228 | /* Support for eXtended INP format */ | |
| 229 | struct ext_header | |
| 230 | { | |
| 231 | char header[7]; // must be "XINP" followed by NULLs | |
| 232 | char shortname[9]; // game shortname | |
| 233 | char version[32]; // MAME version string | |
| 234 | UINT32 starttime; // approximate INP start time | |
| 235 | char dummy[32]; // for possible future expansion | |
| 236 | }; | |
| 237 | 228 | |
| 238 | 229 | |
| 239 | 230 | /*************************************************************************** |
| r1649 | r1650 | |
| 272 | 263 | /* recorded speed read from an INP file */ |
| 273 | 264 | static double rec_speed; |
| 274 | 265 | |
| 275 | /* set to 1 if INP file being played is a standard MAME INP file */ | |
| 276 | static int no_extended_inp; | |
| 266 | /* set to TRUE if INP file being played is an extended INP file */ | |
| 267 | static int extended_inp; | |
| 277 | 268 | |
| 278 | 269 | /* for average speed calculations */ |
| 279 | 270 | static int framecount; |
| 280 | 271 | static double totalspeed; |
| 281 | 272 | |
| 282 | 273 | |
| 274 | ||
| 283 | 275 | /*************************************************************************** |
| 284 | 276 | PORT HANDLER TABLES |
| 285 | 277 | ***************************************************************************/ |
| r1649 | r1650 | |
| 1155 | 1147 | static void setup_playback(running_machine *machine) |
| 1156 | 1148 | { |
| 1157 | 1149 | const char *filename = options_get_string(mame_options(), OPTION_PLAYBACK); |
| 1150 | ext_inp_header extinpheader; | |
| 1158 | 1151 | inp_header inpheader; |
| 1159 | 1152 | file_error filerr; |
| 1160 | 1153 | time_t started_time; |
| 1161 | struct ext_header xheader; | |
| 1162 | 1154 | char check[7]; |
| 1163 | 1155 | |
| 1164 | 1156 | /* if no file, nothing to do */ |
| r1649 | r1650 | |
| 1169 | 1161 | filerr = mame_fopen(SEARCHPATH_INPUTLOG, filename, OPEN_FLAG_READ, &machine->playback_file); |
| 1170 | 1162 | assert_always(filerr == FILERR_NONE, "Failed to open file for playback"); |
| 1171 | 1163 | |
| 1172 | // read first four bytes to check INP type | |
| 1173 | mame_fread(Machine->playback_file, check, 7); | |
| 1174 | mame_fseek(Machine->playback_file, 0, SEEK_SET); | |
| 1164 | /* read first four bytes to check INP type */ | |
| 1165 | mame_fread(machine->playback_file, check, 7); | |
| 1166 | mame_fseek(machine->playback_file, 0, SEEK_SET); | |
| 1175 | 1167 | |
| 1176 | 1168 | /* Check if input file is an eXtended INP file */ |
| 1177 | if (strncmp(check,"XINP\0\0\0",7) != 0) | |
| 1169 | extended_inp = (memcmp(check, "XINP\0\0\0", 7) == 0); | |
| 1170 | if (extended_inp) | |
| 1178 | 1171 | { |
| 1179 | no_extended_inp = 1; | |
| 1180 | mame_printf_info("This INP file is not an extended INP file, extra info not available\n"); | |
| 1181 | ||
| 1182 | 1172 | /* read playback header */ |
| 1183 | 1173 | mame_fread(machine->playback_file, &inpheader, sizeof(inpheader)); |
| 1184 | 1174 | |
| r1649 | r1650 | |
| 1196 | 1186 | } |
| 1197 | 1187 | else |
| 1198 | 1188 | { |
| 1199 | no_extended_inp = 0; | |
| 1200 | mame_printf_info("Extended INP file info:\n"); | |
| 1189 | /* read playback header */ | |
| 1190 | mame_fread(machine->playback_file, &extinpheader, sizeof(extinpheader)); | |
| 1201 | 1191 | |
| 1202 | // read header | |
| 1203 | mame_fread(Machine->playback_file, &xheader, sizeof(struct ext_header)); | |
| 1204 | ||
| 1205 | // output info to console | |
| 1206 | mame_printf_info("Version string: %s\n",xheader.version); | |
| 1207 | started_time = (time_t)xheader.starttime; | |
| 1192 | /* output info to console */ | |
| 1193 | mame_printf_info("Extended INP file info:\n"); | |
| 1194 | mame_printf_info("Version string: %s\n", extinpheader.version); | |
| 1195 | started_time = (time_t)extinpheader.starttime; | |
| 1208 | 1196 | mame_printf_info("Start time: %s\n", ctime(&started_time)); |
| 1209 | 1197 | |
| 1210 | // verify header against current game | |
| 1211 | if (strcmp(machine->gamedrv->name, xheader.shortname) != 0) | |
| 1212 | fatalerror("Input file is for " GAMENOUN " '%s', not for current " GAMENOUN " '%s'\n", xheader.shortname, machine->gamedrv->name); | |
| 1198 | /* verify header against current game */ | |
| 1199 | if (strcmp(machine->gamedrv->name, extinpheader.shortname) != 0) | |
| 1200 | fatalerror("Input file is for " GAMENOUN " '%s', not for current " GAMENOUN " '%s'\n", extinpheader.shortname, machine->gamedrv->name); | |
| 1213 | 1201 | else |
| 1214 | 1202 | mame_printf_info("Playing back previously recorded " GAMENOUN " %s\n", machine->gamedrv->name); |
| 1215 | 1203 | } |
| 1216 | ||
| 1217 | 1204 | } |
| 1218 | 1205 | |
| 1219 | 1206 | |
| r1649 | r1650 | |
| 2790 | 2777 | { |
| 2791 | 2778 | mame_fclose(Machine->playback_file); |
| 2792 | 2779 | Machine->playback_file = NULL; |
| 2793 | if( | |
| 2780 | if (! | |
| 2794 | 2781 | popmessage("End of playback"); |
| 2795 | 2782 | else |
| 2796 | 2783 | { |
| 2797 | popmessage("End of playback - %i frames - Average speed %f%%",framecount,(double)totalspeed/framecount); | |
| 2798 | printf("End of playback - %i frames - Average speed %f%%\n",framecount,(double)totalspeed/framecount); | |
| 2784 | popmessage("End of playback - %i frames - Average speed %f%%", framecount, (double)totalspeed/framecount); | |
| 2785 | printf("End of playback - %i frames - Average speed %f%%\n", framecount, (double)totalspeed/framecount); | |
| 2799 | 2786 | } |
| 2800 | 2787 | } |
| 2801 | 2788 | } |
| r1649 | r1650 | |
| 3008 | 2995 | } |
| 3009 | 2996 | |
| 3010 | 2997 | /* store speed read from INP file, if extended INP */ |
| 3011 | if (Machine->playback_file != NULL && | |
| 2998 | if (Machine->playback_file != NULL && | |
| 3012 | 2999 | { |
| 3013 | 3000 | UINT32 dummy; |
| 3014 | 3001 | mame_fread(Machine->playback_file, &rec_speed, sizeof(rec_speed)); |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "machine/msm6242.h" |
| 9 | 10 | |
| 10 | 11 | static UINT8 msm6264_reg[3] = { 0, 0, 0 }; |
| r1649 | r1650 | |
|---|---|---|
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | #include "driver.h" |
| 9 | #include "deprecat.h" | |
| 9 | 10 | #include "machine/timekpr.h" |
| 10 | 11 | |
| 11 | 12 | struct timekeeper_chip |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | 11 | #include "6526cia.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | |
| 13 | 14 | |
| 14 | 15 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | #include "driver.h" |
| 8 | 8 | #include "idectrl.h" |
| 9 | 9 | #include "debugger.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | |
| 11 | 12 | |
| 12 | 13 | /************************************* |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | **********************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "6821pia.h" |
| 9 | 10 | |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | ***************************************************************************/ |
| 13 | 13 | |
| 14 | 14 | #include "driver.h" |
| 15 | #include "deprecat.h" | |
| 15 | 16 | #include "machine/6532riot.h" |
| 16 | 17 | |
| 17 | 18 | struct riot6532 |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | #include "avcomp.h" |
| 15 | 15 | #include "profiler.h" |
| 16 | 16 | #include "streams.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | #include "sound/custom.h" |
| 18 | 19 | |
| 19 | 20 |
| r1649 | r1650 | |
|---|---|---|
| 6 | 6 | This function is a simple emulation of up to 4 MC6840 |
| 7 | 7 | Programmable Timer Modules |
| 8 | 8 | |
| 9 | Written By | |
| 9 | Written By J.Wallace | |
| 10 | 10 | 'Re-Animator' and Mathis Rosenhauer. |
| 11 | 11 | |
| 12 | 12 | Todo: |
| r1649 | r1650 | |
| 33 | 33 | **********************************************************************/ |
| 34 | 34 | |
| 35 | 35 | #include "driver.h" |
| 36 | #include "deprecat.h" | |
| 36 | 37 | #include "6840ptm.h" |
| 37 | 38 | |
| 38 | 39 | #ifdef MAME_DEBUG |
| r1649 | r1650 | |
| 118 | 119 | |
| 119 | 120 | /////////////////////////////////////////////////////////////////////////// |
| 120 | 121 | // // |
| 122 | // ptm6840_get_irq: get IRQ state // | |
| 123 | // // | |
| 124 | /////////////////////////////////////////////////////////////////////////// | |
| 125 | ||
| 126 | int ptm6840_get_irq(int which) | |
| 127 | { | |
| 128 | ptm6840 *p = ptm + which; | |
| 129 | return p->IRQ; | |
| 130 | } | |
| 131 | ||
| 132 | /////////////////////////////////////////////////////////////////////////// | |
| 133 | // // | |
| 121 | 134 | // Subtract from Counter // |
| 122 | 135 | // // |
| 123 | 136 | /////////////////////////////////////////////////////////////////////////// |
| r1649 | r1650 | |
| 196 | 209 | |
| 197 | 210 | INLINE void update_interrupts(int which) |
| 198 | 211 | { |
| 212 | int new_state; | |
| 199 | 213 | ptm6840 *currptr = ptm + which; |
| 200 | currptr->status_reg &= ~0x80; | |
| 201 | 214 | |
| 202 | if ((currptr->status_reg & 0x01) && (currptr->control_reg[0] & 0x40)) currptr->status_reg |= 0x80; | |
| 203 | if ((currptr->status_reg & 0x02) && (currptr->control_reg[1] & 0x40)) currptr->status_reg |= 0x80; | |
| 204 | if ((currptr->status_reg & 0x04) && (currptr->control_reg[2] & 0x40)) currptr->status_reg |= 0x80; | |
| 215 | new_state = (((currptr->status_reg & 0x01) && (currptr->control_reg[0] & 0x40)) || ((currptr->status_reg & 0x02) && (currptr->control_reg[1] & 0x40)) | |
| 216 | ||((currptr->status_reg & 0x04) && (currptr->control_reg[2] & 0x80))); | |
| 205 | 217 | |
| 206 | currptr->IRQ = currptr->status_reg >> 7; | |
| 207 | ||
| 208 | if ( currptr->intf->irq_func ) | |
| 218 | if (new_state != currptr->IRQ) | |
| 209 | 219 | { |
| 210 | currptr->intf->irq_func(currptr->IRQ); | |
| 220 | currptr->IRQ = new_state; | |
| 221 | if (currptr->IRQ) | |
| 222 | { | |
| 223 | currptr->status_reg |= 0x80; | |
| 224 | } | |
| 225 | else | |
| 226 | { | |
| 227 | currptr->status_reg &= ~0x80; | |
| 228 | } | |
| 229 | if (currptr->intf->irq_func) (currptr->intf->irq_func)(currptr->IRQ); | |
| 211 | 230 | } |
| 212 | 231 | } |
| 213 | 232 | |
| r1649 | r1650 | |
| 291 | 310 | |
| 292 | 311 | currptr->fired[idx]=0; |
| 293 | 312 | |
| 294 | if ((currptr->mode[idx] == 4)|(currptr->mode[idx] == 6)) | |
| 313 | if ((currptr->mode[idx] == 4)||(currptr->mode[idx] == 6)) | |
| 295 | 314 | { |
| 296 | 315 | currptr->output[idx] = 1; |
| 297 | 316 | if ( currptr->intf->out_func[idx] ) currptr->intf->out_func[idx](0, currptr->output[idx]); |
| r1649 | r1650 | |
| 644 | 663 | |
| 645 | 664 | /////////////////////////////////////////////////////////////////////////// |
| 646 | 665 | // // |
| 647 | // ptm6840_set_clock: set clock status (0 or 1) // | |
| 666 | // ptm6840_set_clock: set clock status (0 or 1) // | |
| 648 | 667 | // // |
| 649 | 668 | /////////////////////////////////////////////////////////////////////////// |
| 650 | 669 | |
| r1649 | r1650 | |
| 664 | 683 | void ptm6840_set_c2(int which, int state) { ptm6840_set_clock(which, state, 1); } |
| 665 | 684 | void ptm6840_set_c3(int which, int state) { ptm6840_set_clock(which, state, 2); } |
| 666 | 685 | |
| 667 | /////////////////////////////////////////////////////////////////////////// | |
| 686 | ///////////////////////////////////////////////////////////////////////////////// | |
| 668 | 687 | |
| 669 | 688 | READ8_HANDLER( ptm6840_0_r ) { return ptm6840_read(0, offset); } |
| 670 | 689 | READ8_HANDLER( ptm6840_1_r ) { return ptm6840_read(1, offset); } |
| r1649 | r1650 | |
|---|---|---|
| 31 | 31 | void ptm6840_write( int which, int offset, int data); |
| 32 | 32 | |
| 33 | 33 | int ptm6840_get_status(int which, int clock); // get whether timer is enabled |
| 34 | int ptm6840_get_irq(int which); // get IRQ state | |
| 34 | 35 | void ptm6840_set_g1(int which, int state); // set gate1 state |
| 35 | 36 | void ptm6840_set_c1(int which, int state); // set clock1 state |
| 36 | 37 |
| r1649 | r1650 | |
|---|---|---|
| 21 | 21 | **********************************************************************/ |
| 22 | 22 | |
| 23 | 23 | #include "driver.h" |
| 24 | #include "deprecat.h" | |
| 24 | 25 | #include "memconv.h" |
| 25 | 26 | #include "z80dma.h" |
| 26 | 27 |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | #include "driver.h" |
| 13 | 13 | #include "config.h" |
| 14 | 14 | #include "generic.h" |
| 15 | #include <stdarg.h> | |
| 16 | #include <ctype.h> | |
| 15 | #include "deprecat.h" | |
| 17 | 16 | |
| 18 | 17 | |
| 19 | 18 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "ds1302.h" |
| 3 | 4 | |
| 4 | 5 | /******************** |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /********************************************************************* |
| 2 | 2 | |
| 3 | | |
| 3 | 8042kbdc | |
| 4 | 4 | |
| 5 | 5 | Code specific to fun IBM AT stuff |
| 6 | 6 | |
| r1649 | r1650 | |
| 175 | 175 | |
| 176 | 176 | #include "driver.h" |
| 177 | 177 | #include "memconv.h" |
| 178 | #include "deprecat.h" | |
| 178 | 179 | |
| 179 | 180 | #include "machine/pckeybrd.h" |
| 180 | 181 | #include "machine/8042kbdc.h" |
| r1649 | r1650 | |
|---|---|---|
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | #include "driver.h" |
| 9 | #include "deprecat.h" | |
| 9 | 10 | #include "74181.h" |
| 10 | 11 | |
| 11 | 12 |
| r1649 | r1650 | |
|---|---|---|
| 19 | 19 | **********************************************************************/ |
| 20 | 20 | |
| 21 | 21 | #include "driver.h" |
| 22 | #include "deprecat.h" | |
| 22 | 23 | #include "memconv.h" |
| 23 | 24 | #include "8237dma.h" |
| 24 | 25 |
| r1649 | r1650 | |
|---|---|---|
| 25 | 25 | **********************************************************************/ |
| 26 | 26 | |
| 27 | 27 | #include "driver.h" |
| 28 | #include "deprecat.h" | |
| 28 | 29 | #include "memconv.h" |
| 29 | 30 | #include "8257dma.h" |
| 30 | 31 |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | ***************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "machine/tmp68301.h" |
| 13 | 14 | |
| 14 | 15 | UINT16 *tmp68301_regs; |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | ***************************************************************************/ |
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | #include "deprecat.h" | |
| 13 | 14 | #include "z80ctc.h" |
| 14 | 15 | #include "cpu/z80/z80.h" |
| 15 | 16 | #include "cpu/z80/z80daisy.h" |
| r1649 | r1650 | |
|---|---|---|
| 73 | 73 | |
| 74 | 74 | #include "driver.h" |
| 75 | 75 | #include "memconv.h" |
| 76 | #include "deprecat.h" | |
| 76 | 77 | #include "machine/mc146818.h" |
| 77 | 78 | |
| 78 | 79 |
| r1649 | r1650 | |
|---|---|---|
| 16 | 16 | */ |
| 17 | 17 | |
| 18 | 18 | #include "driver.h" |
| 19 | #include "deprecat.h" | |
| 19 | 20 | #include "rtc65271.h" |
| 20 | 21 | |
| 21 | 22 | static void field_interrupts(void); |
| r1649 | r1650 | |
|---|---|---|
| 188 | 188 | const pen_t * pens; /* remapped palette pen numbers */ |
| 189 | 189 | struct _colortable_t * colortable; /* global colortable for remapping */ |
| 190 | 190 | const UINT16 * game_colortable; /* lookup table used to map gfx pen numbers to color numbers */ |
| 191 | const pen_t * remapped_colortable;/* the above, already remapped through | |
| 191 | const pen_t * remapped_colortable;/* the above, already remapped through machine->pens */ | |
| 192 | 192 | pen_t * shadow_table; /* table for looking up a shadowed pen */ |
| 193 | 193 | |
| 194 | 194 | /* audio-related information */ |
| r1649 | r1650 | |
| 248 | 248 | GLOBAL VARAIBLES |
| 249 | 249 | ***************************************************************************/ |
| 250 | 250 | |
| 251 | extern running_machine *Machine; | |
| 252 | 251 | extern const char mame_disclaimer[]; |
| 253 | 252 | extern char giant_string_buffer[]; |
| 254 | 253 |
| r1649 | r1650 | |
|---|---|---|
| 597 | 597 | #ifdef MESS |
| 598 | 598 | struct |
| 599 | 599 | { |
| 600 | unicode_char chars[3];/* (MESS-specific) unicode key data */ | |
| 600 | unicode_char chars[3]; /* (MESS-specific) unicode key data */ | |
| 601 | 601 | } keyboard; |
| 602 | 602 | #endif /* MESS */ |
| 603 | 603 | }; |
| r1649 | r1650 | |
| 606 | 606 | typedef struct _inp_header inp_header; |
| 607 | 607 | struct _inp_header |
| 608 | 608 | { |
| 609 | char name[9]; /* 8 bytes for game->name + NUL */ | |
| 610 | char version[3]; /* byte[0] = 0, byte[1] = version byte[2] = beta_version */ | |
| 611 | char reserved[20]; /* for future use, possible store game options? */ | |
| 609 | char name[9]; /* 8 bytes for game->name + NUL */ | |
| 610 | char version[3]; /* byte[0] = 0, byte[1] = version byte[2] = beta_version */ | |
| 611 | char reserved[20]; /* for future use, possible store game options? */ | |
| 612 | 612 | }; |
| 613 | 613 | |
| 614 | 614 | |
| 615 | typedef struct _ext_inp_header ext_inp_header; | |
| 616 | struct _ext_inp_header | |
| 617 | { | |
| 618 | char header[7]; /* must be "XINP" followed by NULLs */ | |
| 619 | char shortname[9]; /* game shortname */ | |
| 620 | char version[32]; /* MAME version string */ | |
| 621 | UINT32 starttime; /* approximate INP start time */ | |
| 622 | char dummy[32]; /* for possible future expansion */ | |
| 623 | }; | |
| 615 | 624 | |
| 625 | ||
| 626 | ||
| 616 | 627 | /*************************************************************************** |
| 617 | 628 | MACROS FOR BUILDING INPUT PORTS |
| 618 | 629 | ***************************************************************************/ |
| r1649 | r1650 | |
|---|---|---|
| 161 | 161 | void mediagx_get_info(UINT32 state, cpuinfo *info); |
| 162 | 162 | void i960_get_info(UINT32 state, cpuinfo *info); |
| 163 | 163 | void h8_3002_get_info(UINT32 state, cpuinfo *info); |
| 164 | void h8_3007_get_info(UINT32 state, cpuinfo *info); | |
| 165 | void h8_3044_get_info(UINT32 state, cpuinfo *info); | |
| 164 | 166 | void v810_get_info(UINT32 state, cpuinfo *info); |
| 165 | 167 | void m37702_get_info(UINT32 state, cpuinfo *info); |
| 166 | 168 | void m37710_get_info(UINT32 state, cpuinfo *info); |
| r1649 | r1650 | |
| 674 | 676 | #endif |
| 675 | 677 | #if (HAS_H83002) |
| 676 | 678 | { CPU_H83002, h8_3002_get_info }, |
| 679 | { CPU_H83007, h8_3007_get_info }, | |
| 680 | { CPU_H83044, h8_3044_get_info }, | |
| 677 | 681 | #endif |
| 678 | 682 | #if (HAS_V810) |
| 679 | 683 | { CPU_V810, v810_get_info }, |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | ***************************************************************************/ |
| 11 | 11 | |
| 12 | #include <math.h> | |
| 13 | 12 | #include "driver.h" |
| 13 | #include "deprecat.h" | |
| 14 | 14 | #include "cheat.h" |
| 15 | 15 | #include "profiler.h" |
| 16 | 16 | #include "debugger.h" |
| 17 | 17 | |
| 18 | #ifdef | |
| 18 | #ifdef ENABLE_DEBUGGER | |
| 19 | 19 | #include "debug/debugcpu.h" |
| 20 | 20 | #endif |
| 21 | 21 | |
| 22 | 22 | |
| 23 | 23 | |
| 24 | /************************************* | |
| 25 | * | |
| 26 | * Debug logging | |
| 27 | * | |
| 28 | *************************************/ | |
| 24 | /*************************************************************************** | |
| 25 | DEBUGGING | |
| 26 | ***************************************************************************/ | |
| 29 | 27 | |
| 30 | 28 | #define VERBOSE 0 |
| 31 | 29 | |
| r1649 | r1650 | |
| 33 | 31 | |
| 34 | 32 | |
| 35 | 33 | |
| 36 | /************************************* | |
| 37 | * | |
| 38 | * Macros to help verify active CPU | |
| 39 | * | |
| 40 | *************************************/ | |
| 34 | /*************************************************************************** | |
| 35 | MACROS | |
| 36 | ***************************************************************************/ | |
| 41 | 37 | |
| 42 | 38 | #define VERIFY_ACTIVECPU(name) \ |
| 43 | 39 | int activecpu = cpu_getactivecpu(); \ |
| r1649 | r1650 | |
| 52 | 48 | |
| 53 | 49 | |
| 54 | 50 | |
| 55 | /************************************* | |
| 56 | * | |
| 57 | * Triggers for the timer system | |
| 58 | * | |
| 59 | *************************************/ | |
| 51 | /*************************************************************************** | |
| 52 | CONSTANTS | |
| 53 | ***************************************************************************/ | |
| 60 | 54 | |
| 55 | /* internal trigger IDs */ | |
| 61 | 56 | enum |
| 62 | 57 | { |
| 63 | 58 | TRIGGER_TIMESLICE = -1000, |
| r1649 | r1650 | |
| 68 | 63 | |
| 69 | 64 | |
| 70 | 65 | |
| 71 | /************************************* | |
| 72 | * | |
| 73 | * Internal CPU info structure | |
| 74 | * | |
| 75 | *************************************/ | |
| 66 | /*************************************************************************** | |
| 67 | TYPE DEFINITIONS | |
| 68 | ***************************************************************************/ | |
| 76 | 69 | |
| 70 | /* Internal CPU info structure */ | |
| 77 | 71 | typedef struct _cpuexec_data cpuexec_data; |
| 78 | 72 | struct _cpuexec_data |
| 79 | 73 | { |
| 80 | UINT8 saveable; /* true if saveable */ | |
| 74 | UINT8 saveable; /* true if saveable */ | |
| 81 | 75 | |
| 82 | UINT8 suspend; /* suspend reason mask (0 = not suspended) */ | |
| 83 | UINT8 nextsuspend; /* pending suspend reason mask */ | |
| 84 | UINT8 eatcycles; /* true if we eat cycles while suspended */ | |
| 85 | UINT8 nexteatcycles; /* pending value */ | |
| 86 | INT32 trigger; /* pending trigger to release a trigger suspension */ | |
| 76 | UINT8 suspend; /* suspend reason mask (0 = not suspended) */ | |
| 77 | UINT8 nextsuspend; /* pending suspend reason mask */ | |
| 78 | UINT8 eatcycles; /* true if we eat cycles while suspended */ | |
| 79 | UINT8 nexteatcycles; /* pending value */ | |
| 80 | INT32 trigger; /* pending trigger to release a trigger suspension */ | |
| 87 | 81 | |
| 88 | INT32 iloops; /* number of interrupts remaining this frame */ | |
| 82 | INT32 iloops; /* number of interrupts remaining this frame */ | |
| 89 | 83 | |
| 90 | UINT64 totalcycles; /* total CPU cycles executed */ | |
| 91 | attotime localtime; /* local time, relative to the timer system's global time */ | |
| 92 | INT32 clock; /* current active clock */ | |
| 93 | double clockscale; /* current active clock scale factor */ | |
| 84 | UINT64 totalcycles; /* total CPU cycles executed */ | |
| 85 | attotime localtime; /* local time, relative to the timer system's global time */ | |
| 86 | INT32 clock; /* current active clock */ | |
| 87 | double clockscale; /* current active clock scale factor */ | |
| 94 | 88 | |
| 95 | INT32 vblankint_countdown; /* number of vblank callbacks left until we interrupt */ | |
| 96 | INT32 vblankint_multiplier; /* number of vblank callbacks per interrupt */ | |
| 97 | void * vblankint_timer; /* reference to elapsed time counter */ | |
| 89 | INT32 vblankint_countdown; /* number of vblank callbacks left until we interrupt */ | |
| 90 | INT32 vblankint_multiplier; /* number of vblank callbacks per interrupt */ | |
| 91 | emu_timer * vblankint_timer; /* reference to elapsed time counter */ | |
| 98 | 92 | |
| 99 | void * timedint_timer; /* reference to this CPU's timer */ | |
| 100 | attotime timedint_period; /* timing period of the timed interrupt */ | |
| 93 | emu_timer * timedint_timer; /* reference to this CPU's timer */ | |
| 94 | attotime timedint_period; /* timing period of the timed interrupt */ | |
| 101 | 95 | }; |
| 102 | 96 | |
| 103 | 97 | |
| 104 | 98 | |
| 105 | /************************************* | |
| 106 | * | |
| 107 | * General CPU variables | |
| 108 | * | |
| 109 | *************************************/ | |
| 99 | /*************************************************************************** | |
| 100 | GLOBAL VARIABLES | |
| 101 | ***************************************************************************/ | |
| 110 | 102 | |
| 103 | /* general CPU variables */ | |
| 111 | 104 | static cpuexec_data cpu[MAX_CPU]; |
| 112 | 105 | |
| 113 | 106 | static UINT8 vblank; |
| 114 | 107 | static UINT32 current_frame; |
| 115 | static INT32 watchdog_counter; | |
| 116 | 108 | |
| 117 | 109 | static int cycles_running; |
| 118 | 110 | static int cycles_stolen; |
| 119 | 111 | |
| 120 | 112 | |
| 121 | ||
| 122 | /************************************* | |
| 123 | * | |
| 124 | * Timer variables | |
| 125 | * | |
| 126 | *************************************/ | |
| 127 | ||
| 113 | /* timer variables */ | |
| 128 | 114 | static emu_timer *vblank_timer; |
| 129 | 115 | static INT32 vblank_countdown; |
| 130 | 116 | static INT32 vblank_multiplier; |
| r1649 | r1650 | |
| 142 | 128 | static emu_timer *interleave_boost_timer_end; |
| 143 | 129 | static attotime perfect_interleave; |
| 144 | 130 | |
| 131 | /* watchdog state */ | |
| 132 | static UINT8 watchdog_enabled; | |
| 133 | static INT32 watchdog_counter; | |
| 145 | 134 | static emu_timer *watchdog_timer; |
| 146 | 135 | |
| 147 | 136 | |
| 148 | 137 | |
| 149 | /************************************* | |
| 150 | * | |
| 151 | * Static prototypes | |
| 152 | * | |
| 153 | *************************************/ | |
| 138 | /*************************************************************************** | |
| 139 | FUNCTION PROTOTYPES | |
| 140 | ***************************************************************************/ | |
| 154 | 141 | |
| 155 | 142 | static void cpuexec_exit(running_machine *machine); |
| 156 | 143 | static void cpuexec_reset(running_machine *machine); |
| r1649 | r1650 | |
| 160 | 147 | static TIMER_CALLBACK( cpu_updatecallback ); |
| 161 | 148 | static TIMER_CALLBACK( end_interleave_boost ); |
| 162 | 149 | static void compute_perfect_interleave(running_machine *machine); |
| 163 | static void watchdog_setup(running_machine *machine, int alloc_new); | |
| 164 | 150 | |
| 151 | void cpu_compute_vblank_timing(running_machine *machine); | |
| 165 | 152 | |
| 166 | 153 | |
| 167 | /************************************* | |
| 168 | * | |
| 169 | * Watchdog Flags | |
| 170 | * | |
| 171 | *************************************/ | |
| 172 | 154 | |
| 173 | #define WATCHDOG_IS_STARTED_DISABLED -1 | |
| 174 | #define WATCHDOG_IS_DISABLED -2 | |
| 175 | #define WATCHDOG_IS_TIMER_BASED -3 | |
| 176 | #define WATCHDOG_IS_INVALID -4 | |
| 177 | #define WATCHDOG_IS_BEING_STARTED -5 | |
| 155 | /*************************************************************************** | |
| 156 | CORE CPU EXECUTION | |
| 157 | ***************************************************************************/ | |
| 178 | 158 | |
| 159 | /*------------------------------------------------- | |
| 160 | cpuexec_init - initialize internal states of | |
| 161 | all CPUs | |
| 162 | -------------------------------------------------*/ | |
| 179 | 163 | |
| 180 | ||
| 181 | #if 0 | |
| 182 | #pragma mark CORE CPU | |
| 183 | #endif | |
| 184 | ||
| 185 | /************************************* | |
| 186 | * | |
| 187 | * Initialize all the CPUs | |
| 188 | * | |
| 189 | *************************************/ | |
| 190 | ||
| 191 | 164 | void cpuexec_init(running_machine *machine) |
| 192 | 165 | { |
| 193 | 166 | int cpunum; |
| r1649 | r1650 | |
| 266 | 239 | state_save_push_tag(0); |
| 267 | 240 | state_save_register_item("cpu", 0, vblank); |
| 268 | 241 | state_save_register_item("cpu", 0, current_frame); |
| 242 | state_save_register_item("cpu", 0, watchdog_enabled); | |
| 269 | 243 | state_save_register_item("cpu", 0, watchdog_counter); |
| 270 | 244 | state_save_register_item("cpu", 0, vblank_countdown); |
| 271 | 245 | state_save_pop_tag(); |
| 272 | 246 | } |
| 273 | 247 | |
| 274 | 248 | |
| 249 | /*------------------------------------------------- | |
| 250 | cpuexec_reset - reset CPU states on a soft | |
| 251 | reset | |
| 252 | -------------------------------------------------*/ | |
| 275 | 253 | |
| 276 | /************************************* | |
| 277 | * | |
| 278 | * Prepare the system for execution | |
| 279 | * | |
| 280 | *************************************/ | |
| 281 | ||
| 282 | 254 | static void cpuexec_reset(running_machine *machine) |
| 283 | 255 | { |
| 284 | 256 | int cpunum; |
| 285 | 257 | |
| 286 | 258 | /* initialize the various timers (suspends all CPUs at startup) */ |
| 287 | 259 | cpu_inittimers(machine); |
| 288 | watchdog_counter = WATCHDOG_IS_INVALID; | |
| 289 | watchdog_setup(machine, TRUE); | |
| 290 | 260 | |
| 261 | /* set up the watchdog timer; only start off enabled if explicitly configured */ | |
| 262 | watchdog_enabled = (machine->drv->watchdog_vblank_count != 0 || attotime_compare(machine->drv->watchdog_time, attotime_zero) != 0); | |
| 263 | watchdog_reset(machine); | |
| 264 | ||
| 291 | 265 | /* first pass over CPUs */ |
| 292 | 266 | for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) |
| 293 | 267 | { |
| r1649 | r1650 | |
| 311 | 285 | } |
| 312 | 286 | |
| 313 | 287 | |
| 288 | /*------------------------------------------------- | |
| 289 | cpuexec_exit - cleanup all CPUs on exit | |
| 290 | -------------------------------------------------*/ | |
| 314 | 291 | |
| 315 | /************************************* | |
| 316 | * | |
| 317 | * Deinitialize all the CPUs | |
| 318 | * | |
| 319 | *************************************/ | |
| 320 | ||
| 321 | 292 | static void cpuexec_exit(running_machine *machine) |
| 322 | 293 | { |
| 323 | 294 | int cpunum; |
| r1649 | r1650 | |
| 328 | 299 | } |
| 329 | 300 | |
| 330 | 301 | |
| 302 | /*------------------------------------------------- | |
| 303 | cpuexec_timeslice - execute all CPUs for a | |
| 304 | single timeslice | |
| 305 | -------------------------------------------------*/ | |
| 331 | 306 | |
| 332 | ||
| 333 | #if 0 | |
| 334 | #pragma mark - | |
| 335 | #pragma mark WATCHDOG | |
| 336 | #endif | |
| 337 | ||
| 338 | /************************************* | |
| 339 | * | |
| 340 | * Watchdog timer callback | |
| 341 | * | |
| 342 | *************************************/ | |
| 343 | ||
| 344 | static TIMER_CALLBACK( watchdog_callback ) | |
| 345 | { | |
| 346 | logerror("reset caused by the (time) watchdog\n"); | |
| 347 | mame_schedule_soft_reset(machine); | |
| 348 | } | |
| 349 | ||
| 350 | ||
| 351 | ||
| 352 | /************************************* | |
| 353 | * | |
| 354 | * Watchdog setup routine | |
| 355 | * | |
| 356 | *************************************/ | |
| 357 | ||
| 358 | static void watchdog_setup(running_machine *machine, int alloc_new) | |
| 359 | { | |
| 360 | if (watchdog_counter != WATCHDOG_IS_DISABLED) | |
| 361 | { | |
| 362 | if (machine->drv->watchdog_vblank_count) | |
| 363 | { | |
| 364 | /* Start a vblank based watchdog. */ | |
| 365 | watchdog_counter = machine->drv->watchdog_vblank_count; | |
| 366 | } | |
| 367 | else if (attotime_compare(machine->drv->watchdog_time, attotime_zero) != 0) | |
| 368 | { | |
| 369 | /* Start a time based watchdog. */ | |
| 370 | if (alloc_new) | |
| 371 | watchdog_timer = timer_alloc(watchdog_callback, NULL); | |
| 372 | timer_adjust(watchdog_timer, machine->drv->watchdog_time, 0, attotime_zero); | |
| 373 | watchdog_counter = WATCHDOG_IS_TIMER_BASED; | |
| 374 | } | |
| 375 | else if (watchdog_counter == WATCHDOG_IS_INVALID) | |
| 376 | { | |
| 377 | /* The watchdog was not initialized in the MACHINE_DRIVER, | |
| 378 | * so we will start with it disabled. | |
| 379 | */ | |
| 380 | watchdog_counter = WATCHDOG_IS_STARTED_DISABLED; | |
| 381 | } | |
| 382 | else | |
| 383 | { | |
| 384 | /* The watchdog was not initialized in the MACHINE_DRIVER. | |
| 385 | * But it has been manually started, so we will default to | |
| 386 | * using a vblank watchdog. We will set up a default time | |
| 387 | * of 3 times the refresh rate. Which is 3 seconds @ 60Hz | |
| 388 | * refresh. | |
| 389 | ||
| 390 | * The 3 seconds delay is targeted at qzshowby, which otherwise | |
| 391 | * would reset at the start of a game. | |
| 392 | */ | |
| 393 | watchdog_counter = 3 * ATTOSECONDS_TO_HZ(machine->screen[0].refresh); | |
| 394 | } | |
| 395 | } | |
| 396 | } | |
| 397 | ||
| 398 | ||
| 399 | ||
| 400 | /************************************* | |
| 401 | * | |
| 402 | * Watchdog reset | |
| 403 | * | |
| 404 | *************************************/ | |
| 405 | ||
| 406 | void watchdog_reset(running_machine *machine) | |
| 407 | { | |
| 408 | if (watchdog_counter == WATCHDOG_IS_TIMER_BASED) | |
| 409 | { | |
| 410 | timer_reset(watchdog_timer, machine->drv->watchdog_time); | |
| 411 | } | |
| 412 | else | |
| 413 | { | |
| 414 | if (watchdog_counter == WATCHDOG_IS_STARTED_DISABLED) | |
| 415 | { | |
| 416 | watchdog_counter = WATCHDOG_IS_BEING_STARTED; | |
| 417 | logerror("(vblank) watchdog armed by reset\n"); | |
| 418 | } | |
| 419 | ||
| 420 | watchdog_setup(machine, FALSE); | |
| 421 | } | |
| 422 | } | |
| 423 | ||
| 424 | ||
| 425 | ||
| 426 | /************************************* | |
| 427 | * | |
| 428 | * Watchdog enable/disable | |
| 429 | * | |
| 430 | *************************************/ | |
| 431 | ||
| 432 | void watchdog_enable(running_machine *machine, int enable) | |
| 433 | { | |
| 434 | if (!enable) | |
| 435 | { | |
| 436 | // Disable all timers | |
| 437 | watchdog_counter = WATCHDOG_IS_DISABLED; | |
| 438 | } | |
| 439 | else | |
| 440 | // Setup only on change from disable to enable. | |
| 441 | // Do not setup if watchdog is disabled from machine init. | |
| 442 | if (watchdog_counter == WATCHDOG_IS_DISABLED) | |
| 443 | { | |
| 444 | watchdog_counter = WATCHDOG_IS_BEING_STARTED; | |
| 445 | watchdog_setup(machine, FALSE); | |
| 446 | } | |
| 447 | } | |
| 448 | ||
| 449 | ||
| 450 | ||
| 451 | #if 0 | |
| 452 | #pragma mark - | |
| 453 | #pragma mark CPU SCHEDULING | |
| 454 | #endif | |
| 455 | ||
| 456 | /************************************* | |
| 457 | * | |
| 458 | * Execute all the CPUs for one | |
| 459 | * timeslice | |
| 460 | * | |
| 461 | *************************************/ | |
| 462 | ||
| 463 | 307 | void cpuexec_timeslice(running_machine *machine) |
| 464 | 308 | { |
| 465 | 309 | attotime target = timer_next_fire_time(); |
| r1649 | r1650 | |
| 552 | 396 | |
| 553 | 397 | |
| 554 | 398 | |
| 555 | /************************************* | |
| 556 | * | |
| 557 | * Abort the timeslice for the | |
| 558 | * active CPU | |
| 559 | * | |
| 560 | *************************************/ | |
| 399 | /*************************************************************************** | |
| 400 | CPU SCHEDULING | |
| 401 | ***************************************************************************/ | |
| 561 | 402 | |
| 403 | /*------------------------------------------------- | |
| 404 | cpu_boost_interleave - temporarily boosts the | |
| 405 | interleave factor | |
| 406 | -------------------------------------------------*/ | |
| 407 | ||
| 408 | void cpu_boost_interleave(attotime timeslice_time, attotime boost_duration) | |
| 409 | { | |
| 410 | /* if you pass 0 for the timeslice_time, it means pick something reasonable */ | |
| 411 | if (attotime_compare(timeslice_time, perfect_interleave) < 0) | |
| 412 | timeslice_time = perfect_interleave; | |
| 413 | ||
| 414 | LOG(("cpu_boost_interleave(%s, %s)\n", attotime_string(timeslice_time, 9), attotime_string(boost_duration, 9))); | |
| 415 | ||
| 416 | /* adjust the interleave timer */ | |
| 417 | timer_adjust(interleave_boost_timer, timeslice_time, 0, timeslice_time); | |
| 418 | ||
| 419 | /* adjust the end timer, but only if we are going to extend it */ | |
| 420 | if (!timer_enabled(interleave_boost_timer_end) || attotime_compare(timer_timeleft(interleave_boost_timer_end), boost_duration) < 0) | |
| 421 | timer_adjust(interleave_boost_timer_end, boost_duration, 0, attotime_never); | |
| 422 | } | |
| 423 | ||
| 424 | ||
| 425 | /*------------------------------------------------- | |
| 426 | activecpu_abort_timeslice - abort execution | |
| 427 | for the current timeslice, allowing other | |
| 428 | CPUs to run before we run again | |
| 429 | -------------------------------------------------*/ | |
| 430 | ||
| 562 | 431 | void activecpu_abort_timeslice(void) |
| 563 | 432 | { |
| 564 | 433 | int current_icount; |
| r1649 | r1650 | |
| 574 | 443 | } |
| 575 | 444 | |
| 576 | 445 | |
| 446 | /*------------------------------------------------- | |
| 447 | cpunum_suspend - set a suspend reason for the | |
| 448 | given CPU | |
| 449 | -------------------------------------------------*/ | |
| 577 | 450 | |
| 578 | /************************************* | |
| 579 | * | |
| 580 | * Return the current local time for | |
| 581 | * a CPU, relative to the current | |
| 582 | * timeslice | |
| 583 | * | |
| 584 | *************************************/ | |
| 585 | ||
| 586 | attotime cpunum_get_localtime(int cpunum) | |
| 587 | { | |
| 588 | attotime result; | |
| 589 | ||
| 590 | VERIFY_CPUNUM(cpunum_get_localtime); | |
| 591 | ||
| 592 | /* if we're active, add in the time from the current slice */ | |
| 593 | result = cpu[cpunum].localtime; | |
| 594 | if (cpunum == cpu_getexecutingcpu()) | |
| 595 | { | |
| 596 | int cycles = cycles_currently_ran(); | |
| 597 | result = attotime_add(result, ATTOTIME_IN_CYCLES(cycles, cpunum)); | |
| 598 | } | |
| 599 | return result; | |
| 600 | } | |
| 601 | ||
| 602 | ||
| 603 | ||
| 604 | /************************************* | |
| 605 | * | |
| 606 | * Set a suspend reason for the | |
| 607 | * given CPU | |
| 608 | * | |
| 609 | *************************************/ | |
| 610 | ||
| 611 | 451 | void cpunum_suspend(int cpunum, int reason, int eatcycles) |
| 612 | 452 | { |
| 613 | 453 | VERIFY_CPUNUM(cpunum_suspend); |
| r1649 | r1650 | |
| 621 | 461 | } |
| 622 | 462 | |
| 623 | 463 | |
| 464 | /*------------------------------------------------- | |
| 465 | cpunum_resume - clear a suspend reason for the | |
| 466 | given CPU | |
| 467 | -------------------------------------------------*/ | |
| 624 | 468 | |
| 625 | /************************************* | |
| 626 | * | |
| 627 | * Clear a suspend reason for a | |
| 628 | * given CPU | |
| 629 | * | |
| 630 | *************************************/ | |
| 631 | ||
| 632 | 469 | void cpunum_resume(int cpunum, int reason) |
| 633 | 470 | { |
| 634 | 471 | VERIFY_CPUNUM(cpunum_resume); |
| r1649 | r1650 | |
| 641 | 478 | } |
| 642 | 479 | |
| 643 | 480 | |
| 481 | /*------------------------------------------------- | |
| 482 | cpunum_is_suspended - returns true if the | |
| 483 | given CPU is suspended for any of the given | |
| 484 | reasons | |
| 485 | -------------------------------------------------*/ | |
| 644 | 486 | |
| 645 | /************************************* | |
| 646 | * | |
| 647 | * Return true if a given CPU is | |
| 648 | * suspended | |
| 649 | * | |
| 650 | *************************************/ | |
| 651 | ||
| 652 | 487 | int cpunum_is_suspended(int cpunum, int reason) |
| 653 | 488 | { |
| 654 | 489 | VERIFY_CPUNUM(cpunum_suspend); |
| r1649 | r1650 | |
| 657 | 492 | |
| 658 | 493 | |
| 659 | 494 | |
| 660 | /************************************* | |
| 661 | * | |
| 662 | * Gets the current CPU's clock speed | |
| 663 | * | |
| 664 | *************************************/ | |
| 495 | /*************************************************************************** | |
| 496 | CPU CLOCK MANAGEMENT | |
| 497 | ***************************************************************************/ | |
| 665 | 498 | |
| 499 | /*------------------------------------------------- | |
| 500 | update_clock_information - recomputes clock | |
| 501 | information for the specified CPU | |
| 502 | -------------------------------------------------*/ | |
| 503 | ||
| 504 | static void update_clock_information(running_machine *machine, int cpunum) | |
| 505 | { | |
| 506 | /* recompute cps and spc */ | |
| 507 | cycles_per_second[cpunum] = (double)cpu[cpunum].clock * cpu[cpunum].clockscale; | |
| 508 | attoseconds_per_cycle[cpunum] = ATTOSECONDS_PER_SECOND / ((double)cpu[cpunum].clock * cpu[cpunum].clockscale); | |
| 509 | ||
| 510 | /* re-compute the perfect interleave factor */ | |
| 511 | compute_perfect_interleave(machine); | |
| 512 | } | |
| 513 | ||
| 514 | ||
| 515 | /*------------------------------------------------- | |
| 516 | cpunum_get_clock - gets the given CPU's | |
| 517 | clock speed | |
| 518 | -------------------------------------------------*/ | |
| 519 | ||
| 666 | 520 | int cpunum_get_clock(int cpunum) |
| 667 | 521 | { |
| 668 | 522 | VERIFY_CPUNUM(cpunum_get_clock); |
| r1649 | r1650 | |
| 670 | 524 | } |
| 671 | 525 | |
| 672 | 526 | |
| 527 | /*------------------------------------------------- | |
| 528 | cpunum_set_clock - sets the given CPU's | |
| 529 | clock speed | |
| 530 | -------------------------------------------------*/ | |
| 673 | 531 | |
| 674 | /************************************* | |
| 675 | * | |
| 676 | * Sets the current CPU's clock speed | |
| 677 | * | |
| 678 | *************************************/ | |
| 679 | ||
| 680 | 532 | void cpunum_set_clock(running_machine *machine, int cpunum, int clock) |
| 681 | 533 | { |
| 682 | 534 | VERIFY_CPUNUM(cpunum_set_clock); |
| 683 | 535 | |
| 684 | 536 | cpu[cpunum].clock = clock; |
| 685 | cycles_per_second[cpunum] = (double)clock * cpu[cpunum].clockscale; | |
| 686 | attoseconds_per_cycle[cpunum] = ATTOSECONDS_PER_SECOND / ((double)clock * cpu[cpunum].clockscale); | |
| 687 | ||
| 688 | /* re-compute the perfect interleave factor */ | |
| 689 | compute_perfect_interleave(machine); | |
| 537 | update_clock_information(machine, cpunum); | |
| 690 | 538 | } |
| 691 | 539 | |
| 692 | 540 | |
| 541 | /*------------------------------------------------- | |
| 542 | cpunum_get_clockscale - returns the current | |
| 543 | scaling factor for a CPU's clock speed | |
| 544 | -------------------------------------------------*/ | |
| 693 | 545 | |
| 694 | void cpunum_set_clock_period(running_machine *machine, int cpunum, attoseconds_t clock_period) | |
| 695 | { | |
| 696 | VERIFY_CPUNUM(cpunum_set_clock); | |
| 697 | ||
| 698 | cpu[cpunum].clock = ATTOSECONDS_PER_SECOND / clock_period; | |
| 699 | cycles_per_second[cpunum] = (double) (ATTOSECONDS_PER_SECOND / clock_period) * cpu[cpunum].clockscale; | |
| 700 | attoseconds_per_cycle[cpunum] = clock_period; | |
| 701 | ||
| 702 | /* re-compute the perfect interleave factor */ | |
| 703 | compute_perfect_interleave(machine); | |
| 704 | } | |
| 705 | ||
| 706 | ||
| 707 | ||
| 708 | /************************************* | |
| 709 | * | |
| 710 | * Returns the current scaling factor | |
| 711 | * for a CPU's clock speed | |
| 712 | * | |
| 713 | *************************************/ | |
| 714 | ||
| 715 | 546 | double cpunum_get_clockscale(int cpunum) |
| 716 | 547 | { |
| 717 | 548 | VERIFY_CPUNUM(cpunum_get_clockscale); |
| r1649 | r1650 | |
| 719 | 550 | } |
| 720 | 551 | |
| 721 | 552 | |
| 553 | /*------------------------------------------------- | |
| 554 | cpunum_set_clockscale - sets the current | |
| 555 | scaling factor for a CPU's clock speed | |
| 556 | -------------------------------------------------*/ | |
| 722 | 557 | |
| 723 | /************************************* | |
| 724 | * | |
| 725 | * Sets the current scaling factor | |
| 726 | * for a CPU's clock speed | |
| 727 | * | |
| 728 | *************************************/ | |
| 729 | ||
| 730 | 558 | void cpunum_set_clockscale(running_machine *machine, int cpunum, double clockscale) |
| 731 | 559 | { |
| 732 | 560 | VERIFY_CPUNUM(cpunum_set_clockscale); |
| 733 | 561 | |
| 734 | 562 | cpu[cpunum].clockscale = clockscale; |
| 735 | cycles_per_second[cpunum] = (double)cpu[cpunum].clock * clockscale; | |
| 736 | attoseconds_per_cycle[cpunum] = ATTOSECONDS_PER_SECOND / ((double)cpu[cpunum].clock * clockscale); | |
| 737 | ||
| 738 | /* re-compute the perfect interleave factor */ | |
| 739 | compute_perfect_interleave(machine); | |
| 563 | update_clock_information(machine, cpunum); | |
| 740 | 564 | } |
| 741 | 565 | |
| 742 | 566 | |
| 743 | 567 | |
| 744 | /************************************* | |
| 745 | * | |
| 746 | * Temporarily boosts the interleave | |
| 747 | * factor | |
| 748 | * | |
| 749 | *************************************/ | |
| 568 | /*************************************************************************** | |
| 569 | CPU TIMING | |
| 570 | ***************************************************************************/ | |
| 750 | 571 | |
| 751 | void cpu_boost_interleave(attotime timeslice_time, attotime boost_duration) | |
| 572 | /*------------------------------------------------- | |
| 573 | cpunum_get_localtime - returns the current | |
| 574 | local time for a CPU | |
| 575 | -------------------------------------------------*/ | |
| 576 | ||
| 577 | attotime cpunum_get_localtime(int cpunum) | |
| 752 | 578 | { |
| 753 | /* if you pass 0 for the timeslice_time, it means pick something reasonable */ | |
| 754 | if (attotime_compare(timeslice_time, perfect_interleave) < 0) | |
| 755 | timeslice_time = perfect_interleave; | |
| 579 | attotime result; | |
| 756 | 580 | |
| 757 | | |
| 581 | VERIFY_CPUNUM( | |
| 758 | 582 | |
| 759 | /* adjust the interleave timer */ | |
| 760 | timer_adjust(interleave_boost_timer, timeslice_time, 0, timeslice_time); | |
| 761 | ||
| 762 | /* adjust the end timer, but only if we are going to extend it */ | |
| 763 | if (!timer_enabled(interleave_boost_timer_end) || attotime_compare(timer_timeleft(interleave_boost_timer_end), boost_duration) < 0) | |
| 764 | timer_adjust(interleave_boost_timer_end, boost_duration, 0, attotime_never); | |
| 583 | /* if we're active, add in the time from the current slice */ | |
| 584 | result = cpu[cpunum].localtime; | |
| 585 | if (cpunum == cpu_getexecutingcpu()) | |
| 586 | { | |
| 587 | int cycles = cycles_running - activecpu_get_icount(); | |
| 588 | result = attotime_add(result, ATTOTIME_IN_CYCLES(cycles, cpunum)); | |
| 589 | } | |
| 590 | return result; | |
| 765 | 591 | } |
| 766 | 592 | |
| 767 | 593 | |
| 594 | /*------------------------------------------------- | |
| 595 | activecpu_gettotalcycles - return the total | |
| 596 | number of CPU cycles executed on the active | |
| 597 | CPU | |
| 598 | -------------------------------------------------*/ | |
| 768 | 599 | |
| 769 | #if 0 | |
| 770 | #pragma mark - | |
| 771 | #pragma mark TIMING HELPERS | |
| 772 | #endif | |
| 773 | ||
| 774 | /************************************* | |
| 775 | * | |
| 776 | * Return cycles ran this iteration | |
| 777 | * | |
| 778 | *************************************/ | |
| 779 | ||
| 780 | int cycles_currently_ran(void) | |
| 600 | UINT64 activecpu_gettotalcycles(void) | |
| 781 | 601 | { |
| 782 | VERIFY_EXECUTINGCPU(cycles_currently_ran); | |
| 783 | return cycles_running - activecpu_get_icount(); | |
| 784 | } | |
| 785 | ||
| 786 | ||
| 787 | ||
| 788 | /************************************* | |
| 789 | * | |
| 790 | * Return total number of CPU cycles | |
| 791 | * for the active CPU or for a given CPU. | |
| 792 | * | |
| 793 | *************************************/ | |
| 794 | ||
| 795 | /*-------------------------------------------------------------- | |
| 796 | ||
| 797 | IMPORTANT: this value wraps around in a relatively short | |
| 798 | time. For example, for a 6MHz CPU, it will wrap around in | |
| 799 | 2^32/6000000 = 716 seconds = 12 minutes. | |
| 800 | ||
| 801 | Make sure you don't do comparisons between values returned | |
| 802 | by this function, but only use the difference (which will | |
| 803 | be correct regardless of wraparound). | |
| 804 | ||
| 805 | Alternatively, use the new 64-bit variants instead. | |
| 806 | ||
| 807 | --------------------------------------------------------------*/ | |
| 808 | ||
| 809 | UINT32 activecpu_gettotalcycles(void) | |
| 810 | { | |
| 811 | 602 | VERIFY_ACTIVECPU(activecpu_gettotalcycles); |
| 812 | 603 | if (activecpu == cpu_getexecutingcpu()) |
| 813 | return cpu[activecpu].totalcycles + cycles_cu | |
| 604 | return cpu[activecpu].totalcycles + cycles_running - activecpu_ge | |
| 814 | 605 | else |
| 815 | 606 | return cpu[activecpu].totalcycles; |
| 816 | 607 | } |
| 817 | 608 | |
| 818 | UINT32 cpunum_gettotalcycles(int cpunum) | |
| 819 | { | |
| 820 | VERIFY_CPUNUM(cpunum_gettotalcycles); | |
| 821 | if (cpunum == cpu_getexecutingcpu()) | |
| 822 | return cpu[cpunum].totalcycles + cycles_currently_ran(); | |
| 823 | else | |
| 824 | return cpu[cpunum].totalcycles; | |
| 825 | } | |
| 826 | 609 | |
| 610 | /*------------------------------------------------- | |
| 611 | cpunum_gettotalcycles - return the total | |
| 612 | number of CPU cycles executed on the | |
| 613 | specified CPU | |
| 614 | -------------------------------------------------*/ | |
| 827 | 615 | |
| 828 | UINT64 | |
| 616 | UINT64 | |
| 829 | 617 | { |
| 830 | VERIFY_ACTIVECPU(activecpu_gettotalcycles64); | |
| 831 | if (activecpu == cpu_getexecutingcpu()) | |
| 832 | return cpu[activecpu].totalcycles + cycles_currently_ran(); | |
| 833 | else | |
| 834 | return cpu[activecpu].totalcycles; | |
| 835 | } | |
| 836 | ||
| 837 | UINT64 cpunum_gettotalcycles64(int cpunum) | |
| 838 | { | |
| 839 | VERIFY_CPUNUM(cpunum_gettotalcycles64); | |
| 618 | VERIFY_CPUNUM(cpunum_gettotalcycles); | |
| 840 | 619 | if (cpunum == cpu_getexecutingcpu()) |
| 841 | return cpu[cpunum].totalcycles + cycles_cu | |
| 620 | return cpu[cpunum].totalcycles + cycles_running - activecpu_ge | |
| 842 | 621 | else |
| 843 | 622 | return cpu[cpunum].totalcycles; |
| 844 | 623 | } |
| 845 | 624 | |
| 846 | 625 | |
| 626 | /*------------------------------------------------- | |
| 627 | activecpu_eat_cycles - safely eats cycles so | |
| 628 | we don't cross a timeslice boundary | |
| 629 | -------------------------------------------------*/ | |
| 847 | 630 | |
| 848 | /************************************* | |
| 849 | * | |
| 850 | * Safely eats cycles so we don't | |
| 851 | * cross a timeslice boundary | |
| 852 | * | |
| 853 | *************************************/ | |
| 854 | ||
| 855 | 631 | void activecpu_eat_cycles(int cycles) |
| 856 | 632 | { |
| 857 | 633 | int cyclesleft = activecpu_get_icount(); |
| r1649 | r1650 | |
| 862 | 638 | |
| 863 | 639 | |
| 864 | 640 | |
| 865 | /************************************* | |
| 866 | * | |
| 867 | * Scales a given value by the fraction | |
| 868 | * of time elapsed between refreshes | |
| 869 | * | |
| 870 | *************************************/ | |
| 641 | /*************************************************************************** | |
| 642 | SYNCHRONIZATION HELPERS | |
| 643 | ***************************************************************************/ | |
| 871 | 644 | |
| 872 | int cpu_scalebyfcount(int value) | |
| 645 | /*------------------------------------------------- | |
| 646 | cpu_suspend_until_trigger - suspend execution | |
| 647 | until the given trigger fires | |
| 648 | -------------------------------------------------*/ | |
| 649 | ||
| 650 | static void cpunum_suspend_until_trigger(int cpunum, int trigger, int eatcycles) | |
| 873 | 651 | { |
| 874 | attotime refresh_elapsed = timer_timeelapsed(refresh_timer); | |
| 875 | int result; | |
| 652 | /* suspend the CPU immediately if it's not already */ | |
| 653 | cpunum_suspend(cpunum, SUSPEND_REASON_TRIGGER, eatcycles); | |
| 876 | 654 | |
| 877 | /* shift off some bits to ensure no overflow */ | |
| 878 | if (value < 65536) | |
| 879 | result = value * (refresh_elapsed.attoseconds >> 16) / (refresh_period.attoseconds >> 16); | |
| 880 | else | |
| 881 | result = value * (refresh_elapsed.attoseconds >> 32) / (refresh_period.attoseconds >> 32); | |
| 882 | if (value >= 0) | |
| 883 | return (result < value) ? result : value; | |
| 884 | else | |
| 885 | return (result > value) ? result : value; | |
| 655 | /* set the trigger */ | |
| 656 | cpu[cpunum].trigger = TRIGGER_TIMESLICE; | |
| 886 | 657 | } |
| 887 | 658 | |
| 888 | 659 | |
| 660 | /*------------------------------------------------- | |
| 661 | cpu_yield - yield our current timeslice | |
| 662 | -------------------------------------------------*/ | |
| 889 | 663 | |
| 890 | #if 0 | |
| 891 | #pragma mark - | |
| 892 | #pragma mark VIDEO TIMING | |
| 893 | #endif | |
| 664 | void cpu_yield(void) | |
| 665 | { | |
| 666 | int cpunum = cpu_getexecutingcpu(); | |
| 667 | VERIFY_EXECUTINGCPU(cpu_yielduntil_trigger); | |
| 668 | cpunum_suspend_until_trigger(cpunum, TRIGGER_TIMESLICE, FALSE); | |
| 669 | } | |
| 894 | 670 | |
| 895 | /************************************* | |
| 896 | * | |
| 897 | * Computes the VBLANK timing | |
| 898 | * | |
| 899 | *************************************/ | |
| 900 | 671 | |
| 901 | void cpu_compute_vblank_timing(running_machine *machine) | |
| 672 | /*------------------------------------------------- | |
| 673 | cpu_spin - burn CPU cycles until our timeslice | |
| 674 | is up | |
| 675 | -------------------------------------------------*/ | |
| 676 | ||
| 677 | void cpu_spin(void) | |
| 902 | 678 | { |
| 903 | refresh_period = attotime_make(0, machine->screen[0].refresh); | |
| 679 | int cpunum = cpu_getexecutingcpu(); | |
| 680 | VERIFY_EXECUTINGCPU(cpu_yielduntil_trigger); | |
| 681 | cpunum_suspend_until_trigger(cpunum, TRIGGER_TIMESLICE, TRUE); | |
| 682 | } | |
| 904 | 683 | |
| 905 | /* recompute the vblank period */ | |
| 906 | vblank_period = attotime_make(0, machine->screen[0].refresh / (vblank_multiplier ? vblank_multiplier : 1)); | |
| 907 | if (vblank_timer != NULL && timer_enable(vblank_timer, FALSE)) | |
| 908 | { | |
| 909 | attotime remaining = timer_timeleft(vblank_timer); | |
| 910 | if (remaining.seconds == 0 && remaining.attoseconds == 0) | |
| 911 | remaining = vblank_period; | |
| 912 | timer_adjust(vblank_timer, remaining, 0, vblank_period); | |
| 913 | } | |
| 914 | 684 | |
| 915 | LOG(("cpu_compute_vblank_timing: refresh=%s vblank=%s\n", attotime_string(refresh_period, 9), attotime_string(vblank_period, 9))); | |
| 685 | /*------------------------------------------------- | |
| 686 | cpu_spinuntil_trigger - burn CPU cycles until | |
| 687 | a timer trigger | |
| 688 | -------------------------------------------------*/ | |
| 689 | ||
| 690 | void cpu_spinuntil_trigger(int trigger) | |
| 691 | { | |
| 692 | int cpunum = cpu_getexecutingcpu(); | |
| 693 | VERIFY_EXECUTINGCPU(cpu_yielduntil_trigger); | |
| 694 | cpunum_suspend_until_trigger(cpunum, trigger, TRUE); | |
| 916 | 695 | } |
| 917 | 696 | |
| 918 | 697 | |
| 698 | /*------------------------------------------------- | |
| 699 | cpunum_spinuntil_trigger - burn specified CPU | |
| 700 | cycles until a timer trigger | |
| 701 | -------------------------------------------------*/ | |
| 919 | 702 | |
| 920 | /************************************* | |
| 921 | * | |
| 922 | * Returns the VBLANK state | |
| 923 | * | |
| 924 | *************************************/ | |
| 925 | ||
| 926 | int cpu_getvblank(void) | |
| 703 | void cpunum_spinuntil_trigger(int cpunum, int trigger) | |
| 927 | 704 | { |
| 928 | return vblank; | |
| 705 | VERIFY_CPUNUM(cpunum_spinuntil_trigger); | |
| 706 | cpunum_suspend_until_trigger(cpunum, trigger, TRUE); | |
| 929 | 707 | } |
| 930 | 708 | |
| 931 | 709 | |
| 710 | /*------------------------------------------------- | |
| 711 | cpu_spinuntil_int - burn CPU cycles until the | |
| 712 | next interrupt | |
| 713 | -------------------------------------------------*/ | |
| 932 | 714 | |
| 933 | /************************************* | |
| 934 | * | |
| 935 | * Returns the current frame count | |
| 936 | * | |
| 937 | *************************************/ | |
| 715 | void cpu_spinuntil_int(void) | |
| 716 | { | |
| 717 | int cpunum = cpu_getexecutingcpu(); | |
| 718 | VERIFY_EXECUTINGCPU(cpu_spinuntil_int); | |
| 719 | cpunum_suspend_until_trigger(cpunum, TRIGGER_INT + cpunum, TRUE); | |
| 720 | } | |
| 938 | 721 | |
| 939 | int cpu_getcurrentframe(void) | |
| 722 | ||
| 723 | /*------------------------------------------------- | |
| 724 | cpu_spinuntil_time - burn CPU cycles for a | |
| 725 | specific period of time | |
| 726 | -------------------------------------------------*/ | |
| 727 | ||
| 728 | void cpu_spinuntil_time(attotime duration) | |
| 940 | 729 | { |
| 941 | return current_frame; | |
| 730 | static int timetrig = 0; | |
| 731 | int cpunum = cpu_getexecutingcpu(); | |
| 732 | VERIFY_EXECUTINGCPU(cpu_spinuntil_time); | |
| 733 | cpunum_suspend_until_trigger(cpunum, TRIGGER_SUSPENDTIME + timetrig, TRUE); | |
| 734 | cpu_triggertime(duration, TRIGGER_SUSPENDTIME + timetrig); | |
| 735 | timetrig = (timetrig + 1) % 256; | |
| 942 | 736 | } |
| 943 | 737 | |
| 944 | 738 | |
| 945 | 739 | |
| 946 | #if 0 | |
| 947 | #pragma mark - | |
| 948 | #pragma mark SYNCHRONIZATION | |
| 949 | #endif | |
| 740 | /*************************************************************************** | |
| 741 | TRIGGERS | |
| 742 | ***************************************************************************/ | |
| 950 | 743 | |
| 951 | /************************************* | |
| 952 | * | |
| 953 | * Generate a specific trigger | |
| 954 | * | |
| 955 | *************************************/ | |
| 744 | /*------------------------------------------------- | |
| 745 | cpu_trigger - generate a trigger now | |
| 746 | -------------------------------------------------*/ | |
| 956 | 747 | |
| 957 | 748 | void cpu_trigger(running_machine *machine, int trigger) |
| 958 | 749 | { |
| r1649 | r1650 | |
| 979 | 770 | } |
| 980 | 771 | |
| 981 | 772 | |
| 773 | /*------------------------------------------------- | |
| 774 | cpu_triggertime - generate a trigger after a | |
| 775 | specific period of time | |
| 776 | -------------------------------------------------*/ | |
| 982 | 777 | |
| 983 | /************************************* | |
| 984 | * | |
| 985 | * Generate a trigger in the future | |
| 986 | * | |
| 987 | *************************************/ | |
| 988 | ||
| 989 | 778 | static TIMER_CALLBACK( cpu_triggertime_callback ) |
| 990 | 779 | { |
| 991 | 780 | cpu_trigger(machine, param); |
| r1649 | r1650 | |
| 998 | 787 | } |
| 999 | 788 | |
| 1000 | 789 | |
| 790 | /*------------------------------------------------- | |
| 791 | cpu_triggerint - generate a trigger | |
| 792 | corresponding to an interrupt on the given CPU | |
| 793 | -------------------------------------------------*/ | |
| 1001 | 794 | |
| 1002 | /************************************* | |
| 1003 | * | |
| 1004 | * Generate a trigger for an int | |
| 1005 | * | |
| 1006 | *************************************/ | |
| 1007 | ||
| 1008 | 795 | void cpu_triggerint(running_machine *machine, int cpunum) |
| 1009 | 796 | { |
| 1010 | 797 | cpu_trigger(machine, TRIGGER_INT + cpunum); |
| r1649 | r1650 | |
| 1012 | 799 | |
| 1013 | 800 | |
| 1014 | 801 | |
| 1015 | /************************************* | |
| 1016 | * | |
| 1017 | * Burn/yield CPU cycles until a trigger | |
| 1018 | * | |
| 1019 | *************************************/ | |
| 802 | /*************************************************************************** | |
| 803 | WATCHDOG TIMERS | |
| 804 | ***************************************************************************/ | |
| 1020 | 805 | |
| 1021 | void cpu_spinuntil_trigger(int trigger) | |
| 806 | /*------------------------------------------------- | |
| 807 | watchdog_callback - watchdog timer callback | |
| 808 | -------------------------------------------------*/ | |
| 809 | ||
| 810 | static TIMER_CALLBACK( watchdog_callback ) | |
| 1022 | 811 | { |
| 1023 | int cpunum = cpu_getexecutingcpu(); | |
| 812 | logerror("reset caused by the (time) watchdog\n"); | |
| 813 | mame_schedule_soft_reset(machine); | |
| 814 | } | |
| 1024 | 815 | |
| 1025 | VERIFY_EXECUTINGCPU(cpu_spinuntil_trigger); | |
| 1026 | 816 | |
| 1027 | /* suspend the CPU immediately if it's not already */ | |
| 1028 | cpunum_suspend(cpunum, SUSPEND_REASON_TRIGGER, 1); | |
| 817 | /*------------------------------------------------- | |
| 818 | watchdog_reset - reset the watchdog timer | |
| 819 | -------------------------------------------------*/ | |
| 1029 | 820 | |
| 1030 | /* set the trigger */ | |
| 1031 | cpu[cpunum].trigger = trigger; | |
| 1032 | } | |
| 1033 | ||
| 1034 | void cpunum_spinuntil_trigger( int cpunum, int trigger ) | |
| 821 | void watchdog_reset(running_machine *machine) | |
| 1035 | 822 | { |
| 1036 | VERIFY_CPUNUM(cpunum_spinuntil_trigger); | |
| 823 | /* if we're not enabled, skip it */ | |
| 824 | if (!watchdog_enabled) | |
| 825 | timer_adjust(watchdog_timer, attotime_never, 0, attotime_zero); | |
| 1037 | 826 | |
| 1038 | /* suspend the CPU immediately if it's not already */ | |
| 1039 | cpunum_suspend(cpunum, SUSPEND_REASON_TRIGGER, 1); | |
| 827 | /* VBLANK-based watchdog? */ | |
| 828 | else if (machine->drv->watchdog_vblank_count != 0) | |
| 829 | watchdog_counter = machine->drv->watchdog_vblank_count; | |
| 1040 | 830 | |
| 1041 | /* set the trigger */ | |
| 1042 | cpu[cpunum].trigger = trigger; | |
| 831 | /* timer-based watchdog? */ | |
| 832 | else if (attotime_compare(machine->drv->watchdog_time, attotime_zero) != 0) | |
| 833 | timer_adjust(watchdog_timer, machine->drv->watchdog_time, 0, attotime_zero); | |
| 834 | ||
| 835 | /* default to an obscene amount of time (3 seconds) */ | |
| 836 | else | |
| 837 | timer_adjust(watchdog_timer, ATTOTIME_IN_SEC(3), 0, attotime_zero); | |
| 1043 | 838 | } |
| 1044 | 839 | |
| 1045 | 840 | |
| 841 | /*------------------------------------------------- | |
| 842 | watchdog_enable - reset the watchdog timer | |
| 843 | -------------------------------------------------*/ | |
| 1046 | 844 | |
| 1047 | /************************************* | |
| 1048 | * | |
| 1049 | * Burn/yield CPU cycles until an | |
| 1050 | * interrupt | |
| 1051 | * | |
| 1052 | *************************************/ | |
| 1053 | ||
| 1054 | void cpu_spinuntil_int(void) | |
| 845 | void watchdog_enable(running_machine *machine, int enable) | |
| 1055 | 846 | { |
| 1056 | VERIFY_EXECUTINGCPU(cpu_spinuntil_int); | |
| 1057 | cpu_spinuntil_trigger(TRIGGER_INT + activecpu); | |
| 847 | /* when re-enabled, we reset our state */ | |
| 848 | if (watchdog_enabled != enable) | |
| 849 | { | |
| 850 | watchdog_enabled = enable; | |
| 851 | watchdog_reset(machine); | |
| 852 | } | |
| 1058 | 853 | } |
| 1059 | 854 | |
| 1060 | 855 | |
| 1061 | 856 | |
| 1062 | /************************************* | |
| 1063 | * | |
| 1064 | * Burn/yield CPU cycles until the | |
| 1065 | * end of the current timeslice | |
| 1066 | * | |
| 1067 | *************************************/ | |
| 857 | /*************************************************************************** | |
| 858 | CHEESY FAKE VIDEO TIMING | |
| 859 | ***************************************************************************/ | |
| 1068 | 860 | |
| 1069 | void cpu_spin(void) | |
| 1070 | { | |
| 1071 | cpu_spinuntil_trigger(TRIGGER_TIMESLICE); | |
| 1072 | } | |
| 861 | /*------------------------------------------------- | |
| 862 | cpu_compute_vblank_timing - recompute cheesy | |
| 863 | VBLANK timing after a video change | |
| 864 | -------------------------------------------------*/ | |
| 1073 | 865 | |
| 1074 | ||
| 1075 | void cpu_yield(void) | |
| 866 | void cpu_compute_vblank_timing(running_machine *machine) | |
| 1076 | 867 | { |
| 1077 | i | |
| 868 | refresh_period | |
| 1078 | 869 | |
| 1079 | VERIFY_EXECUTINGCPU(cpu_yielduntil_trigger); | |
| 870 | /* recompute the vblank period */ | |
| 871 | vblank_period = attotime_make(0, machine->screen[0].refresh / (vblank_multiplier ? vblank_multiplier : 1)); | |
| 872 | if (vblank_timer != NULL && timer_enable(vblank_timer, FALSE)) | |
| 873 | { | |
| 874 | attotime remaining = timer_timeleft(vblank_timer); | |
| 875 | if (remaining.seconds == 0 && remaining.attoseconds == 0) | |
| 876 | remaining = vblank_period; | |
| 877 | timer_adjust(vblank_timer, remaining, 0, vblank_period); | |
| 878 | } | |
| 1080 | 879 | |
| 1081 | /* suspend the CPU immediately if it's not already */ | |
| 1082 | cpunum_suspend(cpunum, SUSPEND_REASON_TRIGGER, 0); | |
| 1083 | ||
| 1084 | /* set the trigger */ | |
| 1085 | cpu[cpunum].trigger = TRIGGER_TIMESLICE; | |
| 880 | LOG(("cpu_compute_vblank_timing: refresh=%s vblank=%s\n", attotime_string(refresh_period, 9), attotime_string(vblank_period, 9))); | |
| 1086 | 881 | } |
| 1087 | 882 | |
| 1088 | 883 | |
| 884 | /*------------------------------------------------- | |
| 885 | cpu_scalebyfcount - scale by time between | |
| 886 | refresh timers | |
| 887 | -------------------------------------------------*/ | |
| 1089 | 888 | |
| 1090 | /************************************* | |
| 1091 | * | |
| 1092 | * Burn/yield CPU cycles for a | |
| 1093 | * specific period of time | |
| 1094 | * | |
| 1095 | *************************************/ | |
| 1096 | ||
| 1097 | void cpu_spinuntil_time(attotime duration) | |
| 889 | int cpu_scalebyfcount(int value) | |
| 1098 | 890 | { |
| 1099 | static int timetrig = 0; | |
| 891 | attotime refresh_elapsed = timer_timeelapsed(refresh_timer); | |
| 892 | int result; | |
| 1100 | 893 | |
| 1101 | cpu_spinuntil_trigger(TRIGGER_SUSPENDTIME + timetrig); | |
| 1102 | cpu_triggertime(duration, TRIGGER_SUSPENDTIME + timetrig); | |
| 1103 | timetrig = (timetrig + 1) & 255; | |
| 894 | /* shift off some bits to ensure no overflow */ | |
| 895 | if (value < 65536) | |
| 896 | result = value * (refresh_elapsed.attoseconds >> 16) / (refresh_period.attoseconds >> 16); | |
| 897 | else | |
| 898 | result = value * (refresh_elapsed.attoseconds >> 32) / (refresh_period.attoseconds >> 32); | |
| 899 | if (value >= 0) | |
| 900 | return (result < value) ? result : value; | |
| 901 | else | |
| 902 | return (result > value) ? result : value; | |
| 1104 | 903 | } |
| 1105 | 904 | |
| 1106 | 905 | |
| 906 | /*------------------------------------------------- | |
| 907 | cpu_getiloops - return the cheesy VBLANK | |
| 908 | interrupt counter (deprecated) | |
| 909 | -------------------------------------------------*/ | |
| 1107 | 910 | |
| 1108 | #if 0 | |
| 1109 | #pragma mark - | |
| 1110 | #pragma mark CORE TIMING | |
| 1111 | #endif | |
| 911 | int cpu_getiloops(void) | |
| 912 | { | |
| 913 | VERIFY_ACTIVECPU(cpu_getiloops); | |
| 914 | return cpu[activecpu].iloops; | |
| 915 | } | |
| 1112 | 916 | |
| 1113 | /************************************* | |
| 1114 | * | |
| 1115 | * Returns the number of times the | |
| 1116 | * interrupt handler will be called | |
| 1117 | * before the end of the current | |
| 1118 | * video frame. | |
| 1119 | * | |
| 1120 | *************************************/ | |
| 1121 | 917 | |
| 1122 | /*-------------------------------------------------------------- | |
| 918 | /*------------------------------------------------- | |
| 919 | cpu_getvblank - return the cheesy VBLANK | |
| 920 | state (deprecated) | |
| 921 | -------------------------------------------------*/ | |
| 1123 | 922 | |
| 1124 | This can be useful to interrupt handlers to synchronize | |
| 1125 | their operation. If you call this from outside an interrupt | |
| 1126 | handler, add 1 to the result, i.e. if it returns 0, it means | |
| 1127 | that the interrupt handler will be called once. | |
| 923 | int cpu_getvblank(void) | |
| 924 | { | |
| 925 | return vblank; | |
| 926 | } | |
| 1128 | 927 | |
| 1129 | --------------------------------------------------------------*/ | |
| 1130 | 928 | |
| 1131 | int cpu_getiloops(void) | |
| 929 | /*------------------------------------------------- | |
| 930 | cpu_getcurrentframe - return the current | |
| 931 | frame count (deprecated) | |
| 932 | -------------------------------------------------*/ | |
| 933 | ||
| 934 | int cpu_getcurrentframe(void) | |
| 1132 | 935 | { |
| 1133 | VERIFY_ACTIVECPU(cpu_getiloops); | |
| 1134 | return cpu[activecpu].iloops; | |
| 936 | return current_frame; | |
| 1135 | 937 | } |
| 1136 | 938 | |
| 1137 | 939 | |
| 1138 | 940 | |
| 1139 | /************************************* | |
| 1140 | * | |
| 1141 | * Hook for updating things on the | |
| 1142 | * real VBLANK (once per frame) | |
| 1143 | * | |
| 1144 | *************************************/ | |
| 941 | /*************************************************************************** | |
| 942 | INTERNAL TIMING | |
| 943 | ***************************************************************************/ | |
| 1145 | 944 | |
| 945 | /*------------------------------------------------- | |
| 946 | cpu_vblankreset - hook for updating things on | |
| 947 | cheesy fake VBLANK (once per frame) | |
| 948 | -------------------------------------------------*/ | |
| 949 | ||
| 1146 | 950 | static void cpu_vblankreset(running_machine *machine) |
| 1147 | 951 | { |
| 1148 | 952 | int cpunum; |
| r1649 | r1650 | |
| 1154 | 958 | input_port_vblank_start(); |
| 1155 | 959 | |
| 1156 | 960 | /* check the watchdog */ |
| 1157 | if (watchdog_counter > 0) | |
| 1158 | { | |
| 1159 | if (--watchdog_counter == 0) | |
| 1160 | { | |
| 1161 | logerror("reset caused by the (vblank) watchdog\n"); | |
| 1162 | mame_schedule_soft_reset(machine); | |
| 1163 | } | |
| 1164 | } | |
| 961 | if (machine->drv->watchdog_vblank_count != 0 && --watchdog_counter == 0) | |
| 962 | watchdog_callback(machine, NULL, 0); | |
| 1165 | 963 | |
| 1166 | 964 | /* reset the cycle counters */ |
| 1167 | 965 | for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) |
| r1649 | r1650 | |
| 1174 | 972 | } |
| 1175 | 973 | |
| 1176 | 974 | |
| 975 | /*------------------------------------------------- | |
| 976 | cpu_firstvblankcallback - timer callback for | |
| 977 | the first fake VBLANK | |
| 978 | -------------------------------------------------*/ | |
| 1177 | 979 | |
| 1178 | /************************************* | |
| 1179 | * | |
| 1180 | * First-run callback for VBLANKs | |
| 1181 | * | |
| 1182 | *************************************/ | |
| 1183 | ||
| 1184 | 980 | static TIMER_CALLBACK( cpu_firstvblankcallback ) |
| 1185 | 981 | { |
| 1186 | 982 | /* now that we're synced up, pulse from here on out */ |
| r1649 | r1650 | |
| 1191 | 987 | } |
| 1192 | 988 | |
| 1193 | 989 | |
| 990 | /*------------------------------------------------- | |
| 991 | cpu_vblankcallback - timer callback for | |
| 992 | subsequent fake VBLANKs | |
| 993 | -------------------------------------------------*/ | |
| 1194 | 994 | |
| 1195 | /************************************* | |
| 1196 | * | |
| 1197 | * VBLANK core handler | |
| 1198 | * | |
| 1199 | *************************************/ | |
| 1200 | ||
| 1201 | 995 | static TIMER_CALLBACK( cpu_vblankcallback ) |
| 1202 | 996 | { |
| 1203 | 997 | int cpunum; |
| r1649 | r1650 | |
| 1256 | 1050 | /* reset the counter */ |
| 1257 | 1051 | vblank_countdown = vblank_multiplier; |
| 1258 | 1052 | |
| 1259 | #ifdef | |
| 1053 | #ifdef ENABLE_DEBUGGER | |
| 1260 | 1054 | /* notify the debugger */ |
| 1261 | 1055 | debug_vblank_hook(); |
| 1262 | 1056 | #endif |
| r1649 | r1650 | |
| 1264 | 1058 | } |
| 1265 | 1059 | |
| 1266 | 1060 | |
| 1061 | /*------------------------------------------------- | |
| 1062 | cpu_updatecallback - timer callback for | |
| 1063 | the fake end of VBLANK | |
| 1064 | -------------------------------------------------*/ | |
| 1267 | 1065 | |
| 1268 | /************************************* | |
| 1269 | * | |
| 1270 | * End-of-VBLANK callback | |
| 1271 | * | |
| 1272 | *************************************/ | |
| 1273 | ||
| 1274 | 1066 | static TIMER_CALLBACK( cpu_updatecallback ) |
| 1275 | 1067 | { |
| 1276 | 1068 | /* update the screen if we didn't before */ |
| r1649 | r1650 | |
| 1289 | 1081 | } |
| 1290 | 1082 | |
| 1291 | 1083 | |
| 1084 | /*------------------------------------------------- | |
| 1085 | cpu_timedintcallback - timer callback for | |
| 1086 | timed interrupts | |
| 1087 | -------------------------------------------------*/ | |
| 1292 | 1088 | |
| 1293 | /************************************* | |
| 1294 | * | |
| 1295 | * Callback for timed interrupts | |
| 1296 | * (not tied to a VBLANK) | |
| 1297 | * | |
| 1298 | *************************************/ | |
| 1299 | ||
| 1300 | 1089 | static TIMER_CALLBACK( cpu_timedintcallback ) |
| 1301 | 1090 | { |
| 1302 | 1091 | /* bail if there is no routine */ |
| 1303 | if (machine->drv->cpu[param].timed_interrupt && !cpunum_is_suspended(param, SUSPEND_REASON_HALT | SUSPEND_REASON_RESET | SUSPEND_REASON_DISABLE)) | |
| 1092 | if (machine->drv->cpu[param].timed_interrupt != NULL && !cpunum_is_suspended(param, SUSPEND_REASON_HALT | SUSPEND_REASON_RESET | SUSPEND_REASON_DISABLE)) | |
| 1304 | 1093 | { |
| 1305 | 1094 | cpuintrf_push_context(param); |
| 1306 | 1095 | (*machine->drv->cpu[param].timed_interrupt)(machine, param); |
| r1649 | r1650 | |
| 1309 | 1098 | } |
| 1310 | 1099 | |
| 1311 | 1100 | |
| 1101 | /*------------------------------------------------- | |
| 1102 | cpu_timeslicecallback - timer callback for | |
| 1103 | timeslicing | |
| 1104 | -------------------------------------------------*/ | |
| 1312 | 1105 | |
| 1313 | /************************************* | |
| 1314 | * | |
| 1315 | * Callback to force a timeslice | |
| 1316 | * | |
| 1317 | *************************************/ | |
| 1318 | ||
| 1319 | 1106 | static TIMER_CALLBACK( cpu_timeslicecallback ) |
| 1320 | 1107 | { |
| 1321 | 1108 | cpu_trigger(machine, TRIGGER_TIMESLICE); |
| 1322 | 1109 | } |
| 1323 | 1110 | |
| 1324 | 1111 | |
| 1112 | /*------------------------------------------------- | |
| 1113 | end_interleave_boost - timer callback to end | |
| 1114 | temporary interleave boost | |
| 1115 | -------------------------------------------------*/ | |
| 1325 | 1116 | |
| 1326 | /************************************* | |
| 1327 | * | |
| 1328 | * Callback to end a temporary | |
| 1329 | * interleave boost | |
| 1330 | * | |
| 1331 | *************************************/ | |
| 1332 | ||
| 1333 | 1117 | static TIMER_CALLBACK( end_interleave_boost ) |
| 1334 | 1118 | { |
| 1335 | 1119 | timer_adjust(interleave_boost_timer, attotime_never, 0, attotime_never); |
| r1649 | r1650 | |
| 1337 | 1121 | } |
| 1338 | 1122 | |
| 1339 | 1123 | |
| 1124 | /*------------------------------------------------- | |
| 1125 | compute_perfect_interleave - compute the | |
| 1126 | "perfect" interleave interval | |
| 1127 | -------------------------------------------------*/ | |
| 1340 | 1128 | |
| 1341 | /************************************* | |
| 1342 | * | |
| 1343 | * Compute the "perfect" interleave | |
| 1344 | * interval | |
| 1345 | * | |
| 1346 | *************************************/ | |
| 1347 | ||
| 1348 | 1129 | static void compute_perfect_interleave(running_machine *machine) |
| 1349 | 1130 | { |
| 1350 | 1131 | attoseconds_t smallest = attoseconds_per_cycle[0]; |
| r1649 | r1650 | |
| 1373 | 1154 | } |
| 1374 | 1155 | |
| 1375 | 1156 | |
| 1157 | /*------------------------------------------------- | |
| 1158 | cpu_inittimers - set up all the core timers | |
| 1159 | -------------------------------------------------*/ | |
| 1376 | 1160 | |
| 1377 | /************************************* | |
| 1378 | * | |
| 1379 | * Setup all the core timers | |
| 1380 | * | |
| 1381 | *************************************/ | |
| 1382 | ||
| 1383 | 1161 | static void cpu_inittimers(running_machine *machine) |
| 1384 | 1162 | { |
| 1385 | 1163 | attotime first_time; |
| 1386 | 1164 | int cpunum, max, ipf; |
| 1387 | 1165 | |
| 1166 | /* allocate a timer for the watchdog */ | |
| 1167 | watchdog_timer = timer_alloc(watchdog_callback, NULL); | |
| 1168 | ||
| 1388 | 1169 | /* allocate a dummy timer at the minimum frequency to break things up */ |
| 1389 | 1170 | ipf = machine->drv->cpu_slices_per_frame; |
| 1390 | 1171 | if (ipf <= 0) |
| r1649 | r1650 | |
| 1482 | 1263 | /* reset the refresh timer to get ourself back in sync */ |
| 1483 | 1264 | timer_adjust(refresh_timer, attotime_never, 0, attotime_never); |
| 1484 | 1265 | } |
| 1485 |
| r1649 | r1650 | |
|---|---|---|
| 61 | 61 | #include "output.h" |
| 62 | 62 | #include "xmlfile.h" |
| 63 | 63 | #include "png.h" |
| 64 | #include "deprecat.h" | |
| 64 | 65 | |
| 65 | 66 | |
| 66 | 67 |
| r1649 | r1650 | |
|---|---|---|
| 18 | 18 | #include "timer.h" |
| 19 | 19 | |
| 20 | 20 | |
| 21 | /* Enum listing all the CPUs */ | |
| 21 | /*************************************************************************** | |
| 22 | CONSTANTS | |
| 23 | ***************************************************************************/ | |
| 24 | ||
| 25 | /* flags for MDRV_CPU_FLAGS */ | |
| 26 | enum | |
| 27 | { | |
| 28 | /* set this flag to disable execution of a CPU (if one is there for documentation */ | |
| 29 | /* purposes only, for example */ | |
| 30 | CPU_DISABLE = 0x0001 | |
| 31 | }; | |
| 32 | ||
| 33 | ||
| 34 | /* suspension reasons for cpunum_suspend */ | |
| 35 | enum | |
| 36 | { | |
| 37 | SUSPEND_REASON_HALT = 0x0001, | |
| 38 | SUSPEND_REASON_RESET = 0x0002, | |
| 39 | SUSPEND_REASON_SPIN = 0x0004, | |
| 40 | SUSPEND_REASON_TRIGGER = 0x0008, | |
| 41 | SUSPEND_REASON_DISABLE = 0x0010, | |
| 42 | SUSPEND_ANY_REASON = ~0 | |
| 43 | }; | |
| 44 | ||
| 45 | ||
| 46 | /* list of all possible CPUs we might be compiled with */ | |
| 22 | 47 | enum _cpu_type |
| 23 | 48 | { |
| 24 | 49 | CPU_DUMMY, |
| r1649 | r1650 | |
| 164 | 189 | CPU_MEDIAGX, |
| 165 | 190 | CPU_I960, |
| 166 | 191 | CPU_H83002, |
| 192 | CPU_H83007, | |
| 193 | CPU_H83044, | |
| 167 | 194 | CPU_V810, |
| 168 | 195 | CPU_M37702, |
| 169 | 196 | CPU_M37710, |
| r1649 | r1650 | |
| 214 | 241 | typedef enum _cpu_type cpu_type; |
| 215 | 242 | |
| 216 | 243 | |
| 217 | /************************************* | |
| 218 | * | |
| 219 | * CPU description for drivers | |
| 220 | * | |
| 221 | *************************************/ | |
| 222 | 244 | |
| 245 | /*************************************************************************** | |
| 246 | TYPE DEFINITIONS | |
| 247 | ***************************************************************************/ | |
| 248 | ||
| 249 | /* CPU description for drivers */ | |
| 223 | 250 | typedef struct _cpu_config cpu_config; |
| 224 | 251 | struct _cpu_config |
| 225 | 252 | { |
| 226 | cpu_type type; /* index for the CPU type */ | |
| 227 | int flags; /* flags; see #defines below */ | |
| 228 | int clock; /* in Hertz */ | |
| 253 | cpu_type type; /* index for the CPU type */ | |
| 254 | int flags; /* flags; see #defines below */ | |
| 255 | int clock; /* in Hertz */ | |
| 229 | 256 | construct_map_t construct_map[ADDRESS_SPACES][2]; /* 2 memory maps per address space */ |
| 230 | void (*vblank_interrupt)(running_machine *machine, int cpunum); /* for interrupts tied to VBLANK */ | |
| 231 | int vblank_interrupts_per_frame;/* usually 1 */ | |
| 232 | void (*timed_interrupt)(running_machine *machine, int cpunum); /* for interrupts not tied to VBLANK */ | |
| 233 | attoseconds_t timed_interrupt_period; /* period for periodic interrupts */ | |
| 234 | const void *reset_param; /* parameter for cpu_reset */ | |
| 235 | const char *tag; | |
| 257 | void (*vblank_interrupt)(running_machine *machine, int cpunum); /* for interrupts tied to VBLANK */ | |
| 258 | int vblank_interrupts_per_frame;/* usually 1 */ | |
| 259 | void (*timed_interrupt)(running_machine *machine, int cpunum); /* for interrupts not tied to VBLANK */ | |
| 260 | attoseconds_t timed_interrupt_period; /* period for periodic interrupts */ | |
| 261 | const void * reset_param; /* parameter for cpu_reset */ | |
| 262 | const char * tag; | |
| 236 | 263 | }; |
| 237 | 264 | |
| 238 | 265 | |
| 239 | 266 | |
| 240 | /************************************* | |
| 241 | * | |
| 242 | * CPU flag constants | |
| 243 | * | |
| 244 | *************************************/ | |
| 267 | /*************************************************************************** | |
| 268 | FUNCTION PROTOTYPES | |
| 269 | ***************************************************************************/ | |
| 245 | 270 | |
| 246 | enum | |
| 247 | { | |
| 248 | /* set this flag to disable execution of a CPU (if one is there for documentation */ | |
| 249 | /* purposes only, for example */ | |
| 250 | CPU_DISABLE = 0x0001 | |
| 251 | }; | |
| 252 | 271 | |
| 272 | /* ----- core CPU execution ----- */ | |
| 253 | 273 | |
| 254 | ||
| 255 | ||
| 256 | /************************************* | |
| 257 | * | |
| 258 | * Core CPU execution | |
| 259 | * | |
| 260 | *************************************/ | |
| 261 | ||
| 262 | /* Prepare CPUs for execution */ | |
| 274 | /* prepare CPUs for execution */ | |
| 263 | 275 | void cpuexec_init(running_machine *machine); |
| 264 | 276 | |
| 265 | /* | |
| 277 | /* execute for a single timeslice */ | |
| 266 | 278 | void cpuexec_timeslice(running_machine *machine); |
| 267 | 279 | |
| 268 | 280 | |
| 269 | 281 | |
| 270 | /************************************* | |
| 271 | * | |
| 272 | * Optional watchdog | |
| 273 | * | |
| 274 | *************************************/ | |
| 282 | /* ----- CPU scheduling----- */ | |
| 275 | 283 | |
| 276 | /* bang on the watchdog */ | |
| 277 | void watchdog_reset(running_machine *machine); | |
| 284 | /* temporarily boosts the interleave factor */ | |
| 285 | void cpu_boost_interleave(attotime timeslice_time, attotime boost_duration); | |
| 278 | 286 | |
| 279 | /* watchdog enabled when TRUE */ | |
| 280 | /* timer is set to reset state when going from disable to enable */ | |
| 281 | void watchdog_enable(running_machine *machine, int enable); | |
| 287 | /* aborts the timeslice for the active CPU */ | |
| 288 | void activecpu_abort_timeslice(void); | |
| 282 | 289 | |
| 283 | ||
| 284 | ||
| 285 | /************************************* | |
| 286 | * | |
| 287 | * CPU scheduling | |
| 288 | * | |
| 289 | *************************************/ | |
| 290 | ||
| 291 | /* Suspension reasons */ | |
| 292 | enum | |
| 293 | { | |
| 294 | SUSPEND_REASON_HALT = 0x0001, | |
| 295 | SUSPEND_REASON_RESET = 0x0002, | |
| 296 | SUSPEND_REASON_SPIN = 0x0004, | |
| 297 | SUSPEND_REASON_TRIGGER = 0x0008, | |
| 298 | SUSPEND_REASON_DISABLE = 0x0010, | |
| 299 | SUSPEND_ANY_REASON = ~0 | |
| 300 | }; | |
| 301 | ||
| 302 | /* Suspend the given CPU for a specific reason */ | |
| 290 | /* suspend the given CPU for a specific reason */ | |
| 303 | 291 | void cpunum_suspend(int cpunum, int reason, int eatcycles); |
| 304 | 292 | |
| 305 | /* | |
| 293 | /* resume | |
| 306 | 294 | void cpunum_resume(int cpunum, int reason); |
| 307 | 295 | |
| 308 | /* | |
| 296 | /* returns true if the given CPU is suspended for any of the given reasons */ | |
| 309 | 297 | int cpunum_is_suspended(int cpunum, int reason); |
| 310 | 298 | |
| 311 | /* Aborts the timeslice for the active CPU */ | |
| 312 | void activecpu_abort_timeslice(void); | |
| 313 | 299 | |
| 314 | /* Returns the current local time for a CPU */ | |
| 315 | attotime cpunum_get_localtime(int cpunum); | |
| 316 | 300 | |
| 317 | /* Returns the current CPU's unscaled running clock speed */ | |
| 318 | /* If you want to know the current effective running clock | |
| 319 | * after scaling it is just the double sec_to_cycles[cpunum] */ | |
| 301 | /* ----- CPU clock management ----- */ | |
| 302 | ||
| 303 | /* returns the current CPU's unscaled running clock speed */ | |
| 320 | 304 | int cpunum_get_clock(int cpunum); |
| 321 | 305 | |
| 322 | /* | |
| 306 | /* sets the current CPU's clock speed and then adjusts for scaling */ | |
| 323 | 307 | void cpunum_set_clock(running_machine *machine, int cpunum, int clock); |
| 324 | void cpunum_set_clock_period(running_machine *machine, int cpunum, attoseconds_t clock_period); | |
| 325 | 308 | |
| 326 | /* | |
| 309 | /* returns the current scaling factor for a CPU's clock speed */ | |
| 327 | 310 | double cpunum_get_clockscale(int cpunum); |
| 328 | 311 | |
| 329 | /* | |
| 312 | /* sets the current scaling factor for a CPU's clock speed */ | |
| 330 | 313 | void cpunum_set_clockscale(running_machine *machine, int cpunum, double clockscale); |
| 331 | 314 | |
| 332 | /* Temporarily boosts the interleave factor */ | |
| 333 | void cpu_boost_interleave(attotime timeslice_time, attotime boost_duration); | |
| 334 | 315 | |
| 335 | 316 | |
| 317 | /* ----- CPU timing ----- */ | |
| 336 | 318 | |
| 337 | /************************************* | |
| 338 | * | |
| 339 | * Timing helpers | |
| 340 | * | |
| 341 | *************************************/ | |
| 319 | /* returns the current local time for a CPU */ | |
| 320 | attotime cpunum_get_localtime(int cpunum); | |
| 342 | 321 | |
| 343 | /* Returns the number of cycles run so far this timeslice */ | |
| 344 | int cycles_currently_ran(void); | |
| 322 | /* returns the total number of CPU cycles */ | |
| 323 | UINT64 activecpu_gettotalcycles(void); | |
| 345 | 324 | |
| 346 | /* Returns the total number of CPU cycles */ | |
| 347 | UINT32 activecpu_gettotalcycles(void); | |
| 348 | UINT64 activecpu_gettotalcycles64(void); | |
| 325 | /* returns the total number of CPU cycles for a given CPU */ | |
| 326 | UINT64 cpunum_gettotalcycles(int cpunum); | |
| 349 | 327 | |
| 350 | /* Returns the total number of CPU cycles for a given CPU */ | |
| 351 | UINT32 cpunum_gettotalcycles(int cpunum); | |
| 352 | UINT64 cpunum_gettotalcycles64(int cpunum); | |
| 353 | ||
| 354 | /* Safely eats cycles so we don't cross a timeslice boundary */ | |
| 328 | /* safely eats cycles so we don't cross a timeslice boundary */ | |
| 355 | 329 | void activecpu_eat_cycles(int cycles); |
| 356 | 330 | |
| 357 | /* Scales a given value by the ratio of fcount / fperiod */ | |
| 358 | int cpu_scalebyfcount(int value); | |
| 359 | 331 | |
| 360 | 332 | |
| 333 | /* ----- synchronization helpers ----- */ | |
| 361 | 334 | |
| 362 | /************************************* | |
| 363 | * | |
| 364 | * Video timing | |
| 365 | * | |
| 366 | *************************************/ | |
| 335 | /* yield our current timeslice */ | |
| 336 | void cpu_yield(void); | |
| 367 | 337 | |
| 368 | /***** OBSOLETE NOTICE: these functions are no longer considered */ | |
| 369 | /***** to be the authority on scanline timing. Please use the */ | |
| 370 | /***** video_screen_* functions in video.c for newer drivers. */ | |
| 371 | /***** These functions may eventually go away. */ | |
| 338 | /* burn CPU cycles until our timeslice is up */ | |
| 339 | void cpu_spin(void); | |
| 372 | 340 | |
| 373 | /* Recomputes the VBLANK timing after, e.g., a visible area change */ | |
| 374 | void cpu_compute_vblank_timing(running_machine *machine); | |
| 341 | /* burn CPU cycles until a timer trigger */ | |
| 342 | void cpu_spinuntil_trigger(int trigger); | |
| 375 | 343 | |
| 376 | /* Returns the number of the video frame we are currently playing */ | |
| 377 | int cpu_getcurrentframe(void); | |
| 344 | /* burn specified CPU cycles until a timer trigger */ | |
| 345 | void cpunum_spinuntil_trigger(int cpunum, int trigger); | |
| 378 | 346 | |
| 347 | /* burn CPU cycles until the next interrupt */ | |
| 348 | void cpu_spinuntil_int(void); | |
| 379 | 349 | |
| 350 | /* burn CPU cycles for a specific period of time */ | |
| 351 | void cpu_spinuntil_time(attotime duration); | |
| 380 | 352 | |
| 381 | /************************************* | |
| 382 | * | |
| 383 | * Synchronization | |
| 384 | * | |
| 385 | *************************************/ | |
| 386 | 353 | |
| 354 | ||
| 355 | /* ----- triggers ----- */ | |
| 356 | ||
| 387 | 357 | /* generate a trigger now */ |
| 388 | 358 | void cpu_trigger(running_machine *machine, int trigger); |
| 389 | 359 | |
| r1649 | r1650 | |
| 393 | 363 | /* generate a trigger corresponding to an interrupt on the given CPU */ |
| 394 | 364 | void cpu_triggerint(running_machine *machine, int cpunum); |
| 395 | 365 | |
| 396 | /* burn CPU cycles until a timer trigger */ | |
| 397 | void cpu_spinuntil_trigger(int trigger); | |
| 398 | 366 | |
| 399 | /* burn specified CPU cycles until a timer trigger */ | |
| 400 | void cpunum_spinuntil_trigger(int cpunum, int trigger); | |
| 401 | 367 | |
| 402 | /* burn CPU cycles until the next interrupt */ | |
| 403 | void cpu_spinuntil_int(void); | |
| 368 | /* ----- watchdog timers ----- */ | |
| 404 | 369 | |
| 405 | /* burn CPU cycles until our timeslice is up */ | |
| 406 | void cpu_spin(void); | |
| 370 | /* reset the watchdog */ | |
| 371 | void watchdog_reset(running_machine *machine); | |
| 407 | 372 | |
| 408 | /* yield our current timeslice */ | |
| 409 | void cpu_yield(void); | |
| 373 | /* enable/disable the watchdog */ | |
| 374 | void watchdog_enable(running_machine *machine, int enable); | |
| 410 | 375 | |
| 411 | /* burn CPU cycles for a specific period of time */ | |
| 412 | void cpu_spinuntil_time(attotime duration); | |
| 413 | 376 | |
| 414 | 377 | |
| 415 | ||
| 416 | /************************************* | |
| 417 | * | |
| 418 | * Core timing | |
| 419 | * | |
| 420 | *************************************/ | |
| 421 | ||
| 422 | /* Returns the number of times the interrupt handler will be called before | |
| 423 | the end of the current video frame. This is can be useful to interrupt | |
| 424 | handlers to synchronize their operation. If you call this from outside | |
| 425 | an interrupt handler, add 1 to the result, i.e. if it returns 0, it means | |
| 426 | that the interrupt handler will be called once. */ | |
| 427 | int cpu_getiloops(void); | |
| 428 | ||
| 429 | ||
| 430 | 378 | #endif /* __CPUEXEC_H__ */ |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | ****************************************************************************/ |
| 12 | 12 | |
| 13 | 13 | #include "sndintrf.h" |
| 14 | #include "streams.h" | |
| 15 | #include "deprecat.h" | |
| 14 | 16 | #include "sound/cdp1869.h" |
| 15 | #include "streams.h" | |
| 16 | 17 | |
| 17 | 18 | struct CDP1869 |
| 18 | 19 | { |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | |
| 5 | 5 | Copyright Nicola Salmoria and the MAME Team |
| 6 | 6 | |
| 7 | Notes: | |
| 8 | * The only difference between MC3417 and MC3418 is the number | |
| 9 | of bits checked for the Coincidence Output. For the MC3417, | |
| 10 | it is three bits, while for the MC3418 it is four. | |
| 11 | This is not emulated. | |
| 12 | ||
| 13 | 7 | *****************************************************************************/ |
| 14 | 8 | |
| 15 | 9 | #include "sndintrf.h" |
| r1649 | r1650 | |
| 34 | 28 | sound_stream *channel; |
| 35 | 29 | int clock; /* 0 = software driven, non-0 = oscillator */ |
| 36 | 30 | int active_clock_hi; |
| 31 | UINT8 shiftreg_mask; | |
| 37 | 32 | |
| 38 | 33 | UINT8 last_clock_state; |
| 39 | 34 | UINT8 digit; |
| r1649 | r1650 | |
| 57 | 52 | |
| 58 | 53 | |
| 59 | 54 | |
| 60 | static void *start_common(int sndindex, int clock, const void *config, int _active_clock_hi) | |
| 55 | static void *start_common(int sndindex, int clock, const void *config, | |
| 56 | UINT8 _shiftreg_mask, int _active_clock_hi) | |
| 61 | 57 | { |
| 62 | 58 | struct hc55516_data *chip; |
| 63 | 59 | |
| r1649 | r1650 | |
| 71 | 67 | leak = pow(exp(-1), 1.0 / (INTEGRATOR_LEAK_TC * 16000.0)); |
| 72 | 68 | |
| 73 | 69 | chip->clock = clock; |
| 70 | chip->shiftreg_mask = _shiftreg_mask; | |
| 74 | 71 | chip->active_clock_hi = _active_clock_hi; |
| 75 | 72 | chip->last_clock_state = 0; |
| 76 | 73 | |
| r1649 | r1650 | |
| 94 | 91 | |
| 95 | 92 | static void *hc55516_start(int sndindex, int clock, const void *config) |
| 96 | 93 | { |
| 97 | return start_common(sndindex, clock, config, TRUE); | |
| 94 | return start_common(sndindex, clock, config, 0x07, TRUE); | |
| 98 | 95 | } |
| 99 | 96 | |
| 100 | 97 | |
| 101 | 98 | static void *mc3417_start(int sndindex, int clock, const void *config) |
| 102 | 99 | { |
| 103 | return start_common(sndindex, clock, config, FALSE); | |
| 100 | return start_common(sndindex, clock, config, 0x07, FALSE); | |
| 104 | 101 | } |
| 105 | 102 | |
| 106 | 103 | |
| 107 | 104 | static void *mc3418_start(int sndindex, int clock, const void *config) |
| 108 | 105 | { |
| 109 | return start_common(sndindex, clock, config, FALSE); | |
| 106 | return start_common(sndindex, clock, config, 0x0f, FALSE); | |
| 110 | 107 | } |
| 111 | 108 | |
| 112 | 109 | |
| r1649 | r1650 | |
| 141 | 138 | { |
| 142 | 139 | double integrator = chip->integrator, temp; |
| 143 | 140 | |
| 141 | /* shift the bit into the shift register */ | |
| 142 | chip->shiftreg = (chip->shiftreg << 1) | chip->digit; | |
| 143 | ||
| 144 | 144 | /* move the estimator up or down a step based on the bit */ |
| 145 | 145 | if (chip->digit) |
| 146 | { | |
| 147 | chip->shiftreg = ((chip->shiftreg << 1) | 1) & 7; | |
| 148 | 146 | integrator += chip->filter; |
| 149 | } | |
| 150 | 147 | else |
| 151 | { | |
| 152 | chip->shiftreg = (chip->shiftreg << 1) & 7; | |
| 153 | 148 | integrator -= chip->filter; |
| 154 | } | |
| 155 | 149 | |
| 156 | 150 | /* simulate leakage */ |
| 157 | 151 | integrator *= leak; |
| 158 | 152 | |
| 159 | 153 | /* if we got all 0's or all 1's in the last n bits, bump the step up */ |
| 160 | if (chip->shiftreg == 0 || chip->shiftreg == 7) | |
| 154 | if (((chip->shiftreg & chip->shiftreg_mask) == 0) || | |
| 155 | ((chip->shiftreg & chip->shiftreg_mask) == chip->shiftreg_mask)) | |
| 161 | 156 | { |
| 162 | 157 | chip->filter = FILTER_MAX - ((FILTER_MAX - chip->filter) * charge); |
| 158 | ||
| 163 | 159 | if (chip->filter > FILTER_MAX) |
| 164 | 160 | chip->filter = FILTER_MAX; |
| 165 | 161 | } |
| r1649 | r1650 | |
| 168 | 164 | else |
| 169 | 165 | { |
| 170 | 166 | chip->filter *= decay; |
| 167 | ||
| 171 | 168 | if (chip->filter < FILTER_MIN) |
| 172 | 169 | chip->filter = FILTER_MIN; |
| 173 | 170 | } |
| r1649 | r1650 | |
| 350 | 347 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 351 | 348 | case SNDINFO_STR_NAME: info->s = "HC-55516"; break; |
| 352 | 349 | case SNDINFO_STR_CORE_FAMILY: info->s = "CVSD"; break; |
| 353 | case SNDINFO_STR_CORE_VERSION: info->s = "2. | |
| 350 | case SNDINFO_STR_CORE_VERSION: info->s = "2.1"; break; | |
| 354 | 351 | case SNDINFO_STR_CORE_FILE: info->s = __FILE__; break; |
| 355 | 352 | case SNDINFO_STR_CORE_CREDITS: info->s = "Copyright Nicola Salmoria and the MAME Team"; break; |
| 356 | 353 | } |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | * separate MSM5205 emulator form adpcm.c and some fix |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | #include <math.h> | |
| 18 | ||
| 19 | 17 | #include "sndintrf.h" |
| 20 | 18 | #include "streams.h" |
| 19 | #include "deprecat.h" | |
| 21 | 20 | #include "msm5205.h" |
| 22 | 21 | |
| 23 | 22 | /* |
| r1649 | r1650 | |
|---|---|---|
| 17 | 17 | |
| 18 | 18 | #include "sndintrf.h" |
| 19 | 19 | #include "streams.h" |
| 20 | #include "deprecat.h" | |
| 20 | 21 | #include "rf5c400.h" |
| 21 | #include <math.h> | |
| 22 | 22 | |
| 23 | 23 | struct rf5c400_info |
| 24 | 24 | { |
| r1649 | r1650 | |
|---|---|---|
| 18 | 18 | |
| 19 | 19 | #include "sndintrf.h" |
| 20 | 20 | #include "streams.h" |
| 21 | #include "deprecat.h" | |
| 21 | 22 | #include "samples.h" |
| 22 | 23 | |
| 23 | 24 |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | 12 | #include "streams.h" |
| 13 | #include "deprecat.h" | |
| 13 | 14 | #ifdef MESS |
| 14 | 15 | #include "messdrv.h" |
| 15 | 16 | #include "utils.h" |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | MOS-8580 R5 combined waveforms recorded by Dennis "Deadman" Lindroos. |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | #include <math.h> | |
| 16 | ||
| 17 | 15 | #include "sndintrf.h" |
| 18 | 16 | #include "sidvoice.h" |
| 19 | 17 | #include "sidenvel.h" |
| 20 | 18 | #include "sid.h" |
| 19 | #include "deprecat.h" | |
| 21 | 20 | |
| 22 | 21 | static float *filterTable; |
| 23 | 22 | static float *bandPassParam; |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | #include "sndintrf.h" |
| 11 | 11 | #include "streams.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "speaker.h" |
| 13 | 14 | |
| 14 | 15 | static const INT16 default_levels[2] = {0,32767}; |
| r1649 | r1650 | |
|---|---|---|
| 53 | 53 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 54 | 54 | */ |
| 55 | 55 | |
| 56 | #include <math.h> | |
| 57 | ||
| 58 | 56 | #include "sndintrf.h" |
| 59 | 57 | #include "streams.h" |
| 58 | #include "deprecat.h" | |
| 60 | 59 | #include "c6280.h" |
| 61 | 60 | |
| 62 | 61 | typedef struct { |
| r1649 | r1650 | |
|---|---|---|
| 37 | 37 | #include "sndintrf.h" |
| 38 | 38 | #include "streams.h" |
| 39 | 39 | #include "inptport.h" |
| 40 | #include "deprecat.h" | |
| 40 | 41 | #include "wavwrite.h" |
| 41 | 42 | #include "discrete.h" |
| 42 | #include <stdarg.h> | |
| 43 | #include <math.h> | |
| 44 | 43 | |
| 45 | 44 | |
| 46 | 45 | /************************************* |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | 2 | #include "streams.h" |
| 3 | #include "deprecat.h" | |
| 3 | 4 | #include "samples.h" |
| 4 | 5 | |
| 5 | 6 |
| r1649 | r1650 | |
|---|---|---|
| 25 | 25 | * January 5, 2007 (kingshriek+RB) Working, good-sounding FM, removed obsolete non-USEDSP code. |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | #include <math.h> | |
| 29 | 28 | #include "sndintrf.h" |
| 30 | 29 | #include "streams.h" |
| 31 | 30 | #include "cpuintrf.h" |
| 31 | #include "deprecat.h" | |
| 32 | 32 | #include "scsp.h" |
| 33 | 33 | #include "scspdsp.h" |
| 34 | 34 | |
| r1649 | r1650 | |
| 1070 | 1070 | sample=(sample*EG_TABLE[EG_Update(slot)>>(SHIFT-10)])>>SHIFT; |
| 1071 | 1071 | |
| 1072 | 1072 | if(!STWINH(slot)) |
| 1073 | *RBUFDST=sample; | |
| 1073 | { | |
| 1074 | unsigned short Enc=((TL(slot))<<0x0)|(0x7<<0xd); | |
| 1075 | *RBUFDST=(sample*SCSP->LPANTABLE[Enc])>>(SHIFT+1); | |
| 1076 | } | |
| 1074 | 1077 | |
| 1075 | 1078 | return sample; |
| 1076 | 1079 | } |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "sndintrf.h" |
| 2 | 2 | #include "streams.h" |
| 3 | #include "deprecat.h" | |
| 3 | 4 | #include "flt_rc.h" |
| 4 | #include <math.h> | |
| 5 | 5 | |
| 6 | 6 | struct filter_rc_info |
| 7 | 7 | { |
| r1649 | r1650 | |
|---|---|---|
| 128 | 128 | * |
| 129 | 129 | */ |
| 130 | 130 | |
| 131 | #include <math.h> | |
| 132 | 131 | #include "sndintrf.h" |
| 132 | #include "streams.h" | |
| 133 | #include "deprecat.h" | |
| 133 | 134 | #include "s14001a.h" |
| 134 | #include "streams.h" | |
| 135 | 135 | |
| 136 | 136 | typedef struct |
| 137 | 137 | { |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "filter.h" |
| 2 | 2 | #include "sndintrf.h" |
| 3 | #include "deprecat.h" | |
| 3 | 4 | |
| 4 | #include <math.h> | |
| 5 | ||
| 6 | 5 | static filter* filter_alloc(void) { |
| 7 | 6 | filter* f = malloc_or_die(sizeof(filter)); |
| 8 | 7 | return f; |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "sndintrf.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "sid6581.h" |
| 11 | 12 | #include "sid.h" |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "sndintrf.h" |
| 2 | 2 | #include "streams.h" |
| 3 | #include "deprecat.h" | |
| 3 | 4 | #include "flt_vol.h" |
| 4 | 5 | |
| 5 | 6 |
| r1649 | r1650 | |
|---|---|---|
| 30 | 30 | #include <math.h> /* for pow() */ |
| 31 | 31 | #include "sndintrf.h" |
| 32 | 32 | #include "streams.h" |
| 33 | #include "deprecat.h" | |
| 33 | 34 | #include "sn76477.h" |
| 34 | 35 | |
| 35 | 36 | |
| r1649 | r1650 | |
| 255 | 256 | /* others */ |
| 256 | 257 | sound_stream *channel; /* returned by stream_create() */ |
| 257 | 258 | UINT32 index; |
| 258 | int sample_rate; /* from | |
| 259 | int sample_rate; /* from machine->sample_rate */ | |
| 259 | 260 | |
| 260 | 261 | #if LOG_WAV |
| 261 | 262 | wav_file *file; /* handle of the wave file to produce */ |
| r1649 | r1650 | |
|---|---|---|
| 75 | 75 | */ |
| 76 | 76 | #include "sndintrf.h" |
| 77 | 77 | #include "streams.h" |
| 78 | #include "deprecat.h" | |
| 78 | 79 | #include "vlm5030.h" |
| 79 | 80 | |
| 80 | 81 | /* interpolator per frame */ |
| r1649 | r1650 | |
|---|---|---|
| 46 | 46 | |
| 47 | 47 | #include "sndintrf.h" |
| 48 | 48 | #include "streams.h" |
| 49 | #include "deprecat.h" | |
| 49 | 50 | #include "nes_apu.h" |
| 50 | 51 | #include "cpu/m6502/m6502.h" |
| 51 | 52 |
| r1649 | r1650 | |
|---|---|---|
| 19 | 19 | #include "ui.h" |
| 20 | 20 | #include "uimenu.h" |
| 21 | 21 | #include "uigfx.h" |
| 22 | #include "deprecat.h" | |
| 22 | 23 | |
| 23 | 24 | #ifdef MESS |
| 24 | 25 | #include "mess.h" |
| r1649 | r1650 | |
| 28 | 29 | #endif |
| 29 | 30 | |
| 30 | 31 | #include <ctype.h> |
| 31 | #include <stdarg.h> | |
| 32 | #include <math.h> | |
| 33 | 32 | |
| 34 | 33 | |
| 35 | 34 | |
| r1649 | r1650 | |
| 1254 | 1253 | return ui_set_handler(ui_menu_ui_handler, 0); |
| 1255 | 1254 | |
| 1256 | 1255 | /* if the on-screen display isn't up and the user has toggled it, turn it on */ |
| 1257 | #ifdef MAME_DEBUG | |
| 1258 | if (!Machine->debug_mode) | |
| 1259 | #endif | |
| 1260 | if (input_ui_pressed(IPT_UI_ON_SCREEN_DISPLAY)) | |
| 1261 | return ui_set_handler(handler_slider, 0); | |
| 1256 | if (!Machine->debug_mode && input_ui_pressed(IPT_UI_ON_SCREEN_DISPLAY)) | |
| 1257 | return ui_set_handler(handler_slider, 0); | |
| 1262 | 1258 | |
| 1263 | 1259 | /* handle a reset request */ |
| 1264 | 1260 | if (input_ui_pressed(IPT_UI_RESET_MACHINE)) |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | #include "osdepend.h" |
| 13 | 13 | #include "driver.h" |
| 14 | 14 | #include "profiler.h" |
| 15 | #include "deprecat.h" | |
| 15 | 16 | |
| 16 | 17 | |
| 17 | 18 | /* in usrintf.c */ |
| r1649 | r1650 | |
|---|---|---|
| 514 | 514 | /*------------------------------------------------- |
| 515 | 515 | sndintrf_init - discover all linked sound |
| 516 | 516 | systems and build a matrix for sound |
| 517 | (type,index) pairs for the current | |
| 517 | (type,index) pairs for the current machine | |
| 518 | 518 | -------------------------------------------------*/ |
| 519 | 519 | |
| 520 | 520 | void sndintrf_init(running_machine *machine) |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | #include "streams.h" |
| 15 | 15 | #include "config.h" |
| 16 | 16 | #include "profiler.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | #include "sound/wavwrite.h" |
| 18 | 19 | |
| 19 | 20 |
| r1649 | r1650 | |
|---|---|---|
| 15 | 15 | #define __DEBUGGER_H__ |
| 16 | 16 | |
| 17 | 17 | #include "mame.h" |
| 18 | #include "memory.h" | |
| 18 | 19 | |
| 19 | 20 | |
| 20 | 21 | /*************************************************************************** |
| r1649 | r1650 | |
| 22 | 23 | ***************************************************************************/ |
| 23 | 24 | |
| 24 | 25 | /* handy macro for hard-coding debugger breaks */ |
| 25 | #ifdef | |
| 26 | #ifdef ENABLE_DEBUGGER | |
| 26 | 27 | #define DEBUGGER_BREAK if (Machine->debug_mode) mame_debug_break(); |
| 27 | 28 | #else |
| 28 | 29 | #define DEBUGGER_BREAK |
| r1649 | r1650 | |
| 30 | 31 | |
| 31 | 32 | |
| 32 | 33 | /* handy macro for CPU cores */ |
| 33 | #ifdef MAME_DEBUG | |
| 34 | #define CALL_MAME_DEBUG if (Machine->debug_mode) mame_debug_hook(); | |
| 34 | #ifdef ENABLE_DEBUGGER | |
| 35 | #define CALL_DEBUGGER(p) if (Machine->debug_mode) mame_debug_hook(p); | |
| 35 | 36 | #else |
| 36 | #define CALL_ | |
| 37 | #define CALL_ | |
| 37 | 38 | #endif |
| 38 | 39 | |
| 39 | 40 | |
| r1649 | r1650 | |
| 46 | 47 | void mame_debug_init(running_machine *machine); |
| 47 | 48 | |
| 48 | 49 | /* call this once per instruction from CPU cores */ |
| 49 | void mame_debug_hook( | |
| 50 | void mame_debug_hook( | |
| 50 | 51 | |
| 51 | 52 | /* call this to break into the debugger as soon as possible */ |
| 52 | 53 | void mame_debug_break(void); |
| r1649 | r1650 | |
| 60 | 61 | STUBS |
| 61 | 62 | ***************************************************************************/ |
| 62 | 63 | |
| 63 | #ifndef | |
| 64 | #ifndef ENABLE_DEBUGGER | |
| 64 | 65 | #define mame_debug_init(m) do { } while (0) |
| 65 | 66 | #define mame_debug_hook() do { } while (0) |
| 66 | 67 | #define mame_debug_break() do { } while (0) |
| r1649 | r1650 | |
|---|---|---|
| 22 | 22 | #include "mame.h" |
| 23 | 23 | #include "emuopts.h" |
| 24 | 24 | #include "profiler.h" |
| 25 | #include | |
| 25 | #include "de | |
| 26 | 26 | |
| 27 | 27 | |
| 28 | 28 |
| r1649 | r1650 | |
|---|---|---|
| 162 | 162 | /* force VIDEO_UPDATE to be called even for skipped frames */ |
| 163 | 163 | #define VIDEO_ALWAYS_UPDATE 0x0080 |
| 164 | 164 | |
| 165 | /* calls VIDEO_UPDATE for every visible scanline, even for skipped frames */ | |
| 166 | #define VIDEO_UPDATE_SCANLINE 0x0100 | |
| 165 | 167 | |
| 166 | 168 | |
| 169 | ||
| 167 | 170 | /* ----- flags for game drivers ----- */ |
| 168 | 171 | |
| 169 | 172 | #define ORIENTATION_MASK 0x0007 |
| r1649 | r1650 | |
| 300 | 303 | driver_remove_cpu(machine, tag); \ |
| 301 | 304 | cpu = NULL; \ |
| 302 | 305 | |
| 303 | #define MDRV_CPU_REPLACE(tag, _type, _clock) | |
| 306 | #define MDRV_CPU_REPLACE(tag, _type, _clock) | |
| 304 | 307 | cpu = driver_find_cpu(machine, tag); \ |
| 305 | 308 | cpu->type = (CPU_##_type); \ |
| 306 | 309 | cpu->clock = (_clock); \ |
| r1649 | r1650 | |
| 384 | 387 | machine->video_attributes = (flags); \ |
| 385 | 388 | |
| 386 | 389 | #define MDRV_GFXDECODE(gfx) \ |
| 387 | machine->gfxdecodeinfo = (gfxdecodeinfo_##gfx); | |
| 390 | machine->gfxdecodeinfo = (gfxdecodeinfo_##gfx); | |
| 388 | 391 | |
| 389 | 392 | #define MDRV_PALETTE_LENGTH(length) \ |
| 390 | 393 | machine->total_colors = (length); \ |
| r1649 | r1650 | |
| 525 | 528 | MDRV_SOUND_ROUTE_EX(_output, _target, _gain, -1) \ |
| 526 | 529 | |
| 527 | 530 | |
| 531 | ||
| 528 | 532 | /*************************************************************************** |
| 529 | 533 | MACROS FOR BUILDING GAME DRIVERS |
| 530 | 534 | ***************************************************************************/ |
| r1649 | r1650 | |
| 563 | 567 | extern const game_driver driver_empty; |
| 564 | 568 | |
| 565 | 569 | |
| 570 | ||
| 566 | 571 | /*************************************************************************** |
| 567 | 572 | FUNCTION PROTOTYPES |
| 568 | 573 | ***************************************************************************/ |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | 13 | |
| 14 | #ifdef | |
| 14 | #ifdef ENABLE_DEBUGGER | |
| 15 | 15 | #include "debug/debugcpu.h" |
| 16 | 16 | #endif |
| 17 | 17 | |
| r1649 | r1650 | |
| 364 | 364 | if (drv_irq_callbacks[cpunum]) |
| 365 | 365 | vector = (*drv_irq_callbacks[cpunum])(line); |
| 366 | 366 | |
| 367 | #ifdef | |
| 367 | #ifdef ENABLE_DEBUGGER | |
| 368 | 368 | /* notify the debugger */ |
| 369 | 369 | debug_interrupt_hook(cpunum, line); |
| 370 | 370 | #endif |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | |
| 14 | 14 | #include "driver.h" |
| 15 | 15 | #include "profiler.h" |
| 16 | #include "deprecat.h" | |
| 16 | 17 | |
| 17 | 18 | |
| 18 | 19 | /*************************************************************************** |
| r1649 | r1650 | |
| 40 | 41 | UINT8 gfx_drawmode_table[256]; |
| 41 | 42 | UINT8 gfx_alpharange_table[256]; |
| 42 | 43 | |
| 43 | static UINT8 is_raw[TRANSPARENCY_MODES]; | |
| 44 | ||
| 45 | 44 | alpha_cache drawgfx_alpha_cache; |
| 46 | 45 | |
| 47 | 46 | |
| r1649 | r1650 | |
| 95 | 94 | |
| 96 | 95 | void drawgfx_init(running_machine *machine) |
| 97 | 96 | { |
| 98 | /* fill in the raw drawing mode table */ | |
| 99 | is_raw[TRANSPARENCY_NONE_RAW] = 1; | |
| 100 | is_raw[TRANSPARENCY_PEN_RAW] = 1; | |
| 101 | is_raw[TRANSPARENCY_PENS_RAW] = 1; | |
| 102 | is_raw[TRANSPARENCY_PEN_TABLE_RAW] = 1; | |
| 103 | is_raw[TRANSPARENCY_BLEND_RAW] = 1; | |
| 104 | ||
| 105 | 97 | /* initialize the alpha drawing table */ |
| 106 | 98 | alpha_set_level(255); |
| 107 | 99 | } |
| r1649 | r1650 | |
| 443 | 435 | |
| 444 | 436 | srcmodulo += srcwidth; |
| 445 | 437 | dstmodulo -= srcwidth; |
| 446 | //srcdata += srcwidth-1; | |
| 447 | 438 | srcdata -= 3; |
| 448 | 439 | |
| 449 | 440 | trans4 = transpen * 0x01010101; |
| r1649 | r1650 | |
| 532 | 523 | |
| 533 | 524 | srcmodulo += srcwidth; |
| 534 | 525 | dstmodulo -= srcwidth; |
| 535 | //srcdata += srcwidth-1; | |
| 536 | 526 | |
| 537 | 527 | while (srcheight) |
| 538 | 528 | { |
| r1649 | r1650 | |
| 589 | 579 | |
| 590 | 580 | srcmodulo += srcwidth; |
| 591 | 581 | dstmodulo -= srcwidth; |
| 592 | //srcdata += srcwidth-1; | |
| 593 | 582 | |
| 594 | 583 | while (srcheight) |
| 595 | 584 | { |
| r1649 | r1650 | |
| 818 | 807 | #undef alpha_blend |
| 819 | 808 | |
| 820 | 809 | /* 32-bit version */ |
| 821 | //* AAT032503: added limited 32-bit shadow and highlight support | |
| 822 | INLINE UINT32 SHADOW32(pen_t *shadow_table, UINT32 c) { | |
| 823 | c = (c>>9&0x7c00) | (c>>6&0x03e0) | (c>>3&0x001f); | |
| 824 | return(shadow_table[c]); } | |
| 810 | INLINE UINT32 SHADOW32(pen_t *shadow_table, UINT32 c) | |
| 811 | { | |
| 812 | return shadow_table[((c >> 9) & 0x7c00) | ((c >> 6) & 0x03e0) | ((c >> 3) & 0x001f)]; | |
| 813 | } | |
| 825 | 814 | |
| 826 | 815 | #define DATA_TYPE UINT32 |
| 827 | 816 | #define DEPTH 32 |
| r1649 | r1650 | |
| 937 | 926 | transparency == TRANSPARENCY_PENS - as above, but transparent_color is a mask of |
| 938 | 927 | transparent pens. |
| 939 | 928 | transparency == TRANSPARENCY_COLOR - bits whose _remapped_ palette index (taken from |
| 940 | | |
| 929 | machine->game_colortable) is == transparent_color | |
| 941 | 930 | |
| 942 | 931 | transparency == TRANSPARENCY_PEN_TABLE - the transparency condition is same as TRANSPARENCY_PEN |
| 943 | 932 | A special drawing is done according to gfx_drawmode_table[source pixel]. |
| r1649 | r1650 | |
| 955 | 944 | assert_always(gfx, "drawgfx() gfx == 0"); |
| 956 | 945 | |
| 957 | 946 | code %= gfx->total_elements; |
| 958 | if (!is_raw[transparency]) | |
| 947 | ||
| 948 | if ((transparency != TRANSPARENCY_PEN_RAW) && (transparency != TRANSPARENCY_BLEND_RAW)) | |
| 959 | 949 | color %= gfx->total_colors; |
| 960 | 950 | |
| 961 | 951 | if ((dest->format == BITMAP_FORMAT_INDEXED8 || dest->format == BITMAP_FORMAT_INDEXED16 || dest->format == BITMAP_FORMAT_INDEXED32) && |
| r1649 | r1650 | |
| 1024 | 1014 | |
| 1025 | 1015 | /*************************************************************************** |
| 1026 | 1016 | |
| 1027 | Use drawgfx() to copy a bitmap onto another at the given position. | |
| 1028 | This function will very likely change in the future. | |
| 1017 | Use copybitmap() to copy a bitmap onto another at the given position. | |
| 1029 | 1018 | |
| 1030 | 1019 | ***************************************************************************/ |
| 1031 | void copybitmap(mame_bitmap *dest,mame_bitmap *src,int flipx,int flipy,int sx,int sy, | |
| 1020 | static void copybitmap_common(mame_bitmap *dest,mame_bitmap *src,int flipx,int flipy,int sx,int sy, | |
| 1032 | 1021 | const rectangle *clip,int transparency,int transparent_color) |
| 1033 | 1022 | { |
| 1034 | /* translate to proper transparency here */ | |
| 1035 | if (transparency == TRANSPARENCY_NONE) | |
| 1036 | transparency = TRANSPARENCY_NONE_RAW; | |
| 1037 | else if (transparency == TRANSPARENCY_PEN) | |
| 1038 | transparency = TRANSPARENCY_PEN_RAW; | |
| 1039 | else if (transparency == TRANSPARENCY_COLOR) | |
| 1040 | { | |
| 1041 | transparent_color = Machine->pens[transparent_color]; | |
| 1042 | transparency = TRANSPARENCY_PEN_RAW; | |
| 1043 | } | |
| 1044 | ||
| 1045 | copybitmap_remap(dest,src,flipx,flipy,sx,sy,clip,transparency,transparent_color); | |
| 1046 | } | |
| 1047 | ||
| 1048 | ||
| 1049 | void copybitmap_remap(mame_bitmap *dest,mame_bitmap *src,int flipx,int flipy,int sx,int sy, | |
| 1050 | const rectangle *clip,int transparency,int transparent_color) | |
| 1051 | { | |
| 1052 | 1023 | profiler_mark(PROFILER_COPYBITMAP); |
| 1053 | 1024 | |
| 1054 | 1025 | if (dest->bpp == 8) |
| r1649 | r1650 | |
| 1061 | 1032 | profiler_mark(PROFILER_END); |
| 1062 | 1033 | } |
| 1063 | 1034 | |
| 1035 | void copybitmap(mame_bitmap *dest, mame_bitmap *src, int flipx, int flipy, | |
| 1036 | int sx, int sy, const rectangle *clip) | |
| 1037 | { | |
| 1038 | copybitmap_common(dest,src,flipx,flipy,sx,sy,clip,TRANSPARENCY_NONE,0); | |
| 1039 | } | |
| 1064 | 1040 | |
| 1041 | void copybitmap_trans(mame_bitmap *dest, mame_bitmap *src, int flipx, int flipy, | |
| 1042 | int sx, int sy, const rectangle *clip, pen_t transparent_pen) | |
| 1043 | { | |
| 1044 | copybitmap_common(dest,src,flipx,flipy,sx,sy,clip,TRANSPARENCY_PEN,transparent_pen); | |
| 1045 | } | |
| 1065 | 1046 | |
| 1047 | ||
| 1048 | ||
| 1066 | 1049 | /*************************************************************************** |
| 1067 | 1050 | |
| 1068 | 1051 | Copy a bitmap onto another with scroll and wraparound. |
| r1649 | r1650 | |
| 1076 | 1059 | scrolls as a whole in at least one direction. |
| 1077 | 1060 | |
| 1078 | 1061 | ***************************************************************************/ |
| 1079 | void copyscrollbitmap(mame_bitmap *dest,mame_bitmap *src, | |
| 1062 | static void copyscrollbitmap_common(mame_bitmap *dest,mame_bitmap *src, | |
| 1080 | 1063 | int rows,const int *rowscroll,int cols,const int *colscroll, |
| 1081 | 1064 | const rectangle *clip,int transparency,int transparent_color) |
| 1082 | 1065 | { |
| 1083 | /* translate to proper transparency here */ | |
| 1084 | if (transparency == TRANSPARENCY_NONE) | |
| 1085 | transparency = TRANSPARENCY_NONE_RAW; | |
| 1086 | else if (transparency == TRANSPARENCY_PEN) | |
| 1087 | transparency = TRANSPARENCY_PEN_RAW; | |
| 1088 | else if (transparency == TRANSPARENCY_COLOR) | |
| 1089 | { | |
| 1090 | transparent_color = Machine->pens[transparent_color]; | |
| 1091 | transparency = TRANSPARENCY_PEN_RAW; | |
| 1092 | } | |
| 1093 | ||
| 1094 | copyscrollbitmap_remap(dest,src,rows,rowscroll,cols,colscroll,clip,transparency,transparent_color); | |
| 1095 | } | |
| 1096 | ||
| 1097 | void copyscrollbitmap_remap(mame_bitmap *dest,mame_bitmap *src, | |
| 1098 | int rows,const int *rowscroll,int cols,const int *colscroll, | |
| 1099 | const rectangle *clip,int transparency,int transparent_color) | |
| 1100 | { | |
| 1101 | 1066 | int srcwidth,srcheight,destwidth,destheight; |
| 1102 | 1067 | rectangle orig_clip; |
| 1103 | 1068 | |
| 1104 | ||
| 1105 | 1069 | if (clip) |
| 1106 | 1070 | { |
| 1107 | 1071 | orig_clip.min_x = clip->min_x; |
| r1649 | r1650 | |
| 1120 | 1084 | |
| 1121 | 1085 | if (rows == 0 && cols == 0) |
| 1122 | 1086 | { |
| 1123 | copybitmap(dest,src,0,0,0,0,clip,transparency,transparent_color); | |
| 1087 | copybitmap_common(dest,src,0,0,0,0,clip,transparency,transparent_color); | |
| 1124 | 1088 | return; |
| 1125 | 1089 | } |
| 1126 | 1090 | |
| 1127 | profiler_mark(PROFILER_COPYBITMAP); | |
| 1128 | ||
| 1129 | 1091 | srcwidth = src->width; |
| 1130 | 1092 | srcheight = src->height; |
| 1131 | 1093 | destwidth = dest->width; |
| r1649 | r1650 | |
| 1163 | 1125 | myclip.max_x = (col + cons) * colwidth - 1; |
| 1164 | 1126 | if (myclip.max_x > clip->max_x) myclip.max_x = clip->max_x; |
| 1165 | 1127 | |
| 1166 | copybitmap(dest,src,0,0,0,scroll,&myclip,transparency,transparent_color); | |
| 1167 | copybitmap(dest,src,0,0,0,scroll - srcheight,&myclip,transparency,transparent_color); | |
| 1128 | copybitmap_common(dest,src,0,0,0,scroll,&myclip,transparency,transparent_color); | |
| 1129 | copybitmap_common(dest,src,0,0,0,scroll - srcheight,&myclip,transparency,transparent_color); | |
| 1168 | 1130 | |
| 1169 | 1131 | col += cons; |
| 1170 | 1132 | } |
| r1649 | r1650 | |
| 1201 | 1163 | myclip.max_y = (row + cons) * rowheight - 1; |
| 1202 | 1164 | if (myclip.max_y > clip->max_y) myclip.max_y = clip->max_y; |
| 1203 | 1165 | |
| 1204 | copybitmap(dest,src,0,0,scroll,0,&myclip,transparency,transparent_color); | |
| 1205 | copybitmap(dest,src,0,0,scroll - srcwidth,0,&myclip,transparency,transparent_color); | |
| 1166 | copybitmap_common(dest,src,0,0,scroll,0,&myclip,transparency,transparent_color); | |
| 1167 | copybitmap_common(dest,src,0,0,scroll - srcwidth,0,&myclip,transparency,transparent_color); | |
| 1206 | 1168 | |
| 1207 | 1169 | row += cons; |
| 1208 | 1170 | } |
| r1649 | r1650 | |
| 1221 | 1183 | |
| 1222 | 1184 | for (sx = scrollx - srcwidth;sx < destwidth;sx += srcwidth) |
| 1223 | 1185 | for (sy = scrolly - srcheight;sy < destheight;sy += srcheight) |
| 1224 | copybitmap(dest,src,0,0,sx,sy,clip,transparency,transparent_color); | |
| 1186 | copybitmap_common(dest,src,0,0,sx,sy,clip,transparency,transparent_color); | |
| 1225 | 1187 | } |
| 1226 | 1188 | else if (rows == 1) |
| 1227 | 1189 | { |
| r1649 | r1650 | |
| 1259 | 1221 | myclip.max_x = (col + cons) * colwidth - 1 + scrollx; |
| 1260 | 1222 | if (myclip.max_x > clip->max_x) myclip.max_x = clip->max_x; |
| 1261 | 1223 | |
| 1262 | copybitmap(dest,src,0,0,scrollx,scroll,&myclip,transparency,transparent_color); | |
| 1263 | copybitmap(dest,src,0,0,scrollx,scroll - srcheight,&myclip,transparency,transparent_color); | |
| 1224 | copybitmap_common(dest,src,0,0,scrollx,scroll,&myclip,transparency,transparent_color); | |
| 1225 | copybitmap_common(dest,src,0,0,scrollx,scroll - srcheight,&myclip,transparency,transparent_color); | |
| 1264 | 1226 | |
| 1265 | 1227 | myclip.min_x = col * colwidth + scrollx - srcwidth; |
| 1266 | 1228 | if (myclip.min_x < clip->min_x) myclip.min_x = clip->min_x; |
| 1267 | 1229 | myclip.max_x = (col + cons) * colwidth - 1 + scrollx - srcwidth; |
| 1268 | 1230 | if (myclip.max_x > clip->max_x) myclip.max_x = clip->max_x; |
| 1269 | 1231 | |
| 1270 | copybitmap(dest,src,0,0,scrollx - srcwidth,scroll,&myclip,transparency,transparent_color); | |
| 1271 | copybitmap(dest,src,0,0,scrollx - srcwidth,scroll - srcheight,&myclip,transparency,transparent_color); | |
| 1232 | copybitmap_common(dest,src,0,0,scrollx - srcwidth,scroll,&myclip,transparency,transparent_color); | |
| 1233 | copybitmap_common(dest,src,0,0,scrollx - srcwidth,scroll - srcheight,&myclip,transparency,transparent_color); | |
| 1272 | 1234 | |
| 1273 | 1235 | col += cons; |
| 1274 | 1236 | } |
| r1649 | r1650 | |
| 1309 | 1271 | myclip.max_y = (row + cons) * rowheight - 1 + scrolly; |
| 1310 | 1272 | if (myclip.max_y > clip->max_y) myclip.max_y = clip->max_y; |
| 1311 | 1273 | |
| 1312 | copybitmap(dest,src,0,0,scroll,scrolly,&myclip,transparency,transparent_color); | |
| 1313 | copybitmap(dest,src,0,0,scroll - srcwidth,scrolly,&myclip,transparency,transparent_color); | |
| 1274 | copybitmap_common(dest,src,0,0,scroll,scrolly,&myclip,transparency,transparent_color); | |
| 1275 | copybitmap_common(dest,src,0,0,scroll - srcwidth,scrolly,&myclip,transparency,transparent_color); | |
| 1314 | 1276 | |
| 1315 | 1277 | myclip.min_y = row * rowheight + scrolly - srcheight; |
| 1316 | 1278 | if (myclip.min_y < clip->min_y) myclip.min_y = clip->min_y; |
| 1317 | 1279 | myclip.max_y = (row + cons) * rowheight - 1 + scrolly - srcheight; |
| 1318 | 1280 | if (myclip.max_y > clip->max_y) myclip.max_y = clip->max_y; |
| 1319 | 1281 | |
| 1320 | copybitmap(dest,src,0,0,scroll,scrolly - srcheight,&myclip,transparency,transparent_color); | |
| 1321 | copybitmap(dest,src,0,0,scroll - srcwidth,scrolly - srcheight,&myclip,transparency,transparent_color); | |
| 1282 | copybitmap_common(dest,src,0,0,scroll,scrolly - srcheight,&myclip,transparency,transparent_color); | |
| 1283 | copybitmap_common(dest,src,0,0,scroll - srcwidth,scrolly - srcheight,&myclip,transparency,transparent_color); | |
| 1322 | 1284 | |
| 1323 | 1285 | row += cons; |
| 1324 | 1286 | } |
| 1325 | 1287 | } |
| 1288 | } | |
| 1326 | 1289 | |
| 1327 | profiler_mark(PROFILER_END); | |
| 1290 | ||
| 1291 | void copyscrollbitmap(mame_bitmap *dest, mame_bitmap *src, | |
| 1292 | int rows, const int *rowscroll, int cols, const int *colscroll, | |
| 1293 | const rectangle *clip) | |
| 1294 | { | |
| 1295 | copyscrollbitmap_common(dest,src,rows,rowscroll,cols,colscroll,clip,TRANSPARENCY_NONE,0); | |
| 1328 | 1296 | } |
| 1329 | 1297 | |
| 1298 | void copyscrollbitmap_trans(mame_bitmap *dest, mame_bitmap *src, | |
| 1299 | int rows, const int *rowscroll, int cols, const int *colscroll, | |
| 1300 | const rectangle *clip, pen_t transparent_pen) | |
| 1301 | { | |
| 1302 | copyscrollbitmap_common(dest,src,rows,rowscroll,cols,colscroll,clip,TRANSPARENCY_PEN,transparent_pen); | |
| 1303 | } | |
| 1330 | 1304 | |
| 1305 | ||
| 1331 | 1306 | /* notes: |
| 1332 | 1307 | - startx and starty MUST be UINT32 for calculations to work correctly |
| 1333 | 1308 | - srcbitmap->width and height are assumed to be a power of 2 to speed up wraparound |
| r1649 | r1650 | |
| 1391 | 1366 | |
| 1392 | 1367 | if (transparency != TRANSPARENCY_PEN && transparency != TRANSPARENCY_PEN_RAW |
| 1393 | 1368 | && transparency != TRANSPARENCY_PENS && transparency != TRANSPARENCY_COLOR |
| 1394 | && transparency != TRANSPARENCY_PEN_TABLE | |
| 1369 | && transparency != TRANSPARENCY_PEN_TABLE | |
| 1395 | 1370 | && transparency != TRANSPARENCY_BLEND_RAW |
| 1396 | 1371 | && transparency != TRANSPARENCY_ALPHA && transparency != TRANSPARENCY_ALPHARANGE |
| 1397 | 1372 | && transparency != TRANSPARENCY_NONE) |
| r1649 | r1650 | |
| 1419 | 1394 | */ |
| 1420 | 1395 | |
| 1421 | 1396 | |
| 1422 | /* KW 991012 -- Added code to force clip to bitmap boundary */ | |
| 1423 | if(clip) | |
| 1397 | /* force clip to bitmap boundary */ | |
| 1398 | if (clip) | |
| 1424 | 1399 | { |
| 1425 | 1400 | myclip.min_x = clip->min_x; |
| 1426 | 1401 | myclip.max_x = clip->max_x; |
| r1649 | r1650 | |
| 1432 | 1407 | if (myclip.min_y < 0) myclip.min_y = 0; |
| 1433 | 1408 | if (myclip.max_y >= dest_bmp->height) myclip.max_y = dest_bmp->height-1; |
| 1434 | 1409 | |
| 1435 | clip=&myclip; | |
| 1410 | clip = &myclip; | |
| 1436 | 1411 | } |
| 1437 | 1412 | |
| 1438 | 1413 | |
| 1439 | /* | |
| 1414 | /* | |
| 1440 | 1415 | if (dest_bmp->bpp == 8) |
| 1441 | 1416 | { |
| 1442 | 1417 | if( gfx ) |
| r1649 | r1650 | |
| 1951 | 1926 | } |
| 1952 | 1927 | } |
| 1953 | 1928 | } |
| 1954 | ||
| 1955 | /* case 4b: TRANSPARENCY_PEN_TABLE_RAW */ | |
| 1956 | if (transparency == TRANSPARENCY_PEN_TABLE_RAW) | |
| 1957 | { | |
| 1958 | pen_t *palette_shadow_table = Machine->shadow_table; | |
| 1959 | if (pri_buffer) | |
| 1960 | { | |
| 1961 | for( y=sy; y<ey; y++ ) | |
| 1962 | { | |
| 1963 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; | |
| 1964 | UINT8 *dest = BITMAP_ADDR8(dest_bmp, y, 0); | |
| 1965 | UINT8 *pri = BITMAP_ADDR8(pri_buffer, y, 0); | |
| 1966 | ||
| 1967 | int x, x_index = x_index_base; | |
| 1968 | for( x=sx; x<ex; x++ ) | |
| 1969 | { | |
| 1970 | int c = source[x_index>>16]; | |
| 1971 | if( c != transparent_color ) | |
| 1972 | { | |
| 1973 | switch(gfx_drawmode_table[c]) | |
| 1974 | { | |
| 1975 | case DRAWMODE_SOURCE: | |
| 1976 | if (((1 << (pri[x] & 0x1f)) & pri_mask) == 0) | |
| 1977 | { | |
| 1978 | if (pri[x] & 0x80) | |
| 1979 | dest[x] = palette_shadow_table[color + c]; | |
| 1980 | else | |
| 1981 | dest[x] = color + c; | |
| 1982 | } | |
| 1983 | pri[x] = (pri[x] & 0x7f) | 31; | |
| 1984 | break; | |
| 1985 | case DRAWMODE_SHADOW: | |
| 1986 | if (((1 << pri[x]) & pri_mask) == 0) | |
| 1987 | dest[x] = palette_shadow_table[dest[x]]; | |
| 1988 | pri[x] |= al; | |
| 1989 | break; | |
| 1990 | } | |
| 1991 | } | |
| 1992 | x_index += dx; | |
| 1993 | } | |
| 1994 | ||
| 1995 | y_index += dy; | |
| 1996 | } | |
| 1997 | } | |
| 1998 | else | |
| 1999 | { | |
| 2000 | for( y=sy; y<ey; y++ ) | |
| 2001 | { | |
| 2002 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; | |
| 2003 | UINT8 *dest = BITMAP_ADDR8(dest_bmp, y, 0); | |
| 2004 | ||
| 2005 | int x, x_index = x_index_base; | |
| 2006 | for( x=sx; x<ex; x++ ) | |
| 2007 | { | |
| 2008 | int c = source[x_index>>16]; | |
| 2009 | if( c != transparent_color ) | |
| 2010 | { | |
| 2011 | switch(gfx_drawmode_table[c]) | |
| 2012 | { | |
| 2013 | case DRAWMODE_SOURCE: | |
| 2014 | dest[x] = color + c; | |
| 2015 | break; | |
| 2016 | case DRAWMODE_SHADOW: | |
| 2017 | dest[x] = palette_shadow_table[dest[x]]; | |
| 2018 | break; | |
| 2019 | } | |
| 2020 | } | |
| 2021 | x_index += dx; | |
| 2022 | } | |
| 2023 | ||
| 2024 | y_index += dy; | |
| 2025 | } | |
| 2026 | } | |
| 2027 | } | |
| 2028 | 1929 | } |
| 2029 | 1930 | } |
| 2030 | 1931 | } |
| 2031 | 1932 | } |
| 2032 | 1933 | |
| 2033 | /* | |
| 1934 | /* | |
| 2034 | 1935 | else if (dest_bmp->bpp == 16) |
| 2035 | 1936 | { |
| 2036 | 1937 | if( gfx ) |
| r1649 | r1650 | |
| 2548 | 2449 | } |
| 2549 | 2450 | } |
| 2550 | 2451 | |
| 2551 | /* case 4b: TRANSPARENCY_PEN_TABLE_RAW */ | |
| 2552 | if (transparency == TRANSPARENCY_PEN_TABLE_RAW) | |
| 2553 | { | |
| 2554 | pen_t *palette_shadow_table = Machine->shadow_table; | |
| 2555 | if (pri_buffer) | |
| 2556 | { | |
| 2557 | for( y=sy; y<ey; y++ ) | |
| 2558 | { | |
| 2559 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; | |
| 2560 | UINT16 *dest = BITMAP_ADDR16(dest_bmp, y, 0); | |
| 2561 | UINT8 *pri = BITMAP_ADDR8(pri_buffer, y, 0); | |
| 2562 | ||
| 2563 | int x, x_index = x_index_base; | |
| 2564 | for( x=sx; x<ex; x++ ) | |
| 2565 | { | |
| 2566 | int c = source[x_index>>16]; | |
| 2567 | if( c != transparent_color ) | |
| 2568 | { | |
| 2569 | switch(gfx_drawmode_table[c]) | |
| 2570 | { | |
| 2571 | case DRAWMODE_SOURCE: | |
| 2572 | ah = pri[x]; | |
| 2573 | if (((1 << (ah & 0x1f)) & pri_mask) == 0) | |
| 2574 | { | |
| 2575 | if (ah & 0x80) | |
| 2576 | dest[x] = palette_shadow_table[color + c]; | |
| 2577 | else | |
| 2578 | dest[x] = color + c; | |
| 2579 | } | |
| 2580 | pri[x] = (ah & 0x7f) | 31; | |
| 2581 | break; | |
| 2582 | case DRAWMODE_SHADOW: | |
| 2583 | if (((1 << pri[x]) & pri_mask) == 0) | |
| 2584 | dest[x] = palette_shadow_table[dest[x]]; | |
| 2585 | pri[x] |= al; | |
| 2586 | break; | |
| 2587 | } | |
| 2588 | } | |
| 2589 | x_index += dx; | |
| 2590 | } | |
| 2591 | ||
| 2592 | y_index += dy; | |
| 2593 | } | |
| 2594 | } | |
| 2595 | else | |
| 2596 | { | |
| 2597 | for( y=sy; y<ey; y++ ) | |
| 2598 | { | |
| 2599 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; | |
| 2600 | UINT16 *dest = BITMAP_ADDR16(dest_bmp, y, 0); | |
| 2601 | ||
| 2602 | int x, x_index = x_index_base; | |
| 2603 | for( x=sx; x<ex; x++ ) | |
| 2604 | { | |
| 2605 | int c = source[x_index>>16]; | |
| 2606 | if( c != transparent_color ) | |
| 2607 | { | |
| 2608 | switch(gfx_drawmode_table[c]) | |
| 2609 | { | |
| 2610 | case DRAWMODE_SOURCE: | |
| 2611 | dest[x] = color + c; | |
| 2612 | break; | |
| 2613 | case DRAWMODE_SHADOW: | |
| 2614 | dest[x] = palette_shadow_table[dest[x]]; | |
| 2615 | break; | |
| 2616 | } | |
| 2617 | } | |
| 2618 | x_index += dx; | |
| 2619 | } | |
| 2620 | ||
| 2621 | y_index += dy; | |
| 2622 | } | |
| 2623 | } | |
| 2624 | } | |
| 2625 | ||
| 2626 | 2452 | /* case 6: TRANSPARENCY_ALPHA */ |
| 2627 | 2453 | if (transparency == TRANSPARENCY_ALPHA) |
| 2628 | 2454 | { |
| r1649 | r1650 | |
| 2732 | 2558 | } |
| 2733 | 2559 | } |
| 2734 | 2560 | } |
| 2561 | ||
| 2562 | /* 32-bit destination bitmap */ | |
| 2735 | 2563 | else |
| 2736 | 2564 | { |
| 2737 | 2565 | if( gfx ) |
| r1649 | r1650 | |
| 3157 | 2985 | } |
| 3158 | 2986 | } |
| 3159 | 2987 | |
| 3160 | /* case 4b: TRANSPARENCY_PEN_TABLE_RAW */ | |
| 3161 | if (transparency == TRANSPARENCY_PEN_TABLE_RAW) | |
| 3162 | { | |
| 3163 | pen_t *palette_shadow_table = Machine->shadow_table; | |
| 3164 | UINT8 *source, *pri; | |
| 3165 | UINT32 *dest; | |
| 3166 | int c, x, x_index; | |
| 3167 | ||
| 3168 | if (pri_buffer) | |
| 3169 | { | |
| 3170 | for( y=sy; y<ey; y++ ) | |
| 3171 | { | |
| 3172 | source = source_base + (y_index>>16) * gfx->line_modulo; | |
| 3173 | y_index += dy; | |
| 3174 | dest = BITMAP_ADDR32(dest_bmp, y, 0); | |
| 3175 | pri = BITMAP_ADDR8(pri_buffer, y, 0); | |
| 3176 | x_index = x_index_base; | |
| 3177 | ||
| 3178 | for( x=sx; x<ex; x++ ) | |
| 3179 | { | |
| 3180 | int ebx = x_index; | |
| 3181 | x_index += dx; | |
| 3182 | ebx >>= 16; | |
| 3183 | al = pri[x]; | |
| 3184 | c = source[ebx]; | |
| 3185 | ah = al; | |
| 3186 | al &= 0x1f; | |
| 3187 | ||
| 3188 | if (gfx_drawmode_table[c] == DRAWMODE_NONE) continue; | |
| 3189 | ||
| 3190 | if (!(1<<al & pri_mask)) | |
| 3191 | { | |
| 3192 | if (gfx_drawmode_table[c] == DRAWMODE_SOURCE) | |
| 3193 | { | |
| 3194 | ah &= 0x7f; | |
| 3195 | ebx = color + c; | |
| 3196 | ah |= 0x1f; | |
| 3197 | dest[x] = ebx; | |
| 3198 | pri[x] = ah; | |
| 3199 | } | |
| 3200 | else if (!(ah & 0x80)) | |
| 3201 | { | |
| 3202 | ebx = SHADOW32(palette_shadow_table,dest[x]); | |
| 3203 | pri[x] |= 0x80; | |
| 3204 | dest[x] = ebx; | |
| 3205 | } | |
| 3206 | } | |
| 3207 | } | |
| 3208 | } | |
| 3209 | } | |
| 3210 | else | |
| 3211 | { | |
| 3212 | for( y=sy; y<ey; y++ ) | |
| 3213 | { | |
| 3214 | source = source_base + (y_index>>16) * gfx->line_modulo; | |
| 3215 | y_index += dy; | |
| 3216 | dest = BITMAP_ADDR32(dest_bmp, y, 0); | |
| 3217 | x_index = x_index_base; | |
| 3218 | ||
| 3219 | for( x=sx; x<ex; x++ ) | |
| 3220 | { | |
| 3221 | c = source[x_index>>16]; | |
| 3222 | x_index += dx; | |
| 3223 | ||
| 3224 | if (gfx_drawmode_table[c] == DRAWMODE_NONE) continue; | |
| 3225 | if (gfx_drawmode_table[c] == DRAWMODE_SOURCE) | |
| 3226 | dest[x] = color + c; | |
| 3227 | else | |
| 3228 | dest[x] = SHADOW32(palette_shadow_table,dest[x]); | |
| 3229 | } | |
| 3230 | } | |
| 3231 | } | |
| 3232 | } | |
| 3233 | ||
| 3234 | ||
| 3235 | 2988 | /* case 6: TRANSPARENCY_ALPHA */ |
| 3236 | 2989 | if (transparency == TRANSPARENCY_ALPHA) |
| 3237 | 2990 | { |
| r1649 | r1650 | |
| 3433 | 3186 | |
| 3434 | 3187 | |
| 3435 | 3188 | |
| 3189 | #if (RAW == 0) | |
| 3436 | 3190 | DECLARE_SWAP_RAW_PRI(blockmove_8toN_opaque,(COMMON_ARGS, |
| 3437 | 3191 | COLOR_ARG), |
| 3438 | 3192 | { |
| r1649 | r1650 | |
| 3506 | 3260 | } |
| 3507 | 3261 | } |
| 3508 | 3262 | }) |
| 3263 | #endif | |
| 3509 | 3264 | |
| 3265 | #if (RAW == 0) | |
| 3510 | 3266 | DECLARE_SWAP_RAW_PRI(blockmove_4toN_opaque,(COMMON_ARGS, |
| 3511 | 3267 | COLOR_ARG), |
| 3512 | 3268 | { |
| r1649 | r1650 | |
| 3602 | 3358 | } |
| 3603 | 3359 | } |
| 3604 | 3360 | }) |
| 3361 | #endif | |
| 3605 | 3362 | |
| 3606 | 3363 | DECLARE_SWAP_RAW_PRI(blockmove_8toN_transpen,(COMMON_ARGS, |
| 3607 | 3364 | COLOR_ARG,int transpen), |
| r1649 | r1650 | |
| 3906 | 3663 | #endif |
| 3907 | 3664 | |
| 3908 | 3665 | |
| 3666 | #if (RAW == 0) | |
| 3909 | 3667 | #define PEN_IS_OPAQUE ((1<<col)&transmask) == 0 |
| 3910 | 3668 | |
| 3911 | 3669 | DECLARE_SWAP_RAW_PRI(blockmove_8toN_transmask,(COMMON_ARGS, |
| r1649 | r1650 | |
| 4013 | 3771 | } |
| 4014 | 3772 | } |
| 4015 | 3773 | }) |
| 3774 | #endif | |
| 4016 | 3775 | |
| 4017 | 3776 | #if (RAW == 0) |
| 4018 | 3777 | DECLARE_SWAP_RAW_PRI(blockmove_8toN_transcolor,(COMMON_ARGS, |
| r1649 | r1650 | |
| 4140 | 3899 | }) |
| 4141 | 3900 | #endif |
| 4142 | 3901 | |
| 3902 | #if (RAW == 0) | |
| 4143 | 3903 | #if DEPTH == 32 |
| 4144 | 3904 | DECLARE_SWAP_RAW_PRI(blockmove_8toN_pen_table,(COMMON_ARGS, |
| 4145 | 3905 | COLOR_ARG,int transcolor), |
| r1649 | r1650 | |
| 4299 | 4059 | } |
| 4300 | 4060 | }) |
| 4301 | 4061 | #endif |
| 4062 | #endif | |
| 4302 | 4063 | |
| 4303 | 4064 | #if DEPTH >= 16 |
| 4304 | #if (1 == 0) | |
| 4305 | DECLARE_SWAP_RAW_PRI(blockmove_8toN_alphaone,(COMMON_ARGS, | |
| 4306 | COLOR_ARG,int transpen, int alphapen), | |
| 4307 | { | |
| 4308 | pen_t *palette_shadow_table = Machine->shadow_table; | |
| 4309 | ADJUST_8 | |
| 4310 | 4065 | |
| 4311 | (void)palette_shadow_table; | |
| 4312 | ||
| 4313 | if (flipx) | |
| 4314 | { | |
| 4315 | DATA_TYPE *end; | |
| 4316 | int trans4; | |
| 4317 | UINT32 *sd4; | |
| 4318 | UINT32 alphacolor = LOOKUP(alphapen); | |
| 4319 | ||
| 4320 | trans4 = transpen * 0x01010101; | |
| 4321 | ||
| 4322 | while (dstheight) | |
| 4323 | { | |
| 4324 | end = dstdata - dstwidth*HMODULO; | |
| 4325 | while (((FPTR)srcdata & 3) && dstdata > end) /* longword align */ | |
| 4326 | { | |
| 4327 | int col; | |
| 4328 | ||
| 4329 | col = *(srcdata++); | |
| 4330 | if (col != transpen) | |
| 4331 | { | |
| 4332 | if (col == alphapen) | |
| 4333 | SETPIXELCOLOR(0,alpha_blend(*dstdata,alphacolor)) | |
| 4334 | else | |
| 4335 | SETPIXELCOLOR(0,LOOKUP(col)) | |
| 4336 | } | |
| 4337 | INCREMENT_DST(-HMODULO); | |
| 4338 | } | |
| 4339 | sd4 = (UINT32 *)srcdata; | |
| 4340 | while (dstdata >= end + 4*HMODULO) | |
| 4341 | { | |
| 4342 | UINT32 col4; | |
| 4343 | ||
| 4344 | INCREMENT_DST(-4*HMODULO); | |
| 4345 | if ((col4 = *(sd4++)) != trans4) | |
| 4346 | { | |
| 4347 | UINT32 xod4; | |
| 4348 | ||
| 4349 | xod4 = col4 ^ trans4; | |
| 4350 | if (xod4 & (0xff<<SHIFT0)) | |
| 4351 | { | |
| 4352 | if (((col4>>SHIFT0) & 0xff) == alphapen) | |
| 4353 | SETPIXELCOLOR(4*HMODULO,alpha_blend(dstdata[4*HMODULO], alphacolor)) | |
| 4354 | else | |
| 4355 | SETPIXELCOLOR(4*HMODULO,LOOKUP((col4>>SHIFT0) & 0xff)) | |
| 4356 | } | |
| 4357 | if (xod4 & (0xff<<SHIFT1)) | |
| 4358 | { | |
| 4359 | if (((col4>>SHIFT1) & 0xff) == alphapen) | |
| 4360 | SETPIXELCOLOR(3*HMODULO,alpha_blend(dstdata[3*HMODULO], alphacolor)) | |
| 4361 | else | |
| 4362 | SETPIXELCOLOR(3*HMODULO,LOOKUP((col4>>SHIFT1) & 0xff)) | |
| 4363 | } | |
| 4364 | if (xod4 & (0xff<<SHIFT2)) | |
| 4365 | { | |
| 4366 | if (((col4>>SHIFT2) & 0xff) == alphapen) | |
| 4367 | SETPIXELCOLOR(2*HMODULO,alpha_blend(dstdata[2*HMODULO], alphacolor)) | |
| 4368 | else | |
| 4369 | SETPIXELCOLOR(2*HMODULO,LOOKUP((col4>>SHIFT2) & 0xff)) | |
| 4370 | } | |
| 4371 | if (xod4 & (0xff<<SHIFT3)) | |
| 4372 | { | |
| 4373 | if (((col4>>SHIFT3) & 0xff) == alphapen) | |
| 4374 | SETPIXELCOLOR(1*HMODULO,alpha_blend(dstdata[1*HMODULO], alphacolor)) | |
| 4375 | else | |
| 4376 | SETPIXELCOLOR(1*HMODULO,LOOKUP((col4>>SHIFT3) & 0xff)) | |
| 4377 | } | |
| 4378 | } | |
| 4379 | } | |
| 4380 | srcdata = (UINT8 *)sd4; | |
| 4381 | while (dstdata > end) | |
| 4382 | { | |
| 4383 | int col; | |
| 4384 | ||
| 4385 | col = *(srcdata++); | |
| 4386 | if (col != transpen) | |
| 4387 | { | |
| 4388 | if (col == alphapen) | |
| 4389 | SETPIXELCOLOR(0,alpha_blend(*dstdata, alphacolor)) | |
| 4390 | else | |
| 4391 | SETPIXELCOLOR(0,LOOKUP(col)) | |
| 4392 | } | |
| 4393 | INCREMENT_DST(-HMODULO); | |
| 4394 | } | |
| 4395 | ||
| 4396 | srcdata += srcmodulo; | |
| 4397 | INCREMENT_DST(ydir*VMODULO + dstwidth*HMODULO); | |
| 4398 | dstheight--; | |
| 4399 | } | |
| 4400 | } | |
| 4401 | else | |
| 4402 | { | |
| 4403 | DATA_TYPE *end; | |
| 4404 | int trans4; | |
| 4405 | UINT32 *sd4; | |
| 4406 | UINT32 alphacolor = LOOKUP(alphapen); | |
| 4407 | ||
| 4408 | trans4 = transpen * 0x01010101; | |
| 4409 | ||
| 4410 | while (dstheight) | |
| 4411 | { | |
| 4412 | end = dstdata + dstwidth*HMODULO; | |
| 4413 | while (((FPTR)srcdata & 3) && dstdata < end) /* longword align */ | |
| 4414 | { | |
| 4415 | int col; | |
| 4416 | ||
| 4417 | col = *(srcdata++); | |
| 4418 | if (col != transpen) | |
| 4419 | { | |
| 4420 | if (col == alphapen) | |
| 4421 | SETPIXELCOLOR(0,alpha_blend(*dstdata, alphacolor)) | |
| 4422 | else | |
| 4423 | SETPIXELCOLOR(0,LOOKUP(col)) | |
| 4424 | } | |
| 4425 | INCREMENT_DST(HMODULO); | |
| 4426 | } | |
| 4427 | sd4 = (UINT32 *)srcdata; | |
| 4428 | while (dstdata <= end - 4*HMODULO) | |
| 4429 | { | |
| 4430 | UINT32 col4; | |
| 4431 | ||
| 4432 | if ((col4 = *(sd4++)) != trans4) | |
| 4433 | { | |
| 4434 | UINT32 xod4; | |
| 4435 | ||
| 4436 | xod4 = col4 ^ trans4; | |
| 4437 | if (xod4 & (0xff<<SHIFT0)) | |
| 4438 | { | |
| 4439 | if (((col4>>SHIFT0) & 0xff) == alphapen) | |
| 4440 | SETPIXELCOLOR(0*HMODULO,alpha_blend(dstdata[0*HMODULO], alphacolor)) | |
| 4441 | else | |
| 4442 | SETPIXELCOLOR(0*HMODULO,LOOKUP((col4>>SHIFT0) & 0xff)) | |
| 4443 | } | |
| 4444 | if (xod4 & (0xff<<SHIFT1)) | |
| 4445 | { | |
| 4446 | if (((col4>>SHIFT1) & 0xff) == alphapen) | |
| 4447 | SETPIXELCOLOR(1*HMODULO,alpha_blend(dstdata[1*HMODULO], alphacolor)) | |
| 4448 | else | |
| 4449 | SETPIXELCOLOR(1*HMODULO,LOOKUP((col4>>SHIFT1) & 0xff)) | |
| 4450 | } | |
| 4451 | if (xod4 & (0xff<<SHIFT2)) | |
| 4452 | { | |
| 4453 | if (((col4>>SHIFT2) & 0xff) == alphapen) | |
| 4454 | SETPIXELCOLOR(2*HMODULO,alpha_blend(dstdata[2*HMODULO], alphacolor)) | |
| 4455 | else | |
| 4456 | SETPIXELCOLOR(2*HMODULO,LOOKUP((col4>>SHIFT2) & 0xff)) | |
| 4457 | } | |
| 4458 | if (xod4 & (0xff<<SHIFT3)) | |
| 4459 | { | |
| 4460 | if (((col4>>SHIFT3) & 0xff) == alphapen) | |
| 4461 | SETPIXELCOLOR(3*HMODULO,alpha_blend(dstdata[3*HMODULO], alphacolor)) | |
| 4462 | else | |
| 4463 | SETPIXELCOLOR(3*HMODULO,LOOKUP((col4>>SHIFT3) & 0xff)) | |
| 4464 | } | |
| 4465 | } | |
| 4466 | INCREMENT_DST(4*HMODULO); | |
| 4467 | } | |
| 4468 | srcdata = (UINT8 *)sd4; | |
| 4469 | while (dstdata < end) | |
| 4470 | { | |
| 4471 | int col; | |
| 4472 | ||
| 4473 | col = *(srcdata++); | |
| 4474 | if (col != transpen) | |
| 4475 | { | |
| 4476 | if (col == alphapen) | |
| 4477 | SETPIXELCOLOR(0,alpha_blend(*dstdata, alphacolor)) | |
| 4478 | else | |
| 4479 | SETPIXELCOLOR(0,LOOKUP(col)) | |
| 4480 | } | |
| 4481 | INCREMENT_DST(HMODULO); | |
| 4482 | } | |
| 4483 | ||
| 4484 | srcdata += srcmodulo; | |
| 4485 | INCREMENT_DST(ydir*VMODULO - dstwidth*HMODULO); | |
| 4486 | dstheight--; | |
| 4487 | } | |
| 4488 | } | |
| 4489 | }) | |
| 4490 | #endif | |
| 4491 | ||
| 4492 | 4066 | #if (RAW == 0) |
| 4493 | 4067 | DECLARE_SWAP_RAW_PRI(blockmove_8toN_alpha,(COMMON_ARGS, |
| 4494 | 4068 | COLOR_ARG,int transpen), |
| r1649 | r1650 | |
| 4670 | 4244 | |
| 4671 | 4245 | #else |
| 4672 | 4246 | |
| 4673 | #if (1 == 0) | |
| 4674 | DECLARE_SWAP_RAW_PRI(blockmove_8toN_alphaone,(COMMON_ARGS, | |
| 4675 | COLOR_ARG,int transpen, int alphapen),{}) | |
| 4676 | #endif | |
| 4677 | ||
| 4678 | 4247 | #if (RAW == 0) |
| 4679 | 4248 | DECLARE_SWAP_RAW_PRI(blockmove_8toN_alpha,(COMMON_ARGS, |
| 4680 | 4249 | COLOR_ARG,int transpen),{}) |
| r1649 | r1650 | |
| 4706 | 4275 | |
| 4707 | 4276 | srcmodulo += srcwidth; |
| 4708 | 4277 | dstmodulo -= srcwidth; |
| 4709 | //srcdata += srcwidth-1; | |
| 4710 | 4278 | |
| 4711 | 4279 | while (srcheight) |
| 4712 | 4280 | { |
| r1649 | r1650 | |
| 4733 | 4301 | } |
| 4734 | 4302 | }) |
| 4735 | 4303 | |
| 4736 | DECLARE(blockmove_NtoN_opaque_remap,( | |
| 4737 | const DATA_TYPE *srcdata,int srcwidth,int srcheight,int srcmodulo, | |
| 4738 | DATA_TYPE *dstdata,int dstmodulo, | |
| 4739 | const pen_t *paldata), | |
| 4740 | { | |
| 4741 | DATA_TYPE *end; | |
| 4742 | 4304 | |
| 4743 | srcmodulo -= srcwidth; | |
| 4744 | dstmodulo -= srcwidth; | |
| 4745 | ||
| 4746 | while (srcheight) | |
| 4747 | { | |
| 4748 | end = dstdata + srcwidth; | |
| 4749 | while (dstdata <= end - 8) | |
| 4750 | { | |
| 4751 | dstdata[0] = paldata[srcdata[0]]; | |
| 4752 | dstdata[1] = paldata[srcdata[1]]; | |
| 4753 | dstdata[2] = paldata[srcdata[2]]; | |
| 4754 | dstdata[3] = paldata[srcdata[3]]; | |
| 4755 | dstdata[4] = paldata[srcdata[4]]; | |
| 4756 | dstdata[5] = paldata[srcdata[5]]; | |
| 4757 | dstdata[6] = paldata[srcdata[6]]; | |
| 4758 | dstdata[7] = paldata[srcdata[7]]; | |
| 4759 | dstdata += 8; | |
| 4760 | srcdata += 8; | |
| 4761 | } | |
| 4762 | while (dstdata < end) | |
| 4763 | *(dstdata++) = paldata[*(srcdata++)]; | |
| 4764 | ||
| 4765 | srcdata += srcmodulo; | |
| 4766 | dstdata += dstmodulo; | |
| 4767 | srcheight--; | |
| 4768 | } | |
| 4769 | }) | |
| 4770 | ||
| 4771 | DECLARE(blockmove_NtoN_opaque_remap_flipx,( | |
| 4772 | const DATA_TYPE *srcdata,int srcwidth,int srcheight,int srcmodulo, | |
| 4773 | DATA_TYPE *dstdata,int dstmodulo, | |
| 4774 | const pen_t *paldata), | |
| 4775 | { | |
| 4776 | DATA_TYPE *end; | |
| 4777 | ||
| 4778 | srcmodulo += srcwidth; | |
| 4779 | dstmodulo -= srcwidth; | |
| 4780 | //srcdata += srcwidth-1; | |
| 4781 | ||
| 4782 | while (srcheight) | |
| 4783 | { | |
| 4784 | end = dstdata + srcwidth; | |
| 4785 | while (dstdata <= end - 8) | |
| 4786 | { | |
| 4787 | srcdata -= 8; | |
| 4788 | dstdata[0] = paldata[srcdata[8]]; | |
| 4789 | dstdata[1] = paldata[srcdata[7]]; | |
| 4790 | dstdata[2] = paldata[srcdata[6]]; | |
| 4791 | dstdata[3] = paldata[srcdata[5]]; | |
| 4792 | dstdata[4] = paldata[srcdata[4]]; | |
| 4793 | dstdata[5] = paldata[srcdata[3]]; | |
| 4794 | dstdata[6] = paldata[srcdata[2]]; | |
| 4795 | dstdata[7] = paldata[srcdata[1]]; | |
| 4796 | dstdata += 8; | |
| 4797 | } | |
| 4798 | while (dstdata < end) | |
| 4799 | *(dstdata++) = paldata[*(srcdata--)]; | |
| 4800 | ||
| 4801 | srcdata += srcmodulo; | |
| 4802 | dstdata += dstmodulo; | |
| 4803 | srcheight--; | |
| 4804 | } | |
| 4805 | }) | |
| 4806 | ||
| 4807 | ||
| 4808 | DECLARE(blockmove_NtoN_blend_noremap,( | |
| 4809 | const DATA_TYPE *srcdata,int srcwidth,int srcheight,int srcmodulo, | |
| 4810 | DATA_TYPE *dstdata,int dstmodulo, | |
| 4811 | int srcshift), | |
| 4812 | { | |
| 4813 | DATA_TYPE *end; | |
| 4814 | ||
| 4815 | srcmodulo -= srcwidth; | |
| 4816 | dstmodulo -= srcwidth; | |
| 4817 | ||
| 4818 | while (srcheight) | |
| 4819 | { | |
| 4820 | end = dstdata + srcwidth; | |
| 4821 | while (dstdata <= end - 8) | |
| 4822 | { | |
| 4823 | dstdata[0] |= srcdata[0] << srcshift; | |
| 4824 | dstdata[1] |= srcdata[1] << srcshift; | |
| 4825 | dstdata[2] |= srcdata[2] << srcshift; | |
| 4826 | dstdata[3] |= srcdata[3] << srcshift; | |
| 4827 | dstdata[4] |= srcdata[4] << srcshift; | |
| 4828 | dstdata[5] |= srcdata[5] << srcshift; | |
| 4829 | dstdata[6] |= srcdata[6] << srcshift; | |
| 4830 | dstdata[7] |= srcdata[7] << srcshift; | |
| 4831 | dstdata += 8; | |
| 4832 | srcdata += 8; | |
| 4833 | } | |
| 4834 | while (dstdata < end) | |
| 4835 | *(dstdata++) |= *(srcdata++) << srcshift; | |
| 4836 | ||
| 4837 | srcdata += srcmodulo; | |
| 4838 | dstdata += dstmodulo; | |
| 4839 | srcheight--; | |
| 4840 | } | |
| 4841 | }) | |
| 4842 | ||
| 4843 | DECLARE(blockmove_NtoN_blend_noremap_flipx,( | |
| 4844 | const DATA_TYPE *srcdata,int srcwidth,int srcheight,int srcmodulo, | |
| 4845 | DATA_TYPE *dstdata,int dstmodulo, | |
| 4846 | int srcshift), | |
| 4847 | { | |
| 4848 | DATA_TYPE *end; | |
| 4849 | ||
| 4850 | srcmodulo += srcwidth; | |
| 4851 | dstmodulo -= srcwidth; | |
| 4852 | //srcdata += srcwidth-1; | |
| 4853 | ||
| 4854 | while (srcheight) | |
| 4855 | { | |
| 4856 | end = dstdata + srcwidth; | |
| 4857 | while (dstdata <= end - 8) | |
| 4858 | { | |
| 4859 | srcdata -= 8; | |
| 4860 | dstdata[0] |= srcdata[8] << srcshift; | |
| 4861 | dstdata[1] |= srcdata[7] << srcshift; | |
| 4862 | dstdata[2] |= srcdata[6] << srcshift; | |
| 4863 | dstdata[3] |= srcdata[5] << srcshift; | |
| 4864 | dstdata[4] |= srcdata[4] << srcshift; | |
| 4865 | dstdata[5] |= srcdata[3] << srcshift; | |
| 4866 | dstdata[6] |= srcdata[2] << srcshift; | |
| 4867 | dstdata[7] |= srcdata[1] << srcshift; | |
| 4868 | dstdata += 8; | |
| 4869 | } | |
| 4870 | while (dstdata < end) | |
| 4871 | *(dstdata++) |= *(srcdata--) << srcshift; | |
| 4872 | ||
| 4873 | srcdata += srcmodulo; | |
| 4874 | dstdata += dstmodulo; | |
| 4875 | srcheight--; | |
| 4876 | } | |
| 4877 | }) | |
| 4878 | ||
| 4879 | DECLARE(blockmove_NtoN_blend_remap,( | |
| 4880 | const DATA_TYPE *srcdata,int srcwidth,int srcheight,int srcmodulo, | |
| 4881 | DATA_TYPE *dstdata,int dstmodulo, | |
| 4882 | const pen_t *paldata,int srcshift), | |
| 4883 | { | |
| 4884 | DATA_TYPE *end; | |
| 4885 | ||
| 4886 | srcmodulo -= srcwidth; | |
| 4887 | dstmodulo -= srcwidth; | |
| 4888 | ||
| 4889 | while (srcheight) | |
| 4890 | { | |
| 4891 | end = dstdata + srcwidth; | |
| 4892 | while (dstdata <= end - 8) | |
| 4893 | { | |
| 4894 | dstdata[0] = paldata[dstdata[0] | (srcdata[0] << srcshift)]; | |
| 4895 | dstdata[1] = paldata[dstdata[1] | (srcdata[1] << srcshift)]; | |
| 4896 | dstdata[2] = paldata[dstdata[2] | (srcdata[2] << srcshift)]; | |
| 4897 | dstdata[3] = paldata[dstdata[3] | (srcdata[3] << srcshift)]; | |
| 4898 | dstdata[4] = paldata[dstdata[4] | (srcdata[4] << srcshift)]; | |
| 4899 | dstdata[5] = paldata[dstdata[5] | (srcdata[5] << srcshift)]; | |
| 4900 | dstdata[6] = paldata[dstdata[6] | (srcdata[6] << srcshift)]; | |
| 4901 | dstdata[7] = paldata[dstdata[7] | (srcdata[7] << srcshift)]; | |
| 4902 | dstdata += 8; | |
| 4903 | srcdata += 8; | |
| 4904 | } | |
| 4905 | while (dstdata < end) | |
| 4906 | { | |
| 4907 | *dstdata = paldata[*dstdata | (*(srcdata++) << srcshift)]; | |
| 4908 | dstdata++; | |
| 4909 | } | |
| 4910 | ||
| 4911 | srcdata += srcmodulo; | |
| 4912 | dstdata += dstmodulo; | |
| 4913 | srcheight--; | |
| 4914 | } | |
| 4915 | ||
| 4916 | }) | |
| 4917 | ||
| 4918 | DECLARE(blockmove_NtoN_blend_remap_flipx,( | |
| 4919 | const DATA_TYPE *srcdata,int srcwidth,int srcheight,int srcmodulo, | |
| 4920 | DATA_TYPE *dstdata,int dstmodulo, | |
| 4921 | const pen_t *paldata,int srcshift), | |
| 4922 | { | |
| 4923 | DATA_TYPE *end; | |
| 4924 | ||
| 4925 | srcmodulo += srcwidth; | |
| 4926 | dstmodulo -= srcwidth; | |
| 4927 | //srcdata += srcwidth-1; | |
| 4928 | ||
| 4929 | while (srcheight) | |
| 4930 | { | |
| 4931 | end = dstdata + srcwidth; | |
| 4932 | while (dstdata <= end - 8) | |
| 4933 | { | |
| 4934 | srcdata -= 8; | |
| 4935 | dstdata[0] = paldata[dstdata[0] | (srcdata[8] << srcshift)]; | |
| 4936 | dstdata[1] = paldata[dstdata[1] | (srcdata[7] << srcshift)]; | |
| 4937 | dstdata[2] = paldata[dstdata[2] | (srcdata[6] << srcshift)]; | |
| 4938 | dstdata[3] = paldata[dstdata[3] | (srcdata[5] << srcshift)]; | |
| 4939 | dstdata[4] = paldata[dstdata[4] | (srcdata[4] << srcshift)]; | |
| 4940 | dstdata[5] = paldata[dstdata[5] | (srcdata[3] << srcshift)]; | |
| 4941 | dstdata[6] = paldata[dstdata[6] | (srcdata[2] << srcshift)]; | |
| 4942 | dstdata[7] = paldata[dstdata[7] | (srcdata[1] << srcshift)]; | |
| 4943 | dstdata += 8; | |
| 4944 | } | |
| 4945 | while (dstdata < end) | |
| 4946 | { | |
| 4947 | *dstdata = paldata[*dstdata | (*(srcdata--) << srcshift)]; | |
| 4948 | dstdata++; | |
| 4949 | } | |
| 4950 | ||
| 4951 | srcdata += srcmodulo; | |
| 4952 | dstdata += dstmodulo; | |
| 4953 | srcheight--; | |
| 4954 | } | |
| 4955 | }) | |
| 4956 | ||
| 4957 | ||
| 4958 | ||
| 4959 | ||
| 4960 | ||
| 4961 | 4305 | DECLARE(drawgfx_core,( |
| 4962 | 4306 | mame_bitmap *dest,const gfx_element *gfx, |
| 4963 | 4307 | unsigned int code,unsigned int color,int flipx,int flipy,int sx,int sy, |
| r1649 | r1650 | |
| 5002 | 4346 | const pen_t *paldata = &Machine->remapped_colortable[gfx->color_base + gfx->color_granularity * color]; |
| 5003 | 4347 | UINT8 *pribuf = (pri_buffer) ? BITMAP_ADDR8(pri_buffer, sy, sx) : NULL; |
| 5004 | 4348 | |
| 5005 | /* optimizations for 1:1 mapping */ | |
| 5006 | if (Machine->drv->color_table_len == 0 && | |
| 5007 | dest->format == BITMAP_FORMAT_INDEXED16 && | |
| 5008 | paldata >= Machine->remapped_colortable && | |
| 5009 | paldata < Machine->remapped_colortable + Machine->drv->total_colors) | |
| 5010 | { | |
| 5011 | switch (transparency) | |
| 5012 | { | |
| 5013 | case TRANSPARENCY_NONE: | |
| 5014 | transparency = TRANSPARENCY_NONE_RAW; | |
| 5015 | color = paldata - Machine->remapped_colortable; | |
| 5016 | break; | |
| 5017 | case TRANSPARENCY_PEN: | |
| 5018 | transparency = TRANSPARENCY_PEN_RAW; | |
| 5019 | color = paldata - Machine->remapped_colortable; | |
| 5020 | break; | |
| 5021 | case TRANSPARENCY_PENS: | |
| 5022 | transparency = TRANSPARENCY_PENS_RAW; | |
| 5023 | color = paldata - Machine->remapped_colortable; | |
| 5024 | break; | |
| 5025 | case TRANSPARENCY_PEN_TABLE: | |
| 5026 | transparency = TRANSPARENCY_PEN_TABLE_RAW; | |
| 5027 | color = paldata - Machine->remapped_colortable; | |
| 5028 | break; | |
| 5029 | } | |
| 5030 | } | |
| 5031 | ||
| 5032 | 4349 | switch (transparency) |
| 5033 | 4350 | { |
| 5034 | 4351 | case TRANSPARENCY_NONE: |
| r1649 | r1650 | |
| 5048 | 4365 | } |
| 5049 | 4366 | break; |
| 5050 | 4367 | |
| 5051 | case TRANSPARENCY_NONE_RAW: | |
| 5052 | if (gfx->flags & GFX_ELEMENT_PACKED) | |
| 5053 | { | |
| 5054 | if (pribuf) | |
| 5055 | BLOCKMOVERAWPRI(4toN_opaque,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,color,pribuf,pri_mask)); | |
| 5056 | else | |
| 5057 | BLOCKMOVERAW(4toN_opaque,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,color)); | |
| 5058 | } | |
| 5059 | else | |
| 5060 | { | |
| 5061 | if (pribuf) | |
| 5062 | BLOCKMOVERAWPRI(8toN_opaque,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,color,pribuf,pri_mask)); | |
| 5063 | else | |
| 5064 | BLOCKMOVERAW(8toN_opaque,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,color)); | |
| 5065 | } | |
| 5066 | break; | |
| 5067 | ||
| 5068 | 4368 | case TRANSPARENCY_PEN: |
| 5069 | 4369 | if (gfx->flags & GFX_ELEMENT_PACKED) |
| 5070 | 4370 | { |
| r1649 | r1650 | |
| 5106 | 4406 | BLOCKMOVELU(8toN_transmask,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,paldata,transparent_color)); |
| 5107 | 4407 | break; |
| 5108 | 4408 | |
| 5109 | case TRANSPARENCY_PENS_RAW: | |
| 5110 | if (pribuf) | |
| 5111 | BLOCKMOVERAWPRI(8toN_transmask,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,color,pribuf,pri_mask,transparent_color)); | |
| 5112 | else | |
| 5113 | BLOCKMOVERAW(8toN_transmask,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,color,transparent_color)); | |
| 5114 | break; | |
| 5115 | ||
| 5116 | 4409 | case TRANSPARENCY_COLOR: |
| 5117 | 4410 | if (gfx->flags & GFX_ELEMENT_PACKED) |
| 5118 | 4411 | { |
| r1649 | r1650 | |
| 5137 | 4430 | BLOCKMOVELU(8toN_pen_table,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,paldata,transparent_color)); |
| 5138 | 4431 | break; |
| 5139 | 4432 | |
| 5140 | case TRANSPARENCY_PEN_TABLE_RAW: | |
| 5141 | if (pribuf) | |
| 5142 | BLOCKMOVERAWPRI(8toN_pen_table,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,color,pribuf,pri_mask,transparent_color)); | |
| 5143 | else | |
| 5144 | BLOCKMOVERAW(8toN_pen_table,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,color,transparent_color)); | |
| 5145 | break; | |
| 5146 | ||
| 5147 | 4433 | case TRANSPARENCY_BLEND_RAW: |
| 5148 | 4434 | if (pribuf) |
| 5149 | 4435 | BLOCKMOVERAWPRI(8toN_transblend,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,color,pribuf,pri_mask,transparent_color)); |
| r1649 | r1650 | |
| 5213 | 4499 | int dm = dest->rowpixels; /* dest modulo */ |
| 5214 | 4500 | |
| 5215 | 4501 | if (flipx) |
| 5216 | { | |
| 5217 | //if ((sx-ox) == 0) sd += gfx->width - sw; | |
| 5218 | 4502 | sd += src->width -1 -(sx-ox); |
| 5219 | } | |
| 5220 | 4503 | else |
| 5221 | 4504 | sd += (sx-ox); |
| 5222 | 4505 | |
| 5223 | 4506 | if (flipy) |
| 5224 | 4507 | { |
| 5225 | //if ((sy-oy) == 0) sd += sm * (gfx->height - sh); | |
| 5226 | //dd += dm * (sh - 1); | |
| 5227 | //dm = -dm; | |
| 5228 | 4508 | sd += sm * (src->height -1 -(sy-oy)); |
| 5229 | 4509 | sm = -sm; |
| 5230 | 4510 | } |
| r1649 | r1650 | |
| 5234 | 4514 | switch (transparency) |
| 5235 | 4515 | { |
| 5236 | 4516 | case TRANSPARENCY_NONE: |
| 5237 | BLOCKMOVE(NtoN_opaque_remap,flipx,(sd,sw,sh,sm,dd,dm,Machine->pens)); | |
| 5238 | break; | |
| 5239 | ||
| 5240 | case TRANSPARENCY_NONE_RAW: | |
| 5241 | 4517 | BLOCKMOVE(NtoN_opaque_noremap,flipx,(sd,sw,sh,sm,dd,dm)); |
| 5242 | 4518 | break; |
| 5243 | 4519 | |
| 5244 | case TRANSPARENCY_PEN | |
| 4520 | case TRANSPARENCY_PEN | |
| 5245 | 4521 | BLOCKMOVE(NtoN_transpen_noremap,flipx,(sd,sw,sh,sm,dd,dm,transparent_color)); |
| 5246 | 4522 | break; |
| 5247 | 4523 | |
| 5248 | case TRANSPARENCY_BLEND: | |
| 5249 | BLOCKMOVE(NtoN_blend_remap,flipx,(sd,sw,sh,sm,dd,dm,Machine->pens,transparent_color)); | |
| 5250 | break; | |
| 5251 | ||
| 5252 | case TRANSPARENCY_BLEND_RAW: | |
| 5253 | BLOCKMOVE(NtoN_blend_noremap,flipx,(sd,sw,sh,sm,dd,dm,transparent_color)); | |
| 5254 | break; | |
| 5255 | ||
| 5256 | 4524 | default: |
| 5257 | 4525 | popmessage("copybitmap pen mode not supported"); |
| 5258 | 4526 | break; |
| r1649 | r1650 | |
|---|---|---|
| 51 | 51 | enum |
| 52 | 52 | { |
| 53 | 53 | TRANSPARENCY_NONE, /* opaque with remapping */ |
| 54 | TRANSPARENCY_NONE_RAW, /* opaque with no remapping */ | |
| 55 | 54 | TRANSPARENCY_PEN, /* single pen transparency with remapping */ |
| 56 | 55 | TRANSPARENCY_PEN_RAW, /* single pen transparency with no remapping */ |
| 57 | 56 | TRANSPARENCY_PENS, /* multiple pen transparency with remapping */ |
| 58 | TRANSPARENCY_PENS_RAW, /* multiple pen transparency with no remapping */ | |
| 59 | 57 | TRANSPARENCY_COLOR, /* single remapped pen transparency with remapping */ |
| 60 | 58 | TRANSPARENCY_PEN_TABLE, /* special pen remapping modes (see DRAWMODE_xxx below) with remapping */ |
| 61 | TRANSPARENCY_PEN_TABLE_RAW, /* special pen remapping modes (see DRAWMODE_xxx below) with no remapping */ | |
| 62 | TRANSPARENCY_BLEND, /* blend two bitmaps, shifting the source and ORing to the dest with remapping */ | |
| 63 | 59 | TRANSPARENCY_BLEND_RAW, /* blend two bitmaps, shifting the source and ORing to the dest with no remapping */ |
| 64 | 60 | TRANSPARENCY_ALPHA, /* single pen transparency, other pens alpha */ |
| 65 | 61 | TRANSPARENCY_ALPHARANGE, /* single pen transparency, multiple pens alpha depending on array, see psikyosh.c */ |
| r1649 | r1650 | |
| 240 | 236 | void extract_scanline32(mame_bitmap *bitmap,int x,int y,int length,UINT32 *dst); |
| 241 | 237 | |
| 242 | 238 | |
| 243 | void copybitmap(mame_bitmap *dest,mame_bitmap *src,int flipx,int flipy,int sx,int sy, | |
| 244 | const rectangle *clip,int transparency,int transparent_color); | |
| 245 | void copybitmap_remap(mame_bitmap *dest,mame_bitmap *src,int flipx,int flipy,int sx,int sy, | |
| 246 | const rectangle *clip,int transparency,int transparent_color); | |
| 239 | void copybitmap(mame_bitmap *dest,mame_bitmap *src,int flipx,int flipy, | |
| 240 | int sx,int sy,const rectangle *clip); | |
| 241 | ||
| 242 | void copybitmap_trans(mame_bitmap *dest,mame_bitmap *src,int flipx,int flipy, | |
| 243 | int sx,int sy,const rectangle *clip,pen_t transparent_pen); | |
| 244 | ||
| 247 | 245 | void copyscrollbitmap(mame_bitmap *dest,mame_bitmap *src, |
| 248 | int rows,const int *rowscroll,int cols,const int *colscroll, | |
| 249 | const rectangle *clip,int transparency,int transparent_color); | |
| 250 | void copyscrollbitmap_remap(mame_bitmap *dest,mame_bitmap *src, | |
| 251 | int rows,const int *rowscroll,int cols,const int *colscroll, | |
| 252 | const rectangle *clip,int transparency,int transparent_color); | |
| 246 | int rows,const int *rowscroll,int cols,const int *colscroll, | |
| 247 | const rectangle *clip); | |
| 253 | 248 | |
| 249 | void copyscrollbitmap_trans(mame_bitmap *dest,mame_bitmap *src, | |
| 250 | int rows,const int *rowscroll,int cols,const int *colscroll, | |
| 251 | const rectangle *clip,pen_t transparent_pen); | |
| 252 | ||
| 253 | ||
| 254 | 254 | /* |
| 255 | 255 | Copy a bitmap applying rotation, zooming, and arbitrary distortion. |
| 256 | 256 | This function works in a way that mimics some real hardware like the Konami |
| r1649 | r1650 | |
|---|---|---|
| 44 | 44 | #include "config.h" |
| 45 | 45 | #include "output.h" |
| 46 | 46 | #include "xmlfile.h" |
| 47 | #include | |
| 47 | #include "deprecat | |
| 48 | 48 | |
| 49 | 49 | |
| 50 | 50 |
| r1649 | r1650 | |
|---|---|---|
| 22 | 22 | |
| 23 | 23 | #include "driver.h" |
| 24 | 24 | #include "astring.h" |
| 25 | #include "deprecat.h" | |
| 25 | 26 | #include <zlib.h> |
| 26 | 27 | |
| 27 | 28 |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | #include "driver.h" |
| 14 | 14 | #include "profiler.h" |
| 15 | 15 | #include "pool.h" |
| 16 | #include | |
| 16 | #include "deprecat | |
| 17 | 17 | |
| 18 | 18 | |
| 19 | 19 | /*************************************************************************** |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | ******************************************************************************/ |
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | #include | |
| 13 | #include "deprecat | |
| 14 | 14 | |
| 15 | 15 | #define VERBOSE 0 |
| 16 | 16 |
| r1649 | r1650 | |
|---|---|---|
| 67 | 67 | XTAL_12_096MHz = 12096000, /* Some early 80's Atari games */ |
| 68 | 68 | XTAL_12_288MHz = 12288000, /* Sega Model 3 digital audio board */ |
| 69 | 69 | XTAL_12_5MHz = 12500000, /* Red Alert audio board */ |
| 70 | XTAL_12_9792MHz = 12979200, /* Exidy 440 */ | |
| 70 | 71 | XTAL_13_3MHz = 13300000, /* BMC bowling */ |
| 71 | 72 | XTAL_13_33056MHz = 13330560, /* Taito L */ |
| 72 | 73 | XTAL_13_4MHz = 13400000, /* TNK3, Ikari Warriors h/w */ |
| r1649 | r1650 | |
| 82 | 83 | XTAL_18_432MHz = 18432000, |
| 83 | 84 | XTAL_19_968MHz = 19968000, /* Used mostly by Space Invaders games by Taito/Midway and clones */ |
| 84 | 85 | XTAL_20MHz = 20000000, |
| 86 | XTAL_21MHz = 21000000, /* Lock-On pixel clock */ | |
| 85 | 87 | XTAL_21_3MHz = 21300000, |
| 86 | 88 | XTAL_21_4772MHz = 21477200, /* BMC bowling, some Data East 90's games */ |
| 87 | 89 | XTAL_22MHz = 22000000, |
| r1649 | r1650 | |
| 122 | 124 | XTAL_64MHz = 64000000, /* BattleToads */ |
| 123 | 125 | XTAL_66_6667MHz = 66666700, /* later Midway games */ |
| 124 | 126 | XTAL_67_7376MHz = 67737600, /* PSX-based h/w, Sony ZN1-2-based */ |
| 127 | XTAL_73_728MHz = 73728000, /* Ms. Pac-Man/Galaga 20th Anniversary */ | |
| 125 | 128 | XTAL_100MHz = 100000000, /* PSX-based Namco System 12, Vegas, Sony ZN1-2-based */ |
| 126 | 129 | XTAL_101_4912MHz = 101491200, /* PSX-based Namco System 10 */ |
| 127 | 130 |
| r1649 | r1650 | |
|---|---|---|
| 16 | 16 | #include "harddisk.h" |
| 17 | 17 | #include "config.h" |
| 18 | 18 | #include "ui.h" |
| 19 | #include <stdarg.h> | |
| 20 | #include <ctype.h> | |
| 19 | #include "deprecat.h" | |
| 21 | 20 | |
| 22 | 21 | |
| 23 | 22 | //#define LOG_LOAD |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | chd.c | |
| 4 | ||
| 3 | 5 | MAME Compressed Hunks of Data file format |
| 4 | 6 | |
| 5 | 7 | Copyright Nicola Salmoria and the MAME Team. |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /****************************************************************************** |
| 2 | 2 | |
| 3 | palette. | |
| 3 | palette.h | |
| 4 | 4 | |
| 5 | 5 | Core palette routines. |
| 6 | 6 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | chd.h | |
| 4 | ||
| 3 | 5 | MAME Compressed Hunks of Data file format |
| 4 | 6 | |
| 5 | 7 | Copyright Nicola Salmoria and the MAME Team. |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | cdrom.c | |
| 4 | ||
| 3 | 5 | Generic MAME CD-ROM utilties - build IDE and SCSI CD-ROMs on top of this |
| 4 | 6 | |
| 5 | 7 | Copyright Nicola Salmoria and the MAME Team. |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | hardisk.c | |
| 4 | ||
| 3 | 5 | Generic MAME hard disk implementation, with differencing files |
| 4 | 6 | |
| 5 | 7 | Copyright Nicola Salmoria and the MAME Team. |
| r1649 | r1650 | |
|---|---|---|
| 24 | 24 | */ |
| 25 | 25 | |
| 26 | 26 | #include "sha1.h" |
| 27 | //#include "macros.h" | |
| 28 | 27 | |
| 29 | 28 | #include <assert.h> |
| 30 | 29 | #include <stdlib.h> |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | #include "cassette.h" |
| 10 | 10 | #include "formats/cassimg.h" |
| 11 | 11 | #include "ui.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | |
| 13 | 14 | |
| 14 | 15 | #define CASSETTE_TAG "cassette" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include <ctype.h> |
| 2 | 2 | #include "driver.h" |
| 3 | 3 | #include "cartslot.h" |
| 4 | #include "deprecat.h" | |
| 4 | 5 | |
| 5 | 6 | |
| 6 | 7 | static int is_cart_roment(const rom_entry *roment) |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | #include "appldriv.h" |
| 10 | 10 | #include "flopdrv.h" |
| 11 | 11 | #include "mflopimg.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "formats/ap2_dsk.h" |
| 13 | 14 | |
| 14 | 15 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | 10 | #include "cococart.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | |
| 12 | 13 | |
| 13 | 14 | struct _coco_cartridge |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "mame.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "configms.h" |
| 9 | 10 | #include "config.h" |
| 10 | 11 | #include "xmlfile.h" |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | *********************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "mame.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "mslegacy.h" |
| 11 | 12 | #include "uimenu.h" |
| 12 | 13 | #include "uimess.h" |
| r1649 | r1650 | |
|---|---|---|
| 18 | 18 | #include "video/generic.h" |
| 19 | 19 | #include "render.h" |
| 20 | 20 | #include "messopts.h" |
| 21 | #include "deprecat.h" | |
| 21 | 22 | |
| 22 | 23 | #ifdef MAME_DEBUG |
| 23 | 24 | #include "debug/debugcpu.h" |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | #include "driver.h" |
| 12 | 12 | #include "includes/wswan.h" |
| 13 | 13 | #include "streams.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | |
| 15 | 16 | static sound_stream *channel; |
| 16 | 17 |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | #include "driver.h" |
| 10 | 10 | #include "includes/mac.h" |
| 11 | 11 | #include "streams.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | |
| 13 | 14 | |
| 14 | 15 | static sound_stream *mac_stream; |
| r1649 | r1650 | |
|---|---|---|
| 15 | 15 | #include "machine/pcshare.h" |
| 16 | 16 | #include "machine/pit8253.h" |
| 17 | 17 | #include "audio/pc.h" |
| 18 | #include "deprecat.h" | |
| 18 | 19 | |
| 19 | 20 | #define SND_LOG(n,m,a) |
| 20 | 21 | #define BASECLOCK 1193180 |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | 11 | #include "streams.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | |
| 13 | 14 | #define VERBOSE_DBG 0 |
| 14 | 15 | #include "includes/cbm.h" |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | #include "includes/kaypro.h" |
| 10 | 10 | #include "sound/custom.h" |
| 11 | 11 | #include "streams.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | |
| 13 | 14 | #ifdef UNUSED_FUNCTION |
| 14 | 15 | static sound_stream *channel; |
| r1649 | r1650 | |
|---|---|---|
| 37 | 37 | #include "driver.h" |
| 38 | 38 | #include "mea8000.h" |
| 39 | 39 | #include "sound/dac.h" |
| 40 | #include "deprecat.h" | |
| 40 | 41 | |
| 41 | 42 | |
| 42 | 43 | #define VERBOSE 0 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | |
| 8 | 8 | #include "driver.h" |
| 9 | 9 | #include "streams.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "includes/vc4000.h" |
| 11 | 12 | |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 2 | 2 | |
| 3 | 3 | #include "driver.h" |
| 4 | 4 | #include "streams.h" |
| 5 | #include "deprecat.h" | |
| 5 | 6 | #include "includes/channelf.h" |
| 6 | 7 | |
| 7 | 8 | static sound_stream *channel; |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | 15 | #include "driver.h" |
| 16 | #include "deprecat.h" | |
| 16 | 17 | #include "audio/dave.h" |
| 17 | 18 | |
| 18 | 19 | #define STEP 0x08000 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ***************************************************************************************/ |
| 9 | 9 | #include "driver.h" |
| 10 | 10 | #include "includes/odyssey2.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | |
| 12 | 13 | sound_stream *odyssey2_sh_channel; |
| 13 | 14 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | |
| 8 | 8 | #include "driver.h" |
| 9 | 9 | #include "streams.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "includes/arcadia.h" |
| 11 | 12 | |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 42 | 42 | #include "driver.h" |
| 43 | 43 | #include "includes/gb.h" |
| 44 | 44 | #include "streams.h" |
| 45 | #include "deprecat.h" | |
| 45 | 46 | |
| 46 | 47 | #define NR10 0x00 |
| 47 | 48 | #define NR11 0x01 |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | |
| 5 | 5 | #include "driver.h" |
| 6 | 6 | #include "streams.h" |
| 7 | #include "deprecat.h" | |
| 7 | 8 | #include "includes/lynx.h" |
| 8 | 9 | |
| 9 | 10 |
| r1649 | r1650 | |
|---|---|---|
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | 8 | #include "streams.h" |
| 9 | #include "deprecat.h" | |
| 9 | 10 | #include "includes/svision.h" |
| 10 | 11 | |
| 11 | 12 |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | 11 | #include "streams.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | |
| 13 | 14 | #define VERBOSE_DBG 1 |
| 14 | 15 | #include "includes/cbm.h" |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | #include "machine/pit8253.h" |
| 14 | 14 | #include "includes/dai.h" |
| 15 | 15 | #include "streams.h" |
| 16 | #include "deprecat.h" | |
| 16 | 17 | |
| 17 | 18 | static void *dai_sh_start(int clock, const struct CustomSound_interface *config); |
| 18 | 19 | static void dai_sh_update(void *param,stream_sample_t **inputs, stream_sample_t **_buffer,int length); |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | |
| 15 | 15 | #include "image.h" |
| 16 | 16 | #include "mess.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | #include "unzip.h" |
| 18 | 19 | #include "devices/flopdrv.h" |
| 19 | 20 | #include "utils.h" |
| r1649 | r1650 | |
|---|---|---|
| 100 | 100 | /*----------- defined in video/dgn_beta.c -----------*/ |
| 101 | 101 | |
| 102 | 102 | /* mc6845 video display generator */ |
| 103 | void init_video( | |
| 103 | void init_video(running_machine *machine); | |
| 104 | 104 | extern VIDEO_UPDATE( dgnbeta ); |
| 105 | 105 | void vid_set_gctrl(int data); |
| 106 | 106 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | #ifndef SMS_H_ |
| 8 | 8 | #define SMS_H_ |
| 9 | 9 | |
| 10 | #include "deprecat.h" | |
| 10 | 11 | |
| 11 | 12 | #define LOG_REG |
| 12 | 13 | #define LOG_PAGING |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | ***************************************************************************/ |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "includes/wswan.h" |
| 13 | 14 | |
| 14 | 15 | static int pal[16][16]; |
| r1649 | r1650 | |
|---|---|---|
| 17 | 17 | ****************************************************************************/ |
| 18 | 18 | |
| 19 | 19 | #include "driver.h" |
| 20 | #include "deprecat.h" | |
| 20 | 21 | #include "cpu/z80/z80.h" |
| 21 | 22 | #include "includes/zx.h" |
| 22 | 23 | #include "sound/dac.h" |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | #include <math.h> |
| 9 | 9 | #include <stdio.h> |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "utils.h" |
| 12 | 13 | #include "sound/custom.h" |
| 13 | 14 | |
| r1649 | r1650 | |
| 502 | 503 | |
| 503 | 504 | VIDEO_UPDATE( vic6560 ) |
| 504 | 505 | { |
| 505 | copybitmap(bitmap, vic6560_bitmap, 0, 0, 0, 0, cliprect | |
| 506 | copybitmap(bitmap, vic6560_bitmap, 0, 0, 0, 0, cliprect | |
| 506 | 507 | return 0; |
| 507 | 508 | } |
| r1649 | r1650 | |
|---|---|---|
| 321 | 321 | } |
| 322 | 322 | |
| 323 | 323 | /* Video init */ |
| 324 | void init_video( | |
| 324 | void init_video(running_machine *machine) | |
| 325 | 325 | { |
| 326 | 326 | /* initialise 6845 */ |
| 327 | 327 | m6845_config(&beta_m6845_interface); |
| r1649 | r1650 | |
| 340 | 340 | |
| 341 | 341 | #ifdef MAME_DEBUG |
| 342 | 342 | /* setup debug commands */ |
| 343 | if ( | |
| 343 | if (machine->debug_mode) | |
| 344 | 344 | { |
| 345 | 345 | debug_console_register_command("beta_vid_log", CMDFLAG_NONE, 0, 0, 0,ToggleRegLog); |
| 346 | 346 | debug_console_register_command("beta_vid_fill", CMDFLAG_NONE, 0, 0, 0,FillScreen); |
| r1649 | r1650 | |
|---|---|---|
| 18 | 18 | #include <math.h> |
| 19 | 19 | |
| 20 | 20 | #include "driver.h" |
| 21 | #include "deprecat.h" | |
| 21 | 22 | |
| 22 | 23 | #include "cpu/pdp1/pdp1.h" |
| 23 | 24 | #include "includes/pdp1.h" |
| r1649 | r1650 | |
| 92 | 93 | pdp1_draw_lightpen(bitmap); |
| 93 | 94 | |
| 94 | 95 | pdp1_draw_panel(panel_bitmap); |
| 95 | copybitmap(bitmap, panel_bitmap, 0, 0, panel_window_offset_x, panel_window_offset_y, | |
| 96 | copybitmap(bitmap, panel_bitmap, 0, 0, panel_window_offset_x, panel_window_offset_y, | |
| 96 | 97 | |
| 97 | copybitmap(bitmap, typewriter_bitmap, 0, 0, typewriter_window_offset_x, typewriter_window_offset_y, | |
| 98 | copybitmap(bitmap, typewriter_bitmap, 0, 0, typewriter_window_offset_x, typewriter_window_offset_y, | |
| 98 | 99 | return 0; |
| 99 | 100 | } |
| 100 | 101 |
| r1649 | r1650 | |
|---|---|---|
| 16 | 16 | #include "911_key.h" |
| 17 | 17 | #include "sound/beep.h" |
| 18 | 18 | #include "mslegacy.h" |
| 19 | #include "deprecat.h" | |
| 19 | 20 | |
| 20 | 21 | |
| 21 | 22 | #define MAX_VDT 1 |
| r1649 | r1650 | |
|---|---|---|
| 1448 | 1448 | } |
| 1449 | 1449 | copybitmap(bitmap, |
| 1450 | 1450 | gdc_mess.tmpbmp, 0, 0, 0, 0, |
| 1451 | NULL | |
| 1451 | NULL | |
| 1452 | 1452 | gdc_mess.dirty = 0; |
| 1453 | 1453 | } |
| 1454 | 1454 | return dirty ? 0 : UPDATE_HAS_NOT_CHANGED; |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "includes/cbmb.h" |
| 9 | 10 | #include "video/crtc6845.h" |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | 10 | #include "includes/mbee.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | |
| 12 | 13 | typedef struct { // CRTC 6545 |
| 13 | 14 | UINT8 horizontal_total; |
| r1649 | r1650 | |
|---|---|---|
| 20 | 20 | #include <math.h> |
| 21 | 21 | |
| 22 | 22 | #include "driver.h" |
| 23 | #include "deprecat.h" | |
| 23 | 24 | #include "machine/6821pia.h" |
| 24 | 25 | #include "machine/6883sam.h" |
| 25 | 26 | #include "video/m6847.h" |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | #include <math.h> |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "video/ppu2c0x.h" |
| 13 | 14 | #include "includes/nes.h" |
| 14 | 15 | #include "machine/nes_mmc.h" |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | ***************************************************************************/ |
| 13 | 13 | |
| 14 | 14 | #include "driver.h" |
| 15 | #include "deprecat.h" | |
| 15 | 16 | #include "includes/gb.h" |
| 16 | 17 | #include "cpu/z80gb/z80gb.h" |
| 17 | 18 | #include "profiler.h" |
| r1649 | r1650 | |
|---|---|---|
| 29 | 29 | ***************************************************************************/ |
| 30 | 30 | |
| 31 | 31 | #include "driver.h" |
| 32 | #include "deprecat.h" | |
| 32 | 33 | #include "pc_vga.h" |
| 33 | 34 | #include "pc_video.h" |
| 34 | 35 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "includes/pcw16.h" |
| 3 | 4 | |
| 4 | 5 | int pcw16_colour_palette[16]; |
| r1649 | r1650 | |
|---|---|---|
| 17 | 17 | #include "epnick.h" |
| 18 | 18 | |
| 19 | 19 | /* TODO: Remove dependency on this */ |
| 20 | #include "deprecat.h" | |
| 20 | 21 | #include "mslegacy.h" |
| 21 | 22 | |
| 22 | 23 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include <math.h> |
| 2 | 2 | #include "driver.h" |
| 3 | #include "deprecat.h" | |
| 3 | 4 | #include "includes/vectrex.h" |
| 4 | 5 | #include "video/vector.h" |
| 5 | 6 | #include "machine/6522via.h" |
| r1649 | r1650 | |
| 98 | 99 | /********************************************************************* |
| 99 | 100 | Lightpen |
| 100 | 101 | *********************************************************************/ |
| 101 | static void lightpen_trigger( | |
| 102 | static void lightpen_trigger(running_machine *machine) | |
| 102 | 103 | { |
| 103 | 104 | if (vectrex_lightpen_port & 1) |
| 104 | 105 | { |
| r1649 | r1650 | |
| 107 | 108 | } |
| 108 | 109 | if (vectrex_lightpen_port & 2) |
| 109 | 110 | { |
| 110 | cpunum_set_input_line( | |
| 111 | cpunum_set_input_line(machine, 0, M6809_FIRQ_LINE, PULSE_LINE); | |
| 111 | 112 | } |
| 112 | 113 | } |
| 113 | 114 | |
| 114 | 115 | static TIMER_CALLBACK(lightpen_trigger_callback) |
| 115 | 116 | { |
| 116 | lightpen_trigger(); | |
| 117 | lightpen_trigger(machine); | |
| 117 | 118 | } |
| 118 | 119 | |
| 119 | 120 | static int lightpen_check (void) |
| r1649 | r1650 | |
| 430 | 431 | start_time = time_now; |
| 431 | 432 | } |
| 432 | 433 | if (data & lightpen_check()) |
| 433 | lightpen_trigger(); | |
| 434 | lightpen_trigger(Machine); | |
| 434 | 435 | |
| 435 | 436 | blank = data; |
| 436 | 437 | } |
| r1649 | r1650 | |
|---|---|---|
| 2 | 2 | PeT mess@utanet.at 2001 |
| 3 | 3 | ******************************************************************************/ |
| 4 | 4 | #include "driver.h" |
| 5 | #include "deprecat.h" | |
| 5 | 6 | |
| 6 | 7 | #include "includes/arcadia.h" |
| 7 | 8 | |
| r1649 | r1650 | |
| 868 | 869 | |
| 869 | 870 | VIDEO_UPDATE( arcadia ) |
| 870 | 871 | { |
| 871 | copybitmap(bitmap, arcadia_video.bitmap, 0, 0, 0, 0, cliprect | |
| 872 | copybitmap(bitmap, arcadia_video.bitmap, 0, 0, 0, 0, cliprect | |
| 872 | 873 | return 0; |
| 873 | 874 | } |
| r1649 | r1650 | |
|---|---|---|
| 65 | 65 | |
| 66 | 66 | #include "driver.h" |
| 67 | 67 | #include "m6847.h" |
| 68 | #include "deprecat.h" | |
| 68 | 69 | |
| 69 | 70 | #ifdef MAME_DEBUG |
| 70 | 71 | #include "debug/debugcpu.h" |
| r1649 | r1650 | |
| 1872 | 1873 | if (cfg->cpu0_timing_factor > 0) |
| 1873 | 1874 | { |
| 1874 | 1875 | cpu0_clock_period = period * cfg->cpu0_timing_factor * GROSS_FACTOR; |
| 1875 | cpunum_set_clock | |
| 1876 | cpunum_set_clock | |
| 1876 | 1877 | } |
| 1877 | 1878 | |
| 1878 | 1879 | /* calculate timing */ |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | #include <math.h> |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "includes/thomson.h" |
| 12 | 13 | #include "cpu/m6809/m6809.h" |
| 13 | 14 | #include "machine/6821pia.h" |
| r1649 | r1650 | |
|---|---|---|
| 399 | 399 | } |
| 400 | 400 | } |
| 401 | 401 | |
| 402 | copybitmap(bitmap, tmpbitmap, 0, 0, 0, 0, cliprect, TRANSPARENCY_NONE, 0); | |
| 403 | copybitmap(bitmap, dlybitmap, 0, 0, 1, 0, cliprect, TRANSPARENCY_COLOR, 0); | |
| 402 | copybitmap(bitmap, tmpbitmap, 0, 0, 0, 0, cliprect); | |
| 403 | copybitmap_trans(bitmap, dlybitmap, 0, 0, 1, 0, cliprect, 0); | |
| 404 | 404 | } |
| 405 | 405 | |
| 406 | 406 | /*************************************************************************** |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | ***************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "mslegacy.h" |
| 13 | 14 | #include "includes/pmd85.h" |
| 14 | 15 |
| r1649 | r1650 | |
|---|---|---|
| 717 | 717 | { |
| 718 | 718 | xscr = sys.crtc.hbegin-(sys.crtc.reg[12] & 0x1ff); |
| 719 | 719 | yscr = sys.crtc.vbegin-(sys.crtc.reg[13] & 0x1ff); |
| 720 | copyscrollbitmap(bitmap, x68k_gfx_0_bitmap_16, 1, &xscr, 1, &yscr ,&cliprect | |
| 720 | copyscrollbitmap(bitmap, x68k_gfx_0_bitmap_16, 1, &xscr, 1, &yscr ,&cliprect | |
| 721 | 721 | xscr+=512; |
| 722 | copyscrollbitmap(bitmap, x68k_gfx_1_bitmap_16, 1, &xscr, 1, &yscr ,&cliprect | |
| 722 | copyscrollbitmap(bitmap, x68k_gfx_1_bitmap_16, 1, &xscr, 1, &yscr ,&cliprect | |
| 723 | 723 | yscr+=512; |
| 724 | copyscrollbitmap(bitmap, x68k_gfx_2_bitmap_16, 1, &xscr, 1, &yscr ,&cliprect | |
| 724 | copyscrollbitmap(bitmap, x68k_gfx_2_bitmap_16, 1, &xscr, 1, &yscr ,&cliprect | |
| 725 | 725 | xscr-=512; |
| 726 | copyscrollbitmap(bitmap, x68k_gfx_3_bitmap_16, 1, &xscr, 1, &yscr ,&cliprect | |
| 726 | copyscrollbitmap(bitmap, x68k_gfx_3_bitmap_16, 1, &xscr, 1, &yscr ,&cliprect | |
| 727 | 727 | } |
| 728 | 728 | } |
| 729 | 729 | else // 512x512 "real" screen size |
| r1649 | r1650 | |
| 740 | 740 | rect.max_y=rect.min_y + sys.crtc.visible_height-1; |
| 741 | 741 | xscr = sys.crtc.hbegin-(sys.crtc.reg[12] & 0x1ff); |
| 742 | 742 | yscr = sys.crtc.vbegin-(sys.crtc.reg[13] & 0x1ff); |
| 743 | copyscrollbitmap(bitmap, x68k_gfx_0_bitmap_65536, 1, &xscr, 1, &yscr,&cliprect | |
| 743 | copyscrollbitmap(bitmap, x68k_gfx_0_bitmap_65536, 1, &xscr, 1, &yscr,&cliprect | |
| 744 | 744 | } |
| 745 | 745 | break; |
| 746 | 746 | case 0x01: |
| r1649 | r1650 | |
| 753 | 753 | { |
| 754 | 754 | xscr = sys.crtc.hbegin-(sys.crtc.reg[16] & 0x1ff); |
| 755 | 755 | yscr = sys.crtc.vbegin-(sys.crtc.reg[17] & 0x1ff); |
| 756 | copyscrollbitmap(bitmap, x68k_gfx_1_bitmap_256, 1, &xscr, 1, &yscr, &cliprect | |
| 756 | copyscrollbitmap(bitmap, x68k_gfx_1_bitmap_256, 1, &xscr, 1, &yscr, &cliprect | |
| 757 | 757 | } |
| 758 | 758 | if(sys.video.reg[2] & 0x0001 && sys.video.reg[2] & 0x0002 && priority == sys.video.gfxlayer_pri[0]) |
| 759 | 759 | { |
| 760 | 760 | xscr = sys.crtc.hbegin-(sys.crtc.reg[12] & 0x1ff); |
| 761 | 761 | yscr = sys.crtc.vbegin-(sys.crtc.reg[13] & 0x1ff); |
| 762 | copyscrollbitmap(bitmap, x68k_gfx_0_bitmap_256, 1, &xscr, 1, &yscr, &cliprect | |
| 762 | copyscrollbitmap(bitmap, x68k_gfx_0_bitmap_256, 1, &xscr, 1, &yscr, &cliprect | |
| 763 | 763 | } |
| 764 | 764 | break; |
| 765 | 765 | case 0x00: |
| r1649 | r1650 | |
| 772 | 772 | { |
| 773 | 773 | xscr = sys.crtc.hbegin-(sys.crtc.reg[18] & 0x1ff); |
| 774 | 774 | yscr = sys.crtc.vbegin-(sys.crtc.reg[19] & 0x1ff); |
| 775 | copyscrollbitmap(bitmap, x68k_get_gfx_pri(3,GFX16), 1, &xscr, 1, &yscr ,&cliprect | |
| 775 | copyscrollbitmap(bitmap, x68k_get_gfx_pri(3,GFX16), 1, &xscr, 1, &yscr ,&cliprect | |
| 776 | 776 | } |
| 777 | 777 | if(sys.video.reg[2] & 0x0004) // Pri2 |
| 778 | 778 | { |
| 779 | 779 | xscr = sys.crtc.hbegin-(sys.crtc.reg[16] & 0x1ff); |
| 780 | 780 | yscr = sys.crtc.vbegin-(sys.crtc.reg[17] & 0x1ff); |
| 781 | copyscrollbitmap(bitmap, x68k_get_gfx_pri(2,GFX16), 1, &xscr, 1, &yscr ,&cliprect | |
| 781 | copyscrollbitmap(bitmap, x68k_get_gfx_pri(2,GFX16), 1, &xscr, 1, &yscr ,&cliprect | |
| 782 | 782 | } |
| 783 | 783 | if(sys.video.reg[2] & 0x0002) // Pri1 |
| 784 | 784 | { |
| 785 | 785 | xscr = sys.crtc.hbegin-(sys.crtc.reg[14] & 0x1ff); |
| 786 | 786 | yscr = sys.crtc.vbegin-(sys.crtc.reg[15] & 0x1ff); |
| 787 | copyscrollbitmap(bitmap, x68k_get_gfx_pri(1,GFX16), 1, &xscr, 1, &yscr ,&cliprect | |
| 787 | copyscrollbitmap(bitmap, x68k_get_gfx_pri(1,GFX16), 1, &xscr, 1, &yscr ,&cliprect | |
| 788 | 788 | } |
| 789 | 789 | if(sys.video.reg[2] & 0x0001) // Pri0 |
| 790 | 790 | { |
| 791 | 791 | xscr = sys.crtc.hbegin-(sys.crtc.reg[12] & 0x1ff); |
| 792 | 792 | yscr = sys.crtc.vbegin-(sys.crtc.reg[13] & 0x1ff); |
| 793 | copyscrollbitmap(bitmap, x68k_get_gfx_pri(0,GFX16), 1, &xscr, 1, &yscr ,&cliprect | |
| 793 | copyscrollbitmap(bitmap, x68k_get_gfx_pri(0,GFX16), 1, &xscr, 1, &yscr ,&cliprect | |
| 794 | 794 | } |
| 795 | 795 | break; |
| 796 | 796 | } |
| r1649 | r1650 | |
| 1080 | 1080 | #ifdef MAME_DEBUG |
| 1081 | 1081 | if(!input_code_pressed(KEYCODE_Q)) |
| 1082 | 1082 | #endif |
| 1083 | copyscrollbitmap(bitmap, x68k_text_bitmap, 1, &xscr, 1, &yscr, &rect, | |
| 1083 | copyscrollbitmap_trans(bitmap, x68k_text_bitmap, 1, &xscr, 1, &yscr, &rect, | |
| 1084 | 1084 | } |
| 1085 | 1085 | } |
| 1086 | 1086 |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | ***************************************************************************/ |
| 15 | 15 | |
| 16 | 16 | #include "driver.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | #include "includes/spectrum.h" |
| 18 | 19 | #include "eventlst.h" |
| 19 | 20 | #include "video/border.h" |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | ***************************************************************************/ |
| 12 | 12 | |
| 13 | 13 | #include "driver.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "cpu/z80/z80.h" |
| 15 | 16 | #include "includes/astrocde.h" |
| 16 | 17 |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | #include "deprecat.h" | |
| 13 | 14 | #include "cpu/m68000/m68k.h" |
| 14 | 15 | #include "cpu/m68000/m68000.h" |
| 15 | 16 | #include "machine/68901mfp.h" |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | |
| 9 | 10 | #include "cpu/pdp1/tx0.h" |
| 10 | 11 | #include "includes/tx0.h" |
| r1649 | r1650 | |
| 75 | 76 | VIDEO_UPDATE_CALL(crt); |
| 76 | 77 | |
| 77 | 78 | tx0_draw_panel(panel_bitmap); |
| 78 | copybitmap(bitmap, panel_bitmap, 0, 0, panel_window_offset_x, panel_window_offset_y, | |
| 79 | copybitmap(bitmap, panel_bitmap, 0, 0, panel_window_offset_x, panel_window_offset_y, | |
| 79 | 80 | |
| 80 | copybitmap(bitmap, typewriter_bitmap, 0, 0, typewriter_window_offset_x, typewriter_window_offset_y, | |
| 81 | copybitmap(bitmap, typewriter_bitmap, 0, 0, typewriter_window_offset_x, typewriter_window_offset_y, | |
| 81 | 82 | return 0; |
| 82 | 83 | } |
| 83 | 84 |
| r1649 | r1650 | |
|---|---|---|
| 15 | 15 | #include "driver.h" |
| 16 | 16 | #include "border.h" |
| 17 | 17 | #include "eventlst.h" |
| 18 | #include "deprecat.h" | |
| 18 | 19 | |
| 19 | 20 | /* Last border colour output in the previous frame */ |
| 20 | 21 | static int CurrBorderColor = 0; |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "includes/pc8801.h" |
| 9 | 10 | |
| 10 | 11 | /* NPW 23-Oct-2001 - Adding this so that it compiles */ |
| r1649 | r1650 | |
| 590 | 591 | } |
| 591 | 592 | } |
| 592 | 593 | |
| 593 | copybitmap(wbm1,wbm2,0,0,0,0, | |
| 594 | &machine->screen[0].visarea,TRANSPARENCY_PEN,palette_transparent_pen); | |
| 595 | copybitmap(bitmap,wbm1,0,0,0,0, | |
| 596 | &machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 594 | copyscrollbitmap_trans(wbm1,wbm2,0,0,0,0, | |
| 595 | &machine->screen[0].visarea,palette_transparent_pen); | |
| 596 | copybitmap(bitmap,wbm1,0,0,0,0, | |
| 597 | &machine->screen[0].visarea); | |
| 597 | 598 | return 0; |
| 598 | 599 | } |
| 599 | 600 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "includes/pet.h" |
| 11 | 12 | |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | *********************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "memconv.h" |
| 11 | 12 | #include "includes/crtc6845.h" |
| 12 | 13 | #include "video/pc_video.h" |
| r1649 | r1650 | |
| 107 | 108 | |
| 108 | 109 | if (tmpbitmap) |
| 109 | 110 | { |
| 110 | copybitmap(bitmap, tmpbitmap, 0, 0, 0, 0, cliprect | |
| 111 | copybitmap(bitmap, tmpbitmap, 0, 0, 0, 0, cliprect | |
| 111 | 112 | if (!pc_anythingdirty) |
| 112 | 113 | rc = UPDATE_HAS_NOT_CHANGED; |
| 113 | 114 | pc_anythingdirty = 0; |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | ***************************************************************************/ |
| 12 | 12 | |
| 13 | 13 | #include "driver.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "includes/oric.h" |
| 15 | 16 | |
| 16 | 17 | static void oric_vh_update_flash(void); |
| r1649 | r1650 | |
|---|---|---|
| 3 | 3 | |
| 4 | 4 | #include "driver.h" |
| 5 | 5 | #include "vic4567.h" |
| 6 | #include "deprecat.h" | |
| 6 | 7 | |
| 7 | 8 | #define OPTIMIZE |
| 8 | 9 |
| r1649 | r1650 | |
|---|---|---|
| 55 | 55 | *BITMAP_ADDR16(bitmap, y, x) = (UINT16)color; |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | static void electron_drawline( | |
| 58 | static void electron_drawline( running_machine *machine ) { | |
| 59 | 59 | int i; |
| 60 | 60 | int x = 0; |
| 61 | 61 | int pal[16]; |
| 62 | rectangle r = | |
| 62 | rectangle r = machine->screen[0].visarea; | |
| 63 | 63 | r.min_y = r.max_y = ula.scanline; |
| 64 | 64 | |
| 65 | 65 | /* set up palette */ |
| r1649 | r1650 | |
| 85 | 85 | case 0: |
| 86 | 86 | for( i = 0; i < 80; i++ ) { |
| 87 | 87 | UINT8 pattern = read_vram( ula.screen_addr + i * 8 ); |
| 88 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>7)& 1] ] ); | |
| 89 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>6)& 1] ] ); | |
| 90 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>5)& 1] ] ); | |
| 91 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>4)& 1] ] ); | |
| 92 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>3)& 1] ] ); | |
| 93 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>2)& 1] ] ); | |
| 94 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>1)& 1] ] ); | |
| 95 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>0)& 1] ] ); | |
| 88 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>7)& 1] ] ); | |
| 89 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>6)& 1] ] ); | |
| 90 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>5)& 1] ] ); | |
| 91 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>4)& 1] ] ); | |
| 92 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>3)& 1] ] ); | |
| 93 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>2)& 1] ] ); | |
| 94 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>1)& 1] ] ); | |
| 95 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>0)& 1] ] ); | |
| 96 | 96 | } |
| 97 | 97 | ula.screen_addr += 1; |
| 98 | 98 | if ( ( ula.scanline & 0x07 ) == 7 ) { |
| r1649 | r1650 | |
| 103 | 103 | x = 0; |
| 104 | 104 | for( i = 0; i < 80; i++ ) { |
| 105 | 105 | UINT8 pattern = read_vram( ula.screen_addr + i * 8 ); |
| 106 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map4[pattern>>3]] ] ); | |
| 107 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map4[pattern>>3]] ] ); | |
| 108 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map4[pattern>>2]] ] ); | |
| 109 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map4[pattern>>2]] ] ); | |
| 110 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map4[pattern>>1]] ] ); | |
| 111 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map4[pattern>>1]] ] ); | |
| 112 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map4[pattern>>0]] ] ); | |
| 113 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map4[pattern>>0]] ] ); | |
| 106 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map4[pattern>>3]] ] ); | |
| 107 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map4[pattern>>3]] ] ); | |
| 108 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map4[pattern>>2]] ] ); | |
| 109 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map4[pattern>>2]] ] ); | |
| 110 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map4[pattern>>1]] ] ); | |
| 111 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map4[pattern>>1]] ] ); | |
| 112 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map4[pattern>>0]] ] ); | |
| 113 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map4[pattern>>0]] ] ); | |
| 114 | 114 | } |
| 115 | 115 | ula.screen_addr += 1; |
| 116 | 116 | if ( ( ula.scanline & 0x07 ) == 7 ) { |
| r1649 | r1650 | |
| 120 | 120 | case 2: |
| 121 | 121 | for( i = 0; i < 80; i++ ) { |
| 122 | 122 | UINT8 pattern = read_vram( ula.screen_addr + i * 8 ); |
| 123 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map16[pattern>>1]] ] ); | |
| 124 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map16[pattern>>1]] ] ); | |
| 125 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map16[pattern>>1]] ] ); | |
| 126 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map16[pattern>>1]] ] ); | |
| 127 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map16[pattern>>0]] ] ); | |
| 128 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map16[pattern>>0]] ] ); | |
| 129 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map16[pattern>>0]] ] ); | |
| 130 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map16[pattern>>0]] ] ); | |
| 123 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map16[pattern>>1]] ] ); | |
| 124 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map16[pattern>>1]] ] ); | |
| 125 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map16[pattern>>1]] ] ); | |
| 126 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map16[pattern>>1]] ] ); | |
| 127 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map16[pattern>>0]] ] ); | |
| 128 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map16[pattern>>0]] ] ); | |
| 129 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map16[pattern>>0]] ] ); | |
| 130 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map16[pattern>>0]] ] ); | |
| 131 | 131 | } |
| 132 | 132 | ula.screen_addr += 1; |
| 133 | 133 | if ( ( ula.scanline & 0x07 ) == 7 ) { |
| r1649 | r1650 | |
| 136 | 136 | break; |
| 137 | 137 | case 3: |
| 138 | 138 | if ( ( ula.scanline > 249 ) || ( ula.scanline % 10 >= 8 ) ) { |
| 139 | fillbitmap( tmpbitmap, | |
| 139 | fillbitmap( tmpbitmap, machine->pens[7], &r ); | |
| 140 | 140 | } else { |
| 141 | 141 | for( i = 0; i < 80; i++ ) { |
| 142 | 142 | UINT8 pattern = read_vram( ula.screen_addr + i * 8 ); |
| 143 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>7)&1] ] ); | |
| 144 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>6)&1] ] ); | |
| 145 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>5)&1] ] ); | |
| 146 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>4)&1] ] ); | |
| 147 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>3)&1] ] ); | |
| 148 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>2)&1] ] ); | |
| 149 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>1)&1] ] ); | |
| 150 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>0)&1] ] ); | |
| 143 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>7)&1] ] ); | |
| 144 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>6)&1] ] ); | |
| 145 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>5)&1] ] ); | |
| 146 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>4)&1] ] ); | |
| 147 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>3)&1] ] ); | |
| 148 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>2)&1] ] ); | |
| 149 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>1)&1] ] ); | |
| 150 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>0)&1] ] ); | |
| 151 | 151 | } |
| 152 | 152 | ula.screen_addr += 1; |
| 153 | 153 | if ( ( ula.scanline & 0x07 ) == 7 ) { |
| r1649 | r1650 | |
| 159 | 159 | case 7: |
| 160 | 160 | for( i = 0; i < 40; i++ ) { |
| 161 | 161 | UINT8 pattern = read_vram( ula.screen_addr + i * 8 ); |
| 162 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>7)&1] ] ); | |
| 163 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>7)&1] ] ); | |
| 164 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>6)&1] ] ); | |
| 165 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>6)&1] ] ); | |
| 166 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>5)&1] ] ); | |
| 167 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>5)&1] ] ); | |
| 168 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>4)&1] ] ); | |
| 169 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>4)&1] ] ); | |
| 170 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>3)&1] ] ); | |
| 171 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>3)&1] ] ); | |
| 172 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>2)&1] ] ); | |
| 173 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>2)&1] ] ); | |
| 174 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>1)&1] ] ); | |
| 175 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>1)&1] ] ); | |
| 176 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>0)&1] ] ); | |
| 177 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>0)&1] ] ); | |
| 162 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>7)&1] ] ); | |
| 163 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>7)&1] ] ); | |
| 164 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>6)&1] ] ); | |
| 165 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>6)&1] ] ); | |
| 166 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>5)&1] ] ); | |
| 167 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>5)&1] ] ); | |
| 168 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>4)&1] ] ); | |
| 169 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>4)&1] ] ); | |
| 170 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>3)&1] ] ); | |
| 171 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>3)&1] ] ); | |
| 172 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>2)&1] ] ); | |
| 173 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>2)&1] ] ); | |
| 174 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>1)&1] ] ); | |
| 175 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>1)&1] ] ); | |
| 176 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>0)&1] ] ); | |
| 177 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>0)&1] ] ); | |
| 178 | 178 | } |
| 179 | 179 | ula.screen_addr += 1; |
| 180 | 180 | if ( ( ula.scanline & 0x07 ) == 7 ) { |
| r1649 | r1650 | |
| 184 | 184 | case 5: |
| 185 | 185 | for( i = 0; i < 40; i++ ) { |
| 186 | 186 | UINT8 pattern = read_vram( ula.screen_addr + i * 8 ); |
| 187 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map4[pattern>>3]] ] ); | |
| 188 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map4[pattern>>3]] ] ); | |
| 189 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map4[pattern>>3]] ] ); | |
| 190 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map4[pattern>>3]] ] ); | |
| 191 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map4[pattern>>2]] ] ); | |
| 192 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map4[pattern>>2]] ] ); | |
| 193 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map4[pattern>>2]] ] ); | |
| 194 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map4[pattern>>2]] ] ); | |
| 195 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map4[pattern>>1]] ] ); | |
| 196 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map4[pattern>>1]] ] ); | |
| 197 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map4[pattern>>1]] ] ); | |
| 198 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map4[pattern>>1]] ] ); | |
| 199 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map4[pattern>>0]] ] ); | |
| 200 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map4[pattern>>0]] ] ); | |
| 201 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map4[pattern>>0]] ] ); | |
| 202 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[map4[pattern>>0]] ] ); | |
| 187 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map4[pattern>>3]] ] ); | |
| 188 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map4[pattern>>3]] ] ); | |
| 189 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map4[pattern>>3]] ] ); | |
| 190 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map4[pattern>>3]] ] ); | |
| 191 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map4[pattern>>2]] ] ); | |
| 192 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map4[pattern>>2]] ] ); | |
| 193 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map4[pattern>>2]] ] ); | |
| 194 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map4[pattern>>2]] ] ); | |
| 195 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map4[pattern>>1]] ] ); | |
| 196 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map4[pattern>>1]] ] ); | |
| 197 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map4[pattern>>1]] ] ); | |
| 198 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map4[pattern>>1]] ] ); | |
| 199 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map4[pattern>>0]] ] ); | |
| 200 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map4[pattern>>0]] ] ); | |
| 201 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map4[pattern>>0]] ] ); | |
| 202 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[map4[pattern>>0]] ] ); | |
| 203 | 203 | } |
| 204 | 204 | ula.screen_addr += 1; |
| 205 | 205 | if ( ( ula.scanline & 0x07 ) == 7 ) { |
| r1649 | r1650 | |
| 208 | 208 | break; |
| 209 | 209 | case 6: |
| 210 | 210 | if ( ( ula.scanline > 249 ) || ( ula.scanline % 10 >= 8 ) ) { |
| 211 | fillbitmap( tmpbitmap, | |
| 211 | fillbitmap( tmpbitmap, machine->pens[7], &r ); | |
| 212 | 212 | } else { |
| 213 | 213 | for( i = 0; i < 40; i++ ) { |
| 214 | 214 | UINT8 pattern = read_vram( ula.screen_addr + i * 8 ); |
| 215 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>7)&1] ] ); | |
| 216 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>7)&1] ] ); | |
| 217 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>6)&1] ] ); | |
| 218 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>6)&1] ] ); | |
| 219 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>5)&1] ] ); | |
| 220 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>5)&1] ] ); | |
| 221 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>4)&1] ] ); | |
| 222 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>4)&1] ] ); | |
| 223 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>3)&1] ] ); | |
| 224 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>3)&1] ] ); | |
| 225 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>2)&1] ] ); | |
| 226 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>2)&1] ] ); | |
| 227 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>1)&1] ] ); | |
| 228 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>1)&1] ] ); | |
| 229 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>0)&1] ] ); | |
| 230 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, Machine->pens[ pal[(pattern>>0)&1] ] ); | |
| 215 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>7)&1] ] ); | |
| 216 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>7)&1] ] ); | |
| 217 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>6)&1] ] ); | |
| 218 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>6)&1] ] ); | |
| 219 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>5)&1] ] ); | |
| 220 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>5)&1] ] ); | |
| 221 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>4)&1] ] ); | |
| 222 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>4)&1] ] ); | |
| 223 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>3)&1] ] ); | |
| 224 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>3)&1] ] ); | |
| 225 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>2)&1] ] ); | |
| 226 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>2)&1] ] ); | |
| 227 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>1)&1] ] ); | |
| 228 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>1)&1] ] ); | |
| 229 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>0)&1] ] ); | |
| 230 | electron_plot_pixel( tmpbitmap, x++, ula.scanline, machine->pens[ pal[(pattern>>0)&1] ] ); | |
| 231 | 231 | } |
| 232 | 232 | ula.screen_addr += 1; |
| 233 | 233 | if ( ( ula.scanline % 10 ) == 7 ) { |
| r1649 | r1650 | |
| 240 | 240 | |
| 241 | 241 | INTERRUPT_GEN( electron_scanline_interrupt ) { |
| 242 | 242 | if ( ula.scanline < 256 ) { |
| 243 | electron_drawline(); | |
| 243 | electron_drawline(machine); | |
| 244 | 244 | } |
| 245 | 245 | ula.scanline = ( ula.scanline + 1 ) % 312; |
| 246 | 246 | if ( ula.scanline == 100 ) { |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "zx8301.h" |
| 9 | 10 | |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 61 | 61 | ***************************************************************************/ |
| 62 | 62 | |
| 63 | 63 | #include "driver.h" |
| 64 | #include "deprecat.h" | |
| 64 | 65 | #include "includes/apple1.h" |
| 65 | 66 | #include "mscommon.h" |
| 66 | 67 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "pc_mda.h" |
| 9 | 10 | #include "pc_cga.h" //for the cga palette hack |
| 10 | 11 | #include "includes/crtc6845.h" |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | ***************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "pc_t1t.h" |
| 13 | 14 | #include "pc_cga.h" // cga monitor palette |
| 14 | 15 | #include "pc_aga.h" //europc charset |
| r1649 | r1650 | |
|---|---|---|
| 21 | 21 | ***************************************************************************/ |
| 22 | 22 | |
| 23 | 23 | #include "driver.h" |
| 24 | #include "deprecat.h" | |
| 24 | 25 | #include "cpu/m6502/m6502.h" |
| 25 | 26 | |
| 26 | 27 | #include "includes/a7800.h" |
| r1649 | r1650 | |
|---|---|---|
| 15 | 15 | #include <stdio.h> |
| 16 | 16 | #include <assert.h> |
| 17 | 17 | #include "driver.h" |
| 18 | #include "deprecat.h" | |
| 18 | 19 | |
| 19 | 20 | #include "includes/crtc6845.h" // include only several register defines |
| 20 | 21 | #include "vdc8563.h" |
| r1649 | r1650 | |
|---|---|---|
| 37 | 37 | */ |
| 38 | 38 | |
| 39 | 39 | #include "driver.h" |
| 40 | #include "deprecat.h" | |
| 40 | 41 | #include "video/smsvdp.h" |
| 41 | 42 | #include "includes/sms.h" |
| 42 | 43 | |
| r1649 | r1650 | |
| 1053 | 1054 | } |
| 1054 | 1055 | } |
| 1055 | 1056 | } else { |
| 1056 | copybitmap(bitmap, tmpbitmap, 0, 0, 0, 0, | |
| 1057 | copybitmap(bitmap, tmpbitmap, 0, 0, 0, 0, | |
| 1057 | 1058 | } |
| 1058 | 1059 | if (!smsvdp.prev_bitmap_saved) { |
| 1059 | copybitmap(smsvdp.prev_bitmap, tmpbitmap, 0, 0, 0, 0, | |
| 1060 | copybitmap(smsvdp.prev_bitmap, tmpbitmap, 0, 0, 0, 0, | |
| 1060 | 1061 | //smsvdp.prev_bitmap_saved = 1; |
| 1061 | 1062 | } |
| 1062 | 1063 | return 0; |
| r1649 | r1650 | |
|---|---|---|
| 48 | 48 | ***************************************************************************/ |
| 49 | 49 | |
| 50 | 50 | #include "driver.h" |
| 51 | #include "deprecat.h" | |
| 51 | 52 | #include "pc_cga.h" |
| 52 | 53 | #include "includes/crtc6845.h" |
| 53 | 54 | #include "video/pc_video.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "includes/intv.h" |
| 3 | 4 | #include "video/stic.h" |
| 4 | 5 | |
| r1649 | r1650 | |
| 747 | 748 | { |
| 748 | 749 | copybitmap(bitmap,tmpbitmap,0,0, |
| 749 | 750 | col_delay*2,row_delay*2, |
| 750 | | |
| 751 | | |
| 751 | 752 | return 0; |
| 752 | 753 | } |
| 753 | 754 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "includes/jupiter.h" |
| 11 | 12 | |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "cpu/cdp1802/cdp1802.h" |
| 3 | 4 | #include "sound/beep.h" |
| 4 | 5 | #include "video/cdp1864.h" |
| r1649 | r1650 | |
| 219 | 220 | if (cdp1864.disp) |
| 220 | 221 | { |
| 221 | 222 | fillbitmap(bitmap, machine->pens[cdp1864_bgcolseq[cdp1864.bgcolor]], cliprect); |
| 222 | copybitmap(bitmap, cdptmpbitmap, 0, 0, 0, 0, cliprect | |
| 223 | copybitmap_trans(bitmap, cdptmpbitmap, 0, 0, 0, 0, cliprect | |
| 223 | 224 | } |
| 224 | 225 | else |
| 225 | 226 | { |
| r1649 | r1650 | |
|---|---|---|
| 3 | 3 | ******************************************************************************/ |
| 4 | 4 | |
| 5 | 5 | #include "driver.h" |
| 6 | #include "deprecat.h" | |
| 6 | 7 | #include "mslegacy.h" |
| 7 | 8 | |
| 8 | 9 | #include "includes/ssystem3.h" |
| r1649 | r1650 | |
|---|---|---|
| 28 | 28 | ******************************************************************************/ |
| 29 | 29 | |
| 30 | 30 | #include "driver.h" |
| 31 | #include "deprecat.h" | |
| 31 | 32 | #include "includes/vtech1.h" |
| 32 | 33 | #include "video/m6847.h" |
| 33 | 34 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "devices/snapquik.h" |
| 12 | 13 | #include "includes/amstrad.h" |
| 13 | 14 | |
| r1649 | r1650 | |
| 1284 | 1285 | } |
| 1285 | 1286 | } |
| 1286 | 1287 | #endif |
| 1287 | copybitmap(bitmap, amstrad_bitmap, 0,0,0,0,&rect | |
| 1288 | copybitmap(bitmap, amstrad_bitmap, 0,0,0,0,&rect | |
| 1288 | 1289 | if(amstrad_plus_asic_enabled != 0) |
| 1289 | 1290 | amstrad_plus_sprite_draw(bitmap); |
| 1290 | 1291 | amstrad_scanline = y_screen_pos - 32; |
| r1649 | r1650 | |
|---|---|---|
| 58 | 58 | #include <assert.h> |
| 59 | 59 | |
| 60 | 60 | #include "driver.h" |
| 61 | #include "deprecat.h" | |
| 61 | 62 | #include "vic6567.h" |
| 62 | 63 | #include "vic4567.h" |
| 63 | 64 | #include "utils.h" |
| r1649 | r1650 | |
| 1331 | 1332 | VIDEO_UPDATE( vic2 ) |
| 1332 | 1333 | { |
| 1333 | 1334 | if (vic2.on) |
| 1334 | copybitmap(bitmap, vic2.bitmap, 0, 0, 0, 0, cliprect | |
| 1335 | copybitmap(bitmap, vic2.bitmap, 0, 0, 0, 0, cliprect | |
| 1335 | 1336 | return 0; |
| 1336 | 1337 | } |
| 1337 | 1338 |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | ***************************************************************************/ |
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | ||
| 13 | #include "deprecat.h" | |
| 14 | 14 | #include "includes/coupe.h" |
| 15 | 15 | |
| 16 | 16 | unsigned char *sam_screen; |
| r1649 | r1650 | |
|---|---|---|
| 6 | 6 | |
| 7 | 7 | #include <assert.h> |
| 8 | 8 | #include "driver.h" |
| 9 | #include "deprecat.h" | |
| 9 | 10 | #include "mslegacy.h" |
| 10 | 11 | #include "cpu/i8039/i8039.h" |
| 11 | 12 | #include "includes/odyssey2.h" |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | 14 | #include "driver.h" |
| 15 | #include "deprecat.h" | |
| 15 | 16 | #include "tms3556.h" |
| 16 | 17 | |
| 17 | 18 | static struct |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | ***************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "includes/primo.h" |
| 13 | 14 | |
| 14 | 15 | UINT16 primo_video_memory_base; |
| r1649 | r1650 | |
|---|---|---|
| 355 | 355 | #include <math.h> |
| 356 | 356 | #include <stdio.h> |
| 357 | 357 | #include "driver.h" |
| 358 | #include "deprecat.h" | |
| 358 | 359 | #include "utils.h" |
| 359 | 360 | #include "sound/custom.h" |
| 360 | 361 | |
| r1649 | r1650 | |
| 1226 | 1227 | |
| 1227 | 1228 | VIDEO_UPDATE( ted7360 ) |
| 1228 | 1229 | { |
| 1229 | copybitmap(bitmap, ted7360_bitmap, 0, 0, 0, 0, cliprect | |
| 1230 | copybitmap(bitmap, ted7360_bitmap, 0, 0, 0, 0, cliprect | |
| 1230 | 1231 | return 0; |
| 1231 | 1232 | } |
| r1649 | r1650 | |
|---|---|---|
| 30 | 30 | |
| 31 | 31 | |
| 32 | 32 | #include "driver.h" |
| 33 | #include "deprecat.h" | |
| 33 | 34 | #include "dl1416.h" |
| 34 | 35 | |
| 35 | 36 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include <assert.h> |
| 2 | 2 | #include "driver.h" |
| 3 | #include "deprecat.h" | |
| 3 | 4 | |
| 4 | 5 | #include "includes/vc4000.h" |
| 5 | 6 | #include "cpu/s2650/s2650.h" |
| r1649 | r1650 | |
| 480 | 481 | |
| 481 | 482 | VIDEO_UPDATE( vc4000 ) |
| 482 | 483 | { |
| 483 | copybitmap(bitmap, vc4000_video.bitmap, 0, 0, 0, 0, cliprect | |
| 484 | copybitmap(bitmap, vc4000_video.bitmap, 0, 0, 0, 0, cliprect | |
| 484 | 485 | return 0; |
| 485 | 486 | } |
| r1649 | r1650 | |
|---|---|---|
| 22 | 22 | |
| 23 | 23 | #include "driver.h" |
| 24 | 24 | #include "mslegacy.h" |
| 25 | #include "deprecat.h" | |
| 25 | 26 | |
| 26 | 27 | #include "733_asr.h" |
| 27 | 28 | |
| r1649 | r1650 | |
| 430 | 431 | */ |
| 431 | 432 | void asr733_refresh(mame_bitmap *bitmap, int unit, int x, int y) |
| 432 | 433 | { |
| 433 | copybitmap(bitmap, asr[unit].bitmap, 0, 0, x, y, &Machine->screen[0].visarea | |
| 434 | copybitmap(bitmap, asr[unit].bitmap, 0, 0, x, y, &Machine->screen[0].visarea | |
| 434 | 435 | } |
| 435 | 436 | |
| 436 | 437 |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "cpu/cdp1802/cdp1802.h" |
| 3 | 4 | #include "video/cdp1861.h" |
| 4 | 5 | |
| r1649 | r1650 | |
| 166 | 167 | { |
| 167 | 168 | if (cdp1861.disp) |
| 168 | 169 | { |
| 169 | copybitmap(bitmap, cdptmpbitmap, 0, 0, 0, 0, cliprect | |
| 170 | copybitmap(bitmap, cdptmpbitmap, 0, 0, 0, 0, cliprect | |
| 170 | 171 | } |
| 171 | 172 | else |
| 172 | 173 | { |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | ******************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "includes/bbc.h" |
| 13 | 14 | #include "video/m6845.h" |
| 14 | 15 | #include "saa505x.h" |
| 15 | //#include "video/bbctext.h" | |
| 16 | 16 | |
| 17 | 17 | |
| 18 | 18 | static void BBC_draw_hi_res(void); |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | #include "driver.h" |
| 10 | 10 | #include "includes/kc.h" |
| 11 | 11 | #include "eventlst.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "mslegacy.h" |
| 13 | 14 | |
| 14 | 15 | /* KC85/4 and KC85/3 common graphics hardware */ |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | #include <assert.h> |
| 11 | 11 | #include <wctype.h> |
| 12 | 12 | #include "inputx.h" |
| 13 | #include "deprecat.h" | |
| 13 | 14 | #include "inptport.h" |
| 14 | 15 | #include "mame.h" |
| 15 | 16 |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | #include <stddef.h> |
| 10 | 10 | |
| 11 | 11 | #include "device.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "mslegacy.h" |
| 13 | 14 | #include "driver.h" |
| 14 | 15 | #include "pool.h" |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | *********************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "utils.h" |
| 11 | 12 | #include "image.h" |
| 12 | 13 | #include "ui.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "eventlst.h" |
| 3 | 4 | |
| 4 | 5 | /* current item */ |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | |
| 12 | 12 | #include "dialog.h" |
| 13 | 13 | #include "mame.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "mslegacy.h" |
| 15 | 16 | #include "inputx.h" |
| 16 | 17 | #include "utils.h" |
| r1649 | r1650 | |
|---|---|---|
| 21 | 21 | #include "windows/input.h" |
| 22 | 22 | #include "dialog.h" |
| 23 | 23 | #include "opcntrl.h" |
| 24 | #include "deprecat.h" | |
| 24 | 25 | #include "mslegacy.h" |
| 25 | 26 | #include "strconv.h" |
| 26 | 27 | #include "utils.h" |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "mame.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "options.h" |
| 9 | 10 | #include "driver.h" |
| 10 | 11 | #include "pool.h" |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | |
| 14 | 14 | #include "driver.h" |
| 15 | 15 | #include "strata.h" |
| 16 | #include "deprecat.h" | |
| 16 | 17 | |
| 17 | 18 | #define MAX_STRATA 1 |
| 18 | 19 |
| r1649 | r1650 | |
|---|---|---|
| 16 | 16 | ***************************************************************************/ |
| 17 | 17 | |
| 18 | 18 | #include "driver.h" |
| 19 | #include "deprecat.h" | |
| 19 | 20 | #include "includes/wswan.h" |
| 20 | 21 | #include "image.h" |
| 21 | 22 |
| r1649 | r1650 | |
|---|---|---|
| 2 | 2 | #include <stdarg.h> |
| 3 | 3 | |
| 4 | 4 | #include "driver.h" |
| 5 | #include "deprecat.h" | |
| 5 | 6 | #include "includes/cbm.h" |
| 6 | 7 | #include "devices/cartslot.h" |
| 7 | 8 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ****************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "cpu/z80/z80.h" |
| 11 | 12 | #include "includes/zx.h" |
| 12 | 13 | #include "devices/cassette.h" |
| r1649 | r1650 | |
|---|---|---|
| 59 | 59 | #include <assert.h> |
| 60 | 60 | |
| 61 | 61 | #include "driver.h" |
| 62 | #include "deprecat.h" | |
| 62 | 63 | #include "debug/debugcon.h" |
| 63 | 64 | #include "cpu/m6809/m6809.h" |
| 64 | 65 | #include "machine/6821pia.h" |
| r1649 | r1650 | |
| 1094 | 1095 | pia_config(1, &dgnbeta_pia_intf[1]); |
| 1095 | 1096 | pia_config(2, &dgnbeta_pia_intf[2]); |
| 1096 | 1097 | |
| 1097 | init_video(); | |
| 1098 | init_video(machine); | |
| 1098 | 1099 | |
| 1099 | 1100 | wd17xx_init(WD_TYPE_179X,dgnbeta_fdc_callback, NULL); |
| 1100 | 1101 | #ifdef MAME_DEBUG |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | #include <stdio.h> |
| 13 | 13 | |
| 14 | 14 | #include "driver.h" |
| 15 | #include "deprecat.h" | |
| 15 | 16 | |
| 16 | 17 | #include "cpu/pdp1/pdp1.h" |
| 17 | 18 | #include "includes/pdp1.h" |
| r1649 | r1650 | |
|---|---|---|
| 106 | 106 | |
| 107 | 107 | #include <assert.h> |
| 108 | 108 | #include "driver.h" |
| 109 | #include "deprecat.h" | |
| 109 | 110 | |
| 110 | 111 | #include "includes/apple2gs.h" |
| 111 | 112 | #include "includes/apple2.h" |
| r1649 | r1650 | |
|---|---|---|
| 36 | 36 | *********************************************************************/ |
| 37 | 37 | |
| 38 | 38 | #include "applefdc.h" |
| 39 | #include "deprecat.h" | |
| 39 | 40 | |
| 40 | 41 | /* logging */ |
| 41 | 42 | #define LOG_IWM 0 |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | ***************************************************************************/ |
| 15 | 15 | |
| 16 | 16 | #include "driver.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | #include "includes/apple3.h" |
| 18 | 19 | #include "includes/apple2.h" |
| 19 | 20 | #include "cpu/m6502/m6502.h" |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | |
| 12 | 12 | #include <stdarg.h> |
| 13 | 13 | #include "driver.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "devices/cassette.h" |
| 15 | 16 | #include "cpu/i8085/i8085.h" |
| 16 | 17 | #include "includes/dai.h" |
| r1649 | r1650 | |
|---|---|---|
| 38 | 38 | #include <time.h> |
| 39 | 39 | |
| 40 | 40 | #include "driver.h" |
| 41 | #include "deprecat.h" | |
| 41 | 42 | #include "machine/6522via.h" |
| 42 | 43 | #include "machine/8530scc.h" |
| 43 | 44 | #include "cpu/m68000/m68000.h" |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | #include "pcf8593.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | |
| 11 | 12 | #include <time.h> |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | #include "cpu/m6502/m6509.h" |
| 10 | 10 | #include "sound/sid6581.h" |
| 11 | 11 | #include "machine/6526cia.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | |
| 13 | 14 | #define VERBOSE_DBG 1 |
| 14 | 15 | #include "includes/cbm.h" |
| r1649 | r1650 | |
|---|---|---|
| 15 | 15 | ****************************************************************************/ |
| 16 | 16 | |
| 17 | 17 | #include "driver.h" |
| 18 | #include "deprecat.h" | |
| 18 | 19 | #include "machine/z80ctc.h" |
| 19 | 20 | #include "machine/z80pio.h" |
| 20 | 21 | #include "machine/z80sio.h" |
| r1649 | r1650 | |
|---|---|---|
| 68 | 68 | */ |
| 69 | 69 | |
| 70 | 70 | #include "rp5c15.h" |
| 71 | #include "deprecat.h" | |
| 71 | 72 | |
| 72 | 73 | static struct rp5c15 rtc; |
| 73 | 74 |
| r1649 | r1650 | |
|---|---|---|
| 82 | 82 | #include <assert.h> |
| 83 | 83 | |
| 84 | 84 | #include "driver.h" |
| 85 | #include "deprecat.h" | |
| 85 | 86 | #include "cpu/m6809/m6809.h" |
| 86 | 87 | #include "machine/6821pia.h" |
| 87 | 88 | #include "includes/coco.h" |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | #include "zlib.h" |
| 8 | 8 | #include "image.h" |
| 9 | 9 | #include "hash.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | |
| 11 | 12 | |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 36 | 36 | #define __MACHINE_GB_C |
| 37 | 37 | |
| 38 | 38 | #include "driver.h" |
| 39 | #include "deprecat.h" | |
| 39 | 40 | #include "includes/gb.h" |
| 40 | 41 | #include "cpu/z80gb/z80gb.h" |
| 41 | 42 | #include "image.h" |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "includes/concept.h" |
| 9 | 10 | #include "machine/6522via.h" |
| 10 | 11 | #include "machine/mm58274c.h" /* mm58274 seems to be compatible with mm58174 */ |
| r1649 | r1650 | |
|---|---|---|
| 24 | 24 | */ |
| 25 | 25 | |
| 26 | 26 | #include "driver.h" |
| 27 | #include "deprecat.h" | |
| 27 | 28 | #include "machine/wd17xx.h" |
| 28 | 29 | #include "smc92x4.h" |
| 29 | 30 | #include "ti99_4x.h" |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | 14 | #include "driver.h" |
| 15 | #include "deprecat.h" | |
| 15 | 16 | #include "includes/msx_slot.h" |
| 16 | 17 | #include "includes/msx.h" |
| 17 | 18 | #include "machine/8255ppi.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | |
| 2 | 2 | #include "driver.h" |
| 3 | #include "deprecat.h" | |
| 3 | 4 | #include "includes/gamecom.h" |
| 4 | 5 | #include "cpu/sm8500/sm8500.h" |
| 5 | 6 | #include "image.h" |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | ****************************************************************************/ |
| 12 | 12 | |
| 13 | 13 | #include "driver.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "ins8154.h" |
| 15 | 16 | |
| 16 | 17 | #define MAX_INS8154 2 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "includes/advision.h" |
| 11 | 12 | #include "devices/cartslot.h" |
| 12 | 13 | #include "sound/dac.h" |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | |
| 12 | 12 | /* Core includes */ |
| 13 | 13 | #include "driver.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "includes/mz700.h" |
| 15 | 16 | |
| 16 | 17 | /* Components */ |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "ti990.h" |
| 9 | 10 | |
| 10 | 11 | /* |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "video/vector.h" |
| 3 | 4 | #include "machine/6522via.h" |
| 4 | 5 | #include "cpu/m6809/m6809.h" |
| r1649 | r1650 | |
|---|---|---|
| 6 | 6 | |
| 7 | 7 | |
| 8 | 8 | #include "driver.h" |
| 9 | #include "deprecat.h" | |
| 9 | 10 | #include "includes/aim65.h" |
| 10 | 11 | |
| 11 | 12 | /* Peripheral chips */ |
| r1649 | r1650 | |
|---|---|---|
| 28 | 28 | #include "cpu/m6502/m6502.h" |
| 29 | 29 | #include "video/ppu2c0x.h" |
| 30 | 30 | #include "osdepend.h" |
| 31 | #include "deprecat.h" | |
| 31 | 32 | #include "driver.h" |
| 32 | 33 | #include "includes/nes.h" |
| 33 | 34 | #include "nes_mmc.h" |
| r1649 | r1650 | |
|---|---|---|
| 101 | 101 | #include <stdio.h> |
| 102 | 102 | |
| 103 | 103 | #include "driver.h" |
| 104 | #include "deprecat.h" | |
| 104 | 105 | #include "image.h" |
| 105 | 106 | #include "cpu/m6502/m6502.h" |
| 106 | 107 | #include "machine/6522via.h" |
| r1649 | r1650 | |
|---|---|---|
| 43 | 43 | ****************************************************************************/ |
| 44 | 44 | |
| 45 | 45 | #include "driver.h" |
| 46 | #include "deprecat.h" | |
| 46 | 47 | #include "74145.h" |
| 47 | 48 | |
| 48 | 49 |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | **********************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "includes/thomson.h" |
| 11 | 12 | #include "cpu/m6809/m6809.h" |
| 12 | 13 | #include "machine/6821pia.h" |
| r1649 | r1650 | |
|---|---|---|
| 37 | 37 | */ |
| 38 | 38 | |
| 39 | 39 | #include "driver.h" |
| 40 | #include "deprecat.h" | |
| 40 | 41 | #include "includes/lisa.h" |
| 41 | 42 | #include "machine/6522via.h" |
| 42 | 43 | #include "machine/applefdc.h" |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "includes/sym1.h" |
| 12 | 13 | |
| 13 | 14 | /* M6502 CPU */ |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | |
| 5 | 5 | #include "driver.h" |
| 6 | 6 | #include "includes/lynx.h" |
| 7 | #include "deprecat.h" | |
| 7 | 8 | |
| 8 | 9 | #include "cpu/m6502/m6502.h" |
| 9 | 10 |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | #include <stdarg.h> |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "cpu/z80/z80.h" |
| 13 | 14 | #include "includes/cgenie.h" |
| 14 | 15 | #include "machine/wd17xx.h" |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | |
| 12 | 12 | #include <stdarg.h> |
| 13 | 13 | #include "driver.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "devices/cassette.h" |
| 15 | 16 | #include "cpu/i8085/i8085.h" |
| 16 | 17 | #include "includes/pmd85.h" |
| r1649 | r1650 | |
|---|---|---|
| 25 | 25 | |
| 26 | 26 | #include <stdarg.h> |
| 27 | 27 | #include "driver.h" |
| 28 | #include "deprecat.h" | |
| 28 | 29 | #include "cpu/z80/z80.h" |
| 29 | 30 | #include "includes/spectrum.h" |
| 30 | 31 | #include "eventlst.h" |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | **************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "cpu/z80/z80.h" |
| 11 | 12 | #include "includes/astrocde.h" |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | |
| 6 | 6 | #include <math.h> |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "tms9901.h" |
| 9 | 10 | #include "mm58274c.h" |
| 10 | 11 | #include "video/v9938.h" |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | #include "driver.h" |
| 13 | 13 | #include "includes/c128.h" |
| 14 | 14 | #include "includes/c64.h" |
| 15 | #include "deprecat.h" | |
| 15 | 16 | |
| 16 | 17 | #include "cpu/m6502/m6502.h" |
| 17 | 18 | #include "sound/sid6581.h" |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "machine/i82439tx.h" |
| 11 | 12 | #include "machine/pci.h" |
| 12 | 13 |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | |
| 12 | 12 | #include <stdarg.h> |
| 13 | 13 | #include "driver.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "devices/cassette.h" |
| 15 | 16 | #include "devices/snapquik.h" |
| 16 | 17 | #include "cpu/i8085/i8085.h" |
| r1649 | r1650 | |
|---|---|---|
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | 8 | #include "ds1315.h" |
| 9 | #include "deprecat.h" | |
| 9 | 10 | |
| 10 | 11 | |
| 11 | 12 | enum |
| r1649 | r1650 | |
|---|---|---|
| 16 | 16 | ***************************************************************************/ |
| 17 | 17 | |
| 18 | 18 | #include "driver.h" |
| 19 | #include "deprecat.h" | |
| 19 | 20 | #include "includes/pc8801.h" |
| 20 | 21 | #include "machine/8255ppi.h" |
| 21 | 22 | #include "machine/nec765.h" |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "cpu/m6502/m6502.h" |
| 9 | 10 | #include "cpu/m6809/m6809.h" |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | #include <ctype.h> |
| 12 | 12 | #include "driver.h" |
| 13 | 13 | #include "image.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "cpu/m6502/m6502.h" |
| 15 | 16 | #include "sound/sid6581.h" |
| 16 | 17 |
| r1649 | r1650 | |
|---|---|---|
| 19 | 19 | |
| 20 | 20 | #include <stdio.h> |
| 21 | 21 | #include "driver.h" |
| 22 | #include "deprecat.h" | |
| 22 | 23 | #include "includes/oric.h" |
| 23 | 24 | #include "machine/wd17xx.h" |
| 24 | 25 | #include "machine/6522via.h" |
| r1649 | r1650 | |
| 748 | 749 | { |
| 749 | 750 | /* microdisc floppy disc interface */ |
| 750 | 751 | case 0x04: |
| 751 | logerror("cycles: %d\n",cycles_currently_ran()); | |
| 752 | 752 | wd17xx_command_w(0,data); |
| 753 | 753 | break; |
| 754 | 754 | case 0x05: |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | #include "machine/pit8253.h" |
| 5 | 5 | #include "video/pc_aga.h" |
| 6 | 6 | #include "audio/pc.h" |
| 7 | #include "deprecat.h" | |
| 7 | 8 | |
| 8 | 9 | /* |
| 9 | 10 |
| r1649 | r1650 | |
|---|---|---|
| 16 | 16 | |
| 17 | 17 | |
| 18 | 18 | #include "driver.h" |
| 19 | #include "deprecat.h" | |
| 19 | 20 | #include "machine/8255ppi.h" |
| 20 | 21 | #include "video/m6847.h" |
| 21 | 22 | #include "machine/i8271.h" |
| r1649 | r1650 | |
| 49 | 50 | { |
| 50 | 51 | cpunum_set_input_line(Machine, 0, 0, CLEAR_LINE); |
| 51 | 52 | } |
| 52 | ||
| 53 | ||
| 54 | 53 | } |
| 55 | 54 | |
| 56 | 55 | static mess_image *cassette_device_image(void) |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | |
| 9 | 10 | #include "cpu/i386/i386.h" |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | #include <stdio.h> |
| 15 | 15 | |
| 16 | 16 | #include "driver.h" |
| 17 | #include "d | |
| 17 | #include "d | |
| 18 | 18 | #include "image.h" |
| 19 | 19 | #include "cpu/m6502/m6502.h" |
| 20 | 20 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | ******************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "includes/electron.h" |
| 12 | 13 | #include "sound/beep.h" |
| 13 | 14 | #include "devices/cassette.h" |
| r1649 | r1650 | |
|---|---|---|
| 19 | 19 | ***************************************************************************/ |
| 20 | 20 | |
| 21 | 21 | #include "driver.h" |
| 22 | #include "deprecat.h" | |
| 22 | 23 | #include "mm58274c.h" |
| 23 | 24 | |
| 24 | 25 |
| r1649 | r1650 | |
|---|---|---|
| 91 | 91 | #include "driver.h" |
| 92 | 92 | #include "memconv.h" |
| 93 | 93 | #include "includes/bebox.h" |
| 94 | #include "deprecat.h" | |
| 94 | 95 | |
| 95 | 96 | /* Components */ |
| 96 | 97 | #include "video/pc_vga.h" |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | /* Core includes */ |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "includes/mtx.h" |
| 13 | 14 | |
| 14 | 15 | /* Components */ |
| r1649 | r1650 | |
|---|---|---|
| 14 | 14 | |
| 15 | 15 | /* Core includes */ |
| 16 | 16 | #include "driver.h" |
| 17 | #include "deprecat.h" | |
| 17 | 18 | #include "includes/microtan.h" |
| 18 | 19 | |
| 19 | 20 | /* Components */ |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | |
| 12 | 12 | |
| 13 | 13 | #include "driver.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "amiga.h" |
| 15 | 16 | #include "cpu/m68000/m68k.h" |
| 16 | 17 | #include "machine/6526cia.h" |
| r1649 | r1650 | |
|---|---|---|
| 15 | 15 | ***************************************************************************/ |
| 16 | 16 | |
| 17 | 17 | #include "driver.h" |
| 18 | #include "deprecat.h" | |
| 18 | 19 | #include "cpu/z80/z80.h" |
| 19 | 20 | #include "machine/6821pia.h" |
| 20 | 21 | #include "machine/6850acia.h" |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | 13 | #include "memory.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "cpu/z80/z80.h" |
| 15 | 16 | #include "machine/wd17xx.h" |
| 16 | 17 | #include "cpm_bios.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include <stdio.h> |
| 2 | 2 | #include "driver.h" |
| 3 | 3 | #include "image.h" |
| 4 | #include "deprecat.h" | |
| 4 | 5 | #include "includes/sms.h" |
| 5 | 6 | #include "video/smsvdp.h" |
| 6 | 7 | #include "sound/2413intf.h" |
| r1649 | r1650 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | |
| 38 | 38 | #include "driver.h" |
| 39 | #include "deprecat.h" | |
| 39 | 40 | #include "machine/wd17xx.h" |
| 40 | 41 | #include "devices/flopdrv.h" |
| 41 | 42 |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | /* Core includes */ |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "includes/trs80.h" |
| 13 | 14 | |
| 14 | 15 | /* Components */ |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | ***************************************************************************/ |
| 13 | 13 | |
| 14 | 14 | #include "driver.h" |
| 15 | #include "deprecat.h" | |
| 15 | 16 | #include "cpu/m6502/m6502.h" |
| 16 | 17 | #include "includes/apple2.h" |
| 17 | 18 | #include "machine/ay3600.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | |
| 3 | 4 | #include "machine/pckeybrd.h" |
| 4 | 5 |
| r1649 | r1650 | |
|---|---|---|
| 11 | 11 | |
| 12 | 12 | /* Core includes */ |
| 13 | 13 | #include "driver.h" |
| 14 | #include "deprecat.h" | |
| 14 | 15 | #include "includes/primo.h" |
| 15 | 16 | |
| 16 | 17 | /* Components */ |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | #include <stdarg.h> |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "cpu/z80/z80.h" |
| 12 | 13 | #include "includes/ti85.h" |
| 13 | 14 | #include "formats/ti85_ser.h" |
| r1649 | r1650 | |
|---|---|---|
| 19 | 19 | #include "cpu/z80/z80.h" |
| 20 | 20 | #include "sound/sid6581.h" |
| 21 | 21 | #include "machine/6526cia.h" |
| 22 | #include "deprecat.h" | |
| 22 | 23 | |
| 23 | 24 | #define VERBOSE_DBG 1 |
| 24 | 25 | #include "includes/cbm.h" |
| r1649 | r1650 | |
|---|---|---|
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | 7 | #include "machine/hd63450.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | |
| 9 | 10 | static struct hd63450 dmac; |
| 10 | 11 |
| r1649 | r1650 | |
|---|---|---|
| 21 | 21 | */ |
| 22 | 22 | |
| 23 | 23 | #include "driver.h" |
| 24 | #include "deprecat.h" | |
| 24 | 25 | #include "includes/genesis.h" |
| 25 | 26 | #include "sound/2612intf.h" |
| 26 | 27 | #include "sound/sn76496.h" |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "includes/svi318.h" |
| 13 | 14 | #include "cpu/z80/z80.h" |
| 14 | 15 | #include "video/crtc6845.h" |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | |
| 14 | 14 | #include <assert.h> |
| 15 | 15 | #include "driver.h" |
| 16 | #include "deprecat.h" | |
| 16 | 17 | #include "includes/pc.h" |
| 17 | 18 | |
| 18 | 19 | #include "machine/8255ppi.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | |
| 2 | 2 | #include "driver.h" |
| 3 | #include "deprecat.h" | |
| 3 | 4 | #include "video/vdc.h" |
| 4 | 5 | #include "cpu/h6280/h6280.h" |
| 5 | 6 | #include "includes/pce.h" |
| r1649 | r1650 | |
|---|---|---|
| 52 | 52 | |
| 53 | 53 | #include <math.h> |
| 54 | 54 | #include "driver.h" |
| 55 | #include "deprecat.h" | |
| 55 | 56 | #include "tms9901.h" |
| 56 | 57 | #include "video/v9938.h" |
| 57 | 58 | #include "audio/spchroms.h" |
| r1649 | r1650 | |
|---|---|---|
| 16 | 16 | #include "sound/pokey.h" |
| 17 | 17 | #include "machine/6821pia.h" |
| 18 | 18 | #include "image.h" |
| 19 | #include "deprecat.h" | |
| 19 | 20 | |
| 20 | 21 | #define VERBOSE_SERIAL 0 |
| 21 | 22 | #define VERBOSE_CHKSUM 0 |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | 10 | #include "sgi.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | |
| 12 | 13 | #define VERBOSE_LEVEL ( 1 ) |
| 13 | 14 |
| r1649 | r1650 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | #include <stdarg.h> |
| 11 | 11 | #include "driver.h" |
| 12 | #include "deprecat.h" | |
| 12 | 13 | #include "cpu/z80/z80.h" |
| 13 | 14 | #include "includes/galaxy.h" |
| 14 | 15 |
| r1649 | r1650 | |
|---|---|---|
| 10 | 10 | |
| 11 | 11 | #include "ctype.h" |
| 12 | 12 | #include "driver.h" |
| 13 | #include "deprecat.h" | |
| 13 | 14 | #include "cpu/m6502/m6502.h" |
| 14 | 15 | #include "machine/6522via.h" |
| 15 | 16 | #include "machine/wd17xx.h" |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | /*-------------------------------------------------------------------------*/ |
| 14 | 14 | |
| 15 | 15 | #include "driver.h" |
| 16 | #include "deprecat.h" | |
| 16 | 17 | #include "cpu/i86/i186intf.h" |
| 17 | 18 | #include "video/i82720.h" |
| 18 | 19 | #include "machine/8255ppi.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | /* Core includes */ |
| 2 | 2 | #include "driver.h" |
| 3 | #include "deprecat.h" | |
| 3 | 4 | #include "includes/kc.h" |
| 4 | 5 | |
| 5 | 6 | /* Components */ |
| r1649 | r1650 | |
|---|---|---|
| 7 | 7 | *********************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include <assert.h> |
| 10 | #include "driver.h" | |
| 11 | #include "deprecat.h" | |
| 10 | 12 | #include "mscommon.h" |
| 11 | 13 | |
| 12 | 14 | /*************************************************************************** |
| r1649 | r1650 | |
|---|---|---|
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | 17 | #include "driver.h" |
| 18 | #include "deprecat.h" | |
| 18 | 19 | #include "cpu/cdp1802/cdp1802.h" |
| 19 | 20 | #include "devices/cassette.h" |
| 20 | 21 | #include "devices/snapquik.h" |
| r1649 | r1650 | |
|---|---|---|
| 94 | 94 | ******************************************************************************/ |
| 95 | 95 | |
| 96 | 96 | #include "driver.h" |
| 97 | #include "deprecat.h" | |
| 97 | 98 | #include "includes/nc.h" |
| 98 | 99 | #include "includes/serial.h" /* for serial data transfers */ |
| 99 | 100 | #include "machine/msm8251.h" /* for NC100 uart */ |
| r1649 | r1650 | |
|---|---|---|
| 192 | 192 | #include "devices/cartslot.h" |
| 193 | 193 | #include "devices/mflopimg.h" |
| 194 | 194 | #include "formats/adam_dsk.h" |
| 195 | #include "deprecat.h" | |
| 195 | 196 | |
| 196 | 197 | static ADDRESS_MAP_START( adam_mem, ADDRESS_SPACE_PROGRAM, 8) |
| 197 | 198 | AM_RANGE(0x00000, 0x01fff) AM_READWRITE( MRA8_BANK1, MWA8_BANK6 ) |
| r1649 | r1650 | |
| 432 | 433 | |
| 433 | 434 | /* only if it goes up */ |
| 434 | 435 | if (state && !last_state) |
| 435 | { | |
| 436 | cpunum_set_input_line(Machine, 0, INPUT_LINE_NMI, PULSE_LINE); | |
| 437 | } | |
| 436 | { | |
| 437 | cpunum_set_input_line(Machine, 0, INPUT_LINE_NMI, PULSE_LINE); | |
| 438 | } | |
| 438 | 439 | last_state = state; |
| 439 | 440 | } |
| 440 | 441 |
| r1649 | r1650 | |
|---|---|---|
| 19 | 19 | ******************************************************************************/ |
| 20 | 20 | |
| 21 | 21 | #include "driver.h" |
| 22 | #include "deprecat.h" | |
| 22 | 23 | #include "video/tms9928a.h" |
| 23 | 24 | #include "sound/sn76496.h" |
| 24 | 25 | #include "cpu/z80/z80.h" |
| r1649 | r1650 | |
| 166 | 167 | else |
| 167 | 168 | { |
| 168 | 169 | cpunum_set_input_line(Machine, 1, 0,CLEAR_LINE); |
| 169 | ||
| 170 | 170 | } |
| 171 | 171 | } |
| 172 | 172 |
| r1649 | r1650 | |
|---|---|---|
| 40 | 40 | ******************************************************************************/ |
| 41 | 41 | |
| 42 | 42 | #include "driver.h" |
| 43 | #include "deprecat.h" | |
| 43 | 44 | |
| 44 | 45 | #include "cpu/f8/f8.h" |
| 45 | 46 | #include "cpu/f8/f3853.h" |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | |
| 14 | 14 | ******************************************************************************/ |
| 15 | 15 | #include "driver.h" |
| 16 | #include "deprecat.h" | |
| 16 | 17 | #include "includes/z88.h" |
| 17 | 18 | #include "sound/speaker.h" |
| 18 | 19 |
| r1649 | r1650 | |
|---|---|---|
| 87 | 87 | |
| 88 | 88 | /* Core includes */ |
| 89 | 89 | #include "driver.h" |
| 90 | #include "deprecat.h" | |
| 90 | 91 | #include "includes/pcw16.h" |
| 91 | 92 | |
| 92 | 93 | /* Components */ |
| r1649 | r1650 | |
|---|---|---|
| 45 | 45 | #include "devices/cassette.h" |
| 46 | 46 | #include "sound/speaker.h" |
| 47 | 47 | #include "mslegacy.h" |
| 48 | #include "deprecat.h" | |
| 48 | 49 | |
| 49 | 50 | static int load_state; |
| 50 | 51 | static int ic_state; |
| r1649 | r1650 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | 10 | #include "cpu/apexc/apexc.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | |
| 12 | 13 | |
| 14 | ||
| 13 | 15 | static void apexc_teletyper_init(void); |
| 14 | 16 | static void apexc_teletyper_putchar(int character); |
| 15 | 17 | |
| r1649 | r1650 | |
| 537 | 539 | apexc_draw_string(bitmap, "data :", 0, 24, 0); |
| 538 | 540 | } |
| 539 | 541 | |
| 540 | copybitmap(bitmap, apexc_bitmap, 0, 0, 0, 0, &teletyper_window | |
| 542 | copybitmap(bitmap, apexc_bitmap, 0, 0, 0, 0, &teletyper_window | |
| 541 | 543 | |
| 542 | 544 | |
| 543 | 545 | apexc_draw_led(bitmap, 0, 0, 1); |
| r1649 | r1650 | |
|---|---|---|
| 126 | 126 | |
| 127 | 127 | #include "driver.h" |
| 128 | 128 | #include "render.h" |
| 129 | #include "deprecat.h" | |
| 129 | 130 | #include "cpu/m68000/m68000.h" |
| 130 | 131 | #include "machine/68901mfp.h" |
| 131 | 132 | #include "machine/8255ppi.h" |
| r1649 | r1650 | |
|---|---|---|
| 20 | 20 | |
| 21 | 21 | #include <math.h> |
| 22 | 22 | #include "driver.h" |
| 23 | #include "deprecat.h" | |
| 23 | 24 | #include "mslegacy.h" |
| 24 | 25 | #include "machine/z80ctc.h" |
| 25 | 26 | #include "machine/z80pio.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "video/atarist.h" |
| 3 | 4 | #include "cpu/m68000/m68k.h" |
| 4 | 5 | #include "cpu/m68000/m68000.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "devices/basicdsk.h" |
| 3 | 4 | #include "devices/cartslot.h" |
| 4 | 5 | #include "devices/cassette.h" |
| r1649 | r1650 | |
|---|---|---|
| 42 | 42 | \*********************************************************************/ |
| 43 | 43 | |
| 44 | 44 | #include "driver.h" |
| 45 | #include "deprecat.h" | |
| 45 | 46 | #include "cpu/mips/mips3.h" |
| 46 | 47 | #include "machine/sgi.h" |
| 47 | 48 | #include "machine/pckeybrd.h" |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | #include "devices/cassette.h" |
| 13 | 13 | #include "formats/a26_cas.h" |
| 14 | 14 | #include "video/tia.h" |
| 15 | #include "deprecat.h" | |
| 15 | 16 | |
| 16 | 17 | #define CART memory_region(REGION_USER1) |
| 17 | 18 |
| r1649 | r1650 | |
|---|---|---|
| 93 | 93 | - emulation of other hardware...? |
| 94 | 94 | ******************************************************************************/ |
| 95 | 95 | #include "driver.h" |
| 96 | #include "deprecat.h" | |
| 96 | 97 | // nec765 interface |
| 97 | 98 | #include "machine/nec765.h" |
| 98 | 99 | #include "devices/dsk.h" |
| r1649 | r1650 | |
|---|---|---|
| 3 | 3 | ******************************************************************************/ |
| 4 | 4 | |
| 5 | 5 | #include "driver.h" |
| 6 | #include "deprecat.h" | |
| 6 | 7 | |
| 7 | 8 | #include "machine/rriot.h" |
| 8 | 9 | #include "cpu/m6502/m6502.h" |
| r1649 | r1650 | |
|---|---|---|
| 16 | 16 | ******************************************************************************/ |
| 17 | 17 | |
| 18 | 18 | #include "driver.h" |
| 19 | #include "deprecat.h" | |
| 19 | 20 | #include "audio/dave.h" |
| 20 | 21 | #include "includes/enterp.h" |
| 21 | 22 | #include "video/epnick.h" |
| r1649 | r1650 | |
|---|---|---|
| 59 | 59 | #include "video/tms9928a.h" |
| 60 | 60 | #include "includes/coleco.h" |
| 61 | 61 | #include "devices/cartslot.h" |
| 62 | #include "deprecat.h" | |
| 62 | 63 | |
| 63 | 64 | READ8_HANDLER(coleco_video_r) |
| 64 | 65 | { |
| r1649 | r1650 | |
|---|---|---|
| 127 | 127 | ******************************************************************************/ |
| 128 | 128 | |
| 129 | 129 | #include "driver.h" |
| 130 | #include "deprecat.h" | |
| 130 | 131 | #include "cpu/upd7810/upd7810.h" |
| 131 | 132 | #include "sound/beep.h" |
| 132 | 133 |
| r1649 | r1650 | |
|---|---|---|
| 4 | 4 | #include "driver.h" |
| 5 | 5 | #include "video/m6847.h" |
| 6 | 6 | #include "includes/apf.h" |
| 7 | #include "deprecat.h" | |
| 7 | 8 | |
| 8 | 9 | #include "machine/6821pia.h" |
| 9 | 10 | #include "machine/wd17xx.h" |
| r1649 | r1650 | |
|---|---|---|
| 24 | 24 | |
| 25 | 25 | ***************************************************************************/ |
| 26 | 26 | #include "driver.h" |
| 27 | #include "deprecat.h" | |
| 27 | 28 | #include "includes/snes.h" |
| 28 | 29 | #include "devices/cartslot.h" |
| 29 | 30 |
| r1649 | r1650 | |
|---|---|---|
| 161 | 161 | */ |
| 162 | 162 | |
| 163 | 163 | #include "driver.h" |
| 164 | #include "deprecat.h" | |
| 164 | 165 | #include "machine/eeprom.h" |
| 165 | 166 | #include "cpu/sh2/sh2.h" |
| 166 | 167 | #include "machine/stvcd.h" |
| r1649 | r1650 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 2 | 3 | #include "cpu/i8039/i8039.h" |
| 3 | 4 | #include "cpu/m68000/m68000.h" |
| 4 | 5 | #include "devices/cartslot.h" |
| r1649 | r1650 | |
|---|---|---|
| 12 | 12 | #include "machine/6821pia.h" |
| 13 | 13 | #include "sound/sn76496.h" |
| 14 | 14 | #include "video/tms9928a.h" |
| 15 | #include "deprecat.h" | |
| 15 | 16 | |
| 16 | 17 | /* Memory Map */ |
| 17 | 18 |
| r1649 | r1650 | |
|---|---|---|
| 79 | 79 | /* 7e = 0, read from fe, 7e = 1, read from fe */ |
| 80 | 80 | |
| 81 | 81 | #include "driver.h" |
| 82 | #include "deprecat.h" | |
| 82 | 83 | #include "machine/z80ctc.h" |
| 83 | 84 | #include "machine/z80pio.h" |
| 84 | 85 | #include "machine/z80sio.h" |
| r1649 | r1650 | |
|---|---|---|
| 50 | 50 | */ |
| 51 | 51 | |
| 52 | 52 | #include "driver.h" |
| 53 | #include "deprecat.h" | |
| 53 | 54 | #include "cpu/tms7000/tms7000.h" |
| 54 | 55 | #include "video/tms3556.h" |
| 55 | 56 | /*#include "devices/cartslot.h" |
| r1649 | r1650 | |
|---|---|---|
| 99 | 99 | #include "devices/printer.h" |
| 100 | 100 | #include "devices/cassette.h" |
| 101 | 101 | #include "formats/tzx_cas.h" |
| 102 | #include "deprecat.h" | |
| 102 | 103 | |
| 103 | 104 | |
| 104 | 105 | #ifdef AMSTRAD_VIDEO_EVENT_LIST |
| r1649 | r1650 | |
|---|---|---|
| 34 | 34 | #include "devices/basicdsk.h" |
| 35 | 35 | #include "cpu/arm/arm.h" |
| 36 | 36 | #include "sound/dac.h" |
| 37 | #include "deprecat.h" | |
| 37 | 38 | |
| 38 | 39 | |
| 39 | 40 | // interrupt register stuff |
| r1649 | r1650 | |
|---|---|---|
| 39 | 39 | ******************************************************************************/ |
| 40 | 40 | |
| 41 | 41 | #include "driver.h" |
| 42 | #include "deprecat.h" | |
| 42 | 43 | #include "includes/avigo.h" |
| 43 | 44 | #include "machine/intelfsh.h" |
| 44 | 45 | #include "machine/tc8521.h" |
| r1649 | r1650 | |
| 512 | 513 | |
| 513 | 514 | static WRITE8_HANDLER(avigo_irq_w) |
| 514 | 515 | { |
| 515 | ||
| 516 | | |
| 516 | 517 | |
| 517 | 518 | avigo_refresh_ints(); |
| 518 | 519 | } |
| r1649 | r1650 | |
|---|---|---|
| 89 | 89 | |
| 90 | 90 | memory_set_opbase_handler( 0, NULL ); |
| 91 | 91 | |
| 92 | DEBUGGER_BREAK; | |
| 93 | CALL_MAME_DEBUG; | |
| 94 | ||
| 95 | 92 | return ~0; |
| 96 | 93 | } |
| 97 | 94 | return address; |
| r1649 | r1650 | |
|---|---|---|
| 73 | 73 | */ |
| 74 | 74 | |
| 75 | 75 | #include "driver.h" |
| 76 | #include "deprecat.h" | |
| 76 | 77 | #include "cpu/tms9900/tms9900.h" |
| 77 | 78 | #include "video/tms9928a.h" |
| 78 | 79 | #include "devices/cartslot.h" |
| r1649 | r1650 | |
|---|---|---|
| 6 | 6 | |
| 7 | 7 | #include <assert.h> |
| 8 | 8 | #include "driver.h" |
| 9 | #include "deprecat.h" | |
| 9 | 10 | #include "mslegacy.h" |
| 10 | 11 | #include "cpu/m6502/m6502.h" |
| 11 | 12 |
| r1649 | r1650 | |
|---|---|---|
| 13 | 13 | #include "video/tms9928a.h" |
| 14 | 14 | #include "machine/z80pio.h" |
| 15 | 15 | #include "devices/cartslot.h" |
| 16 | #include "deprecat.h" | |
| 16 | 17 | |
| 17 | 18 | static ADDRESS_MAP_START( bbcbc_prg, ADDRESS_SPACE_PROGRAM, 8 ) |
| 18 | 19 | AM_RANGE(0x00000, 0x03fff) AM_ROM |
| r1649 | r1650 | |
|---|---|---|
| 70 | 70 | |
| 71 | 71 | Source Changes: |
| 72 | 72 | ---------------- |
| 73 | - The core is based on MAME 0.122u | |
| 73 | - The core is based on MAME 0.122u8. This incorporates all features of the | |
| 74 | 74 | update to this core. [MAME team] |
| 75 | 75 | |
| 76 | 76 | - Miscellaneous cleanups (staticization, constification, conditional logging, |
| r1649 | r1650 | |
|---|---|---|
| 93 | 93 | # for details |
| 94 | 94 | #------------------------------------------------- |
| 95 | 95 | |
| 96 | # uncomment next line to include the debugger | |
| 96 | # uncomment next line to enable the debugger | |
| 97 | # DEBUGGER = 1 | |
| 98 | ||
| 99 | # uncomment next line to build a debug version | |
| 97 | 100 | # DEBUG = 1 |
| 98 | 101 | |
| 99 | 102 | # uncomment next line to include the internal profiler |
| r1649 | r1650 | |
| 197 | 200 | # form the name of the executable |
| 198 | 201 | #------------------------------------------------- |
| 199 | 202 | |
| 200 | # debug builds just get the 'd' suffix and nothing more | |
| 201 | ifdef DEBUG | |
| 203 | # debugger builds just get the 'd' suffix and nothing more | |
| 204 | ifdef DEBUGGER | |
| 202 | 205 | DEBUGSUFFIX = d |
| 203 | 206 | endif |
| 204 | 207 | |
| r1649 | r1650 | |
| 257 | 260 | DEFS += -DPTR64 |
| 258 | 261 | endif |
| 259 | 262 | |
| 263 | # define ENABLE_DEBUGGER if we are a debugger-enabled build | |
| 264 | ifdef DEBUGGER | |
| 265 | DEFS += -DENABLE_DEBUGGER | |
| 266 | endif | |
| 267 | ||
| 260 | 268 | # define MAME_DEBUG if we are a debugging build |
| 261 | 269 | ifdef DEBUG |
| 262 | 270 | DEFS += -DMAME_DEBUG |
| Previous | 15994 Revisions | Next |