| Previous | 15994 Revisions | Next |
| r1239 Thursday 8th November, 2007 at 17:44:59 UTC by Nathan Woods |
|---|
| Updated to MAME 0.120u3 core |
| [docs] | messnew.txt |
| [src/emu] | driver.h eigccppc.h eigccx86.h eminline.h |
| [src/emu/cpu/sh4] | sh4.c sh4.h |
| [src/emu/machine] | i2cmem.c |
| [src/emu/sound] | 2151intf.c 2608intf.c 2610intf.c 2612intf.c 262intf.c 3812intf.c fm.c fm.h scsp.c sound.mak wave.c ymf262.c ymf262.h |
| [src/emu/video] | polynew.c polynew.h rgbgen.h rgbsse.h vooddefs.h voodoo.c |
| [src/mame] | mamedriv.c |
| [src/mame/audio] | t5182.c |
| [src/mame/drivers] | 1942.c 1943.c 1945kiii.c 20pacgal.c 2mindril.c 39in1.c 40love.c 4enraya.c 88games.c ace.c acefruit.c acommand.c actfancr.c adp.c aeroboto.c aerofgt.c afega.c airbustr.c ajax.c aleck64.c alg.c aliens.c alpha68k.c ambush.c amidar.c ampoker.c amspdwy.c angelkds.c appoooh.c aquarium.c arabian.c arcadecl.c arcadia.c argus.c arkanoid.c armedf.c artmagic.c ashnojoe.c asterix.c asteroid.c astinvad.c astrocde.c asuka.c atarifb.c atarig1.c atarig42.c atarigt.c atarigx2.c atarisy1.c atarisy2.c ataxx.c atetris.c attckufo.c aztarac.c backfire.c badlands.c bagman.c balsente.c bankp.c baraduke.c batman.c battlane.c battlera.c battlex.c battlnts.c bbusters.c beaminv.c beathead.c beezer.c bestleag.c bfcobra.c bigevglf.c bigstrkb.c bionicc.c bishi.c bishjan.c bking2.c bladestl.c blktiger.c blmbycar.c blockade.c blockhl.c blockout.c bloodbro.c blstroid.c blueprnt.c bnstars.c bogeyman.c bombjack.c boogwing.c bottom9.c boxer.c brkthru.c bsktball.c btime.c btoads.c bublbobl.c buggychl.c bwidow.c bwing.c bzone.c cabal.c calorie.c canyon.c capbowl.c cardline.c carjmbre.c carpolo.c carrera.c cave.c cball.c cbasebal.c cbuster.c ccastles.c cchasm.c cclimber.c centiped.c chaknpop.c cham24.c champbas.c champbwl.c changela.c cheekyms.c cherrym.c cherrym2.c chinagat.c chinsan.c chqflag.c cidelsa.c cinemat.c circus.c circusc.c cischeat.c citycon.c clayshoo.c cliffhgr.c cloak.c cloud9.c clshroad.c cninja.c cntsteer.c coinmstr.c cojag.c combatsc.c comebaby.c commando.c compgolf.c contra.c coolpool.c coolridr.c cop01.c copsnrob.c cosmic.c couple.c cowrace.c cps1.c cps2.c cps3.c crbaloon.c crgolf.c crimfght.c crospang.c crshrace.c crystal.c cshooter.c csk.c cubocd32.c cultures.c cvs.c cyberbal.c cybertnk.c dacholer.c dambustr.c darius.c darkhors.c darkmist.c darkseal.c dassault.c dblewing.c dbz.c dcheese.c dcon.c dday.c ddayjlc.c ddealer.c ddenlovr.c ddragon.c ddragon3.c ddrible.c ddz.c deadang.c dec0.c dec8.c deco156.c deco32.c deco_mlc.c decocass.c deniam.c destroyr.c dgpix.c dietgo.c discoboy.c diverboy.c djboy.c djmain.c dkong.c dlair.c dmndrby.c docastle.c dogfgt.c dominob.c dooyong.c dotrikun.c dragrace.c dreamwld.c drgnmst.c dribling.c drmicro.c drtomy.c dunhuang.c dwarfd.c dynadice.c dynax.c dynduke.c egghunt.c eolith.c eolith16.c epos.c eprom.c equites.c ertictac.c esd16.c esh.c espial.c exctsccr.c exedexes.c exerion.c exidy.c exidy440.c expro02.c exprraid.c exterm.c exzisus.c f-32.c f1gp.c fantland.c fastfred.c fastlane.c fcombat.c fcrash.c fgoal.c filetto.c finalizr.c findout.c firebeat.c firetrap.c firetrk.c fitfight.c flkatck.c flower.c flstory.c flyball.c foodf.c fortecar.c frogger.c fromanc2.c fromance.c funkybee.c funkyjet.c funworld.c funybubl.c fuukifg2.c fuukifg3.c gaelco.c gaelco2.c gaelco3d.c gaiden.c galaga.c galaxia.c galaxian.c galivan.c galpani2.c galpani3.c galpanic.c galspnbl.c gamecstl.c gaplus.c gauntlet.c gberet.c gbusters.c gcpinbal.c gdrawpkr.c getrivia.c ghosteo.c gijoe.c ginganin.c gladiatr.c glass.c gng.c go2000.c goal92.c goindol.c goldstar.c gomoku.c good.c goodejan.c gotcha.c gottlieb.c gotya.c gpworld.c gradius3.c grchamp.c gridlee.c groundfx.c gstriker.c gsword.c gticlub.c gtipoker.c gumbo.c gunbustr.c gundealr.c gunpey.c gunsmoke.c gyruss.c hal21.c halleys.c hanaawas.c hanaroku.c harddriv.c hcastle.c hexa.c hexion.c higemaru.c hitme.c hnayayoi.c hng64.c holeland.c homedata.c homerun.c hornet.c hotblock.c hshavoc.c hyhoo.c hyperspt.c hyprduel.c igs_180.c igs_blit.c igs_m027.c igs_m68.c ikki.c imolagp.c intrscti.c inufuku.c iqblock.c irobot.c ironhors.c istellar.c itech32.c itech8.c jack.c jackal.c jackpool.c jailbrek.c jalmah.c jchan.c jcross.c jedi.c jollyjgr.c jongkyo.c jpmimpct.c jrpacman.c kaneko16.c kangaroo.c karnov.c kchamp.c kickgoal.c kingobox.c kingpin.c kinst.c kinstb.c klax.c kncljoe.c koikoi.c konamigq.c konamigv.c konamigx.c konamim2.c kopunch.c ksayakyu.c ksys573.c kyugo.c labyrunr.c ladybug.c ladyfrog.c laserbas.c laserbat.c lasso.c lastduel.c lastfght.c lazercmd.c legionna.c leland.c lemmings.c lethal.c lethalj.c lgp.c liberate.c liberatr.c limenko.c littlerb.c lkage.c lockon.c looping.c lordgun.c lsasquad.c ltcasino.c lucky8.c lvcards.c lwings.c m107.c m62.c m72.c m79amb.c m90.c m92.c macrossp.c macs.c madalien.c madmotor.c magic10.c magicfly.c magmax.c mainevt.c mainsnk.c malzak.c mappy.c marineb.c marinedt.c mario.c markham.c marvins.c mastboy.c matmania.c maxaflex.c mayumi.c mazerbla.c mcatadv.c mcr.c mcr3.c mcr68.c meadows.c mediagx.c megaplay.c megasys1.c megatech.c megazone.c meijinsn.c merit.c meritm.c mermaid.c metlclsh.c metro.c mexico86.c mgolf.c mhavoc.c micro3d.c midas.c midtunit.c midvunit.c midwunit.c midxunit.c midyunit.c midzeus.c mikie.c miniboy7.c minivadr.c mirage.c mirax.c missb2.c missile.c mitchell.c mjkjidai.c mjsister.c mjsiyoub.c mlanding.c mnight.c model1.c model2.c model3.c mogura.c mole.c momoko.c moo.c mosaic.c mouser.c mpatrol.c mpu4.c mquake.c mrdo.c mrflea.c mrjong.c ms32.c msisaac.c mugsmash.c multigam.c munchmo.c murogem.c mustache.c mwarr.c mystston.c mystwarr.c n8080.c namcofl.c namcona1.c namconb1.c namcond1.c namcos1.c namcos10.c namcos11.c namcos12.c namcos2.c namcos22.c namcos23.c namcos86.c naomi.c naughtyb.c nbmj8688.c nbmj8891.c nbmj8991.c nbmj9195.c nemesis.c neodrvr.c neogeo.c news.c ninjakd2.c ninjakid.c ninjaw.c nitedrvr.c niyanpai.c nmg5.c nmk16.c nova2001.c nss.c nwk-tr.c nycaptor.c offtwall.c ohmygod.c ojankohs.c olibochu.c omegaf.c omegrace.c oneshot.c onetwo.c opwolf.c orbit.c othldrby.c othunder.c overdriv.c pacland.c pacman.c pandoras.c pangofun.c panicr.c paradise.c parodius.c pasha2.c pass.c pastelg.c pbaction.c pcktgal.c pengo.c peplus.c pgm.c phoenix.c pingpong.c pipedrm.c pipeline.c pirates.c pitnrun.c pkscram.c pktgaldx.c pkunwar.c playch10.c playmark.c plygonet.c pmpoker.c pntnpuzl.c pokechmp.c polepos.c policetr.c polyplay.c poolshrk.c pooyan.c popeye.c popper.c portrait.c powerbal.c powerins.c ppmast93.c prehisle.c progolf.c psikyo.c psikyo4.c psikyosh.c psychic5.c pturn.c puckpkmn.c punchout.c pushman.c qdrmfgp.c qix.c quantum.c quasar.c quizdna.c quizo.c quizpani.c rabbit.c raiden.c raiden2.c rainbow.c rallyx.c rampart.c rastan.c rbmk.c rcasino.c rcorsair.c realbrk.c redalert.c redclash.c relief.c renegade.c retofinv.c rmhaihai.c rockola.c rockrage.c rocnrope.c rohga.c rollerg.c rollrace.c route16.c rpunch.c runaway.c rungun.c sandscrp.c sauro.c sbasketb.c sbowling.c sbrkout.c sbugger.c scobra.c scotrsht.c scramble.c sderby.c seattle.c segac2.c segae.c segag80r.c segag80v.c segald.c segas32.c seibuspi.c seicross.c sengokmj.c senjyo.c seta.c seta2.c sf.c sfkick.c sg1000a.c sgladiat.c shadfrce.c shangha3.c shanghai.c shaolins.c shisen.c shootout.c shougi.c shuuz.c sidearms.c sidepckt.c silkroad.c simpl156.c simpsons.c skullxbo.c skyarmy.c skychut.c skydiver.c skyfox.c skykid.c skylncr.c skyraid.c slapfght.c slapshot.c sliver.c snk.c snk68.c snowbros.c solomon.c sonson.c spaceg.c spbactn.c spcforce.c spdodgeb.c speedatk.c speedbal.c speedspn.c splash.c sprcros2.c sprint2.c sprint4.c sprint8.c spy.c srmp2.c srmp5.c srmp6.c srumbler.c ssfindo.c sshangha.c ssingles.c sslam.c ssozumo.c sspeedr.c ssrj.c ssv.c st0016.c stactics.c stadhero.c starcrus.c starfire.c starshp1.c starwars.c statriv2.c steaser.c stepstag.c stfight.c stlforce.c strnskil.c stv.c subs.c suna16.c suna8.c supbtime.c supdrapo.c superchs.c superdq.c superqix.c suprgolf.c suprloco.c suprnova.c suprridr.c suprslam.c surpratk.c system1.c system16.c system18.c system24.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 tankbust.c taotaido.c targeth.c tarzan.c tatsumi.c tattack.c taxidrvr.c tbowl.c tceptor.c tcl.c tecmo.c tecmo16.c tecmosys.c tehkanwc.c tempest.c terracre.c tetrisp2.c tetriunk.c thayers.c thedeep.c thief.c thoop2.c thunderj.c thunderx.c tiamc1.c tickee.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 tourtabl.c toypop.c tp84.c trackfld.c travrusa.c triplhnt.c troangel.c truco.c trucocl.c trvmadns.c trvquest.c tryout.c tsamurai.c ttchamp.c tubep.c tugboat.c tumbleb.c tumblep.c tunhunt.c turbo.c turbosub.c twin16.c twincobr.c twins.c tx1.c ultraman.c ultratnk.c ultrsprt.c undrfire.c unico.c upscope.c usgames.c vaportra.c vastar.c vball.c vegaeo.c vegas.c vendetta.c vertigo.c vicdual.c victory.c videopin.c vigilant.c vindictr.c viper.c vmetal.c volfied.c vroulet.c vsnes.c vulgus.c wallc.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 wiz.c wolfpack.c wrally.c wwfsstar.c wwfwfest.c xain.c xexex.c xmen.c xorworld.c xtheball.c xxmissio.c xybots.c xyonix.c yamato.c yard.c yiear.c yumefuda.c yunsun16.c yunsung8.c zac2650.c zaccaria.c zaxxon.c zerozone.c zn.c zodiack.c zr107.c |
| [src/mame/includes] | kaneko16.h taito_f2.h |
| [src/mame/machine] | cchip.c cps2crpt.c cubocd32.c kaneko16.c opwolf.c pgmprot.c scudsp.c |
| [src/mame/video] | bigevglf.c cps1.c cvs.c gaelco3d.c konamiic.c m3raster.c midvunit.c midzeus.c model3.c namcos22.c neogeo.c nmk16.c psx.c quasar.c stvvdp1.c tankbust.c tia.c xmen.c |
| [src/osd/windows] | osinline.h winwork.c |
| r1238 | r1239 | |
|---|---|---|
| 200 | 200 | |
| 201 | 201 | |
| 202 | 202 | |
| 203 | int semaphore_main, semaphore_snd; | |
| 203 | static int semaphore_main, semaphore_snd; | |
| 204 | 204 | |
| 205 | 205 | READ8_HANDLER(t5182_sharedram_semaphore_snd_r) |
| 206 | 206 | { |
| r1238 | r1239 | |
|---|---|---|
| 83 | 83 | UINT16 ui; |
| 84 | 84 | } SCUDSPREG16; |
| 85 | 85 | |
| 86 | struct { | |
| 86 | static struct { | |
| 87 | 87 | UINT8 pc; /*Program Counter*/ |
| 88 | 88 | UINT8 delay; /* Delay */ |
| 89 | 89 | UINT8 top; /*Jump Command memory*/ |
| r1238 | r1239 | |
|---|---|---|
| 28 | 28 | #define NVRAM_SIZE 1024 |
| 29 | 29 | #define NVRAM_PAGE_SIZE 16 /* max size of one write request */ |
| 30 | 30 | |
| 31 | struct akiko_def | |
| 31 | static struct akiko_def | |
| 32 | 32 | { |
| 33 | 33 | /* chunky to planar converter */ |
| 34 | 34 | UINT32 c2p_input_buffer[8]; |
| r1238 | r1239 | |
|---|---|---|
| 17 | 17 | |
| 18 | 18 | #include "kanekotb.h" // TOYBOX MCU trojaning results |
| 19 | 19 | |
| 20 | #define MCU_RESPONSE(d) memcpy(&mcu_ram[mcu_offset], d, sizeof(d)) | |
| 20 | #define MCU_RESPONSE(d) memcpy(&kaneko16_mcu_ram[mcu_offset], d, sizeof(d)) | |
| 21 | 21 | |
| 22 | UINT16 *mcu_ram; | |
| 22 | UINT16 *kaneko16_mcu_ram; | |
| 23 | 23 | |
| 24 | 24 | /*************************************************************************** |
| 25 | 25 | Gals Panic (set 2) |
| r1238 | r1239 | |
| 147 | 147 | rect2 <-----> | <-----------> | <---> |
| 148 | 148 | result <----------> | <--------> | <----> |
| 149 | 149 | */ |
| 150 | INT16 calc_compute_x(void) | |
| 150 | static INT16 calc_compute_x(void) | |
| 151 | 151 | { |
| 152 | 152 | INT16 x_coll; |
| 153 | 153 | |
| r1238 | r1239 | |
| 161 | 161 | |
| 162 | 162 | return x_coll; |
| 163 | 163 | } |
| 164 | INT16 calc_compute_y(void) | |
| 164 | static INT16 calc_compute_y(void) | |
| 165 | 165 | { |
| 166 | 166 | INT16 y_coll; |
| 167 | 167 | |
| r1238 | r1239 | |
| 282 | 282 | |
| 283 | 283 | WRITE16_HANDLER( calc3_mcu_ram_w ) |
| 284 | 284 | { |
| 285 | COMBINE_DATA(&mcu_ram[offset]); | |
| 285 | COMBINE_DATA(&kaneko16_mcu_ram[offset]); | |
| 286 | 286 | calc3_mcu_run(); |
| 287 | 287 | } |
| 288 | 288 | |
| r1238 | r1239 | |
| 317 | 317 | |
| 318 | 318 | if ( calc3_mcu_status != (1|2|4|8) ) return; |
| 319 | 319 | |
| 320 | mcu_command = mcu_ram[calc3_mcu_command_offset + 0]; | |
| 320 | mcu_command = kaneko16_mcu_ram[calc3_mcu_command_offset + 0]; | |
| 321 | 321 | |
| 322 | 322 | if (mcu_command == 0) return; |
| 323 | 323 | |
| r1238 | r1239 | |
| 329 | 329 | |
| 330 | 330 | case 0x00ff: |
| 331 | 331 | { |
| 332 | int param1 = mcu_ram[calc3_mcu_command_offset + 1]; | |
| 333 | int param2 = mcu_ram[calc3_mcu_command_offset + 2]; | |
| 334 | int param3 = mcu_ram[calc3_mcu_command_offset + 3]; | |
| 335 | // int param4 = mcu_ram[calc3_mcu_command_offset + 4]; | |
| 336 | int param5 = mcu_ram[calc3_mcu_command_offset + 5]; | |
| 337 | // int param6 = mcu_ram[calc3_mcu_command_offset + 6]; | |
| 338 | // int param7 = mcu_ram[calc3_mcu_command_offset + 7]; | |
| 332 | int param1 = kaneko16_mcu_ram[calc3_mcu_command_offset + 1]; | |
| 333 | int param2 = kaneko16_mcu_ram[calc3_mcu_command_offset + 2]; | |
| 334 | int param3 = kaneko16_mcu_ram[calc3_mcu_command_offset + 3]; | |
| 335 | //int param4 = kaneko16_mcu_ram[calc3_mcu_command_offset + 4]; | |
| 336 | int param5 = kaneko16_mcu_ram[calc3_mcu_command_offset + 5]; | |
| 337 | //int param6 = kaneko16_mcu_ram[calc3_mcu_command_offset + 6]; | |
| 338 | //int param7 = kaneko16_mcu_ram[calc3_mcu_command_offset + 7]; | |
| 339 | 339 | |
| 340 | 340 | // clear old command (handshake to main cpu) |
| 341 | mcu_ram[calc3_mcu_command_offset] = 0x0000; | |
| 341 | kaneko16_mcu_ram[calc3_mcu_command_offset] = 0x0000; | |
| 342 | 342 | |
| 343 | 343 | // execute the command: |
| 344 | 344 | |
| 345 | mcu_ram[param1 / 2] = ~readinputport(4); // DSW | |
| 346 | mcu_ram[param2 / 2] = 0xffff; // ? -1 / anything else | |
| 345 | kaneko16_mcu_ram[param1 / 2] = ~readinputport(4); // DSW | |
| 346 | kaneko16_mcu_ram[param2 / 2] = 0xffff; // ? -1 / anything else | |
| 347 | 347 | |
| 348 | 348 | calc3_mcu_command_offset = param3 / 2; // where next command will be written? |
| 349 | 349 | // param 4? |
| 350 | mcu_ram[param5 / 2] = 0x8ee4; // MCU Rom Checksum! | |
| 350 | kaneko16_mcu_ram[param5 / 2] = 0x8ee4; // MCU Rom Checksum! | |
| 351 | 351 | // param 6&7 = address.l |
| 352 | 352 | |
| 353 | 353 | /* |
| r1238 | r1239 | |
| 432 | 432 | |
| 433 | 433 | case 0x0001: |
| 434 | 434 | { |
| 435 | // int param1 = mcu_ram[calc3_mcu_command_offset + 1]; | |
| 436 | int param2 = mcu_ram[calc3_mcu_command_offset + 2]; | |
| 435 | //int param1 = kaneko16_mcu_ram[calc3_mcu_command_offset + 1]; | |
| 436 | int param2 = kaneko16_mcu_ram[calc3_mcu_command_offset + 2]; | |
| 437 | 437 | |
| 438 | 438 | // clear old command (handshake to main cpu) |
| 439 | mcu_ram[calc3_mcu_command_offset] = 0x0000; | |
| 439 | kaneko16_mcu_ram[calc3_mcu_command_offset] = 0x0000; | |
| 440 | 440 | |
| 441 | 441 | // execute the command: |
| 442 | 442 | |
| 443 | 443 | // param1 ? |
| 444 | mcu_ram[param2/2 + 0] = 0x0000; // ? | |
| 445 | mcu_ram[param2/2 + 1] = 0x0000; // ? | |
| 446 | mcu_ram[param2/2 + 2] = 0x0000; // ? | |
| 447 | mcu_ram[param2/2 + 3] = 0x0000; // ? addr.l | |
| 448 | mcu_ram[param2/2 + 4] = 0x00e0; // 0000e0: 4e73 rte | |
| 444 | kaneko16_mcu_ram[param2/2 + 0] = 0x0000; // ? | |
| 445 | kaneko16_mcu_ram[param2/2 + 1] = 0x0000; // ? | |
| 446 | kaneko16_mcu_ram[param2/2 + 2] = 0x0000; // ? | |
| 447 | kaneko16_mcu_ram[param2/2 + 3] = 0x0000; // ? addr.l | |
| 448 | kaneko16_mcu_ram[param2/2 + 4] = 0x00e0; // 0000e0: 4e73 rte | |
| 449 | 449 | |
| 450 | 450 | } |
| 451 | 451 | break; |
| r1238 | r1239 | |
| 453 | 453 | |
| 454 | 454 | case 0x0002: |
| 455 | 455 | { |
| 456 | // int param1 = mcu_ram[calc3_mcu_command_offset + 1]; | |
| 457 | // int param2 = mcu_ram[calc3_mcu_command_offset + 2]; | |
| 458 | // int param3 = mcu_ram[calc3_mcu_command_offset + 3]; | |
| 459 | // int param4 = mcu_ram[calc3_mcu_command_offset + 4]; | |
| 460 | // int param5 = mcu_ram[calc3_mcu_command_offset + 5]; | |
| 461 | // int param6 = mcu_ram[calc3_mcu_command_offset + 6]; | |
| 462 | // int param7 = mcu_ram[calc3_mcu_command_offset + 7]; | |
| 456 | //int param1 = kaneko16_mcu_ram[calc3_mcu_command_offset + 1]; | |
| 457 | //int param2 = kaneko16_mcu_ram[calc3_mcu_command_offset + 2]; | |
| 458 | //int param3 = kaneko16_mcu_ram[calc3_mcu_command_offset + 3]; | |
| 459 | //int param4 = kaneko16_mcu_ram[calc3_mcu_command_offset + 4]; | |
| 460 | //int param5 = kaneko16_mcu_ram[calc3_mcu_command_offset + 5]; | |
| 461 | //int param6 = kaneko16_mcu_ram[calc3_mcu_command_offset + 6]; | |
| 462 | //int param7 = kaneko16_mcu_ram[calc3_mcu_command_offset + 7]; | |
| 463 | 463 | |
| 464 | 464 | // clear old command (handshake to main cpu) |
| 465 | mcu_ram[calc3_mcu_command_offset] = 0x0000; | |
| 465 | kaneko16_mcu_ram[calc3_mcu_command_offset] = 0x0000; | |
| 466 | 466 | |
| 467 | 467 | // execute the command: |
| 468 | 468 | |
| r1238 | r1239 | |
| 511 | 511 | MCU parameters: |
| 512 | 512 | --------------- |
| 513 | 513 | |
| 514 | mcu_command = mcu_ram[0x0010/2]; // command nb | |
| 515 | mcu_offset = mcu_ram[0x0012/2]/2; // offset in shared RAM where MCU will write | |
| 516 | mcu_subcmd = mcu_ram[0x0014/2]; // sub-command parameter, happens only for command #4 | |
| 514 | mcu_command = kaneko16_mcu_ram[0x0010/2]; // command nb | |
| 515 | mcu_offset = kaneko16_mcu_ram[0x0012/2]/2; // offset in shared RAM where MCU will write | |
| 516 | mcu_subcmd = kaneko16_mcu_ram[0x0014/2]; // sub-command parameter, happens only for command #4 | |
| 517 | 517 | |
| 518 | 518 | |
| 519 | 519 | the only MCU commands found in program code are: |
| r1238 | r1239 | |
| 587 | 587 | |
| 588 | 588 | void bloodwar_mcu_run(void) |
| 589 | 589 | { |
| 590 | UINT16 mcu_command = mcu_ram[0x0010/2]; | |
| 591 | UINT16 mcu_offset = mcu_ram[0x0012/2] / 2; | |
| 592 | UINT16 mcu_data = mcu_ram[0x0014/2]; | |
| 590 | UINT16 mcu_command = kaneko16_mcu_ram[0x0010/2]; | |
| 591 | UINT16 mcu_offset = kaneko16_mcu_ram[0x0012/2] / 2; | |
| 592 | UINT16 mcu_data = kaneko16_mcu_ram[0x0014/2]; | |
| 593 | 593 | |
| 594 | 594 | switch (mcu_command >> 8) |
| 595 | 595 | { |
| r1238 | r1239 | |
| 598 | 598 | mame_file *f; |
| 599 | 599 | if ((f = nvram_fopen(Machine, OPEN_FLAG_READ)) != 0) |
| 600 | 600 | { |
| 601 | mame_fread(f,&mcu_ram[mcu_offset], 128); | |
| 601 | mame_fread(f,&kaneko16_mcu_ram[mcu_offset], 128); | |
| 602 | 602 | mame_fclose(f); |
| 603 | 603 | } |
| 604 | 604 | logerror("PC=%06X : MCU executed command: %04X %04X (load NVRAM settings)\n", activecpu_get_pc(), mcu_command, mcu_offset*2); |
| r1238 | r1239 | |
| 610 | 610 | mame_file *f; |
| 611 | 611 | if ((f = nvram_fopen(Machine, OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS)) != 0) |
| 612 | 612 | { |
| 613 | mame_fwrite(f,&mcu_ram[mcu_offset], 128); | |
| 613 | mame_fwrite(f,&kaneko16_mcu_ram[mcu_offset], 128); | |
| 614 | 614 | mame_fclose(f); |
| 615 | 615 | } |
| 616 | 616 | logerror("PC=%06X : MCU executed command: %04X %04X (save NVRAM settings)\n", activecpu_get_pc(), mcu_command, mcu_offset*2); |
| r1238 | r1239 | |
| 619 | 619 | |
| 620 | 620 | case 0x03: // DSW |
| 621 | 621 | { |
| 622 | mcu_ram[mcu_offset] = readinputport(4); | |
| 622 | kaneko16_mcu_ram[mcu_offset] = readinputport(4); | |
| 623 | 623 | logerror("PC=%06X : MCU executed command: %04X %04X (read DSW)\n", activecpu_get_pc(), mcu_command, mcu_offset*2); |
| 624 | 624 | } |
| 625 | 625 | break; |
| r1238 | r1239 | |
| 701 | 701 | |
| 702 | 702 | void bonkadv_mcu_run(void) |
| 703 | 703 | { |
| 704 | UINT16 mcu_command = mcu_ram[0x0010/2]; | |
| 705 | UINT16 mcu_offset = mcu_ram[0x0012/2] / 2; | |
| 706 | UINT16 mcu_data = mcu_ram[0x0014/2]; | |
| 704 | UINT16 mcu_command = kaneko16_mcu_ram[0x0010/2]; | |
| 705 | UINT16 mcu_offset = kaneko16_mcu_ram[0x0012/2] / 2; | |
| 706 | UINT16 mcu_data = kaneko16_mcu_ram[0x0014/2]; | |
| 707 | 707 | |
| 708 | 708 | switch (mcu_command >> 8) |
| 709 | 709 | { |
| r1238 | r1239 | |
| 713 | 713 | mame_file *f; |
| 714 | 714 | if ((f = nvram_fopen(Machine, OPEN_FLAG_READ)) != 0) |
| 715 | 715 | { |
| 716 | mame_fread(f,&mcu_ram[mcu_offset], 128); | |
| 716 | mame_fread(f,&kaneko16_mcu_ram[mcu_offset], 128); | |
| 717 | 717 | mame_fclose(f); |
| 718 | 718 | } |
| 719 | 719 | logerror("PC=%06X : MCU executed command: %04X %04X (load NVRAM settings)\n", activecpu_get_pc(), mcu_command, mcu_offset*2); |
| r1238 | r1239 | |
| 725 | 725 | mame_file *f; |
| 726 | 726 | if ((f = nvram_fopen(Machine, OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS)) != 0) |
| 727 | 727 | { |
| 728 | mame_fwrite(f,&mcu_ram[mcu_offset], 128); | |
| 728 | mame_fwrite(f,&kaneko16_mcu_ram[mcu_offset], 128); | |
| 729 | 729 | mame_fclose(f); |
| 730 | 730 | } |
| 731 | 731 | logerror("PC=%06X : MCU executed command: %04X %04X (save NVRAM settings)\n", activecpu_get_pc(), mcu_command, mcu_offset*2); |
| r1238 | r1239 | |
| 746 | 746 | |
| 747 | 747 | case 0x03: // DSW |
| 748 | 748 | { |
| 749 | mcu_ram[mcu_offset] = readinputport(4); | |
| 749 | kaneko16_mcu_ram[mcu_offset] = readinputport(4); | |
| 750 | 750 | logerror("PC=%06X : MCU executed command: %04X %04X (read DSW)\n", activecpu_get_pc(), mcu_command, mcu_offset*2); |
| 751 | 751 | } |
| 752 | 752 | break; |
| r1238 | r1239 | |
| 821 | 821 | |
| 822 | 822 | void gtmr_mcu_run(void) |
| 823 | 823 | { |
| 824 | UINT16 mcu_command = mcu_ram[0x0010/2]; | |
| 825 | UINT16 mcu_offset = mcu_ram[0x0012/2] / 2; | |
| 826 | UINT16 mcu_data = mcu_ram[0x0014/2]; | |
| 824 | UINT16 mcu_command = kaneko16_mcu_ram[0x0010/2]; | |
| 825 | UINT16 mcu_offset = kaneko16_mcu_ram[0x0012/2] / 2; | |
| 826 | UINT16 mcu_data = kaneko16_mcu_ram[0x0014/2]; | |
| 827 | 827 | |
| 828 | 828 | logerror("CPU #0 PC %06X : MCU executed command: %04X %04X %04X\n", activecpu_get_pc(), mcu_command, mcu_offset*2, mcu_data); |
| 829 | 829 | |
| r1238 | r1239 | |
| 835 | 835 | mame_file *f; |
| 836 | 836 | if ((f = nvram_fopen(Machine, OPEN_FLAG_READ)) != 0) |
| 837 | 837 | { |
| 838 | mame_fread(f,&mcu_ram[mcu_offset], 128); | |
| 838 | mame_fread(f,&kaneko16_mcu_ram[mcu_offset], 128); | |
| 839 | 839 | mame_fclose(f); |
| 840 | 840 | } |
| 841 | 841 | } |
| r1238 | r1239 | |
| 846 | 846 | mame_file *f; |
| 847 | 847 | if ((f = nvram_fopen(Machine, OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS)) != 0) |
| 848 | 848 | { |
| 849 | mame_fwrite(f,&mcu_ram[mcu_offset], 128); | |
| 849 | mame_fwrite(f,&kaneko16_mcu_ram[mcu_offset], 128); | |
| 850 | 850 | mame_fclose(f); |
| 851 | 851 | } |
| 852 | 852 | } |
| r1238 | r1239 | |
| 854 | 854 | |
| 855 | 855 | case 0x03: // DSW |
| 856 | 856 | { |
| 857 | mcu_ram[mcu_offset] = readinputport(4); | |
| 857 | kaneko16_mcu_ram[mcu_offset] = readinputport(4); | |
| 858 | 858 | } |
| 859 | 859 | break; |
| 860 | 860 | |
| r1238 | r1239 | |
| 864 | 864 | strcmp(Machine->gamedrv->name, "gtmra") == 0) |
| 865 | 865 | { |
| 866 | 866 | /* MCU writes the string "MM0525-TOYBOX199" to shared ram */ |
| 867 | mcu_ram[mcu_offset+0] = 0x4d4d; | |
| 868 | mcu_ram[mcu_offset+1] = 0x3035; | |
| 869 | mcu_ram[mcu_offset+2] = 0x3235; | |
| 870 | mcu_ram[mcu_offset+3] = 0x2d54; | |
| 871 | mcu_ram[mcu_offset+4] = 0x4f59; | |
| 872 | mcu_ram[mcu_offset+5] = 0x424f; | |
| 873 | mcu_ram[mcu_offset+6] = 0x5831; | |
| 874 | mcu_ram[mcu_offset+7] = 0x3939; | |
| 867 | kaneko16_mcu_ram[mcu_offset+0] = 0x4d4d; | |
| 868 | kaneko16_mcu_ram[mcu_offset+1] = 0x3035; | |
| 869 | kaneko16_mcu_ram[mcu_offset+2] = 0x3235; | |
| 870 | kaneko16_mcu_ram[mcu_offset+3] = 0x2d54; | |
| 871 | kaneko16_mcu_ram[mcu_offset+4] = 0x4f59; | |
| 872 | kaneko16_mcu_ram[mcu_offset+5] = 0x424f; | |
| 873 | kaneko16_mcu_ram[mcu_offset+6] = 0x5831; | |
| 874 | kaneko16_mcu_ram[mcu_offset+7] = 0x3939; | |
| 875 | 875 | } |
| 876 | 876 | else |
| 877 | 877 | { |
| 878 | 878 | /* MCU writes the string "USMM0713-TB1994 " to shared ram */ |
| 879 | mcu_ram[mcu_offset+0] = 0x5553; | |
| 880 | mcu_ram[mcu_offset+1] = 0x4d4d; | |
| 881 | mcu_ram[mcu_offset+2] = 0x3037; | |
| 882 | mcu_ram[mcu_offset+3] = 0x3133; | |
| 883 | mcu_ram[mcu_offset+4] = 0x2d54; | |
| 884 | mcu_ram[mcu_offset+5] = 0x4231; | |
| 885 | mcu_ram[mcu_offset+6] = 0x3939; | |
| 886 | mcu_ram[mcu_offset+7] = 0x3420; | |
| 879 | kaneko16_mcu_ram[mcu_offset+0] = 0x5553; | |
| 880 | kaneko16_mcu_ram[mcu_offset+1] = 0x4d4d; | |
| 881 | kaneko16_mcu_ram[mcu_offset+2] = 0x3037; | |
| 882 | kaneko16_mcu_ram[mcu_offset+3] = 0x3133; | |
| 883 | kaneko16_mcu_ram[mcu_offset+4] = 0x2d54; | |
| 884 | kaneko16_mcu_ram[mcu_offset+5] = 0x4231; | |
| 885 | kaneko16_mcu_ram[mcu_offset+6] = 0x3939; | |
| 886 | kaneko16_mcu_ram[mcu_offset+7] = 0x3420; | |
| 887 | 887 | } |
| 888 | 888 | } |
| 889 | 889 | break; |
| r1238 | r1239 | |
|---|---|---|
| 159 | 159 | |
| 160 | 160 | /* Mega Blast */ |
| 161 | 161 | |
| 162 | UINT16 *cchip_ram; | |
| 162 | UINT16 *cchip2_ram; | |
| 163 | 163 | |
| 164 | 164 | WRITE16_HANDLER( cchip2_word_w ) |
| 165 | 165 | { |
| 166 | 166 | logerror("cchip2_w pc: %06x offset %04x: %02x\n", activecpu_get_pc(), offset, data); |
| 167 | 167 | |
| 168 | COMBINE_DATA(&cchip_ram[offset]); | |
| 168 | COMBINE_DATA(&cchip2_ram[offset]); | |
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | READ16_HANDLER( cchip2_word_r ) |
| r1238 | r1239 | |
| 179 | 179 | |
| 180 | 180 | logerror("cchip2_r offset: %04x\n", offset); |
| 181 | 181 | |
| 182 | return cchip_ram[offset]; | |
| 182 | return cchip2_ram[offset]; | |
| 183 | 183 | } |
| 184 | 184 |
| r1238 | r1239 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | |
| 10 | 10 | /*** (PSTARS) ***/ |
| 11 | UINT16 PSTARSKEY; | |
| 11 | static UINT16 PSTARSKEY; | |
| 12 | 12 | static UINT16 PSTARSINT[2]; |
| 13 | 13 | static UINT32 PSTARS_REGS[16]; |
| 14 | 14 | static UINT32 PSTARS_VAL; |
| r1238 | r1239 | |
|---|---|---|
| 458 | 458 | |
| 459 | 459 | // srckey is the 64-bit master key (2x32 bits) |
| 460 | 460 | // dstkey will contain the 96-bit key for the 1st FN (4x24 bits) |
| 461 | void expand_1st_key(UINT32 *dstkey, const UINT32 *srckey) | |
| 461 | static void expand_1st_key(UINT32 *dstkey, const UINT32 *srckey) | |
| 462 | 462 | { |
| 463 | 463 | static const int bits[96] = |
| 464 | 464 | { |
| r1238 | r1239 | |
| 493 | 493 | |
| 494 | 494 | // srckey is the 64-bit master key (2x32 bits) XORed with the subkey |
| 495 | 495 | // dstkey will contain the 96-bit key for the 2nd FN (4x24 bits) |
| 496 | void expand_2nd_key(UINT32 *dstkey, const UINT32 *srckey) | |
| 496 | static void expand_2nd_key(UINT32 *dstkey, const UINT32 *srckey) | |
| 497 | 497 | { |
| 498 | 498 | static const int bits[96] = |
| 499 | 499 | { |
| r1238 | r1239 | |
|---|---|---|
| 212 | 212 | 0x0000,0xfc01,0x8009,0x0042 |
| 213 | 213 | }; |
| 214 | 214 | |
| 215 | const UINT16 level_data_05[0xcc] = | |
| 215 | static const UINT16 level_data_05[0xcc] = | |
| 216 | 216 | { |
| 217 | 217 | 0x0480,0x1008,0x0300,0x5701,0x0001,0x0010,0x0480,0x1008, |
| 218 | 218 | 0x0300,0x5701,0x0001,0x002b,0x0780,0x0009,0x0300,0x4a01, |
| r1238 | r1239 | |
|---|---|---|
| 1722 | 1722 | /* Taito "tnzs" (Seta) hardware */ |
| 1723 | 1723 | DRIVER( plumppop ) /* A98 (c) 1987 Taito Corporation (Japan) */ |
| 1724 | 1724 | DRIVER( extrmatn ) /* B06 (c) 1987 World Games */ |
| 1725 | DRIVER( extrmatj ) /* B06 (c) 1987 Taito Corporation (Japan)*/ | |
| 1725 | 1726 | DRIVER( arknoid2 ) /* B08 (c) 1987 Taito Corporation Japan (World) */ |
| 1726 | 1727 | DRIVER( arknid2u ) /* B08 (c) 1987 Taito America Corporation + Romstar license (US) */ |
| 1727 | 1728 | DRIVER( arknid2j ) /* B08 (c) 1987 Taito Corporation (Japan) */ |
| r1238 | r1239 | |
| 4501 | 4502 | DRIVER( konami88 ) /* GX861 (c) 1988 */ |
| 4502 | 4503 | DRIVER( hypsptsp ) /* GX861 (c) 1988 (Japan) */ |
| 4503 | 4504 | DRIVER( gbusters ) /* GX878 (c) 1988 */ |
| 4505 | DRIVER( gbustera ) /* GX878 (c) 1988 */ | |
| 4504 | 4506 | DRIVER( crazycop ) /* GX878 (c) 1988 (Japan) */ |
| 4505 | 4507 | DRIVER( crimfght ) /* GX821 (c) 1989 (US) */ |
| 4506 | 4508 | DRIVER( crimfgt2 ) /* GX821 (c) 1989 (World) */ |
| r1238 | r1239 | |
| 5910 | 5912 | DRIVER( narc ) /* (c) 1988 Williams */ |
| 5911 | 5913 | DRIVER( narc3 ) /* (c) 1988 Williams */ |
| 5912 | 5914 | DRIVER( trog ) /* (c) 1990 Midway */ |
| 5915 | DRIVER( trog4 ) /* (c) 1990 Midway */ | |
| 5913 | 5916 | DRIVER( trog3 ) /* (c) 1990 Midway */ |
| 5914 | 5917 | DRIVER( trogpa6 ) /* (c) 1990 Midway */ |
| 5915 | 5918 | DRIVER( trogp ) /* (c) 1990 Midway */ |
| r1238 | r1239 | |
| 7351 | 7354 | DRIVER( evosocc ) /* 2001 Evoga. Evolution Soccer */ |
| 7352 | 7355 | |
| 7353 | 7356 | /* Bell Fruit Cobra Hardware */ |
| 7357 | DRIVER( inquiztr ) /* 1989 BFM */ | |
| 7358 | DRIVER( escounts ) /* 1990 BFM */ | |
| 7359 | DRIVER( trebltop ) /* 1991 BFM */ | |
| 7360 | DRIVER( quizvadr ) /* 1991 BFM */ | |
| 7354 | 7361 | DRIVER( qos ) /* 1992 BFM */ |
| 7355 | 7362 | DRIVER( qosa ) /* 1992 BFM */ |
| 7356 | 7363 |
| r1238 | r1239 | |
|---|---|---|
| 49 | 49 | |
| 50 | 50 | /*----------- defined in machine/cchip.c -----------*/ |
| 51 | 51 | |
| 52 | extern UINT16 *cchip_ram; | |
| 52 | extern UINT16 *cchip2_ram; | |
| 53 | 53 | READ16_HANDLER ( cchip2_word_r ); |
| 54 | 54 | WRITE16_HANDLER( cchip2_word_w ); |
| 55 | 55 |
| r1238 | r1239 | |
|---|---|---|
| 6 | 6 | |
| 7 | 7 | /*----------- defined in machine/kaneko16.c -----------*/ |
| 8 | 8 | |
| 9 | extern UINT16 *mcu_ram; /* for calc3 and toybox */ | |
| 9 | extern UINT16 *kaneko16_mcu_ram; /* for calc3 and toybox */ | |
| 10 | 10 | |
| 11 | 11 | READ16_HANDLER( galpanib_calc_r ); |
| 12 | 12 | WRITE16_HANDLER( galpanib_calc_w ); |
| r1238 | r1239 | |
|---|---|---|
| 18 | 18 | |
| 19 | 19 | #include "driver.h" |
| 20 | 20 | |
| 21 | int vdp1_sprite_log = 0; | |
| 21 | static int vdp1_sprite_log = 0; | |
| 22 | 22 | |
| 23 | 23 | UINT32 *stv_vdp1_vram; |
| 24 | 24 | UINT32 *stv_vdp1_regs; |
| r1238 | r1239 | |
|---|---|---|
| 603 | 603 | */ |
| 604 | 604 | |
| 605 | 605 | |
| 606 | static void render_poly_4bit(void *dest, INT32 scanline, | |
| 606 | static void render_poly_4bit(void *dest, INT32 scanline, con | |
| 607 | 607 | { |
| 608 | poly_extra_data *extra = poly->extra; | |
| 609 | float ooz = poly_param_value(startx, scanline, 0, poly); | |
| 610 | float uoz = poly_param_value(startx, scanline, 1, poly); | |
| 611 | float voz = poly_param_value(startx, scanline, 2, poly); | |
| 608 | const poly_extra_data *extra = extradata; | |
| 612 | 609 | float doozdx = poly->param[0].dpdx; |
| 613 | 610 | float duozdx = poly->param[1].dpdx; |
| 614 | 611 | float dvozdx = poly->param[2].dpdx; |
| r1238 | r1239 | |
| 616 | 613 | const UINT32 *palbase = extra->palbase; |
| 617 | 614 | UINT16 transcolor = extra->transcolor; |
| 618 | 615 | int texwidth = extra->texwidth; |
| 616 | float ooz = poly_param_tri_value(extent->startx, scanline, 0, poly); | |
| 617 | float uoz = poly_param_tri_value(extent->startx, scanline, 1, poly); | |
| 618 | float voz = poly_param_tri_value(extent->startx, scanline, 2, poly); | |
| 619 | 619 | int x; |
| 620 | 620 | |
| 621 | for (x = startx; x < stopx; x++) | |
| 621 | for (x = extent->startx; x < extent->stopx; x++) | |
| 622 | 622 | { |
| 623 | 623 | float z = recip_approx(ooz); |
| 624 | 624 | int u = (int)(uoz * z) & ((texwidth * 2) - 1); |
| r1238 | r1239 | |
| 640 | 640 | } |
| 641 | 641 | |
| 642 | 642 | |
| 643 | static void render_poly_8bit(void *dest, INT32 scanline, | |
| 643 | static void render_poly_8bit(void *dest, INT32 scanline, con | |
| 644 | 644 | { |
| 645 | poly_extra_data *extra = poly->extra; | |
| 646 | float ooz = poly_param_value(startx, scanline, 0, poly); | |
| 647 | float uoz = poly_param_value(startx, scanline, 1, poly); | |
| 648 | float voz = poly_param_value(startx, scanline, 2, poly); | |
| 645 | const poly_extra_data *extra = extradata; | |
| 649 | 646 | float doozdx = poly->param[0].dpdx; |
| 650 | 647 | float duozdx = poly->param[1].dpdx; |
| 651 | 648 | float dvozdx = poly->param[2].dpdx; |
| r1238 | r1239 | |
| 653 | 650 | const UINT32 *palbase = extra->palbase; |
| 654 | 651 | UINT16 transcolor = extra->transcolor; |
| 655 | 652 | int texwidth = extra->texwidth; |
| 653 | float ooz = poly_param_tri_value(extent->startx, scanline, 0, poly); | |
| 654 | float uoz = poly_param_tri_value(extent->startx, scanline, 1, poly); | |
| 655 | float voz = poly_param_tri_value(extent->startx, scanline, 2, poly); | |
| 656 | 656 | int x; |
| 657 | 657 | |
| 658 | for (x = startx; x < stopx; x++) | |
| 658 | for (x = extent->startx; x < extent->stopx; x++) | |
| 659 | 659 | { |
| 660 | 660 | float z = recip_approx(ooz); |
| 661 | 661 | int u = (int)(uoz * z) & (texwidth - 1); |
| r1238 | r1239 | |
| 757 | 757 | |
| 758 | 758 | if ((data[datanum] >> 24) == 0x25 || (data[datanum] >> 24) == 0x30 /* invasn */) |
| 759 | 759 | { |
| 760 | poly_draw_scanline callback; | |
| 760 | poly_draw_tri_scanline callback; | |
| 761 | 761 | poly_extra_data *extra; |
| 762 | 762 | poly_vertex vert[4]; |
| 763 | 763 | int i; |
| r1238 | r1239 | |
|---|---|---|
| 161 | 161 | } Dot; |
| 162 | 162 | } m_packet; |
| 163 | 163 | |
| 164 | struct PSXGPU | |
| 164 | static struct PSXGPU | |
| 165 | 165 | { |
| 166 | 166 | INT32 n_tx; |
| 167 | 167 | INT32 n_ty; |
| r1238 | r1239 | |
|---|---|---|
| 656 | 656 | |
| 657 | 657 | */ |
| 658 | 658 | /* first 0x4000 of gfx ROM are used, but 0x0000-0x1fff is == 0x2000-0x3fff */ |
| 659 | const int stars_rom_size = 0x2000; | |
| 659 | static const int stars_rom_size = 0x2000; | |
| 660 | 660 | |
| 661 | 661 | /* PSL: CPS2 support */ |
| 662 | 662 | const int cps2_obj_size =0x2000; |
| r1238 | r1239 | |
|---|---|---|
| 20 | 20 | |
| 21 | 21 | #define MAX_POLYGONS 4096 |
| 22 | 22 | #define MAX_POLYDATA (MAX_POLYGONS * 21) |
| 23 | #define MAX_VERTICES 32 | |
| 23 | 24 | |
| 24 | 25 | #define DISPLAY_TEXTURE 0 |
| 25 | 26 | #define LOG_POLYGONS 0 |
| r1238 | r1239 | |
| 52 | 53 | }; |
| 53 | 54 | |
| 54 | 55 | |
| 55 | static void render_noz_noperspective(void *destbase, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid); | |
| 56 | static void render_normal(void *destbase, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid); | |
| 57 | static void render_alphablend(void *destbase, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid); | |
| 56 | static void render_noz_noperspective(void *destbase, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid); | |
| 57 | static void render_normal(void *destbase, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid); | |
| 58 | static void render_alphablend(void *destbase, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid); | |
| 58 | 59 | |
| 59 | 60 | |
| 60 | 61 | |
| r1238 | r1239 | |
| 166 | 167 | float midx = Machine->screen[0].width / 2; |
| 167 | 168 | float midy = Machine->screen[0].height / 2; |
| 168 | 169 | float z0 = dsp_to_float(polydata[0]); |
| 169 | float voz_dy = dsp_to_float(polydata[1]); | |
| 170 | float voz_dx = dsp_to_float(polydata[2]); | |
| 170 | float voz_dy = dsp_to_float(polydata[1]) * 256.0f; | |
| 171 | float voz_dx = dsp_to_float(polydata[2]) * 256.0f; | |
| 171 | 172 | float ooz_dy = dsp_to_float(polydata[3]); |
| 172 | 173 | float ooz_dx = dsp_to_float(polydata[4]); |
| 173 | float uoz_dy = dsp_to_float(polydata[5]); | |
| 174 | float uoz_dx = dsp_to_float(polydata[6]); | |
| 175 | float voz_base = dsp_to_float(polydata[7]) - midx * voz_dx - midy * voz_dy; | |
| 174 | float uoz_dy = dsp_to_float(polydata[5]) * 256.0f; | |
| 175 | float uoz_dx = dsp_to_float(polydata[6]) * 256.0f; | |
| 176 | float voz_base = dsp_to_float(polydata[7]) * 256.0f - midx * voz_dx - midy * voz_dy; | |
| 176 | 177 | float ooz_base = dsp_to_float(polydata[8]) - midx * ooz_dx - midy * ooz_dy; |
| 177 | float uoz_base = dsp_to_float(polydata[9]) - midx * uoz_dx - midy * uoz_dy; | |
| 178 | float uoz_base = dsp_to_float(polydata[9]) * 256.0f - midx * uoz_dx - midy * uoz_dy; | |
| 179 | poly_extra_data *extra = poly_get_extra_data(poly); | |
| 178 | 180 | int color = (polydata[10] & 0x7f) << 8; |
| 179 | poly_vertex vert[3]; | |
| 180 | int i; | |
| 181 | poly_vertex vert[MAX_VERTICES]; | |
| 182 | UINT32 data; | |
| 183 | int vertnum; | |
| 181 | 184 | |
| 182 | 185 | if (LOG_POLYGONS) |
| 183 | 186 | { |
| r1238 | r1239 | |
| 203 | 206 | logerror("\n"); |
| 204 | 207 | } |
| 205 | 208 | |
| 206 | /* extract the first two vertices */ | |
| 207 | vert[0].x = midx + (float)((INT32)polydata[13] >> 16) + 0.5f; | |
| 208 | vert[0].y = midy + ((float)((INT32)(polydata[13] << 18) >> 18) + 0.5f); | |
| 209 | vert[1].x = midx + (float)((INT32)polydata[15] >> 16) + 0.5f; | |
| 210 | vert[1].y = midy + ((float)((INT32)(polydata[15] << 18) >> 18) + 0.5f); | |
| 209 | /* fill in extra data */ | |
| 210 | extra->tex = polydata[11]; | |
| 211 | extra->color = color; | |
| 212 | extra->ooz_dx = ooz_dx; | |
| 213 | extra->ooz_dy = ooz_dy; | |
| 214 | extra->ooz_base = ooz_base; | |
| 215 | extra->uoz_dx = uoz_dx; | |
| 216 | extra->uoz_dy = uoz_dy; | |
| 217 | extra->uoz_base = uoz_base; | |
| 218 | extra->voz_dx = voz_dx; | |
| 219 | extra->voz_dy = voz_dy; | |
| 220 | extra->voz_base = voz_base; | |
| 221 | extra->z0 = z0; | |
| 211 | 222 | |
| 212 | /* loop over the remaining verticies */ | |
| 213 | for (i = 17; !IS_POLYEND(polydata[i - 2]) && i < 1000; i += 2) | |
| 223 | /* extract vertices */ | |
| 224 | data = 0; | |
| 225 | for (vertnum = 0; vertnum < ARRAY_LENGTH(vert) && !IS_POLYEND(data); vertnum++) | |
| 214 | 226 | { |
| 215 | poly_extra_data *extra = poly_get_extra_data(poly); | |
| 227 | /* extract vertex data */ | |
| 228 | data = polydata[13 + vertnum * 2]; | |
| 229 | vert[vertnum].x = midx + (float)((INT32)data >> 16) + 0.5f; | |
| 230 | vert[vertnum].y = midy + (float)((INT32)(data << 18) >> 18) + 0.5f; | |
| 231 | } | |
| 216 | 232 | |
| 217 | /* fill in core extra data */ | |
| 218 | extra->tex = polydata[11]; | |
| 219 | extra->color = color; | |
| 220 | extra->ooz_dx = ooz_dx; | |
| 221 | extra->ooz_dy = ooz_dy; | |
| 222 | extra->ooz_base = ooz_base; | |
| 223 | extra->uoz_dx = uoz_dx; | |
| 224 | extra->uoz_dy = uoz_dy; | |
| 225 | extra->uoz_base = uoz_base; | |
| 226 | extra->voz_dx = voz_dx; | |
| 227 | extra->voz_dy = voz_dy; | |
| 228 | extra->voz_base = voz_base; | |
| 229 | extra->z0 = z0; | |
| 230 | ||
| 231 | /* extract vertex 2 */ | |
| 232 | vert[2].x = midx + (float)((INT32)polydata[i] >> 16) + 0.5f; | |
| 233 | vert[2].y = midy + (float)((INT32)(polydata[i] << 18) >> 18) + 0.5f; | |
| 234 | ||
| 233 | /* if we have a valid number of verts, render them */ | |
| 234 | if (vertnum >= 3) | |
| 235 | { | |
| 235 | 236 | /* special case: no Z buffering and no perspective correction */ |
| 236 | 237 | if (color != 0x7f00 && z0 < 0 && ooz_dx == 0 && ooz_dy == 0) |
| 237 | poly_render_triangle(poly, screenbits, &Machine->screen[0].visarea, render_noz_noperspective, 0, | |
| 238 | poly_render_triangle_fan(poly, screenbits, &Machine->screen[0].visarea, render_noz_noperspective, 0, | |
| 238 | 239 | |
| 239 | 240 | /* general case: non-alpha blended */ |
| 240 | 241 | else if (color != 0x7f00) |
| 241 | poly_render_triangle(poly, screenbits, &Machine->screen[0].visarea, render_normal, 0, | |
| 242 | poly_render_triangle_fan(poly, screenbits, &Machine->screen[0].visarea, render_normal, 0, | |
| 242 | 243 | |
| 243 | 244 | /* color 0x7f seems to be hard-coded as a 50% alpha blend */ |
| 244 | 245 | else |
| 245 | poly_render_triangle(poly, screenbits, &Machine->screen[0].visarea, render_alphablend, 0, | |
| 246 | poly_render_triangle_fan(poly, screenbits, &Machine->screen[0].visarea, render_alphablend, 0, | |
| 246 | 247 | |
| 247 | /* copy vertex 2 to vertex 1 -- this hardware draws in fans */ | |
| 248 | vert[1] = vert[2]; | |
| 249 | polygons++; | |
| 248 | polygons += vertnum - 2; | |
| 250 | 249 | } |
| 251 | 250 | } |
| 252 | 251 | |
| 253 | 252 | |
| 254 | 253 | |
| 255 | static void render_noz_noperspective(void *destbase, INT32 scanline, | |
| 254 | static void render_noz_noperspective(void *destbase, INT32 scanline, con | |
| 256 | 255 | { |
| 257 | poly_extra_data *extra = | |
| 256 | const poly_extra_data *extra = | |
| 258 | 257 | mame_bitmap *bitmap = destbase; |
| 259 | UINT16 *dest = BITMAP_ADDR16(bitmap, scanline, 0); | |
| 260 | UINT16 *zbuf = BITMAP_ADDR16(zbuffer, scanline, 0); | |
| 261 | 258 | float zbase = recip_approx(extra->ooz_base); |
| 262 | float zbase256 = 256.0f * zbase; | |
| 263 | float uoz = (extra->uoz_base + scanline * extra->uoz_dy + startx * extra->uoz_dx) * zbase256; | |
| 264 | float voz = (extra->voz_base + scanline * extra->voz_dy + startx * extra->voz_dx) * zbase256; | |
| 265 | float uoz_step = extra->uoz_dx * zbase256; | |
| 266 | float voz_step = extra->voz_dx * zbase256; | |
| 259 | float uoz_step = extra->uoz_dx * zbase; | |
| 260 | float voz_step = extra->voz_dx * zbase; | |
| 267 | 261 | int zbufval = (int)(-extra->z0 * zbase); |
| 268 | 262 | offs_t endmask = gaelco3d_texture_size - 1; |
| 269 | 263 | const rgb_t *palsource = palette + extra->color; |
| 270 | 264 | UINT32 tex = extra->tex; |
| 265 | UINT16 *dest = BITMAP_ADDR16(bitmap, scanline, 0); | |
| 266 | UINT16 *zbuf = BITMAP_ADDR16(zbuffer, scanline, 0); | |
| 267 | int startx = extent->startx; | |
| 268 | float uoz = (extra->uoz_base + scanline * extra->uoz_dy + startx * extra->uoz_dx) * zbase; | |
| 269 | float voz = (extra->voz_base + scanline * extra->voz_dy + startx * extra->voz_dx) * zbase; | |
| 271 | 270 | int x; |
| 272 | 271 | |
| 273 | for (x = startx; x < stopx; x++) | |
| 272 | for (x = startx; x < extent->stopx; x++) | |
| 274 | 273 | { |
| 275 | 274 | int u = (int)uoz; |
| 276 | 275 | int v = (int)voz; |
| r1238 | r1239 | |
| 293 | 292 | } |
| 294 | 293 | |
| 295 | 294 | |
| 296 | static void render_normal(void *destbase, INT32 scanline, | |
| 295 | static void render_normal(void *destbase, INT32 scanline, con | |
| 297 | 296 | { |
| 298 | poly_extra_data *extra = | |
| 297 | const poly_extra_data *extra = | |
| 299 | 298 | mame_bitmap *bitmap = destbase; |
| 300 | UINT16 *dest = BITMAP_ADDR16(bitmap, scanline, 0); | |
| 301 | UINT16 *zbuf = BITMAP_ADDR16(zbuffer, scanline, 0); | |
| 302 | 299 | float ooz_dx = extra->ooz_dx; |
| 303 | float uoz_dx = extra->uoz_dx * 256.0f; | |
| 304 | float voz_dx = extra->voz_dx * 256.0f; | |
| 305 | float ooz = extra->ooz_base + scanline * extra->ooz_dy + startx * ooz_dx; | |
| 306 | float uoz = (extra->uoz_base + scanline * extra->uoz_dy) * 256.0f + startx * uoz_dx; | |
| 307 | float voz = (extra->voz_base + scanline * extra->voz_dy) * 256.0f + startx * voz_dx; | |
| 300 | float uoz_dx = extra->uoz_dx; | |
| 301 | float voz_dx = extra->voz_dx; | |
| 308 | 302 | offs_t endmask = gaelco3d_texture_size - 1; |
| 309 | 303 | const rgb_t *palsource = palette + extra->color; |
| 310 | 304 | UINT32 tex = extra->tex; |
| 311 | 305 | float z0 = extra->z0; |
| 306 | UINT16 *dest = BITMAP_ADDR16(bitmap, scanline, 0); | |
| 307 | UINT16 *zbuf = BITMAP_ADDR16(zbuffer, scanline, 0); | |
| 308 | int startx = extent->startx; | |
| 309 | float ooz = extra->ooz_base + scanline * extra->ooz_dy + startx * ooz_dx; | |
| 310 | float uoz = extra->uoz_base + scanline * extra->uoz_dy + startx * uoz_dx; | |
| 311 | float voz = extra->voz_base + scanline * extra->voz_dy + startx * voz_dx; | |
| 312 | 312 | int x; |
| 313 | 313 | |
| 314 | for (x = startx; x < stopx; x++) | |
| 314 | for (x = startx; x < extent->stopx; x++) | |
| 315 | 315 | { |
| 316 | 316 | if (ooz > 0) |
| 317 | 317 | { |
| r1238 | r1239 | |
| 344 | 344 | } |
| 345 | 345 | |
| 346 | 346 | |
| 347 | static void render_alphablend(void *destbase, INT32 scanline, | |
| 347 | static void render_alphablend(void *destbase, INT32 scanline, con | |
| 348 | 348 | { |
| 349 | poly_extra_data *extra = | |
| 349 | const poly_extra_data *extra = | |
| 350 | 350 | mame_bitmap *bitmap = destbase; |
| 351 | UINT16 *dest = BITMAP_ADDR16(bitmap, scanline, 0); | |
| 352 | UINT16 *zbuf = BITMAP_ADDR16(zbuffer, scanline, 0); | |
| 353 | 351 | float ooz_dx = extra->ooz_dx; |
| 354 | float uoz_dx = extra->uoz_dx * 256.0f; | |
| 355 | float voz_dx = extra->voz_dx * 256.0f; | |
| 356 | float ooz = extra->ooz_base + extra->ooz_dy * scanline + startx * ooz_dx; | |
| 357 | float uoz = (extra->uoz_base + extra->uoz_dy * scanline) * 256.0f + startx * uoz_dx; | |
| 358 | float voz = (extra->voz_base + extra->voz_dy * scanline) * 256.0f + startx * voz_dx; | |
| 352 | float uoz_dx = extra->uoz_dx; | |
| 353 | float voz_dx = extra->voz_dx; | |
| 359 | 354 | offs_t endmask = gaelco3d_texture_size - 1; |
| 360 | 355 | const rgb_t *palsource = palette + extra->color; |
| 361 | 356 | UINT32 tex = extra->tex; |
| 362 | 357 | float z0 = extra->z0; |
| 358 | UINT16 *dest = BITMAP_ADDR16(bitmap, scanline, 0); | |
| 359 | UINT16 *zbuf = BITMAP_ADDR16(zbuffer, scanline, 0); | |
| 360 | int startx = extent->startx; | |
| 361 | float ooz = extra->ooz_base + extra->ooz_dy * scanline + startx * ooz_dx; | |
| 362 | float uoz = extra->uoz_base + extra->uoz_dy * scanline + startx * uoz_dx; | |
| 363 | float voz = extra->voz_base + extra->voz_dy * scanline + startx * voz_dx; | |
| 363 | 364 | int x; |
| 364 | 365 | |
| 365 | for (x = startx; x < stopx; x++) | |
| 366 | for (x = startx; x < extent->stopx; x++) | |
| 366 | 367 | { |
| 367 | 368 | if (ooz > 0) |
| 368 | 369 | { |
| r1238 | r1239 | |
|---|---|---|
| 23 | 23 | int skipclip[PLAYER_GFX_SLOTS]; |
| 24 | 24 | }; |
| 25 | 25 | |
| 26 | struct player_gfx p0gfx; | |
| 27 | struct player_gfx p1gfx; | |
| 26 | static struct player_gfx p0gfx; | |
| 27 | static struct player_gfx p1gfx; | |
| 28 | 28 | |
| 29 | 29 | static UINT32 frame_cycles; |
| 30 | 30 | static UINT32 paddle_cycles; |
| r1238 | r1239 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "video/poly.h" | |
| 2 | #include "video/polynew.h" | |
| 3 | #include "video/rgbutil.h" | |
| 4 | #include "eminline.h" | |
| 3 | 5 | #include <math.h> |
| 4 | 6 | |
| 5 | 7 | |
| 6 | #define BILINEAR 1 | |
| 8 | #define pz p[0] | |
| 9 | #define pu p[1] | |
| 10 | #define pv p[2] | |
| 7 | 11 | |
| 8 | 12 | |
| 9 | 13 | |
| r1238 | r1239 | |
| 12 | 16 | typedef float VECTOR3[3]; |
| 13 | 17 | |
| 14 | 18 | typedef struct { |
| 15 | float x,y,z; | |
| 16 | UINT32 u,v; | |
| 17 | } VERTEX; | |
| 18 | ||
| 19 | typedef struct { | |
| 20 | 19 | float x,y,z,d; |
| 21 | 20 | } PLANE; |
| 22 | 21 | |
| 23 | 22 | typedef struct |
| 24 | 23 | { |
| 25 | | |
| 24 | poly_vertex v[3]; | |
| 26 | 25 | UINT8 texture_x, texture_y; |
| 27 | 26 | UINT8 texture_width, texture_height; |
| 28 | UINT8 transparency | |
| 27 | UINT8 transparency | |
| 29 | 28 | UINT8 texture_format, param; |
| 30 | 29 | int intensity; |
| 31 | 30 | UINT32 color; |
| 32 | int viewport_priority; | |
| 33 | 31 | } TRIANGLE; |
| 34 | 32 | |
| 33 | typedef struct _cached_texture cached_texture; | |
| 34 | struct _cached_texture | |
| 35 | { | |
| 36 | cached_texture *next; | |
| 37 | UINT8 width; | |
| 38 | UINT8 height; | |
| 39 | UINT8 format; | |
| 40 | UINT8 alpha; | |
| 41 | rgb_t data[1]; | |
| 42 | }; | |
| 43 | ||
| 44 | typedef struct _poly_extra_data poly_extra_data; | |
| 45 | struct _poly_extra_data | |
| 46 | { | |
| 47 | cached_texture *texture; | |
| 48 | UINT32 color; | |
| 49 | UINT8 texture_param; | |
| 50 | int polygon_transparency; | |
| 51 | int polygon_intensity; | |
| 52 | }; | |
| 53 | ||
| 35 | 54 | #define TRI_PARAM_TEXTURE_PAGE 0x1 |
| 36 | 55 | #define TRI_PARAM_TEXTURE_MIRROR_U 0x2 |
| 37 | 56 | #define TRI_PARAM_TEXTURE_MIRROR_V 0x4 |
| 38 | 57 | #define TRI_PARAM_TEXTURE_ENABLE 0x8 |
| 58 | #define TRI_PARAM_ALPHA_TEST 0x10 | |
| 39 | 59 | |
| 40 | 60 | #define MAX_TRIANGLES 131072 |
| 41 | 61 | |
| 42 | 62 | |
| 43 | 63 | /* forward declarations */ |
| 44 | 64 | static void real3d_traverse_display_list(void); |
| 45 | static void draw_model(UINT32 | |
| 65 | static void draw_model(UINT32 addr); | |
| 46 | 66 | static void init_matrix_stack(void); |
| 47 | 67 | static void get_top_matrix(MATRIX *out); |
| 48 | 68 | static void push_matrix_stack(void); |
| r1238 | r1239 | |
| 50 | 70 | static void multiply_matrix_stack(MATRIX matrix); |
| 51 | 71 | static void translate_matrix_stack(float x, float y, float z); |
| 52 | 72 | static void traverse_list(UINT32 address); |
| 53 | static void traverse_node(UINT32 address); | |
| 54 | static void traverse_root_node(UINT32 address); | |
| 73 | static void draw_block(UINT32 address); | |
| 74 | static void draw_viewport(int pri, UINT32 address); | |
| 55 | 75 | |
| 56 | 76 | /*****************************************************************************/ |
| 57 | 77 | |
| r1238 | r1239 | |
| 92 | 112 | static rectangle *screen_clip; |
| 93 | 113 | |
| 94 | 114 | |
| 95 | static TRIANGLE* triangle_buffer; | |
| 96 | static TRIANGLE* alpha_triangle_buffer; | |
| 97 | static int triangle_buffer_ptr; | |
| 98 | static int alpha_triangle_buffer_ptr; | |
| 99 | ||
| 100 | ||
| 101 | static int* texture_wrap_table[5]; | |
| 102 | static int* texture_mirror_table[5]; | |
| 103 | ||
| 104 | ||
| 105 | 115 | static VECTOR3 parallel_light; |
| 106 | 116 | static float parallel_light_intensity; |
| 107 | 117 | static float ambient_light_intensity; |
| 108 | 118 | |
| 119 | static poly_manager *poly; | |
| 120 | static cached_texture *texcache[2][1024/32][2048/32]; | |
| 121 | ||
| 122 | ||
| 109 | 123 | static int list_depth = 0; |
| 110 | 124 | |
| 111 | 125 | |
| r1238 | r1239 | |
| 116 | 130 | |
| 117 | 131 | #define BYTE_REVERSE16(x) (((x >> 8) & 0xff) | ((x << 8) & 0xff00)) |
| 118 | 132 | |
| 133 | static void invalidate_texture(int page, int texx, int texy, int texwidth, int texheight); | |
| 119 | 134 | |
| 120 | 135 | |
| 136 | static void model3_exit(running_machine *machine) | |
| 137 | { | |
| 138 | invalidate_texture(0, 0, 0, 6, 5); | |
| 139 | invalidate_texture(1, 0, 0, 6, 5); | |
| 140 | poly_free(poly); | |
| 141 | } | |
| 142 | ||
| 121 | 143 | VIDEO_START( model3 ) |
| 122 | 144 | { |
| 123 | int j,t; | |
| 145 | poly = poly_alloc(4000, sizeof(poly_extra_data), 0); | |
| 146 | add_exit_callback(machine, model3_exit); | |
| 124 | 147 | |
| 125 | 148 | bitmap3d = auto_bitmap_alloc(machine->screen[0].width, machine->screen[0].height, machine->screen[0].format); |
| 126 | 149 | zbuffer = auto_bitmap_alloc(machine->screen[0].width, machine->screen[0].height, BITMAP_FORMAT_INDEXED32); |
| r1238 | r1239 | |
| 153 | 176 | memset(texture_fifo, 0, 0x100000); |
| 154 | 177 | |
| 155 | 178 | init_matrix_stack(); |
| 156 | ||
| 157 | ||
| 158 | // triangle buffers | |
| 159 | triangle_buffer = auto_malloc(sizeof(TRIANGLE) * MAX_TRIANGLES); | |
| 160 | alpha_triangle_buffer = auto_malloc(sizeof(TRIANGLE) * MAX_TRIANGLES); | |
| 161 | ||
| 162 | // mirror / wrap tables | |
| 163 | for (j=0; j < 5; j++) | |
| 164 | { | |
| 165 | int size = 32 << j; | |
| 166 | texture_mirror_table[j] = auto_malloc(size * sizeof(int) * 2); | |
| 167 | texture_wrap_table[j] = auto_malloc(size * sizeof(int) * 2); | |
| 168 | ||
| 169 | for (t=0; t < size * 2; t++) | |
| 170 | { | |
| 171 | // wrapping | |
| 172 | texture_wrap_table[j][t] = t & (size-1); | |
| 173 | ||
| 174 | // mirroring | |
| 175 | texture_mirror_table[j][t] = (t < size) ? t & (size-1) : size - (t & (size-1)) - 1; | |
| 176 | } | |
| 177 | } | |
| 178 | 179 | } |
| 179 | 180 | |
| 180 | 181 | static void draw_tile_4bit(mame_bitmap *bitmap, int tx, int ty, int tilenum) |
| r1238 | r1239 | |
| 373 | 374 | layer_scroll_x[3] = (layer_data[3] & 0x8000) ? (layer_data[3] & 0x1ff) : -(layer_data[3] & 0x1ff); |
| 374 | 375 | layer_scroll_y[3] = (layer_data[3] & 0x8000) ? (layer_data[3] & 0x1ff) : -(layer_data[3] & 0x1ff); |
| 375 | 376 | |
| 376 | bitmap3d = bitmap; | |
| 377 | 377 | screen_clip = (rectangle*)cliprect; |
| 378 | 378 | |
| 379 | 379 | clip3d.min_x = cliprect->min_x; |
| r1238 | r1239 | |
| 398 | 398 | debug_layer_disable ^= 0x10; |
| 399 | 399 | } |
| 400 | 400 | |
| 401 | fillbitmap(bitmap | |
| 401 | fillbitmap(bitmap | |
| 402 | 402 | |
| 403 | if(!(debug_layer_disable & 0x8)) { | |
| 404 | draw_layer(bitmap3d, cliprect, 3, (model3_layer_enable >> 3) & 0x1); | |
| 405 | } | |
| 406 | if(!(debug_layer_disable & 0x4)) { | |
| 407 | draw_layer(bitmap3d, cliprect, 2, (model3_layer_enable >> 2) & 0x1); | |
| 408 | } | |
| 403 | if (!(debug_layer_disable & 0x8)) | |
| 404 | draw_layer(bitmap, cliprect, 3, (model3_layer_enable >> 3) & 0x1); | |
| 409 | 405 | |
| 406 | if (!(debug_layer_disable & 0x4)) | |
| 407 | draw_layer(bitmap, cliprect, 2, (model3_layer_enable >> 2) & 0x1); | |
| 408 | ||
| 410 | 409 | if( !(debug_layer_disable & 0x10) ) |
| 411 | 410 | { |
| 412 | if(real3d_display_list) { | |
| 413 | fillbitmap(zbuffer, 0, cliprect); | |
| 414 | real3d_traverse_display_list(); | |
| 415 | } | |
| 411 | // if(real3d_display_list) { | |
| 412 | // fillbitmap(zbuffer, 0, cliprect); | |
| 413 | // fillbitmap(bitmap3d, 0x8000, cliprect); | |
| 414 | // real3d_traverse_display_list(); | |
| 415 | // } | |
| 416 | copybitmap(bitmap, bitmap3d, 0, 0, 0, 0, cliprect, TRANSPARENCY_PEN, 0x8000); | |
| 416 | 417 | } |
| 417 | 418 | |
| 418 | if(!(debug_layer_disable & 0x2)) { | |
| 419 | draw_layer(bitmap3d, cliprect, 1, (model3_layer_enable >> 1) & 0x1); | |
| 420 | } | |
| 421 | if(!(debug_layer_disable & 0x1)) { | |
| 422 | draw_layer(bitmap3d, cliprect, 0, (model3_layer_enable >> 0) & 0x1); | |
| 423 | } | |
| 419 | if (!(debug_layer_disable & 0x2)) | |
| 420 | draw_layer(bitmap, cliprect, 1, (model3_layer_enable >> 1) & 0x1); | |
| 421 | ||
| 422 | if (!(debug_layer_disable & 0x1)) | |
| 423 | draw_layer(bitmap, cliprect, 0, (model3_layer_enable >> 0) & 0x1); | |
| 424 | ||
| 424 | 425 | //copy_screen(bitmap, cliprect); |
| 425 | 426 | |
| 426 | 427 | //draw_texture_sheet(bitmap, cliprect); |
| r1238 | r1239 | |
| 511 | 512 | |
| 512 | 513 | |
| 513 | 514 | /*****************************************************************************/ |
| 515 | /* texture caching */ | |
| 516 | ||
| 517 | /* | |
| 518 | array of cached textures: | |
| 519 | 4 potential textures for 4-bit grayscale | |
| 520 | 2 pages | |
| 521 | 1024 pixels / 32 pixel resolution vertically | |
| 522 | 2048 pixels / 32 pixel resolution horizontally | |
| 523 | */ | |
| 524 | static void invalidate_texture(int page, int texx, int texy, int texwidth, int texheight) | |
| 525 | { | |
| 526 | int wtiles = 1 << texwidth; | |
| 527 | int htiles = 1 << texheight; | |
| 528 | int x, y; | |
| 529 | ||
| 530 | for (y = 0; y < htiles; y++) | |
| 531 | for (x = 0; x < wtiles; x++) | |
| 532 | while (texcache[page][texy + y][texx + x] != NULL) | |
| 533 | { | |
| 534 | cached_texture *freeme = texcache[page][texy + y][texx + x]; | |
| 535 | texcache[page][texy + y][texx + x] = freeme->next; | |
| 536 | free(freeme); | |
| 537 | } | |
| 538 | } | |
| 539 | ||
| 540 | static cached_texture *get_texture(int page, int texx, int texy, int texwidth, int texheight, int format) | |
| 541 | { | |
| 542 | cached_texture *tex = texcache[page][texy][texx]; | |
| 543 | int pixheight = 32 << texheight; | |
| 544 | int pixwidth = 32 << texwidth; | |
| 545 | UINT32 alpha = ~0; | |
| 546 | int x, y; | |
| 547 | ||
| 548 | /* if we have one already, validate it */ | |
| 549 | for (tex = texcache[page][texy][texx]; tex != NULL; tex = tex->next) | |
| 550 | if (tex->width == texwidth && tex->height == texheight && tex->format == format) | |
| 551 | return tex; | |
| 552 | ||
| 553 | /* create a new texture */ | |
| 554 | tex = malloc_or_die(sizeof(cached_texture) + (2 * pixwidth * 2 * pixheight) * sizeof(rgb_t)); | |
| 555 | tex->width = texwidth; | |
| 556 | tex->height = texheight; | |
| 557 | tex->format = format; | |
| 558 | ||
| 559 | /* set the new texture */ | |
| 560 | tex->next = texcache[page][texy][texx]; | |
| 561 | texcache[page][texy][texx] = tex; | |
| 562 | ||
| 563 | /* decode it */ | |
| 564 | for (y = 0; y < pixheight; y++) | |
| 565 | { | |
| 566 | const UINT16 *texsrc = &texture_ram[page][(texy * 32 + y) * 2048 + texx * 32]; | |
| 567 | rgb_t *dest = tex->data + 2 * pixwidth * y; | |
| 568 | ||
| 569 | switch (format) | |
| 570 | { | |
| 571 | case 0: /* 1-5-5-5 ARGB */ | |
| 572 | for (x = 0; x < pixwidth; x++) | |
| 573 | { | |
| 574 | UINT16 pixdata = texsrc[x]; | |
| 575 | dest[x] = MAKE_ARGB(pal1bit(pixdata >> 15), pal5bit(pixdata >> 10), pal5bit(pixdata >> 5), pal5bit(pixdata >> 0)); | |
| 576 | alpha = ~0; | |
| 577 | } | |
| 578 | break; | |
| 579 | ||
| 580 | case 1: /* 4-bit grayscale in low nibble */ | |
| 581 | for (x = 0; x < pixwidth; x++) | |
| 582 | { | |
| 583 | UINT8 grayvalue = pal4bit(texsrc[x] >> 0); | |
| 584 | alpha &= dest[x] = MAKE_ARGB(0xff, grayvalue, grayvalue, grayvalue); | |
| 585 | } | |
| 586 | break; | |
| 587 | ||
| 588 | case 2: /* 4-bit grayscale in 2nd nibble */ | |
| 589 | for (x = 0; x < pixwidth; x++) | |
| 590 | { | |
| 591 | UINT8 grayvalue = pal4bit(texsrc[x] >> 4); | |
| 592 | alpha &= dest[x] = MAKE_ARGB(0xff, grayvalue, grayvalue, grayvalue); | |
| 593 | } | |
| 594 | break; | |
| 595 | ||
| 596 | case 3: /* 4-bit grayscale in 3rd nibble */ | |
| 597 | for (x = 0; x < pixwidth; x++) | |
| 598 | { | |
| 599 | UINT8 grayvalue = pal4bit(texsrc[x] >> 8); | |
| 600 | alpha &= dest[x] = MAKE_ARGB(0xff, grayvalue, grayvalue, grayvalue); | |
| 601 | } | |
| 602 | break; | |
| 603 | ||
| 604 | case 4: /* 8-bit A4L4 */ | |
| 605 | for (x = 0; x < pixwidth; x++) | |
| 606 | { | |
| 607 | UINT8 pixdata = texsrc[x / 2] >> ((~x & 1) * 8); | |
| 608 | alpha &= dest[x] = MAKE_ARGB(pal4bit(pixdata >> 4), pal4bit(~pixdata), pal4bit(~pixdata), pal4bit(~pixdata)); | |
| 609 | } | |
| 610 | break; | |
| 611 | ||
| 612 | case 5: /* 8-bit grayscale */ | |
| 613 | for (x = 0; x < pixwidth; x++) | |
| 614 | { | |
| 615 | UINT8 grayvalue = texsrc[x / 2] >> ((~x & 1) * 8); | |
| 616 | alpha &= dest[x] = MAKE_ARGB(0xff, grayvalue, grayvalue, grayvalue); | |
| 617 | } | |
| 618 | break; | |
| 619 | ||
| 620 | case 6: /* 4-bit grayscale in high nibble */ | |
| 621 | for (x = 0; x < pixwidth; x++) | |
| 622 | { | |
| 623 | UINT8 grayvalue = pal4bit(texsrc[x] >> 12); | |
| 624 | alpha &= dest[x] = MAKE_ARGB(0xff, grayvalue, grayvalue, grayvalue); | |
| 625 | } | |
| 626 | break; | |
| 627 | ||
| 628 | case 7: /* 4-4-4-4 ARGB */ | |
| 629 | for (x = 0; x < pixwidth; x++) | |
| 630 | { | |
| 631 | UINT16 pixdata = texsrc[x]; | |
| 632 | alpha &= dest[x] = MAKE_ARGB(pal4bit(pixdata >> 0), pal4bit(pixdata >> 12), pal4bit(pixdata >> 8), pal4bit(pixdata >> 4)); | |
| 633 | } | |
| 634 | break; | |
| 635 | } | |
| 636 | ||
| 637 | /* create the horizontal mirror of this line */ | |
| 638 | for (x = 0; x < pixwidth; x++) | |
| 639 | dest[pixwidth * 2 - 1 - x] = dest[x]; | |
| 640 | } | |
| 641 | ||
| 642 | /* create the vertical mirror of the texture */ | |
| 643 | for (y = 0; y < pixheight; y++) | |
| 644 | memcpy(tex->data + 2 * pixwidth * (pixheight * 2 - 1 - y), tex->data + 2 * pixwidth * y, sizeof(rgb_t) * pixwidth * 2); | |
| 645 | ||
| 646 | /* remember the overall alpha */ | |
| 647 | tex->alpha = alpha >> 24; | |
| 648 | ||
| 649 | /* return a pointer to the texture */ | |
| 650 | return tex; | |
| 651 | } | |
| 652 | ||
| 653 | /*****************************************************************************/ | |
| 514 | 654 | /* Real3D Graphics stuff */ |
| 515 | 655 | |
| 516 | 656 | WRITE64_HANDLER( real3d_display_list_w ) |
| r1238 | r1239 | |
| 597 | 737 | int xpos = (header & 0x3f) * 32; |
| 598 | 738 | int ypos = ((header >> 7) & 0x1f) * 32; |
| 599 | 739 | int page = (header >> 20) & 0x1; |
| 600 | ||
| 740 | // int bitdepth = (header >> 23) & 0x1; | |
| 601 | 741 | |
| 602 | 742 | switch(header >> 24) |
| 603 | 743 | { |
| 604 | 744 | case 0x00: /* Texture with mipmaps */ |
| 605 | ||
| 745 | // if(bitdepth) { | |
| 606 | 746 | write_texture16(xpos, ypos, width, height, page, (UINT16*)data); |
| 607 | } else { | |
| 747 | invalidate_texture(page, header & 0x3f, (header >> 7) & 0x1f, (header >> 14) & 0x7, (header >> 17) & 0x7); | |
| 748 | // } else { | |
| 608 | 749 | /* TODO: 8-bit textures are weird. need to figure out some additional bits */ |
| 609 | 750 | //logerror("W: %d, H: %d, X: %d, Y: %d, P: %d, Bit: %d, : %08X, %08X\n", width, height, xpos, ypos, page, bitdepth, header & 0x00681040, header); |
| 610 | 751 | //write_texture8(xpos, ypos, width, height, page, (UINT16*)data); |
| 611 | ||
| 752 | // } | |
| 612 | 753 | break; |
| 613 | 754 | case 0x01: /* Texture without mipmaps */ |
| 614 | ||
| 755 | // if(bitdepth) { | |
| 615 | 756 | write_texture16(xpos, ypos, width, height, page, (UINT16*)data); |
| 616 | } else { | |
| 757 | invalidate_texture(page, header & 0x3f, (header >> 7) & 0x1f, (header >> 14) & 0x7, (header >> 17) & 0x7); | |
| 758 | // } else { | |
| 617 | 759 | /* TODO: 8-bit textures are weird. need to figure out some additional bits */ |
| 618 | 760 | //logerror("W: %d, H: %d, X: %d, Y: %d, P: %d, Bit: %d, : %08X, %08X\n", width, height, xpos, ypos, page, bitdepth, header & 0x00681040, header); |
| 619 | 761 | //write_texture8(xpos, ypos, width, height, page, (UINT16*)data); |
| 620 | ||
| 762 | // } | |
| 621 | 763 | break; |
| 622 | 764 | case 0x02: /* Only mipmaps */ |
| 623 | 765 | break; |
| r1238 | r1239 | |
| 644 | 786 | }; |
| 645 | 787 | } |
| 646 | 788 | texture_fifo_pos = 0; |
| 647 | real3d_display_list = 1; | |
| 789 | fillbitmap(zbuffer, 0, NULL); | |
| 790 | fillbitmap(bitmap3d, 0x8000, NULL); | |
| 791 | real3d_traverse_display_list(); | |
| 792 | // real3d_display_list = 1; | |
| 648 | 793 | } |
| 649 | 794 | |
| 650 | 795 | void real3d_display_list1_dma(UINT32 src, UINT32 dst, int length, int byteswap) |
| r1238 | r1239 | |
| 733 | 878 | real3d_display_list_end(); |
| 734 | 879 | } |
| 735 | 880 | |
| 881 | ||
| 736 | 882 | /*****************************************************************************/ |
| 737 | 883 | /* matrix and vector operations */ |
| 738 | 884 | |
| r1238 | r1239 | |
| 747 | 893 | } |
| 748 | 894 | |
| 749 | 895 | /* multiplies a 4-element vector by a 4x4 matrix */ |
| 750 | static void matrix_multiply_vector(MATRIX matrix, VECTOR v, VECTOR *p) | |
| 896 | static void matrix_multiply_vector(MATRIX matrix, const VECTOR v, VECTOR *p) | |
| 751 | 897 | { |
| 752 | VECTOR out; | |
| 753 | out[0] = (v[0] * matrix[0][0]) + (v[1] * matrix[1][0]) + (v[2] * matrix[2][0]) + (v[3] * matrix[3][0]); | |
| 754 | out[1] = (v[0] * matrix[0][1]) + (v[1] * matrix[1][1]) + (v[2] * matrix[2][1]) + (v[3] * matrix[3][1]); | |
| 755 | out[2] = (v[0] * matrix[0][2]) + (v[1] * matrix[1][2]) + (v[2] * matrix[2][2]) + (v[3] * matrix[3][2]); | |
| 756 | out[3] = (v[0] * matrix[0][3]) + (v[1] * matrix[1][3]) + (v[2] * matrix[2][3]) + (v[3] * matrix[3][3]); | |
| 757 | memcpy(p, &out, sizeof(VECTOR)); | |
| 898 | (*p)[0] = (v[0] * matrix[0][0]) + (v[1] * matrix[1][0]) + (v[2] * matrix[2][0]) + (v[3] * matrix[3][0]); | |
| 899 | (*p)[1] = (v[0] * matrix[0][1]) + (v[1] * matrix[1][1]) + (v[2] * matrix[2][1]) + (v[3] * matrix[3][1]); | |
| 900 | (*p)[2] = (v[0] * matrix[0][2]) + (v[1] * matrix[1][2]) + (v[2] * matrix[2][2]) + (v[3] * matrix[3][2]); | |
| 901 | (*p)[3] = (v[0] * matrix[0][3]) + (v[1] * matrix[1][3]) + (v[2] * matrix[2][3]) + (v[3] * matrix[3][3]); | |
| 758 | 902 | } |
| 759 | 903 | |
| 760 | 904 | /* multiplies a 4x4 matrix with another 4x4 matrix */ |
| r1238 | r1239 | |
| 809 | 953 | { |
| 810 | 954 | matrix_stack_ptr++; |
| 811 | 955 | if (matrix_stack_ptr >= MATRIX_STACK_SIZE) |
| 812 | { | |
| 813 | 956 | fatalerror("push_matrix_stack: matrix stack overflow"); |
| 814 | } | |
| 815 | 957 | |
| 816 | 958 | memcpy( &matrix_stack[matrix_stack_ptr], &matrix_stack[matrix_stack_ptr-1], sizeof(MATRIX)); |
| 817 | 959 | } |
| r1238 | r1239 | |
| 820 | 962 | { |
| 821 | 963 | matrix_stack_ptr--; |
| 822 | 964 | if (matrix_stack_ptr < 0) |
| 823 | { | |
| 824 | 965 | fatalerror("pop_matrix_stack: matrix stack underflow"); |
| 825 | } | |
| 826 | 966 | } |
| 827 | 967 | |
| 828 | 968 | void multiply_matrix_stack(MATRIX matrix) |
| r1238 | r1239 | |
| 845 | 985 | /*****************************************************************************/ |
| 846 | 986 | /* transformation and rasterizing */ |
| 847 | 987 | |
| 848 | INLINE void push_triangle(int alpha, TRIANGLE *tri) | |
| 849 | { | |
| 850 | if (alpha) | |
| 851 | { | |
| 852 | memcpy(&alpha_triangle_buffer[alpha_triangle_buffer_ptr], tri, sizeof(TRIANGLE)); | |
| 853 | alpha_triangle_buffer_ptr++; | |
| 854 | ||
| 855 | if (alpha_triangle_buffer_ptr >= MAX_TRIANGLES) | |
| 856 | { | |
| 857 | fatalerror("push_triangle: triangle buffer overflow!"); | |
| 858 | } | |
| 859 | } | |
| 860 | else | |
| 861 | { | |
| 862 | memcpy(&triangle_buffer[triangle_buffer_ptr], tri, sizeof(TRIANGLE)); | |
| 863 | triangle_buffer_ptr++; | |
| 864 | ||
| 865 | if (triangle_buffer_ptr >= MAX_TRIANGLES) | |
| 866 | { | |
| 867 | fatalerror("push_triangle: triangle buffer overflow!"); | |
| 868 | } | |
| 869 | } | |
| 870 | } | |
| 871 | ||
| 872 | static int texture_x; | |
| 873 | static int texture_y; | |
| 874 | static int texture_width; | |
| 875 | static int texture_height; | |
| 876 | static UINT32 texture_width_mask; | |
| 877 | static UINT32 texture_height_mask; | |
| 878 | static int texture_page; | |
| 879 | static int texture_coord_shift = 16; | |
| 880 | static int polygon_transparency = 0; | |
| 881 | static int polygon_intensity = 0; | |
| 882 | ||
| 883 | static int* texture_u_table; | |
| 884 | static int* texture_v_table; | |
| 885 | ||
| 886 | static UINT32 viewport_priority; | |
| 887 | ||
| 888 | #define ZBUFFER_SCALE 16777216.0 | |
| 889 | #define ZDIVIDE_SHIFT 16 | |
| 890 | ||
| 891 | 988 | #include "m3raster.c" |
| 892 | 989 | |
| 893 | 990 | INLINE int is_point_inside(float x, float y, float z, PLANE cp) |
| r1238 | r1239 | |
| 899 | 996 | return 0; |
| 900 | 997 | } |
| 901 | 998 | |
| 902 | INLINE float line_plane_intersection( | |
| 999 | INLINE float line_plane_intersection(const | |
| 903 | 1000 | { |
| 904 | 1001 | float x = v1->x - v2->x; |
| 905 | 1002 | float y = v1->y - v2->y; |
| 906 | float z = v1->z - v2->z; | |
| 907 | float t = ((cp.x * v1->x) + (cp.y * v1->y) + (cp.z * v1->z)) / ((cp.x * x) + (cp.y * y) + (cp.z * z)); | |
| 1003 | float z = v1->pz - v2->pz; | |
| 1004 | float t = ((cp.x * v1->x) + (cp.y * v1->y) + (cp.z * v1->pz)) / ((cp.x * x) + (cp.y * y) + (cp.z * z)); | |
| 908 | 1005 | return t; |
| 909 | 1006 | } |
| 910 | 1007 | |
| 911 | static int clip_polygon( | |
| 1008 | static int clip_polygon(const | |
| 912 | 1009 | { |
| 913 | | |
| 1010 | poly_vertex clipv[10]; | |
| 914 | 1011 | int clip_verts = 0; |
| 915 | 1012 | float t; |
| 916 | 1013 | int i; |
| 917 | 1014 | |
| 918 | int pv = num_vertices - 1; | |
| 1015 | int previ = num_vertices - 1; | |
| 919 | 1016 | |
| 920 | 1017 | for (i=0; i < num_vertices; i++) |
| 921 | 1018 | { |
| 922 | int v1_in = is_point_inside(v[i].x, v[i].y, v[i].z, cp); | |
| 923 | int v2_in = is_point_inside(v[pv].x, v[pv].y, v[pv].z, cp); | |
| 1019 | int v1_in = is_point_inside(v[i].x, v[i].y, v[i].pz, cp); | |
| 1020 | int v2_in = is_point_inside(v[previ].x, v[previ].y, v[previ].pz, cp); | |
| 924 | 1021 | |
| 925 | 1022 | if (v1_in && v2_in) /* edge is completely inside the volume */ |
| 926 | 1023 | { |
| 927 | | |
| 1024 | | |
| 928 | 1025 | ++clip_verts; |
| 929 | 1026 | } |
| 930 | 1027 | else if (!v1_in && v2_in) /* edge is entering the volume */ |
| 931 | 1028 | { |
| 932 | 1029 | /* insert vertex at intersection point */ |
| 933 | t = line_plane_intersection(&v[i], &v[pv], cp); | |
| 934 | clipv[clip_verts].x = v[i].x + ((v[pv].x - v[i].x) * t); | |
| 935 | clipv[clip_verts].y = v[i].y + ((v[pv].y - v[i].y) * t); | |
| 936 | clipv[clip_verts].z = v[i].z + ((v[pv].z - v[i].z) * t); | |
| 937 | clipv[clip_verts].u = (UINT32)((float)v[i].u + (((float)v[pv].u - (float)v[i].u) * t)); | |
| 938 | clipv[clip_verts].v = (UINT32)((float)v[i].v + (((float)v[pv].v - (float)v[i].v) * t)); | |
| 1030 | t = line_plane_intersection(&v[i], &v[previ], cp); | |
| 1031 | clipv[clip_verts].x = v[i].x + ((v[previ].x - v[i].x) * t); | |
| 1032 | clipv[clip_verts].y = v[i].y + ((v[previ].y - v[i].y) * t); | |
| 1033 | clipv[clip_verts].pz = v[i].pz + ((v[previ].pz - v[i].pz) * t); | |
| 1034 | clipv[clip_verts].pu = v[i].pu + ((v[previ].pu - v[i].pu) * t); | |
| 1035 | clipv[clip_verts].pv = v[i].pv + ((v[previ].pv - v[i].pv) * t); | |
| 939 | 1036 | ++clip_verts; |
| 940 | 1037 | } |
| 941 | 1038 | else if (v1_in && !v2_in) /* edge is leaving the volume */ |
| 942 | 1039 | { |
| 943 | 1040 | /* insert vertex at intersection point */ |
| 944 | t = line_plane_intersection(&v[i], &v[pv], cp); | |
| 945 | clipv[clip_verts].x = v[i].x + ((v[pv].x - v[i].x) * t); | |
| 946 | clipv[clip_verts].y = v[i].y + ((v[pv].y - v[i].y) * t); | |
| 947 | clipv[clip_verts].z = v[i].z + ((v[pv].z - v[i].z) * t); | |
| 948 | clipv[clip_verts].u = (UINT32)((float)v[i].u + (((float)v[pv].u - (float)v[i].u) * t)); | |
| 949 | clipv[clip_verts].v = (UINT32)((float)v[i].v + (((float)v[pv].v - (float)v[i].v) * t)); | |
| 1041 | t = line_plane_intersection(&v[i], &v[previ], cp); | |
| 1042 | clipv[clip_verts].x = v[i].x + ((v[previ].x - v[i].x) * t); | |
| 1043 | clipv[clip_verts].y = v[i].y + ((v[previ].y - v[i].y) * t); | |
| 1044 | clipv[clip_verts].pz = v[i].pz + ((v[previ].pz - v[i].pz) * t); | |
| 1045 | clipv[clip_verts].pu = v[i].pu + ((v[previ].pu - v[i].pu) * t); | |
| 1046 | clipv[clip_verts].pv = v[i].pv + ((v[previ].pv - v[i].pv) * t); | |
| 950 | 1047 | ++clip_verts; |
| 951 | 1048 | |
| 952 | 1049 | /* insert the existing vertex */ |
| 953 | | |
| 1050 | | |
| 954 | 1051 | ++clip_verts; |
| 955 | 1052 | } |
| 956 | 1053 | |
| 957 | pv = i; | |
| 1054 | previ = i; | |
| 958 | 1055 | } |
| 959 | memcpy(&vout[0], &clipv[0], sizeof( | |
| 1056 | memcpy(&vout[0], &clipv[0], sizeof(vout[0]) * clip_verts); | |
| 960 | 1057 | return clip_verts; |
| 961 | 1058 | } |
| 962 | 1059 | |
| r1238 | r1239 | |
| 971 | 1068 | |
| 972 | 1069 | static PLANE clip_plane[5]; |
| 973 | 1070 | |
| 974 | static void dr | |
| 1071 | static void render | |
| 975 | 1072 | { |
| 1073 | poly_extra_data *extra = poly_get_extra_data(poly); | |
| 1074 | poly_draw_tri_scanline callback = NULL; | |
| 1075 | ||
| 1076 | tri->v[0].pz = 1.0f / tri->v[0].pz; | |
| 1077 | tri->v[1].pz = 1.0f / tri->v[1].pz; | |
| 1078 | tri->v[2].pz = 1.0f / tri->v[2].pz; | |
| 1079 | ||
| 1080 | if (tri->param & TRI_PARAM_TEXTURE_ENABLE) | |
| 1081 | { | |
| 1082 | tri->v[0].pu = tri->v[0].pu * tri->v[0].pz * 256.0f; | |
| 1083 | tri->v[0].pv = tri->v[0].pv * tri->v[0].pz * 256.0f; | |
| 1084 | tri->v[1].pu = tri->v[1].pu * tri->v[1].pz * 256.0f; | |
| 1085 | tri->v[1].pv = tri->v[1].pv * tri->v[1].pz * 256.0f; | |
| 1086 | tri->v[2].pu = tri->v[2].pu * tri->v[2].pz * 256.0f; | |
| 1087 | tri->v[2].pv = tri->v[2].pv * tri->v[2].pz * 256.0f; | |
| 1088 | ||
| 1089 | extra->texture = get_texture((tri->param & TRI_PARAM_TEXTURE_PAGE) ? 1 : 0, tri->texture_x, tri->texture_y, tri->texture_width, tri->texture_height, tri->texture_format); | |
| 1090 | extra->texture_param = tri->param; | |
| 1091 | extra->polygon_transparency = tri->transparency; | |
| 1092 | extra->polygon_intensity = tri->intensity; | |
| 1093 | ||
| 1094 | if (tri->param & TRI_PARAM_ALPHA_TEST) | |
| 1095 | callback = draw_scanline_alpha_test; | |
| 1096 | else if (extra->texture->alpha == 0xff) | |
| 1097 | callback = (tri->transparency >= 32) ? draw_scanline_normal : draw_scanline_trans; | |
| 1098 | else | |
| 1099 | callback = draw_scanline_alpha; | |
| 1100 | poly_render_triangle(poly, bitmap3d, &clip3d, callback, 3, &tri->v[0], &tri->v[1], &tri->v[2]); | |
| 1101 | } | |
| 1102 | else | |
| 1103 | { | |
| 1104 | extra->polygon_transparency = tri->transparency; | |
| 1105 | extra->polygon_intensity = tri->intensity; | |
| 1106 | extra->color = tri->color; | |
| 1107 | ||
| 1108 | poly_render_triangle(poly, bitmap3d, &clip3d, draw_scanline_color, 1, &tri->v[0], &tri->v[1], &tri->v[2]); | |
| 1109 | } | |
| 1110 | } | |
| 1111 | ||
| 1112 | static void draw_model(UINT32 addr) | |
| 1113 | { | |
| 1114 | UINT32 *model = (addr >= 0x100000) ? &model3_vrom[addr] : &polygon_ram[addr]; | |
| 976 | 1115 | UINT32 header[7]; |
| 977 | 1116 | int index = 0; |
| 978 | int last_polygon = 0; | |
| 979 | int num_vertices, num_reused_vertices; | |
| 1117 | int last_polygon = FALSE; | |
| 1118 | int num_vertices; | |
| 980 | 1119 | int i, v, vi; |
| 981 | 1120 | float fixed_point_fraction; |
| 982 | VERTEX vertex[4]; | |
| 983 | VERTEX prev_vertex[4]; | |
| 984 | VERTEX clip_vert[10]; | |
| 1121 | poly_vertex vertex[4]; | |
| 1122 | poly_vertex prev_vertex[4]; | |
| 1123 | poly_vertex clip_vert[10]; | |
| 985 | 1124 | |
| 986 | 1125 | int polynum = 0; |
| 987 | 1126 | MATRIX transform_matrix; |
| 988 | 1127 | float center_x, center_y; |
| 989 | 1128 | |
| 990 | 1129 | if(model3_step < 0x15) { /* position coordinates are 17.15 fixed-point in Step 1.0 */ |
| 991 | fixed_point_fraction = 32768.0f; | |
| 1130 | fixed_point_fraction = 1.0f / 32768.0f; | |
| 992 | 1131 | } else { /* 13.19 fixed-point in other Steps */ |
| 993 | fixed_point_fraction = 524288.0f; | |
| 1132 | fixed_point_fraction = 1.0f / 524288.0f; | |
| 994 | 1133 | } |
| 995 | 1134 | |
| 996 | 1135 | get_top_matrix(&transform_matrix); |
| r1238 | r1239 | |
| 999 | 1138 | center_x = (float)(viewport_region_x + (viewport_region_width / 2)); |
| 1000 | 1139 | center_y = (float)(viewport_region_y + (viewport_region_height / 2)); |
| 1001 | 1140 | |
| 1002 | while(!last_polygon) | |
| 1141 | while (!last_polygon) | |
| 1003 | 1142 | { |
| 1143 | float texture_coord_scale; | |
| 1004 | 1144 | UINT16 color; |
| 1005 | 1145 | VECTOR3 normal; |
| 1006 | 1146 | VECTOR3 sn; |
| r1238 | r1239 | |
| 1008 | 1148 | TRIANGLE tri; |
| 1009 | 1149 | float dot; |
| 1010 | 1150 | int intensity; |
| 1151 | int polygon_transparency; | |
| 1011 | 1152 | |
| 1012 | for(i=0; i < 7; i++) | |
| 1153 | for (i = 0; i < 7; i++) | |
| 1013 | 1154 | header[i] = model[index++]; |
| 1014 | } | |
| 1015 | 1155 | |
| 1016 | if(header[6] == 0) { | |
| 1017 | //logerror("draw_model: header word 6 == 0\n"); | |
| 1156 | if (header[6] == 0) | |
| 1018 | 1157 | return; |
| 1019 | } | |
| 1020 | 1158 | |
| 1021 | if(header[1] & 0x4) | |
| 1022 | last_polygon = 1; | |
| 1159 | if (header[1] & 0x4) | |
| 1160 | last_polygon = TRUE; | |
| 1023 | 1161 | |
| 1024 | if(header[0] & 0x40) | |
| 1025 | num_vertices = 4; | |
| 1026 | else | |
| 1027 | num_vertices = 3; | |
| 1162 | num_vertices = (header[0] & 0x40) ? 4 : 3; | |
| 1028 | 1163 | |
| 1029 | num_reused_vertices = num_bits[header[0] & 0xf]; | |
| 1164 | /* texture coordinates are 16.0 or 13.3 fixed-point */ | |
| 1165 | texture_coord_scale = (header[1] & 0x40) ? 1.0f : (1.0f / 8.0f); | |
| 1030 | 1166 | |
| 1031 | if(header[1] & 0x40) { /* texture coordinates are 16.0 fixed-point */ | |
| 1032 | texture_coord_shift = 16; | |
| 1033 | } else { /* texture coordinates are 13.3 fixed-point */ | |
| 1034 | texture_coord_shift = 19; | |
| 1035 | } | |
| 1036 | ||
| 1037 | 1167 | /* polygon normal (sign + 1.22 fixed-point) */ |
| 1038 | normal[0] = (float)((int)header[1] >> 8) / 4194304.0f; | |
| 1039 | normal[1] = (float)((int)header[2] >> 8) / 4194304.0f; | |
| 1040 | normal[2] = (float)((int)header[3] >> 8) / 4194304.0f; | |
| 1168 | normal[0] = (float)((INT32)header[1] >> 8) * (1.0f / 4194304.0f); | |
| 1169 | normal[1] = (float)((INT32)header[2] >> 8) * (1.0f / 4194304.0f); | |
| 1170 | normal[2] = (float)((INT32)header[3] >> 8) * (1.0f / 4194304.0f); | |
| 1041 | 1171 | |
| 1172 | /* load reused vertices */ | |
| 1042 | 1173 | vi = 0; |
| 1174 | for (v = 0; v < 4; v++) | |
| 1175 | if (header[0] & (1 << v)) | |
| 1176 | vertex[vi++] = prev_vertex[v]; | |
| 1043 | 1177 | |
| 1044 | /* load reused vertices */ | |
| 1045 | for(v=0; v < 4; v++) | |
| 1046 | { | |
| 1047 | if(header[0] & (1 << v)) { | |
| 1048 | memcpy(&vertex[vi], &prev_vertex[v], sizeof(VERTEX)); | |
| 1049 | ++vi; | |
| 1050 | } | |
| 1051 | } | |
| 1052 | ||
| 1053 | 1178 | /* load new vertices */ |
| 1054 | for( | |
| 1179 | for ( | |
| 1055 | 1180 | { |
| 1056 | vertex[vi].x = (float)((int)model[index++]) / fixed_point_fraction; | |
| 1057 | vertex[vi].y = (float)((int)model[index++]) / fixed_point_fraction; | |
| 1058 | vertex[vi].z = (float)((int)model[index++]) / fixed_point_fraction; | |
| 1059 | ||
| 1060 | vertex[vi].u = (UINT16)(model[index] >> 16); | |
| 1061 | vertex[vi].v = (UINT16)(model[index]); | |
| 1062 | ++index; | |
| 1063 | ++vi; | |
| 1181 | vertex[vi].x = (float)((INT32)model[index++]) * fixed_point_fraction; | |
| 1182 | vertex[vi].y = (float)((INT32)model[index++]) * fixed_point_fraction; | |
| 1183 | vertex[vi].pz = (float)((INT32)model[index++]) * fixed_point_fraction; | |
| 1184 | vertex[vi].pu = (UINT16)(model[index] >> 16); | |
| 1185 | vertex[vi].pv = (UINT16)(model[index++]); | |
| 1064 | 1186 | } |
| 1065 | 1187 | |
| 1066 | 1188 | /* Copy current vertices as previous vertices */ |
| 1067 | memcpy(prev_vertex, vertex, sizeof( | |
| 1189 | memcpy(prev_vertex, vertex, sizeof(poly_vertex) * 4); | |
| 1068 | 1190 | |
| 1069 | 1191 | color = (((header[4] >> 27) & 0x1f) << 10) | (((header[4] >> 19) & 0x1f) << 5) | ((header[4] >> 11) & 0x1f); |
| 1070 | if(header[6] & 0x800000) { | |
| 1071 | polygon_transparency = 32; | |
| 1072 | } else { | |
| 1073 | polygon_transparency = (header[6] >> 18) & 0x1f; | |
| 1074 | } | |
| 1192 | polygon_transparency = (header[6] & 0x800000) ? 32 : ((header[6] >> 18) & 0x1f); | |
| 1075 | 1193 | |
| 1076 | 1194 | /* transform polygon normal to view-space */ |
| 1077 | 1195 | sn[0] = (normal[0] * transform_matrix[0][0]) + |
| r1238 | r1239 | |
| 1090 | 1208 | |
| 1091 | 1209 | /* TODO: backface culling */ |
| 1092 | 1210 | /* transform vertices */ |
| 1093 | for(i=0; i < num_vertices; i++) { | |
| 1211 | for (i = 0; i < num_vertices; i++) | |
| 1212 | { | |
| 1094 | 1213 | VECTOR vect; |
| 1095 | 1214 | |
| 1096 | 1215 | vect[0] = vertex[i].x; |
| 1097 | 1216 | vect[1] = vertex[i].y; |
| 1098 | vect[2] = vertex[i].z; | |
| 1217 | vect[2] = vertex[i].pz; | |
| 1099 | 1218 | vect[3] = 1.0f; |
| 1100 | 1219 | |
| 1101 | 1220 | /* transform to world-space */ |
| r1238 | r1239 | |
| 1104 | 1223 | /* apply coordinate system */ |
| 1105 | 1224 | clip_vert[i].x = p[i][0] * coordinate_system[0][1]; |
| 1106 | 1225 | clip_vert[i].y = p[i][1] * coordinate_system[1][2]; |
| 1107 | clip_vert[i].z = p[i][2] * coordinate_system[2][0]; | |
| 1108 | clip_vert[i].u = vertex[i].u; | |
| 1109 | clip_vert[i].v = vertex[i].v; | |
| 1226 | clip_vert[i].pz = p[i][2] * coordinate_system[2][0]; | |
| 1227 | clip_vert[i].pu = vertex[i].pu * texture_coord_scale; | |
| 1228 | clip_vert[i].pv = vertex[i].pv * texture_coord_scale; | |
| 1110 | 1229 | } |
| 1111 | 1230 | |
| 1112 | 1231 | /* clip against view frustum */ |
| r1238 | r1239 | |
| 1118 | 1237 | |
| 1119 | 1238 | /* homogeneous Z-divide, screen-space transformation */ |
| 1120 | 1239 | for(i=0; i < num_vertices; i++) { |
| 1121 | float ooz = 1.0f / clip_vert[i].z; | |
| 1240 | float ooz = 1.0f / clip_vert[i].pz; | |
| 1122 | 1241 | clip_vert[i].x = ((clip_vert[i].x * ooz) * viewport_focal_length) + center_x; |
| 1123 | 1242 | clip_vert[i].y = ((clip_vert[i].y * ooz) * viewport_focal_length) + center_y; |
| 1124 | 1243 | } |
| r1238 | r1239 | |
| 1145 | 1264 | |
| 1146 | 1265 | for (i=2; i < num_vertices; i++) |
| 1147 | 1266 | { |
| 1148 | memcpy(&tri.v[0], &clip_vert[0], sizeof(VERTEX)); | |
| 1149 | memcpy(&tri.v[1], &clip_vert[i-1], sizeof(VERTEX)); | |
| 1150 | memcpy(&tri.v[2], &clip_vert[i], sizeof(VERTEX)); | |
| 1267 | memcpy(&tri.v[0], &clip_vert[0], sizeof(poly_vertex)); | |
| 1268 | memcpy(&tri.v[1], &clip_vert[i-1], sizeof(poly_vertex)); | |
| 1269 | memcpy(&tri.v[2], &clip_vert[i], sizeof(poly_vertex)); | |
| 1151 | 1270 | tri.texture_x = ((header[4] & 0x1f) << 1) | ((header[5] >> 7) & 0x1); |
| 1152 | 1271 | tri.texture_y = (header[5] & 0x1f); |
| 1153 | 1272 | tri.texture_width = ((header[3] >> 3) & 0x7); |
| r1238 | r1239 | |
| 1155 | 1274 | tri.texture_format = (header[6] >> 7) & 0x7; |
| 1156 | 1275 | tri.transparency = polygon_transparency; |
| 1157 | 1276 | tri.intensity = intensity; |
| 1158 | tri.color = color; | |
| 1159 | tri.viewport_priority = viewport_priority; | |
| 1160 | tri.texture_coord_shift = texture_coord_shift; | |
| 1277 | tri.color = color; | |
| 1161 | 1278 | |
| 1162 | 1279 | tri.param = 0; |
| 1163 | 1280 | tri.param |= (header[4] & 0x40) ? TRI_PARAM_TEXTURE_PAGE : 0; |
| 1164 | 1281 | tri.param |= (header[6] & 0x4000000) ? TRI_PARAM_TEXTURE_ENABLE : 0; |
| 1165 | 1282 | tri.param |= (header[2] & 0x2) ? TRI_PARAM_TEXTURE_MIRROR_U : 0; |
| 1166 | 1283 | tri.param |= (header[2] & 0x1) ? TRI_PARAM_TEXTURE_MIRROR_V : 0; |
| 1284 | tri.param |= (header[6] & 0x80000000) ? TRI_PARAM_ALPHA_TEST : 0; | |
| 1167 | 1285 | |
| 1168 | if (((header[4] & 0x4000000) && (header[6] & 0x80000000 || header[6] & 0x1)) | |
| 1169 | || (polygon_transparency < 32) || (tri.texture_format == 7)) | |
| 1170 | { | |
| 1171 | push_triangle(1, &tri); | |
| 1172 | } | |
| 1173 | else | |
| 1174 | { | |
| 1175 | push_triangle(0, &tri); | |
| 1176 | } | |
| 1286 | render_one(&tri); | |
| 1177 | 1287 | } |
| 1178 | 1288 | |
| 1179 | 1289 | ++polynum; |
| 1180 | 1290 | }; |
| 1181 | 1291 | } |
| 1182 | 1292 | |
| 1183 | static void render_triangles(void) | |
| 1184 | { | |
| 1185 | int i; | |
| 1186 | 1293 | |
| 1187 | for (i=0; i < triangle_buffer_ptr; i++) | |
| 1188 | { | |
| 1189 | TRIANGLE *tri = &triangle_buffer[i]; | |
| 1190 | ||
| 1191 | if (tri->param & TRI_PARAM_TEXTURE_ENABLE) | |
| 1192 | { | |
| 1193 | texture_x = tri->texture_x * 32; | |
| 1194 | texture_y = tri->texture_y * 32; | |
| 1195 | texture_page = (tri->param & TRI_PARAM_TEXTURE_PAGE) ? 1 : 0; | |
| 1196 | texture_width = 32 << tri->texture_width; | |
| 1197 | texture_height = 32 << tri->texture_height; | |
| 1198 | texture_width_mask = (texture_width << 1) - 1; | |
| 1199 | texture_height_mask = (texture_height << 1) - 1; | |
| 1200 | polygon_intensity = tri->intensity; | |
| 1201 | viewport_priority = tri->viewport_priority; | |
| 1202 | texture_coord_shift = tri->texture_coord_shift; | |
| 1203 | ||
| 1204 | if (tri->param & TRI_PARAM_TEXTURE_MIRROR_U) | |
| 1205 | { | |
| 1206 | texture_u_table = texture_mirror_table[tri->texture_width]; | |
| 1207 | } | |
| 1208 | else | |
| 1209 | { | |
| 1210 | texture_u_table = texture_wrap_table[tri->texture_width]; | |
| 1211 | } | |
| 1212 | ||
| 1213 | if (tri->param & TRI_PARAM_TEXTURE_MIRROR_V) | |
| 1214 | { | |
| 1215 | texture_v_table = texture_mirror_table[tri->texture_height]; | |
| 1216 | } | |
| 1217 | else | |
| 1218 | { | |
| 1219 | texture_v_table = texture_wrap_table[tri->texture_height]; | |
| 1220 | } | |
| 1221 | ||
| 1222 | switch (tri->texture_format) | |
| 1223 | { | |
| 1224 | case 0: draw_triangle_tex1555(tri->v[0], tri->v[1], tri->v[2]); break; /* ARGB1555 */ | |
| 1225 | case 7: draw_triangle_tex4444(tri->v[0], tri->v[1], tri->v[2]); break; /* ARGB4444 */ | |
| 1226 | } | |
| 1227 | } | |
| 1228 | else | |
| 1229 | { | |
| 1230 | polygon_intensity = tri->intensity; | |
| 1231 | viewport_priority = tri->viewport_priority; | |
| 1232 | texture_coord_shift = tri->texture_coord_shift; | |
| 1233 | ||
| 1234 | draw_triangle_color(tri->v[0], tri->v[1], tri->v[2], tri->color); | |
| 1235 | } | |
| 1236 | } | |
| 1237 | ||
| 1238 | //for (i=0; i < alpha_triangle_buffer_ptr; i++) | |
| 1239 | for (i=alpha_triangle_buffer_ptr-1; i >= 0; i--) | |
| 1240 | { | |
| 1241 | TRIANGLE *tri = &alpha_triangle_buffer[i]; | |
| 1242 | ||
| 1243 | if (tri->param & TRI_PARAM_TEXTURE_ENABLE) | |
| 1244 | { | |
| 1245 | texture_x = tri->texture_x * 32; | |
| 1246 | texture_y = tri->texture_y * 32; | |
| 1247 | texture_page = (tri->param & TRI_PARAM_TEXTURE_PAGE) ? 1 : 0; | |
| 1248 | texture_width = 32 << tri->texture_width; | |
| 1249 | texture_height = 32 << tri->texture_height; | |
| 1250 | texture_width_mask = (texture_width << 1) - 1; | |
| 1251 | texture_height_mask = (texture_height << 1) - 1; | |
| 1252 | polygon_transparency = tri->transparency; | |
| 1253 | polygon_intensity = tri->intensity; | |
| 1254 | viewport_priority = tri->viewport_priority; | |
| 1255 | texture_coord_shift = tri->texture_coord_shift; | |
| 1256 | ||
| 1257 | if (tri->param & TRI_PARAM_TEXTURE_MIRROR_U) | |
| 1258 | { | |
| 1259 | texture_u_table = texture_mirror_table[tri->texture_width]; | |
| 1260 | } | |
| 1261 | else | |
| 1262 | { | |
| 1263 | texture_u_table = texture_wrap_table[tri->texture_width]; | |
| 1264 | } | |
| 1265 | ||
| 1266 | if (tri->param & TRI_PARAM_TEXTURE_MIRROR_V) | |
| 1267 | { | |
| 1268 | texture_v_table = texture_mirror_table[tri->texture_height]; | |
| 1269 | } | |
| 1270 | else | |
| 1271 | { | |
| 1272 | texture_v_table = texture_wrap_table[tri->texture_height]; | |
| 1273 | } | |
| 1274 | ||
| 1275 | switch (tri->texture_format) | |
| 1276 | { | |
| 1277 | case 0: /* ARGB1555 */ | |
| 1278 | { | |
| 1279 | if (tri->transparency < 32) | |
| 1280 | { | |
| 1281 | draw_triangle_tex1555_trans(tri->v[0], tri->v[1], tri->v[2]); | |
| 1282 | } | |
| 1283 | else | |
| 1284 | { | |
| 1285 | draw_triangle_tex1555_alpha(tri->v[0], tri->v[1], tri->v[2]); | |
| 1286 | } | |
| 1287 | break; | |
| 1288 | } | |
| 1289 | ||
| 1290 | case 7: /* ARGB4444 */ | |
| 1291 | { | |
| 1292 | draw_triangle_tex4444_alpha(tri->v[0], tri->v[1], tri->v[2]); | |
| 1293 | break; | |
| 1294 | } | |
| 1295 | } | |
| 1296 | } | |
| 1297 | else | |
| 1298 | { | |
| 1299 | polygon_transparency = tri->transparency; | |
| 1300 | polygon_intensity = tri->intensity; | |
| 1301 | viewport_priority = tri->viewport_priority; | |
| 1302 | texture_coord_shift = tri->texture_coord_shift; | |
| 1303 | ||
| 1304 | draw_triangle_color_trans(tri->v[0], tri->v[1], tri->v[2], tri->color); | |
| 1305 | } | |
| 1306 | } | |
| 1307 | } | |
| 1308 | ||
| 1309 | 1294 | /*****************************************************************************/ |
| 1310 | 1295 | /* display list parser */ |
| 1311 | 1296 | |
| r1238 | r1239 | |
| 1327 | 1312 | } |
| 1328 | 1313 | return &culling_ram[address]; |
| 1329 | 1314 | } |
| 1330 | return | |
| 1315 | return NULL; | |
| 1331 | 1316 | } |
| 1332 | 1317 | |
| 1333 | 1318 | static void load_matrix(int matrix_num, MATRIX *out) |
| 1334 | 1319 | { |
| 1335 | MATRIX m; | |
| 1336 | float *matrix = (float*)get_memory_pointer(matrix_base_address + (matrix_num*12)); | |
| 1320 | float *matrix = (float *)get_memory_pointer(matrix_base_address + matrix_num * 12); | |
| 1337 | 1321 | |
| 1338 | m[0][0] = matrix[3]; m[0][1] = matrix[6]; m[0][2] = matrix[9]; m[0][3] = 0.0f; | |
| 1339 | m[1][0] = matrix[4]; m[1][1] = matrix[7]; m[1][2] = matrix[10]; m[1][3] = 0.0f; | |
| 1340 | m[2][0] = matrix[5]; m[2][1] = matrix[8]; m[2][2] = matrix[11]; m[2][3] = 0.0f; | |
| 1341 | m[3][0] = matrix[0]; m[3][1] = matrix[1]; m[3][2] = matrix[2]; m[3][3] = 1.0f; | |
| 1342 | ||
| 1343 | memcpy(out, &m, sizeof(MATRIX)); | |
| 1322 | (*out)[0][0] = matrix[3]; (*out)[0][1] = matrix[6]; (*out)[0][2] = matrix[9]; (*out)[0][3] = 0.0f; | |
| 1323 | (*out)[1][0] = matrix[4]; (*out)[1][1] = matrix[7]; (*out)[1][2] = matrix[10]; (*out)[1][3] = 0.0f; | |
| 1324 | (*out)[2][0] = matrix[5]; (*out)[2][1] = matrix[8]; (*out)[2][2] = matrix[11]; (*out)[2][3] = 0.0f; | |
| 1325 | (*out)[3][0] = matrix[0]; (*out)[3][1] = matrix[1]; (*out)[3][2] = matrix[2]; (*out)[3][3] = 1.0f; | |
| 1344 | 1326 | } |
| 1345 | 1327 | |
| 1346 | static void traverse_list4(UINT32 address) | |
| 1328 | static void traverse_list4(int lod_num, UINT32 address) | |
| 1347 | 1329 | { |
| 1330 | /* does something with the LOD selection */ | |
| 1348 | 1331 | UINT32 *list = get_memory_pointer(address); |
| 1349 | 1332 | UINT32 link = list[0]; |
| 1350 | 1333 | |
| 1351 | if ((link & 0xffffff) >= 0x100000) /* VROM model */ | |
| 1352 | { | |
| 1353 | draw_model(&model3_vrom[link & 0xffffff]); | |
| 1354 | } | |
| 1355 | else { /* model in polygon ram */ | |
| 1356 | /* TODO: polygon ram actually overrides the lowest 4MB of VROM. | |
| 1357 | by moving the polygon ram there we could get rid of this distinction */ | |
| 1358 | draw_model(&polygon_ram[link & 0xffffff]); | |
| 1359 | } | |
| 1334 | draw_model(link & 0xffffff); | |
| 1360 | 1335 | } |
| 1361 | 1336 | |
| 1362 | 1337 | static void traverse_list(UINT32 address) |
| 1363 | 1338 | { |
| 1364 | 1339 | UINT32 *list = get_memory_pointer(address); |
| 1365 | int end = 0; | |
| 1366 | 1340 | int list_ptr = 0; |
| 1367 | 1341 | |
| 1368 | 1342 | if (list_depth > 2) |
| r1238 | r1239 | |
| 1370 | 1344 | |
| 1371 | 1345 | list_depth++; |
| 1372 | 1346 | |
| 1373 | /* TODO: traverse from end to beginning may be correct rendering order */ | |
| 1374 | ||
| 1375 | while(!end) | |
| 1347 | /* find the end of the list */ | |
| 1348 | while (1) | |
| 1376 | 1349 | { |
| 1377 | 1350 | address = list[list_ptr++]; |
| 1378 | ||
| 1379 | //if (address & 0x02000000 || address == 0) { | |
| 1380 | if(address == 0 || (address >> 24) != 0) { | |
| 1381 | end = 1; | |
| 1351 | if (address & 0x02000000) | |
| 1352 | break; | |
| 1353 | if (address == 0 || (address >> 24) != 0) | |
| 1354 | { | |
| 1355 | list_ptr--; | |
| 1356 | break; | |
| 1382 | 1357 | } |
| 1358 | } | |
| 1383 | 1359 | |
| 1384 | address &= 0xffffff; | |
| 1360 | /* walk it backwards */ | |
| 1361 | while (list_ptr > 0) | |
| 1362 | { | |
| 1363 | address = list[--list_ptr] & 0xffffff; | |
| 1364 | if (address != 0 && address != 0x800800) | |
| 1365 | // if (address != 0) | |
| 1366 | draw_block(address); | |
| 1367 | } | |
| 1385 | 1368 | |
| 1386 | if (address != 0 && address != 0x800800) { | |
| 1387 | traverse_node(address); | |
| 1388 | } | |
| 1389 | }; | |
| 1390 | ||
| 1391 | 1369 | list_depth--; |
| 1392 | 1370 | } |
| 1393 | 1371 | |
| 1394 | ||
| 1372 | INLINE void proce | |
| 1395 | 1373 | { |
| 1396 | UINT32 *node; | |
| 1374 | if (link != 0 && link != 0x0fffffff && link != 0x00800800 && link != 0x01000000) | |
| 1375 | { | |
| 1376 | switch (link >> 24) | |
| 1377 | { | |
| 1378 | case 0x00: /* link to another node */ | |
| 1379 | draw_block(link & 0xffffff); | |
| 1380 | break; | |
| 1381 | ||
| 1382 | case 0x01: | |
| 1383 | case 0x03: /* both of these link to models, is there any difference ? */ | |
| 1384 | draw_model(link & 0xffffff); | |
| 1385 | break; | |
| 1386 | ||
| 1387 | case 0x04: /* list of links */ | |
| 1388 | traverse_list(link & 0xffffff); | |
| 1389 | break; | |
| 1390 | ||
| 1391 | default: | |
| 1392 | logerror("process_link %08X: link = %08X\n", address, link); | |
| 1393 | break; | |
| 1394 | } | |
| 1395 | } | |
| 1396 | } | |
| 1397 | ||
| 1398 | static void draw_block(UINT32 address) | |
| 1399 | { | |
| 1400 | const UINT32 *node = get_memory_pointer(address); | |
| 1397 | 1401 | UINT32 link; |
| 1398 | 1402 | int node_matrix; |
| 1399 | 1403 | float x, y, z; |
| 1400 | 1404 | MATRIX matrix; |
| 1401 | 1405 | int offset; |
| 1402 | 1406 | |
| 1403 | if(model3_step < 0x15) { | |
| 1404 | offset = 2; | |
| 1405 | } else { | |
| 1406 | offset = 0; | |
| 1407 | } | |
| 1407 | offset = (model3_step < 0x15) ? 2 : 0; | |
| 1408 | link = node[7 - offset]; | |
| 1408 | 1409 | |
| 1409 | node = get_memory_pointer(address); | |
| 1410 | ||
| 1411 | /* apply node transformation and translation */ | |
| 1412 | node_matrix = node[3-offset] & 0xfff; | |
| 1410 | /* apply matrix and translation */ | |
| 1411 | node_matrix = node[3 - offset] & 0xfff; | |
| 1413 | 1412 | load_matrix(node_matrix, &matrix); |
| 1414 | 1413 | |
| 1415 | 1414 | push_matrix_stack(); |
| 1416 | if (node_matrix != 0) { | |
| 1417 | multiply_matrix_stack(matrix); | |
| 1418 | } | |
| 1419 | if (node[0] & 0x10) { | |
| 1420 | x = *(float*)&node[4-offset]; | |
| 1421 | y = *(float*)&node[5-offset]; | |
| 1422 | z = *(float*)&node[6-offset]; | |
| 1415 | ||
| 1416 | if (node[0] & 0x10) | |
| 1417 | { | |
| 1418 | x = *(float *)&node[4 - offset]; | |
| 1419 | y = *(float *)&node[5 - offset]; | |
| 1420 | z = *(float *)&node[6 - offset]; | |
| 1423 | 1421 | translate_matrix_stack(x, y, z); |
| 1424 | 1422 | } |
| 1423 | else if (node_matrix != 0) | |
| 1424 | multiply_matrix_stack(matrix); | |
| 1425 | 1425 | |
| 1426 | /* handle the link */ | |
| 1427 | /* TODO: should we handle the second one first ? */ | |
| 1428 | link = node[7-offset]; | |
| 1426 | /* bit 0x08 of word 0 indicates a pointer list */ | |
| 1427 | if (node[0] & 0x08) | |
| 1428 | traverse_list4((node[3 - offset] >> 12) & 0x7f, link & 0xffffff); | |
| 1429 | else | |
| 1430 | process_link(address, link); | |
| 1429 | 1431 | |
| 1430 | if (node[0] & 0x08) { | |
| 1431 | /* TODO: this is a pointer list with 4 links. suspected to do level of detail (LOD) selection. */ | |
| 1432 | traverse_list4(link & 0xffffff); | |
| 1433 | } | |
| 1434 | else { | |
| 1435 | if (link != 0x0fffffff && link != 0x00800800 && link != 0) | |
| 1436 | { | |
| 1437 | if (link != 0x01000000) { | |
| 1438 | switch(link >> 24) | |
| 1439 | { | |
| 1440 | case 0x00: /* link to another node */ | |
| 1441 | traverse_node(link & 0xffffff); | |
| 1442 | break; | |
| 1443 | ||
| 1444 | case 0x01: | |
| 1445 | case 0x03: /* both of these link to models, is there any difference ? */ | |
| 1446 | if ((link & 0xffffff) >= 0x100000) /* VROM model */ | |
| 1447 | { | |
| 1448 | draw_model(&model3_vrom[link & 0xffffff]); | |
| 1449 | } | |
| 1450 | else { /* model in polygon ram */ | |
| 1451 | /* TODO: polygon ram actually overrides the lowest 4MB of VROM. | |
| 1452 | by moving the polygon ram there we could get rid of this distinction */ | |
| 1453 | draw_model(&polygon_ram[link & 0xffffff]); | |
| 1454 | } | |
| 1455 | break; | |
| 1456 | ||
| 1457 | case 0x04: /* list of links */ | |
| 1458 | traverse_list(link & 0xffffff); | |
| 1459 | break; | |
| 1460 | ||
| 1461 | default: | |
| 1462 | logerror("traverse_node %08X: link 1 = %08X\n", address, link); | |
| 1463 | break; | |
| 1464 | } | |
| 1465 | } | |
| 1466 | } else { | |
| 1467 | logerror("traverse_node %08X: link 1 = %08X\n", address, link); | |
| 1468 | } | |
| 1469 | } | |
| 1470 | ||
| 1471 | 1432 | pop_matrix_stack(); |
| 1472 | 1433 | |
| 1473 | 1434 | /* handle the second link */ |
| 1474 | link = node[8-offset]; | |
| 1475 | ||
| 1476 | if (link != 0x00800800 && link != 0) | |
| 1477 | { | |
| 1478 | if (link != 0x01000000 && (link >> 24) == 0) { | |
| 1479 | traverse_node(link & 0xffffff); | |
| 1480 | } | |
| 1481 | } else { | |
| 1482 | logerror("traverse_node %08X: link 2 = %08X\n", address, link); | |
| 1483 | } | |
| 1435 | link = node[8 - offset]; | |
| 1436 | process_link(address, link); | |
| 1484 | 1437 | } |
| 1485 | 1438 | |
| 1486 | static void | |
| 1439 | static void draw_viewp | |
| 1487 | 1440 | { |
| 1488 | UINT32 *node; | |
| 1489 | UINT32 link_address, link_node; | |
| 1441 | const UINT32 *node = get_memory_pointer(address); | |
| 1442 | UINT32 link_address; | |
| 1490 | 1443 | float viewport_left, viewport_right, viewport_top, viewport_bottom; |
| 1491 | 1444 | float fov_x, fov_y; |
| 1492 | 1445 | |
| 1493 | node = get_memory_pointer(address); | |
| 1494 | ||
| 1495 | 1446 | link_address = node[1]; |
| 1496 | if (link_address == 0) | |
| 1447 | if (link_address == 0) | |
| 1497 | 1448 | return; |
| 1498 | } | |
| 1499 | 1449 | |
| 1500 | 1450 | /* traverse to the link node before drawing this viewport */ |
| 1501 | 1451 | /* check this is correct as this affects the rendering order */ |
| 1502 | if ((link_address >> 24) == 0) { | |
| 1503 | traverse_root_node(link_address & 0xffffff); | |
| 1504 | } | |
| 1505 | else { | |
| 1506 | if ((link_address >> 24) != 0x01) { | |
| 1507 | logerror("traverse_root_node: link address = %08X\n", link_address); | |
| 1508 | } | |
| 1509 | } | |
| 1452 | if (link_address != 0x01000000) | |
| 1453 | draw_viewport(pri, link_address); | |
| 1510 | 1454 | |
| 1511 | /* draw this viewport */ | |
| 1455 | /* skip if this isn't the right priority */ | |
| 1456 | if (pri != ((node[0] >> 3) & 3)) | |
| 1457 | return; | |
| 1512 | 1458 | |
| 1513 | 1459 | /* set viewport parameters */ |
| 1514 | viewport_region_x = ((node[26] & 0xffff) >> 4); /* 12.4 fixed point */ | |
| 1515 | viewport_region_y = (((node[26] >> 16) & 0xffff) >> 4); | |
| 1516 | viewport_region_width = ((node[20] & 0xffff) >> 2); /* 14.2 fixed point */ | |
| 1517 | viewport_region_height = (((node[20] >> 16) & 0xffff) >> 2); | |
| 1460 | viewport_region_x = (node[26] & 0xffff) >> 4; /* 12.4 fixed point */ | |
| 1461 | viewport_region_y = ((node[26] >> 16) & 0xffff) >> 4; | |
| 1462 | viewport_region_width = (node[20] & 0xffff) >> 2; /* 14.2 fixed point */ | |
| 1463 | viewport_region_height = ((node[20] >> 16) & 0xffff) >> 2; | |
| 1518 | 1464 | |
| 1519 | viewport_priority = (((node[0] >> 3) & 0x3)) << 29; /* we use priority as 2 top bits of depth buffer value */ | |
| 1520 | ||
| 1521 | 1465 | /* frustum plane angles */ |
| 1522 | viewport_left = RADIAN_TO_DEGREE(asin(*(float*)&node[12])); | |
| 1523 | viewport_right = RADIAN_TO_DEGREE(asin(*(float*)&node[16])); | |
| 1524 | viewport_top = RADIAN_TO_DEGREE(asin(*(float*)&node[14])); | |
| 1525 | viewport_bottom = RADIAN_TO_DEGREE(asin(*(float*)&node[18])); | |
| 1466 | viewport_left = RADIAN_TO_DEGREE(asin(*(float *)&node[12])); | |
| 1467 | viewport_right = RADIAN_TO_DEGREE(asin(*(float *)&node[16])); | |
| 1468 | viewport_top = RADIAN_TO_DEGREE(asin(*(float *)&node[14])); | |
| 1469 | viewport_bottom = RADIAN_TO_DEGREE(asin(*(float *)&node[18])); | |
| 1526 | 1470 | |
| 1527 | clip_plane[0].x = *(float*)&node[13]; clip_plane[0].y = 0.0f; clip_plane[0].z = *(float*)&node[12]; clip_plane[0].d = 0.0f; | |
| 1528 | clip_plane[1].x = *(float*)&node[17]; clip_plane[1].y = 0.0f; clip_plane[1].z = *(float*)&node[16]; clip_plane[1].d = 0.0f; | |
| 1529 | clip_plane[2].x = 0.0f; clip_plane[2].y = *(float*)&node[15]; clip_plane[2].z = *(float*)&node[14]; clip_plane[2].d = 0.0f; | |
| 1530 | clip_plane[3].x = 0.0f; clip_plane[3].y = *(float*)&node[19]; clip_plane[3].z = *(float*)&node[18]; clip_plane[3].d = 0.0f; | |
| 1531 | clip_plane[4].x = 0.0f; clip_plane[4].y = 0.0f; clip_plane[4].z = 1.0f; clip_plane[4].d = 1.0f; | |
| 1471 | /* build clipping planes */ | |
| 1472 | clip_plane[0].x = *(float *)&node[13]; clip_plane[0].y = 0.0f; clip_plane[0].z = *(float *)&node[12]; clip_plane[0].d = 0.0f; | |
| 1473 | clip_plane[1].x = *(float *)&node[17]; clip_plane[1].y = 0.0f; clip_plane[1].z = *(float *)&node[16]; clip_plane[1].d = 0.0f; | |
| 1474 | clip_plane[2].x = 0.0f; clip_plane[2].y = *(float *)&node[15]; clip_plane[2].z = *(float *)&node[14]; clip_plane[2].d = 0.0f; | |
| 1475 | clip_plane[3].x = 0.0f; clip_plane[3].y = *(float *)&node[19]; clip_plane[3].z = *(float *)&node[18]; clip_plane[3].d = 0.0f; | |
| 1476 | clip_plane[4].x = 0.0f; clip_plane[4].y = 0.0f; clip_plane[4].z = 1.0f; clip_plane[4].d = 1.0f; | |
| 1532 | 1477 | |
| 1478 | /* compute field of view */ | |
| 1533 | 1479 | fov_x = viewport_left + viewport_right; |
| 1534 | 1480 | fov_y = viewport_top + viewport_bottom; |
| 1535 | 1481 | viewport_focal_length = (viewport_region_height / 2) / tan( (fov_y * M_PI / 180.0f) / 2.0f ); |
| r1238 | r1239 | |
| 1538 | 1484 | /* TODO: where does node[23] point to ? LOD table ? */ |
| 1539 | 1485 | |
| 1540 | 1486 | /* set lighting parameters */ |
| 1541 | parallel_light[0] = -*(float*)&node[5]; | |
| 1542 | parallel_light[1] = *(float*)&node[6]; | |
| 1543 | parallel_light[2] = *(float*)&node[4]; | |
| 1544 | parallel_light_intensity = *(float*)&node[7]; | |
| 1487 | parallel_light[0] = -*(float *)&node[5]; | |
| 1488 | parallel_light[1] = *(float *)&node[6]; | |
| 1489 | parallel_light[2] = *(float *)&node[4]; | |
| 1490 | parallel_light_intensity = *(float *)&node[7]; | |
| 1491 | ambient_light_intensity = (UINT8)(node[36] >> 8) / 256.0f; | |
| 1545 | 1492 | |
| 1546 | ambient_light_intensity = (UINT8)((node[0x24] >> 8) & 0xff) / 256.0f; | |
| 1547 | ||
| 1548 | 1493 | /* set coordinate system matrix */ |
| 1549 | 1494 | load_matrix(0, &coordinate_system); |
| 1550 | 1495 | |
| 1551 | link_node = node[2]; | |
| 1552 | switch(link_node >> 24) | |
| 1553 | { | |
| 1554 | case 0x00: /* basic node */ | |
| 1555 | traverse_node(link_node); | |
| 1556 | break; | |
| 1557 | ||
| 1558 | default: | |
| 1559 | logerror("traverse_root_node: node link = %08X\n", link_node); | |
| 1560 | break; | |
| 1561 | } | |
| 1496 | /* process a link */ | |
| 1497 | process_link(link_address, node[2]); | |
| 1562 | 1498 | } |
| 1563 | 1499 | |
| 1500 | ||
| 1564 | 1501 | static void real3d_traverse_display_list(void) |
| 1565 | 1502 | { |
| 1503 | int pri; | |
| 1504 | ||
| 1566 | 1505 | init_matrix_stack(); |
| 1567 | 1506 | |
| 1568 | triangle_buffer_ptr = 0; | |
| 1569 | alpha_triangle_buffer_ptr = 0; | |
| 1507 | for (pri = 0; pri < 4; pri++) | |
| 1508 | draw_viewport(pri, 0x800000); | |
| 1570 | 1509 | |
| 1571 | traverse_root_node(0x800000); | |
| 1572 | ||
| 1573 | render_triangles(); | |
| 1510 | poly_wait(poly, "real3d_traverse_display_list"); | |
| 1574 | 1511 | } |
| 1575 | 1512 |
| r1238 | r1239 | |
|---|---|---|
| 10 | 10 | |
| 11 | 11 | static tilemap *bg_tilemap; |
| 12 | 12 | static tilemap *txt_tilemap; |
| 13 | UINT8 * t | |
| 13 | UINT8 * tankbust_txtram; | |
| 14 | 14 | |
| 15 | 15 | /*************************************************************************** |
| 16 | 16 | |
| r1238 | r1239 | |
| 64 | 64 | |
| 65 | 65 | static TILE_GET_INFO( get_txt_tile_info ) |
| 66 | 66 | { |
| 67 | int code = t | |
| 67 | int code = tankbust_txtram[tile_index]; | |
| 68 | 68 | int color = ((code>>6) & 0x03); |
| 69 | 69 | |
| 70 | 70 | SET_TILE_INFO( 2, |
| r1238 | r1239 | |
| 121 | 121 | |
| 122 | 122 | WRITE8_HANDLER( tankbust_txtram_w ) |
| 123 | 123 | { |
| 124 | t | |
| 124 | tankbust_txtram[offset] = data; | |
| 125 | 125 | tilemap_mark_tile_dirty(txt_tilemap, offset); |
| 126 | 126 | } |
| 127 | 127 | READ8_HANDLER( tankbust_txtram_r ) |
| 128 | 128 | { |
| 129 | return t | |
| 129 | return tankbust_txtram[offset]; | |
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 |
| r1238 | r1239 | |
|---|---|---|
| 40 | 40 | #include "video/polynew.h" |
| 41 | 41 | #include <math.h> |
| 42 | 42 | |
| 43 | // uncomment this line to render everything as quads | |
| 44 | //#define RENDER_AS_QUADS | |
| 45 | ||
| 43 | 46 | static int mbSuperSystem22; /* used to conditionally support Super System22-specific features */ |
| 44 | 47 | static int mbSpotlightEnable; |
| 45 | 48 | static UINT16 *namcos22_czram[4]; |
| r1238 | r1239 | |
| 264 | 267 | }; |
| 265 | 268 | |
| 266 | 269 | |
| 267 | static void renderscanline_uvi_full(void *dest, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid) | |
| 270 | #ifdef RENDER_AS_QUADS | |
| 271 | static void renderscanline_uvi_full(void *dest, INT32 scanline, const quad_extent *extent, const void *extradata, int threadid) | |
| 272 | #else | |
| 273 | static void renderscanline_uvi_full(void *dest, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid) | |
| 274 | #endif | |
| 268 | 275 | { |
| 276 | #ifdef RENDER_AS_QUADS | |
| 277 | float z = extent->param[0].start; | |
| 278 | float u = extent->param[1].start; | |
| 279 | float v = extent->param[2].start; | |
| 280 | float i = extent->param[3].start; | |
| 281 | float dz = extent->param[0].dpdx; | |
| 282 | float du = extent->param[1].dpdx; | |
| 283 | float dv = extent->param[2].dpdx; | |
| 284 | float di = extent->param[3].dpdx; | |
| 285 | #else | |
| 286 | float z = poly_param_tri_value(extent->startx, scanline, 0, poly); /* 1/z */ | |
| 287 | float u = poly_param_tri_value(extent->startx, scanline, 1, poly); /* u/z */ | |
| 288 | float v = poly_param_tri_value(extent->startx, scanline, 2, poly); /* v/z */ | |
| 289 | float i = poly_param_tri_value(extent->startx, scanline, 3, poly); /* i/z */ | |
| 290 | float dz = poly->param[0].dpdx; | |
| 291 | float du = poly->param[1].dpdx; | |
| 292 | float dv = poly->param[2].dpdx; | |
| 293 | float di = poly->param[3].dpdx; | |
| 294 | #endif | |
| 269 | 295 | mame_bitmap *bitmap = dest; |
| 270 | poly_extra_data *extra = poly->extra; | |
| 271 | int bn = extra->bn; | |
| 296 | const poly_extra_data *extra = extradata; | |
| 297 | int bn = extra->bn * 0x1000; | |
| 272 | 298 | const pen_t *pens = &Machine->pens[(extra->color&0x7f)<<8]; |
| 273 | int prioverchar; | |
| 274 | ||
| 275 | const UINT8 *pCharPri = BITMAP_ADDR8(priority_bitmap, scanline, 0); | |
| 276 | UINT32 *pDest = BITMAP_ADDR32(bitmap, scanline, 0); | |
| 277 | float u = poly_param_value(startx, scanline, 0, poly); /* u/z */ | |
| 278 | float v = poly_param_value(startx, scanline, 1, poly); /* v/z */ | |
| 279 | float i = poly_param_value(startx, scanline, 2, poly); /* i/z */ | |
| 280 | float z = poly_param_value(startx, scanline, 3, poly); /* 1/z */ | |
| 281 | float du = poly->param[0].dpdx; | |
| 282 | float dv = poly->param[1].dpdx; | |
| 283 | float di = poly->param[2].dpdx; | |
| 284 | float dz = poly->param[3].dpdx; | |
| 285 | int fogFactor = extra->fogFactor; | |
| 286 | int fadeFactor = extra->fadeFactor; | |
| 299 | int fogFactor = 0xff - extra->fogFactor; | |
| 300 | int fadeFactor = 0xff - extra->fadeFactor; | |
| 301 | int transFactor = 0xff; | |
| 287 | 302 | rgbint fogColor = extra->fogColor; |
| 288 | 303 | rgbint fadeColor = extra->fadeColor; |
| 289 | 304 | int penmask, penshift; |
| 305 | int prioverchar; | |
| 306 | const UINT8 *pCharPri = BITMAP_ADDR8(priority_bitmap, scanline, 0); | |
| 307 | UINT32 *pDest = BITMAP_ADDR32(bitmap, scanline, 0); | |
| 290 | 308 | int x; |
| 291 | bn *= 0x1000; | |
| 292 | 309 | |
| 293 | 310 | if (extra->cmode & 4) |
| 294 | 311 | { |
| r1238 | r1239 | |
| 306 | 323 | } |
| 307 | 324 | else if (extra->cmode & 1) |
| 308 | 325 | { |
| 326 | transFactor = 0xff - mixer.poly_translucency; | |
| 309 | 327 | prioverchar = 1; |
| 310 | 328 | penmask = 0xff; |
| 311 | 329 | penshift = 0; |
| r1238 | r1239 | |
| 317 | 335 | penshift = 0; |
| 318 | 336 | } |
| 319 | 337 | |
| 320 | for | |
| 338 | if (prioverch | |
| 321 | 339 | { |
| 322 | | |
| 340 | | |
| 323 | 341 | { |
| 324 | float ooz = | |
| 342 | float ooz = 1.0f / | |
| 325 | 343 | int pen = texel((int)(u * ooz),bn+(int)(v*ooz)); |
| 326 | 344 | int shade = i*ooz; |
| 327 | 345 | rgbint rgb; |
| r1238 | r1239 | |
| 329 | 347 | rgb_to_rgbint(&rgb, pens[(pen >> penshift) & penmask]); |
| 330 | 348 | rgbint_scale_and_clamp(&rgb, shade << 2); |
| 331 | 349 | |
| 332 | if( fogFactor != 0 ) | |
| 333 | rgbint_blend(&rgb, &fogColor, 0xff - fogFactor); | |
| 350 | if( fogFactor != 0xff ) | |
| 351 | rgbint_blend(&rgb, &fogColor, fogFactor); | |
| 334 | 352 | |
| 335 | if( fadeFactor != 0 ) | |
| 336 | rgbint_blend(&rgb, &fadeColor, 0xff - fadeFactor); | |
| 353 | if( fadeFactor != 0xff ) | |
| 354 | rgbint_blend(&rgb, &fadeColor, fadeFactor); | |
| 337 | 355 | |
| 338 | if( | |
| 356 | if( transFacto | |
| 339 | 357 | { |
| 340 | 358 | rgbint dest; |
| 341 | 359 | rgb_to_rgbint(&dest, pDest[x]); |
| 342 | rgbint_blend(&rgb, &dest, | |
| 360 | rgbint_blend(&rgb, &dest, | |
| 343 | 361 | } |
| 344 | 362 | |
| 345 | 363 | pDest[x] = rgbint_to_rgb(&rgb); |
| 364 | ||
| 365 | u += du; | |
| 366 | v += dv; | |
| 367 | i += di; | |
| 368 | z += dz; | |
| 346 | 369 | } |
| 370 | } | |
| 371 | else | |
| 372 | { | |
| 373 | for( x=extent->startx; x<extent->stopx; x++ ) | |
| 374 | { | |
| 375 | if( pCharPri[x]==0 ) | |
| 376 | { | |
| 377 | float ooz = 1.0f / z; | |
| 378 | int pen = texel((int)(u * ooz),bn+(int)(v*ooz)); | |
| 379 | int shade = i*ooz; | |
| 380 | rgbint rgb; | |
| 347 | 381 | |
| 348 | u += du; | |
| 349 | v += dv; | |
| 350 | i += di; | |
| 351 | z += dz; | |
| 382 | rgb_to_rgbint(&rgb, pens[(pen >> penshift) & penmask]); | |
| 383 | rgbint_scale_and_clamp(&rgb, shade << 2); | |
| 384 | ||
| 385 | if( fogFactor != 0xff ) | |
| 386 | rgbint_blend(&rgb, &fogColor, fogFactor); | |
| 387 | ||
| 388 | if( fadeFactor != 0xff ) | |
| 389 | rgbint_blend(&rgb, &fadeColor, fadeFactor); | |
| 390 | ||
| 391 | pDest[x] = rgbint_to_rgb(&rgb); | |
| 392 | } | |
| 393 | ||
| 394 | u += du; | |
| 395 | v += dv; | |
| 396 | i += di; | |
| 397 | z += dz; | |
| 398 | } | |
| 352 | 399 | } |
| 353 | 400 | } /* renderscanline_uvi_full */ |
| 354 | 401 | |
| 355 | static void rendertri(running_machine *machine, | |
| 356 | mame_bitmap *bitmap, | |
| 357 | const rectangle *clip, | |
| 358 | int color, | |
| 359 | int bn, | |
| 360 | const vertex *v0, | |
| 361 | const vertex *v1, | |
| 362 | const vertex *v2, | |
| 363 | UINT16 flags, | |
| 364 | int cmode ) | |
| 402 | static void poly3d_DrawQuad(running_machine *machine, mame_bitmap *bitmap, int textureBank, int color, Poly3dVertex pv[4], UINT16 flags, int direct, int cmode ) | |
| 365 | 403 | { |
| 366 | poly_extra_data *extra = poly_get_extra_data(poly); | |
| 367 | poly_vertex vert[3]; | |
| 404 | poly_extra_data *extra; | |
| 405 | poly_vertex v[4], clipv[5]; | |
| 406 | int clipverts; | |
| 407 | int vertnum; | |
| 368 | 408 | |
| 369 | vert[0].x = v0->x; | |
| 370 | vert[0].y = v0->y; | |
| 371 | vert[0].p[0] = v0->u; | |
| 372 | vert[0].p[1] = v0->v; | |
| 373 | vert[0].p[2] = v0->i; | |
| 374 | vert[0].p[3] = v0->z; | |
| 375 | vert[1].x = v1->x; | |
| 376 | vert[1].y = v1->y; | |
| 377 | vert[1].p[0] = v1->u; | |
| 378 | vert[1].p[1] = v1->v; | |
| 379 | vert[1].p[2] = v1->i; | |
| 380 | vert[1].p[3] = v1->z; | |
| 381 | vert[2].x = v2->x; | |
| 382 | vert[2].y = v2->y; | |
| 383 | vert[2].p[0] = v2->u; | |
| 384 | vert[2].p[1] = v2->v; | |
| 385 | vert[2].p[2] = v2->i; | |
| 386 | vert[2].p[3] = v2->z; | |
| 409 | /* non-direct case: project and z-clip */ | |
| 410 | if (!direct) | |
| 411 | { | |
| 412 | for (vertnum = 0; vertnum < 4; vertnum++) | |
| 413 | { | |
| 414 | v[vertnum].x = pv[vertnum].x; | |
| 415 | v[vertnum].y = pv[vertnum].y; | |
| 416 | v[vertnum].p[0] = pv[vertnum].z; | |
| 417 | v[vertnum].p[1] = pv[vertnum].u; | |
| 418 | v[vertnum].p[2] = pv[vertnum].v; | |
| 419 | v[vertnum].p[3] = pv[vertnum].bri; | |
| 420 | } | |
| 421 | clipverts = poly_zclip_if_less(4, v, clipv, 4, MIN_Z); | |
| 422 | if (clipverts < 3) | |
| 423 | return; | |
| 424 | for (vertnum = 0; vertnum < clipverts; vertnum++) | |
| 425 | { | |
| 426 | float ooz = 1.0f / clipv[vertnum].p[0]; | |
| 427 | clipv[vertnum].x = mClip.cx + clipv[vertnum].x * ooz; | |
| 428 | clipv[vertnum].y = mClip.cy - clipv[vertnum].y * ooz; | |
| 429 | clipv[vertnum].p[0] = ooz; | |
| 430 | clipv[vertnum].p[1] = (clipv[vertnum].p[1] + 0.5f) * ooz; | |
| 431 | clipv[vertnum].p[2] = (clipv[vertnum].p[2] + 0.5f) * ooz; | |
| 432 | clipv[vertnum].p[3] = (clipv[vertnum].p[3] + 0.5f) * ooz; | |
| 433 | } | |
| 434 | } | |
| 387 | 435 | |
| 436 | /* direct case: don't clip, and treat pv->z as 1/z */ | |
| 437 | else | |
| 438 | { | |
| 439 | clipverts = 4; | |
| 440 | for (vertnum = 0; vertnum < 4; vertnum++) | |
| 441 | { | |
| 442 | float ooz = pv[vertnum].z; | |
| 443 | clipv[vertnum].x = mClip.cx + pv[vertnum].x; | |
| 444 | clipv[vertnum].y = mClip.cy - pv[vertnum].y; | |
| 445 | clipv[vertnum].p[0] = ooz; | |
| 446 | clipv[vertnum].p[1] = (pv[vertnum].u + 0.5f) * ooz; | |
| 447 | clipv[vertnum].p[2] = (pv[vertnum].v + 0.5f) * ooz; | |
| 448 | clipv[vertnum].p[3] = (pv[vertnum].bri + 0.5f) * ooz; | |
| 449 | } | |
| 450 | } | |
| 451 | ||
| 452 | extra = poly_get_extra_data(poly); | |
| 453 | ||
| 388 | 454 | extra->color = color; |
| 389 | extra->bn = | |
| 455 | extra->bn = textureBank; | |
| 390 | 456 | extra->flags = flags; |
| 391 | 457 | extra->cmode = cmode; |
| 392 | 458 | extra->fogFactor = 0; |
| r1238 | r1239 | |
| 425 | 491 | } |
| 426 | 492 | } |
| 427 | 493 | |
| 428 | poly_render_triangle(poly, bitmap, clip, renderscanline_uvi_full, 4, &vert[0], &vert[1], &vert[2]); | |
| 429 | } /* rendertri */ | |
| 430 | ||
| 431 | static void | |
| 432 | ProjectPoint( const Poly3dVertex *v, vertex *pv, int direct ) | |
| 433 | { | |
| 434 | float ooz; | |
| 435 | if( direct ) | |
| 436 | { | |
| 437 | ooz = v->z; | |
| 438 | pv->x = mClip.cx + v->x; | |
| 439 | pv->y = mClip.cy - v->y; | |
| 440 | } | |
| 441 | else | |
| 442 | { | |
| 443 | ooz = 1.0f/v->z; | |
| 444 | pv->x = mClip.cx + v->x*ooz; | |
| 445 | pv->y = mClip.cy - v->y*ooz; | |
| 446 | } | |
| 447 | pv->z = ooz; | |
| 448 | pv->u = (v->u+0.5f)*ooz; | |
| 449 | pv->v = (v->v+0.5f)*ooz; | |
| 450 | pv->i = (v->bri+0.5f)*ooz; | |
| 451 | } /* ProjectPoint */ | |
| 452 | ||
| 453 | static void BlitTriHelper(running_machine *machine, | |
| 454 | mame_bitmap *bitmap, | |
| 455 | const Poly3dVertex *v0, | |
| 456 | const Poly3dVertex *v1, | |
| 457 | const Poly3dVertex *v2, | |
| 458 | unsigned color, | |
| 459 | int bn, | |
| 460 | UINT16 flags, | |
| 461 | int direct, | |
| 462 | int cmode ) | |
| 463 | { | |
| 464 | vertex a,b,c; | |
| 465 | ProjectPoint( v0,&a,direct ); | |
| 466 | ProjectPoint( v1,&b,direct ); | |
| 467 | ProjectPoint( v2,&c,direct ); | |
| 468 | rendertri(machine, bitmap, &mClip.scissor, color, bn, &a, &b, &c, flags, cmode ); | |
| 469 | } /* BlitTriHelper */ | |
| 470 | ||
| 471 | static float | |
| 472 | interp( float x0, float ns3d_y0, float x1, float ns3d_y1 ) | |
| 473 | { | |
| 474 | float m = (ns3d_y1-ns3d_y0)/(x1-x0); | |
| 475 | float b = ns3d_y0 - m*x0; | |
| 476 | return m*MIN_Z+b; | |
| 494 | #ifdef RENDER_AS_QUADS | |
| 495 | poly_render_quad_fan(poly, bitmap, &mClip.scissor, renderscanline_uvi_full, 4, clipverts, clipv); | |
| 496 | #else | |
| 497 | poly_render_triangle_fan(poly, bitmap, &mClip.scissor, renderscanline_uvi_full, 4, clipverts, clipv); | |
| 498 | #endif | |
| 477 | 499 | } |
| 478 | 500 | |
| 479 | static int | |
| 480 | VertexEqual( const Poly3dVertex *a, const Poly3dVertex *b ) | |
| 501 | #ifdef RENDER_AS_QUADS | |
| 502 | static void renderscanline_sprite(void *destbase, INT32 scanline, const quad_extent *extent, const void *extradata, int threadid) | |
| 503 | #else | |
| 504 | static void renderscanline_sprite(void *destbase, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid) | |
| 505 | #endif | |
| 481 | 506 | { |
| 482 | return | |
| 483 | a->x == b->x && | |
| 484 | a->y == b->y && | |
| 485 | a->z == b->z; | |
| 486 | } | |
| 487 | ||
| 488 | static void BlitTri(running_machine *machine, | |
| 489 | mame_bitmap *bitmap, | |
| 490 | const Poly3dVertex *pv[3], | |
| 491 | int color, | |
| 492 | int bn, | |
| 493 | UINT16 flags, | |
| 494 | int direct, | |
| 495 | int cmode ) | |
| 496 | { | |
| 497 | Poly3dVertex vc[3]; | |
| 498 | int i,j; | |
| 499 | int iBad = 0, iGood = 0; | |
| 500 | int bad_count = 0; | |
| 501 | ||
| 502 | if( direct ) | |
| 503 | { | |
| 504 | BlitTriHelper(machine, bitmap, pv[0],pv[1],pv[2], color,bn,flags,direct,cmode ); | |
| 505 | return; | |
| 506 | } | |
| 507 | ||
| 508 | /* don't bother rendering a degenerate triangle */ | |
| 509 | if( VertexEqual(pv[0],pv[1]) ) return; | |
| 510 | if( VertexEqual(pv[0],pv[2]) ) return; | |
| 511 | if( VertexEqual(pv[1],pv[2]) ) return; | |
| 512 | ||
| 513 | for( i=0; i<3; i++ ) | |
| 514 | { | |
| 515 | if( pv[i]->z<MIN_Z ) | |
| 516 | { | |
| 517 | bad_count++; | |
| 518 | iBad = i; | |
| 519 | } | |
| 520 | else | |
| 521 | { | |
| 522 | iGood = i; | |
| 523 | } | |
| 524 | } | |
| 525 | ||
| 526 | switch( bad_count ) | |
| 527 | { | |
| 528 | case 0: | |
| 529 | BlitTriHelper(machine, bitmap, pv[0],pv[1],pv[2], color,bn,flags,direct,cmode ); | |
| 530 | break; | |
| 531 | ||
| 532 | case 1: | |
| 533 | vc[0] = *pv[0]; | |
| 534 | vc[1] = *pv[1]; | |
| 535 | vc[2] = *pv[2]; | |
| 536 | ||
| 537 | i = (iBad+1)%3; | |
| 538 | vc[iBad].x = interp( pv[i]->z,pv[i]->x, pv[iBad]->z, pv[iBad]->x ); | |
| 539 | vc[iBad].y = interp( pv[i]->z,pv[i]->y, pv[iBad]->z, pv[iBad]->y ); | |
| 540 | vc[iBad].u = interp( pv[i]->z,pv[i]->u, pv[iBad]->z, pv[iBad]->u ); | |
| 541 | vc[iBad].v = interp( pv[i]->z,pv[i]->v, pv[iBad]->z, pv[iBad]->v ); | |
| 542 | vc[iBad].bri = interp( pv[i]->z,pv[i]->bri, pv[iBad]->z, pv[iBad]->bri ); | |
| 543 | vc[iBad].z = MIN_Z; | |
| 544 | BlitTriHelper(machine, bitmap, &vc[0],&vc[1],&vc[2], color,bn,flags,direct,cmode ); | |
| 545 | ||
| 546 | j = (iBad+2)%3; | |
| 547 | vc[i].x = interp(pv[j]->z,pv[j]->x, pv[iBad]->z,pv[iBad]->x ); | |
| 548 | vc[i].y = interp(pv[j]->z,pv[j]->y, pv[iBad]->z,pv[iBad]->y ); | |
| 549 | vc[i].u = interp(pv[j]->z,pv[j]->u, pv[iBad]->z,pv[iBad]->u ); | |
| 550 | vc[i].v = interp(pv[j]->z,pv[j]->v, pv[iBad]->z,pv[iBad]->v ); | |
| 551 | vc[i].bri = interp(pv[j]->z,pv[j]->bri, pv[iBad]->z,pv[iBad]->bri ); | |
| 552 | vc[i].z = MIN_Z; | |
| 553 | BlitTriHelper(machine, bitmap, &vc[0],&vc[1],&vc[2], color,bn,flags,direct,cmode ); | |
| 554 | break; | |
| 555 | ||
| 556 | case 2: | |
| 557 | vc[0] = *pv[0]; | |
| 558 | vc[1] = *pv[1]; | |
| 559 | vc[2] = *pv[2]; | |
| 560 | ||
| 561 | i = (iGood+1)%3; | |
| 562 | vc[i].x = interp(pv[iGood]->z,pv[iGood]->x, pv[i]->z,pv[i]->x ); | |
| 563 | vc[i].y = interp(pv[iGood]->z,pv[iGood]->y, pv[i]->z,pv[i]->y ); | |
| 564 | vc[i].u = interp(pv[iGood]->z,pv[iGood]->u, pv[i]->z,pv[i]->u ); | |
| 565 | vc[i].v = interp(pv[iGood]->z,pv[iGood]->v, pv[i]->z,pv[i]->v ); | |
| 566 | vc[i].bri = interp(pv[iGood]->z,pv[iGood]->bri, pv[i]->z,pv[i]->bri ); | |
| 567 | vc[i].z = MIN_Z; | |
| 568 | ||
| 569 | i = (iGood+2)%3; | |
| 570 | vc[i].x = interp(pv[iGood]->z,pv[iGood]->x, pv[i]->z,pv[i]->x ); | |
| 571 | vc[i].y = interp(pv[iGood]->z,pv[iGood]->y, pv[i]->z,pv[i]->y ); | |
| 572 | vc[i].u = interp(pv[iGood]->z,pv[iGood]->u, pv[i]->z,pv[i]->u ); | |
| 573 | vc[i].v = interp(pv[iGood]->z,pv[iGood]->v, pv[i]->z,pv[i]->v ); | |
| 574 | vc[i].bri = interp(pv[iGood]->z,pv[iGood]->bri, pv[i]->z,pv[i]->bri ); | |
| 575 | vc[i].z = MIN_Z; | |
| 576 | ||
| 577 | BlitTriHelper(machine, bitmap, &vc[0],&vc[1],&vc[2], color,bn,flags,direct,cmode ); | |
| 578 | break; | |
| 579 | ||
| 580 | case 3: | |
| 581 | /* wholly clipped */ | |
| 582 | break; | |
| 583 | } | |
| 584 | } /* BlitTri */ | |
| 585 | ||
| 586 | static void poly3d_DrawQuad(running_machine *machine, mame_bitmap *bitmap, int textureBank, int color, Poly3dVertex v[4], UINT16 flags, int direct, int cmode ) | |
| 587 | { | |
| 588 | const Poly3dVertex *pv[3]; | |
| 589 | ||
| 590 | pv[0] = &v[0]; | |
| 591 | pv[1] = &v[1]; | |
| 592 | pv[2] = &v[2]; | |
| 593 | BlitTri(machine, bitmap, pv, color, textureBank, flags, direct, cmode ); | |
| 594 | ||
| 595 | pv[0] = &v[2]; | |
| 596 | pv[1] = &v[3]; | |
| 597 | pv[2] = &v[0]; | |
| 598 | BlitTri(machine, bitmap, pv, color, textureBank, flags, direct, cmode ); | |
| 599 | } | |
| 600 | ||
| 601 | static void renderscanline_sprite(void *destptr, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid) | |
| 602 | { | |
| 603 | poly_extra_data *extra = poly->extra; | |
| 604 | int x_index = poly_param_value(startx, scanline, 0, poly) * 65536.0f; | |
| 605 | int y_index = poly_param_value(startx, scanline, 1, poly) * 65536.0f; | |
| 507 | #ifdef RENDER_AS_QUADS | |
| 508 | int x_index = extent->param[0].start * 65536.0f; | |
| 509 | int y_index = extent->param[1].start * 65536.0f; | |
| 510 | int dx = extent->param[0].dpdx * 65536.0f; | |
| 511 | #else | |
| 512 | int x_index = poly_param_tri_value(extent->startx, scanline, 0, poly) * 65536.0f; | |
| 513 | int y_index = poly_param_tri_value(extent->startx, scanline, 1, poly) * 65536.0f; | |
| 606 | 514 | int dx = poly->param[0].dpdx * 65536.0f; |
| 607 | mame_bitmap *destmap = destptr; | |
| 608 | UINT8 *source = (UINT8 *)extra->source + (y_index>>16) * extra->line_modulo; | |
| 609 | UINT32 *dest = BITMAP_ADDR32(destmap, scanline, 0); | |
| 610 | const UINT8 *pCharPri = BITMAP_ADDR8(priority_bitmap, scanline, 0); | |
| 515 | #endif | |
| 516 | const poly_extra_data *extra = extradata; | |
| 517 | mame_bitmap *destmap = destbase; | |
| 611 | 518 | const pen_t *pal = &Machine->remapped_colortable[extra->color]; |
| 612 | 519 | int prioverchar = extra->prioverchar; |
| 613 | 520 | int z = extra->z; |
| 614 | 521 | int alpha = extra->alpha; |
| 522 | UINT8 *source = (UINT8 *)extra->source + (y_index>>16) * extra->line_modulo; | |
| 523 | UINT32 *dest = BITMAP_ADDR32(destmap, scanline, 0); | |
| 524 | const UINT8 *pCharPri = BITMAP_ADDR8(priority_bitmap, scanline, 0); | |
| 615 | 525 | int x; |
| 616 | 526 | |
| 617 | 527 | int bFogEnable = 0; |
| r1238 | r1239 | |
| 628 | 538 | bFogEnable = 0; |
| 629 | 539 | } |
| 630 | 540 | |
| 631 | for( x=startx; x<stopx; x++ ) | |
| 541 | for( x=extent->startx; x<extent->stopx; x++ ) | |
| 632 | 542 | { |
| 633 | 543 | int pen = source[x_index>>16]; |
| 634 | 544 | if( pen != 0xff ) |
| r1238 | r1239 | |
| 713 | 623 | extra->line_modulo = gfx->line_modulo; |
| 714 | 624 | extra->color = gfx->color_base + gfx->color_granularity * (color % gfx->total_colors); |
| 715 | 625 | extra->source = gfx->gfxdata + (code % gfx->total_elements) * gfx->char_modulo; |
| 716 | poly_render_triangle(poly, dest_bmp, clip, renderscanline_sprite, 2, &vert[0], &vert[1], &vert[2]); | |
| 717 | ||
| 718 | extra = poly_get_extra_data(poly); | |
| 719 | extra->z = z; | |
| 720 | extra->alpha = alpha; | |
| 721 | extra->prioverchar = prioverchar; | |
| 722 | extra->line_modulo = gfx->line_modulo; | |
| 723 | extra->color = gfx->color_base + gfx->color_granularity * (color % gfx->total_colors); | |
| 724 | extra->source = gfx->gfxdata + (code % gfx->total_elements) * gfx->char_modulo; | |
| 725 | poly_render_triangle(poly, dest_bmp, clip, renderscanline_sprite, 2, &vert[0], &vert[2], &vert[3]); | |
| 626 | #ifdef RENDER_AS_QUADS | |
| 627 | poly_render_quad_fan(poly, dest_bmp, clip, renderscanline_sprite, 2, 4, &vert[0]); | |
| 628 | #else | |
| 629 | poly_render_triangle_fan(poly, dest_bmp, clip, renderscanline_sprite, 2, 4, &vert[0]); | |
| 630 | #endif | |
| 726 | 631 | } |
| 727 | 632 | } /* mydrawgfxzoom */ |
| 728 | 633 | |
| r1238 | r1239 | |
| 1230 | 1135 | int i; |
| 1231 | 1136 | switch( namcos22_gametype ) |
| 1232 | 1137 | { |
| 1233 | case NAMCOS22_RIDGE_RACER: | |
| 1234 | case NAMCOS22_RIDGE_RACER2: | |
| 1235 | case NAMCOS22_ACE_DRIVER: | |
| 1236 | case NAMCOS22_CYBER_COMMANDO: | |
| 1237 | for( i=0; i<0x100000; i++ ) | |
| 1238 | { | |
| 1239 | int tile = mpTextureTileMap16[i]; | |
| 1240 | int attr = mpTextureTileMapAttr[i]; | |
| 1241 | if( (attr&0x1)==0 ) | |
| 1242 | { | |
| 1243 | tile = (tile&0x3fff)|0x8000; | |
| 1244 | mpTextureTileMap16[i] = tile; | |
| 1245 | } | |
| 1246 | } | |
| 1247 | break; | |
| 1138 | case NAMCOS22_RIDGE_RACER: | |
| 1139 | case NAMCOS22_RIDGE_RACER2: | |
| 1140 | case NAMCOS22_ACE_DRIVER: | |
| 1141 | case NAMCOS22_CYBER_COMMANDO: | |
| 1142 | for( i=0; i<0x100000; i++ ) | |
| 1143 | { | |
| 1144 | int tile = mpTextureTileMap16[i]; | |
| 1145 | int attr = mpTextureTileMapAttr[i]; | |
| 1146 | if( (attr&0x1)==0 ) | |
| 1147 | { | |
| 1148 | tile = (tile&0x3fff)|0x8000; | |
| 1149 | mpTextureTileMap16[i] = tile; | |
| 1150 | } | |
| 1151 | } | |
| 1152 | break; | |
| 1248 | 1153 | |
| 1249 | default: | |
| 1250 | break; | |
| 1154 | default: | |
| 1155 | break; | |
| 1251 | 1156 | } |
| 1252 | 1157 | } /* PatchTexture */ |
| 1253 | 1158 | |
| r1238 | r1239 | |
| 1279 | 1184 | * xx-- ---- // BRI |
| 1280 | 1185 | * --xx xxxx // zpos |
| 1281 | 1186 | */ |
| 1282 | INT32 zsortvalue24 = ((pSource[1]&0xfff)<<12)|(pSource[0]&0xfff); | |
| 1283 | struct SceneNode *node = NewSceneNode(zsortvalue24,eSCENENODE_QUAD3D); | |
| 1284 | int i; | |
| 1285 | node->data.quad3d.flags = ((pSource[3]&0x7f00)*2)|(pSource[3]&3); | |
| 1187 | INT32 zsortvalue24 = ((pSource[1]&0xfff)<<12)|(pSource[0]&0xfff); | |
| 1188 | struct SceneNode *node = NewSceneNode(zsortvalue24,eSCENENODE_QUAD3D); | |
| 1189 | int i; | |
| 1190 | node->data.quad3d.flags = ((pSource[3]&0x7f00)*2)|(pSource[3]&3); | |
| 1286 | 1191 | node->data.quad3d.cmode = (pSource[2]&0x00f0)>>4; |
| 1287 | 1192 | node->data.quad3d.textureBank = pSource[2]&0xf; |
| 1288 | node->data.quad3d.color = (pSource[2]&0xff00)>>8; | |
| 1289 | pSource += 4; | |
| 1290 | for( i=0; i<4; i++ ) | |
| 1291 | { | |
| 1292 | Poly3dVertex *p = &node->data.quad3d.v[i]; | |
| 1193 | node->data.quad3d.color = (pSource[2]&0xff00)>>8; | |
| 1194 | pSource += 4; | |
| 1195 | for( i=0; i<4; i++ ) | |
| 1196 | { | |
| 1197 | Poly3dVertex *p = &node->data.quad3d.v[i]; | |
| 1293 | 1198 | |
| 1294 | p->u = pSource[0]; | |
| 1295 | p->v = pSource[1]; | |
| 1296 | if( mbSuperSystem22 ) | |
| 1297 | { | |
| 1298 | p->u >>= 4; | |
| 1299 | p->v >>= 4; | |
| 1300 | } | |
| 1301 | p->u &= 0xfff; | |
| 1302 | p->v &= 0xfff; | |
| 1199 | p->u = pSource[0]; | |
| 1200 | p->v = pSource[1]; | |
| 1201 | if( mbSuperSystem22 ) | |
| 1202 | { | |
| 1203 | p->u >>= 4; | |
| 1204 | p->v >>= 4; | |
| 1205 | } | |
| 1206 | p->u &= 0xfff; | |
| 1207 | p->v &= 0xfff; | |
| 1303 | 1208 | |
| 1304 | { | |
| 1305 | int mantissa = (INT16)pSource[5]; | |
| 1306 | float zf = (float)mantissa; | |
| 1307 | int exponent = (pSource[4])&0xff; | |
| 1308 | if( mantissa ) | |
| 1309 | { | |
| 1310 | while( exponent<0x2e ) | |
| 1311 | { | |
| 1312 | zf /= 2.0; | |
| 1313 | exponent++; | |
| 1314 | } | |
| 1315 | if( mbSuperSystem22 ) | |
| 1316 | { | |
| 1317 | p->z = zf; | |
| 1318 | } | |
| 1319 | else | |
| 1320 | { | |
| 1321 | p->z = 1.0f/zf; | |
| 1322 | } | |
| 1323 | } | |
| 1324 | else | |
| 1325 | { | |
| 1326 | zf = (float)0x10000; | |
| 1327 | exponent = 0x40-exponent; | |
| 1328 | while( exponent<0x2e ) | |
| 1329 | { | |
| 1330 | zf /= 2.0; | |
| 1331 | exponent++; | |
| 1332 | } | |
| 1333 | p->z = 1.0f/zf; | |
| 1334 | } | |
| 1335 | } | |
| 1209 | { | |
| 1210 | int mantissa = (INT16)pSource[5]; | |
| 1211 | float zf = (float)mantissa; | |
| 1212 | int exponent = (pSource[4])&0xff; | |
| 1213 | if( mantissa ) | |
| 1214 | { | |
| 1215 | while( exponent<0x2e ) | |
| 1216 | { | |
| 1217 | zf /= 2.0; | |
| 1218 | exponent++; | |
| 1219 | } | |
| 1220 | if( mbSuperSystem22 ) | |
| 1221 | p->z = zf; | |
| 1222 | else | |
| 1223 | p->z = 1.0f/zf; | |
| 1224 | } | |
| 1225 | else | |
| 1226 | { | |
| 1227 | zf = (float)0x10000; | |
| 1228 | exponent = 0x40-exponent; | |
| 1229 | while( exponent<0x2e ) | |
| 1230 | { | |
| 1231 | zf /= 2.0; | |
| 1232 | exponent++; | |
| 1233 | } | |
| 1234 | p->z = 1.0f/zf; | |
| 1235 | } | |
| 1236 | } | |
| 1336 | 1237 | |
| 1337 | p->x = ((INT16)pSource[2]); | |
| 1338 | p->y = (-(INT16)pSource[3]); | |
| 1339 | p->bri = pSource[4]>>8; | |
| 1340 | pSource += 6; | |
| 1341 | } | |
| 1342 | node->data.quad3d.direct = 1; | |
| 1343 | node->data.quad3d.vx = 0; | |
| 1344 | node->data.quad3d.vy = 0; | |
| 1345 | node->data.quad3d.vw = -320; | |
| 1346 | node->data.quad3d.vh = -240; | |
| 1238 | p->x = ((INT16)pSource[2]); | |
| 1239 | p->y = (-(INT16)pSource[3]); | |
| 1240 | p->bri = pSource[4]>>8; | |
| 1241 | pSource += 6; | |
| 1242 | } | |
| 1243 | node->data.quad3d.direct = 1; | |
| 1244 | node->data.quad3d.vx = 0; | |
| 1245 | node->data.quad3d.vy = 0; | |
| 1246 | node->data.quad3d.vw = -320; | |
| 1247 | node->data.quad3d.vh = -240; | |
| 1347 | 1248 | } /* namcos22_draw_direct_poly */ |
| 1348 | 1249 | |
| 1349 | 1250 | static void |
| r1238 | r1239 | |
| 1380 | 1281 | int deltax, |
| 1381 | 1282 | int deltay ) |
| 1382 | 1283 | { |
| 1383 | ||
| 1284 | | |
| 1384 | 1285 | for( i=0; i<num_sprites; i++ ) |
| 1385 | 1286 | { |
| 1386 | /* | |
| 1387 | ----.-x--.----.----.----.----.----.---- hidden? | |
| 1388 | ----.--xx.----.----.----.----.----.---- ? | |
| 1389 | ----.----.xxxx.xxxx.xxxx.----.----.---- always 0xff0? | |
| 1390 | ----.----.----.----.----.--x-.----.---- right justify | |
| 1391 | ----.----.----.----.----.---x.----.---- bottom justify | |
| 1392 | ----.----.----.----.----.----.x---.---- flipx | |
| 1393 | ----.----.----.----.----.----.-xxx.---- numcols | |
| 1394 | ----.----.----.----.----.----.----.x--- flipy | |
| 1395 | ----.----.----.----.----.----.----.-xxx numrows | |
| 1396 | */ | |
| 1287 | /* | |
| 1288 | ----.-x--.----.----.----.----.----.---- hidden? | |
| 1289 | ----.--xx.----.----.----.----.----.---- ? | |
| 1290 | ----.----.xxxx.xxxx.xxxx.----.----.---- always 0xff0? | |
| 1291 | ----.----.----.----.----.--x-.----.---- right justify | |
| 1292 | ----.----.----.----.----.---x.----.---- bottom justify | |
| 1293 | ----.----.----.----.----.----.x---.---- flipx | |
| 1294 | ----.----.----.----.----.----.-xxx.---- numcols | |
| 1295 | ----.----.----.----.----.----.----.x--- flipy | |
| 1296 | ----.----.----.----.----.----.----.-xxx numrows | |
| 1297 | */ | |
| 1397 | 1298 | UINT32 attrs = pSource[2]; |
| 1398 | ||
| 1299 | | |
| 1399 | 1300 | { /* sprite is not hidden */ |
| 1400 | 1301 | INT32 zcoord = pPal[0]; |
| 1401 | int color = pPal[1]>>16; | |
| 1402 | int cz = pPal[1]&0xffff; | |
| 1403 | UINT32 xypos = pSource[0]; | |
| 1302 | int color = pPal[1]>>16; | |
| 1303 | int cz = pPal[1]&0xffff; | |
| 1304 | UINT32 xypos = pSource[0]; | |
| 1404 | 1305 | UINT32 size = pSource[1]; |
| 1405 | 1306 | UINT32 code = pSource[3]; |
| 1406 | 1307 | int xpos = (xypos>>16)-deltax; |
| r1238 | r1239 | |
| 1415 | 1316 | int flipx = (attrs>>4)&0x8; |
| 1416 | 1317 | int numcols = (attrs>>4)&0x7; |
| 1417 | 1318 | int tile = code>>16; |
| 1418 | ||
| 1319 | | |
| 1419 | 1320 | |
| 1420 | if( numrows==0 ) | |
| 1421 | { | |
| 1422 | numrows = 8; | |
| 1423 | } | |
| 1321 | if( numrows==0 ) | |
| 1322 | numrows = 8; | |
| 1424 | 1323 | if( flipy ) |
| 1425 | 1324 | { |
| 1426 | 1325 | ypos += sizey*(numrows-1); |
| r1238 | r1239 | |
| 1428 | 1327 | } |
| 1429 | 1328 | |
| 1430 | 1329 | if( numcols==0 ) |
| 1431 | { | |
| 1432 | numcols = 8; | |
| 1433 | } | |
| 1330 | numcols = 8; | |
| 1434 | 1331 | if( flipx ) |
| 1435 | 1332 | { |
| 1436 | 1333 | xpos += sizex*(numcols-1); |
| r1238 | r1239 | |
| 1440 | 1337 | if( attrs & 0x0200 ) |
| 1441 | 1338 | { /* right justify */ |
| 1442 | 1339 | xpos -= ((zoomx*numcols*0x20)>>16)-1; |
| 1443 | ||
| 1340 | | |
| 1444 | 1341 | if( attrs & 0x0100 ) |
| 1445 | 1342 | { /* bottom justify */ |
| 1446 | ypos -= ((zoomy*numrows*0x20)>>16)-1; | |
| 1447 | } | |
| 1343 | ypos -= ((zoomy*numrows*0x20)>>16)-1; | |
| 1344 | } | |
| 1448 | 1345 | |
| 1449 | { | |
| 1450 | struct SceneNode *node = NewSceneNode(zcoord,eSCENENODE_SPRITE); | |
| 1451 | node->data.sprite.tile = tile; | |
| 1452 | node->data.sprite.pri = cz&0x80; | |
| 1453 | // node->data.sprite.pri = (color&0x80); | |
| 1454 | node->data.sprite.color = color&0x7f; | |
| 1455 | node->data.sprite.flipx = flipx; | |
| 1456 | node->data.sprite.flipy = flipy; | |
| 1457 | node->data.sprite.numcols = numcols; | |
| 1458 | node->data.sprite.numrows = numrows; | |
| 1459 | node->data.sprite.linkType = linkType; | |
| 1460 | node->data.sprite.xpos = xpos; | |
| 1461 | node->data.sprite.ypos = ypos; | |
| 1462 | node->data.sprite.sizex = sizex; | |
| 1463 | node->data.sprite.sizey = sizey; | |
| 1464 | node->data.sprite.translucency = translucency; | |
| 1465 | node->data.sprite.cz = cz; | |
| 1466 | } | |
| 1467 | } /* visible sprite */ | |
| 1346 | { | |
| 1347 | struct SceneNode *node = NewSceneNode(zcoord,eSCENENODE_SPRITE); | |
| 1348 | node->data.sprite.tile = tile; | |
| 1349 | node->data.sprite.pri = cz&0x80; | |
| 1350 | // node->data.sprite.pri = (color&0x80); | |
| 1351 | node->data.sprite.color = color&0x7f; | |
| 1352 | node->data.sprite.flipx = flipx; | |
| 1353 | node->data.sprite.flipy = flipy; | |
| 1354 | node->data.sprite.numcols = numcols; | |
| 1355 | node->data.sprite.numrows = numrows; | |
| 1356 | node->data.sprite.linkType = linkType; | |
| 1357 | node->data.sprite.xpos = xpos; | |
| 1358 | node->data.sprite.ypos = ypos; | |
| 1359 | node->data.sprite.sizex = sizex; | |
| 1360 | node->data.sprite.sizey = sizey; | |
| 1361 | node->data.sprite.translucency = translucency; | |
| 1362 | node->data.sprite.cz = cz; | |
| 1363 | } | |
| 1364 | } /* visible sprite */ | |
| 1468 | 1365 | pSource += 4; |
| 1469 | 1366 | pPal += 2; |
| 1470 | ||
| 1367 | | |
| 1471 | 1368 | } /* DrawSpritesHelper */ |
| 1472 | 1369 | |
| 1473 | 1370 | static void |
| r1238 | r1239 | |
| 1544 | 1441 | int num_sprites = ((spriteram32[0x04/4]>>16)&0x3ff)+1; |
| 1545 | 1442 | const UINT32 *pSource = &spriteram32[0x4000/4]; |
| 1546 | 1443 | const UINT32 *pPal = &spriteram32[0x20000/4]; |
| 1547 | ||
| 1444 | | |
| 1548 | 1445 | int deltay = spriteram32[0x18/4]>>16; |
| 1549 | ||
| 1446 | | |
| 1550 | 1447 | |
| 1551 | if( spriteram32[0x14/4] == 0x000002ff && | |
| 1552 | spriteram32[0x18/4] == 0x000007ff ) | |
| 1553 | { /* HACK (fixes alpine racer and self test) */ | |
| 1554 | deltax = 48; | |
| 1448 | if( spriteram32[0x14/4] == 0x000002ff && | |
| 1449 | spriteram32[0x18/4] == 0x000007ff ) | |
| 1450 | { /* HACK (fixes alpine racer and self test) */ | |
| 1451 | deltax = 48; | |
| 1555 | 1452 | deltay = 43; |
| 1556 | ||
| 1453 | | |
| 1557 | 1454 | |
| 1558 | if( enable==6 /*&& namcos22_gametype!=NAMCOS22_AIR_COMBAT22*/ ) | |
| 1559 | { | |
| 1560 | DrawSpritesHelper( bitmap, cliprect, pSource, pPal, num_sprites, deltax, deltay ); | |
| 1561 | } | |
| 1455 | if( enable==6 /*&& namcos22_gametype!=NAMCOS22_AIR_COMBAT22*/ ) | |
| 1456 | { | |
| 1457 | DrawSpritesHelper( bitmap, cliprect, pSource, pPal, num_sprites, deltax, deltay ); | |
| 1458 | } | |
| 1562 | 1459 | |
| 1563 | 1460 | /* VICS RAM provides two additional banks */ |
| 1564 | 1461 | /* |
| 1565 | 0x940000 -x------ sprite chip busy | |
| 1566 | 0x940018 xxxx---- clr.w $940018.l | |
| 1462 | 0x940000 -x------ sprite chip busy | |
| 1463 | 0x940018 xxxx---- clr.w $940018.l | |
| 1567 | 1464 | |
| 1568 | | |
| 1465 | | |
| 1569 | 1466 | |
| 1570 | 0x940040 xxxxxxxx sprite attribute size | |
| 1571 | 0x940048 xxxxxxxx sprite attribute list baseaddr | |
| 1572 | 0x940050 xxxxxxxx sprite color size | |
| 1573 | 0x940058 xxxxxxxx sprite color list baseaddr | |
| 1467 | 0x940040 xxxxxxxx sprite attribute size | |
| 1468 | 0x940048 xxxxxxxx sprite attribute list baseaddr | |
| 1469 | 0x940050 xxxxxxxx sprite color size | |
| 1470 | 0x940058 xxxxxxxx sprite color list baseaddr | |
| 1574 | 1471 | |
| 1575 | 0x940060..0x94007c set#2 | |
| 1576 | */ | |
| 1472 | 0x940060..0x94007c set#2 | |
| 1473 | */ | |
| 1577 | 1474 | |
| 1578 | 1475 | num_sprites = (namcos22_vics_control[0x40/4]&0xffff)/0x10; |
| 1579 | 1476 | if( num_sprites>=1 ) |
| r1238 | r1239 | |
| 1599 | 1496 | { |
| 1600 | 1497 | if( dirtypal[i] ) |
| 1601 | 1498 | { |
| 1602 | ||
| 1499 | | |
| 1603 | 1500 | for( j=0; j<4; j++ ) |
| 1604 | 1501 | { |
| 1605 | 1502 | int which = i*4+j; |
| r1238 | r1239 | |
| 1673 | 1570 | static void DrawCharacterLayer(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect ) |
| 1674 | 1571 | { |
| 1675 | 1572 | unsigned i; |
| 1676 | INT32 dx = namcos22_tilemapattr[0]>>16; | |
| 1677 | INT32 dy = namcos22_tilemapattr[0]&0xffff; | |
| 1678 | /** | |
| 1679 | * namcos22_tilemapattr[0x4/4] == 0x006e0000 | |
| 1573 | INT32 dx = namcos22_tilemapattr[0]>>16; | |
| 1574 | INT32 dy = namcos22_tilemapattr[0]&0xffff; | |
| 1575 | /** | |
| 1576 | * namcos22_tilemapattr[0x4/4] == 0x006e0000 | |
| 1680 | 1577 | * namcos22_tilemapattr[0x8/4] == 0x01ff0000 |
| 1681 | | |
| 1578 | | |
| 1682 | 1579 | */ |
| 1683 | ||
| 1580 | | |
| 1684 | 1581 | { |
| 1685 | 1582 | for( i=0; i<64*64; i+=2 ) |
| 1686 | 1583 | { |
| r1238 | r1239 | |
| 1783 | 1680 | int flags, |
| 1784 | 1681 | int packetFormat ) |
| 1785 | 1682 | { |
| 1786 | int absolutePriority = mAbsolutePriority; | |
| 1787 | UINT32 zsortvalue24; | |
| 1788 | float zmin = 0.0f; | |
| 1789 | float zmax = 0.0f; | |
| 1683 | int absolutePriority = mAbsolutePriority; | |
| 1684 | UINT32 zsortvalue24; | |
| 1685 | float zmin = 0.0f; | |
| 1686 | float zmax = 0.0f; | |
| 1790 | 1687 | Poly3dVertex v[4]; |
| 1791 | 1688 | int i; |
| 1792 | ||
| 1689 | | |
| 1793 | 1690 | |
| 1794 | 1691 | for( i=0; i<4; i++ ) |
| 1795 | 1692 | { |
| r1238 | r1239 | |
| 1800 | 1697 | TransformPoint( &pVerTex->x, &pVerTex->y, &pVerTex->z, m ); |
| 1801 | 1698 | } /* for( i=0; i<4; i++ ) */ |
| 1802 | 1699 | |
| 1803 | if( (v[2].x*((v[0].z*v[1].y)-(v[0].y*v[1].z)))+ | |
| 1804 | (v[2].y*((v[0].x*v[1].z)-(v[0].z*v[1].x)))+ | |
| 1805 | (v[2].z*((v[0].y*v[1].x)-(v[0].x*v[1].y))) >= 0 && | |
| 1700 | if( (v[2].x*((v[0].z*v[1].y)-(v[0].y*v[1].z)))+ | |
| 1701 | (v[2].y*((v[0].x*v[1].z)-(v[0].z*v[1].x)))+ | |
| 1702 | (v[2].z*((v[0].y*v[1].x)-(v[0].x*v[1].y))) >= 0 && | |
| 1806 | 1703 | |
| 1807 | (v[0].x*((v[2].z*v[3].y)-(v[2].y*v[3].z)))+ | |
| 1808 | (v[0].y*((v[2].x*v[3].z)-(v[2].z*v[3].x)))+ | |
| 1809 | (v[0].z*((v[2].y*v[3].x)-(v[2].x*v[3].y))) >= 0 ) | |
| 1810 | { | |
| 1811 | bBackFace = 1; | |
| 1812 | } | |
| 1704 | (v[0].x*((v[2].z*v[3].y)-(v[2].y*v[3].z)))+ | |
| 1705 | (v[0].y*((v[2].x*v[3].z)-(v[2].z*v[3].x)))+ | |
| 1706 | (v[0].z*((v[2].y*v[3].x)-(v[2].x*v[3].y))) >= 0 ) | |
| 1707 | { | |
| 1708 | bBackFace = 1; | |
| 1709 | } | |
| 1813 | 1710 | |
| 1814 | if( bBackFace && (flags&0x0020) ) | |
| 1815 | { /* backface cull one-sided polygons */ | |
| 1711 | /* backface cull one-sided polygons */ | |
| 1712 | if( bBackFace && (flags&0x0020) ) | |
| 1816 | 1713 | return; |
| 1817 | } | |
| 1818 | 1714 | |
| 1819 | ||
| 1715 | | |
| 1820 | 1716 | { |
| 1821 | 1717 | Poly3dVertex *pVerTex = &v[i]; |
| 1822 | ||
| 1718 | | |
| 1823 | 1719 | |
| 1824 | 1720 | pVerTex->u = GetPolyData( 0+i*2+addr ); |
| 1825 | 1721 | pVerTex->v = GetPolyData( 1+i*2+addr ); |
| r1238 | r1239 | |
| 1827 | 1723 | if( i==0 || pVerTex->z > zmax ) zmax = pVerTex->z; |
| 1828 | 1724 | if( i==0 || pVerTex->z < zmin ) zmin = pVerTex->z; |
| 1829 | 1725 | |
| 1830 | if( mLitSurfaceCount ) | |
| 1831 | { | |
| 1832 | bri = mLitSurfaceInfo[mLitSurfaceIndex%mLitSurfaceCount]; | |
| 1833 | if( mSurfaceNormalFormat == 0x6666 ) | |
| 1834 | { | |
| 1835 | if( i==3 ) | |
| 1836 | { | |
| 1837 | mLitSurfaceIndex++; | |
| 1838 | } | |
| 1839 | } | |
| 1840 | else if( mSurfaceNormalFormat == 0x4000 ) | |
| 1841 | { | |
| 1842 | mLitSurfaceIndex++; | |
| 1843 | } | |
| 1844 | else | |
| 1845 | { | |
| 1846 | logerror( "unknown normal format: 0x%x\n", mSurfaceNormalFormat ); | |
| 1847 | } | |
| 1848 | } /* pLitSurfaceInfo */ | |
| 1849 | else if( packetFormat & 0x40 ) | |
| 1850 | { | |
| 1851 | bri = (GetPolyData(i+addr)>>16)&0xff; | |
| 1852 | } | |
| 1853 | else | |
| 1726 | if( mLitSurfaceCount ) | |
| 1854 | 1727 | { |
| 1728 | bri = mLitSurfaceInfo[mLitSurfaceIndex%mLitSurfaceCount]; | |
| 1729 | if( mSurfaceNormalFormat == 0x6666 ) | |
| 1730 | { | |
| 1731 | if( i==3 ) | |
| 1732 | mLitSurfaceIndex++; | |
| 1733 | } | |
| 1734 | else if( mSurfaceNormalFormat == 0x4000 ) | |
| 1735 | mLitSurfaceIndex++; | |
| 1736 | else | |
| 1737 | logerror( "unknown normal format: 0x%x\n", mSurfaceNormalFormat ); | |
| 1738 | } /* pLitSurfaceInfo */ | |
| 1739 | else if( packetFormat & 0x40 ) | |
| 1740 | bri = (GetPolyData(i+addr)>>16)&0xff; | |
| 1741 | else | |
| 1855 | 1742 | bri = 0x40; |
| 1856 | } | |
| 1857 | pVerTex->bri = bri; | |
| 1743 | pVerTex->bri = bri; | |
| 1858 | 1744 | } /* for( i=0; i<4; i++ ) */ |
| 1859 | 1745 | |
| 1860 | if( zmin<0.0f ) zmin = 0.0f; | |
| 1861 | if( zmax<0.0f ) zmax = 0.0f; | |
| 1746 | if( zmin<0.0f ) zmin = 0.0f; | |
| 1747 | if( zmax<0.0f ) zmax = 0.0f; | |
| 1862 | 1748 | |
| 1863 | switch( (flags&0x0f00)>>8 ) | |
| 1864 | { | |
| 1865 | case 0: | |
| 1866 | zsortvalue24 = (INT32)zmin; | |
| 1867 | break; | |
| 1749 | switch( (flags&0x0f00)>>8 ) | |
| 1750 | { | |
| 1751 | case 0: | |
| 1752 | zsortvalue24 = (INT32)zmin; | |
| 1753 | break; | |
| 1868 | 1754 | |
| 1869 | case 1: | |
| 1870 | zsortvalue24 = (INT32)zmax; | |
| 1871 | break; | |
| 1755 | case 1: | |
| 1756 | zsortvalue24 = (INT32)zmax; | |
| 1757 | break; | |
| 1872 | 1758 | |
| 1873 | case 2: | |
| 1874 | default: | |
| 1875 | zsortvalue24 = (INT32)((zmin+zmax)/2.0f); | |
| 1876 | break; | |
| 1877 | } | |
| 1759 | case 2: | |
| 1760 | default: | |
| 1761 | zsortvalue24 = (INT32)((zmin+zmax)/2.0f); | |
| 1762 | break; | |
| 1763 | } | |
| 1878 | 1764 | |
| 1879 | ||
| 1765 | | |
| 1880 | 1766 | * 1x.xxxx.xxxxxxxx.xxxxxxxx fixed z value |
| 1881 | 1767 | * 0x.xx--.--------.-------- absolute priority shift |
| 1882 | 1768 | * 0-.--xx.xxxxxxxx.xxxxxxxx z-representative value shift |
| 1883 | 1769 | */ |
| 1884 | if( polygonShiftValue22 & 0x200000 ) | |
| 1885 | { | |
| 1886 | zsortvalue24 = polygonShiftValue22 & LSB21; | |
| 1887 | } | |
| 1888 | else | |
| 1889 | { | |
| 1890 | zsortvalue24 += Signed18( polygonShiftValue22 ); | |
| 1891 | absolutePriority += (polygonShiftValue22&0x1c0000)>>18; | |
| 1892 | } | |
| 1893 | if( mObjectShiftValue22 & 0x200000 ) | |
| 1894 | { | |
| 1895 | zsortvalue24 = mObjectShiftValue22 & LSB21; | |
| 1896 | } | |
| 1897 | else | |
| 1898 | { | |
| 1899 | zsortvalue24 += Signed18( mObjectShiftValue22 ); | |
| 1900 | absolutePriority += (mObjectShiftValue22&0x1c0000)>>18; | |
| 1901 | } | |
| 1902 | absolutePriority &= 7; | |
| 1903 | zsortvalue24 = Cap(zsortvalue24,0,0x1fffff); | |
| 1904 | zsortvalue24 |= (absolutePriority<<21); | |
| 1770 | if( polygonShiftValue22 & 0x200000 ) | |
| 1771 | zsortvalue24 = polygonShiftValue22 & LSB21; | |
| 1772 | else | |
| 1773 | { | |
| 1774 | zsortvalue24 += Signed18( polygonShiftValue22 ); | |
| 1775 | absolutePriority += (polygonShiftValue22&0x1c0000)>>18; | |
| 1776 | } | |
| 1905 | 1777 | |
| 1906 | { | |
| 1907 | struct SceneNode *node = NewSceneNode(zsortvalue24,eSCENENODE_QUAD3D); | |
| 1778 | if( mObjectShiftValue22 & 0x200000 ) | |
| 1779 | zsortvalue24 = mObjectShiftValue22 & LSB21; | |
| 1780 | else | |
| 1781 | { | |
| 1782 | zsortvalue24 += Signed18( mObjectShiftValue22 ); | |
| 1783 | absolutePriority += (mObjectShiftValue22&0x1c0000)>>18; | |
| 1784 | } | |
| 1785 | ||
| 1786 | absolutePriority &= 7; | |
| 1787 | zsortvalue24 = Cap(zsortvalue24,0,0x1fffff); | |
| 1788 | zsortvalue24 |= (absolutePriority<<21); | |
| 1789 | ||
| 1790 | { | |
| 1791 | struct SceneNode *node = NewSceneNode(zsortvalue24,eSCENENODE_QUAD3D); | |
| 1908 | 1792 | node->data.quad3d.cmode = (v[0].u>>12)&0xf; |
| 1909 | node->data.quad3d.textureBank = (v[0].v>>12)&0xf; | |
| 1910 | node->data.quad3d.color = (color>>8)&0xff; | |
| 1793 | node->data.quad3d.textureBank = (v[0].v>>12)&0xf; | |
| 1794 | node->data.quad3d.color = (color>>8)&0xff; | |
| 1911 | 1795 | |
| 1912 | { | |
| 1913 | INT32 cz = (INT32)((zmin+zmax)/2.0f); | |
| 1914 | cz = Clamp256(cz/0x2000); | |
| 1915 | node->data.quad3d.flags = (cz<<8)|(flags&3); | |
| 1916 | } | |
| 1796 | { | |
| 1797 | INT32 cz = (INT32)((zmin+zmax)/2.0f); | |
| 1798 | cz = Clamp256(cz/0x2000); | |
| 1799 | node->data.quad3d.flags = (cz<<8)|(flags&3); | |
| 1800 | } | |
| 1917 | 1801 | |
| 1918 | for( i=0; i<4; i++ ) | |
| 1919 | { | |
| 1920 | Poly3dVertex *p = &node->data.quad3d.v[i]; | |
| 1921 | p->x = v[i].x*mCamera.zoom; | |
| 1922 | p->y = v[i].y*mCamera.zoom; | |
| 1923 | p->z = v[i].z; | |
| 1924 | p->u = v[i].u&0xfff; | |
| 1925 | p->v = v[i].v&0xfff; | |
| 1926 | p->bri = v[i].bri; | |
| 1927 | } | |
| 1928 | node->data.quad3d.direct = 0; | |
| 1929 | node->data.quad3d.vx = mCamera.vx; | |
| 1930 | node->data.quad3d.vy = mCamera.vy; | |
| 1931 | node->data.quad3d.vw = mCamera.vw; | |
| 1932 | node->data.quad3d.vh = mCamera.vh; | |
| 1933 | } | |
| 1802 | for( i=0; i<4; i++ ) | |
| 1803 | { | |
| 1804 | Poly3dVertex *p = &node->data.quad3d.v[i]; | |
| 1805 | p->x = v[i].x*mCamera.zoom; | |
| 1806 | p->y = v[i].y*mCamera.zoom; | |
| 1807 | p->z = v[i].z; | |
| 1808 | p->u = v[i].u&0xfff; | |
| 1809 | p->v = v[i].v&0xfff; | |
| 1810 | p->bri = v[i].bri; | |
| 1811 | } | |
| 1812 | node->data.quad3d.direct = 0; | |
| 1813 | node->data.quad3d.vx = mCamera.vx; | |
| 1814 | node->data.quad3d.vy = mCamera.vy; | |
| 1815 | node->data.quad3d.vw = mCamera.vw; | |
| 1816 | node->data.quad3d.vh = mCamera.vh; | |
| 1817 | } | |
| 1934 | 1818 | } /* BlitQuadHelper */ |
| 1935 | 1819 | |
| 1936 | 1820 | static void |
| 1937 | 1821 | RegisterNormals( INT32 addr, float m[4][4] ) |
| 1938 | 1822 | { |
| 1939 | int i; | |
| 1940 | for( i=0; i<4; i++ ) | |
| 1941 | { | |
| 1942 | float nx = DSP_FIXED_TO_FLOAT(GetPolyData(addr+i*3+0)); | |
| 1943 | float ny = DSP_FIXED_TO_FLOAT(GetPolyData(addr+i*3+1)); | |
| 1944 | float nz = DSP_FIXED_TO_FLOAT(GetPolyData(addr+i*3+2)); | |
| 1945 | float dotproduct; | |
| 1823 | int i; | |
| 1824 | for( i=0; i<4; i++ ) | |
| 1825 | { | |
| 1826 | float nx = DSP_FIXED_TO_FLOAT(GetPolyData(addr+i*3+0)); | |
| 1827 | float ny = DSP_FIXED_TO_FLOAT(GetPolyData(addr+i*3+1)); | |
| 1828 | float nz = DSP_FIXED_TO_FLOAT(GetPolyData(addr+i*3+2)); | |
| 1829 | float dotproduct; | |
| 1946 | 1830 | |
| 1947 | /* transform normal vector */ | |
| 1948 | TransformNormal( &nx, &ny, &nz, m ); | |
| 1949 | dotproduct = nx*mCamera.lx + ny*mCamera.ly + nz*mCamera.lz; | |
| 1950 | if( dotproduct<0.0f ) | |
| 1951 | { | |
| 1952 | dotproduct = 0.0f; | |
| 1953 | } | |
| 1954 | mLitSurfaceInfo[mLitSurfaceCount++] = mCamera.ambient + mCamera.power*dotproduct; | |
| 1955 | } | |
| 1831 | /* transform normal vector */ | |
| 1832 | TransformNormal( &nx, &ny, &nz, m ); | |
| 1833 | dotproduct = nx*mCamera.lx + ny*mCamera.ly + nz*mCamera.lz; | |
| 1834 | if( dotproduct<0.0f ) | |
| 1835 | dotproduct = 0.0f; | |
| 1836 | mLitSurfaceInfo[mLitSurfaceCount++] = mCamera.ambient + mCamera.power*dotproduct; | |
| 1837 | } | |
| 1956 | 1838 | } /* RegisterNormals */ |
| 1957 | 1839 | |
| 1958 | 1840 | static void |
| 1959 | 1841 | BlitQuads( mame_bitmap *bitmap, INT32 addr, float m[4][4], INT32 base ) |
| 1960 | 1842 | { |
| 1961 | ||
| 1843 | | |
| 1962 | 1844 | int chunkLength = GetPolyData(addr++); |
| 1963 | 1845 | int finish = addr + chunkLength; |
| 1846 | ||
| 1964 | 1847 | if( chunkLength>0x100 ) |
| 1965 | { | |
| 1966 | 1848 | fatalerror( "bad packet length" ); |
| 1967 | } | |
| 1968 | 1849 | |
| 1969 | 1850 | while( addr<finish ) |
| 1970 | 1851 | { |
| r1238 | r1239 | |
| 1973 | 1854 | int flags, color, bias; |
| 1974 | 1855 | |
| 1975 | 1856 | /** |
| 1976 | * packetFormat: | |
| 1977 | * 800000 final packet in chunk | |
| 1978 | * 080000 ? | |
| 1979 | * 020000 color word exists? | |
| 1980 | * 010000 z-offset word exists? | |
| 1981 | * 002000 ? | |
| 1982 | * 001000 z-offset word exists? | |
| 1983 | * 000400 ? | |
| 1984 | * 000080 tex# or UV or CMODE? | |
| 1985 | * 000040 use I | |
| 1986 | * 000001 ? | |
| 1987 | * | |
| 1988 | * flags: | |
| 1989 | * 1042 (always set) | |
| 1990 | * 0c00 depth-cueing mode (brake-disc(2108)=001e43, model font) | |
| 1991 | * 0200 usually 1 | |
| 1992 | * 0100 ? | |
| 1993 | * 0040 1 ... polygon palette? | |
| 1994 | * 0020 cull backface | |
| 1995 | * 0002 ? | |
| 1996 | * 0001 ? | |
| 1997 | * | |
| 1998 | * color: | |
| 1999 | * ff0000 type? | |
| 2000 | * 008000 depth-cueing off | |
| 2001 | * 007f00 palette# | |
| 2002 | */ | |
| 1857 | * packetFormat: | |
| 1858 | * 800000 final packet in chunk | |
| 1859 | * 080000 ? | |
| 1860 | * 020000 color word exists? | |
| 1861 | * 010000 z-offset word exists? | |
| 1862 | * 002000 ? | |
| 1863 | * 001000 z-offset word exists? | |
| 1864 | * 000400 ? | |
| 1865 | * 000080 tex# or UV or CMODE? | |
| 1866 | * 000040 use I | |
| 1867 | * 000001 ? | |
| 1868 | * | |
| 1869 | * flags: | |
| 1870 | * 1042 (always set) | |
| 1871 | * 0c00 depth-cueing mode (brake-disc(2108)=001e43, model font) | |
| 1872 | * 0200 usually 1 | |
| 1873 | * 0100 ? | |
| 1874 | * 0040 1 ... polygon palette? | |
| 1875 | * 0020 cull backface | |
| 1876 | * 0002 ? | |
| 1877 | * 0001 ? | |
| 1878 | * | |
| 1879 | * color: | |
| 1880 | * ff0000 type? | |
| 1881 | * 008000 depth-cueing off | |
| 1882 | * 007f00 palette# | |
| 1883 | */ | |
| 2003 | 1884 | switch( packetLength ) |
| 2004 | 1885 | { |
| 2005 | case 0x17: | |
| 2006 | /** | |
| 2007 | * word 0: opcode (8a24c0) | |
| 2008 | * word 1: flags | |
| 2009 | * word 2: color | |
| 2010 | */ | |
| 2011 | flags = GetPolyData(addr+1); | |
| 2012 | color = GetPolyData(addr+2); | |
| 2013 | bias = 0; | |
| 2014 | BlitQuadHelper( bitmap,color,addr+3,m,bias,flags,packetFormat ); | |
| 2015 | break; | |
| 1886 | case 0x17: | |
| 1887 | /** | |
| 1888 | * word 0: opcode (8a24c0) | |
| 1889 | * word 1: flags | |
| 1890 | * word 2: color | |
| 1891 | */ | |
| 1892 | flags = GetPolyData(addr+1); | |
| 1893 | color = GetPolyData(addr+2); | |
| 1894 | bias = 0; | |
| 1895 | BlitQuadHelper( bitmap,color,addr+3,m,bias,flags,packetFormat ); | |
| 1896 | break; | |
| 2016 | 1897 | |
| 2017 | case 0x18: | |
| 2018 | /** | |
| 2019 | * word 0: opcode (0b3480 for first N-1 quads or 8b3480 for final quad in primitive) | |
| 2020 | * word 1: flags | |
| 2021 | * word 2: color | |
| 2022 | * word 3: depth bias | |
| 2023 | */ | |
| 2024 | flags = GetPolyData(addr+1); | |
| 2025 | color = GetPolyData(addr+2); | |
| 2026 | bias = GetPolyData(addr+3); | |
| 2027 | BlitQuadHelper( bitmap,color,addr+4,m,bias,flags,packetFormat ); | |
| 2028 | break; | |
| 1898 | case 0x18: | |
| 1899 | /** | |
| 1900 | * word 0: opcode (0b3480 for first N-1 quads or 8b3480 for final quad in primitive) | |
| 1901 | * word 1: flags | |
| 1902 | * word 2: color | |
| 1903 | * word 3: depth bias | |
| 1904 | */ | |
| 1905 | flags = GetPolyData(addr+1); | |
| 1906 | color = GetPolyData(addr+2); | |
| 1907 | bias = GetPolyData(addr+3); | |
| 1908 | BlitQuadHelper( bitmap,color,addr+4,m,bias,flags,packetFormat ); | |
| 1909 | break; | |
| 2029 | 1910 | |
| 2030 | case 0x10: /* vertex lighting */ | |
| 2031 | /* | |
| 2032 | 333401 (opcode) | |
| 1911 | case 0x10: /* vertex lighting */ | |
| 1912 | /* | |
| 1913 | 333401 (opcode) | |
| 2033 | 1914 | 000000 [count] [type] |
| 2034 | 1915 | 000000 000000 007fff // normal vector |
| 2035 | 1916 | 000000 000000 007fff // normal vector |
| 2036 | 1917 | 000000 000000 007fff // normal vector |
| 2037 | 1918 | 000000 000000 007fff // normal vector |
| 2038 | */ | |
| 2039 | numAdditionalNormals = GetPolyData(addr+2); | |
| 2040 | mSurfaceNormalFormat = GetPolyData(addr+3); | |
| 2041 | mLitSurfaceCount = 0; | |
| 2042 | mLitSurfaceIndex = 0; | |
| 2043 | RegisterNormals( addr+4, m ); | |
| 2044 | break; | |
| 1919 | */ | |
| 1920 | numAdditionalNormals = GetPolyData(addr+2); | |
| 1921 | mSurfaceNormalFormat = GetPolyData(addr+3); | |
| 1922 | mLitSurfaceCount = 0; | |
| 1923 | mLitSurfaceIndex = 0; | |
| 1924 | RegisterNormals( addr+4, m ); | |
| 1925 | break; | |
| 2045 | 1926 | |
| 2046 | case 0x0d: /* additional normals */ | |
| 2047 | /* | |
| 2048 | 300401 (opcode) | |
| 1927 | case 0x0d: /* additional normals */ | |
| 1928 | /* | |
| 1929 | 300401 (opcode) | |
| 2049 | 1930 | 007b09 ffdd04 0004c2 |
| 2050 | 1931 | 007a08 ffd968 0001c1 |
| 2051 | 1932 | ff8354 ffe401 000790 |
| 2052 | 1933 | ff84f7 ffdd04 0004c2 |
| 2053 | */ | |
| 2054 | RegisterNormals( addr+1, m ); | |
| 2055 | break; | |
| 1934 | */ | |
| 1935 | RegisterNormals( addr+1, m ); | |
| 1936 | break; | |
| 2056 | 1937 | |
| 2057 | default: | |
| 2058 | break; | |
| 1938 | default: | |
| 1939 | break; | |
| 2059 | 1940 | } |
| 2060 | 1941 | addr += packetLength; |
| 2061 | 1942 | } |
| r1238 | r1239 | |
| 2065 | 1946 | BlitPolyObject( mame_bitmap *bitmap, int code, float M[4][4] ) |
| 2066 | 1947 | { |
| 2067 | 1948 | unsigned addr1 = GetPolyData(code); |
| 2068 | mLitSurfaceCount = 0; | |
| 2069 | mLitSurfaceIndex = 0; | |
| 1949 | mLitSurfaceCount = 0; | |
| 1950 | mLitSurfaceIndex = 0; | |
| 2070 | 1951 | for(;;) |
| 2071 | 1952 | { |
| 2072 | 1953 | INT32 addr2 = GetPolyData(addr1++); |
| 2073 | 1954 | if( addr2<0 ) |
| 2074 | { | |
| 2075 | 1955 | break; |
| 2076 | } | |
| 2077 | 1956 | BlitQuads( bitmap, addr2, M, code ); |
| 2078 | 1957 | } |
| 2079 | 1958 | } /* BlitPolyObject */ |
| r1238 | r1239 | |
| 2384 | 2263 | mpPolyM = mpPolyL + mPtRomSize; |
| 2385 | 2264 | mpPolyH = mpPolyM + mPtRomSize; |
| 2386 | 2265 | |
| 2387 | poly = poly_alloc(1000, sizeof(poly_extra_data), 0); | |
| 2266 | #ifdef RENDER_AS_QUADS | |
| 2267 | poly = poly_alloc(4000, sizeof(poly_extra_data), POLYFLAG_ALLOW_QUADS); | |
| 2268 | #else | |
| 2269 | poly = poly_alloc(4000, sizeof(poly_extra_data), 0); | |
| 2270 | #endif | |
| 2388 | 2271 | add_exit_callback(machine, namcos22_exit); |
| 2389 | 2272 | } |
| 2390 | 2273 |
| r1238 | r1239 | |
|---|---|---|
| 71 | 71 | VIDEO_START( midvunit ) |
| 72 | 72 | { |
| 73 | 73 | scanline_timer = mame_timer_alloc(scanline_timer_cb); |
| 74 | poly = poly_alloc(4000, sizeof(poly_extra_data), | |
| 74 | poly = poly_alloc(4000, sizeof(poly_extra_data), POLYFLAG_ALLOW_QUADS); | |
| 75 | 75 | add_exit_callback(machine, midvunit_exit); |
| 76 | 76 | } |
| 77 | 77 | |
| r1238 | r1239 | |
| 83 | 83 | * |
| 84 | 84 | *************************************/ |
| 85 | 85 | |
| 86 | static void render_flat(void *destbase, INT32 scanline, | |
| 86 | static void render_flat(void *destbase, INT32 scanline, con | |
| 87 | 87 | { |
| 88 | poly_extra_data *extra = poly->extra; | |
| 89 | UINT16 *dest = (UINT16 *)destbase + scanline * 512; | |
| 88 | const poly_extra_data *extra = extradata; | |
| 90 | 89 | UINT16 pixdata = extra->pixdata; |
| 91 | 90 | int xstep = extra->dither + 1; |
| 91 | UINT16 *dest = (UINT16 *)destbase + scanline * 512; | |
| 92 | int startx = extent->startx; | |
| 92 | 93 | int x; |
| 93 | 94 | |
| 94 | 95 | /* if dithering, ensure that we start on an appropriate pixel */ |
| r1238 | r1239 | |
| 96 | 97 | |
| 97 | 98 | /* non-dithered 0 pixels can use a memset */ |
| 98 | 99 | if (pixdata == 0 && xstep == 1) |
| 99 | memset(&dest[startx], 0, 2 * (stopx - startx + 1)); | |
| 100 | memset(&dest[startx], 0, 2 * (extent->stopx - startx + 1)); | |
| 100 | 101 | |
| 101 | 102 | /* otherwise, we fill manually */ |
| 102 | 103 | else |
| 103 | 104 | { |
| 104 | for (x = startx; x < stopx; x += xstep) | |
| 105 | for (x = startx; x < extent->stopx; x += xstep) | |
| 105 | 106 | dest[x] = pixdata; |
| 106 | 107 | } |
| 107 | 108 | } |
| r1238 | r1239 | |
| 114 | 115 | * |
| 115 | 116 | *************************************/ |
| 116 | 117 | |
| 117 | static void render_tex(void *destbase, INT32 scanline, | |
| 118 | static void render_tex(void *destbase, INT32 scanline, con | |
| 118 | 119 | { |
| 119 | poly_extra_data *extra = poly->extra; | |
| 120 | UINT16 *dest = (UINT16 *)destbase + scanline * 512; | |
| 120 | const poly_extra_data *extra = extradata; | |
| 121 | 121 | UINT16 pixdata = extra->pixdata & 0xff00; |
| 122 | 122 | const UINT8 *texbase = extra->texbase; |
| 123 | INT32 u = poly_param_value(startx, scanline, 0, poly) * 65536.0f; | |
| 124 | INT32 v = poly_param_value(startx, scanline, 1, poly) * 65536.0f; | |
| 125 | INT32 dudx = poly->param[0].dpdx * 65536.0f; | |
| 126 | INT32 dvdx = poly->param[1].dpdx * 65536.0f; | |
| 127 | 123 | int xstep = extra->dither + 1; |
| 124 | UINT16 *dest = (UINT16 *)destbase + scanline * 512; | |
| 125 | int startx = extent->startx; | |
| 126 | int stopx = extent->stopx; | |
| 127 | INT32 u = extent->param[0].start; | |
| 128 | INT32 v = extent->param[1].start; | |
| 129 | INT32 dudx = extent->param[0].dpdx; | |
| 130 | INT32 dvdx = extent->param[1].dpdx; | |
| 128 | 131 | int x; |
| 129 | 132 | |
| 130 | 133 | /* if dithering, we advance by 2x; also ensure that we start on an appropriate pixel */ |
| r1238 | r1239 | |
| 150 | 153 | } |
| 151 | 154 | |
| 152 | 155 | |
| 153 | static void render_textrans(void *destbase, INT32 scanline, | |
| 156 | static void render_textrans(void *destbase, INT32 scanline, con | |
| 154 | 157 | { |
| 155 | poly_extra_data *extra = poly->extra; | |
| 156 | UINT16 *dest = (UINT16 *)destbase + scanline * 512; | |
| 158 | const poly_extra_data *extra = extradata; | |
| 157 | 159 | UINT16 pixdata = extra->pixdata & 0xff00; |
| 158 | 160 | const UINT8 *texbase = extra->texbase; |
| 159 | INT32 u = poly_param_value(startx, scanline, 0, poly) * 65536.0f; | |
| 160 | INT32 v = poly_param_value(startx, scanline, 1, poly) * 65536.0f; | |
| 161 | INT32 dudx = poly->param[0].dpdx * 65536.0f; | |
| 162 | INT32 dvdx = poly->param[1].dpdx * 65536.0f; | |
| 163 | 161 | int xstep = extra->dither + 1; |
| 162 | UINT16 *dest = (UINT16 *)destbase + scanline * 512; | |
| 163 | int startx = extent->startx; | |
| 164 | int stopx = extent->stopx; | |
| 165 | INT32 u = extent->param[0].start; | |
| 166 | INT32 v = extent->param[1].start; | |
| 167 | INT32 dudx = extent->param[0].dpdx; | |
| 168 | INT32 dvdx = extent->param[1].dpdx; | |
| 164 | 169 | int x; |
| 165 | 170 | |
| 166 | 171 | /* if dithering, we advance by 2x; also ensure that we start on an appropriate pixel */ |
| r1238 | r1239 | |
| 188 | 193 | } |
| 189 | 194 | |
| 190 | 195 | |
| 191 | static void render_textransmask(void *destbase, INT32 scanline, | |
| 196 | static void render_textransmask(void *destbase, INT32 scanline, con | |
| 192 | 197 | { |
| 193 | poly_extra_data *extra = poly->extra; | |
| 194 | UINT16 *dest = (UINT16 *)destbase + scanline * 512; | |
| 198 | const poly_extra_data *extra = extradata; | |
| 195 | 199 | UINT16 pixdata = extra->pixdata; |
| 196 | 200 | const UINT8 *texbase = extra->texbase; |
| 197 | INT32 u = poly_param_value(startx, scanline, 0, poly) * 65536.0f; | |
| 198 | INT32 v = poly_param_value(startx, scanline, 1, poly) * 65536.0f; | |
| 199 | INT32 dudx = poly->param[0].dpdx * 65536.0f; | |
| 200 | INT32 dvdx = poly->param[1].dpdx * 65536.0f; | |
| 201 | 201 | int xstep = extra->dither + 1; |
| 202 | UINT16 *dest = (UINT16 *)destbase + scanline * 512; | |
| 203 | int startx = extent->startx; | |
| 204 | int stopx = extent->stopx; | |
| 205 | INT32 u = extent->param[0].start; | |
| 206 | INT32 v = extent->param[1].start; | |
| 207 | INT32 dudx = extent->param[0].dpdx; | |
| 208 | INT32 dvdx = extent->param[1].dpdx; | |
| 202 | 209 | int x; |
| 203 | 210 | |
| 204 | 211 | /* if dithering, we advance by 2x; also ensure that we start on an appropriate pixel */ |
| r1238 | r1239 | |
| 235 | 242 | |
| 236 | 243 | static void process_dma_queue(running_machine *machine) |
| 237 | 244 | { |
| 245 | poly_extra_data *extra = poly_get_extra_data(poly); | |
| 246 | UINT16 *dest = &midvunit_videoram[(page_control & 4) ? 0x40000 : 0x00000]; | |
| 238 | 247 | int textured = ((dma_data[0] & 0x300) == 0x100); |
| 239 | poly_draw_scanline callback; | |
| 248 | poly_draw_quad_scanline callback; | |
| 240 | 249 | poly_vertex vert[4]; |
| 241 | int i; | |
| 242 | 250 | |
| 243 | 251 | /* if we're rendering to the same page we're viewing, it has changed */ |
| 244 | 252 | if ((((page_control >> 2) ^ page_control) & 1) == 0) |
| r1238 | r1239 | |
| 262 | 270 | else |
| 263 | 271 | { |
| 264 | 272 | /* if textured, add the texture info */ |
| 265 | vert[0].p[0] = (float)(dma_data[10] & 0xff); | |
| 266 | vert[0].p[1] = (float)(dma_data[10] >> 8); | |
| 267 | vert[1].p[0] = (float)(dma_data[11] & 0xff); | |
| 268 | vert[1].p[1] = (float)(dma_data[11] >> 8); | |
| 269 | vert[2].p[0] = (float)(dma_data[12] & 0xff); | |
| 270 | vert[2].p[1] = (float)(dma_data[12] >> 8); | |
| 271 | vert[3].p[0] = (float)(dma_data[13] & 0xff); | |
| 272 | vert[3].p[1] = (float)(dma_data[13] >> 8); | |
| 273 | vert[0].p[0] = (float)(dma_data[10] & 0xff) * 65536.0f; | |
| 274 | vert[0].p[1] = (float)(dma_data[10] >> 8) * 65536.0f; | |
| 275 | vert[1].p[0] = (float)(dma_data[11] & 0xff) * 65536.0f; | |
| 276 | vert[1].p[1] = (float)(dma_data[11] >> 8) * 65536.0f; | |
| 277 | vert[2].p[0] = (float)(dma_data[12] & 0xff) * 65536.0f; | |
| 278 | vert[2].p[1] = (float)(dma_data[12] >> 8) * 65536.0f; | |
| 279 | vert[3].p[0] = (float)(dma_data[13] & 0xff) * 65536.0f; | |
| 280 | vert[3].p[1] = (float)(dma_data[13] >> 8) * 65536.0f; | |
| 273 | 281 | |
| 274 | 282 | /* handle non-masked, non-transparent quads */ |
| 275 | 283 | if ((dma_data[0] & 0xc00) == 0x000) |
| r1238 | r1239 | |
| 288 | 296 | callback = render_flat; |
| 289 | 297 | } |
| 290 | 298 | |
| 291 | /* loop over two tris */ | |
| 292 | for (i = 0; i < 2; i++) | |
| 293 | { | |
| 294 | poly_extra_data *extra = poly_get_extra_data(poly); | |
| 295 | UINT16 *dest = &midvunit_videoram[(page_control & 4) ? 0x40000 : 0x00000]; | |
| 299 | /* set up the extra data for this triangle */ | |
| 300 | extra->texbase = (UINT8 *)midvunit_textureram + (dma_data[14] * 256); | |
| 301 | extra->pixdata = dma_data[1] | (dma_data[0] & 0x00ff); | |
| 302 | extra->dither = ((dma_data[0] & 0x2000) != 0); | |
| 296 | 303 | |
| 297 | /* set up the extra data for this triangle */ | |
| 298 | extra->texbase = (UINT8 *)midvunit_textureram + (dma_data[14] * 256); | |
| 299 | extra->pixdata = dma_data[1] | (dma_data[0] & 0x00ff); | |
| 300 | extra->dither = ((dma_data[0] & 0x2000) != 0); | |
| 301 | ||
| 302 | /* first tri is 0,1,2; second is 0,3,2 */ | |
| 303 | if (i == 0) | |
| 304 | poly_render_triangle(poly, dest, &machine->screen[0].visarea, callback, textured ? 2 : 0, &vert[0], &vert[1], &vert[2]); | |
| 305 | else | |
| 306 | poly_render_triangle(poly, dest, &machine->screen[0].visarea, callback, textured ? 2 : 0, &vert[0], &vert[3], &vert[2]); | |
| 307 | } | |
| 304 | /* render as a quad */ | |
| 305 | poly_render_quad(poly, dest, &machine->screen[0].visarea, callback, textured ? 2 : 0, &vert[0], &vert[1], &vert[2], &vert[3]); | |
| 308 | 306 | } |
| 309 | 307 | |
| 310 | 308 |
| r1238 | r1239 | |
|---|---|---|
| 8 | 8 | #include "driver.h" |
| 9 | 9 | |
| 10 | 10 | |
| 11 | UINT8 *beg_spriteram1; | |
| 12 | UINT8 *beg_spriteram2; | |
| 11 | UINT8 *bigevglf_spriteram1; | |
| 12 | UINT8 *bigevglf_spriteram2; | |
| 13 | 13 | |
| 14 | 14 | |
| 15 | 15 | static UINT32 vidram_bank = 0; |
| r1238 | r1239 | |
| 20 | 20 | |
| 21 | 21 | static mame_bitmap *tmp_bitmap[4]; |
| 22 | 22 | |
| 23 | WRITE8_HANDLER(beg_palette_w) | |
| 23 | WRITE8_HANDLER(bigevglf_palette_w) | |
| 24 | 24 | { |
| 25 | 25 | int color; |
| 26 | 26 | |
| r1238 | r1239 | |
| 29 | 29 | palette_set_color_rgb(Machine, offset&0x3ff, pal4bit(color >> 4), pal4bit(color >> 0), pal4bit(color >> 8)); |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | WRITE8_HANDLER( beg_gfxcontrol_w ) | |
| 32 | WRITE8_HANDLER( bigevglf_gfxcontrol_w ) | |
| 33 | 33 | { |
| 34 | 34 | /* bits used: 0,1,2,3 |
| 35 | 35 | 0 and 2 select plane, |
| r1238 | r1239 | |
| 74 | 74 | for (i = 0xc0-4; i >= 0; i-=4) |
| 75 | 75 | { |
| 76 | 76 | int code,sx,sy; |
| 77 | code = beg_spriteram2[i+1]; | |
| 78 | sx = beg_spriteram2[i+3]; | |
| 79 | sy = 200-beg_spriteram2[i]; | |
| 77 | code = bigevglf_spriteram2[i+1]; | |
| 78 | sx = bigevglf_spriteram2[i+3]; | |
| 79 | sy = 200-bigevglf_spriteram2[i]; | |
| 80 | 80 | for(j=0;j<16;j++) |
| 81 | 81 | drawgfx(bitmap,machine->gfx[0], |
| 82 | beg_spriteram1[(code<<4)+j]+((beg_spriteram1[0x400+(code<<4)+j]&0xf)<<8), | |
| 83 | beg_spriteram2[i+2] & 0xf, | |
| 82 | bigevglf_spriteram1[(code<<4)+j]+((bigevglf_spriteram1[0x400+(code<<4)+j]&0xf)<<8), | |
| 83 | bigevglf_spriteram2[i+2] & 0xf, | |
| 84 | 84 | 0,0, |
| 85 | 85 | sx+((j&1)<<3),sy+((j>>1)<<3), |
| 86 | 86 | cliprect,TRANSPARENCY_PEN,0); |
| r1238 | r1239 | |
|---|---|---|
| 47 | 47 | static UINT8 *character_1_ram; |
| 48 | 48 | static UINT8 *character_2_ram; |
| 49 | 49 | static UINT8 *character_3_ram; |
| 50 | UINT8 *bullet_ram; | |
| 50 | UINT8 *cvs_bullet_ram; | |
| 51 | 51 | |
| 52 | mame_bitmap *collision_bitmap; | |
| 53 | mame_bitmap *collision_background; | |
| 52 | mame_bitmap *cvs_collision_bitmap; | |
| 53 | mame_bitmap *cvs_collision_background; | |
| 54 | 54 | static mame_bitmap *scrolled_background; |
| 55 | 55 | |
| 56 | int | |
| 56 | int cvs_collision_register=0; | |
| 57 | 57 | |
| 58 | 58 | static int ModeOffset[4] = {223,191,255,127}; |
| 59 | 59 | |
| r1238 | r1239 | |
| 160 | 160 | |
| 161 | 161 | READ8_HANDLER( cvs_collision_r ) |
| 162 | 162 | { |
| 163 | return | |
| 163 | return cvs_collision_register; | |
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | READ8_HANDLER( cvs_collision_clear ) |
| 167 | 167 | { |
| 168 | CollisionRegister=0; | |
| 169 | return 0; | |
| 168 | cvs_collision_register=0; | |
| 169 | return 0; | |
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | WRITE8_HANDLER( cvs_scroll_w ) |
| r1238 | r1239 | |
| 218 | 218 | { |
| 219 | 219 | // Bullet Ram |
| 220 | 220 | |
| 221 | bullet_ram[offset] = data; | |
| 221 | cvs_bullet_ram[offset] = data; | |
| 222 | 222 | } |
| 223 | 223 | else |
| 224 | 224 | { |
| r1238 | r1239 | |
| 237 | 237 | { |
| 238 | 238 | // Bullet Ram |
| 239 | 239 | |
| 240 | return bullet_ram[offset]; | |
| 240 | return cvs_bullet_ram[offset]; | |
| 241 | 241 | } |
| 242 | 242 | else |
| 243 | 243 | { |
| r1238 | r1239 | |
| 406 | 406 | |
| 407 | 407 | /* 3 bitmaps for collision detection */ |
| 408 | 408 | |
| 409 | collision_bitmap = auto_bitmap_alloc(machine->screen[0].width,machine->screen[0].height,BITMAP_FORMAT_INDEXED8); | |
| 410 | collision_background = auto_bitmap_alloc(machine->screen[0].width,machine->screen[0].height,BITMAP_FORMAT_INDEXED8); | |
| 409 | cvs_collision_bitmap = auto_bitmap_alloc(machine->screen[0].width,machine->screen[0].height,BITMAP_FORMAT_INDEXED8); | |
| 410 | cvs_collision_background = auto_bitmap_alloc(machine->screen[0].width,machine->screen[0].height,BITMAP_FORMAT_INDEXED8); | |
| 411 | 411 | scrolled_background = auto_bitmap_alloc(machine->screen[0].width,machine->screen[0].height,BITMAP_FORMAT_INDEXED8); |
| 412 | 412 | } |
| 413 | 413 | |
| r1238 | r1239 | |
| 497 | 497 | } |
| 498 | 498 | |
| 499 | 499 | if(forecolor) |
| 500 | drawgfx(collision_background,machine->gfx[character_bank], | |
| 500 | drawgfx(cvs_collision_background,machine->gfx[character_bank], | |
| 501 | 501 | character, |
| 502 | 502 | forecolor, |
| 503 | 503 | 0,0, |
| r1238 | r1239 | |
| 509 | 509 | /* Update screen - 8 regions, fixed scrolling area */ |
| 510 | 510 | |
| 511 | 511 | copyscrollbitmap(bitmap,tmpbitmap,0,0,8,scroll,&machine->screen[0].visarea,TRANSPARENCY_NONE,0); |
| 512 | copyscrollbitmap(scrolled_background,collision_background,0,0,8,scroll,&machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 512 | copyscrollbitmap(scrolled_background,cvs_collision_background,0,0,8,scroll,&machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 513 | 513 | |
| 514 | 514 | /* 2636's */ |
| 515 | 515 | |
| 516 | 516 | fillbitmap(s2636_1_bitmap,0,0); |
| 517 | s2636_update_bitmap(machine,s2636_1_bitmap,s2636_1_ram,s2636_1_dirty,2,collision_bitmap); | |
| 517 | s2636_update_bitmap(machine,s2636_1_bitmap,s2636_1_ram,s2636_1_dirty,2,cvs_collision_bitmap); | |
| 518 | 518 | |
| 519 | 519 | fillbitmap(s2636_2_bitmap,0,0); |
| 520 | s2636_update_bitmap(machine,s2636_2_bitmap,s2636_2_ram,s2636_2_dirty,3,collision_bitmap); | |
| 520 | s2636_update_bitmap(machine,s2636_2_bitmap,s2636_2_ram,s2636_2_dirty,3,cvs_collision_bitmap); | |
| 521 | 521 | |
| 522 | 522 | fillbitmap(s2636_3_bitmap,0,0); |
| 523 | s2636_update_bitmap(machine,s2636_3_bitmap,s2636_3_ram,s2636_3_dirty,4,collision_bitmap); | |
| 523 | s2636_update_bitmap(machine,s2636_3_bitmap,s2636_3_ram,s2636_3_dirty,4,cvs_collision_bitmap); | |
| 524 | 524 | |
| 525 | 525 | /* Bullet Hardware */ |
| 526 | 526 | |
| 527 | 527 | for (offs = 8; offs < 256; offs++ ) |
| 528 | 528 | { |
| 529 | if(bullet_ram[offs] != 0) | |
| 529 | if(cvs_bullet_ram[offs] != 0) | |
| 530 | 530 | { |
| 531 | 531 | int ct; |
| 532 | 532 | for(ct=0;ct<4;ct++) |
| 533 | 533 | { |
| 534 | int bx=255-7-bullet_ram[offs]-ct; | |
| 534 | int bx=255-7-cvs_bullet_ram[offs]-ct; | |
| 535 | 535 | |
| 536 | 536 | /* Bullet/Object Collision */ |
| 537 | 537 | |
| 538 | if(( | |
| 538 | if((cvs_collision_register & 8) == 0) | |
| 539 | 539 | { |
| 540 | 540 | if ((*BITMAP_ADDR8(s2636_1_bitmap, offs, bx) != 0) || |
| 541 | 541 | (*BITMAP_ADDR8(s2636_2_bitmap, offs, bx) != 0) || |
| 542 | 542 | (*BITMAP_ADDR8(s2636_3_bitmap, offs, bx) != 0)) |
| 543 | | |
| 543 | cvs_collision_register |= 8; | |
| 544 | 544 | } |
| 545 | 545 | |
| 546 | 546 | /* Bullet/Background Collision */ |
| 547 | 547 | |
| 548 | if(( | |
| 548 | if((cvs_collision_register & 0x80) == 0) | |
| 549 | 549 | { |
| 550 | 550 | if (*BITMAP_ADDR8(scrolled_background, offs, bx) != machine->pens[0]) |
| 551 | | |
| 551 | cvs_collision_register |= 0x80; | |
| 552 | 552 | } |
| 553 | 553 | |
| 554 | 554 | *BITMAP_ADDR16(bitmap, offs, bx) = machine->pens[7]; |
| r1238 | r1239 | |
| 594 | 594 | if (spb[BL1] != machine->pens[0]) SB |= 0x00000800; |
| 595 | 595 | if (spb[BL0] != machine->pens[0]) SB |= 0x00000008; |
| 596 | 596 | |
| 597 | if (S1 & S2) CollisionRegister |= 1; | |
| 598 | if (S2 & S3) CollisionRegister |= 2; | |
| 599 | if (S1 & S3) CollisionRegister |= 4; | |
| 597 | if (S1 & S2) cvs_collision_register |= 1; | |
| 598 | if (S2 & S3) cvs_collision_register |= 2; | |
| 599 | if (S1 & S3) cvs_collision_register |= 4; | |
| 600 | 600 | |
| 601 | 601 | if (SB) |
| 602 | 602 | { |
| 603 | if (S1 & SB) CollisionRegister |= 16; | |
| 604 | if (S2 & SB) CollisionRegister |= 32; | |
| 605 | if (S3 & SB) CollisionRegister |= 64; | |
| 603 | if (S1 & SB) cvs_collision_register |= 16; | |
| 604 | if (S2 & SB) cvs_collision_register |= 32; | |
| 605 | if (S3 & SB) cvs_collision_register |= 64; | |
| 606 | 606 | } |
| 607 | 607 | } |
| 608 | 608 |
| r1238 | r1239 | |
|---|---|---|
| 38 | 38 | |
| 39 | 39 | VIDEO_START( cvs ); |
| 40 | 40 | |
| 41 | extern UINT8 *bullet_ram; | |
| 41 | extern UINT8 *cvs_bullet_ram; | |
| 42 | 42 | |
| 43 | extern mame_bitmap *collision_bitmap; | |
| 44 | extern mame_bitmap *collision_background; | |
| 43 | extern mame_bitmap *cvs_collision_bitmap; | |
| 44 | extern mame_bitmap *cvs_collision_background; | |
| 45 | 45 | |
| 46 | 46 | |
| 47 | extern int | |
| 47 | extern int cvs_collision_register; | |
| 48 | 48 | |
| 49 | 49 | |
| 50 | 50 | // Used here |
| 51 | 51 | //static int scroll[8]; |
| 52 | 52 | //static int scroll_reg = 0; |
| 53 | 53 | |
| 54 | UINT8 *effectram; | |
| 55 | int effectcontrol; | |
| 54 | UINT8 *quasar_effectram; | |
| 55 | int quasar_effectcontrol; | |
| 56 | 56 | |
| 57 | 57 | static mame_bitmap *effect_bitmap; |
| 58 | 58 | |
| r1238 | r1239 | |
| 135 | 135 | |
| 136 | 136 | VIDEO_START( quasar ) |
| 137 | 137 | { |
| 138 | effectram = auto_malloc(0x400); | |
| 138 | quasar_effectram = auto_malloc(0x400); | |
| 139 | 139 | |
| 140 | 140 | effect_bitmap = auto_bitmap_alloc(machine->screen[0].width,machine->screen[0].height,machine->screen[0].format); |
| 141 | 141 | |
| r1238 | r1239 | |
| 161 | 161 | // While we have the current character code, draw the effects layer |
| 162 | 162 | // intensity / on and off controlled by latch |
| 163 | 163 | |
| 164 | if (effectcontrol == 0x30) | |
| 164 | if (quasar_effectcontrol == 0x30) | |
| 165 | 165 | forecolor = 0; |
| 166 | 166 | else |
| 167 | forecolor = effectram[offs] + (256 * (((effectcontrol >> 4) ^ 3) & 3)); | |
| 167 | forecolor = quasar_effectram[offs] + (256 * (((quasar_effectcontrol >> 4) ^ 3) & 3)); | |
| 168 | 168 | |
| 169 | 169 | for(ox=0;ox<8;ox++) |
| 170 | 170 | for(oy=0;oy<8;oy++) |
| r1238 | r1239 | |
| 184 | 184 | |
| 185 | 185 | if((colorram[offs] & 7) == 0) |
| 186 | 186 | { |
| 187 | drawgfx(collision_background,machine->gfx[0], | |
| 187 | drawgfx(cvs_collision_background,machine->gfx[0], | |
| 188 | 188 | character, |
| 189 | 189 | 64, |
| 190 | 190 | 0,0, |
| r1238 | r1239 | |
| 201 | 201 | /* 2636's */ |
| 202 | 202 | |
| 203 | 203 | fillbitmap(s2636_1_bitmap,0,0); |
| 204 | s2636_update_bitmap(machine,s2636_1_bitmap,s2636_1_ram,s2636_1_dirty,2,collision_bitmap); | |
| 204 | s2636_update_bitmap(machine,s2636_1_bitmap,s2636_1_ram,s2636_1_dirty,2,cvs_collision_bitmap); | |
| 205 | 205 | |
| 206 | 206 | fillbitmap(s2636_2_bitmap,0,0); |
| 207 | s2636_update_bitmap(machine,s2636_2_bitmap,s2636_2_ram,s2636_2_dirty,3,collision_bitmap); | |
| 207 | s2636_update_bitmap(machine,s2636_2_bitmap,s2636_2_ram,s2636_2_dirty,3,cvs_collision_bitmap); | |
| 208 | 208 | |
| 209 | 209 | fillbitmap(s2636_3_bitmap,0,0); |
| 210 | s2636_update_bitmap(machine,s2636_3_bitmap,s2636_3_ram,s2636_3_dirty,4,collision_bitmap); | |
| 210 | s2636_update_bitmap(machine,s2636_3_bitmap,s2636_3_ram,s2636_3_dirty,4,cvs_collision_bitmap); | |
| 211 | 211 | |
| 212 | 212 | /* Bullet Hardware */ |
| 213 | 213 | |
| 214 | 214 | for (offs = 8; offs < 256; offs++ ) |
| 215 | 215 | { |
| 216 | if(bullet_ram[offs] != 0) | |
| 216 | if(cvs_bullet_ram[offs] != 0) | |
| 217 | 217 | { |
| 218 | 218 | int ct; |
| 219 | 219 | for(ct=0;ct<1;ct++) |
| 220 | 220 | { |
| 221 | int bx=255-9-bullet_ram[offs]-ct; | |
| 221 | int bx=255-9-cvs_bullet_ram[offs]-ct; | |
| 222 | 222 | |
| 223 | 223 | /* Bullet/Object Collision */ |
| 224 | 224 | |
| 225 | if (*BITMAP_ADDR8(s2636_1_bitmap, offs, bx) != 0) CollisionRegister |= 4; | |
| 226 | if (*BITMAP_ADDR8(s2636_3_bitmap, offs, bx) != 0) CollisionRegister |= 8; | |
| 225 | if (*BITMAP_ADDR8(s2636_1_bitmap, offs, bx) != 0) cvs_collision_register |= 4; | |
| 226 | if (*BITMAP_ADDR8(s2636_3_bitmap, offs, bx) != 0) cvs_collision_register |= 8; | |
| 227 | 227 | |
| 228 | 228 | *BITMAP_ADDR16(bitmap, offs, bx) = machine->pens[7]; |
| 229 | 229 | } |
| r1238 | r1239 | |
| 241 | 241 | UINT32 *sp2 = (UINT32 *)BITMAP_ADDR8(s2636_2_bitmap, sx, 0); |
| 242 | 242 | UINT32 *sp3 = (UINT32 *)BITMAP_ADDR8(s2636_3_bitmap, sx, 0); |
| 243 | 243 | UINT64 *dst = (UINT64 *)BITMAP_ADDR16(bitmap, sx, 0); |
| 244 | UINT8 *spb = (UINT8 *)BITMAP_ADDR8(collision_background, sx, 0); | |
| 244 | UINT8 *spb = (UINT8 *)BITMAP_ADDR8(cvs_collision_background, sx, 0); | |
| 245 | 245 | |
| 246 | 246 | for(offs=0;offs<62;offs++) |
| 247 | 247 | { |
| r1238 | r1239 | |
| 269 | 269 | |
| 270 | 270 | if (SB) |
| 271 | 271 | { |
| 272 | if (S1 & SB) CollisionRegister |= 1; | |
| 273 | if (S3 & SB) CollisionRegister |= 2; | |
| 272 | if (S1 & SB) cvs_collision_register |= 1; | |
| 273 | if (S3 & SB) cvs_collision_register |= 2; | |
| 274 | 274 | } |
| 275 | 275 | } |
| 276 | 276 |
| r1238 | r1239 | |
|---|---|---|
| 3607 | 3607 | static int K053247_memory_region, K053247_dx, K053247_dy, K053247_wraparound; |
| 3608 | 3608 | static UINT8 K053246_regs[8]; |
| 3609 | 3609 | static UINT16 K053247_regs[16]; |
| 3610 | UINT16 *K053247_ram=0; | |
| 3610 | static UINT16 *K053247_ram=0; | |
| 3611 | 3611 | static gfx_element *K053247_gfx; |
| 3612 | 3612 | static void (*K053247_callback)(int *code,int *color,int *priority); |
| 3613 | 3613 | static UINT8 K053246_OBJCHA_line; |
| r1238 | r1239 | |
|---|---|---|
| 56 | 56 | |
| 57 | 57 | static mame_bitmap * screen_right; |
| 58 | 58 | static mame_bitmap * screen_left; |
| 59 | static UINT16 *K053247_ram; | |
| 59 | 60 | |
| 60 | 61 | VIDEO_START( xmen6p ) |
| 61 | 62 | { |
| r1238 | r1239 | |
| 63 | 64 | |
| 64 | 65 | K052109_vh_start(machine,REGION_GFX1,NORMAL_PLANE_ORDER,xmen_tile_callback); |
| 65 | 66 | K053247_vh_start(machine,REGION_GFX2,53,-2,NORMAL_PLANE_ORDER,xmen_sprite_callback); |
| 67 | K053247_export_config(&K053247_ram, NULL, NULL, NULL, NULL); | |
| 66 | 68 | |
| 67 | 69 | screen_left = auto_bitmap_alloc(64*8, 32*8, BITMAP_FORMAT_INDEXED16); |
| 68 | 70 | screen_right = auto_bitmap_alloc(64*8, 32*8, BITMAP_FORMAT_INDEXED16); |
| r1238 | r1239 | |
| 127 | 129 | } |
| 128 | 130 | |
| 129 | 131 | extern UINT16 xmen_current_frame; |
| 130 | extern UINT16 *K053247_ram; | |
| 131 | 132 | extern UINT16*xmen6p_spriteramleft; |
| 132 | 133 | extern UINT16*xmen6p_spriteramright; |
| 133 | 134 | extern UINT16*xmen6p_tilemapleft; |
| r1238 | r1239 | |
|---|---|---|
| 24 | 24 | static UINT16 videoram_offset; |
| 25 | 25 | |
| 26 | 26 | static UINT8 fixed_layer_source; |
| 27 | static int *blank_fixed_layer_chars[2]; /* no need to state save */ | |
| 28 | 27 | int neogeo_fixed_layer_bank_type; /* no need to state save */ |
| 29 | 28 | |
| 30 | 29 | static UINT8 auto_animation_speed; |
| r1238 | r1239 | |
| 280 | 279 | } |
| 281 | 280 | |
| 282 | 281 | |
| 283 | static void scan_for_blank_fixed_layer_chars_common(int region, int which) | |
| 284 | { | |
| 285 | offs_t offs; | |
| 286 | ||
| 287 | UINT8* gfx_base = memory_region(region); | |
| 288 | int length = memory_region_length(region); | |
| 289 | ||
| 290 | /* allocate bit array */ | |
| 291 | blank_fixed_layer_chars[which] = auto_malloc((length >> 5) * sizeof(int)); | |
| 292 | ||
| 293 | for (offs = 0; offs < length; offs += 0x20) | |
| 294 | { | |
| 295 | int i; | |
| 296 | int blank = 1; | |
| 297 | ||
| 298 | for (i = 0; i < 0x20; i++) | |
| 299 | if (gfx_base[offs + i] != 0) | |
| 300 | blank = 0; | |
| 301 | ||
| 302 | blank_fixed_layer_chars[which][offs >> 5] = blank; | |
| 303 | } | |
| 304 | } | |
| 305 | ||
| 306 | ||
| 307 | static void scan_for_blank_fixed_layer_chars(void) | |
| 308 | { | |
| 309 | scan_for_blank_fixed_layer_chars_common(NEOGEO_REGION_FIXED_LAYER_CARTRIDGE, 1); | |
| 310 | scan_for_blank_fixed_layer_chars_common(NEOGEO_REGION_FIXED_LAYER_BIOS, 0); | |
| 311 | } | |
| 312 | ||
| 313 | ||
| 314 | 282 | static void draw_fixed_layer(mame_bitmap *bitmap, int scanline) |
| 315 | 283 | { |
| 316 | 284 | int x; |
| r1238 | r1239 | |
| 363 | 331 | break; |
| 364 | 332 | } |
| 365 | 333 | } |
| 366 | /* optimization - skip if all blank */ | |
| 367 | if (blank_fixed_layer_chars[fixed_layer_source][code]) | |
| 368 | pixel_addr = pixel_addr + 8; | |
| 369 | else | |
| 334 | ||
| 370 | 335 | { |
| 371 | 336 | UINT8 data = 0; |
| 372 | 337 | int i; |
| r1238 | r1239 | |
| 900 | 865 | neogeo_videoram = auto_malloc(0x20000); |
| 901 | 866 | |
| 902 | 867 | compute_rgb_weights(); |
| 903 | scan_for_blank_fixed_layer_chars(); | |
| 904 | 868 | create_sprite_line_timer(); |
| 905 | 869 | create_auto_animation_timer(); |
| 906 | 870 | optimize_sprite_data(); |
| r1238 | r1239 | |
|---|---|---|
| 1 | static void draw_ | |
| 1 | static void draw_scanline_normal(void *dest, INT32 scan | |
| 2 | 2 | { |
| 3 | int x, y; | |
| 4 | struct poly_vertex vert[3]; | |
| 5 | const struct poly_scanline_data *scans; | |
| 3 | const poly_extra_data *extra = extradata; | |
| 4 | const cached_texture *texture = extra->texture; | |
| 5 | mame_bitmap *destmap = dest; | |
| 6 | UINT16 *p = BITMAP_ADDR16(destmap, scanline, 0); | |
| 7 | UINT32 *d = BITMAP_ADDR32(zbuffer, scanline, 0); | |
| 8 | float ooz = poly_param_tri_value(extent->startx, scanline, 0, poly); | |
| 9 | float uoz = poly_param_tri_value(extent->startx, scanline, 1, poly); | |
| 10 | float voz = poly_param_tri_value(extent->startx, scanline, 2, poly); | |
| 11 | float doozdx = poly->param[0].dpdx; | |
| 12 | float duozdx = poly->param[1].dpdx; | |
| 13 | float dvozdx = poly->param[2].dpdx; | |
| 14 | UINT32 polyi = extra->polygon_intensity; | |
| 15 | UINT32 umask = (((extra->texture_param & TRI_PARAM_TEXTURE_MIRROR_U) ? 64 : 32) << texture->width) - 1; | |
| 16 | UINT32 vmask = (((extra->texture_param & TRI_PARAM_TEXTURE_MIRROR_V) ? 64 : 32) << texture->height) - 1; | |
| 17 | UINT32 width = 6 + texture->width; | |
| 18 | int x; | |
| 6 | 19 | |
| 7 | v1.z = (1.0 / v1.z) * ZBUFFER_SCALE; | |
| 8 | v2.z = (1.0 / v2.z) * ZBUFFER_SCALE; | |
| 9 | v3.z = (1.0 / v3.z) * ZBUFFER_SCALE; | |
| 10 | v1.u = (UINT32)((UINT64)(v1.u * v1.z) >> ZDIVIDE_SHIFT); | |
| 11 | v1.v = (UINT32)((UINT64)(v1.v * v1.z) >> ZDIVIDE_SHIFT); | |
| 12 | v2.u = (UINT32)((UINT64)(v2.u * v2.z) >> ZDIVIDE_SHIFT); | |
| 13 | v2.v = (UINT32)((UINT64)(v2.v * v2.z) >> ZDIVIDE_SHIFT); | |
| 14 | v3.u = (UINT32)((UINT64)(v3.u * v3.z) >> ZDIVIDE_SHIFT); | |
| 15 | v3.v = (UINT32)((UINT64)(v3.v * v3.z) >> ZDIVIDE_SHIFT); | |
| 16 | ||
| 17 | vert[0].x = v1.x; vert[0].y = v1.y; vert[0].p[0] = (UINT32)v1.z; vert[0].p[1] = v1.u; vert[0].p[2] = v1.v; | |
| 18 | vert[1].x = v2.x; vert[1].y = v2.y; vert[1].p[0] = (UINT32)v2.z; vert[1].p[1] = v2.u; vert[1].p[2] = v2.v; | |
| 19 | vert[2].x = v3.x; vert[2].y = v3.y; vert[2].p[0] = (UINT32)v3.z; vert[2].p[1] = v3.u; vert[2].p[2] = v3.v; | |
| 20 | ||
| 21 | scans = setup_triangle_3(&vert[0], &vert[1], &vert[2], &clip3d); | |
| 22 | ||
| 23 | if(scans) | |
| 20 | for (x = extent->startx; x < extent->stopx; x++) | |
| 24 | 21 | { |
| 25 | INT64 du, dv, dz; | |
| 26 | dz = scans->dp[0]; | |
| 27 | du = scans->dp[1]; | |
| 28 | dv = scans->dp[2]; | |
| 29 | for(y = scans->sy; y <= scans->ey; y++) { | |
| 30 | int x1, x2; | |
| 31 | INT64 u, v, z; | |
| 32 | INT64 u2, v2; | |
| 33 | const struct poly_scanline *scan = &scans->scanline[y - scans->sy]; | |
| 34 | UINT16 *p = BITMAP_ADDR16(bitmap3d, y, 0); | |
| 35 | UINT32 *d = BITMAP_ADDR32(zbuffer, y, 0); | |
| 36 | ||
| 37 | x1 = scan->sx; | |
| 38 | x2 = scan->ex; | |
| 39 | ||
| 40 | z = scans->scanline[y - scans->sy].p[0]; | |
| 41 | u = scans->scanline[y - scans->sy].p[1]; | |
| 42 | v = scans->scanline[y - scans->sy].p[2]; | |
| 43 | ||
| 44 | for(x = x1; x <= x2; x++) { | |
| 45 | // UINT16 pix; | |
| 46 | int iu, iv; | |
| 47 | ||
| 48 | UINT32 iz = z >> 16; | |
| 49 | ||
| 50 | if (iz) { | |
| 51 | u2 = (u << ZDIVIDE_SHIFT) / iz; | |
| 52 | v2 = (v << ZDIVIDE_SHIFT) / iz; | |
| 53 | } else { | |
| 54 | u2 = 0; | |
| 55 | v2 = 0; | |
| 56 | } | |
| 57 | ||
| 58 | iz |= viewport_priority; | |
| 59 | ||
| 60 | if(iz > d[x]) { | |
| 61 | iu = texture_u_table[(u2 >> texture_coord_shift) & texture_width_mask]; | |
| 62 | iv = texture_v_table[(v2 >> texture_coord_shift) & texture_height_mask]; | |
| 63 | #if BILINEAR | |
| 64 | { | |
| 65 | int iu2 = texture_u_table[((u2 >> texture_coord_shift) + 1) & texture_width_mask]; | |
| 66 | int iv2 = texture_v_table[((v2 >> texture_coord_shift) + 1) & texture_height_mask]; | |
| 67 | UINT32 sr[4], sg[4], sb[4]; | |
| 68 | UINT32 ur[2], ug[2], ub[2]; | |
| 69 | UINT32 fr, fg, fb; | |
| 70 | UINT16 pix0 = texture_ram[texture_page][(texture_y+iv) * 2048 + (texture_x+iu)]; | |
| 71 | UINT16 pix1 = texture_ram[texture_page][(texture_y+iv) * 2048 + (texture_x+iu2)]; | |
| 72 | UINT16 pix2 = texture_ram[texture_page][(texture_y+iv2) * 2048 + (texture_x+iu)]; | |
| 73 | UINT16 pix3 = texture_ram[texture_page][(texture_y+iv2) * 2048 + (texture_x+iu2)]; | |
| 74 | int u_sub1 = (u2 >> (texture_coord_shift-16)) & 0xffff; | |
| 75 | int v_sub1 = (v2 >> (texture_coord_shift-16)) & 0xffff; | |
| 76 | int u_sub0 = 0xffff - u_sub1; | |
| 77 | int v_sub0 = 0xffff - v_sub1; | |
| 78 | sr[0] = (pix0 & 0x7c00); | |
| 79 | sg[0] = (pix0 & 0x03e0); | |
| 80 | sb[0] = (pix0 & 0x001f); | |
| 81 | sr[1] = (pix1 & 0x7c00); | |
| 82 | sg[1] = (pix1 & 0x03e0); | |
| 83 | sb[1] = (pix1 & 0x001f); | |
| 84 | sr[2] = (pix2 & 0x7c00); | |
| 85 | sg[2] = (pix2 & 0x03e0); | |
| 86 | sb[2] = (pix2 & 0x001f); | |
| 87 | sr[3] = (pix3 & 0x7c00); | |
| 88 | sg[3] = (pix3 & 0x03e0); | |
| 89 | sb[3] = (pix3 & 0x001f); | |
| 90 | ||
| 91 | /* Calculate weighted U-samples */ | |
| 92 | ur[0] = (((sr[0] * u_sub0) >> 16) + ((sr[1] * u_sub1) >> 16)); | |
| 93 | ug[0] = (((sg[0] * u_sub0) >> 16) + ((sg[1] * u_sub1) >> 16)); | |
| 94 | ub[0] = (((sb[0] * u_sub0) >> 16) + ((sb[1] * u_sub1) >> 16)); | |
| 95 | ur[1] = (((sr[2] * u_sub0) >> 16) + ((sr[3] * u_sub1) >> 16)); | |
| 96 | ug[1] = (((sg[2] * u_sub0) >> 16) + ((sg[3] * u_sub1) >> 16)); | |
| 97 | ub[1] = (((sb[2] * u_sub0) >> 16) + ((sb[3] * u_sub1) >> 16)); | |
| 98 | /* Calculate the final sample */ | |
| 99 | fr = (((ur[0] * v_sub0) >> 16) + ((ur[1] * v_sub1) >> 16)); | |
| 100 | fg = (((ug[0] * v_sub0) >> 16) + ((ug[1] * v_sub1) >> 16)); | |
| 101 | fb = (((ub[0] * v_sub0) >> 16) + ((ub[1] * v_sub1) >> 16)); | |
| 102 | ||
| 103 | // apply intensity | |
| 104 | fr = (fr * polygon_intensity) >> 8; | |
| 105 | fg = (fg * polygon_intensity) >> 8; | |
| 106 | fb = (fb * polygon_intensity) >> 8; | |
| 107 | ||
| 108 | p[x] = (fr & 0x7c00) | (fg & 0x3e0) | (fb & 0x1f); | |
| 109 | } | |
| 110 | #else | |
| 111 | pix = texture_ram[texture_page][(texture_y+iv) * 2048 + (texture_x+iu)]; | |
| 112 | p[x] = pix & 0x7fff; | |
| 113 | #endif | |
| 114 | d[x] = iz; /* write new zbuffer value */ | |
| 115 | } | |
| 116 | ||
| 117 | z += dz; | |
| 118 | u += du; | |
| 119 | v += dv; | |
| 120 | } | |
| 22 | UINT32 iz = ooz * 256.0f; | |
| 23 | if (iz > d[x]) | |
| 24 | { | |
| 25 | float z = 1.0f / ooz; | |
| 26 | UINT32 u = uoz * z; | |
| 27 | UINT32 v = voz * z; | |
| 28 | UINT32 u1 = (u >> 8) & umask; | |
| 29 | UINT32 v1 = (v >> 8) & vmask; | |
| 30 | UINT32 u2 = (u1 + 1) & umask; | |
| 31 | UINT32 v2 = (v1 + 1) & vmask; | |
| 32 | UINT32 pix00 = texture->data[(v1 << width) + u1]; | |
| 33 | UINT32 pix01 = texture->data[(v1 << width) + u2]; | |
| 34 | UINT32 pix10 = texture->data[(v2 << width) + u1]; | |
| 35 | UINT32 pix11 = texture->data[(v2 << width) + u2]; | |
| 36 | UINT32 texel = rgba_bilinear_filter(pix00, pix01, pix10, pix11, u, v); | |
| 37 | UINT32 fr = ((texel & 0x00ff0000) * polyi) >> (8+9); | |
| 38 | UINT32 fg = ((texel & 0x0000ff00) * polyi) >> (8+6); | |
| 39 | UINT32 fb = ((texel & 0x000000ff) * polyi) >> (8+3); | |
| 40 | p[x] = (fr & 0x7c00) | (fg & 0x3e0) | (fb & 0x1f); | |
| 41 | d[x] = iz; | |
| 121 | 42 | } |
| 122 | } | |
| 123 | } | |
| 124 | 43 | |
| 125 | static void draw_triangle_tex1555_trans(VERTEX v1, VERTEX v2, VERTEX v3) | |
| 126 | { | |
| 127 | int x, y; | |
| 128 | struct poly_vertex vert[3]; | |
| 129 | const struct poly_scanline_data *scans; | |
| 130 | ||
| 131 | v1.z = (1.0 / v1.z) * ZBUFFER_SCALE; | |
| 132 | v2.z = (1.0 / v2.z) * ZBUFFER_SCALE; | |
| 133 | v3.z = (1.0 / v3.z) * ZBUFFER_SCALE; | |
| 134 | v1.u = (UINT32)((UINT64)(v1.u * v1.z) >> ZDIVIDE_SHIFT); | |
| 135 | v1.v = (UINT32)((UINT64)(v1.v * v1.z) >> ZDIVIDE_SHIFT); | |
| 136 | v2.u = (UINT32)((UINT64)(v2.u * v2.z) >> ZDIVIDE_SHIFT); | |
| 137 | v2.v = (UINT32)((UINT64)(v2.v * v2.z) >> ZDIVIDE_SHIFT); | |
| 138 | v3.u = (UINT32)((UINT64)(v3.u * v3.z) >> ZDIVIDE_SHIFT); | |
| 139 | v3.v = (UINT32)((UINT64)(v3.v * v3.z) >> ZDIVIDE_SHIFT); | |
| 140 | ||
| 141 | vert[0].x = v1.x; vert[0].y = v1.y; vert[0].p[0] = (UINT32)v1.z; vert[0].p[1] = v1.u; vert[0].p[2] = v1.v; | |
| 142 | vert[1].x = v2.x; vert[1].y = v2.y; vert[1].p[0] = (UINT32)v2.z; vert[1].p[1] = v2.u; vert[1].p[2] = v2.v; | |
| 143 | vert[2].x = v3.x; vert[2].y = v3.y; vert[2].p[0] = (UINT32)v3.z; vert[2].p[1] = v3.u; vert[2].p[2] = v3.v; | |
| 144 | ||
| 145 | scans = setup_triangle_3(&vert[0], &vert[1], &vert[2], &clip3d); | |
| 146 | ||
| 147 | if(scans) | |
| 148 | { | |
| 149 | INT64 du, dv, dz; | |
| 150 | dz = scans->dp[0]; | |
| 151 | du = scans->dp[1]; | |
| 152 | dv = scans->dp[2]; | |
| 153 | for(y = scans->sy; y <= scans->ey; y++) { | |
| 154 | int x1, x2; | |
| 155 | INT64 u, v, z; | |
| 156 | INT64 u2, v2; | |
| 157 | const struct poly_scanline *scan = &scans->scanline[y - scans->sy]; | |
| 158 | UINT16 *p = BITMAP_ADDR16(bitmap3d, y, 0); | |
| 159 | UINT32 *d = BITMAP_ADDR32(zbuffer, y, 0); | |
| 160 | ||
| 161 | x1 = scan->sx; | |
| 162 | x2 = scan->ex; | |
| 163 | ||
| 164 | z = scans->scanline[y - scans->sy].p[0]; | |
| 165 | u = scans->scanline[y - scans->sy].p[1]; | |
| 166 | v = scans->scanline[y - scans->sy].p[2]; | |
| 167 | ||
| 168 | for(x = x1; x <= x2; x++) { | |
| 169 | // UINT16 pix; | |
| 170 | int iu, iv; | |
| 171 | ||
| 172 | UINT32 iz = z >> 16; | |
| 173 | ||
| 174 | if (iz) { | |
| 175 | u2 = (u << ZDIVIDE_SHIFT) / iz; | |
| 176 | v2 = (v << ZDIVIDE_SHIFT) / iz; | |
| 177 | } else { | |
| 178 | u2 = 0; | |
| 179 | v2 = 0; | |
| 180 | } | |
| 181 | ||
| 182 | iz |= viewport_priority; | |
| 183 | ||
| 184 | if(iz > d[x]) | |
| 185 | { | |
| 186 | iu = texture_u_table[(u2 >> texture_coord_shift) & texture_width_mask]; | |
| 187 | iv = texture_v_table[(v2 >> texture_coord_shift) & texture_height_mask]; | |
| 188 | #if BILINEAR | |
| 189 | { | |
| 190 | int iu2 = texture_u_table[((u2 >> texture_coord_shift) + 1) & texture_width_mask]; | |
| 191 | int iv2 = texture_v_table[((v2 >> texture_coord_shift) + 1) & texture_height_mask]; | |
| 192 | UINT32 sr[4], sg[4], sb[4]; | |
| 193 | UINT32 ur[2], ug[2], ub[2]; | |
| 194 | UINT32 fr, fg, fb; | |
| 195 | UINT32 pr, pg, pb; | |
| 196 | UINT16 pix0 = texture_ram[texture_page][(texture_y+iv) * 2048 + (texture_x+iu)]; | |
| 197 | UINT16 pix1 = texture_ram[texture_page][(texture_y+iv) * 2048 + (texture_x+iu2)]; | |
| 198 | UINT16 pix2 = texture_ram[texture_page][(texture_y+iv2) * 2048 + (texture_x+iu)]; | |
| 199 | UINT16 pix3 = texture_ram[texture_page][(texture_y+iv2) * 2048 + (texture_x+iu2)]; | |
| 200 | int u_sub1 = (u2 >> (texture_coord_shift-16)) & 0xffff; | |
| 201 | int v_sub1 = (v2 >> (texture_coord_shift-16)) & 0xffff; | |
| 202 | int u_sub0 = 0xffff - u_sub1; | |
| 203 | int v_sub0 = 0xffff - v_sub1; | |
| 204 | sr[0] = (pix0 & 0x7c00); | |
| 205 | sg[0] = (pix0 & 0x03e0); | |
| 206 | sb[0] = (pix0 & 0x001f); | |
| 207 | sr[1] = (pix1 & 0x7c00); | |
| 208 | sg[1] = (pix1 & 0x03e0); | |
| 209 | sb[1] = (pix1 & 0x001f); | |
| 210 | sr[2] = (pix2 & 0x7c00); | |
| 211 | sg[2] = (pix2 & 0x03e0); | |
| 212 | sb[2] = (pix2 & 0x001f); | |
| 213 | sr[3] = (pix3 & 0x7c00); | |
| 214 | sg[3] = (pix3 & 0x03e0); | |
| 215 | sb[3] = (pix3 & 0x001f); | |
| 216 | ||
| 217 | /* Calculate weighted U-samples */ | |
| 218 | ur[0] = (((sr[0] * u_sub0) >> 16) + ((sr[1] * u_sub1) >> 16)); | |
| 219 | ug[0] = (((sg[0] * u_sub0) >> 16) + ((sg[1] * u_sub1) >> 16)); | |
| 220 | ub[0] = (((sb[0] * u_sub0) >> 16) + ((sb[1] * u_sub1) >> 16)); | |
| 221 | ur[1] = (((sr[2] * u_sub0) >> 16) + ((sr[3] * u_sub1) >> 16)); | |
| 222 | ug[1] = (((sg[2] * u_sub0) >> 16) + ((sg[3] * u_sub1) >> 16)); | |
| 223 | ub[1] = (((sb[2] * u_sub0) >> 16) + ((sb[3] * u_sub1) >> 16)); | |
| 224 | /* Calculate the final sample */ | |
| 225 | fr = (((ur[0] * v_sub0) >> 16) + ((ur[1] * v_sub1) >> 16)); | |
| 226 | fg = (((ug[0] * v_sub0) >> 16) + ((ug[1] * v_sub1) >> 16)); | |
| 227 | fb = (((ub[0] * v_sub0) >> 16) + ((ub[1] * v_sub1) >> 16)); | |
| 228 | ||
| 229 | // apply intensity | |
| 230 | fr = (fr * polygon_intensity) >> 8; | |
| 231 | fg = (fg * polygon_intensity) >> 8; | |
| 232 | fb = (fb * polygon_intensity) >> 8; | |
| 233 | ||
| 234 | /* Blend with existing framebuffer pixels */ | |
| 235 | pr = (p[x] & 0x7c00); | |
| 236 | pg = (p[x] & 0x03e0); | |
| 237 | pb = (p[x] & 0x001f); | |
| 238 | fr = ((pr * (31-polygon_transparency)) + (fr * polygon_transparency)) >> 5; | |
| 239 | fg = ((pg * (31-polygon_transparency)) + (fg * polygon_transparency)) >> 5; | |
| 240 | fb = ((pb * (31-polygon_transparency)) + (fb * polygon_transparency)) >> 5; | |
| 241 | ||
| 242 | p[x] = (fr & 0x7c00) | (fg & 0x3e0) | (fb & 0x1f); | |
| 243 | } | |
| 244 | #else | |
| 245 | pix = texture_ram[texture_page][(texture_y+iv) * 2048 + (texture_x+iu)]; | |
| 246 | p[x] = pix & 0x7fff; | |
| 247 | #endif | |
| 248 | } | |
| 249 | ||
| 250 | z += dz; | |
| 251 | u += du; | |
| 252 | v += dv; | |
| 253 | } | |
| 254 | } | |
| 44 | ooz += doozdx; | |
| 45 | uoz += duozdx; | |
| 46 | voz += dvozdx; | |
| 255 | 47 | } |
| 256 | 48 | } |
| 257 | 49 | |
| 258 | static void draw_trian | |
| 50 | static void draw_scanline_trans(void *dest, INT32 scan | |
| 259 | 51 | { |
| 260 | int x, y; | |
| 261 | struct poly_vertex vert[3]; | |
| 262 | const struct poly_scanline_data *scans; | |
| 52 | const poly_extra_data *extra = extradata; | |
| 53 | const cached_texture *texture = extra->texture; | |
| 54 | mame_bitmap *destmap = dest; | |
| 55 | UINT16 *p = BITMAP_ADDR16(destmap, scanline, 0); | |
| 56 | UINT32 *d = BITMAP_ADDR32(zbuffer, scanline, 0); | |
| 57 | float ooz = poly_param_tri_value(extent->startx, scanline, 0, poly); | |
| 58 | float uoz = poly_param_tri_value(extent->startx, scanline, 1, poly); | |
| 59 | float voz = poly_param_tri_value(extent->startx, scanline, 2, poly); | |
| 60 | float doozdx = poly->param[0].dpdx; | |
| 61 | float duozdx = poly->param[1].dpdx; | |
| 62 | float dvozdx = poly->param[2].dpdx; | |
| 63 | UINT32 polyi = (extra->polygon_intensity * extra->polygon_transparency) >> 5; | |
| 64 | int desttrans = 32 - extra->polygon_transparency; | |
| 65 | UINT32 umask = (((extra->texture_param & TRI_PARAM_TEXTURE_MIRROR_U) ? 64 : 32) << texture->width) - 1; | |
| 66 | UINT32 vmask = (((extra->texture_param & TRI_PARAM_TEXTURE_MIRROR_V) ? 64 : 32) << texture->height) - 1; | |
| 67 | UINT32 width = 6 + texture->width; | |
| 68 | int x; | |
| 263 | 69 | |
| 264 | v1.z = (1.0 / v1.z) * ZBUFFER_SCALE; | |
| 265 | v2.z = (1.0 / v2.z) * ZBUFFER_SCALE; | |
| 266 | v3.z = (1.0 / v3.z) * ZBUFFER_SCALE; | |
| 267 | v1.u = (UINT32)((UINT64)(v1.u * v1.z) >> ZDIVIDE_SHIFT); | |
| 268 | v1.v = (UINT32)((UINT64)(v1.v * v1.z) >> ZDIVIDE_SHIFT); | |
| 269 | v2.u = (UINT32)((UINT64)(v2.u * v2.z) >> ZDIVIDE_SHIFT); | |
| 270 | v2.v = (UINT32)((UINT64)(v2.v * v2.z) >> ZDIVIDE_SHIFT); | |
| 271 | v3.u = (UINT32)((UINT64)(v3.u * v3.z) >> ZDIVIDE_SHIFT); | |
| 272 | v3.v = (UINT32)((UINT64)(v3.v * v3.z) >> ZDIVIDE_SHIFT); | |
| 273 | ||
| 274 | vert[0].x = v1.x; vert[0].y = v1.y; vert[0].p[0] = (UINT32)v1.z; vert[0].p[1] = v1.u; vert[0].p[2] = v1.v; | |
| 275 | vert[1].x = v2.x; vert[1].y = v2.y; vert[1].p[0] = (UINT32)v2.z; vert[1].p[1] = v2.u; vert[1].p[2] = v2.v; | |
| 276 | vert[2].x = v3.x; vert[2].y = v3.y; vert[2].p[0] = (UINT32)v3.z; vert[2].p[1] = v3.u; vert[2].p[2] = v3.v; | |
| 277 | ||
| 278 | scans = setup_triangle_3(&vert[0], &vert[1], &vert[2], &clip3d); | |
| 279 | ||
| 280 | if(scans) | |
| 70 | for (x = extent->startx; x < extent->stopx; x++) | |
| 281 | 71 | { |
| 282 | INT64 du, dv, dz; | |
| 283 | dz = scans->dp[0]; | |
| 284 | du = scans->dp[1]; | |
| 285 | dv = scans->dp[2]; | |
| 286 | for(y = scans->sy; y <= scans->ey; y++) { | |
| 287 | int x1, x2; | |
| 288 | INT64 u, v, z; | |
| 289 | INT64 u2, v2; | |
| 290 | const struct poly_scanline *scan = &scans->scanline[y - scans->sy]; | |
| 291 | UINT16 *p = BITMAP_ADDR16(bitmap3d, y, 0); | |
| 292 | UINT32 *d = BITMAP_ADDR32(zbuffer, y, 0); | |
| 293 | ||
| 294 | x1 = scan->sx; | |
| 295 | x2 = scan->ex; | |
| 296 | z = scans->scanline[y - scans->sy].p[0]; | |
| 297 | u = scans->scanline[y - scans->sy].p[1]; | |
| 298 | v = scans->scanline[y - scans->sy].p[2]; | |
| 299 | ||
| 300 | for(x = x1; x <= x2; x++) { | |
| 301 | // UINT16 pix; | |
| 302 | int iu, iv; | |
| 303 | ||
| 304 | UINT32 iz = z >> 16; | |
| 305 | ||
| 306 | if (iz) { | |
| 307 | u2 = (u << ZDIVIDE_SHIFT) / iz; | |
| 308 | v2 = (v << ZDIVIDE_SHIFT) / iz; | |
| 309 | } else { | |
| 310 | u2 = 0; | |
| 311 | v2 = 0; | |
| 312 | } | |
| 313 | ||
| 314 | iz |= viewport_priority; | |
| 315 | ||
| 316 | if(iz >= d[x]) { | |
| 317 | iu = texture_u_table[(u2 >> texture_coord_shift) & texture_width_mask]; | |
| 318 | iv = texture_v_table[(v2 >> texture_coord_shift) & texture_height_mask]; | |
| 319 | #if BILINEAR | |
| 320 | { | |
| 321 | int iu2 = texture_u_table[((u2 >> texture_coord_shift) + 1) & texture_width_mask]; | |
| 322 | int iv2 = texture_v_table[((v2 >> texture_coord_shift) + 1) & texture_height_mask]; | |
| 323 | UINT32 sr[4], sg[4], sb[4], sa[4]; | |
| 324 | UINT32 ur[2], ug[2], ub[2], ua[4]; | |
| 325 | UINT32 fr, fg, fb, fa; | |
| 326 | UINT32 pr, pg, pb; | |
| 327 | UINT16 pix0 = texture_ram[texture_page][(texture_y+iv) * 2048 + (texture_x+iu)]; | |
| 328 | UINT16 pix1 = texture_ram[texture_page][(texture_y+iv) * 2048 + (texture_x+iu2)]; | |
| 329 | UINT16 pix2 = texture_ram[texture_page][(texture_y+iv2) * 2048 + (texture_x+iu)]; | |
| 330 | UINT16 pix3 = texture_ram[texture_page][(texture_y+iv2) * 2048 + (texture_x+iu2)]; | |
| 331 | int u_sub1 = (u2 >> (texture_coord_shift-16)) & 0xffff; | |
| 332 | int v_sub1 = (v2 >> (texture_coord_shift-16)) & 0xffff; | |
| 333 | int u_sub0 = 0xffff - u_sub1; | |
| 334 | int v_sub0 = 0xffff - v_sub1; | |
| 335 | sr[0] = (pix0 & 0x7c00); | |
| 336 | sg[0] = (pix0 & 0x03e0); | |
| 337 | sb[0] = (pix0 & 0x001f); | |
| 338 | sa[0] = (pix0 & 0x8000) ? 0 : 16; | |
| 339 | sr[1] = (pix1 & 0x7c00); | |
| 340 | sg[1] = (pix1 & 0x03e0); | |
| 341 | sb[1] = (pix1 & 0x001f); | |
| 342 | sa[1] = (pix1 & 0x8000) ? 0 : 16; | |
| 343 | sr[2] = (pix2 & 0x7c00); | |
| 344 | sg[2] = (pix2 & 0x03e0); | |
| 345 | sb[2] = (pix2 & 0x001f); | |
| 346 | sa[2] = (pix2 & 0x8000) ? 0 : 16; | |
| 347 | sr[3] = (pix3 & 0x7c00); | |
| 348 | sg[3] = (pix3 & 0x03e0); | |
| 349 | sb[3] = (pix3 & 0x001f); | |
| 350 | sa[3] = (pix3 & 0x8000) ? 0 : 16; | |
| 351 | ||
| 352 | /* Calculate weighted U-samples */ | |
| 353 | ur[0] = (((sr[0] * u_sub0) >> 16) + ((sr[1] * u_sub1) >> 16)); | |
| 354 | ug[0] = (((sg[0] * u_sub0) >> 16) + ((sg[1] * u_sub1) >> 16)); | |
| 355 | ub[0] = (((sb[0] * u_sub0) >> 16) + ((sb[1] * u_sub1) >> 16)); | |
| 356 | ua[0] = (((sa[0] * u_sub0) >> 16) + ((sa[1] * u_sub1) >> 16)); | |
| 357 | ur[1] = (((sr[2] * u_sub0) >> 16) + ((sr[3] * u_sub1) >> 16)); | |
| 358 | ug[1] = (((sg[2] * u_sub0) >> 16) + ((sg[3] * u_sub1) >> 16)); | |
| 359 | ub[1] = (((sb[2] * u_sub0) >> 16) + ((sb[3] * u_sub1) >> 16)); | |
| 360 | ua[1] = (((sa[2] * u_sub0) >> 16) + ((sa[3] * u_sub1) >> 16)); | |
| 361 | /* Calculate the final sample */ | |
| 362 | fr = (((ur[0] * v_sub0) >> 16) + ((ur[1] * v_sub1) >> 16)); | |
| 363 | fg = (((ug[0] * v_sub0) >> 16) + ((ug[1] * v_sub1) >> 16)); | |
| 364 | fb = (((ub[0] * v_sub0) >> 16) + ((ub[1] * v_sub1) >> 16)); | |
| 365 | fa = (((ua[0] * v_sub0) >> 16) + ((ua[1] * v_sub1) >> 16)); | |
| 366 | ||
| 367 | // apply intensity | |
| 368 | fr = (fr * polygon_intensity) >> 8; | |
| 369 | fg = (fg * polygon_intensity) >> 8; | |
| 370 | fb = (fb * polygon_intensity) >> 8; | |
| 371 | ||
| 372 | /* Blend with existing framebuffer pixels */ | |
| 373 | pr = (p[x] & 0x7c00); | |
| 374 | pg = (p[x] & 0x03e0); | |
| 375 | pb = (p[x] & 0x001f); | |
| 376 | fr = ((pr * (16 - fa)) + (fr * fa)) >> 4; | |
| 377 | fg = ((pg * (16 - fa)) + (fg * fa)) >> 4; | |
| 378 | fb = ((pb * (16 - fa)) + (fb * fa)) >> 4; | |
| 379 | ||
| 380 | p[x] = (fr & 0x7c00) | (fg & 0x3e0) | (fb & 0x1f); | |
| 381 | } | |
| 382 | #else | |
| 383 | pix = texture_ram[texture_page][(texture_y+iv) * 2048 + (texture_x+iu)]; | |
| 384 | p[x] = pix & 0x7fff; | |
| 385 | #endif | |
| 386 | } | |
| 387 | ||
| 388 | z += dz; | |
| 389 | u += du; | |
| 390 | v += dv; | |
| 391 | } | |
| 72 | UINT32 iz = ooz * 256.0f; | |
| 73 | if (iz > d[x]) | |
| 74 | { | |
| 75 | float z = 1.0f / ooz; | |
| 76 | UINT32 u = uoz * z; | |
| 77 | UINT32 v = voz * z; | |
| 78 | UINT32 u1 = (u >> 8) & umask; | |
| 79 | UINT32 v1 = (v >> 8) & vmask; | |
| 80 | UINT32 u2 = (u1 + 1) & umask; | |
| 81 | UINT32 v2 = (v1 + 1) & vmask; | |
| 82 | UINT32 pix00 = texture->data[(v1 << width) + u1]; | |
| 83 | UINT32 pix01 = texture->data[(v1 << width) + u2]; | |
| 84 | UINT32 pix10 = texture->data[(v2 << width) + u1]; | |
| 85 | UINT32 pix11 = texture->data[(v2 << width) + u2]; | |
| 86 | UINT32 texel = rgba_bilinear_filter(pix00, pix01, pix10, pix11, u, v); | |
| 87 | UINT32 fr = ((texel & 0x00ff0000) * polyi) >> (8+9); | |
| 88 | UINT32 fg = ((texel & 0x0000ff00) * polyi) >> (8+6); | |
| 89 | UINT32 fb = ((texel & 0x000000ff) * polyi) >> (8+3); | |
| 90 | UINT16 orig = p[x]; | |
| 91 | fr += ((orig & 0x7c00) * desttrans) >> 5; | |
| 92 | fg += ((orig & 0x03e0) * desttrans) >> 5; | |
| 93 | fb += ((orig & 0x001f) * desttrans) >> 5; | |
| 94 | p[x] = (fr & 0x7c00) | (fg & 0x3e0) | (fb & 0x1f); | |
| 95 | d[x] = iz; | |
| 392 | 96 | } |
| 97 | ||
| 98 | ooz += doozdx; | |
| 99 | uoz += duozdx; | |
| 100 | voz += dvozdx; | |
| 393 | 101 | } |
| 394 | 102 | } |
| 395 | 103 | |
| 396 | static void draw_triangle_tex4444(VERTEX v1, VERTEX v2, VERTEX v3) | |
| 104 | ||
| 105 | static void draw_scanline_alpha(void *dest, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid) | |
| 397 | 106 | { |
| 398 | int x, y; | |
| 399 | struct poly_vertex vert[3]; | |
| 400 | const struct poly_scanline_data *scans; | |
| 107 | const poly_extra_data *extra = extradata; | |
| 108 | const cached_texture *texture = extra->texture; | |
| 109 | mame_bitmap *destmap = dest; | |
| 110 | UINT16 *p = BITMAP_ADDR16(destmap, scanline, 0); | |
| 111 | UINT32 *d = BITMAP_ADDR32(zbuffer, scanline, 0); | |
| 112 | float ooz = poly_param_tri_value(extent->startx, scanline, 0, poly); | |
| 113 | float uoz = poly_param_tri_value(extent->startx, scanline, 1, poly); | |
| 114 | float voz = poly_param_tri_value(extent->startx, scanline, 2, poly); | |
| 115 | float doozdx = poly->param[0].dpdx; | |
| 116 | float duozdx = poly->param[1].dpdx; | |
| 117 | float dvozdx = poly->param[2].dpdx; | |
| 118 | UINT32 polyi = (extra->polygon_intensity * extra->polygon_transparency) >> 5; | |
| 119 | int desttrans = 32 - extra->polygon_transparency; | |
| 120 | UINT32 umask = (((extra->texture_param & TRI_PARAM_TEXTURE_MIRROR_U) ? 64 : 32) << texture->width) - 1; | |
| 121 | UINT32 vmask = (((extra->texture_param & TRI_PARAM_TEXTURE_MIRROR_V) ? 64 : 32) << texture->height) - 1; | |
| 122 | UINT32 width = 6 + texture->width; | |
| 123 | int x; | |
| 401 | 124 | |
| 402 | v1.z = (1.0 / v1.z) * ZBUFFER_SCALE; | |
| 403 | v2.z = (1.0 / v2.z) * ZBUFFER_SCALE; | |
| 404 | v3.z = (1.0 / v3.z) * ZBUFFER_SCALE; | |
| 405 | v1.u = (UINT32)((UINT64)(v1.u * v1.z) >> ZDIVIDE_SHIFT); | |
| 406 | v1.v = (UINT32)((UINT64)(v1.v * v1.z) >> ZDIVIDE_SHIFT); | |
| 407 | v2.u = (UINT32)((UINT64)(v2.u * v2.z) >> ZDIVIDE_SHIFT); | |
| 408 | v2.v = (UINT32)((UINT64)(v2.v * v2.z) >> ZDIVIDE_SHIFT); | |
| 409 | v3.u = (UINT32)((UINT64)(v3.u * v3.z) >> ZDIVIDE_SHIFT); | |
| 410 | v3.v = (UINT32)((UINT64)(v3.v * v3.z) >> ZDIVIDE_SHIFT); | |
| 411 | ||
| 412 | vert[0].x = v1.x; vert[0].y = v1.y; vert[0].p[0] = (UINT32)v1.z; vert[0].p[1] = v1.u; vert[0].p[2] = v1.v; | |
| 413 | vert[1].x = v2.x; vert[1].y = v2.y; vert[1].p[0] = (UINT32)v2.z; vert[1].p[1] = v2.u; vert[1].p[2] = v2.v; | |
| 414 | vert[2].x = v3.x; vert[2].y = v3.y; vert[2].p[0] = (UINT32)v3.z; vert[2].p[1] = v3.u; vert[2].p[2] = v3.v; | |
| 415 | scans = setup_triangle_3(&vert[0], &vert[1], &vert[2], &clip3d); | |
| 416 | ||
| 417 | if(scans) | |
| 125 | for (x = extent->startx; x < extent->stopx; x++) | |
| 418 | 126 | { |
| 419 | INT64 du, dv, dz; | |
| 420 | dz = scans->dp[0]; | |
| 421 | du = scans->dp[1]; | |
| 422 | dv = scans->dp[2]; | |
| 423 | for(y = scans->sy; y <= scans->ey; y++) { | |
| 424 | int x1, x2; | |
| 425 | INT64 u, v, z; | |
| 426 | INT64 u2, v2; | |
| 427 | const struct poly_scanline *scan = &scans->scanline[y - scans->sy]; | |
| 428 | UINT16 *p = BITMAP_ADDR16(bitmap3d, y, 0); | |
| 429 | UINT32 *d = BITMAP_ADDR32(zbuffer, y, 0); | |
| 430 | ||
| 431 | x1 = scan->sx; | |
| 432 | x2 = scan->ex; | |
| 433 | ||
| 434 | z = scans->scanline[y - scans->sy].p[0]; | |
| 435 | u = scans->scanline[y - scans->sy].p[1]; | |
| 436 | v = scans->scanline[y - scans->sy].p[2]; | |
| 437 | ||
| 438 | for(x = x1; x <= x2; x++) { | |
| 439 | // UINT16 pix; | |
| 440 | // UINT16 r,g,b; | |
| 441 | int iu, iv; | |
| 442 | ||
| 443 | UINT32 iz = z >> 16; | |
| 444 | ||
| 445 | if (iz) { | |
| 446 | u2 = (u << ZDIVIDE_SHIFT) / iz; | |
| 447 | v2 = (v << ZDIVIDE_SHIFT) / iz; | |
| 448 | } else { | |
| 449 | u2 = 0; | |
| 450 | v2 = 0; | |
| 451 | } | |
| 452 | ||
| 453 | iz |= viewport_priority; | |
| 454 | ||
| 455 | if(iz > d[x]) { | |
| 456 | iu = texture_u_table[(u2 >> texture_coord_shift) & texture_width_mask]; | |
| 457 | iv = texture_v_table[(v2 >> texture_coord_shift) & texture_height_mask]; | |
| 458 | #if BILINEAR | |
| 459 | { | |
| 460 | int iu2 = texture_u_table[((u2 >> texture_coord_shift) + 1) & texture_width_mask]; | |
| 461 | int iv2 = texture_v_table[((v2 >> texture_coord_shift) + 1) & texture_height_mask]; | |
| 462 | UINT32 sr[4], sg[4], sb[4]; | |
| 463 | UINT32 ur[2], ug[2], ub[2]; | |
| 464 | UINT32 fr, fg, fb; | |
| 465 | UINT16 pix0 = texture_ram[texture_page][(texture_y+iv) * 2048 + (texture_x+iu)]; | |
| 466 | UINT16 pix1 = texture_ram[texture_page][(texture_y+iv) * 2048 + (texture_x+iu2)]; | |
| 467 | UINT16 pix2 = texture_ram[texture_page][(texture_y+iv2) * 2048 + (texture_x+iu)]; | |
| 468 | UINT16 pix3 = texture_ram[texture_page][(texture_y+iv2) * 2048 + (texture_x+iu2)]; | |
| 469 | int u_sub1 = (u2 >> (texture_coord_shift-16)) & 0xffff; | |
| 470 | int v_sub1 = (v2 >> (texture_coord_shift-16)) & 0xffff; | |
| 471 | int u_sub0 = 0xffff - u_sub1; | |
| 472 | int v_sub0 = 0xffff - v_sub1; | |
| 473 | sr[0] = (pix0 & 0xf000); | |
| 474 | sg[0] = (pix0 & 0x0f00); | |
| 475 | sb[0] = (pix0 & 0x00f0); | |
| 476 | sr[1] = (pix1 & 0xf000); | |
| 477 | sg[1] = (pix1 & 0x0f00); | |
| 478 | sb[1] = (pix1 & 0x00f0); | |
| 479 | sr[2] = (pix2 & 0xf000); | |
| 480 | sg[2] = (pix2 & 0x0f00); | |
| 481 | sb[2] = (pix2 & 0x00f0); | |
| 482 | sr[3] = (pix3 & 0xf000); | |
| 483 | sg[3] = (pix3 & 0x0f00); | |
| 484 | sb[3] = (pix3 & 0x00f0); | |
| 485 | ||
| 486 | /* Calculate weighted U-samples */ | |
| 487 | ur[0] = (((sr[0] * u_sub0) >> 16) + ((sr[1] * u_sub1) >> 16)); | |
| 488 | ug[0] = (((sg[0] * u_sub0) >> 16) + ((sg[1] * u_sub1) >> 16)); | |
| 489 | ub[0] = (((sb[0] * u_sub0) >> 16) + ((sb[1] * u_sub1) >> 16)); | |
| 490 | ur[1] = (((sr[2] * u_sub0) >> 16) + ((sr[3] * u_sub1) >> 16)); | |
| 491 | ug[1] = (((sg[2] * u_sub0) >> 16) + ((sg[3] * u_sub1) >> 16)); | |
| 492 | ub[1] = (((sb[2] * u_sub0) >> 16) + ((sb[3] * u_sub1) >> 16)); | |
| 493 | /* Calculate the final sample */ | |
| 494 | fr = (((ur[0] * v_sub0) >> 16) + ((ur[1] * v_sub1) >> 16)); | |
| 495 | fg = (((ug[0] * v_sub0) >> 16) + ((ug[1] * v_sub1) >> 16)); | |
| 496 | fb = (((ub[0] * v_sub0) >> 16) + ((ub[1] * v_sub1) >> 16)); | |
| 497 | ||
| 498 | // apply intensity | |
| 499 | fr = (fr * polygon_intensity) >> 8; | |
| 500 | fg = (fg * polygon_intensity) >> 8; | |
| 501 | fb = (fb * polygon_intensity) >> 8; | |
| 502 | ||
| 503 | p[x] = ((fr & 0xf800) >> 1) | ((fg & 0x0f80) >> 2) | ((fb & 0x00f8) >> 3); | |
| 504 | } | |
| 505 | #else | |
| 506 | pix = texture_ram[texture_page][(texture_y+iv) * 2048 + (texture_x+iu)]; | |
| 507 | r = (pix & 0xf000) >> 1; | |
| 508 | g = (pix & 0x0f00) >> 2; | |
| 509 | b = (pix & 0x00f0) >> 3; | |
| 510 | p[x] = r | g | b; | |
| 511 | #endif | |
| 512 | d[x] = iz; /* write new zbuffer value */ | |
| 513 | } | |
| 514 | ||
| 515 | z += dz; | |
| 516 | u += du; | |
| 517 | v += dv; | |
| 518 | } | |
| 127 | UINT32 iz = ooz * 256.0f; | |
| 128 | if (iz > d[x]) | |
| 129 | { | |
| 130 | float z = 1.0f / ooz; | |
| 131 | UINT32 u = uoz * z; | |
| 132 | UINT32 v = voz * z; | |
| 133 | UINT32 u1 = (u >> 8) & umask; | |
| 134 | UINT32 v1 = (v >> 8) & vmask; | |
| 135 | UINT32 u2 = (u1 + 1) & umask; | |
| 136 | UINT32 v2 = (v1 + 1) & vmask; | |
| 137 | UINT32 pix00 = texture->data[(v1 << width) + u1]; | |
| 138 | UINT32 pix01 = texture->data[(v1 << width) + u2]; | |
| 139 | UINT32 pix10 = texture->data[(v2 << width) + u1]; | |
| 140 | UINT32 pix11 = texture->data[(v2 << width) + u2]; | |
| 141 | UINT32 texel = rgba_bilinear_filter(pix00, pix01, pix10, pix11, u, v); | |
| 142 | UINT32 fa = texel >> 24; | |
| 143 | UINT32 combined = ((fa + 1) * polyi) >> 8; | |
| 144 | UINT32 fr = ((texel & 0x00ff0000) * combined) >> (8+9); | |
| 145 | UINT32 fg = ((texel & 0x0000ff00) * combined) >> (8+6); | |
| 146 | UINT32 fb = ((texel & 0x000000ff) * combined) >> (8+3); | |
| 147 | UINT16 orig = p[x]; | |
| 148 | combined = ((255 - fa) * desttrans) >> 8; | |
| 149 | fr += ((orig & 0x7c00) * combined) >> 5; | |
| 150 | fg += ((orig & 0x03e0) * combined) >> 5; | |
| 151 | fb += ((orig & 0x001f) * combined) >> 5; | |
| 152 | p[x] = (fr & 0x7c00) | (fg & 0x3e0) | (fb & 0x1f); | |
| 153 | d[x] = iz; | |
| 519 | 154 | } |
| 155 | ||
| 156 | ooz += doozdx; | |
| 157 | uoz += duozdx; | |
| 158 | voz += dvozdx; | |
| 520 | 159 | } |
| 521 | 160 | } |
| 522 | 161 | |
| 523 | static void draw_triangle_tex4444_alpha(VERTEX v1, VERTEX v2, VERTEX v3) | |
| 162 | ||
| 163 | static void draw_scanline_alpha_test(void *dest, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid) | |
| 524 | 164 | { |
| 525 | int x, y; | |
| 526 | struct poly_vertex vert[3]; | |
| 527 | const struct poly_scanline_data *scans; | |
| 165 | const poly_extra_data *extra = extradata; | |
| 166 | const cached_texture *texture = extra->texture; | |
| 167 | mame_bitmap *destmap = dest; | |
| 168 | UINT16 *p = BITMAP_ADDR16(destmap, scanline, 0); | |
| 169 | UINT32 *d = BITMAP_ADDR32(zbuffer, scanline, 0); | |
| 170 | float ooz = poly_param_tri_value(extent->startx, scanline, 0, poly); | |
| 171 | float uoz = poly_param_tri_value(extent->startx, scanline, 1, poly); | |
| 172 | float voz = poly_param_tri_value(extent->startx, scanline, 2, poly); | |
| 173 | float doozdx = poly->param[0].dpdx; | |
| 174 | float duozdx = poly->param[1].dpdx; | |
| 175 | float dvozdx = poly->param[2].dpdx; | |
| 176 | UINT32 polyi = (extra->polygon_intensity * extra->polygon_transparency) >> 5; | |
| 177 | int desttrans = 32 - extra->polygon_transparency; | |
| 178 | UINT32 umask = (((extra->texture_param & TRI_PARAM_TEXTURE_MIRROR_U) ? 64 : 32) << texture->width) - 1; | |
| 179 | UINT32 vmask = (((extra->texture_param & TRI_PARAM_TEXTURE_MIRROR_V) ? 64 : 32) << texture->height) - 1; | |
| 180 | UINT32 width = 6 + texture->width; | |
| 181 | int x; | |
| 528 | 182 | |
| 529 | v1.z = (1.0 / v1.z) * ZBUFFER_SCALE; | |
| 530 | v2.z = (1.0 / v2.z) * ZBUFFER_SCALE; | |
| 531 | v3.z = (1.0 / v3.z) * ZBUFFER_SCALE; | |
| 532 | v1.u = (UINT32)((UINT64)(v1.u * v1.z) >> ZDIVIDE_SHIFT); | |
| 533 | v1.v = (UINT32)((UINT64)(v1.v * v1.z) >> ZDIVIDE_SHIFT); | |
| 534 | v2.u = (UINT32)((UINT64)(v2.u * v2.z) >> ZDIVIDE_SHIFT); | |
| 535 | v2.v = (UINT32)((UINT64)(v2.v * v2.z) >> ZDIVIDE_SHIFT); | |
| 536 | v3.u = (UINT32)((UINT64)(v3.u * v3.z) >> ZDIVIDE_SHIFT); | |
| 537 | v3.v = (UINT32)((UINT64)(v3.v * v3.z) >> ZDIVIDE_SHIFT); | |
| 538 | ||
| 539 | vert[0].x = v1.x; vert[0].y = v1.y; vert[0].p[0] = (UINT32)v1.z; vert[0].p[1] = v1.u; vert[0].p[2] = v1.v; | |
| 540 | vert[1].x = v2.x; vert[1].y = v2.y; vert[1].p[0] = (UINT32)v2.z; vert[1].p[1] = v2.u; vert[1].p[2] = v2.v; | |
| 541 | vert[2].x = v3.x; vert[2].y = v3.y; vert[2].p[0] = (UINT32)v3.z; vert[2].p[1] = v3.u; vert[2].p[2] = v3.v; | |
| 542 | scans = setup_triangle_3(&vert[0], &vert[1], &vert[2], &clip3d); | |
| 543 | ||
| 544 | if(scans) | |
| 183 | for (x = extent->startx; x < extent->stopx; x++) | |
| 545 | 184 | { |
| 546 | INT64 du, dv, dz; | |
| 547 | dz = scans->dp[0]; | |
| 548 | du = scans->dp[1]; | |
| 549 | dv = scans->dp[2]; | |
| 550 | for(y = scans->sy; y <= scans->ey; y++) { | |
| 551 | int x1, x2; | |
| 552 | INT64 u, v, z; | |
| 553 | INT64 u2, v2; | |
| 554 | const struct poly_scanline *scan = &scans->scanline[y - scans->sy]; | |
| 555 | UINT16 *p = BITMAP_ADDR16(bitmap3d, y, 0); | |
| 556 | UINT32 *d = BITMAP_ADDR32(zbuffer, y, 0); | |
| 557 | ||
| 558 | x1 = scan->sx; | |
| 559 | x2 = scan->ex; | |
| 560 | z = scans->scanline[y - scans->sy].p[0]; | |
| 561 | u = scans->scanline[y - scans->sy].p[1]; | |
| 562 | v = scans->scanline[y - scans->sy].p[2]; | |
| 563 | ||
| 564 | for(x = x1; x <= x2; x++) { | |
| 565 | // UINT16 pix; | |
| 566 | // UINT16 r,g,b; | |
| 567 | int iu, iv; | |
| 568 | ||
| 569 | UINT32 iz = z >> 16; | |
| 570 | ||
| 571 | if (iz) { | |
| 572 | u2 = (u << ZDIVIDE_SHIFT) / iz; | |
| 573 | v2 = (v << ZDIVIDE_SHIFT) / iz; | |
| 574 | } else { | |
| 575 | u2 = 0; | |
| 576 | v2 = 0; | |
| 577 | } | |
| 578 | ||
| 579 | iz |= viewport_priority; | |
| 580 | ||
| 581 | if(iz >= d[x]) { | |
| 582 | iu = texture_u_table[(u2 >> texture_coord_shift) & texture_width_mask]; | |
| 583 | iv = texture_v_table[(v2 >> texture_coord_shift) & texture_height_mask]; | |
| 584 | #if BILINEAR | |
| 585 | { | |
| 586 | int iu2 = texture_u_table[((u2 >> texture_coord_shift) + 1) & texture_width_mask]; | |
| 587 | int iv2 = texture_v_table[((v2 >> texture_coord_shift) + 1) & texture_height_mask]; | |
| 588 | UINT32 sr[4], sg[4], sb[4], sa[4]; | |
| 589 | UINT32 ur[2], ug[2], ub[2], ua[4]; | |
| 590 | UINT32 pr, pg, pb;//, br, bg, bb; | |
| 591 | UINT32 fr, fg, fb, fa; | |
| 592 | UINT16 pix0 = texture_ram[texture_page][(texture_y+iv) * 2048 + (texture_x+iu)]; | |
| 593 | UINT16 pix1 = texture_ram[texture_page][(texture_y+iv) * 2048 + (texture_x+iu2)]; | |
| 594 | UINT16 pix2 = texture_ram[texture_page][(texture_y+iv2) * 2048 + (texture_x+iu)]; | |
| 595 | UINT16 pix3 = texture_ram[texture_page][(texture_y+iv2) * 2048 + (texture_x+iu2)]; | |
| 596 | int u_sub1 = (u2 >> (texture_coord_shift-16)) & 0xffff; | |
| 597 | int v_sub1 = (v2 >> (texture_coord_shift-16)) & 0xffff; | |
| 598 | int u_sub0 = 0xffff - u_sub1; | |
| 599 | int v_sub0 = 0xffff - v_sub1; | |
| 600 | sr[0] = (pix0 & 0xf000); | |
| 601 | sg[0] = (pix0 & 0x0f00); | |
| 602 | sb[0] = (pix0 & 0x00f0); | |
| 603 | sa[0] = (pix0 & 0x000f) + ((pix0 >> 1) & 1); | |
| 604 | sr[1] = (pix1 & 0xf000); | |
| 605 | sg[1] = (pix1 & 0x0f00); | |
| 606 | sb[1] = (pix1 & 0x00f0); | |
| 607 | sa[1] = (pix1 & 0x000f) + ((pix1 >> 1) & 1); | |
| 608 | sr[2] = (pix2 & 0xf000); | |
| 609 | sg[2] = (pix2 & 0x0f00); | |
| 610 | sb[2] = (pix2 & 0x00f0); | |
| 611 | sa[2] = (pix2 & 0x000f) + ((pix2 >> 1) & 1); | |
| 612 | sr[3] = (pix3 & 0xf000); | |
| 613 | sg[3] = (pix3 & 0x0f00); | |
| 614 | sb[3] = (pix3 & 0x00f0); | |
| 615 | sa[3] = (pix3 & 0x000f) + ((pix3 >> 1) & 1); | |
| 616 | ||
| 617 | /* Calculate weighted U-samples */ | |
| 618 | ur[0] = ((sr[0] * u_sub0) + (sr[1] * u_sub1)) >> 16; | |
| 619 | ug[0] = ((sg[0] * u_sub0) + (sg[1] * u_sub1)) >> 16; | |
| 620 | ub[0] = ((sb[0] * u_sub0) + (sb[1] * u_sub1)) >> 16; | |
| 621 | ua[0] = ((sa[0] * u_sub0) + (sa[1] * u_sub1)) >> 16; | |
| 622 | ur[1] = ((sr[2] * u_sub0) + (sr[3] * u_sub1)) >> 16; | |
| 623 | ug[1] = ((sg[2] * u_sub0) + (sg[3] * u_sub1)) >> 16; | |
| 624 | ub[1] = ((sb[2] * u_sub0) + (sb[3] * u_sub1)) >> 16; | |
| 625 | ua[1] = ((sa[2] * u_sub0) + (sa[3] * u_sub1)) >> 16; | |
| 626 | /* Calculate the final sample */ | |
| 627 | fr = ((ur[0] * v_sub0) + (ur[1] * v_sub1)) >> 16; | |
| 628 | fg = ((ug[0] * v_sub0) + (ug[1] * v_sub1)) >> 16; | |
| 629 | fb = ((ub[0] * v_sub0) + (ub[1] * v_sub1)) >> 16; | |
| 630 | fa = ((ua[0] * v_sub0) + (ua[1] * v_sub1)) >> 16; | |
| 631 | ||
| 632 | // apply intensity | |
| 633 | fr = (fr * polygon_intensity) >> 8; | |
| 634 | fg = (fg * polygon_intensity) >> 8; | |
| 635 | fb = (fb * polygon_intensity) >> 8; | |
| 636 | ||
| 637 | fa = (polygon_transparency * fa) >> 5; | |
| 638 | ||
| 639 | /* Blend with existing framebuffer pixels */ | |
| 640 | pr = (p[x] & 0x7c00) << 1; | |
| 641 | pg = (p[x] & 0x03e0) << 2; | |
| 642 | pb = (p[x] & 0x001f) << 3; | |
| 643 | fr = ((pr * (16 - fa)) + (fr * fa)) >> 4; | |
| 644 | fg = ((pg * (16 - fa)) + (fg * fa)) >> 4; | |
| 645 | fb = ((pb * (16 - fa)) + (fb * fa)) >> 4; | |
| 646 | ||
| 647 | p[x] = ((fr & 0xf800) >> 1) | ((fg & 0x0f80) >> 2) | ((fb & 0x00f8) >> 3); | |
| 648 | } | |
| 649 | #else | |
| 650 | pix = texture_ram[texture_page][(texture_y+iv) * 2048 + (texture_x+iu)]; | |
| 651 | r = (pix & 0xf000) >> 1; | |
| 652 | g = (pix & 0x0f00) >> 2; | |
| 653 | b = (pix & 0x00f0) >> 3; | |
| 654 | p[x] = r | g | b; | |
| 655 | #endif | |
| 656 | } | |
| 657 | ||
| 658 | z += dz; | |
| 659 | u += du; | |
| 660 | v += dv; | |
| 185 | UINT32 iz = ooz * 256.0f; | |
| 186 | if (iz > d[x]) | |
| 187 | { | |
| 188 | float z = 1.0f / ooz; | |
| 189 | UINT32 u = uoz * z; | |
| 190 | UINT32 v = voz * z; | |
| 191 | UINT32 u1 = (u >> 8) & umask; | |
| 192 | UINT32 v1 = (v >> 8) & vmask; | |
| 193 | UINT32 u2 = (u1 + 1) & umask; | |
| 194 | UINT32 v2 = (v1 + 1) & vmask; | |
| 195 | UINT32 pix00 = texture->data[(v1 << width) + u1]; | |
| 196 | UINT32 pix01 = texture->data[(v1 << width) + u2]; | |
| 197 | UINT32 pix10 = texture->data[(v2 << width) + u1]; | |
| 198 | UINT32 pix11 = texture->data[(v2 << width) + u2]; | |
| 199 | UINT32 texel = rgba_bilinear_filter(pix00, pix01, pix10, pix11, u, v); | |
| 200 | UINT32 fa = texel >> 24; | |
| 201 | if (fa >= 0xf8) | |
| 202 | { | |
| 203 | UINT32 combined = ((fa + 1) * polyi) >> 8; | |
| 204 | UINT32 fr = ((texel & 0x00ff0000) * combined) >> (8+9); | |
| 205 | UINT32 fg = ((texel & 0x0000ff00) * combined) >> (8+6); | |
| 206 | UINT32 fb = ((texel & 0x000000ff) * combined) >> (8+3); | |
| 207 | UINT16 orig = p[x]; | |
| 208 | combined = ((255 - fa) * desttrans) >> 8; | |
| 209 | fr += ((orig & 0x7c00) * combined) >> 5; | |
| 210 | fg += ((orig & 0x03e0) * combined) >> 5; | |
| 211 | fb += ((orig & 0x001f) * combined) >> 5; | |
| 212 | p[x] = (fr & 0x7c00) | (fg & 0x3e0) | (fb & 0x1f); | |
| 213 | d[x] = iz; | |
| 661 | 214 | } |
| 662 | 215 | } |
| 216 | ||
| 217 | ooz += doozdx; | |
| 218 | uoz += duozdx; | |
| 219 | voz += dvozdx; | |
| 663 | 220 | } |
| 664 | 221 | } |
| 665 | 222 | |
| 666 | static void draw_triangle_color(VERTEX v1, VERTEX v2, VERTEX v3, UINT16 color) | |
| 223 | ||
| 224 | static void draw_scanline_color(void *dest, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid) | |
| 667 | 225 | { |
| 668 | int x, y; | |
| 669 | struct poly_vertex vert[3]; | |
| 670 | const struct poly_scanline_data *scans; | |
| 226 | const poly_extra_data *extra = extradata; | |
| 227 | mame_bitmap *destmap = dest; | |
| 228 | UINT16 *p = BITMAP_ADDR16(destmap, scanline, 0); | |
| 229 | UINT32 *d = BITMAP_ADDR32(zbuffer, scanline, 0); | |
| 230 | float ooz = poly_param_tri_value(extent->startx, scanline, 0, poly); | |
| 231 | float doozdx = poly->param[0].dpdx; | |
| 232 | int fr = extra->color & 0x7c00; | |
| 233 | int fg = extra->color & 0x03e0; | |
| 234 | int fb = extra->color & 0x001f; | |
| 235 | int x; | |
| 671 | 236 | |
| 672 | v1.z = (1.0 / v1.z) * ZBUFFER_SCALE; | |
| 673 | v2.z = (1.0 / v2.z) * ZBUFFER_SCALE; | |
| 674 | v3.z = (1.0 / v3.z) * ZBUFFER_SCALE; | |
| 237 | // apply intensity | |
| 238 | fr = (fr * extra->polygon_intensity) >> 8; | |
| 239 | fg = (fg * extra->polygon_intensity) >> 8; | |
| 240 | fb = (fb * extra->polygon_intensity) >> 8; | |
| 675 | 241 | |
| 676 | vert[0].x = v1.x; vert[0].y = v1.y; vert[0].p[0] = (UINT32)v1.z; | |
| 677 | vert[1].x = v2.x; vert[1].y = v2.y; vert[1].p[0] = (UINT32)v2.z; | |
| 678 | vert[2].x = v3.x; vert[2].y = v3.y; vert[2].p[0] = (UINT32)v3.z; | |
| 679 | ||
| 680 | scans = setup_triangle_1(&vert[0], &vert[1], &vert[2], &clip3d); | |
| 681 | ||
| 682 | if(scans) | |
| 242 | /* simple case: no transluceny */ | |
| 243 | if (extra->polygon_transparency >= 32) | |
| 683 | 244 | { |
| 684 | INT64 dz = scans->dp[0]; | |
| 685 | for(y = scans->sy; y <= scans->ey; y++) { | |
| 686 | int x1, x2; | |
| 687 | INT64 z; | |
| 688 | const struct poly_scanline *scan = &scans->scanline[y - scans->sy]; | |
| 689 | UINT16 *p = BITMAP_ADDR16(bitmap3d, y, 0); | |
| 690 | UINT32 *d = BITMAP_ADDR32(zbuffer, y, 0); | |
| 691 | ||
| 692 | x1 = scan->sx; | |
| 693 | x2 = scan->ex; | |
| 694 | ||
| 695 | z = scans->scanline[y - scans->sy].p[0]; | |
| 696 | ||
| 697 | for(x = x1; x <= x2; x++) { | |
| 698 | UINT32 fr, fg, fb; | |
| 699 | UINT32 iz = z >> 16; | |
| 700 | ||
| 701 | iz |= viewport_priority; | |
| 702 | ||
| 703 | if(iz > d[x]) { | |
| 704 | fr = color & 0x7c00; | |
| 705 | fg = color & 0x03e0; | |
| 706 | fb = color & 0x001f; | |
| 707 | ||
| 708 | // apply intensity | |
| 709 | fr = (fr * polygon_intensity) >> 8; | |
| 710 | fg = (fg * polygon_intensity) >> 8; | |
| 711 | fb = (fb * polygon_intensity) >> 8; | |
| 712 | ||
| 713 | p[x] = (fr & 0x7c00) | (fg & 0x03e0) | (fb & 0x1f); | |
| 714 | d[x] = iz; /* write new zbuffer value */ | |
| 715 | } | |
| 716 | z += dz; | |
| 245 | UINT32 color = (fr & 0x7c00) | (fg & 0x03e0) | (fb & 0x1f); | |
| 246 | for (x = extent->startx; x < extent->stopx; x++) | |
| 247 | { | |
| 248 | UINT32 iz = ooz * 256.0f; | |
| 249 | if (iz > d[x]) | |
| 250 | { | |
| 251 | p[x] = color; | |
| 252 | d[x] = iz; | |
| 717 | 253 | } |
| 254 | ooz += doozdx; | |
| 718 | 255 | } |
| 719 | 256 | } |
| 720 | } | |
| 721 | 257 | |
| 722 | static void draw_triangle_color_trans(VERTEX v1, VERTEX v2, VERTEX v3, UINT16 color) | |
| 723 | { | |
| 724 | int x, y; | |
| 725 | struct poly_vertex vert[3]; | |
| 726 | const struct poly_scanline_data *scans; | |
| 727 | ||
| 728 | v1.z = (1.0 / v1.z) * ZBUFFER_SCALE; | |
| 729 | v2.z = (1.0 / v2.z) * ZBUFFER_SCALE; | |
| 730 | v3.z = (1.0 / v3.z) * ZBUFFER_SCALE; | |
| 731 | ||
| 732 | vert[0].x = v1.x; vert[0].y = v1.y; vert[0].p[0] = (UINT32)v1.z; | |
| 733 | vert[1].x = v2.x; vert[1].y = v2.y; vert[1].p[0] = (UINT32)v2.z; | |
| 734 | vert[2].x = v3.x; vert[2].y = v3.y; vert[2].p[0] = (UINT32)v3.z; | |
| 735 | ||
| 736 | scans = setup_triangle_1(&vert[0], &vert[1], &vert[2], &clip3d); | |
| 737 | ||
| 738 | if(scans) | |
| 258 | /* translucency */ | |
| 259 | else | |
| 739 | 260 | { |
| 740 | INT64 dz = scans->dp[0]; | |
| 741 | for(y = scans->sy; y <= scans->ey; y++) { | |
| 742 | int x1, x2; | |
| 743 | INT64 z; | |
| 744 | UINT32 fr, fg, fb; | |
| 745 | UINT32 pr, pg, pb; | |
| 746 | const struct poly_scanline *scan = &scans->scanline[y - scans->sy]; | |
| 747 | UINT16 *p = BITMAP_ADDR16(bitmap3d, y, 0); | |
| 748 | UINT32 *d = BITMAP_ADDR32(zbuffer, y, 0); | |
| 261 | int polytrans = extra->polygon_transparency; | |
| 749 | 262 | |
| 750 | x1 = scan->sx; | |
| 751 | x2 = scan->ex; | |
| 263 | fr = (fr * polytrans) >> 5; | |
| 264 | fg = (fg * polytrans) >> 5; | |
| 265 | fb = (fb * polytrans) >> 5; | |
| 266 | polytrans = 32 - polytrans; | |
| 752 | 267 | |
| 753 | z = scans->scanline[y - scans->sy].p[0]; | |
| 268 | for (x = extent->startx; x < extent->stopx; x++) | |
| 269 | { | |
| 270 | UINT32 iz = ooz * 256.0f; | |
| 271 | if (iz > d[x]) | |
| 272 | { | |
| 273 | UINT16 orig = p[x]; | |
| 274 | int r = fr + (((orig & 0x7c00) * polytrans) >> 5); | |
| 275 | int g = fg + (((orig & 0x03e0) * polytrans) >> 5); | |
| 276 | int b = fb + (((orig & 0x001f) * polytrans) >> 5); | |
| 754 | 277 | |
| 755 | for(x = x1; x <= x2; x++) { | |
| 756 | UINT32 iz = z >> 16; | |
| 757 | ||
| 758 | iz |= viewport_priority; | |
| 759 | ||
| 760 | if(iz > d[x]) { | |
| 761 | fr = color & 0x7c00; | |
| 762 | fg = color & 0x03e0; | |
| 763 | fb = color & 0x001f; | |
| 764 | ||
| 765 | // apply intensity | |
| 766 | fr = (fr * polygon_intensity) >> 8; | |
| 767 | fg = (fg * polygon_intensity) >> 8; | |
| 768 | fb = (fb * polygon_intensity) >> 8; | |
| 769 | ||
| 770 | /* Blend with existing framebuffer pixels */ | |
| 771 | pr = (p[x] & 0x7c00); | |
| 772 | pg = (p[x] & 0x03e0); | |
| 773 | pb = (p[x] & 0x001f); | |
| 774 | fr = ((pr * (31 - polygon_transparency)) + (fr * polygon_transparency)) >> 5; | |
| 775 | fg = ((pg * (31 - polygon_transparency)) + (fg * polygon_transparency)) >> 5; | |
| 776 | fb = ((pb * (31 - polygon_transparency)) + (fb * polygon_transparency)) >> 5; | |
| 777 | p[x] = (fr & 0x7c00) | (fg & 0x03e0) | (fb & 0x1f); | |
| 778 | } | |
| 779 | z += dz; | |
| 278 | p[x] = (r & 0x7c00) | (g & 0x3e0) | (b & 0x1f); | |
| 279 | d[x] = iz; | |
| 780 | 280 | } |
| 281 | ooz += doozdx; | |
| 781 | 282 | } |
| 782 | 283 | } |
| 783 | 284 | } |
| r1238 | r1239 | |
|---|---|---|
| 601 | 601 | return 0; |
| 602 | 602 | } |
| 603 | 603 | |
| 604 | extern UINT16 *mcu_shared_ram; | |
| 605 | extern UINT16 *mcu_work_ram; | |
| 604 | extern UINT16 *nmk16_mcu_shared_ram; | |
| 605 | extern UINT16 *nmk16_mcu_work_ram; | |
| 606 | 606 | |
| 607 | 607 | /*coin setting MCU simulation*/ |
| 608 | 608 | static void mcu_run(UINT8 dsw_setting) |
| r1238 | r1239 | |
| 627 | 627 | old_value = readinputport(0); |
| 628 | 628 | |
| 629 | 629 | if(dsw_a == 0 || dsw_b == 0) |
| 630 | mcu_work_ram[0x000/2]|=0x4000; //free_play | |
| 630 | nmk16_mcu_work_ram[0x000/2]|=0x4000; //free_play | |
| 631 | 631 | |
| 632 | 632 | if(read_coin != old_value) |
| 633 | 633 | { |
| r1238 | r1239 | |
| 635 | 635 | { |
| 636 | 636 | switch(dsw_a & 7) |
| 637 | 637 | { |
| 638 | case 1: mcu_shared_ram[0xf00/2]+=4; break; | |
| 639 | case 2: mcu_shared_ram[0xf00/2]+=3; break; | |
| 640 | case 3: mcu_shared_ram[0xf00/2]+=2; break; | |
| 638 | case 1: nmk16_mcu_shared_ram[0xf00/2]+=4; break; | |
| 639 | case 2: nmk16_mcu_shared_ram[0xf00/2]+=3; break; | |
| 640 | case 3: nmk16_mcu_shared_ram[0xf00/2]+=2; break; | |
| 641 | 641 | case 4: |
| 642 | 642 | coina++; |
| 643 | 643 | if(coina >= 4) |
| 644 | 644 | { |
| 645 | 645 | coina = 0; |
| 646 | mcu_shared_ram[0xf00/2]++; | |
| 646 | nmk16_mcu_shared_ram[0xf00/2]++; | |
| 647 | 647 | } |
| 648 | 648 | break; |
| 649 | 649 | case 5: |
| r1238 | r1239 | |
| 651 | 651 | if(coina >= 3) |
| 652 | 652 | { |
| 653 | 653 | coina = 0; |
| 654 | mcu_shared_ram[0xf00/2]++; | |
| 654 | nmk16_mcu_shared_ram[0xf00/2]++; | |
| 655 | 655 | } |
| 656 | 656 | break; |
| 657 | 657 | case 6: |
| r1238 | r1239 | |
| 659 | 659 | if(coina >= 2) |
| 660 | 660 | { |
| 661 | 661 | coina = 0; |
| 662 | mcu_shared_ram[0xf00/2]++; | |
| 662 | nmk16_mcu_shared_ram[0xf00/2]++; | |
| 663 | 663 | } |
| 664 | 664 | break; |
| 665 | case 7: mcu_shared_ram[0xf00/2]++; break; | |
| 665 | case 7: nmk16_mcu_shared_ram[0xf00/2]++; break; | |
| 666 | 666 | } |
| 667 | 667 | } |
| 668 | 668 | |
| r1238 | r1239 | |
| 670 | 670 | { |
| 671 | 671 | switch(dsw_b & 7) |
| 672 | 672 | { |
| 673 | case 1: mcu_shared_ram[0xf00/2]+=4; break; | |
| 674 | case 2: mcu_shared_ram[0xf00/2]+=3; break; | |
| 675 | case 3: mcu_shared_ram[0xf00/2]+=2; break; | |
| 673 | case 1: nmk16_mcu_shared_ram[0xf00/2]+=4; break; | |
| 674 | case 2: nmk16_mcu_shared_ram[0xf00/2]+=3; break; | |
| 675 | case 3: nmk16_mcu_shared_ram[0xf00/2]+=2; break; | |
| 676 | 676 | case 4: |
| 677 | 677 | coinb++; |
| 678 | 678 | if(coinb >= 4) |
| 679 | 679 | { |
| 680 | 680 | coinb = 0; |
| 681 | mcu_shared_ram[0xf00/2]++; | |
| 681 | nmk16_mcu_shared_ram[0xf00/2]++; | |
| 682 | 682 | } |
| 683 | 683 | break; |
| 684 | 684 | case 5: |
| r1238 | r1239 | |
| 686 | 686 | if(coinb >= 3) |
| 687 | 687 | { |
| 688 | 688 | coinb = 0; |
| 689 | mcu_shared_ram[0xf00/2]++; | |
| 689 | nmk16_mcu_shared_ram[0xf00/2]++; | |
| 690 | 690 | } |
| 691 | 691 | break; |
| 692 | 692 | case 6: |
| r1238 | r1239 | |
| 694 | 694 | if(coinb >= 2) |
| 695 | 695 | { |
| 696 | 696 | coinb = 0; |
| 697 | mcu_shared_ram[0xf00/2]++; | |
| 697 | nmk16_mcu_shared_ram[0xf00/2]++; | |
| 698 | 698 | } |
| 699 | 699 | break; |
| 700 | case 7: mcu_shared_ram[0xf00/2]++; break; | |
| 700 | case 7: nmk16_mcu_shared_ram[0xf00/2]++; break; | |
| 701 | 701 | } |
| 702 | 702 | } |
| 703 | 703 | |
| 704 | 704 | if(!(readinputport(0) & 0x04))//SERVICE_COIN |
| 705 | mcu_shared_ram[0xf00/2]++; | |
| 705 | nmk16_mcu_shared_ram[0xf00/2]++; | |
| 706 | 706 | |
| 707 | if(mcu_shared_ram[0xf00/2] >= 1 && (mcu_work_ram[0x000/2] & 0x8000))/*enable start button*/ | |
| 707 | if(nmk16_mcu_shared_ram[0xf00/2] >= 1 && (nmk16_mcu_work_ram[0x000/2] & 0x8000))/*enable start button*/ | |
| 708 | 708 | { |
| 709 | 709 | /*Start a 1-player game,but don't decrement if the player 1 is already playing*/ |
| 710 | 710 | if((!(readinputport(0) & 0x08)) /*START1*/ |
| 711 | && (!(mcu_work_ram[0x000/2] & 0x0200)) /*PLAYER-1 playing*/ | |
| 711 | && (!(nmk16_mcu_work_ram[0x000/2] & 0x0200)) /*PLAYER-1 playing*/ | |
| 712 | 712 | ) |
| 713 | mcu_shared_ram[0xf00/2]--; | |
| 713 | nmk16_mcu_shared_ram[0xf00/2]--; | |
| 714 | 714 | |
| 715 | 715 | /*Start a 2-players game,but don't decrement if the player 2 is already playing*/ |
| 716 | 716 | if((!(readinputport(0) & 0x10)) |
| 717 | && (!(mcu_work_ram[0x000/2] & 0x0100)) | |
| 717 | && (!(nmk16_mcu_work_ram[0x000/2] & 0x0100)) | |
| 718 | 718 | ) |
| 719 | 719 | { |
| 720 | if(!(mcu_work_ram[0x000/2] & 0x0200) && mcu_shared_ram[0xf00/2] >= 2) | |
| 721 | mcu_shared_ram[0xf00/2]-=2; | |
| 720 | if(!(nmk16_mcu_work_ram[0x000/2] & 0x0200) && nmk16_mcu_shared_ram[0xf00/2] >= 2) | |
| 721 | nmk16_mcu_shared_ram[0xf00/2]-=2; | |
| 722 | 722 | else |
| 723 | mcu_shared_ram[0xf00/2]--; | |
| 723 | nmk16_mcu_shared_ram[0xf00/2]--; | |
| 724 | 724 | } |
| 725 | 725 | } |
| 726 | 726 | |
| 727 | if(mcu_shared_ram[0xf00/2] > 99) mcu_shared_ram[0xf00/2] = 99; | |
| 727 | if(nmk16_mcu_shared_ram[0xf00/2] > 99) nmk16_mcu_shared_ram[0xf00/2] = 99; | |
| 728 | 728 | } |
| 729 | 729 | } |
| 730 | 730 |
| r1238 | r1239 | |
|---|---|---|
| 1 | /* | |
| 2 | Bell-Fruit Cobra Hardware | |
| 1 | /****************************************************************************** | |
| 3 | 2 | |
| 4 | Working: | |
| 5 | * A Question of Sport | |
| 3 | Bell-Fruit Cobra I/II and Viper Hardware | |
| 6 | 4 | |
| 7 | Other games: | |
| 8 | * Brain Box | |
| 9 | * Every Second Counts | |
| 10 | * Inquizitor | |
| 11 | * Quizvaders | |
| 12 | * Treble Top | |
| 5 | driver by Phil Bennett | |
| 13 | 6 | |
| 14 | TODO: | |
| 15 | * Correctly implement blitter. | |
| 16 | * DSP. A Question of Sport doesn't appear to touch it (later PCB revisions don't have it?) | |
| 17 | * Unknown Slipstream I/O accesses. | |
| 18 | * Hook up inputs, EM meters, lamps etc | |
| 19 | * Floppy disk controller. | |
| 20 | * Remove instances of PULSE_LINE, dodgy bank selection and deprecated MAME functions. | |
| 21 | */ | |
| 7 | Games supported: | |
| 8 | * A Question of Sport (two sets) | |
| 9 | * Every Second Counts | |
| 10 | * Inquizitor (Viper hardware) | |
| 11 | * Quizvaders | |
| 12 | * Treble Top | |
| 22 | 13 | |
| 14 | Other games on this hardware: | |
| 15 | * Brain Box | |
| 16 | * Quintoon alt. version (Cobra II/Cyclone hardware) | |
| 17 | ||
| 18 | Notes: | |
| 19 | ||
| 20 | The hardware is based on a chipset known as 'Flare One', developed | |
| 21 | by Flare Technology. It consists of a 16-bit DSP (intended for sound | |
| 22 | synthesis and 3D maths), an 8bpp blitter and a video controller, driven | |
| 23 | by a Z80. | |
| 24 | ||
| 25 | Flare One would evolve to become 'Slipstream', used by the unreleased | |
| 26 | Konix Multisystem console. | |
| 27 | ||
| 28 | The Flare One chipset is implemented as four Texas Instruments ASICs, | |
| 29 | each an 84 pin PLCC package: | |
| 30 | ||
| 31 | CF30204, CF30205, CF30206 (DSP) and CF30207. | |
| 32 | ||
| 33 | The hardware using this chipset is as follows: | |
| 34 | ||
| 35 | Viper | |
| 36 | ===== | |
| 37 | ||
| 38 | A video expansion PCB for Scorpion I? | |
| 39 | On some PCB revisions there is audio output circuitry connected to the DSP. | |
| 40 | Viper uses a WD1772 type floppy disk controller. | |
| 41 | ||
| 42 | Cobra I | |
| 43 | ======= | |
| 44 | ||
| 45 | A combination of Viper and Scorpion I hardware on a single PCB. | |
| 46 | Cobra uses an NEC '765 type FDC. Later revisions have no DSP. | |
| 47 | ||
| 48 | Cobra II (Cyclone) | |
| 49 | ================== | |
| 50 | ||
| 51 | A compact video expansion board for Scorpion II. | |
| 52 | The Z80 is replaced by a Z180 and there is no Flare DSP or FDC | |
| 53 | ||
| 54 | ||
| 55 | To do: | |
| 56 | ||
| 57 | * Verify blitter modes on real hardware and rewrite code | |
| 58 | * Deduce unknown chipset accesses | |
| 59 | * Cobra II support | |
| 60 | * Implement Flare One DSP (although nothing seems to use it) | |
| 61 | * Hook up additional inputs, EM meters, lamps etc | |
| 62 | * Remove a 'TODO' comment or thirty | |
| 63 | ||
| 64 | Known issues: | |
| 65 | ||
| 66 | * trebltop: During the intro, DLT's signature is drawn incorrectly. | |
| 67 | * escounts: Colours are completely wrong. Is there a palette register | |
| 68 | somewhere that affects blitter/video output? | |
| 69 | * qos: Game clock and score dividers aren't drawn (needs line draw mode) | |
| 70 | ||
| 71 | ******************************************************************************/ | |
| 23 | 72 | #include "driver.h" |
| 24 | 73 | #include "debugger.h" |
| 25 | 74 | #include "machine/6850acia.h" |
| r1238 | r1239 | |
| 28 | 77 | #include "sound/upd7759.h" |
| 29 | 78 | #include "sound/ay8910.h" |
| 30 | 79 | |
| 31 | /* TODO */ | |
| 80 | /* | |
| 81 | Defines | |
| 82 | */ | |
| 32 | 83 | #define Z80_XTAL 4000000 |
| 33 | 84 | #define M6809_XTAL 1000000 |
| 34 | 85 | |
| 86 | ||
| 87 | /* | |
| 88 | Globals | |
| 89 | */ | |
| 90 | UINT8 bank[4]; | |
| 91 | UINT8 *work_ram; | |
| 92 | UINT8 *video_ram; | |
| 93 | UINT8 h_scroll; | |
| 94 | UINT8 v_scroll; | |
| 95 | UINT8 flip_8; | |
| 96 | UINT8 flip_22; | |
| 97 | ||
| 98 | /* UART source/sinks */ | |
| 99 | UINT8 z80_m6809_line; | |
| 100 | UINT8 m6809_z80_line; | |
| 101 | UINT8 data_r; | |
| 102 | UINT8 data_t; | |
| 103 | ||
| 104 | int irq_state; | |
| 105 | int acia_irq; | |
| 106 | int vblank_irq; | |
| 107 | int blitter_irq; | |
| 108 | ||
| 109 | UINT8 z80_int; | |
| 110 | UINT8 z80_inten; | |
| 111 | ||
| 112 | /* EM and lamps stuff */ | |
| 113 | UINT32 meter_latch; | |
| 114 | UINT32 mux_input; | |
| 115 | UINT32 mux_outputlatch; | |
| 116 | ||
| 117 | /* | |
| 118 | Function prototypes | |
| 119 | */ | |
| 120 | INLINE void z80_bank(int num, int data); | |
| 121 | ||
| 122 | ||
| 123 | static void update_irqs(void) | |
| 124 | { | |
| 125 | int newstate = blitter_irq || vblank_irq || acia_irq; | |
| 126 | ||
| 127 | if (newstate != irq_state) | |
| 128 | { | |
| 129 | irq_state = newstate; | |
| 130 | cpunum_set_input_line(0, 0, irq_state ? ASSERT_LINE : CLEAR_LINE); | |
| 131 | } | |
| 132 | } | |
| 133 | ||
| 134 | /*************************************************************************** | |
| 135 | ||
| 136 | Split into video\cobra.c ! | |
| 137 | ||
| 138 | ***************************************************************************/ | |
| 139 | ||
| 35 | 140 | #ifdef MAME_DEBUG |
| 36 | 141 | int DEBUG_BLITTER = 0; |
| 37 | 142 | #endif |
| r1238 | r1239 | |
| 48 | 153 | } ADDR_REG; |
| 49 | 154 | |
| 50 | 155 | /* Blitter register flag bits */ |
| 51 | #define CMD_RUN 0x01 | |
| 52 | #define CMD_COLST 0x02 | |
| 53 | #define CMD_PARRD 0x04 /* Never used? */ | |
| 54 | #define CMD_SRCUP 0x08 | |
| 55 | #define CMD_DSTUP 0x10 | |
| 56 | #define CMD_SRCEN 0x20 | |
| 57 | #define CMD_DSTEN 0x40 | |
| 156 | #define CMD_RUN 0x01 | |
| 157 | #define CMD_COLST 0x02 | |
| 158 | #define CMD_PARRD 0x04 /* Never used? */ | |
| 159 | #define CMD_SRCUP 0x08 | |
| 160 | #define CMD_DSTUP 0x10 | |
| 161 | #define CMD_SRCEN 0x20 | |
| 162 | #define CMD_DSTEN 0x40 | |
| 58 | 163 | #define CMD_LINEDRAW 0x80 |
| 59 | 164 | |
| 60 | 165 | /* All unconfirmed */ |
| 61 | 166 | //#define SRCDST_CMP 0x10 |
| 62 | 167 | //#define SRCDST_WRAP 0x20 |
| 63 | 168 | //#define SRCDST_SIGN 0x40 |
| 64 | #define SRCDST_A_1 0x80 /* This might be correct for line drawing? */ | |
| 169 | #define SRCDST_A_1 0x80 /* This might be correct for line drawing? */ | |
| 65 | 170 | |
| 66 | 171 | /* These appear to be correct */ |
| 67 | #define MODE_SSIGN 0x80 // TODO: Implement these outside line mode. | |
| 68 | #define MODE_DSIGN 0x40 | |
| 69 | #define MODE_YFRAC 0x20 | |
| 172 | #define MODE_SSIGN 0x80 | |
| 173 | #define MODE_DSIGN 0x40 | |
| 174 | #define MODE_YFRAC 0x20 | |
| 70 | 175 | #define MODE_BITTOBYTE 0x04 |
| 71 | #define MODE_ | |
| 176 | #define MODE_PALREMAP 0x10 | |
| 72 | 177 | |
| 73 | 178 | /* All unconfirmed */ |
| 74 | 179 | //#define CMPFUNC_EQ 0x01 |
| r1238 | r1239 | |
| 76 | 181 | //#define CMPFUNC_GT 0x04 |
| 77 | 182 | //#define CMPFUNC_PLANE 0x08 |
| 78 | 183 | |
| 79 | #define CMPFUNC_EQ 0x08 | |
| 184 | #define CMPFUNC_EQ 0x08 | |
| 80 | 185 | #define CMPFUNC_LOG0 0x10 |
| 81 | 186 | #define CMPFUNC_LOG1 0x20 |
| 82 | 187 | #define CMPFUNC_LOG2 0x40 |
| 83 | 188 | #define CMPFUNC_LOG3 0x80 |
| 84 | 189 | |
| 85 | ||
| 86 | 190 | /* |
| 87 | | |
| 191 | B | |
| 88 | 192 | */ |
| 89 | st | |
| 193 | st | |
| 90 | 194 | { |
| 91 | 195 | ADDR_REG program; |
| 92 | 196 | |
| r1238 | r1239 | |
| 108 | 212 | /* |
| 109 | 213 | MUSIC Semiconductor TR9C1710 RAMDAC or equivalent |
| 110 | 214 | */ |
| 111 | st | |
| 215 | st | |
| 112 | 216 | { |
| 113 | 217 | UINT8 addr_w; |
| 114 | 218 | UINT8 addr_r; |
| r1238 | r1239 | |
| 124 | 228 | UINT8 count_w; |
| 125 | 229 | } ramdac; |
| 126 | 230 | |
| 127 | /* | |
| 128 | Globals | |
| 129 | */ | |
| 130 | ||
| 131 | static UINT8 bank[4]; | |
| 132 | static UINT8 *work_ram; | |
| 133 | static UINT8 *video_ram; | |
| 134 | static UINT8 h_scroll; | |
| 135 | static UINT8 flip_8; | |
| 136 | static UINT8 flip_22; | |
| 137 | ||
| 138 | /* UART source/sinks */ | |
| 139 | static UINT8 z80_m6809_line; | |
| 140 | static UINT8 m6809_z80_line; | |
| 141 | static UINT8 data_r; | |
| 142 | static UINT8 data_t; | |
| 143 | ||
| 144 | static UINT8 z80_int; | |
| 145 | static UINT8 z80_inten; | |
| 146 | ||
| 147 | /* EM and lamps stuff */ | |
| 148 | static UINT32 meter_latch; | |
| 149 | static UINT32 mux_input; | |
| 150 | static UINT32 mux_outputlatch; | |
| 151 | ||
| 152 | INLINE void z80_bank(int num, int data); | |
| 153 | ||
| 154 | /* TODO */ | |
| 155 | static MACHINE_RESET( bfcobra ) | |
| 231 | VIDEO_UPDATE( bfcobra ) | |
| 156 | 232 | { |
| 157 | bank[0] = 1; | |
| 158 | memset(&ramdac, 0, sizeof(ramdac)); | |
| 159 | } | |
| 160 | ||
| 161 | /* TODO: Put in video/bfcobra.c */ | |
| 162 | static VIDEO_UPDATE( bfcobra ) | |
| 163 | { | |
| 164 | 233 | int x, y; |
| 165 | UINT8 *src; | |
| 234 | UINT8 *src; | |
| 166 | 235 | UINT32 *dest; |
| 167 | 236 | UINT32 offset; |
| 168 | 237 | |
| 169 | if (flip_8 == 0x44 && flip_22 == 0x41) | |
| 170 | { | |
| 238 | /* A bit dodgy */ | |
| 239 | if (flip_8 & 0x40 && flip_22 & 0x40) | |
| 171 | 240 | offset = 0x10000; |
| 172 | } | |
| 173 | 241 | else |
| 174 | { | |
| 175 | 242 | offset = 0; |
| 176 | } | |
| 177 | 243 | |
| 178 | for (y = cliprect->min_y; y <= cliprect->max_y; | |
| 244 | for (y = cliprect->min_y; y <= cliprect->max_y; | |
| 179 | 245 | { |
| 180 | src = &video_ram[offset + y * 256]; | |
| 181 | dest = BITMAP_ADDR32(bitmap,y,0); | |
| 246 | UINT16 y_offset = (y + v_scroll) * 256; | |
| 247 | src = &video_ram[offset + y_offset]; | |
| 248 | dest = BITMAP_ADDR32(bitmap, y, 0); | |
| 182 | 249 | |
| 183 | for (x = cliprect->min_x; x <= cliprect->max_x; | |
| 250 | for (x = cliprect->min_x; x <= cliprect->max_x; | |
| 184 | 251 | { |
| 185 | *dest++ = machine->pens[*src++]; | |
| 252 | UINT8 x_offset = x + h_scroll; | |
| 253 | UINT8 pen = *(src + x_offset); | |
| 254 | ||
| 255 | //*dest++ = Machine->pens[pen & ramdac.mask]; | |
| 256 | *dest++ = Machine->pens[pen]; | |
| 186 | 257 | } |
| 187 | 258 | } |
| 188 | 259 | |
| 189 | 260 | return 0; |
| 190 | 261 | } |
| 191 | 262 | |
| 192 | /* TODO */ | |
| 193 | 263 | INLINE UINT8* blitter_get_addr(UINT32 addr) |
| 194 | 264 | { |
| 195 | 265 | if (addr < 0x10000) |
| 196 | 266 | { |
| 197 | return (UINT8*)(memory_region(REGION_USER1) + addr); // Is this region fixed? | |
| 198 | ||
| 267 | /* Is this region fixed? */ | |
| 268 | return (UINT8*)(memory_region(REGION_USER1) + addr); | |
| 199 | 269 | } |
| 200 | 270 | else if(addr < 0x20000) |
| 201 | 271 | { |
| r1238 | r1239 | |
| 216 | 286 | |
| 217 | 287 | |
| 218 | 288 | /* |
| 219 | TODO: Needs re-writing. | |
| 289 | This is based this on the Slipstream technical reference manual. | |
| 290 | The Flare One blitter is a simpler design with slightly different parameters | |
| 291 | and will require hardware tests to figure everything out correctly. | |
| 220 | 292 | */ |
| 221 | ||
| 293 | ||
| 222 | 294 | { |
| 223 | 295 | #define BLITPRG_READ(x) blitter.x = *(blitter_get_addr(blitter.program.addr++)) |
| 224 | 296 | |
| r1238 | r1239 | |
| 241 | 313 | BLITPRG_READ(step); |
| 242 | 314 | BLITPRG_READ(pattern); |
| 243 | 315 | |
| 244 | ||
| 316 | ||
| 245 | 317 | if (DEBUG_BLITTER) |
| 246 | 318 | { |
| 247 | // Check | |
| 248 | printf("\nBlitter: Running command from 0x%.5x\n\n",blitter.program.addr - 12); | |
| 249 | ||
| 250 | printf("Command Reg %.2x", blitter.command); | |
| 251 | printf(" %s %s %s %s %s %s %s\n", | |
| 319 | mame_printf_debug("\nBlitter (%x): Running command from 0x%.5x\n\n", activecpu_get_previouspc(), blitter.program.addr - 12); | |
| 320 | mame_printf_debug("Command Reg %.2x", blitter.command); | |
| 321 | mame_printf_debug(" %s %s %s %s %s %s %s\n", | |
| 252 | 322 | blitter.command & CMD_RUN ? "RUN" : " ", |
| 253 | 323 | blitter.command & CMD_COLST ? "COLST" : " ", |
| 254 | 324 | blitter.command & CMD_PARRD ? "PARRD" : " ", |
| r1238 | r1239 | |
| 257 | 327 | blitter.command & CMD_SRCEN ? "SRCEN" : " ", |
| 258 | 328 | blitter.command & CMD_DSTEN ? "DSTEN" : " "); |
| 259 | 329 | |
| 260 | printf("Src Address Byte 0 %.2x\n", blitter.source.addr0); | |
| 261 | printf("Src Address Byte 1 %.2x\n", blitter.source.addr1); | |
| 262 | printf("Src Control %.2x\n", blitter.source.addr2); | |
| 263 | printf(" Src Address %.5x\n", blitter.source.addr & 0xfffff); | |
| 264 | printf("Dest Address Byte 0 %.2x\n", blitter.dest.addr0); | |
| 265 | printf("Dest Address Byte 1 %.2x\n", blitter.dest.addr1); | |
| 266 | printf("Dest Control %.2x\n", blitter.dest.addr2); | |
| 267 | printf(" Dst. Address %.5x\n", blitter.dest.addr & 0xfffff); | |
| 268 | printf("Mode Control %.2x", blitter.modectl); | |
| 269 | printf(" %s\n", blitter.modectl & MODE_BITTOBYTE ? "BIT_TO_BYTE" : ""); | |
| 330 | mame_printf_debug("Src Address Byte 0 %.2x\n", blitter.source.addr0); | |
| 331 | mame_printf_debug("Src Address Byte 1 %.2x\n", blitter.source.addr1); | |
| 332 | mame_printf_debug("Src Control %.2x\n", blitter.source.addr2); | |
| 333 | mame_printf_debug(" Src Address %.5x\n", blitter.source.addr & 0xfffff); | |
| 334 | mame_printf_debug("Dest Address Byte 0 %.2x\n", blitter.dest.addr0); | |
| 335 | mame_printf_debug("Dest Address Byte 1 %.2x\n", blitter.dest.addr1); | |
| 336 | mame_printf_debug("Dest Control %.2x\n", blitter.dest.addr2); | |
| 337 | mame_printf_debug(" Dst. Address %.5x\n", blitter.dest.addr & 0xfffff); | |
| 338 | mame_printf_debug("Mode Control %.2x", blitter.modectl); | |
| 339 | mame_printf_debug(" %s\n", blitter.modectl & MODE_BITTOBYTE ? "BIT_TO_BYTE" : ""); | |
| 270 | 340 | |
| 271 | printf("Comp. and LFU %.2x\n", blitter.compfunc); | |
| 272 | printf("Outer Loop Count %.2x (%d)\n", blitter.outercnt, blitter.outercnt); | |
| 273 | printf("Inner Loop Count %.2x (%d)\n", blitter.innercnt, blitter.innercnt); | |
| 274 | printf("Step Value %.2x\n", blitter.step); | |
| 275 | printf("Pattern Byte %.2x\n", blitter.pattern); | |
| 341 | mame_printf_debug("Comp. and LFU %.2x\n", blitter.compfunc); | |
| 342 | mame_printf_debug("Outer Loop Count %.2x (%d)\n", blitter.outercnt, blitter.outercnt); | |
| 343 | mame_printf_debug("Inner Loop Count %.2x (%d)\n", blitter.innercnt, blitter.innercnt); | |
| 344 | mame_printf_debug("Step Value %.2x\n", blitter.step); | |
| 345 | mame_printf_debug("Pattern Byte %.2x\n", blitter.pattern); | |
| 276 | 346 | } |
| 277 | ||
| 347 | ||
| 278 | 348 | |
| 279 | /* TODO */ | |
| 280 | if (blitter.dest.addr == 0) | |
| 281 | { | |
| 282 | return; | |
| 283 | } | |
| 349 | /* Ignore these writes */ | |
| 350 | if (blitter.dest.addr == 0) | |
| 351 | { | |
| 352 | return; | |
| 353 | } | |
| 284 | 354 | |
| 355 | /* Dirty hacks for Quizvaders */ | |
| 356 | if ( (blitter.command == 0x01) || (blitter.command == 0x19) ) | |
| 357 | { | |
| 358 | blitter.command |= CMD_SRCEN; | |
| 359 | } | |
| 360 | ||
| 285 | 361 | /* Begin outer loop */ |
| 286 | | |
| 362 | for (;;) | |
| 287 | 363 | { |
| 288 | 364 | UINT8 innercnt = blitter.innercnt; |
| 289 | 365 | |
| 290 | /* | |
| 291 | Line Drawing Mode | |
| 366 | if (blitter.command & CMD_LINEDRAW) | |
| 367 | { | |
| 368 | /* | |
| 369 | Line Drawing Mode | |
| 292 | 370 | |
| 293 | x1 - x0 | |
| 294 | y1 - y0 | |
| 371 | x1 - x0 | |
| 372 | y1 - y0 | |
| 295 | 373 | |
| 296 | d1 = bigger | |
| 297 | d2 = smaller | |
| 374 | d1 = bigger | |
| 375 | d2 = smaller | |
| 298 | 376 | |
| 299 | * SRC0 = d1/2 | |
| 300 | * SRC1 = d1 | |
| 301 | * Inner Count = d1 | |
| 302 | * DST0 = X0 | |
| 303 | * DST1 = Y0 | |
| 304 | * Source control = LSB of d1 | |
| 305 | * Step reg = d2 | |
| 306 | */ | |
| 307 | if (blitter.command & CMD_LINEDRAW) | |
| 308 | { | |
| 309 | // TODO | |
| 377 | * SRC0 = d1/2 | |
| 378 | * SRC1 = d1 | |
| 379 | * Inner Count = d1 | |
| 380 | * DST0 = X0 | |
| 381 | * DST1 = Y0 | |
| 382 | * Source control = LSB of d1 | |
| 383 | * Step reg = d2 | |
| 384 | */ | |
| 310 | 385 | } |
| 311 | 386 | else do |
| 312 | 387 | { |
| 313 | | |
| 388 | | |
| 314 | 389 | UINT8 inhibit = 0; |
| 315 | 390 | |
| 316 | / | |
| 391 | /* TODO: Set this correctly */ | |
| 317 | 392 | UINT8 result = blitter.pattern; |
| 318 | 393 | |
| 319 | 394 | /* Source value is read only once in character mode */ |
| r1238 | r1239 | |
| 326 | 401 | } |
| 327 | 402 | |
| 328 | 403 | /* Enable source address read and increment? */ |
| 329 | if (!(blitter.modectl & MODE_BITTOBYTE)) | |
| 404 | if ( !(blitter.modectl & (MODE_BITTOBYTE | MODE_PALREMAP)) ) | |
| 330 | 405 | { |
| 331 | 406 | if (blitter.command & CMD_SRCEN) |
| 332 | 407 | { |
| 333 | 408 | srcdata = *(blitter_get_addr(blitter.source.addr & 0xfffff)); |
| 334 | blitter.source.addr = (blitter.source.addr + 1) & 0xfffff; | |
| 409 | ||
| 410 | /* TODO */ | |
| 411 | if (blitter.modectl & MODE_SSIGN) | |
| 412 | blitter.source.addr = (blitter.source.addr - 1) & 0xfffff; | |
| 413 | else | |
| 414 | blitter.source.addr = (blitter.source.addr + 1) & 0xfffff; | |
| 415 | ||
| 335 | 416 | result = srcdata; |
| 336 | 417 | } |
| 337 | 418 | } |
| r1238 | r1239 | |
| 344 | 425 | |
| 345 | 426 | /* Inhibit depending on the bit selected by the inner count */ |
| 346 | 427 | |
| 347 | / | |
| 428 | /* Switch on comparator type? */ | |
| 348 | 429 | if (blitter.modectl & MODE_BITTOBYTE) |
| 349 | 430 | { |
| 350 | 431 | inhibit = !(srcdata & (1 << (8 - innercnt))); |
| r1238 | r1239 | |
| 361 | 442 | { |
| 362 | 443 | inhibit = 1; |
| 363 | 444 | |
| 364 | /* TODO: Resume from inhibit */ | |
| 445 | /* TODO: Resume from inhibit? */ | |
| 365 | 446 | if (blitter.command & CMD_COLST) |
| 366 | { | |
| 367 | 447 | return; |
| 368 | } | |
| 369 | 448 | } |
| 370 | 449 | } |
| 371 | #if 0 | |
| 372 | else | |
| 373 | { | |
| 374 | UINT32 LOG0, LOG1, LOG2, LOG3; | |
| 375 | 450 | |
| 376 | LOG0 = (blitter.compfunc & CMPFUNC_LOG0) ? ~srcdata & ~dstdata : 0; | |
| 377 | LOG1 = (blitter.compfunc & CMPFUNC_LOG1) ? ~srcdata & dstdata : 0; | |
| 378 | LOG2 = (blitter.compfunc & CMPFUNC_LOG2) ? srcdata & ~dstdata : 0; | |
| 379 | LOG3 = (blitter.compfunc & CMPFUNC_LOG3) ? srcdata & dstdata : 0; | |
| 380 | ||
| 381 | result = LOG0 | LOG1 | LOG2 | LOG3; | |
| 382 | inhibit = 0; | |
| 383 | } | |
| 384 | #endif | |
| 385 | ||
| 386 | 451 | /* Write the data if not inhibited */ |
| 387 | 452 | if (!inhibit) |
| 388 | 453 | { |
| 389 | /* TODO: This is definitely not right */ | |
| 390 | if (blitter.modectl & 0x10) | |
| 454 | if (blitter.modectl == MODE_PALREMAP) | |
| 391 | 455 | { |
| 392 | *blitter_get_addr(blitter.dest.addr) += 0x80; | |
| 456 | /* | |
| 457 | In this mode, the source points to a 256 entry lookup table. | |
| 458 | The existing destination pixel is used as a lookup | |
| 459 | into the table and the colours is replaced. | |
| 460 | */ | |
| 461 | UINT8 dest = *blitter_get_addr(blitter.dest.addr); | |
| 462 | UINT8 newcol = *(blitter_get_addr((blitter.source.addr + dest) & 0xfffff)); | |
| 463 | ||
| 464 | *blitter_get_addr(blitter.dest.addr) = newcol; | |
| 393 | 465 | } |
| 394 | 466 | else |
| 395 | 467 | { |
| r1238 | r1239 | |
| 399 | 471 | |
| 400 | 472 | /* Update destination address */ |
| 401 | 473 | blitter.dest.addr = (blitter.dest.addr + 1) & 0xfffff; |
| 474 | } while (--innercnt); | |
| 402 | 475 | |
| 403 | }while (--innercnt); | |
| 404 | ||
| 405 | 476 | if (!--blitter.outercnt) |
| 406 | 477 | { |
| 407 | 478 | break; |
| r1238 | r1239 | |
| 425 | 496 | BLITPRG_READ(pattern); |
| 426 | 497 | } |
| 427 | 498 | } |
| 499 | } | |
| 428 | 500 | |
| 429 | }while (1); | |
| 430 | ||
| 431 | 501 | /* Read next command header */ |
| 432 | 502 | BLITPRG_READ(command); |
| 433 | 503 | |
| 434 | }while (blitter.command & CMD_RUN); | |
| 504 | } while (blitter.command & CMD_RUN); | |
| 435 | 505 | } |
| 436 | 506 | |
| 507 | ||
| 437 | 508 | static READ8_HANDLER( ramdac_r ) |
| 438 | 509 | { |
| 439 | 510 | UINT8 val = 0xff; |
| r1238 | r1239 | |
| 462 | 533 | if (++*count == 3) |
| 463 | 534 | { |
| 464 | 535 | *count = 0; |
| 465 | /* Address register auto-increments */ | |
| 466 | 536 | ramdac.addr_r++; |
| 467 | 537 | } |
| 468 | 538 | break; |
| 469 | 539 | } |
| 470 | 540 | default: |
| 471 | 541 | { |
| 472 | printf("Odd DAC access\n"); | |
| 473 | DEBUGGER_BREAK; | |
| 474 | break; | |
| 542 | mame_printf_debug("Unhandled RAMDAC read (PC:%.4x)\n", activecpu_get_previouspc()); | |
| 475 | 543 | } |
| 476 | 544 | } |
| 477 | 545 | |
| r1238 | r1239 | |
| 502 | 570 | case 2: |
| 503 | 571 | { |
| 504 | 572 | ramdac.mask = data; |
| 505 | if (data != 0xff) | |
| 506 | { | |
| 507 | printf("Unimplemented: RAMDAC Mask %x\n",data); | |
| 508 | DEBUGGER_BREAK; | |
| 509 | } | |
| 510 | 573 | break; |
| 511 | 574 | } |
| 512 | 575 | case 3: |
| r1238 | r1239 | |
| 517 | 580 | } |
| 518 | 581 | } |
| 519 | 582 | |
| 520 | /* | |
| 521 | WD37C656C-PL (or equivalent) Floppy Disk Controller | |
| 522 | */ | |
| 523 | static WRITE8_HANDLER( fdctrl_w ) | |
| 524 | { | |
| 583 | /*************************************************************************** | |
| 525 | 584 | |
| 526 | ||
| 585 | Flare One Register Map | |
| 527 | 586 | |
| 528 | static READ8_HANDLER( fdctrl_r ) | |
| 529 | { | |
| 530 | return 0x80; | |
| 531 | } | |
| 587 | 01 Bank control for Z80 region 0x4000-0x7fff (16kB) WR | |
| 588 | 02 Bank control for Z80 region 0x8000-0xbfff (16kB) WR | |
| 589 | 03 Bank control for Z80 region 0xc000-0xffff (16kB) WR | |
| 532 | 590 | |
| 591 | 06 Interrupt status....................................WR | |
| 592 | 07 Interrupt ack.......................................WR | |
| 593 | ???? Written with 0x21 | |
| 594 | 08 | |
| 595 | 09 ???? Linked with c001...............................W | |
| 596 | 0A ???? Written with 0 and 1...........................W | |
| 533 | 597 | |
| 534 | /* | |
| 535 | 01 Bank control for Z80 region 0x4000-0x7fff (16kB) RW | |
| 536 | 02 Bank control for Z80 region 0x8000-0xbfff (16kB) RW | |
| 537 | 03 Bank control for Z80 region 0xc000-0xffff (16kB) RW | |
| 598 | 0B Horizontal frame buffer scroll .....................W | |
| 599 | 0C Vertical frame buffer scroll .......................W | |
| 538 | 600 | |
| 539 | 06 Interrupt status? WR | |
| 540 | 07 Interrupt ack? WR | |
| 541 | ???? Written with 0x21 | |
| 542 | 08 | |
| 543 | 09 ???? Linked with c001 W | |
| 544 | 0A ???? Written with 0 and 1 W | |
| 601 | 0D ???? Written with $FF...............................W | |
| 602 | 0E ???? Written with $A2 (162).........................W | |
| 603 | 0F ???? Written with $B4 (180).........................W | |
| 604 | 14 ....................................................W | |
| 545 | 605 | |
| 546 | 0B H scroll ?? W | |
| 547 | 0C V scroll ?? W | |
| 606 | 18 Blitter program low byte............................WR | |
| 607 | 19 Blitter program middle byte.........................W | |
| 608 | 1A Blitter program high byte...........................W | |
| 609 | 1B Blitter command?....................................W | |
| 610 | 1C Blitter status?......................................R | |
| 611 | 20 Blitter control register............................W | |
| 548 | 612 | |
| 549 | 0D ???? Written with $FF W | |
| 550 | 0E ???? Written with $A2 (162) W | |
| 551 | 0F ???? Written with $B4 (180) W | |
| 613 | 22 ???? Linked with C002...............................W | |
| 614 | Mask of 20 | |
| 552 | 615 | |
| 553 | 14 W | |
| 616 | Joystick: xxx1 11xx R | |
| 617 | ? (polled on tight loop): x1xx xxxx R | |
| 554 | 618 | |
| 555 | 18 Blitter program low byte WR | |
| 556 | 19 Blitter program middle byte W | |
| 557 | 1A Blitter program high byte W | |
| 558 | 1B Blitter command? W | |
| 559 | 1C Blitter status? R | |
| 560 | 20 Blitter control register W | |
| 619 | 40: ROM bank select.....................................W | |
| 561 | 620 | |
| 562 | 22 ???? Linked with C002 WR | |
| 563 | Mask of 20 | |
| 564 | 40: ROM bank select W | |
| 565 | */ | |
| 621 | ***************************************************************************/ | |
| 566 | 622 | |
| 567 | /* | |
| 568 | Z80 IO addressing handled by Slipstream | |
| 569 | */ | |
| 570 | static READ8_HANDLER( slipstream_r ) | |
| 623 | static READ8_HANDLER( chipset_r ) | |
| 571 | 624 | { |
| 572 | 625 | UINT8 val = 0xff; |
| 573 | 626 | |
| r1238 | r1239 | |
| 582 | 635 | } |
| 583 | 636 | case 6: |
| 584 | 637 | { |
| 585 | val = z80_int << 4; | |
| 638 | /* TODO */ | |
| 639 | val = vblank_irq << 4; | |
| 586 | 640 | break; |
| 587 | 641 | } |
| 588 | 642 | case 7: |
| 589 | 643 | { |
| 590 | | |
| 644 | vblank_irq = 0; | |
| 591 | 645 | val = 0x1; |
| 646 | ||
| 647 | /* TODO */ | |
| 648 | update_irqs(); | |
| 592 | 649 | break; |
| 593 | 650 | } |
| 594 | 651 | case 0x1C: |
| r1238 | r1239 | |
| 599 | 656 | } |
| 600 | 657 | case 0x20: |
| 601 | 658 | { |
| 602 | /* | |
| 659 | /* | |
| 603 | 660 | val = blitter.dest.addr0; |
| 604 | 661 | break; |
| 605 | 662 | } |
| 663 | case 0x22: | |
| 664 | { | |
| 665 | val = 0x40 | readinputportbytag("JOYSTICK"); | |
| 666 | break; | |
| 667 | } | |
| 606 | 668 | default: |
| 607 | 669 | { |
| 608 | #ifdef MAME_DEBUG | |
| 609 | // printf("SS IO R: %x (%x)\n",offset); | |
| 610 | #endif | |
| 670 | mame_printf_debug("Flare One unknown read: 0x%.2x (PC:0x%.4x)\n", offset, activecpu_get_previouspc()); | |
| 611 | 671 | } |
| 612 | 672 | } |
| 613 | 673 | |
| 614 | 674 | return val; |
| 615 | 675 | } |
| 616 | 676 | |
| 617 | static WRITE8_HANDLER( | |
| 677 | static WRITE8_HANDLER( chips | |
| 618 | 678 | { |
| 619 | switch(offset) | |
| 679 | switch (offset) | |
| 620 | 680 | { |
| 621 | 681 | case 0x01: |
| 622 | 682 | case 0x02: |
| 623 | 683 | case 0x03: |
| 624 | 684 | { |
| 685 | if (data > 0x3f) | |
| 686 | { | |
| 687 | popmessage("%x: Unusual bank access (%x)\n", activecpu_get_previouspc(), data); | |
| 688 | } | |
| 625 | 689 | data &= 0x3f; |
| 626 | 690 | bank[offset] = data; |
| 627 | 691 | z80_bank(offset, data); |
| 628 | 692 | break; |
| 629 | 693 | } |
| 630 | case 0x07: | |
| 631 | { | |
| 632 | z80_inten = data; | |
| 633 | break; | |
| 634 | } | |
| 635 | 694 | case 0x08: |
| 636 | 695 | { |
| 637 | 696 | flip_8 = data; |
| 638 | 697 | break; |
| 639 | 698 | } |
| 640 | case 0x | |
| 699 | case 0x0B: | |
| 641 | 700 | { |
| 642 | | |
| 701 | h | |
| 643 | 702 | break; |
| 644 | 703 | } |
| 645 | case 0x0 | |
| 704 | case 0x0C: | |
| 646 | 705 | { |
| 647 | | |
| 706 | v_scroll = data; | |
| 648 | 707 | break; |
| 649 | 708 | } |
| 650 | 709 | case 0x18: |
| r1238 | r1239 | |
| 662 | 721 | blitter.program.addr2 = data; |
| 663 | 722 | break; |
| 664 | 723 | } |
| 665 | case 0x1B: | |
| 666 | { | |
| 667 | /* TODO: Blitter resume. */ | |
| 668 | break; | |
| 669 | } | |
| 670 | 724 | case 0x20: |
| 671 | 725 | { |
| 672 | 726 | blitter.command = data; |
| 727 | ||
| 673 | 728 | if (data & CMD_RUN) |
| 674 | { | |
| 675 | 729 | RunBlit(); |
| 676 | } | |
| 677 | 730 | else |
| 678 | { | |
| 679 | #ifdef MAME_DEBUG | |
| 680 | printf ("Blitter stopped by IO.\n"); | |
| 681 | #endif | |
| 682 | } | |
| 731 | mame_printf_debug ("Blitter stopped by IO.\n"); | |
| 732 | ||
| 683 | 733 | break; |
| 684 | 734 | } |
| 735 | case 0x22: | |
| 736 | { | |
| 737 | flip_22 = data; | |
| 738 | break; | |
| 739 | } | |
| 685 | 740 | default: |
| 686 | 741 | { |
| 687 | #ifdef MAME_DEBUG | |
| 688 | printf("SS IO W: %x (%x)\n",offset, data); | |
| 689 | #endif | |
| 742 | mame_printf_debug("Flare One unknown write: 0x%.2x with 0x%.2x (PC:0x%.4x)\n", offset, data, activecpu_get_previouspc()); | |
| 690 | 743 | } |
| 691 | 744 | } |
| 692 | 745 | } |
| 693 | 746 | |
| 694 | 747 | INLINE void z80_bank(int num, int data) |
| 695 | 748 | { |
| 696 | if (data < 8) | |
| 749 | if (data < 0x08) | |
| 697 | 750 | { |
| 698 | 751 | /* TODO: Don't need this table! */ |
| 699 | 752 | static UINT32 offs_table[2][8] = |
| 700 | { { 0x10000, 0x14000, 0x18000, 0x1c000, 0x00000, 0x04000, 0x08000, 0x0c000 }, | |
| 701 | { 0x00000, 0x04000, 0x08000, 0x0c000, 0x10000, 0x14000, 0x18000, 0x1c000 } }; | |
| 753 | { | |
| 754 | { 0x10000, 0x14000, 0x18000, 0x1c000, 0x00000, 0x04000, 0x08000, 0x0c000 }, | |
| 755 | { 0x00000, 0x04000, 0x08000, 0x0c000, 0x10000, 0x14000, 0x18000, 0x1c000 } | |
| 756 | }; | |
| 702 | 757 | |
| 703 | 758 | UINT32 offset = ((bank[0] >> 1) * 0x20000) + offs_table[bank[0] & 0x1][data]; |
| 704 | 759 | |
| r1238 | r1239 | |
| 706 | 761 | } |
| 707 | 762 | else if (data < 0x10) |
| 708 | 763 | { |
| 709 | memory_set_bankptr(num, &video_ram[(data | |
| 764 | memory_set_bankptr(num, &video_ram[(data - 0x | |
| 710 | 765 | } |
| 711 | 766 | else |
| 712 | 767 | { |
| 713 | memory_set_bankptr(num, &work_ram[(data | |
| 768 | memory_set_bankptr(num, &work_ram[(data - 0x10 | |
| 714 | 769 | } |
| 715 | 770 | } |
| 716 | 771 | |
| r1238 | r1239 | |
| 723 | 778 | } |
| 724 | 779 | |
| 725 | 780 | |
| 781 | ||
| 782 | /*************************************************************************** | |
| 783 | ||
| 784 | Split into machine\cobra.c ! | |
| 785 | ||
| 786 | Alternatively chuck it all away and borrow the MESS implementation | |
| 787 | because it's a million times better. | |
| 788 | ||
| 789 | ***************************************************************************/ | |
| 790 | ||
| 791 | void command_phase(UINT8 data); | |
| 792 | void exec_w_phase(UINT8 data); | |
| 793 | UINT8 exec_r_phase(void); | |
| 794 | ||
| 795 | /* | |
| 796 | WD37C656C-PL (or equivalent) Floppy Disk Controller | |
| 797 | */ | |
| 798 | ||
| 799 | enum fdc_phase | |
| 800 | { | |
| 801 | COMMAND, | |
| 802 | EXECUTION_R, | |
| 803 | EXECUTION_W, | |
| 804 | RESULTS, | |
| 805 | }; | |
| 806 | ||
| 807 | enum command | |
| 808 | { | |
| 809 | SENSE_DRIVE_STATUS = 0, | |
| 810 | READ_A_TRACK = 2, | |
| 811 | SPECIFY = 3, | |
| 812 | WRITE_DATA = 5, | |
| 813 | READ_DATA = 6, | |
| 814 | RECALIBRATE = 7, | |
| 815 | SENSE_INTERRUPT_STATUS = 8, | |
| 816 | WRITE_DELETED_DATA = 9, | |
| 817 | READ_ID = 10, | |
| 818 | FORMAT_TRACK = 13, | |
| 819 | READ_DELETED_DATA = 14, | |
| 820 | SEEK = 15, | |
| 821 | SCAN_EQUAL = 17, | |
| 822 | SCAN_LOW_OR_EQUAL = 25, | |
| 823 | SCAN_HIGH_OR_EQUAL = 29 | |
| 824 | }; | |
| 825 | ||
| 826 | struct | |
| 827 | { | |
| 828 | UINT8 MSR; | |
| 829 | ||
| 830 | int side; | |
| 831 | int track; | |
| 832 | int sector; | |
| 833 | int number; | |
| 834 | int stop_track; | |
| 835 | int setup_read; | |
| 836 | ||
| 837 | int byte_pos; | |
| 838 | int offset; | |
| 839 | ||
| 840 | int phase; | |
| 841 | int next_phase; | |
| 842 | int cmd_len; | |
| 843 | int cmd_cnt; | |
| 844 | int res_len; | |
| 845 | int res_cnt; | |
| 846 | UINT8 cmd[10]; | |
| 847 | UINT8 results[8]; | |
| 848 | } fdc; | |
| 849 | ||
| 850 | ||
| 851 | void reset_fdc(void) | |
| 852 | { | |
| 853 | memset(&fdc, 0, sizeof(fdc)); | |
| 854 | ||
| 855 | fdc.MSR = 0x80; | |
| 856 | fdc.phase = COMMAND; | |
| 857 | } | |
| 858 | ||
| 859 | READ8_HANDLER( fdctrl_r ) | |
| 860 | { | |
| 861 | UINT8 val = 0; | |
| 862 | ||
| 863 | val = fdc.MSR; | |
| 864 | ||
| 865 | return val; | |
| 866 | } | |
| 867 | ||
| 868 | READ8_HANDLER( fddata_r ) | |
| 869 | { | |
| 870 | #define BPS 1024 | |
| 871 | #define SPT 10 | |
| 872 | #define BPT 1024*10 | |
| 873 | ||
| 874 | UINT8 val = 0; | |
| 875 | ||
| 876 | if (fdc.phase == EXECUTION_R) | |
| 877 | { | |
| 878 | switch (fdc.cmd[0] & 0x1f) | |
| 879 | { | |
| 880 | /* Specify */ | |
| 881 | case READ_DATA: | |
| 882 | { | |
| 883 | if (fdc.setup_read) | |
| 884 | { | |
| 885 | fdc.track = fdc.cmd[2]; | |
| 886 | fdc.side = fdc.cmd[3]; | |
| 887 | fdc.sector = fdc.cmd[4]; | |
| 888 | fdc.number = fdc.cmd[5]; | |
| 889 | fdc.stop_track = fdc.cmd[6]; | |
| 890 | //int GPL = fdc.cmd[7]; | |
| 891 | //int DTL = fdc.cmd[8]; | |
| 892 | ||
| 893 | fdc.setup_read = 0; | |
| 894 | fdc.byte_pos = 0; | |
| 895 | } | |
| 896 | ||
| 897 | fdc.offset = (BPT * fdc.track*2) + (fdc.side ? BPT : 0) + (BPS * (fdc.sector-1)) + fdc.byte_pos++; | |
| 898 | val = *(memory_region(REGION_USER2) + fdc.offset); | |
| 899 | ||
| 900 | /* Move on to next sector? */ | |
| 901 | if (fdc.byte_pos == 1024) | |
| 902 | { | |
| 903 | fdc.byte_pos = 0; | |
| 904 | ||
| 905 | if(fdc.sector == fdc.stop_track || ++fdc.sector == 11) | |
| 906 | { | |
| 907 | /* End of read operation */ | |
| 908 | fdc.MSR = 0xd0; | |
| 909 | fdc.phase = RESULTS; | |
| 910 | ||
| 911 | fdc.results[0] = 0; | |
| 912 | fdc.results[1] = 0; | |
| 913 | fdc.results[2] = 0; | |
| 914 | ||
| 915 | fdc.results[3] = 0; | |
| 916 | fdc.results[4] = 0; | |
| 917 | fdc.results[5] = 0; | |
| 918 | fdc.results[6] = 0; | |
| 919 | } | |
| 920 | } | |
| 921 | break; | |
| 922 | } | |
| 923 | } | |
| 924 | } | |
| 925 | else if (fdc.phase == RESULTS) | |
| 926 | { | |
| 927 | val = fdc.results[fdc.res_cnt++]; | |
| 928 | ||
| 929 | if (fdc.res_cnt == fdc.res_len) | |
| 930 | { | |
| 931 | fdc.phase = COMMAND; | |
| 932 | fdc.res_cnt = 0; | |
| 933 | fdc.MSR &= ~0x40; | |
| 934 | } | |
| 935 | } | |
| 936 | ||
| 937 | return val; | |
| 938 | } | |
| 939 | ||
| 940 | WRITE8_HANDLER( fdctrl_w ) | |
| 941 | { | |
| 942 | switch (fdc.phase) | |
| 943 | { | |
| 944 | case COMMAND: | |
| 945 | { | |
| 946 | command_phase(data); | |
| 947 | break; | |
| 948 | } | |
| 949 | case EXECUTION_W: | |
| 950 | { | |
| 951 | exec_w_phase(data); | |
| 952 | break; | |
| 953 | } | |
| 954 | default: | |
| 955 | { | |
| 956 | mame_printf_debug("Unknown FDC phase?!"); | |
| 957 | } | |
| 958 | } | |
| 959 | } | |
| 960 | ||
| 961 | void command_phase(UINT8 data) | |
| 962 | { | |
| 963 | if (fdc.cmd_cnt == 0) | |
| 964 | { | |
| 965 | fdc.cmd[0] = data; | |
| 966 | ||
| 967 | fdc.cmd_cnt = 1; | |
| 968 | ||
| 969 | switch (data & 0x1f) | |
| 970 | { | |
| 971 | /* Specify */ | |
| 972 | case READ_DATA: | |
| 973 | { | |
| 974 | // mame_printf_debug("Read data\n"); | |
| 975 | fdc.cmd_len = 9; | |
| 976 | fdc.res_len = 7; | |
| 977 | fdc.next_phase = EXECUTION_R; | |
| 978 | fdc.setup_read = 1; | |
| 979 | break; | |
| 980 | } | |
| 981 | case SPECIFY: | |
| 982 | { | |
| 983 | // mame_printf_debug("Specify\n"); | |
| 984 | fdc.cmd_len = 3; | |
| 985 | fdc.res_len = 0; | |
| 986 | fdc.next_phase = COMMAND; | |
| 987 | break; | |
| 988 | } | |
| 989 | case RECALIBRATE: | |
| 990 | { | |
| 991 | // mame_printf_debug("Recalibrate\n"); | |
| 992 | fdc.cmd_len = 2; | |
| 993 | fdc.res_len = 0; | |
| 994 | fdc.next_phase = COMMAND; | |
| 995 | //fdc.MSR |= 0x40; | |
| 996 | break; | |
| 997 | } | |
| 998 | case SENSE_INTERRUPT_STATUS: | |
| 999 | { | |
| 1000 | // mame_printf_debug("Sense interrupt status\n"); | |
| 1001 | fdc.cmd_len = 1; | |
| 1002 | fdc.res_len = 2; | |
| 1003 | fdc.phase = RESULTS; | |
| 1004 | ||
| 1005 | fdc.results[0] = 0; | |
| 1006 | fdc.results[1] = 0; | |
| 1007 | ||
| 1008 | fdc.cmd_cnt = 0; | |
| 1009 | fdc.MSR |= 0x40; | |
| 1010 | break; | |
| 1011 | } | |
| 1012 | case SEEK: | |
| 1013 | { | |
| 1014 | // mame_printf_debug("Seek\n"); | |
| 1015 | fdc.cmd_len = 3; | |
| 1016 | fdc.res_len = 0; | |
| 1017 | fdc.next_phase = COMMAND; | |
| 1018 | break; | |
| 1019 | } | |
| 1020 | default: | |
| 1021 | { | |
| 1022 | // mame_printf_debug("%x\n",data & 0x1f); | |
| 1023 | } | |
| 1024 | } | |
| 1025 | } | |
| 1026 | else | |
| 1027 | { | |
| 1028 | fdc.cmd[fdc.cmd_cnt++] = data; | |
| 1029 | //mame_printf_debug(" %x\n",data); | |
| 1030 | } | |
| 1031 | ||
| 1032 | if(fdc.cmd_cnt == fdc.cmd_len) | |
| 1033 | { | |
| 1034 | fdc.phase = fdc.next_phase; | |
| 1035 | fdc.cmd_cnt = 0; | |
| 1036 | ||
| 1037 | if ((fdc.cmd[0] & 0x1f) == READ_DATA) | |
| 1038 | fdc.MSR = 0xf0; | |
| 1039 | } | |
| 1040 | } | |
| 1041 | ||
| 1042 | UINT8 exec_r_phase(void) | |
| 1043 | { | |
| 1044 | return 0; | |
| 1045 | } | |
| 1046 | ||
| 1047 | void exec_w_phase(UINT8 data) | |
| 1048 | { | |
| 1049 | } | |
| 1050 | ||
| 1051 | UINT8 results_phase(void) | |
| 1052 | { | |
| 1053 | return 0; | |
| 1054 | } | |
| 1055 | ||
| 1056 | WRITE8_HANDLER( fd_op_w ) | |
| 1057 | { | |
| 1058 | } | |
| 1059 | ||
| 1060 | WRITE8_HANDLER( fd_ctrl_w ) | |
| 1061 | { | |
| 1062 | } | |
| 1063 | ||
| 1064 | MACHINE_RESET( bfcobra ) | |
| 1065 | { | |
| 1066 | bank[0] = 1; | |
| 1067 | memset(&ramdac, 0, sizeof(ramdac)); | |
| 1068 | reset_fdc(); | |
| 1069 | ||
| 1070 | irq_state = blitter_irq = vblank_irq = acia_irq = 0; | |
| 1071 | } | |
| 1072 | ||
| 1073 | /*************************************************************************** | |
| 1074 | ||
| 1075 | Cobra I/Viper Z80 Memory Map | |
| 1076 | ||
| 1077 | ***************************************************************************/ | |
| 1078 | ||
| 726 | 1079 | static ADDRESS_MAP_START( z80_prog_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 727 | 1080 | AM_RANGE(0x0000, 0x3fff) AM_READ(MRA8_BANK4) |
| 728 | 1081 | AM_RANGE(0x4000, 0x7fff) AM_READWRITE(MRA8_BANK1, MWA8_BANK1) |
| r1238 | r1239 | |
| 730 | 1083 | AM_RANGE(0xc000, 0xffff) AM_READWRITE(MRA8_BANK3, MWA8_BANK3) |
| 731 | 1084 | ADDRESS_MAP_END |
| 732 | 1085 | |
| 733 | /* | |
| 734 | All addressing is handled by Slipstream ASICs | |
| 735 | */ | |
| 736 | 1086 | static ADDRESS_MAP_START( z80_io_map, ADDRESS_SPACE_IO, 8 ) |
| 737 | 1087 | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) ) |
| 738 | AM_RANGE(0x00, 0x23) AM_READWRITE( | |
| 1088 | AM_RANGE(0x00, 0x23) AM_READWRITE(chips | |
| 739 | 1089 | AM_RANGE(0x24, 0x24) AM_WRITE(acia6850_0_ctrl_w) |
| 740 | 1090 | AM_RANGE(0x25, 0x25) AM_WRITE(acia6850_0_data_w) |
| 741 | 1091 | AM_RANGE(0x26, 0x26) AM_READ(acia6850_0_stat_r) |
| 742 | 1092 | AM_RANGE(0x27, 0x27) AM_READ(acia6850_0_data_r) |
| 1093 | AM_RANGE(0x30, 0x30) AM_READ(fdctrl_r) | |
| 1094 | AM_RANGE(0x31, 0x31) AM_READWRITE(fddata_r, fdctrl_w) | |
| 743 | 1095 | AM_RANGE(0x40, 0x40) AM_WRITE(rombank_w) |
| 744 | 1096 | AM_RANGE(0x50, 0x53) AM_READWRITE(ramdac_r, ramdac_w) |
| 745 | AM_RANGE(0x30, 0x33) AM_READWRITE(fdctrl_r, fdctrl_w) | |
| 746 | 1097 | ADDRESS_MAP_END |
| 747 | 1098 | |
| 748 | /* | |
| 749 | MC68B09P: Processes sound and I/O | |
| 750 | 1099 | |
| 1100 | /*************************************************************************** | |
| 1101 | ||
| 1102 | Cobra I/Viper 6809 Memory Map | |
| 1103 | ||
| 1104 | Cobra I has these components: | |
| 1105 | ||
| 751 | 1106 | EF68B50P - For communication with Z80 |
| 752 | 1107 | EF68B50P - For data retrieval |
| 753 | 1108 | AY38912A |
| r1238 | r1239 | |
| 758 | 1113 | |
| 759 | 1114 | /IRQ provided by EF68850P at IC38 |
| 760 | 1115 | /FIRQ connected to meter current sensing circuitry |
| 761 | TODO: Watchdog timer provided by NE556. Calculate correct timeout period. | |
| 762 | */ | |
| 763 | 1116 | |
| 1117 | TODO: Calculate watchdog timer period. | |
| 1118 | ||
| 1119 | ***************************************************************************/ | |
| 1120 | ||
| 764 | 1121 | /* TODO */ |
| 765 | 1122 | static READ8_HANDLER( int_latch_r ) |
| 766 | 1123 | { |
| r1238 | r1239 | |
| 807 | 1164 | |
| 808 | 1165 | mux_outputlatch = data; |
| 809 | 1166 | |
| 810 | / | |
| 1167 | /* Clock has changed */ | |
| 811 | 1168 | if (changed & 0x08) |
| 812 | 1169 | { |
| 813 | 1170 | int input_strobe = data & 0x7; |
| 814 | // Clock is low | |
| 1171 | ||
| 1172 | /* Clock is low */ | |
| 815 | 1173 | if (!(data & 0x08)) |
| 816 | { | |
| 817 | 1174 | mux_input = readinputport(input_strobe); |
| 818 | } | |
| 819 | 1175 | } |
| 820 | 1176 | break; |
| 821 | 1177 | } |
| r1238 | r1239 | |
| 834 | 1190 | |
| 835 | 1191 | static READ8_HANDLER( upd7759_r ) |
| 836 | 1192 | { |
| 837 | return upd7759_busy_r(0); | |
| 1193 | return 2 | upd7759_busy_r(0); | |
| 838 | 1194 | } |
| 839 | 1195 | |
| 840 | 1196 | static WRITE8_HANDLER( upd7759_w ) |
| 841 | 1197 | { |
| 842 | upd7759_start_w(0, data & 0x40); | |
| 843 | 1198 | upd7759_reset_w(0, data & 0x80); |
| 844 | 1199 | upd7759_port_w(0, data & 0x3f); |
| 1200 | upd7759_start_w(0, data & 0x40 ? 0 : 1); | |
| 845 | 1201 | } |
| 846 | 1202 | |
| 847 | 1203 | static ADDRESS_MAP_START( m6809_prog_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| r1238 | r1239 | |
| 858 | 1214 | AM_RANGE(0x3405, 0x3405) AM_READWRITE(acia6850_1_data_r, acia6850_1_data_w) |
| 859 | 1215 | AM_RANGE(0x3406, 0x3406) AM_READWRITE(acia6850_2_stat_r, acia6850_2_ctrl_w) |
| 860 | 1216 | AM_RANGE(0x3407, 0x3407) AM_READWRITE(acia6850_2_data_r, acia6850_2_data_w) |
| 1217 | // AM_RANGE(0x3408, 0x3408) AM_NOP | |
| 1218 | // AM_RANGE(0x340A, 0x340A) AM_NOP | |
| 1219 | // AM_RANGE(0x3600, 0x3600) AM_NOP | |
| 861 | 1220 | AM_RANGE(0x3801, 0x3801) AM_READWRITE(upd7759_r, upd7759_w) |
| 862 | 1221 | AM_RANGE(0x8000, 0xffff) AM_READ(MRA8_ROM) |
| 863 | 1222 | AM_RANGE(0xf000, 0xf000) AM_WRITE(MWA8_NOP) /* Watchdog */ |
| 864 | 1223 | ADDRESS_MAP_END |
| 865 | 1224 | |
| 866 | ||
| 1225 | ||
| 867 | 1226 | PORT_START_TAG("STROBE0") |
| 868 | 1227 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_NAME("Coin: 10p") |
| 869 | 1228 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_NAME("Coin: 20p") |
| 870 | 1229 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 ) PORT_NAME("Coin: 50p") |
| 871 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN4 ) PORT_NAME("Coin: 1 pound") | |
| 1230 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN4 ) PORT_NAME("Coin: 1 pound") | |
| 872 | 1231 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 873 | 1232 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Green Test?") PORT_CODE(KEYCODE_F1) |
| 874 | 1233 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 880 | 1239 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("COLLECT") PORT_CODE(KEYCODE_D) |
| 881 | 1240 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START1 ) PORT_NAME("START") |
| 882 | 1241 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("BONUS") PORT_CODE(KEYCODE_F) |
| 883 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 884 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 885 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON3 ) | |
| 1242 | // PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 1243 | // PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 1244 | // PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON3 ) | |
| 886 | 1245 | |
| 887 | 1246 | PORT_START_TAG("STROBE2") |
| 888 | 1247 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON5 ) PORT_NAME("<A") |
| r1238 | r1239 | |
| 903 | 1262 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 904 | 1263 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 905 | 1264 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1265 | PORT_BIT( 0xF8, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 906 | 1266 | |
| 907 | 1267 | PORT_START_TAG("STROBE4") |
| 908 | 1268 | PORT_BIT( 0xFF, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 957 | 1317 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 958 | 1318 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) |
| 959 | 1319 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 960 | INPUT_PORTS_END | |
| 961 | 1320 | |
| 962 | #if 0 | |
| 963 | INPUT_PORTS_START( brainbox ) | |
| 1321 | PORT_START_TAG("JOYSTICK") | |
| 1322 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) | |
| 1323 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) | |
| 1324 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) | |
| 1325 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) | |
| 1326 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 964 | 1327 | INPUT_PORTS_END |
| 965 | 1328 | |
| 966 | INPUT_PORTS_START( trebltop ) | |
| 967 | INPUT_PORTS_END | |
| 1329 | /* | |
| 1330 | Allocate work RAM and video RAM shared by the Z80 and chipset. | |
| 1331 | */ | |
| 1332 | static int init_ram(void) | |
| 1333 | { | |
| 1334 | /* 768kB work RAM */ | |
| 1335 | work_ram = auto_malloc(0xC0000); | |
| 968 | 1336 | |
| 969 | INPUT_PORTS_START( inquiztr ) | |
| 970 | INPUT_PORTS_END | |
| 1337 | if (!work_ram) | |
| 1338 | goto startfailed; | |
| 971 | 1339 | |
| 972 | INPUT_PORTS_START( everysec ) | |
| 973 | INPUT_PORTS_END | |
| 974 | #endif | |
| 1340 | /* 128kB video RAM */ | |
| 1341 | video_ram = auto_malloc(0x20000); | |
| 975 | 1342 | |
| 1343 | if (!video_ram) | |
| 1344 | goto startfailed; | |
| 1345 | ||
| 1346 | memset(work_ram, 0, 0xc0000); | |
| 1347 | memset(video_ram, 0, 0x20000); | |
| 1348 | ||
| 1349 | return 0; | |
| 1350 | ||
| 1351 | startfailed: | |
| 1352 | return 1; | |
| 1353 | } | |
| 1354 | ||
| 976 | 1355 | static void z80_acia_irq(int state) |
| 977 | 1356 | { |
| 978 | cpunum_set_input_line(0, 0, state ? CLEAR_LINE : ASSERT_LINE); | |
| 1357 | acia_irq = state ? CLEAR_LINE : ASSERT_LINE; | |
| 1358 | update_irqs(); | |
| 979 | 1359 | } |
| 980 | 1360 | |
| 981 | 1361 | static void m6809_data_irq(int state) |
| r1238 | r1239 | |
| 983 | 1363 | cpunum_set_input_line(1, M6809_IRQ_LINE, state ? CLEAR_LINE : ASSERT_LINE); |
| 984 | 1364 | } |
| 985 | 1365 | |
| 1366 | /* | |
| 1367 | What are the correct ACIA clocks ? | |
| 1368 | */ | |
| 986 | 1369 | static struct acia6850_interface z80_acia_if = |
| 987 | 1370 | { |
| 988 | 1371 | 500000, |
| r1238 | r1239 | |
| 1020 | 1403 | }; |
| 1021 | 1404 | |
| 1022 | 1405 | |
| 1023 | DRIVER_INIT( bfcobra ) | |
| 1406 | /* TODO: Driver vs Machine Init */ | |
| 1407 | static DRIVER_INIT( bfcobra ) | |
| 1024 | 1408 | { |
| 1025 | 1409 | /* |
| 1026 | 1410 | 6809 ROM address and data lines are scrambled. |
| 1027 | 1411 | This is the same scrambling as Scorpion 2. |
| 1028 | 1412 | */ |
| 1029 | static UINT8 datalookup[] = { 1, 3, 5, 6, 4, 2, 0, 7 }; | |
| 1030 | static UINT8 addrlookup[] = { 11, 12, 0, 2, 3, 5, 7, 9, 8, 6, 1, 4, 10, 13, 14 }; | |
| 1413 | static const UINT8 datalookup[] = { 1, 3, 5, 6, 4, 2, 0, 7 }; | |
| 1414 | static const UINT8 addrlookup[] = { 11, 12, 0, 2, 3, 5, 7, 9, 8, 6, 1, 4, 10, 13, 14 }; | |
| 1031 | 1415 | |
| 1032 | 1416 | UINT32 i; |
| 1033 | 1417 | UINT8 *rom; |
| 1034 | 1418 | UINT8 *tmp; |
| 1035 | 1419 | |
| 1036 | tmp = malloc | |
| 1420 | tmp = malloc | |
| 1037 | 1421 | rom = memory_region(REGION_CPU2) + 0x8000; |
| 1038 | 1422 | memcpy(tmp, rom, 0x8000); |
| 1039 | 1423 | |
| r1238 | r1239 | |
| 1045 | 1429 | UINT8 val = tmp[i]; |
| 1046 | 1430 | |
| 1047 | 1431 | for (x = 0; x < 8; x ++) |
| 1048 | { | |
| 1049 | 1432 | data |= ((val >> x) & 1) << datalookup[x]; |
| 1050 | } | |
| 1051 | 1433 | |
| 1052 | 1434 | for (x = 0; x < 15; x ++) |
| 1053 | { | |
| 1054 | 1435 | addr |= ((i >> x) & 1) << addrlookup[x]; |
| 1055 | } | |
| 1056 | 1436 | |
| 1057 | 1437 | rom[addr] = data; |
| 1058 | 1438 | } |
| 1059 | 1439 | |
| 1060 | 1440 | free(tmp); |
| 1061 | 1441 | |
| 1062 | /* 768kB work RAM */ | |
| 1063 | work_ram = auto_malloc(0xC0000); | |
| 1064 | memset(work_ram, 0, 0xc0000); | |
| 1442 | init_ram(); | |
| 1065 | 1443 | |
| 1066 | /* 128kB video RAM */ | |
| 1067 | video_ram = auto_malloc(0x20000); | |
| 1068 | memset(video_ram, 0, 0x20000); | |
| 1069 | ||
| 1070 | 1444 | bank[0] = 1; |
| 1071 | 1445 | bank[1] = 0; |
| 1072 | 1446 | bank[2] = 0; |
| r1238 | r1239 | |
| 1082 | 1456 | |
| 1083 | 1457 | /* TODO: Properly sort out the data ACIA */ |
| 1084 | 1458 | data_r = 1; |
| 1459 | ||
| 1460 | /* Finish this */ | |
| 1461 | state_save_register_global(z80_m6809_line); | |
| 1462 | state_save_register_global(m6809_z80_line); | |
| 1463 | state_save_register_global(data_r); | |
| 1464 | state_save_register_global(data_t); | |
| 1465 | state_save_register_global(h_scroll); | |
| 1466 | state_save_register_global(v_scroll); | |
| 1467 | state_save_register_global(flip_8); | |
| 1468 | state_save_register_global(flip_22); | |
| 1469 | state_save_register_global(z80_int); | |
| 1470 | state_save_register_global(z80_inten); | |
| 1471 | state_save_register_global_array(bank); | |
| 1472 | state_save_register_global_pointer(work_ram, 0xc0000); | |
| 1473 | state_save_register_global_pointer(video_ram, 0x20000); | |
| 1085 | 1474 | } |
| 1086 | 1475 | |
| 1087 | 1476 | static struct upd7759_interface upd7759_interface = |
| r1238 | r1239 | |
| 1089 | 1478 | REGION_SOUND1 |
| 1090 | 1479 | }; |
| 1091 | 1480 | |
| 1092 | /* TODO | |
| 1481 | /* TODO | |
| 1093 | 1482 | static INTERRUPT_GEN( timer_irq ) |
| 1094 | 1483 | { |
| 1095 | 1484 | cpunum_set_input_line(1, M6809_IRQ_LINE, PULSE_LINE); |
| 1096 | 1485 | } |
| 1097 | 1486 | |
| 1098 | 1487 | /* TODO */ |
| 1099 | static INTERRUPT_GEN( vblank_ | |
| 1488 | static INTERRUPT_GEN( vblank_gen ) | |
| 1100 | 1489 | { |
| 1101 | if (z80_inten & 0x1) | |
| 1102 | { | |
| 1103 | cpunum_set_input_line(0, 0, HOLD_LINE); | |
| 1104 | z80_int = 1; | |
| 1105 | } | |
| 1490 | vblank_irq = 1; | |
| 1491 | update_irqs(); | |
| 1106 | 1492 | } |
| 1107 | 1493 | |
| 1108 | 1494 | static MACHINE_DRIVER_START( bfcobra ) |
| 1109 | 1495 | MDRV_CPU_ADD(Z80, Z80_XTAL) |
| 1110 | 1496 | MDRV_CPU_PROGRAM_MAP(z80_prog_map, 0) |
| 1111 | 1497 | MDRV_CPU_IO_MAP(z80_io_map, 0) |
| 1112 | MDRV_CPU_VBLANK_INT(vblank_ | |
| 1498 | MDRV_CPU_VBLANK_INT(vblank_gen, 1) | |
| 1113 | 1499 | |
| 1114 | 1500 | MDRV_CPU_ADD(M6809, M6809_XTAL) |
| 1115 | 1501 | MDRV_CPU_PROGRAM_MAP(m6809_prog_map, 0) |
| 1116 | 1502 | MDRV_CPU_PERIODIC_INT(timer_irq, 1000) |
| 1117 | 1503 | |
| 1118 | 1504 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 1505 | ||
| 1119 | 1506 | MDRV_MACHINE_RESET(bfcobra) |
| 1120 | 1507 | |
| 1508 | /* TODO */ | |
| 1121 | 1509 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1122 | 1510 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 1123 | ||
| 1124 | 1511 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 1125 | 1512 | MDRV_SCREEN_SIZE(256, 256) |
| 1126 | 1513 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-1) |
| r1238 | r1239 | |
| 1128 | 1515 | |
| 1129 | 1516 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 1130 | 1517 | |
| 1131 | /* TODO: Verify */ | |
| 1132 | MDRV_SOUND_ADD(AY8910, 1500000) | |
| 1133 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.01) | |
| 1518 | MDRV_SOUND_ADD(AY8910, M6809_XTAL) | |
| 1519 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20) | |
| 1134 | 1520 | |
| 1135 | 1521 | MDRV_SOUND_ADD(UPD7759, UPD7759_STANDARD_CLOCK) |
| 1136 | 1522 | MDRV_SOUND_CONFIG(upd7759_interface) |
| 1137 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0. | |
| 1523 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) | |
| 1138 | 1524 | |
| 1139 | 1525 | MDRV_VIDEO_START(generic_bitmapped) |
| 1140 | 1526 | MDRV_VIDEO_UPDATE(bfcobra) |
| r1238 | r1239 | |
| 1144 | 1530 | |
| 1145 | 1531 | Game driver(s) |
| 1146 | 1532 | |
| 1533 | Note: Two different versions of each 6809 ROM exist: standard and protocol | |
| 1534 | It appears sets can be a combination of disk images, 6809 and Z80 ROMs! | |
| 1535 | ||
| 1147 | 1536 | ***************************************************************************/ |
| 1148 | /* TODO: Check region sizes, correct CRC/SHA1 entries */ | |
| 1149 | ROM_START( qos ) | |
| 1150 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 1151 | ROM_LOAD( "qos_nondata_68f4.bin", 0x08000, 0x8000, CRC(5f40005a) SHA1(180017acf6b432bc135d1090099fdf99f1e3583a) ) | |
| 1152 | 1537 | |
| 1153 | ROM_REGION( 0x20000, REGION_SOUND1, 0 ) | |
| 1154 | ROM_LOAD( "snd1_218.ic7", 0x00000, 0x10000, CRC(061f496d) SHA1(653d16454d909c034191813b37d14010da7258c6) ) | |
| 1155 | ROM_LOAD( "snd2_219.ic8", 0x10000, 0x10000, CRC(d7874a47) SHA1(5bbd4040c7c0299e8cc135e6c6cd05370b260e9b) ) | |
| 1538 | ROM_START( inquiztr ) | |
| 1539 | ROM_REGION( 0x20000, REGION_USER1, 0 ) | |
| 1540 | ROM_LOAD( "9576028.bin", 0x00000, 0x10000, CRC(2d85682c) SHA1(baec47bff4b8beef5afbb737dc57b22bf93ebcf8) ) | |
| 1541 | ROM_LOAD( "9576002.bin", 0x10000, 0x10000, CRC(5b8c8a04) SHA1(af5328fee79c370f45bff36f534aaf50964b6900) ) | |
| 1156 | 1542 | |
| 1157 | ROM_REGION( 0x200000, REGION_USER1, 0 ) | |
| 1158 | ROM_LOAD( "95000338.rm0", 0x000000, 0x80000, CRC(96918aae) SHA1(849ce7b8eccc89c45aacc840a73935f95788a141) ) | |
| 1159 | ROM_LOAD( "95000339.rm1", 0x080000, 0x80000, CRC(b4c6dcc0) SHA1(56d8761766dfbd5b0e71f8c3ca575e88f1bc9929) ) | |
| 1160 | ROM_LOAD( "95000340.rm2", 0x100000, 0x80000, CRC(66d121fd) SHA1(ac65cc0ac6b0a41e78a3159c21ee44f765bdb5c8) ) | |
| 1161 | ROM_LOAD( "95000341.rm3", 0x180000, 0x80000, CRC(ef13658d) SHA1(240bc589900214eac79c91a531f254a9ac2f4ef6) ) | |
| 1162 | ROM_END | |
| 1163 | ||
| 1164 | ROM_START( qosa ) | |
| 1165 | 1543 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) |
| 1166 | ROM_LOAD( " | |
| 1544 | ROM_LOAD( " | |
| 1167 | 1545 | |
| 1168 | ROM_REGION( 0x20000, REGION_SOUND1, 0 ) | |
| 1169 | ROM_LOAD( "snd1_218.ic7", 0x00000, 0x10000, CRC(061f496d) SHA1(653d16454d909c034191813b37d14010da7258c6) ) | |
| 1170 | ROM_LOAD( "snd2_219.ic8", 0x10000, 0x10000, CRC(d7874a47) SHA1(5bbd4040c7c0299e8cc135e6c6cd05370b260e9b) ) | |
| 1171 | ||
| 1172 | ROM_REGION( 0x200000, REGION_USER1, 0 ) | |
| 1173 | ROM_LOAD( "0306.bin", 0x000000, 0x80000, CRC(c26c8f83) SHA1(6949027e1fe241cbb2e1cbbce18e47bcb0d84550) ) | |
| 1174 | ROM_LOAD( "1307.bin", 0x080000, 0x80000, CRC(94611c03) SHA1(81f545ff96ff3d44285315400da94d870c89f896) ) | |
| 1175 | ROM_LOAD( "2308.bin", 0x100000, 0x80000, CRC(f5572726) SHA1(e109265c5571d21213a6f405a13459e7bc6699bc) ) | |
| 1176 | ROM_LOAD( "3309.bin", 0x180000, 0x80000, CRC(1b5edfa8) SHA1(348488debd4aa52f064e351ed0c082274da1db2b) ) | |
| 1546 | ROM_REGION( 0x1c2000, REGION_USER2, 0 ) | |
| 1547 | ROM_LOAD( "inqdisk.img", 0x000000, 0x1c2000, NO_DUMP ) | |
| 1177 | 1548 | ROM_END |
| 1178 | 1549 | |
| 1179 | #if 0 | |
| 1180 | /* This dump is crap */ | |
| 1181 | ROM_START( qosb ) | |
| 1550 | ROM_START( escounts ) | |
| 1551 | ROM_REGION( 0x10000, REGION_USER1, 0 ) | |
| 1552 | ROM_LOAD( "esccobpa", 0x00000, 0x10000, CRC(d8eadeb7) SHA1(9b94f1454e6a17bf8321b0ef4ddd0ed1a56150f7) ) | |
| 1553 | ||
| 1182 | 1554 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) |
| 1183 | ROM_LOAD( "qospa", 0x08000, 0x8000, CRC(5f40005a) SHA1(180017acf6b432bc135d1090099fdf99f1e3583a) ) | |
| 1555 | // ROM_LOAD( "escint1b", 0x08000, 0x08000, CRC(96918aae) SHA1(849ce7b8eccc89c45aacc840a73935f95788a141) ) | |
| 1556 | ROM_LOAD( "esc12int", 0x08000, 0x08000, CRC(741a1fe6) SHA1(e741d0ae0d2f11036a358120381e4b0df4a560a1) ) | |
| 1184 | 1557 | |
| 1185 | ROM_REGION( 0x20000, REGION_SOUND1, 0 ) | |
| 1186 | ROM_LOAD( "qosrom0", 0x00000, 0x10000, BAD_DUMP CRC(061f496d) SHA1(653d16454d909c034191813b37d14010da7258c6) ) | |
| 1187 | ROM_LOAD( "qosrom1", 0x10000, 0x10000, CRC(d7874a47) SHA1(5bbd4040c7c0299e8cc135e6c6cd05370b260e9b) ) | |
| 1188 | ||
| 1189 | ROM_REGION( 0x200000, REGION_USER1, 0 ) | |
| 1190 | ROM_LOAD( "qosrom0", 0x000000, 0x80000, BAD_DUMP CRC(96918aae) SHA1(849ce7b8eccc89c45aacc840a73935f95788a141) ) | |
| 1191 | ROM_LOAD( "qosrom1", 0x080000, 0x80000, CRC(b4c6dcc0) SHA1(56d8761766dfbd5b0e71f8c3ca575e88f1bc9929) ) | |
| 1192 | ROM_LOAD( "qosrom2", 0x100000, 0x80000, BAD_DUMP CRC(66d121fd) SHA1(ac65cc0ac6b0a41e78a3159c21ee44f765bdb5c8) ) | |
| 1193 | ROM_LOAD( "qosrom3", 0x180000, 0x80000, BAD_DUMP CRC(ef13658d) SHA1(240bc589900214eac79c91a531f254a9ac2f4ef6) ) | |
| 1558 | /* 95-100-207 */ | |
| 1559 | ROM_REGION( 0x190000, REGION_USER2, 0 ) | |
| 1560 | ROM_LOAD( "escdisk4.img", 0x000000, 0x190000, CRC(24156e0f) SHA1(e163daa8effadd93ace2bc2ba1af0f4a190abd7f) ) | |
| 1194 | 1561 | ROM_END |
| 1195 | 1562 | |
| 1196 | ROM_START( inquiztr ) | |
| 1563 | ROM_START( trebltop ) | |
| 1564 | ROM_REGION( 0x20000, REGION_USER1, 0 ) | |
| 1565 | ROM_LOAD( "95760031.bin", 0x00000, 0x10000, CRC(8e75edb8) SHA1(0aaa3834d5ac20f92bdf1f2b8f1eb71854469cbe) ) | |
| 1566 | ROM_LOAD( "95760021.bin", 0x10000, 0x10000, CRC(f42016c0) SHA1(7067d018cb4bdcfba777267fb01cddf44e4216c3) ) | |
| 1567 | ||
| 1197 | 1568 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) |
| 1198 | ROM_LOAD( "in | |
| 1569 | ROM_LOAD( "95740078.bin | |
| 1199 | 1570 | |
| 1200 | ROM_REGION( 0x20000, REGION_USER1, 0 ) | |
| 1201 | ROM_LOAD( "inqvypp1", 0x00000, 0x10000, CRC(96918aae) SHA1(849ce7b8eccc89c45aacc840a73935f95788a141) ) | |
| 1202 | ROM_LOAD( "inqvypp2", 0x10000, 0x10000, CRC(96918aae) SHA1(849ce7b8eccc89c45aacc840a73935f95788a141) ) | |
| 1571 | ROM_REGION( 0x20000, REGION_SOUND1, 0 ) | |
| 1572 | ROM_LOAD( "95000172.bin", 0x00000, 0x10000, CRC(e85367a5) SHA1(695fd95ddeecdb16602f7b0f075cf5128a2fb808) ) | |
| 1573 | ROM_LOAD( "95000173.bin", 0x10000, 0x10000, CRC(8bda2c5e) SHA1(79aab5a2af7a5add5fe9132dc13bcc3705c6faf3) ) | |
| 1203 | 1574 | |
| 1204 | 1575 | ROM_REGION( 0x1c2000, REGION_USER2, 0 ) |
| 1205 | ROM_LOAD( " | |
| 1576 | ROM_LOAD( "tt | |
| 1206 | 1577 | ROM_END |
| 1207 | 1578 | |
| 1208 | /* TODO: No Z80 dump; is this actually Cobra-based? */ | |
| 1209 | ROM_START( brainbox ) | |
| 1579 | ROM_START( quizvadr ) | |
| 1580 | ROM_REGION( 0x200000, REGION_USER1, 0 ) | |
| 1581 | ROM_LOAD( "5947011r.0", 0x000000, 0x80000, CRC(cac43c97) SHA1(3af529cd0f8ec57dd3596f5bca7b9c74cff171e4) ) | |
| 1582 | ROM_LOAD( "5947011r.1", 0x080000, 0x80000, CRC(120018dc) SHA1(cd153d2b7ed535b04dbcaf189d2fc96fe3c5b466) ) | |
| 1583 | ROM_LOAD( "5947011r.2", 0x100000, 0x80000, CRC(689b3b5a) SHA1(ea32d18acfd380de822efff4f2c95ce9873a33a2) ) | |
| 1584 | ROM_LOAD( "5947011r.3", 0x180000, 0x80000, CRC(c38dafeb) SHA1(d693387a5c3cde34c9d581f81a08a5fbc6f753f2) ) | |
| 1585 | ||
| 1210 | 1586 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) |
| 1211 | ROM_LOAD( " | |
| 1587 | ROM_LOAD( "q | |
| 1212 | 1588 | |
| 1213 | ROM_REGION( 0x10000, REGION_USER1, 0 ) | |
| 1214 | ROM_LOAD( "bboxz80.bin", 0x00000, 0x10000, NO_DUMP ) | |
| 1215 | ||
| 1216 | ROM_REGION( 0x1c2000, REGION_USER2, 0 ) | |
| 1217 | ROM_LOAD( "bboxdisk.img", 0x000000, 0x1c2000, NO_DUMP ) | |
| 1589 | ROM_REGION( 0x20000, REGION_SOUND1, 0 ) | |
| 1590 | ROM_LOAD( "185snd2.bin", 0x00000, 0x10000, CRC(e36eccc2) SHA1(cfd8ca4c71528ea4e229074016240681b6de37cd) ) | |
| 1591 | ROM_LOAD( "184snd1.bin", 0x10000, 0x10000, CRC(aac058e8) SHA1(39e59ad9524130fc3bd8d46e1aa78bc4daf04e39) ) | |
| 1218 | 1592 | ROM_END |
| 1219 | 1593 | |
| 1220 | ROM_START( everysec ) | |
| 1594 | ROM_START( qos ) | |
| 1595 | ROM_REGION( 0x200000, REGION_USER1, 0 ) | |
| 1596 | ROM_LOAD( "95000338.rm0", 0x000000, 0x80000, CRC(96918aae) SHA1(849ce7b8eccc89c45aacc840a73935f95788a141) ) | |
| 1597 | ROM_LOAD( "95000339.rm1", 0x080000, 0x80000, CRC(b4c6dcc0) SHA1(56d8761766dfbd5b0e71f8c3ca575e88f1bc9929) ) | |
| 1598 | ROM_LOAD( "95000340.rm2", 0x100000, 0x80000, CRC(66d121fd) SHA1(ac65cc0ac6b0a41e78a3159c21ee44f765bdb5c8) ) | |
| 1599 | ROM_LOAD( "95000341.rm3", 0x180000, 0x80000, CRC(ef13658d) SHA1(240bc589900214eac79c91a531f254a9ac2f4ef6) ) | |
| 1600 | ||
| 1221 | 1601 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) |
| 1222 | ROM_LOAD( "escint1b", 0x08000, 0x08000, CRC(96918aae) SHA1(849ce7b8eccc89c45aacc840a73935f95788a141) ) | |
| 1223 | // ROM_LOAD( "esc12int", 0x08000, 0x08000, CRC(96918aae) SHA1(849ce7b8eccc89c45aacc840a73935f95788a141) ) | |
| 1602 | ROM_LOAD( "qos_nondata_68f4.bin", 0x08000, 0x8000, CRC(5f40005a) SHA1(180017acf6b432bc135d1090099fdf99f1e3583a) ) | |
| 1224 | 1603 | |
| 1225 | ROM_REGION( 0x10000, REGION_USER1, 0 ) | |
| 1226 | ROM_LOAD( "esccobpa", 0x00000, 0x10000, CRC(96918aae) SHA1(849ce7b8eccc89c45aacc840a73935f95788a141) ) | |
| 1227 | ||
| 1228 | ROM_REGION( 0x1c2000, REGION_USER2, 0 ) | |
| 1229 | ROM_LOAD( "escdisk.img", 0x000000, 0x1c2000, NO_DUMP ) | |
| 1604 | ROM_REGION( 0x20000, REGION_SOUND1, 0 ) | |
| 1605 | ROM_LOAD( "snd1_218.ic7", 0x00000, 0x10000, CRC(061f496d) SHA1(653d16454d909c034191813b37d14010da7258c6) ) | |
| 1606 | ROM_LOAD( "snd2_219.ic8", 0x10000, 0x10000, CRC(d7874a47) SHA1(5bbd4040c7c0299e8cc135e6c6cd05370b260e9b) ) | |
| 1230 | 1607 | ROM_END |
| 1231 | 1608 | |
| 1232 | ROM_START( trebltop ) | |
| 1609 | ROM_START( qosa ) | |
| 1610 | ROM_REGION( 0x200000, REGION_USER1, 0 ) | |
| 1611 | ROM_LOAD( "0306.bin", 0x000000, 0x80000, CRC(c26c8f83) SHA1(6949027e1fe241cbb2e1cbbce18e47bcb0d84550) ) | |
| 1612 | ROM_LOAD( "1307.bin", 0x080000, 0x80000, CRC(94611c03) SHA1(81f545ff96ff3d44285315400da94d870c89f896) ) | |
| 1613 | ROM_LOAD( "2308.bin", 0x100000, 0x80000, CRC(f5572726) SHA1(e109265c5571d21213a6f405a13459e7bc6699bc) ) | |
| 1614 | ROM_LOAD( "3309.bin", 0x180000, 0x80000, CRC(1b5edfa8) SHA1(348488debd4aa52f064e351ed0c082274da1db2b) ) | |
| 1615 | ||
| 1233 | 1616 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) |
| 1234 | ROM_LOAD( " | |
| 1617 | ROM_LOAD( "95740599.bin | |
| 1235 | 1618 | |
| 1236 | ROM_REGION( 0x20000, REGION_USER1, 0 ) | |
| 1237 | ROM_LOAD( "ttpcob.pa", 0x00000, 0x10000, CRC(96918aae) SHA1(849ce7b8eccc89c45aacc840a73935f95788a141) ) | |
| 1238 | ROM_LOAD( "ttpcob.pb", 0x10000, 0x10000, CRC(96918aae) SHA1(849ce7b8eccc89c45aacc840a73935f95788a141) ) | |
| 1239 | ||
| 1240 | ROM_REGION( 0x1c2000, REGION_USER2, 0 ) | |
| 1241 | ROM_LOAD( "ttpdisk.img", 0x000000, 0x1c2000, NO_DUMP ) | |
| 1619 | ROM_REGION( 0x20000, REGION_SOUND1, 0 ) | |
| 1620 | ROM_LOAD( "snd1_218.ic7", 0x00000, 0x10000, CRC(061f496d) SHA1(653d16454d909c034191813b37d14010da7258c6) ) | |
| 1621 | ROM_LOAD( "snd2_219.ic8", 0x10000, 0x10000, CRC(d7874a47) SHA1(5bbd4040c7c0299e8cc135e6c6cd05370b260e9b) ) | |
| 1242 | 1622 | ROM_END |
| 1243 | #endif | |
| 1244 | 1623 | |
| 1245 | GAME( 1992, qos, 0, bfcobra, qos, bfcobra, ROT0, "BFM", "A Question of Sport (39-960-099)", GAME_IMPERFECT_GRAPHICS ) | |
| 1246 | GAME( 1992, qosa, qos, bfcobra, qos, bfcobra, ROT0, "BFM", "A Question of Sport (39-960-089)", GAME_IMPERFECT_GRAPHICS ) | |
| 1247 | ||
| 1248 | //GAME( 1992, qosb, qos, bfcobra, qos, bfcobra, ROT0, "BFM", "A Question of Sport Set 2", GAME_NOT_WORKING ) | |
| 1249 | //GAME( 1989, inquiztr, 0, bfcobra, inquiztr, bfcobra, ROT0, "BFM", "Inquizitor", GAME_NOT_WORKING ) | |
| 1250 | //GAME( 1989, brainbox, 0, bfcobra, brainbox, bfcobra, ROT0, "BFM", "Brain Box", GAME_NOT_WORKING ) | |
| 1251 | //GAME( 1990, everysec, 0, bfcobra, qos, bfcobra, ROT0, "BFM", "Every Second Counts (39-360-053)", GAME_NOT_WORKING ) | |
| 1252 | //GAME( 1991, trebltop, 0, bfcobra, qos, bfcobra, ROT0, "BFM", "Treble Top (39-360-070)", GAME_NOT_WORKING ) | |
| 1624 | GAME( 1989, inquiztr, 0, bfcobra, bfcobra, bfcobra, ROT0, "BFM", "Inquizitor", GAME_NOT_WORKING ) | |
| 1625 | GAME( 1990, escounts, 0, bfcobra, bfcobra, bfcobra, ROT0, "BFM", "Every Second Counts (39-360-053)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_COLORS ) | |
| 1626 | GAME( 1991, trebltop, 0, bfcobra, bfcobra, bfcobra, ROT0, "BFM", "Treble Top (39-360-070)", GAME_IMPERFECT_GRAPHICS ) | |
| 1627 | GAME( 1991, quizvadr, 0, bfcobra, bfcobra, bfcobra, ROT0, "BFM", "Quizvaders (39-360-078)", GAME_IMPERFECT_GRAPHICS ) | |
| 1628 | GAME( 1992, qos, 0, bfcobra, bfcobra, bfcobra, ROT0, "BFM", "A Question of Sport (39-960-099)", GAME_IMPERFECT_GRAPHICS ) | |
| 1629 | GAME( 1992, qosa, qos, bfcobra, bfcobra, bfcobra, ROT0, "BFM", "A Question of Sport (39-960-089)", GAME_IMPERFECT_GRAPHICS ) |
| r1238 | r1239 | |
|---|---|---|
| 187 | 187 | AM_RANGE(0x13, 0x13) AM_WRITE(rcasino_coin_counter_w) |
| 188 | 188 | ADDRESS_MAP_END |
| 189 | 189 | |
| 190 | INPUT_PORTS_START( rcasino ) | |
| 190 | static INPUT_PORTS_START( rcasino ) | |
| 191 | 191 | PORT_START_TAG("IN0") |
| 192 | 192 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_CODE(KEYCODE_A) // SW1 |
| 193 | 193 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_CODE(KEYCODE_S) // SW2 |
| r1238 | r1239 | |
|---|---|---|
| 161 | 161 | |
| 162 | 162 | /* input ports */ |
| 163 | 163 | |
| 164 | INPUT_PORTS_START( sbugger ) | |
| 164 | static INPUT_PORTS_START( sbugger ) | |
| 165 | 165 | PORT_START /* 8-bit */ |
| 166 | 166 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_2WAY |
| 167 | 167 | PORT_DIPNAME( 0x02, 0x02, "PA 1" ) |
| r1238 | r1239 | |
|---|---|---|
| 100 | 100 | ADDRESS_MAP_END |
| 101 | 101 | |
| 102 | 102 | |
| 103 | INPUT_PORTS_START( targeth ) | |
| 103 | static INPUT_PORTS_START( targeth ) | |
| 104 | 104 | PORT_START /* Gun 1 X */ |
| 105 | 105 | PORT_BIT( 0x01ff, 200, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.05, -0.028, 0) PORT_MINMAX( 0, 400 + 4) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_PLAYER(1) |
| 106 | 106 | PORT_BIT( 0xfe00, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 18 | 18 | return mame_rand(Machine); |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | UINT8 *intrscti_ram; | |
| 21 | static UINT8 *intrscti_ram; | |
| 22 | 22 | |
| 23 | 23 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 24 | 24 | AM_RANGE(0x0000, 0x1fff) AM_READ(MRA8_ROM) |
| r1238 | r1239 | |
| 41 | 41 | ADDRESS_MAP_END |
| 42 | 42 | |
| 43 | 43 | |
| 44 | INPUT_PORTS_START( intrscti ) | |
| 44 | static INPUT_PORTS_START( intrscti ) | |
| 45 | 45 | INPUT_PORTS_END |
| 46 | 46 | |
| 47 | 47 | static const gfx_layout tiles8x8_layout = |
| r1238 | r1239 | |
|---|---|---|
| 608 | 608 | /* Cycle Shooting */ |
| 609 | 609 | |
| 610 | 610 | |
| 611 | INPUT_PORTS_START( cyclshtg ) | |
| 611 | static INPUT_PORTS_START( cyclshtg ) | |
| 612 | 612 | PORT_START_TAG("IN0") |
| 613 | 613 | PORT_DIPNAME( 0x04, 0x04, "Test Mode" ) |
| 614 | 614 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 657 | 657 | INPUT_PORTS_END |
| 658 | 658 | |
| 659 | 659 | |
| 660 | INPUT_PORTS_START( nycaptor ) | |
| 660 | static INPUT_PORTS_START( nycaptor ) | |
| 661 | 661 | PORT_START_TAG("IN0") |
| 662 | 662 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Bonus_Life ) ) |
| 663 | 663 | PORT_DIPSETTING( 0x02, "20k, 80k then every 80k" ) |
| r1238 | r1239 | |
|---|---|---|
| 512 | 512 | /**** End Monsters World ****/ |
| 513 | 513 | |
| 514 | 514 | |
| 515 | INPUT_PORTS_START( mgakuen ) | |
| 515 | static INPUT_PORTS_START( mgakuen ) | |
| 516 | 516 | PORT_START /* DSW */ |
| 517 | 517 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* USED - handled in port5_r */ |
| 518 | 518 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 680 | 680 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 681 | 681 | INPUT_PORTS_END |
| 682 | 682 | |
| 683 | INPUT_PORTS_START( marukin ) | |
| 683 | static INPUT_PORTS_START( marukin ) | |
| 684 | 684 | PORT_START /* DSW */ |
| 685 | 685 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* USED - handled in port5_r */ |
| 686 | 686 | PORT_BIT(0x02, 0x02, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) |
| r1238 | r1239 | |
| 800 | 800 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 801 | 801 | INPUT_PORTS_END |
| 802 | 802 | |
| 803 | INPUT_PORTS_START( pkladies ) | |
| 803 | static INPUT_PORTS_START( pkladies ) | |
| 804 | 804 | PORT_START /* DSW */ |
| 805 | 805 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* USED - handled in port5_r */ |
| 806 | 806 | PORT_BIT(0x02, 0x02, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) |
| r1238 | r1239 | |
| 922 | 922 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 923 | 923 | INPUT_PORTS_END |
| 924 | 924 | |
| 925 | INPUT_PORTS_START( pang ) | |
| 925 | static INPUT_PORTS_START( pang ) | |
| 926 | 926 | PORT_START /* DSW */ |
| 927 | 927 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* USED - handled in port5_r */ |
| 928 | 928 | PORT_BIT(0x02, 0x02, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) |
| r1238 | r1239 | |
| 962 | 962 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 963 | 963 | INPUT_PORTS_END |
| 964 | 964 | |
| 965 | INPUT_PORTS_START( spangbl ) | |
| 965 | static INPUT_PORTS_START( spangbl ) | |
| 966 | 966 | PORT_START /* DSW */ |
| 967 | 967 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* USED - handled in port5_r */ |
| 968 | 968 | PORT_BIT(0x02, 0x02, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) |
| r1238 | r1239 | |
| 1002 | 1002 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 1003 | 1003 | INPUT_PORTS_END |
| 1004 | 1004 | |
| 1005 | INPUT_PORTS_START( mstworld ) | |
| 1005 | static INPUT_PORTS_START( mstworld ) | |
| 1006 | 1006 | /* this port may not have the same role */ |
| 1007 | 1007 | PORT_START /* DSW */ |
| 1008 | 1008 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* USED - handled in port5_r */ |
| r1238 | r1239 | |
| 1119 | 1119 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1120 | 1120 | INPUT_PORTS_END |
| 1121 | 1121 | |
| 1122 | INPUT_PORTS_START( qtono1 ) | |
| 1122 | static INPUT_PORTS_START( qtono1 ) | |
| 1123 | 1123 | PORT_START /* DSW */ |
| 1124 | 1124 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* USED - handled in port5_r */ |
| 1125 | 1125 | PORT_BIT(0x02, 0x02, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) |
| r1238 | r1239 | |
| 1159 | 1159 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 1160 | 1160 | INPUT_PORTS_END |
| 1161 | 1161 | |
| 1162 | INPUT_PORTS_START( block ) | |
| 1162 | static INPUT_PORTS_START( block ) | |
| 1163 | 1163 | PORT_START /* DSW */ |
| 1164 | 1164 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* USED - handled in port5_r */ |
| 1165 | 1165 | PORT_BIT(0x02, 0x02, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) |
| r1238 | r1239 | |
| 1201 | 1201 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(50) PORT_KEYDELTA(20) PORT_PLAYER(2) |
| 1202 | 1202 | INPUT_PORTS_END |
| 1203 | 1203 | |
| 1204 | INPUT_PORTS_START( blockjoy ) | |
| 1204 | static INPUT_PORTS_START( blockjoy ) | |
| 1205 | 1205 | PORT_START /* DSW */ |
| 1206 | 1206 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* USED - handled in port5_r */ |
| 1207 | 1207 | PORT_BIT(0x02, 0x02, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) |
| r1238 | r1239 | |
|---|---|---|
| 404 | 404 | INPUT PORTS, DIPs |
| 405 | 405 | ***********************************************************/ |
| 406 | 406 | |
| 407 | INPUT_PORTS_START( rainbow_generic ) | |
| 407 | static INPUT_PORTS_START( rainbow_generic ) | |
| 408 | 408 | PORT_START_TAG("DSWA") |
| 409 | 409 | TAITO_MACHINE_COCKTAIL |
| 410 | 410 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) |
| r1238 | r1239 | |
| 447 | 447 | PORT_DIPSETTING( 0x00, "Mode B (World)" ) /* Mode B is TAITO_COINAGE_WORLD */ |
| 448 | 448 | INPUT_PORTS_END |
| 449 | 449 | |
| 450 | INPUT_PORTS_START( rainbow ) | |
| 450 | static INPUT_PORTS_START( rainbow ) | |
| 451 | 451 | PORT_INCLUDE(rainbow_generic) |
| 452 | 452 | |
| 453 | 453 | /* 0x390000 -> 0x10cfc2 ($fc2,A5) : DSWA */ |
| r1238 | r1239 | |
| 494 | 494 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL |
| 495 | 495 | INPUT_PORTS_END |
| 496 | 496 | |
| 497 | INPUT_PORTS_START( jumping ) | |
| 497 | static INPUT_PORTS_START( jumping ) | |
| 498 | 498 | PORT_INCLUDE(rainbow_generic) |
| 499 | 499 | |
| 500 | 500 | /* 0x400000 -> 0x10cfc2 ($fc2,A5) */ |
| r1238 | r1239 | |
|---|---|---|
| 99 | 99 | ADDRESS_MAP_END |
| 100 | 100 | |
| 101 | 101 | |
| 102 | INPUT_PORTS_START( galspnbl ) | |
| 102 | static INPUT_PORTS_START( galspnbl ) | |
| 103 | 103 | PORT_START |
| 104 | 104 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* tested at 0x0016c6 - doesn't seem tilt related */ |
| 105 | 105 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* tested at 0x0016d2 - doesn't seem tilt related */ |
| r1238 | r1239 | |
| 176 | 176 | PORT_DIPSETTING( 0x40, "5" ) |
| 177 | 177 | INPUT_PORTS_END |
| 178 | 178 | |
| 179 | INPUT_PORTS_START( hotpinbl ) | |
| 179 | static INPUT_PORTS_START( hotpinbl ) | |
| 180 | 180 | PORT_START |
| 181 | 181 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* tested at 0x0016c6 - doesn't seem tilt related */ |
| 182 | 182 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* tested at 0x0016d2 - doesn't seem tilt related */ |
| r1238 | r1239 | |
|---|---|---|
| 124 | 124 | |
| 125 | 125 | |
| 126 | 126 | |
| 127 | INPUT_PORTS_START( blktiger ) | |
| 127 | static INPUT_PORTS_START( blktiger ) | |
| 128 | 128 | PORT_START /* IN0 */ |
| 129 | 129 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 130 | 130 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 83 | 83 | |
| 84 | 84 | /* Input Ports */ |
| 85 | 85 | |
| 86 | INPUT_PORTS_START( dynduke ) | |
| 86 | static INPUT_PORTS_START( dynduke ) | |
| 87 | 87 | SEIBU_COIN_INPUTS // Must be port 0: coin inputs read through sound cpu |
| 88 | 88 | |
| 89 | 89 | PORT_START_TAG("IN0") |
| r1238 | r1239 | |
|---|---|---|
| 214 | 214 | ADDRESS_MAP_END |
| 215 | 215 | |
| 216 | 216 | |
| 217 | INPUT_PORTS_START( mgolf ) | |
| 217 | static INPUT_PORTS_START( mgolf ) | |
| 218 | 218 | |
| 219 | 219 | PORT_START /* 40 */ |
| 220 | 220 | PORT_DIPNAME( 0x30, 0x00, DEF_STR( Language ) ) |
| r1238 | r1239 | |
|---|---|---|
| 330 | 330 | |
| 331 | 331 | /******************************************************************************/ |
| 332 | 332 | |
| 333 | INPUT_PORTS_START( mlc ) | |
| 333 | static INPUT_PORTS_START( mlc ) | |
| 334 | 334 | PORT_START |
| 335 | 335 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 336 | 336 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 182 | 182 | * |
| 183 | 183 | *************************************/ |
| 184 | 184 | |
| 185 | INPUT_PORTS_START( tunhunt ) | |
| 185 | static INPUT_PORTS_START( tunhunt ) | |
| 186 | 186 | PORT_START_TAG("IN0") |
| 187 | 187 | PORT_BIT ( 0x01, IP_ACTIVE_HIGH, IPT_TILT ) |
| 188 | 188 | PORT_BIT ( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| r1238 | r1239 | |
|---|---|---|
| 82 | 82 | AM_RANGE(0xc000, 0xffff) AM_ROM |
| 83 | 83 | ADDRESS_MAP_END |
| 84 | 84 | |
| 85 | INPUT_PORTS_START( tryout ) | |
| 85 | static INPUT_PORTS_START( tryout ) | |
| 86 | 86 | PORT_START |
| 87 | 87 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) |
| 88 | 88 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 244 | 244 | AM_RANGE(0xec, 0xef) AM_WRITE(oki_1_bank_w) |
| 245 | 245 | ADDRESS_MAP_END |
| 246 | 246 | |
| 247 | INPUT_PORTS_START( pasha2 ) | |
| 247 | static INPUT_PORTS_START( pasha2 ) | |
| 248 | 248 | PORT_START |
| 249 | 249 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 250 | 250 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 370 | 370 | MDRV_SOUND_ROUTE(1, "right", 1.0) |
| 371 | 371 | MACHINE_DRIVER_END |
| 372 | 372 | |
| 373 | INPUT_PORTS_START( rng ) | |
| 373 | static INPUT_PORTS_START( rng ) | |
| 374 | 374 | PORT_START |
| 375 | 375 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 376 | 376 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 735 | 735 | IntReq(24); //VRender0 VBlank |
| 736 | 736 | } |
| 737 | 737 | |
| 738 | INPUT_PORTS_START(crystal) | |
| 738 | static INPUT_PORTS_START(crystal) | |
| 739 | 739 | PORT_START |
| 740 | 740 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 741 | 741 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| r1238 | r1239 | |
|---|---|---|
| 438 | 438 | * |
| 439 | 439 | *************************************/ |
| 440 | 440 | |
| 441 | INPUT_PORTS_START( tempest ) | |
| 441 | static INPUT_PORTS_START( tempest ) | |
| 442 | 442 | PORT_START_TAG("IN0") /* IN0 */ |
| 443 | 443 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN3 ) |
| 444 | 444 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 132 | 132 | |
| 133 | 133 | /******************************************************************************/ |
| 134 | 134 | |
| 135 | INPUT_PORTS_START( madmotor ) | |
| 135 | static INPUT_PORTS_START( madmotor ) | |
| 136 | 136 | PORT_START |
| 137 | 137 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 138 | 138 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 214 | 214 | * |
| 215 | 215 | *************************************/ |
| 216 | 216 | |
| 217 | INPUT_PORTS_START( eprom ) | |
| 217 | static INPUT_PORTS_START( eprom ) | |
| 218 | 218 | PORT_START /* 26000 */ |
| 219 | 219 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 220 | 220 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 258 | 258 | INPUT_PORTS_END |
| 259 | 259 | |
| 260 | 260 | |
| 261 | INPUT_PORTS_START( klaxp ) | |
| 261 | static INPUT_PORTS_START( klaxp ) | |
| 262 | 262 | PORT_START /* 26000 */ |
| 263 | 263 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 264 | 264 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
|---|---|---|
| 450 | 450 | |
| 451 | 451 | |
| 452 | 452 | |
| 453 | INPUT_PORTS_START( bublbobl ) | |
| 453 | static INPUT_PORTS_START( bublbobl ) | |
| 454 | 454 | PORT_START_TAG("IN0") |
| 455 | 455 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_TILT ) |
| 456 | 456 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r1238 | r1239 | |
| 529 | 529 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 530 | 530 | INPUT_PORTS_END |
| 531 | 531 | |
| 532 | INPUT_PORTS_START( boblbobl ) | |
| 532 | static INPUT_PORTS_START( boblbobl ) | |
| 533 | 533 | PORT_START_TAG("DSW0") |
| 534 | 534 | PORT_DIPNAME( 0x05, 0x04, "Mode" ) |
| 535 | 535 | PORT_DIPSETTING( 0x04, "Game, English" ) |
| r1238 | r1239 | |
| 597 | 597 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 598 | 598 | INPUT_PORTS_END |
| 599 | 599 | |
| 600 | INPUT_PORTS_START( sboblbob ) | |
| 600 | static INPUT_PORTS_START( sboblbob ) | |
| 601 | 601 | PORT_INCLUDE( boblbobl ) |
| 602 | 602 | |
| 603 | 603 | PORT_MODIFY( "DSW0" ) |
| r1238 | r1239 | |
| 614 | 614 | PORT_DIPSETTING( 0x20, "100 (Cheat)") |
| 615 | 615 | INPUT_PORTS_END |
| 616 | 616 | |
| 617 | INPUT_PORTS_START( tokio ) | |
| 617 | static INPUT_PORTS_START( tokio ) | |
| 618 | 618 | PORT_START_TAG("DSW0") |
| 619 | 619 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 620 | 620 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
|---|---|---|
| 82 | 82 | memory_set_bank(1, data >> 6); |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | WRITE8_HANDLER( ym_port_w1 ) | |
| 85 | static WRITE8_HANDLER( ym_port_w1 ) | |
| 86 | 86 | { |
| 87 | 87 | logerror("ym_write port 1 %02x\n",data); |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | |
| 91 | WRITE8_HANDLER( ym_port_w2 ) | |
| 91 | static WRITE8_HANDLER( ym_port_w2 ) | |
| 92 | 92 | { |
| 93 | 93 | logerror("ym_write port 2 %02x\n",data); |
| 94 | 94 | } |
| r1238 | r1239 | |
| 199 | 199 | ADDRESS_MAP_END |
| 200 | 200 | |
| 201 | 201 | |
| 202 | INPUT_PORTS_START( chinsan ) | |
| 202 | static INPUT_PORTS_START( chinsan ) | |
| 203 | 203 | PORT_START |
| 204 | 204 | PORT_DIPNAME( 0x01, 0x01, "DSW1" ) |
| 205 | 205 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 111 | 111 | |
| 112 | 112 | ***************************************************************************/ |
| 113 | 113 | |
| 114 | INPUT_PORTS_START( skyfox ) | |
| 114 | static INPUT_PORTS_START( skyfox ) | |
| 115 | 115 | |
| 116 | 116 | PORT_START_TAG("IN0") // Player 1 |
| 117 | 117 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) |
| r1238 | r1239 | |
|---|---|---|
| 375 | 375 | |
| 376 | 376 | |
| 377 | 377 | |
| 378 | INPUT_PORTS_START( cshooter ) | |
| 378 | static INPUT_PORTS_START( cshooter ) | |
| 379 | 379 | PORT_START /* IN0 (0xc200) */ |
| 380 | 380 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 381 | 381 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 535 | 535 | AM_RANGE(0xfc20, 0xfc20) AM_READ(soundlatch_r) |
| 536 | 536 | ADDRESS_MAP_END |
| 537 | 537 | |
| 538 | INPUT_PORTS_START( pspikes ) | |
| 538 | static INPUT_PORTS_START( pspikes ) | |
| 539 | 539 | PORT_START_TAG("IN0") |
| 540 | 540 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 541 | 541 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| r1238 | r1239 | |
| 616 | 616 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 617 | 617 | INPUT_PORTS_END |
| 618 | 618 | |
| 619 | INPUT_PORTS_START( pspikesb ) | |
| 619 | static INPUT_PORTS_START( pspikesb ) | |
| 620 | 620 | PORT_START_TAG("IN0") |
| 621 | 621 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 622 | 622 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 693 | 693 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 694 | 694 | INPUT_PORTS_END |
| 695 | 695 | |
| 696 | INPUT_PORTS_START( karatblz ) | |
| 696 | static INPUT_PORTS_START( karatblz ) | |
| 697 | 697 | PORT_START_TAG("IN0") |
| 698 | 698 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 699 | 699 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 804 | 804 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 805 | 805 | INPUT_PORTS_END |
| 806 | 806 | |
| 807 | INPUT_PORTS_START( spinlbrk ) | |
| 807 | static INPUT_PORTS_START( spinlbrk ) | |
| 808 | 808 | PORT_START_TAG("IN0") |
| 809 | 809 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 810 | 810 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 901 | 901 | PORT_DIPSETTING( 0x0000, "5 Points" ) |
| 902 | 902 | INPUT_PORTS_END |
| 903 | 903 | |
| 904 | INPUT_PORTS_START( spinlbrj ) | |
| 904 | static INPUT_PORTS_START( spinlbrj ) | |
| 905 | 905 | PORT_INCLUDE(spinlbrk) |
| 906 | 906 | |
| 907 | 907 | PORT_MODIFY("DSW") |
| r1238 | r1239 | |
| 910 | 910 | PORT_DIPSETTING( 0x0000, "6 Times" ) |
| 911 | 911 | INPUT_PORTS_END |
| 912 | 912 | |
| 913 | INPUT_PORTS_START( spinlbru ) | |
| 913 | static INPUT_PORTS_START( spinlbru ) | |
| 914 | 914 | PORT_INCLUDE(spinlbrk) |
| 915 | 915 | |
| 916 | 916 | PORT_MODIFY("DSW") |
| r1238 | r1239 | |
| 919 | 919 | PORT_DIPSETTING( 0x0000, "32 Hitpoints" ) |
| 920 | 920 | INPUT_PORTS_END |
| 921 | 921 | |
| 922 | INPUT_PORTS_START( turbofrc ) | |
| 922 | static INPUT_PORTS_START( turbofrc ) | |
| 923 | 923 | PORT_START_TAG("IN0") |
| 924 | 924 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 925 | 925 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1010 | 1010 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START3 ) |
| 1011 | 1011 | INPUT_PORTS_END |
| 1012 | 1012 | |
| 1013 | INPUT_PORTS_START( aerofgtb ) | |
| 1013 | static INPUT_PORTS_START( aerofgtb ) | |
| 1014 | 1014 | PORT_START_TAG("IN0") |
| 1015 | 1015 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 1016 | 1016 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 1093 | 1093 | /* this port is checked at 1b080 */ |
| 1094 | 1094 | INPUT_PORTS_END |
| 1095 | 1095 | |
| 1096 | INPUT_PORTS_START( aerofgt ) | |
| 1096 | static INPUT_PORTS_START( aerofgt ) | |
| 1097 | 1097 | PORT_START_TAG("IN0") |
| 1098 | 1098 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 1099 | 1099 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 1182 | 1182 | PORT_DIPSETTING( 0x000b, "Taiwan" ) |
| 1183 | 1183 | INPUT_PORTS_END |
| 1184 | 1184 | |
| 1185 | INPUT_PORTS_START( wbbc97 ) | |
| 1185 | static INPUT_PORTS_START( wbbc97 ) | |
| 1186 | 1186 | PORT_INCLUDE(pspikes) |
| 1187 | 1187 | PORT_MODIFY("IN0") |
| 1188 | 1188 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r1238 | r1239 | |
|---|---|---|
| 61 | 61 | ADDRESS_MAP_END |
| 62 | 62 | |
| 63 | 63 | |
| 64 | INPUT_PORTS_START( rocnrope ) | |
| 64 | static INPUT_PORTS_START( rocnrope ) | |
| 65 | 65 | PORT_START_TAG("IN0") |
| 66 | 66 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 67 | 67 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 284 | 284 | ADDRESS_MAP_END |
| 285 | 285 | |
| 286 | 286 | |
| 287 | INPUT_PORTS_START( fgoal ) | |
| 287 | static INPUT_PORTS_START( fgoal ) | |
| 288 | 288 | |
| 289 | 289 | PORT_START |
| 290 | 290 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_TILT ) |
| r1238 | r1239 | |
|---|---|---|
| 179 | 179 | AM_RANGE(0xc0, 0xc3) AM_WRITENOP |
| 180 | 180 | ADDRESS_MAP_END |
| 181 | 181 | |
| 182 | INPUT_PORTS_START( quizmstr ) | |
| 182 | static INPUT_PORTS_START( quizmstr ) | |
| 183 | 183 | PORT_START |
| 184 | 184 | PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 185 | 185 | PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1) PORT_NAME("Bookkeeping") PORT_TOGGLE /* Button 2 for second page, Button 3 erases data */ |
| r1238 | r1239 | |
| 281 | 281 | PORT_DIPSETTING( 0x80, DEF_STR( Yes )) |
| 282 | 282 | INPUT_PORTS_END |
| 283 | 283 | |
| 284 | INPUT_PORTS_START( trailblz ) | |
| 284 | static INPUT_PORTS_START( trailblz ) | |
| 285 | 285 | PORT_START |
| 286 | 286 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 287 | 287 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 393 | 393 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 394 | 394 | INPUT_PORTS_END |
| 395 | 395 | |
| 396 | INPUT_PORTS_START( supnudg2 ) | |
| 396 | static INPUT_PORTS_START( supnudg2 ) | |
| 397 | 397 | PORT_START |
| 398 | 398 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 399 | 399 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 350 | 350 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) \ |
| 351 | 351 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 352 | 352 | |
| 353 | INPUT_PORTS_START( docastle ) | |
| 353 | static INPUT_PORTS_START( docastle ) | |
| 354 | 354 | DOCASTLE_IN0 |
| 355 | 355 | |
| 356 | 356 | DOCASTLE_IN1 |
| r1238 | r1239 | |
| 384 | 384 | COINAGE_PORT |
| 385 | 385 | INPUT_PORTS_END |
| 386 | 386 | |
| 387 | INPUT_PORTS_START( dorunrun ) | |
| 387 | static INPUT_PORTS_START( dorunrun ) | |
| 388 | 388 | DOCASTLE_IN0 |
| 389 | 389 | |
| 390 | 390 | DOCASTLE_IN1 |
| r1238 | r1239 | |
| 419 | 419 | COINAGE_PORT |
| 420 | 420 | INPUT_PORTS_END |
| 421 | 421 | |
| 422 | INPUT_PORTS_START( dowild ) | |
| 422 | static INPUT_PORTS_START( dowild ) | |
| 423 | 423 | DOCASTLE_IN0 |
| 424 | 424 | |
| 425 | 425 | DOCASTLE_IN1 |
| r1238 | r1239 | |
| 454 | 454 | COINAGE_PORT |
| 455 | 455 | INPUT_PORTS_END |
| 456 | 456 | |
| 457 | INPUT_PORTS_START( jjack ) | |
| 457 | static INPUT_PORTS_START( jjack ) | |
| 458 | 458 | DOCASTLE_IN0 |
| 459 | 459 | |
| 460 | 460 | DOCASTLE_IN1 |
| r1238 | r1239 | |
| 488 | 488 | COINAGE_PORT |
| 489 | 489 | INPUT_PORTS_END |
| 490 | 490 | |
| 491 | INPUT_PORTS_START( kickridr ) | |
| 491 | static INPUT_PORTS_START( kickridr ) | |
| 492 | 492 | PORT_START // IN0 |
| 493 | 493 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 494 | 494 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| r1238 | r1239 | |
| 531 | 531 | COINAGE_PORT |
| 532 | 532 | INPUT_PORTS_END |
| 533 | 533 | |
| 534 | INPUT_PORTS_START( idsoccer ) | |
| 534 | static INPUT_PORTS_START( idsoccer ) | |
| 535 | 535 | PORT_START // IN0 |
| 536 | 536 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT ) PORT_8WAY |
| 537 | 537 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 143 | 143 | Inputs |
| 144 | 144 | **************************************************************************/ |
| 145 | 145 | |
| 146 | INPUT_PORTS_START( omegaf ) | |
| 146 | static INPUT_PORTS_START( omegaf ) | |
| 147 | 147 | PORT_START /* Player 1 inputs */ |
| 148 | 148 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 149 | 149 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 219 | 219 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_4C ) ) |
| 220 | 220 | INPUT_PORTS_END |
| 221 | 221 | |
| 222 | INPUT_PORTS_START( robokid ) | |
| 222 | static INPUT_PORTS_START( robokid ) | |
| 223 | 223 | PORT_START /* Player 1 inputs */ |
| 224 | 224 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 225 | 225 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 288 | 288 | INPUT_PORTS_END |
| 289 | 289 | |
| 290 | 290 | |
| 291 | INPUT_PORTS_START( robokidj ) | |
| 291 | static INPUT_PORTS_START( robokidj ) | |
| 292 | 292 | PORT_START /* Player 1 inputs */ |
| 293 | 293 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 294 | 294 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 129 | 129 | extern UINT16* galsnew_bg_pixram; |
| 130 | 130 | extern UINT16* galsnew_fg_pixram; |
| 131 | 131 | |
| 132 | INPUT_PORTS_START( galsnew ) | |
| 132 | static INPUT_PORTS_START( galsnew ) | |
| 133 | 133 | PORT_START_TAG("DSW1") |
| 134 | 134 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unused ) ) |
| 135 | 135 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 198 | 198 | |
| 199 | 199 | /*****************************************************************************/ |
| 200 | 200 | |
| 201 | INPUT_PORTS_START( ultrsprt ) | |
| 201 | static INPUT_PORTS_START( ultrsprt ) | |
| 202 | 202 | PORT_START |
| 203 | 203 | PORT_BIT( 0x4, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 204 | 204 | PORT_BIT( 0x2, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 155 | 155 | AM_RANGE(0x00, 0x00) AM_READNOP |
| 156 | 156 | ADDRESS_MAP_END |
| 157 | 157 | |
| 158 | INPUT_PORTS_START( mainsnk ) | |
| 158 | static INPUT_PORTS_START( mainsnk ) | |
| 159 | 159 | PORT_START |
| 160 | 160 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 161 | 161 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 204 | 204 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 205 | 205 | INPUT_PORTS_END |
| 206 | 206 | |
| 207 | INPUT_PORTS_START( canvas ) | |
| 207 | static INPUT_PORTS_START( canvas ) | |
| 208 | 208 | PORT_START |
| 209 | 209 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 210 | 210 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 106 | 106 | ADDRESS_MAP_END |
| 107 | 107 | |
| 108 | 108 | |
| 109 | INPUT_PORTS_START( mystston ) | |
| 109 | static INPUT_PORTS_START( mystston ) | |
| 110 | 110 | PORT_START /* IN0 */ |
| 111 | 111 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 112 | 112 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
|---|---|---|
| 114 | 114 | * |
| 115 | 115 | *************************************/ |
| 116 | 116 | |
| 117 | INPUT_PORTS_START( narc ) | |
| 117 | static INPUT_PORTS_START( narc ) | |
| 118 | 118 | PORT_START |
| 119 | 119 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 120 | 120 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 164 | 164 | INPUT_PORTS_END |
| 165 | 165 | |
| 166 | 166 | |
| 167 | INPUT_PORTS_START( trog ) | |
| 167 | static INPUT_PORTS_START( trog ) | |
| 168 | 168 | PORT_START |
| 169 | 169 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 170 | 170 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 259 | 259 | INPUT_PORTS_END |
| 260 | 260 | |
| 261 | 261 | |
| 262 | INPUT_PORTS_START( smashtv ) | |
| 262 | static INPUT_PORTS_START( smashtv ) | |
| 263 | 263 | PORT_START |
| 264 | 264 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_PLAYER(1) |
| 265 | 265 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 355 | 355 | INPUT_PORTS_END |
| 356 | 356 | |
| 357 | 357 | |
| 358 | INPUT_PORTS_START( strkforc ) | |
| 358 | static INPUT_PORTS_START( strkforc ) | |
| 359 | 359 | PORT_START |
| 360 | 360 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 361 | 361 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 451 | 451 | INPUT_PORTS_END |
| 452 | 452 | |
| 453 | 453 | |
| 454 | INPUT_PORTS_START( mkla2 ) | |
| 454 | static INPUT_PORTS_START( mkla2 ) | |
| 455 | 455 | PORT_START |
| 456 | 456 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 457 | 457 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 543 | 543 | INPUT_PORTS_END |
| 544 | 544 | |
| 545 | 545 | |
| 546 | INPUT_PORTS_START( mkla4 ) | |
| 546 | static INPUT_PORTS_START( mkla4 ) | |
| 547 | 547 | PORT_START |
| 548 | 548 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 549 | 549 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 638 | 638 | INPUT_PORTS_END |
| 639 | 639 | |
| 640 | 640 | |
| 641 | INPUT_PORTS_START( term2 ) | |
| 641 | static INPUT_PORTS_START( term2 ) | |
| 642 | 642 | PORT_START |
| 643 | 643 | PORT_BIT( 0x000f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 644 | 644 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 734 | 734 | INPUT_PORTS_END |
| 735 | 735 | |
| 736 | 736 | |
| 737 | INPUT_PORTS_START( totcarn ) | |
| 737 | static INPUT_PORTS_START( totcarn ) | |
| 738 | 738 | PORT_START |
| 739 | 739 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_PLAYER(1) |
| 740 | 740 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1231 | 1231 | ROM_RELOAD( 0x60000, 0x10000 ) |
| 1232 | 1232 | |
| 1233 | 1233 | ROM_REGION16_LE( 0x100000, REGION_USER1, 0 ) /* 34010 code */ |
| 1234 | ROM_LOAD16_BYTE( "u105-la5", 0xc0000, 0x20000, CRC(d62cc51a) SHA1(a63ed5b0e08dd89a1392e04cd88c9d83d75810c6) ) | |
| 1235 | ROM_LOAD16_BYTE( "u89-la5", 0xc0001, 0x20000, CRC(edde0bc8) SHA1(95389b75c438c0f0cad668a35570fcb4f7790a02) ) | |
| 1236 | ||
| 1237 | ROM_REGION( 0x800000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 1238 | ROM_LOAD ( "trogu111.bin", 0x000000, 0x20000, CRC(9ded08c1) SHA1(bbf069f218e3f3d67e45fa2229a471451b3a8f96) ) | |
| 1239 | ROM_LOAD ( "trogu112.bin", 0x020000, 0x20000, CRC(42293843) SHA1(cae77eeddd784573beccb79e54573da0e4ccdd8a) ) | |
| 1240 | ROM_LOAD ( "trogu113.bin", 0x040000, 0x20000, CRC(77f50cbb) SHA1(5f2df3aedd90871ac02bca07c66387f6cda0dfdf) ) | |
| 1241 | ||
| 1242 | ROM_LOAD ( "trogu106.bin", 0x080000, 0x20000, CRC(af2eb0d8) SHA1(3767e6f3853b092b40664c2b6c6a838f0243514b) ) | |
| 1243 | ROM_LOAD ( "trogu107.bin", 0x0a0000, 0x20000, CRC(88a7b3f6) SHA1(ba55f66929841a915d7b96aabf4b11e50ba6cfbd) ) | |
| 1244 | ||
| 1245 | ROM_LOAD ( "trogu95.bin", 0x200000, 0x20000, CRC(f3ba2838) SHA1(2bee6c783c84a9f3f9309d802f42983857190ece) ) | |
| 1246 | ROM_LOAD ( "trogu96.bin", 0x220000, 0x20000, CRC(cfed2e77) SHA1(7fc0f52ac844c9efcbcc3004c40f9f4fc7e1c346) ) | |
| 1247 | ROM_LOAD ( "trogu97.bin", 0x240000, 0x20000, CRC(3262d1f8) SHA1(754e3e8223edd11398b2db77fd5db619dad1577b) ) | |
| 1248 | ||
| 1249 | ROM_LOAD ( "trogu90.bin", 0x280000, 0x20000, CRC(16e06753) SHA1(62ec2b18e6b965ea0792d655d7878b4225da3aca) ) | |
| 1250 | ROM_LOAD ( "trogu91.bin", 0x2a0000, 0x20000, CRC(880a02c7) SHA1(ab1b2d24be4571a183b230d267c6c8167d4a42a4) ) | |
| 1251 | ROM_END | |
| 1252 | ||
| 1253 | ||
| 1254 | ROM_START( trog4 ) | |
| 1255 | ROM_REGION( 0x90000, REGION_CPU2, 0 ) /* sound CPU */ | |
| 1256 | ROM_LOAD ( "trogu4.bin", 0x10000, 0x10000, CRC(759d0bf4) SHA1(c4c3fa51c43cf7fd241ac1f33d7d220aa9f9edb3) ) | |
| 1257 | ROM_RELOAD( 0x20000, 0x10000 ) | |
| 1258 | ROM_LOAD ( "trogu19.bin", 0x30000, 0x10000, CRC(960c333d) SHA1(da8ce8dfffffe7a2d60b3f75cc5aa88e5e2be659) ) | |
| 1259 | ROM_RELOAD( 0x40000, 0x10000 ) | |
| 1260 | ROM_LOAD ( "trogu20.bin", 0x50000, 0x10000, CRC(67f1658a) SHA1(c85dc920ff4b292afa9f6681f31918a200799cc9) ) | |
| 1261 | ROM_RELOAD( 0x60000, 0x10000 ) | |
| 1262 | ||
| 1263 | ROM_REGION16_LE( 0x100000, REGION_USER1, 0 ) /* 34010 code */ | |
| 1234 | 1264 | ROM_LOAD16_BYTE( "u105-la4", 0xc0000, 0x20000, CRC(e6095189) SHA1(a2caaf64e371050b37c63d9608ba5d289cf3cd91) ) |
| 1235 | 1265 | ROM_LOAD16_BYTE( "u89-la4", 0xc0001, 0x20000, CRC(fdd7cc65) SHA1(bfc4339953c122bca968f9cfa3a82df3584a3727) ) |
| 1236 | 1266 | |
| r1238 | r1239 | |
| 2045 | 2075 | GAME( 1988, narc, 0, zunit, narc, narc, ROT0, "Williams", "Narc (rev 7.00)", GAME_SUPPORTS_SAVE ) |
| 2046 | 2076 | GAME( 1988, narc3, narc, zunit, narc, narc, ROT0, "Williams", "Narc (rev 3.20)", GAME_SUPPORTS_SAVE ) |
| 2047 | 2077 | |
| 2048 | GAME( 1990, trog, 0, yunit_cvsd_4bit_slow, trog, trog, ROT0, "Midway", "Trog (rev LA4 03/11/91)", GAME_SUPPORTS_SAVE ) | |
| 2078 | GAME( 1990, trog, 0, yunit_cvsd_4bit_slow, trog, trog, ROT0, "Midway", "Trog (rev LA5 03/29/91)", GAME_SUPPORTS_SAVE ) | |
| 2079 | GAME( 1990, trog4, trog, yunit_cvsd_4bit_slow, trog, trog, ROT0, "Midway", "Trog (rev LA4 03/11/91)", GAME_SUPPORTS_SAVE ) | |
| 2049 | 2080 | GAME( 1990, trog3, trog, yunit_cvsd_4bit_slow, trog, trog, ROT0, "Midway", "Trog (rev LA3 02/14/91)", GAME_SUPPORTS_SAVE ) |
| 2050 | 2081 | GAME( 1990, trogpa6, trog, yunit_cvsd_4bit_slow, trog, trog, ROT0, "Midway", "Trog (rev PA6-PAC 09/09/90)", GAME_SUPPORTS_SAVE ) |
| 2051 | 2082 | GAME( 1990, trogp, trog, yunit_cvsd_4bit_slow, trog, trog, ROT0, "Midway", "Trog (prototype, rev 4.00 07/27/90)", GAME_SUPPORTS_SAVE ) |
| r1238 | r1239 | |
|---|---|---|
| 353 | 353 | * |
| 354 | 354 | *************************************/ |
| 355 | 355 | |
| 356 | INPUT_PORTS_START( hitme ) | |
| 356 | static INPUT_PORTS_START( hitme ) | |
| 357 | 357 | PORT_START |
| 358 | 358 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) /* Start button */ |
| 359 | 359 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) /* Always high */ |
| r1238 | r1239 | |
| 430 | 430 | INPUT_PORTS_END |
| 431 | 431 | |
| 432 | 432 | |
| 433 | INPUT_PORTS_START( barricad ) | |
| 433 | static INPUT_PORTS_START( barricad ) | |
| 434 | 434 | PORT_START |
| 435 | 435 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) /* Start button */ |
| 436 | 436 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) /* Always high */ |
| r1238 | r1239 | |
|---|---|---|
| 201 | 201 | * |
| 202 | 202 | *************************************/ |
| 203 | 203 | |
| 204 | INPUT_PORTS_START( rampart ) | |
| 204 | static INPUT_PORTS_START( rampart ) | |
| 205 | 205 | PORT_START |
| 206 | 206 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) // alternate button1 |
| 207 | 207 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) |
| r1238 | r1239 | |
| 243 | 243 | INPUT_PORTS_END |
| 244 | 244 | |
| 245 | 245 | |
| 246 | INPUT_PORTS_START( ramprt2p ) | |
| 246 | static INPUT_PORTS_START( ramprt2p ) | |
| 247 | 247 | PORT_START |
| 248 | 248 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) // alternate button1 |
| 249 | 249 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) |
| r1238 | r1239 | |
| 295 | 295 | INPUT_PORTS_END |
| 296 | 296 | |
| 297 | 297 | |
| 298 | INPUT_PORTS_START( rampartj ) | |
| 298 | static INPUT_PORTS_START( rampartj ) | |
| 299 | 299 | PORT_START |
| 300 | 300 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 301 | 301 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
|---|---|---|
| 319 | 319 | |
| 320 | 320 | |
| 321 | 321 | |
| 322 | INPUT_PORTS_START( senjyo ) | |
| 322 | static INPUT_PORTS_START( senjyo ) | |
| 323 | 323 | PORT_START /* IN0 */ |
| 324 | 324 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 325 | 325 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 400 | 400 | PORT_DIPSETTING( 0xc0, DEF_STR( Hardest ) ) |
| 401 | 401 | INPUT_PORTS_END |
| 402 | 402 | |
| 403 | INPUT_PORTS_START( starforc ) | |
| 403 | static INPUT_PORTS_START( starforc ) | |
| 404 | 404 | PORT_START /* IN0 */ |
| 405 | 405 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 406 | 406 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 481 | 481 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 482 | 482 | INPUT_PORTS_END |
| 483 | 483 | |
| 484 | INPUT_PORTS_START( baluba ) | |
| 484 | static INPUT_PORTS_START( baluba ) | |
| 485 | 485 | PORT_START /* IN0 */ |
| 486 | 486 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 487 | 487 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 115 | 115 | |
| 116 | 116 | |
| 117 | 117 | |
| 118 | INPUT_PORTS_START( yiear ) | |
| 118 | static INPUT_PORTS_START( yiear ) | |
| 119 | 119 | PORT_START /* IN0 */ |
| 120 | 120 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 121 | 121 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 111 | 111 | ADDRESS_MAP_END |
| 112 | 112 | |
| 113 | 113 | |
| 114 | INPUT_PORTS_START( murogem ) | |
| 114 | static INPUT_PORTS_START( murogem ) | |
| 115 | 115 | PORT_START |
| 116 | 116 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_CODE(KEYCODE_1) PORT_NAME("Bet (Replay)") |
| 117 | 117 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_CODE(KEYCODE_2) PORT_NAME("Deal") |
| r1238 | r1239 | |
|---|---|---|
| 561 | 561 | AM_RANGE(0xa00000, 0xa00001) AM_WRITE(MWA16_NOP) /* IRQ 2 acknowledge? */ |
| 562 | 562 | ADDRESS_MAP_END |
| 563 | 563 | |
| 564 | INPUT_PORTS_START( snowbros ) | |
| 564 | static INPUT_PORTS_START( snowbros ) | |
| 565 | 565 | PORT_START_TAG("DSW") /* 500001 */ |
| 566 | 566 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Region ) ) |
| 567 | 567 | PORT_DIPSETTING( 0x00, DEF_STR( Europe ) ) |
| r1238 | r1239 | |
| 642 | 642 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 643 | 643 | INPUT_PORTS_END |
| 644 | 644 | |
| 645 | INPUT_PORTS_START( snowbroj ) | |
| 645 | static INPUT_PORTS_START( snowbroj ) | |
| 646 | 646 | PORT_START /* 500001 */ |
| 647 | 647 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 648 | 648 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 716 | 716 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 717 | 717 | INPUT_PORTS_END |
| 718 | 718 | |
| 719 | INPUT_PORTS_START( honeydol ) | |
| 719 | static INPUT_PORTS_START( honeydol ) | |
| 720 | 720 | PORT_START_TAG("DSW") |
| 721 | 721 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Coinage ) ) |
| 722 | 722 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
| 792 | 792 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 793 | 793 | INPUT_PORTS_END |
| 794 | 794 | |
| 795 | INPUT_PORTS_START( twinadv ) | |
| 795 | static INPUT_PORTS_START( twinadv ) | |
| 796 | 796 | PORT_START_TAG("DSW") |
| 797 | 797 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Coinage ) ) |
| 798 | 798 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
| 870 | 870 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 871 | 871 | INPUT_PORTS_END |
| 872 | 872 | |
| 873 | INPUT_PORTS_START( 4in1boot ) | |
| 873 | static INPUT_PORTS_START( 4in1boot ) | |
| 874 | 874 | PORT_START /* 500001 */ |
| 875 | 875 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) |
| 876 | 876 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 952 | 952 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 953 | 953 | INPUT_PORTS_END |
| 954 | 954 | |
| 955 | INPUT_PORTS_START( hyperpac ) | |
| 955 | static INPUT_PORTS_START( hyperpac ) | |
| 956 | 956 | PORT_START /* 500000.w */ |
| 957 | 957 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds ) ) |
| 958 | 958 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1029 | 1029 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1030 | 1030 | INPUT_PORTS_END |
| 1031 | 1031 | |
| 1032 | INPUT_PORTS_START( cookbib2 ) | |
| 1032 | static INPUT_PORTS_START( cookbib2 ) | |
| 1033 | 1033 | PORT_START /* 500000.w */ |
| 1034 | 1034 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds ) ) |
| 1035 | 1035 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1106 | 1106 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1107 | 1107 | INPUT_PORTS_END |
| 1108 | 1108 | |
| 1109 | INPUT_PORTS_START( cookbib3 ) | |
| 1109 | static INPUT_PORTS_START( cookbib3 ) | |
| 1110 | 1110 | PORT_START /* 500000.w */ |
| 1111 | 1111 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds ) ) |
| 1112 | 1112 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1184 | 1184 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1185 | 1185 | INPUT_PORTS_END |
| 1186 | 1186 | |
| 1187 | INPUT_PORTS_START( moremore ) | |
| 1187 | static INPUT_PORTS_START( moremore ) | |
| 1188 | 1188 | PORT_START /* 500000.w */ |
| 1189 | 1189 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds ) ) |
| 1190 | 1190 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1262 | 1262 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1263 | 1263 | INPUT_PORTS_END |
| 1264 | 1264 | |
| 1265 | INPUT_PORTS_START( toppyrap ) | |
| 1265 | static INPUT_PORTS_START( toppyrap ) | |
| 1266 | 1266 | PORT_START /* 500000.w */ |
| 1267 | 1267 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds ) ) |
| 1268 | 1268 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1337 | 1337 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1338 | 1338 | INPUT_PORTS_END |
| 1339 | 1339 | |
| 1340 | INPUT_PORTS_START( finalttr ) | |
| 1340 | static INPUT_PORTS_START( finalttr ) | |
| 1341 | 1341 | PORT_START /* 500001 */ |
| 1342 | 1342 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Demo_Sounds ) ) |
| 1343 | 1343 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 334 | 334 | * |
| 335 | 335 | *************************************/ |
| 336 | 336 | |
| 337 | INPUT_PORTS_START( mhavoc ) | |
| 337 | static INPUT_PORTS_START( mhavoc ) | |
| 338 | 338 | PORT_START /* IN0 - alpha (player_1 = 0) */ |
| 339 | 339 | PORT_BIT ( 0x03, IP_ACTIVE_HIGH, IPT_SPECIAL ) |
| 340 | 340 | PORT_BIT ( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) |
| r1238 | r1239 | |
| 407 | 407 | INPUT_PORTS_END |
| 408 | 408 | |
| 409 | 409 | |
| 410 | INPUT_PORTS_START( mhavocp ) | |
| 410 | static INPUT_PORTS_START( mhavocp ) | |
| 411 | 411 | PORT_START /* IN0 - alpha (player_1 = 0) */ |
| 412 | 412 | PORT_BIT ( 0x0f, IP_ACTIVE_HIGH, IPT_SPECIAL ) |
| 413 | 413 | PORT_BIT ( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 477 | 477 | INPUT_PORTS_END |
| 478 | 478 | |
| 479 | 479 | |
| 480 | INPUT_PORTS_START( alphaone ) | |
| 480 | static INPUT_PORTS_START( alphaone ) | |
| 481 | 481 | PORT_START /* IN0 - alpha (player_1 = 0) */ |
| 482 | 482 | PORT_BIT ( 0x03, IP_ACTIVE_HIGH, IPT_SPECIAL ) |
| 483 | 483 | PORT_BIT ( 0x7c, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 423 | 423 | PORT_DIPSETTING ( 0x60, "6 credits/4 coins" )\ |
| 424 | 424 | PORT_DIPSETTING ( 0x80, "6 credits/5 coins" ) |
| 425 | 425 | |
| 426 | INPUT_PORTS_START( bzone ) | |
| 426 | static INPUT_PORTS_START( bzone ) | |
| 427 | 427 | BZONEIN0 |
| 428 | 428 | BZONEDSW0 |
| 429 | 429 | BZONEDSW1 |
| r1238 | r1239 | |
| 440 | 440 | INPUT_PORTS_END |
| 441 | 441 | |
| 442 | 442 | |
| 443 | INPUT_PORTS_START( redbaron ) | |
| 443 | static INPUT_PORTS_START( redbaron ) | |
| 444 | 444 | BZONEIN0 |
| 445 | 445 | PORT_START_TAG("DSW0") |
| 446 | 446 | /* See the table above if you are really interested */ |
| r1238 | r1239 | |
| 494 | 494 | INPUT_PORTS_END |
| 495 | 495 | |
| 496 | 496 | |
| 497 | INPUT_PORTS_START( bradley ) | |
| 497 | static INPUT_PORTS_START( bradley ) | |
| 498 | 498 | BZONEIN0 |
| 499 | 499 | BZONEDSW0 |
| 500 | 500 | BZONEDSW1 |
| r1238 | r1239 | |
|---|---|---|
| 1971 | 1971 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1972 | 1972 | |
| 1973 | 1973 | |
| 1974 | INPUT_PORTS_START( mjuraden ) | |
| 1974 | static INPUT_PORTS_START( mjuraden ) | |
| 1975 | 1975 | |
| 1976 | 1976 | // I don't have manual for this game. |
| 1977 | 1977 | |
| r1238 | r1239 | |
| 2050 | 2050 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 2051 | 2051 | INPUT_PORTS_END |
| 2052 | 2052 | |
| 2053 | INPUT_PORTS_START( koinomp ) | |
| 2053 | static INPUT_PORTS_START( koinomp ) | |
| 2054 | 2054 | |
| 2055 | 2055 | // I don't have manual for this game. |
| 2056 | 2056 | |
| r1238 | r1239 | |
| 2129 | 2129 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 2130 | 2130 | INPUT_PORTS_END |
| 2131 | 2131 | |
| 2132 | INPUT_PORTS_START( patimono ) | |
| 2132 | static INPUT_PORTS_START( patimono ) | |
| 2133 | 2133 | |
| 2134 | 2134 | // I don't have manual for this game. |
| 2135 | 2135 | |
| r1238 | r1239 | |
| 2208 | 2208 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 2209 | 2209 | INPUT_PORTS_END |
| 2210 | 2210 | |
| 2211 | INPUT_PORTS_START( janbari ) | |
| 2211 | static INPUT_PORTS_START( janbari ) | |
| 2212 | 2212 | |
| 2213 | 2213 | // I don't have manual for this game. |
| 2214 | 2214 | |
| r1238 | r1239 | |
| 2287 | 2287 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 2288 | 2288 | INPUT_PORTS_END |
| 2289 | 2289 | |
| 2290 | INPUT_PORTS_START( mjanbari ) | |
| 2290 | static INPUT_PORTS_START( mjanbari ) | |
| 2291 | 2291 | |
| 2292 | 2292 | // I don't have manual for this game. |
| 2293 | 2293 | |
| r1238 | r1239 | |
| 2366 | 2366 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 2367 | 2367 | INPUT_PORTS_END |
| 2368 | 2368 | |
| 2369 | INPUT_PORTS_START( mmehyou ) | |
| 2369 | static INPUT_PORTS_START( mmehyou ) | |
| 2370 | 2370 | |
| 2371 | 2371 | // I don't have manual for this game. |
| 2372 | 2372 | |
| r1238 | r1239 | |
| 2445 | 2445 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 2446 | 2446 | INPUT_PORTS_END |
| 2447 | 2447 | |
| 2448 | INPUT_PORTS_START( ultramhm ) | |
| 2448 | static INPUT_PORTS_START( ultramhm ) | |
| 2449 | 2449 | |
| 2450 | 2450 | // I don't have manual for this game. |
| 2451 | 2451 | |
| r1238 | r1239 | |
| 2524 | 2524 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 2525 | 2525 | INPUT_PORTS_END |
| 2526 | 2526 | |
| 2527 | INPUT_PORTS_START( gal10ren ) | |
| 2527 | static INPUT_PORTS_START( gal10ren ) | |
| 2528 | 2528 | |
| 2529 | 2529 | // I don't have manual for this game. |
| 2530 | 2530 | |
| r1238 | r1239 | |
| 2603 | 2603 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 2604 | 2604 | INPUT_PORTS_END |
| 2605 | 2605 | |
| 2606 | INPUT_PORTS_START( renaiclb ) | |
| 2606 | static INPUT_PORTS_START( renaiclb ) | |
| 2607 | 2607 | |
| 2608 | 2608 | // I don't have manual for this game. |
| 2609 | 2609 | |
| r1238 | r1239 | |
| 2682 | 2682 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 2683 | 2683 | INPUT_PORTS_END |
| 2684 | 2684 | |
| 2685 | INPUT_PORTS_START( mjlaman ) | |
| 2685 | static INPUT_PORTS_START( mjlaman ) | |
| 2686 | 2686 | PORT_START /* (0) DIPSW-A */ |
| 2687 | 2687 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 2688 | 2688 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 2757 | 2757 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 2758 | 2758 | INPUT_PORTS_END |
| 2759 | 2759 | |
| 2760 | INPUT_PORTS_START( mkeibaou ) | |
| 2760 | static INPUT_PORTS_START( mkeibaou ) | |
| 2761 | 2761 | PORT_START /* (0) DIPSW-A */ |
| 2762 | 2762 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 2763 | 2763 | PORT_DIPSETTING( 0x03, "1" ) |
| r1238 | r1239 | |
| 2832 | 2832 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 2833 | 2833 | INPUT_PORTS_END |
| 2834 | 2834 | |
| 2835 | INPUT_PORTS_START( pachiten ) | |
| 2835 | static INPUT_PORTS_START( pachiten ) | |
| 2836 | 2836 | PORT_START /* (0) DIPSW-A */ |
| 2837 | 2837 | PORT_DIPNAME( 0x07, 0x07, "Game Out" ) |
| 2838 | 2838 | PORT_DIPSETTING( 0x07, "90% (Easy)" ) |
| r1238 | r1239 | |
| 2906 | 2906 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 2907 | 2907 | INPUT_PORTS_END |
| 2908 | 2908 | |
| 2909 | INPUT_PORTS_START( sailorws ) | |
| 2909 | static INPUT_PORTS_START( sailorws ) | |
| 2910 | 2910 | PORT_START /* (0) DIPSW-A */ |
| 2911 | 2911 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 2912 | 2912 | PORT_DIPSETTING( 0x03, "1" ) |
| r1238 | r1239 | |
| 2981 | 2981 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 2982 | 2982 | INPUT_PORTS_END |
| 2983 | 2983 | |
| 2984 | INPUT_PORTS_START( sailorwr ) | |
| 2984 | static INPUT_PORTS_START( sailorwr ) | |
| 2985 | 2985 | PORT_START /* (0) DIPSW-A */ |
| 2986 | 2986 | PORT_DIPNAME( 0x07, 0x07, "Game Out" ) |
| 2987 | 2987 | PORT_DIPSETTING( 0x07, "90% (Easy)" ) |
| r1238 | r1239 | |
| 3055 | 3055 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 3056 | 3056 | INPUT_PORTS_END |
| 3057 | 3057 | |
| 3058 | INPUT_PORTS_START( psailor1 ) | |
| 3058 | static INPUT_PORTS_START( psailor1 ) | |
| 3059 | 3059 | PORT_START /* (0) DIPSW-A */ |
| 3060 | 3060 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 3061 | 3061 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 3129 | 3129 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 3130 | 3130 | INPUT_PORTS_END |
| 3131 | 3131 | |
| 3132 | INPUT_PORTS_START( psailor2 ) | |
| 3132 | static INPUT_PORTS_START( psailor2 ) | |
| 3133 | 3133 | PORT_START /* (0) DIPSW-A */ |
| 3134 | 3134 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 3135 | 3135 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 3203 | 3203 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 3204 | 3204 | INPUT_PORTS_END |
| 3205 | 3205 | |
| 3206 | INPUT_PORTS_START( otatidai ) | |
| 3206 | static INPUT_PORTS_START( otatidai ) | |
| 3207 | 3207 | |
| 3208 | 3208 | // I don't have manual for this game. |
| 3209 | 3209 | |
| r1238 | r1239 | |
| 3280 | 3280 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 3281 | 3281 | INPUT_PORTS_END |
| 3282 | 3282 | |
| 3283 | INPUT_PORTS_START( wcatcher ) | |
| 3283 | static INPUT_PORTS_START( wcatcher ) | |
| 3284 | 3284 | |
| 3285 | 3285 | // I don't have manual for this game. |
| 3286 | 3286 | |
| r1238 | r1239 | |
| 3358 | 3358 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 3359 | 3359 | INPUT_PORTS_END |
| 3360 | 3360 | |
| 3361 | INPUT_PORTS_START( yosimoto ) | |
| 3361 | static INPUT_PORTS_START( yosimoto ) | |
| 3362 | 3362 | |
| 3363 | 3363 | // I don't have manual for this game. |
| 3364 | 3364 | |
| r1238 | r1239 | |
| 3435 | 3435 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 3436 | 3436 | INPUT_PORTS_END |
| 3437 | 3437 | |
| 3438 | INPUT_PORTS_START( jituroku ) | |
| 3438 | static INPUT_PORTS_START( jituroku ) | |
| 3439 | 3439 | |
| 3440 | 3440 | // I don't have manual for this game. |
| 3441 | 3441 | |
| r1238 | r1239 | |
| 3514 | 3514 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 3515 | 3515 | INPUT_PORTS_END |
| 3516 | 3516 | |
| 3517 | INPUT_PORTS_START( ngpgal ) | |
| 3517 | static INPUT_PORTS_START( ngpgal ) | |
| 3518 | 3518 | PORT_START /* (0) DIPSW-A */ |
| 3519 | 3519 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 3520 | 3520 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 3590 | 3590 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 3591 | 3591 | INPUT_PORTS_END |
| 3592 | 3592 | |
| 3593 | INPUT_PORTS_START( mjgottsu ) | |
| 3593 | static INPUT_PORTS_START( mjgottsu ) | |
| 3594 | 3594 | PORT_START /* (0) DIPSW-A */ |
| 3595 | 3595 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 3596 | 3596 | PORT_DIPSETTING( 0x03, "1" ) |
| r1238 | r1239 | |
| 3665 | 3665 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 3666 | 3666 | INPUT_PORTS_END |
| 3667 | 3667 | |
| 3668 | INPUT_PORTS_START( bakuhatu ) | |
| 3668 | static INPUT_PORTS_START( bakuhatu ) | |
| 3669 | 3669 | PORT_START /* (0) DIPSW-A */ |
| 3670 | 3670 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 3671 | 3671 | PORT_DIPSETTING( 0x03, "1" ) |
| r1238 | r1239 | |
| 3740 | 3740 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 3741 | 3741 | INPUT_PORTS_END |
| 3742 | 3742 | |
| 3743 | INPUT_PORTS_START( cmehyou ) | |
| 3743 | static INPUT_PORTS_START( cmehyou ) | |
| 3744 | 3744 | PORT_START /* (0) DIPSW-A */ |
| 3745 | 3745 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 3746 | 3746 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 3816 | 3816 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 3817 | 3817 | INPUT_PORTS_END |
| 3818 | 3818 | |
| 3819 | INPUT_PORTS_START( mjkoiura ) | |
| 3819 | static INPUT_PORTS_START( mjkoiura ) | |
| 3820 | 3820 | PORT_START /* (0) DIPSW-A */ |
| 3821 | 3821 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 3822 | 3822 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 3892 | 3892 | MJCTRL_NBMJ9195_TYPE1_PORT10 |
| 3893 | 3893 | INPUT_PORTS_END |
| 3894 | 3894 | |
| 3895 | INPUT_PORTS_START( mscoutm ) | |
| 3895 | static INPUT_PORTS_START( mscoutm ) | |
| 3896 | 3896 | PORT_START /* (0) DIPSW-A */ |
| 3897 | 3897 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 3898 | 3898 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 3967 | 3967 | MJCTRL_NBMJ9195_TYPE2_PORT10 |
| 3968 | 3968 | INPUT_PORTS_END |
| 3969 | 3969 | |
| 3970 | INPUT_PORTS_START( imekura ) | |
| 3970 | static INPUT_PORTS_START( imekura ) | |
| 3971 | 3971 | PORT_START /* (0) DIPSW-A */ |
| 3972 | 3972 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 3973 | 3973 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 4042 | 4042 | MJCTRL_NBMJ9195_TYPE2_PORT10 |
| 4043 | 4043 | INPUT_PORTS_END |
| 4044 | 4044 | |
| 4045 | INPUT_PORTS_START( mjegolf ) | |
| 4045 | static INPUT_PORTS_START( mjegolf ) | |
| 4046 | 4046 | PORT_START /* (0) DIPSW-A */ |
| 4047 | 4047 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 4048 | 4048 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
|---|---|---|
| 115 | 115 | |
| 116 | 116 | |
| 117 | 117 | |
| 118 | INPUT_PORTS_START( sonson ) | |
| 118 | static INPUT_PORTS_START( sonson ) | |
| 119 | 119 | PORT_START /* IN0 */ |
| 120 | 120 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 121 | 121 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| r1238 | r1239 | |
|---|---|---|
| 502 | 502 | |
| 503 | 503 | /* Input Ports */ |
| 504 | 504 | |
| 505 | INPUT_PORTS_START( sslam ) | |
| 505 | static INPUT_PORTS_START( sslam ) | |
| 506 | 506 | PORT_START_TAG("IN0") |
| 507 | 507 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 508 | 508 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
| 604 | 604 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 605 | 605 | INPUT_PORTS_END |
| 606 | 606 | |
| 607 | INPUT_PORTS_START( powerbls ) | |
| 607 | static INPUT_PORTS_START( powerbls ) | |
| 608 | 608 | PORT_START_TAG("IN0") |
| 609 | 609 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 610 | 610 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
|---|---|---|
| 105 | 105 | extern VIDEO_UPDATE( simpl156 ); |
| 106 | 106 | |
| 107 | 107 | |
| 108 | INPUT_PORTS_START( simpl156 ) | |
| 108 | static INPUT_PORTS_START( simpl156 ) | |
| 109 | 109 | PORT_START /* 16bit */ |
| 110 | 110 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 111 | 111 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 165 | 165 | |
| 166 | 166 | /* PORTS */ |
| 167 | 167 | /* (DIPLOCATION diplay inverted) */ |
| 168 | INPUT_PORTS_START( lgp ) | |
| 168 | static INPUT_PORTS_START( lgp ) | |
| 169 | 169 | PORT_START_TAG("DSWA") |
| 170 | 170 | PORT_DIPNAME( 0x03, 0x03, "1st Round" ) PORT_DIPLOCATION("SWA:2,1") |
| 171 | 171 | PORT_DIPSETTING( 0x03, "68 Seconds" ) |
| r1238 | r1239 | |
|---|---|---|
| 116 | 116 | |
| 117 | 117 | /*****************************************************************************/ |
| 118 | 118 | |
| 119 | INPUT_PORTS_START( hcastle ) | |
| 119 | static INPUT_PORTS_START( hcastle ) | |
| 120 | 120 | PORT_START /* IN0 */ |
| 121 | 121 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 122 | 122 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 70 | 70 | |
| 71 | 71 | /* Input Ports */ |
| 72 | 72 | |
| 73 | INPUT_PORTS_START( deadang ) | |
| 73 | static INPUT_PORTS_START( deadang ) | |
| 74 | 74 | SEIBU_COIN_INPUTS /* Must be port 0: coin inputs read through sound cpu */ |
| 75 | 75 | |
| 76 | 76 | PORT_START /* IN0 */ |
| r1238 | r1239 | |
| 136 | 136 | PORT_DIPSETTING( 0x8000, "Overseas" ) |
| 137 | 137 | INPUT_PORTS_END |
| 138 | 138 | |
| 139 | INPUT_PORTS_START( ghunter ) | |
| 139 | static INPUT_PORTS_START( ghunter ) | |
| 140 | 140 | SEIBU_COIN_INPUTS /* Must be port 0: coin inputs read through sound cpu */ |
| 141 | 141 | |
| 142 | 142 | PORT_START /* IN0 */ |
| r1238 | r1239 | |
|---|---|---|
| 308 | 308 | * |
| 309 | 309 | *************************************/ |
| 310 | 310 | |
| 311 | INPUT_PORTS_START( cliffhgr ) | |
| 311 | static INPUT_PORTS_START( cliffhgr ) | |
| 312 | 312 | PORT_START_TAG("BANK0") |
| 313 | 313 | PORT_BIT ( 0x3F, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 314 | 314 | PORT_BIT ( 0x40, IP_ACTIVE_LOW, IPT_SERVICE2 ) /* SW2 on CPU PCB */ |
| r1238 | r1239 | |
| 438 | 438 | PORT_BIT ( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 439 | 439 | INPUT_PORTS_END |
| 440 | 440 | |
| 441 | INPUT_PORTS_START( cliffhga ) | |
| 441 | static INPUT_PORTS_START( cliffhga ) | |
| 442 | 442 | PORT_START_TAG("BANK0") |
| 443 | 443 | PORT_BIT ( 0x3F, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 444 | 444 | PORT_BIT ( 0x40, IP_ACTIVE_LOW, IPT_SERVICE2 ) /* SW2 on CPU PCB */ |
| r1238 | r1239 | |
| 574 | 574 | PORT_BIT ( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 575 | 575 | INPUT_PORTS_END |
| 576 | 576 | |
| 577 | INPUT_PORTS_START( goaltogo ) | |
| 577 | static INPUT_PORTS_START( goaltogo ) | |
| 578 | 578 | PORT_START_TAG("BANK0") |
| 579 | 579 | PORT_BIT ( 0x3F, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 580 | 580 | PORT_BIT ( 0x40, IP_ACTIVE_LOW, IPT_SERVICE2 ) /* SW2 on CPU PCB */ |
| r1238 | r1239 | |
|---|---|---|
| 136 | 136 | * |
| 137 | 137 | *************************************/ |
| 138 | 138 | |
| 139 | INPUT_PORTS_START( copsnrob ) | |
| 139 | static INPUT_PORTS_START( copsnrob ) | |
| 140 | 140 | PORT_START /* IN0 */ |
| 141 | 141 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_VBLANK ) |
| 142 | 142 |
| r1238 | r1239 | |
|---|---|---|
| 489 | 489 | * |
| 490 | 490 | *************************************/ |
| 491 | 491 | |
| 492 | INPUT_PORTS_START( artmagic ) | |
| 492 | static INPUT_PORTS_START( artmagic ) | |
| 493 | 493 | PORT_START_TAG("300000") |
| 494 | 494 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 495 | 495 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 580 | 580 | INPUT_PORTS_END |
| 581 | 581 | |
| 582 | 582 | |
| 583 | INPUT_PORTS_START( cheesech ) | |
| 583 | static INPUT_PORTS_START( cheesech ) | |
| 584 | 584 | PORT_INCLUDE(artmagic) |
| 585 | 585 | |
| 586 | 586 | PORT_MODIFY("300004") |
| r1238 | r1239 | |
| 605 | 605 | INPUT_PORTS_END |
| 606 | 606 | |
| 607 | 607 | |
| 608 | INPUT_PORTS_START( ultennis ) | |
| 608 | static INPUT_PORTS_START( ultennis ) | |
| 609 | 609 | PORT_INCLUDE(artmagic) |
| 610 | 610 | |
| 611 | 611 | PORT_MODIFY("300004") |
| r1238 | r1239 | |
| 634 | 634 | INPUT_PORTS_END |
| 635 | 635 | |
| 636 | 636 | |
| 637 | INPUT_PORTS_START( stonebal ) | |
| 637 | static INPUT_PORTS_START( stonebal ) | |
| 638 | 638 | PORT_INCLUDE(artmagic) |
| 639 | 639 | |
| 640 | 640 | PORT_MODIFY("300004") |
| r1238 | r1239 | |
|---|---|---|
| 484 | 484 | |
| 485 | 485 | |
| 486 | 486 | /***************************************************************************/ |
| 487 | INPUT_PORTS_START( cntsteer ) | |
| 487 | static INPUT_PORTS_START( cntsteer ) | |
| 488 | 488 | PORT_START |
| 489 | 489 | PORT_DIPNAME( 0x01, 0x01, "0" ) |
| 490 | 490 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 563 | 563 | INPUT_PORTS_END |
| 564 | 564 | |
| 565 | 565 | |
| 566 | INPUT_PORTS_START( zerotrgt ) | |
| 566 | static INPUT_PORTS_START( zerotrgt ) | |
| 567 | 567 | PORT_START |
| 568 | 568 | PORT_DIPNAME( 0x01, 0x01, "0" ) |
| 569 | 569 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 384 | 384 | |
| 385 | 385 | |
| 386 | 386 | |
| 387 | INPUT_PORTS_START( twincobr ) | |
| 387 | static INPUT_PORTS_START( twincobr ) | |
| 388 | 388 | TWINCOBR_VBLANK_INPUT( IP_ACTIVE_HIGH ) |
| 389 | 389 | TOAPLAN_PLAYER_INPUT( 1 ) |
| 390 | 390 | TOAPLAN_PLAYER_INPUT( 2 ) |
| r1238 | r1239 | |
| 417 | 417 | TWINCOBR_SYSTEM_INPUTS |
| 418 | 418 | INPUT_PORTS_END |
| 419 | 419 | |
| 420 | INPUT_PORTS_START( twincobu ) | |
| 420 | static INPUT_PORTS_START( twincobu ) | |
| 421 | 421 | TWINCOBR_VBLANK_INPUT( IP_ACTIVE_HIGH ) |
| 422 | 422 | TOAPLAN_PLAYER_INPUT( 1 ) |
| 423 | 423 | TOAPLAN_PLAYER_INPUT( 2 ) |
| r1238 | r1239 | |
| 450 | 450 | TWINCOBR_SYSTEM_INPUTS |
| 451 | 451 | INPUT_PORTS_END |
| 452 | 452 | |
| 453 | INPUT_PORTS_START( ktiger ) | |
| 453 | static INPUT_PORTS_START( ktiger ) | |
| 454 | 454 | TWINCOBR_VBLANK_INPUT( IP_ACTIVE_HIGH ) |
| 455 | 455 | TOAPLAN_PLAYER_INPUT( 1 ) |
| 456 | 456 | TOAPLAN_PLAYER_INPUT( 2 ) |
| r1238 | r1239 | |
| 482 | 482 | TWINCOBR_SYSTEM_INPUTS |
| 483 | 483 | INPUT_PORTS_END |
| 484 | 484 | |
| 485 | INPUT_PORTS_START( fshark ) | |
| 485 | static INPUT_PORTS_START( fshark ) | |
| 486 | 486 | FSHARK_SYSTEM_INPUTS |
| 487 | 487 | TOAPLAN_PLAYER_INPUT( 1 ) |
| 488 | 488 | TOAPLAN_PLAYER_INPUT( 2 ) |
| r1238 | r1239 | |
| 514 | 514 | FSHARK_DSW_B |
| 515 | 515 | INPUT_PORTS_END |
| 516 | 516 | |
| 517 | INPUT_PORTS_START( skyshark ) | |
| 517 | static INPUT_PORTS_START( skyshark ) | |
| 518 | 518 | FSHARK_SYSTEM_INPUTS |
| 519 | 519 | TOAPLAN_PLAYER_INPUT( 1 ) |
| 520 | 520 | TOAPLAN_PLAYER_INPUT( 2 ) |
| r1238 | r1239 | |
| 546 | 546 | FSHARK_DSW_B |
| 547 | 547 | INPUT_PORTS_END |
| 548 | 548 | |
| 549 | INPUT_PORTS_START( hishouza ) | |
| 549 | static INPUT_PORTS_START( hishouza ) | |
| 550 | 550 | FSHARK_SYSTEM_INPUTS |
| 551 | 551 | TOAPLAN_PLAYER_INPUT( 1 ) |
| 552 | 552 | TOAPLAN_PLAYER_INPUT( 2 ) |
| r1238 | r1239 | |
| 554 | 554 | FSHARK_DSW_B |
| 555 | 555 | INPUT_PORTS_END |
| 556 | 556 | |
| 557 | INPUT_PORTS_START( gulfwar2 ) | |
| 557 | static INPUT_PORTS_START( gulfwar2 ) | |
| 558 | 558 | TWINCOBR_VBLANK_INPUT( IP_ACTIVE_LOW ) |
| 559 | 559 | TOAPLAN_PLAYER_INPUT( 1 ) |
| 560 | 560 | TOAPLAN_PLAYER_INPUT( 2 ) |
| r1238 | r1239 | |
|---|---|---|
| 143 | 143 | |
| 144 | 144 | |
| 145 | 145 | |
| 146 | INPUT_PORTS_START( hexion ) | |
| 146 | static INPUT_PORTS_START( hexion ) | |
| 147 | 147 | PORT_START |
| 148 | 148 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 149 | 149 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 100 | 100 | |
| 101 | 101 | ***************************************************************************/ |
| 102 | 102 | |
| 103 | INPUT_PORTS_START( battlnts ) | |
| 103 | static INPUT_PORTS_START( battlnts ) | |
| 104 | 104 | PORT_START /* DSW #1 */ |
| 105 | 105 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 106 | 106 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
| 197 | 197 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 198 | 198 | INPUT_PORTS_END |
| 199 | 199 | |
| 200 | INPUT_PORTS_START( thehustj ) | |
| 200 | static INPUT_PORTS_START( thehustj ) | |
| 201 | 201 | PORT_START /* DSW #1 */ |
| 202 | 202 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 203 | 203 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 393 | 393 | GFXDECODE_ENTRY( REGION_GFX2, 0, spritelayout, 0x200, 32 ) /* Sprites (16x16) */ |
| 394 | 394 | GFXDECODE_END |
| 395 | 395 | |
| 396 | INPUT_PORTS_START( dblewing ) | |
| 396 | static INPUT_PORTS_START( dblewing ) | |
| 397 | 397 | PORT_START /* 16bit */ |
| 398 | 398 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 399 | 399 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 325 | 325 | |
| 326 | 326 | ***************************************************************************/ |
| 327 | 327 | |
| 328 | INPUT_PORTS_START( galpani2 ) | |
| 328 | static INPUT_PORTS_START( galpani2 ) | |
| 329 | 329 | PORT_START_TAG("IN0") // IN0 - DSW + Player - 780000.w |
| 330 | 330 | PORT_DIPNAME( 0x0007, 0x0007, "Unknown 2-0&1&2*" ) |
| 331 | 331 | PORT_DIPSETTING( 0x007, "7" ) |
| r1238 | r1239 | |
|---|---|---|
| 241 | 241 | * |
| 242 | 242 | *************************************/ |
| 243 | 243 | |
| 244 | INPUT_PORTS_START( arabian ) | |
| 244 | static INPUT_PORTS_START( arabian ) | |
| 245 | 245 | PORT_START_TAG("IN0") |
| 246 | 246 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 247 | 247 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 94 | 94 | |
| 95 | 95 | ***************************************************************************/ |
| 96 | 96 | |
| 97 | INPUT_PORTS_START( labyrunr ) | |
| 97 | static INPUT_PORTS_START( labyrunr ) | |
| 98 | 98 | PORT_START /* DSW #1 */ |
| 99 | 99 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 100 | 100 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 329 | 329 | AM_RANGE(0x0000, 0x03ff) AM_RAM AM_SHARE(1) |
| 330 | 330 | ADDRESS_MAP_END |
| 331 | 331 | |
| 332 | INPUT_PORTS_START( shougi ) | |
| 332 | static INPUT_PORTS_START( shougi ) | |
| 333 | 333 | PORT_START /* Player 1 controls */ |
| 334 | 334 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START2 )//+- |
| 335 | 335 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 )//+- |
| r1238 | r1239 | |
|---|---|---|
| 741 | 741 | |
| 742 | 742 | /*****************************************************************************/ |
| 743 | 743 | |
| 744 | INPUT_PORTS_START( hornet ) | |
| 744 | static INPUT_PORTS_START( hornet ) | |
| 745 | 745 | PORT_START |
| 746 | 746 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) |
| 747 | 747 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 797 | 797 | |
| 798 | 798 | INPUT_PORTS_END |
| 799 | 799 | |
| 800 | INPUT_PORTS_START( sscope ) | |
| 800 | static INPUT_PORTS_START( sscope ) | |
| 801 | 801 | PORT_START |
| 802 | 802 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) |
| 803 | 803 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 225 | 225 | |
| 226 | 226 | /**********************************************************/ |
| 227 | 227 | |
| 228 | INPUT_PORTS_START( sharkatt ) | |
| 228 | static INPUT_PORTS_START( sharkatt ) | |
| 229 | 229 | PORT_START /* IN0 */ |
| 230 | 230 | PORT_DIPNAME( 0x7f, 0x7f, DEF_STR( Coinage ) ) |
| 231 | 231 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 278 | 278 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL |
| 279 | 279 | INPUT_PORTS_END |
| 280 | 280 | |
| 281 | INPUT_PORTS_START( thief ) | |
| 281 | static INPUT_PORTS_START( thief ) | |
| 282 | 282 | PORT_START |
| 283 | 283 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) |
| 284 | 284 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 347 | 347 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 348 | 348 | INPUT_PORTS_END |
| 349 | 349 | |
| 350 | INPUT_PORTS_START( natodef ) | |
| 350 | static INPUT_PORTS_START( natodef ) | |
| 351 | 351 | PORT_START |
| 352 | 352 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) |
| 353 | 353 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 293 | 293 | * |
| 294 | 294 | *************************************/ |
| 295 | 295 | |
| 296 | INPUT_PORTS_START( pipedrm ) | |
| 296 | static INPUT_PORTS_START( pipedrm ) | |
| 297 | 297 | PORT_START /* $20 */ |
| 298 | 298 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 299 | 299 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 384 | 384 | INPUT_PORTS_END |
| 385 | 385 | |
| 386 | 386 | |
| 387 | INPUT_PORTS_START( hatris ) | |
| 387 | static INPUT_PORTS_START( hatris ) | |
| 388 | 388 | PORT_START /* $20 */ |
| 389 | 389 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 390 | 390 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 372 | 372 | * |
| 373 | 373 | *************************************/ |
| 374 | 374 | |
| 375 | INPUT_PORTS_START( ccastles ) | |
| 375 | static INPUT_PORTS_START( ccastles ) | |
| 376 | 376 | PORT_START /* IN0 */ |
| 377 | 377 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 378 | 378 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
|---|---|---|
| 200 | 200 | |
| 201 | 201 | /* Input Ports */ |
| 202 | 202 | |
| 203 | INPUT_PORTS_START( ddragon3 ) | |
| 203 | static INPUT_PORTS_START( ddragon3 ) | |
| 204 | 204 | PORT_START |
| 205 | 205 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 206 | 206 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 279 | 279 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 280 | 280 | INPUT_PORTS_END |
| 281 | 281 | |
| 282 | INPUT_PORTS_START( ddrago3b ) | |
| 282 | static INPUT_PORTS_START( ddrago3b ) | |
| 283 | 283 | PORT_START |
| 284 | 284 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 285 | 285 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 360 | 360 | PORT_BIT( 0xfc00, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 361 | 361 | INPUT_PORTS_END |
| 362 | 362 | |
| 363 | INPUT_PORTS_START( ctribe ) | |
| 363 | static INPUT_PORTS_START( ctribe ) | |
| 364 | 364 | PORT_START |
| 365 | 365 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 366 | 366 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 312 | 312 | ADDRESS_MAP_END |
| 313 | 313 | |
| 314 | 314 | |
| 315 | INPUT_PORTS_START( sprint2 ) | |
| 315 | static INPUT_PORTS_START( sprint2 ) | |
| 316 | 316 | PORT_START |
| 317 | 317 | PORT_DIPNAME( 0x01, 0x00, "Tracks on Demo" ) |
| 318 | 318 | PORT_DIPSETTING( 0x00, "Easy Track Only" ) |
| r1238 | r1239 | |
| 384 | 384 | INPUT_PORTS_END |
| 385 | 385 | |
| 386 | 386 | |
| 387 | INPUT_PORTS_START( sprint1 ) | |
| 387 | static INPUT_PORTS_START( sprint1 ) | |
| 388 | 388 | PORT_START |
| 389 | 389 | PORT_DIPNAME( 0x01, 0x00, "Change Track" ) |
| 390 | 390 | PORT_DIPSETTING( 0x01, "Every Lap" ) |
| r1238 | r1239 | |
| 441 | 441 | INPUT_PORTS_END |
| 442 | 442 | |
| 443 | 443 | |
| 444 | INPUT_PORTS_START( dominos ) | |
| 444 | static INPUT_PORTS_START( dominos ) | |
| 445 | 445 | PORT_START |
| 446 | 446 | PORT_DIPNAME( 0x03, 0x01, "Points to Win" ) |
| 447 | 447 | PORT_DIPSETTING( 0x03, "6" ) |
| r1238 | r1239 | |
|---|---|---|
| 371 | 371 | * |
| 372 | 372 | *************************************/ |
| 373 | 373 | |
| 374 | INPUT_PORTS_START( exterm ) | |
| 374 | static INPUT_PORTS_START( exterm ) | |
| 375 | 375 | PORT_START /* IN0 */ |
| 376 | 376 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 377 | 377 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
|---|---|---|
| 189 | 189 | ADDRESS_MAP_END |
| 190 | 190 | |
| 191 | 191 | |
| 192 | INPUT_PORTS_START( dragrace ) | |
| 192 | static INPUT_PORTS_START( dragrace ) | |
| 193 | 193 | PORT_START /* IN0 */ |
| 194 | 194 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Player 1 Gas") PORT_PLAYER(1) |
| 195 | 195 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) /* player 1 gear 1 */ |
| r1238 | r1239 | |
|---|---|---|
| 364 | 364 | |
| 365 | 365 | |
| 366 | 366 | |
| 367 | INPUT_PORTS_START( discoboy ) | |
| 367 | static INPUT_PORTS_START( discoboy ) | |
| 368 | 368 | PORT_START /* DSWA */ |
| 369 | 369 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SWA:6,7,8") |
| 370 | 370 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 781 | 781 | GFXDECODE_ENTRY( REGION_GFX1, 0x1800, CGA_charlayout, 0, 256 ) /* Font 3*/ |
| 782 | 782 | GFXDECODE_END |
| 783 | 783 | |
| 784 | INPUT_PORTS_START(mediagx) | |
| 784 | static INPUT_PORTS_START(mediagx) | |
| 785 | 785 | PORT_START |
| 786 | 786 | PORT_BIT( 0x001, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) |
| 787 | 787 | PORT_BIT( 0x002, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| r1238 | r1239 | |
|---|---|---|
| 91 | 91 | ADDRESS_MAP_END |
| 92 | 92 | |
| 93 | 93 | |
| 94 | INPUT_PORTS_START( ambush ) | |
| 94 | static INPUT_PORTS_START( ambush ) | |
| 95 | 95 | PORT_START_TAG("IN0") |
| 96 | 96 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 97 | 97 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
|---|---|---|
| 102 | 102 | ADDRESS_MAP_END |
| 103 | 103 | |
| 104 | 104 | |
| 105 | INPUT_PORTS_START( orbit ) | |
| 105 | static INPUT_PORTS_START( orbit ) | |
| 106 | 106 | PORT_START /* 0800 */ |
| 107 | 107 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 108 | 108 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 345 | 345 | * |
| 346 | 346 | *************************************/ |
| 347 | 347 | |
| 348 | INPUT_PORTS_START( policetr ) | |
| 348 | static INPUT_PORTS_START( policetr ) | |
| 349 | 349 | PORT_START |
| 350 | 350 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 351 | 351 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 423 | 423 | INPUT_PORTS_END |
| 424 | 424 | |
| 425 | 425 | |
| 426 | INPUT_PORTS_START( polict10 ) | |
| 426 | static INPUT_PORTS_START( polict10 ) | |
| 427 | 427 | PORT_INCLUDE( policetr ) |
| 428 | 428 | |
| 429 | 429 | PORT_MODIFY("GUNX1") /* fake analog X */ |
| r1238 | r1239 | |
| 440 | 440 | INPUT_PORTS_END |
| 441 | 441 | |
| 442 | 442 | |
| 443 | INPUT_PORTS_START( sshoot11 ) | |
| 443 | static INPUT_PORTS_START( sshoot11 ) | |
| 444 | 444 | PORT_INCLUDE( policetr ) |
| 445 | 445 | |
| 446 | 446 | PORT_MODIFY("GUNX1") /* fake analog X */ |
| r1238 | r1239 | |
|---|---|---|
| 1146 | 1146 | |
| 1147 | 1147 | /********************************************************************/ |
| 1148 | 1148 | |
| 1149 | INPUT_PORTS_START( spi_2button ) | |
| 1149 | static INPUT_PORTS_START( spi_2button ) | |
| 1150 | 1150 | PORT_START_TAG("IN0") |
| 1151 | 1151 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1152 | 1152 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1186 | 1186 | PORT_BIT( 0xfc, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1187 | 1187 | INPUT_PORTS_END |
| 1188 | 1188 | |
| 1189 | INPUT_PORTS_START( spi_3button ) | |
| 1189 | static INPUT_PORTS_START( spi_3button ) | |
| 1190 | 1190 | PORT_START_TAG("IN0") |
| 1191 | 1191 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1192 | 1192 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1226 | 1226 | PORT_BIT( 0xfc, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1227 | 1227 | INPUT_PORTS_END |
| 1228 | 1228 | |
| 1229 | INPUT_PORTS_START( seibu386_2button ) | |
| 1229 | static INPUT_PORTS_START( seibu386_2button ) | |
| 1230 | 1230 | PORT_START_TAG("IN0") |
| 1231 | 1231 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1232 | 1232 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1287 | 1287 | Start - 000111 port 0 |
| 1288 | 1288 | */ |
| 1289 | 1289 | |
| 1290 | INPUT_PORTS_START( spi_ejanhs ) | |
| 1290 | static INPUT_PORTS_START( spi_ejanhs ) | |
| 1291 | 1291 | PORT_START_TAG("IN0") |
| 1292 | 1292 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("P1 A") PORT_CODE(KEYCODE_A) |
| 1293 | 1293 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("P1 B") PORT_CODE(KEYCODE_B) |
| r1238 | r1239 | |
|---|---|---|
| 399 | 399 | } |
| 400 | 400 | |
| 401 | 401 | |
| 402 | WRITE16_HANDLER( dsp_dac_w ) | |
| 402 | static WRITE16_HANDLER( dsp_dac_w ) | |
| 403 | 403 | { |
| 404 | 404 | DAC_signed_data_16_w(0, (INT16)(data << 4) + 0x8000); |
| 405 | 405 | } |
| r1238 | r1239 | |
| 555 | 555 | * |
| 556 | 556 | *************************************/ |
| 557 | 557 | |
| 558 | INPUT_PORTS_START( amerdart ) | |
| 558 | static INPUT_PORTS_START( amerdart ) | |
| 559 | 559 | PORT_START_TAG("IN1") |
| 560 | 560 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 561 | 561 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| r1238 | r1239 | |
| 581 | 581 | INPUT_PORTS_END |
| 582 | 582 | |
| 583 | 583 | |
| 584 | INPUT_PORTS_START( 9ballsht ) | |
| 584 | static INPUT_PORTS_START( 9ballsht ) | |
| 585 | 585 | PORT_START_TAG("IN0") |
| 586 | 586 | PORT_BIT( 0x00ff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 587 | 587 | PORT_BIT( 0x0300, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 612 | 612 | INPUT_PORTS_END |
| 613 | 613 | |
| 614 | 614 | |
| 615 | INPUT_PORTS_START( coolpool ) | |
| 615 | static INPUT_PORTS_START( coolpool ) | |
| 616 | 616 | PORT_START_TAG("IN0") |
| 617 | 617 | PORT_BIT( 0x00ff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 618 | 618 | PORT_BIT( 0x0f00, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 151 | 151 | AM_RANGE(0x190000, 0x190001) AM_READWRITE(OKIM6295_status_1_lsb_r, OKIM6295_data_1_lsb_w) |
| 152 | 152 | ADDRESS_MAP_END |
| 153 | 153 | |
| 154 | INPUT_PORTS_START( mwarr ) | |
| 154 | static INPUT_PORTS_START( mwarr ) | |
| 155 | 155 | PORT_START |
| 156 | 156 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 157 | 157 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 208 | 208 | AM_RANGE(0xf83f, 0xf83f) AM_WRITE(MWA8_NOP) |
| 209 | 209 | ADDRESS_MAP_END |
| 210 | 210 | |
| 211 | INPUT_PORTS_START( tecfri ) | |
| 211 | static INPUT_PORTS_START( tecfri ) | |
| 212 | 212 | PORT_START /* IN0 */ |
| 213 | 213 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 214 | 214 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) |
| r1238 | r1239 | |
|---|---|---|
| 379 | 379 | |
| 380 | 380 | |
| 381 | 381 | |
| 382 | INPUT_PORTS_START( gaplus ) | |
| 382 | static INPUT_PORTS_START( gaplus ) | |
| 383 | 383 | /* The inputs are not memory mapped, they are handled by three I/O chips. */ |
| 384 | 384 | PORT_START /* 56XX #0 pins 22-29 */ |
| 385 | 385 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| r1238 | r1239 | |
| 460 | 460 | INPUT_PORTS_END |
| 461 | 461 | |
| 462 | 462 | /* identical to gaplus, but service mode is a dip switch instead of coming from edge connector */ |
| 463 | INPUT_PORTS_START( gapluso ) | |
| 463 | static INPUT_PORTS_START( gapluso ) | |
| 464 | 464 | /* The inputs are not memory mapped, they are handled by three I/O chips. */ |
| 465 | 465 | PORT_START /* 56XX #0 pins 22-29 */ |
| 466 | 466 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| r1238 | r1239 | |
| 539 | 539 | INPUT_PORTS_END |
| 540 | 540 | |
| 541 | 541 | /* identical to gaplus, but different bonus life settings */ |
| 542 | INPUT_PORTS_START( galaga3a ) | |
| 542 | static INPUT_PORTS_START( galaga3a ) | |
| 543 | 543 | /* The inputs are not memory mapped, they are handled by three I/O chips. */ |
| 544 | 544 | PORT_START /* 56XX #0 pins 22-29 */ |
| 545 | 545 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| r1238 | r1239 | |
| 620 | 620 | INPUT_PORTS_END |
| 621 | 621 | |
| 622 | 622 | /* identical to gaplus, but different bonus life settings */ |
| 623 | INPUT_PORTS_START( galaga3m ) | |
| 623 | static INPUT_PORTS_START( galaga3m ) | |
| 624 | 624 | /* The inputs are not memory mapped, they are handled by three I/O chips. */ |
| 625 | 625 | PORT_START /* 56XX #0 pins 22-29 */ |
| 626 | 626 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 67 | 67 | * |
| 68 | 68 | *************************************/ |
| 69 | 69 | |
| 70 | INPUT_PORTS_START( mk ) | |
| 70 | static INPUT_PORTS_START( mk ) | |
| 71 | 71 | PORT_START |
| 72 | 72 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 73 | 73 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 165 | 165 | INPUT_PORTS_END |
| 166 | 166 | |
| 167 | 167 | |
| 168 | INPUT_PORTS_START( mk2 ) | |
| 168 | static INPUT_PORTS_START( mk2 ) | |
| 169 | 169 | PORT_START |
| 170 | 170 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 171 | 171 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 272 | 272 | INPUT_PORTS_END |
| 273 | 273 | |
| 274 | 274 | |
| 275 | INPUT_PORTS_START( jdreddp ) | |
| 275 | static INPUT_PORTS_START( jdreddp ) | |
| 276 | 276 | PORT_START |
| 277 | 277 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 278 | 278 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 368 | 368 | INPUT_PORTS_END |
| 369 | 369 | |
| 370 | 370 | |
| 371 | INPUT_PORTS_START( nbajam ) | |
| 371 | static INPUT_PORTS_START( nbajam ) | |
| 372 | 372 | PORT_START |
| 373 | 373 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 374 | 374 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 471 | 471 | INPUT_PORTS_END |
| 472 | 472 | |
| 473 | 473 | |
| 474 | INPUT_PORTS_START( nbajamte ) | |
| 474 | static INPUT_PORTS_START( nbajamte ) | |
| 475 | 475 | PORT_START |
| 476 | 476 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 477 | 477 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 67 | 67 | * |
| 68 | 68 | *************************************/ |
| 69 | 69 | |
| 70 | INPUT_PORTS_START( carpolo ) | |
| 70 | static INPUT_PORTS_START( carpolo ) | |
| 71 | 71 | PORT_START /* IN0 */ |
| 72 | 72 | PORT_BIT (0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 73 | 73 | PORT_BIT (0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 109 | 109 | |
| 110 | 110 | /****************************************************************************/ |
| 111 | 111 | |
| 112 | INPUT_PORTS_START( drmicro ) | |
| 112 | static INPUT_PORTS_START( drmicro ) | |
| 113 | 113 | PORT_START // 1P (0) |
| 114 | 114 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 115 | 115 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| r1238 | r1239 | |
|---|---|---|
| 185 | 185 | AM_RANGE(0x41, 0x41) AM_WRITE(AY8910_write_port_0_w) |
| 186 | 186 | ADDRESS_MAP_END |
| 187 | 187 | |
| 188 | INPUT_PORTS_START( speedatk ) | |
| 188 | static INPUT_PORTS_START( speedatk ) | |
| 189 | 189 | PORT_START |
| 190 | 190 | PORT_SERVICE( 0x01, IP_ACTIVE_HIGH ) |
| 191 | 191 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Flip_Screen ) ) |
| r1238 | r1239 | |
|---|---|---|
| 121 | 121 | |
| 122 | 122 | /* Input Ports */ |
| 123 | 123 | |
| 124 | INPUT_PORTS_START( vroulet ) | |
| 124 | static INPUT_PORTS_START( vroulet ) | |
| 125 | 125 | PORT_START_TAG("IN0") |
| 126 | 126 | PORT_SERVICE( 0x01, IP_ACTIVE_LOW ) |
| 127 | 127 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_TILT ) |
| r1238 | r1239 | |
|---|---|---|
| 134 | 134 | } |
| 135 | 135 | |
| 136 | 136 | |
| 137 | INPUT_PORTS_START(twins) | |
| 137 | static INPUT_PORTS_START(twins) | |
| 138 | 138 | PORT_START /* 8bit */ |
| 139 | 139 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 140 | 140 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
|---|---|---|
| 457 | 457 | PORT_DIPSETTING( 0x80, "Port $0D" ) \ |
| 458 | 458 | PORT_DIPSETTING( 0x00, "Port $10" ) |
| 459 | 459 | |
| 460 | INPUT_PORTS_START( starjack ) | |
| 460 | static INPUT_PORTS_START( starjack ) | |
| 461 | 461 | PORT_START /* IN1 */ |
| 462 | 462 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 463 | 463 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 509 | 509 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 510 | 510 | INPUT_PORTS_END |
| 511 | 511 | |
| 512 | INPUT_PORTS_START( starjacs ) | |
| 512 | static INPUT_PORTS_START( starjacs ) | |
| 513 | 513 | PORT_START /* IN1 */ |
| 514 | 514 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 515 | 515 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 560 | 560 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 561 | 561 | INPUT_PORTS_END |
| 562 | 562 | |
| 563 | INPUT_PORTS_START( regulus ) | |
| 563 | static INPUT_PORTS_START( regulus ) | |
| 564 | 564 | PORT_START /* IN1 */ |
| 565 | 565 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 566 | 566 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 614 | 614 | INPUT_PORTS_END |
| 615 | 615 | |
| 616 | 616 | /* Same as 'regulus', but no DEF_STR( Allow_Continue ) Dip Switch */ |
| 617 | INPUT_PORTS_START( reguluso ) | |
| 617 | static INPUT_PORTS_START( reguluso ) | |
| 618 | 618 | PORT_START /* IN1 */ |
| 619 | 619 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 620 | 620 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 667 | 667 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 668 | 668 | INPUT_PORTS_END |
| 669 | 669 | |
| 670 | INPUT_PORTS_START( upndown ) | |
| 670 | static INPUT_PORTS_START( upndown ) | |
| 671 | 671 | PORT_START /* IN1 */ |
| 672 | 672 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 673 | 673 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 719 | 719 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 720 | 720 | INPUT_PORTS_END |
| 721 | 721 | |
| 722 | INPUT_PORTS_START( mrviking ) | |
| 722 | static INPUT_PORTS_START( mrviking ) | |
| 723 | 723 | PORT_START /* IN1 */ |
| 724 | 724 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 725 | 725 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 771 | 771 | |
| 772 | 772 | /* Same as 'mrviking', but no "Maximum Credits" Dip Switch and "Difficulty" Dip Switch is |
| 773 | 773 | handled by bit 7 instead of bit 6 (so bit 6 is unused) */ |
| 774 | INPUT_PORTS_START( mrvikngj ) | |
| 774 | static INPUT_PORTS_START( mrvikngj ) | |
| 775 | 775 | PORT_START /* IN1 */ |
| 776 | 776 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 777 | 777 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 823 | 823 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) |
| 824 | 824 | INPUT_PORTS_END |
| 825 | 825 | |
| 826 | INPUT_PORTS_START( swat ) | |
| 826 | static INPUT_PORTS_START( swat ) | |
| 827 | 827 | PORT_START /* IN1 */ |
| 828 | 828 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 829 | 829 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 876 | 876 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 877 | 877 | INPUT_PORTS_END |
| 878 | 878 | |
| 879 | INPUT_PORTS_START( flicky ) | |
| 879 | static INPUT_PORTS_START( flicky ) | |
| 880 | 880 | PORT_START /* IN1 */ |
| 881 | 881 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 882 | 882 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 926 | 926 | DSW0_BIT7 |
| 927 | 927 | INPUT_PORTS_END |
| 928 | 928 | |
| 929 | INPUT_PORTS_START( wmatch ) | |
| 929 | static INPUT_PORTS_START( wmatch ) | |
| 930 | 930 | PORT_START /* IN1 */ |
| 931 | 931 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_8WAY |
| 932 | 932 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_8WAY |
| r1238 | r1239 | |
| 984 | 984 | DSW0_BIT7 |
| 985 | 985 | INPUT_PORTS_END |
| 986 | 986 | |
| 987 | INPUT_PORTS_START( bullfgt ) | |
| 987 | static INPUT_PORTS_START( bullfgt ) | |
| 988 | 988 | PORT_START /* IN1 */ |
| 989 | 989 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 990 | 990 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 1034 | 1034 | DSW0_BIT7 |
| 1035 | 1035 | INPUT_PORTS_END |
| 1036 | 1036 | |
| 1037 | INPUT_PORTS_START( spatter ) | |
| 1037 | static INPUT_PORTS_START( spatter ) | |
| 1038 | 1038 | PORT_START /* IN1 */ |
| 1039 | 1039 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1040 | 1040 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 1084 | 1084 | DSW0_BIT7 |
| 1085 | 1085 | INPUT_PORTS_END |
| 1086 | 1086 | |
| 1087 | INPUT_PORTS_START( pitfall2 ) | |
| 1087 | static INPUT_PORTS_START( pitfall2 ) | |
| 1088 | 1088 | PORT_START /* IN1 */ |
| 1089 | 1089 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1090 | 1090 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 1137 | 1137 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1138 | 1138 | INPUT_PORTS_END |
| 1139 | 1139 | |
| 1140 | INPUT_PORTS_START( pitfallu ) | |
| 1140 | static INPUT_PORTS_START( pitfallu ) | |
| 1141 | 1141 | PORT_START /* IN1 */ |
| 1142 | 1142 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1143 | 1143 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 1189 | 1189 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1190 | 1190 | INPUT_PORTS_END |
| 1191 | 1191 | |
| 1192 | INPUT_PORTS_START( seganinj ) | |
| 1192 | static INPUT_PORTS_START( seganinj ) | |
| 1193 | 1193 | PORT_START /* IN1 */ |
| 1194 | 1194 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) |
| 1195 | 1195 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 1240 | 1240 | DSW0_BIT7 |
| 1241 | 1241 | INPUT_PORTS_END |
| 1242 | 1242 | |
| 1243 | INPUT_PORTS_START( imsorry ) | |
| 1243 | static INPUT_PORTS_START( imsorry ) | |
| 1244 | 1244 | PORT_START /* IN1 */ |
| 1245 | 1245 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1246 | 1246 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 1290 | 1290 | DSW0_BIT7 |
| 1291 | 1291 | INPUT_PORTS_END |
| 1292 | 1292 | |
| 1293 | INPUT_PORTS_START( teddybb ) | |
| 1293 | static INPUT_PORTS_START( teddybb ) | |
| 1294 | 1294 | PORT_START /* IN1 */ |
| 1295 | 1295 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1296 | 1296 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 1340 | 1340 | DSW0_BIT7 |
| 1341 | 1341 | INPUT_PORTS_END |
| 1342 | 1342 | |
| 1343 | INPUT_PORTS_START( hvymetal ) | |
| 1343 | static INPUT_PORTS_START( hvymetal ) | |
| 1344 | 1344 | PORT_START /* IN1 */ |
| 1345 | 1345 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1346 | 1346 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 1392 | 1392 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 1393 | 1393 | INPUT_PORTS_END |
| 1394 | 1394 | |
| 1395 | INPUT_PORTS_START( myhero ) | |
| 1395 | static INPUT_PORTS_START( myhero ) | |
| 1396 | 1396 | PORT_START /* IN1 */ |
| 1397 | 1397 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1398 | 1398 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 1442 | 1442 | DSW0_BIT7 |
| 1443 | 1443 | INPUT_PORTS_END |
| 1444 | 1444 | |
| 1445 | INPUT_PORTS_START( shtngmst ) | |
| 1445 | static INPUT_PORTS_START( shtngmst ) | |
| 1446 | 1446 | PORT_START /* IN1 */ |
| 1447 | 1447 | /* |
| 1448 | 1448 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 1543 | 1543 | INPUT_PORTS_END |
| 1544 | 1544 | |
| 1545 | 1545 | |
| 1546 | INPUT_PORTS_START( chplft ) | |
| 1546 | static INPUT_PORTS_START( chplft ) | |
| 1547 | 1547 | PORT_START /* IN1 */ |
| 1548 | 1548 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1549 | 1549 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 1596 | 1596 | DSW1_PORT |
| 1597 | 1597 | INPUT_PORTS_END |
| 1598 | 1598 | |
| 1599 | INPUT_PORTS_START( 4dwarrio ) | |
| 1599 | static INPUT_PORTS_START( 4dwarrio ) | |
| 1600 | 1600 | PORT_START /* IN1 */ |
| 1601 | 1601 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1602 | 1602 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 1647 | 1647 | DSW0_BIT7 |
| 1648 | 1648 | INPUT_PORTS_END |
| 1649 | 1649 | |
| 1650 | INPUT_PORTS_START( brain ) | |
| 1650 | static INPUT_PORTS_START( brain ) | |
| 1651 | 1651 | PORT_START /* IN1 */ |
| 1652 | 1652 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1653 | 1653 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 1700 | 1700 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1701 | 1701 | INPUT_PORTS_END |
| 1702 | 1702 | |
| 1703 | INPUT_PORTS_START( gardia ) | |
| 1703 | static INPUT_PORTS_START( gardia ) | |
| 1704 | 1704 | PORT_START /* IN1 */ |
| 1705 | 1705 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1706 | 1706 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 1752 | 1752 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1753 | 1753 | INPUT_PORTS_END |
| 1754 | 1754 | |
| 1755 | INPUT_PORTS_START( raflesia ) | |
| 1755 | static INPUT_PORTS_START( raflesia ) | |
| 1756 | 1756 | PORT_START /* IN1 */ |
| 1757 | 1757 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1758 | 1758 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 1802 | 1802 | DSW0_BIT7 |
| 1803 | 1803 | INPUT_PORTS_END |
| 1804 | 1804 | |
| 1805 | INPUT_PORTS_START( wboy ) | |
| 1805 | static INPUT_PORTS_START( wboy ) | |
| 1806 | 1806 | PORT_START /* IN1 */ |
| 1807 | 1807 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1808 | 1808 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 1855 | 1855 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1856 | 1856 | INPUT_PORTS_END |
| 1857 | 1857 | |
| 1858 | INPUT_PORTS_START( wboysys2 ) | |
| 1858 | static INPUT_PORTS_START( wboysys2 ) | |
| 1859 | 1859 | PORT_START /* IN1 */ |
| 1860 | 1860 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1861 | 1861 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 1909 | 1909 | INPUT_PORTS_END |
| 1910 | 1910 | |
| 1911 | 1911 | /* same as wboy, additional Energy Consumption switch */ |
| 1912 | INPUT_PORTS_START( wbdeluxe ) | |
| 1912 | static INPUT_PORTS_START( wbdeluxe ) | |
| 1913 | 1913 | PORT_START /* IN1 */ |
| 1914 | 1914 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* Has to be 0 otherwise the game resets */ |
| 1915 | 1915 | /* if you die after level 1. */ |
| r1238 | r1239 | |
| 1963 | 1963 | PORT_DIPSETTING( 0x80, "Fast" ) |
| 1964 | 1964 | INPUT_PORTS_END |
| 1965 | 1965 | |
| 1966 | INPUT_PORTS_START( wboyu ) | |
| 1966 | static INPUT_PORTS_START( wboyu ) | |
| 1967 | 1967 | PORT_START /* IN1 */ |
| 1968 | 1968 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1969 | 1969 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 2083 | 2083 | |
| 2084 | 2084 | */ |
| 2085 | 2085 | |
| 2086 | INPUT_PORTS_START( blockgal ) | |
| 2086 | static INPUT_PORTS_START( blockgal ) | |
| 2087 | 2087 | PORT_START /* IN1 */ |
| 2088 | 2088 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(60) PORT_KEYDELTA(15) PORT_REVERSE |
| 2089 | 2089 | |
| r1238 | r1239 | |
| 2128 | 2128 | DSW1_PORT |
| 2129 | 2129 | INPUT_PORTS_END |
| 2130 | 2130 | |
| 2131 | INPUT_PORTS_START( tokisens ) | |
| 2131 | static INPUT_PORTS_START( tokisens ) | |
| 2132 | 2132 | PORT_START /* IN1 */ |
| 2133 | 2133 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2134 | 2134 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 2181 | 2181 | DSW1_PORT |
| 2182 | 2182 | INPUT_PORTS_END |
| 2183 | 2183 | |
| 2184 | INPUT_PORTS_START( wbml ) | |
| 2184 | static INPUT_PORTS_START( wbml ) | |
| 2185 | 2185 | PORT_START /* IN1 */ |
| 2186 | 2186 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2187 | 2187 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 2234 | 2234 | DSW1_PORT |
| 2235 | 2235 | INPUT_PORTS_END |
| 2236 | 2236 | |
| 2237 | INPUT_PORTS_START( noboranb ) | |
| 2237 | static INPUT_PORTS_START( noboranb ) | |
| 2238 | 2238 | PORT_START /* IN1 */ |
| 2239 | 2239 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2240 | 2240 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) // shot |
| r1238 | r1239 | |
| 2319 | 2319 | To get Infinite Lives all DIP Switches in DSW0 must be ON |
| 2320 | 2320 | |
| 2321 | 2321 | */ |
| 2322 | INPUT_PORTS_START( ufosensi ) | |
| 2322 | static INPUT_PORTS_START( ufosensi ) | |
| 2323 | 2323 | PORT_START /* IN1 */ |
| 2324 | 2324 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) |
| 2325 | 2325 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
|---|---|---|
| 171 | 171 | GFXDECODE_ENTRY( REGION_GFX1, 0, tiles8x8_layout, 0, 16 ) |
| 172 | 172 | GFXDECODE_END |
| 173 | 173 | |
| 174 | INPUT_PORTS_START( tetriunk ) | |
| 174 | static INPUT_PORTS_START( tetriunk ) | |
| 175 | 175 | INPUT_PORTS_END |
| 176 | 176 | |
| 177 | 177 | static MACHINE_DRIVER_START( tetriunk ) |
| r1238 | r1239 | |
|---|---|---|
| 183 | 183 | ADDRESS_MAP_END |
| 184 | 184 | |
| 185 | 185 | |
| 186 | INPUT_PORTS_START( cultures ) | |
| 186 | static INPUT_PORTS_START( cultures ) | |
| 187 | 187 | PORT_START |
| 188 | 188 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:1,2,3") |
| 189 | 189 | PORT_DIPSETTING( 0x00, "10 Coins / 1 Credit" ) |
| r1238 | r1239 | |
|---|---|---|
| 156 | 156 | |
| 157 | 157 | ***************************************************************************/ |
| 158 | 158 | |
| 159 | INPUT_PORTS_START( powerins ) | |
| 159 | static INPUT_PORTS_START( powerins ) | |
| 160 | 160 | PORT_START // IN0 - $100000 - Coins |
| 161 | 161 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 162 | 162 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 248 | 248 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 249 | 249 | INPUT_PORTS_END |
| 250 | 250 | |
| 251 | INPUT_PORTS_START( powerinj ) | |
| 251 | static INPUT_PORTS_START( powerinj ) | |
| 252 | 252 | PORT_INCLUDE(powerins) |
| 253 | 253 | |
| 254 | 254 | PORT_MODIFY("DSW2") |
| r1238 | r1239 | |
|---|---|---|
| 146 | 146 | AM_RANGE(0x70, 0x70) AM_WRITE(port70_w) |
| 147 | 147 | ADDRESS_MAP_END |
| 148 | 148 | |
| 149 | INPUT_PORTS_START( quizo ) | |
| 149 | static INPUT_PORTS_START( quizo ) | |
| 150 | 150 | PORT_START_TAG("IN0") |
| 151 | 151 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 152 | 152 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 535 | 535 | ADDRESS_MAP_END |
| 536 | 536 | |
| 537 | 537 | |
| 538 | INPUT_PORTS_START( niyanpai ) | |
| 538 | static INPUT_PORTS_START( niyanpai ) | |
| 539 | 539 | PORT_START /* (0) DIPSW-A */ |
| 540 | 540 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 541 | 541 | PORT_DIPSETTING( 0x03, "1" ) |
| r1238 | r1239 | |
| 600 | 600 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 601 | 601 | INPUT_PORTS_END |
| 602 | 602 | |
| 603 | INPUT_PORTS_START( musobana ) | |
| 603 | static INPUT_PORTS_START( musobana ) | |
| 604 | 604 | |
| 605 | 605 | // I don't have manual for this game. |
| 606 | 606 | |
| r1238 | r1239 | |
| 675 | 675 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 676 | 676 | INPUT_PORTS_END |
| 677 | 677 | |
| 678 | INPUT_PORTS_START( 4psimasy ) | |
| 678 | static INPUT_PORTS_START( 4psimasy ) | |
| 679 | 679 | |
| 680 | 680 | // I don't have manual for this game. |
| 681 | 681 | |
| r1238 | r1239 | |
| 754 | 754 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 755 | 755 | INPUT_PORTS_END |
| 756 | 756 | |
| 757 | INPUT_PORTS_START( mhhonban ) | |
| 757 | static INPUT_PORTS_START( mhhonban ) | |
| 758 | 758 | |
| 759 | 759 | // I don't have manual for this game. |
| 760 | 760 |
| r1238 | r1239 | |
|---|---|---|
| 86 | 86 | |
| 87 | 87 | |
| 88 | 88 | |
| 89 | INPUT_PORTS_START( exedexes ) | |
| 89 | static INPUT_PORTS_START( exedexes ) | |
| 90 | 90 | PORT_START /* IN0 */ |
| 91 | 91 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 92 | 92 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 429 | 429 | * |
| 430 | 430 | *************************************/ |
| 431 | 431 | |
| 432 | INPUT_PORTS_START( jedi ) | |
| 432 | static INPUT_PORTS_START( jedi ) | |
| 433 | 433 | PORT_START /* 0C00 */ |
| 434 | 434 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) |
| 435 | 435 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
|---|---|---|
| 704 | 704 | |
| 705 | 705 | static UINT32 timer_0_temp[4]; |
| 706 | 706 | |
| 707 | static WRITE32_HANDLER( msm6242_w ) | |
| 707 | static WRITE32_HANDLER( skns_msm6242_w ) | |
| 708 | 708 | { |
| 709 | 709 | COMBINE_DATA(&timer_0_temp[offset]); |
| 710 | 710 | |
| r1238 | r1239 | |
| 777 | 777 | } |
| 778 | 778 | |
| 779 | 779 | |
| 780 | static READ32_HANDLER( msm6242_r ) | |
| 780 | static READ32_HANDLER( skns_msm6242_r ) | |
| 781 | 781 | { |
| 782 | 782 | mame_system_time systime; |
| 783 | 783 | long value; |
| r1238 | r1239 | |
| 854 | 854 | AM_RANGE(0x0040000c, 0x0040000f) AM_READ(nova_input_port_3_r) |
| 855 | 855 | AM_RANGE(0x00800000, 0x00801fff) AM_READ(MRA32_RAM) /* 'backup' RAM */ |
| 856 | 856 | // AM_RANGE(0x00c00000, 0x00c00003) AM_READ(skns_ymz280_r) /* ymz280 (sound) */ |
| 857 | AM_RANGE(0x01000000, 0x0100000f) AM_READ(msm6242_r) | |
| 857 | AM_RANGE(0x01000000, 0x0100000f) AM_READ(skns_msm6242_r) | |
| 858 | 858 | AM_RANGE(0x02000000, 0x02003fff) AM_READ(MRA32_RAM) /* 'spc' RAM */ |
| 859 | 859 | AM_RANGE(0x02100000, 0x0210003f) AM_READ(MRA32_RAM) /* 'spc' */ |
| 860 | 860 | AM_RANGE(0x02400000, 0x0240007f) AM_READ(MRA32_RAM) /* 'v3' */ |
| r1238 | r1239 | |
| 874 | 874 | AM_RANGE(0x00400000, 0x0040000f) AM_WRITE(skns_io_w) /* I/O Write */ |
| 875 | 875 | AM_RANGE(0x00800000, 0x00801fff) AM_WRITE(MWA32_RAM) AM_BASE(&generic_nvram32) AM_SIZE(&generic_nvram_size) /* 'backup' RAM */ |
| 876 | 876 | AM_RANGE(0x00c00000, 0x00c00003) AM_WRITE(skns_ymz280_w) /* ymz280_w (sound) */ |
| 877 | AM_RANGE(0x01000000, 0x0100000f) AM_WRITE(msm6242_w) | |
| 877 | AM_RANGE(0x01000000, 0x0100000f) AM_WRITE(skns_msm6242_w) | |
| 878 | 878 | AM_RANGE(0x01800000, 0x01800003) AM_WRITE(skns_hit2_w) |
| 879 | 879 | AM_RANGE(0x02000000, 0x02003fff) AM_WRITE(MWA32_RAM) AM_BASE(&spriteram32) AM_SIZE(&spriteram_size) /* sprite ram */ |
| 880 | 880 | AM_RANGE(0x02100000, 0x0210003f) AM_WRITE(MWA32_RAM) AM_BASE(&skns_spc_regs) /* sprite registers */ |
| r1238 | r1239 | |
|---|---|---|
| 714 | 714 | Mobile Suit Gundam EX Revue |
| 715 | 715 | ***************************************************************************/ |
| 716 | 716 | |
| 717 | INPUT_PORTS_START( gundamex ) | |
| 717 | static INPUT_PORTS_START( gundamex ) | |
| 718 | 718 | PORT_START_TAG("IN0") // $600000.w |
| 719 | 719 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Demo_Sounds ) ) |
| 720 | 720 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 828 | 828 | Guardians |
| 829 | 829 | ***************************************************************************/ |
| 830 | 830 | |
| 831 | INPUT_PORTS_START( grdians ) | |
| 831 | static INPUT_PORTS_START( grdians ) | |
| 832 | 832 | PORT_START_TAG("IN0") // $600000.w |
| 833 | 833 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) |
| 834 | 834 | PORT_DIPSETTING( 0x0002, DEF_STR( Easy ) ) // 0 |
| r1238 | r1239 | |
| 932 | 932 | Wakakusamonogatari Mahjong Yonshimai |
| 933 | 933 | ***************************************************************************/ |
| 934 | 934 | |
| 935 | INPUT_PORTS_START( mj4simai ) | |
| 935 | static INPUT_PORTS_START( mj4simai ) | |
| 936 | 936 | PORT_START_TAG("IN0") // $600300.w |
| 937 | 937 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coinage ) ) |
| 938 | 938 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| r1238 | r1239 | |
| 1049 | 1049 | Kosodate Quiz My Angel |
| 1050 | 1050 | ***************************************************************************/ |
| 1051 | 1051 | |
| 1052 | INPUT_PORTS_START( myangel ) | |
| 1052 | static INPUT_PORTS_START( myangel ) | |
| 1053 | 1053 | PORT_START_TAG("IN0") // $700300.w |
| 1054 | 1054 | PORT_SERVICE( 0x0001, IP_ACTIVE_LOW ) |
| 1055 | 1055 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Unused ) ) /* Listed as "Unused" */ |
| r1238 | r1239 | |
| 1150 | 1150 | Kosodate Quiz My Angel 2 |
| 1151 | 1151 | ***************************************************************************/ |
| 1152 | 1152 | |
| 1153 | INPUT_PORTS_START( myangel2 ) | |
| 1153 | static INPUT_PORTS_START( myangel2 ) | |
| 1154 | 1154 | PORT_START_TAG("IN0") //$600300.w |
| 1155 | 1155 | PORT_SERVICE( 0x0001, IP_ACTIVE_LOW ) |
| 1156 | 1156 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Unused ) ) /* Listed as "Unused" */ |
| r1238 | r1239 | |
| 1251 | 1251 | Puzzle De Bowling |
| 1252 | 1252 | ***************************************************************************/ |
| 1253 | 1253 | |
| 1254 | INPUT_PORTS_START( pzlbowl ) | |
| 1254 | static INPUT_PORTS_START( pzlbowl ) | |
| 1255 | 1255 | PORT_START_TAG("IN0") //$400300.w |
| 1256 | 1256 | PORT_SERVICE( 0x0001, IP_ACTIVE_LOW ) |
| 1257 | 1257 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) |
| r1238 | r1239 | |
| 1352 | 1352 | Penguin Bros |
| 1353 | 1353 | ***************************************************************************/ |
| 1354 | 1354 | |
| 1355 | INPUT_PORTS_START( penbros ) | |
| 1355 | static INPUT_PORTS_START( penbros ) | |
| 1356 | 1356 | PORT_START_TAG("IN0") //$500300.w |
| 1357 | 1357 | PORT_SERVICE( 0x0001, IP_ACTIVE_LOW ) |
| 1358 | 1358 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) ) |
| r1238 | r1239 | |
| 1443 | 1443 | Sammy Outdoor Shooting |
| 1444 | 1444 | ***************************************************************************/ |
| 1445 | 1445 | |
| 1446 | INPUT_PORTS_START( deerhunt ) | |
| 1446 | static INPUT_PORTS_START( deerhunt ) | |
| 1447 | 1447 | PORT_START_TAG("DSW1") // IN0 - $400000.w |
| 1448 | 1448 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3") |
| 1449 | 1449 | PORT_DIPSETTING( 0x0005, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
| 1530 | 1530 | INPUT_PORTS_END |
| 1531 | 1531 | |
| 1532 | 1532 | |
| 1533 | INPUT_PORTS_START( turkhunt ) | |
| 1533 | static INPUT_PORTS_START( turkhunt ) | |
| 1534 | 1534 | PORT_INCLUDE(deerhunt) |
| 1535 | 1535 | |
| 1536 | 1536 | PORT_MODIFY("DSW2") // IN1 - fffd0a.w |
| r1238 | r1239 | |
| 1540 | 1540 | INPUT_PORTS_END |
| 1541 | 1541 | |
| 1542 | 1542 | |
| 1543 | INPUT_PORTS_START( wschamp ) | |
| 1543 | static INPUT_PORTS_START( wschamp ) | |
| 1544 | 1544 | PORT_INCLUDE(deerhunt) |
| 1545 | 1545 | |
| 1546 | 1546 | PORT_MODIFY("DSW1") // IN0 - $400000.w |
| r1238 | r1239 | |
| 1606 | 1606 | PORT_BIT( 0xffcc, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1607 | 1607 | INPUT_PORTS_END |
| 1608 | 1608 | |
| 1609 | INPUT_PORTS_START( trophyh ) | |
| 1609 | static INPUT_PORTS_START( trophyh ) | |
| 1610 | 1610 | PORT_INCLUDE(wschamp) |
| 1611 | 1611 | |
| 1612 | 1612 | PORT_MODIFY("DSW2") // IN1 - fffd0a.w |
| r1238 | r1239 | |
|---|---|---|
| 462 | 462 | AM_RANGE(0xf180, 0xffff) AM_RAM AM_SHARE(2) |
| 463 | 463 | ADDRESS_MAP_END |
| 464 | 464 | |
| 465 | INPUT_PORTS_START( witch ) | |
| 465 | static INPUT_PORTS_START( witch ) | |
| 466 | 466 | PORT_START /* DSW */ |
| 467 | 467 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 468 | 468 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 135 | 135 | ADDRESS_MAP_END |
| 136 | 136 | |
| 137 | 137 | |
| 138 | INPUT_PORTS_START( flkatck ) | |
| 138 | static INPUT_PORTS_START( flkatck ) | |
| 139 | 139 | PORT_START /* DSW #1 */ |
| 140 | 140 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 141 | 141 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 207 | 207 | AM_RANGE(0xfffffffc, 0xffffffff) AM_READ( fl_unk1_r ) |
| 208 | 208 | ADDRESS_MAP_END |
| 209 | 209 | |
| 210 | INPUT_PORTS_START( namcofl ) | |
| 210 | static INPUT_PORTS_START( namcofl ) | |
| 211 | 211 | PORT_START |
| 212 | 212 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 213 | 213 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 1429 | 1429 | |
| 1430 | 1430 | ***************************************************************************/ |
| 1431 | 1431 | |
| 1432 | INPUT_PORTS_START( MAHJONG_KEYS ) | |
| 1432 | static INPUT_PORTS_START( MAHJONG_KEYS ) | |
| 1433 | 1433 | // Keyboard 1 |
| 1434 | 1434 | PORT_START |
| 1435 | 1435 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_A ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1513 | 1513 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1514 | 1514 | INPUT_PORTS_END |
| 1515 | 1515 | |
| 1516 | INPUT_PORTS_START( MAHJONG_KEYS_BET ) | |
| 1516 | static INPUT_PORTS_START( MAHJONG_KEYS_BET ) | |
| 1517 | 1517 | // Keyboard 1 |
| 1518 | 1518 | PORT_START |
| 1519 | 1519 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_A ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1597 | 1597 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_MAHJONG_SMALL ) PORT_PLAYER(2) // "s" |
| 1598 | 1598 | INPUT_PORTS_END |
| 1599 | 1599 | |
| 1600 | INPUT_PORTS_START( HANAFUDA_KEYS ) | |
| 1600 | static INPUT_PORTS_START( HANAFUDA_KEYS ) | |
| 1601 | 1601 | // Keyboard 1 |
| 1602 | 1602 | PORT_START |
| 1603 | 1603 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("1") PORT_CODE(KEYCODE_1_PAD) |
| r1238 | r1239 | |
| 1681 | 1681 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1682 | 1682 | INPUT_PORTS_END |
| 1683 | 1683 | |
| 1684 | INPUT_PORTS_START( HANAFUDA_KEYS_BET ) | |
| 1684 | static INPUT_PORTS_START( HANAFUDA_KEYS_BET ) | |
| 1685 | 1685 | // Keyboard 1 |
| 1686 | 1686 | PORT_START |
| 1687 | 1687 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("1") PORT_CODE(KEYCODE_1_PAD) |
| r1238 | r1239 | |
| 1766 | 1766 | INPUT_PORTS_END |
| 1767 | 1767 | |
| 1768 | 1768 | |
| 1769 | INPUT_PORTS_START( hanamai ) | |
| 1769 | static INPUT_PORTS_START( hanamai ) | |
| 1770 | 1770 | PORT_START_TAG("DSW0") |
| 1771 | 1771 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 1772 | 1772 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1830 | 1830 | PORT_INCLUDE( HANAFUDA_KEYS ) |
| 1831 | 1831 | INPUT_PORTS_END |
| 1832 | 1832 | |
| 1833 | INPUT_PORTS_START( hnkochou ) | |
| 1833 | static INPUT_PORTS_START( hnkochou ) | |
| 1834 | 1834 | PORT_START_TAG("DSW0") |
| 1835 | 1835 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 1836 | 1836 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1897 | 1897 | INPUT_PORTS_END |
| 1898 | 1898 | |
| 1899 | 1899 | |
| 1900 | INPUT_PORTS_START( hnoridur ) | |
| 1900 | static INPUT_PORTS_START( hnoridur ) | |
| 1901 | 1901 | PORT_START_TAG("DSW0") /* note that these are in reverse order wrt the others */ |
| 1902 | 1902 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coinage ) ) |
| 1903 | 1903 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_1C ) ) |
| r1238 | r1239 | |
| 2012 | 2012 | INPUT_PORTS_END |
| 2013 | 2013 | |
| 2014 | 2014 | |
| 2015 | INPUT_PORTS_START( sprtmtch ) | |
| 2015 | static INPUT_PORTS_START( sprtmtch ) | |
| 2016 | 2016 | PORT_START_TAG("IN0") |
| 2017 | 2017 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 2018 | 2018 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 2093 | 2093 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2094 | 2094 | INPUT_PORTS_END |
| 2095 | 2095 | |
| 2096 | INPUT_PORTS_START( mjfriday ) | |
| 2096 | static INPUT_PORTS_START( mjfriday ) | |
| 2097 | 2097 | PORT_START_TAG("DSW0") |
| 2098 | 2098 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 2099 | 2099 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
| 2157 | 2157 | INPUT_PORTS_END |
| 2158 | 2158 | |
| 2159 | 2159 | |
| 2160 | INPUT_PORTS_START( mjdialq2 ) | |
| 2160 | static INPUT_PORTS_START( mjdialq2 ) | |
| 2161 | 2161 | PORT_START_TAG("DSW0") |
| 2162 | 2162 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2163 | 2163 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2224 | 2224 | INPUT_PORTS_END |
| 2225 | 2225 | |
| 2226 | 2226 | |
| 2227 | INPUT_PORTS_START( yarunara ) | |
| 2227 | static INPUT_PORTS_START( yarunara ) | |
| 2228 | 2228 | PORT_START_TAG("DSW0") |
| 2229 | 2229 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 2230 | 2230 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
| 2286 | 2286 | PORT_INCLUDE( MAHJONG_KEYS ) |
| 2287 | 2287 | INPUT_PORTS_END |
| 2288 | 2288 | |
| 2289 | INPUT_PORTS_START( hanayara ) | |
| 2289 | static INPUT_PORTS_START( hanayara ) | |
| 2290 | 2290 | PORT_START_TAG("DSW0") |
| 2291 | 2291 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 2292 | 2292 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
| 2348 | 2348 | PORT_INCLUDE( HANAFUDA_KEYS ) |
| 2349 | 2349 | INPUT_PORTS_END |
| 2350 | 2350 | |
| 2351 | INPUT_PORTS_START( quiztvqq ) | |
| 2351 | static INPUT_PORTS_START( quiztvqq ) | |
| 2352 | 2352 | PORT_START_TAG("DSW0") |
| 2353 | 2353 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 2354 | 2354 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
| 2443 | 2443 | INPUT_PORTS_END |
| 2444 | 2444 | |
| 2445 | 2445 | |
| 2446 | INPUT_PORTS_START( mcnpshnt ) | |
| 2446 | static INPUT_PORTS_START( mcnpshnt ) | |
| 2447 | 2447 | PORT_START_TAG("DSW0") |
| 2448 | 2448 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2449 | 2449 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2506 | 2506 | INPUT_PORTS_END |
| 2507 | 2507 | |
| 2508 | 2508 | |
| 2509 | INPUT_PORTS_START( nanajign ) | |
| 2509 | static INPUT_PORTS_START( nanajign ) | |
| 2510 | 2510 | PORT_START_TAG("DSW0") |
| 2511 | 2511 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 2512 | 2512 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
| 2596 | 2596 | INPUT_PORTS_END |
| 2597 | 2597 | |
| 2598 | 2598 | |
| 2599 | INPUT_PORTS_START( jantouki ) | |
| 2599 | static INPUT_PORTS_START( jantouki ) | |
| 2600 | 2600 | PORT_START_TAG("DSW0") |
| 2601 | 2601 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Unknown ) ) |
| 2602 | 2602 | PORT_DIPSETTING( 0x07, "0" ) // 0 6 2 |
| r1238 | r1239 | |
| 2700 | 2700 | INPUT_PORTS_END |
| 2701 | 2701 | |
| 2702 | 2702 | |
| 2703 | INPUT_PORTS_START( mjelct3 ) | |
| 2703 | static INPUT_PORTS_START( mjelct3 ) | |
| 2704 | 2704 | PORT_START_TAG("DSW2") // 7c21 (select = 00) |
| 2705 | 2705 | PORT_DIPNAME( 0x03, 0x03, "Difficulty?" ) |
| 2706 | 2706 | PORT_DIPSETTING( 0x03, "0" ) // 20 |
| r1238 | r1239 | |
| 2825 | 2825 | INPUT_PORTS_END |
| 2826 | 2826 | |
| 2827 | 2827 | |
| 2828 | INPUT_PORTS_START( mjelctrn ) | |
| 2828 | static INPUT_PORTS_START( mjelctrn ) | |
| 2829 | 2829 | PORT_START_TAG("DSW2") // 7c21 (select = 00) |
| 2830 | 2830 | PORT_DIPNAME( 0x03, 0x03, "Difficulty?" ) |
| 2831 | 2831 | PORT_DIPSETTING( 0x03, "0" ) // 20 |
| r1238 | r1239 | |
| 2950 | 2950 | INPUT_PORTS_END |
| 2951 | 2951 | |
| 2952 | 2952 | |
| 2953 | INPUT_PORTS_START( majxtal7 ) | |
| 2953 | static INPUT_PORTS_START( majxtal7 ) | |
| 2954 | 2954 | PORT_START_TAG("DSW2") // select = 00 |
| 2955 | 2955 | PORT_DIPNAME( 0x03, 0x03, "Difficulty?" ) |
| 2956 | 2956 | PORT_DIPSETTING( 0x03, "0" ) // 20 |
| r1238 | r1239 | |
| 3074 | 3074 | PORT_DIPSETTING( 0xff, DEF_STR( On ) ) |
| 3075 | 3075 | INPUT_PORTS_END |
| 3076 | 3076 | |
| 3077 | INPUT_PORTS_START( neruton ) | |
| 3077 | static INPUT_PORTS_START( neruton ) | |
| 3078 | 3078 | PORT_START_TAG("DSW2") //6a77 (select = 00) |
| 3079 | 3079 | PORT_DIPNAME( 0x07, 0x07, "Hours" ) |
| 3080 | 3080 | PORT_DIPSETTING( 0x07, "08:30" ) |
| r1238 | r1239 | |
| 3138 | 3138 | INPUT_PORTS_END |
| 3139 | 3139 | |
| 3140 | 3140 | |
| 3141 | INPUT_PORTS_START( tenkai ) | |
| 3141 | static INPUT_PORTS_START( tenkai ) | |
| 3142 | 3142 | PORT_START // 0 |
| 3143 | 3143 | PORT_DIPNAME( 0x0f, 0x07, "Pay Out Rate" ) |
| 3144 | 3144 | PORT_DIPSETTING( 0x00, "50" ) |
| r1238 | r1239 | |
| 3284 | 3284 | INPUT_PORTS_END |
| 3285 | 3285 | |
| 3286 | 3286 | |
| 3287 | INPUT_PORTS_START( mjreach ) | |
| 3287 | static INPUT_PORTS_START( mjreach ) | |
| 3288 | 3288 | PORT_START // 0 |
| 3289 | 3289 | PORT_DIPNAME( 0x0f, 0x07, "Pay Out Rate" ) |
| 3290 | 3290 | PORT_DIPSETTING( 0x00, "50" ) |
| r1238 | r1239 | |
| 3428 | 3428 | PORT_INCLUDE( MAHJONG_KEYS_BET ) |
| 3429 | 3429 | INPUT_PORTS_END |
| 3430 | 3430 | |
| 3431 | INPUT_PORTS_START( htengoku ) | |
| 3431 | static INPUT_PORTS_START( htengoku ) | |
| 3432 | 3432 | PORT_START // IN0 |
| 3433 | 3433 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE4 ) // medal out |
| 3434 | 3434 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 145 | 145 | |
| 146 | 146 | /*******************************************************************************/ |
| 147 | 147 | |
| 148 | INPUT_PORTS_START( shootout ) | |
| 148 | static INPUT_PORTS_START( shootout ) | |
| 149 | 149 | PORT_START_TAG("DSW1") |
| 150 | 150 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) |
| 151 | 151 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 208 | 208 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 209 | 209 | INPUT_PORTS_END |
| 210 | 210 | |
| 211 | INPUT_PORTS_START( shootouj ) | |
| 211 | static INPUT_PORTS_START( shootouj ) | |
| 212 | 212 | PORT_INCLUDE(shootout) |
| 213 | 213 | |
| 214 | 214 | PORT_MODIFY("DSW1") |
| r1238 | r1239 | |
|---|---|---|
| 120 | 120 | |
| 121 | 121 | |
| 122 | 122 | |
| 123 | INPUT_PORTS_START( contra ) | |
| 123 | static INPUT_PORTS_START( contra ) | |
| 124 | 124 | PORT_START /* IN0 */ |
| 125 | 125 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 126 | 126 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 3038 | 3038 | MDRV_SOUND_ROUTE(1, "right", 0.35) |
| 3039 | 3039 | MACHINE_DRIVER_END |
| 3040 | 3040 | |
| 3041 | INPUT_PORTS_START( zn ) | |
| 3041 | static INPUT_PORTS_START( zn ) | |
| 3042 | 3042 | PORT_START /* IN0 */ |
| 3043 | 3043 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 3044 | 3044 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 130 | 130 | Paradise |
| 131 | 131 | ***************************************************************************/ |
| 132 | 132 | |
| 133 | INPUT_PORTS_START( paradise ) | |
| 133 | static INPUT_PORTS_START( paradise ) | |
| 134 | 134 | PORT_START // IN0 - port $2020 - DSW 1 |
| 135 | 135 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Difficulty ) ) |
| 136 | 136 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) |
| r1238 | r1239 | |
| 211 | 211 | INPUT_PORTS_END |
| 212 | 212 | |
| 213 | 213 | |
| 214 | INPUT_PORTS_START( tgtball ) | |
| 214 | static INPUT_PORTS_START( tgtball ) | |
| 215 | 215 | PORT_START // IN0 - port $2020 - DSW 1 |
| 216 | 216 | PORT_DIPNAME( 0x03, 0x02, "Time" ) |
| 217 | 217 | PORT_DIPSETTING( 0x03, "60" ) |
| r1238 | r1239 | |
| 290 | 290 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 291 | 291 | INPUT_PORTS_END |
| 292 | 292 | |
| 293 | INPUT_PORTS_START( torus ) | |
| 293 | static INPUT_PORTS_START( torus ) | |
| 294 | 294 | |
| 295 | 295 | PORT_START // IN0 - port $2020 - DSW 1 |
| 296 | 296 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| r1238 | r1239 | |
| 375 | 375 | INPUT_PORTS_END |
| 376 | 376 | |
| 377 | 377 | |
| 378 | INPUT_PORTS_START( madball ) | |
| 378 | static INPUT_PORTS_START( madball ) | |
| 379 | 379 | PORT_START /* 8bit DSW 1 */ |
| 380 | 380 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 381 | 381 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 120 | 120 | INPUT PORTS |
| 121 | 121 | ***********************************************************/ |
| 122 | 122 | |
| 123 | INPUT_PORTS_START( volfied ) | |
| 123 | static INPUT_PORTS_START( volfied ) | |
| 124 | 124 | /* Z80 CPU -> 0x10002c ($2c,A5) */ |
| 125 | 125 | PORT_START_TAG("DSWA") |
| 126 | 126 | TAITO_MACHINE_COCKTAIL |
| r1238 | r1239 | |
| 192 | 192 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 193 | 193 | INPUT_PORTS_END |
| 194 | 194 | |
| 195 | INPUT_PORTS_START( volfiedu ) | |
| 195 | static INPUT_PORTS_START( volfiedu ) | |
| 196 | 196 | PORT_INCLUDE(volfied) |
| 197 | 197 | |
| 198 | 198 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 201 | 201 | PORT_DIPUNUSED( 0x80, IP_ACTIVE_LOW ) /* see notes */ |
| 202 | 202 | INPUT_PORTS_END |
| 203 | 203 | |
| 204 | INPUT_PORTS_START( volfiedj ) | |
| 204 | static INPUT_PORTS_START( volfiedj ) | |
| 205 | 205 | PORT_INCLUDE(volfied) |
| 206 | 206 | |
| 207 | 207 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
|---|---|---|
| 245 | 245 | * |
| 246 | 246 | *************************************/ |
| 247 | 247 | |
| 248 | INPUT_PORTS_START( dribling ) | |
| 248 | static INPUT_PORTS_START( dribling ) | |
| 249 | 249 | PORT_START /* IN0 (mux 0) */ |
| 250 | 250 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_LEFT ) PORT_PLAYER(1) |
| 251 | 251 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_RIGHT ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 142 | 142 | |
| 143 | 143 | |
| 144 | 144 | |
| 145 | INPUT_PORTS_START( frogger ) | |
| 145 | static INPUT_PORTS_START( frogger ) | |
| 146 | 146 | PORT_START_TAG("IN0") |
| 147 | 147 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| 148 | 148 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* 1P shoot2 - unused */ |
| r1238 | r1239 | |
| 183 | 183 | INPUT_PORTS_END |
| 184 | 184 | |
| 185 | 185 | |
| 186 | INPUT_PORTS_START( froggrmc ) | |
| 186 | static INPUT_PORTS_START( froggrmc ) | |
| 187 | 187 | PORT_START_TAG("IN0") |
| 188 | 188 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 189 | 189 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 347 | 347 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(70) PORT_KEYDELTA(10) |
| 348 | 348 | |
| 349 | 349 | |
| 350 | INPUT_PORTS_START( sentetst ) | |
| 350 | static INPUT_PORTS_START( sentetst ) | |
| 351 | 351 | PORT_START /* IN0 */ |
| 352 | 352 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 353 | 353 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 401 | 401 | INPUT_PORTS_END |
| 402 | 402 | |
| 403 | 403 | |
| 404 | INPUT_PORTS_START( cshift ) | |
| 404 | static INPUT_PORTS_START( cshift ) | |
| 405 | 405 | PORT_START /* IN0 */ |
| 406 | 406 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 407 | 407 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 442 | 442 | INPUT_PORTS_END |
| 443 | 443 | |
| 444 | 444 | |
| 445 | INPUT_PORTS_START( gghost ) | |
| 445 | static INPUT_PORTS_START( gghost ) | |
| 446 | 446 | PORT_START /* IN0 */ |
| 447 | 447 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 448 | 448 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 491 | 491 | INPUT_PORTS_END |
| 492 | 492 | |
| 493 | 493 | |
| 494 | INPUT_PORTS_START( hattrick ) | |
| 494 | static INPUT_PORTS_START( hattrick ) | |
| 495 | 495 | PORT_START /* IN0 */ |
| 496 | 496 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 497 | 497 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 543 | 543 | INPUT_PORTS_END |
| 544 | 544 | |
| 545 | 545 | |
| 546 | INPUT_PORTS_START( otwalls ) | |
| 546 | static INPUT_PORTS_START( otwalls ) | |
| 547 | 547 | PORT_START /* IN0 */ |
| 548 | 548 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 549 | 549 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 584 | 584 | INPUT_PORTS_END |
| 585 | 585 | |
| 586 | 586 | |
| 587 | INPUT_PORTS_START( snakepit ) | |
| 587 | static INPUT_PORTS_START( snakepit ) | |
| 588 | 588 | PORT_START /* IN0 */ |
| 589 | 589 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 590 | 590 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 638 | 638 | INPUT_PORTS_END |
| 639 | 639 | |
| 640 | 640 | |
| 641 | INPUT_PORTS_START( snakjack ) | |
| 641 | static INPUT_PORTS_START( snakjack ) | |
| 642 | 642 | PORT_START /* IN0 */ |
| 643 | 643 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 644 | 644 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 685 | 685 | INPUT_PORTS_END |
| 686 | 686 | |
| 687 | 687 | |
| 688 | INPUT_PORTS_START( stocker ) | |
| 688 | static INPUT_PORTS_START( stocker ) | |
| 689 | 689 | PORT_START /* IN0 */ |
| 690 | 690 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Coinage ) ) |
| 691 | 691 | PORT_DIPSETTING( 0x03, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 737 | 737 | INPUT_PORTS_END |
| 738 | 738 | |
| 739 | 739 | |
| 740 | INPUT_PORTS_START( triviag1 ) | |
| 740 | static INPUT_PORTS_START( triviag1 ) | |
| 741 | 741 | PORT_START /* IN0 */ |
| 742 | 742 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 743 | 743 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 792 | 792 | INPUT_PORTS_END |
| 793 | 793 | |
| 794 | 794 | |
| 795 | INPUT_PORTS_START( triviaes ) | |
| 795 | static INPUT_PORTS_START( triviaes ) | |
| 796 | 796 | PORT_START /* IN0 */ |
| 797 | 797 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) |
| 798 | 798 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 847 | 847 | INPUT_PORTS_END |
| 848 | 848 | |
| 849 | 849 | |
| 850 | INPUT_PORTS_START( gimeabrk ) | |
| 850 | static INPUT_PORTS_START( gimeabrk ) | |
| 851 | 851 | PORT_START /* IN0 */ |
| 852 | 852 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Coinage ) ) |
| 853 | 853 | PORT_DIPSETTING( 0x03, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 915 | 915 | INPUT_PORTS_END |
| 916 | 916 | |
| 917 | 917 | |
| 918 | INPUT_PORTS_START( minigolf ) | |
| 918 | static INPUT_PORTS_START( minigolf ) | |
| 919 | 919 | PORT_START /* IN0 */ |
| 920 | 920 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) |
| 921 | 921 | PORT_DIPSETTING( 0x03, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
| 987 | 987 | INPUT_PORTS_END |
| 988 | 988 | |
| 989 | 989 | |
| 990 | INPUT_PORTS_START( minigol2 ) | |
| 990 | static INPUT_PORTS_START( minigol2 ) | |
| 991 | 991 | PORT_START /* IN0 */ |
| 992 | 992 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Coinage ) ) |
| 993 | 993 | PORT_DIPSETTING( 0x03, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 1059 | 1059 | INPUT_PORTS_END |
| 1060 | 1060 | |
| 1061 | 1061 | |
| 1062 | INPUT_PORTS_START( toggle ) | |
| 1062 | static INPUT_PORTS_START( toggle ) | |
| 1063 | 1063 | PORT_START /* IN0 */ |
| 1064 | 1064 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 1065 | 1065 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 1106 | 1106 | INPUT_PORTS_END |
| 1107 | 1107 | |
| 1108 | 1108 | |
| 1109 | INPUT_PORTS_START( nametune ) | |
| 1109 | static INPUT_PORTS_START( nametune ) | |
| 1110 | 1110 | PORT_START /* IN0 */ |
| 1111 | 1111 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) |
| 1112 | 1112 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 1181 | 1181 | INPUT_PORTS_END |
| 1182 | 1182 | |
| 1183 | 1183 | |
| 1184 | INPUT_PORTS_START( nstocker ) | |
| 1184 | static INPUT_PORTS_START( nstocker ) | |
| 1185 | 1185 | PORT_START /* IN0 */ |
| 1186 | 1186 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) |
| 1187 | 1187 | PORT_DIPSETTING( 0x03, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
| 1240 | 1240 | INPUT_PORTS_END |
| 1241 | 1241 | |
| 1242 | 1242 | |
| 1243 | INPUT_PORTS_START( sfootbal ) | |
| 1243 | static INPUT_PORTS_START( sfootbal ) | |
| 1244 | 1244 | PORT_START /* IN0 */ |
| 1245 | 1245 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) |
| 1246 | 1246 | PORT_DIPSETTING( 0x03, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
| 1303 | 1303 | INPUT_PORTS_END |
| 1304 | 1304 | |
| 1305 | 1305 | |
| 1306 | INPUT_PORTS_START( spiker ) | |
| 1306 | static INPUT_PORTS_START( spiker ) | |
| 1307 | 1307 | PORT_START /* IN0 */ |
| 1308 | 1308 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) |
| 1309 | 1309 | PORT_DIPSETTING( 0x03, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
| 1375 | 1375 | INPUT_PORTS_END |
| 1376 | 1376 | |
| 1377 | 1377 | |
| 1378 | INPUT_PORTS_START( stompin ) | |
| 1378 | static INPUT_PORTS_START( stompin ) | |
| 1379 | 1379 | PORT_START /* IN0 */ |
| 1380 | 1380 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) |
| 1381 | 1381 | PORT_DIPSETTING( 0x03, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
| 1469 | 1469 | INPUT_PORTS_END |
| 1470 | 1470 | |
| 1471 | 1471 | |
| 1472 | INPUT_PORTS_START( grudge ) | |
| 1472 | static INPUT_PORTS_START( grudge ) | |
| 1473 | 1473 | PORT_START /* IN0 */ |
| 1474 | 1474 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Unknown ) ) |
| 1475 | 1475 | PORT_DIPSETTING( 0x00, "0" ) |
| r1238 | r1239 | |
| 1518 | 1518 | INPUT_PORTS_END |
| 1519 | 1519 | |
| 1520 | 1520 | |
| 1521 | INPUT_PORTS_START( rescraid ) | |
| 1521 | static INPUT_PORTS_START( rescraid ) | |
| 1522 | 1522 | PORT_START /* IN0 */ |
| 1523 | 1523 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) |
| 1524 | 1524 | PORT_DIPSETTING( 0x03, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
| 1590 | 1590 | INPUT_PORTS_END |
| 1591 | 1591 | |
| 1592 | 1592 | |
| 1593 | INPUT_PORTS_START( shrike ) | |
| 1593 | static INPUT_PORTS_START( shrike ) | |
| 1594 | 1594 | PORT_START /* IN0 */ |
| 1595 | 1595 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage )) |
| 1596 | 1596 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C )) |
| r1238 | r1239 | |
|---|---|---|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | |
| 111 | INPUT_PORTS_START( galpani3 ) | |
| 111 | static INPUT_PORTS_START( galpani3 ) | |
| 112 | 112 | |
| 113 | 113 | PORT_START // IN0 - Player Controls |
| 114 | 114 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 975 | 975 | * |
| 976 | 976 | *************************************/ |
| 977 | 977 | |
| 978 | INPUT_PORTS_START( timekill ) | |
| 978 | static INPUT_PORTS_START( timekill ) | |
| 979 | 979 | PORT_START /* 40000 */ |
| 980 | 980 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 981 | 981 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1024 | 1024 | INPUT_PORTS_END |
| 1025 | 1025 | |
| 1026 | 1026 | |
| 1027 | INPUT_PORTS_START( itech32_base ) | |
| 1027 | static INPUT_PORTS_START( itech32_base ) | |
| 1028 | 1028 | PORT_START_TAG("P1") /* 080000 */ |
| 1029 | 1029 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1030 | 1030 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 1072 | 1072 | INPUT_PORTS_END |
| 1073 | 1073 | |
| 1074 | 1074 | |
| 1075 | INPUT_PORTS_START( bloodstm ) | |
| 1075 | static INPUT_PORTS_START( bloodstm ) | |
| 1076 | 1076 | PORT_INCLUDE(itech32_base) |
| 1077 | 1077 | |
| 1078 | 1078 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1097 | 1097 | INPUT_PORTS_END |
| 1098 | 1098 | |
| 1099 | 1099 | |
| 1100 | INPUT_PORTS_START( hardyard ) | |
| 1100 | static INPUT_PORTS_START( hardyard ) | |
| 1101 | 1101 | PORT_INCLUDE(itech32_base) |
| 1102 | 1102 | |
| 1103 | 1103 | PORT_MODIFY("P3") |
| r1238 | r1239 | |
| 1129 | 1129 | INPUT_PORTS_END |
| 1130 | 1130 | |
| 1131 | 1131 | |
| 1132 | INPUT_PORTS_START( pairs ) | |
| 1132 | static INPUT_PORTS_START( pairs ) | |
| 1133 | 1133 | PORT_INCLUDE(itech32_base) |
| 1134 | 1134 | |
| 1135 | 1135 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1145 | 1145 | INPUT_PORTS_END |
| 1146 | 1146 | |
| 1147 | 1147 | |
| 1148 | INPUT_PORTS_START( drivedge ) | |
| 1148 | static INPUT_PORTS_START( drivedge ) | |
| 1149 | 1149 | PORT_START /* 8C000 */ |
| 1150 | 1150 | PORT_BIT ( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1151 | 1151 | PORT_BIT ( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1196 | 1196 | INPUT_PORTS_END |
| 1197 | 1197 | |
| 1198 | 1198 | |
| 1199 | INPUT_PORTS_START( wcbowl ) | |
| 1199 | static INPUT_PORTS_START( wcbowl ) | |
| 1200 | 1200 | PORT_INCLUDE(itech32_base) |
| 1201 | 1201 | |
| 1202 | 1202 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1213 | 1213 | INPUT_PORTS_END |
| 1214 | 1214 | |
| 1215 | 1215 | |
| 1216 | INPUT_PORTS_START( wcbowln ) /* WCB version 1.66 supports cocktail mode */ | |
| 1216 | static INPUT_PORTS_START( wcbowln ) /* WCB version 1.66 supports cocktail mode */ | |
| 1217 | 1217 | PORT_INCLUDE(wcbowl) |
| 1218 | 1218 | |
| 1219 | 1219 | PORT_MODIFY("P3") |
| r1238 | r1239 | |
| 1239 | 1239 | INPUT_PORTS_END |
| 1240 | 1240 | |
| 1241 | 1241 | |
| 1242 | INPUT_PORTS_START( wcbowldx ) | |
| 1242 | static INPUT_PORTS_START( wcbowldx ) | |
| 1243 | 1243 | PORT_INCLUDE(wcbowln) |
| 1244 | 1244 | |
| 1245 | 1245 | PORT_MODIFY("DIPS") /* 280000 */ |
| r1238 | r1239 | |
| 1252 | 1252 | INPUT_PORTS_END |
| 1253 | 1253 | |
| 1254 | 1254 | |
| 1255 | INPUT_PORTS_START( sftm ) | |
| 1255 | static INPUT_PORTS_START( sftm ) | |
| 1256 | 1256 | PORT_INCLUDE(itech32_base) |
| 1257 | 1257 | |
| 1258 | 1258 | PORT_MODIFY("P3") |
| r1238 | r1239 | |
| 1272 | 1272 | INPUT_PORTS_END |
| 1273 | 1273 | |
| 1274 | 1274 | |
| 1275 | INPUT_PORTS_START( shufshot ) /* ShuffleShot v1.39 & v1.40 support cocktail mode */ | |
| 1275 | static INPUT_PORTS_START( shufshot ) /* ShuffleShot v1.39 & v1.40 support cocktail mode */ | |
| 1276 | 1276 | PORT_INCLUDE(itech32_base) |
| 1277 | 1277 | |
| 1278 | 1278 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1304 | 1304 | INPUT_PORTS_END |
| 1305 | 1305 | |
| 1306 | 1306 | |
| 1307 | INPUT_PORTS_START( shufbowl ) | |
| 1307 | static INPUT_PORTS_START( shufbowl ) | |
| 1308 | 1308 | /* |
| 1309 | 1309 | Earlier versions of Shuffleshot & World Class Bowling share the same input |
| 1310 | 1310 | port set up. IE: "Freeze Screen" and no support for a cocktail mode |
| r1238 | r1239 | |
| 1340 | 1340 | INPUT_PORTS_END |
| 1341 | 1341 | |
| 1342 | 1342 | |
| 1343 | INPUT_PORTS_START( gt3d ) | |
| 1343 | static INPUT_PORTS_START( gt3d ) | |
| 1344 | 1344 | PORT_INCLUDE(itech32_base) |
| 1345 | 1345 | |
| 1346 | 1346 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1380 | 1380 | INPUT_PORTS_END |
| 1381 | 1381 | |
| 1382 | 1382 | |
| 1383 | INPUT_PORTS_START( gt97 ) /* v1.30 is the first known version of GT97 to support Cocktail mode! */ | |
| 1383 | static INPUT_PORTS_START( gt97 ) /* v1.30 is the first known version of GT97 to support Cocktail mode! */ | |
| 1384 | 1384 | PORT_INCLUDE(gt3d) |
| 1385 | 1385 | |
| 1386 | 1386 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 1396 | 1396 | INPUT_PORTS_END |
| 1397 | 1397 | |
| 1398 | 1398 | |
| 1399 | INPUT_PORTS_START( gt97o ) /* Older versions of GT97 do NOT support a cocktail mode */ | |
| 1399 | static INPUT_PORTS_START( gt97o ) /* Older versions of GT97 do NOT support a cocktail mode */ | |
| 1400 | 1400 | PORT_INCLUDE(gt3d) |
| 1401 | 1401 | |
| 1402 | 1402 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 1406 | 1406 | INPUT_PORTS_END |
| 1407 | 1407 | |
| 1408 | 1408 | |
| 1409 | INPUT_PORTS_START( gt97s ) | |
| 1409 | static INPUT_PORTS_START( gt97s ) | |
| 1410 | 1410 | PORT_INCLUDE(gt3d) |
| 1411 | 1411 | |
| 1412 | 1412 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 1419 | 1419 | INPUT_PORTS_END |
| 1420 | 1420 | |
| 1421 | 1421 | |
| 1422 | INPUT_PORTS_START( gt98 ) | |
| 1422 | static INPUT_PORTS_START( gt98 ) | |
| 1423 | 1423 | PORT_INCLUDE(gt3d) |
| 1424 | 1424 | |
| 1425 | 1425 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 1432 | 1432 | INPUT_PORTS_END |
| 1433 | 1433 | |
| 1434 | 1434 | |
| 1435 | INPUT_PORTS_START( gt98s ) | |
| 1435 | static INPUT_PORTS_START( gt98s ) | |
| 1436 | 1436 | PORT_INCLUDE(gt3d) |
| 1437 | 1437 | |
| 1438 | 1438 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 1445 | 1445 | INPUT_PORTS_END |
| 1446 | 1446 | |
| 1447 | 1447 | |
| 1448 | INPUT_PORTS_START( s_ver ) | |
| 1448 | static INPUT_PORTS_START( s_ver ) | |
| 1449 | 1449 | PORT_INCLUDE(gt3d) |
| 1450 | 1450 | |
| 1451 | 1451 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 1461 | 1461 | INPUT_PORTS_END |
| 1462 | 1462 | |
| 1463 | 1463 | |
| 1464 | INPUT_PORTS_START( aama ) | |
| 1464 | static INPUT_PORTS_START( aama ) | |
| 1465 | 1465 | PORT_INCLUDE(gt3d) |
| 1466 | 1466 | |
| 1467 | 1467 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
|---|---|---|
| 141 | 141 | AM_RANGE(0x0000, 0x3fff) AM_ROM |
| 142 | 142 | ADDRESS_MAP_END |
| 143 | 143 | |
| 144 | INPUT_PORTS_START( mexico86 ) | |
| 144 | static INPUT_PORTS_START( mexico86 ) | |
| 145 | 145 | PORT_START /* IN0 */ |
| 146 | 146 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 147 | 147 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 234 | 234 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 235 | 235 | INPUT_PORTS_END |
| 236 | 236 | |
| 237 | INPUT_PORTS_START( kikikai ) | |
| 237 | static INPUT_PORTS_START( kikikai ) | |
| 238 | 238 | PORT_START /* IN0 */ |
| 239 | 239 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 240 | 240 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 127 | 127 | |
| 128 | 128 | ***************************************************************************/ |
| 129 | 129 | |
| 130 | INPUT_PORTS_START( chaknpop ) | |
| 130 | static INPUT_PORTS_START( chaknpop ) | |
| 131 | 131 | PORT_START_TAG("IN0") |
| 132 | 132 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 133 | 133 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 278 | 278 | |
| 279 | 279 | /* I've put the inputs the same way they can be read in the "test mode" */ |
| 280 | 280 | |
| 281 | INPUT_PORTS_START( fitfight ) | |
| 281 | static INPUT_PORTS_START( fitfight ) | |
| 282 | 282 | PORT_START // 0x200000.w |
| 283 | 283 | /* players inputs -> 0xe022cc.w */ |
| 284 | 284 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 406 | 406 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 407 | 407 | INPUT_PORTS_END |
| 408 | 408 | |
| 409 | INPUT_PORTS_START( histryma ) | |
| 409 | static INPUT_PORTS_START( histryma ) | |
| 410 | 410 | PORT_START // 0x200000.w |
| 411 | 411 | /* players inputs -> 0xe02cf2.w and 0xe02cf8.w */ |
| 412 | 412 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 548 | 548 | /* Surprisingly, the Dip Switches look very similar to the ones from 'histryma' |
| 549 | 549 | (the only difference being that there is no "Needed Points/Maximum Points" |
| 550 | 550 | Dip Switch, the value always being set to "2/3") */ |
| 551 | INPUT_PORTS_START( bbprot ) | |
| 551 | static INPUT_PORTS_START( bbprot ) | |
| 552 | 552 | PORT_START // 0x300000.w |
| 553 | 553 | /* players inputs -> 0xe0545e.w and 0xe05464.w */ |
| 554 | 554 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 152 | 152 | }; |
| 153 | 153 | |
| 154 | 154 | |
| 155 | INPUT_PORTS_START( sspeedr ) | |
| 155 | static INPUT_PORTS_START( sspeedr ) | |
| 156 | 156 | |
| 157 | 157 | PORT_START_TAG("IN0") |
| 158 | 158 | PORT_BIT( 0x3f, 0x00, IPT_POSITIONAL ) PORT_POSITIONS(64) PORT_REMAP_TABLE(sspeedr_controller_table) PORT_WRAPS PORT_SENSITIVITY(25) PORT_KEYDELTA(10) |
| r1238 | r1239 | |
|---|---|---|
| 573 | 573 | AM_RANGE(0x03f8, 0x03ff) AM_RAM //rs232c (serial) port |
| 574 | 574 | ADDRESS_MAP_END |
| 575 | 575 | |
| 576 | INPUT_PORTS_START( filetto ) | |
| 576 | static INPUT_PORTS_START( filetto ) | |
| 577 | 577 | PORT_START |
| 578 | 578 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) //START1 |
| 579 | 579 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 182 | 182 | AM_RANGE(0x02, 0x02) AM_WRITE(adpcm_data_w) |
| 183 | 183 | ADDRESS_MAP_END |
| 184 | 184 | |
| 185 | INPUT_PORTS_START( ashnojoe ) | |
| 185 | static INPUT_PORTS_START( ashnojoe ) | |
| 186 | 186 | PORT_START_TAG("IN0") /* player 1 16-bit */ |
| 187 | 187 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_PLAYER(1) |
| 188 | 188 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 326 | 326 | AM_RANGE(0x03, 0x03) AM_WRITE(DAC_1_signed_data_w) |
| 327 | 327 | ADDRESS_MAP_END |
| 328 | 328 | |
| 329 | INPUT_PORTS_START( terracre ) | |
| 329 | static INPUT_PORTS_START( terracre ) | |
| 330 | 330 | PORT_START_TAG("IN0") |
| 331 | 331 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 332 | 332 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 400 | 400 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 401 | 401 | INPUT_PORTS_END |
| 402 | 402 | |
| 403 | INPUT_PORTS_START( amazon ) | |
| 403 | static INPUT_PORTS_START( amazon ) | |
| 404 | 404 | PORT_START_TAG("IN0") |
| 405 | 405 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 406 | 406 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 474 | 474 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 475 | 475 | INPUT_PORTS_END |
| 476 | 476 | |
| 477 | INPUT_PORTS_START( horekid ) | |
| 477 | static INPUT_PORTS_START( horekid ) | |
| 478 | 478 | PORT_START_TAG("DSW") |
| 479 | 479 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Lives ) ) |
| 480 | 480 | PORT_DIPSETTING( 0x0003, "3" ) |
| r1238 | r1239 | |
|---|---|---|
| 262 | 262 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ |
| 263 | 263 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 264 | 264 | |
| 265 | INPUT_PORTS_START( reelfun ) | |
| 265 | static INPUT_PORTS_START( reelfun ) | |
| 266 | 266 | PORT_START |
| 267 | 267 | PORT_DIPNAME( 0x07, 0x01, "Coinage Multiplier" ) |
| 268 | 268 | PORT_DIPSETTING( 0x07, "7" ) |
| r1238 | r1239 | |
| 292 | 292 | REELFUN_STANDARD_INPUT |
| 293 | 293 | INPUT_PORTS_END |
| 294 | 294 | |
| 295 | INPUT_PORTS_START( findout ) | |
| 295 | static INPUT_PORTS_START( findout ) | |
| 296 | 296 | PORT_START /* DSW A */ |
| 297 | 297 | PORT_DIPNAME( 0x07, 0x01, DEF_STR( Coinage ) ) |
| 298 | 298 | PORT_DIPSETTING( 0x07, DEF_STR( 7C_1C ) ) |
| r1238 | r1239 | |
| 322 | 322 | REELFUN_STANDARD_INPUT |
| 323 | 323 | INPUT_PORTS_END |
| 324 | 324 | |
| 325 | INPUT_PORTS_START( gt103 ) | |
| 325 | static INPUT_PORTS_START( gt103 ) | |
| 326 | 326 | PORT_START /* DSW A */ |
| 327 | 327 | PORT_DIPNAME( 0x07, 0x01, "Coinage Multiplier" ) |
| 328 | 328 | PORT_DIPSETTING( 0x07, "7" ) |
| r1238 | r1239 | |
| 352 | 352 | TRIVIA_STANDARD_INPUT |
| 353 | 353 | INPUT_PORTS_END |
| 354 | 354 | |
| 355 | INPUT_PORTS_START( gt103a ) | |
| 355 | static INPUT_PORTS_START( gt103a ) | |
| 356 | 356 | PORT_START_TAG ("DSWA") |
| 357 | 357 | PORT_DIPNAME( 0x03, 0x01, "Questions" ) |
| 358 | 358 | PORT_DIPSETTING( 0x00, "4" ) |
| r1238 | r1239 | |
| 401 | 401 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 402 | 402 | INPUT_PORTS_END |
| 403 | 403 | |
| 404 | INPUT_PORTS_START( quiz ) | |
| 404 | static INPUT_PORTS_START( quiz ) | |
| 405 | 405 | PORT_INCLUDE( gt103a ) |
| 406 | 406 | |
| 407 | 407 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 414 | 414 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* no tickets */ |
| 415 | 415 | INPUT_PORTS_END |
| 416 | 416 | |
| 417 | INPUT_PORTS_START( gt507uk ) | |
| 417 | static INPUT_PORTS_START( gt507uk ) | |
| 418 | 418 | PORT_START /* DSW A */ |
| 419 | 419 | PORT_DIPNAME( 0x01, 0x00, "If Ram Error" ) |
| 420 | 420 | PORT_DIPSETTING( 0x01, "Freeze" ) |
| r1238 | r1239 | |
|---|---|---|
| 54 | 54 | ADDRESS_MAP_END |
| 55 | 55 | |
| 56 | 56 | |
| 57 | INPUT_PORTS_START( minivadr ) | |
| 57 | static INPUT_PORTS_START( minivadr ) | |
| 58 | 58 | PORT_START |
| 59 | 59 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) |
| 60 | 60 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) |
| r1238 | r1239 | |
|---|---|---|
| 103 | 103 | AM_RANGE(0x81, 0x81) AM_WRITE(AY8910_control_port_1_w) |
| 104 | 104 | ADDRESS_MAP_END |
| 105 | 105 | |
| 106 | INPUT_PORTS_START( mouser ) | |
| 106 | static INPUT_PORTS_START( mouser ) | |
| 107 | 107 | PORT_START |
| 108 | 108 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 109 | 109 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| r1238 | r1239 | |
|---|---|---|
| 413 | 413 | INPUT PORTS (dips in eprom) |
| 414 | 414 | ***********************************************************/ |
| 415 | 415 | |
| 416 | INPUT_PORTS_START( undrfire ) | |
| 416 | static INPUT_PORTS_START( undrfire ) | |
| 417 | 417 | PORT_START_TAG("IN0") |
| 418 | 418 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 419 | 419 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 279 | 279 | AM_RANGE(0xc0, 0xc0) AM_WRITE(portc0_w) // possibly playfield row selection for writing and/or collisions |
| 280 | 280 | ADDRESS_MAP_END |
| 281 | 281 | |
| 282 | INPUT_PORTS_START( malzak ) | |
| 282 | static INPUT_PORTS_START( malzak ) | |
| 283 | 283 | |
| 284 | 284 | /* Malzak has an 8-way stick |
| 285 | 285 | and only one button (firing and bomb dropping on the same button) */ |
| r1238 | r1239 | |
| 302 | 302 | |
| 303 | 303 | INPUT_PORTS_END |
| 304 | 304 | |
| 305 | INPUT_PORTS_START( malzak2 ) | |
| 305 | static INPUT_PORTS_START( malzak2 ) | |
| 306 | 306 | |
| 307 | 307 | /* Same as Malzak, but with additional POT switch, and |
| 308 | 308 | possibly a reset button too. */ |
| r1238 | r1239 | |
|---|---|---|
| 1244 | 1244 | |
| 1245 | 1245 | */ |
| 1246 | 1246 | |
| 1247 | INPUT_PORTS_START( captaven ) | |
| 1247 | static INPUT_PORTS_START( captaven ) | |
| 1248 | 1248 | PORT_START |
| 1249 | 1249 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1250 | 1250 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1350 | 1350 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1351 | 1351 | INPUT_PORTS_END |
| 1352 | 1352 | |
| 1353 | INPUT_PORTS_START( fghthist ) | |
| 1353 | static INPUT_PORTS_START( fghthist ) | |
| 1354 | 1354 | PORT_START |
| 1355 | 1355 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 1356 | 1356 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 1388 | 1388 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1389 | 1389 | INPUT_PORTS_END |
| 1390 | 1390 | |
| 1391 | INPUT_PORTS_START( dragngun ) | |
| 1391 | static INPUT_PORTS_START( dragngun ) | |
| 1392 | 1392 | PORT_START |
| 1393 | 1393 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1394 | 1394 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
| 1475 | 1475 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_SENSITIVITY(20) PORT_KEYDELTA(25) PORT_PLAYER(2) |
| 1476 | 1476 | INPUT_PORTS_END |
| 1477 | 1477 | |
| 1478 | INPUT_PORTS_START( lockload ) | |
| 1478 | static INPUT_PORTS_START( lockload ) | |
| 1479 | 1479 | PORT_START |
| 1480 | 1480 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1481 | 1481 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
| 1556 | 1556 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(20) PORT_KEYDELTA(25) PORT_PLAYER(2) |
| 1557 | 1557 | INPUT_PORTS_END |
| 1558 | 1558 | |
| 1559 | INPUT_PORTS_START( tattass ) | |
| 1559 | static INPUT_PORTS_START( tattass ) | |
| 1560 | 1560 | PORT_START |
| 1561 | 1561 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1562 | 1562 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1594 | 1594 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1595 | 1595 | INPUT_PORTS_END |
| 1596 | 1596 | |
| 1597 | INPUT_PORTS_START( nslasher ) | |
| 1597 | static INPUT_PORTS_START( nslasher ) | |
| 1598 | 1598 | PORT_START |
| 1599 | 1599 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1600 | 1600 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 73 | 73 | * |
| 74 | 74 | *************************************/ |
| 75 | 75 | |
| 76 | INPUT_PORTS_START( vertigo ) | |
| 76 | static INPUT_PORTS_START( vertigo ) | |
| 77 | 77 | PORT_START_TAG("IN0") |
| 78 | 78 | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) |
| 79 | 79 |
| r1238 | r1239 | |
|---|---|---|
| 185 | 185 | * |
| 186 | 186 | *************************************/ |
| 187 | 187 | |
| 188 | INPUT_PORTS_START( mk4 ) | |
| 188 | static INPUT_PORTS_START( mk4 ) | |
| 189 | 189 | PORT_START /* DS1 */ |
| 190 | 190 | PORT_DIPNAME( 0x0001, 0x0001, "Coinage Source" ) |
| 191 | 191 | PORT_DIPSETTING( 0x0001, "Dipswitch" ) |
| r1238 | r1239 | |
| 287 | 287 | INPUT_PORTS_END |
| 288 | 288 | |
| 289 | 289 | |
| 290 | INPUT_PORTS_START( invasn ) | |
| 290 | static INPUT_PORTS_START( invasn ) | |
| 291 | 291 | PORT_START /* DS1 */ |
| 292 | 292 | PORT_DIPNAME( 0x0001, 0x0001, "Coinage Source" ) |
| 293 | 293 | PORT_DIPSETTING( 0x0001, "Dipswitch" ) |
| r1238 | r1239 | |
| 392 | 392 | INPUT_PORTS_END |
| 393 | 393 | |
| 394 | 394 | |
| 395 | INPUT_PORTS_START( crusnexo ) | |
| 395 | static INPUT_PORTS_START( crusnexo ) | |
| 396 | 396 | PORT_START /* DS1 */ |
| 397 | 397 | PORT_DIPNAME( 0x0001, 0x0001, "Game Type" ) /* Manual states "*DIP 1, Switch 1 MUST be set */ |
| 398 | 398 | PORT_DIPSETTING( 0x0001, "Dedicated" ) /* to OFF position for proper operation" */ |
| r1238 | r1239 | |
| 494 | 494 | INPUT_PORTS_END |
| 495 | 495 | |
| 496 | 496 | |
| 497 | INPUT_PORTS_START( thegrid ) | |
| 497 | static INPUT_PORTS_START( thegrid ) | |
| 498 | 498 | PORT_START /* DS1 */ |
| 499 | 499 | PORT_DIPNAME( 0x0001, 0x0001, "Show Blood" ) |
| 500 | 500 | PORT_DIPSETTING( 0x0001, DEF_STR( Off )) |
| r1238 | r1239 | |
| 689 | 689 | ROM_REGION32_LE( 0x1800000, REGION_USER1, 0 ) |
| 690 | 690 | ROM_LOAD32_WORD( "mk4_l2.1.u10", 0x000000, 0x200000, CRC(42d0f1c9) SHA1(5ac0ded8bf6e756319be2691e3b555eac079ebdc) ) |
| 691 | 691 | ROM_LOAD32_WORD( "mk4_l2.1.u11", 0x000002, 0x200000, CRC(6e21b243) SHA1(6d4768a5972db05c1409e0d16e79df9eff8918a0) ) |
| 692 | ROM_LOAD32_WORD( "mk4_l3.12", 0x0400000, 0x200000, CRC(7816c07f) SHA1(da94b4391e671f915c61b5eb9bece4acb3382e31) ) | |
| 693 | ROM_LOAD32_WORD( "mk4_l3.13", 0x0400002, 0x200000, CRC(b3c237cd) SHA1(9e71e60cc92c17524f85f36543c174ca138104cd) ) | |
| 694 | ROM_LOAD32_WORD( "mk4_l3.14", 0x0800000, 0x200000, CRC(fd33eb1a) SHA1(59d9d2e5251679d19cab031f51731c85f429ba18) ) | |
| 695 | ROM_LOAD32_WORD( "mk4_l3.15", 0x0800002, 0x200000, CRC(b907518f) SHA1(cfb56538746895bdca779957fec6a872019b23c3) ) | |
| 696 | ROM_LOAD32_WORD( "mk4_l3.16", 0x0c00000, 0x200000, CRC(24371d57) SHA1(c90134b17c23a182d391d1679bf457d251e641f7) ) | |
| 697 | ROM_LOAD32_WORD( "mk4_l3.17", 0x0c00002, 0x200000, CRC(3a1a082c) SHA1(5f8e8ce760d8ebadd1240ef08f1382a37cf11d0b) ) | |
| 692 | ROM_LOAD32_WORD( "mk4_l3.u12", 0x0400000, 0x200000, CRC(7816c07f) SHA1(da94b4391e671f915c61b5eb9bece4acb3382e31) ) | |
| 693 | ROM_LOAD32_WORD( "mk4_l3.u13", 0x0400002, 0x200000, CRC(b3c237cd) SHA1(9e71e60cc92c17524f85f36543c174ca138104cd) ) | |
| 694 | ROM_LOAD32_WORD( "mk4_l3.u14", 0x0800000, 0x200000, CRC(fd33eb1a) SHA1(59d9d2e5251679d19cab031f51731c85f429ba18) ) | |
| 695 | ROM_LOAD32_WORD( "mk4_l3.u15", 0x0800002, 0x200000, CRC(b907518f) SHA1(cfb56538746895bdca779957fec6a872019b23c3) ) | |
| 696 | ROM_LOAD32_WORD( "mk4_l3.u16", 0x0c00000, 0x200000, CRC(24371d57) SHA1(c90134b17c23a182d391d1679bf457d251e641f7) ) | |
| 697 | ROM_LOAD32_WORD( "mk4_l3.u17", 0x0c00002, 0x200000, CRC(3a1a082c) SHA1(5f8e8ce760d8ebadd1240ef08f1382a37cf11d0b) ) | |
| 698 | 698 | ROM_END |
| 699 | 699 | |
| 700 | 700 |
| r1238 | r1239 | |
|---|---|---|
| 580 | 580 | * |
| 581 | 581 | *************************************/ |
| 582 | 582 | |
| 583 | INPUT_PORTS_START( grchamp ) | |
| 583 | static INPUT_PORTS_START( grchamp ) | |
| 584 | 584 | |
| 585 | 585 | PORT_START_TAG("TILT") |
| 586 | 586 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
|---|---|---|
| 543 | 543 | PORT_DIPSETTING( 0x00, "5" ) |
| 544 | 544 | |
| 545 | 545 | |
| 546 | INPUT_PORTS_START( argus ) | |
| 546 | static INPUT_PORTS_START( argus ) | |
| 547 | 547 | ARGUS_IN0 /* System control */ |
| 548 | 548 | |
| 549 | 549 | ARGUS_IN1 /* Player 1 control */ |
| r1238 | r1239 | |
| 579 | 579 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) |
| 580 | 580 | INPUT_PORTS_END |
| 581 | 581 | |
| 582 | INPUT_PORTS_START( valtric ) | |
| 582 | static INPUT_PORTS_START( valtric ) | |
| 583 | 583 | |
| 584 | 584 | ARGUS_IN0 |
| 585 | 585 | |
| r1238 | r1239 | |
| 616 | 616 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) |
| 617 | 617 | INPUT_PORTS_END |
| 618 | 618 | |
| 619 | INPUT_PORTS_START( butasan ) | |
| 619 | static INPUT_PORTS_START( butasan ) | |
| 620 | 620 | PORT_START_TAG("IN0") |
| 621 | 621 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 622 | 622 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 682 | 682 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) |
| 683 | 683 | INPUT_PORTS_END |
| 684 | 684 | |
| 685 | INPUT_PORTS_START( bombsa ) | |
| 685 | static INPUT_PORTS_START( bombsa ) | |
| 686 | 686 | |
| 687 | 687 | PORT_START_TAG("IN0") |
| 688 | 688 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
|---|---|---|
| 162 | 162 | |
| 163 | 163 | /***************************************************************************/ |
| 164 | 164 | |
| 165 | INPUT_PORTS_START( lkage ) | |
| 165 | static INPUT_PORTS_START( lkage ) | |
| 166 | 166 | PORT_START_TAG("DSW1") |
| 167 | 167 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Bonus_Life ) ) |
| 168 | 168 | PORT_DIPSETTING( 0x03, "30000 100000" ) /* unverified */ |
| r1238 | r1239 | |
|---|---|---|
| 240 | 240 | * |
| 241 | 241 | *************************************/ |
| 242 | 242 | |
| 243 | INPUT_PORTS_START( superdq ) | |
| 243 | static INPUT_PORTS_START( superdq ) | |
| 244 | 244 | PORT_START_TAG("IN0") |
| 245 | 245 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 246 | 246 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) |
| r1238 | r1239 | |
|---|---|---|
| 122 | 122 | AM_RANGE(0xd000, 0xd00f) AM_READWRITE(seibu_main_word_r, seibu_main_word_w) |
| 123 | 123 | ADDRESS_MAP_END |
| 124 | 124 | |
| 125 | INPUT_PORTS_START( goodejan ) | |
| 125 | static INPUT_PORTS_START( goodejan ) | |
| 126 | 126 | /* Must be port 0: coin inputs read through sound cpu */ |
| 127 | 127 | SEIBU_COIN_INPUTS |
| 128 | 128 |
| r1238 | r1239 | |
|---|---|---|
| 214 | 214 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(player) \ |
| 215 | 215 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 216 | 216 | |
| 217 | INPUT_PORTS_START( bestleag ) | |
| 217 | static INPUT_PORTS_START( bestleag ) | |
| 218 | 218 | PORT_START /* System inputs */ |
| 219 | 219 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 220 | 220 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 464 | 464 | ADDRESS_MAP_END |
| 465 | 465 | |
| 466 | 466 | |
| 467 | INPUT_PORTS_START( shadoww ) | |
| 467 | static INPUT_PORTS_START( shadoww ) | |
| 468 | 468 | PORT_START /* System Inputs */ |
| 469 | 469 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 470 | 470 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 544 | 544 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 545 | 545 | INPUT_PORTS_END |
| 546 | 546 | |
| 547 | INPUT_PORTS_START( wildfang ) | |
| 547 | static INPUT_PORTS_START( wildfang ) | |
| 548 | 548 | PORT_START /* System Inputs */ |
| 549 | 549 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 550 | 550 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 625 | 625 | PORT_DIPSETTING( 0x0000, "Tecmo Knight" ) |
| 626 | 626 | INPUT_PORTS_END |
| 627 | 627 | |
| 628 | INPUT_PORTS_START( tknight ) | |
| 628 | static INPUT_PORTS_START( tknight ) | |
| 629 | 629 | PORT_START /* System Inputs */ |
| 630 | 630 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 631 | 631 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 705 | 705 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 706 | 706 | INPUT_PORTS_END |
| 707 | 707 | |
| 708 | INPUT_PORTS_START( raiga ) | |
| 708 | static INPUT_PORTS_START( raiga ) | |
| 709 | 709 | PORT_START /* System Inputs */ |
| 710 | 710 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 711 | 711 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 794 | 794 | PORT_DIPSETTING( 0x0000, DEF_STR( None ) ) |
| 795 | 795 | INPUT_PORTS_END |
| 796 | 796 | |
| 797 | INPUT_PORTS_START( drgnbowl ) | |
| 797 | static INPUT_PORTS_START( drgnbowl ) | |
| 798 | 798 | PORT_START /* System Inputs */ |
| 799 | 799 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 800 | 800 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 254 | 254 | 2 Sets of Dipsiwtches |
| 255 | 255 | *******************************************************************************/ |
| 256 | 256 | |
| 257 | INPUT_PORTS_START( ninjakid ) | |
| 257 | static INPUT_PORTS_START( ninjakid ) | |
| 258 | 258 | PORT_START_TAG("IN0") /* 0xa000 */ |
| 259 | 259 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY /* "XPOS1" */ |
| 260 | 260 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| r1238 | r1239 | |
|---|---|---|
| 535 | 535 | * |
| 536 | 536 | *************************************/ |
| 537 | 537 | |
| 538 | INPUT_PORTS_START( zaxxon ) | |
| 538 | static INPUT_PORTS_START( zaxxon ) | |
| 539 | 539 | PORT_START_TAG("SW00") |
| 540 | 540 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 541 | 541 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 621 | 621 | INPUT_PORTS_END |
| 622 | 622 | |
| 623 | 623 | |
| 624 | INPUT_PORTS_START( szaxxon ) | |
| 624 | static INPUT_PORTS_START( szaxxon ) | |
| 625 | 625 | PORT_INCLUDE(zaxxon) |
| 626 | 626 | |
| 627 | 627 | PORT_MODIFY("DSW02") |
| r1238 | r1239 | |
| 632 | 632 | INPUT_PORTS_END |
| 633 | 633 | |
| 634 | 634 | |
| 635 | INPUT_PORTS_START( futspy ) | |
| 635 | static INPUT_PORTS_START( futspy ) | |
| 636 | 636 | PORT_INCLUDE(zaxxon) |
| 637 | 637 | |
| 638 | 638 | PORT_MODIFY("SW00") |
| r1238 | r1239 | |
| 706 | 706 | INPUT_PORTS_END |
| 707 | 707 | |
| 708 | 708 | |
| 709 | INPUT_PORTS_START( razmataz ) | |
| 709 | static INPUT_PORTS_START( razmataz ) | |
| 710 | 710 | PORT_START_TAG("SW00") |
| 711 | 711 | PORT_BIT( 0xff, 0x00, IPT_SPECIAL) PORT_CUSTOM(razmataz_dial_r, 0) |
| 712 | 712 | |
| r1238 | r1239 | |
| 792 | 792 | INPUT_PORTS_END |
| 793 | 793 | |
| 794 | 794 | |
| 795 | INPUT_PORTS_START( ixion ) | |
| 795 | static INPUT_PORTS_START( ixion ) | |
| 796 | 796 | PORT_INCLUDE(zaxxon) |
| 797 | 797 | |
| 798 | 798 | PORT_MODIFY("SW00") |
| r1238 | r1239 | |
| 856 | 856 | INPUT_PORTS_END |
| 857 | 857 | |
| 858 | 858 | |
| 859 | INPUT_PORTS_START( congo ) | |
| 859 | static INPUT_PORTS_START( congo ) | |
| 860 | 860 | PORT_INCLUDE(zaxxon) |
| 861 | 861 | |
| 862 | 862 | PORT_MODIFY("SW00") |
| r1238 | r1239 | |
|---|---|---|
| 212 | 212 | AM_RANGE(0x04001000, 0x04001fff) AM_RAM AM_BASE(&rsp_imem) AM_SHARE(2) |
| 213 | 213 | ADDRESS_MAP_END |
| 214 | 214 | |
| 215 | INPUT_PORTS_START( aleck64 ) | |
| 215 | static INPUT_PORTS_START( aleck64 ) | |
| 216 | 216 | PORT_START_TAG("P1") |
| 217 | 217 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) // Button A |
| 218 | 218 | PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) // Button B |
| r1238 | r1239 | |
| 295 | 295 | PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 296 | 296 | INPUT_PORTS_END |
| 297 | 297 | |
| 298 | INPUT_PORTS_START( mtetrisc ) | |
| 298 | static INPUT_PORTS_START( mtetrisc ) | |
| 299 | 299 | // The basic N64 controls are unused in this game |
| 300 | 300 | PORT_START_TAG("P1") |
| 301 | 301 | PORT_START_TAG("P1_ANALOG_X") |
| r1238 | r1239 | |
| 329 | 329 | |
| 330 | 330 | INPUT_PORTS_END |
| 331 | 331 | |
| 332 | INPUT_PORTS_START( starsldr ) | |
| 332 | static INPUT_PORTS_START( starsldr ) | |
| 333 | 333 | PORT_START_TAG("P1") |
| 334 | 334 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) // Button A |
| 335 | 335 | PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) // Button B |
| r1238 | r1239 | |
|---|---|---|
| 368 | 368 | |
| 369 | 369 | |
| 370 | 370 | |
| 371 | INPUT_PORTS_START( trackfld ) | |
| 371 | static INPUT_PORTS_START( trackfld ) | |
| 372 | 372 | PORT_START_TAG("IN0") |
| 373 | 373 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 374 | 374 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 463 | 463 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 464 | 464 | INPUT_PORTS_END |
| 465 | 465 | |
| 466 | INPUT_PORTS_START( atlantol ) | |
| 466 | static INPUT_PORTS_START( atlantol ) | |
| 467 | 467 | PORT_START_TAG("IN0") |
| 468 | 468 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 469 | 469 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 558 | 558 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 559 | 559 | INPUT_PORTS_END |
| 560 | 560 | |
| 561 | INPUT_PORTS_START( mastkin ) | |
| 561 | static INPUT_PORTS_START( mastkin ) | |
| 562 | 562 | PORT_START_TAG("IN0") |
| 563 | 563 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 564 | 564 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 637 | 637 | // PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) |
| 638 | 638 | INPUT_PORTS_END |
| 639 | 639 | |
| 640 | INPUT_PORTS_START( wizzquiz ) | |
| 640 | static INPUT_PORTS_START( wizzquiz ) | |
| 641 | 641 | PORT_START |
| 642 | 642 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 643 | 643 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 730 | 730 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 731 | 731 | INPUT_PORTS_END |
| 732 | 732 | |
| 733 | INPUT_PORTS_START( reaktor ) | |
| 733 | static INPUT_PORTS_START( reaktor ) | |
| 734 | 734 | PORT_START_TAG("IN0") |
| 735 | 735 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 736 | 736 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 196 | 196 | ADDRESS_MAP_END |
| 197 | 197 | |
| 198 | 198 | |
| 199 | INPUT_PORTS_START( fastfred ) | |
| 199 | static INPUT_PORTS_START( fastfred ) | |
| 200 | 200 | PORT_START_TAG("IN0") |
| 201 | 201 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 202 | 202 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 248 | 248 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) |
| 249 | 249 | INPUT_PORTS_END |
| 250 | 250 | |
| 251 | INPUT_PORTS_START( flyboy ) | |
| 251 | static INPUT_PORTS_START( flyboy ) | |
| 252 | 252 | PORT_START_TAG("IN0") |
| 253 | 253 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 254 | 254 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 293 | 293 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) |
| 294 | 294 | INPUT_PORTS_END |
| 295 | 295 | |
| 296 | INPUT_PORTS_START( jumpcoas ) | |
| 296 | static INPUT_PORTS_START( jumpcoas ) | |
| 297 | 297 | PORT_START_TAG("DSW0") |
| 298 | 298 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) ) |
| 299 | 299 | PORT_DIPSETTING( 0x03, DEF_STR( 6C_1C ) ) |
| r1238 | r1239 | |
| 340 | 340 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL |
| 341 | 341 | INPUT_PORTS_END |
| 342 | 342 | |
| 343 | INPUT_PORTS_START( boggy84 ) | |
| 343 | static INPUT_PORTS_START( boggy84 ) | |
| 344 | 344 | PORT_START_TAG("DSW0") |
| 345 | 345 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) ) |
| 346 | 346 | PORT_DIPSETTING( 0x03, DEF_STR( 6C_1C ) ) |
| r1238 | r1239 | |
| 411 | 411 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 412 | 412 | INPUT_PORTS_END |
| 413 | 413 | |
| 414 | INPUT_PORTS_START( redrobin ) | |
| 414 | static INPUT_PORTS_START( redrobin ) | |
| 415 | 415 | PORT_START_TAG("IN0") |
| 416 | 416 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 417 | 417 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 451 | 451 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) /* monsters */ |
| 452 | 452 | INPUT_PORTS_END |
| 453 | 453 | |
| 454 | INPUT_PORTS_START( imago ) | |
| 454 | static INPUT_PORTS_START( imago ) | |
| 455 | 455 | PORT_START_TAG("IN0") |
| 456 | 456 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 457 | 457 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| r1238 | r1239 | |
|---|---|---|
| 409 | 409 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| 410 | 410 | |
| 411 | 411 | |
| 412 | INPUT_PORTS_START( karnov ) | |
| 412 | static INPUT_PORTS_START( karnov ) | |
| 413 | 413 | INPUTS |
| 414 | 414 | PORT_START_TAG("DSW1") |
| 415 | 415 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:3,4") |
| r1238 | r1239 | |
| 461 | 461 | PORT_DIPSETTING( 0x00, "Fast" ) |
| 462 | 462 | INPUT_PORTS_END |
| 463 | 463 | |
| 464 | INPUT_PORTS_START( wndrplnt ) | |
| 464 | static INPUT_PORTS_START( wndrplnt ) | |
| 465 | 465 | INPUTS |
| 466 | 466 | |
| 467 | 467 | PORT_START_TAG("DSW1") /* Dip switch bank 1 */ |
| r1238 | r1239 | |
| 513 | 513 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 514 | 514 | INPUT_PORTS_END |
| 515 | 515 | |
| 516 | INPUT_PORTS_START( chelnov ) | |
| 516 | static INPUT_PORTS_START( chelnov ) | |
| 517 | 517 | PORT_START_TAG("IN0") /* Player 1 controls */ |
| 518 | 518 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 519 | 519 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 384 | 384 | AM_RANGE(0x01, 0x01) AM_WRITE(msm5205_w) |
| 385 | 385 | ADDRESS_MAP_END |
| 386 | 386 | |
| 387 | INPUT_PORTS_START( sectionz ) | |
| 387 | static INPUT_PORTS_START( sectionz ) | |
| 388 | 388 | PORT_START /* IN0 */ |
| 389 | 389 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 390 | 390 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 461 | 461 | PORT_DIPSETTING( 0xc0, DEF_STR( Cocktail ) ) |
| 462 | 462 | INPUT_PORTS_END |
| 463 | 463 | |
| 464 | INPUT_PORTS_START( lwings ) | |
| 464 | static INPUT_PORTS_START( lwings ) | |
| 465 | 465 | PORT_START /* IN0 */ |
| 466 | 466 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 467 | 467 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 541 | 541 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) |
| 542 | 542 | INPUT_PORTS_END |
| 543 | 543 | |
| 544 | INPUT_PORTS_START( trojan ) | |
| 544 | static INPUT_PORTS_START( trojan ) | |
| 545 | 545 | PORT_START /* IN0 */ |
| 546 | 546 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 547 | 547 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 621 | 621 | INPUT_PORTS_END |
| 622 | 622 | |
| 623 | 623 | /* Trojan with level selection - starting level dip switches not used */ |
| 624 | INPUT_PORTS_START( trojanls ) | |
| 624 | static INPUT_PORTS_START( trojanls ) | |
| 625 | 625 | PORT_START /* IN0 */ |
| 626 | 626 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 627 | 627 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 701 | 701 | PORT_DIPSETTING( 0x80, DEF_STR( Yes ) ) |
| 702 | 702 | INPUT_PORTS_END |
| 703 | 703 | |
| 704 | INPUT_PORTS_START( avengers ) | |
| 704 | static INPUT_PORTS_START( avengers ) | |
| 705 | 705 | PORT_START /* IN0 */ |
| 706 | 706 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 707 | 707 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 262 | 262 | * |
| 263 | 263 | *************************************/ |
| 264 | 264 | |
| 265 | INPUT_PORTS_START( xtheball ) | |
| 265 | static INPUT_PORTS_START( xtheball ) | |
| 266 | 266 | PORT_START |
| 267 | 267 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 268 | 268 | PORT_DIPNAME( 0x0700, 0x0000, "Target Tickets") |
| r1238 | r1239 | |
|---|---|---|
| 267 | 267 | ADDRESS_MAP_END |
| 268 | 268 | |
| 269 | 269 | |
| 270 | INPUT_PORTS_START( a600xl ) | |
| 270 | static INPUT_PORTS_START( a600xl ) | |
| 271 | 271 | |
| 272 | 272 | PORT_START_TAG("console") /* IN0 console keys & switch settings */ |
| 273 | 273 | PORT_BIT(0x04, 0x04, IPT_KEYBOARD) PORT_NAME("Option") PORT_CODE(KEYCODE_F2) |
| r1238 | r1239 | |
|---|---|---|
| 488 | 488 | |
| 489 | 489 | |
| 490 | 490 | |
| 491 | INPUT_PORTS_START( punchout ) | |
| 491 | static INPUT_PORTS_START( punchout ) | |
| 492 | 492 | PORT_START /* IN0 */ |
| 493 | 493 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 494 | 494 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 559 | 559 | INPUT_PORTS_END |
| 560 | 560 | |
| 561 | 561 | /* same as punchout with additional duck button */ |
| 562 | INPUT_PORTS_START( spnchout ) | |
| 562 | static INPUT_PORTS_START( spnchout ) | |
| 563 | 563 | PORT_START /* IN0 */ |
| 564 | 564 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 565 | 565 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 629 | 629 | PORT_START |
| 630 | 630 | INPUT_PORTS_END |
| 631 | 631 | |
| 632 | INPUT_PORTS_START( armwrest ) | |
| 632 | static INPUT_PORTS_START( armwrest ) | |
| 633 | 633 | PORT_START /* IN0 */ |
| 634 | 634 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 635 | 635 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 1724 | 1724 | * |
| 1725 | 1725 | *************************************/ |
| 1726 | 1726 | |
| 1727 | INPUT_PORTS_START( vegas_common ) | |
| 1727 | static INPUT_PORTS_START( vegas_common ) | |
| 1728 | 1728 | PORT_START_TAG("DIPS") |
| 1729 | 1729 | PORT_DIPNAME( 0x0001, 0x0001, "Unknown0001" ) |
| 1730 | 1730 | PORT_DIPSETTING( 0x0001, DEF_STR( Off )) |
| r1238 | r1239 | |
| 1837 | 1837 | * |
| 1838 | 1838 | *************************************/ |
| 1839 | 1839 | |
| 1840 | INPUT_PORTS_START( gauntleg ) | |
| 1840 | static INPUT_PORTS_START( gauntleg ) | |
| 1841 | 1841 | PORT_INCLUDE(vegas_common) |
| 1842 | 1842 | |
| 1843 | 1843 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 1863 | 1863 | INPUT_PORTS_END |
| 1864 | 1864 | |
| 1865 | 1865 | |
| 1866 | INPUT_PORTS_START( gauntdl ) | |
| 1866 | static INPUT_PORTS_START( gauntdl ) | |
| 1867 | 1867 | PORT_INCLUDE(vegas_common) |
| 1868 | 1868 | |
| 1869 | 1869 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 1895 | 1895 | INPUT_PORTS_END |
| 1896 | 1896 | |
| 1897 | 1897 | |
| 1898 | INPUT_PORTS_START( tenthdeg ) | |
| 1898 | static INPUT_PORTS_START( tenthdeg ) | |
| 1899 | 1899 | PORT_INCLUDE(vegas_common) |
| 1900 | 1900 | |
| 1901 | 1901 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 1919 | 1919 | INPUT_PORTS_END |
| 1920 | 1920 | |
| 1921 | 1921 | |
| 1922 | INPUT_PORTS_START( warfa ) | |
| 1922 | static INPUT_PORTS_START( warfa ) | |
| 1923 | 1923 | PORT_INCLUDE(vegas_common) |
| 1924 | 1924 | |
| 1925 | 1925 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 1963 | 1963 | INPUT_PORTS_END |
| 1964 | 1964 | |
| 1965 | 1965 | |
| 1966 | INPUT_PORTS_START( roadburn ) | |
| 1966 | static INPUT_PORTS_START( roadburn ) | |
| 1967 | 1967 | PORT_INCLUDE(vegas_common) |
| 1968 | 1968 | |
| 1969 | 1969 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 2007 | 2007 | INPUT_PORTS_END |
| 2008 | 2008 | |
| 2009 | 2009 | |
| 2010 | INPUT_PORTS_START( nbashowt ) | |
| 2010 | static INPUT_PORTS_START( nbashowt ) | |
| 2011 | 2011 | PORT_INCLUDE(vegas_common) |
| 2012 | 2012 | |
| 2013 | 2013 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 2060 | 2060 | INPUT_PORTS_END |
| 2061 | 2061 | |
| 2062 | 2062 | |
| 2063 | INPUT_PORTS_START( sf2049 ) | |
| 2063 | static INPUT_PORTS_START( sf2049 ) | |
| 2064 | 2064 | PORT_INCLUDE(vegas_common) |
| 2065 | 2065 | |
| 2066 | 2066 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 2103 | 2103 | INPUT_PORTS_END |
| 2104 | 2104 | |
| 2105 | 2105 | |
| 2106 | INPUT_PORTS_START( sf2049se ) | |
| 2106 | static INPUT_PORTS_START( sf2049se ) | |
| 2107 | 2107 | PORT_INCLUDE(vegas_common) |
| 2108 | 2108 | |
| 2109 | 2109 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 2134 | 2134 | INPUT_PORTS_END |
| 2135 | 2135 | |
| 2136 | 2136 | |
| 2137 | INPUT_PORTS_START( sf2049te ) | |
| 2137 | static INPUT_PORTS_START( sf2049te ) | |
| 2138 | 2138 | PORT_INCLUDE(vegas_common) |
| 2139 | 2139 | |
| 2140 | 2140 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 2165 | 2165 | INPUT_PORTS_END |
| 2166 | 2166 | |
| 2167 | 2167 | |
| 2168 | INPUT_PORTS_START( cartfury ) | |
| 2168 | static INPUT_PORTS_START( cartfury ) | |
| 2169 | 2169 | PORT_INCLUDE(vegas_common) |
| 2170 | 2170 | |
| 2171 | 2171 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
|---|---|---|
| 87 | 87 | ADDRESS_MAP_END |
| 88 | 88 | |
| 89 | 89 | |
| 90 | INPUT_PORTS_START( kopunch ) | |
| 90 | static INPUT_PORTS_START( kopunch ) | |
| 91 | 91 | PORT_START |
| 92 | 92 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 93 | 93 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| r1238 | r1239 | |
|---|---|---|
| 227 | 227 | |
| 228 | 228 | |
| 229 | 229 | |
| 230 | INPUT_PORTS_START( rygar ) | |
| 230 | static INPUT_PORTS_START( rygar ) | |
| 231 | 231 | PORT_START /* IN0 bits 0-3 */ |
| 232 | 232 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 233 | 233 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| r1238 | r1239 | |
| 316 | 316 | PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 317 | 317 | INPUT_PORTS_END |
| 318 | 318 | |
| 319 | INPUT_PORTS_START( gemini ) | |
| 319 | static INPUT_PORTS_START( gemini ) | |
| 320 | 320 | PORT_START /* IN0 bits 0-3 */ |
| 321 | 321 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 322 | 322 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| r1238 | r1239 | |
| 408 | 408 | PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 409 | 409 | INPUT_PORTS_END |
| 410 | 410 | |
| 411 | INPUT_PORTS_START( silkworm ) | |
| 411 | static INPUT_PORTS_START( silkworm ) | |
| 412 | 412 | PORT_START /* IN0 bit 0-3 */ |
| 413 | 413 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 414 | 414 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 38 | 38 | ADDRESS_MAP_END |
| 39 | 39 | |
| 40 | 40 | |
| 41 | INPUT_PORTS_START( news ) | |
| 41 | static INPUT_PORTS_START( news ) | |
| 42 | 42 | PORT_START /* DSW */ |
| 43 | 43 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SWA:1,2") |
| 44 | 44 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
| 70 | 70 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 71 | 71 | INPUT_PORTS_END |
| 72 | 72 | |
| 73 | INPUT_PORTS_START( newsa ) | |
| 73 | static INPUT_PORTS_START( newsa ) | |
| 74 | 74 | PORT_START /* DSW */ |
| 75 | 75 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SWA:1,2") |
| 76 | 76 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 449 | 449 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) PORT_CONDITION("DSW2",0x0008,PORTCOND_EQUALS,0x0008) |
| 450 | 450 | |
| 451 | 451 | |
| 452 | INPUT_PORTS_START( galpanic ) | |
| 452 | static INPUT_PORTS_START( galpanic ) | |
| 453 | 453 | PORT_START_TAG("DSW1") |
| 454 | 454 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unused ) ) |
| 455 | 455 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 537 | 537 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 538 | 538 | INPUT_PORTS_END |
| 539 | 539 | |
| 540 | INPUT_PORTS_START( galpania ) | |
| 540 | static INPUT_PORTS_START( galpania ) | |
| 541 | 541 | PORT_START_TAG("DSW1") |
| 542 | 542 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unused ) ) |
| 543 | 543 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 616 | 616 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 617 | 617 | INPUT_PORTS_END |
| 618 | 618 | |
| 619 | INPUT_PORTS_START( fantasia ) | |
| 619 | static INPUT_PORTS_START( fantasia ) | |
| 620 | 620 | PORT_START |
| 621 | 621 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) |
| 622 | 622 | PORT_DIPSETTING( 0x0002, DEF_STR( Easy ) ) |
| r1238 | r1239 | |
| 683 | 683 | INPUT_PORTS_END |
| 684 | 684 | |
| 685 | 685 | /* Same as 'fantasia', but no "Service Mode" Dip Switch (and thus no "hidden" buttons) */ |
| 686 | INPUT_PORTS_START( missw96 ) | |
| 686 | static INPUT_PORTS_START( missw96 ) | |
| 687 | 687 | PORT_START |
| 688 | 688 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) |
| 689 | 689 | PORT_DIPSETTING( 0x0002, DEF_STR( Easy ) ) |
| r1238 | r1239 | |
| 751 | 751 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 752 | 752 | INPUT_PORTS_END |
| 753 | 753 | |
| 754 | INPUT_PORTS_START( galhustl ) | |
| 754 | static INPUT_PORTS_START( galhustl ) | |
| 755 | 755 | PORT_START |
| 756 | 756 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Lives ) ) |
| 757 | 757 | PORT_DIPSETTING( 0x0000, "6" ) |
| r1238 | r1239 | |
| 827 | 827 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 828 | 828 | INPUT_PORTS_END |
| 829 | 829 | |
| 830 | INPUT_PORTS_START( zipzap ) | |
| 830 | static INPUT_PORTS_START( zipzap ) | |
| 831 | 831 | PORT_START |
| 832 | 832 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) ) |
| 833 | 833 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 154 | 154 | |
| 155 | 155 | |
| 156 | 156 | |
| 157 | INPUT_PORTS_START( finalizr ) | |
| 157 | static INPUT_PORTS_START( finalizr ) | |
| 158 | 158 | PORT_START /* IN2 */ |
| 159 | 159 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 160 | 160 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 260 | 260 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 261 | 261 | INPUT_PORTS_END |
| 262 | 262 | |
| 263 | INPUT_PORTS_START( finalizb ) | |
| 263 | static INPUT_PORTS_START( finalizb ) | |
| 264 | 264 | PORT_START /* IN2 */ |
| 265 | 265 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 266 | 266 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 166 | 166 | * |
| 167 | 167 | *************************************/ |
| 168 | 168 | |
| 169 | INPUT_PORTS_START( shuuz ) | |
| 169 | static INPUT_PORTS_START( shuuz ) | |
| 170 | 170 | PORT_START |
| 171 | 171 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 172 | 172 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 191 | 191 | INPUT_PORTS_END |
| 192 | 192 | |
| 193 | 193 | |
| 194 | INPUT_PORTS_START( shuuz2 ) | |
| 194 | static INPUT_PORTS_START( shuuz2 ) | |
| 195 | 195 | PORT_START |
| 196 | 196 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 197 | 197 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 357 | 357 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) )\ |
| 358 | 358 | PORT_BIT( 0xe0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 359 | 359 | |
| 360 | INPUT_PORTS_START( cclimber ) | |
| 360 | static INPUT_PORTS_START( cclimber ) | |
| 361 | 361 | CCIN0 |
| 362 | 362 | CCIN1 |
| 363 | 363 | |
| r1238 | r1239 | |
| 388 | 388 | INPUT_PORTS_END |
| 389 | 389 | |
| 390 | 390 | /* Same as 'cclimber' but correct "Bonus Life" Dip Switch */ |
| 391 | INPUT_PORTS_START( cclimbrj ) | |
| 391 | static INPUT_PORTS_START( cclimbrj ) | |
| 392 | 392 | CCIN0 |
| 393 | 393 | CCIN1 |
| 394 | 394 | |
| r1238 | r1239 | |
| 444 | 444 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START2 )\ |
| 445 | 445 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 446 | 446 | |
| 447 | INPUT_PORTS_START( cannonb ) | |
| 447 | static INPUT_PORTS_START( cannonb ) | |
| 448 | 448 | PORT_START_TAG("IN0") |
| 449 | 449 | PORT_BIT( 0x07, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 450 | 450 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 487 | 487 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 488 | 488 | INPUT_PORTS_END |
| 489 | 489 | |
| 490 | INPUT_PORTS_START( ckong ) | |
| 490 | static INPUT_PORTS_START( ckong ) | |
| 491 | 491 | CKONGIN0 |
| 492 | 492 | CKONGIN1 |
| 493 | 493 | |
| r1238 | r1239 | |
| 519 | 519 | INPUT_PORTS_END |
| 520 | 520 | |
| 521 | 521 | /* Similar to normal Crazy Kong except for the lives per game */ |
| 522 | INPUT_PORTS_START( ckongb ) | |
| 522 | static INPUT_PORTS_START( ckongb ) | |
| 523 | 523 | CKONGIN0 |
| 524 | 524 | CKONGIN1 |
| 525 | 525 | |
| r1238 | r1239 | |
| 550 | 550 | CKONGIN2 |
| 551 | 551 | INPUT_PORTS_END |
| 552 | 552 | |
| 553 | INPUT_PORTS_START( rpatrolb ) | |
| 553 | static INPUT_PORTS_START( rpatrolb ) | |
| 554 | 554 | PORT_START_TAG("IN0") |
| 555 | 555 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL |
| 556 | 556 | PORT_BIT( 0x3e, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 642 | 642 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )\ |
| 643 | 643 | PORT_BIT( 0xfc, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 644 | 644 | |
| 645 | INPUT_PORTS_START( swimmer ) | |
| 645 | static INPUT_PORTS_START( swimmer ) | |
| 646 | 646 | SWIMIN0 |
| 647 | 647 | SWIMIN1 |
| 648 | 648 | SWIMDSW1 |
| r1238 | r1239 | |
| 667 | 667 | INPUT_PORTS_END |
| 668 | 668 | |
| 669 | 669 | /* Same as 'swimmer' but different "Difficulty" Dip Switch */ |
| 670 | INPUT_PORTS_START( swimmerb ) | |
| 670 | static INPUT_PORTS_START( swimmerb ) | |
| 671 | 671 | SWIMIN0 |
| 672 | 672 | SWIMIN1 |
| 673 | 673 | SWIMDSW1 |
| r1238 | r1239 | |
| 690 | 690 | SWIMIN4 |
| 691 | 691 | INPUT_PORTS_END |
| 692 | 692 | |
| 693 | INPUT_PORTS_START( guzzler ) | |
| 693 | static INPUT_PORTS_START( guzzler ) | |
| 694 | 694 | PORT_START_TAG("IN0") |
| 695 | 695 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL |
| 696 | 696 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL |
| r1238 | r1239 | |
|---|---|---|
| 116 | 116 | ADDRESS_MAP_END |
| 117 | 117 | |
| 118 | 118 | |
| 119 | INPUT_PORTS_START( xorworld ) | |
| 119 | static INPUT_PORTS_START( xorworld ) | |
| 120 | 120 | PORT_START // DSW0 |
| 121 | 121 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) ) |
| 122 | 122 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 174 | 174 | |
| 175 | 175 | /*** INPUT PORT **************************************************************/ |
| 176 | 176 | |
| 177 | INPUT_PORTS_START( speedspn ) | |
| 177 | static INPUT_PORTS_START( speedspn ) | |
| 178 | 178 | PORT_START |
| 179 | 179 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 180 | 180 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 145 | 145 | GFXDECODE_ENTRY( REGION_GFX2, 0x000000, layout8x8x2, 0, 0x1 ) |
| 146 | 146 | GFXDECODE_END |
| 147 | 147 | |
| 148 | INPUT_PORTS_START( cowrace ) | |
| 148 | static INPUT_PORTS_START( cowrace ) | |
| 149 | 149 | PORT_START // IN0 |
| 150 | 150 | INPUT_PORTS_END |
| 151 | 151 |
| r1238 | r1239 | |
|---|---|---|
| 135 | 135 | |
| 136 | 136 | ADDRESS_MAP_END |
| 137 | 137 | |
| 138 | INPUT_PORTS_START( koikoi ) | |
| 138 | static INPUT_PORTS_START( koikoi ) | |
| 139 | 139 | PORT_START /* DSW */ |
| 140 | 140 | PORT_DIPNAME( 0x03, 0x01, "Timer C" ) |
| 141 | 141 | PORT_DIPSETTING( 0x00, "50" ) |
| r1238 | r1239 | |
|---|---|---|
| 64 | 64 | |
| 65 | 65 | |
| 66 | 66 | |
| 67 | INPUT_PORTS_START( hexa ) | |
| 67 | static INPUT_PORTS_START( hexa ) | |
| 68 | 68 | PORT_START /* IN0 */ |
| 69 | 69 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 70 | 70 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY |
| r1238 | r1239 | |
|---|---|---|
| 546 | 546 | } |
| 547 | 547 | |
| 548 | 548 | |
| 549 | INPUT_PORTS_START( gticlub ) | |
| 549 | static INPUT_PORTS_START( gticlub ) | |
| 550 | 550 | PORT_START |
| 551 | 551 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) // View switch |
| 552 | 552 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) // Shift Down |
| r1238 | r1239 | |
| 592 | 592 | |
| 593 | 593 | INPUT_PORTS_END |
| 594 | 594 | |
| 595 | INPUT_PORTS_START( slrasslt ) | |
| 595 | static INPUT_PORTS_START( slrasslt ) | |
| 596 | 596 | PORT_START |
| 597 | 597 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) // View Shift |
| 598 | 598 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) // Trigger |
| r1238 | r1239 | |
| 634 | 634 | |
| 635 | 635 | INPUT_PORTS_END |
| 636 | 636 | |
| 637 | INPUT_PORTS_START( thunderh ) | |
| 637 | static INPUT_PORTS_START( thunderh ) | |
| 638 | 638 | PORT_START |
| 639 | 639 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) |
| 640 | 640 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 678 | 678 | |
| 679 | 679 | INPUT_PORTS_END |
| 680 | 680 | |
| 681 | INPUT_PORTS_START( hangplt ) | |
| 681 | static INPUT_PORTS_START( hangplt ) | |
| 682 | 682 | PORT_START |
| 683 | 683 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) |
| 684 | 684 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 216 | 216 | * |
| 217 | 217 | *************************************/ |
| 218 | 218 | |
| 219 | INPUT_PORTS_START( cloak ) | |
| 219 | static INPUT_PORTS_START( cloak ) | |
| 220 | 220 | PORT_START /* IN0 */ |
| 221 | 221 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_8WAY |
| 222 | 222 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 1242 | 1242 | mlatch = 0x00; |
| 1243 | 1243 | } |
| 1244 | 1244 | |
| 1245 | INPUT_PORTS_START( hotrod ) | |
| 1245 | static INPUT_PORTS_START( hotrod ) | |
| 1246 | 1246 | PORT_START |
| 1247 | 1247 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1248 | 1248 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1318 | 1318 | PORT_BIT( 0xffff, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1319 | 1319 | INPUT_PORTS_END |
| 1320 | 1320 | |
| 1321 | INPUT_PORTS_START( hotrodj ) | |
| 1321 | static INPUT_PORTS_START( hotrodj ) | |
| 1322 | 1322 | PORT_START |
| 1323 | 1323 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1324 | 1324 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1394 | 1394 | PORT_BIT( 0xff, 0x01, IPT_PEDAL ) PORT_MINMAX(0x01,0xff) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_PLAYER(4) |
| 1395 | 1395 | INPUT_PORTS_END |
| 1396 | 1396 | |
| 1397 | INPUT_PORTS_START( bnzabros ) | |
| 1397 | static INPUT_PORTS_START( bnzabros ) | |
| 1398 | 1398 | PORT_START |
| 1399 | 1399 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) |
| 1400 | 1400 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1452 | 1452 | PORT_DIPSETTING( 0x00, "1" ) |
| 1453 | 1453 | INPUT_PORTS_END |
| 1454 | 1454 | |
| 1455 | INPUT_PORTS_START( crkdown ) | |
| 1455 | static INPUT_PORTS_START( crkdown ) | |
| 1456 | 1456 | PORT_START |
| 1457 | 1457 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1458 | 1458 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1512 | 1512 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1513 | 1513 | INPUT_PORTS_END |
| 1514 | 1514 | |
| 1515 | INPUT_PORTS_START( roughrac ) | |
| 1515 | static INPUT_PORTS_START( roughrac ) | |
| 1516 | 1516 | PORT_START |
| 1517 | 1517 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1518 | 1518 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1578 | 1578 | PORT_BIT( 0xfff, 0x000, IPT_DIAL ) PORT_MINMAX(0x000,0xfff) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_PLAYER(2) |
| 1579 | 1579 | INPUT_PORTS_END |
| 1580 | 1580 | |
| 1581 | INPUT_PORTS_START( sspirits ) | |
| 1581 | static INPUT_PORTS_START( sspirits ) | |
| 1582 | 1582 | PORT_START |
| 1583 | 1583 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) |
| 1584 | 1584 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1640 | 1640 | INPUT_PORTS_END |
| 1641 | 1641 | |
| 1642 | 1642 | |
| 1643 | INPUT_PORTS_START( qgh ) | |
| 1643 | static INPUT_PORTS_START( qgh ) | |
| 1644 | 1644 | PORT_START |
| 1645 | 1645 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1646 | 1646 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1698 | 1698 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1699 | 1699 | INPUT_PORTS_END |
| 1700 | 1700 | |
| 1701 | INPUT_PORTS_START( dcclub ) | |
| 1701 | static INPUT_PORTS_START( dcclub ) | |
| 1702 | 1702 | PORT_START |
| 1703 | 1703 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) |
| 1704 | 1704 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1749 | 1749 | PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_MINMAX(0x00,0x8f) PORT_SENSITIVITY(16) PORT_KEYDELTA(16) PORT_PLAYER(1) |
| 1750 | 1750 | INPUT_PORTS_END |
| 1751 | 1751 | |
| 1752 | INPUT_PORTS_START( quizmeku ) | |
| 1752 | static INPUT_PORTS_START( quizmeku ) | |
| 1753 | 1753 | PORT_START |
| 1754 | 1754 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START3 ) |
| 1755 | 1755 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1817 | 1817 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 1818 | 1818 | INPUT_PORTS_END |
| 1819 | 1819 | |
| 1820 | INPUT_PORTS_START( mahmajn ) | |
| 1820 | static INPUT_PORTS_START( mahmajn ) | |
| 1821 | 1821 | PORT_START |
| 1822 | 1822 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("A") PORT_CODE(KEYCODE_A) |
| 1823 | 1823 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("B") PORT_CODE(KEYCODE_B) |
| r1238 | r1239 | |
| 1899 | 1899 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1900 | 1900 | INPUT_PORTS_END |
| 1901 | 1901 | |
| 1902 | INPUT_PORTS_START( gground ) | |
| 1902 | static INPUT_PORTS_START( gground ) | |
| 1903 | 1903 | PORT_START |
| 1904 | 1904 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1905 | 1905 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1968 | 1968 | PORT_DIPSETTING( 0x00, "0.80 sec" ) |
| 1969 | 1969 | INPUT_PORTS_END |
| 1970 | 1970 | |
| 1971 | INPUT_PORTS_START( ggroundj ) | |
| 1971 | static INPUT_PORTS_START( ggroundj ) | |
| 1972 | 1972 | PORT_START |
| 1973 | 1973 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1974 | 1974 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 1150 | 1150 | |
| 1151 | 1151 | |
| 1152 | 1152 | |
| 1153 | INPUT_PORTS_START( mazerbla ) | |
| 1153 | static INPUT_PORTS_START( mazerbla ) | |
| 1154 | 1154 | PORT_START /* Strobe 0: ZPU Switches */ |
| 1155 | 1155 | PORT_DIPNAME( 0x40, 0x40, "ZPU Switch 1" ) |
| 1156 | 1156 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1292 | 1292 | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_SENSITIVITY(25) PORT_KEYDELTA(7) PORT_PLAYER(2) |
| 1293 | 1293 | INPUT_PORTS_END |
| 1294 | 1294 | |
| 1295 | INPUT_PORTS_START( greatgun ) | |
| 1295 | static INPUT_PORTS_START( greatgun ) | |
| 1296 | 1296 | PORT_START /* Strobe 0: ZPU Switches */ |
| 1297 | 1297 | PORT_DIPNAME( 0x40, 0x40, "ZPU Switch 1" ) |
| 1298 | 1298 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 261 | 261 | * |
| 262 | 262 | *************************************/ |
| 263 | 263 | |
| 264 | INPUT_PORTS_START( foodf ) | |
| 264 | static INPUT_PORTS_START( foodf ) | |
| 265 | 265 | PORT_START /* IN0 */ |
| 266 | 266 | PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_REVERSE PORT_PLAYER(1) |
| 267 | 267 |
| r1238 | r1239 | |
|---|---|---|
| 271 | 271 | |
| 272 | 272 | /***************************************************************************/ |
| 273 | 273 | |
| 274 | INPUT_PORTS_START( namcona1_joy ) | |
| 274 | static INPUT_PORTS_START( namcona1_joy ) | |
| 275 | 275 | PORT_START |
| 276 | 276 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 277 | 277 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 327 | 327 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 328 | 328 | INPUT_PORTS_END |
| 329 | 329 | |
| 330 | INPUT_PORTS_START( namcona1_quiz ) | |
| 330 | static INPUT_PORTS_START( namcona1_quiz ) | |
| 331 | 331 | PORT_START |
| 332 | 332 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON4 ) |
| 333 | 333 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON3 ) |
| r1238 | r1239 | |
| 383 | 383 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 384 | 384 | INPUT_PORTS_END |
| 385 | 385 | |
| 386 | INPUT_PORTS_START( namcona2_joy ) | |
| 386 | static INPUT_PORTS_START( namcona2_joy ) | |
| 387 | 387 | PORT_START |
| 388 | 388 | PORT_DIPNAME( 0x01, 0x00, "DIP2 (Freeze)" ) |
| 389 | 389 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 447 | 447 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN4 ) |
| 448 | 448 | INPUT_PORTS_END |
| 449 | 449 | |
| 450 | INPUT_PORTS_START( namcona2_quiz ) | |
| 450 | static INPUT_PORTS_START( namcona2_quiz ) | |
| 451 | 451 | PORT_START |
| 452 | 452 | PORT_DIPNAME( 0x01, 0x00, "DIP2 (Freeze)" ) |
| 453 | 453 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 167 | 167 | * |
| 168 | 168 | *************************************/ |
| 169 | 169 | |
| 170 | INPUT_PORTS_START( bsktball ) | |
| 170 | static INPUT_PORTS_START( bsktball ) | |
| 171 | 171 | PORT_START /* IN0 */ |
| 172 | 172 | PORT_BIT( 0xFF, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) /* Sensitivity, clip, min, max */ |
| 173 | 173 |
| r1238 | r1239 | |
|---|---|---|
| 515 | 515 | PORT_DIPSETTING( 0x00, "6" ) |
| 516 | 516 | |
| 517 | 517 | |
| 518 | INPUT_PORTS_START( legion ) | |
| 518 | static INPUT_PORTS_START( legion ) | |
| 519 | 519 | PORT_START_TAG("IN0") |
| 520 | 520 | NIHON_SINGLE_JOYSTICK(1) |
| 521 | 521 | NIHON_COINS |
| r1238 | r1239 | |
| 570 | 570 | INPUT_PORTS_END |
| 571 | 571 | |
| 572 | 572 | |
| 573 | INPUT_PORTS_START( terraf ) | |
| 573 | static INPUT_PORTS_START( terraf ) | |
| 574 | 574 | PORT_START_TAG("IN0") |
| 575 | 575 | NIHON_SINGLE_JOYSTICK(1) |
| 576 | 576 | NIHON_COINS |
| r1238 | r1239 | |
| 618 | 618 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 619 | 619 | INPUT_PORTS_END |
| 620 | 620 | |
| 621 | INPUT_PORTS_START( kodure ) | |
| 621 | static INPUT_PORTS_START( kodure ) | |
| 622 | 622 | PORT_START_TAG("IN0") |
| 623 | 623 | NIHON_SINGLE_JOYSTICK(1) |
| 624 | 624 | NIHON_COINS |
| r1238 | r1239 | |
| 664 | 664 | PORT_DIPUNUSED( 0x80, IP_ACTIVE_LOW ) |
| 665 | 665 | INPUT_PORTS_END |
| 666 | 666 | |
| 667 | INPUT_PORTS_START( cclimbr2 ) | |
| 667 | static INPUT_PORTS_START( cclimbr2 ) | |
| 668 | 668 | PORT_START_TAG("IN0") |
| 669 | 669 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_8WAY PORT_PLAYER(1) |
| 670 | 670 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 727 | 727 | INPUT_PORTS_END |
| 728 | 728 | |
| 729 | 729 | |
| 730 | INPUT_PORTS_START( armedf ) | |
| 730 | static INPUT_PORTS_START( armedf ) | |
| 731 | 731 | PORT_START_TAG("IN0") |
| 732 | 732 | NIHON_SINGLE_JOYSTICK(1) |
| 733 | 733 | NIHON_COINS |
| r1238 | r1239 | |
|---|---|---|
| 292 | 292 | AM_RANGE(0x00, 0x00) AM_NOP /* ? */ |
| 293 | 293 | ADDRESS_MAP_END |
| 294 | 294 | |
| 295 | INPUT_PORTS_START( sidewndr ) | |
| 295 | static INPUT_PORTS_START( sidewndr ) | |
| 296 | 296 | PORT_START_TAG("IN0") // 0 |
| 297 | 297 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME( "Stop Nudge/Nudge Up or Down" ) |
| 298 | 298 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME( "Gamble" ) |
| r1238 | r1239 | |
| 368 | 368 | PORT_DIPSETTING( 0x03, "86%" ) |
| 369 | 369 | INPUT_PORTS_END |
| 370 | 370 | |
| 371 | INPUT_PORTS_START( spellbnd ) | |
| 371 | static INPUT_PORTS_START( spellbnd ) | |
| 372 | 372 | PORT_INCLUDE(sidewndr) |
| 373 | 373 | |
| 374 | 374 | PORT_MODIFY("IN0") |
| r1238 | r1239 | |
| 412 | 412 | INPUT_PORTS_END |
| 413 | 413 | |
| 414 | 414 | /* I've only mapped the known inputs after comparaison with 'spellbnd' and the ones known to do something */ |
| 415 | INPUT_PORTS_START( starspnr ) | |
| 415 | static INPUT_PORTS_START( starspnr ) | |
| 416 | 416 | PORT_START_TAG("IN0") // 0 |
| 417 | 417 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME( "Gamble" ) |
| 418 | 418 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
|---|---|---|
| 650 | 650 | * |
| 651 | 651 | *************************************/ |
| 652 | 652 | |
| 653 | INPUT_PORTS_START( dkong ) | |
| 653 | static INPUT_PORTS_START( dkong ) | |
| 654 | 654 | PORT_START /* IN0 */ |
| 655 | 655 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 656 | 656 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 715 | 715 | |
| 716 | 716 | INPUT_PORTS_END |
| 717 | 717 | |
| 718 | INPUT_PORTS_START( radarscp ) | |
| 718 | static INPUT_PORTS_START( radarscp ) | |
| 719 | 719 | PORT_START /* IN0 */ |
| 720 | 720 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 721 | 721 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| r1238 | r1239 | |
| 783 | 783 | |
| 784 | 784 | INPUT_PORTS_END |
| 785 | 785 | |
| 786 | INPUT_PORTS_START( dkong3 ) | |
| 786 | static INPUT_PORTS_START( dkong3 ) | |
| 787 | 787 | PORT_START /* IN0 */ |
| 788 | 788 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 789 | 789 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 851 | 851 | PORT_DIPSETTING( 0xc0, DEF_STR( Hardest ) ) |
| 852 | 852 | INPUT_PORTS_END |
| 853 | 853 | |
| 854 | INPUT_PORTS_START( dkong3b ) | |
| 854 | static INPUT_PORTS_START( dkong3b ) | |
| 855 | 855 | PORT_START /* IN0 */ |
| 856 | 856 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 857 | 857 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 917 | 917 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 918 | 918 | INPUT_PORTS_END |
| 919 | 919 | |
| 920 | INPUT_PORTS_START( hunchbkd ) | |
| 920 | static INPUT_PORTS_START( hunchbkd ) | |
| 921 | 921 | PORT_START /* IN0 */ |
| 922 | 922 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 923 | 923 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 979 | 979 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 980 | 980 | INPUT_PORTS_END |
| 981 | 981 | |
| 982 | INPUT_PORTS_START( shootgal ) | |
| 982 | static INPUT_PORTS_START( shootgal ) | |
| 983 | 983 | PORT_START /* IN0 */ |
| 984 | 984 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_SENSITIVITY(50) PORT_KEYDELTA(4) PORT_REVERSE |
| 985 | 985 | |
| r1238 | r1239 | |
| 1024 | 1024 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 1025 | 1025 | INPUT_PORTS_END |
| 1026 | 1026 | |
| 1027 | INPUT_PORTS_START( sbdk ) | |
| 1027 | static INPUT_PORTS_START( sbdk ) | |
| 1028 | 1028 | PORT_START /* IN0 */ |
| 1029 | 1029 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 1030 | 1030 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 1087 | 1087 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 1088 | 1088 | INPUT_PORTS_END |
| 1089 | 1089 | |
| 1090 | INPUT_PORTS_START( herbiedk ) | |
| 1090 | static INPUT_PORTS_START( herbiedk ) | |
| 1091 | 1091 | PORT_START /* IN0 */ |
| 1092 | 1092 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 1093 | 1093 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 1154 | 1154 | - you ALWAYS get an extra life at 150000 points. |
| 1155 | 1155 | - having more than 6 lives will reset the game. |
| 1156 | 1156 | */ |
| 1157 | INPUT_PORTS_START( herodk ) | |
| 1157 | static INPUT_PORTS_START( herodk ) | |
| 1158 | 1158 | PORT_START /* IN0 */ |
| 1159 | 1159 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 1160 | 1160 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 1215 | 1215 | INPUT_PORTS_END |
| 1216 | 1216 | |
| 1217 | 1217 | |
| 1218 | INPUT_PORTS_START( pestplce ) | |
| 1218 | static INPUT_PORTS_START( pestplce ) | |
| 1219 | 1219 | PORT_START /* IN0 */ |
| 1220 | 1220 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_PLAYER(1) |
| 1221 | 1221 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1272 | 1272 | INPUT_PORTS_END |
| 1273 | 1273 | |
| 1274 | 1274 | |
| 1275 | INPUT_PORTS_START( spclforc ) | |
| 1275 | static INPUT_PORTS_START( spclforc ) | |
| 1276 | 1276 | PORT_START /* IN0 */ |
| 1277 | 1277 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 1278 | 1278 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 1333 | 1333 | INPUT_PORTS_END |
| 1334 | 1334 | |
| 1335 | 1335 | |
| 1336 | INPUT_PORTS_START( 8ballact ) | |
| 1336 | static INPUT_PORTS_START( 8ballact ) | |
| 1337 | 1337 | PORT_START /* IN0 */ |
| 1338 | 1338 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 1339 | 1339 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 1397 | 1397 | INPUT_PORTS_END |
| 1398 | 1398 | |
| 1399 | 1399 | |
| 1400 | INPUT_PORTS_START( drakton ) | |
| 1400 | static INPUT_PORTS_START( drakton ) | |
| 1401 | 1401 | PORT_START /* IN0 */ |
| 1402 | 1402 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 1403 | 1403 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 1455 | 1455 | INPUT_PORTS_END |
| 1456 | 1456 | |
| 1457 | 1457 | |
| 1458 | INPUT_PORTS_START( strtheat ) | |
| 1458 | static INPUT_PORTS_START( strtheat ) | |
| 1459 | 1459 | PORT_START /* IN0 */ |
| 1460 | 1460 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 1461 | 1461 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| r1238 | r1239 | |
|---|---|---|
| 270 | 270 | ADDRESS_MAP_END |
| 271 | 271 | |
| 272 | 272 | |
| 273 | INPUT_PORTS_START( sprint4 ) | |
| 273 | static INPUT_PORTS_START( sprint4 ) | |
| 274 | 274 | |
| 275 | 275 | PORT_START_TAG("IN0") |
| 276 | 276 | PORT_SERVICE( 0x40, IP_ACTIVE_LOW ) |
| r1238 | r1239 | |
|---|---|---|
| 128 | 128 | |
| 129 | 129 | |
| 130 | 130 | |
| 131 | INPUT_PORTS_START( appoooh ) | |
| 131 | static INPUT_PORTS_START( appoooh ) | |
| 132 | 132 | PORT_START_TAG("IN0") |
| 133 | 133 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| 134 | 134 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| r1238 | r1239 | |
| 386 | 386 | |
| 387 | 387 | */ |
| 388 | 388 | |
| 389 | INPUT_PORTS_START( robowres ) | |
| 389 | static INPUT_PORTS_START( robowres ) | |
| 390 | 390 | PORT_START_TAG("IN0") |
| 391 | 391 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| 392 | 392 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 129 | 129 | ADDRESS_MAP_END |
| 130 | 130 | |
| 131 | 131 | |
| 132 | INPUT_PORTS_START( skyraid ) | |
| 132 | static INPUT_PORTS_START( skyraid ) | |
| 133 | 133 | PORT_START |
| 134 | 134 | PORT_DIPNAME( 0x30, 0x00, DEF_STR( Language ) ) |
| 135 | 135 | PORT_DIPSETTING( 0x00, DEF_STR( English ) ) |
| r1238 | r1239 | |
|---|---|---|
| 144 | 144 | /* PORT_DIPSETTING( 0x10, "INVALID" ) */\ |
| 145 | 145 | /* PORT_DIPSETTING( 0x00, "INVALID" ) */ |
| 146 | 146 | |
| 147 | INPUT_PORTS_START( travrusa ) | |
| 147 | static INPUT_PORTS_START( travrusa ) | |
| 148 | 148 | TRAV_COMMON |
| 149 | 149 | |
| 150 | 150 | PORT_START_TAG("DSW2") |
| r1238 | r1239 | |
| 174 | 174 | INPUT_PORTS_END |
| 175 | 175 | |
| 176 | 176 | /* same as travrusa, no "Title" switch */ |
| 177 | INPUT_PORTS_START( motorace ) | |
| 177 | static INPUT_PORTS_START( motorace ) | |
| 178 | 178 | TRAV_COMMON |
| 179 | 179 | |
| 180 | 180 | PORT_START /* DSW2 */ |
| r1238 | r1239 | |
| 201 | 201 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 202 | 202 | INPUT_PORTS_END |
| 203 | 203 | |
| 204 | INPUT_PORTS_START( shtrider ) | |
| 204 | static INPUT_PORTS_START( shtrider ) | |
| 205 | 205 | PORT_START_TAG("IN0") |
| 206 | 206 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 207 | 207 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 149 | 149 | ADDRESS_MAP_END |
| 150 | 150 | |
| 151 | 151 | |
| 152 | INPUT_PORTS_START( hanaroku ) | |
| 152 | static INPUT_PORTS_START( hanaroku ) | |
| 153 | 153 | PORT_START_TAG("IN0") // IN0 (0xe000) |
| 154 | 154 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) // adds n credits depending on "Coinage" Dip Switch |
| 155 | 155 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) // adds 5 credits |
| r1238 | r1239 | |
|---|---|---|
| 166 | 166 | |
| 167 | 167 | ***************************************************************************/ |
| 168 | 168 | |
| 169 | INPUT_PORTS_START( metlclsh ) | |
| 169 | static INPUT_PORTS_START( metlclsh ) | |
| 170 | 170 | PORT_START_TAG("IN0") /* c000 */ |
| 171 | 171 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 172 | 172 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 134 | 134 | |
| 135 | 135 | ***************************************************************************/ |
| 136 | 136 | |
| 137 | INPUT_PORTS_START( aliens ) | |
| 137 | static INPUT_PORTS_START( aliens ) | |
| 138 | 138 | PORT_START_TAG("DSW1") |
| 139 | 139 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3,4") |
| 140 | 140 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 48 | 48 | |
| 49 | 49 | |
| 50 | 50 | |
| 51 | INPUT_PORTS_START( beezer ) | |
| 51 | static INPUT_PORTS_START( beezer ) | |
| 52 | 52 | PORT_START /* IN0 */ |
| 53 | 53 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_TILT ) |
| 54 | 54 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
|---|---|---|
| 173 | 173 | |
| 174 | 174 | ***************************************************************************/ |
| 175 | 175 | |
| 176 | INPUT_PORTS_START( 88games ) | |
| 176 | static INPUT_PORTS_START( 88games ) | |
| 177 | 177 | PORT_START_TAG("IN0") |
| 178 | 178 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 179 | 179 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 3371 | 3371 | ADDRESS_MAP_END |
| 3372 | 3372 | |
| 3373 | 3373 | |
| 3374 | INPUT_PORTS_START( ddenlvrj ) | |
| 3374 | static INPUT_PORTS_START( ddenlvrj ) | |
| 3375 | 3375 | PORT_START // IN0 - Player 1 |
| 3376 | 3376 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 3377 | 3377 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 3477 | 3477 | INPUT_PORTS_END |
| 3478 | 3478 | |
| 3479 | 3479 | |
| 3480 | INPUT_PORTS_START( ddenlovr ) | |
| 3480 | static INPUT_PORTS_START( ddenlovr ) | |
| 3481 | 3481 | PORT_START // IN0 - Player 1 |
| 3482 | 3482 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 3483 | 3483 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 3533 | 3533 | INPUT_PORTS_END |
| 3534 | 3534 | |
| 3535 | 3535 | |
| 3536 | INPUT_PORTS_START( nettoqc ) | |
| 3536 | static INPUT_PORTS_START( nettoqc ) | |
| 3537 | 3537 | PORT_START // IN0 - Player 1 |
| 3538 | 3538 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 3539 | 3539 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 3631 | 3631 | INPUT_PORTS_END |
| 3632 | 3632 | |
| 3633 | 3633 | |
| 3634 | INPUT_PORTS_START( quiz365 ) | |
| 3634 | static INPUT_PORTS_START( quiz365 ) | |
| 3635 | 3635 | PORT_START // IN0 - Player 1 |
| 3636 | 3636 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 3637 | 3637 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 3724 | 3724 | INPUT_PORTS_END |
| 3725 | 3725 | |
| 3726 | 3726 | |
| 3727 | INPUT_PORTS_START( rongrong ) | |
| 3727 | static INPUT_PORTS_START( rongrong ) | |
| 3728 | 3728 | PORT_START // IN0 - Player 1 |
| 3729 | 3729 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 3730 | 3730 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 3816 | 3816 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3817 | 3817 | INPUT_PORTS_END |
| 3818 | 3818 | |
| 3819 | INPUT_PORTS_START( quizchq ) | |
| 3819 | static INPUT_PORTS_START( quizchq ) | |
| 3820 | 3820 | PORT_START // IN0 - Player 1 |
| 3821 | 3821 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 3822 | 3822 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 3911 | 3911 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3912 | 3912 | INPUT_PORTS_END |
| 3913 | 3913 | |
| 3914 | INPUT_PORTS_START( mmpanic ) | |
| 3914 | static INPUT_PORTS_START( mmpanic ) | |
| 3915 | 3915 | PORT_START // IN0 6a (68 = 1:used? 2:normal 3:goes to 69) |
| 3916 | 3916 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2) |
| 3917 | 3917 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested? |
| r1238 | r1239 | |
| 4008 | 4008 | INPUT_PORTS_END |
| 4009 | 4009 | |
| 4010 | 4010 | |
| 4011 | INPUT_PORTS_START( animaljr ) | |
| 4011 | static INPUT_PORTS_START( animaljr ) | |
| 4012 | 4012 | PORT_START // IN0 6a (68 = 1:used? 2:normal 3:goes to 69) |
| 4013 | 4013 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2) |
| 4014 | 4014 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 4105 | 4105 | INPUT_PORTS_END |
| 4106 | 4106 | |
| 4107 | 4107 | |
| 4108 | INPUT_PORTS_START( hanakanz ) | |
| 4108 | static INPUT_PORTS_START( hanakanz ) | |
| 4109 | 4109 | |
| 4110 | 4110 | PORT_START // IN0 - Coins + Service Keys |
| 4111 | 4111 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE3 ) // medal out |
| r1238 | r1239 | |
| 4331 | 4331 | INPUT_PORTS_END |
| 4332 | 4332 | |
| 4333 | 4333 | |
| 4334 | INPUT_PORTS_START( hkagerou ) | |
| 4334 | static INPUT_PORTS_START( hkagerou ) | |
| 4335 | 4335 | |
| 4336 | 4336 | PORT_START // IN0 - Coins + Service Keys |
| 4337 | 4337 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE3 ) // medal out |
| r1238 | r1239 | |
| 4558 | 4558 | INPUT_PORTS_END |
| 4559 | 4559 | |
| 4560 | 4560 | |
| 4561 | INPUT_PORTS_START( mjreach1 ) | |
| 4561 | static INPUT_PORTS_START( mjreach1 ) | |
| 4562 | 4562 | |
| 4563 | 4563 | PORT_START // IN0 - Coins + Service Keys |
| 4564 | 4564 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE3 ) // medal out |
| r1238 | r1239 | |
| 4793 | 4793 | INPUT_PORTS_END |
| 4794 | 4794 | |
| 4795 | 4795 | |
| 4796 | INPUT_PORTS_START( mjchuuka ) | |
| 4796 | static INPUT_PORTS_START( mjchuuka ) | |
| 4797 | 4797 | |
| 4798 | 4798 | PORT_START // IN0 - Coins + Service Keys |
| 4799 | 4799 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE3 ) // medal out |
| r1238 | r1239 | |
| 5028 | 5028 | INPUT_PORTS_END |
| 5029 | 5029 | |
| 5030 | 5030 | |
| 5031 | INPUT_PORTS_START( funkyfig ) | |
| 5031 | static INPUT_PORTS_START( funkyfig ) | |
| 5032 | 5032 | PORT_START // IN0 - Keys (port 83 with port 80 = 20) |
| 5033 | 5033 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 5034 | 5034 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("1") PORT_CODE(KEYCODE_1_PAD) |
| r1238 | r1239 | |
| 5129 | 5129 | |
| 5130 | 5130 | |
| 5131 | 5131 | |
| 5132 | INPUT_PORTS_START( mjmyster ) | |
| 5132 | static INPUT_PORTS_START( mjmyster ) | |
| 5133 | 5133 | PORT_START // IN0 - Coins + Service Keys |
| 5134 | 5134 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE3 ) // medal out |
| 5135 | 5135 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 5310 | 5310 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 5311 | 5311 | INPUT_PORTS_END |
| 5312 | 5312 | |
| 5313 | INPUT_PORTS_START( hginga ) | |
| 5313 | static INPUT_PORTS_START( hginga ) | |
| 5314 | 5314 | |
| 5315 | 5315 | PORT_START // IN0 - Coins + Service Keys |
| 5316 | 5316 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE3 ) // medal out |
| r1238 | r1239 | |
| 5533 | 5533 | PORT_BIT( 0xbf, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 5534 | 5534 | INPUT_PORTS_END |
| 5535 | 5535 | |
| 5536 | INPUT_PORTS_START( hgokou ) | |
| 5536 | static INPUT_PORTS_START( hgokou ) | |
| 5537 | 5537 | PORT_START // IN0 |
| 5538 | 5538 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE3 ) // medal out |
| 5539 | 5539 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 5749 | 5749 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 5750 | 5750 | INPUT_PORTS_END |
| 5751 | 5751 | |
| 5752 | INPUT_PORTS_START( mjmyornt ) | |
| 5752 | static INPUT_PORTS_START( mjmyornt ) | |
| 5753 | 5753 | PORT_START // IN0 - Coins + Service Keys |
| 5754 | 5754 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE3 ) // medal out |
| 5755 | 5755 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 5930 | 5930 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 5931 | 5931 | INPUT_PORTS_END |
| 5932 | 5932 | |
| 5933 | INPUT_PORTS_START( mjmyuniv ) | |
| 5933 | static INPUT_PORTS_START( mjmyuniv ) | |
| 5934 | 5934 | PORT_START // IN0 - Coins + Service Keys |
| 5935 | 5935 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE3 ) // medal out |
| 5936 | 5936 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 6111 | 6111 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 6112 | 6112 | INPUT_PORTS_END |
| 6113 | 6113 | |
| 6114 | INPUT_PORTS_START( akamaru ) | |
| 6114 | static INPUT_PORTS_START( akamaru ) | |
| 6115 | 6115 | PORT_START // IN0 - Player 1 |
| 6116 | 6116 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 6117 | 6117 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 6190 | 6190 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 6191 | 6191 | INPUT_PORTS_END |
| 6192 | 6192 | |
| 6193 | INPUT_PORTS_START( mjflove ) | |
| 6193 | static INPUT_PORTS_START( mjflove ) | |
| 6194 | 6194 | PORT_START // IN0 - Coins + Service Keys |
| 6195 | 6195 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 6196 | 6196 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 6333 | 6333 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 6334 | 6334 | INPUT_PORTS_END |
| 6335 | 6335 | |
| 6336 | INPUT_PORTS_START( hparadis ) | |
| 6336 | static INPUT_PORTS_START( hparadis ) | |
| 6337 | 6337 | PORT_START // IN0 - Player 1 |
| 6338 | 6338 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 6339 | 6339 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) |
| r1238 | r1239 | |
|---|---|---|
| 350 | 350 | |
| 351 | 351 | |
| 352 | 352 | |
| 353 | INPUT_PORTS_START( chinagat ) | |
| 353 | static INPUT_PORTS_START( chinagat ) | |
| 354 | 354 | PORT_START |
| 355 | 355 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 356 | 356 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
|---|---|---|
| 490 | 490 | static ADDRESS_MAP_START( bloodwar, ADDRESS_SPACE_PROGRAM, 16 ) |
| 491 | 491 | AM_RANGE(0x000000, 0x0fffff) AM_ROM // ROM |
| 492 | 492 | AM_RANGE(0x100000, 0x10ffff) AM_RAM // Work RAM |
| 493 | AM_RANGE(0x200000, 0x20ffff) AM_RAM AM_BASE(&mcu_ram) // Shared With MCU | |
| 493 | AM_RANGE(0x200000, 0x20ffff) AM_RAM AM_BASE(&kaneko16_mcu_ram) // Shared With MCU | |
| 494 | 494 | AM_RANGE(0x2a0000, 0x2a0001) AM_WRITE(toybox_mcu_com0_w) // To MCU ? |
| 495 | 495 | AM_RANGE(0x2b0000, 0x2b0001) AM_WRITE(toybox_mcu_com1_w) |
| 496 | 496 | AM_RANGE(0x2c0000, 0x2c0001) AM_WRITE(toybox_mcu_com2_w) |
| r1238 | r1239 | |
| 550 | 550 | static ADDRESS_MAP_START( bonkadv, ADDRESS_SPACE_PROGRAM, 16 ) |
| 551 | 551 | AM_RANGE(0x000000, 0x0fffff) AM_ROM // ROM |
| 552 | 552 | AM_RANGE(0x100000, 0x10ffff) AM_RAM // Work RAM |
| 553 | AM_RANGE(0x200000, 0x20ffff) AM_RAM AM_BASE(&mcu_ram) // Shared With MCU | |
| 553 | AM_RANGE(0x200000, 0x20ffff) AM_RAM AM_BASE(&kaneko16_mcu_ram) // Shared With MCU | |
| 554 | 554 | AM_RANGE(0x2a0000, 0x2a0001) AM_WRITE(toybox_mcu_com0_w) // To MCU ? |
| 555 | 555 | AM_RANGE(0x2b0000, 0x2b0001) AM_WRITE(toybox_mcu_com1_w) |
| 556 | 556 | AM_RANGE(0x2c0000, 0x2c0001) AM_WRITE(toybox_mcu_com2_w) |
| r1238 | r1239 | |
| 660 | 660 | static ADDRESS_MAP_START( gtmr_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 661 | 661 | AM_RANGE(0x000000, 0x0fffff) AM_WRITE(MWA16_ROM ) // ROM |
| 662 | 662 | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(MWA16_RAM ) // Work RAM |
| 663 | AM_RANGE(0x200000, 0x20ffff) AM_WRITE(MWA16_RAM) AM_BASE(&mcu_ram | |
| 663 | AM_RANGE(0x200000, 0x20ffff) AM_WRITE(MWA16_RAM) AM_BASE(&kaneko16_mcu_ram | |
| 664 | 664 | AM_RANGE(0x2a0000, 0x2a0001) AM_WRITE(toybox_mcu_com0_w ) // To MCU ? |
| 665 | 665 | AM_RANGE(0x2b0000, 0x2b0001) AM_WRITE(toybox_mcu_com1_w ) |
| 666 | 666 | AM_RANGE(0x2c0000, 0x2c0001) AM_WRITE(toybox_mcu_com2_w ) |
| r1238 | r1239 | |
| 794 | 794 | static ADDRESS_MAP_START( shogwarr, ADDRESS_SPACE_PROGRAM, 16 ) |
| 795 | 795 | AM_RANGE(0x000000, 0x03ffff) AM_ROM // ROM |
| 796 | 796 | AM_RANGE(0x100000, 0x10ffff) AM_RAM // Work RAM |
| 797 | AM_RANGE(0x200000, 0x20ffff) AM_READWRITE(MRA16_RAM,calc3_mcu_ram_w) AM_BASE(&mcu_ram) // Shared With MCU | |
| 797 | AM_RANGE(0x200000, 0x20ffff) AM_READWRITE(MRA16_RAM,calc3_mcu_ram_w) AM_BASE(&kaneko16_mcu_ram) // Shared With MCU | |
| 798 | 798 | AM_RANGE(0x280000, 0x280001) AM_WRITE(calc3_mcu_com0_w) |
| 799 | 799 | AM_RANGE(0x290000, 0x290001) AM_WRITE(calc3_mcu_com1_w) |
| 800 | 800 | AM_RANGE(0x2b0000, 0x2b0001) AM_WRITE(calc3_mcu_com2_w) |
| r1238 | r1239 | |
| 866 | 866 | Bakuretsu Breaker |
| 867 | 867 | ***************************************************************************/ |
| 868 | 868 | |
| 869 | INPUT_PORTS_START( bakubrkr ) | |
| 869 | static INPUT_PORTS_START( bakubrkr ) | |
| 870 | 870 | PORT_START // IN0 - Player 1 + DSW - e00000.w |
| 871 | 871 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) |
| 872 | 872 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 936 | 936 | The Berlin Wall (set 1) |
| 937 | 937 | ***************************************************************************/ |
| 938 | 938 | |
| 939 | INPUT_PORTS_START( berlwall ) | |
| 939 | static INPUT_PORTS_START( berlwall ) | |
| 940 | 940 | PORT_START // IN0 - Player 1 - 680000.w |
| 941 | 941 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 942 | 942 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1032 | 1032 | |
| 1033 | 1033 | // Same as berlwall, but for a different lives setting |
| 1034 | 1034 | |
| 1035 | INPUT_PORTS_START( berlwalt ) | |
| 1035 | static INPUT_PORTS_START( berlwalt ) | |
| 1036 | 1036 | PORT_START // IN0 - Player 1 - 680000.w |
| 1037 | 1037 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1038 | 1038 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1126 | 1126 | Blaze On |
| 1127 | 1127 | ***************************************************************************/ |
| 1128 | 1128 | |
| 1129 | INPUT_PORTS_START( blazeon ) | |
| 1129 | static INPUT_PORTS_START( blazeon ) | |
| 1130 | 1130 | PORT_START // IN0 - Player 1 + DSW - c00000.w |
| 1131 | 1131 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) |
| 1132 | 1132 | PORT_DIPSETTING( 0x0002, DEF_STR( Easy ) ) |
| r1238 | r1239 | |
| 1222 | 1222 | Blood Warrior |
| 1223 | 1223 | ***************************************************************************/ |
| 1224 | 1224 | |
| 1225 | INPUT_PORTS_START( bloodwar ) | |
| 1225 | static INPUT_PORTS_START( bloodwar ) | |
| 1226 | 1226 | PORT_START // IN0 - Player 1 - b00000.w |
| 1227 | 1227 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 1228 | 1228 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1292 | 1292 | Bonk's Adventure |
| 1293 | 1293 | ***************************************************************************/ |
| 1294 | 1294 | |
| 1295 | INPUT_PORTS_START( bonkadv ) | |
| 1295 | static INPUT_PORTS_START( bonkadv ) | |
| 1296 | 1296 | PORT_START // IN0 - Player 1 - b00000.w |
| 1297 | 1297 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 1298 | 1298 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1363 | 1363 | Great 1000 Miles Rally |
| 1364 | 1364 | ***************************************************************************/ |
| 1365 | 1365 | |
| 1366 | INPUT_PORTS_START( gtmr ) | |
| 1366 | static INPUT_PORTS_START( gtmr ) | |
| 1367 | 1367 | PORT_START // IN0 - Player 1 - b00000.w |
| 1368 | 1368 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1369 | 1369 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1435 | 1435 | Great 1000 Miles Rally 2 |
| 1436 | 1436 | ***************************************************************************/ |
| 1437 | 1437 | |
| 1438 | INPUT_PORTS_START( gtmr2 ) | |
| 1438 | static INPUT_PORTS_START( gtmr2 ) | |
| 1439 | 1439 | PORT_START // IN0 - Player 1 - 100004.w <- b00000.w (cpl) |
| 1440 | 1440 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1441 | 1441 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1526 | 1526 | Magical Crystal |
| 1527 | 1527 | ***************************************************************************/ |
| 1528 | 1528 | |
| 1529 | INPUT_PORTS_START( mgcrystl ) | |
| 1529 | static INPUT_PORTS_START( mgcrystl ) | |
| 1530 | 1530 | PORT_START // IN0 - Player 1 + DSW - c00000.w |
| 1531 | 1531 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) |
| 1532 | 1532 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1613 | 1613 | Shogun Warriors |
| 1614 | 1614 | ***************************************************************************/ |
| 1615 | 1615 | |
| 1616 | INPUT_PORTS_START( shogwarr ) | |
| 1616 | static INPUT_PORTS_START( shogwarr ) | |
| 1617 | 1617 | PORT_START // IN0 - - b80000.w |
| 1618 | 1618 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1619 | 1619 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 94 | 94 | AM_RANGE(0x10, 0x10) AM_READ(input_port_8_r) |
| 95 | 95 | ADDRESS_MAP_END |
| 96 | 96 | |
| 97 | INPUT_PORTS_START( goldstar ) | |
| 97 | static INPUT_PORTS_START( goldstar ) | |
| 98 | 98 | PORT_START_TAG("IN0") |
| 99 | 99 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 100 | 100 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 218 | 218 | /**********************************************************************************/ |
| 219 | 219 | |
| 220 | 220 | |
| 221 | INPUT_PORTS_START( dbz ) | |
| 221 | static INPUT_PORTS_START( dbz ) | |
| 222 | 222 | PORT_START_TAG("IN0") |
| 223 | 223 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) |
| 224 | 224 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 311 | 311 | // PORT_DIPSETTING( 0x00, "Disabled" ) |
| 312 | 312 | INPUT_PORTS_END |
| 313 | 313 | |
| 314 | INPUT_PORTS_START( dbz2 ) | |
| 314 | static INPUT_PORTS_START( dbz2 ) | |
| 315 | 315 | PORT_START_TAG("IN0") |
| 316 | 316 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) |
| 317 | 317 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 395 | 395 | AM_RANGE(0xc001, 0xc001 ) AM_WRITE(Y8950_write_port_1_w) |
| 396 | 396 | ADDRESS_MAP_END |
| 397 | 397 | |
| 398 | INPUT_PORTS_START( cybertnk ) | |
| 398 | static INPUT_PORTS_START( cybertnk ) | |
| 399 | 399 | PORT_START_TAG("IN0") |
| 400 | 400 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 401 | 401 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
|---|---|---|
| 401 | 401 | MDRV_SPEAKER_STANDARD_STEREO("left", "right") |
| 402 | 402 | MACHINE_DRIVER_END |
| 403 | 403 | |
| 404 | INPUT_PORTS_START( namcos10 ) | |
| 404 | static INPUT_PORTS_START( namcos10 ) | |
| 405 | 405 | /* IN 0 */ |
| 406 | 406 | PORT_START |
| 407 | 407 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Test Switch") PORT_CODE(KEYCODE_F2) |
| r1238 | r1239 | |
|---|---|---|
| 201 | 201 | |
| 202 | 202 | |
| 203 | 203 | |
| 204 | INPUT_PORTS_START( wc90 ) | |
| 204 | static INPUT_PORTS_START( wc90 ) | |
| 205 | 205 | PORT_START /* IN0 bit 0-5 */ |
| 206 | 206 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 207 | 207 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 374 | 374 | * |
| 375 | 375 | *************************************/ |
| 376 | 376 | |
| 377 | INPUT_PORTS_START( gauntlet ) | |
| 377 | static INPUT_PORTS_START( gauntlet ) | |
| 378 | 378 | PORT_START_TAG("IN0") /* 803000 */ |
| 379 | 379 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| 380 | 380 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 435 | 435 | INPUT_PORTS_END |
| 436 | 436 | |
| 437 | 437 | |
| 438 | INPUT_PORTS_START( vindctr2 ) | |
| 438 | static INPUT_PORTS_START( vindctr2 ) | |
| 439 | 439 | PORT_START_TAG("IN0") /* 803000 */ |
| 440 | 440 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 441 | 441 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 478 | 478 | PORT_SERVICE( 0x01, IP_ACTIVE_LOW ) |
| 479 | 479 | |
| 480 | 480 | |
| 481 | INPUT_PORTS_START( ms32 ) | |
| 481 | static INPUT_PORTS_START( ms32 ) | |
| 482 | 482 | MS32_UNKNOWN_INPUTS |
| 483 | 483 | |
| 484 | 484 | MS32_SYSTEM_INPUTS |
| r1238 | r1239 | |
| 549 | 549 | |
| 550 | 550 | INPUT_PORTS_END |
| 551 | 551 | |
| 552 | INPUT_PORTS_START( bbbxing ) | |
| 552 | static INPUT_PORTS_START( bbbxing ) | |
| 553 | 553 | MS32_UNKNOWN_INPUTS |
| 554 | 554 | |
| 555 | 555 | MS32_SYSTEM_INPUTS |
| r1238 | r1239 | |
| 618 | 618 | |
| 619 | 619 | INPUT_PORTS_END |
| 620 | 620 | |
| 621 | INPUT_PORTS_START( desertwr ) | |
| 621 | static INPUT_PORTS_START( desertwr ) | |
| 622 | 622 | MS32_UNKNOWN_INPUTS |
| 623 | 623 | |
| 624 | 624 | MS32_SYSTEM_INPUTS |
| r1238 | r1239 | |
| 687 | 687 | |
| 688 | 688 | INPUT_PORTS_END |
| 689 | 689 | |
| 690 | INPUT_PORTS_START( gametngk ) | |
| 690 | static INPUT_PORTS_START( gametngk ) | |
| 691 | 691 | MS32_UNKNOWN_INPUTS |
| 692 | 692 | |
| 693 | 693 | MS32_SYSTEM_INPUTS |
| r1238 | r1239 | |
| 756 | 756 | |
| 757 | 757 | INPUT_PORTS_END |
| 758 | 758 | |
| 759 | INPUT_PORTS_START( tetrisp ) | |
| 759 | static INPUT_PORTS_START( tetrisp ) | |
| 760 | 760 | MS32_UNKNOWN_INPUTS |
| 761 | 761 | |
| 762 | 762 | MS32_SYSTEM_INPUTS |
| r1238 | r1239 | |
| 826 | 826 | |
| 827 | 827 | INPUT_PORTS_END |
| 828 | 828 | |
| 829 | INPUT_PORTS_START( tp2m32 ) | |
| 829 | static INPUT_PORTS_START( tp2m32 ) | |
| 830 | 830 | MS32_UNKNOWN_INPUTS |
| 831 | 831 | |
| 832 | 832 | MS32_SYSTEM_INPUTS |
| r1238 | r1239 | |
| 894 | 894 | INPUT_PORTS_END |
| 895 | 895 | |
| 896 | 896 | /* The Dip Switches for this game are completely wrong in the "test mode" ! */ |
| 897 | INPUT_PORTS_START( p47aces ) | |
| 897 | static INPUT_PORTS_START( p47aces ) | |
| 898 | 898 | MS32_UNKNOWN_INPUTS |
| 899 | 899 | |
| 900 | 900 | MS32_SYSTEM_INPUTS |
| r1238 | r1239 | |
| 962 | 962 | |
| 963 | 963 | INPUT_PORTS_END |
| 964 | 964 | |
| 965 | INPUT_PORTS_START( gratia ) | |
| 965 | static INPUT_PORTS_START( gratia ) | |
| 966 | 966 | MS32_UNKNOWN_INPUTS |
| 967 | 967 | |
| 968 | 968 | MS32_SYSTEM_INPUTS |
| r1238 | r1239 | |
| 1031 | 1031 | |
| 1032 | 1032 | INPUT_PORTS_END |
| 1033 | 1033 | |
| 1034 | INPUT_PORTS_START( hayaosi2 ) | |
| 1034 | static INPUT_PORTS_START( hayaosi2 ) | |
| 1035 | 1035 | MS32_UNKNOWN_INPUTS |
| 1036 | 1036 | |
| 1037 | 1037 | MS32_SYSTEM_INPUTS |
| r1238 | r1239 | |
| 1147 | 1147 | |
| 1148 | 1148 | INPUT_PORTS_END |
| 1149 | 1149 | |
| 1150 | INPUT_PORTS_START( kirarast ) // player 1 inputs done? others? | |
| 1150 | static INPUT_PORTS_START( kirarast ) // player 1 inputs done? others? | |
| 1151 | 1151 | MS32_UNKNOWN_INPUTS |
| 1152 | 1152 | |
| 1153 | 1153 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 1288 | 1288 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1289 | 1289 | INPUT_PORTS_END |
| 1290 | 1290 | |
| 1291 | INPUT_PORTS_START( akiss ) // player 1 inputs done? others? | |
| 1291 | static INPUT_PORTS_START( akiss ) // player 1 inputs done? others? | |
| 1292 | 1292 | PORT_INCLUDE( kirarast ) |
| 1293 | 1293 | |
| 1294 | 1294 | PORT_MODIFY("IN1") |
| r1238 | r1239 | |
| 1296 | 1296 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1297 | 1297 | INPUT_PORTS_END |
| 1298 | 1298 | |
| 1299 | INPUT_PORTS_START( f1superb ) // Mostly wrong ! | |
| 1299 | static INPUT_PORTS_START( f1superb ) // Mostly wrong ! | |
| 1300 | 1300 | MS32_UNKNOWN_INPUTS |
| 1301 | 1301 | |
| 1302 | 1302 | MS32_SYSTEM_INPUTS |
| r1238 | r1239 | |
|---|---|---|
| 1829 | 1829 | |
| 1830 | 1830 | // input ports for MPU4 board //////////////////////////////////////// |
| 1831 | 1831 | |
| 1832 | INPUT_PORTS_START( mpu4 ) | |
| 1832 | static INPUT_PORTS_START( mpu4 ) | |
| 1833 | 1833 | PORT_START_TAG("ORANGE1") |
| 1834 | 1834 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("00") |
| 1835 | 1835 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("01") |
| r1238 | r1239 | |
| 1944 | 1944 | |
| 1945 | 1945 | INPUT_PORTS_END |
| 1946 | 1946 | |
| 1947 | INPUT_PORTS_START( connect4 ) | |
| 1947 | static INPUT_PORTS_START( connect4 ) | |
| 1948 | 1948 | PORT_START_TAG("ORANGE1") |
| 1949 | 1949 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("00") |
| 1950 | 1950 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("01") |
| r1238 | r1239 | |
| 2059 | 2059 | |
| 2060 | 2060 | INPUT_PORTS_END |
| 2061 | 2061 | |
| 2062 | INPUT_PORTS_START( crmaze ) | |
| 2062 | static INPUT_PORTS_START( crmaze ) | |
| 2063 | 2063 | PORT_START_TAG("ORANGE1") |
| 2064 | 2064 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("00") |
| 2065 | 2065 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("01") |
| r1238 | r1239 | |
| 2174 | 2174 | |
| 2175 | 2175 | INPUT_PORTS_END |
| 2176 | 2176 | |
| 2177 | INPUT_PORTS_START( dealem ) | |
| 2177 | static INPUT_PORTS_START( dealem ) | |
| 2178 | 2178 | PORT_START_TAG("ORANGE1") |
| 2179 | 2179 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Gamble") |
| 2180 | 2180 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_START2) PORT_NAME("Pontoon") |
| r1238 | r1239 | |
|---|---|---|
| 261 | 261 | GFXDECODE_ENTRY( REGION_GFX2, 0, layout8x32x8, 0, 2 ) |
| 262 | 262 | GFXDECODE_END |
| 263 | 263 | |
| 264 | INPUT_PORTS_START( skylncr ) | |
| 264 | static INPUT_PORTS_START( skylncr ) | |
| 265 | 265 | |
| 266 | 266 | PORT_START // IN0 - $0 "PORT0 A" |
| 267 | 267 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1) |
| r1238 | r1239 | |
|---|---|---|
| 144 | 144 | |
| 145 | 145 | /******************************************************************************/ |
| 146 | 146 | |
| 147 | INPUT_PORTS_START( darkseal ) | |
| 147 | static INPUT_PORTS_START( darkseal ) | |
| 148 | 148 | PORT_START /* Player 1 controls */ |
| 149 | 149 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 150 | 150 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 163 | 163 | |
| 164 | 164 | |
| 165 | 165 | |
| 166 | INPUT_PORTS_START( 20pacgal ) | |
| 166 | static INPUT_PORTS_START( 20pacgal ) | |
| 167 | 167 | PORT_START |
| 168 | 168 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) |
| 169 | 169 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) |
| r1238 | r1239 | |
|---|---|---|
| 161 | 161 | |
| 162 | 162 | |
| 163 | 163 | |
| 164 | INPUT_PORTS_START( friskyt ) | |
| 164 | static INPUT_PORTS_START( friskyt ) | |
| 165 | 165 | PORT_START /* IN0 */ |
| 166 | 166 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| 167 | 167 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 194 | 194 | PORT_BIT( 0xfc, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* probably unused */ |
| 195 | 195 | INPUT_PORTS_END |
| 196 | 196 | |
| 197 | INPUT_PORTS_START( radrad ) | |
| 197 | static INPUT_PORTS_START( radrad ) | |
| 198 | 198 | PORT_START /* IN0 */ |
| 199 | 199 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| 200 | 200 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 274 | 274 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 275 | 275 | INPUT_PORTS_END |
| 276 | 276 | |
| 277 | INPUT_PORTS_START( seicross ) | |
| 277 | static INPUT_PORTS_START( seicross ) | |
| 278 | 278 | PORT_START /* IN0 */ |
| 279 | 279 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| 280 | 280 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 215 | 215 | AM_RANGE(0xfc00, 0xfc00) AM_WRITE(MWA8_NOP) /* irq ack ?? */ |
| 216 | 216 | ADDRESS_MAP_END |
| 217 | 217 | |
| 218 | INPUT_PORTS_START( spbactn ) | |
| 218 | static INPUT_PORTS_START( spbactn ) | |
| 219 | 219 | PORT_START /* IN0 */ |
| 220 | 220 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 221 | 221 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 1123 | 1123 | INPUT_PORTS_END |
| 1124 | 1124 | |
| 1125 | 1125 | |
| 1126 | INPUT_PORTS_START( fpointbj ) | |
| 1126 | static INPUT_PORTS_START( fpointbj ) | |
| 1127 | 1127 | SYS16_SERVICE |
| 1128 | 1128 | |
| 1129 | 1129 | PORT_START_TAG("IN0") |
| r1238 | r1239 | |
| 1569 | 1569 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 1570 | 1570 | INPUT_PORTS_END |
| 1571 | 1571 | |
| 1572 | INPUT_PORTS_START( passht4b ) | |
| 1572 | static INPUT_PORTS_START( passht4b ) | |
| 1573 | 1573 | PORT_START_TAG("IN0") |
| 1574 | 1574 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 1575 | 1575 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| r1238 | r1239 | |
| 2104 | 2104 | |
| 2105 | 2105 | /***************************************************************************/ |
| 2106 | 2106 | |
| 2107 | INPUT_PORTS_START( wb3b ) | |
| 2107 | static INPUT_PORTS_START( wb3b ) | |
| 2108 | 2108 | SYS16_JOY1 |
| 2109 | 2109 | SYS16_JOY2 |
| 2110 | 2110 | SYS16_SERVICE |
| r1238 | r1239 | |
|---|---|---|
| 173 | 173 | |
| 174 | 174 | |
| 175 | 175 | |
| 176 | INPUT_PORTS_START( karianx ) | |
| 176 | static INPUT_PORTS_START( karianx ) | |
| 177 | 177 | PORT_START |
| 178 | 178 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 179 | 179 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 228 | 228 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 229 | 229 | INPUT_PORTS_END |
| 230 | 230 | |
| 231 | INPUT_PORTS_START( logicpr2 ) | |
| 231 | static INPUT_PORTS_START( logicpr2 ) | |
| 232 | 232 | PORT_START |
| 233 | 233 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 234 | 234 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 312 | 312 | INPUT PORTS |
| 313 | 313 | *****************************************************************************************************/ |
| 314 | 314 | |
| 315 | INPUT_PORTS_START( legendoh ) | |
| 315 | static INPUT_PORTS_START( legendoh ) | |
| 316 | 316 | PORT_START |
| 317 | 317 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 318 | 318 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 372 | 372 | PORT_BIT( 0x4000ffff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 373 | 373 | INPUT_PORTS_END |
| 374 | 374 | |
| 375 | INPUT_PORTS_START( sb2003 ) | |
| 375 | static INPUT_PORTS_START( sb2003 ) | |
| 376 | 376 | PORT_START |
| 377 | 377 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 378 | 378 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 410 | 410 | PORT_BIT( 0x5f10ffff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 411 | 411 | INPUT_PORTS_END |
| 412 | 412 | |
| 413 | INPUT_PORTS_START( spotty ) | |
| 413 | static INPUT_PORTS_START( spotty ) | |
| 414 | 414 | PORT_START |
| 415 | 415 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("Hold 1") |
| 416 | 416 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_NAME("Hold 2") |
| r1238 | r1239 | |
|---|---|---|
| 154 | 154 | ADDRESS_MAP_END |
| 155 | 155 | |
| 156 | 156 | |
| 157 | INPUT_PORTS_START( redalert ) | |
| 157 | static INPUT_PORTS_START( redalert ) | |
| 158 | 158 | PORT_START /* DIP Switches */ |
| 159 | 159 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 160 | 160 | PORT_DIPSETTING( 0x00, "3" ) |
| r1238 | r1239 | |
| 202 | 202 | INPUT_PORTS_END |
| 203 | 203 | |
| 204 | 204 | |
| 205 | INPUT_PORTS_START( demoneye ) | |
| 205 | static INPUT_PORTS_START( demoneye ) | |
| 206 | 206 | PORT_START /* DIP Switches */ |
| 207 | 207 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 208 | 208 | PORT_DIPSETTING( 0x00, "3" ) |
| r1238 | r1239 | |
|---|---|---|
| 507 | 507 | *************************************/ |
| 508 | 508 | |
| 509 | 509 | /* verified from wiring diagram, plus DIP switches from manual */ |
| 510 | INPUT_PORTS_START( demoderm ) | |
| 510 | static INPUT_PORTS_START( demoderm ) | |
| 511 | 511 | PORT_START_TAG("MONO.IP0") /* J2 1-8 */ |
| 512 | 512 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 513 | 513 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 571 | 571 | |
| 572 | 572 | |
| 573 | 573 | /* not verified, no manual found */ |
| 574 | INPUT_PORTS_START( sarge ) | |
| 574 | static INPUT_PORTS_START( sarge ) | |
| 575 | 575 | PORT_START_TAG("MONO.IP0") /* J2 1-8 */ |
| 576 | 576 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 577 | 577 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 614 | 614 | |
| 615 | 615 | |
| 616 | 616 | /* verified from wiring diagram, plus DIP switches from manual */ |
| 617 | INPUT_PORTS_START( maxrpm ) | |
| 617 | static INPUT_PORTS_START( maxrpm ) | |
| 618 | 618 | PORT_START_TAG("MONO.IP0") /* J2 1-8 */ |
| 619 | 619 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 620 | 620 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 664 | 664 | |
| 665 | 665 | |
| 666 | 666 | /* verified from wiring diagram, plus DIP switches from manual */ |
| 667 | INPUT_PORTS_START( rampage ) | |
| 667 | static INPUT_PORTS_START( rampage ) | |
| 668 | 668 | PORT_START_TAG("MONO.IP0") /* J2 1-8 */ |
| 669 | 669 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 670 | 670 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 730 | 730 | |
| 731 | 731 | |
| 732 | 732 | /* verified from wiring diagram, plus DIP switches from manual */ |
| 733 | INPUT_PORTS_START( powerdrv ) | |
| 733 | static INPUT_PORTS_START( powerdrv ) | |
| 734 | 734 | PORT_START_TAG("MONO.IP0") /* J2 1-8 */ |
| 735 | 735 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 736 | 736 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 784 | 784 | |
| 785 | 785 | |
| 786 | 786 | /* verified from wiring diagram, plus DIP switches from manual */ |
| 787 | INPUT_PORTS_START( stargrds ) | |
| 787 | static INPUT_PORTS_START( stargrds ) | |
| 788 | 788 | PORT_START_TAG("MONO.IP0") /* J2 1-8 */ |
| 789 | 789 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 790 | 790 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 855 | 855 | |
| 856 | 856 | |
| 857 | 857 | /* verified from wiring diagram, plus DIP switches from manual */ |
| 858 | INPUT_PORTS_START( spyhunt ) | |
| 858 | static INPUT_PORTS_START( spyhunt ) | |
| 859 | 859 | PORT_START_TAG("SSIO.IP0") /* J4 1-8 */ |
| 860 | 860 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 861 | 861 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 901 | 901 | |
| 902 | 902 | |
| 903 | 903 | /* not verified, no manual found */ |
| 904 | INPUT_PORTS_START( crater ) | |
| 904 | static INPUT_PORTS_START( crater ) | |
| 905 | 905 | PORT_START_TAG("SSIO.IP0") /* J4 1-8 */ |
| 906 | 906 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 907 | 907 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 936 | 936 | |
| 937 | 937 | |
| 938 | 938 | /* not verified, no manual found */ |
| 939 | INPUT_PORTS_START( turbotag ) | |
| 939 | static INPUT_PORTS_START( turbotag ) | |
| 940 | 940 | PORT_START_TAG("SSIO.IP0") /* J4 1-8 */ |
| 941 | 941 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 942 | 942 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | |
| 106 | INPUT_PORTS_START( pipeline ) | |
| 106 | static INPUT_PORTS_START( pipeline ) | |
| 107 | 107 | PORT_START |
| 108 | 108 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 109 | 109 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 148 | 148 | * |
| 149 | 149 | *************************************/ |
| 150 | 150 | |
| 151 | INPUT_PORTS_START( pengo ) | |
| 151 | static INPUT_PORTS_START( pengo ) | |
| 152 | 152 | PORT_START_TAG("IN0") |
| 153 | 153 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 154 | 154 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY |
| r1238 | r1239 | |
| 237 | 237 | INPUT_PORTS_END |
| 238 | 238 | |
| 239 | 239 | |
| 240 | INPUT_PORTS_START( jrpacmbl ) | |
| 240 | static INPUT_PORTS_START( jrpacmbl ) | |
| 241 | 241 | PORT_START_TAG("IN0") |
| 242 | 242 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 243 | 243 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY |
| r1238 | r1239 | |
|---|---|---|
| 135 | 135 | |
| 136 | 136 | /******************************************************************************/ |
| 137 | 137 | |
| 138 | INPUT_PORTS_START( stadhero ) | |
| 138 | static INPUT_PORTS_START( stadhero ) | |
| 139 | 139 | PORT_START /* Player 1 controls */ |
| 140 | 140 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 141 | 141 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 91 | 91 | |
| 92 | 92 | /******************************************************************************/ |
| 93 | 93 | |
| 94 | INPUT_PORTS_START( prehisle ) | |
| 94 | static INPUT_PORTS_START( prehisle ) | |
| 95 | 95 | PORT_START /* Player 1 controls */ |
| 96 | 96 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 97 | 97 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 105 | 105 | |
| 106 | 106 | ***************************************************************************/ |
| 107 | 107 | |
| 108 | INPUT_PORTS_START( simpsons ) | |
| 108 | static INPUT_PORTS_START( simpsons ) | |
| 109 | 109 | PORT_START /* IN0 - Player 1 */ |
| 110 | 110 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 111 | 111 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 161 | 161 | PORT_BIT( 0xfe, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 162 | 162 | INPUT_PORTS_END |
| 163 | 163 | |
| 164 | INPUT_PORTS_START( simpsn2p ) | |
| 164 | static INPUT_PORTS_START( simpsn2p ) | |
| 165 | 165 | PORT_START /* IN0 - Player 1 */ |
| 166 | 166 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 167 | 167 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 216 | 216 | ADDRESS_MAP_END |
| 217 | 217 | |
| 218 | 218 | |
| 219 | INPUT_PORTS_START( marvins ) | |
| 219 | static INPUT_PORTS_START( marvins ) | |
| 220 | 220 | PORT_START_TAG("IN0") |
| 221 | 221 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 222 | 222 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 297 | 297 | INPUT_PORTS_END |
| 298 | 298 | |
| 299 | 299 | |
| 300 | INPUT_PORTS_START( vangrd2 ) | |
| 300 | static INPUT_PORTS_START( vangrd2 ) | |
| 301 | 301 | PORT_START_TAG("IN0") |
| 302 | 302 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 303 | 303 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 379 | 379 | INPUT_PORTS_END |
| 380 | 380 | |
| 381 | 381 | |
| 382 | INPUT_PORTS_START( madcrash ) | |
| 382 | static INPUT_PORTS_START( madcrash ) | |
| 383 | 383 | PORT_START_TAG("IN0") |
| 384 | 384 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 385 | 385 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 216 | 216 | 2 Sets of Dipswitches |
| 217 | 217 | *******************************************************************************/ |
| 218 | 218 | |
| 219 | INPUT_PORTS_START( wwfsstar ) | |
| 219 | static INPUT_PORTS_START( wwfsstar ) | |
| 220 | 220 | PORT_START |
| 221 | 221 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| 222 | 222 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 1087 | 1087 | REGION_SOUND2 |
| 1088 | 1088 | }; |
| 1089 | 1089 | |
| 1090 | INPUT_PORTS_START( vf ) | |
| 1090 | static INPUT_PORTS_START( vf ) | |
| 1091 | 1091 | PORT_START_TAG("AN0") /* Unused analog port 0 */ |
| 1092 | 1092 | PORT_START_TAG("AN1") /* Unused analog port 1 */ |
| 1093 | 1093 | PORT_START_TAG("AN2") /* Unused analog port 2 */ |
| r1238 | r1239 | |
| 1128 | 1128 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 1129 | 1129 | INPUT_PORTS_END |
| 1130 | 1130 | |
| 1131 | INPUT_PORTS_START( vr ) | |
| 1131 | static INPUT_PORTS_START( vr ) | |
| 1132 | 1132 | PORT_START_TAG("AN0") /* Steering */ |
| 1133 | 1133 | PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_SENSITIVITY(100) PORT_KEYDELTA(3) |
| 1134 | 1134 | |
| r1238 | r1239 | |
| 1168 | 1168 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1169 | 1169 | INPUT_PORTS_END |
| 1170 | 1170 | |
| 1171 | INPUT_PORTS_START( wingwar ) | |
| 1171 | static INPUT_PORTS_START( wingwar ) | |
| 1172 | 1172 | PORT_START_TAG("AN0") /* X */ |
| 1173 | 1173 | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) |
| 1174 | 1174 | |
| r1238 | r1239 | |
| 1208 | 1208 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1209 | 1209 | INPUT_PORTS_END |
| 1210 | 1210 | |
| 1211 | INPUT_PORTS_START( swa ) | |
| 1211 | static INPUT_PORTS_START( swa ) | |
| 1212 | 1212 | PORT_START_TAG("AN0") /* X */ |
| 1213 | 1213 | PORT_BIT( 0xff, 127, IPT_AD_STICK_X ) PORT_MINMAX(27,227) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_REVERSE |
| 1214 | 1214 |
| r1238 | r1239 | |
|---|---|---|
| 162 | 162 | |
| 163 | 163 | /******************************************************************************/ |
| 164 | 164 | |
| 165 | INPUT_PORTS_START( actfancr ) | |
| 165 | static INPUT_PORTS_START( actfancr ) | |
| 166 | 166 | PORT_START_TAG("IN0") /* Player 1 controls */ |
| 167 | 167 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 168 | 168 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 242 | 242 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 243 | 243 | INPUT_PORTS_END |
| 244 | 244 | |
| 245 | INPUT_PORTS_START( triothep ) | |
| 245 | static INPUT_PORTS_START( triothep ) | |
| 246 | 246 | PORT_START_TAG("IN0") /* Player 1 controls */ |
| 247 | 247 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 248 | 248 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 480 | 480 | * Input port definitions |
| 481 | 481 | *********************************************************************/ |
| 482 | 482 | |
| 483 | INPUT_PORTS_START( polepos ) | |
| 483 | static INPUT_PORTS_START( polepos ) | |
| 484 | 484 | PORT_START |
| 485 | 485 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 486 | 486 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Gear Change") PORT_CODE(KEYCODE_SPACE) POLEPOS_TOGGLE /* Gear */ |
| r1238 | r1239 | |
| 552 | 552 | INPUT_PORTS_END |
| 553 | 553 | |
| 554 | 554 | |
| 555 | INPUT_PORTS_START( poleposa ) | |
| 555 | static INPUT_PORTS_START( poleposa ) | |
| 556 | 556 | PORT_START |
| 557 | 557 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 558 | 558 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Gear Change") PORT_CODE(KEYCODE_SPACE) POLEPOS_TOGGLE /* Gear */ |
| r1238 | r1239 | |
| 624 | 624 | INPUT_PORTS_END |
| 625 | 625 | |
| 626 | 626 | |
| 627 | INPUT_PORTS_START( topracra ) | |
| 627 | static INPUT_PORTS_START( topracra ) | |
| 628 | 628 | // no coins ?! |
| 629 | 629 | PORT_START |
| 630 | 630 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 696 | 696 | INPUT_PORTS_END |
| 697 | 697 | |
| 698 | 698 | |
| 699 | INPUT_PORTS_START( polepos2 ) | |
| 699 | static INPUT_PORTS_START( polepos2 ) | |
| 700 | 700 | PORT_START |
| 701 | 701 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 702 | 702 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Gear Change") PORT_CODE(KEYCODE_SPACE) POLEPOS_TOGGLE /* Gear */ |
| r1238 | r1239 | |
|---|---|---|
| 1154 | 1154 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 1155 | 1155 | |
| 1156 | 1156 | |
| 1157 | INPUT_PORTS_START( rastsag2 ) | |
| 1157 | static INPUT_PORTS_START( rastsag2 ) | |
| 1158 | 1158 | PORT_START_TAG("DSWA") |
| 1159 | 1159 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) // all 2 "unused" in manual |
| 1160 | 1160 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1195 | 1195 | TAITO_B_SYSTEM_INPUT |
| 1196 | 1196 | INPUT_PORTS_END |
| 1197 | 1197 | |
| 1198 | INPUT_PORTS_START( nastar ) | |
| 1198 | static INPUT_PORTS_START( nastar ) | |
| 1199 | 1199 | PORT_START_TAG("DSWA") |
| 1200 | 1200 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) |
| 1201 | 1201 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1236 | 1236 | TAITO_B_SYSTEM_INPUT |
| 1237 | 1237 | INPUT_PORTS_END |
| 1238 | 1238 | |
| 1239 | INPUT_PORTS_START( nastarw ) | |
| 1239 | static INPUT_PORTS_START( nastarw ) | |
| 1240 | 1240 | PORT_START_TAG("DSWA") |
| 1241 | 1241 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1242 | 1242 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 1277 | 1277 | TAITO_B_SYSTEM_INPUT |
| 1278 | 1278 | INPUT_PORTS_END |
| 1279 | 1279 | |
| 1280 | INPUT_PORTS_START( masterw ) | |
| 1280 | static INPUT_PORTS_START( masterw ) | |
| 1281 | 1281 | PORT_START_TAG("DSWA") |
| 1282 | 1282 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1283 | 1283 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 1319 | 1319 | |
| 1320 | 1320 | INPUT_PORTS_END |
| 1321 | 1321 | |
| 1322 | INPUT_PORTS_START( crimec ) | |
| 1322 | static INPUT_PORTS_START( crimec ) | |
| 1323 | 1323 | PORT_START_TAG("DSWA") |
| 1324 | 1324 | PORT_DIPNAME( 0x01, 0x01, "Hi Score" ) |
| 1325 | 1325 | PORT_DIPSETTING( 0x01, "Scribble" ) |
| r1238 | r1239 | |
| 1359 | 1359 | TAITO_B_SYSTEM_INPUT |
| 1360 | 1360 | INPUT_PORTS_END |
| 1361 | 1361 | |
| 1362 | INPUT_PORTS_START( crimecj ) | |
| 1362 | static INPUT_PORTS_START( crimecj ) | |
| 1363 | 1363 | PORT_START_TAG("DSWA") |
| 1364 | 1364 | PORT_DIPNAME( 0x01, 0x01, "Hi Score" ) |
| 1365 | 1365 | PORT_DIPSETTING( 0x01, "Scribble" ) |
| r1238 | r1239 | |
| 1399 | 1399 | TAITO_B_SYSTEM_INPUT |
| 1400 | 1400 | INPUT_PORTS_END |
| 1401 | 1401 | |
| 1402 | INPUT_PORTS_START( crimecu ) | |
| 1402 | static INPUT_PORTS_START( crimecu ) | |
| 1403 | 1403 | PORT_START_TAG("DSWA") |
| 1404 | 1404 | PORT_DIPNAME( 0x01, 0x01, "Hi Score" ) |
| 1405 | 1405 | PORT_DIPSETTING( 0x01, "Scribble" ) |
| r1238 | r1239 | |
| 1439 | 1439 | TAITO_B_SYSTEM_INPUT |
| 1440 | 1440 | INPUT_PORTS_END |
| 1441 | 1441 | |
| 1442 | INPUT_PORTS_START( tetrist ) | |
| 1442 | static INPUT_PORTS_START( tetrist ) | |
| 1443 | 1443 | PORT_START_TAG("DSWA") |
| 1444 | 1444 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 1445 | 1445 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1482 | 1482 | TAITO_B_SYSTEM_INPUT |
| 1483 | 1483 | INPUT_PORTS_END |
| 1484 | 1484 | |
| 1485 | INPUT_PORTS_START( ashura ) | |
| 1485 | static INPUT_PORTS_START( ashura ) | |
| 1486 | 1486 | PORT_START_TAG("DSWA") |
| 1487 | 1487 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1488 | 1488 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 1523 | 1523 | TAITO_B_SYSTEM_INPUT |
| 1524 | 1524 | INPUT_PORTS_END |
| 1525 | 1525 | |
| 1526 | INPUT_PORTS_START( ashurau ) | |
| 1526 | static INPUT_PORTS_START( ashurau ) | |
| 1527 | 1527 | PORT_START_TAG("DSWA") |
| 1528 | 1528 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1529 | 1529 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 1609 | 1609 | 5,6,7 are set to off |
| 1610 | 1610 | */ |
| 1611 | 1611 | |
| 1612 | INPUT_PORTS_START( hitice ) | |
| 1612 | static INPUT_PORTS_START( hitice ) | |
| 1613 | 1613 | PORT_START_TAG("DSWA") |
| 1614 | 1614 | PORT_DIPNAME( 0x01, 0x01, "Cabinet Style" ) |
| 1615 | 1615 | PORT_DIPSETTING( 0x01, "4 Players") |
| r1238 | r1239 | |
| 1692 | 1692 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START4 ) |
| 1693 | 1693 | INPUT_PORTS_END |
| 1694 | 1694 | |
| 1695 | INPUT_PORTS_START( rambo3 ) | |
| 1695 | static INPUT_PORTS_START( rambo3 ) | |
| 1696 | 1696 | PORT_START_TAG("DSWA") |
| 1697 | 1697 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) // all 5 "unused" in manual |
| 1698 | 1698 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1735 | 1735 | TAITO_B_SYSTEM_INPUT |
| 1736 | 1736 | INPUT_PORTS_END |
| 1737 | 1737 | |
| 1738 | INPUT_PORTS_START( rambo3a ) | |
| 1738 | static INPUT_PORTS_START( rambo3a ) | |
| 1739 | 1739 | PORT_START /* DSW A */ |
| 1740 | 1740 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) |
| 1741 | 1741 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1820 | 1820 | |
| 1821 | 1821 | /* Helps document the input ports. */ |
| 1822 | 1822 | |
| 1823 | INPUT_PORTS_START( pbobble ) /* Missing P3&4 controls ! */ | |
| 1823 | static INPUT_PORTS_START( pbobble ) /* Missing P3&4 controls ! */ | |
| 1824 | 1824 | PORT_START_TAG("IN0") |
| 1825 | 1825 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /*unused in test mode*/ |
| 1826 | 1826 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /*unused in test mode*/ |
| r1238 | r1239 | |
| 1892 | 1892 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(4) |
| 1893 | 1893 | INPUT_PORTS_END |
| 1894 | 1894 | |
| 1895 | INPUT_PORTS_START( spacedxo ) | |
| 1895 | static INPUT_PORTS_START( spacedxo ) | |
| 1896 | 1896 | PORT_START_TAG("DSWA") |
| 1897 | 1897 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) |
| 1898 | 1898 | PORT_DIPSETTING( 0x01, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 1981 | 1981 | |
| 1982 | 1982 | INPUT_PORTS_END |
| 1983 | 1983 | |
| 1984 | INPUT_PORTS_START( qzshowby ) | |
| 1984 | static INPUT_PORTS_START( qzshowby ) | |
| 1985 | 1985 | PORT_START_TAG("IN0") |
| 1986 | 1986 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /*unused in test mode*/ |
| 1987 | 1987 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /*unused in test mode*/ |
| r1238 | r1239 | |
| 2053 | 2053 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(4) |
| 2054 | 2054 | INPUT_PORTS_END |
| 2055 | 2055 | |
| 2056 | INPUT_PORTS_START( viofight ) | |
| 2056 | static INPUT_PORTS_START( viofight ) | |
| 2057 | 2057 | PORT_START_TAG("DSWA") |
| 2058 | 2058 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) // all 7 "unused" in manual |
| 2059 | 2059 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2096 | 2096 | TAITO_B_SYSTEM_INPUT |
| 2097 | 2097 | INPUT_PORTS_END |
| 2098 | 2098 | |
| 2099 | INPUT_PORTS_START( silentd ) /* World Version */ | |
| 2099 | static INPUT_PORTS_START( silentd ) /* World Version */ | |
| 2100 | 2100 | PORT_START_TAG("DSWA") |
| 2101 | 2101 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) /* Listed as "NOT USED" in the manual and only shown as "OFF" */ |
| 2102 | 2102 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2220 | 2220 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2221 | 2221 | INPUT_PORTS_END |
| 2222 | 2222 | |
| 2223 | INPUT_PORTS_START( silentdj ) | |
| 2223 | static INPUT_PORTS_START( silentdj ) | |
| 2224 | 2224 | PORT_START_TAG("DSWA") |
| 2225 | 2225 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) /* Listed as "NOT USED" in the manual and only shown as "OFF" */ |
| 2226 | 2226 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2315 | 2315 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2316 | 2316 | INPUT_PORTS_END |
| 2317 | 2317 | |
| 2318 | INPUT_PORTS_START( selfeena ) | |
| 2318 | static INPUT_PORTS_START( selfeena ) | |
| 2319 | 2319 | PORT_START_TAG("DSWA") |
| 2320 | 2320 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) |
| 2321 | 2321 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2373 | 2373 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 2374 | 2374 | INPUT_PORTS_END |
| 2375 | 2375 | |
| 2376 | INPUT_PORTS_START( ryujin ) | |
| 2376 | static INPUT_PORTS_START( ryujin ) | |
| 2377 | 2377 | PORT_START_TAG("DSWA") |
| 2378 | 2378 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) |
| 2379 | 2379 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2432 | 2432 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 2433 | 2433 | INPUT_PORTS_END |
| 2434 | 2434 | |
| 2435 | INPUT_PORTS_START( sbm ) | |
| 2435 | static INPUT_PORTS_START( sbm ) | |
| 2436 | 2436 | PORT_START_TAG("DSWA") /* DSW A *///+-ok |
| 2437 | 2437 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2438 | 2438 | PORT_DIPSETTING( 0x01, DEF_STR( Off )) |
| r1238 | r1239 | |
|---|---|---|
| 89 | 89 | |
| 90 | 90 | /* Input Ports */ |
| 91 | 91 | |
| 92 | INPUT_PORTS_START( jackal ) | |
| 92 | static INPUT_PORTS_START( jackal ) | |
| 93 | 93 | PORT_START_TAG("DSW1") |
| 94 | 94 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 95 | 95 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
| 181 | 181 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 182 | 182 | INPUT_PORTS_END |
| 183 | 183 | |
| 184 | INPUT_PORTS_START( topgunbl ) | |
| 184 | static INPUT_PORTS_START( topgunbl ) | |
| 185 | 185 | PORT_INCLUDE(jackal) |
| 186 | 186 | |
| 187 | 187 | PORT_MODIFY("IN0") |
| r1238 | r1239 | |
|---|---|---|
| 185 | 185 | ADDRESS_MAP_END |
| 186 | 186 | |
| 187 | 187 | |
| 188 | INPUT_PORTS_START( tank8 ) | |
| 188 | static INPUT_PORTS_START( tank8 ) | |
| 189 | 189 | |
| 190 | 190 | PORT_START // 0 |
| 191 | 191 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
|---|---|---|
| 604 | 604 | /*****************************************************************************/ |
| 605 | 605 | |
| 606 | 606 | |
| 607 | INPUT_PORTS_START(viper) | |
| 607 | static INPUT_PORTS_START(viper) | |
| 608 | 608 | |
| 609 | 609 | INPUT_PORTS_END |
| 610 | 610 | |
| r1238 | r1239 | |
| 1014 | 1014 | /*****************************************************************************/ |
| 1015 | 1015 | |
| 1016 | 1016 | /* Viper BIOS */ |
| 1017 | GAME | |
| 1017 | GAME | |
| 1018 | 1018 | |
| 1019 | GAME | |
| 1019 | GAME | |
| 1020 | 1020 | |
| 1021 | GAMEB(2001, boxingm, kviper, kviper, viper, viper, vipercf, ROT0, "Konami", "Boxing Mania", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1022 | GAMEB(2000, code1d, kviper, kviper, viper, viper, vipercf, ROT0, "Konami", "Code One Dispatch", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1023 | GAMEB(2000, code1db, code1d, kviper, viper, viper, vipercf, ROT0, "Konami", "Code One Dispatch (ver B)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1024 | GAMEB(2001, gticlub2, kviper, kviper, viper, viper, vipercf, ROT0, "Konami", "GTI Club 2", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1025 | GAMEB(2001, jpark3, kviper, kviper, viper, viper, vipercf, ROT0, "Konami", "Jurassic Park 3", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1026 | GAMEB(2001, mocapglf, kviper, kviper, viper, viper, vipercf, ROT0, "Konami", "Mocap Golf", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1027 | GAMEB(2001, mocapb, kviper, kviper, viper, viper, vipercf, ROT0, "Konami", "Mocap Boxing (ver AAA)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1028 | GAMEB(2001, mocapbj, mocapb, kviper, viper, viper, vipercf, ROT0, "Konami", "Mocap Boxing (ver JAA)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1029 | GAMEB(2001, p911, kviper, kviper, viper, viper, vipercf, ROT0, "Konami", "Police 911", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1030 | GAMEB(2001, p911uc, p911, kviper, viper, viper, vipercf, ROT0, "Konami", "Police 911 (ver UAC)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1031 | GAMEB(2001, p911e, p911, kviper, viper, viper, vipercf, ROT0, "Konami", "Police 24/7 (ver EAA)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1032 | GAMEB(2001, p911j, p911, kviper, viper, viper, vipercf, ROT0, "Konami", "Keisatsukan Shinjuku 24ji (ver JAC)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1033 | GAMEB(2001, p9112, kviper, kviper, viper, viper, vipercf, ROT0, "Konami", "Police 911 2", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1034 | GAMEB(2003, popn9, kviper, kviper, viper, viper, vipercf, ROT0, "Konami", "Pop'n Music 9", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1035 | GAMEB(2001, sscopex, kviper, kviper, viper, viper, vipercf, ROT0, "Konami", "Silent Scope EX (ver UAA)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1036 | GAMEB(2001, sogeki, sscopex, kviper, viper, viper, vipercf, ROT0, "Konami", "Sogeki (ver JAA)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1037 | GAMEB(2001, thrild2, kviper, kviper, viper, viper, vipercf, ROT0, "Konami", "Thrill Drive 2", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1038 | GAMEB(2001, thrild2a, thrild2, kviper, viper, viper, vipercf, ROT0, "Konami", "Thrill Drive 2 (ver A)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1039 | GAMEB(2001, tsurugi, kviper, kviper, viper, viper, vipercf, ROT0, "Konami", "Tsurugi (ver EAB)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1040 | GAMEB(2001, tsurugij, tsurugi, kviper, viper, viper, vipercf, ROT0, "Konami", "Tsurugi (ver JAC)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1041 | GAMEB(2002, wcombat, kviper, kviper, viper, viper, vipercf, ROT0, "Konami", "World Combat", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1042 | GAMEB(2002, wcombak, wcombat, kviper, viper, viper, vipercf, ROT0, "Konami", "World Combat (ver KBC)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1043 | GAMEB(2002, wcombaj, wcombat, kviper, viper, viper, vipercf, ROT0, "Konami", "World Combat (ver JAA)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1044 | GAMEB(2002, xtrial, kviper, kviper, viper, viper, vipercf, ROT0, "Konami", "Xtrial Racing", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1021 | GAME(2001, boxingm, kviper, viper, viper, vipercf, ROT0, "Konami", "Boxing Mania", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1022 | GAME(2000, code1d, kviper, viper, viper, vipercf, ROT0, "Konami", "Code One Dispatch", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1023 | GAME(2000, code1db, code1d, viper, viper, vipercf, ROT0, "Konami", "Code One Dispatch (ver B)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1024 | GAME(2001, gticlub2, kviper, viper, viper, vipercf, ROT0, "Konami", "GTI Club 2", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1025 | GAME(2001, jpark3, kviper, viper, viper, vipercf, ROT0, "Konami", "Jurassic Park 3", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1026 | GAME(2001, mocapglf, kviper, viper, viper, vipercf, ROT0, "Konami", "Mocap Golf", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1027 | GAME(2001, mocapb, kviper, viper, viper, vipercf, ROT0, "Konami", "Mocap Boxing (ver AAA)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1028 | GAME(2001, mocapbj, mocapb, viper, viper, vipercf, ROT0, "Konami", "Mocap Boxing (ver JAA)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1029 | GAME(2001, p911, kviper, viper, viper, vipercf, ROT0, "Konami", "Police 911", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1030 | GAME(2001, p911uc, p911, viper, viper, vipercf, ROT0, "Konami", "Police 911 (ver UAC)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1031 | GAME(2001, p911e, p911, viper, viper, vipercf, ROT0, "Konami", "Police 24/7 (ver EAA)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1032 | GAME(2001, p911j, p911, viper, viper, vipercf, ROT0, "Konami", "Keisatsukan Shinjuku 24ji (ver JAC)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1033 | GAME(2001, p9112, kviper, viper, viper, vipercf, ROT0, "Konami", "Police 911 2", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1034 | GAME(2003, popn9, kviper, viper, viper, vipercf, ROT0, "Konami", "Pop'n Music 9", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1035 | GAME(2001, sscopex, kviper, viper, viper, vipercf, ROT0, "Konami", "Silent Scope EX (ver UAA)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1036 | GAME(2001, sogeki, sscopex, viper, viper, vipercf, ROT0, "Konami", "Sogeki (ver JAA)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1037 | GAME(2001, thrild2, kviper, viper, viper, vipercf, ROT0, "Konami", "Thrill Drive 2", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1038 | GAME(2001, thrild2a, thrild2, viper, viper, vipercf, ROT0, "Konami", "Thrill Drive 2 (ver A)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1039 | GAME(2001, tsurugi, kviper, viper, viper, vipercf, ROT0, "Konami", "Tsurugi (ver EAB)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1040 | GAME(2001, tsurugij, tsurugi, viper, viper, vipercf, ROT0, "Konami", "Tsurugi (ver JAC)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1041 | GAME(2002, wcombat, kviper, viper, viper, vipercf, ROT0, "Konami", "World Combat", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1042 | GAME(2002, wcombak, wcombat, viper, viper, vipercf, ROT0, "Konami", "World Combat (ver KBC)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1043 | GAME(2002, wcombaj, wcombat, viper, viper, vipercf, ROT0, "Konami", "World Combat (ver JAA)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1044 | GAME(2002, xtrial, kviper, viper, viper, vipercf, ROT0, "Konami", "Xtrial Racing", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1045 | 1045 | |
| 1046 | GAMEB(2002, mfightc, kviper, kviper, viper, viper, vipercf, ROT0, "Konami", "Mahjong Fight Club (ver D)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1047 | GAMEB(2002, mfightcc, mfightc, kviper, viper, viper, vipercf, ROT0, "Konami", "Mahjong Fight Club (ver C)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1046 | GAME(2002, mfightc, kviper, viper, viper, vipercf, ROT0, "Konami", "Mahjong Fight Club (ver D)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 1047 | GAME(2002, mfightcc, mfightc, viper, viper, vipercf, ROT0, "Konami", "Mahjong Fight Club (ver C)", GAME_NOT_WORKING|GAME_NO_SOUND) |
| r1238 | r1239 | |
|---|---|---|
| 453 | 453 | |
| 454 | 454 | /*******************************************************************/ |
| 455 | 455 | |
| 456 | INPUT_PORTS_START( hopmappy ) | |
| 456 | static INPUT_PORTS_START( hopmappy ) | |
| 457 | 457 | PORT_START_TAG("IN0") |
| 458 | 458 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 player 2 */ |
| 459 | 459 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 2 player 1 */ |
| r1238 | r1239 | |
| 532 | 532 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 533 | 533 | INPUT_PORTS_END |
| 534 | 534 | |
| 535 | INPUT_PORTS_START( skykiddx ) | |
| 535 | static INPUT_PORTS_START( skykiddx ) | |
| 536 | 536 | PORT_START_TAG("IN0") |
| 537 | 537 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 player 2 */ |
| 538 | 538 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 610 | 610 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 611 | 611 | INPUT_PORTS_END |
| 612 | 612 | |
| 613 | INPUT_PORTS_START( roishtar ) | |
| 613 | static INPUT_PORTS_START( roishtar ) | |
| 614 | 614 | PORT_START_TAG("IN0") |
| 615 | 615 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 player 2 */ |
| 616 | 616 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 692 | 692 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_LEFT ) PORT_8WAY |
| 693 | 693 | INPUT_PORTS_END |
| 694 | 694 | |
| 695 | INPUT_PORTS_START( genpeitd ) | |
| 695 | static INPUT_PORTS_START( genpeitd ) | |
| 696 | 696 | PORT_START_TAG("IN0") |
| 697 | 697 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 player 2 */ |
| 698 | 698 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 770 | 770 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 771 | 771 | INPUT_PORTS_END |
| 772 | 772 | |
| 773 | INPUT_PORTS_START( rthunder ) | |
| 773 | static INPUT_PORTS_START( rthunder ) | |
| 774 | 774 | PORT_START_TAG("IN0") |
| 775 | 775 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 player 2 */ |
| 776 | 776 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 849 | 849 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(2) |
| 850 | 850 | INPUT_PORTS_END |
| 851 | 851 | |
| 852 | INPUT_PORTS_START( rthundro ) | |
| 852 | static INPUT_PORTS_START( rthundro ) | |
| 853 | 853 | PORT_START_TAG("IN0") |
| 854 | 854 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 player 2 */ |
| 855 | 855 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 928 | 928 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(2) |
| 929 | 929 | INPUT_PORTS_END |
| 930 | 930 | |
| 931 | INPUT_PORTS_START( wndrmomo ) | |
| 931 | static INPUT_PORTS_START( wndrmomo ) | |
| 932 | 932 | PORT_START_TAG("IN0") |
| 933 | 933 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 player 2 */ |
| 934 | 934 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
|---|---|---|
| 1137 | 1137 | Hard Head |
| 1138 | 1138 | ***************************************************************************/ |
| 1139 | 1139 | |
| 1140 | INPUT_PORTS_START( hardhead ) | |
| 1140 | static INPUT_PORTS_START( hardhead ) | |
| 1141 | 1141 | |
| 1142 | 1142 | PORT_START_TAG("IN0") // Player 1 - $da00 (ip = 0) |
| 1143 | 1143 | JOY(1) |
| r1238 | r1239 | |
| 1201 | 1201 | Rough Ranger |
| 1202 | 1202 | ***************************************************************************/ |
| 1203 | 1203 | |
| 1204 | INPUT_PORTS_START( rranger ) | |
| 1204 | static INPUT_PORTS_START( rranger ) | |
| 1205 | 1205 | |
| 1206 | 1206 | PORT_START_TAG("IN0") // Player 1 - $c002 |
| 1207 | 1207 | JOY(1) |
| r1238 | r1239 | |
| 1266 | 1266 | Brick Zone |
| 1267 | 1267 | ***************************************************************************/ |
| 1268 | 1268 | |
| 1269 | INPUT_PORTS_START( brickzn ) | |
| 1269 | static INPUT_PORTS_START( brickzn ) | |
| 1270 | 1270 | |
| 1271 | 1271 | PORT_START_TAG("IN0") // Player 1 - $c100 |
| 1272 | 1272 | JOY(1) |
| r1238 | r1239 | |
| 1339 | 1339 | Hard Head 2 / Star Fighter |
| 1340 | 1340 | ***************************************************************************/ |
| 1341 | 1341 | |
| 1342 | INPUT_PORTS_START( hardhea2 ) | |
| 1342 | static INPUT_PORTS_START( hardhea2 ) | |
| 1343 | 1343 | |
| 1344 | 1344 | PORT_START_TAG("IN0") // Player 1 - $c000 |
| 1345 | 1345 | JOY(1) |
| r1238 | r1239 | |
| 1413 | 1413 | Spark Man |
| 1414 | 1414 | ***************************************************************************/ |
| 1415 | 1415 | |
| 1416 | INPUT_PORTS_START( sparkman ) | |
| 1416 | static INPUT_PORTS_START( sparkman ) | |
| 1417 | 1417 | |
| 1418 | 1418 | PORT_START_TAG("IN0") // Player 1 - $c000 |
| 1419 | 1419 | JOY(1) |
| r1238 | r1239 | |
|---|---|---|
| 143 | 143 | |
| 144 | 144 | /******************************************************************************/ |
| 145 | 145 | |
| 146 | INPUT_PORTS_START( vaportra ) | |
| 146 | static INPUT_PORTS_START( vaportra ) | |
| 147 | 147 | PORT_START /* Player 1 controls */ |
| 148 | 148 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 149 | 149 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 526 | 526 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED )\ |
| 527 | 527 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )\ |
| 528 | 528 | |
| 529 | INPUT_PORTS_START( btime ) | |
| 529 | static INPUT_PORTS_START( btime ) | |
| 530 | 530 | COMMON_INPUTS |
| 531 | 531 | |
| 532 | 532 | PORT_START_TAG("IN2") |
| r1238 | r1239 | |
| 585 | 585 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 586 | 586 | INPUT_PORTS_END |
| 587 | 587 | |
| 588 | INPUT_PORTS_START( cookrace ) | |
| 588 | static INPUT_PORTS_START( cookrace ) | |
| 589 | 589 | PORT_START_TAG("IN0") |
| 590 | 590 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 591 | 591 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 664 | 664 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 665 | 665 | INPUT_PORTS_END |
| 666 | 666 | |
| 667 | INPUT_PORTS_START( zoar ) | |
| 667 | static INPUT_PORTS_START( zoar ) | |
| 668 | 668 | PORT_START_TAG("IN0") |
| 669 | 669 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 670 | 670 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 740 | 740 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 741 | 741 | INPUT_PORTS_END |
| 742 | 742 | |
| 743 | INPUT_PORTS_START( lnc ) | |
| 743 | static INPUT_PORTS_START( lnc ) | |
| 744 | 744 | PORT_START_TAG("IN0") |
| 745 | 745 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 746 | 746 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 810 | 810 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 811 | 811 | INPUT_PORTS_END |
| 812 | 812 | |
| 813 | INPUT_PORTS_START( wtennis ) | |
| 813 | static INPUT_PORTS_START( wtennis ) | |
| 814 | 814 | PORT_START_TAG("IN0") |
| 815 | 815 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 816 | 816 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 881 | 881 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 882 | 882 | INPUT_PORTS_END |
| 883 | 883 | |
| 884 | INPUT_PORTS_START( mmonkey ) | |
| 884 | static INPUT_PORTS_START( mmonkey ) | |
| 885 | 885 | PORT_START_TAG("IN0") |
| 886 | 886 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 887 | 887 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 949 | 949 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 950 | 950 | INPUT_PORTS_END |
| 951 | 951 | |
| 952 | INPUT_PORTS_START( bnj ) | |
| 952 | static INPUT_PORTS_START( bnj ) | |
| 953 | 953 | PORT_START_TAG("IN0") |
| 954 | 954 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 955 | 955 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 1027 | 1027 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1028 | 1028 | INPUT_PORTS_END |
| 1029 | 1029 | |
| 1030 | INPUT_PORTS_START( disco ) | |
| 1030 | static INPUT_PORTS_START( disco ) | |
| 1031 | 1031 | PORT_START_TAG("IN0") |
| 1032 | 1032 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 1033 | 1033 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 1105 | 1105 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 1106 | 1106 | INPUT_PORTS_END |
| 1107 | 1107 | |
| 1108 | INPUT_PORTS_START( sdtennis ) | |
| 1108 | static INPUT_PORTS_START( sdtennis ) | |
| 1109 | 1109 | PORT_START_TAG("IN0") |
| 1110 | 1110 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 1111 | 1111 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 419 | 419 | * |
| 420 | 420 | *************************************/ |
| 421 | 421 | |
| 422 | INPUT_PORTS_START( qdrmfgp ) | |
| 422 | static INPUT_PORTS_START( qdrmfgp ) | |
| 423 | 423 | PORT_START |
| 424 | 424 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| 425 | 425 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 499 | 499 | PORT_BIT( 0xfff0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 500 | 500 | INPUT_PORTS_END |
| 501 | 501 | |
| 502 | INPUT_PORTS_START( qdrmfgp2 ) | |
| 502 | static INPUT_PORTS_START( qdrmfgp2 ) | |
| 503 | 503 | PORT_START |
| 504 | 504 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| 505 | 505 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 604 | 604 | PORT_DIPSETTING( 0x00, "8 (Hardest)" ) |
| 605 | 605 | |
| 606 | 606 | |
| 607 | INPUT_PORTS_START( forgottn ) | |
| 607 | static INPUT_PORTS_START( forgottn ) | |
| 608 | 608 | PORT_START_TAG("IN0") |
| 609 | 609 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 610 | 610 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 691 | 691 | PORT_BIT( 0x0fff, 0x0000, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_CODE_DEC(KEYCODE_N) PORT_CODE_INC(KEYCODE_M) PORT_PLAYER(2) |
| 692 | 692 | INPUT_PORTS_END |
| 693 | 693 | |
| 694 | INPUT_PORTS_START( ghouls ) | |
| 694 | static INPUT_PORTS_START( ghouls ) | |
| 695 | 695 | PORT_START_TAG("IN0") |
| 696 | 696 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 697 | 697 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 773 | 773 | |
| 774 | 774 | /* Same as 'ghouls' but additional "Freeze" Dip Switch, different "Lives" Dip Switch, |
| 775 | 775 | and LOTS of "debug" features (read the notes to know how to activate them) */ |
| 776 | INPUT_PORTS_START( ghoulsu ) | |
| 776 | static INPUT_PORTS_START( ghoulsu ) | |
| 777 | 777 | PORT_START_TAG("IN0") |
| 778 | 778 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 779 | 779 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 924 | 924 | INPUT_PORTS_END |
| 925 | 925 | |
| 926 | 926 | /* Same as 'ghouls' but additional "Freeze" Dip Switch */ |
| 927 | INPUT_PORTS_START( daimakai ) | |
| 927 | static INPUT_PORTS_START( daimakai ) | |
| 928 | 928 | PORT_INCLUDE(ghouls) |
| 929 | 929 | |
| 930 | 930 | PORT_MODIFY("DSWB") |
| r1238 | r1239 | |
| 934 | 934 | INPUT_PORTS_END |
| 935 | 935 | |
| 936 | 936 | /* "Debug" features to be implemented */ |
| 937 | INPUT_PORTS_START( strider ) | |
| 937 | static INPUT_PORTS_START( strider ) | |
| 938 | 938 | PORT_START_TAG("IN0") |
| 939 | 939 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 940 | 940 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1018 | 1018 | |
| 1019 | 1019 | /* Same as 'strider' but additional "2 Coins to Start, 1 to Continue" Dip Switch */ |
| 1020 | 1020 | /* "Debug" features to be implemented */ |
| 1021 | INPUT_PORTS_START( stridrua ) | |
| 1021 | static INPUT_PORTS_START( stridrua ) | |
| 1022 | 1022 | PORT_START_TAG("IN0") |
| 1023 | 1023 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1024 | 1024 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1100 | 1100 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1101 | 1101 | INPUT_PORTS_END |
| 1102 | 1102 | |
| 1103 | INPUT_PORTS_START( dynwar ) | |
| 1103 | static INPUT_PORTS_START( dynwar ) | |
| 1104 | 1104 | PORT_START_TAG("IN0") |
| 1105 | 1105 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1106 | 1106 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1186 | 1186 | INPUT_PORTS_END |
| 1187 | 1187 | |
| 1188 | 1188 | /* Read the notes to know how to activate the "debug" features */ |
| 1189 | INPUT_PORTS_START( willow ) | |
| 1189 | static INPUT_PORTS_START( willow ) | |
| 1190 | 1190 | PORT_START_TAG("IN0") |
| 1191 | 1191 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1192 | 1192 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1351 | 1351 | INPUT_PORTS_END |
| 1352 | 1352 | |
| 1353 | 1353 | /* To enable extra choices in the "test mode", you must press "Coin 1" ('5') AND "Service Mode" ('F2') */ |
| 1354 | INPUT_PORTS_START( unsquad ) | |
| 1354 | static INPUT_PORTS_START( unsquad ) | |
| 1355 | 1355 | PORT_START_TAG("IN0") |
| 1356 | 1356 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1357 | 1357 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1437 | 1437 | |
| 1438 | 1438 | /* To enable other choices in the "test mode", you must press ("P1 Button 1" ('Ctrl') |
| 1439 | 1439 | or "P1 Button 2" ('Alt')) when "Service Mode" is ON */ |
| 1440 | INPUT_PORTS_START( ffight ) | |
| 1440 | static INPUT_PORTS_START( ffight ) | |
| 1441 | 1441 | PORT_START_TAG("IN0") |
| 1442 | 1442 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1443 | 1443 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1525 | 1525 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1526 | 1526 | INPUT_PORTS_END |
| 1527 | 1527 | |
| 1528 | INPUT_PORTS_START( 1941 ) | |
| 1528 | static INPUT_PORTS_START( 1941 ) | |
| 1529 | 1529 | PORT_START_TAG("IN0") |
| 1530 | 1530 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1531 | 1531 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1606 | 1606 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1607 | 1607 | INPUT_PORTS_END |
| 1608 | 1608 | |
| 1609 | INPUT_PORTS_START( mercs ) | |
| 1609 | static INPUT_PORTS_START( mercs ) | |
| 1610 | 1610 | PORT_START_TAG("IN0") |
| 1611 | 1611 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1612 | 1612 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1719 | 1719 | - 0xff14ab.w : energy (player 1) |
| 1720 | 1720 | - 0xff156b.w : energy (player 2) |
| 1721 | 1721 | */ |
| 1722 | INPUT_PORTS_START( mtwins ) | |
| 1722 | static INPUT_PORTS_START( mtwins ) | |
| 1723 | 1723 | PORT_START_TAG("IN0") |
| 1724 | 1724 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1725 | 1725 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1807 | 1807 | - code at 0x019b62 ('msword' and 'mswordr1'), 0x019bde ('mswordu') or 0x019c26 ('mswordj') : unknown effect |
| 1808 | 1808 | - code at 0x01c322 ('msword' and 'mswordr1'), 0x01c39e ('mswordu') or 0x01c3e0 ('mswordj') : unknown effect |
| 1809 | 1809 | These features are not available because of the 'bra' instruction after the test of bit 7. */ |
| 1810 | INPUT_PORTS_START( msword ) | |
| 1810 | static INPUT_PORTS_START( msword ) | |
| 1811 | 1811 | PORT_START_TAG("IN0") |
| 1812 | 1812 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1813 | 1813 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1897 | 1897 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1898 | 1898 | INPUT_PORTS_END |
| 1899 | 1899 | |
| 1900 | INPUT_PORTS_START( cawing ) | |
| 1900 | static INPUT_PORTS_START( cawing ) | |
| 1901 | 1901 | PORT_START_TAG("IN0") |
| 1902 | 1902 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1903 | 1903 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1988 | 1988 | INPUT_PORTS_END |
| 1989 | 1989 | |
| 1990 | 1990 | /* "Debug" features to be implemented */ |
| 1991 | INPUT_PORTS_START( nemo ) | |
| 1991 | static INPUT_PORTS_START( nemo ) | |
| 1992 | 1992 | PORT_START_TAG("IN0") |
| 1993 | 1993 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1994 | 1994 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2069 | 2069 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2070 | 2070 | INPUT_PORTS_END |
| 2071 | 2071 | |
| 2072 | INPUT_PORTS_START( sf2 ) | |
| 2072 | static INPUT_PORTS_START( sf2 ) | |
| 2073 | 2073 | PORT_START_TAG("IN0") |
| 2074 | 2074 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2075 | 2075 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2163 | 2163 | INPUT_PORTS_END |
| 2164 | 2164 | |
| 2165 | 2165 | /* Needs further checking */ |
| 2166 | INPUT_PORTS_START( sf2j ) | |
| 2166 | static INPUT_PORTS_START( sf2j ) | |
| 2167 | 2167 | PORT_START_TAG("IN0") |
| 2168 | 2168 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2169 | 2169 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2256 | 2256 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2257 | 2257 | INPUT_PORTS_END |
| 2258 | 2258 | |
| 2259 | INPUT_PORTS_START( 3wonders ) | |
| 2259 | static INPUT_PORTS_START( 3wonders ) | |
| 2260 | 2260 | PORT_START_TAG("IN0") |
| 2261 | 2261 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2262 | 2262 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2342 | 2342 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2343 | 2343 | INPUT_PORTS_END |
| 2344 | 2344 | |
| 2345 | INPUT_PORTS_START( kod ) | |
| 2345 | static INPUT_PORTS_START( kod ) | |
| 2346 | 2346 | PORT_START_TAG("IN0") |
| 2347 | 2347 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2348 | 2348 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2445 | 2445 | |
| 2446 | 2446 | /* Needs further checking |
| 2447 | 2447 | Same as kod but different "Bonus_life" values */ |
| 2448 | INPUT_PORTS_START( kodj ) | |
| 2448 | static INPUT_PORTS_START( kodj ) | |
| 2449 | 2449 | PORT_START_TAG("IN0") |
| 2450 | 2450 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2451 | 2451 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2547 | 2547 | INPUT_PORTS_END |
| 2548 | 2548 | |
| 2549 | 2549 | |
| 2550 | INPUT_PORTS_START( captcomm ) | |
| 2550 | static INPUT_PORTS_START( captcomm ) | |
| 2551 | 2551 | PORT_START_TAG("IN0") |
| 2552 | 2552 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2553 | 2553 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2664 | 2664 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 ) |
| 2665 | 2665 | INPUT_PORTS_END |
| 2666 | 2666 | |
| 2667 | INPUT_PORTS_START( knights ) | |
| 2667 | static INPUT_PORTS_START( knights ) | |
| 2668 | 2668 | PORT_START_TAG("IN0") |
| 2669 | 2669 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2670 | 2670 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2773 | 2773 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START3 ) |
| 2774 | 2774 | INPUT_PORTS_END |
| 2775 | 2775 | |
| 2776 | INPUT_PORTS_START( varth ) | |
| 2776 | static INPUT_PORTS_START( varth ) | |
| 2777 | 2777 | PORT_START_TAG("IN0") |
| 2778 | 2778 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2779 | 2779 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2855 | 2855 | INPUT_PORTS_END |
| 2856 | 2856 | |
| 2857 | 2857 | /* Needs further checking */ |
| 2858 | INPUT_PORTS_START( cworld2j ) | |
| 2858 | static INPUT_PORTS_START( cworld2j ) | |
| 2859 | 2859 | PORT_START_TAG("IN0") |
| 2860 | 2860 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2861 | 2861 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2951 | 2951 | INPUT_PORTS_END |
| 2952 | 2952 | |
| 2953 | 2953 | /* Needs further checking */ |
| 2954 | INPUT_PORTS_START( wof ) | |
| 2954 | static INPUT_PORTS_START( wof ) | |
| 2955 | 2955 | PORT_START_TAG("IN0") |
| 2956 | 2956 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2957 | 2957 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 3004 | 3004 | INPUT_PORTS_END |
| 3005 | 3005 | |
| 3006 | 3006 | /* Needs further checking */ |
| 3007 | INPUT_PORTS_START( dino ) | |
| 3007 | static INPUT_PORTS_START( dino ) | |
| 3008 | 3008 | PORT_START_TAG("IN0") |
| 3009 | 3009 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 3010 | 3010 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 3057 | 3057 | INPUT_PORTS_END |
| 3058 | 3058 | |
| 3059 | 3059 | /* Needs further checking */ |
| 3060 | INPUT_PORTS_START( punisher ) | |
| 3060 | static INPUT_PORTS_START( punisher ) | |
| 3061 | 3061 | PORT_START_TAG("IN0") |
| 3062 | 3062 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 3063 | 3063 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 3100 | 3100 | INPUT_PORTS_END |
| 3101 | 3101 | |
| 3102 | 3102 | /* Needs further checking */ |
| 3103 | INPUT_PORTS_START( slammast ) | |
| 3103 | static INPUT_PORTS_START( slammast ) | |
| 3104 | 3104 | PORT_START_TAG("IN0") |
| 3105 | 3105 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 3106 | 3106 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 3163 | 3163 | INPUT_PORTS_END |
| 3164 | 3164 | |
| 3165 | 3165 | /* Needs further checking */ |
| 3166 | INPUT_PORTS_START( pnickj ) | |
| 3166 | static INPUT_PORTS_START( pnickj ) | |
| 3167 | 3167 | PORT_START_TAG("IN0") |
| 3168 | 3168 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 3169 | 3169 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 3255 | 3255 | INPUT_PORTS_END |
| 3256 | 3256 | |
| 3257 | 3257 | /* Needs further checking */ |
| 3258 | INPUT_PORTS_START( qad ) | |
| 3258 | static INPUT_PORTS_START( qad ) | |
| 3259 | 3259 | PORT_START_TAG("IN0") |
| 3260 | 3260 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 3261 | 3261 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 3358 | 3358 | INPUT_PORTS_END |
| 3359 | 3359 | |
| 3360 | 3360 | /* Needs further checking */ |
| 3361 | INPUT_PORTS_START( qadj ) | |
| 3361 | static INPUT_PORTS_START( qadj ) | |
| 3362 | 3362 | PORT_START_TAG("IN0") |
| 3363 | 3363 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 3364 | 3364 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 3465 | 3465 | INPUT_PORTS_END |
| 3466 | 3466 | |
| 3467 | 3467 | /* Needs further checking */ |
| 3468 | INPUT_PORTS_START( qtono2 ) | |
| 3468 | static INPUT_PORTS_START( qtono2 ) | |
| 3469 | 3469 | PORT_START_TAG("IN0") |
| 3470 | 3470 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 3471 | 3471 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 3564 | 3564 | INPUT_PORTS_END |
| 3565 | 3565 | |
| 3566 | 3566 | /* Needs further checking */ |
| 3567 | INPUT_PORTS_START( pang3 ) | |
| 3567 | static INPUT_PORTS_START( pang3 ) | |
| 3568 | 3568 | PORT_START_TAG("IN0") |
| 3569 | 3569 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 3570 | 3570 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 3606 | 3606 | INPUT_PORTS_END |
| 3607 | 3607 | |
| 3608 | 3608 | /* Needs further checking */ |
| 3609 | INPUT_PORTS_START( megaman ) | |
| 3609 | static INPUT_PORTS_START( megaman ) | |
| 3610 | 3610 | PORT_START_TAG("IN0") |
| 3611 | 3611 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 3612 | 3612 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 3719 | 3719 | |
| 3720 | 3720 | /* Needs further checking */ |
| 3721 | 3721 | /* Same as 'megaman' but no "Voice" Dip Switch */ |
| 3722 | INPUT_PORTS_START( rockmanj ) | |
| 3722 | static INPUT_PORTS_START( rockmanj ) | |
| 3723 | 3723 | PORT_START_TAG("IN0") |
| 3724 | 3724 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 3725 | 3725 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 72 | 72 | |
| 73 | 73 | |
| 74 | 74 | |
| 75 | INPUT_PORTS_START( nova2001 ) | |
| 75 | static INPUT_PORTS_START( nova2001 ) | |
| 76 | 76 | PORT_START |
| 77 | 77 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 78 | 78 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 68 | 68 | |
| 69 | 69 | |
| 70 | 70 | |
| 71 | INPUT_PORTS_START( starcrus ) | |
| 71 | static INPUT_PORTS_START( starcrus ) | |
| 72 | 72 | PORT_START /* player 1 */ |
| 73 | 73 | PORT_BIT (0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY /* ccw */ |
| 74 | 74 | PORT_BIT (0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) /* engine */ |
| r1238 | r1239 | |
|---|---|---|
| 225 | 225 | Magic Bubble |
| 226 | 226 | ***************************************************************************/ |
| 227 | 227 | |
| 228 | INPUT_PORTS_START( magicbub ) | |
| 228 | static INPUT_PORTS_START( magicbub ) | |
| 229 | 229 | PORT_START_TAG("IN0") // $800000.w |
| 230 | 230 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| 231 | 231 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 295 | 295 | Magic Bubble (Adult version) |
| 296 | 296 | ***************************************************************************/ |
| 297 | 297 | |
| 298 | INPUT_PORTS_START( magicbua ) | |
| 298 | static INPUT_PORTS_START( magicbua ) | |
| 299 | 299 | PORT_INCLUDE(magicbub) |
| 300 | 300 | |
| 301 | 301 | PORT_MODIFY("DSW2") |
| r1238 | r1239 | |
| 310 | 310 | Shocking |
| 311 | 311 | ***************************************************************************/ |
| 312 | 312 | |
| 313 | INPUT_PORTS_START( shocking ) | |
| 313 | static INPUT_PORTS_START( shocking ) | |
| 314 | 314 | PORT_START_TAG("IN0") // $800000.w |
| 315 | 315 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| 316 | 316 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 383 | 383 | Bomb Kick |
| 384 | 384 | ***************************************************************************/ |
| 385 | 385 | |
| 386 | INPUT_PORTS_START( bombkick ) | |
| 386 | static INPUT_PORTS_START( bombkick ) | |
| 387 | 387 | PORT_START_TAG("IN0") // $800000.w |
| 388 | 388 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| 389 | 389 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 522 | 522 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY\ |
| 523 | 523 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 524 | 524 | |
| 525 | INPUT_PORTS_START( scobra ) | |
| 525 | static INPUT_PORTS_START( scobra ) | |
| 526 | 526 | SCOBRA_IN0 |
| 527 | 527 | SCOBRA_IN1 |
| 528 | 528 | SCOBRA_IN2 |
| 529 | 529 | INPUT_PORTS_END |
| 530 | 530 | |
| 531 | 531 | /* identical to scobra apart from the number of lives */ |
| 532 | INPUT_PORTS_START( scobras ) | |
| 532 | static INPUT_PORTS_START( scobras ) | |
| 533 | 533 | SCOBRA_IN0 |
| 534 | 534 | |
| 535 | 535 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 549 | 549 | SCOBRA_IN2 |
| 550 | 550 | INPUT_PORTS_END |
| 551 | 551 | |
| 552 | INPUT_PORTS_START( stratgyx ) | |
| 552 | static INPUT_PORTS_START( stratgyx ) | |
| 553 | 553 | SCOBRA_IN0 |
| 554 | 554 | |
| 555 | 555 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 617 | 617 | PORT_DIPSETTING( 0x00, "A 1/99 B 1/3" ) |
| 618 | 618 | INPUT_PORTS_END |
| 619 | 619 | |
| 620 | INPUT_PORTS_START( armorcar ) | |
| 620 | static INPUT_PORTS_START( armorcar ) | |
| 621 | 621 | PORT_START_TAG("IN0") |
| 622 | 622 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| 623 | 623 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 683 | 683 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 )\ |
| 684 | 684 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 685 | 685 | |
| 686 | INPUT_PORTS_START( moonwar ) | |
| 686 | static INPUT_PORTS_START( moonwar ) | |
| 687 | 687 | MOONWAR_COMMON |
| 688 | 688 | |
| 689 | 689 | PORT_START_TAG("IN2") |
| r1238 | r1239 | |
| 706 | 706 | INPUT_PORTS_END |
| 707 | 707 | |
| 708 | 708 | /* same as above, but coinage is different */ |
| 709 | INPUT_PORTS_START( moonwara ) | |
| 709 | static INPUT_PORTS_START( moonwara ) | |
| 710 | 710 | MOONWAR_COMMON |
| 711 | 711 | |
| 712 | 712 | PORT_START_TAG("IN2") |
| r1238 | r1239 | |
| 728 | 728 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_RESET PORT_COCKTAIL |
| 729 | 729 | INPUT_PORTS_END |
| 730 | 730 | |
| 731 | INPUT_PORTS_START( spdcoin ) | |
| 731 | static INPUT_PORTS_START( spdcoin ) | |
| 732 | 732 | PORT_START_TAG("IN0") |
| 733 | 733 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 734 | 734 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 763 | 763 | INPUT_PORTS_END |
| 764 | 764 | |
| 765 | 765 | /* cocktail mode is N/A */ |
| 766 | INPUT_PORTS_START( darkplnt ) | |
| 766 | static INPUT_PORTS_START( darkplnt ) | |
| 767 | 767 | PORT_START_TAG("IN0") |
| 768 | 768 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 769 | 769 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 801 | 801 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 802 | 802 | INPUT_PORTS_END |
| 803 | 803 | |
| 804 | INPUT_PORTS_START( tazmania ) | |
| 804 | static INPUT_PORTS_START( tazmania ) | |
| 805 | 805 | PORT_START_TAG("IN0") |
| 806 | 806 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 807 | 807 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 849 | 849 | INPUT_PORTS_END |
| 850 | 850 | |
| 851 | 851 | /* cocktail mode is N/A */ |
| 852 | INPUT_PORTS_START( calipso ) | |
| 852 | static INPUT_PORTS_START( calipso ) | |
| 853 | 853 | PORT_START_TAG("IN0") |
| 854 | 854 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 855 | 855 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 891 | 891 | INPUT_PORTS_END |
| 892 | 892 | |
| 893 | 893 | /* cocktail mode not working due to bug in game code */ |
| 894 | INPUT_PORTS_START( anteater ) | |
| 894 | static INPUT_PORTS_START( anteater ) | |
| 895 | 895 | PORT_START_TAG("IN0") |
| 896 | 896 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 897 | 897 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 938 | 938 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 939 | 939 | INPUT_PORTS_END |
| 940 | 940 | |
| 941 | INPUT_PORTS_START( anteatg ) | |
| 941 | static INPUT_PORTS_START( anteatg ) | |
| 942 | 942 | PORT_START_TAG("IN0") |
| 943 | 943 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL |
| 944 | 944 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Coinage ) ) |
| r1238 | r1239 | |
| 989 | 989 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 990 | 990 | INPUT_PORTS_END |
| 991 | 991 | |
| 992 | INPUT_PORTS_START( anteatgb ) | |
| 992 | static INPUT_PORTS_START( anteatgb ) | |
| 993 | 993 | PORT_START_TAG("IN0") |
| 994 | 994 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| 995 | 995 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) |
| r1238 | r1239 | |
| 1041 | 1041 | INPUT_PORTS_END |
| 1042 | 1042 | |
| 1043 | 1043 | /* cocktail mode is N/A */ |
| 1044 | INPUT_PORTS_START( rescue ) | |
| 1044 | static INPUT_PORTS_START( rescue ) | |
| 1045 | 1045 | PORT_START_TAG("IN0") |
| 1046 | 1046 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1047 | 1047 | PORT_DIPNAME( 0x02, 0x02, "Starting Level" ) |
| r1238 | r1239 | |
| 1095 | 1095 | INPUT_PORTS_END |
| 1096 | 1096 | |
| 1097 | 1097 | /* cocktail mode is N/A */ |
| 1098 | INPUT_PORTS_START( minefld ) | |
| 1098 | static INPUT_PORTS_START( minefld ) | |
| 1099 | 1099 | PORT_START_TAG("IN0") |
| 1100 | 1100 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1101 | 1101 | PORT_DIPNAME( 0x02, 0x02, "Starting Level" ) |
| r1238 | r1239 | |
| 1149 | 1149 | INPUT_PORTS_END |
| 1150 | 1150 | |
| 1151 | 1151 | /* cocktail mode is N/A */ |
| 1152 | INPUT_PORTS_START( losttomb ) | |
| 1152 | static INPUT_PORTS_START( losttomb ) | |
| 1153 | 1153 | PORT_START_TAG("IN0") |
| 1154 | 1154 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START2 ) |
| 1155 | 1155 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 1202 | 1202 | INPUT_PORTS_END |
| 1203 | 1203 | |
| 1204 | 1204 | /* cocktail mode is N/A */ |
| 1205 | INPUT_PORTS_START( superbon ) | |
| 1205 | static INPUT_PORTS_START( superbon ) | |
| 1206 | 1206 | PORT_START_TAG("IN0") |
| 1207 | 1207 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START2 ) |
| 1208 | 1208 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 1260 | 1260 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1261 | 1261 | INPUT_PORTS_END |
| 1262 | 1262 | |
| 1263 | INPUT_PORTS_START( hustler ) | |
| 1263 | static INPUT_PORTS_START( hustler ) | |
| 1264 | 1264 | PORT_START_TAG("IN0") |
| 1265 | 1265 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 1266 | 1266 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 1332 | 1332 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) )\ |
| 1333 | 1333 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1334 | 1334 | |
| 1335 | INPUT_PORTS_START( mimonkey ) | |
| 1335 | static INPUT_PORTS_START( mimonkey ) | |
| 1336 | 1336 | MM_COMMON1 |
| 1337 | 1337 | |
| 1338 | 1338 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 1353 | 1353 | INPUT_PORTS_END |
| 1354 | 1354 | |
| 1355 | 1355 | /* Same as 'mimonkey' but different "Lives" Dip Switch */ |
| 1356 | INPUT_PORTS_START( mimonsco ) | |
| 1356 | static INPUT_PORTS_START( mimonsco ) | |
| 1357 | 1357 | MM_COMMON1 |
| 1358 | 1358 | |
| 1359 | 1359 | PORT_START /* IN1 */ |
| r1238 | r1239 | |
|---|---|---|
| 329 | 329 | PORT_DIPSETTING( 0x20, "30000 90000" )\ |
| 330 | 330 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) |
| 331 | 331 | |
| 332 | INPUT_PORTS_START( stinger ) | |
| 332 | static INPUT_PORTS_START( stinger ) | |
| 333 | 333 | COMMON_IN01 |
| 334 | 334 | COMMON_DSW0 |
| 335 | 335 | PORT_START_TAG("DSW1") |
| r1238 | r1239 | |
| 358 | 358 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| 359 | 359 | INPUT_PORTS_END |
| 360 | 360 | |
| 361 | INPUT_PORTS_START( stinger2 ) | |
| 361 | static INPUT_PORTS_START( stinger2 ) | |
| 362 | 362 | COMMON_IN01 |
| 363 | 363 | COMMON_DSW0 |
| 364 | 364 | |
| r1238 | r1239 | |
| 389 | 389 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| 390 | 390 | INPUT_PORTS_END |
| 391 | 391 | |
| 392 | INPUT_PORTS_START( scion ) | |
| 392 | static INPUT_PORTS_START( scion ) | |
| 393 | 393 | COMMON_IN01 |
| 394 | 394 | |
| 395 | 395 | PORT_START_TAG("DSW0") |
| r1238 | r1239 | |
| 442 | 442 | // PORT_DIPSETTING( 0x80, DEF_STR( On ) ) /* See notes */ |
| 443 | 443 | INPUT_PORTS_END |
| 444 | 444 | |
| 445 | INPUT_PORTS_START( kungfut ) | |
| 445 | static INPUT_PORTS_START( kungfut ) | |
| 446 | 446 | PORT_START_TAG("IN0") |
| 447 | 447 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 448 | 448 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) |
| r1238 | r1239 | |
| 513 | 513 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 514 | 514 | INPUT_PORTS_END |
| 515 | 515 | |
| 516 | INPUT_PORTS_START( wiz ) | |
| 516 | static INPUT_PORTS_START( wiz ) | |
| 517 | 517 | PORT_START_TAG("IN1") //Are Buttons 1 and 2 the right way around? Because the majority of hardware |
| 518 | 518 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) // In this driver has 2 first, then 1 (See COMMON_IN01 macro) |
| 519 | 519 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL |
| r1238 | r1239 | |
|---|---|---|
| 148 | 148 | |
| 149 | 149 | ADDRESS_MAP_END |
| 150 | 150 | |
| 151 | INPUT_PORTS_START( stactics ) | |
| 151 | static INPUT_PORTS_START( stactics ) | |
| 152 | 152 | |
| 153 | 153 | PORT_START /* IN0 */ |
| 154 | 154 | /*PORT_BIT (0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) Motor status. see stactics_port_0_r */ |
| r1238 | r1239 | |
|---|---|---|
| 156 | 156 | |
| 157 | 157 | /* Input Ports */ |
| 158 | 158 | |
| 159 | INPUT_PORTS_START( mermaid ) | |
| 159 | static INPUT_PORTS_START( mermaid ) | |
| 160 | 160 | PORT_START_TAG("DSW") |
| 161 | 161 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 162 | 162 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
|---|---|---|
| 233 | 233 | AM_RANGE(0x00, 0xff) AM_WRITE(bogus_w) |
| 234 | 234 | ADDRESS_MAP_END |
| 235 | 235 | |
| 236 | INPUT_PORTS_START( calorie ) | |
| 236 | static INPUT_PORTS_START( calorie ) | |
| 237 | 237 | PORT_START |
| 238 | 238 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(1) PORT_4WAY |
| 239 | 239 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) PORT_4WAY |
| r1238 | r1239 | |
|---|---|---|
| 174 | 174 | GFXDECODE_END |
| 175 | 175 | |
| 176 | 176 | |
| 177 | INPUT_PORTS_START( drtomy ) | |
| 177 | static INPUT_PORTS_START( drtomy ) | |
| 178 | 178 | PORT_START /* DSW #1 */ |
| 179 | 179 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 180 | 180 | PORT_DIPSETTING( 0x0a, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 283 | 283 | * Input ports * |
| 284 | 284 | *************************/ |
| 285 | 285 | |
| 286 | INPUT_PORTS_START( gdrawpkr ) | |
| 286 | static INPUT_PORTS_START( gdrawpkr ) | |
| 287 | 287 | PORT_START_TAG("IN0-0") |
| 288 | 288 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) /* credits */ |
| 289 | 289 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Manual Collect") PORT_CODE(KEYCODE_7) |
| r1238 | r1239 | |
| 353 | 353 | PORT_DIPSETTING( 0xC0, "80" ) |
| 354 | 354 | INPUT_PORTS_END |
| 355 | 355 | |
| 356 | INPUT_PORTS_START( elgrande ) | |
| 356 | static INPUT_PORTS_START( elgrande ) | |
| 357 | 357 | PORT_START_TAG("IN0-0") |
| 358 | 358 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 359 | 359 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 814 | 814 | * |
| 815 | 815 | *************************************/ |
| 816 | 816 | |
| 817 | INPUT_PORTS_START( speedup ) | |
| 817 | static INPUT_PORTS_START( speedup ) | |
| 818 | 818 | PORT_START /* DIPs */ |
| 819 | 819 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_VOLUME_UP ) |
| 820 | 820 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_VOLUME_DOWN ) |
| r1238 | r1239 | |
| 853 | 853 | INPUT_PORTS_END |
| 854 | 854 | |
| 855 | 855 | |
| 856 | INPUT_PORTS_START( surfplnt ) | |
| 856 | static INPUT_PORTS_START( surfplnt ) | |
| 857 | 857 | PORT_START /* DIPs */ |
| 858 | 858 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_VOLUME_UP ) // low two bits read, compared against 3 |
| 859 | 859 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_VOLUME_DOWN ) // low four bits read, compared against f |
| r1238 | r1239 | |
| 887 | 887 | INPUT_PORTS_END |
| 888 | 888 | |
| 889 | 889 | |
| 890 | INPUT_PORTS_START( radikalb ) | |
| 890 | static INPUT_PORTS_START( radikalb ) | |
| 891 | 891 | PORT_START /* DIPs */ |
| 892 | 892 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_VOLUME_UP ) |
| 893 | 893 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_VOLUME_DOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 924 | 924 | MDRV_VIDEO_START( psx_type2 ) |
| 925 | 925 | MACHINE_DRIVER_END |
| 926 | 926 | |
| 927 | INPUT_PORTS_START( namcos11 ) | |
| 927 | static INPUT_PORTS_START( namcos11 ) | |
| 928 | 928 | PORT_START_TAG( "SWITCH" ) |
| 929 | 929 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* read by pocket racer */ |
| 930 | 930 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 987 | 987 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN4 ) |
| 988 | 988 | INPUT_PORTS_END |
| 989 | 989 | |
| 990 | INPUT_PORTS_START( tekken ) | |
| 990 | static INPUT_PORTS_START( tekken ) | |
| 991 | 991 | PORT_INCLUDE( namcos11 ) |
| 992 | 992 | |
| 993 | 993 | PORT_MODIFY( "PLAYER1" ) |
| r1238 | r1239 | |
| 1017 | 1017 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1018 | 1018 | INPUT_PORTS_END |
| 1019 | 1019 | |
| 1020 | INPUT_PORTS_START( souledge ) | |
| 1020 | static INPUT_PORTS_START( souledge ) | |
| 1021 | 1021 | PORT_INCLUDE( namcos11 ) |
| 1022 | 1022 | |
| 1023 | 1023 | PORT_MODIFY( "PLAYER3" ) |
| r1238 | r1239 | |
| 1041 | 1041 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1042 | 1042 | INPUT_PORTS_END |
| 1043 | 1043 | |
| 1044 | INPUT_PORTS_START( myangel3 ) | |
| 1044 | static INPUT_PORTS_START( myangel3 ) | |
| 1045 | 1045 | PORT_INCLUDE( namcos11 ) |
| 1046 | 1046 | |
| 1047 | 1047 | PORT_MODIFY( "PLAYER1" ) |
| r1238 | r1239 | |
| 1083 | 1083 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1084 | 1084 | INPUT_PORTS_END |
| 1085 | 1085 | |
| 1086 | INPUT_PORTS_START( ptblnk2a ) | |
| 1086 | static INPUT_PORTS_START( ptblnk2a ) | |
| 1087 | 1087 | PORT_INCLUDE( namcos11 ) |
| 1088 | 1088 | |
| 1089 | 1089 | PORT_MODIFY( "PLAYER1" ) |
| r1238 | r1239 | |
| 1135 | 1135 | PORT_BIT( 0xffff, 0x00a8, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_MINMAX( 0x2c, 0x11b ) PORT_SENSITIVITY( 50 ) PORT_KEYDELTA( 15 ) PORT_PLAYER( 2 ) |
| 1136 | 1136 | INPUT_PORTS_END |
| 1137 | 1137 | |
| 1138 | INPUT_PORTS_START( pocketrc ) | |
| 1138 | static INPUT_PORTS_START( pocketrc ) | |
| 1139 | 1139 | PORT_INCLUDE( namcos11 ) |
| 1140 | 1140 | |
| 1141 | 1141 | PORT_MODIFY( "PLAYER1" ) |
| r1238 | r1239 | |
|---|---|---|
| 84 | 84 | * |
| 85 | 85 | *************************************/ |
| 86 | 86 | |
| 87 | INPUT_PORTS_START( lethalj ) | |
| 87 | static INPUT_PORTS_START( lethalj ) | |
| 88 | 88 | PORT_START |
| 89 | 89 | PORT_BIT( 0x0003, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 90 | 90 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| r1238 | r1239 | |
| 146 | 146 | INPUT_PORTS_END |
| 147 | 147 | |
| 148 | 148 | |
| 149 | INPUT_PORTS_START( eggventr ) | |
| 149 | static INPUT_PORTS_START( eggventr ) | |
| 150 | 150 | PORT_START |
| 151 | 151 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 152 | 152 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 200 | 200 | INPUT_PORTS_END |
| 201 | 201 | |
| 202 | 202 | |
| 203 | INPUT_PORTS_START( eggvntdx ) | |
| 203 | static INPUT_PORTS_START( eggvntdx ) | |
| 204 | 204 | PORT_START |
| 205 | 205 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 206 | 206 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 252 | 252 | INPUT_PORTS_END |
| 253 | 253 | |
| 254 | 254 | |
| 255 | INPUT_PORTS_START( laigames ) | |
| 255 | static INPUT_PORTS_START( laigames ) | |
| 256 | 256 | /* No Idea about the inputs */ |
| 257 | 257 | PORT_START |
| 258 | 258 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r1238 | r1239 | |
| 360 | 360 | INPUT_PORTS_END |
| 361 | 361 | |
| 362 | 362 | |
| 363 | INPUT_PORTS_START( ripribit ) | |
| 363 | static INPUT_PORTS_START( ripribit ) | |
| 364 | 364 | /* No Idea about the inputs */ |
| 365 | 365 | PORT_START |
| 366 | 366 | PORT_DIPNAME( 0x0001, 0x0001, "0" ) |
| r1238 | r1239 | |
|---|---|---|
| 105 | 105 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ |
| 106 | 106 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 107 | 107 | |
| 108 | INPUT_PORTS_START( dcon ) | |
| 108 | static INPUT_PORTS_START( dcon ) | |
| 109 | 109 | SEIBU_COIN_INPUTS /* Must be port 0: coin inputs read through sound cpu */ |
| 110 | 110 | |
| 111 | 111 | PORT_START |
| r1238 | r1239 | |
| 163 | 163 | DCON_SYSTEM |
| 164 | 164 | INPUT_PORTS_END |
| 165 | 165 | |
| 166 | INPUT_PORTS_START( sdgndmps ) | |
| 166 | static INPUT_PORTS_START( sdgndmps ) | |
| 167 | 167 | SEIBU_COIN_INPUTS /* Must be port 0: coin inputs read through sound cpu */ |
| 168 | 168 | |
| 169 | 169 | PORT_START |
| r1238 | r1239 | |
|---|---|---|
| 526 | 526 | |
| 527 | 527 | /* INPUT ports ***************************************************************/ |
| 528 | 528 | |
| 529 | INPUT_PORTS_START( kickgoal ) | |
| 529 | static INPUT_PORTS_START( kickgoal ) | |
| 530 | 530 | PORT_START_TAG("IN0") |
| 531 | 531 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 532 | 532 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 1072 | 1072 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1073 | 1073 | |
| 1074 | 1074 | |
| 1075 | INPUT_PORTS_START( wfortune ) | |
| 1075 | static INPUT_PORTS_START( wfortune ) | |
| 1076 | 1076 | PORT_START /* 40 */ |
| 1077 | 1077 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* input from sound board */ |
| 1078 | 1078 | PORT_BIT( 0x06, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
| 1105 | 1105 | INPUT_PORTS_END |
| 1106 | 1106 | |
| 1107 | 1107 | |
| 1108 | INPUT_PORTS_START( stratab ) | |
| 1108 | static INPUT_PORTS_START( stratab ) | |
| 1109 | 1109 | PORT_START /* 40 */ |
| 1110 | 1110 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* input from sound board */ |
| 1111 | 1111 | PORT_BIT( 0x06, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
| 1142 | 1142 | INPUT_PORTS_END |
| 1143 | 1143 | |
| 1144 | 1144 | |
| 1145 | INPUT_PORTS_START( gtg ) | |
| 1145 | static INPUT_PORTS_START( gtg ) | |
| 1146 | 1146 | PORT_START /* 40 */ |
| 1147 | 1147 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* input from sound board */ |
| 1148 | 1148 | PORT_BIT( 0x06, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
| 1179 | 1179 | INPUT_PORTS_END |
| 1180 | 1180 | |
| 1181 | 1181 | |
| 1182 | INPUT_PORTS_START( gtgt ) | |
| 1182 | static INPUT_PORTS_START( gtgt ) | |
| 1183 | 1183 | PORT_START /* 40 */ |
| 1184 | 1184 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* input from sound board */ |
| 1185 | 1185 | PORT_BIT( 0x7e, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 1209 | 1209 | INPUT_PORTS_END |
| 1210 | 1210 | |
| 1211 | 1211 | |
| 1212 | INPUT_PORTS_START( gtg2t ) | |
| 1212 | static INPUT_PORTS_START( gtg2t ) | |
| 1213 | 1213 | PORT_START /* 40 */ |
| 1214 | 1214 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* input from sound board */ |
| 1215 | 1215 | PORT_BIT( 0x06, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
| 1246 | 1246 | INPUT_PORTS_END |
| 1247 | 1247 | |
| 1248 | 1248 | |
| 1249 | INPUT_PORTS_START( slikshot ) | |
| 1249 | static INPUT_PORTS_START( slikshot ) | |
| 1250 | 1250 | PORT_START /* 40 */ |
| 1251 | 1251 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* input from sound board */ |
| 1252 | 1252 | PORT_BIT( 0x7e, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 1278 | 1278 | INPUT_PORTS_END |
| 1279 | 1279 | |
| 1280 | 1280 | |
| 1281 | INPUT_PORTS_START( dynobop ) | |
| 1281 | static INPUT_PORTS_START( dynobop ) | |
| 1282 | 1282 | PORT_START /* 40 */ |
| 1283 | 1283 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* input from sound board */ |
| 1284 | 1284 | PORT_BIT( 0x7e, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 1310 | 1310 | INPUT_PORTS_END |
| 1311 | 1311 | |
| 1312 | 1312 | |
| 1313 | INPUT_PORTS_START( sstrike ) | |
| 1313 | static INPUT_PORTS_START( sstrike ) | |
| 1314 | 1314 | PORT_START /* 40 */ |
| 1315 | 1315 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* input from sound board */ |
| 1316 | 1316 | PORT_BIT( 0x7e, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 1342 | 1342 | INPUT_PORTS_END |
| 1343 | 1343 | |
| 1344 | 1344 | |
| 1345 | INPUT_PORTS_START( pokrdice ) | |
| 1345 | static INPUT_PORTS_START( pokrdice ) | |
| 1346 | 1346 | PORT_START /* 40 */ |
| 1347 | 1347 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* input from sound board */ |
| 1348 | 1348 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Lower Right") PORT_CODE(KEYCODE_3_PAD) |
| r1238 | r1239 | |
| 1376 | 1376 | INPUT_PORTS_END |
| 1377 | 1377 | |
| 1378 | 1378 | |
| 1379 | INPUT_PORTS_START( hstennis ) | |
| 1379 | static INPUT_PORTS_START( hstennis ) | |
| 1380 | 1380 | PORT_START /* 40 */ |
| 1381 | 1381 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* input from sound board */ |
| 1382 | 1382 | PORT_BIT( 0x06, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
| 1416 | 1416 | INPUT_PORTS_END |
| 1417 | 1417 | |
| 1418 | 1418 | |
| 1419 | INPUT_PORTS_START( arlingtn ) | |
| 1419 | static INPUT_PORTS_START( arlingtn ) | |
| 1420 | 1420 | PORT_START /* 40 */ |
| 1421 | 1421 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* input from sound board */ |
| 1422 | 1422 | PORT_BIT( 0x06, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
| 1452 | 1452 | INPUT_PORTS_END |
| 1453 | 1453 | |
| 1454 | 1454 | |
| 1455 | INPUT_PORTS_START( peggle ) | |
| 1455 | static INPUT_PORTS_START( peggle ) | |
| 1456 | 1456 | PORT_START /* 40 */ |
| 1457 | 1457 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* input from sound board */ |
| 1458 | 1458 | PORT_BIT( 0x7e, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
| 1479 | 1479 | INPUT_PORTS_END |
| 1480 | 1480 | |
| 1481 | 1481 | |
| 1482 | INPUT_PORTS_START( pegglet ) | |
| 1482 | static INPUT_PORTS_START( pegglet ) | |
| 1483 | 1483 | PORT_START /* 40 */ |
| 1484 | 1484 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* input from sound board */ |
| 1485 | 1485 | PORT_BIT( 0x7e, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
| 1506 | 1506 | INPUT_PORTS_END |
| 1507 | 1507 | |
| 1508 | 1508 | |
| 1509 | INPUT_PORTS_START( neckneck ) | |
| 1509 | static INPUT_PORTS_START( neckneck ) | |
| 1510 | 1510 | PORT_START /* 40 */ |
| 1511 | 1511 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* input from sound board */ |
| 1512 | 1512 | PORT_BIT( 0x06, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
| 1542 | 1542 | INPUT_PORTS_END |
| 1543 | 1543 | |
| 1544 | 1544 | |
| 1545 | INPUT_PORTS_START( rimrockn ) | |
| 1545 | static INPUT_PORTS_START( rimrockn ) | |
| 1546 | 1546 | PORT_START /* 40 */ |
| 1547 | 1547 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1548 | 1548 | |
| r1238 | r1239 | |
| 1618 | 1618 | INPUT_PORTS_END |
| 1619 | 1619 | |
| 1620 | 1620 | |
| 1621 | INPUT_PORTS_START( ninclown ) | |
| 1621 | static INPUT_PORTS_START( ninclown ) | |
| 1622 | 1622 | PORT_START /* 40 */ |
| 1623 | 1623 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 1624 | 1624 | PORT_SERVICE_NO_TOGGLE( 0x0200, IP_ACTIVE_LOW ) |
| r1238 | r1239 | |
| 1654 | 1654 | INPUT_PORTS_END |
| 1655 | 1655 | |
| 1656 | 1656 | |
| 1657 | INPUT_PORTS_START( gtg2 ) | |
| 1657 | static INPUT_PORTS_START( gtg2 ) | |
| 1658 | 1658 | PORT_START /* 40 */ |
| 1659 | 1659 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1660 | 1660 | PORT_SERVICE_NO_TOGGLE( 0x02, IP_ACTIVE_LOW ) |
| r1238 | r1239 | |
| 1694 | 1694 | INPUT_PORTS_END |
| 1695 | 1695 | |
| 1696 | 1696 | |
| 1697 | INPUT_PORTS_START( gpgolf ) | |
| 1697 | static INPUT_PORTS_START( gpgolf ) | |
| 1698 | 1698 | PORT_START /* 40 */ |
| 1699 | 1699 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1700 | 1700 | PORT_SERVICE_NO_TOGGLE( 0x02, IP_ACTIVE_LOW ) |
| r1238 | r1239 | |
|---|---|---|
| 1322 | 1322 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) )\ |
| 1323 | 1323 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) |
| 1324 | 1324 | |
| 1325 | INPUT_PORTS_START( galaxian ) | |
| 1325 | static INPUT_PORTS_START( galaxian ) | |
| 1326 | 1326 | GAL_IN0 |
| 1327 | 1327 | GAL_IN1 |
| 1328 | 1328 | |
| r1238 | r1239 | |
| 1341 | 1341 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1342 | 1342 | INPUT_PORTS_END |
| 1343 | 1343 | |
| 1344 | INPUT_PORTS_START( superg ) | |
| 1344 | static INPUT_PORTS_START( superg ) | |
| 1345 | 1345 | GAL_IN0 |
| 1346 | 1346 | GAL_IN1 |
| 1347 | 1347 | |
| r1238 | r1239 | |
| 1360 | 1360 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1361 | 1361 | INPUT_PORTS_END |
| 1362 | 1362 | |
| 1363 | INPUT_PORTS_START( swarm ) | |
| 1363 | static INPUT_PORTS_START( swarm ) | |
| 1364 | 1364 | GAL_IN0 |
| 1365 | 1365 | GAL_IN1 |
| 1366 | 1366 | |
| r1238 | r1239 | |
| 1379 | 1379 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1380 | 1380 | INPUT_PORTS_END |
| 1381 | 1381 | |
| 1382 | INPUT_PORTS_START( gmgalax ) | |
| 1382 | static INPUT_PORTS_START( gmgalax ) | |
| 1383 | 1383 | PORT_START_TAG("GMIN0") /* Ghost Muncher - IN0 */ |
| 1384 | 1384 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1385 | 1385 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP) PORT_4WAY PORT_COCKTAIL |
| r1238 | r1239 | |
| 1463 | 1463 | PORT_DIPSETTING( 0x01, "Galaxian" ) |
| 1464 | 1464 | INPUT_PORTS_END |
| 1465 | 1465 | |
| 1466 | INPUT_PORTS_START( zerotime ) | |
| 1466 | static INPUT_PORTS_START( zerotime ) | |
| 1467 | 1467 | GAL_IN0 |
| 1468 | 1468 | PORT_START_TAG("IN1") |
| 1469 | 1469 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) |
| r1238 | r1239 | |
| 1518 | 1518 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) |
| 1519 | 1519 | |
| 1520 | 1520 | |
| 1521 | INPUT_PORTS_START( pisces ) | |
| 1521 | static INPUT_PORTS_START( pisces ) | |
| 1522 | 1522 | PISCES_COMMON |
| 1523 | 1523 | |
| 1524 | 1524 | PORT_START_TAG("DSW0") |
| r1238 | r1239 | |
| 1538 | 1538 | INPUT_PORTS_END |
| 1539 | 1539 | |
| 1540 | 1540 | /* Same as 'pisces', but different "Coinage" Dip Switch */ |
| 1541 | INPUT_PORTS_START( piscesb ) | |
| 1541 | static INPUT_PORTS_START( piscesb ) | |
| 1542 | 1542 | PISCES_COMMON |
| 1543 | 1543 | PORT_START_TAG("DSW0") |
| 1544 | 1544 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) ) |
| r1238 | r1239 | |
| 1580 | 1580 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) )\ |
| 1581 | 1581 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_5C ) ) |
| 1582 | 1582 | |
| 1583 | INPUT_PORTS_START( gteikokb ) | |
| 1583 | static INPUT_PORTS_START( gteikokb ) | |
| 1584 | 1584 | GTEIKOB_COMMON |
| 1585 | 1585 | PORT_START_TAG("DSW0") |
| 1586 | 1586 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) ) |
| r1238 | r1239 | |
| 1599 | 1599 | INPUT_PORTS_END |
| 1600 | 1600 | |
| 1601 | 1601 | /* same as gteikokb with cabinet reversed */ |
| 1602 | INPUT_PORTS_START( gteikob2 ) | |
| 1602 | static INPUT_PORTS_START( gteikob2 ) | |
| 1603 | 1603 | GTEIKOB_COMMON |
| 1604 | 1604 | PORT_START_TAG("DSW0") |
| 1605 | 1605 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) ) |
| r1238 | r1239 | |
| 1617 | 1617 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1618 | 1618 | INPUT_PORTS_END |
| 1619 | 1619 | |
| 1620 | INPUT_PORTS_START( spacbatt ) | |
| 1620 | static INPUT_PORTS_START( spacbatt ) | |
| 1621 | 1621 | GAL_IN0 |
| 1622 | 1622 | |
| 1623 | 1623 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 1648 | 1648 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1649 | 1649 | INPUT_PORTS_END |
| 1650 | 1650 | |
| 1651 | INPUT_PORTS_START( batman2 ) | |
| 1651 | static INPUT_PORTS_START( batman2 ) | |
| 1652 | 1652 | PORT_START_TAG("IN0") |
| 1653 | 1653 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1654 | 1654 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1689 | 1689 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1690 | 1690 | INPUT_PORTS_END |
| 1691 | 1691 | |
| 1692 | INPUT_PORTS_START( warofbug ) | |
| 1692 | static INPUT_PORTS_START( warofbug ) | |
| 1693 | 1693 | PORT_START_TAG("IN0") |
| 1694 | 1694 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1695 | 1695 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| r1238 | r1239 | |
| 1730 | 1730 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1731 | 1731 | INPUT_PORTS_END |
| 1732 | 1732 | |
| 1733 | INPUT_PORTS_START( redufo ) | |
| 1733 | static INPUT_PORTS_START( redufo ) | |
| 1734 | 1734 | GAL_IN0 |
| 1735 | 1735 | |
| 1736 | 1736 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 1759 | 1759 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1760 | 1760 | INPUT_PORTS_END |
| 1761 | 1761 | |
| 1762 | INPUT_PORTS_START( exodus ) | |
| 1762 | static INPUT_PORTS_START( exodus ) | |
| 1763 | 1763 | PORT_START_TAG("IN0") |
| 1764 | 1764 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1765 | 1765 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1800 | 1800 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1801 | 1801 | INPUT_PORTS_END |
| 1802 | 1802 | |
| 1803 | INPUT_PORTS_START( streakng ) | |
| 1803 | static INPUT_PORTS_START( streakng ) | |
| 1804 | 1804 | PORT_START_TAG("IN0") |
| 1805 | 1805 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1806 | 1806 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP) PORT_4WAY PORT_COCKTAIL |
| r1238 | r1239 | |
| 1840 | 1840 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1841 | 1841 | INPUT_PORTS_END |
| 1842 | 1842 | |
| 1843 | INPUT_PORTS_START( pacmanbl ) | |
| 1843 | static INPUT_PORTS_START( pacmanbl ) | |
| 1844 | 1844 | PORT_START_TAG("IN0") |
| 1845 | 1845 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1846 | 1846 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1881 | 1881 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1882 | 1882 | INPUT_PORTS_END |
| 1883 | 1883 | |
| 1884 | INPUT_PORTS_START( devilfsg ) | |
| 1884 | static INPUT_PORTS_START( devilfsg ) | |
| 1885 | 1885 | PORT_START_TAG("IN0") |
| 1886 | 1886 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1887 | 1887 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1920 | 1920 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1921 | 1921 | INPUT_PORTS_END |
| 1922 | 1922 | |
| 1923 | INPUT_PORTS_START( zigzag ) | |
| 1923 | static INPUT_PORTS_START( zigzag ) | |
| 1924 | 1924 | PORT_START_TAG("IN0") |
| 1925 | 1925 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1926 | 1926 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 1959 | 1959 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1960 | 1960 | INPUT_PORTS_END |
| 1961 | 1961 | |
| 1962 | INPUT_PORTS_START( scramblb ) | |
| 1962 | static INPUT_PORTS_START( scramblb ) | |
| 1963 | 1963 | PORT_START_TAG("IN0") |
| 1964 | 1964 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1965 | 1965 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL |
| r1238 | r1239 | |
| 1998 | 1998 | |
| 1999 | 1999 | |
| 2000 | 2000 | /* the cocktail controls only seem to be used in upright mode, is the flip flag wrong for this bootleg? */ |
| 2001 | INPUT_PORTS_START( scramb2 ) | |
| 2001 | static INPUT_PORTS_START( scramb2 ) | |
| 2002 | 2002 | PORT_START_TAG("IN0") |
| 2003 | 2003 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 2004 | 2004 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 2045 | 2045 | INPUT_PORTS_END |
| 2046 | 2046 | |
| 2047 | 2047 | |
| 2048 | INPUT_PORTS_START( jumpbug ) | |
| 2048 | static INPUT_PORTS_START( jumpbug ) | |
| 2049 | 2049 | PORT_START_TAG("IN0") |
| 2050 | 2050 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 2051 | 2051 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| r1238 | r1239 | |
| 2084 | 2084 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2085 | 2085 | INPUT_PORTS_END |
| 2086 | 2086 | |
| 2087 | INPUT_PORTS_START( levers ) | |
| 2087 | static INPUT_PORTS_START( levers ) | |
| 2088 | 2088 | PORT_START_TAG("IN0") |
| 2089 | 2089 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 2090 | 2090 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| r1238 | r1239 | |
| 2132 | 2132 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2133 | 2133 | INPUT_PORTS_END |
| 2134 | 2134 | |
| 2135 | INPUT_PORTS_START( azurian ) | |
| 2135 | static INPUT_PORTS_START( azurian ) | |
| 2136 | 2136 | PORT_START_TAG("IN0") |
| 2137 | 2137 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 2138 | 2138 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| r1238 | r1239 | |
| 2176 | 2176 | PORT_DIPSETTING( 0x00, DEF_STR( Very_Hard ) ) |
| 2177 | 2177 | INPUT_PORTS_END |
| 2178 | 2178 | |
| 2179 | INPUT_PORTS_START( orbitron ) | |
| 2179 | static INPUT_PORTS_START( orbitron ) | |
| 2180 | 2180 | PORT_START_TAG("IN0") |
| 2181 | 2181 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 2182 | 2182 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2216 | 2216 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2217 | 2217 | INPUT_PORTS_END |
| 2218 | 2218 | |
| 2219 | INPUT_PORTS_START( blkhole ) | |
| 2219 | static INPUT_PORTS_START( blkhole ) | |
| 2220 | 2220 | PORT_START_TAG("IN0") |
| 2221 | 2221 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 2222 | 2222 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| r1238 | r1239 | |
| 2256 | 2256 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2257 | 2257 | INPUT_PORTS_END |
| 2258 | 2258 | |
| 2259 | INPUT_PORTS_START( checkman ) | |
| 2259 | static INPUT_PORTS_START( checkman ) | |
| 2260 | 2260 | PORT_START_TAG("IN0") |
| 2261 | 2261 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 2262 | 2262 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| r1238 | r1239 | |
| 2296 | 2296 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2297 | 2297 | INPUT_PORTS_END |
| 2298 | 2298 | |
| 2299 | INPUT_PORTS_START( checkmaj ) | |
| 2299 | static INPUT_PORTS_START( checkmaj ) | |
| 2300 | 2300 | PORT_START_TAG("IN0") |
| 2301 | 2301 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 2302 | 2302 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2337 | 2337 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("P1 Tiles Left") |
| 2338 | 2338 | INPUT_PORTS_END |
| 2339 | 2339 | |
| 2340 | INPUT_PORTS_START( dingo ) | |
| 2340 | static INPUT_PORTS_START( dingo ) | |
| 2341 | 2341 | PORT_START_TAG("IN0") |
| 2342 | 2342 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 2343 | 2343 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2391 | 2391 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* "reset" on schematics */\ |
| 2392 | 2392 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2393 | 2393 | |
| 2394 | INPUT_PORTS_START( mooncrst ) | |
| 2394 | static INPUT_PORTS_START( mooncrst ) | |
| 2395 | 2395 | MOON_IN0 |
| 2396 | 2396 | PORT_START_TAG("IN1") |
| 2397 | 2397 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) |
| r1238 | r1239 | |
| 2421 | 2421 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2422 | 2422 | INPUT_PORTS_END |
| 2423 | 2423 | |
| 2424 | INPUT_PORTS_START( mooncrsa ) | |
| 2424 | static INPUT_PORTS_START( mooncrsa ) | |
| 2425 | 2425 | MOON_IN0 |
| 2426 | 2426 | PORT_START_TAG("IN1") |
| 2427 | 2427 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) |
| r1238 | r1239 | |
| 2451 | 2451 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2452 | 2452 | INPUT_PORTS_END |
| 2453 | 2453 | |
| 2454 | INPUT_PORTS_START( mooncrsg ) | |
| 2454 | static INPUT_PORTS_START( mooncrsg ) | |
| 2455 | 2455 | PORT_START_TAG("IN0") |
| 2456 | 2456 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 2457 | 2457 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2492 | 2492 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2493 | 2493 | INPUT_PORTS_END |
| 2494 | 2494 | |
| 2495 | INPUT_PORTS_START( fantazia ) | |
| 2495 | static INPUT_PORTS_START( fantazia ) | |
| 2496 | 2496 | MOON_IN0 |
| 2497 | 2497 | PORT_START_TAG("IN1") |
| 2498 | 2498 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) |
| r1238 | r1239 | |
| 2522 | 2522 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2523 | 2523 | INPUT_PORTS_END |
| 2524 | 2524 | |
| 2525 | INPUT_PORTS_START( eagle ) | |
| 2525 | static INPUT_PORTS_START( eagle ) | |
| 2526 | 2526 | MOON_IN0 |
| 2527 | 2527 | PORT_START_TAG("IN1") |
| 2528 | 2528 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) |
| r1238 | r1239 | |
| 2552 | 2552 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2553 | 2553 | INPUT_PORTS_END |
| 2554 | 2554 | |
| 2555 | INPUT_PORTS_START( eagle2 ) | |
| 2555 | static INPUT_PORTS_START( eagle2 ) | |
| 2556 | 2556 | MOON_IN0 |
| 2557 | 2557 | PORT_START_TAG("IN1") |
| 2558 | 2558 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) |
| r1238 | r1239 | |
| 2587 | 2587 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2588 | 2588 | INPUT_PORTS_END |
| 2589 | 2589 | |
| 2590 | INPUT_PORTS_START( smooncrs ) | |
| 2590 | static INPUT_PORTS_START( smooncrs ) | |
| 2591 | 2591 | MOON_IN0 |
| 2592 | 2592 | PORT_START_TAG("IN1") |
| 2593 | 2593 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) |
| r1238 | r1239 | |
| 2623 | 2623 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2624 | 2624 | INPUT_PORTS_END |
| 2625 | 2625 | |
| 2626 | INPUT_PORTS_START( spcdrag ) | |
| 2626 | static INPUT_PORTS_START( spcdrag ) | |
| 2627 | 2627 | MOON_IN0 |
| 2628 | 2628 | PORT_START_TAG("IN1") |
| 2629 | 2629 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) |
| r1238 | r1239 | |
| 2659 | 2659 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2660 | 2660 | INPUT_PORTS_END |
| 2661 | 2661 | |
| 2662 | INPUT_PORTS_START( mooncrgx ) | |
| 2662 | static INPUT_PORTS_START( mooncrgx ) | |
| 2663 | 2663 | PORT_START_TAG("IN0") |
| 2664 | 2664 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 2665 | 2665 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2700 | 2700 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2701 | 2701 | INPUT_PORTS_END |
| 2702 | 2702 | |
| 2703 | INPUT_PORTS_START( skybase ) | |
| 2703 | static INPUT_PORTS_START( skybase ) | |
| 2704 | 2704 | PORT_START_TAG("IN0") |
| 2705 | 2705 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 2706 | 2706 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| r1238 | r1239 | |
| 2743 | 2743 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL |
| 2744 | 2744 | INPUT_PORTS_END |
| 2745 | 2745 | |
| 2746 | INPUT_PORTS_START( omega ) | |
| 2746 | static INPUT_PORTS_START( omega ) | |
| 2747 | 2747 | PORT_START_TAG("IN0") |
| 2748 | 2748 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 2749 | 2749 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2780 | 2780 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2781 | 2781 | INPUT_PORTS_END |
| 2782 | 2782 | |
| 2783 | INPUT_PORTS_START( moonqsr ) | |
| 2783 | static INPUT_PORTS_START( moonqsr ) | |
| 2784 | 2784 | PORT_START_TAG("IN0") |
| 2785 | 2785 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 2786 | 2786 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2820 | 2820 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2821 | 2821 | INPUT_PORTS_END |
| 2822 | 2822 | |
| 2823 | INPUT_PORTS_START( moonal2 ) | |
| 2823 | static INPUT_PORTS_START( moonal2 ) | |
| 2824 | 2824 | GAL_IN0 |
| 2825 | 2825 | GAL_IN1 |
| 2826 | 2826 | PORT_START_TAG("DSW") |
| r1238 | r1239 | |
| 2838 | 2838 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2839 | 2839 | INPUT_PORTS_END |
| 2840 | 2840 | |
| 2841 | INPUT_PORTS_START( mshuttle ) | |
| 2841 | static INPUT_PORTS_START( mshuttle ) | |
| 2842 | 2842 | PORT_START_TAG("IN0") |
| 2843 | 2843 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2844 | 2844 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2885 | 2885 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 2886 | 2886 | INPUT_PORTS_END |
| 2887 | 2887 | |
| 2888 | INPUT_PORTS_START( kingball ) | |
| 2888 | static INPUT_PORTS_START( kingball ) | |
| 2889 | 2889 | GAL_IN0 |
| 2890 | 2890 | /* Relating to above port:Hack? - possibly multiplexed via writes to $b003 */ |
| 2891 | 2891 | //PORT_DIPNAME( 0x80, 0x80, "Speech" ) |
| r1238 | r1239 | |
| 2925 | 2925 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 2926 | 2926 | INPUT_PORTS_END |
| 2927 | 2927 | |
| 2928 | INPUT_PORTS_START( scorpnmc ) | |
| 2928 | static INPUT_PORTS_START( scorpnmc ) | |
| 2929 | 2929 | PORT_START_TAG("IN0") /* 0xa000 */ |
| 2930 | 2930 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE1 ) // COIN2? (it ALWAYS adds 1 credit) |
| 2931 | 2931 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| r1238 | r1239 | |
| 2978 | 2978 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2979 | 2979 | INPUT_PORTS_END |
| 2980 | 2980 | |
| 2981 | INPUT_PORTS_START( frogg ) | |
| 2981 | static INPUT_PORTS_START( frogg ) | |
| 2982 | 2982 | PORT_START_TAG("IN0") |
| 2983 | 2983 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 2984 | 2984 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 3019 | 3019 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 3020 | 3020 | INPUT_PORTS_END |
| 3021 | 3021 | |
| 3022 | INPUT_PORTS_START( 4in1 ) | |
| 3022 | static INPUT_PORTS_START( 4in1 ) | |
| 3023 | 3023 | PORT_START_TAG("IN0") |
| 3024 | 3024 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 3025 | 3025 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| r1238 | r1239 | |
| 3139 | 3139 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) |
| 3140 | 3140 | INPUT_PORTS_END |
| 3141 | 3141 | |
| 3142 | INPUT_PORTS_START( bagmanmc ) | |
| 3142 | static INPUT_PORTS_START( bagmanmc ) | |
| 3143 | 3143 | PORT_START_TAG("IN0") |
| 3144 | 3144 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 3145 | 3145 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 3187 | 3187 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 3188 | 3188 | INPUT_PORTS_END |
| 3189 | 3189 | |
| 3190 | INPUT_PORTS_START( dkongjrm ) | |
| 3190 | static INPUT_PORTS_START( dkongjrm ) | |
| 3191 | 3191 | PORT_START_TAG("IN0") |
| 3192 | 3192 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 3193 | 3193 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 3226 | 3226 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 3227 | 3227 | INPUT_PORTS_END |
| 3228 | 3228 | |
| 3229 | INPUT_PORTS_START( rockclim ) | |
| 3229 | static INPUT_PORTS_START( rockclim ) | |
| 3230 | 3230 | |
| 3231 | 3231 | PORT_START_TAG("IN0") |
| 3232 | 3232 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| r1238 | r1239 | |
| 3304 | 3304 | - you can insert 99 credits 3 times consecutively, then it resets |
| 3305 | 3305 | |
| 3306 | 3306 | */ |
| 3307 | INPUT_PORTS_START( ozon1 ) | |
| 3307 | static INPUT_PORTS_START( ozon1 ) | |
| 3308 | 3308 | PORT_START_TAG("IN0") |
| 3309 | 3309 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3310 | 3310 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 3354 | 3354 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 3355 | 3355 | INPUT_PORTS_END |
| 3356 | 3356 | |
| 3357 | INPUT_PORTS_START( ladybugg ) | |
| 3357 | static INPUT_PORTS_START( ladybugg ) | |
| 3358 | 3358 | PORT_START_TAG("IN0") |
| 3359 | 3359 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 3360 | 3360 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 3395 | 3395 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) /* Check code at 0x22e1 */ |
| 3396 | 3396 | INPUT_PORTS_END |
| 3397 | 3397 | |
| 3398 | INPUT_PORTS_START( vpool ) | |
| 3398 | static INPUT_PORTS_START( vpool ) | |
| 3399 | 3399 | PORT_START_TAG("IN0") |
| 3400 | 3400 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 3401 | 3401 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 3451 | 3451 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 3452 | 3452 | INPUT_PORTS_END |
| 3453 | 3453 | |
| 3454 | INPUT_PORTS_START( drivfrcg ) | |
| 3454 | static INPUT_PORTS_START( drivfrcg ) | |
| 3455 | 3455 | PORT_START_TAG("IN0") |
| 3456 | 3456 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 3457 | 3457 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 3530 | 3530 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 3531 | 3531 | INPUT_PORTS_END |
| 3532 | 3532 | |
| 3533 | INPUT_PORTS_START( bongo ) | |
| 3533 | static INPUT_PORTS_START( bongo ) | |
| 3534 | 3534 | PORT_START_TAG("IN0") |
| 3535 | 3535 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 3536 | 3536 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // coin? it jumps to an unmapped area at $C003 |
| r1238 | r1239 | |
| 3603 | 3603 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) |
| 3604 | 3604 | INPUT_PORTS_END |
| 3605 | 3605 | |
| 3606 | INPUT_PORTS_START( hunchbkg ) | |
| 3606 | static INPUT_PORTS_START( hunchbkg ) | |
| 3607 | 3607 | PORT_START_TAG("IN0") |
| 3608 | 3608 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 3609 | 3609 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 3654 | 3654 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 3655 | 3655 | INPUT_PORTS_END |
| 3656 | 3656 | |
| 3657 | INPUT_PORTS_START( harem ) | |
| 3657 | static INPUT_PORTS_START( harem ) | |
| 3658 | 3658 | PORT_START_TAG("IN0")//Change tag when major usage uncovered. |
| 3659 | 3659 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) |
| 3660 | 3660 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 3708 | 3708 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 3709 | 3709 | INPUT_PORTS_END |
| 3710 | 3710 | |
| 3711 | INPUT_PORTS_START( tazzmang ) | |
| 3711 | static INPUT_PORTS_START( tazzmang ) | |
| 3712 | 3712 | PORT_START |
| 3713 | 3713 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 3714 | 3714 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 3755 | 3755 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 3756 | 3756 | INPUT_PORTS_END |
| 3757 | 3757 | |
| 3758 | INPUT_PORTS_START( racknrol ) | |
| 3758 | static INPUT_PORTS_START( racknrol ) | |
| 3759 | 3759 | PORT_START_TAG("IN0") |
| 3760 | 3760 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 3761 | 3761 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 3818 | 3818 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK ) |
| 3819 | 3819 | INPUT_PORTS_END |
| 3820 | 3820 | |
| 3821 | INPUT_PORTS_START( trvchlng ) | |
| 3821 | static INPUT_PORTS_START( trvchlng ) | |
| 3822 | 3822 | PORT_START_TAG("IN0") |
| 3823 | 3823 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 3824 | 3824 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 3881 | 3881 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK ) |
| 3882 | 3882 | INPUT_PORTS_END |
| 3883 | 3883 | |
| 3884 | INPUT_PORTS_START( catacomb ) | |
| 3884 | static INPUT_PORTS_START( catacomb ) | |
| 3885 | 3885 | PORT_START_TAG("IN0") |
| 3886 | 3886 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 3887 | 3887 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 3944 | 3944 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK ) |
| 3945 | 3945 | INPUT_PORTS_END |
| 3946 | 3946 | |
| 3947 | INPUT_PORTS_START( luctoday ) | |
| 3947 | static INPUT_PORTS_START( luctoday ) | |
| 3948 | 3948 | PORT_START_TAG("IN0") //These inputs are clearly wrong, they need a full test |
| 3949 | 3949 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 3950 | 3950 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 3973 | 3973 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 3974 | 3974 | INPUT_PORTS_END |
| 3975 | 3975 | |
| 3976 | INPUT_PORTS_START( ckongg ) | |
| 3976 | static INPUT_PORTS_START( ckongg ) | |
| 3977 | 3977 | PORT_START_TAG("IN0") |
| 3978 | 3978 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 3979 | 3979 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| r1238 | r1239 | |
| 4013 | 4013 | INPUT_PORTS_END |
| 4014 | 4014 | |
| 4015 | 4015 | /* not correct */ |
| 4016 | INPUT_PORTS_START( kkgalax ) | |
| 4016 | static INPUT_PORTS_START( kkgalax ) | |
| 4017 | 4017 | PORT_START_TAG("IN0") |
| 4018 | 4018 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 4019 | 4019 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| r1238 | r1239 | |
| 4052 | 4052 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 4053 | 4053 | INPUT_PORTS_END |
| 4054 | 4054 | |
| 4055 | INPUT_PORTS_START( porter ) | |
| 4055 | static INPUT_PORTS_START( porter ) | |
| 4056 | 4056 | PORT_START_TAG("IN0")\ |
| 4057 | 4057 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 4058 | 4058 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 125 | 125 | |
| 126 | 126 | |
| 127 | 127 | |
| 128 | INPUT_PORTS_START( othldrby ) | |
| 128 | static INPUT_PORTS_START( othldrby ) | |
| 129 | 129 | PORT_START |
| 130 | 130 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) |
| 131 | 131 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 402 | 402 | |
| 403 | 403 | /******************************************************************************/ |
| 404 | 404 | |
| 405 | INPUT_PORTS_START( bbusters ) | |
| 405 | static INPUT_PORTS_START( bbusters ) | |
| 406 | 406 | PORT_START_TAG("IN0") /* Player controls */ |
| 407 | 407 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 408 | 408 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_NAME("P1 Fire") // "Fire" |
| r1238 | r1239 | |
| 497 | 497 | #endif |
| 498 | 498 | INPUT_PORTS_END |
| 499 | 499 | |
| 500 | INPUT_PORTS_START( mechatt ) | |
| 500 | static INPUT_PORTS_START( mechatt ) | |
| 501 | 501 | PORT_START_TAG("IN0") |
| 502 | 502 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 503 | 503 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 350 | 350 | |
| 351 | 351 | /*** INPUT PORTS *************************************************************/ |
| 352 | 352 | |
| 353 | INPUT_PORTS_START( gstriker ) | |
| 353 | static INPUT_PORTS_START( gstriker ) | |
| 354 | 354 | PORT_START |
| 355 | 355 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 356 | 356 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 2888 | 2888 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) \ |
| 2889 | 2889 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_6C ) ) |
| 2890 | 2890 | |
| 2891 | INPUT_PORTS_START( ikari ) | |
| 2891 | static INPUT_PORTS_START( ikari ) | |
| 2892 | 2892 | PORT_START_TAG("IN0") |
| 2893 | 2893 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound CPU status */ |
| 2894 | 2894 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r1238 | r1239 | |
| 2944 | 2944 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 2945 | 2945 | INPUT_PORTS_END |
| 2946 | 2946 | |
| 2947 | INPUT_PORTS_START( ikarijp ) | |
| 2947 | static INPUT_PORTS_START( ikarijp ) | |
| 2948 | 2948 | PORT_START_TAG("IN0") |
| 2949 | 2949 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2950 | 2950 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 3001 | 3001 | INPUT_PORTS_END |
| 3002 | 3002 | |
| 3003 | 3003 | |
| 3004 | INPUT_PORTS_START( ikarijpb ) | |
| 3004 | static INPUT_PORTS_START( ikarijpb ) | |
| 3005 | 3005 | PORT_INCLUDE(ikarijp) |
| 3006 | 3006 | |
| 3007 | 3007 | PORT_MODIFY("IN1") \ |
| r1238 | r1239 | |
| 3020 | 3020 | INPUT_PORTS_END |
| 3021 | 3021 | |
| 3022 | 3022 | |
| 3023 | INPUT_PORTS_START( victroad ) | |
| 3023 | static INPUT_PORTS_START( victroad ) | |
| 3024 | 3024 | PORT_START_TAG("IN0") |
| 3025 | 3025 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound related ??? */ |
| 3026 | 3026 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r1238 | r1239 | |
| 3077 | 3077 | INPUT_PORTS_END |
| 3078 | 3078 | |
| 3079 | 3079 | |
| 3080 | INPUT_PORTS_START( dogosokj ) | |
| 3080 | static INPUT_PORTS_START( dogosokj ) | |
| 3081 | 3081 | PORT_START_TAG("IN0") |
| 3082 | 3082 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound related ??? */ |
| 3083 | 3083 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r1238 | r1239 | |
| 3134 | 3134 | INPUT_PORTS_END |
| 3135 | 3135 | |
| 3136 | 3136 | |
| 3137 | INPUT_PORTS_START( gwar ) | |
| 3137 | static INPUT_PORTS_START( gwar ) | |
| 3138 | 3138 | PORT_START_TAG("IN0") |
| 3139 | 3139 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound related ??? */ |
| 3140 | 3140 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r1238 | r1239 | |
| 3191 | 3191 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 3192 | 3192 | INPUT_PORTS_END |
| 3193 | 3193 | |
| 3194 | INPUT_PORTS_START( athena ) | |
| 3194 | static INPUT_PORTS_START( athena ) | |
| 3195 | 3195 | PORT_START_TAG("IN0") |
| 3196 | 3196 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound CPU status */ |
| 3197 | 3197 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r1238 | r1239 | |
| 3262 | 3262 | PORT_DIPSETTING( 0x00, "14" ) |
| 3263 | 3263 | INPUT_PORTS_END |
| 3264 | 3264 | |
| 3265 | INPUT_PORTS_START( tnk3 ) | |
| 3265 | static INPUT_PORTS_START( tnk3 ) | |
| 3266 | 3266 | PORT_START_TAG("IN0") |
| 3267 | 3267 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 3268 | 3268 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 3346 | 3346 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 3347 | 3347 | INPUT_PORTS_END |
| 3348 | 3348 | |
| 3349 | INPUT_PORTS_START( bermudat ) | |
| 3349 | static INPUT_PORTS_START( bermudat ) | |
| 3350 | 3350 | PORT_START_TAG("IN0") |
| 3351 | 3351 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound CPU status */ |
| 3352 | 3352 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r1238 | r1239 | |
| 3430 | 3430 | SNK_COINAGE |
| 3431 | 3431 | |
| 3432 | 3432 | |
| 3433 | INPUT_PORTS_START( bermudaa ) | |
| 3433 | static INPUT_PORTS_START( bermudaa ) | |
| 3434 | 3434 | BERMWW_COMMON |
| 3435 | 3435 | |
| 3436 | 3436 | PORT_START_TAG("DSW2") |
| r1238 | r1239 | |
| 3461 | 3461 | INPUT_PORTS_END |
| 3462 | 3462 | |
| 3463 | 3463 | /* Same as Bermudaa, but has different Bonus Life */ |
| 3464 | INPUT_PORTS_START( worldwar ) | |
| 3464 | static INPUT_PORTS_START( worldwar ) | |
| 3465 | 3465 | BERMWW_COMMON |
| 3466 | 3466 | |
| 3467 | 3467 | PORT_START_TAG("DSW2") |
| r1238 | r1239 | |
| 3488 | 3488 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 3489 | 3489 | INPUT_PORTS_END |
| 3490 | 3490 | |
| 3491 | INPUT_PORTS_START( psychos ) | |
| 3491 | static INPUT_PORTS_START( psychos ) | |
| 3492 | 3492 | PORT_START_TAG("IN0") |
| 3493 | 3493 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound related */ |
| 3494 | 3494 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 3549 | 3549 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 3550 | 3550 | INPUT_PORTS_END |
| 3551 | 3551 | |
| 3552 | INPUT_PORTS_START( legofair ) | |
| 3552 | static INPUT_PORTS_START( legofair ) | |
| 3553 | 3553 | PORT_START_TAG("IN0") |
| 3554 | 3554 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound CPU status */ |
| 3555 | 3555 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 3619 | 3619 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 3620 | 3620 | INPUT_PORTS_END |
| 3621 | 3621 | |
| 3622 | INPUT_PORTS_START( choppera ) | |
| 3622 | static INPUT_PORTS_START( choppera ) | |
| 3623 | 3623 | PORT_START_TAG("IN0") |
| 3624 | 3624 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound CPU status */ |
| 3625 | 3625 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r1238 | r1239 | |
| 3675 | 3675 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 3676 | 3676 | INPUT_PORTS_END |
| 3677 | 3677 | |
| 3678 | INPUT_PORTS_START( fitegolf ) | |
| 3678 | static INPUT_PORTS_START( fitegolf ) | |
| 3679 | 3679 | PORT_START_TAG("IN0") |
| 3680 | 3680 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound related? */ |
| 3681 | 3681 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r1238 | r1239 | |
| 3752 | 3752 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 3753 | 3753 | INPUT_PORTS_END |
| 3754 | 3754 | |
| 3755 | INPUT_PORTS_START( countryc ) | |
| 3755 | static INPUT_PORTS_START( countryc ) | |
| 3756 | 3756 | PORT_START_TAG("IN0") |
| 3757 | 3757 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound related? */ |
| 3758 | 3758 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r1238 | r1239 | |
| 3817 | 3817 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 3818 | 3818 | INPUT_PORTS_END |
| 3819 | 3819 | |
| 3820 | INPUT_PORTS_START( ftsoccer ) | |
| 3820 | static INPUT_PORTS_START( ftsoccer ) | |
| 3821 | 3821 | PORT_START_TAG("IN0") |
| 3822 | 3822 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3823 | 3823 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 3931 | 3931 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_START4 ) PORT_NAME("Start Game D") |
| 3932 | 3932 | INPUT_PORTS_END |
| 3933 | 3933 | |
| 3934 | INPUT_PORTS_START( tdfever ) | |
| 3934 | static INPUT_PORTS_START( tdfever ) | |
| 3935 | 3935 | PORT_START_TAG("IN0") |
| 3936 | 3936 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3937 | 3937 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 4072 | 4072 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_START4 ) PORT_NAME("Start Game D") |
| 4073 | 4073 | INPUT_PORTS_END |
| 4074 | 4074 | |
| 4075 | INPUT_PORTS_START( tdfeverj ) | |
| 4075 | static INPUT_PORTS_START( tdfeverj ) | |
| 4076 | 4076 | PORT_START_TAG("IN0") |
| 4077 | 4077 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 4078 | 4078 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 608 | 608 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_##_b4_ ) PORT_PLAYER(_n_) \ |
| 609 | 609 | |
| 610 | 610 | |
| 611 | INPUT_PORTS_START( hyprduel ) | |
| 611 | static INPUT_PORTS_START( hyprduel ) | |
| 612 | 612 | PORT_START |
| 613 | 613 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) |
| 614 | 614 | PORT_DIPNAME( 0x4000, 0x0000, "Show Warning" ) |
| r1238 | r1239 | |
|---|---|---|
| 197 | 197 | * |
| 198 | 198 | *************************************/ |
| 199 | 199 | |
| 200 | INPUT_PORTS_START( arcadecl ) | |
| 200 | static INPUT_PORTS_START( arcadecl ) | |
| 201 | 201 | PORT_START_TAG("640000") |
| 202 | 202 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 203 | 203 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 251 | 251 | INPUT_PORTS_END |
| 252 | 252 | |
| 253 | 253 | |
| 254 | INPUT_PORTS_START( sparkz ) | |
| 254 | static INPUT_PORTS_START( sparkz ) | |
| 255 | 255 | PORT_START_TAG("640000") |
| 256 | 256 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 257 | 257 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
|---|---|---|
| 1213 | 1213 | |
| 1214 | 1214 | /***************************************************************/ |
| 1215 | 1215 | |
| 1216 | INPUT_PORTS_START( gunbulet ) | |
| 1216 | static INPUT_PORTS_START( gunbulet ) | |
| 1217 | 1217 | PORT_START |
| 1218 | 1218 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1219 | 1219 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1246 | 1246 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(50) PORT_KEYDELTA(4) PORT_PLAYER(2) |
| 1247 | 1247 | INPUT_PORTS_END |
| 1248 | 1248 | |
| 1249 | INPUT_PORTS_START( machbrkr ) | |
| 1249 | static INPUT_PORTS_START( machbrkr ) | |
| 1250 | 1250 | PORT_START |
| 1251 | 1251 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1252 | 1252 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1298 | 1298 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START4 ) |
| 1299 | 1299 | INPUT_PORTS_END |
| 1300 | 1300 | |
| 1301 | INPUT_PORTS_START( outfxies ) | |
| 1301 | static INPUT_PORTS_START( outfxies ) | |
| 1302 | 1302 | PORT_START |
| 1303 | 1303 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1304 | 1304 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1346 | 1346 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START2 ) |
| 1347 | 1347 | INPUT_PORTS_END |
| 1348 | 1348 | |
| 1349 | INPUT_PORTS_START( namconb1 ) | |
| 1349 | static INPUT_PORTS_START( namconb1 ) | |
| 1350 | 1350 | PORT_START |
| 1351 | 1351 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1352 | 1352 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 347 | 347 | (0xe781) is between 8 and 98 (included). |
| 348 | 348 | */ |
| 349 | 349 | |
| 350 | INPUT_PORTS_START( flstory ) | |
| 350 | static INPUT_PORTS_START( flstory ) | |
| 351 | 351 | PORT_START_TAG("DSW0") /*D800*/ |
| 352 | 352 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Bonus_Life ) ) |
| 353 | 353 | PORT_DIPSETTING( 0x00, "30000 100000" ) |
| r1238 | r1239 | |
| 451 | 451 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 452 | 452 | INPUT_PORTS_END |
| 453 | 453 | |
| 454 | INPUT_PORTS_START( onna34ro ) | |
| 454 | static INPUT_PORTS_START( onna34ro ) | |
| 455 | 455 | PORT_START_TAG("DSW0") /* D800*/ |
| 456 | 456 | PORT_DIPNAME(0x03, 0x00, DEF_STR( Bonus_Life ) ) |
| 457 | 457 | PORT_DIPSETTING( 0x00, "200000 200000" ) |
| r1238 | r1239 | |
| 568 | 568 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 569 | 569 | INPUT_PORTS_END |
| 570 | 570 | |
| 571 | INPUT_PORTS_START( victnine ) | |
| 571 | static INPUT_PORTS_START( victnine ) | |
| 572 | 572 | PORT_START_TAG("DSW0") /* D800 */ |
| 573 | 573 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 574 | 574 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 234 | 234 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_4C ) ) \ |
| 235 | 235 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_6C ) ) |
| 236 | 236 | |
| 237 | INPUT_PORTS_START( fcrash ) | |
| 237 | static INPUT_PORTS_START( fcrash ) | |
| 238 | 238 | PORT_START_TAG("IN0") |
| 239 | 239 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 240 | 240 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 195 | 195 | |
| 196 | 196 | /*** INPUT PORTS *************************************************************/ |
| 197 | 197 | |
| 198 | INPUT_PORTS_START( suprslam ) | |
| 198 | static INPUT_PORTS_START( suprslam ) | |
| 199 | 199 | |
| 200 | 200 | PORT_START /* IN1 */ |
| 201 | 201 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 102 | 102 | ADDRESS_MAP_END |
| 103 | 103 | |
| 104 | 104 | |
| 105 | INPUT_PORTS_START( mosaicf2 ) | |
| 105 | static INPUT_PORTS_START( mosaicf2 ) | |
| 106 | 106 | PORT_START |
| 107 | 107 | PORT_BIT( 0x0000ffff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 108 | 108 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 140 | 140 | |
| 141 | 141 | /****************************************************************************/ |
| 142 | 142 | |
| 143 | INPUT_PORTS_START( strnskil ) | |
| 143 | static INPUT_PORTS_START( strnskil ) | |
| 144 | 144 | PORT_START /* dsw1 */ |
| 145 | 145 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) |
| 146 | 146 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 229 | 229 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 230 | 230 | INPUT_PORTS_END |
| 231 | 231 | |
| 232 | INPUT_PORTS_START( banbam ) | |
| 232 | static INPUT_PORTS_START( banbam ) | |
| 233 | 233 | PORT_START /* dsw1 */ |
| 234 | 234 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1") |
| 235 | 235 | PORT_DIPSETTING( 0x00, "3" ) |
| r1238 | r1239 | |
|---|---|---|
| 39 | 39 | ADDRESS_MAP_END |
| 40 | 40 | #endif |
| 41 | 41 | |
| 42 | INPUT_PORTS_START( sfkick ) | |
| 42 | static INPUT_PORTS_START( sfkick ) | |
| 43 | 43 | PORT_START |
| 44 | 44 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 45 | 45 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 221 | 221 | * |
| 222 | 222 | *************************************/ |
| 223 | 223 | |
| 224 | INPUT_PORTS_START( atetris ) | |
| 224 | static INPUT_PORTS_START( atetris ) | |
| 225 | 225 | // These ports are read via the Pokeys |
| 226 | 226 | PORT_START /* IN0 */ |
| 227 | 227 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 247 | 247 | |
| 248 | 248 | |
| 249 | 249 | // Same as the regular one except they added a Flip Controls switch |
| 250 | INPUT_PORTS_START( atetcktl ) | |
| 250 | static INPUT_PORTS_START( atetcktl ) | |
| 251 | 251 | // These ports are read via the Pokeys |
| 252 | 252 | PORT_START /* IN0 */ |
| 253 | 253 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 263 | 263 | } |
| 264 | 264 | } |
| 265 | 265 | |
| 266 | INPUT_PORTS_START( dgpix ) | |
| 266 | static INPUT_PORTS_START( dgpix ) | |
| 267 | 267 | PORT_START |
| 268 | 268 | PORT_BIT( 0x00000003, IP_ACTIVE_LOW, IPT_VBLANK ) //value 2 is used by fmaniac3 |
| 269 | 269 | PORT_BIT( 0xfffffffc, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
|---|---|---|
| 73 | 73 | |
| 74 | 74 | |
| 75 | 75 | |
| 76 | INPUT_PORTS_START( troangel ) | |
| 76 | static INPUT_PORTS_START( troangel ) | |
| 77 | 77 | PORT_START_TAG("IN0") |
| 78 | 78 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 79 | 79 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 385 | 385 | ADDRESS_MAP_END |
| 386 | 386 | |
| 387 | 387 | |
| 388 | INPUT_PORTS_START( panic ) | |
| 388 | static INPUT_PORTS_START( panic ) | |
| 389 | 389 | PORT_START /* IN1 */ |
| 390 | 390 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 391 | 391 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| r1238 | r1239 | |
| 442 | 442 | |
| 443 | 443 | INPUT_PORTS_END |
| 444 | 444 | |
| 445 | INPUT_PORTS_START( cosmica ) | |
| 445 | static INPUT_PORTS_START( cosmica ) | |
| 446 | 446 | PORT_START /* IN0 */ |
| 447 | 447 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 448 | 448 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| r1238 | r1239 | |
| 499 | 499 | |
| 500 | 500 | /* Offsets are in BYTES, so bits 0-7 are at offset 0 etc. */ |
| 501 | 501 | |
| 502 | INPUT_PORTS_START( cosmicg ) | |
| 502 | static INPUT_PORTS_START( cosmicg ) | |
| 503 | 503 | PORT_START /* 4-7 */ |
| 504 | 504 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_SPECIAL ) /* pixel clock */ |
| 505 | 505 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 549 | 549 | INPUT_PORTS_END |
| 550 | 550 | |
| 551 | 551 | |
| 552 | INPUT_PORTS_START( magspot2 ) | |
| 552 | static INPUT_PORTS_START( magspot2 ) | |
| 553 | 553 | PORT_START /* IN0 */ |
| 554 | 554 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 555 | 555 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| r1238 | r1239 | |
| 638 | 638 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) |
| 639 | 639 | INPUT_PORTS_END |
| 640 | 640 | |
| 641 | INPUT_PORTS_START( devzone ) | |
| 641 | static INPUT_PORTS_START( devzone ) | |
| 642 | 642 | PORT_START /* IN0 */ |
| 643 | 643 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 644 | 644 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| r1238 | r1239 | |
| 722 | 722 | INPUT_PORTS_END |
| 723 | 723 | |
| 724 | 724 | |
| 725 | INPUT_PORTS_START( devzone2 ) | |
| 725 | static INPUT_PORTS_START( devzone2 ) | |
| 726 | 726 | PORT_START /* IN0 */ |
| 727 | 727 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 728 | 728 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| r1238 | r1239 | |
| 806 | 806 | INPUT_PORTS_END |
| 807 | 807 | |
| 808 | 808 | |
| 809 | INPUT_PORTS_START( nomnlnd ) | |
| 809 | static INPUT_PORTS_START( nomnlnd ) | |
| 810 | 810 | PORT_START /* Controls - Remapped for game */ |
| 811 | 811 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 812 | 812 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 854 | 854 | INPUT_PORTS_END |
| 855 | 855 | |
| 856 | 856 | |
| 857 | INPUT_PORTS_START( nomnlndg ) | |
| 857 | static INPUT_PORTS_START( nomnlndg ) | |
| 858 | 858 | PORT_START /* Controls - Remapped for game */ |
| 859 | 859 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 860 | 860 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 69 | 69 | |
| 70 | 70 | |
| 71 | 71 | |
| 72 | INPUT_PORTS_START( shaolins ) | |
| 72 | static INPUT_PORTS_START( shaolins ) | |
| 73 | 73 | PORT_START /* IN0 */ |
| 74 | 74 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 75 | 75 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 82 | 82 | DSP_TYPE_TGP = 1, |
| 83 | 83 | DSP_TYPE_SHARC = 2, |
| 84 | 84 | DSP_TYPE_TGPX4 = 3, |
| 85 | } | |
| 85 | } | |
| 86 | 86 | |
| 87 | 87 | static int dsp_type; |
| 88 | 88 | |
| r1238 | r1239 | |
| 1419 | 1419 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(_n_) \ |
| 1420 | 1420 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(_n_) |
| 1421 | 1421 | |
| 1422 | INPUT_PORTS_START( model2 ) | |
| 1422 | static INPUT_PORTS_START( model2 ) | |
| 1423 | 1423 | PORT_START |
| 1424 | 1424 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1425 | 1425 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1437 | 1437 | MODEL2_PLAYER_INPUTS(2, BUTTON1, BUTTON2, BUTTON3, BUTTON4) |
| 1438 | 1438 | INPUT_PORTS_END |
| 1439 | 1439 | |
| 1440 | INPUT_PORTS_START( desert ) | |
| 1440 | static INPUT_PORTS_START( desert ) | |
| 1441 | 1441 | PORT_START |
| 1442 | 1442 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1443 | 1443 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1468 | 1468 | PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(30) PORT_KEYDELTA(10) PORT_PLAYER(1) |
| 1469 | 1469 | INPUT_PORTS_END |
| 1470 | 1470 | |
| 1471 | INPUT_PORTS_START( daytona ) | |
| 1471 | static INPUT_PORTS_START( daytona ) | |
| 1472 | 1472 | PORT_START |
| 1473 | 1473 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1474 | 1474 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1500 | 1500 | PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(30) PORT_KEYDELTA(10) PORT_PLAYER(1) |
| 1501 | 1501 | INPUT_PORTS_END |
| 1502 | 1502 | |
| 1503 | INPUT_PORTS_START( bel ) | |
| 1503 | static INPUT_PORTS_START( bel ) | |
| 1504 | 1504 | PORT_START |
| 1505 | 1505 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1506 | 1506 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 99 | 99 | #define IPT_EEPROM_DATA IPT_SPECIAL |
| 100 | 100 | |
| 101 | 101 | |
| 102 | INPUT_PORTS_START( ataxx ) | |
| 102 | static INPUT_PORTS_START( ataxx ) | |
| 103 | 103 | PORT_START /* 0xF6 */ |
| 104 | 104 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 105 | 105 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 130 | 130 | INPUT_PORTS_END |
| 131 | 131 | |
| 132 | 132 | |
| 133 | INPUT_PORTS_START( wsf ) | |
| 133 | static INPUT_PORTS_START( wsf ) | |
| 134 | 134 | PORT_START /* 0xF6 */ |
| 135 | 135 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 136 | 136 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 184 | 184 | INPUT_PORTS_END |
| 185 | 185 | |
| 186 | 186 | |
| 187 | INPUT_PORTS_START( indyheat ) | |
| 187 | static INPUT_PORTS_START( indyheat ) | |
| 188 | 188 | PORT_START /* 0xF6 */ |
| 189 | 189 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 190 | 190 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(1) |
| r1238 | r1239 | |
| 230 | 230 | INPUT_PORTS_END |
| 231 | 231 | |
| 232 | 232 | |
| 233 | INPUT_PORTS_START( brutforc ) | |
| 233 | static INPUT_PORTS_START( brutforc ) | |
| 234 | 234 | PORT_START /* 0xF6 */ |
| 235 | 235 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 236 | 236 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1) |
| r1238 | r1239 | |
|---|---|---|
| 201 | 201 | |
| 202 | 202 | /******************************************************************************/ |
| 203 | 203 | |
| 204 | INPUT_PORTS_START( sshangha ) | |
| 204 | static INPUT_PORTS_START( sshangha ) | |
| 205 | 205 | PORT_START_TAG("IN0") /* Player 1 controls (0xfec047.b) */ |
| 206 | 206 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 207 | 207 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 135 | 135 | |
| 136 | 136 | |
| 137 | 137 | |
| 138 | INPUT_PORTS_START( wiping ) | |
| 138 | static INPUT_PORTS_START( wiping ) | |
| 139 | 139 | PORT_START /* 0 */ |
| 140 | 140 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY |
| 141 | 141 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY |
| r1238 | r1239 | |
| 200 | 200 | INPUT_PORTS_END |
| 201 | 201 | |
| 202 | 202 | /* identical apart from bonus life */ |
| 203 | INPUT_PORTS_START( rugrats ) | |
| 203 | static INPUT_PORTS_START( rugrats ) | |
| 204 | 204 | PORT_START /* 0 */ |
| 205 | 205 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY |
| 206 | 206 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY |
| r1238 | r1239 | |
|---|---|---|
| 206 | 206 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN )\ |
| 207 | 207 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 208 | 208 | |
| 209 | INPUT_PORTS_START( gyrodine ) | |
| 209 | static INPUT_PORTS_START( gyrodine ) | |
| 210 | 210 | PORT_START_TAG("DSW1") |
| 211 | 211 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 212 | 212 | PORT_DIPSETTING( 0x03, "3" ) |
| r1238 | r1239 | |
| 233 | 233 | |
| 234 | 234 | INPUT_PORTS_END |
| 235 | 235 | |
| 236 | INPUT_PORTS_START( sonofphx ) | |
| 236 | static INPUT_PORTS_START( sonofphx ) | |
| 237 | 237 | PORT_START_TAG("DSW1") |
| 238 | 238 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 239 | 239 | PORT_DIPSETTING( 0x03, "3" ) |
| r1238 | r1239 | |
| 270 | 270 | COMMON_END |
| 271 | 271 | INPUT_PORTS_END |
| 272 | 272 | |
| 273 | INPUT_PORTS_START( airwolf ) | |
| 273 | static INPUT_PORTS_START( airwolf ) | |
| 274 | 274 | PORT_START_TAG("DSW1") |
| 275 | 275 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 276 | 276 | PORT_DIPSETTING( 0x03, "4" ) |
| r1238 | r1239 | |
| 301 | 301 | INPUT_PORTS_END |
| 302 | 302 | |
| 303 | 303 | /* Same as 'airwolf', but different "Lives" Dip Switch */ |
| 304 | INPUT_PORTS_START( skywolf ) | |
| 304 | static INPUT_PORTS_START( skywolf ) | |
| 305 | 305 | PORT_START_TAG("DSW1") |
| 306 | 306 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 307 | 307 | PORT_DIPSETTING( 0x03, "3" ) |
| r1238 | r1239 | |
| 331 | 331 | COMMON_END |
| 332 | 332 | INPUT_PORTS_END |
| 333 | 333 | |
| 334 | INPUT_PORTS_START( flashgal ) | |
| 334 | static INPUT_PORTS_START( flashgal ) | |
| 335 | 335 | PORT_START_TAG("DSW1") |
| 336 | 336 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 337 | 337 | PORT_DIPSETTING( 0x03, "3" ) |
| r1238 | r1239 | |
| 361 | 361 | COMMON_END |
| 362 | 362 | INPUT_PORTS_END |
| 363 | 363 | |
| 364 | INPUT_PORTS_START( srdmissn ) | |
| 364 | static INPUT_PORTS_START( srdmissn ) | |
| 365 | 365 | PORT_START_TAG("DSW1") |
| 366 | 366 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 367 | 367 | PORT_DIPSETTING( 0x03, "3" ) |
| r1238 | r1239 | |
| 391 | 391 | COMMON_END |
| 392 | 392 | INPUT_PORTS_END |
| 393 | 393 | |
| 394 | INPUT_PORTS_START( legend ) | |
| 394 | static INPUT_PORTS_START( legend ) | |
| 395 | 395 | PORT_START_TAG("DSW1") |
| 396 | 396 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 397 | 397 | PORT_DIPSETTING( 0x03, "3" ) |
| r1238 | r1239 | |
|---|---|---|
| 119 | 119 | #define IPT_EEPROM_DATA IPT_SPECIAL |
| 120 | 120 | |
| 121 | 121 | |
| 122 | INPUT_PORTS_START( cerberus ) /* complete, verified from code */ | |
| 122 | static INPUT_PORTS_START( cerberus ) /* complete, verified from code */ | |
| 123 | 123 | PORT_START /* 0x80 */ |
| 124 | 124 | PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_PLAYER(1) |
| 125 | 125 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 155 | 155 | INPUT_PORTS_END |
| 156 | 156 | |
| 157 | 157 | |
| 158 | INPUT_PORTS_START( mayhem ) /* complete, verified from code */ | |
| 158 | static INPUT_PORTS_START( mayhem ) /* complete, verified from code */ | |
| 159 | 159 | PORT_START /* 0xC0 */ |
| 160 | 160 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 161 | 161 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| r1238 | r1239 | |
| 199 | 199 | INPUT_PORTS_END |
| 200 | 200 | |
| 201 | 201 | |
| 202 | INPUT_PORTS_START( wseries ) /* complete, verified from code */ | |
| 202 | static INPUT_PORTS_START( wseries ) /* complete, verified from code */ | |
| 203 | 203 | PORT_START /* 0x80 */ |
| 204 | 204 | PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 205 | 205 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Extra Base") PORT_PLAYER(1) |
| r1238 | r1239 | |
| 236 | 236 | INPUT_PORTS_END |
| 237 | 237 | |
| 238 | 238 | |
| 239 | INPUT_PORTS_START( alleymas ) /* complete, verified from code */ | |
| 239 | static INPUT_PORTS_START( alleymas ) /* complete, verified from code */ | |
| 240 | 240 | PORT_START /* 0xC0 */ |
| 241 | 241 | PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 242 | 242 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 272 | 272 | INPUT_PORTS_END |
| 273 | 273 | |
| 274 | 274 | |
| 275 | INPUT_PORTS_START( upyoural ) /* complete, verified from code */ | |
| 275 | static INPUT_PORTS_START( upyoural ) /* complete, verified from code */ | |
| 276 | 276 | PORT_START /* 0xC0 */ |
| 277 | 277 | PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 278 | 278 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON4 ) |
| r1238 | r1239 | |
| 308 | 308 | INPUT_PORTS_END |
| 309 | 309 | |
| 310 | 310 | |
| 311 | INPUT_PORTS_START( dangerz ) /* complete, verified from code */ | |
| 311 | static INPUT_PORTS_START( dangerz ) /* complete, verified from code */ | |
| 312 | 312 | PORT_START /* 0x80 */ |
| 313 | 313 | PORT_BIT( 0x1f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 314 | 314 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 339 | 339 | INPUT_PORTS_END |
| 340 | 340 | |
| 341 | 341 | |
| 342 | INPUT_PORTS_START( basebal2 ) /* complete, verified from code */ | |
| 342 | static INPUT_PORTS_START( basebal2 ) /* complete, verified from code */ | |
| 343 | 343 | PORT_START /* 0x40/C0 */ |
| 344 | 344 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 345 | 345 | PORT_BIT( 0x30, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* read by strkzone, but never referenced */ |
| r1238 | r1239 | |
| 380 | 380 | INPUT_PORTS_END |
| 381 | 381 | |
| 382 | 382 | |
| 383 | INPUT_PORTS_START( redline ) /* complete, verified in code */ | |
| 383 | static INPUT_PORTS_START( redline ) /* complete, verified in code */ | |
| 384 | 384 | PORT_START /* 0xC0 */ |
| 385 | 385 | PORT_BIT( 0x1f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 386 | 386 | PORT_BIT( 0xe0, 0x00, IPT_PEDAL ) PORT_MINMAX(0x00,0xe0) PORT_SENSITIVITY(100) PORT_KEYDELTA(64) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 411 | 411 | INPUT_PORTS_END |
| 412 | 412 | |
| 413 | 413 | |
| 414 | INPUT_PORTS_START( quarterb ) /* complete, verified in code */ | |
| 414 | static INPUT_PORTS_START( quarterb ) /* complete, verified in code */ | |
| 415 | 415 | PORT_START /* 0x80 */ |
| 416 | 416 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 417 | 417 | PORT_BIT( 0x0e, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
| 453 | 453 | INPUT_PORTS_END |
| 454 | 454 | |
| 455 | 455 | |
| 456 | INPUT_PORTS_START( teamqb ) /* complete, verified in code */ | |
| 456 | static INPUT_PORTS_START( teamqb ) /* complete, verified in code */ | |
| 457 | 457 | PORT_START /* 0x80 */ |
| 458 | 458 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 459 | 459 | PORT_BIT( 0x0e, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
| 515 | 515 | INPUT_PORTS_END |
| 516 | 516 | |
| 517 | 517 | |
| 518 | INPUT_PORTS_START( aafb2p ) /* complete, verified in code */ | |
| 518 | static INPUT_PORTS_START( aafb2p ) /* complete, verified in code */ | |
| 519 | 519 | PORT_START /* 0x80 */ |
| 520 | 520 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 521 | 521 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 569 | 569 | INPUT_PORTS_END |
| 570 | 570 | |
| 571 | 571 | |
| 572 | INPUT_PORTS_START( offroad ) /* complete, verified from code */ | |
| 572 | static INPUT_PORTS_START( offroad ) /* complete, verified from code */ | |
| 573 | 573 | PORT_START /* 0xC0 */ |
| 574 | 574 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* read */ |
| 575 | 575 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* read */ |
| r1238 | r1239 | |
| 612 | 612 | INPUT_PORTS_END |
| 613 | 613 | |
| 614 | 614 | |
| 615 | INPUT_PORTS_START( pigout ) /* complete, verified from code */ | |
| 615 | static INPUT_PORTS_START( pigout ) /* complete, verified from code */ | |
| 616 | 616 | PORT_START /* 0x40 */ |
| 617 | 617 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 618 | 618 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) |
| r1238 | r1239 | |
|---|---|---|
| 61 | 61 | AM_RANGE(0x0000, 0x7fff) AM_WRITE(MWA8_ROM) |
| 62 | 62 | ADDRESS_MAP_END |
| 63 | 63 | |
| 64 | INPUT_PORTS_START( mjsiyoub ) | |
| 64 | static INPUT_PORTS_START( mjsiyoub ) | |
| 65 | 65 | INPUT_PORTS_END |
| 66 | 66 | |
| 67 | 67 |
| r1238 | r1239 | |
|---|---|---|
| 449 | 449 | |
| 450 | 450 | |
| 451 | 451 | |
| 452 | INPUT_PORTS_START( lazercmd ) | |
| 452 | static INPUT_PORTS_START( lazercmd ) | |
| 453 | 453 | PORT_START /* IN0 player 1 controls */ |
| 454 | 454 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 455 | 455 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 498 | 498 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 499 | 499 | INPUT_PORTS_END |
| 500 | 500 | |
| 501 | INPUT_PORTS_START( medlanes ) | |
| 501 | static INPUT_PORTS_START( medlanes ) | |
| 502 | 502 | PORT_START /* IN0 player 1 controls */ |
| 503 | 503 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) |
| 504 | 504 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) |
| r1238 | r1239 | |
| 541 | 541 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 542 | 542 | INPUT_PORTS_END |
| 543 | 543 | |
| 544 | INPUT_PORTS_START( bbonk ) | |
| 544 | static INPUT_PORTS_START( bbonk ) | |
| 545 | 545 | PORT_START /* IN0 player 1 controls */ |
| 546 | 546 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 547 | 547 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 162 | 162 | |
| 163 | 163 | |
| 164 | 164 | |
| 165 | INPUT_PORTS_START( skyskipr ) | |
| 165 | static INPUT_PORTS_START( skyskipr ) | |
| 166 | 166 | PORT_START /* IN0 */ |
| 167 | 167 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 168 | 168 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 247 | 247 | INPUT_PORTS_END |
| 248 | 248 | |
| 249 | 249 | |
| 250 | INPUT_PORTS_START( popeye ) | |
| 250 | static INPUT_PORTS_START( popeye ) | |
| 251 | 251 | PORT_START /* IN0 */ |
| 252 | 252 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 253 | 253 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 331 | 331 | INPUT_PORTS_END |
| 332 | 332 | |
| 333 | 333 | |
| 334 | INPUT_PORTS_START( popeyef ) | |
| 334 | static INPUT_PORTS_START( popeyef ) | |
| 335 | 335 | PORT_START /* IN0 */ |
| 336 | 336 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 337 | 337 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
|---|---|---|
| 103 | 103 | ADDRESS_MAP_END |
| 104 | 104 | |
| 105 | 105 | |
| 106 | INPUT_PORTS_START( 4enraya ) | |
| 106 | static INPUT_PORTS_START( 4enraya ) | |
| 107 | 107 | PORT_START_TAG("DSW") |
| 108 | 108 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:1") |
| 109 | 109 | PORT_DIPSETTING( 0x01, DEF_STR( Easy ) ) |
| r1238 | r1239 | |
|---|---|---|
| 196 | 196 | |
| 197 | 197 | |
| 198 | 198 | |
| 199 | INPUT_PORTS_START( taxidrvr ) | |
| 199 | static INPUT_PORTS_START( taxidrvr ) | |
| 200 | 200 | PORT_START_TAG("DSW0") |
| 201 | 201 | PORT_DIPNAME( 0x0f, 0x00, DEF_STR( Coin_A ) ) |
| 202 | 202 | PORT_DIPSETTING( 0x0d, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 145 | 145 | /* different harnesses which plugged in here, and */ |
| 146 | 146 | /* some pins were unused. */ |
| 147 | 147 | |
| 148 | INPUT_PORTS_START( blockade ) | |
| 148 | static INPUT_PORTS_START( blockade ) | |
| 149 | 149 | PORT_START /* IN0 */ |
| 150 | 150 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 151 | 151 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 187 | 187 | PORT_BIT( 0x7f, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 188 | 188 | INPUT_PORTS_END |
| 189 | 189 | |
| 190 | INPUT_PORTS_START( comotion ) | |
| 190 | static INPUT_PORTS_START( comotion ) | |
| 191 | 191 | PORT_START /* IN0 */ |
| 192 | 192 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 193 | 193 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 229 | 229 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK ) |
| 230 | 230 | INPUT_PORTS_END |
| 231 | 231 | |
| 232 | INPUT_PORTS_START( blasto ) | |
| 232 | static INPUT_PORTS_START( blasto ) | |
| 233 | 233 | PORT_START /* IN0 */ |
| 234 | 234 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 235 | 235 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
| 274 | 274 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK ) |
| 275 | 275 | INPUT_PORTS_END |
| 276 | 276 | |
| 277 | INPUT_PORTS_START( hustle ) | |
| 277 | static INPUT_PORTS_START( hustle ) | |
| 278 | 278 | PORT_START /* IN0 */ |
| 279 | 279 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 280 | 280 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
| 318 | 318 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK ) |
| 319 | 319 | INPUT_PORTS_END |
| 320 | 320 | |
| 321 | INPUT_PORTS_START( mineswpr ) | |
| 321 | static INPUT_PORTS_START( mineswpr ) | |
| 322 | 322 | PORT_START /* IN0 */ |
| 323 | 323 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 324 | 324 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* This wiring selects upright mode */ |
| r1238 | r1239 | |
| 360 | 360 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK ) |
| 361 | 361 | INPUT_PORTS_END |
| 362 | 362 | |
| 363 | INPUT_PORTS_START( minesw4p ) | |
| 363 | static INPUT_PORTS_START( minesw4p ) | |
| 364 | 364 | PORT_START /* IN0 */ |
| 365 | 365 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 366 | 366 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* This wiring selects cocktail mode */ |
| r1238 | r1239 | |
|---|---|---|
| 78 | 78 | |
| 79 | 79 | /***************************************************************************/ |
| 80 | 80 | |
| 81 | INPUT_PORTS_START( compgolf ) | |
| 81 | static INPUT_PORTS_START( compgolf ) | |
| 82 | 82 | /* Player 1 Port */ |
| 83 | 83 | PORT_START |
| 84 | 84 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
|---|---|---|
| 813 | 813 | |
| 814 | 814 | |
| 815 | 815 | |
| 816 | INPUT_PORTS_START( 19xx ) | |
| 816 | static INPUT_PORTS_START( 19xx ) | |
| 817 | 817 | PORT_START /* IN0 (0x00) */ |
| 818 | 818 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 819 | 819 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 858 | 858 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 859 | 859 | INPUT_PORTS_END |
| 860 | 860 | |
| 861 | INPUT_PORTS_START( cybots ) | |
| 861 | static INPUT_PORTS_START( cybots ) | |
| 862 | 862 | PORT_START /* IN0 (0x00) */ |
| 863 | 863 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 864 | 864 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 903 | 903 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 904 | 904 | INPUT_PORTS_END |
| 905 | 905 | |
| 906 | INPUT_PORTS_START( ssf2 ) | |
| 906 | static INPUT_PORTS_START( ssf2 ) | |
| 907 | 907 | PORT_START /* IN0 (0x00) */ |
| 908 | 908 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 909 | 909 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 948 | 948 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 949 | 949 | INPUT_PORTS_END |
| 950 | 950 | |
| 951 | INPUT_PORTS_START( ddtod ) | |
| 951 | static INPUT_PORTS_START( ddtod ) | |
| 952 | 952 | PORT_START /* IN0 (0x00) */ |
| 953 | 953 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 954 | 954 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1000 | 1000 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN4 ) |
| 1001 | 1001 | INPUT_PORTS_END |
| 1002 | 1002 | |
| 1003 | INPUT_PORTS_START( avsp ) | |
| 1003 | static INPUT_PORTS_START( avsp ) | |
| 1004 | 1004 | PORT_START /* IN0 (0x00) */ |
| 1005 | 1005 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1006 | 1006 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1045 | 1045 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1046 | 1046 | INPUT_PORTS_END |
| 1047 | 1047 | |
| 1048 | INPUT_PORTS_START( qndream ) | |
| 1048 | static INPUT_PORTS_START( qndream ) | |
| 1049 | 1049 | PORT_START /* IN0 (0x00) */ |
| 1050 | 1050 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) |
| 1051 | 1051 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1082 | 1082 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1083 | 1083 | INPUT_PORTS_END |
| 1084 | 1084 | |
| 1085 | INPUT_PORTS_START( batcir ) | |
| 1085 | static INPUT_PORTS_START( batcir ) | |
| 1086 | 1086 | PORT_START /* IN0 (0x00) */ |
| 1087 | 1087 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1088 | 1088 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1134 | 1134 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN4 ) |
| 1135 | 1135 | INPUT_PORTS_END |
| 1136 | 1136 | |
| 1137 | INPUT_PORTS_START( sgemf ) | |
| 1137 | static INPUT_PORTS_START( sgemf ) | |
| 1138 | 1138 | PORT_START /* IN0 (0x00) */ |
| 1139 | 1139 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1140 | 1140 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1179 | 1179 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1180 | 1180 | INPUT_PORTS_END |
| 1181 | 1181 | |
| 1182 | INPUT_PORTS_START( cps2 ) | |
| 1182 | static INPUT_PORTS_START( cps2 ) | |
| 1183 | 1183 | PORT_START /* IN0 (0x00) */ |
| 1184 | 1184 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1185 | 1185 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1225 | 1225 | INPUT_PORTS_END |
| 1226 | 1226 | |
| 1227 | 1227 | |
| 1228 | INPUT_PORTS_START( puzloop2 ) | |
| 1228 | static INPUT_PORTS_START( puzloop2 ) | |
| 1229 | 1229 | PORT_START /* IN0 (0x00) */ |
| 1230 | 1230 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1231 | 1231 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 329 | 329 | |
| 330 | 330 | ***************************************************************************/ |
| 331 | 331 | |
| 332 | INPUT_PORTS_START( lordgun ) | |
| 332 | static INPUT_PORTS_START( lordgun ) | |
| 333 | 333 | PORT_START // IN0 |
| 334 | 334 | PORT_DIPNAME( 0x01, 0x01, "Game Mode" ) |
| 335 | 335 | PORT_DIPSETTING( 0x01, "Arcade" ) |
| r1238 | r1239 | |
|---|---|---|
| 133 | 133 | |
| 134 | 134 | /******************************************************************************/ |
| 135 | 135 | |
| 136 | INPUT_PORTS_START( lemmings ) | |
| 136 | static INPUT_PORTS_START( lemmings ) | |
| 137 | 137 | PORT_START_TAG("IN0") |
| 138 | 138 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| 139 | 139 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("P1 Select") |
| r1238 | r1239 | |
|---|---|---|
| 215 | 215 | |
| 216 | 216 | /******************************************************************************/ |
| 217 | 217 | |
| 218 | INPUT_PORTS_START( pushman ) | |
| 218 | static INPUT_PORTS_START( pushman ) | |
| 219 | 219 | PORT_START_TAG("IN0") |
| 220 | 220 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 221 | 221 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 294 | 294 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 295 | 295 | INPUT_PORTS_END |
| 296 | 296 | |
| 297 | INPUT_PORTS_START( bballs ) | |
| 297 | static INPUT_PORTS_START( bballs ) | |
| 298 | 298 | PORT_START_TAG("IN0") |
| 299 | 299 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 300 | 300 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 99 | 99 | AM_RANGE(0x9800, 0x9800) AM_WRITE(OKIM6295_data_0_w) |
| 100 | 100 | ADDRESS_MAP_END |
| 101 | 101 | |
| 102 | INPUT_PORTS_START( zerozone ) | |
| 102 | static INPUT_PORTS_START( zerozone ) | |
| 103 | 103 | PORT_START_TAG("IN0") |
| 104 | 104 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 105 | 105 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 150 | 150 | ADDRESS_MAP_END |
| 151 | 151 | |
| 152 | 152 | |
| 153 | INPUT_PORTS_START( espial ) | |
| 153 | static INPUT_PORTS_START( espial ) | |
| 154 | 154 | PORT_START /* IN0 */ |
| 155 | 155 | PORT_DIPNAME( 0x01, 0x00, "Number of Buttons" ) |
| 156 | 156 | PORT_DIPSETTING( 0x01, "1" ) |
| r1238 | r1239 | |
| 212 | 212 | INPUT_PORTS_END |
| 213 | 213 | |
| 214 | 214 | |
| 215 | INPUT_PORTS_START( netwars ) | |
| 215 | static INPUT_PORTS_START( netwars ) | |
| 216 | 216 | PORT_START /* IN0 */ |
| 217 | 217 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) /* probably unused */ |
| 218 | 218 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 190 | 190 | |
| 191 | 191 | |
| 192 | 192 | |
| 193 | INPUT_PORTS_START( hyperspt ) | |
| 193 | static INPUT_PORTS_START( hyperspt ) | |
| 194 | 194 | PORT_START_TAG("IN0") |
| 195 | 195 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 196 | 196 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 293 | 293 | PORT_DIPSETTING( 0x00, "Difficult 4" ) |
| 294 | 294 | INPUT_PORTS_END |
| 295 | 295 | |
| 296 | INPUT_PORTS_START( roadf ) | |
| 296 | static INPUT_PORTS_START( roadf ) | |
| 297 | 297 | PORT_START_TAG("IN0") |
| 298 | 298 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 299 | 299 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 208 | 208 | AM_RANGE(0xd2, 0xd2) AM_READ(input_port_2_r) |
| 209 | 209 | ADDRESS_MAP_END |
| 210 | 210 | |
| 211 | INPUT_PORTS_START( tiamc1 ) | |
| 211 | static INPUT_PORTS_START( tiamc1 ) | |
| 212 | 212 | PORT_START_TAG("IN0") |
| 213 | 213 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Player 0 JOYSTICK_RIGHT */ |
| 214 | 214 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 397 | 397 | PORT_BIT( 0xfffe, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 398 | 398 | |
| 399 | 399 | |
| 400 | INPUT_PORTS_START( rallybik ) | |
| 400 | static INPUT_PORTS_START( rallybik ) | |
| 401 | 401 | TOAPLAN1_VBLANK_INPUT |
| 402 | 402 | |
| 403 | 403 | TOAPLAN1_PLAYER_INPUT( 1, IPT_UNKNOWN, ) |
| r1238 | r1239 | |
| 454 | 454 | |
| 455 | 455 | INPUT_PORTS_END |
| 456 | 456 | |
| 457 | INPUT_PORTS_START( truxton ) | |
| 457 | static INPUT_PORTS_START( truxton ) | |
| 458 | 458 | TOAPLAN1_VBLANK_INPUT |
| 459 | 459 | |
| 460 | 460 | TOAPLAN1_PLAYER_INPUT( 1, IPT_UNKNOWN, ) |
| r1238 | r1239 | |
| 537 | 537 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 538 | 538 | INPUT_PORTS_END |
| 539 | 539 | |
| 540 | INPUT_PORTS_START( hellfire ) | |
| 540 | static INPUT_PORTS_START( hellfire ) | |
| 541 | 541 | TOAPLAN1_VBLANK_INPUT |
| 542 | 542 | |
| 543 | 543 | TOAPLAN1_PLAYER_INPUT( 1, IPT_UNKNOWN, ) |
| r1238 | r1239 | |
| 606 | 606 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 607 | 607 | INPUT_PORTS_END |
| 608 | 608 | |
| 609 | INPUT_PORTS_START( hellfir1 ) | |
| 609 | static INPUT_PORTS_START( hellfir1 ) | |
| 610 | 610 | TOAPLAN1_VBLANK_INPUT |
| 611 | 611 | |
| 612 | 612 | TOAPLAN1_PLAYER_INPUT( 1, IPT_UNKNOWN, ) |
| r1238 | r1239 | |
| 675 | 675 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 676 | 676 | INPUT_PORTS_END |
| 677 | 677 | |
| 678 | INPUT_PORTS_START( zerowing ) | |
| 678 | static INPUT_PORTS_START( zerowing ) | |
| 679 | 679 | TOAPLAN1_VBLANK_INPUT |
| 680 | 680 | |
| 681 | 681 | TOAPLAN1_PLAYER_INPUT( 1, IPT_UNKNOWN, ) |
| r1238 | r1239 | |
| 744 | 744 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 745 | 745 | INPUT_PORTS_END |
| 746 | 746 | |
| 747 | INPUT_PORTS_START( demonwld ) | |
| 747 | static INPUT_PORTS_START( demonwld ) | |
| 748 | 748 | TOAPLAN1_VBLANK_INPUT |
| 749 | 749 | |
| 750 | 750 | TOAPLAN1_PLAYER_INPUT( 1, IPT_BUTTON3, ) |
| r1238 | r1239 | |
| 814 | 814 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 815 | 815 | INPUT_PORTS_END |
| 816 | 816 | |
| 817 | INPUT_PORTS_START( demonwl1 ) | |
| 817 | static INPUT_PORTS_START( demonwl1 ) | |
| 818 | 818 | TOAPLAN1_VBLANK_INPUT |
| 819 | 819 | |
| 820 | 820 | TOAPLAN1_PLAYER_INPUT( 1, IPT_BUTTON3, ) |
| r1238 | r1239 | |
| 883 | 883 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 884 | 884 | INPUT_PORTS_END |
| 885 | 885 | |
| 886 | INPUT_PORTS_START( samesame ) | |
| 886 | static INPUT_PORTS_START( samesame ) | |
| 887 | 887 | TOAPLAN1_VBLANK_INPUT |
| 888 | 888 | |
| 889 | 889 | TOAPLAN1_PLAYER_INPUT( 1, IPT_UNKNOWN, ) |
| r1238 | r1239 | |
| 967 | 967 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 968 | 968 | INPUT_PORTS_END |
| 969 | 969 | |
| 970 | INPUT_PORTS_START( samesam2 ) | |
| 970 | static INPUT_PORTS_START( samesam2 ) | |
| 971 | 971 | TOAPLAN1_VBLANK_INPUT |
| 972 | 972 | |
| 973 | 973 | TOAPLAN1_PLAYER_INPUT( 1, IPT_UNKNOWN, ) |
| r1238 | r1239 | |
| 1058 | 1058 | PORT_BIT( 0xf2, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* Mask bit 2 aswell */ |
| 1059 | 1059 | INPUT_PORTS_END |
| 1060 | 1060 | |
| 1061 | INPUT_PORTS_START( fireshrk ) | |
| 1061 | static INPUT_PORTS_START( fireshrk ) | |
| 1062 | 1062 | TOAPLAN1_VBLANK_INPUT |
| 1063 | 1063 | |
| 1064 | 1064 | TOAPLAN1_PLAYER_INPUT( 1, IPT_UNKNOWN, ) |
| r1238 | r1239 | |
| 1126 | 1126 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1127 | 1127 | INPUT_PORTS_END |
| 1128 | 1128 | |
| 1129 | INPUT_PORTS_START( outzone ) | |
| 1129 | static INPUT_PORTS_START( outzone ) | |
| 1130 | 1130 | TOAPLAN1_VBLANK_INPUT |
| 1131 | 1131 | |
| 1132 | 1132 | TOAPLAN1_PLAYER_INPUT( 1, IPT_BUTTON3, ) |
| r1238 | r1239 | |
| 1201 | 1201 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1202 | 1202 | INPUT_PORTS_END |
| 1203 | 1203 | |
| 1204 | INPUT_PORTS_START( outzoneb ) | |
| 1204 | static INPUT_PORTS_START( outzoneb ) | |
| 1205 | 1205 | TOAPLAN1_VBLANK_INPUT |
| 1206 | 1206 | |
| 1207 | 1207 | TOAPLAN1_PLAYER_INPUT( 1, IPT_BUTTON3, ) |
| r1238 | r1239 | |
| 1271 | 1271 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1272 | 1272 | INPUT_PORTS_END |
| 1273 | 1273 | |
| 1274 | INPUT_PORTS_START( outzonec ) | |
| 1274 | static INPUT_PORTS_START( outzonec ) | |
| 1275 | 1275 | TOAPLAN1_VBLANK_INPUT |
| 1276 | 1276 | |
| 1277 | 1277 | TOAPLAN1_PLAYER_INPUT( 1, IPT_BUTTON3, ) |
| r1238 | r1239 | |
| 1346 | 1346 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1347 | 1347 | INPUT_PORTS_END |
| 1348 | 1348 | |
| 1349 | INPUT_PORTS_START( vimana ) | |
| 1349 | static INPUT_PORTS_START( vimana ) | |
| 1350 | 1350 | TOAPLAN1_VBLANK_INPUT |
| 1351 | 1351 | |
| 1352 | 1352 | TOAPLAN1_PLAYER_INPUT( 1, IPT_BUTTON3, ) |
| r1238 | r1239 | |
| 1421 | 1421 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1422 | 1422 | INPUT_PORTS_END |
| 1423 | 1423 | |
| 1424 | INPUT_PORTS_START( vimanan ) | |
| 1424 | static INPUT_PORTS_START( vimanan ) | |
| 1425 | 1425 | TOAPLAN1_VBLANK_INPUT |
| 1426 | 1426 | |
| 1427 | 1427 | TOAPLAN1_PLAYER_INPUT( 1, IPT_BUTTON3, ) |
| r1238 | r1239 | |
|---|---|---|
| 388 | 388 | * |
| 389 | 389 | *************************************/ |
| 390 | 390 | |
| 391 | INPUT_PORTS_START( g80r_generic ) | |
| 391 | static INPUT_PORTS_START( g80r_generic ) | |
| 392 | 392 | PORT_START_TAG("D7D6") |
| 393 | 393 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(3) /* P1.5 */ |
| 394 | 394 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) /* n/c */ |
| r1238 | r1239 | |
| 493 | 493 | * |
| 494 | 494 | *************************************/ |
| 495 | 495 | |
| 496 | INPUT_PORTS_START( astrob ) | |
| 496 | static INPUT_PORTS_START( astrob ) | |
| 497 | 497 | PORT_INCLUDE(g80r_generic) |
| 498 | 498 | |
| 499 | 499 | PORT_MODIFY("D5D4") |
| r1238 | r1239 | |
| 523 | 523 | INPUT_PORTS_END |
| 524 | 524 | |
| 525 | 525 | |
| 526 | INPUT_PORTS_START( astrob2 ) | |
| 526 | static INPUT_PORTS_START( astrob2 ) | |
| 527 | 527 | PORT_INCLUDE(astrob) |
| 528 | 528 | |
| 529 | 529 | PORT_MODIFY("D3D2") |
| r1238 | r1239 | |
| 535 | 535 | INPUT_PORTS_END |
| 536 | 536 | |
| 537 | 537 | |
| 538 | INPUT_PORTS_START( astrob1 ) | |
| 538 | static INPUT_PORTS_START( astrob1 ) | |
| 539 | 539 | PORT_INCLUDE(astrob) |
| 540 | 540 | |
| 541 | 541 | PORT_MODIFY("D3D2") |
| r1238 | r1239 | |
| 545 | 545 | INPUT_PORTS_END |
| 546 | 546 | |
| 547 | 547 | |
| 548 | INPUT_PORTS_START( 005 ) | |
| 548 | static INPUT_PORTS_START( 005 ) | |
| 549 | 549 | PORT_INCLUDE(g80r_generic) |
| 550 | 550 | |
| 551 | 551 | PORT_MODIFY("D7D6") |
| r1238 | r1239 | |
| 581 | 581 | INPUT_PORTS_END |
| 582 | 582 | |
| 583 | 583 | |
| 584 | INPUT_PORTS_START( spaceod ) | |
| 584 | static INPUT_PORTS_START( spaceod ) | |
| 585 | 585 | PORT_INCLUDE(g80r_generic) |
| 586 | 586 | |
| 587 | 587 | PORT_MODIFY("D7D6") |
| r1238 | r1239 | |
| 631 | 631 | INPUT_PORTS_END |
| 632 | 632 | |
| 633 | 633 | |
| 634 | INPUT_PORTS_START( monsterb ) | |
| 634 | static INPUT_PORTS_START( monsterb ) | |
| 635 | 635 | PORT_INCLUDE(g80r_generic) |
| 636 | 636 | |
| 637 | 637 | PORT_MODIFY("D7D6") |
| r1238 | r1239 | |
| 675 | 675 | INPUT_PORTS_END |
| 676 | 676 | |
| 677 | 677 | |
| 678 | INPUT_PORTS_START( pignewt ) | |
| 678 | static INPUT_PORTS_START( pignewt ) | |
| 679 | 679 | PORT_INCLUDE(g80r_generic) |
| 680 | 680 | |
| 681 | 681 | PORT_MODIFY("D7D6") |
| r1238 | r1239 | |
| 709 | 709 | INPUT_PORTS_END |
| 710 | 710 | |
| 711 | 711 | |
| 712 | INPUT_PORTS_START( pignewta ) | |
| 712 | static INPUT_PORTS_START( pignewta ) | |
| 713 | 713 | PORT_INCLUDE(pignewt) |
| 714 | 714 | |
| 715 | 715 | PORT_MODIFY("D7D6") |
| r1238 | r1239 | |
| 731 | 731 | INPUT_PORTS_END |
| 732 | 732 | |
| 733 | 733 | |
| 734 | INPUT_PORTS_START( sindbadm ) | |
| 734 | static INPUT_PORTS_START( sindbadm ) | |
| 735 | 735 | PORT_INCLUDE(g80r_generic) |
| 736 | 736 | |
| 737 | 737 | PORT_MODIFY("D7D6") |
| r1238 | r1239 | |
|---|---|---|
| 129 | 129 | |
| 130 | 130 | |
| 131 | 131 | |
| 132 | INPUT_PORTS_START( magic10 ) | |
| 132 | static INPUT_PORTS_START( magic10 ) | |
| 133 | 133 | PORT_START |
| 134 | 134 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 135 | 135 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 194 | 194 | PORT_DIPSETTING( 0xc000, "Lots Dispenser" ) |
| 195 | 195 | INPUT_PORTS_END |
| 196 | 196 | |
| 197 | INPUT_PORTS_START( magic102 ) | |
| 197 | static INPUT_PORTS_START( magic102 ) | |
| 198 | 198 | PORT_START |
| 199 | 199 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 200 | 200 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_NAME("Note A") |
| r1238 | r1239 | |
|---|---|---|
| 221 | 221 | |
| 222 | 222 | |
| 223 | 223 | |
| 224 | INPUT_PORTS_START( hnayayoi ) | |
| 224 | static INPUT_PORTS_START( hnayayoi ) | |
| 225 | 225 | PORT_START /* DSW1 */ |
| 226 | 226 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 227 | 227 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 350 | 350 | INPUT_PORTS_END |
| 351 | 351 | |
| 352 | 352 | |
| 353 | INPUT_PORTS_START( hnfubuki ) | |
| 353 | static INPUT_PORTS_START( hnfubuki ) | |
| 354 | 354 | PORT_START /* DSW1 */ |
| 355 | 355 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 356 | 356 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 481 | 481 | INPUT_PORTS_END |
| 482 | 482 | |
| 483 | 483 | |
| 484 | INPUT_PORTS_START( untoucha ) | |
| 484 | static INPUT_PORTS_START( untoucha ) | |
| 485 | 485 | PORT_START /* DSW1 */ |
| 486 | 486 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 487 | 487 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 807 | 807 | AM_RANGE(0x80000, 0xfffff) AM_ROM |
| 808 | 808 | ADDRESS_MAP_END |
| 809 | 809 | |
| 810 | INPUT_PORTS_START( kothello ) | |
| 810 | static INPUT_PORTS_START( kothello ) | |
| 811 | 811 | SEIBU_COIN_INPUTS |
| 812 | 812 | INPUT_PORTS_END |
| 813 | 813 | |
| 814 | 814 | |
| 815 | INPUT_PORTS_START( shanghai ) | |
| 815 | static INPUT_PORTS_START( shanghai ) | |
| 816 | 816 | PORT_START /* IN0 */ |
| 817 | 817 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 818 | 818 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 891 | 891 | PORT_DIPSETTING( 0x00, "120" ) |
| 892 | 892 | INPUT_PORTS_END |
| 893 | 893 | |
| 894 | INPUT_PORTS_START( shangha2 ) | |
| 894 | static INPUT_PORTS_START( shangha2 ) | |
| 895 | 895 | PORT_START /* IN0 */ |
| 896 | 896 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 897 | 897 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 1509 | 1509 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, button3 ) PORT_PLAYER(player) \ |
| 1510 | 1510 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, start ) |
| 1511 | 1511 | |
| 1512 | INPUT_PORTS_START( cuebrckj ) | |
| 1512 | static INPUT_PORTS_START( cuebrckj ) | |
| 1513 | 1513 | PORT_START /* COINS */ |
| 1514 | 1514 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1515 | 1515 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1594 | 1594 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1595 | 1595 | INPUT_PORTS_END |
| 1596 | 1596 | |
| 1597 | INPUT_PORTS_START( mia ) | |
| 1597 | static INPUT_PORTS_START( mia ) | |
| 1598 | 1598 | PORT_START /* COINS */ |
| 1599 | 1599 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1600 | 1600 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1679 | 1679 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1680 | 1680 | INPUT_PORTS_END |
| 1681 | 1681 | |
| 1682 | INPUT_PORTS_START( tmnt ) | |
| 1682 | static INPUT_PORTS_START( tmnt ) | |
| 1683 | 1683 | PORT_START /* COINS */ |
| 1684 | 1684 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1685 | 1685 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1759 | 1759 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1760 | 1760 | INPUT_PORTS_END |
| 1761 | 1761 | |
| 1762 | INPUT_PORTS_START( tmnt2p ) | |
| 1762 | static INPUT_PORTS_START( tmnt2p ) | |
| 1763 | 1763 | PORT_START /* COINS */ |
| 1764 | 1764 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1765 | 1765 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1856 | 1856 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1857 | 1857 | INPUT_PORTS_END |
| 1858 | 1858 | |
| 1859 | INPUT_PORTS_START( punkshot ) | |
| 1859 | static INPUT_PORTS_START( punkshot ) | |
| 1860 | 1860 | PORT_START /* DSW1/DSW2 */ |
| 1861 | 1861 | PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coinage ) ) |
| 1862 | 1862 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| r1238 | r1239 | |
| 1942 | 1942 | KONAMI_PLAYERS_INPUT_MSB( 4, IPT_UNKNOWN, IPT_UNKNOWN ) |
| 1943 | 1943 | INPUT_PORTS_END |
| 1944 | 1944 | |
| 1945 | INPUT_PORTS_START( punksht2 ) | |
| 1945 | static INPUT_PORTS_START( punksht2 ) | |
| 1946 | 1946 | PORT_START /* DSW1/DSW2 */ |
| 1947 | 1947 | PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coinage ) ) |
| 1948 | 1948 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| r1238 | r1239 | |
| 2024 | 2024 | KONAMI_PLAYERS_INPUT_MSB( 2, IPT_UNKNOWN, IPT_UNKNOWN ) |
| 2025 | 2025 | INPUT_PORTS_END |
| 2026 | 2026 | |
| 2027 | INPUT_PORTS_START( lgtnfght ) | |
| 2027 | static INPUT_PORTS_START( lgtnfght ) | |
| 2028 | 2028 | PORT_START |
| 2029 | 2029 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2030 | 2030 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2114 | 2114 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2115 | 2115 | INPUT_PORTS_END |
| 2116 | 2116 | |
| 2117 | INPUT_PORTS_START( detatwin ) | |
| 2117 | static INPUT_PORTS_START( detatwin ) | |
| 2118 | 2118 | PORT_START /* IN0 */ |
| 2119 | 2119 | KONAMI_PLAYERS_INPUT_LSB( 1, IPT_UNKNOWN, IPT_UNKNOWN ) |
| 2120 | 2120 | |
| r1238 | r1239 | |
| 2137 | 2137 | PORT_BIT( 0xfc, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2138 | 2138 | INPUT_PORTS_END |
| 2139 | 2139 | |
| 2140 | INPUT_PORTS_START( glfgreat ) | |
| 2140 | static INPUT_PORTS_START( glfgreat ) | |
| 2141 | 2141 | PORT_START /* IN0 */ |
| 2142 | 2142 | KONAMI_PLAYERS_INPUT_LSB( 1, IPT_BUTTON3, IPT_BUTTON4 ) PORT_PLAYER(1) |
| 2143 | 2143 | KONAMI_PLAYERS_INPUT_MSB( 2, IPT_BUTTON3, IPT_BUTTON4 ) PORT_PLAYER(2) |
| r1238 | r1239 | |
| 2231 | 2231 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 2232 | 2232 | INPUT_PORTS_END |
| 2233 | 2233 | |
| 2234 | INPUT_PORTS_START( ssriders ) | |
| 2234 | static INPUT_PORTS_START( ssriders ) | |
| 2235 | 2235 | PORT_START /* IN0 */ |
| 2236 | 2236 | KONAMI_PLAYERS_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1 ) |
| 2237 | 2237 | |
| r1238 | r1239 | |
| 2258 | 2258 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) |
| 2259 | 2259 | INPUT_PORTS_END |
| 2260 | 2260 | |
| 2261 | INPUT_PORTS_START( ssridr4p ) | |
| 2261 | static INPUT_PORTS_START( ssridr4p ) | |
| 2262 | 2262 | PORT_START /* IN0 */ |
| 2263 | 2263 | KONAMI_PLAYERS_INPUT_LSB( 1, IPT_UNKNOWN, IPT_UNKNOWN ) |
| 2264 | 2264 | |
| r1238 | r1239 | |
| 2293 | 2293 | |
| 2294 | 2294 | /* Same as 'ssridr4p', but additional Start button for each player. |
| 2295 | 2295 | COIN3, COIN4, SERVICE3 and SERVICE4 only have an effect in the "test mode". */ |
| 2296 | INPUT_PORTS_START( ssrid4ps ) | |
| 2296 | static INPUT_PORTS_START( ssrid4ps ) | |
| 2297 | 2297 | PORT_START /* IN0 */ |
| 2298 | 2298 | KONAMI_PLAYERS_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1 ) |
| 2299 | 2299 | |
| r1238 | r1239 | |
| 2327 | 2327 | INPUT_PORTS_END |
| 2328 | 2328 | |
| 2329 | 2329 | /* Version for the bootleg, which has the service switch a little different */ |
| 2330 | INPUT_PORTS_START( ssridbl ) | |
| 2330 | static INPUT_PORTS_START( ssridbl ) | |
| 2331 | 2331 | PORT_START /* IN0 */ |
| 2332 | 2332 | KONAMI_PLAYERS_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1 ) |
| 2333 | 2333 | |
| r1238 | r1239 | |
| 2360 | 2360 | KONAMI_PLAYERS_INPUT_LSB( 4, IPT_UNKNOWN, IPT_START4 ) |
| 2361 | 2361 | INPUT_PORTS_END |
| 2362 | 2362 | |
| 2363 | INPUT_PORTS_START( qgakumon ) | |
| 2363 | static INPUT_PORTS_START( qgakumon ) | |
| 2364 | 2364 | PORT_START /* IN0 */ |
| 2365 | 2365 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) // Joystick control : Left |
| 2366 | 2366 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) // Joystick control : Right |
| r1238 | r1239 | |
| 2401 | 2401 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) |
| 2402 | 2402 | INPUT_PORTS_END |
| 2403 | 2403 | |
| 2404 | INPUT_PORTS_START( thndrx2 ) | |
| 2404 | static INPUT_PORTS_START( thndrx2 ) | |
| 2405 | 2405 | PORT_START |
| 2406 | 2406 | KONAMI_PLAYERS_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1 ) |
| 2407 | 2407 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
| 2425 | 2425 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2426 | 2426 | INPUT_PORTS_END |
| 2427 | 2427 | |
| 2428 | INPUT_PORTS_START( prmrsocr ) | |
| 2428 | static INPUT_PORTS_START( prmrsocr ) | |
| 2429 | 2429 | PORT_START |
| 2430 | 2430 | KONAMI_PLAYERS_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1 ) |
| 2431 | 2431 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r1238 | r1239 | |
|---|---|---|
| 592 | 592 | PORT_START_TAG("TOUCH_Y") \ |
| 593 | 593 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(45) PORT_KEYDELTA(15) \ |
| 594 | 594 | |
| 595 | INPUT_PORTS_START( hngmnjpm ) | |
| 595 | static INPUT_PORTS_START( hngmnjpm ) | |
| 596 | 596 | IMPACT_STANDARD |
| 597 | 597 | |
| 598 | 598 | PORT_START_TAG("COINS") |
| r1238 | r1239 | |
| 612 | 612 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME( "'1'" ) |
| 613 | 613 | INPUT_PORTS_END |
| 614 | 614 | |
| 615 | INPUT_PORTS_START( cluedo ) | |
| 615 | static INPUT_PORTS_START( cluedo ) | |
| 616 | 616 | IMPACT_STANDARD |
| 617 | 617 | |
| 618 | 618 | PORT_START_TAG("COINS") |
| r1238 | r1239 | |
| 631 | 631 | IMPACT_TOUCHSCREEN |
| 632 | 632 | INPUT_PORTS_END |
| 633 | 633 | |
| 634 | INPUT_PORTS_START( trivialp ) | |
| 634 | static INPUT_PORTS_START( trivialp ) | |
| 635 | 635 | IMPACT_STANDARD |
| 636 | 636 | |
| 637 | 637 | PORT_START_TAG("COINS") |
| r1238 | r1239 | |
| 651 | 651 | IMPACT_TOUCHSCREEN |
| 652 | 652 | INPUT_PORTS_END |
| 653 | 653 | |
| 654 | INPUT_PORTS_START( scrabble ) | |
| 654 | static INPUT_PORTS_START( scrabble ) | |
| 655 | 655 | IMPACT_STANDARD |
| 656 | 656 | |
| 657 | 657 | PORT_START_TAG("COINS") |
| r1238 | r1239 | |
|---|---|---|
| 1402 | 1402 | MDRV_SOUND_ROUTE(3, "left", 1.00) |
| 1403 | 1403 | MACHINE_DRIVER_END |
| 1404 | 1404 | |
| 1405 | INPUT_PORTS_START( namcos12 ) | |
| 1405 | static INPUT_PORTS_START( namcos12 ) | |
| 1406 | 1406 | PORT_START_TAG("IN0") |
| 1407 | 1407 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR(Service_Mode) ) |
| 1408 | 1408 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1449 | 1449 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 1450 | 1450 | INPUT_PORTS_END |
| 1451 | 1451 | |
| 1452 | INPUT_PORTS_START( ptblank2 ) | |
| 1452 | static INPUT_PORTS_START( ptblank2 ) | |
| 1453 | 1453 | PORT_INCLUDE( namcos12 ) |
| 1454 | 1454 | |
| 1455 | 1455 | PORT_MODIFY("IN1") |
| r1238 | r1239 | |
| 1471 | 1471 | PORT_BIT( 0xffff, 0x00a8, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_MINMAX(0x2c,0x11b) PORT_SENSITIVITY(50) PORT_KEYDELTA(15) PORT_PLAYER(2) |
| 1472 | 1472 | INPUT_PORTS_END |
| 1473 | 1473 | |
| 1474 | INPUT_PORTS_START( ghlpanic ) | |
| 1474 | static INPUT_PORTS_START( ghlpanic ) | |
| 1475 | 1475 | PORT_INCLUDE( namcos12 ) |
| 1476 | 1476 | |
| 1477 | 1477 | PORT_MODIFY("IN1") |
| r1238 | r1239 | |
| 1493 | 1493 | PORT_BIT( 0xffff, 0x0091, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_MINMAX(0x1a,0x109) PORT_SENSITIVITY(50) PORT_KEYDELTA(15) PORT_PLAYER(2) |
| 1494 | 1494 | INPUT_PORTS_END |
| 1495 | 1495 | |
| 1496 | INPUT_PORTS_START( golgo13 ) | |
| 1496 | static INPUT_PORTS_START( golgo13 ) | |
| 1497 | 1497 | PORT_INCLUDE( namcos12 ) |
| 1498 | 1498 | |
| 1499 | 1499 | PORT_MODIFY("IN1") |
| r1238 | r1239 | |
|---|---|---|
| 928 | 928 | |
| 929 | 929 | /* INPUT PORTS */ |
| 930 | 930 | |
| 931 | INPUT_PORTS_START( raiden2 ) | |
| 931 | static INPUT_PORTS_START( raiden2 ) | |
| 932 | 932 | PORT_START /* IN0 */ |
| 933 | 933 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 934 | 934 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1006 | 1006 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1007 | 1007 | INPUT_PORTS_END |
| 1008 | 1008 | |
| 1009 | INPUT_PORTS_START( raidendx ) | |
| 1009 | static INPUT_PORTS_START( raidendx ) | |
| 1010 | 1010 | PORT_START /* IN0 */ |
| 1011 | 1011 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1012 | 1012 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1082 | 1082 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| 1083 | 1083 | INPUT_PORTS_END |
| 1084 | 1084 | |
| 1085 | INPUT_PORTS_START( raiden2n ) /* For "Newer" (V33) versions of Raiden 2 & Raiden DX */ | |
| 1085 | static INPUT_PORTS_START( raiden2n ) /* For "Newer" (V33) versions of Raiden 2 & Raiden DX */ | |
| 1086 | 1086 | PORT_START /* IN0 */ |
| 1087 | 1087 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1088 | 1088 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 102 | 102 | |
| 103 | 103 | |
| 104 | 104 | |
| 105 | INPUT_PORTS_START( zodiack ) | |
| 105 | static INPUT_PORTS_START( zodiack ) | |
| 106 | 106 | PORT_START_TAG("DSW0") /* never read in this game */ |
| 107 | 107 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 108 | 108 | |
| r1238 | r1239 | |
| 152 | 152 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 153 | 153 | INPUT_PORTS_END |
| 154 | 154 | |
| 155 | INPUT_PORTS_START( dogfight ) | |
| 155 | static INPUT_PORTS_START( dogfight ) | |
| 156 | 156 | PORT_START_TAG("DSW0") |
| 157 | 157 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Coin_B ) ) |
| 158 | 158 | PORT_DIPSETTING( 0x05, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 225 | 225 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 226 | 226 | INPUT_PORTS_END |
| 227 | 227 | |
| 228 | INPUT_PORTS_START( moguchan ) | |
| 228 | static INPUT_PORTS_START( moguchan ) | |
| 229 | 229 | PORT_START_TAG("DSW0") |
| 230 | 230 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 231 | 231 | |
| r1238 | r1239 | |
| 275 | 275 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 276 | 276 | INPUT_PORTS_END |
| 277 | 277 | |
| 278 | INPUT_PORTS_START( percuss ) | |
| 278 | static INPUT_PORTS_START( percuss ) | |
| 279 | 279 | PORT_START_TAG("DSW0") |
| 280 | 280 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) |
| 281 | 281 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 344 | 344 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 345 | 345 | INPUT_PORTS_END |
| 346 | 346 | |
| 347 | INPUT_PORTS_START( bounty ) | |
| 347 | static INPUT_PORTS_START( bounty ) | |
| 348 | 348 | PORT_START_TAG("DSW0") |
| 349 | 349 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) |
| 350 | 350 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 734 | 734 | AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ(input_port_3_r) |
| 735 | 735 | ADDRESS_MAP_END |
| 736 | 736 | |
| 737 | INPUT_PORTS_START( scramble ) | |
| 737 | static INPUT_PORTS_START( scramble ) | |
| 738 | 738 | PORT_START_TAG("IN0") |
| 739 | 739 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 740 | 740 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 774 | 774 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SPECIAL ) /* protection bit */ |
| 775 | 775 | INPUT_PORTS_END |
| 776 | 776 | |
| 777 | INPUT_PORTS_START( explorer ) | |
| 777 | static INPUT_PORTS_START( explorer ) | |
| 778 | 778 | PORT_START_TAG("IN0") |
| 779 | 779 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| 780 | 780 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 865 | 865 | PORT_SERVICE( 0x80, IP_ACTIVE_HIGH ) |
| 866 | 866 | INPUT_PORTS_END |
| 867 | 867 | |
| 868 | INPUT_PORTS_START( strfbomb ) | |
| 868 | static INPUT_PORTS_START( strfbomb ) | |
| 869 | 869 | PORT_START_TAG("IN0") |
| 870 | 870 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 871 | 871 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 905 | 905 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SPECIAL ) /* protection bit */ |
| 906 | 906 | INPUT_PORTS_END |
| 907 | 907 | |
| 908 | INPUT_PORTS_START( atlantis ) | |
| 908 | static INPUT_PORTS_START( atlantis ) | |
| 909 | 909 | PORT_START_TAG("IN0") |
| 910 | 910 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 911 | 911 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 943 | 943 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 944 | 944 | INPUT_PORTS_END |
| 945 | 945 | |
| 946 | INPUT_PORTS_START( theend ) | |
| 946 | static INPUT_PORTS_START( theend ) | |
| 947 | 947 | PORT_START_TAG("IN0") |
| 948 | 948 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 949 | 949 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 980 | 980 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) /* output bits */ |
| 981 | 981 | INPUT_PORTS_END |
| 982 | 982 | |
| 983 | INPUT_PORTS_START( froggers ) | |
| 983 | static INPUT_PORTS_START( froggers ) | |
| 984 | 984 | PORT_START_TAG("IN0") |
| 985 | 985 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| 986 | 986 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* 1P shoot2 - unused */ |
| r1238 | r1239 | |
| 1020 | 1020 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1021 | 1021 | INPUT_PORTS_END |
| 1022 | 1022 | |
| 1023 | INPUT_PORTS_START( amidars ) | |
| 1023 | static INPUT_PORTS_START( amidars ) | |
| 1024 | 1024 | PORT_START_TAG("IN0") |
| 1025 | 1025 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| 1026 | 1026 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* 1P shoot2 - unused */ |
| r1238 | r1239 | |
| 1067 | 1067 | INPUT_PORTS_END |
| 1068 | 1068 | |
| 1069 | 1069 | |
| 1070 | INPUT_PORTS_START( turpins ) | |
| 1070 | static INPUT_PORTS_START( turpins ) | |
| 1071 | 1071 | PORT_START_TAG("IN0") |
| 1072 | 1072 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 1073 | 1073 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably space for button 2 */ |
| r1238 | r1239 | |
| 1111 | 1111 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1112 | 1112 | INPUT_PORTS_END |
| 1113 | 1113 | |
| 1114 | INPUT_PORTS_START( triplep ) | |
| 1114 | static INPUT_PORTS_START( triplep ) | |
| 1115 | 1115 | PORT_START_TAG("IN0") |
| 1116 | 1116 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| 1117 | 1117 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 1153 | 1153 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1154 | 1154 | INPUT_PORTS_END |
| 1155 | 1155 | |
| 1156 | INPUT_PORTS_START( ckongs ) | |
| 1156 | static INPUT_PORTS_START( ckongs ) | |
| 1157 | 1157 | PORT_START_TAG("IN0") |
| 1158 | 1158 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| 1159 | 1159 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| r1238 | r1239 | |
| 1201 | 1201 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 1202 | 1202 | INPUT_PORTS_END |
| 1203 | 1203 | |
| 1204 | INPUT_PORTS_START( mars ) | |
| 1204 | static INPUT_PORTS_START( mars ) | |
| 1205 | 1205 | PORT_START_TAG("IN0") |
| 1206 | 1206 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_8WAY PORT_PLAYER(2) |
| 1207 | 1207 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r1238 | r1239 | |
| 1249 | 1249 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_8WAY PORT_PLAYER(2) |
| 1250 | 1250 | INPUT_PORTS_END |
| 1251 | 1251 | |
| 1252 | INPUT_PORTS_START( devilfsh ) | |
| 1252 | static INPUT_PORTS_START( devilfsh ) | |
| 1253 | 1253 | PORT_START_TAG("IN0") |
| 1254 | 1254 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 1255 | 1255 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 1291 | 1291 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1292 | 1292 | INPUT_PORTS_END |
| 1293 | 1293 | |
| 1294 | INPUT_PORTS_START( newsin7 ) | |
| 1294 | static INPUT_PORTS_START( newsin7 ) | |
| 1295 | 1295 | PORT_START_TAG("IN0") |
| 1296 | 1296 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 1297 | 1297 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 1332 | 1332 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1333 | 1333 | INPUT_PORTS_END |
| 1334 | 1334 | |
| 1335 | INPUT_PORTS_START( mrkougar ) | |
| 1335 | static INPUT_PORTS_START( mrkougar ) | |
| 1336 | 1336 | PORT_START_TAG("IN0") |
| 1337 | 1337 | PORT_BIT( 0x03, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1338 | 1338 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r1238 | r1239 | |
| 1370 | 1370 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1371 | 1371 | INPUT_PORTS_END |
| 1372 | 1372 | |
| 1373 | INPUT_PORTS_START( hotshock ) | |
| 1373 | static INPUT_PORTS_START( hotshock ) | |
| 1374 | 1374 | PORT_START_TAG("IN0") |
| 1375 | 1375 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| 1376 | 1376 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 1450 | 1450 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) |
| 1451 | 1451 | INPUT_PORTS_END |
| 1452 | 1452 | |
| 1453 | INPUT_PORTS_START( hunchbks ) | |
| 1453 | static INPUT_PORTS_START( hunchbks ) | |
| 1454 | 1454 | PORT_START_TAG("IN0") |
| 1455 | 1455 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 1456 | 1456 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 1494 | 1494 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 1495 | 1495 | INPUT_PORTS_END |
| 1496 | 1496 | |
| 1497 | INPUT_PORTS_START( hncholms ) | |
| 1497 | static INPUT_PORTS_START( hncholms ) | |
| 1498 | 1498 | PORT_START_TAG("IN0") |
| 1499 | 1499 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 1500 | 1500 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 1538 | 1538 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 1539 | 1539 | INPUT_PORTS_END |
| 1540 | 1540 | |
| 1541 | INPUT_PORTS_START( cavelon ) | |
| 1541 | static INPUT_PORTS_START( cavelon ) | |
| 1542 | 1542 | PORT_START_TAG("IN0") |
| 1543 | 1543 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 1544 | 1544 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 1579 | 1579 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* protection check? */ |
| 1580 | 1580 | INPUT_PORTS_END |
| 1581 | 1581 | |
| 1582 | INPUT_PORTS_START( sfx ) | |
| 1582 | static INPUT_PORTS_START( sfx ) | |
| 1583 | 1583 | PORT_START_TAG("IN0") |
| 1584 | 1584 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 1585 | 1585 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) // "Fire" left |
| r1238 | r1239 | |
| 1620 | 1620 | INPUT_PORTS_END |
| 1621 | 1621 | |
| 1622 | 1622 | /* Same as 'mimonkey' (scobra.c driver) */ |
| 1623 | INPUT_PORTS_START( mimonscr ) | |
| 1623 | static INPUT_PORTS_START( mimonscr ) | |
| 1624 | 1624 | PORT_START_TAG("IN0") |
| 1625 | 1625 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 1626 | 1626 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 1664 | 1664 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1665 | 1665 | INPUT_PORTS_END |
| 1666 | 1666 | |
| 1667 | INPUT_PORTS_START( scorpion ) | |
| 1667 | static INPUT_PORTS_START( scorpion ) | |
| 1668 | 1668 | PORT_START_TAG("IN0") |
| 1669 | 1669 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 1670 | 1670 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 1708 | 1708 | PORT_DIPSETTING( 0x00, DEF_STR( Very_Hard ) ) |
| 1709 | 1709 | INPUT_PORTS_END |
| 1710 | 1710 | |
| 1711 | INPUT_PORTS_START( ad2083 ) | |
| 1711 | static INPUT_PORTS_START( ad2083 ) | |
| 1712 | 1712 | PORT_START |
| 1713 | 1713 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) |
| 1714 | 1714 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 136 | 136 | ADDRESS_MAP_END |
| 137 | 137 | |
| 138 | 138 | |
| 139 | INPUT_PORTS_START( mogura ) | |
| 139 | static INPUT_PORTS_START( mogura ) | |
| 140 | 140 | PORT_START_TAG("IN0") |
| 141 | 141 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 142 | 142 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 122 | 122 | ADDRESS_MAP_END |
| 123 | 123 | |
| 124 | 124 | |
| 125 | INPUT_PORTS_START( mole ) | |
| 125 | static INPUT_PORTS_START( mole ) | |
| 126 | 126 | PORT_START // 0x8d00 |
| 127 | 127 | PORT_DIPNAME( 0x01, 0x00, "Round Points" ) |
| 128 | 128 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 1213 | 1213 | |
| 1214 | 1214 | |
| 1215 | 1215 | |
| 1216 | INPUT_PORTS_START( astormbl ) | |
| 1216 | static INPUT_PORTS_START( astormbl ) | |
| 1217 | 1217 | PORT_START /* player 1 */ |
| 1218 | 1218 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1219 | 1219 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 1278 | 1278 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3) |
| 1279 | 1279 | INPUT_PORTS_END |
| 1280 | 1280 | |
| 1281 | INPUT_PORTS_START( mwalkbl ) | |
| 1281 | static INPUT_PORTS_START( mwalkbl ) | |
| 1282 | 1282 | PORT_START /* player 1 */ |
| 1283 | 1283 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1284 | 1284 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
|---|---|---|
| 1078 | 1078 | |
| 1079 | 1079 | /*****************************************************************************/ |
| 1080 | 1080 | |
| 1081 | INPUT_PORTS_START( taitojc ) | |
| 1081 | static INPUT_PORTS_START( taitojc ) | |
| 1082 | 1082 | PORT_START |
| 1083 | 1083 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_COIN4) |
| 1084 | 1084 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_COIN3) |
| r1238 | r1239 | |
| 1112 | 1112 | |
| 1113 | 1113 | INPUT_PORTS_END |
| 1114 | 1114 | |
| 1115 | INPUT_PORTS_START( dendeg ) | |
| 1115 | static INPUT_PORTS_START( dendeg ) | |
| 1116 | 1116 | PORT_START |
| 1117 | 1117 | PORT_BIT(0xe0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 1118 | 1118 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_COIN1) |
| r1238 | r1239 | |
| 1143 | 1143 | |
| 1144 | 1144 | INPUT_PORTS_END |
| 1145 | 1145 | |
| 1146 | INPUT_PORTS_START( landgear ) | |
| 1146 | static INPUT_PORTS_START( landgear ) | |
| 1147 | 1147 | PORT_START |
| 1148 | 1148 | PORT_BIT(0xe0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 1149 | 1149 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_COIN1) |
| r1238 | r1239 | |
| 1173 | 1173 | |
| 1174 | 1174 | INPUT_PORTS_END |
| 1175 | 1175 | |
| 1176 | INPUT_PORTS_START( sidebs ) | |
| 1176 | static INPUT_PORTS_START( sidebs ) | |
| 1177 | 1177 | PORT_START |
| 1178 | 1178 | PORT_BIT(0xe0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 1179 | 1179 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_COIN1) |
| r1238 | r1239 | |
|---|---|---|
| 202 | 202 | |
| 203 | 203 | /* Input Ports */ |
| 204 | 204 | |
| 205 | INPUT_PORTS_START( missb2 ) | |
| 205 | static INPUT_PORTS_START( missb2 ) | |
| 206 | 206 | PORT_START_TAG("DSW0") |
| 207 | 207 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Language ) ) |
| 208 | 208 | PORT_DIPSETTING( 0x00, DEF_STR( English ) ) |
| r1238 | r1239 | |
|---|---|---|
| 202 | 202 | AM_RANGE(0x0080, 0x07ff) AM_WRITE(MWA8_ROM) |
| 203 | 203 | ADDRESS_MAP_END |
| 204 | 204 | |
| 205 | INPUT_PORTS_START( pitnrun ) | |
| 205 | static INPUT_PORTS_START( pitnrun ) | |
| 206 | 206 | PORT_START_TAG("IN0") |
| 207 | 207 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 208 | 208 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| r1238 | r1239 | |
|---|---|---|
| 154 | 154 | AM_RANGE(0x0f0000, 0x0fffff) AM_RAM AM_BASE(&shared_ram)// at least fe000-ffff shared with mcu |
| 155 | 155 | ADDRESS_MAP_END |
| 156 | 156 | |
| 157 | INPUT_PORTS_START( ddealer ) | |
| 157 | static INPUT_PORTS_START( ddealer ) | |
| 158 | 158 | INPUT_PORTS_END |
| 159 | 159 | |
| 160 | 160 | static const gfx_layout charlayout = |
| r1238 | r1239 | |
|---|---|---|
| 273 | 273 | * |
| 274 | 274 | *************************************/ |
| 275 | 275 | |
| 276 | INPUT_PORTS_START( liberatr ) | |
| 276 | static INPUT_PORTS_START( liberatr ) | |
| 277 | 277 | PORT_START /* IN0 - $5000 */ |
| 278 | 278 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN3 ) |
| 279 | 279 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
|---|---|---|
| 431 | 431 | |
| 432 | 432 | |
| 433 | 433 | |
| 434 | INPUT_PORTS_START( tehkanwc ) | |
| 434 | static INPUT_PORTS_START( tehkanwc ) | |
| 435 | 435 | PORT_START /* DSW1 - Active LOW */ |
| 436 | 436 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) |
| 437 | 437 | PORT_DIPSETTING ( 0x01, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 549 | 549 | INPUT_PORTS_END |
| 550 | 550 | |
| 551 | 551 | |
| 552 | INPUT_PORTS_START( gridiron ) | |
| 552 | static INPUT_PORTS_START( gridiron ) | |
| 553 | 553 | PORT_START /* DSW1 - Active LOW */ |
| 554 | 554 | PORT_DIPNAME( 0x03, 0x03, "Start Credits (P1&P2)/Extra" ) |
| 555 | 555 | PORT_DIPSETTING ( 0x01, "1&1/200%" ) |
| r1238 | r1239 | |
| 651 | 651 | INPUT_PORTS_END |
| 652 | 652 | |
| 653 | 653 | |
| 654 | INPUT_PORTS_START( teedoff ) | |
| 654 | static INPUT_PORTS_START( teedoff ) | |
| 655 | 655 | PORT_START /* DSW1 - Active LOW */ |
| 656 | 656 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) |
| 657 | 657 | PORT_DIPSETTING ( 0x02, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 193 | 193 | |
| 194 | 194 | |
| 195 | 195 | |
| 196 | INPUT_PORTS_START( bionicc ) | |
| 196 | static INPUT_PORTS_START( bionicc ) | |
| 197 | 197 | PORT_START |
| 198 | 198 | PORT_BIT( 0x0fff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 199 | 199 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 66 | 66 | |
| 67 | 67 | |
| 68 | 68 | |
| 69 | INPUT_PORTS_START( citycon ) | |
| 69 | static INPUT_PORTS_START( citycon ) | |
| 70 | 70 | PORT_START_TAG("IN0") |
| 71 | 71 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 72 | 72 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 219 | 219 | * |
| 220 | 220 | *************************************/ |
| 221 | 221 | |
| 222 | INPUT_PORTS_START( suprridr ) | |
| 222 | static INPUT_PORTS_START( suprridr ) | |
| 223 | 223 | PORT_START /* IN0 */ |
| 224 | 224 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 225 | 225 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| r1238 | r1239 | |
|---|---|---|
| 396 | 396 | |
| 397 | 397 | |
| 398 | 398 | |
| 399 | INPUT_PORTS_START( spy ) | |
| 399 | static INPUT_PORTS_START( spy ) | |
| 400 | 400 | PORT_START |
| 401 | 401 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 402 | 402 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 540 | 540 | Samurai Aces / Sengoku Ace (Japan) |
| 541 | 541 | ***************************************************************************/ |
| 542 | 542 | |
| 543 | INPUT_PORTS_START( samuraia ) | |
| 543 | static INPUT_PORTS_START( samuraia ) | |
| 544 | 544 | |
| 545 | 545 | PORT_START // IN0 - c00000&1 |
| 546 | 546 | PSIKYO_PORT_PLAYER2 |
| r1238 | r1239 | |
| 659 | 659 | |
| 660 | 660 | INPUT_PORTS_END |
| 661 | 661 | |
| 662 | INPUT_PORTS_START( sngkace ) | |
| 662 | static INPUT_PORTS_START( sngkace ) | |
| 663 | 663 | |
| 664 | 664 | PORT_START // IN0 - c00000&1 |
| 665 | 665 | PSIKYO_PORT_PLAYER2 |
| r1238 | r1239 | |
| 784 | 784 | Battle K-Road |
| 785 | 785 | ***************************************************************************/ |
| 786 | 786 | |
| 787 | INPUT_PORTS_START( btlkroad ) | |
| 787 | static INPUT_PORTS_START( btlkroad ) | |
| 788 | 788 | |
| 789 | 789 | PORT_START // IN0 - c00000&1 |
| 790 | 790 | PSIKYO_PORT_PLAYER2 |
| r1238 | r1239 | |
| 911 | 911 | Gun Bird |
| 912 | 912 | ***************************************************************************/ |
| 913 | 913 | |
| 914 | INPUT_PORTS_START( gunbird ) | |
| 914 | static INPUT_PORTS_START( gunbird ) | |
| 915 | 915 | |
| 916 | 916 | PORT_START // IN0 - c00000&1 |
| 917 | 917 | PSIKYO_PORT_PLAYER2 |
| r1238 | r1239 | |
| 1021 | 1021 | |
| 1022 | 1022 | INPUT_PORTS_END |
| 1023 | 1023 | |
| 1024 | INPUT_PORTS_START( gunbirdj ) | |
| 1024 | static INPUT_PORTS_START( gunbirdj ) | |
| 1025 | 1025 | |
| 1026 | 1026 | PORT_START // IN0 - c00000&1 |
| 1027 | 1027 | PSIKYO_PORT_PLAYER2 |
| r1238 | r1239 | |
| 1114 | 1114 | Strikers 1945 |
| 1115 | 1115 | ***************************************************************************/ |
| 1116 | 1116 | |
| 1117 | INPUT_PORTS_START( s1945 ) | |
| 1117 | static INPUT_PORTS_START( s1945 ) | |
| 1118 | 1118 | |
| 1119 | 1119 | PORT_START // IN0 - c00000&1 |
| 1120 | 1120 | PSIKYO_PORT_PLAYER2 |
| r1238 | r1239 | |
| 1225 | 1225 | |
| 1226 | 1226 | INPUT_PORTS_END |
| 1227 | 1227 | |
| 1228 | INPUT_PORTS_START( s1945a ) | |
| 1228 | static INPUT_PORTS_START( s1945a ) | |
| 1229 | 1229 | |
| 1230 | 1230 | PORT_START // IN0 - c00000&1 |
| 1231 | 1231 | PSIKYO_PORT_PLAYER2 |
| r1238 | r1239 | |
| 1320 | 1320 | |
| 1321 | 1321 | INPUT_PORTS_END |
| 1322 | 1322 | |
| 1323 | INPUT_PORTS_START( s1945j ) | |
| 1323 | static INPUT_PORTS_START( s1945j ) | |
| 1324 | 1324 | |
| 1325 | 1325 | PORT_START // IN0 - c00000&1 |
| 1326 | 1326 | PSIKYO_PORT_PLAYER2 |
| r1238 | r1239 | |
| 1413 | 1413 | Tengai |
| 1414 | 1414 | ***************************************************************************/ |
| 1415 | 1415 | |
| 1416 | INPUT_PORTS_START( tengai ) | |
| 1416 | static INPUT_PORTS_START( tengai ) | |
| 1417 | 1417 | |
| 1418 | 1418 | PORT_START // IN0 - c00000&1 |
| 1419 | 1419 | PSIKYO_PORT_PLAYER2 |
| r1238 | r1239 | |
|---|---|---|
| 93 | 93 | AM_RANGE(0x03, 0x03) AM_WRITE(sound_control_w) |
| 94 | 94 | ADDRESS_MAP_END |
| 95 | 95 | |
| 96 | INPUT_PORTS_START( dynadice ) | |
| 96 | static INPUT_PORTS_START( dynadice ) | |
| 97 | 97 | |
| 98 | 98 | PORT_START |
| 99 | 99 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
|---|---|---|
| 395 | 395 | |
| 396 | 396 | |
| 397 | 397 | |
| 398 | INPUT_PORTS_START( bigtwin ) | |
| 398 | static INPUT_PORTS_START( bigtwin ) | |
| 399 | 399 | PORT_START_TAG("IN0") |
| 400 | 400 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 401 | 401 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 494 | 494 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 495 | 495 | INPUT_PORTS_END |
| 496 | 496 | |
| 497 | INPUT_PORTS_START( wbeachvl ) | |
| 497 | static INPUT_PORTS_START( wbeachvl ) | |
| 498 | 498 | PORT_START_TAG("IN0") |
| 499 | 499 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 500 | 500 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 546 | 546 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 ) |
| 547 | 547 | INPUT_PORTS_END |
| 548 | 548 | |
| 549 | INPUT_PORTS_START( excelsr ) | |
| 549 | static INPUT_PORTS_START( excelsr ) | |
| 550 | 550 | PORT_START_TAG("IN0") |
| 551 | 551 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 552 | 552 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 640 | 640 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 641 | 641 | INPUT_PORTS_END |
| 642 | 642 | |
| 643 | INPUT_PORTS_START( hotmind ) | |
| 643 | static INPUT_PORTS_START( hotmind ) | |
| 644 | 644 | PORT_START_TAG("IN0") |
| 645 | 645 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 646 | 646 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 739 | 739 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 740 | 740 | INPUT_PORTS_END |
| 741 | 741 | |
| 742 | INPUT_PORTS_START( hrdtimes ) | |
| 742 | static INPUT_PORTS_START( hrdtimes ) | |
| 743 | 743 | PORT_START_TAG("IN0") |
| 744 | 744 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 745 | 745 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 100 | 100 | ADDRESS_MAP_END |
| 101 | 101 | |
| 102 | 102 | |
| 103 | INPUT_PORTS_START( dacholer ) | |
| 103 | static INPUT_PORTS_START( dacholer ) | |
| 104 | 104 | PORT_START |
| 105 | 105 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) |
| 106 | 106 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) |
| r1238 | r1239 | |
| 188 | 188 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) |
| 189 | 189 | INPUT_PORTS_END |
| 190 | 190 | |
| 191 | INPUT_PORTS_START( kickboy ) | |
| 191 | static INPUT_PORTS_START( kickboy ) | |
| 192 | 192 | PORT_INCLUDE(dacholer) |
| 193 | 193 | |
| 194 | 194 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
|---|---|---|
| 315 | 315 | |
| 316 | 316 | ***************************************************************************/ |
| 317 | 317 | |
| 318 | INPUT_PORTS_START( multchmp ) | |
| 318 | static INPUT_PORTS_START( multchmp ) | |
| 319 | 319 | PORT_START_TAG("IN0") // $600002.w |
| 320 | 320 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 321 | 321 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 394 | 394 | INPUT_PORTS_END |
| 395 | 395 | |
| 396 | 396 | |
| 397 | INPUT_PORTS_START( hedpanic ) | |
| 397 | static INPUT_PORTS_START( hedpanic ) | |
| 398 | 398 | PORT_START_TAG("IN0") // $600002.w |
| 399 | 399 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 400 | 400 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 1514 | 1514 | PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1515 | 1515 | |
| 1516 | 1516 | |
| 1517 | INPUT_PORTS_START( model3 ) | |
| 1517 | static INPUT_PORTS_START( model3 ) | |
| 1518 | 1518 | MODEL3_SYSTEM_CONTROLS_1 |
| 1519 | 1519 | MODEL3_SYSTEM_CONTROLS_2 |
| 1520 | 1520 | |
| r1238 | r1239 | |
| 1535 | 1535 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) /* Dip switches */ |
| 1536 | 1536 | INPUT_PORTS_END |
| 1537 | 1537 | |
| 1538 | INPUT_PORTS_START( lostwsga ) | |
| 1538 | static INPUT_PORTS_START( lostwsga ) | |
| 1539 | 1539 | MODEL3_SYSTEM_CONTROLS_1 |
| 1540 | 1540 | MODEL3_SYSTEM_CONTROLS_2 |
| 1541 | 1541 | |
| r1238 | r1239 | |
| 1565 | 1565 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 1566 | 1566 | INPUT_PORTS_END |
| 1567 | 1567 | |
| 1568 | INPUT_PORTS_START( scud ) | |
| 1568 | static INPUT_PORTS_START( scud ) | |
| 1569 | 1569 | MODEL3_SYSTEM_CONTROLS_1 |
| 1570 | 1570 | MODEL3_SYSTEM_CONTROLS_2 |
| 1571 | 1571 | |
| r1238 | r1239 | |
| 1595 | 1595 | PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(30) PORT_KEYDELTA(10) PORT_PLAYER(1) |
| 1596 | 1596 | INPUT_PORTS_END |
| 1597 | 1597 | |
| 1598 | INPUT_PORTS_START( bass ) | |
| 1598 | static INPUT_PORTS_START( bass ) | |
| 1599 | 1599 | MODEL3_SYSTEM_CONTROLS_1 |
| 1600 | 1600 | MODEL3_SYSTEM_CONTROLS_2 |
| 1601 | 1601 | |
| r1238 | r1239 | |
| 1629 | 1629 | PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_SENSITIVITY(30) PORT_KEYDELTA(10) PORT_PLAYER(1) |
| 1630 | 1630 | INPUT_PORTS_END |
| 1631 | 1631 | |
| 1632 | INPUT_PORTS_START( harley ) | |
| 1632 | static INPUT_PORTS_START( harley ) | |
| 1633 | 1633 | MODEL3_SYSTEM_CONTROLS_1 |
| 1634 | 1634 | MODEL3_SYSTEM_CONTROLS_2 |
| 1635 | 1635 | |
| r1238 | r1239 | |
| 1659 | 1659 | PORT_BIT( 0xff, 0x00, IPT_PEDAL3 ) PORT_SENSITIVITY(30) PORT_KEYDELTA(10) PORT_PLAYER(1) |
| 1660 | 1660 | INPUT_PORTS_END |
| 1661 | 1661 | |
| 1662 | INPUT_PORTS_START( daytona2 ) | |
| 1662 | static INPUT_PORTS_START( daytona2 ) | |
| 1663 | 1663 | MODEL3_SYSTEM_CONTROLS_1 |
| 1664 | 1664 | MODEL3_SYSTEM_CONTROLS_2 |
| 1665 | 1665 | |
| r1238 | r1239 | |
| 1689 | 1689 | PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(30) PORT_KEYDELTA(10) PORT_PLAYER(1) |
| 1690 | 1690 | INPUT_PORTS_END |
| 1691 | 1691 | |
| 1692 | INPUT_PORTS_START( swtrilgy ) | |
| 1692 | static INPUT_PORTS_START( swtrilgy ) | |
| 1693 | 1693 | MODEL3_SYSTEM_CONTROLS_1 |
| 1694 | 1694 | MODEL3_SYSTEM_CONTROLS_2 |
| 1695 | 1695 | |
| r1238 | r1239 | |
| 1712 | 1712 | |
| 1713 | 1713 | INPUT_PORTS_END |
| 1714 | 1714 | |
| 1715 | INPUT_PORTS_START( eca ) | |
| 1715 | static INPUT_PORTS_START( eca ) | |
| 1716 | 1716 | MODEL3_SYSTEM_CONTROLS_1 |
| 1717 | 1717 | MODEL3_SYSTEM_CONTROLS_2 |
| 1718 | 1718 | |
| r1238 | r1239 | |
| 1738 | 1738 | PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(30) PORT_KEYDELTA(10) PORT_PLAYER(1) |
| 1739 | 1739 | INPUT_PORTS_END |
| 1740 | 1740 | |
| 1741 | INPUT_PORTS_START( skichamp ) | |
| 1741 | static INPUT_PORTS_START( skichamp ) | |
| 1742 | 1742 | PORT_START_TAG("IN0") \ |
| 1743 | 1743 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1744 | 1744 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 608 | 608 | AM_RANGE(0xc10000, 0xc1ffff) AM_READWRITE(z80_ram_r, z80_ram_w) /* Z80 Program */ |
| 609 | 609 | ADDRESS_MAP_END |
| 610 | 610 | |
| 611 | UINT16*olds_sharedprotram; | |
| 611 | static UINT16 *olds_sharedprotram; | |
| 612 | 612 | |
| 613 | 613 | static ADDRESS_MAP_START( olds_mem, ADDRESS_SPACE_PROGRAM, 16) |
| 614 | 614 | AM_RANGE(0x000000, 0x01ffff) AM_ROM /* BIOS ROM */ |
| r1238 | r1239 | |
| 924 | 924 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) // "incorrect version" error |
| 925 | 925 | INPUT_PORTS_END |
| 926 | 926 | |
| 927 | INPUT_PORTS_START( sango ) | |
| 927 | static INPUT_PORTS_START( sango ) | |
| 928 | 928 | PORT_START /* DSW */ |
| 929 | 929 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| 930 | 930 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1014 | 1014 | PORT_DIPSETTING( 0x0005, DEF_STR( World ) ) |
| 1015 | 1015 | INPUT_PORTS_END |
| 1016 | 1016 | |
| 1017 | INPUT_PORTS_START( olds ) | |
| 1017 | static INPUT_PORTS_START( olds ) | |
| 1018 | 1018 | PORT_START /* DSW */ |
| 1019 | 1019 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| 1020 | 1020 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1105 | 1105 | PORT_DIPSETTING( 0x0006, DEF_STR( World ) ) |
| 1106 | 1106 | INPUT_PORTS_END |
| 1107 | 1107 | |
| 1108 | INPUT_PORTS_START( killbld ) | |
| 1108 | static INPUT_PORTS_START( killbld ) | |
| 1109 | 1109 | PORT_START /* DSW */ |
| 1110 | 1110 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| 1111 | 1111 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1202 | 1202 | PORT_DIPSETTING( 0x0021, DEF_STR( World ) ) |
| 1203 | 1203 | INPUT_PORTS_END |
| 1204 | 1204 | |
| 1205 | INPUT_PORTS_START( photoy2k ) | |
| 1205 | static INPUT_PORTS_START( photoy2k ) | |
| 1206 | 1206 | PORT_START /* DSW */ |
| 1207 | 1207 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| 1208 | 1208 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1292 | 1292 | PORT_DIPSETTING( 0x0005, "Hong Kong" ) |
| 1293 | 1293 | INPUT_PORTS_END |
| 1294 | 1294 | |
| 1295 | INPUT_PORTS_START( ddp2 ) | |
| 1295 | static INPUT_PORTS_START( ddp2 ) | |
| 1296 | 1296 | PORT_START /* P1 */ |
| 1297 | 1297 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| 1298 | 1298 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 2215 | 2215 | } |
| 2216 | 2216 | |
| 2217 | 2217 | |
| 2218 | UINT16 olds_bs,olds_cmd3; | |
| 2218 | static UINT16 olds_bs,olds_cmd3; | |
| 2219 | 2219 | |
| 2220 | 2220 | |
| 2221 | 2221 | //UINT16 olds_r16(UINT32 addr) |
| 2222 | READ16_HANDLER( olds_r16 ) | |
| 2222 | static READ16_HANDLER( olds_r16 ) | |
| 2223 | 2223 | { |
| 2224 | 2224 | // int offset=addr&0xf; |
| 2225 | 2225 | UINT16 res ; |
| r1238 | r1239 | |
| 2245 | 2245 | } |
| 2246 | 2246 | |
| 2247 | 2247 | //void olds_w16(UINT32 addr,UINT16 data) |
| 2248 | WRITE16_HANDLER( olds_w16 ) | |
| 2248 | static WRITE16_HANDLER( olds_w16 ) | |
| 2249 | 2249 | { |
| 2250 | 2250 | // int offset=addr&0xf; |
| 2251 | 2251 |
| r1238 | r1239 | |
|---|---|---|
| 170 | 170 | ADDRESS_MAP_END |
| 171 | 171 | |
| 172 | 172 | |
| 173 | INPUT_PORTS_START( iqblock ) | |
| 173 | static INPUT_PORTS_START( iqblock ) | |
| 174 | 174 | PORT_START |
| 175 | 175 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 176 | 176 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
|---|---|---|
| 63 | 63 | |
| 64 | 64 | /****************************************************************************/ |
| 65 | 65 | |
| 66 | INPUT_PORTS_START( ikki ) | |
| 66 | static INPUT_PORTS_START( ikki ) | |
| 67 | 67 | PORT_START /* dsw1 */ |
| 68 | 68 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives ) ) |
| 69 | 69 | PORT_DIPSETTING( 0x00, "3" ) |
| r1238 | r1239 | |
|---|---|---|
| 292 | 292 | * |
| 293 | 293 | *************************************/ |
| 294 | 294 | |
| 295 | INPUT_PORTS_START( capbowl ) | |
| 295 | static INPUT_PORTS_START( capbowl ) | |
| 296 | 296 | PORT_START /* IN0 */ |
| 297 | 297 | /* low 4 bits are for the trackball */ |
| 298 | 298 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| r1238 | r1239 | |
|---|---|---|
| 661 | 661 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 662 | 662 | |
| 663 | 663 | |
| 664 | INPUT_PORTS_START( darius ) | |
| 664 | static INPUT_PORTS_START( darius ) | |
| 665 | 665 | DARIUS_PLAYERS_INPUT( 1 ) |
| 666 | 666 | |
| 667 | 667 | DARIUS_PLAYERS_INPUT( 2 ) |
| r1238 | r1239 | |
| 699 | 699 | PORT_DIPSETTING( 0x8000, DEF_STR( Yes ) ) |
| 700 | 700 | INPUT_PORTS_END |
| 701 | 701 | |
| 702 | INPUT_PORTS_START( dariuse ) | |
| 702 | static INPUT_PORTS_START( dariuse ) | |
| 703 | 703 | DARIUS_PLAYERS_INPUT( 1 ) |
| 704 | 704 | |
| 705 | 705 | DARIUS_PLAYERS_INPUT( 2 ) |
| r1238 | r1239 | |
| 737 | 737 | PORT_DIPSETTING( 0x8000, DEF_STR( Yes ) ) |
| 738 | 738 | INPUT_PORTS_END |
| 739 | 739 | |
| 740 | INPUT_PORTS_START( dariusj ) | |
| 740 | static INPUT_PORTS_START( dariusj ) | |
| 741 | 741 | DARIUS_PLAYERS_INPUT( 1 ) |
| 742 | 742 | |
| 743 | 743 | DARIUS_PLAYERS_INPUT( 2 ) |
| r1238 | r1239 | |
|---|---|---|
| 137 | 137 | AM_RANGE(0xfe, 0xff) AM_WRITENOP |
| 138 | 138 | ADDRESS_MAP_END |
| 139 | 139 | |
| 140 | INPUT_PORTS_START( ssingles ) | |
| 140 | static INPUT_PORTS_START( ssingles ) | |
| 141 | 141 | PORT_START_TAG("IN0") |
| 142 | 142 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 143 | 143 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) //must be LOW |
| r1238 | r1239 | |
|---|---|---|
| 427 | 427 | * |
| 428 | 428 | *************************************/ |
| 429 | 429 | |
| 430 | INPUT_PORTS_START( kinst ) | |
| 430 | static INPUT_PORTS_START( kinst ) | |
| 431 | 431 | PORT_START |
| 432 | 432 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 433 | 433 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 531 | 531 | INPUT_PORTS_END |
| 532 | 532 | |
| 533 | 533 | |
| 534 | INPUT_PORTS_START( kinst2 ) | |
| 534 | static INPUT_PORTS_START( kinst2 ) | |
| 535 | 535 | PORT_START |
| 536 | 536 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 537 | 537 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 169 | 169 | ADDRESS_MAP_END |
| 170 | 170 | |
| 171 | 171 | |
| 172 | INPUT_PORTS_START( cbasebal ) | |
| 172 | static INPUT_PORTS_START( cbasebal ) | |
| 173 | 173 | PORT_START |
| 174 | 174 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 175 | 175 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON3 ) |
| r1238 | r1239 | |
|---|---|---|
| 377 | 377 | * |
| 378 | 378 | *************************************/ |
| 379 | 379 | |
| 380 | INPUT_PORTS_START( beathead ) | |
| 380 | static INPUT_PORTS_START( beathead ) | |
| 381 | 381 | PORT_START |
| 382 | 382 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 383 | 383 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| r1238 | r1239 | |
|---|---|---|
| 244 | 244 | * |
| 245 | 245 | *************************************/ |
| 246 | 246 | |
| 247 | INPUT_PORTS_START( renju ) | |
| 247 | static INPUT_PORTS_START( renju ) | |
| 248 | 248 | PORT_INCLUDE( st0016 ) |
| 249 | 249 | |
| 250 | 250 | PORT_MODIFY("IN2") |
| r1238 | r1239 | |
| 279 | 279 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) |
| 280 | 280 | INPUT_PORTS_END |
| 281 | 281 | |
| 282 | INPUT_PORTS_START( koikois ) | |
| 282 | static INPUT_PORTS_START( koikois ) | |
| 283 | 283 | PORT_INCLUDE( st0016 ) |
| 284 | 284 | |
| 285 | 285 | |
| r1238 | r1239 | |
| 318 | 318 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) |
| 319 | 319 | INPUT_PORTS_END |
| 320 | 320 | |
| 321 | INPUT_PORTS_START( nratechu ) | |
| 321 | static INPUT_PORTS_START( nratechu ) | |
| 322 | 322 | PORT_INCLUDE( st0016 ) |
| 323 | 323 | |
| 324 | 324 | PORT_MODIFY("DSW1") /* Dip switch A */ |
| r1238 | r1239 | |
| 353 | 353 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 354 | 354 | INPUT_PORTS_END |
| 355 | 355 | |
| 356 | INPUT_PORTS_START( mayjisn2 ) | |
| 356 | static INPUT_PORTS_START( mayjisn2 ) | |
| 357 | 357 | PORT_INCLUDE( st0016 ) |
| 358 | 358 | |
| 359 | 359 | PORT_MODIFY("DSW1") /* Dip switch A */ |
| r1238 | r1239 | |
|---|---|---|
| 100 | 100 | * |
| 101 | 101 | *************************************/ |
| 102 | 102 | |
| 103 | INPUT_PORTS_START( cchasm ) | |
| 103 | static INPUT_PORTS_START( cchasm ) | |
| 104 | 104 | PORT_START /* DSW */ |
| 105 | 105 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Lives ) ) |
| 106 | 106 | PORT_DIPSETTING( 0x01, "3" ) |
| r1238 | r1239 | |
|---|---|---|
| 100 | 100 | |
| 101 | 101 | |
| 102 | 102 | |
| 103 | INPUT_PORTS_START( sbasketb ) | |
| 103 | static INPUT_PORTS_START( sbasketb ) | |
| 104 | 104 | PORT_START /* IN0 */ |
| 105 | 105 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 106 | 106 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 154 | 154 | |
| 155 | 155 | /******************************************************************************/ |
| 156 | 156 | |
| 157 | INPUT_PORTS_START( funkyjet ) | |
| 157 | static INPUT_PORTS_START( funkyjet ) | |
| 158 | 158 | PORT_START /* Player 1 controls */ |
| 159 | 159 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 160 | 160 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 232 | 232 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 233 | 233 | INPUT_PORTS_END |
| 234 | 234 | |
| 235 | INPUT_PORTS_START( funkyjej ) | |
| 235 | static INPUT_PORTS_START( funkyjej ) | |
| 236 | 236 | PORT_INCLUDE(funkyjet) |
| 237 | 237 | |
| 238 | 238 | PORT_MODIFY("DSWB") |
| r1238 | r1239 | |
| 242 | 242 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 243 | 243 | INPUT_PORTS_END |
| 244 | 244 | |
| 245 | INPUT_PORTS_START( sotsugyo ) | |
| 245 | static INPUT_PORTS_START( sotsugyo ) | |
| 246 | 246 | PORT_START /* Player 1 controls */ |
| 247 | 247 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 248 | 248 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 178 | 178 | AM_RANGE(0xa007, 0xa007) AM_WRITE(MWA8_NOP) |
| 179 | 179 | ADDRESS_MAP_END |
| 180 | 180 | |
| 181 | INPUT_PORTS_START( skyarmy ) | |
| 181 | static INPUT_PORTS_START( skyarmy ) | |
| 182 | 182 | PORT_START |
| 183 | 183 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) |
| 184 | 184 | PORT_DIPSETTING( 0x00, "2" ) |
| r1238 | r1239 | |
|---|---|---|
| 134 | 134 | AM_RANGE(0xa010, 0xa010) AM_WRITE(MWA8_NOP) |
| 135 | 135 | ADDRESS_MAP_END |
| 136 | 136 | |
| 137 | INPUT_PORTS_START( ksayakyu ) | |
| 137 | static INPUT_PORTS_START( ksayakyu ) | |
| 138 | 138 | PORT_START |
| 139 | 139 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) |
| 140 | 140 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) |
| r1238 | r1239 | |
|---|---|---|
| 366 | 366 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_TILT ) |
| 367 | 367 | |
| 368 | 368 | |
| 369 | INPUT_PORTS_START( qix ) | |
| 369 | static INPUT_PORTS_START( qix ) | |
| 370 | 370 | PORT_START /* PIA 0 Port A (PLAYER 1) */ |
| 371 | 371 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 372 | 372 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| r1238 | r1239 | |
| 397 | 397 | INPUT_PORTS_END |
| 398 | 398 | |
| 399 | 399 | |
| 400 | INPUT_PORTS_START( sdungeon ) | |
| 400 | static INPUT_PORTS_START( sdungeon ) | |
| 401 | 401 | PORT_START /* PIA 0 Port A (PLAYER 1) */ |
| 402 | 402 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_8WAY |
| 403 | 403 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT ) PORT_8WAY |
| r1238 | r1239 | |
| 431 | 431 | INPUT_PORTS_END |
| 432 | 432 | |
| 433 | 433 | |
| 434 | INPUT_PORTS_START( elecyoyo ) | |
| 434 | static INPUT_PORTS_START( elecyoyo ) | |
| 435 | 435 | PORT_START /* PIA 0 Port A (PLAYER 1) */ |
| 436 | 436 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 437 | 437 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| r1238 | r1239 | |
| 460 | 460 | INPUT_PORTS_END |
| 461 | 461 | |
| 462 | 462 | |
| 463 | INPUT_PORTS_START( kram ) | |
| 463 | static INPUT_PORTS_START( kram ) | |
| 464 | 464 | PORT_START /* PIA 0 Port A (PLAYER 1) */ |
| 465 | 465 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 466 | 466 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| r1238 | r1239 | |
| 491 | 491 | INPUT_PORTS_END |
| 492 | 492 | |
| 493 | 493 | |
| 494 | INPUT_PORTS_START( zookeep ) | |
| 494 | static INPUT_PORTS_START( zookeep ) | |
| 495 | 495 | PORT_START /* PIA 0 Port A (PLAYER 1) */ |
| 496 | 496 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 497 | 497 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| r1238 | r1239 | |
| 522 | 522 | INPUT_PORTS_END |
| 523 | 523 | |
| 524 | 524 | |
| 525 | INPUT_PORTS_START( slither ) | |
| 525 | static INPUT_PORTS_START( slither ) | |
| 526 | 526 | PORT_START /* PIA 0 Port A (PLAYER 1) */ |
| 527 | 527 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 528 | 528 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 559 | 559 | INPUT_PORTS_END |
| 560 | 560 | |
| 561 | 561 | |
| 562 | INPUT_PORTS_START( complexx ) | |
| 562 | static INPUT_PORTS_START( complexx ) | |
| 563 | 563 | PORT_START /* PIA 0 Port A (Left Stick) */ |
| 564 | 564 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_8WAY |
| 565 | 565 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 107 | 107 | AM_RANGE(0x09, 0x09) AM_READ(YM2203_read_port_0_r) AM_WRITE(YM2203_write_port_0_w) |
| 108 | 108 | ADDRESS_MAP_END |
| 109 | 109 | |
| 110 | INPUT_PORTS_START( suprgolf ) | |
| 110 | static INPUT_PORTS_START( suprgolf ) | |
| 111 | 111 | PORT_START /* PLAY1 */ |
| 112 | 112 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 113 | 113 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 423 | 423 | ADDRESS_MAP_END |
| 424 | 424 | |
| 425 | 425 | |
| 426 | INPUT_PORTS_START( xexex ) | |
| 426 | static INPUT_PORTS_START( xexex ) | |
| 427 | 427 | PORT_START |
| 428 | 428 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 429 | 429 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 159 | 159 | ADDRESS_MAP_END |
| 160 | 160 | |
| 161 | 161 | |
| 162 | INPUT_PORTS_START( wallc ) | |
| 162 | static INPUT_PORTS_START( wallc ) | |
| 163 | 163 | PORT_START /* DSW - read from b000 */ |
| 164 | 164 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) |
| 165 | 165 | PORT_DIPSETTING( 0x03, "5" ) |
| r1238 | r1239 | |
|---|---|---|
| 297 | 297 | AM_RANGE(0x0f, 0x0f) AM_WRITE(marinedt_pf_w) |
| 298 | 298 | ADDRESS_MAP_END |
| 299 | 299 | |
| 300 | INPUT_PORTS_START( marinedt ) | |
| 300 | static INPUT_PORTS_START( marinedt ) | |
| 301 | 301 | PORT_START /* IN0 */ |
| 302 | 302 | PORT_DIPNAME( 0x0f, 0x00, DEF_STR( Coin_A ) ) |
| 303 | 303 | PORT_DIPSETTING( 0x0f, DEF_STR( 9C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 106 | 106 | |
| 107 | 107 | |
| 108 | 108 | |
| 109 | INPUT_PORTS_START( ironhors ) | |
| 109 | static INPUT_PORTS_START( ironhors ) | |
| 110 | 110 | PORT_START /* IN0 */ |
| 111 | 111 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 112 | 112 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 207 | 207 | PORT_BIT( 0xf8, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 208 | 208 | INPUT_PORTS_END |
| 209 | 209 | |
| 210 | INPUT_PORTS_START( dairesya ) | |
| 210 | static INPUT_PORTS_START( dairesya ) | |
| 211 | 211 | PORT_START /* IN0 */ |
| 212 | 212 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 213 | 213 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 99 | 99 | |
| 100 | 100 | /*** INPUT PORTS *************************************************************/ |
| 101 | 101 | |
| 102 | INPUT_PORTS_START( battlex ) | |
| 102 | static INPUT_PORTS_START( battlex ) | |
| 103 | 103 | PORT_START /* IN0 */ |
| 104 | 104 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) ) |
| 105 | 105 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 156 | 156 | * |
| 157 | 157 | *************************************/ |
| 158 | 158 | |
| 159 | INPUT_PORTS_START( skullxbo ) | |
| 159 | static INPUT_PORTS_START( skullxbo ) | |
| 160 | 160 | PORT_START /* ff5800 */ |
| 161 | 161 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 162 | 162 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 151 | 151 | return 0; |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | INPUT_PORTS_START( skattv ) | |
| 154 | static INPUT_PORTS_START( skattv ) | |
| 155 | 155 | |
| 156 | 156 | INPUT_PORTS_END |
| 157 | 157 |
| r1238 | r1239 | |
|---|---|---|
| 320 | 320 | } |
| 321 | 321 | } |
| 322 | 322 | |
| 323 | int find_data(int offset) | |
| 323 | static int find_data(int offset) | |
| 324 | 324 | { |
| 325 | 325 | int idx=0; |
| 326 | 326 | while(gfxlookup[idx][0]>=0) |
| r1238 | r1239 | |
| 451 | 451 | return 0; |
| 452 | 452 | } |
| 453 | 453 | |
| 454 | INPUT_PORTS_START( sliver ) | |
| 454 | static INPUT_PORTS_START( sliver ) | |
| 455 | 455 | |
| 456 | 456 | PORT_START |
| 457 | 457 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 408 | 408 | MDRV_SOUND_ROUTE(1, "right", 1.0) |
| 409 | 409 | MACHINE_DRIVER_END |
| 410 | 410 | |
| 411 | INPUT_PORTS_START( konamigq ) | |
| 411 | static INPUT_PORTS_START( konamigq ) | |
| 412 | 412 | /* IN 0 */ |
| 413 | 413 | PORT_START |
| 414 | 414 | PORT_BIT( 0x01ff, 0x011d, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_MINMAX( 0x007d, 0x01bc ) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 141 | 141 | so that ROMs couldn't be simply swapped. Each game checks these bits and halts |
| 142 | 142 | the processor if an unexpected value is read. */ |
| 143 | 143 | |
| 144 | INPUT_PORTS_START( megadon ) | |
| 144 | static INPUT_PORTS_START( megadon ) | |
| 145 | 145 | PORT_START_TAG("IN0") |
| 146 | 146 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Coinage ) ) |
| 147 | 147 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| r1238 | r1239 | |
| 189 | 189 | INPUT_PORTS_END |
| 190 | 190 | |
| 191 | 191 | |
| 192 | INPUT_PORTS_START( suprglob ) | |
| 192 | static INPUT_PORTS_START( suprglob ) | |
| 193 | 193 | PORT_START_TAG("IN0") |
| 194 | 194 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Coinage ) ) |
| 195 | 195 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| r1238 | r1239 | |
| 240 | 240 | INPUT_PORTS_END |
| 241 | 241 | |
| 242 | 242 | |
| 243 | INPUT_PORTS_START( igmo ) | |
| 243 | static INPUT_PORTS_START( igmo ) | |
| 244 | 244 | PORT_START_TAG("IN0") |
| 245 | 245 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Coinage ) ) |
| 246 | 246 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| r1238 | r1239 | |
| 289 | 289 | INPUT_PORTS_END |
| 290 | 290 | |
| 291 | 291 | |
| 292 | INPUT_PORTS_START( dealer ) | |
| 292 | static INPUT_PORTS_START( dealer ) | |
| 293 | 293 | PORT_START_TAG("IN0") |
| 294 | 294 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) |
| 295 | 295 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 347 | 347 | ROM_LOAD( "vd_l4", 0xe000, 0x2000, CRC(423735a5) SHA1(4ee93f93cd2b08560e148525e08880d64c64fcd2) ) |
| 348 | 348 | ROM_END |
| 349 | 349 | |
| 350 | INPUT_PORTS_START( mrflea ) | |
| 350 | static INPUT_PORTS_START( mrflea ) | |
| 351 | 351 | PORT_START |
| 352 | 352 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY |
| 353 | 353 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| r1238 | r1239 | |
|---|---|---|
| 347 | 347 | |
| 348 | 348 | int cps3_use_fastboot; |
| 349 | 349 | |
| 350 | UINT32* decrypted_bios; | |
| 351 | UINT32* decrypted_gamerom; | |
| 352 | UINT32 cram_gfxflash_bank; | |
| 350 | static UINT32* decrypted_bios; | |
| 351 | static UINT32* decrypted_gamerom; | |
| 352 | static UINT32 cram_gfxflash_bank; | |
| 353 | 353 | UINT32* cps3_nops; |
| 354 | 354 | |
| 355 | UINT32*tilemap20_regs_base; | |
| 356 | UINT32*tilemap30_regs_base; | |
| 357 | UINT32*tilemap40_regs_base; | |
| 358 | UINT32*tilemap50_regs_base; | |
| 355 | static UINT32* tilemap20_regs_base; | |
| 356 | static UINT32* tilemap30_regs_base; | |
| 357 | static UINT32* tilemap40_regs_base; | |
| 358 | static UINT32* tilemap50_regs_base; | |
| 359 | 359 | |
| 360 | 360 | UINT32* cps3_0xc0000000_ram; |
| 361 | 361 | UINT32* cps3_0xc0000000_ram_decrypted; |
| r1238 | r1239 | |
| 849 | 849 | if (colournum<0x10000) palette_set_color(Machine,colournum,cps3_mame_colours[colournum]/* MAKE_RGB(r<<3,g<<3,b<<3)*/);//cps3_mame_colours[colournum]); |
| 850 | 850 | } |
| 851 | 851 | |
| 852 | void decode_ssram(void) | |
| 852 | #ifdef UNUSED_FUNCTION | |
| 853 | static void decode_ssram(void) | |
| 853 | 854 | { |
| 854 | 855 | if (cps3_ss_ram_dirty) |
| 855 | 856 | { |
| r1238 | r1239 | |
| 869 | 870 | return; |
| 870 | 871 | } |
| 871 | 872 | |
| 872 | void decode_charram(void) | |
| 873 | static void decode_charram(void) | |
| 873 | 874 | { |
| 874 | 875 | if (cps3_char_ram_is_dirty) |
| 875 | 876 | { |
| r1238 | r1239 | |
| 888 | 889 | |
| 889 | 890 | return; |
| 890 | 891 | } |
| 892 | #endif | |
| 891 | 893 | |
| 892 | 894 | VIDEO_START(cps3) |
| 893 | 895 | { |
| r1238 | r1239 | |
| 1425 | 1427 | return ~0; |
| 1426 | 1428 | } |
| 1427 | 1429 | |
| 1428 | UINT32 cram_bank = 0; | |
| 1430 | static UINT32 cram_bank = 0; | |
| 1429 | 1431 | |
| 1430 | WRITE32_HANDLER( cram_bank_w ) | |
| 1432 | static WRITE32_HANDLER( cram_bank_w ) | |
| 1431 | 1433 | { |
| 1432 | 1434 | if (ACCESSING_LSB) |
| 1433 | 1435 | { |
| r1238 | r1239 | |
| 1456 | 1458 | } |
| 1457 | 1459 | } |
| 1458 | 1460 | |
| 1459 | READ32_HANDLER( cram_data_r ) | |
| 1461 | static READ32_HANDLER( cram_data_r ) | |
| 1460 | 1462 | { |
| 1461 | 1463 | UINT32 fulloffset = (((cram_bank&0x7)*0x100000)/4) + offset; |
| 1462 | 1464 | |
| 1463 | 1465 | return LITTLE_ENDIANIZE_INT32(cps3_char_ram[fulloffset]); |
| 1464 | 1466 | } |
| 1465 | 1467 | |
| 1466 | WRITE32_HANDLER( cram_data_w ) | |
| 1468 | static WRITE32_HANDLER( cram_data_w ) | |
| 1467 | 1469 | { |
| 1468 | 1470 | UINT32 fulloffset = (((cram_bank&0x7)*0x100000)/4) + offset; |
| 1469 | 1471 | mem_mask = LITTLE_ENDIANIZE_INT32(mem_mask); |
| r1238 | r1239 | |
| 1767 | 1769 | cps3_flashmain_w(4, offset,data,mem_mask); |
| 1768 | 1770 | } |
| 1769 | 1771 | |
| 1770 | WRITE32_HANDLER( cram_gfxflash_bank_w ) | |
| 1772 | static WRITE32_HANDLER( cram_gfxflash_bank_w ) | |
| 1771 | 1773 | { |
| 1772 | 1774 | if (ACCESSING_MSB32) |
| 1773 | 1775 | { |
| r1238 | r1239 | |
| 1965 | 1967 | } |
| 1966 | 1968 | } |
| 1967 | 1969 | |
| 1968 | UINT32*tilemap20_regs_base; | |
| 1969 | UINT32*tilemap30_regs_base; | |
| 1970 | UINT32*tilemap40_regs_base; | |
| 1971 | UINT32*tilemap50_regs_base; | |
| 1970 | static UINT32* tilemap20_regs_base; | |
| 1971 | static UINT32* tilemap30_regs_base; | |
| 1972 | static UINT32* tilemap40_regs_base; | |
| 1973 | static UINT32* tilemap50_regs_base; | |
| 1972 | 1974 | |
| 1973 | 1975 | //<ElSemi> +0 X +2 Y +4 unknown +6 enable (&0x8000) +8 low part tilemap base, high part linescroll base |
| 1974 | 1976 | //<ElSemi> (a word each) |
| 1975 | 1977 | |
| 1976 | UINT32 paldma_source; | |
| 1977 | UINT32 paldma_realsource; | |
| 1978 | UINT32 paldma_dest; | |
| 1979 | UINT32 paldma_fade; | |
| 1980 | UINT32 paldma_other2; | |
| 1981 | UINT32 paldma_length; | |
| 1978 | static UINT32 paldma_source; | |
| 1979 | static UINT32 paldma_realsource; | |
| 1980 | static UINT32 paldma_dest; | |
| 1981 | static UINT32 paldma_fade; | |
| 1982 | static UINT32 paldma_other2; | |
| 1983 | static UINT32 paldma_length; | |
| 1982 | 1984 | |
| 1983 | 1985 | WRITE32_HANDLER( cps3_palettedma_w ) |
| 1984 | 1986 | { |
| r1238 | r1239 | |
| 2030 | 2032 | |
| 2031 | 2033 | } |
| 2032 | 2034 | |
| 2033 | UINT32 chardma_source; | |
| 2034 | UINT32 chardma_other; | |
| 2035 | static UINT32 chardma_source; | |
| 2036 | static UINT32 chardma_other; | |
| 2035 | 2037 | |
| 2036 | UINT8* current_table; | |
| 2037 | UINT32 current_table_address = -1; | |
| 2038 | //static UINT8* current_table; | |
| 2039 | static UINT32 current_table_address = -1; | |
| 2038 | 2040 | |
| 2039 | 2041 | int cps3_rle_length = 0; |
| 2040 | 2042 | |
| 2041 | int last_normal_byte = 0; | |
| 2043 | static int last_normal_byte = 0; | |
| 2042 | 2044 | |
| 2043 | 2045 | |
| 2044 | UINT32 process_byte( UINT8 real_byte, UINT32 destination, int max_length ) | |
| 2046 | static UINT32 process_byte( UINT8 real_byte, UINT32 destination, int max_length ) | |
| 2045 | 2047 | { |
| 2046 | 2048 | UINT8* dest = (UINT8*)cps3_char_ram; |
| 2047 | 2049 | |
| r1238 | r1239 | |
| 2138 | 2140 | } |
| 2139 | 2141 | } |
| 2140 | 2142 | |
| 2141 | unsigned short lastb; | |
| 2142 | unsigned short lastb2; | |
| 2143 | UINT32 ProcessByte8(UINT8 b,UINT32 dst_offset) | |
| 2143 | static unsigned short lastb; | |
| 2144 | static unsigned short lastb2; | |
| 2145 | static UINT32 ProcessByte8(UINT8 b,UINT32 dst_offset) | |
| 2144 | 2146 | { |
| 2145 | 2147 | UINT8* destRAM = (UINT8*)cps3_char_ram; |
| 2146 | 2148 | int l=0; |
| r1238 | r1239 | |
| 2420 | 2422 | |
| 2421 | 2423 | |
| 2422 | 2424 | |
| 2423 | INPUT_PORTS_START( cps3 ) | |
| 2425 | static INPUT_PORTS_START( cps3 ) | |
| 2424 | 2426 | PORT_START |
| 2425 | 2427 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 2426 | 2428 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 2473 | 2475 | } |
| 2474 | 2476 | |
| 2475 | 2477 | |
| 2476 | struct sh2_config sh2cp_conf_slave = { 1 }; | |
| 2478 | //static struct sh2_config sh2cp_conf_slave = { 1 }; | |
| 2477 | 2479 | |
| 2478 | 2480 | |
| 2479 | 2481 | static struct CustomSound_interface custom_interface = |
| r1238 | r1239 | |
| 2523 | 2525 | |
| 2524 | 2526 | |
| 2525 | 2527 | |
| 2526 | void precopy_to_flash(void) | |
| 2528 | static void precopy_to_flash(void) | |
| 2527 | 2529 | { |
| 2528 | 2530 | int i; |
| 2529 | 2531 | /* precopy program roms, ok, sfiii2 tests pass, others fail because of how the decryption affects testing */ |
| r1238 | r1239 | |
| 2590 | 2592 | |
| 2591 | 2593 | |
| 2592 | 2594 | // make a copy in the regions we execute code / draw gfx from |
| 2593 | void copy_from_nvram(void) | |
| 2595 | static void copy_from_nvram(void) | |
| 2594 | 2596 | { |
| 2595 | 2597 | |
| 2596 | 2598 | int i; |
| r1238 | r1239 | |
|---|---|---|
| 123 | 123 | ADDRESS_MAP_END |
| 124 | 124 | |
| 125 | 125 | |
| 126 | INPUT_PORTS_START( glass ) | |
| 126 | static INPUT_PORTS_START( glass ) | |
| 127 | 127 | PORT_START /* DSW #2 */ |
| 128 | 128 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 129 | 129 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) |
| r1238 | r1239 | |
|---|---|---|
| 304 | 304 | |
| 305 | 305 | /*** Inputs ***/ |
| 306 | 306 | |
| 307 | INPUT_PORTS_START( mcatadv ) | |
| 307 | static INPUT_PORTS_START( mcatadv ) | |
| 308 | 308 | PORT_START_TAG("IN0") |
| 309 | 309 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 310 | 310 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 381 | 381 | // PORT_DIPSETTING( 0x00, "Upright 2 Players" ) // duplicated setting (NEVER tested) |
| 382 | 382 | INPUT_PORTS_END |
| 383 | 383 | |
| 384 | INPUT_PORTS_START( nost ) | |
| 384 | static INPUT_PORTS_START( nost ) | |
| 385 | 385 | PORT_START_TAG("IN0") |
| 386 | 386 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 387 | 387 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 337 | 337 | * |
| 338 | 338 | *************************************/ |
| 339 | 339 | |
| 340 | INPUT_PORTS_START( spacewar ) | |
| 340 | static INPUT_PORTS_START( spacewar ) | |
| 341 | 341 | PORT_START_TAG("INPUTS") |
| 342 | 342 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Option 3") PORT_CODE(KEYCODE_3_PAD) |
| 343 | 343 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Option 8") PORT_CODE(KEYCODE_8_PAD) |
| r1238 | r1239 | |
| 373 | 373 | INPUT_PORTS_END |
| 374 | 374 | |
| 375 | 375 | |
| 376 | INPUT_PORTS_START( barrier ) | |
| 376 | static INPUT_PORTS_START( barrier ) | |
| 377 | 377 | PORT_START_TAG("INPUTS") |
| 378 | 378 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Skill A") PORT_CODE(KEYCODE_A) |
| 379 | 379 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
| 418 | 418 | INPUT_PORTS_END |
| 419 | 419 | |
| 420 | 420 | |
| 421 | INPUT_PORTS_START( speedfrk ) | |
| 421 | static INPUT_PORTS_START( speedfrk ) | |
| 422 | 422 | PORT_START_TAG("INPUTS") |
| 423 | 423 | PORT_BIT( 0x000f, IP_ACTIVE_LOW, IPT_SPECIAL ) /* steering wheel, fake below */ |
| 424 | 424 | PORT_BIT( 0x0070, IP_ACTIVE_LOW, IPT_SPECIAL ) /* gear shift, fake below */ |
| r1238 | r1239 | |
| 461 | 461 | |
| 462 | 462 | |
| 463 | 463 | /* TODO: 4way or 8way stick? */ |
| 464 | INPUT_PORTS_START( starhawk ) | |
| 464 | static INPUT_PORTS_START( starhawk ) | |
| 465 | 465 | PORT_START_TAG("INPUTS") |
| 466 | 466 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 467 | 467 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 496 | 496 | INPUT_PORTS_END |
| 497 | 497 | |
| 498 | 498 | |
| 499 | INPUT_PORTS_START( sundance ) | |
| 499 | static INPUT_PORTS_START( sundance ) | |
| 500 | 500 | PORT_START_TAG("INPUTS") |
| 501 | 501 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_SPECIAL ) /* P1 Pad */ |
| 502 | 502 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 562 | 562 | INPUT_PORTS_END |
| 563 | 563 | |
| 564 | 564 | |
| 565 | INPUT_PORTS_START( tailg ) | |
| 565 | static INPUT_PORTS_START( tailg ) | |
| 566 | 566 | PORT_START_TAG("INPUTS") |
| 567 | 567 | PORT_BIT( 0x001f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 568 | 568 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 602 | 602 | INPUT_PORTS_END |
| 603 | 603 | |
| 604 | 604 | |
| 605 | INPUT_PORTS_START( warrior ) | |
| 605 | static INPUT_PORTS_START( warrior ) | |
| 606 | 606 | PORT_START_TAG("INPUTS") |
| 607 | 607 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) |
| 608 | 608 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) |
| r1238 | r1239 | |
| 641 | 641 | INPUT_PORTS_END |
| 642 | 642 | |
| 643 | 643 | |
| 644 | INPUT_PORTS_START( armora ) | |
| 644 | static INPUT_PORTS_START( armora ) | |
| 645 | 645 | PORT_START_TAG("INPUTS") |
| 646 | 646 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 647 | 647 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 677 | 677 | INPUT_PORTS_END |
| 678 | 678 | |
| 679 | 679 | |
| 680 | INPUT_PORTS_START( ripoff ) | |
| 680 | static INPUT_PORTS_START( ripoff ) | |
| 681 | 681 | PORT_START_TAG("INPUTS") |
| 682 | 682 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 683 | 683 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 713 | 713 | INPUT_PORTS_END |
| 714 | 714 | |
| 715 | 715 | |
| 716 | INPUT_PORTS_START( starcas ) | |
| 716 | static INPUT_PORTS_START( starcas ) | |
| 717 | 717 | PORT_START_TAG("INPUTS") |
| 718 | 718 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| 719 | 719 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
| 750 | 750 | INPUT_PORTS_END |
| 751 | 751 | |
| 752 | 752 | |
| 753 | INPUT_PORTS_START( solarq ) | |
| 753 | static INPUT_PORTS_START( solarq ) | |
| 754 | 754 | PORT_START_TAG("INPUTS") |
| 755 | 755 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START2 ) |
| 756 | 756 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) /* nova */ |
| r1238 | r1239 | |
| 784 | 784 | INPUT_PORTS_END |
| 785 | 785 | |
| 786 | 786 | |
| 787 | INPUT_PORTS_START( boxingb ) | |
| 787 | static INPUT_PORTS_START( boxingb ) | |
| 788 | 788 | PORT_START_TAG("INPUTS") |
| 789 | 789 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 790 | 790 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| r1238 | r1239 | |
| 823 | 823 | INPUT_PORTS_END |
| 824 | 824 | |
| 825 | 825 | |
| 826 | INPUT_PORTS_START( wotw ) | |
| 826 | static INPUT_PORTS_START( wotw ) | |
| 827 | 827 | PORT_START_TAG("INPUTS") |
| 828 | 828 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| 829 | 829 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
| 862 | 862 | INPUT_PORTS_END |
| 863 | 863 | |
| 864 | 864 | |
| 865 | INPUT_PORTS_START( demon ) | |
| 865 | static INPUT_PORTS_START( demon ) | |
| 866 | 866 | PORT_START_TAG("INPUTS") |
| 867 | 867 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| 868 | 868 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 904 | 904 | INPUT_PORTS_END |
| 905 | 905 | |
| 906 | 906 | |
| 907 | INPUT_PORTS_START( qb3 ) | |
| 907 | static INPUT_PORTS_START( qb3 ) | |
| 908 | 908 | PORT_START_TAG("INPUTS") |
| 909 | 909 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) |
| 910 | 910 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 1961 | 1961 | |
| 1962 | 1962 | |
| 1963 | 1963 | |
| 1964 | INPUT_PORTS_START( toaplan2 ) | |
| 1964 | static INPUT_PORTS_START( toaplan2 ) | |
| 1965 | 1965 | PORT_START_TAG("VBL") |
| 1966 | 1966 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 1967 | 1967 | PORT_BIT( 0xfffe, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* Unknown/Unused */ |
| r1238 | r1239 | |
| 2032 | 2032 | |
| 2033 | 2033 | |
| 2034 | 2034 | |
| 2035 | INPUT_PORTS_START( tekipaki ) | |
| 2035 | static INPUT_PORTS_START( tekipaki ) | |
| 2036 | 2036 | PORT_INCLUDE(toaplan2) |
| 2037 | 2037 | |
| 2038 | 2038 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 2076 | 2076 | INPUT_PORTS_END |
| 2077 | 2077 | |
| 2078 | 2078 | |
| 2079 | INPUT_PORTS_START( ghox ) | |
| 2079 | static INPUT_PORTS_START( ghox ) | |
| 2080 | 2080 | PORT_INCLUDE(toaplan2) |
| 2081 | 2081 | |
| 2082 | 2082 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 2132 | 2132 | INPUT_PORTS_END |
| 2133 | 2133 | |
| 2134 | 2134 | |
| 2135 | INPUT_PORTS_START( dogyuun ) | |
| 2135 | static INPUT_PORTS_START( dogyuun ) | |
| 2136 | 2136 | PORT_INCLUDE(toaplan2) |
| 2137 | 2137 | |
| 2138 | 2138 | PORT_MODIFY("IN1") |
| r1238 | r1239 | |
| 2189 | 2189 | INPUT_PORTS_END |
| 2190 | 2190 | |
| 2191 | 2191 | |
| 2192 | INPUT_PORTS_START( kbash ) | |
| 2192 | static INPUT_PORTS_START( kbash ) | |
| 2193 | 2193 | PORT_INCLUDE(toaplan2) |
| 2194 | 2194 | |
| 2195 | 2195 | PORT_MODIFY("IN1") |
| r1238 | r1239 | |
| 2238 | 2238 | INPUT_PORTS_END |
| 2239 | 2239 | |
| 2240 | 2240 | |
| 2241 | INPUT_PORTS_START( kbash2 ) | |
| 2241 | static INPUT_PORTS_START( kbash2 ) | |
| 2242 | 2242 | PORT_INCLUDE(kbash) |
| 2243 | 2243 | |
| 2244 | 2244 | PORT_MODIFY("JMPR") |
| r1238 | r1239 | |
| 2253 | 2253 | INPUT_PORTS_END |
| 2254 | 2254 | |
| 2255 | 2255 | |
| 2256 | INPUT_PORTS_START( truxton2 ) | |
| 2256 | static INPUT_PORTS_START( truxton2 ) | |
| 2257 | 2257 | PORT_INCLUDE(toaplan2) |
| 2258 | 2258 | |
| 2259 | 2259 | PORT_MODIFY("IN1") |
| r1238 | r1239 | |
| 2301 | 2301 | INPUT_PORTS_END |
| 2302 | 2302 | |
| 2303 | 2303 | |
| 2304 | INPUT_PORTS_START( pipibibs ) | |
| 2304 | static INPUT_PORTS_START( pipibibs ) | |
| 2305 | 2305 | PORT_INCLUDE(toaplan2) |
| 2306 | 2306 | |
| 2307 | 2307 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 2344 | 2344 | INPUT_PORTS_END |
| 2345 | 2345 | |
| 2346 | 2346 | |
| 2347 | INPUT_PORTS_START( whoopee ) | |
| 2347 | static INPUT_PORTS_START( whoopee ) | |
| 2348 | 2348 | PORT_INCLUDE(pipibibs) |
| 2349 | 2349 | |
| 2350 | 2350 | PORT_MODIFY("JMPR") |
| r1238 | r1239 | |
| 2352 | 2352 | INPUT_PORTS_END |
| 2353 | 2353 | |
| 2354 | 2354 | |
| 2355 | INPUT_PORTS_START( pipibibi ) | |
| 2355 | static INPUT_PORTS_START( pipibibi ) | |
| 2356 | 2356 | PORT_INCLUDE(pipibibs) |
| 2357 | 2357 | |
| 2358 | 2358 | PORT_MODIFY("VBL") |
| r1238 | r1239 | |
| 2378 | 2378 | INPUT_PORTS_END |
| 2379 | 2379 | |
| 2380 | 2380 | |
| 2381 | INPUT_PORTS_START( fixeight ) | |
| 2381 | static INPUT_PORTS_START( fixeight ) | |
| 2382 | 2382 | PORT_INCLUDE(toaplan2) |
| 2383 | 2383 | |
| 2384 | 2384 | PORT_START_TAG("IN3") |
| r1238 | r1239 | |
| 2455 | 2455 | INPUT_PORTS_END |
| 2456 | 2456 | |
| 2457 | 2457 | |
| 2458 | INPUT_PORTS_START( fixeighb ) | |
| 2458 | static INPUT_PORTS_START( fixeighb ) | |
| 2459 | 2459 | PORT_INCLUDE(fixeight) |
| 2460 | 2460 | |
| 2461 | 2461 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 2466 | 2466 | INPUT_PORTS_END |
| 2467 | 2467 | |
| 2468 | 2468 | |
| 2469 | INPUT_PORTS_START( grindstm ) | |
| 2469 | static INPUT_PORTS_START( grindstm ) | |
| 2470 | 2470 | PORT_INCLUDE(toaplan2) |
| 2471 | 2471 | |
| 2472 | 2472 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 2518 | 2518 | INPUT_PORTS_END |
| 2519 | 2519 | |
| 2520 | 2520 | |
| 2521 | INPUT_PORTS_START( vfive ) | |
| 2521 | static INPUT_PORTS_START( vfive ) | |
| 2522 | 2522 | PORT_INCLUDE(grindstm) |
| 2523 | 2523 | |
| 2524 | 2524 | PORT_MODIFY("JMPR") /* (6) Territory Jumper block */ |
| r1238 | r1239 | |
| 2528 | 2528 | INPUT_PORTS_END |
| 2529 | 2529 | |
| 2530 | 2530 | |
| 2531 | INPUT_PORTS_START( batsugun ) | |
| 2531 | static INPUT_PORTS_START( batsugun ) | |
| 2532 | 2532 | PORT_INCLUDE(toaplan2) |
| 2533 | 2533 | |
| 2534 | 2534 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 2580 | 2580 | INPUT_PORTS_END |
| 2581 | 2581 | |
| 2582 | 2582 | |
| 2583 | INPUT_PORTS_START( snowbro2 ) | |
| 2583 | static INPUT_PORTS_START( snowbro2 ) | |
| 2584 | 2584 | PORT_INCLUDE(toaplan2) |
| 2585 | 2585 | |
| 2586 | 2586 | PORT_START_TAG("IN3") |
| r1238 | r1239 | |
| 2648 | 2648 | INPUT_PORTS_END |
| 2649 | 2649 | |
| 2650 | 2650 | |
| 2651 | INPUT_PORTS_START( sstriker ) | |
| 2651 | static INPUT_PORTS_START( sstriker ) | |
| 2652 | 2652 | PORT_INCLUDE(toaplan2) |
| 2653 | 2653 | |
| 2654 | 2654 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 2692 | 2692 | INPUT_PORTS_END |
| 2693 | 2693 | |
| 2694 | 2694 | |
| 2695 | INPUT_PORTS_START( mahoudai ) | |
| 2695 | static INPUT_PORTS_START( mahoudai ) | |
| 2696 | 2696 | PORT_INCLUDE(sstriker) |
| 2697 | 2697 | |
| 2698 | 2698 | PORT_MODIFY("JMPR") |
| r1238 | r1239 | |
| 2701 | 2701 | INPUT_PORTS_END |
| 2702 | 2702 | |
| 2703 | 2703 | |
| 2704 | INPUT_PORTS_START( kingdmgp ) | |
| 2704 | static INPUT_PORTS_START( kingdmgp ) | |
| 2705 | 2705 | PORT_INCLUDE(toaplan2) |
| 2706 | 2706 | |
| 2707 | 2707 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 2745 | 2745 | INPUT_PORTS_END |
| 2746 | 2746 | |
| 2747 | 2747 | |
| 2748 | INPUT_PORTS_START( shippumd ) | |
| 2748 | static INPUT_PORTS_START( shippumd ) | |
| 2749 | 2749 | PORT_INCLUDE(kingdmgp) |
| 2750 | 2750 | |
| 2751 | 2751 | PORT_MODIFY("JMPR") |
| r1238 | r1239 | |
| 2754 | 2754 | INPUT_PORTS_END |
| 2755 | 2755 | |
| 2756 | 2756 | |
| 2757 | INPUT_PORTS_START( bgaregga ) | |
| 2757 | static INPUT_PORTS_START( bgaregga ) | |
| 2758 | 2758 | PORT_START_TAG("VBL") |
| 2759 | 2759 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 2760 | 2760 | PORT_BIT( 0xfffe, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* Unknown/Unused */ |
| r1238 | r1239 | |
| 2868 | 2868 | INPUT_PORTS_END |
| 2869 | 2869 | |
| 2870 | 2870 | |
| 2871 | INPUT_PORTS_START( bgareghk ) | |
| 2871 | static INPUT_PORTS_START( bgareghk ) | |
| 2872 | 2872 | PORT_INCLUDE(bgaregga) |
| 2873 | 2873 | |
| 2874 | 2874 | PORT_MODIFY("JMPR") |
| r1238 | r1239 | |
| 2881 | 2881 | INPUT_PORTS_END |
| 2882 | 2882 | |
| 2883 | 2883 | |
| 2884 | INPUT_PORTS_START( bgaregcn ) | |
| 2884 | static INPUT_PORTS_START( bgaregcn ) | |
| 2885 | 2885 | PORT_INCLUDE(bgaregga) |
| 2886 | 2886 | |
| 2887 | 2887 | PORT_MODIFY("JMPR") |
| r1238 | r1239 | |
| 2894 | 2894 | INPUT_PORTS_END |
| 2895 | 2895 | |
| 2896 | 2896 | |
| 2897 | INPUT_PORTS_START( batrider ) | |
| 2897 | static INPUT_PORTS_START( batrider ) | |
| 2898 | 2898 | PORT_START_TAG("VBL") /* VBlank */ |
| 2899 | 2899 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 2900 | 2900 | PORT_BIT( 0xfffe, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 3010 | 3010 | INPUT_PORTS_END |
| 3011 | 3011 | |
| 3012 | 3012 | |
| 3013 | INPUT_PORTS_START( bbakraid ) | |
| 3013 | static INPUT_PORTS_START( bbakraid ) | |
| 3014 | 3014 | PORT_START_TAG("VBL") /* VBlank */ |
| 3015 | 3015 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 3016 | 3016 | PORT_BIT( 0xfffe, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 40 | 40 | // IntReq(24); //VRender0 VBlank |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | INPUT_PORTS_START(ddz) | |
| 43 | static INPUT_PORTS_START(ddz) | |
| 44 | 44 | |
| 45 | 45 | INPUT_PORTS_END |
| 46 | 46 |
| r1238 | r1239 | |
|---|---|---|
| 191 | 191 | |
| 192 | 192 | |
| 193 | 193 | |
| 194 | INPUT_PORTS_START( mjkjidai ) | |
| 194 | static INPUT_PORTS_START( mjkjidai ) | |
| 195 | 195 | PORT_START |
| 196 | 196 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 197 | 197 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 669 | 669 | |
| 670 | 670 | /* input ports */ |
| 671 | 671 | |
| 672 | INPUT_PORTS_START( jchan ) | |
| 672 | static INPUT_PORTS_START( jchan ) | |
| 673 | 673 | |
| 674 | 674 | /* TO BE VERIFIED: Player 1 & 2 - see subroutine $21e2a of main68k IT1 */ |
| 675 | 675 | /* TO BE VERIFIED: dips assignements according infos by BrianT at http://www.crazykong.com - seems ok */ |
| r1238 | r1239 | |
|---|---|---|
| 94 | 94 | |
| 95 | 95 | |
| 96 | 96 | |
| 97 | INPUT_PORTS_START( jailbrek ) | |
| 97 | static INPUT_PORTS_START( jailbrek ) | |
| 98 | 98 | PORT_START /* IN0 - $3300 */ |
| 99 | 99 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 100 | 100 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 227 | 227 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) \ |
| 228 | 228 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) \ |
| 229 | 229 | |
| 230 | INPUT_PORTS_START( couple ) | |
| 230 | static INPUT_PORTS_START( couple ) | |
| 231 | 231 | PORT_INPUTS |
| 232 | 232 | |
| 233 | 233 | PORT_DSW |
| r1238 | r1239 | |
| 314 | 314 | INPUT_PORTS_END |
| 315 | 315 | |
| 316 | 316 | /*Different DSWs*/ |
| 317 | INPUT_PORTS_START( couplep ) | |
| 317 | static INPUT_PORTS_START( couplep ) | |
| 318 | 318 | PORT_INPUTS |
| 319 | 319 | |
| 320 | 320 | PORT_DSW |
| r1238 | r1239 | |
|---|---|---|
| 214 | 214 | ROM_LOAD( "82s137.003", 0x800, 0x400, CRC(c0e70308) SHA1(d7dbc500bc9991c2d1b95850f3723a2a224fbfbb) ) |
| 215 | 215 | ROM_END |
| 216 | 216 | |
| 217 | INPUT_PORTS_START( sgladiat ) | |
| 217 | static INPUT_PORTS_START( sgladiat ) | |
| 218 | 218 | PORT_START_TAG("IN0") |
| 219 | 219 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 220 | 220 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 287 | 287 | } |
| 288 | 288 | |
| 289 | 289 | |
| 290 | INPUT_PORTS_START( mlanding ) | |
| 290 | static INPUT_PORTS_START( mlanding ) | |
| 291 | 291 | |
| 292 | 292 | PORT_START_TAG("IN0") |
| 293 | 293 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_TILT ) |
| r1238 | r1239 | |
|---|---|---|
| 128 | 128 | AM_RANGE(0x0c00, 0xffff) AM_WRITE(MWA8_ROM) /* ROM */ |
| 129 | 129 | ADDRESS_MAP_END |
| 130 | 130 | |
| 131 | INPUT_PORTS_START( bigkarnk ) | |
| 131 | static INPUT_PORTS_START( bigkarnk ) | |
| 132 | 132 | PORT_START /* DSW #1 */ |
| 133 | 133 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 134 | 134 | PORT_DIPSETTING( 0x07, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
| 557 | 557 | |
| 558 | 558 | /*********** Squash Encryption Related Code ******************/ |
| 559 | 559 | |
| 560 | INPUT_PORTS_START( squash ) | |
| 560 | static INPUT_PORTS_START( squash ) | |
| 561 | 561 | PORT_START /* DSW2 8bit */ |
| 562 | 562 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 563 | 563 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) |
| r1238 | r1239 | |
| 1158 | 1158 | |
| 1159 | 1159 | /*********** Thunder Hoop Encryption Related Code ******************/ |
| 1160 | 1160 | |
| 1161 | INPUT_PORTS_START( thoop ) | |
| 1161 | static INPUT_PORTS_START( thoop ) | |
| 1162 | 1162 | PORT_START /* DSW2 8bit */ |
| 1163 | 1163 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 1164 | 1164 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) |
| r1238 | r1239 | |
|---|---|---|
| 136 | 136 | |
| 137 | 137 | |
| 138 | 138 | |
| 139 | INPUT_PORTS_START( bankp ) | |
| 139 | static INPUT_PORTS_START( bankp ) | |
| 140 | 140 | PORT_START /* IN0 */ |
| 141 | 141 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 142 | 142 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| r1238 | r1239 | |
| 189 | 189 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| 190 | 190 | INPUT_PORTS_END |
| 191 | 191 | |
| 192 | INPUT_PORTS_START( combh ) | |
| 192 | static INPUT_PORTS_START( combh ) | |
| 193 | 193 | PORT_START /* IN0 */ |
| 194 | 194 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_2WAY |
| 195 | 195 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| r1238 | r1239 | |
|---|---|---|
| 23 | 23 | VIDEO_START( tankbust ); |
| 24 | 24 | VIDEO_UPDATE( tankbust ); |
| 25 | 25 | |
| 26 | extern UINT8 * | |
| 26 | extern UINT8 * | |
| 27 | 27 | |
| 28 | 28 | WRITE8_HANDLER( tankbust_background_videoram_w ); |
| 29 | 29 | READ8_HANDLER ( tankbust_background_videoram_r ); |
| r1238 | r1239 | |
| 229 | 229 | |
| 230 | 230 | AM_RANGE(0xc000, 0xc7ff) AM_WRITE(tankbust_background_videoram_w) AM_BASE(&videoram) |
| 231 | 231 | AM_RANGE(0xc800, 0xcfff) AM_WRITE(tankbust_background_colorram_w) AM_BASE(&colorram) |
| 232 | AM_RANGE(0xd000, 0xd7ff) AM_WRITE(tankbust_txtram_w) AM_BASE(&t | |
| 232 | AM_RANGE(0xd000, 0xd7ff) AM_WRITE(tankbust_txtram_w) AM_BASE(&tankbust_txtram) | |
| 233 | 233 | AM_RANGE(0xd800, 0xd8ff) AM_WRITE(MWA8_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size) |
| 234 | 234 | ADDRESS_MAP_END |
| 235 | 235 | |
| r1238 | r1239 | |
| 267 | 267 | |
| 268 | 268 | |
| 269 | 269 | |
| 270 | INPUT_PORTS_START( tankbust ) | |
| 270 | static INPUT_PORTS_START( tankbust ) | |
| 271 | 271 | PORT_START /* IN0 */ |
| 272 | 272 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 273 | 273 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 827 | 827 | WEC Le Mans 24 Input Ports |
| 828 | 828 | ***************************************************************************/ |
| 829 | 829 | |
| 830 | INPUT_PORTS_START( wecleman ) | |
| 830 | static INPUT_PORTS_START( wecleman ) | |
| 831 | 831 | PORT_START /* IN0 - Controls and Coins - $140011.b */ |
| 832 | 832 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 833 | 833 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 917 | 917 | Hot Chase Input Ports |
| 918 | 918 | ***************************************************************************/ |
| 919 | 919 | |
| 920 | INPUT_PORTS_START( hotchase ) | |
| 920 | static INPUT_PORTS_START( hotchase ) | |
| 921 | 921 | PORT_START /* IN0 - Controls and Coins - $140011.b */ |
| 922 | 922 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 923 | 923 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 198 | 198 | |
| 199 | 199 | |
| 200 | 200 | |
| 201 | INPUT_PORTS_START( crbaloon ) | |
| 201 | static INPUT_PORTS_START( crbaloon ) | |
| 202 | 202 | PORT_START_TAG("DSW0") // 0 |
| 203 | 203 | PORT_DIPNAME( 0x01, 0x01, "Test?" ) |
| 204 | 204 | PORT_DIPSETTING( 0x01, "I/O Check?" ) |
| r1238 | r1239 | |
|---|---|---|
| 55 | 55 | ADDRESS_MAP_END |
| 56 | 56 | |
| 57 | 57 | |
| 58 | INPUT_PORTS_START( dderby ) | |
| 58 | static INPUT_PORTS_START( dderby ) | |
| 59 | 59 | PORT_START /* 8bit */ |
| 60 | 60 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 61 | 61 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 93 | 93 | ADDRESS_MAP_END |
| 94 | 94 | |
| 95 | 95 | |
| 96 | INPUT_PORTS_START( pastelg ) | |
| 96 | static INPUT_PORTS_START( pastelg ) | |
| 97 | 97 | PORT_START /* (0) DIPSW-A */ |
| 98 | 98 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 99 | 99 | PORT_DIPSETTING( 0x03, "1 (Easy)" ) |
| r1238 | r1239 | |
|---|---|---|
| 1755 | 1755 | * |
| 1756 | 1756 | *************************************/ |
| 1757 | 1757 | |
| 1758 | INPUT_PORTS_START( seattle_common ) | |
| 1758 | static INPUT_PORTS_START( seattle_common ) | |
| 1759 | 1759 | PORT_START_TAG("DIPS") |
| 1760 | 1760 | PORT_DIPNAME( 0x0001, 0x0001, "Unknown0001" ) |
| 1761 | 1761 | PORT_DIPSETTING( 0x0001, DEF_STR( Off )) |
| r1238 | r1239 | |
| 1868 | 1868 | * |
| 1869 | 1869 | *************************************/ |
| 1870 | 1870 | |
| 1871 | INPUT_PORTS_START( wg3dh ) | |
| 1871 | static INPUT_PORTS_START( wg3dh ) | |
| 1872 | 1872 | PORT_INCLUDE(seattle_common) |
| 1873 | 1873 | |
| 1874 | 1874 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 1879 | 1879 | INPUT_PORTS_END |
| 1880 | 1880 | |
| 1881 | 1881 | |
| 1882 | INPUT_PORTS_START( mace ) | |
| 1882 | static INPUT_PORTS_START( mace ) | |
| 1883 | 1883 | PORT_INCLUDE(seattle_common) |
| 1884 | 1884 | |
| 1885 | 1885 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 1893 | 1893 | INPUT_PORTS_END |
| 1894 | 1894 | |
| 1895 | 1895 | |
| 1896 | INPUT_PORTS_START( sfrush ) | |
| 1896 | static INPUT_PORTS_START( sfrush ) | |
| 1897 | 1897 | PORT_INCLUDE(seattle_common) |
| 1898 | 1898 | |
| 1899 | 1899 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 1957 | 1957 | INPUT_PORTS_END |
| 1958 | 1958 | |
| 1959 | 1959 | |
| 1960 | INPUT_PORTS_START( sfrushrk ) | |
| 1960 | static INPUT_PORTS_START( sfrushrk ) | |
| 1961 | 1961 | PORT_INCLUDE(sfrush) |
| 1962 | 1962 | |
| 1963 | 1963 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 1974 | 1974 | INPUT_PORTS_END |
| 1975 | 1975 | |
| 1976 | 1976 | |
| 1977 | INPUT_PORTS_START( calspeed ) | |
| 1977 | static INPUT_PORTS_START( calspeed ) | |
| 1978 | 1978 | PORT_INCLUDE(seattle_common) |
| 1979 | 1979 | |
| 1980 | 1980 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 2032 | 2032 | INPUT_PORTS_END |
| 2033 | 2033 | |
| 2034 | 2034 | |
| 2035 | INPUT_PORTS_START( vaportrx ) | |
| 2035 | static INPUT_PORTS_START( vaportrx ) | |
| 2036 | 2036 | PORT_INCLUDE(seattle_common) |
| 2037 | 2037 | |
| 2038 | 2038 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 2091 | 2091 | INPUT_PORTS_END |
| 2092 | 2092 | |
| 2093 | 2093 | |
| 2094 | INPUT_PORTS_START( biofreak ) | |
| 2094 | static INPUT_PORTS_START( biofreak ) | |
| 2095 | 2095 | PORT_INCLUDE(seattle_common) |
| 2096 | 2096 | |
| 2097 | 2097 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 2124 | 2124 | INPUT_PORTS_END |
| 2125 | 2125 | |
| 2126 | 2126 | |
| 2127 | INPUT_PORTS_START( blitz ) | |
| 2127 | static INPUT_PORTS_START( blitz ) | |
| 2128 | 2128 | PORT_INCLUDE(seattle_common) |
| 2129 | 2129 | |
| 2130 | 2130 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 2185 | 2185 | INPUT_PORTS_END |
| 2186 | 2186 | |
| 2187 | 2187 | |
| 2188 | INPUT_PORTS_START( blitz99 ) | |
| 2188 | static INPUT_PORTS_START( blitz99 ) | |
| 2189 | 2189 | PORT_INCLUDE(blitz) |
| 2190 | 2190 | |
| 2191 | 2191 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 2231 | 2231 | INPUT_PORTS_END |
| 2232 | 2232 | |
| 2233 | 2233 | |
| 2234 | INPUT_PORTS_START( carnevil ) | |
| 2234 | static INPUT_PORTS_START( carnevil ) | |
| 2235 | 2235 | PORT_INCLUDE( seattle_common ) |
| 2236 | 2236 | |
| 2237 | 2237 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
| 2329 | 2329 | INPUT_PORTS_END |
| 2330 | 2330 | |
| 2331 | 2331 | |
| 2332 | INPUT_PORTS_START( hyprdriv ) | |
| 2332 | static INPUT_PORTS_START( hyprdriv ) | |
| 2333 | 2333 | PORT_INCLUDE( seattle_common ) |
| 2334 | 2334 | |
| 2335 | 2335 | PORT_MODIFY("DIPS") |
| r1238 | r1239 | |
|---|---|---|
| 147 | 147 | ADDRESS_MAP_END |
| 148 | 148 | |
| 149 | 149 | |
| 150 | INPUT_PORTS_START( portrait ) | |
| 150 | static INPUT_PORTS_START( portrait ) | |
| 151 | 151 | PORT_START /* DSW 1 */ |
| 152 | 152 | PORT_DIPNAME( 0x0f, 0x08, DEF_STR( Coin_A ) ) |
| 153 | 153 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 126 | 126 | AM_RANGE(0xe000, 0xe7ff) AM_WRITE(MWA8_RAM) |
| 127 | 127 | ADDRESS_MAP_END |
| 128 | 128 | |
| 129 | INPUT_PORTS_START( mnchmobl ) | |
| 129 | static INPUT_PORTS_START( mnchmobl ) | |
| 130 | 130 | PORT_START |
| 131 | 131 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 132 | 132 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 137 | 137 | ADDRESS_MAP_END |
| 138 | 138 | |
| 139 | 139 | |
| 140 | INPUT_PORTS_START( funkybee ) | |
| 140 | static INPUT_PORTS_START( funkybee ) | |
| 141 | 141 | PORT_START_TAG("IN0") |
| 142 | 142 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 143 | 143 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 187 | 187 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) |
| 188 | 188 | INPUT_PORTS_END |
| 189 | 189 | |
| 190 | INPUT_PORTS_START( funkbeeb ) | |
| 190 | static INPUT_PORTS_START( funkbeeb ) | |
| 191 | 191 | PORT_INCLUDE(funkybee) |
| 192 | 192 | |
| 193 | 193 | PORT_MODIFY("DSW") |
| r1238 | r1239 | |
| 198 | 198 | PORT_DIPSETTING( 0x00, "4" ) |
| 199 | 199 | INPUT_PORTS_END |
| 200 | 200 | |
| 201 | INPUT_PORTS_START( skylancr ) | |
| 201 | static INPUT_PORTS_START( skylancr ) | |
| 202 | 202 | PORT_START_TAG("IN0") |
| 203 | 203 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 204 | 204 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 246 | 246 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) |
| 247 | 247 | INPUT_PORTS_END |
| 248 | 248 | |
| 249 | INPUT_PORTS_START( skylance ) | |
| 249 | static INPUT_PORTS_START( skylance ) | |
| 250 | 250 | PORT_INCLUDE(skylancr) |
| 251 | 251 | |
| 252 | 252 | PORT_MODIFY("DSW") |
| r1238 | r1239 | |
|---|---|---|
| 225 | 225 | * |
| 226 | 226 | *************************************/ |
| 227 | 227 | |
| 228 | INPUT_PORTS_START( btoads ) | |
| 228 | static INPUT_PORTS_START( btoads ) | |
| 229 | 229 | PORT_START |
| 230 | 230 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 231 | 231 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 631 | 631 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 632 | 632 | |
| 633 | 633 | |
| 634 | INPUT_PORTS_START( tetrisp2 ) | |
| 634 | static INPUT_PORTS_START( tetrisp2 ) | |
| 635 | 635 | TETPLUS2_COMMON |
| 636 | 636 | |
| 637 | 637 | PORT_START_TAG("IN2") //$be0008.w |
| r1238 | r1239 | |
| 689 | 689 | ***************************************************************************/ |
| 690 | 690 | |
| 691 | 691 | |
| 692 | INPUT_PORTS_START( teplus2j ) | |
| 692 | static INPUT_PORTS_START( teplus2j ) | |
| 693 | 693 | TETPLUS2_COMMON |
| 694 | 694 | |
| 695 | 695 | /* |
| r1238 | r1239 | |
| 751 | 751 | ***************************************************************************/ |
| 752 | 752 | |
| 753 | 753 | |
| 754 | INPUT_PORTS_START( rockn ) | |
| 754 | static INPUT_PORTS_START( rockn ) | |
| 755 | 755 | PORT_START_TAG("IN0") //$be0002.w |
| 756 | 756 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 757 | 757 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 841 | 841 | INPUT_PORTS_END |
| 842 | 842 | |
| 843 | 843 | |
| 844 | INPUT_PORTS_START( rocknms ) | |
| 844 | static INPUT_PORTS_START( rocknms ) | |
| 845 | 845 | PORT_START // IN0 - $be0002.w |
| 846 | 846 | |
| 847 | 847 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_SPECIAL ) // MAIN -> SUB Communication |
| r1238 | r1239 | |
|---|---|---|
| 332 | 332 | |
| 333 | 333 | /******************************************************************************/ |
| 334 | 334 | |
| 335 | INPUT_PORTS_START( lastduel ) | |
| 335 | static INPUT_PORTS_START( lastduel ) | |
| 336 | 336 | PORT_START |
| 337 | 337 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 338 | 338 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 435 | 435 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 436 | 436 | INPUT_PORTS_END |
| 437 | 437 | |
| 438 | INPUT_PORTS_START( madgear ) | |
| 438 | static INPUT_PORTS_START( madgear ) | |
| 439 | 439 | PORT_START |
| 440 | 440 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Allow_Continue ) ) |
| 441 | 441 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) |
| r1238 | r1239 | |
|---|---|---|
| 1007 | 1007 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )\ |
| 1008 | 1008 | |
| 1009 | 1009 | |
| 1010 | INPUT_PORTS_START( sstingry ) | |
| 1010 | static INPUT_PORTS_START( sstingry ) | |
| 1011 | 1011 | PORT_START_TAG("IN0") |
| 1012 | 1012 | ALPHA68K_PLAYER_INPUT_SWAP_LR_LSB( 1, IPT_UNKNOWN, IPT_START1, IP_ACTIVE_HIGH ) |
| 1013 | 1013 | ALPHA68K_PLAYER_INPUT_SWAP_LR_MSB( 2, IPT_UNKNOWN, IPT_START2, IP_ACTIVE_HIGH ) |
| r1238 | r1239 | |
| 1032 | 1032 | ALPHA68K_MCU |
| 1033 | 1033 | INPUT_PORTS_END |
| 1034 | 1034 | |
| 1035 | INPUT_PORTS_START( kyros ) | |
| 1035 | static INPUT_PORTS_START( kyros ) | |
| 1036 | 1036 | PORT_START_TAG("IN0") |
| 1037 | 1037 | ALPHA68K_PLAYER_INPUT_SWAP_LR_LSB( 1, IPT_UNKNOWN, IPT_START1, IP_ACTIVE_HIGH ) |
| 1038 | 1038 | ALPHA68K_PLAYER_INPUT_SWAP_LR_MSB( 2, IPT_UNKNOWN, IPT_START2, IP_ACTIVE_HIGH ) |
| r1238 | r1239 | |
| 1057 | 1057 | ALPHA68K_MCU |
| 1058 | 1058 | INPUT_PORTS_END |
| 1059 | 1059 | |
| 1060 | INPUT_PORTS_START( jongbou ) | |
| 1060 | static INPUT_PORTS_START( jongbou ) | |
| 1061 | 1061 | PORT_START_TAG("IN0") |
| 1062 | 1062 | PORT_BIT( 0x0fff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1063 | 1063 | PORT_BIT( 0x1000, IP_ACTIVE_HIGH, IPT_START1 ) |
| r1238 | r1239 | |
| 1099 | 1099 | PORT_BIT( 0x0f, 0, IPT_DIAL ) PORT_MINMAX(0, 15) PORT_SENSITIVITY(50) PORT_KEYDELTA(20) PORT_PLAYER(2) |
| 1100 | 1100 | INPUT_PORTS_END |
| 1101 | 1101 | |
| 1102 | INPUT_PORTS_START( paddlema ) | |
| 1102 | static INPUT_PORTS_START( paddlema ) | |
| 1103 | 1103 | PORT_START_TAG("IN0") // (bottom players) |
| 1104 | 1104 | ALPHA68K_PLAYER_INPUT_LSB( 1, IPT_UNKNOWN, IPT_UNKNOWN, IP_ACTIVE_LOW ) |
| 1105 | 1105 | ALPHA68K_PLAYER_INPUT_MSB( 2, IPT_UNKNOWN, IPT_UNKNOWN, IP_ACTIVE_LOW ) |
| r1238 | r1239 | |
| 1172 | 1172 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 1173 | 1173 | INPUT_PORTS_END |
| 1174 | 1174 | |
| 1175 | INPUT_PORTS_START( timesold ) | |
| 1175 | static INPUT_PORTS_START( timesold ) | |
| 1176 | 1176 | PORT_START_TAG("IN0") |
| 1177 | 1177 | ALPHA68K_PLAYER_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1, IP_ACTIVE_LOW ) |
| 1178 | 1178 | |
| r1238 | r1239 | |
| 1224 | 1224 | INPUT_PORTS_END |
| 1225 | 1225 | |
| 1226 | 1226 | /* Same as 'timesold' but different default settings for the "Language" Dip Switch */ |
| 1227 | INPUT_PORTS_START( btlfield ) | |
| 1227 | static INPUT_PORTS_START( btlfield ) | |
| 1228 | 1228 | PORT_START_TAG("IN0") |
| 1229 | 1229 | ALPHA68K_PLAYER_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1, IP_ACTIVE_LOW ) |
| 1230 | 1230 | |
| r1238 | r1239 | |
| 1275 | 1275 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(8) PORT_CODE_DEC(KEYCODE_N) PORT_CODE_INC(KEYCODE_M) PORT_REVERSE PORT_PLAYER(2) |
| 1276 | 1276 | INPUT_PORTS_END |
| 1277 | 1277 | |
| 1278 | INPUT_PORTS_START( btlfildb ) | |
| 1278 | static INPUT_PORTS_START( btlfildb ) | |
| 1279 | 1279 | PORT_START_TAG("IN0") |
| 1280 | 1280 | ALPHA68K_PLAYER_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1, IP_ACTIVE_LOW ) |
| 1281 | 1281 | |
| r1238 | r1239 | |
| 1335 | 1335 | /* not used */ |
| 1336 | 1336 | INPUT_PORTS_END |
| 1337 | 1337 | |
| 1338 | INPUT_PORTS_START( skysoldr ) | |
| 1338 | static INPUT_PORTS_START( skysoldr ) | |
| 1339 | 1339 | PORT_START_TAG("IN0") |
| 1340 | 1340 | ALPHA68K_PLAYER_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1, IP_ACTIVE_LOW ) |
| 1341 | 1341 | |
| r1238 | r1239 | |
| 1386 | 1386 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1387 | 1387 | INPUT_PORTS_END |
| 1388 | 1388 | |
| 1389 | INPUT_PORTS_START( goldmedl ) | |
| 1389 | static INPUT_PORTS_START( goldmedl ) | |
| 1390 | 1390 | PORT_START_TAG("IN0") /* 3 buttons per player, no joystick */ |
| 1391 | 1391 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 1392 | 1392 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1450 | 1450 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1451 | 1451 | INPUT_PORTS_END |
| 1452 | 1452 | |
| 1453 | INPUT_PORTS_START( skyadvnt ) | |
| 1453 | static INPUT_PORTS_START( skyadvnt ) | |
| 1454 | 1454 | PORT_START_TAG("IN0") |
| 1455 | 1455 | ALPHA68K_PLAYER_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1, IP_ACTIVE_LOW ) |
| 1456 | 1456 | |
| r1238 | r1239 | |
| 1496 | 1496 | INPUT_PORTS_END |
| 1497 | 1497 | |
| 1498 | 1498 | /* Same as 'skyadvnt' but bits 0-3 of 2nd set of Dip Switches are different */ |
| 1499 | INPUT_PORTS_START( skyadvnu ) | |
| 1499 | static INPUT_PORTS_START( skyadvnu ) | |
| 1500 | 1500 | PORT_START_TAG("IN0") |
| 1501 | 1501 | ALPHA68K_PLAYER_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1, IP_ACTIVE_LOW ) |
| 1502 | 1502 | |
| r1238 | r1239 | |
| 1548 | 1548 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1549 | 1549 | INPUT_PORTS_END |
| 1550 | 1550 | |
| 1551 | INPUT_PORTS_START( gangwars ) | |
| 1551 | static INPUT_PORTS_START( gangwars ) | |
| 1552 | 1552 | PORT_START_TAG("IN0") |
| 1553 | 1553 | ALPHA68K_PLAYER_INPUT_LSB( 1, IPT_BUTTON3, IPT_START1, IP_ACTIVE_LOW ) |
| 1554 | 1554 | |
| r1238 | r1239 | |
| 1601 | 1601 | INPUT_PORTS_END |
| 1602 | 1602 | |
| 1603 | 1603 | /* Same as 'gangwars' but bits 0-3 of 2nd set of Dip Switches are different */ |
| 1604 | INPUT_PORTS_START( gangwarb ) | |
| 1604 | static INPUT_PORTS_START( gangwarb ) | |
| 1605 | 1605 | PORT_START_TAG("IN0") |
| 1606 | 1606 | ALPHA68K_PLAYER_INPUT_LSB( 1, IPT_BUTTON3, IPT_START1, IP_ACTIVE_LOW ) |
| 1607 | 1607 | |
| r1238 | r1239 | |
| 1655 | 1655 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1656 | 1656 | INPUT_PORTS_END |
| 1657 | 1657 | |
| 1658 | INPUT_PORTS_START( sbasebal ) | |
| 1658 | static INPUT_PORTS_START( sbasebal ) | |
| 1659 | 1659 | PORT_START_TAG("IN0") |
| 1660 | 1660 | ALPHA68K_PLAYER_INPUT_LSB( 1, IPT_BUTTON3, IPT_START1, IP_ACTIVE_LOW ) |
| 1661 | 1661 | |
| r1238 | r1239 | |
| 1724 | 1724 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1725 | 1725 | INPUT_PORTS_END |
| 1726 | 1726 | |
| 1727 | INPUT_PORTS_START( tnexspce ) | |
| 1727 | static INPUT_PORTS_START( tnexspce ) | |
| 1728 | 1728 | PORT_START_TAG("IN0") |
| 1729 | 1729 | ALPHA68K_PLAYER_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1, IP_ACTIVE_LOW ) |
| 1730 | 1730 |
| r1238 | r1239 | |
|---|---|---|
| 212 | 212 | |
| 213 | 213 | |
| 214 | 214 | |
| 215 | INPUT_PORTS_START( drgnmst ) | |
| 215 | static INPUT_PORTS_START( drgnmst ) | |
| 216 | 216 | PORT_START |
| 217 | 217 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 218 | 218 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 136 | 136 | AM_RANGE(0xb870, 0xb870) AM_WRITENOP |
| 137 | 137 | ADDRESS_MAP_END |
| 138 | 138 | |
| 139 | INPUT_PORTS_START( lucky8 ) | |
| 139 | static INPUT_PORTS_START( lucky8 ) | |
| 140 | 140 | PORT_START_TAG("B800") |
| 141 | 141 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Bit 0") PORT_CODE(KEYCODE_Q) |
| 142 | 142 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Bit 1") PORT_CODE(KEYCODE_W) |
| r1238 | r1239 | |
|---|---|---|
| 206 | 206 | ADDRESS_MAP_END |
| 207 | 207 | |
| 208 | 208 | |
| 209 | INPUT_PORTS_START( boxer ) | |
| 209 | static INPUT_PORTS_START( boxer ) | |
| 210 | 210 | |
| 211 | 211 | PORT_START |
| 212 | 212 | PORT_BIT ( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| r1238 | r1239 | |
|---|---|---|
| 203 | 203 | * |
| 204 | 204 | *************************************/ |
| 205 | 205 | |
| 206 | INPUT_PORTS_START( starfire ) | |
| 206 | static INPUT_PORTS_START( starfire ) | |
| 207 | 207 | PORT_START /* DSW0 */ |
| 208 | 208 | PORT_DIPNAME( 0x03, 0x00, "Time" ) |
| 209 | 209 | PORT_DIPSETTING( 0x00, "90 Sec" ) |
| r1238 | r1239 | |
| 247 | 247 | INPUT_PORTS_END |
| 248 | 248 | |
| 249 | 249 | |
| 250 | INPUT_PORTS_START( fireone ) | |
| 250 | static INPUT_PORTS_START( fireone ) | |
| 251 | 251 | PORT_START /* DSW0 */ |
| 252 | 252 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) |
| 253 | 253 | PORT_DIPSETTING( 0x03, "2 Coins/1 Player" ) |
| r1238 | r1239 | |
|---|---|---|
| 104 | 104 | |
| 105 | 105 | |
| 106 | 106 | |
| 107 | INPUT_PORTS_START( tmaster ) | |
| 107 | static INPUT_PORTS_START( tmaster ) | |
| 108 | 108 | PORT_START |
| 109 | 109 | PORT_DIPNAME( 0x0001, 0x0001, "DSW" ) |
| 110 | 110 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 54 | 54 | ADDRESS_MAP_END |
| 55 | 55 | |
| 56 | 56 | |
| 57 | INPUT_PORTS_START( tcl ) | |
| 57 | static INPUT_PORTS_START( tcl ) | |
| 58 | 58 | PORT_START |
| 59 | 59 | INPUT_PORTS_END |
| 60 | 60 |
| r1238 | r1239 | |
|---|---|---|
| 993 | 993 | // [1] Coins [2] Controls [3] Unknown |
| 994 | 994 | // [4] DSW 1 & 2 [5] DSW 3 [6] Driving Wheel |
| 995 | 995 | |
| 996 | INPUT_PORTS_START( bigrun ) | |
| 996 | static INPUT_PORTS_START( bigrun ) | |
| 997 | 997 | PORT_START_TAG("FAKE") // IN0 - Fake input port - Buttons status |
| 998 | 998 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("P1 Accelerator")\ |
| 999 | 999 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("P1 Low Gear")\ |
| r1238 | r1239 | |
| 1122 | 1122 | // [1] Coins [2] Controls [3] Unknown |
| 1123 | 1123 | // [4] DSW 1 & 2 [5] DSW 3 [6] Driving Wheel |
| 1124 | 1124 | |
| 1125 | INPUT_PORTS_START( cischeat ) | |
| 1125 | static INPUT_PORTS_START( cischeat ) | |
| 1126 | 1126 | PORT_START_TAG("IN0") // Fake input port - Buttons status |
| 1127 | 1127 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("P1 Low Gear")\ |
| 1128 | 1128 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("P1 High Gear")\ |
| r1238 | r1239 | |
| 1224 | 1224 | // [4] DSW 3 [5] Driving Wheel |
| 1225 | 1225 | // [6] Coinage JP&USA [7] Coinage UK&FR |
| 1226 | 1226 | |
| 1227 | INPUT_PORTS_START( f1gpstar ) | |
| 1227 | static INPUT_PORTS_START( f1gpstar ) | |
| 1228 | 1228 | PORT_START_TAG("IN0") // Fake input port - Buttons status |
| 1229 | 1229 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("P1 Accelerator")\ |
| 1230 | 1230 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("P1 Low Gear")\ |
| r1238 | r1239 | |
| 1367 | 1367 | Wild Pilot |
| 1368 | 1368 | **************************************************************************/ |
| 1369 | 1369 | |
| 1370 | INPUT_PORTS_START( wildplt ) | |
| 1370 | static INPUT_PORTS_START( wildplt ) | |
| 1371 | 1371 | PORT_START_TAG("IN0") // DSW 1 & 2 |
| 1372 | 1372 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coinage ) ) |
| 1373 | 1373 | PORT_DIPSETTING( 0x0001, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
| 1447 | 1447 | Scud Hammer |
| 1448 | 1448 | **************************************************************************/ |
| 1449 | 1449 | |
| 1450 | INPUT_PORTS_START( scudhamm ) | |
| 1450 | static INPUT_PORTS_START( scudhamm ) | |
| 1451 | 1451 | PORT_START_TAG("IN0") // Buttons |
| 1452 | 1452 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(1) |
| 1453 | 1453 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) // GAME OVER if pressed on the selection screen |
| r1238 | r1239 | |
| 1525 | 1525 | Arm Champs II |
| 1526 | 1526 | **************************************************************************/ |
| 1527 | 1527 | |
| 1528 | INPUT_PORTS_START( armchmp2 ) | |
| 1528 | static INPUT_PORTS_START( armchmp2 ) | |
| 1529 | 1529 | PORT_START_TAG("IN0") // Buttons + Sensors |
| 1530 | 1530 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_SPECIAL ) // left sensor |
| 1531 | 1531 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_SPECIAL ) // right sensor |
| r1238 | r1239 | |
|---|---|---|
| 3476 | 3476 | |
| 3477 | 3477 | /*******************************************************************/ |
| 3478 | 3478 | |
| 3479 | INPUT_PORTS_START( alpiner ) | |
| 3479 | static INPUT_PORTS_START( alpiner ) | |
| 3480 | 3480 | PORT_START |
| 3481 | 3481 | PORT_DIPNAME( 0x01, 0x01, "DIP4-1" ) |
| 3482 | 3482 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 3547 | 3547 | INPUT_PORTS_END /* Alpine Racer */ |
| 3548 | 3548 | |
| 3549 | 3549 | |
| 3550 | INPUT_PORTS_START( airco22 ) | |
| 3550 | static INPUT_PORTS_START( airco22 ) | |
| 3551 | 3551 | PORT_START |
| 3552 | 3552 | PORT_DIPNAME( 0x01, 0x01, "DIP1" ) |
| 3553 | 3553 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 3599 | 3599 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_BUTTON3 ) |
| 3600 | 3600 | INPUT_PORTS_END /* Air Combat22 */ |
| 3601 | 3601 | |
| 3602 | INPUT_PORTS_START( cybrcycc ) | |
| 3602 | static INPUT_PORTS_START( cybrcycc ) | |
| 3603 | 3603 | PORT_START |
| 3604 | 3604 | PORT_DIPNAME( 0x01, 0x01, "DIP4-1 (Test Mode)" ) |
| 3605 | 3605 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 3649 | 3649 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3650 | 3650 | INPUT_PORTS_END /* Cyber Cycles */ |
| 3651 | 3651 | |
| 3652 | INPUT_PORTS_START( propcycl ) | |
| 3652 | static INPUT_PORTS_START( propcycl ) | |
| 3653 | 3653 | PORT_START /* DIP4 */ |
| 3654 | 3654 | PORT_DIPNAME( 0x01, 0x01, "DIP1" ) |
| 3655 | 3655 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 3711 | 3711 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3712 | 3712 | INPUT_PORTS_END /* Prop Cycle */ |
| 3713 | 3713 | |
| 3714 | INPUT_PORTS_START( cybrcomm ) | |
| 3714 | static INPUT_PORTS_START( cybrcomm ) | |
| 3715 | 3715 | PORT_START |
| 3716 | 3716 | PORT_DIPNAME( 0x0001, 0x0001, "DIP2-1" ) |
| 3717 | 3717 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 3790 | 3790 | PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_X ) PORT_SENSITIVITY( 100) PORT_KEYDELTA(4) PORT_PLAYER(2) /* left joystick: horizontal */ |
| 3791 | 3791 | INPUT_PORTS_END /* Cyber Commando */ |
| 3792 | 3792 | |
| 3793 | INPUT_PORTS_START( timecris ) | |
| 3793 | static INPUT_PORTS_START( timecris ) | |
| 3794 | 3794 | PORT_START |
| 3795 | 3795 | PORT_DIPNAME( 0x01, 0x01, "DIP4-1" ) |
| 3796 | 3796 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 3836 | 3836 | |
| 3837 | 3837 | /*****************************************************************************************************/ |
| 3838 | 3838 | |
| 3839 | INPUT_PORTS_START( acedrvr ) | |
| 3839 | static INPUT_PORTS_START( acedrvr ) | |
| 3840 | 3840 | PORT_START /* 0: DIP2 and DIP3 */ |
| 3841 | 3841 | PORT_DIPNAME( 0x0001, 0x0001, "DIP2-1" ) |
| 3842 | 3842 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 3910 | 3910 | DRIVING_ANALOG_PORTS |
| 3911 | 3911 | INPUT_PORTS_END /* Ace Driver */ |
| 3912 | 3912 | |
| 3913 | INPUT_PORTS_START( victlap ) | |
| 3913 | static INPUT_PORTS_START( victlap ) | |
| 3914 | 3914 | PORT_START /* 0: DIP2 and DIP3 */ |
| 3915 | 3915 | PORT_DIPNAME( 0x0001, 0x0001, "DIP2-1" ) |
| 3916 | 3916 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 3986 | 3986 | DRIVING_ANALOG_PORTS |
| 3987 | 3987 | INPUT_PORTS_END /* Victory Lap */ |
| 3988 | 3988 | |
| 3989 | INPUT_PORTS_START( ridgera ) | |
| 3989 | static INPUT_PORTS_START( ridgera ) | |
| 3990 | 3990 | PORT_START /* 0: DIP2 and DIP3 */ |
| 3991 | 3991 | PORT_DIPNAME( 0x0001, 0x0001, "DIP2-1 (test mode?)" ) |
| 3992 | 3992 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 4061 | 4061 | DRIVING_ANALOG_PORTS |
| 4062 | 4062 | INPUT_PORTS_END /* Ridge Racer */ |
| 4063 | 4063 | |
| 4064 | INPUT_PORTS_START( raveracw ) | |
| 4064 | static INPUT_PORTS_START( raveracw ) | |
| 4065 | 4065 | PORT_START |
| 4066 | 4066 | PORT_DIPNAME( 0x0001, 0x0001, "DIP2-1 (test mode)" ) |
| 4067 | 4067 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 4389 | 4389 | //GAME( 1996, tokyowrx, "Tokyo Wars") |
| 4390 | 4390 | //GAME( 1996, aquajetx, "Aqua Jet") |
| 4391 | 4391 | //GAME( 1997, armdilox, "Armidillo Racing") |
| 4392 | //GAME( 199?, downhbkx, "Downhill Bikers") |
| r1238 | r1239 | |
|---|---|---|
| 175 | 175 | ADDRESS_MAP_END |
| 176 | 176 | |
| 177 | 177 | |
| 178 | INPUT_PORTS_START( flyball ) | |
| 178 | static INPUT_PORTS_START( flyball ) | |
| 179 | 179 | PORT_START /* IN0 */ |
| 180 | 180 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START2 ) |
| 181 | 181 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 111 | 111 | |
| 112 | 112 | |
| 113 | 113 | |
| 114 | INPUT_PORTS_START( redclash ) | |
| 114 | static INPUT_PORTS_START( redclash ) | |
| 115 | 115 | PORT_START /* IN0 */ |
| 116 | 116 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 117 | 117 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 204 | 204 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1) |
| 205 | 205 | INPUT_PORTS_END |
| 206 | 206 | |
| 207 | INPUT_PORTS_START( zerohour ) | |
| 207 | static INPUT_PORTS_START( zerohour ) | |
| 208 | 208 | PORT_START /* IN0 */ |
| 209 | 209 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 210 | 210 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 311 | 311 | ADDRESS_MAP_END |
| 312 | 312 | |
| 313 | 313 | |
| 314 | INPUT_PORTS_START( depthch ) | |
| 314 | static INPUT_PORTS_START( depthch ) | |
| 315 | 315 | PORT_START_TAG("IN0") |
| 316 | 316 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 317 | 317 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 397 | 397 | ADDRESS_MAP_END |
| 398 | 398 | |
| 399 | 399 | |
| 400 | INPUT_PORTS_START( safari ) | |
| 400 | static INPUT_PORTS_START( safari ) | |
| 401 | 401 | PORT_START_TAG("IN0") |
| 402 | 402 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 403 | 403 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 481 | 481 | ADDRESS_MAP_END |
| 482 | 482 | |
| 483 | 483 | |
| 484 | INPUT_PORTS_START( frogs ) | |
| 484 | static INPUT_PORTS_START( frogs ) | |
| 485 | 485 | PORT_START_TAG("IN0") |
| 486 | 486 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY /* The original joystick was a 3-way */ |
| 487 | 487 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY /* stick, of which Mame's 4-way does */ |
| r1238 | r1239 | |
| 617 | 617 | ADDRESS_MAP_END |
| 618 | 618 | |
| 619 | 619 | |
| 620 | INPUT_PORTS_START( headon ) | |
| 620 | static INPUT_PORTS_START( headon ) | |
| 621 | 621 | PORT_START_TAG("IN0") |
| 622 | 622 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 623 | 623 | PORT_DIPSETTING( 0x00, "3" ) |
| r1238 | r1239 | |
| 644 | 644 | INPUT_PORTS_END |
| 645 | 645 | |
| 646 | 646 | |
| 647 | INPUT_PORTS_START( supcrash ) | |
| 647 | static INPUT_PORTS_START( supcrash ) | |
| 648 | 648 | PORT_START_TAG("IN0") |
| 649 | 649 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 650 | 650 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP) PORT_4WAY |
| r1238 | r1239 | |
| 675 | 675 | INPUT_PORTS_END |
| 676 | 676 | |
| 677 | 677 | |
| 678 | INPUT_PORTS_START( sspaceat ) | |
| 678 | static INPUT_PORTS_START( sspaceat ) | |
| 679 | 679 | PORT_START_TAG("IN0") |
| 680 | 680 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 681 | 681 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 840 | 840 | ADDRESS_MAP_END |
| 841 | 841 | |
| 842 | 842 | |
| 843 | INPUT_PORTS_START( headon2 ) | |
| 843 | static INPUT_PORTS_START( headon2 ) | |
| 844 | 844 | PORT_START_TAG("IN0") |
| 845 | 845 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 846 | 846 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 872 | 872 | INPUT_PORTS_END |
| 873 | 873 | |
| 874 | 874 | /* this actually seems to ignore the dipswitches and is hardcoded to 2 coins 1 credit, and 2 lives */ |
| 875 | INPUT_PORTS_START( car2 ) | |
| 875 | static INPUT_PORTS_START( car2 ) | |
| 876 | 876 | PORT_START_TAG("IN0") |
| 877 | 877 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 878 | 878 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 904 | 904 | PORT_COIN |
| 905 | 905 | INPUT_PORTS_END |
| 906 | 906 | |
| 907 | INPUT_PORTS_START( digger ) | |
| 907 | static INPUT_PORTS_START( digger ) | |
| 908 | 908 | PORT_START_TAG("IN0") |
| 909 | 909 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 910 | 910 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 1258 | 1258 | ADDRESS_MAP_END |
| 1259 | 1259 | |
| 1260 | 1260 | |
| 1261 | INPUT_PORTS_START( invho2 ) | |
| 1261 | static INPUT_PORTS_START( invho2 ) | |
| 1262 | 1262 | PORT_START_TAG("IN0") |
| 1263 | 1263 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 1264 | 1264 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| r1238 | r1239 | |
| 1312 | 1312 | INPUT_PORTS_END |
| 1313 | 1313 | |
| 1314 | 1314 | |
| 1315 | INPUT_PORTS_START( invds ) | |
| 1315 | static INPUT_PORTS_START( invds ) | |
| 1316 | 1316 | PORT_START_TAG("IN0") |
| 1317 | 1317 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 1318 | 1318 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| r1238 | r1239 | |
| 1364 | 1364 | INPUT_PORTS_END |
| 1365 | 1365 | |
| 1366 | 1366 | |
| 1367 | INPUT_PORTS_START( sspacaho ) | |
| 1367 | static INPUT_PORTS_START( sspacaho ) | |
| 1368 | 1368 | PORT_START_TAG("IN0") |
| 1369 | 1369 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| 1370 | 1370 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| r1238 | r1239 | |
| 1415 | 1415 | INPUT_PORTS_END |
| 1416 | 1416 | |
| 1417 | 1417 | |
| 1418 | INPUT_PORTS_START( tranqgun ) | |
| 1418 | static INPUT_PORTS_START( tranqgun ) | |
| 1419 | 1419 | PORT_START_TAG("IN0") |
| 1420 | 1420 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| 1421 | 1421 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| r1238 | r1239 | |
| 1466 | 1466 | INPUT_PORTS_END |
| 1467 | 1467 | |
| 1468 | 1468 | |
| 1469 | INPUT_PORTS_START( spacetrk ) | |
| 1469 | static INPUT_PORTS_START( spacetrk ) | |
| 1470 | 1470 | PORT_START_TAG("IN0") |
| 1471 | 1471 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 1472 | 1472 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| r1238 | r1239 | |
| 1517 | 1517 | INPUT_PORTS_END |
| 1518 | 1518 | |
| 1519 | 1519 | |
| 1520 | INPUT_PORTS_START( sptrekct ) | |
| 1520 | static INPUT_PORTS_START( sptrekct ) | |
| 1521 | 1521 | PORT_START_TAG("IN0") |
| 1522 | 1522 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 1523 | 1523 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| r1238 | r1239 | |
| 1568 | 1568 | INPUT_PORTS_END |
| 1569 | 1569 | |
| 1570 | 1570 | |
| 1571 | INPUT_PORTS_START( carnival ) | |
| 1571 | static INPUT_PORTS_START( carnival ) | |
| 1572 | 1572 | PORT_START_TAG("IN0") |
| 1573 | 1573 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 1574 | 1574 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| r1238 | r1239 | |
| 1621 | 1621 | INPUT_PORTS_END |
| 1622 | 1622 | |
| 1623 | 1623 | |
| 1624 | INPUT_PORTS_START( carnvckt ) | |
| 1624 | static INPUT_PORTS_START( carnvckt ) | |
| 1625 | 1625 | PORT_START_TAG("IN0") |
| 1626 | 1626 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 1627 | 1627 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| r1238 | r1239 | |
| 1674 | 1674 | INPUT_PORTS_END |
| 1675 | 1675 | |
| 1676 | 1676 | |
| 1677 | INPUT_PORTS_START( brdrline ) | |
| 1677 | static INPUT_PORTS_START( brdrline ) | |
| 1678 | 1678 | PORT_START_TAG("IN0") |
| 1679 | 1679 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| 1680 | 1680 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| r1238 | r1239 | |
| 1730 | 1730 | INPUT_PORTS_END |
| 1731 | 1731 | |
| 1732 | 1732 | |
| 1733 | INPUT_PORTS_START( pulsar ) | |
| 1733 | static INPUT_PORTS_START( pulsar ) | |
| 1734 | 1734 | PORT_START_TAG("IN0") |
| 1735 | 1735 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 1736 | 1736 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| r1238 | r1239 | |
| 1781 | 1781 | INPUT_PORTS_END |
| 1782 | 1782 | |
| 1783 | 1783 | |
| 1784 | INPUT_PORTS_START( heiankyo ) | |
| 1784 | static INPUT_PORTS_START( heiankyo ) | |
| 1785 | 1785 | PORT_START_TAG("IN0") |
| 1786 | 1786 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| 1787 | 1787 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| r1238 | r1239 | |
| 1832 | 1832 | INPUT_PORTS_END |
| 1833 | 1833 | |
| 1834 | 1834 | |
| 1835 | INPUT_PORTS_START( alphaho ) | |
| 1835 | static INPUT_PORTS_START( alphaho ) | |
| 1836 | 1836 | PORT_START_TAG("IN0") |
| 1837 | 1837 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| 1838 | 1838 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| r1238 | r1239 | |
| 2079 | 2079 | ADDRESS_MAP_END |
| 2080 | 2080 | |
| 2081 | 2081 | |
| 2082 | INPUT_PORTS_START( samurai ) | |
| 2082 | static INPUT_PORTS_START( samurai ) | |
| 2083 | 2083 | PORT_START_TAG("IN0") |
| 2084 | 2084 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 2085 | 2085 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| r1238 | r1239 | |
| 2195 | 2195 | ADDRESS_MAP_END |
| 2196 | 2196 | |
| 2197 | 2197 | |
| 2198 | INPUT_PORTS_START( nsub ) | |
| 2198 | static INPUT_PORTS_START( nsub ) | |
| 2199 | 2199 | PORT_START_TAG("IN0") |
| 2200 | 2200 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 2201 | 2201 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 2295 | 2295 | ADDRESS_MAP_END |
| 2296 | 2296 | |
| 2297 | 2297 | |
| 2298 | INPUT_PORTS_START( invinco ) | |
| 2298 | static INPUT_PORTS_START( invinco ) | |
| 2299 | 2299 | PORT_START_TAG("IN0") |
| 2300 | 2300 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 2301 | 2301 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 109 | 109 | * |
| 110 | 110 | *************************************/ |
| 111 | 111 | |
| 112 | INPUT_PORTS_START( xybots ) | |
| 112 | static INPUT_PORTS_START( xybots ) | |
| 113 | 113 | PORT_START /* ffe100 */ |
| 114 | 114 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START2 ) |
| 115 | 115 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| r1238 | r1239 | |
|---|---|---|
| 315 | 315 | /* Input Ports */ |
| 316 | 316 | |
| 317 | 317 | /* Derived from Zarzon. Might not reflect the actual hardware. */ |
| 318 | INPUT_PORTS_START( sasuke ) | |
| 318 | static INPUT_PORTS_START( sasuke ) | |
| 319 | 319 | PORT_START // IN0 |
| 320 | 320 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 321 | 321 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| r1238 | r1239 | |
| 363 | 363 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* connected to a binary counter */ |
| 364 | 364 | INPUT_PORTS_END |
| 365 | 365 | |
| 366 | INPUT_PORTS_START( satansat ) | |
| 366 | static INPUT_PORTS_START( satansat ) | |
| 367 | 367 | PORT_START // IN0 |
| 368 | 368 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 369 | 369 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| r1238 | r1239 | |
| 410 | 410 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* connected to a binary counter */ |
| 411 | 411 | INPUT_PORTS_END |
| 412 | 412 | |
| 413 | INPUT_PORTS_START( vanguard ) | |
| 413 | static INPUT_PORTS_START( vanguard ) | |
| 414 | 414 | PORT_START // IN0 |
| 415 | 415 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON3 ) |
| 416 | 416 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON4 ) |
| r1238 | r1239 | |
| 472 | 472 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START1 ) |
| 473 | 473 | INPUT_PORTS_END |
| 474 | 474 | |
| 475 | INPUT_PORTS_START( fantasy ) | |
| 475 | static INPUT_PORTS_START( fantasy ) | |
| 476 | 476 | PORT_START // IN0 |
| 477 | 477 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 478 | 478 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 536 | 536 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START1 ) |
| 537 | 537 | INPUT_PORTS_END |
| 538 | 538 | |
| 539 | INPUT_PORTS_START( nibbler ) | |
| 539 | static INPUT_PORTS_START( nibbler ) | |
| 540 | 540 | PORT_START // IN0 |
| 541 | 541 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Debug 0") PORT_CODE(KEYCODE_Z) // slow down |
| 542 | 542 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Debug 1") PORT_CODE(KEYCODE_X) |
| r1238 | r1239 | |
| 590 | 590 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START1 ) |
| 591 | 591 | INPUT_PORTS_END |
| 592 | 592 | |
| 593 | INPUT_PORTS_START( pballoon ) | |
| 593 | static INPUT_PORTS_START( pballoon ) | |
| 594 | 594 | PORT_START // IN0 |
| 595 | 595 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 596 | 596 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 468 | 468 | * Input ports * |
| 469 | 469 | *************************/ |
| 470 | 470 | |
| 471 | INPUT_PORTS_START( magicfly ) | |
| 471 | static INPUT_PORTS_START( magicfly ) | |
| 472 | 472 | /* Multiplexed 4 x 5 bits. |
| 473 | 473 | Code accept only bits 0, 1, 2, 3 and 5 as valid. */ |
| 474 | 474 | PORT_START_TAG("IN0-0") |
| r1238 | r1239 | |
| 530 | 530 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 531 | 531 | INPUT_PORTS_END |
| 532 | 532 | |
| 533 | INPUT_PORTS_START( 7mezzo ) | |
| 533 | static INPUT_PORTS_START( 7mezzo ) | |
| 534 | 534 | /* Multiplexed 4 x 5 bits. |
| 535 | 535 | Code accept only bits 0, 1, 2, 3 and 5 as valid. */ |
| 536 | 536 | PORT_START_TAG("IN0-0") |
| r1238 | r1239 | |
|---|---|---|
| 820 | 820 | |
| 821 | 821 | #define PORTS(GAMENAME, FOURTH_LANGUAGE) \ |
| 822 | 822 | \ |
| 823 | INPUT_PORTS_START( GAMENAME ) \ | |
| 823 | static INPUT_PORTS_START( GAMENAME ) \ | |
| 824 | 824 | PORT_START /* IN0 */ \ |
| 825 | 825 | PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* trackball data */ \ |
| 826 | 826 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Cabinet )) \ |
| r1238 | r1239 | |
| 917 | 917 | PORTS(caterplr, DEF_STR( Italian )) |
| 918 | 918 | |
| 919 | 919 | |
| 920 | INPUT_PORTS_START( centtime ) | |
| 920 | static INPUT_PORTS_START( centtime ) | |
| 921 | 921 | PORT_START /* IN0 */ |
| 922 | 922 | PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* trackball data */ |
| 923 | 923 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
| 1007 | 1007 | INPUT_PORTS_END |
| 1008 | 1008 | |
| 1009 | 1009 | |
| 1010 | INPUT_PORTS_START( magworm ) | |
| 1010 | static INPUT_PORTS_START( magworm ) | |
| 1011 | 1011 | PORT_START /* IN0 */ |
| 1012 | 1012 | PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* trackball data */ |
| 1013 | 1013 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Cabinet )) |
| r1238 | r1239 | |
| 1094 | 1094 | INPUT_PORTS_END |
| 1095 | 1095 | |
| 1096 | 1096 | |
| 1097 | INPUT_PORTS_START( milliped ) | |
| 1097 | static INPUT_PORTS_START( milliped ) | |
| 1098 | 1098 | PORT_START /* IN0 $2000 */ /* see port 6 for x trackball */ |
| 1099 | 1099 | PORT_DIPNAME(0x03, 0x00, DEF_STR( Language ) ) PORT_DIPLOCATION("P8:1,2") |
| 1100 | 1100 | PORT_DIPSETTING( 0x00, DEF_STR( English ) ) |
| r1238 | r1239 | |
| 1210 | 1210 | INPUT_PORTS_END |
| 1211 | 1211 | |
| 1212 | 1212 | |
| 1213 | INPUT_PORTS_START( warlords ) | |
| 1213 | static INPUT_PORTS_START( warlords ) | |
| 1214 | 1214 | PORT_START /* IN0 */ |
| 1215 | 1215 | PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1216 | 1216 | PORT_DIPNAME( 0x10, 0x00, "Diag Step" ) /* Not referenced */ |
| r1238 | r1239 | |
| 1283 | 1283 | INPUT_PORTS_END |
| 1284 | 1284 | |
| 1285 | 1285 | |
| 1286 | INPUT_PORTS_START( bullsdrt ) | |
| 1286 | static INPUT_PORTS_START( bullsdrt ) | |
| 1287 | 1287 | PORT_START /* IN0 */ |
| 1288 | 1288 | PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* trackball data */ |
| 1289 | 1289 | PORT_BIT( 0x30, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 505 | 505 | * |
| 506 | 506 | *************************************/ |
| 507 | 507 | |
| 508 | INPUT_PORTS_START( marble ) | |
| 508 | static INPUT_PORTS_START( marble ) | |
| 509 | 509 | PORT_START /* F20000 */ |
| 510 | 510 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(30) PORT_KEYDELTA(30) PORT_REVERSE PORT_PLAYER(1) |
| 511 | 511 | |
| r1238 | r1239 | |
| 540 | 540 | INPUT_PORTS_END |
| 541 | 541 | |
| 542 | 542 | |
| 543 | INPUT_PORTS_START( peterpak ) | |
| 543 | static INPUT_PORTS_START( peterpak ) | |
| 544 | 544 | PORT_START /* F40000 */ |
| 545 | 545 | PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 546 | 546 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) |
| r1238 | r1239 | |
| 580 | 580 | INPUT_PORTS_END |
| 581 | 581 | |
| 582 | 582 | |
| 583 | INPUT_PORTS_START( indytemp ) | |
| 583 | static INPUT_PORTS_START( indytemp ) | |
| 584 | 584 | PORT_START /* F40000 */ |
| 585 | 585 | PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 586 | 586 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) |
| r1238 | r1239 | |
| 620 | 620 | INPUT_PORTS_END |
| 621 | 621 | |
| 622 | 622 | |
| 623 | INPUT_PORTS_START( roadrunn ) | |
| 623 | static INPUT_PORTS_START( roadrunn ) | |
| 624 | 624 | PORT_START /* F40000 */ |
| 625 | 625 | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_MINMAX(0x10,0xf0) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_PLAYER(1) |
| 626 | 626 | |
| r1238 | r1239 | |
| 656 | 656 | INPUT_PORTS_END |
| 657 | 657 | |
| 658 | 658 | |
| 659 | INPUT_PORTS_START( roadblst ) | |
| 659 | static INPUT_PORTS_START( roadblst ) | |
| 660 | 660 | PORT_START /* F20000 */ |
| 661 | 661 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_REVERSE |
| 662 | 662 |
| r1238 | r1239 | |
|---|---|---|
| 741 | 741 | INPUT PORTS, DIPs |
| 742 | 742 | ***********************************************************/ |
| 743 | 743 | |
| 744 | INPUT_PORTS_START( wgp_joy_generic ) | |
| 744 | static INPUT_PORTS_START( wgp_joy_generic ) | |
| 745 | 745 | PORT_START_TAG("DSWA") |
| 746 | 746 | PORT_DIPNAME( 0x01, 0x01, "Gear Shift" ) /* see notes */ |
| 747 | 747 | PORT_DIPSETTING( 0x01, DEF_STR( Normal ) ) |
| r1238 | r1239 | |
| 803 | 803 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 804 | 804 | INPUT_PORTS_END |
| 805 | 805 | |
| 806 | INPUT_PORTS_START( wgp_no_joy_generic ) | |
| 806 | static INPUT_PORTS_START( wgp_no_joy_generic ) | |
| 807 | 807 | PORT_INCLUDE(wgp_joy_generic) |
| 808 | 808 | |
| 809 | 809 | PORT_MODIFY("DSWB") |
| r1238 | r1239 | |
| 852 | 852 | INPUT_PORTS_END |
| 853 | 853 | |
| 854 | 854 | |
| 855 | INPUT_PORTS_START( wgp ) | |
| 855 | static INPUT_PORTS_START( wgp ) | |
| 856 | 856 | PORT_INCLUDE(wgp_no_joy_generic) |
| 857 | 857 | |
| 858 | 858 | /* 0x180000 -> 0x10bf16 and 0x140010 (shared RAM) */ |
| r1238 | r1239 | |
| 866 | 866 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON6 ) PORT_PLAYER(1) /* "brake lump" (lamp?) - test mode only */ |
| 867 | 867 | INPUT_PORTS_END |
| 868 | 868 | |
| 869 | INPUT_PORTS_START( wgpj ) | |
| 869 | static INPUT_PORTS_START( wgpj ) | |
| 870 | 870 | PORT_INCLUDE(wgp) |
| 871 | 871 | |
| 872 | 872 | PORT_MODIFY("DSWA") |
| 873 | 873 | TAITO_COINAGE_JAPAN_NEW |
| 874 | 874 | INPUT_PORTS_END |
| 875 | 875 | |
| 876 | INPUT_PORTS_START( wgpjoy ) | |
| 876 | static INPUT_PORTS_START( wgpjoy ) | |
| 877 | 877 | PORT_INCLUDE(wgp_joy_generic) |
| 878 | 878 | |
| 879 | 879 | /* 0x180000 -> 0x10bf1a and 0x140010 (shared RAM) */ |
| r1238 | r1239 | |
| 883 | 883 | /* 0x180002 -> 0x10bf1c and 0x140012 (shared RAM) : DSWB*/ |
| 884 | 884 | INPUT_PORTS_END |
| 885 | 885 | |
| 886 | INPUT_PORTS_START( wgp2 ) | |
| 886 | static INPUT_PORTS_START( wgp2 ) | |
| 887 | 887 | PORT_INCLUDE(wgp_no_joy_generic) |
| 888 | 888 | |
| 889 | 889 | /* 0x180000 -> 0x107d3a.b (-$2c6,A5) and 0x140018 (shared RAM) */ |
| r1238 | r1239 | |
|---|---|---|
| 178 | 178 | FDT_B[offset] = data; |
| 179 | 179 | } |
| 180 | 180 | |
| 181 | INPUT_PORTS_START( turbosub ) | |
| 181 | static INPUT_PORTS_START( turbosub ) | |
| 182 | 182 | PORT_START |
| 183 | 183 | INPUT_PORTS_END |
| 184 | 184 |
| r1238 | r1239 | |
|---|---|---|
| 431 | 431 | |
| 432 | 432 | |
| 433 | 433 | |
| 434 | INPUT_PORTS_START( welltris ) | |
| 434 | static INPUT_PORTS_START( welltris ) | |
| 435 | 435 | PORT_START |
| 436 | 436 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 437 | 437 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 591 | 591 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) |
| 592 | 592 | INPUT_PORTS_END |
| 593 | 593 | |
| 594 | INPUT_PORTS_START( quiz18k ) | |
| 594 | static INPUT_PORTS_START( quiz18k ) | |
| 595 | 595 | PORT_START |
| 596 | 596 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 597 | 597 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 210 | 210 | ADDRESS_MAP_END |
| 211 | 211 | |
| 212 | 212 | |
| 213 | INPUT_PORTS_START( sprint8 ) | |
| 213 | static INPUT_PORTS_START( sprint8 ) | |
| 214 | 214 | |
| 215 | 215 | PORT_START |
| 216 | 216 | PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
| 345 | 345 | INPUT_PORTS_END |
| 346 | 346 | |
| 347 | 347 | |
| 348 | INPUT_PORTS_START( sprint8p ) | |
| 348 | static INPUT_PORTS_START( sprint8p ) | |
| 349 | 349 | |
| 350 | 350 | PORT_START |
| 351 | 351 | PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
|---|---|---|
| 350 | 350 | GFXDECODE_ENTRY( REGION_GFX3, 0, spritelayout, 0x000, 32 ) |
| 351 | 351 | GFXDECODE_END |
| 352 | 352 | |
| 353 | INPUT_PORTS_START( pturn ) | |
| 353 | static INPUT_PORTS_START( pturn ) | |
| 354 | 354 | PORT_START_TAG("IN0") |
| 355 | 355 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 356 | 356 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 108 | 108 | AM_RANGE(0x1f0000, 0x1f0fff) AM_WRITE(gumbo_bg_videoram_w) AM_BASE(&gumbo_bg_videoram) // bg tilemap |
| 109 | 109 | ADDRESS_MAP_END |
| 110 | 110 | |
| 111 | INPUT_PORTS_START( gumbo ) | |
| 111 | static INPUT_PORTS_START( gumbo ) | |
| 112 | 112 | PORT_START /* DSW */ |
| 113 | 113 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 114 | 114 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 151 | 151 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) |
| 152 | 152 | INPUT_PORTS_END |
| 153 | 153 | |
| 154 | INPUT_PORTS_START( msbingo ) | |
| 154 | static INPUT_PORTS_START( msbingo ) | |
| 155 | 155 | PORT_START /* DSW */ |
| 156 | 156 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 157 | 157 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 194 | 194 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) |
| 195 | 195 | INPUT_PORTS_END |
| 196 | 196 | |
| 197 | INPUT_PORTS_START( mspuzzle ) | |
| 197 | static INPUT_PORTS_START( mspuzzle ) | |
| 198 | 198 | PORT_START /* DSW */ |
| 199 | 199 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 200 | 200 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 237 | 237 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) |
| 238 | 238 | INPUT_PORTS_END |
| 239 | 239 | |
| 240 | INPUT_PORTS_START( dblpoint ) | |
| 240 | static INPUT_PORTS_START( dblpoint ) | |
| 241 | 241 | PORT_START /* Inputs */ |
| 242 | 242 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 243 | 243 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 241 | 241 | ADDRESS_MAP_END |
| 242 | 242 | |
| 243 | 243 | |
| 244 | INPUT_PORTS_START( gselect ) | |
| 244 | static INPUT_PORTS_START( gselect ) | |
| 245 | 245 | PORT_START /* DSW A */ |
| 246 | 246 | PORT_DIPNAME( 0x01, 0x01, "Poker: Discard Cards" ) |
| 247 | 247 | PORT_DIPSETTING( 0x01, "5" ) |
| r1238 | r1239 | |
| 292 | 292 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 293 | 293 | INPUT_PORTS_END |
| 294 | 294 | |
| 295 | INPUT_PORTS_START( gepoker ) | |
| 295 | static INPUT_PORTS_START( gepoker ) | |
| 296 | 296 | PORT_INCLUDE( gselect ) |
| 297 | 297 | |
| 298 | 298 | PORT_MODIFY("IN0") |
| r1238 | r1239 | |
| 300 | 300 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* no button 12 */ |
| 301 | 301 | INPUT_PORTS_END |
| 302 | 302 | |
| 303 | INPUT_PORTS_START( getrivia ) | |
| 303 | static INPUT_PORTS_START( getrivia ) | |
| 304 | 304 | PORT_START_TAG("DSWA") |
| 305 | 305 | PORT_DIPNAME( 0x03, 0x01, "Questions" ) |
| 306 | 306 | PORT_DIPSETTING( 0x00, "4" ) |
| r1238 | r1239 | |
| 350 | 350 | |
| 351 | 351 | INPUT_PORTS_END |
| 352 | 352 | |
| 353 | INPUT_PORTS_START( sextriv1 ) | |
| 353 | static INPUT_PORTS_START( sextriv1 ) | |
| 354 | 354 | PORT_INCLUDE( getrivia ) |
| 355 | 355 | |
| 356 | 356 | PORT_MODIFY("IN0") |
| r1238 | r1239 | |
|---|---|---|
| 410 | 410 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) ) \ |
| 411 | 411 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_2C ) ) \ |
| 412 | 412 | |
| 413 | INPUT_PORTS_START( hbarrel ) | |
| 413 | static INPUT_PORTS_START( hbarrel ) | |
| 414 | 414 | DEC0_PLAYER1_CONTROL |
| 415 | 415 | DEC0_PLAYER2_CONTROL |
| 416 | 416 | DEC0_MACHINE_CONTROL |
| r1238 | r1239 | |
| 467 | 467 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_CODE_DEC(KEYCODE_N) PORT_CODE_INC(KEYCODE_M) PORT_REVERSE PORT_PLAYER(2) |
| 468 | 468 | INPUT_PORTS_END |
| 469 | 469 | |
| 470 | INPUT_PORTS_START( birdtry ) | |
| 470 | static INPUT_PORTS_START( birdtry ) | |
| 471 | 471 | DEC0_PLAYER1_CONTROL |
| 472 | 472 | DEC0_PLAYER2_CONTROL |
| 473 | 473 | DEC0_MACHINE_CONTROL |
| r1238 | r1239 | |
| 518 | 518 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_CODE_DEC(KEYCODE_N) PORT_CODE_INC(KEYCODE_M) PORT_REVERSE PORT_PLAYER(2) |
| 519 | 519 | INPUT_PORTS_END |
| 520 | 520 | |
| 521 | INPUT_PORTS_START( baddudes ) | |
| 521 | static INPUT_PORTS_START( baddudes ) | |
| 522 | 522 | DEC0_PLAYER1_CONTROL |
| 523 | 523 | DEC0_PLAYER2_CONTROL |
| 524 | 524 | DEC0_MACHINE_CONTROL |
| r1238 | r1239 | |
| 567 | 567 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* unused */ |
| 568 | 568 | INPUT_PORTS_END |
| 569 | 569 | |
| 570 | INPUT_PORTS_START( robocop ) | |
| 570 | static INPUT_PORTS_START( robocop ) | |
| 571 | 571 | DEC0_PLAYER1_CONTROL |
| 572 | 572 | DEC0_PLAYER2_CONTROL |
| 573 | 573 | DEC0_MACHINE_CONTROL |
| r1238 | r1239 | |
| 612 | 612 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 613 | 613 | INPUT_PORTS_END |
| 614 | 614 | |
| 615 | INPUT_PORTS_START( hippodrm ) | |
| 615 | static INPUT_PORTS_START( hippodrm ) | |
| 616 | 616 | DEC0_PLAYER1_CONTROL |
| 617 | 617 | DEC0_PLAYER2_CONTROL |
| 618 | 618 | DEC0_MACHINE_CONTROL |
| r1238 | r1239 | |
| 682 | 682 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) |
| 683 | 683 | |
| 684 | 684 | |
| 685 | INPUT_PORTS_START( slyspy ) | |
| 685 | static INPUT_PORTS_START( slyspy ) | |
| 686 | 686 | DEC1_PLAYER1_CONTROL |
| 687 | 687 | DEC1_PLAYER2_CONTROL |
| 688 | 688 | |
| r1238 | r1239 | |
| 734 | 734 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 735 | 735 | INPUT_PORTS_END |
| 736 | 736 | |
| 737 | INPUT_PORTS_START( midres ) | |
| 737 | static INPUT_PORTS_START( midres ) | |
| 738 | 738 | DEC1_PLAYER1_CONTROL |
| 739 | 739 | DEC1_PLAYER2_CONTROL |
| 740 | 740 | |
| r1238 | r1239 | |
| 794 | 794 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_CODE_DEC(KEYCODE_N) PORT_CODE_INC(KEYCODE_M) PORT_REVERSE PORT_PLAYER(2) |
| 795 | 795 | INPUT_PORTS_END |
| 796 | 796 | |
| 797 | INPUT_PORTS_START( bouldash ) | |
| 797 | static INPUT_PORTS_START( bouldash ) | |
| 798 | 798 | DEC1_PLAYER1_CONTROL |
| 799 | 799 | DEC1_PLAYER2_CONTROL |
| 800 | 800 |
| r1238 | r1239 | |
|---|---|---|
| 1124 | 1124 | Change Air Blade |
| 1125 | 1125 | ***************************************************************************/ |
| 1126 | 1126 | |
| 1127 | INPUT_PORTS_START( cairblad ) | |
| 1127 | static INPUT_PORTS_START( cairblad ) | |
| 1128 | 1128 | PORT_START // IN0 |
| 1129 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) | |
| 1129 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) PORT_DIPLOCATION( "DSW1:1,2,3" ) | |
| 1130 | 1130 | PORT_DIPSETTING( 0x0005, DEF_STR( 3C_1C ) ) |
| 1131 | 1131 | PORT_DIPSETTING( 0x0006, DEF_STR( 2C_1C ) ) |
| 1132 | 1132 | PORT_DIPSETTING( 0x0007, DEF_STR( 1C_1C ) ) |
| r1238 | r1239 | |
| 1135 | 1135 | PORT_DIPSETTING( 0x0002, DEF_STR( 1C_4C ) ) |
| 1136 | 1136 | PORT_DIPSETTING( 0x0001, DEF_STR( 1C_5C ) ) |
| 1137 | 1137 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 1138 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) | |
| 1138 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) PORT_DIPLOCATION( "DSW1:4,5,6" ) | |
| 1139 | 1139 | PORT_DIPSETTING( 0x0028, DEF_STR( 3C_1C ) ) |
| 1140 | 1140 | PORT_DIPSETTING( 0x0030, DEF_STR( 2C_1C ) ) |
| 1141 | 1141 | PORT_DIPSETTING( 0x0038, DEF_STR( 1C_1C ) ) |
| r1238 | r1239 | |
| 1144 | 1144 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_4C ) ) |
| 1145 | 1145 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_5C ) ) |
| 1146 | 1146 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 1147 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) /* Manual lists this dip as "Unused" */ | |
| 1148 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 1149 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1150 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unused ) ) /* Manual lists this dip as "Unused" */ | |
| 1151 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 1152 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1147 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "DSW1:7" ) /* Manual lists this dip as "Unused" */ | |
| 1148 | PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0080, "DSW1:8" ) /* Manual lists this dip as "Unused" */ | |
| 1153 | 1149 | |
| 1154 | 1150 | PORT_START // IN1 |
| 1155 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 1151 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION( "DSW2:1" ) | |
| 1156 | 1152 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 1157 | 1153 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1158 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) | |
| 1154 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION( "DSW2:2" ) | |
| 1159 | 1155 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 1160 | 1156 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) |
| 1161 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) | |
| 1157 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) PORT_DIPLOCATION( "DSW2:3,4" ) | |
| 1162 | 1158 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) |
| 1163 | 1159 | PORT_DIPSETTING( 0x000c, DEF_STR( Normal ) ) |
| 1164 | 1160 | PORT_DIPSETTING( 0x0004, DEF_STR( Hard ) ) |
| 1165 | 1161 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 1166 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Free_Play ) ) | |
| 1162 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Free_Play ) ) PORT_DIPLOCATION( "DSW2:5" ) | |
| 1167 | 1163 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) |
| 1168 | 1164 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1169 | PORT_DIPNAME( 0x0060, 0x0060, DEF_STR( Bonus_Life ) ) | |
| 1165 | PORT_DIPNAME( 0x0060, 0x0060, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION( "DSW2:6,7" ) | |
| 1170 | 1166 | PORT_DIPSETTING( 0x0040, "Every 2 Mil" ) |
| 1171 | 1167 | PORT_DIPSETTING( 0x0060, "2 Mil/6 Mil" ) |
| 1172 | 1168 | PORT_DIPSETTING( 0x0020, "4 Million" ) |
| 1173 | 1169 | PORT_DIPSETTING( 0x0000, DEF_STR( None ) ) |
| 1174 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 1170 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "DSW2:8" ) | |
| 1175 | 1171 | |
| 1176 | 1172 | PORT_START // IN2 |
| 1177 | 1173 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 1206 | 1202 | Drift Out '94 |
| 1207 | 1203 | ***************************************************************************/ |
| 1208 | 1204 | |
| 1209 | INPUT_PORTS_START( drifto94 ) | |
| 1205 | static INPUT_PORTS_START( drifto94 ) | |
| 1210 | 1206 | PORT_START // IN0 - $210002 |
| 1211 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 1207 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION( "DSW1:1" ) | |
| 1212 | 1208 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 1213 | 1209 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1214 | PORT_SERVICE( 0x0002, IP_ACTIVE_LOW ) | |
| 1215 | PORT_DIPNAME( 0x0004, 0x0004, "Sound Test" ) | |
| 1210 | PORT_SERVICE_DIPLOC( 0x0002, IP_ACTIVE_LOW, "DSW1:2" ) | |
| 1211 | PORT_DIPNAME( 0x0004, 0x0004, "Sound Test" ) PORT_DIPLOCATION( "DSW1:3" ) | |
| 1216 | 1212 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) |
| 1217 | 1213 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1218 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Demo_Sounds ) ) | |
| 1214 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION( "DSW1:4" ) | |
| 1219 | 1215 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 1220 | 1216 | PORT_DIPSETTING( 0x0008, DEF_STR( On ) ) |
| 1221 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Coin_A ) ) | |
| 1217 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Coin_A ) ) PORT_DIPLOCATION( "DSW1:5,6" ) | |
| 1222 | 1218 | PORT_DIPSETTING( 0x0010, DEF_STR( 2C_1C ) ) |
| 1223 | 1219 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_1C ) ) |
| 1224 | 1220 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_3C ) ) |
| 1225 | 1221 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_2C ) ) |
| 1226 | PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Coin_B ) ) | |
| 1222 | PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION( "DSW1:7,8" ) | |
| 1227 | 1223 | PORT_DIPSETTING( 0x0040, DEF_STR( 2C_1C ) ) |
| 1228 | 1224 | PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_1C ) ) |
| 1229 | 1225 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_3C ) ) |
| 1230 | 1226 | PORT_DIPSETTING( 0x0080, DEF_STR( 1C_2C ) ) |
| 1231 | 1227 | |
| 1232 | 1228 | PORT_START // IN1 - $210004 |
| 1233 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) | |
| 1229 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) PORT_DIPLOCATION( "DSW2:1,2" ) | |
| 1234 | 1230 | PORT_DIPSETTING( 0x0003, DEF_STR( Normal ) ) |
| 1235 | 1231 | PORT_DIPSETTING( 0x0002, DEF_STR( Easy ) ) |
| 1236 | 1232 | PORT_DIPSETTING( 0x0001, DEF_STR( Hard ) ) |
| 1237 | 1233 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 1238 | PORT_DIPNAME( 0x000c, 0x000c, "Unknown 2-2&3*" ) /* Manual lists these dips as "Unused" */ | |
| 1239 | PORT_DIPSETTING( 0x000c, "11 (0)" ) | |
| 1240 | PORT_DIPSETTING( 0x0008, "10 (1)" ) | |
| 1241 | PORT_DIPSETTING( 0x0004, "01 (0)" ) | |
| 1242 | PORT_DIPSETTING( 0x0000, "00 (2)" ) | |
| 1243 | PORT_DIPNAME( 0x0010, 0x0010, "Music Volume" ) | |
| 1234 | PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "DSW2:3" ) /* Manual lists these dips as "Unused" */ | |
| 1235 | PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "DSW2:4" ) | |
| 1236 | PORT_DIPNAME( 0x0010, 0x0010, "Music Volume" ) PORT_DIPLOCATION( "DSW2:5" ) | |
| 1244 | 1237 | PORT_DIPSETTING( 0x0000, "Quiet" ) |
| 1245 | 1238 | PORT_DIPSETTING( 0x0010, "Loud" ) |
| 1246 | PORT_DIPNAME( 0x0020, 0x0020, "Sound Volume" ) | |
| 1239 | PORT_DIPNAME( 0x0020, 0x0020, "Sound Volume" ) PORT_DIPLOCATION( "DSW2:6" ) | |
| 1247 | 1240 | PORT_DIPSETTING( 0x0000, "Quiet" ) |
| 1248 | 1241 | PORT_DIPSETTING( 0x0020, "Loud" ) |
| 1249 | PORT_DIPNAME( 0x0040, 0x0040, "Save Best Time" ) | |
| 1242 | PORT_DIPNAME( 0x0040, 0x0040, "Save Best Time" ) PORT_DIPLOCATION( "DSW2:7" ) | |
| 1250 | 1243 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) |
| 1251 | 1244 | PORT_DIPSETTING( 0x0040, DEF_STR( Yes ) ) |
| 1252 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unused ) ) /* Manual lists this dip as "Unused" */ | |
| 1253 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 1254 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1245 | PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0080, "DSW2:8" ) /* Manual lists this dip as "Unused" */ | |
| 1255 | 1246 | |
| 1256 | 1247 | PORT_START // IN2 - $210008 |
| 1257 | 1248 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 1286 | 1277 | Eagle Shot Golf |
| 1287 | 1278 | ***************************************************************************/ |
| 1288 | 1279 | |
| 1289 | INPUT_PORTS_START( eaglshot ) | |
| 1280 | static INPUT_PORTS_START( eaglshot ) | |
| 1290 | 1281 | PORT_START // IN0 - $210002 |
| 1291 | PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coinage ) ) | |
| 1282 | PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coinage ) ) PORT_DIPLOCATION( "DSW1:1,2,3,4" ) | |
| 1292 | 1283 | PORT_DIPSETTING( 0x0007, DEF_STR( 4C_1C ) ) |
| 1293 | 1284 | PORT_DIPSETTING( 0x0008, DEF_STR( 3C_1C ) ) |
| 1294 | 1285 | PORT_DIPSETTING( 0x0009, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 1311 | 1302 | PORT_DIPSETTING( 0x0001, "Multiple Coin Feature E" ) |
| 1312 | 1303 | // 1c-1c, 2c-3c |
| 1313 | 1304 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 1314 | PORT_DIPNAME( 0x0010, 0x0010, "Credits To Start" ) | |
| 1305 | PORT_DIPNAME( 0x0010, 0x0010, "Credits To Start" ) PORT_DIPLOCATION( "DSW1:5" ) | |
| 1315 | 1306 | PORT_DIPSETTING( 0x0010, "1" ) |
| 1316 | 1307 | PORT_DIPSETTING( 0x0000, "2" ) |
| 1317 | PORT_DIPNAME( 0x0020, 0x0000, DEF_STR( Controls ) ) // trackball dosn't work yet | |
| 1318 | PORT_DIPSETTING( 0x0020, DEF_STR( Trackball ) ) | |
| 1308 | PORT_DIPNAME( 0x0020, 0x0000, DEF_STR( Controls ) ) PORT_DIPLOCATION( "DSW1:6" ) | |
| 1309 | PORT_DIPSETTING( 0x0020, DEF_STR( Trackball ) ) // trackball dosn't work yet | |
| 1319 | 1310 | PORT_DIPSETTING( 0x0000, DEF_STR( Joystick ) ) |
| 1320 | PORT_DIPNAME( 0x0040, 0x0040, "Trackball Type" ) | |
| 1311 | PORT_DIPNAME( 0x0040, 0x0040, "Trackball Type" ) PORT_DIPLOCATION( "DSW1:7" ) | |
| 1321 | 1312 | PORT_DIPSETTING( 0x0040, "24 Counts (USA)" ) |
| 1322 | 1313 | PORT_DIPSETTING( 0x0000, "12 Counts (Japan)" ) |
| 1323 | PORT_DIPNAME( 0x0080, 0x0080, "Unused/Unknown" ) | |
| 1324 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 1325 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1314 | PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "DSW1:8" ) | |
| 1326 | 1315 | |
| 1327 | 1316 | PORT_START // IN1 - $210004 |
| 1328 | PORT_DIPNAME( 0x0003, 0x0003, "Number Of Holes" ) | |
| 1317 | PORT_DIPNAME( 0x0003, 0x0003, "Number Of Holes" ) PORT_DIPLOCATION( "DSW2:1,2" ) | |
| 1329 | 1318 | PORT_DIPSETTING( 0x0002, "2" ) |
| 1330 | 1319 | PORT_DIPSETTING( 0x0003, "3" ) |
| 1331 | 1320 | PORT_DIPSETTING( 0x0001, "4" ) |
| 1332 | 1321 | PORT_DIPSETTING( 0x0000, "5" ) |
| 1333 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) | |
| 1322 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) P | |
| 1334 | 1323 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) |
| 1335 | 1324 | PORT_DIPSETTING( 0x000c, DEF_STR( Normal ) ) |
| 1336 | 1325 | PORT_DIPSETTING( 0x0004, DEF_STR( Hard ) ) |
| 1337 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Demo_Sounds ) ) | |
| 1326 | /*PORT_DIPSETTING( 0x0000, "???" ) - No listed value for ON & ON */ | |
| 1327 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION( "DSW2:5" ) | |
| 1338 | 1328 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 1339 | 1329 | PORT_DIPSETTING( 0x0010, DEF_STR( On ) ) |
| 1340 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Allow_Continue ) ) | |
| 1330 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION( "DSW2:6" ) | |
| 1341 | 1331 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 1342 | 1332 | PORT_DIPSETTING( 0x0020, DEF_STR( On ) ) |
| 1343 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Flip_Screen ) ) | |
| 1333 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION( "DSW2:7" ) | |
| 1344 | 1334 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) |
| 1345 | 1335 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1346 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 1336 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "DSW2:8" ) | |
| 1347 | 1337 | |
| 1348 | 1338 | PORT_START // IN2 - $210008 |
| 1349 | 1339 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 1386 | 1376 | Mobil Suit Gundam Final Shooting |
| 1387 | 1377 | ***************************************************************************/ |
| 1388 | 1378 | |
| 1389 | INPUT_PORTS_START( gdfs ) | |
| 1379 | static INPUT_PORTS_START( gdfs ) | |
| 1390 | 1380 | PORT_START // IN0 - $210002 |
| 1391 | 1381 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Controls ) ) |
| 1392 | 1382 | PORT_DIPSETTING( 0x0001, DEF_STR( Joystick ) ) |
| r1238 | r1239 | |
| 1483 | 1473 | Hyper Reaction |
| 1484 | 1474 | ***************************************************************************/ |
| 1485 | 1475 | |
| 1486 | INPUT_PORTS_START( hypreact ) | |
| 1476 | static INPUT_PORTS_START( hypreact ) | |
| 1487 | 1477 | PORT_START // IN0 - $210002 |
| 1488 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) | |
| 1478 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) PORT_DIPLOCATION( "DSWA:1,2,3" ) | |
| 1489 | 1479 | PORT_DIPSETTING( 0x0005, DEF_STR( 3C_1C ) ) |
| 1490 | 1480 | PORT_DIPSETTING( 0x0006, DEF_STR( 2C_1C ) ) |
| 1491 | 1481 | PORT_DIPSETTING( 0x0007, DEF_STR( 1C_1C ) ) |
| r1238 | r1239 | |
| 1494 | 1484 | PORT_DIPSETTING( 0x0002, DEF_STR( 1C_4C ) ) |
| 1495 | 1485 | PORT_DIPSETTING( 0x0001, DEF_STR( 1C_5C ) ) |
| 1496 | 1486 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 1497 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) | |
| 1487 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) PORT_DIPLOCATION( "DSWA:4,5,6" ) | |
| 1498 | 1488 | PORT_DIPSETTING( 0x0028, DEF_STR( 3C_1C ) ) |
| 1499 | 1489 | PORT_DIPSETTING( 0x0030, DEF_STR( 2C_1C ) ) |
| 1500 | 1490 | PORT_DIPSETTING( 0x0038, DEF_STR( 1C_1C ) ) |
| r1238 | r1239 | |
| 1503 | 1493 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_4C ) ) |
| 1504 | 1494 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_5C ) ) |
| 1505 | 1495 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 1506 | PORT_DIPNAME( 0x0040, 0x0040, "Half Coins To Continue" ) | |
| 1496 | PORT_DIPNAME( 0x0040, 0x0040, "Half Coins To Continue" ) PORT_DIPLOCATION( "DSWA:7" ) | |
| 1507 | 1497 | PORT_DIPSETTING( 0x0040, DEF_STR( No ) ) |
| 1508 | 1498 | PORT_DIPSETTING( 0x0000, DEF_STR( Yes ) ) |
| 1509 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Free_Play ) ) | |
| 1499 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Free_Play ) ) PORT_DIPLOCATION( "DSWA:8" ) | |
| 1510 | 1500 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 1511 | 1501 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1512 | 1502 | |
| 1513 | 1503 | PORT_START // IN1 - $210004 |
| 1514 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 1504 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION( "DSWB:1" ) | |
| 1515 | 1505 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 1516 | 1506 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1517 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) | |
| 1507 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION( "DSWB:2" ) | |
| 1518 | 1508 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 1519 | 1509 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) |
| 1520 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) | |
| 1510 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) PORT_DIPLOCATION( "DSWB:3,4" ) | |
| 1521 | 1511 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) |
| 1522 | 1512 | PORT_DIPSETTING( 0x000c, DEF_STR( Normal ) ) |
| 1523 | 1513 | PORT_DIPSETTING( 0x0004, DEF_STR( Hard ) ) |
| 1524 | 1514 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 1525 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Controls ) ) | |
| 1515 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Controls ) ) PORT_DIPLOCATION( "DSWB:5" ) | |
| 1526 | 1516 | PORT_DIPSETTING( 0x0010, "Keyboard" ) |
| 1527 | 1517 | PORT_DIPSETTING( 0x0000, DEF_STR( Joystick ) ) |
| 1528 | PORT_DIPNAME( 0x0020, 0x0020, "Unknown 2-5" ) | |
| 1529 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 1530 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1531 | PORT_DIPNAME( 0x0040, 0x0040, "Unknown 2-6" ) | |
| 1532 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 1533 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1534 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 1518 | PORT_DIPUNKNOWN_DIPLOC( 0x0020, 0x0020, "DSWB:6" ) | |
| 1519 | PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "DSWB:7" ) | |
| 1520 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "DSWB:8" ) | |
| 1535 | 1521 | |
| 1536 | 1522 | PORT_START // IN2 - $210008 (used in joystick mode) |
| 1537 | 1523 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 1599 | 1585 | Hyper Reaction 2 |
| 1600 | 1586 | ***************************************************************************/ |
| 1601 | 1587 | |
| 1602 | INPUT_PORTS_START( hypreac2 ) | |
| 1588 | static INPUT_PORTS_START( hypreac2 ) | |
| 1603 | 1589 | PORT_START // IN0 - $210002 |
| 1604 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) | |
| 1590 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) PORT_DIPLOCATION( "DSWA:1,2,3" ) | |
| 1605 | 1591 | PORT_DIPSETTING( 0x0005, DEF_STR( 3C_1C ) ) |
| 1606 | 1592 | PORT_DIPSETTING( 0x0006, DEF_STR( 2C_1C ) ) |
| 1607 | 1593 | PORT_DIPSETTING( 0x0007, DEF_STR( 1C_1C ) ) |
| r1238 | r1239 | |
| 1610 | 1596 | PORT_DIPSETTING( 0x0002, DEF_STR( 1C_4C ) ) |
| 1611 | 1597 | PORT_DIPSETTING( 0x0001, DEF_STR( 1C_5C ) ) |
| 1612 | 1598 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 1613 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) | |
| 1599 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) PORT_DIPLOCATION( "DSWA:4,5,6" ) | |
| 1614 | 1600 | PORT_DIPSETTING( 0x0028, DEF_STR( 3C_1C ) ) |
| 1615 | 1601 | PORT_DIPSETTING( 0x0030, DEF_STR( 2C_1C ) ) |
| 1616 | 1602 | PORT_DIPSETTING( 0x0038, DEF_STR( 1C_1C ) ) |
| r1238 | r1239 | |
| 1619 | 1605 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_4C ) ) |
| 1620 | 1606 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_5C ) ) |
| 1621 | 1607 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 1622 | PORT_DIPNAME( 0x0040, 0x0040, "Half Coins To Continue" ) | |
| 1608 | PORT_DIPNAME( 0x0040, 0x0040, "Half Coins To Continue" ) PORT_DIPLOCATION( "DSWA:7" ) | |
| 1623 | 1609 | PORT_DIPSETTING( 0x0040, DEF_STR( No ) ) |
| 1624 | 1610 | PORT_DIPSETTING( 0x0000, DEF_STR( Yes ) ) |
| 1625 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Free_Play ) ) | |
| 1611 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Free_Play ) ) PORT_DIPLOCATION( "DSWA:8" ) | |
| 1626 | 1612 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 1627 | 1613 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1628 | 1614 | |
| 1629 | 1615 | PORT_START // IN1 - $210004 |
| 1630 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 1616 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION( "DSWB:1" ) | |
| 1631 | 1617 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 1632 | 1618 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1633 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) | |
| 1619 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION( "DSWB:2" ) | |
| 1634 | 1620 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 1635 | 1621 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) |
| 1636 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) | |
| 1622 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) PORT_DIPLOCATION( "DSWB:3,4" ) | |
| 1637 | 1623 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) |
| 1638 | 1624 | PORT_DIPSETTING( 0x000c, DEF_STR( Normal ) ) |
| 1639 | 1625 | PORT_DIPSETTING( 0x0004, DEF_STR( Hard ) ) |
| 1640 | 1626 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 1641 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Controls ) ) | |
| 1627 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Controls ) ) PORT_DIPLOCATION( "DSWB:5" ) | |
| 1642 | 1628 | PORT_DIPSETTING( 0x0010, "Keyboard" ) |
| 1643 | 1629 | PORT_DIPSETTING( 0x0000, DEF_STR( Joystick ) ) |
| 1644 | PORT_DIPNAME( 0x0020, 0x0020, "Communication 1" ) | |
| 1630 | PORT_DIPNAME( 0x0020, 0x0020, "Communication 1" ) PORT_DIPLOCATION( "DSWB:6" ) | |
| 1645 | 1631 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) |
| 1646 | 1632 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1647 | PORT_DIPNAME( 0x0040, 0x0040, "Communication 2" ) | |
| 1633 | PORT_DIPNAME( 0x0040, 0x0040, "Communication 2" ) PORT_DIPLOCATION( "DSWB:7" ) | |
| 1648 | 1634 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) |
| 1649 | 1635 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1650 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 1636 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "DSWB:8" ) | |
| 1651 | 1637 | |
| 1652 | 1638 | PORT_START // IN2 - $210008 |
| 1653 | 1639 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 1714 | 1700 | JangJang Shimasho |
| 1715 | 1701 | ***************************************************************************/ |
| 1716 | 1702 | |
| 1717 | INPUT_PORTS_START( janjans1 ) | |
| 1703 | static INPUT_PORTS_START( janjans1 ) | |
| 1718 | 1704 | PORT_START // IN0 - $210002 |
| 1719 | PORT_DIPNAME( 0x0001, 0x0001, "Unknown 1-0" ) | |
| 1720 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 1721 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1722 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) ) | |
| 1705 | PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "DSW1:1" ) | |
| 1706 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION( "DSW1:2" ) | |
| 1723 | 1707 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) |
| 1724 | 1708 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1725 | PORT_SERVICE( 0x0004, IP_ACTIVE_LOW ) | |
| 1726 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Demo_Sounds ) ) | |
| 1709 | PORT_SERVICE_DIPLOC( 0x0004, IP_ACTIVE_LOW, "DSW1:3" ) | |
| 1710 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION( "DSW1:4" ) | |
| 1727 | 1711 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 1728 | 1712 | PORT_DIPSETTING( 0x0008, DEF_STR( On ) ) |
| 1729 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Coinage ) ) | |
| 1713 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Coinage ) ) PORT_DIPLOCATION( "DSW1:5,6" ) | |
| 1730 | 1714 | PORT_DIPSETTING( 0x0010, DEF_STR( 2C_1C ) ) |
| 1731 | 1715 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_1C ) ) |
| 1732 | 1716 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_3C ) ) |
| 1733 | 1717 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_2C ) ) |
| 1734 | PORT_DIPNAME( 0x0040, 0x0040, "Voice" ) | |
| 1718 | PORT_DIPNAME( 0x0040, 0x0040, "Voice" ) PORT_DIPLOCATION( "DSW1:7" ) | |
| 1735 | 1719 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 1736 | 1720 | PORT_DIPSETTING( 0x0040, DEF_STR( On ) ) |
| 1737 | PORT_DIPNAME( 0x0080, 0x0080, "Unknown 1-7" ) | |
| 1738 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 1739 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1721 | PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "DSW1:8" ) | |
| 1740 | 1722 | |
| 1741 | 1723 | PORT_START // IN1 - $210004 |
| 1742 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) | |
| 1724 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) PORT_DIPLOCATION( "DSW2:1,2" ) | |
| 1743 | 1725 | PORT_DIPSETTING( 0x0002, DEF_STR( Easy ) ) |
| 1744 | 1726 | PORT_DIPSETTING( 0x0003, DEF_STR( Normal ) ) |
| 1745 | 1727 | PORT_DIPSETTING( 0x0001, DEF_STR( Hard ) ) |
| 1746 | 1728 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 1747 | PORT_DIPNAME( 0x0004, 0x0004, "Nudity" ) | |
| 1729 | PORT_DIPNAME( 0x0004, 0x0004, "Nudity" ) PORT_DIPLOCATION( "DSW2:3" ) | |
| 1748 | 1730 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 1749 | 1731 | PORT_DIPSETTING( 0x0004, DEF_STR( On ) ) |
| 1750 | PORT_DIPNAME( 0x0008, 0x0008, "Mini Game" ) | |
| 1732 | PORT_DIPNAME( 0x0008, 0x0008, "Mini Game" ) PORT_DIPLOCATION( "DSW2:4" ) | |
| 1751 | 1733 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 1752 | 1734 | PORT_DIPSETTING( 0x0008, DEF_STR( On ) ) |
| 1753 | PORT_DIPNAME( 0x0030, 0x0030, "Initial Score" ) | |
| 1735 | PORT_DIPNAME( 0x0030, 0x0030, "Initial Score" ) PORT_DIPLOCATION( "DSW2:5,6" ) | |
| 1754 | 1736 | PORT_DIPSETTING( 0x0020, "1000" ) |
| 1755 | 1737 | PORT_DIPSETTING( 0x0030, "1500" ) |
| 1756 | 1738 | PORT_DIPSETTING( 0x0010, "2000" ) |
| 1757 | 1739 | PORT_DIPSETTING( 0x0000, "3000" ) |
| 1758 | PORT_DIPNAME( 0x00c0, 0x00c0, "Communication" ) | |
| 1740 | PORT_DIPNAME( 0x00c0, 0x00c0, "Communication" ) PORT_DIPLOCATION( "DSW2:7,8" ) | |
| 1759 | 1741 | // PORT_DIPSETTING( 0x0080, "unused" ) |
| 1760 | 1742 | PORT_DIPSETTING( 0x00c0, DEF_STR( None ) ) |
| 1761 | 1743 | PORT_DIPSETTING( 0x0040, "Board 1 (Main)" ) |
| r1238 | r1239 | |
| 1820 | 1802 | Joryuu Syougi Kyoushitsu |
| 1821 | 1803 | ***************************************************************************/ |
| 1822 | 1804 | |
| 1823 | INPUT_PORTS_START( jsk ) | |
| 1805 | static INPUT_PORTS_START( jsk ) | |
| 1824 | 1806 | PORT_START // IN0 - $210002 |
| 1825 | 1807 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coinage ) ) |
| 1826 | 1808 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| r1238 | r1239 | |
| 1902 | 1884 | Keith & Lucy |
| 1903 | 1885 | ***************************************************************************/ |
| 1904 | 1886 | |
| 1905 | INPUT_PORTS_START( keithlcy ) | |
| 1887 | static INPUT_PORTS_START( keithlcy ) | |
| 1906 | 1888 | PORT_START // IN0 - $210002 |
| 1907 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unused ) ) /* Manual lists this dip as "Unused" */ | |
| 1908 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 1909 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1910 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) ) | |
| 1889 | PORT_DIPUNUSED_DIPLOC( 0x0001, 0x0001, "DSW1:1" ) /* Manual lists this dip as "Unused" */ | |
| 1890 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION( "DSW1:2" ) | |
| 1911 | 1891 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) |
| 1912 | 1892 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1913 | PORT_SERVICE( 0x0004, IP_ACTIVE_LOW ) | |
| 1914 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Demo_Sounds ) ) | |
| 1893 | PORT_SERVICE_DIPLOC( 0x0004, IP_ACTIVE_LOW, "DSW1:3" ) | |
| 1894 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION( "DSW1:4" ) | |
| 1915 | 1895 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 1916 | 1896 | PORT_DIPSETTING( 0x0008, DEF_STR( On ) ) |
| 1917 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Coin_A ) ) | |
| 1897 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Coin_A ) ) PORT_DIPLOCATION( "DSW1:5,6" ) | |
| 1918 | 1898 | PORT_DIPSETTING( 0x0010, DEF_STR( 2C_1C ) ) |
| 1919 | 1899 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_1C ) ) |
| 1920 | 1900 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_3C ) ) |
| 1921 | 1901 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_2C ) ) |
| 1922 | PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Coin_B ) ) | |
| 1902 | PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION( "DSW1:7,8" ) | |
| 1923 | 1903 | PORT_DIPSETTING( 0x0040, DEF_STR( 2C_1C ) ) |
| 1924 | 1904 | PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_1C ) ) |
| 1925 | 1905 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_3C ) ) |
| 1926 | 1906 | PORT_DIPSETTING( 0x0080, DEF_STR( 1C_2C ) ) |
| 1927 | 1907 | |
| 1928 | 1908 | PORT_START // IN1 - $210004 |
| 1929 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) | |
| 1909 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) PORT_DIPLOCATION( "DSW2:1,2" ) | |
| 1930 | 1910 | PORT_DIPSETTING( 0x0002, DEF_STR( Easy ) ) // 15 sec |
| 1931 | 1911 | PORT_DIPSETTING( 0x0003, DEF_STR( Normal ) ) // 12 |
| 1932 | 1912 | PORT_DIPSETTING( 0x0001, DEF_STR( Hard ) ) // 10 |
| 1933 | 1913 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) // 8 |
| 1934 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Lives ) ) | |
| 1914 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Lives ) ) PORT_DIPLOCATION( "DSW2:3,4" ) | |
| 1935 | 1915 | PORT_DIPSETTING( 0x0008, "2" ) |
| 1936 | 1916 | PORT_DIPSETTING( 0x000c, "3" ) |
| 1937 | 1917 | PORT_DIPSETTING( 0x0004, "4" ) |
| 1938 | 1918 | PORT_DIPSETTING( 0x0000, "5" ) |
| 1939 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Bonus_Life ) ) | |
| 1919 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION( "DSW2:5,6" ) | |
| 1940 | 1920 | PORT_DIPSETTING( 0x0030, "Every 100k" ) //100 |
| 1941 | 1921 | PORT_DIPSETTING( 0x0020, "Every 150k" ) //150 |
| 1942 | 1922 | PORT_DIPSETTING( 0x0010, "100k & Every 200K" ) //100 |
| 1943 | 1923 | PORT_DIPSETTING( 0x0000, "Every 200k" ) //200 |
| 1944 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) /* Manual lists these dips as "Unused" */ | |
| 1945 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 1946 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1947 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unused ) ) /* Manual lists these dips as "Unused" */ | |
| 1948 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 1949 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1924 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "DSW2:7" ) /* Manual lists these dips as "Unused" */ | |
| 1925 | PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0080, "DSW2:8" ) /* Manual lists these dips as "Unused" */ | |
| 1950 | 1926 | |
| 1951 | 1927 | PORT_START // IN2 - $210008 |
| 1952 | 1928 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 1981 | 1957 | Koi Koi Simasho 2 |
| 1982 | 1958 | ***************************************************************************/ |
| 1983 | 1959 | |
| 1984 | INPUT_PORTS_START( koikois2 ) | |
| 1960 | static INPUT_PORTS_START( koikois2 ) | |
| 1985 | 1961 | PORT_START // IN0 - $210002 |
| 1986 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) ) | |
| 1987 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 1988 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1989 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) ) | |
| 1962 | PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "DSW1:1" ) | |
| 1963 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION( "DSW1:2" ) | |
| 1990 | 1964 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) |
| 1991 | 1965 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1992 | PORT_SERVICE( 0x0004, IP_ACTIVE_LOW ) | |
| 1993 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Demo_Sounds ) ) | |
| 1966 | PORT_SERVICE_DIPLOC( 0x0004, IP_ACTIVE_LOW, "DSW1:3" ) | |
| 1967 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION( "DSW1:4" ) | |
| 1994 | 1968 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 1995 | 1969 | PORT_DIPSETTING( 0x0008, DEF_STR( On ) ) |
| 1996 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Coinage ) ) | |
| 1970 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Coinage ) ) PORT_DIPLOCATION( "DSW1:5,6" ) | |
| 1997 | 1971 | PORT_DIPSETTING( 0x0010, DEF_STR( 2C_1C ) ) |
| 1998 | 1972 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_1C ) ) |
| 1999 | 1973 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_3C ) ) |
| 2000 | 1974 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_2C ) ) |
| 2001 | PORT_DIPNAME( 0x0040, 0x0040, "Voice" ) | |
| 1975 | PORT_DIPNAME( 0x0040, 0x0040, "Voice" ) PORT_DIPLOCATION( "DSW1:7" ) | |
| 2002 | 1976 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 2003 | 1977 | PORT_DIPSETTING( 0x0040, DEF_STR( On ) ) |
| 2004 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Controls ) ) | |
| 1978 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Controls ) ) PORT_DIPLOCATION( "DSW1:8" ) | |
| 2005 | 1979 | PORT_DIPSETTING( 0x0080, DEF_STR( Joystick ) ) |
| 2006 | 1980 | PORT_DIPSETTING( 0x0000, "Keyboard" ) |
| 2007 | 1981 | |
| 2008 | 1982 | PORT_START // IN1 - $210004 |
| 2009 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) | |
| 1983 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) PORT_DIPLOCATION( "DSW2:1,2" ) | |
| 2010 | 1984 | PORT_DIPSETTING( 0x0002, DEF_STR( Easy ) ) |
| 2011 | 1985 | PORT_DIPSETTING( 0x0003, DEF_STR( Normal ) ) |
| 2012 | 1986 | PORT_DIPSETTING( 0x0001, DEF_STR( Hard ) ) |
| 2013 | 1987 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 2014 | PORT_DIPNAME( 0x0004, 0x0004, "Nudity" ) | |
| 1988 | PORT_DIPNAME( 0x0004, 0x0004, "Nudity" ) PORT_DIPLOCATION( "DSW2:3" ) | |
| 2015 | 1989 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) |
| 2016 | 1990 | PORT_DIPSETTING( 0x0004, DEF_STR( Yes ) ) |
| 2017 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unknown ) ) | |
| 2018 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 2019 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2020 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unknown ) ) | |
| 2021 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 2022 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2023 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unknown ) ) | |
| 2024 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 2025 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2026 | PORT_DIPNAME( 0x00c0, 0x00c0, "Communication" ) | |
| 1991 | PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "DSW2:4" ) | |
| 1992 | PORT_DIPUNKNOWN_DIPLOC( 0x0010, 0x0010, "DSW2:5" ) | |
| 1993 | PORT_DIPUNKNOWN_DIPLOC( 0x0020, 0x0020, "DSW2:6" ) | |
| 1994 | PORT_DIPNAME( 0x00c0, 0x00c0, "Communication" ) PORT_DIPLOCATION( "DSW2:7,8" ) | |
| 2027 | 1995 | // PORT_DIPSETTING( 0x0080, "unused" ) |
| 2028 | 1996 | PORT_DIPSETTING( 0x00c0, DEF_STR( None ) ) |
| 2029 | 1997 | PORT_DIPSETTING( 0x0040, "Board 1 (Main)" ) |
| r1238 | r1239 | |
| 2102 | 2070 | Meosis Magic |
| 2103 | 2071 | ***************************************************************************/ |
| 2104 | 2072 | |
| 2105 | INPUT_PORTS_START( meosism ) | |
| 2073 | static INPUT_PORTS_START( meosism ) | |
| 2106 | 2074 | PORT_START // IN0 - $210002 |
| 2107 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Coinage ) ) | |
| 2075 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Coinage ) ) PORT_DIPLOCATION( "DSW1:1,2" ) | |
| 2108 | 2076 | PORT_DIPSETTING( 0x0003, "1 Medal/1 Credit" ) |
| 2109 | 2077 | PORT_DIPSETTING( 0x0001, "1 Medal/5 Credits" ) |
| 2110 | 2078 | PORT_DIPSETTING( 0x0002, "1 Medal/10 Credits" ) |
| 2111 | 2079 | PORT_DIPSETTING( 0x0000, "1 Medal/20 Credits" ) |
| 2112 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Demo_Sounds ) ) | |
| 2080 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION( "DSW1:3" ) | |
| 2113 | 2081 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 2114 | 2082 | PORT_DIPSETTING( 0x0004, DEF_STR( On ) ) |
| 2115 | PORT_DIPNAME( 0x0008, 0x0008, "Attendant Pay" ) | |
| 2083 | PORT_DIPNAME( 0x0008, 0x0008, "Attendant Pay" ) PORT_DIPLOCATION( "DSW1:4" ) | |
| 2116 | 2084 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) |
| 2117 | 2085 | PORT_DIPSETTING( 0x0008, DEF_STR( Yes ) ) |
| 2118 | PORT_DIPNAME( 0x0010, 0x0010, "Medals Payout" ) | |
| 2086 | PORT_DIPNAME( 0x0010, 0x0010, "Medals Payout" ) PORT_DIPLOCATION( "DSW1:5" ) | |
| 2119 | 2087 | PORT_DIPSETTING( 0x0010, "400" ) |
| 2120 | 2088 | PORT_DIPSETTING( 0x0000, "800" ) |
| 2121 | PORT_DIPNAME( 0x0020, 0x0020, "Max Credits" ) | |
| 2089 | PORT_DIPNAME( 0x0020, 0x0020, "Max Credits" ) PORT_DIPLOCATION( "DSW1:6" ) | |
| 2122 | 2090 | PORT_DIPSETTING( 0x0020, "5000" ) |
| 2123 | 2091 | PORT_DIPSETTING( 0x0000, "9999" ) |
| 2124 | PORT_DIPNAME( 0x0040, 0x0040, "Hopper" ) | |
| 2092 | PORT_DIPNAME( 0x0040, 0x0040, "Hopper" ) PORT_DIPLOCATION( "DSW1:7" ) | |
| 2125 | 2093 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) |
| 2126 | 2094 | PORT_DIPSETTING( 0x0040, DEF_STR( Yes ) ) |
| 2127 | PORT_DIPNAME( 0x0080, 0x0080, "Reel Speed" ) | |
| 2095 | PORT_DIPNAME( 0x0080, 0x0080, "Reel Speed" ) PORT_DIPLOCATION( "DSW1:8" ) | |
| 2128 | 2096 | PORT_DIPSETTING( 0x0080, DEF_STR( Low ) ) |
| 2129 | 2097 | PORT_DIPSETTING( 0x0000, DEF_STR( High ) ) |
| 2130 | 2098 | |
| 2131 | 2099 | PORT_START // IN1 - $210004 |
| 2132 | PORT_DIPNAME( 0x0003, 0x0003, "Game Rate" ) | |
| 2100 | PORT_DIPNAME( 0x0003, 0x0003, "Game Rate" ) PORT_DIPLOCATION( "DSW2:1,2" ) | |
| 2133 | 2101 | PORT_DIPSETTING( 0x0000, "80%" ) |
| 2134 | 2102 | PORT_DIPSETTING( 0x0002, "85%" ) |
| 2135 | 2103 | PORT_DIPSETTING( 0x0003, "90%" ) |
| 2136 | 2104 | PORT_DIPSETTING( 0x0001, "95%" ) |
| 2137 | PORT_DIPNAME( 0x0004, 0x0004, "Unknown 2-2" ) | |
| 2138 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 2139 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2140 | PORT_DIPNAME( 0x0008, 0x0008, "Unknown 2-3" ) | |
| 2141 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 2142 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2143 | PORT_DIPNAME( 0x0010, 0x0010, "Unknown 2-4" ) | |
| 2144 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 2145 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2146 | PORT_DIPNAME( 0x0020, 0x0000, DEF_STR( Controls ) ) | |
| 2105 | PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "DSW2:3" ) | |
| 2106 | PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "DSW2:4" ) | |
| 2107 | PORT_DIPUNKNOWN_DIPLOC( 0x0010, 0x0010, "DSW2:5" ) | |
| 2108 | PORT_DIPNAME( 0x0020, 0x0000, DEF_STR( Controls ) ) PORT_DIPLOCATION( "DSW2:6" ) | |
| 2147 | 2109 | // PORT_DIPSETTING( 0x0020, "Simple") ) |
| 2148 | 2110 | PORT_DIPSETTING( 0x0000, "Complex" ) |
| 2149 | PORT_DIPNAME( 0x0040, 0x0000, "Coin Sensor" ) | |
| 2111 | PORT_DIPNAME( 0x0040, 0x0000, "Coin Sensor" ) PORT_DIPLOCATION( "DSW2:7" ) | |
| 2150 | 2112 | PORT_DIPSETTING( 0x0040, "Active High" ) |
| 2151 | 2113 | PORT_DIPSETTING( 0x0000, "Active Low" ) |
| 2152 | PORT_DIPNAME( 0x0080, 0x0080, "Hopper Sensor" ) | |
| 2114 | PORT_DIPNAME( 0x0080, 0x0080, "Hopper Sensor" ) PORT_DIPLOCATION( "DSW2:8" ) | |
| 2153 | 2115 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 2154 | 2116 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 2155 | 2117 | |
| r1238 | r1239 | |
| 2187 | 2149 | Monster Slider |
| 2188 | 2150 | ***************************************************************************/ |
| 2189 | 2151 | |
| 2190 | INPUT_PORTS_START( mslider ) | |
| 2152 | static INPUT_PORTS_START( mslider ) | |
| 2191 | 2153 | PORT_START // IN0 - $210002 |
| 2192 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) | |
| 2154 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) PORT_DIPLOCATION( "DSW1:1,2,3" ) | |
| 2193 | 2155 | PORT_DIPSETTING( 0x0005, DEF_STR( 3C_1C ) ) |
| 2194 | 2156 | PORT_DIPSETTING( 0x0006, DEF_STR( 2C_1C ) ) |
| 2195 | 2157 | PORT_DIPSETTING( 0x0007, DEF_STR( 1C_1C ) ) |
| r1238 | r1239 | |
| 2198 | 2160 | PORT_DIPSETTING( 0x0002, DEF_STR( 1C_4C ) ) |
| 2199 | 2161 | PORT_DIPSETTING( 0x0001, DEF_STR( 1C_5C ) ) |
| 2200 | 2162 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 2201 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) | |
| 2163 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) PORT_DIPLOCATION( "DSW1:4,5,6" ) | |
| 2202 | 2164 | PORT_DIPSETTING( 0x0028, DEF_STR( 3C_1C ) ) |
| 2203 | 2165 | PORT_DIPSETTING( 0x0030, DEF_STR( 2C_1C ) ) |
| 2204 | 2166 | PORT_DIPSETTING( 0x0038, DEF_STR( 1C_1C ) ) |
| r1238 | r1239 | |
| 2207 | 2169 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_4C ) ) |
| 2208 | 2170 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_5C ) ) |
| 2209 | 2171 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 2210 | PORT_SERVICE( 0x0040, IP_ACTIVE_LOW ) | |
| 2211 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unused ) ) /* Manual lists this dip as "Unused" */ | |
| 2212 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 2213 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2172 | PORT_SERVICE_DIPLOC( 0x0040, IP_ACTIVE_LOW, "DSW1:7" ) | |
| 2173 | PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0080, "DSW1:8" ) /* Manual lists this dip as "Unused" */ | |
| 2214 | 2174 | |
| 2215 | 2175 | PORT_START // IN1 - $210004 |
| 2216 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 2176 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION( "DSW2:1" ) | |
| 2217 | 2177 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 2218 | 2178 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 2219 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) | |
| 2179 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION( "DSW2:2" ) | |
| 2220 | 2180 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 2221 | 2181 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) |
| 2222 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) | |
| 2182 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) PORT_DIPLOCATION( "DSW2:3,4" ) | |
| 2223 | 2183 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) |
| 2224 | 2184 | PORT_DIPSETTING( 0x000c, DEF_STR( Normal ) ) |
| 2225 | 2185 | PORT_DIPSETTING( 0x0004, DEF_STR( Hard ) ) |
| 2226 | 2186 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 2227 | PORT_DIPNAME( 0x0030, 0x0030, "Rounds (Vs Mode)" ) | |
| 2187 | PORT_DIPNAME( 0x0030, 0x0030, "Rounds (Vs Mode)" ) PORT_DIPLOCATION( "DSW2:5,6" ) | |
| 2228 | 2188 | PORT_DIPSETTING( 0x0000, "1" ) |
| 2229 | 2189 | PORT_DIPSETTING( 0x0030, "2" ) |
| 2230 | 2190 | PORT_DIPSETTING( 0x0020, "3" ) |
| 2231 | 2191 | PORT_DIPSETTING( 0x0010, "4" ) |
| 2232 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) /* Manual lists these dips as "Unused" */ | |
| 2233 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 2234 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2235 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unused ) ) | |
| 2236 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 2237 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2192 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "DSW2:7" ) /* Manual lists these dips as "Unused" */ | |
| 2193 | PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0080, "DSW2:8" ) | |
| 2238 | 2194 | |
| 2239 | 2195 | PORT_START // IN2 - $210008 |
| 2240 | 2196 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 2269 | 2225 | Gourmet Battle Quiz Ryohrioh CooKing |
| 2270 | 2226 | ***************************************************************************/ |
| 2271 | 2227 | |
| 2272 | INPUT_PORTS_START( ryorioh ) | |
| 2228 | static INPUT_PORTS_START( ryorioh ) | |
| 2273 | 2229 | PORT_START // IN0 - $210002 |
| 2274 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unused ) ) /* Manual states this dip is "Unused" */ | |
| 2275 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 2276 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2277 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) ) | |
| 2230 | PORT_DIPUNUSED_DIPLOC( 0x0001, 0x0001, "DSW1:1" ) /* Manual states this dip is "Unused" */ | |
| 2231 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION( "DSW1:2" ) | |
| 2278 | 2232 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) |
| 2279 | 2233 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 2280 | PORT_SERVICE( 0x0004, IP_ACTIVE_LOW ) | |
| 2281 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Demo_Sounds ) ) | |
| 2234 | PORT_SERVICE_DIPLOC( 0x0004, IP_ACTIVE_LOW, "DSW1:3" ) | |
| 2235 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION( "DSW1:4" ) | |
| 2282 | 2236 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 2283 | 2237 | PORT_DIPSETTING( 0x0008, DEF_STR( On ) ) |
| 2284 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Coinage ) ) | |
| 2238 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Coinage ) ) PORT_DIPLOCATION( "DSW1:5,6" ) | |
| 2285 | 2239 | PORT_DIPSETTING( 0x0010, DEF_STR( 2C_1C ) ) |
| 2286 | 2240 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_1C ) ) |
| 2287 | 2241 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_3C ) ) |
| 2288 | 2242 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_2C ) ) |
| 2289 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) /* Manual states this dip is "Unused" */ | |
| 2290 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 2291 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2292 | PORT_DIPNAME( 0x0080, 0x0080, "Unknown 1-7*" ) | |
| 2293 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 2294 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2243 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "DSW1:7" ) /* Manual states this dip is "Unused" */ | |
| 2244 | PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "DSW1:8" ) | |
| 2295 | 2245 | |
| 2296 | 2246 | PORT_START // IN1 - $210004 |
| 2297 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) | |
| 2247 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) PORT_DIPLOCATION( "DSW2:1,2" ) | |
| 2298 | 2248 | PORT_DIPSETTING( 0x0002, DEF_STR( Easy ) ) |
| 2299 | 2249 | PORT_DIPSETTING( 0x0003, DEF_STR( Normal ) ) |
| 2300 | 2250 | PORT_DIPSETTING( 0x0001, DEF_STR( Hard ) ) |
| 2301 | 2251 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 2302 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unused ) ) /* Manual states dips 3-8 are "Unused" */ | |
| 2303 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 2304 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2305 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unused ) ) | |
| 2306 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 2307 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2308 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unused ) ) | |
| 2309 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 2310 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2311 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) ) | |
| 2312 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 2313 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2314 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) | |
| 2315 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 2316 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2317 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unused ) ) | |
| 2318 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 2319 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2252 | PORT_DIPUNUSED_DIPLOC( 0x0004, 0x0004, "DSW2:3" ) /* Manual states dips 3-8 are "Unused" */ | |
| 2253 | PORT_DIPUNUSED_DIPLOC( 0x0008, 0x0008, "DSW2:4" ) | |
| 2254 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0010, "DSW2:5" ) | |
| 2255 | PORT_DIPUNUSED_DIPLOC( 0x0020, 0x0020, "DSW2:6" ) | |
| 2256 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "DSW2:7" ) | |
| 2257 | PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0080, "DSW2:8" ) | |
| 2320 | 2258 | |
| 2321 | 2259 | PORT_START // IN2 - $210008 |
| 2322 | 2260 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 2351 | 2289 | Super Real Mahjong PIV |
| 2352 | 2290 | ***************************************************************************/ |
| 2353 | 2291 | |
| 2354 | INPUT_PORTS_START( srmp4 ) | |
| 2292 | static INPUT_PORTS_START( srmp4 ) | |
| 2355 | 2293 | PORT_START // IN0 - $210002 |
| 2356 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) | |
| 2294 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) PORT_DIPLOCATION( "DSW1:1,2,3" ) | |
| 2357 | 2295 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| 2358 | 2296 | PORT_DIPSETTING( 0x0001, DEF_STR( 4C_1C ) ) |
| 2359 | 2297 | PORT_DIPSETTING( 0x0002, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
| 2362 | 2300 | PORT_DIPSETTING( 0x0006, DEF_STR( 1C_2C ) ) |
| 2363 | 2301 | PORT_DIPSETTING( 0x0005, DEF_STR( 1C_3C ) ) |
| 2364 | 2302 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) ) |
| 2365 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) | |
| 2303 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) PORT_DIPLOCATION( "DSW1:4,5,6" ) | |
| 2366 | 2304 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| 2367 | 2305 | PORT_DIPSETTING( 0x0008, DEF_STR( 4C_1C ) ) |
| 2368 | 2306 | PORT_DIPSETTING( 0x0010, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
| 2371 | 2309 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_2C ) ) |
| 2372 | 2310 | PORT_DIPSETTING( 0x0028, DEF_STR( 1C_3C ) ) |
| 2373 | 2311 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_4C ) ) |
| 2374 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Free_Play ) ) | |
| 2312 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Free_Play ) ) PORT_DIPLOCATION( "DSW1:7" ) | |
| 2375 | 2313 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) |
| 2376 | 2314 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 2377 | PORT_DIPNAME( 0x0080, 0x0080, "Unknown 1-7" ) | |
| 2378 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 2379 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2315 | PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "DSW1:8" ) | |
| 2380 | 2316 | |
| 2381 | 2317 | PORT_START // IN1 - $210004 |
| 2382 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Difficulty ) ) | |
| 2318 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Difficulty ) ) PORT_DIPLOCATION( "DSW2:1,2,3" ) | |
| 2383 | 2319 | PORT_DIPSETTING( 0x0006, DEF_STR( Easiest ) ) |
| 2384 | 2320 | PORT_DIPSETTING( 0x0005, DEF_STR( Easier ) ) |
| 2385 | 2321 | PORT_DIPSETTING( 0x0004, DEF_STR( Easy ) ) |
| r1238 | r1239 | |
| 2388 | 2324 | PORT_DIPSETTING( 0x0002, DEF_STR( Hard ) ) |
| 2389 | 2325 | PORT_DIPSETTING( 0x0001, DEF_STR( Harder ) ) |
| 2390 | 2326 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 2391 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Flip_Screen ) ) | |
| 2327 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION( "DSW2:4" ) | |
| 2392 | 2328 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) |
| 2393 | 2329 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 2394 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Demo_Sounds ) ) | |
| 2330 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION( "DSW2:5" ) | |
| 2395 | 2331 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 2396 | 2332 | PORT_DIPSETTING( 0x0010, DEF_STR( On ) ) |
| 2397 | PORT_SERVICE( 0x0020, IP_ACTIVE_LOW ) | |
| 2398 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Allow_Continue ) ) | |
| 2333 | PORT_SERVICE_DIPLOC( 0x0020, IP_ACTIVE_LOW, "DSW2:6" ) | |
| 2334 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION( "DSW2:7" ) | |
| 2399 | 2335 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) |
| 2400 | 2336 | PORT_DIPSETTING( 0x0040, DEF_STR( Yes ) ) |
| 2401 | PORT_DIPNAME( 0x0080, 0x0080, "Unknown 2-7" ) | |
| 2402 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 2403 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2337 | PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "DSW2:8" ) | |
| 2404 | 2338 | |
| 2405 | 2339 | PORT_START // IN2 - $210008 |
| 2406 | 2340 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 2461 | 2395 | Super Real Mahjong P7 |
| 2462 | 2396 | ***************************************************************************/ |
| 2463 | 2397 | |
| 2464 | INPUT_PORTS_START( srmp7 ) | |
| 2398 | static INPUT_PORTS_START( srmp7 ) | |
| 2465 | 2399 | PORT_START // IN0 - $210002 |
| 2466 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coinage ) ) | |
| 2400 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coinage ) ) PORT_DIPLOCATION( "DSW1:1,2,3" ) | |
| 2467 | 2401 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| 2468 | 2402 | PORT_DIPSETTING( 0x0001, DEF_STR( 4C_1C ) ) |
| 2469 | 2403 | PORT_DIPSETTING( 0x0002, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
| 2472 | 2406 | PORT_DIPSETTING( 0x0006, DEF_STR( 1C_2C ) ) |
| 2473 | 2407 | PORT_DIPSETTING( 0x0005, DEF_STR( 1C_3C ) ) |
| 2474 | 2408 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) ) |
| 2475 | PORT_DIPNAME( 0x0008, 0x0008, "Unknown 1-3" ) | |
| 2476 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 2477 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2478 | PORT_DIPNAME( 0x0010, 0x0010, "Unknown 1-4" ) | |
| 2479 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 2480 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2481 | PORT_DIPNAME( 0x0020, 0x0020, "Unknown 1-5" ) | |
| 2482 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 2483 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2484 | PORT_DIPNAME( 0x0040, 0x0040, "Re-cloth" ) | |
| 2409 | PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "DSW1:4" ) | |
| 2410 | PORT_DIPUNKNOWN_DIPLOC( 0x0010, 0x0010, "DSW1:5" ) | |
| 2411 | PORT_DIPUNKNOWN_DIPLOC( 0x0020, 0x0020, "DSW1:6" ) | |
| 2412 | PORT_DIPNAME( 0x0040, 0x0040, "Re-cloth" ) PORT_DIPLOCATION( "DSW1:7" ) | |
| 2485 | 2413 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 2486 | 2414 | PORT_DIPSETTING( 0x0040, DEF_STR( On ) ) |
| 2487 | PORT_DIPNAME( 0x0080, 0x0080, "Nudity" ) | |
| 2415 | PORT_DIPNAME( 0x0080, 0x0080, "Nudity" ) PORT_DIPLOCATION( "DSW1:8" ) | |
| 2488 | 2416 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 2489 | 2417 | PORT_DIPSETTING( 0x0080, DEF_STR( On ) ) |
| 2490 | 2418 | |
| 2491 | 2419 | PORT_START // IN1 - $210004 |
| 2492 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Difficulty ) ) | |
| 2420 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Difficulty ) ) PORT_DIPLOCATION( "DSW2:1,2,3" ) | |
| 2493 | 2421 | PORT_DIPSETTING( 0x0006, DEF_STR( Easiest ) ) |
| 2494 | 2422 | PORT_DIPSETTING( 0x0005, DEF_STR( Easier ) ) |
| 2495 | 2423 | PORT_DIPSETTING( 0x0004, DEF_STR( Easy ) ) |
| r1238 | r1239 | |
| 2498 | 2426 | PORT_DIPSETTING( 0x0002, DEF_STR( Hard ) ) |
| 2499 | 2427 | PORT_DIPSETTING( 0x0001, DEF_STR( Harder ) ) |
| 2500 | 2428 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 2501 | PORT_DIPNAME( 0x0008, 0x0008, "Kuitan" ) | |
| 2429 | PORT_DIPNAME( 0x0008, 0x0008, "Kuitan" ) PORT_DIPLOCATION( "DSW2:4" ) | |
| 2502 | 2430 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 2503 | 2431 | PORT_DIPSETTING( 0x0008, DEF_STR( On ) ) |
| 2504 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Allow_Continue ) ) | |
| 2432 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION( "DSW2:5" ) | |
| 2505 | 2433 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 2506 | 2434 | PORT_DIPSETTING( 0x0010, DEF_STR( On ) ) |
| 2507 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Demo_Sounds ) ) | |
| 2435 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION( "DSW2:6" ) | |
| 2508 | 2436 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 2509 | 2437 | PORT_DIPSETTING( 0x0020, DEF_STR( On ) ) |
| 2510 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Flip_Screen ) ) | |
| 2438 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION( "DSW2:7" ) | |
| 2511 | 2439 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) |
| 2512 | 2440 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 2513 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 2441 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "DSW2:8" ) | |
| 2514 | 2442 | |
| 2515 | 2443 | PORT_START // IN2 - $210008 |
| 2516 | 2444 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 2572 | 2500 | Storm Blade |
| 2573 | 2501 | ***************************************************************************/ |
| 2574 | 2502 | |
| 2575 | INPUT_PORTS_START( stmblade ) | |
| 2503 | static INPUT_PORTS_START( stmblade ) | |
| 2576 | 2504 | PORT_START // IN0 - $210002 |
| 2577 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) | |
| 2505 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) PORT_DIPLOCATION( "DSW1:1,2,3" ) | |
| 2578 | 2506 | PORT_DIPSETTING( 0x0005, DEF_STR( 3C_1C ) ) |
| 2579 | 2507 | PORT_DIPSETTING( 0x0006, DEF_STR( 2C_1C ) ) |
| 2580 | 2508 | PORT_DIPSETTING( 0x0007, DEF_STR( 1C_1C ) ) |
| r1238 | r1239 | |
| 2583 | 2511 | PORT_DIPSETTING( 0x0002, DEF_STR( 1C_4C ) ) |
| 2584 | 2512 | PORT_DIPSETTING( 0x0001, DEF_STR( 1C_5C ) ) |
| 2585 | 2513 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 2586 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) | |
| 2514 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) PORT_DIPLOCATION( "DSW1:4,5,6" ) | |
| 2587 | 2515 | PORT_DIPSETTING( 0x0028, DEF_STR( 3C_1C ) ) |
| 2588 | 2516 | PORT_DIPSETTING( 0x0030, DEF_STR( 2C_1C ) ) |
| 2589 | 2517 | PORT_DIPSETTING( 0x0038, DEF_STR( 1C_1C ) ) |
| r1238 | r1239 | |
| 2592 | 2520 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_4C ) ) |
| 2593 | 2521 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_5C ) ) |
| 2594 | 2522 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 2595 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) | |
| 2596 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 2597 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2598 | PORT_DIPNAME( 0x0080, 0x0080, "Rapid Fire" ) | |
| 2523 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "DSW1:7" ) | |
| 2524 | PORT_DIPNAME( 0x0080, 0x0080, "Rapid Fire" ) PORT_DIPLOCATION( "DSW1:8" ) | |
| 2599 | 2525 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 2600 | 2526 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 2601 | 2527 | |
| 2602 | 2528 | PORT_START // IN1 - $210004 |
| 2603 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 2529 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION( "DSW2:1" ) | |
| 2604 | 2530 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 2605 | 2531 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 2606 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) | |
| 2532 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION( "DSW2:2" ) | |
| 2607 | 2533 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 2608 | 2534 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) |
| 2609 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) | |
| 2535 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) PORT_DIPLOCATION( "DSW2:3,4" ) | |
| 2610 | 2536 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) |
| 2611 | 2537 | PORT_DIPSETTING( 0x000c, DEF_STR( Normal ) ) |
| 2612 | 2538 | PORT_DIPSETTING( 0x0004, DEF_STR( Hard ) ) |
| 2613 | 2539 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 2614 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Lives ) ) | |
| 2540 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Lives ) ) PORT_DIPLOCATION( "DSW2:5,6" ) | |
| 2615 | 2541 | PORT_DIPSETTING( 0x0020, "1" ) |
| 2616 | 2542 | PORT_DIPSETTING( 0x0010, "2" ) |
| 2617 | 2543 | PORT_DIPSETTING( 0x0030, "3" ) |
| 2618 | 2544 | PORT_DIPSETTING( 0x0000, "4" ) |
| 2619 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Bonus_Life ) ) | |
| 2545 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION( "DSW2:7" ) | |
| 2620 | 2546 | PORT_DIPSETTING( 0x0040, "600000" ) |
| 2621 | 2547 | PORT_DIPSETTING( 0x0000, "800000" ) |
| 2622 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 2548 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "DSW2:8" ) | |
| 2623 | 2549 | |
| 2624 | 2550 | PORT_START // IN2 - $210008 |
| 2625 | 2551 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 2654 | 2580 | Survival Arts |
| 2655 | 2581 | ***************************************************************************/ |
| 2656 | 2582 | |
| 2657 | INPUT_PORTS_START( survarts ) | |
| 2583 | static INPUT_PORTS_START( survarts ) | |
| 2658 | 2584 | PORT_START // IN0 - $210002 |
| 2659 | 2585 | PORT_DIPNAME( 0x000f, 0x0009, DEF_STR( Coin_A ) ) // Verified Default is 2 coins 1 Credit |
| 2660 | 2586 | PORT_DIPSETTING( 0x0007, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
| 2765 | 2691 | Dyna Gears |
| 2766 | 2692 | ***************************************************************************/ |
| 2767 | 2693 | |
| 2768 | INPUT_PORTS_START( dynagear ) | |
| 2694 | static INPUT_PORTS_START( dynagear ) | |
| 2769 | 2695 | PORT_START // IN0 - $210002 |
| 2770 | 2696 | PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coin_A ) ) |
| 2771 | 2697 | PORT_DIPSETTING( 0x0007, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
| 2866 | 2792 | Pachinko Sexy Reaction |
| 2867 | 2793 | ***************************************************************************/ |
| 2868 | 2794 | |
| 2869 | INPUT_PORTS_START( sxyreact ) | |
| 2795 | static INPUT_PORTS_START( sxyreact ) | |
| 2870 | 2796 | PORT_START // IN0 - $210002 |
| 2871 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coinage ) ) | |
| 2797 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coinage ) ) PORT_DIPLOCATION( "DSW1:1,2,3" ) | |
| 2872 | 2798 | PORT_DIPSETTING( 0x0005, DEF_STR( 3C_1C ) ) |
| 2873 | 2799 | PORT_DIPSETTING( 0x0006, DEF_STR( 2C_1C ) ) |
| 2874 | 2800 | PORT_DIPSETTING( 0x0007, DEF_STR( 1C_1C ) ) |
| r1238 | r1239 | |
| 2878 | 2804 | PORT_DIPSETTING( 0x0001, DEF_STR( 1C_5C ) ) |
| 2879 | 2805 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 2880 | 2806 | PORT_BIT( 0x0038, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2881 | // PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) | |
| 2807 | PORT_DIPUNUSED_DIPLOC( 0x0008, 0x0008, "DSW1:4" ) | |
| 2808 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0010, "DSW1:5" ) | |
| 2809 | PORT_DIPUNUSED_DIPLOC( 0x0020, 0x0020, "DSW1:6" ) | |
| 2810 | // PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) PORT_DIPLOCATION( "DSW1:4,5,6" ) | |
| 2882 | 2811 | // PORT_DIPSETTING( 0x0028, DEF_STR( 3C_1C ) ) |
| 2883 | 2812 | // PORT_DIPSETTING( 0x0030, DEF_STR( 2C_1C ) ) |
| 2884 | 2813 | // PORT_DIPSETTING( 0x0038, DEF_STR( 1C_1C ) ) |
| r1238 | r1239 | |
| 2887 | 2816 | // PORT_DIPSETTING( 0x0010, DEF_STR( 1C_4C ) ) |
| 2888 | 2817 | // PORT_DIPSETTING( 0x0008, DEF_STR( 1C_5C ) ) |
| 2889 | 2818 | // PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 2890 | PORT_DIPNAME( 0x0040, 0x0040, "Credits To Play" ) | |
| 2819 | PORT_DIPNAME( 0x0040, 0x0040, "Credits To Play" ) PORT_DIPLOCATION( "DSW1:7" ) | |
| 2891 | 2820 | PORT_DIPSETTING( 0x0040, "1" ) |
| 2892 | 2821 | PORT_DIPSETTING( 0x0000, "2" ) |
| 2893 | PORT_DIPNAME( 0x0080, 0x0080, "Buy Balls With Credits" ) // press start | |
| 2822 | PORT_DIPNAME( 0x0080, 0x0080, "Buy Balls With Credits" ) PORT_DIPLOCATION( "DSW1:8" ) // press start | |
| 2894 | 2823 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 2895 | 2824 | PORT_DIPSETTING( 0x0080, DEF_STR( On ) ) |
| 2896 | 2825 | |
| 2897 | 2826 | PORT_START // IN1 - $210004 |
| 2898 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 2827 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION( "DSW2:1" ) | |
| 2899 | 2828 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 2900 | 2829 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 2901 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) | |
| 2830 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION( "DSW2:2" ) | |
| 2902 | 2831 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 2903 | 2832 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) |
| 2904 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) | |
| 2833 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) PORT_DIPLOCATION( "DSW2:3,4" ) | |
| 2905 | 2834 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) |
| 2906 | 2835 | PORT_DIPSETTING( 0x000c, DEF_STR( Normal ) ) |
| 2907 | 2836 | PORT_DIPSETTING( 0x0004, DEF_STR( Hard ) ) |
| 2908 | 2837 | PORT_DIPSETTING( 0x0000, DEF_STR( Very_Hard ) ) |
| 2909 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Controls ) ) | |
| 2838 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Controls ) ) PORT_DIPLOCATION( "DSW2:5" ) | |
| 2910 | 2839 | PORT_DIPSETTING( 0x0010, "Dial" ) |
| 2911 | 2840 | PORT_DIPSETTING( 0x0000, DEF_STR( Joystick ) ) |
| 2912 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Free_Play ) ) | |
| 2841 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Free_Play ) ) PORT_DIPLOCATION( "DSW2:6" ) | |
| 2913 | 2842 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) |
| 2914 | 2843 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 2915 | PORT_SERVICE( 0x0040, IP_ACTIVE_LOW ) | |
| 2916 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unused ) ) | |
| 2917 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 2918 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2844 | PORT_SERVICE_DIPLOC( 0x0040, IP_ACTIVE_LOW, "DSW2:7" ) | |
| 2845 | PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0080, "DSW2:8" ) | |
| 2919 | 2846 | |
| 2920 | 2847 | PORT_START // IN2 - $210008 |
| 2921 | 2848 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 2950 | 2877 | Twin Eagle II |
| 2951 | 2878 | ***************************************************************************/ |
| 2952 | 2879 | |
| 2953 | INPUT_PORTS_START( twineag2 ) | |
| 2880 | static INPUT_PORTS_START( twineag2 ) | |
| 2954 | 2881 | PORT_START // IN0 - $210002 |
| 2955 | PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coin_A ) ) | |
| 2882 | PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION( | |
| 2956 | 2883 | PORT_DIPSETTING( 0x0007, DEF_STR( 4C_1C ) ) |
| 2957 | 2884 | PORT_DIPSETTING( 0x0008, DEF_STR( 3C_1C ) ) |
| 2958 | 2885 | PORT_DIPSETTING( 0x0009, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 2974 | 2901 | // 1c-1c, 2c-2c, 3c-3c & 4c-5c |
| 2975 | 2902 | PORT_DIPSETTING( 0x0001, "Multiple Coin Feature E" ) |
| 2976 | 2903 | // 1c-1c, 2c-3c |
| 2977 | PORT_DIPNAME( 0x00f0, 0x00f0, DEF_STR( Coin_B ) ) // No values listed for all "ON" | |
| 2904 | //PORT_DIPSETTING( 0x0000, "???" ) - No values listed for all "ON" | |
| 2905 | PORT_DIPNAME( 0x00f0, 0x00f0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION( "DSW1:5,6,7,8" ) | |
| 2978 | 2906 | PORT_DIPSETTING( 0x0070, DEF_STR( 4C_1C ) ) |
| 2979 | 2907 | PORT_DIPSETTING( 0x0080, DEF_STR( 3C_1C ) ) |
| 2980 | 2908 | PORT_DIPSETTING( 0x0090, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 2996 | 2924 | // 1c-1c, 2c-2c, 3c-3c & 4c-5c |
| 2997 | 2925 | PORT_DIPSETTING( 0x0010, "Multiple Coin Feature E" ) |
| 2998 | 2926 | // 1c-1c, 2c-3c |
| 2927 | //PORT_DIPSETTING( 0x0000, "???" ) - No values listed for all "ON" | |
| 2999 | 2928 | |
| 3000 | 2929 | PORT_START // IN1 - $210004 |
| 3001 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Difficulty ) ) | |
| 2930 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Difficulty ) ) PORT_DIPLOCATION( "DSW2:1,2,3" ) | |
| 3002 | 2931 | PORT_DIPSETTING( 0x0006, DEF_STR( Easiest ) ) |
| 3003 | 2932 | PORT_DIPSETTING( 0x0005, DEF_STR( Easier ) ) |
| 3004 | 2933 | PORT_DIPSETTING( 0x0004, DEF_STR( Easy ) ) |
| r1238 | r1239 | |
| 3007 | 2936 | PORT_DIPSETTING( 0x0002, DEF_STR( Hard ) ) |
| 3008 | 2937 | PORT_DIPSETTING( 0x0001, DEF_STR( Harder ) ) |
| 3009 | 2938 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 3010 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Free_Play ) ) | |
| 2939 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Free_Play ) ) PORT_DIPLOCATION( "DSW2:4" ) | |
| 3011 | 2940 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) |
| 3012 | 2941 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3013 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Lives ) ) | |
| 2942 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Lives ) ) PORT_DIPLOCATION( "DSW2:5" ) | |
| 3014 | 2943 | PORT_DIPSETTING( 0x0000, "2" ) |
| 3015 | 2944 | PORT_DIPSETTING( 0x0010, "3" ) |
| 3016 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Pause ) ) | |
| 2945 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Pause ) ) PORT_DIPLOCATION( "DSW2:6" ) | |
| 3017 | 2946 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) |
| 3018 | 2947 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3019 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Flip_Screen ) ) | |
| 2948 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION( "DSW2:7" ) | |
| 3020 | 2949 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) |
| 3021 | 2950 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3022 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 2951 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "DSW2:8" ) | |
| 3023 | 2952 | |
| 3024 | 2953 | PORT_START // IN2 - $210008 |
| 3025 | 2954 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 3058 | 2987 | Ultra X |
| 3059 | 2988 | ***************************************************************************/ |
| 3060 | 2989 | |
| 3061 | INPUT_PORTS_START( ultrax ) | |
| 2990 | static INPUT_PORTS_START( ultrax ) | |
| 3062 | 2991 | PORT_START // IN0 - $210002 |
| 3063 | 2992 | PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coin_A ) ) |
| 3064 | 2993 | PORT_DIPSETTING( 0x0008, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
| 3136 | 3065 | Vasara |
| 3137 | 3066 | ***************************************************************************/ |
| 3138 | 3067 | |
| 3139 | INPUT_PORTS_START( vasara ) | |
| 3068 | static INPUT_PORTS_START( vasara ) | |
| 3140 | 3069 | PORT_START // IN0 - $210002 |
| 3141 | 3070 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Free_Play ) ) |
| 3142 | 3071 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 3214 | 3143 | Vasara 2 |
| 3215 | 3144 | ***************************************************************************/ |
| 3216 | 3145 | |
| 3217 | INPUT_PORTS_START( vasara2 ) | |
| 3146 | static INPUT_PORTS_START( vasara2 ) | |
| 3218 | 3147 | PORT_START // IN0 - $210002 |
| 3219 | 3148 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Free_Play ) ) |
| 3220 | 3149 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 425 | 425 | INPUT PORTS & DIPS |
| 426 | 426 | ************************************************************/ |
| 427 | 427 | |
| 428 | INPUT_PORTS_START( topland ) | |
| 428 | static INPUT_PORTS_START( topland ) | |
| 429 | 429 | /* 0xa00200 -> 0x0c0d7c (-$7285,A5) */ |
| 430 | 430 | PORT_START_TAG("DSWA") |
| 431 | 431 | PORT_DIPUNUSED_DIPLOC( 0x01, IP_ACTIVE_LOW, "SWA:1" ) |
| r1238 | r1239 | |
| 478 | 478 | PORT_BIT( 0xffff, 0x0000, IPT_AD_STICK_Y ) PORT_MINMAX(0xf800,0x7ff) PORT_SENSITIVITY(30) PORT_KEYDELTA(40) PORT_PLAYER(2) |
| 479 | 479 | INPUT_PORTS_END |
| 480 | 480 | |
| 481 | INPUT_PORTS_START( ainferno ) | |
| 481 | static INPUT_PORTS_START( ainferno ) | |
| 482 | 482 | /* 0xa00200 -> 0x0c0003.b (-$7ffd,A5) */ |
| 483 | 483 | PORT_START_TAG("DSWA") |
| 484 | 484 | PORT_DIPNAME( 0x01, 0x01, "Moving Control" ) PORT_DIPLOCATION("SWA:1") |
| r1238 | r1239 | |
|---|---|---|
| 380 | 380 | * |
| 381 | 381 | *************************************/ |
| 382 | 382 | |
| 383 | INPUT_PORTS_START( roadriot ) | |
| 383 | static INPUT_PORTS_START( roadriot ) | |
| 384 | 384 | PORT_START /* e00000 */ |
| 385 | 385 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 386 | 386 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 407 | 407 | INPUT_PORTS_END |
| 408 | 408 | |
| 409 | 409 | |
| 410 | INPUT_PORTS_START( guardian ) | |
| 410 | static INPUT_PORTS_START( guardian ) | |
| 411 | 411 | PORT_START /* e00000 */ |
| 412 | 412 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 413 | 413 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(3) |
| r1238 | r1239 | |
|---|---|---|
| 345 | 345 | |
| 346 | 346 | /*******************************************************************/ |
| 347 | 347 | |
| 348 | INPUT_PORTS_START( tceptor ) | |
| 348 | static INPUT_PORTS_START( tceptor ) | |
| 349 | 349 | PORT_START /* DSW 1 */ |
| 350 | 350 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) |
| 351 | 351 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
| 401 | 401 | PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_Y ) PORT_MINMAX(0x00,0xfe) PORT_SENSITIVITY(100) PORT_KEYDELTA(16) |
| 402 | 402 | INPUT_PORTS_END |
| 403 | 403 | |
| 404 | INPUT_PORTS_START( tceptor2 ) | |
| 404 | static INPUT_PORTS_START( tceptor2 ) | |
| 405 | 405 | PORT_START /* DSW 1 */ |
| 406 | 406 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) |
| 407 | 407 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 194 | 194 | |
| 195 | 195 | |
| 196 | 196 | |
| 197 | INPUT_PORTS_START( cop01 ) | |
| 197 | static INPUT_PORTS_START( cop01 ) | |
| 198 | 198 | PORT_START_TAG("IN0") |
| 199 | 199 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 200 | 200 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 275 | 275 | |
| 276 | 276 | /* There is an ingame bug at 0x00e4 to 0x00e6 that performs the 'rrca' instead of 'rlca' |
| 277 | 277 | so you DSW1-8 has no effect and you can NOT start a game at areas 5 to 8. */ |
| 278 | INPUT_PORTS_START( mightguy ) | |
| 278 | static INPUT_PORTS_START( mightguy ) | |
| 279 | 279 | PORT_START_TAG("IN0") |
| 280 | 280 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 281 | 281 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 109 | 109 | * |
| 110 | 110 | *************************************/ |
| 111 | 111 | |
| 112 | INPUT_PORTS_START( vindictr ) | |
| 112 | static INPUT_PORTS_START( vindictr ) | |
| 113 | 113 | PORT_START_TAG("26000") |
| 114 | 114 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 115 | 115 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 108 | 108 | ADDRESS_MAP_END |
| 109 | 109 | |
| 110 | 110 | |
| 111 | INPUT_PORTS_START( hanaawas ) | |
| 111 | static INPUT_PORTS_START( hanaawas ) | |
| 112 | 112 | PORT_START /* IN0 */ |
| 113 | 113 | PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_SPECIAL ) |
| 114 | 114 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 195 | 195 | AM_RANGE(0x08, 0x08) AM_WRITE(aquarium_z80_bank_w) |
| 196 | 196 | ADDRESS_MAP_END |
| 197 | 197 | |
| 198 | INPUT_PORTS_START( aquarium ) | |
| 198 | static INPUT_PORTS_START( aquarium ) | |
| 199 | 199 | PORT_START_TAG("DSW") |
| 200 | 200 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) |
| 201 | 201 | PORT_DIPSETTING( 0x0002, DEF_STR( Easy ) ) |
| r1238 | r1239 | |
|---|---|---|
| 2159 | 2159 | Bal Cube |
| 2160 | 2160 | ***************************************************************************/ |
| 2161 | 2161 | |
| 2162 | INPUT_PORTS_START( balcube ) | |
| 2162 | static INPUT_PORTS_START( balcube ) | |
| 2163 | 2163 | PORT_START_TAG("IN0") // $500000 |
| 2164 | 2164 | COINS |
| 2165 | 2165 | |
| r1238 | r1239 | |
| 2202 | 2202 | Bang Bang Ball |
| 2203 | 2203 | ***************************************************************************/ |
| 2204 | 2204 | |
| 2205 | INPUT_PORTS_START( bangball ) | |
| 2205 | static INPUT_PORTS_START( bangball ) | |
| 2206 | 2206 | PORT_START_TAG("IN0") // $d00000 |
| 2207 | 2207 | COINS |
| 2208 | 2208 | |
| r1238 | r1239 | |
| 2243 | 2243 | Battle Bubble |
| 2244 | 2244 | ***************************************************************************/ |
| 2245 | 2245 | |
| 2246 | INPUT_PORTS_START( batlbubl ) | |
| 2246 | static INPUT_PORTS_START( batlbubl ) | |
| 2247 | 2247 | PORT_START_TAG("IN0") |
| 2248 | 2248 | JOY_LSB(1, BUTTON1, UNKNOWN, UNKNOWN, UNKNOWN) |
| 2249 | 2249 | JOY_MSB(2, BUTTON1, UNKNOWN, UNKNOWN, UNKNOWN) |
| r1238 | r1239 | |
| 2352 | 2352 | Blazing Tornado |
| 2353 | 2353 | ***************************************************************************/ |
| 2354 | 2354 | |
| 2355 | INPUT_PORTS_START( blzntrnd ) | |
| 2355 | static INPUT_PORTS_START( blzntrnd ) | |
| 2356 | 2356 | PORT_START_TAG("IN0") |
| 2357 | 2357 | PORT_DIPNAME( 0x0007, 0x0004, DEF_STR( Difficulty ) ) |
| 2358 | 2358 | PORT_DIPSETTING( 0x0007, "Beginner" ) |
| r1238 | r1239 | |
| 2469 | 2469 | Grand Striker 2 |
| 2470 | 2470 | ***************************************************************************/ |
| 2471 | 2471 | |
| 2472 | INPUT_PORTS_START( gstrik2 ) | |
| 2472 | static INPUT_PORTS_START( gstrik2 ) | |
| 2473 | 2473 | PORT_START_TAG("IN0") |
| 2474 | 2474 | PORT_DIPNAME( 0x0003, 0x0003, "Player Vs Com" ) |
| 2475 | 2475 | PORT_DIPSETTING( 0x0003, "1:00" ) |
| r1238 | r1239 | |
| 2614 | 2614 | On On Continue, Retry level |
| 2615 | 2615 | |
| 2616 | 2616 | */ |
| 2617 | INPUT_PORTS_START( daitorid ) | |
| 2617 | static INPUT_PORTS_START( daitorid ) | |
| 2618 | 2618 | PORT_START_TAG("IN0") // $c00000 |
| 2619 | 2619 | COINS |
| 2620 | 2620 | |
| r1238 | r1239 | |
| 2665 | 2665 | |
| 2666 | 2666 | Even if there are 4 "tables" the 2 first ones and the 2 last ones |
| 2667 | 2667 | contains the same values for the timer. */ |
| 2668 | INPUT_PORTS_START( dharma ) | |
| 2668 | static INPUT_PORTS_START( dharma ) | |
| 2669 | 2669 | PORT_START_TAG("IN0") //$c00000 |
| 2670 | 2670 | COINS |
| 2671 | 2671 | |
| r1238 | r1239 | |
| 2707 | 2707 | Gun Master |
| 2708 | 2708 | ***************************************************************************/ |
| 2709 | 2709 | |
| 2710 | INPUT_PORTS_START( gunmast ) | |
| 2710 | static INPUT_PORTS_START( gunmast ) | |
| 2711 | 2711 | PORT_START_TAG("IN0") //$400000 |
| 2712 | 2712 | COINS |
| 2713 | 2713 | |
| r1238 | r1239 | |
| 2752 | 2752 | Karate Tournament |
| 2753 | 2753 | ***************************************************************************/ |
| 2754 | 2754 | |
| 2755 | INPUT_PORTS_START( karatour ) | |
| 2755 | static INPUT_PORTS_START( karatour ) | |
| 2756 | 2756 | PORT_START_TAG("IN0") // $400002 |
| 2757 | 2757 | JOY_LSB(2, BUTTON1, BUTTON2, UNKNOWN, UNKNOWN) |
| 2758 | 2758 | |
| r1238 | r1239 | |
| 2851 | 2851 | PORT_START_TAG("IN4") /*$40000c*/\ |
| 2852 | 2852 | JOY_LSB(1, BUTTON1, BUTTON2, UNKNOWN, UNKNOWN) |
| 2853 | 2853 | |
| 2854 | INPUT_PORTS_START( ladykill ) | |
| 2854 | static INPUT_PORTS_START( ladykill ) | |
| 2855 | 2855 | LKILL_COMMON1 |
| 2856 | 2856 | PORT_START_TAG("IN2") // $400006 |
| 2857 | 2857 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Lives ) ) |
| r1238 | r1239 | |
| 2879 | 2879 | INPUT_PORTS_END |
| 2880 | 2880 | |
| 2881 | 2881 | /* Same as 'ladykill' but NO "Nudity" Dip Switch */ |
| 2882 | INPUT_PORTS_START( moegonta ) | |
| 2882 | static INPUT_PORTS_START( moegonta ) | |
| 2883 | 2883 | LKILL_COMMON1 |
| 2884 | 2884 | |
| 2885 | 2885 | PORT_START_TAG("IN2") // $400006 |
| r1238 | r1239 | |
| 2927 | 2927 | COINAGE_DSW\ |
| 2928 | 2928 | |
| 2929 | 2929 | |
| 2930 | INPUT_PORTS_START( lastfort ) | |
| 2930 | static INPUT_PORTS_START( lastfort ) | |
| 2931 | 2931 | LFORT_COMMON |
| 2932 | 2932 | |
| 2933 | 2933 | PORT_START_TAG("IN4")// $c0000c |
| r1238 | r1239 | |
| 2965 | 2965 | ***************************************************************************/ |
| 2966 | 2966 | |
| 2967 | 2967 | /* Same as 'lastfort' but WORKING "Tiles" Dip Switch */ |
| 2968 | INPUT_PORTS_START( lastfero ) | |
| 2968 | static INPUT_PORTS_START( lastfero ) | |
| 2969 | 2969 | LFORT_COMMON |
| 2970 | 2970 | |
| 2971 | 2971 | PORT_START // IN4 - $c0000c |
| r1238 | r1239 | |
| 3058 | 3058 | |
| 3059 | 3059 | |
| 3060 | 3060 | |
| 3061 | INPUT_PORTS_START( dokyusei ) | |
| 3061 | static INPUT_PORTS_START( dokyusei ) | |
| 3062 | 3062 | MAHJONG_PANEL |
| 3063 | 3063 | |
| 3064 | 3064 | PORT_START_TAG("IN6") // $478884.w |
| r1238 | r1239 | |
| 3118 | 3118 | |
| 3119 | 3119 | /* Same as dokyusei, without the DSWs (these games have an eeprom) */ |
| 3120 | 3120 | |
| 3121 | INPUT_PORTS_START( gakusai ) | |
| 3121 | static INPUT_PORTS_START( gakusai ) | |
| 3122 | 3122 | |
| 3123 | 3123 | MAHJONG_PANEL |
| 3124 | 3124 | |
| r1238 | r1239 | |
| 3129 | 3129 | Mouja |
| 3130 | 3130 | ***************************************************************************/ |
| 3131 | 3131 | |
| 3132 | INPUT_PORTS_START( mouja ) | |
| 3132 | static INPUT_PORTS_START( mouja ) | |
| 3133 | 3133 | PORT_START_TAG("IN0") //$478880 |
| 3134 | 3134 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3135 | 3135 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 3214 | 3214 | Pang Poms |
| 3215 | 3215 | ***************************************************************************/ |
| 3216 | 3216 | |
| 3217 | INPUT_PORTS_START( pangpoms ) | |
| 3217 | static INPUT_PORTS_START( pangpoms ) | |
| 3218 | 3218 | PORT_START_TAG("IN0") //$800004 |
| 3219 | 3219 | COINS |
| 3220 | 3220 | |
| r1238 | r1239 | |
| 3259 | 3259 | Poitto! |
| 3260 | 3260 | ***************************************************************************/ |
| 3261 | 3261 | |
| 3262 | INPUT_PORTS_START( poitto ) | |
| 3262 | static INPUT_PORTS_START( poitto ) | |
| 3263 | 3263 | PORT_START_TAG("IN0") //$800000 |
| 3264 | 3264 | COINS |
| 3265 | 3265 | |
| r1238 | r1239 | |
| 3303 | 3303 | Puzzli |
| 3304 | 3304 | ***************************************************************************/ |
| 3305 | 3305 | |
| 3306 | INPUT_PORTS_START( puzzli ) | |
| 3306 | static INPUT_PORTS_START( puzzli ) | |
| 3307 | 3307 | PORT_START_TAG("IN0") //$c00000 |
| 3308 | 3308 | COINS |
| 3309 | 3309 | |
| r1238 | r1239 | |
| 3347 | 3347 | Sankokushi |
| 3348 | 3348 | ***************************************************************************/ |
| 3349 | 3349 | |
| 3350 | INPUT_PORTS_START( 3kokushi ) | |
| 3350 | static INPUT_PORTS_START( 3kokushi ) | |
| 3351 | 3351 | PORT_START_TAG("IN0") //$c00000 |
| 3352 | 3352 | COINS |
| 3353 | 3353 | |
| r1238 | r1239 | |
| 3409 | 3409 | Pururun |
| 3410 | 3410 | ***************************************************************************/ |
| 3411 | 3411 | |
| 3412 | INPUT_PORTS_START( pururun ) | |
| 3412 | static INPUT_PORTS_START( pururun ) | |
| 3413 | 3413 | PORT_START_TAG("IN0") //$400000 |
| 3414 | 3414 | COINS |
| 3415 | 3415 | |
| r1238 | r1239 | |
| 3468 | 3468 | "none" "none" |
| 3469 | 3469 | |
| 3470 | 3470 | */ |
| 3471 | INPUT_PORTS_START( skyalert ) | |
| 3471 | static INPUT_PORTS_START( skyalert ) | |
| 3472 | 3472 | PORT_START_TAG("IN0") //$400004 |
| 3473 | 3473 | COINS |
| 3474 | 3474 | |
| r1238 | r1239 | |
| 3517 | 3517 | All I can tell is that is that it affects the levels which are |
| 3518 | 3518 | proposed, but there is no evidence that one "table" is harder |
| 3519 | 3519 | than another. */ |
| 3520 | INPUT_PORTS_START( toride2g ) | |
| 3520 | static INPUT_PORTS_START( toride2g ) | |
| 3521 | 3521 | PORT_START_TAG("IN0") //$800000 |
| 3522 | 3522 | COINS |
| 3523 | 3523 |
| r1238 | r1239 | |
|---|---|---|
| 319 | 319 | /* move right in hiscores table */ |
| 320 | 320 | |
| 321 | 321 | |
| 322 | INPUT_PORTS_START( angelkds ) | |
| 322 | static INPUT_PORTS_START( angelkds ) | |
| 323 | 323 | PORT_START_TAG("I40") /* inport $40 */ |
| 324 | 324 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_A ) ) |
| 325 | 325 | PORT_DIPSETTING( 0x70, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
| 425 | 425 | |
| 426 | 426 | INPUT_PORTS_END |
| 427 | 427 | |
| 428 | INPUT_PORTS_START( spcpostn ) | |
| 428 | static INPUT_PORTS_START( spcpostn ) | |
| 429 | 429 | PORT_START_TAG("I40") /* inport $40 */ |
| 430 | 430 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 431 | 431 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 154 | 154 | * |
| 155 | 155 | *************************************/ |
| 156 | 156 | |
| 157 | INPUT_PORTS_START( jrpacman ) | |
| 157 | static INPUT_PORTS_START( jrpacman ) | |
| 158 | 158 | PORT_START_TAG("IN0") |
| 159 | 159 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 160 | 160 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
|---|---|---|
| 40 | 40 | #define MASTER_CLOCK 53693100 |
| 41 | 41 | |
| 42 | 42 | |
| 43 | INPUT_PORTS_START( hshavoc ) | |
| 43 | static INPUT_PORTS_START( hshavoc ) | |
| 44 | 44 | PORT_START /* 16bit */ |
| 45 | 45 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Unknown ) ) |
| 46 | 46 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 172 | 172 | |
| 173 | 173 | |
| 174 | 174 | |
| 175 | INPUT_PORTS_START( circusc ) | |
| 175 | static INPUT_PORTS_START( circusc ) | |
| 176 | 176 | PORT_START /* IN0 */ |
| 177 | 177 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 178 | 178 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 96 | 96 | AM_RANGE(0x80, 0x9f) AM_WRITE(palette_w) |
| 97 | 97 | ADDRESS_MAP_END |
| 98 | 98 | |
| 99 | INPUT_PORTS_START( laserbas ) | |
| 99 | static INPUT_PORTS_START( laserbas ) | |
| 100 | 100 | PORT_START |
| 101 | 101 | PORT_DIPNAME( 0x01, 0x00, "0-0" ) |
| 102 | 102 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 100 | 100 | |
| 101 | 101 | /* Input Ports */ |
| 102 | 102 | |
| 103 | INPUT_PORTS_START( mikie ) | |
| 103 | static INPUT_PORTS_START( mikie ) | |
| 104 | 104 | PORT_START_TAG("IN0") |
| 105 | 105 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 106 | 106 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 536 | 536 | * |
| 537 | 537 | *************************************/ |
| 538 | 538 | |
| 539 | INPUT_PORTS_START( crusnusa ) | |
| 539 | static INPUT_PORTS_START( crusnusa ) | |
| 540 | 540 | PORT_START |
| 541 | 541 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 542 | 542 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 660 | 660 | INPUT_PORTS_END |
| 661 | 661 | |
| 662 | 662 | |
| 663 | INPUT_PORTS_START( crusnwld ) | |
| 663 | static INPUT_PORTS_START( crusnwld ) | |
| 664 | 664 | PORT_START |
| 665 | 665 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 666 | 666 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 781 | 781 | INPUT_PORTS_END |
| 782 | 782 | |
| 783 | 783 | |
| 784 | INPUT_PORTS_START( offroadc ) | |
| 784 | static INPUT_PORTS_START( offroadc ) | |
| 785 | 785 | PORT_START |
| 786 | 786 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 787 | 787 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 876 | 876 | INPUT_PORTS_END |
| 877 | 877 | |
| 878 | 878 | |
| 879 | INPUT_PORTS_START( wargods ) | |
| 879 | static INPUT_PORTS_START( wargods ) | |
| 880 | 880 | PORT_START /* DS1 */ |
| 881 | 881 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown )) |
| 882 | 882 | PORT_DIPSETTING( 0x0001, DEF_STR( Off )) |
| r1238 | r1239 | |
|---|---|---|
| 30 | 30 | |
| 31 | 31 | |
| 32 | 32 | /* Ports */ |
| 33 | INPUT_PORTS_START( kingpin ) | |
| 33 | static INPUT_PORTS_START( kingpin ) | |
| 34 | 34 | PORT_START |
| 35 | 35 | PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 36 | 36 | PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
|---|---|---|
| 87 | 87 | |
| 88 | 88 | /*************************************************************/ |
| 89 | 89 | |
| 90 | INPUT_PORTS_START( namcond1 ) | |
| 90 | static INPUT_PORTS_START( namcond1 ) | |
| 91 | 91 | PORT_START /* player 1 */ |
| 92 | 92 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) |
| 93 | 93 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) |
| r1238 | r1239 | |
|---|---|---|
| 206 | 206 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 207 | 207 | |
| 208 | 208 | |
| 209 | INPUT_PORTS_START( usg32 ) | |
| 209 | static INPUT_PORTS_START( usg32 ) | |
| 210 | 210 | |
| 211 | 211 | USGIN0 |
| 212 | 212 | |
| r1238 | r1239 | |
| 237 | 237 | INPUT_PORTS_END |
| 238 | 238 | |
| 239 | 239 | |
| 240 | INPUT_PORTS_START( usg83 ) //From here, the hardware was slightly upgraded, but not too different. | |
| 240 | static INPUT_PORTS_START( usg83 ) //From here, the hardware was slightly upgraded, but not too different. | |
| 241 | 241 | |
| 242 | 242 | USGIN0 |
| 243 | 243 |
| r1238 | r1239 | |
|---|---|---|
| 402 | 402 | INPUT PORTS, DIPs |
| 403 | 403 | ***********************************************************/ |
| 404 | 404 | |
| 405 | INPUT_PORTS_START( opwolf ) | |
| 405 | static INPUT_PORTS_START( opwolf ) | |
| 406 | 406 | /* 0x380000 -> 0x0ff028 (-$fd8,A5) (C-chip) */ |
| 407 | 407 | PORT_START_TAG("DSWA") |
| 408 | 408 | PORT_DIPUNUSED( 0x01, IP_ACTIVE_LOW ) |
| r1238 | r1239 | |
| 456 | 456 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_PLAYER(1) |
| 457 | 457 | INPUT_PORTS_END |
| 458 | 458 | |
| 459 | INPUT_PORTS_START( opwolfu ) | |
| 459 | static INPUT_PORTS_START( opwolfu ) | |
| 460 | 460 | PORT_INCLUDE( opwolf ) |
| 461 | 461 | |
| 462 | 462 | PORT_MODIFY( "DSWA" ) |
| 463 | 463 | TAITO_COINAGE_JAPAN_OLD |
| 464 | 464 | INPUT_PORTS_END |
| 465 | 465 | |
| 466 | INPUT_PORTS_START( opwolfb ) | |
| 466 | static INPUT_PORTS_START( opwolfb ) | |
| 467 | 467 | PORT_INCLUDE( opwolf ) |
| 468 | 468 | |
| 469 | 469 | PORT_MODIFY( "DSWB" ) |
| r1238 | r1239 | |
|---|---|---|
| 121 | 121 | |
| 122 | 122 | ***************************************************************************/ |
| 123 | 123 | |
| 124 | INPUT_PORTS_START( surpratk ) | |
| 124 | static INPUT_PORTS_START( surpratk ) | |
| 125 | 125 | PORT_START /* PLAYER 1 INPUTS */ |
| 126 | 126 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 127 | 127 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 105 | 105 | ADDRESS_MAP_END |
| 106 | 106 | |
| 107 | 107 | |
| 108 | INPUT_PORTS_START( pangofun ) | |
| 108 | static INPUT_PORTS_START( pangofun ) | |
| 109 | 109 | INPUT_PORTS_END |
| 110 | 110 | |
| 111 | 111 |
| r1238 | r1239 | |
|---|---|---|
| 495 | 495 | * Input Ports * |
| 496 | 496 | *************************/ |
| 497 | 497 | |
| 498 | INPUT_PORTS_START( pmpoker ) | |
| 498 | static INPUT_PORTS_START( pmpoker ) | |
| 499 | 499 | /* Multiplexed - 4x5bits */ |
| 500 | 500 | PORT_START_TAG("IN0-0") |
| 501 | 501 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 564 | 564 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 565 | 565 | INPUT_PORTS_END |
| 566 | 566 | |
| 567 | INPUT_PORTS_START( goldnpkr ) | |
| 567 | static INPUT_PORTS_START( goldnpkr ) | |
| 568 | 568 | /* Multiplexed - 4x5bits */ |
| 569 | 569 | PORT_START_TAG("IN0-0") |
| 570 | 570 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("Bet") PORT_CODE(KEYCODE_1) |
| r1238 | r1239 | |
| 626 | 626 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 627 | 627 | INPUT_PORTS_END |
| 628 | 628 | |
| 629 | INPUT_PORTS_START( goldnpkc ) | |
| 629 | static INPUT_PORTS_START( goldnpkc ) | |
| 630 | 630 | /* Multiplexed - 4x5bits */ |
| 631 | 631 | PORT_START_TAG("IN0-0") |
| 632 | 632 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("Bet") PORT_CODE(KEYCODE_1) |
| r1238 | r1239 | |
| 696 | 696 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 697 | 697 | INPUT_PORTS_END |
| 698 | 698 | |
| 699 | INPUT_PORTS_START( jokerpkr ) | |
| 699 | static INPUT_PORTS_START( jokerpkr ) | |
| 700 | 700 | /* Multiplexed - 4x5bits */ |
| 701 | 701 | PORT_START_TAG("IN0-0") |
| 702 | 702 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(3) PORT_NAME("Coin 1") |
| r1238 | r1239 | |
| 765 | 765 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 766 | 766 | INPUT_PORTS_END |
| 767 | 767 | |
| 768 | INPUT_PORTS_START( pottnpkr ) | |
| 768 | static INPUT_PORTS_START( pottnpkr ) | |
| 769 | 769 | /* Multiplexed - 4x5bits */ |
| 770 | 770 | PORT_START_TAG("IN0-0") |
| 771 | 771 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(3) PORT_NAME("Coin 1") |
| r1238 | r1239 | |
|---|---|---|
| 393 | 393 | Back Street Soccer |
| 394 | 394 | ***************************************************************************/ |
| 395 | 395 | |
| 396 | INPUT_PORTS_START( bssoccer ) | |
| 396 | static INPUT_PORTS_START( bssoccer ) | |
| 397 | 397 | |
| 398 | 398 | PORT_START // IN0 - $a00001.b - Player 1 |
| 399 | 399 | JOY(1) |
| r1238 | r1239 | |
| 476 | 476 | Ultra Balloon |
| 477 | 477 | ***************************************************************************/ |
| 478 | 478 | |
| 479 | INPUT_PORTS_START( uballoon ) | |
| 479 | static INPUT_PORTS_START( uballoon ) | |
| 480 | 480 | |
| 481 | 481 | PORT_START // IN0 - $600000.w - Player 1 |
| 482 | 482 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 571 | 571 | Suna Quiz 6000 |
| 572 | 572 | ***************************************************************************/ |
| 573 | 573 | |
| 574 | INPUT_PORTS_START( sunaq ) | |
| 574 | static INPUT_PORTS_START( sunaq ) | |
| 575 | 575 | PORT_START // Player 1 |
| 576 | 576 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 577 | 577 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 390 | 390 | |
| 391 | 391 | |
| 392 | 392 | |
| 393 | INPUT_PORTS_START( monymony ) | |
| 393 | static INPUT_PORTS_START( monymony ) | |
| 394 | 394 | PORT_START_TAG("IN0") |
| 395 | 395 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) |
| 396 | 396 | PORT_DIPSETTING( 0x00, "2" ) |
| r1238 | r1239 | |
| 499 | 499 | /* other bits come from a protection device */ |
| 500 | 500 | INPUT_PORTS_END |
| 501 | 501 | |
| 502 | INPUT_PORTS_START( jackrabt ) | |
| 502 | static INPUT_PORTS_START( jackrabt ) | |
| 503 | 503 | PORT_START_TAG("IN0") |
| 504 | 504 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) |
| 505 | 505 | PORT_DIPSETTING( 0x00, "2" ) |
| r1238 | r1239 | |
|---|---|---|
| 321 | 321 | |
| 322 | 322 | |
| 323 | 323 | #if USE_SHADFRCE_FAKE_INPUT_PORTS |
| 324 | INPUT_PORTS_START( shadfrce ) | |
| 324 | static INPUT_PORTS_START( shadfrce ) | |
| 325 | 325 | PORT_START /* Fake IN0 (player 1 inputs) */ |
| 326 | 326 | SHADFRCE_PLAYER_INPUT( 1, IPT_START1 ) |
| 327 | 327 | |
| r1238 | r1239 | |
| 400 | 400 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 401 | 401 | INPUT_PORTS_END |
| 402 | 402 | #else |
| 403 | INPUT_PORTS_START( shadfrce ) | |
| 403 | static INPUT_PORTS_START( shadfrce ) | |
| 404 | 404 | PORT_START /* IN0 - $1d0020.w */ |
| 405 | 405 | SHADFRCE_PLAYER_INPUT( 1, IPT_START1 ) |
| 406 | 406 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
|---|---|---|
| 108 | 108 | ADDRESS_MAP_END |
| 109 | 109 | |
| 110 | 110 | |
| 111 | INPUT_PORTS_START( speedbal ) | |
| 111 | static INPUT_PORTS_START( speedbal ) | |
| 112 | 112 | PORT_START /* DSW2 */ |
| 113 | 113 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Bonus_Life ) ) |
| 114 | 114 | PORT_DIPSETTING( 0x06, "70000 200000 1M" ) |
| r1238 | r1239 | |
|---|---|---|
| 267 | 267 | |
| 268 | 268 | /***************************************************************************************/ |
| 269 | 269 | |
| 270 | INPUT_PORTS_START( yumefuda ) | |
| 270 | static INPUT_PORTS_START( yumefuda ) | |
| 271 | 271 | PORT_START |
| 272 | 272 | PORT_DIPNAME( 0x01, 0x01, "Port 0" ) |
| 273 | 273 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 230 | 230 | */ |
| 231 | 231 | |
| 232 | 232 | |
| 233 | INPUT_PORTS_START( jongkyo ) | |
| 233 | static INPUT_PORTS_START( jongkyo ) | |
| 234 | 234 | PORT_START_TAG("0") |
| 235 | 235 | PORT_DIPNAME( 0x01, 0x01, "0" ) |
| 236 | 236 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 91 | 91 | AM_RANGE(0x2000, 0x3fff) AM_ROM |
| 92 | 92 | ADDRESS_MAP_END |
| 93 | 93 | |
| 94 | INPUT_PORTS_START( attckufo ) | |
| 94 | static INPUT_PORTS_START( attckufo ) | |
| 95 | 95 | PORT_START |
| 96 | 96 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) |
| 97 | 97 | PORT_DIPSETTING( 0x00, "3" ) |
| r1238 | r1239 | |
|---|---|---|
| 210 | 210 | ADDRESS_MAP_END |
| 211 | 211 | |
| 212 | 212 | |
| 213 | INPUT_PORTS_START( littlerb ) | |
| 213 | static INPUT_PORTS_START( littlerb ) | |
| 214 | 214 | PORT_START /* 16bit */ |
| 215 | 215 | PORT_DIPNAME( 0x0003, 0x0001, DEF_STR( Lives ) ) |
| 216 | 216 | PORT_DIPSETTING( 0x0003, "2" ) |
| r1238 | r1239 | |
|---|---|---|
| 1812 | 1812 | } |
| 1813 | 1813 | } |
| 1814 | 1814 | |
| 1815 | INPUT_PORTS_START(ppp) | |
| 1815 | static INPUT_PORTS_START(ppp) | |
| 1816 | 1816 | PORT_START_TAG("IN0") |
| 1817 | 1817 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) // Left |
| 1818 | 1818 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) // Right |
| r1238 | r1239 | |
| 1845 | 1845 | |
| 1846 | 1846 | INPUT_PORTS_END |
| 1847 | 1847 | |
| 1848 | INPUT_PORTS_START(kbm) | |
| 1848 | static INPUT_PORTS_START(kbm) | |
| 1849 | 1849 | PORT_START_TAG("IN0") |
| 1850 | 1850 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) // Start P1 |
| 1851 | 1851 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) // Start P2 |
| r1238 | r1239 | |
| 1921 | 1921 | |
| 1922 | 1922 | INPUT_PORTS_END |
| 1923 | 1923 | |
| 1924 | INPUT_PORTS_START(popn) | |
| 1924 | static INPUT_PORTS_START(popn) | |
| 1925 | 1925 | PORT_START_TAG("IN0") |
| 1926 | 1926 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) // Switch 1 |
| 1927 | 1927 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) // Switch 2 |
| r1238 | r1239 | |
| 2092 | 2092 | { |
| 2093 | 2093 | DS1991_STATE_NORMAL, |
| 2094 | 2094 | DS1991_STATE_READ_SUBKEY, |
| 2095 | } | |
| 2095 | } | |
| 2096 | 2096 | |
| 2097 | 2097 | static IBUTTON ibutton; |
| 2098 | 2098 |
| r1238 | r1239 | |
|---|---|---|
| 228 | 228 | * |
| 229 | 229 | *************************************/ |
| 230 | 230 | |
| 231 | INPUT_PORTS_START( clayshoo ) | |
| 231 | static INPUT_PORTS_START( clayshoo ) | |
| 232 | 232 | PORT_START_TAG("IN0") |
| 233 | 233 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) |
| 234 | 234 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 132 | 132 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 )\ |
| 133 | 133 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) |
| 134 | 134 | |
| 135 | INPUT_PORTS_START( bigprowr ) | |
| 135 | static INPUT_PORTS_START( bigprowr ) | |
| 136 | 136 | TAGTEAM_PLAYERS |
| 137 | 137 | |
| 138 | 138 | PORT_START_TAG("DSW1") |
| r1238 | r1239 | |
| 184 | 184 | INPUT_PORTS_END |
| 185 | 185 | |
| 186 | 186 | /* Same as 'bigprowr', but additional "Coin Mode" Dip Switch */ |
| 187 | INPUT_PORTS_START( tagteam ) | |
| 187 | static INPUT_PORTS_START( tagteam ) | |
| 188 | 188 | TAGTEAM_PLAYERS |
| 189 | 189 | PORT_START_TAG("DSW1") |
| 190 | 190 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) |
| r1238 | r1239 | |
|---|---|---|
| 178 | 178 | PORT_BIT( 0xffffffff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 179 | 179 | INPUT_PORTS_END |
| 180 | 180 | |
| 181 | INPUT_PORTS_START( hidnctch ) | |
| 181 | static INPUT_PORTS_START( hidnctch ) | |
| 182 | 182 | PORT_INCLUDE(common) |
| 183 | 183 | PORT_MODIFY("IN0") |
| 184 | 184 | PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 193 | 193 | PORT_BIT( 0xfffffffc, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 194 | 194 | INPUT_PORTS_END |
| 195 | 195 | |
| 196 | INPUT_PORTS_START( hidctch3 ) | |
| 196 | static INPUT_PORTS_START( hidctch3 ) | |
| 197 | 197 | PORT_INCLUDE(common) |
| 198 | 198 | PORT_MODIFY("IN0") |
| 199 | 199 | PORT_BIT( 0x00ff0000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 208 | 208 | // missing touch screen / pen inputs |
| 209 | 209 | INPUT_PORTS_END |
| 210 | 210 | |
| 211 | INPUT_PORTS_START( raccoon ) | |
| 211 | static INPUT_PORTS_START( raccoon ) | |
| 212 | 212 | PORT_INCLUDE(common) |
| 213 | 213 | PORT_MODIFY("IN0") |
| 214 | 214 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
| 223 | 223 | PORT_BIT( 0xfffffff0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 224 | 224 | INPUT_PORTS_END |
| 225 | 225 | |
| 226 | INPUT_PORTS_START( landbrk ) | |
| 226 | static INPUT_PORTS_START( landbrk ) | |
| 227 | 227 | PORT_INCLUDE(common) |
| 228 | 228 | PORT_MODIFY("DSW1") |
| 229 | 229 | PORT_DIPNAME( 0x00000001, 0x00000001, "Show Settings" ) |
| r1238 | r1239 | |
| 241 | 241 | PORT_BIT( 0xfffffff0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 242 | 242 | INPUT_PORTS_END |
| 243 | 243 | |
| 244 | INPUT_PORTS_START( puzzlekg ) | |
| 244 | static INPUT_PORTS_START( puzzlekg ) | |
| 245 | 245 | PORT_INCLUDE(common) |
| 246 | 246 | PORT_MODIFY("IN0") |
| 247 | 247 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
|---|---|---|
| 82 | 82 | READ8_HANDLER( bigevglf_mcu_r ); |
| 83 | 83 | READ8_HANDLER( bigevglf_mcu_status_r ); |
| 84 | 84 | |
| 85 | WRITE8_HANDLER( beg_gfxcontrol_w ); | |
| 86 | WRITE8_HANDLER( beg_palette_w ); | |
| 85 | WRITE8_HANDLER( bigevglf_gfxcontrol_w ); | |
| 86 | WRITE8_HANDLER( bigevglf_palette_w ); | |
| 87 | 87 | |
| 88 | extern UINT8 *beg_spriteram1; | |
| 89 | extern UINT8 *beg_spriteram2; | |
| 88 | extern UINT8 *bigevglf_spriteram1; | |
| 89 | extern UINT8 *bigevglf_spriteram2; | |
| 90 | 90 | |
| 91 | 91 | static UINT32 beg_bank=0; |
| 92 | UINT8 *beg_sharedram; | |
| 92 | static UINT8 *beg_sharedram; | |
| 93 | 93 | |
| 94 | 94 | static int sound_nmi_enable=0,pending_nmi=0; |
| 95 | 95 | static UINT8 for_sound = 0; |
| r1238 | r1239 | |
| 225 | 225 | beg_sharedram[offset] = data; |
| 226 | 226 | } |
| 227 | 227 | |
| 228 | INPUT_PORTS_START( bigevglf ) | |
| 228 | static INPUT_PORTS_START( bigevglf ) | |
| 229 | 229 | |
| 230 | 230 | PORT_START /* port 00 on sub cpu */ |
| 231 | 231 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN3 ) |
| r1238 | r1239 | |
| 289 | 289 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(30) PORT_KEYDELTA(10) PORT_REVERSE |
| 290 | 290 | INPUT_PORTS_END |
| 291 | 291 | |
| 292 | INPUT_PORTS_START( bigevglj ) | |
| 292 | static INPUT_PORTS_START( bigevglj ) | |
| 293 | 293 | PORT_INCLUDE(bigevglf) |
| 294 | 294 | |
| 295 | 295 | PORT_MODIFY("DSW2") |
| r1238 | r1239 | |
| 316 | 316 | AM_RANGE(0xc000, 0xcfff) AM_WRITE(MWA8_RAM) |
| 317 | 317 | AM_RANGE(0xd000, 0xd7ff) AM_WRITE(MWA8_ROM) |
| 318 | 318 | AM_RANGE(0xd800, 0xdbff) AM_WRITE(beg_sharedram_w) AM_BASE(&beg_sharedram) |
| 319 | AM_RANGE(0xe000, 0xe7ff) AM_WRITE(beg_palette_w) AM_BASE(&paletteram) | |
| 320 | AM_RANGE(0xe800, 0xefff) AM_WRITE(MWA8_RAM) AM_BASE(&beg_spriteram1) /* sprite 'templates' */ | |
| 319 | AM_RANGE(0xe000, 0xe7ff) AM_WRITE(bigevglf_palette_w) AM_BASE(&paletteram) | |
| 320 | AM_RANGE(0xe800, 0xefff) AM_WRITE(MWA8_RAM) AM_BASE(&bigevglf_spriteram1) /* sprite 'templates' */ | |
| 321 | 321 | AM_RANGE(0xf000, 0xf0ff) AM_WRITE(bigevglf_vidram_w) |
| 322 | AM_RANGE(0xf840, 0xf8ff) AM_WRITE(MWA8_RAM) AM_BASE(&beg_spriteram2) /* spriteram (x,y,offset in spriteram1,palette) */ | |
| 322 | AM_RANGE(0xf840, 0xf8ff) AM_WRITE(MWA8_RAM) AM_BASE(&bigevglf_spriteram2) /* spriteram (x,y,offset in spriteram1,palette) */ | |
| 323 | 323 | ADDRESS_MAP_END |
| 324 | 324 | |
| 325 | 325 | static ADDRESS_MAP_START( bigevglf_writeport, ADDRESS_SPACE_IO, 8 ) |
| 326 | 326 | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) ) |
| 327 | 327 | AM_RANGE(0x00, 0x00) AM_WRITE(MWA8_NOP) /* video ram enable ???*/ |
| 328 | AM_RANGE(0x01, 0x01) AM_WRITE(beg_gfxcontrol_w) /* plane select */ | |
| 328 | AM_RANGE(0x01, 0x01) AM_WRITE(bigevglf_gfxcontrol_w) /* plane select */ | |
| 329 | 329 | AM_RANGE(0x02, 0x02) AM_WRITE(beg_banking_w) |
| 330 | 330 | AM_RANGE(0x03, 0x03) AM_WRITE(beg13A_set_w) |
| 331 | 331 | AM_RANGE(0x04, 0x04) AM_WRITE(beg13B_clr_w) |
| r1238 | r1239 | |
|---|---|---|
| 267 | 267 | |
| 268 | 268 | |
| 269 | 269 | |
| 270 | INPUT_PORTS_START( bagman ) | |
| 270 | static INPUT_PORTS_START( bagman ) | |
| 271 | 271 | PORT_START /* IN0 */ |
| 272 | 272 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 273 | 273 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 315 | 315 | |
| 316 | 316 | /* EXACTLY the same as bagman, the only difference is that |
| 317 | 317 | Languade dip is replaced by Demo Sounds */ |
| 318 | INPUT_PORTS_START( bagmans ) | |
| 318 | static INPUT_PORTS_START( bagmans ) | |
| 319 | 319 | PORT_START /* IN0 */ |
| 320 | 320 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 321 | 321 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 364 | 364 | |
| 365 | 365 | /* EXACTLY the same as bagman, the only difference is that the START1 button */ |
| 366 | 366 | /* also acts as the shoot button. */ |
| 367 | INPUT_PORTS_START( sbagman ) | |
| 367 | static INPUT_PORTS_START( sbagman ) | |
| 368 | 368 | PORT_START /* IN0 */ |
| 369 | 369 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 370 | 370 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 412 | 412 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| 413 | 413 | INPUT_PORTS_END |
| 414 | 414 | |
| 415 | INPUT_PORTS_START( pickin ) | |
| 415 | static INPUT_PORTS_START( pickin ) | |
| 416 | 416 | PORT_START /* IN0 */ |
| 417 | 417 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 418 | 418 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 459 | 459 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| 460 | 460 | INPUT_PORTS_END |
| 461 | 461 | |
| 462 | INPUT_PORTS_START( botanic ) | |
| 462 | static INPUT_PORTS_START( botanic ) | |
| 463 | 463 | PORT_START /* IN0 */ |
| 464 | 464 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 465 | 465 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 789 | 789 | AM_RANGE(H8_ADC_3_H, H8_ADC_3_L) AM_NOP |
| 790 | 790 | ADDRESS_MAP_END |
| 791 | 791 | |
| 792 | INPUT_PORTS_START( ss23 ) | |
| 792 | static INPUT_PORTS_START( ss23 ) | |
| 793 | 793 | INPUT_PORTS_END |
| 794 | 794 | |
| 795 | 795 | |
| r1238 | r1239 | |
| 1090 | 1090 | ROM_END |
| 1091 | 1091 | |
| 1092 | 1092 | /* Games */ |
| 1093 | //GAME( 199?, downhbkr, 0, s23, ss23, ss23, ROT0, "Namco", "Downhill Bikers (DH3 Ver.A)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_SOUND ) | |
| 1093 | 1094 | GAME( 1997, timecrs2, 0, s23, ss23, ss23, ROT0, "Namco", "Time Crisis 2", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_SOUND ) |
| 1094 | 1095 | GAME( 1999, gp500, 0, ss23, ss23, ss23, ROT0, "Namco", "GP500", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_SOUND ) |
| 1095 | 1096 | GAME( 1999, finfurl2, 0, ss23, ss23, ss23, ROT0, "Namco", "Final Furlong 2 (World)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_SOUND ) |
| r1238 | r1239 | |
|---|---|---|
| 268 | 268 | |
| 269 | 269 | ******************************************************************************/ |
| 270 | 270 | |
| 271 | INPUT_PORTS_START( inufuku ) | |
| 271 | static INPUT_PORTS_START( inufuku ) | |
| 272 | 272 | PORT_START // 0 |
| 273 | 273 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 274 | 274 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 65 | 65 | AM_RANGE(0xe000, 0xe3ff) AM_RAM |
| 66 | 66 | ADDRESS_MAP_END |
| 67 | 67 | |
| 68 | INPUT_PORTS_START( tattack ) | |
| 68 | static INPUT_PORTS_START( tattack ) | |
| 69 | 69 | PORT_START |
| 70 | 70 | PORT_DIPNAME( 0x01, 0x00, "1-01" ) |
| 71 | 71 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 93 | 93 | |
| 94 | 94 | /* Input Ports */ |
| 95 | 95 | |
| 96 | INPUT_PORTS_START( commando ) | |
| 96 | static INPUT_PORTS_START( commando ) | |
| 97 | 97 | PORT_START_TAG("IN0") |
| 98 | 98 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 99 | 99 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 167 | 167 | PORT_DIPSETTING( 0xc0, DEF_STR( Cocktail ) ) |
| 168 | 168 | INPUT_PORTS_END |
| 169 | 169 | |
| 170 | INPUT_PORTS_START( commandu ) | |
| 170 | static INPUT_PORTS_START( commandu ) | |
| 171 | 171 | PORT_INCLUDE(commando) |
| 172 | 172 | |
| 173 | 173 | PORT_MODIFY("DSW1") |
| r1238 | r1239 | |
|---|---|---|
| 715 | 715 | * |
| 716 | 716 | *************************************/ |
| 717 | 717 | |
| 718 | INPUT_PORTS_START( paperboy ) | |
| 718 | static INPUT_PORTS_START( paperboy ) | |
| 719 | 719 | PORT_START_TAG("1840") /*(sound) */ |
| 720 | 720 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) |
| 721 | 721 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) |
| r1238 | r1239 | |
| 815 | 815 | INPUT_PORTS_END |
| 816 | 816 | |
| 817 | 817 | |
| 818 | INPUT_PORTS_START( 720 ) | |
| 818 | static INPUT_PORTS_START( 720 ) | |
| 819 | 819 | PORT_START_TAG("1840") /* (sound) */ |
| 820 | 820 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) |
| 821 | 821 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) |
| r1238 | r1239 | |
| 914 | 914 | INPUT_PORTS_END |
| 915 | 915 | |
| 916 | 916 | |
| 917 | INPUT_PORTS_START( ssprint ) | |
| 917 | static INPUT_PORTS_START( ssprint ) | |
| 918 | 918 | PORT_START_TAG("1840") |
| 919 | 919 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) |
| 920 | 920 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) |
| r1238 | r1239 | |
| 1013 | 1013 | INPUT_PORTS_END |
| 1014 | 1014 | |
| 1015 | 1015 | |
| 1016 | INPUT_PORTS_START( csprint ) | |
| 1016 | static INPUT_PORTS_START( csprint ) | |
| 1017 | 1017 | PORT_START_TAG("1840") |
| 1018 | 1018 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) |
| 1019 | 1019 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) |
| r1238 | r1239 | |
| 1112 | 1112 | INPUT_PORTS_END |
| 1113 | 1113 | |
| 1114 | 1114 | |
| 1115 | INPUT_PORTS_START( apb ) | |
| 1115 | static INPUT_PORTS_START( apb ) | |
| 1116 | 1116 | PORT_START_TAG("1840") |
| 1117 | 1117 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) |
| 1118 | 1118 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) |
| r1238 | r1239 | |
|---|---|---|
| 182 | 182 | |
| 183 | 183 | /****************************************************************************/ |
| 184 | 184 | |
| 185 | INPUT_PORTS_START( mjsister ) | |
| 185 | static INPUT_PORTS_START( mjsister ) | |
| 186 | 186 | |
| 187 | 187 | PORT_START /* DSW1 (0) */ |
| 188 | 188 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) ) |
| r1238 | r1239 | |
|---|---|---|
| 335 | 335 | |
| 336 | 336 | |
| 337 | 337 | |
| 338 | INPUT_PORTS_START( ninjakd2 ) | |
| 338 | static INPUT_PORTS_START( ninjakd2 ) | |
| 339 | 339 | PORT_START |
| 340 | 340 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) |
| 341 | 341 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) |
| r1238 | r1239 | |
|---|---|---|
| 217 | 217 | * |
| 218 | 218 | *************************************/ |
| 219 | 219 | |
| 220 | INPUT_PORTS_START( skydiver ) | |
| 220 | static INPUT_PORTS_START( skydiver ) | |
| 221 | 221 | PORT_START /* IN0 */ |
| 222 | 222 | PORT_BIT (0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 223 | 223 | PORT_BIT (0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) |
| r1238 | r1239 | |
|---|---|---|
| 198 | 198 | Magix |
| 199 | 199 | ***************************************************************************/ |
| 200 | 200 | |
| 201 | INPUT_PORTS_START( magix ) | |
| 201 | static INPUT_PORTS_START( magix ) | |
| 202 | 202 | |
| 203 | 203 | PORT_START // IN0 - Coins |
| 204 | 204 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 286 | 286 | Cannon Ball |
| 287 | 287 | ***************************************************************************/ |
| 288 | 288 | |
| 289 | INPUT_PORTS_START( cannball ) | |
| 289 | static INPUT_PORTS_START( cannball ) | |
| 290 | 290 | |
| 291 | 291 | PORT_START // IN0 - Coins |
| 292 | 292 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 372 | 372 | Rock Tris |
| 373 | 373 | ***************************************************************************/ |
| 374 | 374 | |
| 375 | INPUT_PORTS_START( rocktris ) | |
| 375 | static INPUT_PORTS_START( rocktris ) | |
| 376 | 376 | |
| 377 | 377 | PORT_START // IN0 - Coins |
| 378 | 378 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 370 | 370 | |
| 371 | 371 | |
| 372 | 372 | |
| 373 | INPUT_PORTS_START( geebee ) | |
| 373 | static INPUT_PORTS_START( geebee ) | |
| 374 | 374 | PORT_START_TAG("SW0") |
| 375 | 375 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 376 | 376 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 410 | 410 | PORT_BIT( 0xff, 0x58, IPT_PADDLE ) PORT_MINMAX(0x10,0xa0) PORT_SENSITIVITY(30) PORT_KEYDELTA(15) PORT_CENTERDELTA(0) PORT_REVERSE PORT_COCKTAIL |
| 411 | 411 | INPUT_PORTS_END |
| 412 | 412 | |
| 413 | INPUT_PORTS_START( navarone ) | |
| 413 | static INPUT_PORTS_START( navarone ) | |
| 414 | 414 | PORT_START_TAG("SW0") |
| 415 | 415 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 416 | 416 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| r1238 | r1239 | |
| 452 | 452 | PORT_BIT( 0x02, 0x00, IPT_JOYSTICK_LEFT ) PORT_COCKTAIL |
| 453 | 453 | INPUT_PORTS_END |
| 454 | 454 | |
| 455 | INPUT_PORTS_START( kaitei ) | |
| 455 | static INPUT_PORTS_START( kaitei ) | |
| 456 | 456 | PORT_START_TAG("SW0") |
| 457 | 457 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 458 | 458 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| r1238 | r1239 | |
| 492 | 492 | PORT_BIT( 0x02, 0x00, IPT_JOYSTICK_LEFT ) PORT_COCKTAIL |
| 493 | 493 | INPUT_PORTS_END |
| 494 | 494 | |
| 495 | INPUT_PORTS_START( kaiteik ) | |
| 495 | static INPUT_PORTS_START( kaiteik ) | |
| 496 | 496 | PORT_START_TAG("SW0") |
| 497 | 497 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 498 | 498 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 536 | 536 | PORT_BIT( 0xc0, 0x80, IPT_UNKNOWN ) // game verifies these two bits and freezes if they don't match |
| 537 | 537 | INPUT_PORTS_END |
| 538 | 538 | |
| 539 | INPUT_PORTS_START( sos ) | |
| 539 | static INPUT_PORTS_START( sos ) | |
| 540 | 540 | PORT_START_TAG("SW0") |
| 541 | 541 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 542 | 542 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| r1238 | r1239 | |
| 577 | 577 | PORT_BIT( 0x02, 0x00, IPT_JOYSTICK_LEFT ) PORT_COCKTAIL |
| 578 | 578 | INPUT_PORTS_END |
| 579 | 579 | |
| 580 | INPUT_PORTS_START( bombbee ) | |
| 580 | static INPUT_PORTS_START( bombbee ) | |
| 581 | 581 | PORT_START_TAG("IN0") |
| 582 | 582 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 583 | 583 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 621 | 621 | PORT_BIT( 0xff, 0x60, IPT_PADDLE ) PORT_MINMAX(0x14,0xac) PORT_SENSITIVITY(30) PORT_KEYDELTA(10) PORT_CENTERDELTA(0) PORT_REVERSE PORT_COCKTAIL |
| 622 | 622 | INPUT_PORTS_END |
| 623 | 623 | |
| 624 | INPUT_PORTS_START( cutieq ) | |
| 624 | static INPUT_PORTS_START( cutieq ) | |
| 625 | 625 | PORT_START_TAG("IN0") |
| 626 | 626 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 627 | 627 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 665 | 665 | PORT_BIT( 0xff, 0x60, IPT_PADDLE ) PORT_MINMAX(0x14,0xac) PORT_SENSITIVITY(30) PORT_KEYDELTA(10) PORT_CENTERDELTA(0) PORT_REVERSE PORT_COCKTAIL |
| 666 | 666 | INPUT_PORTS_END |
| 667 | 667 | |
| 668 | INPUT_PORTS_START( warpwarp ) | |
| 668 | static INPUT_PORTS_START( warpwarp ) | |
| 669 | 669 | PORT_START_TAG("IN0") |
| 670 | 670 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 671 | 671 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| r1238 | r1239 | |
| 724 | 724 | INPUT_PORTS_END |
| 725 | 725 | |
| 726 | 726 | /* has High Score Initials dip switch instead of rack test */ |
| 727 | INPUT_PORTS_START( warpwarr ) | |
| 727 | static INPUT_PORTS_START( warpwarr ) | |
| 728 | 728 | PORT_START_TAG("IN0") |
| 729 | 729 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 730 | 730 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| r1238 | r1239 | |
|---|---|---|
| 185 | 185 | |
| 186 | 186 | |
| 187 | 187 | |
| 188 | INPUT_PORTS_START( cd32 ) | |
| 188 | static INPUT_PORTS_START( cd32 ) | |
| 189 | 189 | PORT_START_TAG("CIA0PORTA") |
| 190 | 190 | PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_SPECIAL ) |
| 191 | 191 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 390 | 390 | /***************************************************************************************************/ |
| 391 | 391 | |
| 392 | 392 | /* BIOS */ |
| 393 | GAME | |
| 393 | GAME | |
| 394 | 394 | |
| 395 | GAMEB( 1995, cndypuzl, cd32, cd32, cd32, cd32, cd32, ROT0, "CD Express", "Candy Puzzle (v1.0)", GAME_NOT_WORKING|GAME_NO_SOUND ) | |
| 396 | GAMEB( 1995, haremchl, cd32, cd32, cd32, cd32, cd32, ROT0, "CD Express", "Harem Challenge", GAME_NOT_WORKING|GAME_NO_SOUND ) | |
| 397 | GAMEB( 1995, lsrquiz, cd32, cd32, cd32, cd32, cd32, ROT0, "CD Express", "Laser Quiz", GAME_NOT_WORKING|GAME_NO_SOUND ) | |
| 398 | GAMEB( 1995, lsrquiz2, cd32, cd32, cd32, cd32, cd32, ROT0, "CD Express", "Laser Quiz '2' Italy (v1.0)", GAME_NOT_WORKING|GAME_NO_SOUND ) | |
| 399 | GAMEB( 1996, mgprem11, cd32, cd32, cd32, cd32, cd32, ROT0, "CD Express", "Magic Premium (v1.1)", GAME_NOT_WORKING|GAME_NO_SOUND ) | |
| 400 | GAMEB( 1995, lasstixx, cd32, cd32, cd32, cd32, cd32, ROT0, "CD Express", "Laser Strixx", GAME_NOT_WORKING|GAME_NO_SOUND ) | |
| 395 | GAME( 1995, cndypuzl, cd32, cd32, cd32, cd32, ROT0, "CD Express", "Candy Puzzle (v1.0)", GAME_NOT_WORKING|GAME_NO_SOUND ) | |
| 396 | GAME( 1995, haremchl, cd32, cd32, cd32, cd32, ROT0, "CD Express", "Harem Challenge", GAME_NOT_WORKING|GAME_NO_SOUND ) | |
| 397 | GAME( 1995, lsrquiz, cd32, cd32, cd32, cd32, ROT0, "CD Express", "Laser Quiz", GAME_NOT_WORKING|GAME_NO_SOUND ) | |
| 398 | GAME( 1995, lsrquiz2, cd32, cd32, cd32, cd32, ROT0, "CD Express", "Laser Quiz '2' Italy (v1.0)", GAME_NOT_WORKING|GAME_NO_SOUND ) | |
| 399 | GAME( 1996, mgprem11, cd32, cd32, cd32, cd32, ROT0, "CD Express", "Magic Premium (v1.1)", GAME_NOT_WORKING|GAME_NO_SOUND ) | |
| 400 | GAME( 1995, lasstixx, cd32, cd32, cd32, cd32, ROT0, "CD Express", "Laser Strixx", GAME_NOT_WORKING|GAME_NO_SOUND ) |
| r1238 | r1239 | |
|---|---|---|
| 404 | 404 | ADDRESS_MAP_END |
| 405 | 405 | |
| 406 | 406 | |
| 407 | INPUT_PORTS_START( wheelfir ) | |
| 407 | static INPUT_PORTS_START( wheelfir ) | |
| 408 | 408 | PORT_START /* 16bit */ |
| 409 | 409 | PORT_DIPNAME( 0x0001, 0x0001, "0" ) |
| 410 | 410 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 56 | 56 | AM_RANGE(0x200000, 0x20ffff) AM_RAM |
| 57 | 57 | ADDRESS_MAP_END |
| 58 | 58 | |
| 59 | INPUT_PORTS_START( steaser ) | |
| 59 | static INPUT_PORTS_START( steaser ) | |
| 60 | 60 | INPUT_PORTS_END |
| 61 | 61 | |
| 62 | 62 |
| r1238 | r1239 | |
|---|---|---|
| 200 | 200 | |
| 201 | 201 | /******************************************************************************/ |
| 202 | 202 | |
| 203 | INPUT_PORTS_START( twocrude ) | |
| 203 | static INPUT_PORTS_START( twocrude ) | |
| 204 | 204 | PORT_START /* Player 1 controls */ |
| 205 | 205 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 206 | 206 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 374 | 374 | |
| 375 | 375 | ADDRESS_MAP_END |
| 376 | 376 | |
| 377 | INPUT_PORTS_START( bballoon ) | |
| 377 | static INPUT_PORTS_START( bballoon ) | |
| 378 | 378 | INPUT_PORTS_END |
| 379 | 379 | |
| 380 | 380 | static int irq_en = 0; |
| r1238 | r1239 | |
|---|---|---|
| 439 | 439 | Input Ports |
| 440 | 440 | ***************************************************************************/ |
| 441 | 441 | |
| 442 | INPUT_PORTS_START( dunhuang ) | |
| 442 | static INPUT_PORTS_START( dunhuang ) | |
| 443 | 443 | PORT_START // IN0 - DSW1 |
| 444 | 444 | PORT_DIPNAME( 0x0f, 0x0f, "Main Game Chance (%)" ) |
| 445 | 445 | PORT_DIPSETTING( 0x00, "78" ) |
| r1238 | r1239 | |
|---|---|---|
| 187 | 187 | PORT_DIPSETTING( 0x20, "Difficult" )\ |
| 188 | 188 | PORT_DIPSETTING( 0x00, "Very Difficult" ) |
| 189 | 189 | |
| 190 | INPUT_PORTS_START( gng ) | |
| 190 | static INPUT_PORTS_START( gng ) | |
| 191 | 191 | GNG_COMMON |
| 192 | 192 | |
| 193 | 193 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) |
| r1238 | r1239 | |
| 196 | 196 | INPUT_PORTS_END |
| 197 | 197 | |
| 198 | 198 | /* identical to gng, but the "unknown" dip switch is Invulnerability */ |
| 199 | INPUT_PORTS_START( makaimur ) | |
| 199 | static INPUT_PORTS_START( makaimur ) | |
| 200 | 200 | GNG_COMMON |
| 201 | 201 | PORT_DIPNAME( 0x80, 0x80, "Invulnerability (Cheat)") |
| 202 | 202 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 203 | 203 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 204 | 204 | INPUT_PORTS_END |
| 205 | 205 | |
| 206 | INPUT_PORTS_START( diamond ) | |
| 206 | static INPUT_PORTS_START( diamond ) | |
| 207 | 207 | PORT_START_TAG("IN0") |
| 208 | 208 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 209 | 209 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 135 | 135 | AM_RANGE(0xc0, 0xc0) AM_WRITE(soundlatch_clear_w) |
| 136 | 136 | ADDRESS_MAP_END |
| 137 | 137 | |
| 138 | INPUT_PORTS_START( onetwo ) | |
| 138 | static INPUT_PORTS_START( onetwo ) | |
| 139 | 139 | PORT_START |
| 140 | 140 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 141 | 141 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 350 | 350 | ADDRESS_MAP_END |
| 351 | 351 | |
| 352 | 352 | |
| 353 | INPUT_PORTS_START( ojankohs ) | |
| 353 | static INPUT_PORTS_START( ojankohs ) | |
| 354 | 354 | PORT_START_TAG("IN0") /* (0) TEST SW */ |
| 355 | 355 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 356 | 356 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| r1238 | r1239 | |
| 459 | 459 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 460 | 460 | INPUT_PORTS_END |
| 461 | 461 | |
| 462 | INPUT_PORTS_START( ojankoy ) | |
| 462 | static INPUT_PORTS_START( ojankoy ) | |
| 463 | 463 | PORT_START_TAG("IN0") /* (0) TEST SW */ |
| 464 | 464 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 465 | 465 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| r1238 | r1239 | |
| 578 | 578 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 579 | 579 | INPUT_PORTS_END |
| 580 | 580 | |
| 581 | INPUT_PORTS_START( ccasino ) | |
| 581 | static INPUT_PORTS_START( ccasino ) | |
| 582 | 582 | PORT_START_TAG("IN0") /* (0) TEST SW */ |
| 583 | 583 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 584 | 584 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| r1238 | r1239 | |
| 754 | 754 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 755 | 755 | INPUT_PORTS_END |
| 756 | 756 | |
| 757 | INPUT_PORTS_START( ojankoc ) | |
| 757 | static INPUT_PORTS_START( ojankoc ) | |
| 758 | 758 | PORT_START_TAG("DSW1") /* DSW1 (0) */ |
| 759 | 759 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 760 | 760 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 152 | 152 | MACHINE_DRIVER_END |
| 153 | 153 | |
| 154 | 154 | |
| 155 | INPUT_PORTS_START( spacefev ) | |
| 155 | static INPUT_PORTS_START( spacefev ) | |
| 156 | 156 | PORT_START |
| 157 | 157 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 158 | 158 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| r1238 | r1239 | |
| 203 | 203 | INPUT_PORTS_END |
| 204 | 204 | |
| 205 | 205 | |
| 206 | INPUT_PORTS_START( highsplt ) | |
| 206 | static INPUT_PORTS_START( highsplt ) | |
| 207 | 207 | PORT_START |
| 208 | 208 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 209 | 209 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| r1238 | r1239 | |
| 253 | 253 | INPUT_PORTS_END |
| 254 | 254 | |
| 255 | 255 | |
| 256 | INPUT_PORTS_START( spacelnc ) | |
| 256 | static INPUT_PORTS_START( spacelnc ) | |
| 257 | 257 | PORT_START |
| 258 | 258 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 259 | 259 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| r1238 | r1239 | |
| 303 | 303 | INPUT_PORTS_END |
| 304 | 304 | |
| 305 | 305 | |
| 306 | INPUT_PORTS_START( sheriff ) | |
| 306 | static INPUT_PORTS_START( sheriff ) | |
| 307 | 307 | PORT_START |
| 308 | 308 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_RIGHT ) |
| 309 | 309 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_LEFT ) |
| r1238 | r1239 | |
| 351 | 351 | INPUT_PORTS_END |
| 352 | 352 | |
| 353 | 353 | |
| 354 | INPUT_PORTS_START( bandido ) | |
| 354 | static INPUT_PORTS_START( bandido ) | |
| 355 | 355 | PORT_START |
| 356 | 356 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_RIGHT ) |
| 357 | 357 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_LEFT ) |
| r1238 | r1239 | |
| 401 | 401 | INPUT_PORTS_END |
| 402 | 402 | |
| 403 | 403 | |
| 404 | INPUT_PORTS_START( helifire ) | |
| 404 | static INPUT_PORTS_START( helifire ) | |
| 405 | 405 | PORT_START |
| 406 | 406 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) |
| 407 | 407 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) |
| r1238 | r1239 | |
|---|---|---|
| 767 | 767 | ADDRESS_MAP_END |
| 768 | 768 | |
| 769 | 769 | |
| 770 | INPUT_PORTS_START( hanamomo ) | |
| 770 | static INPUT_PORTS_START( hanamomo ) | |
| 771 | 771 | PORT_START /* (0) DIPSW-A */ |
| 772 | 772 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 773 | 773 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 843 | 843 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 844 | 844 | INPUT_PORTS_END |
| 845 | 845 | |
| 846 | INPUT_PORTS_START( mjcamerb ) | |
| 846 | static INPUT_PORTS_START( mjcamerb ) | |
| 847 | 847 | PORT_START /* (0) DIPSW-A */ |
| 848 | 848 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 849 | 849 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 919 | 919 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 920 | 920 | INPUT_PORTS_END |
| 921 | 921 | |
| 922 | INPUT_PORTS_START( mmcamera ) | |
| 922 | static INPUT_PORTS_START( mmcamera ) | |
| 923 | 923 | PORT_START /* (0) DIPSW-A */ |
| 924 | 924 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 925 | 925 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 995 | 995 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 996 | 996 | INPUT_PORTS_END |
| 997 | 997 | |
| 998 | INPUT_PORTS_START( msjiken ) | |
| 998 | static INPUT_PORTS_START( msjiken ) | |
| 999 | 999 | PORT_START /* (0) DIPSW-A */ |
| 1000 | 1000 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1001 | 1001 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 1091 | 1091 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1092 | 1092 | INPUT_PORTS_END |
| 1093 | 1093 | |
| 1094 | INPUT_PORTS_START( telmahjn ) | |
| 1094 | static INPUT_PORTS_START( telmahjn ) | |
| 1095 | 1095 | PORT_START /* (0) DIPSW-A */ |
| 1096 | 1096 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1097 | 1097 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 1187 | 1187 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1188 | 1188 | INPUT_PORTS_END |
| 1189 | 1189 | |
| 1190 | INPUT_PORTS_START( gionbana ) | |
| 1190 | static INPUT_PORTS_START( gionbana ) | |
| 1191 | 1191 | PORT_START /* (0) DIPSW-A */ |
| 1192 | 1192 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1193 | 1193 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 1262 | 1262 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1263 | 1263 | INPUT_PORTS_END |
| 1264 | 1264 | |
| 1265 | INPUT_PORTS_START( mgion ) | |
| 1265 | static INPUT_PORTS_START( mgion ) | |
| 1266 | 1266 | PORT_START /* (0) DIPSW-A */ |
| 1267 | 1267 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 1268 | 1268 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1338 | 1338 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1339 | 1339 | INPUT_PORTS_END |
| 1340 | 1340 | |
| 1341 | INPUT_PORTS_START( omotesnd ) | |
| 1341 | static INPUT_PORTS_START( omotesnd ) | |
| 1342 | 1342 | PORT_START /* (0) DIPSW-A */ |
| 1343 | 1343 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 1344 | 1344 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1414 | 1414 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1415 | 1415 | INPUT_PORTS_END |
| 1416 | 1416 | |
| 1417 | INPUT_PORTS_START( abunai ) | |
| 1417 | static INPUT_PORTS_START( abunai ) | |
| 1418 | 1418 | PORT_START /* (0) DIPSW-A */ |
| 1419 | 1419 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1420 | 1420 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 1489 | 1489 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1490 | 1490 | INPUT_PORTS_END |
| 1491 | 1491 | |
| 1492 | INPUT_PORTS_START( mgmen89 ) | |
| 1492 | static INPUT_PORTS_START( mgmen89 ) | |
| 1493 | 1493 | PORT_START /* (0) DIPSW-A */ |
| 1494 | 1494 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1495 | 1495 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 1565 | 1565 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1566 | 1566 | INPUT_PORTS_END |
| 1567 | 1567 | |
| 1568 | INPUT_PORTS_START( mjfocus ) | |
| 1568 | static INPUT_PORTS_START( mjfocus ) | |
| 1569 | 1569 | |
| 1570 | 1570 | // I don't have manual for this game. |
| 1571 | 1571 | |
| r1238 | r1239 | |
| 1644 | 1644 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1645 | 1645 | INPUT_PORTS_END |
| 1646 | 1646 | |
| 1647 | INPUT_PORTS_START( mjfocusm ) | |
| 1647 | static INPUT_PORTS_START( mjfocusm ) | |
| 1648 | 1648 | PORT_START /* (0) DIPSW-A */ |
| 1649 | 1649 | PORT_DIPNAME( 0x07, 0x07, "Game Out" ) |
| 1650 | 1650 | PORT_DIPSETTING( 0x07, "95% (Easy)" ) |
| r1238 | r1239 | |
| 1718 | 1718 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1719 | 1719 | INPUT_PORTS_END |
| 1720 | 1720 | |
| 1721 | INPUT_PORTS_START( peepshow ) | |
| 1721 | static INPUT_PORTS_START( peepshow ) | |
| 1722 | 1722 | PORT_START /* (0) DIPSW-A */ |
| 1723 | 1723 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1724 | 1724 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 1794 | 1794 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1795 | 1795 | INPUT_PORTS_END |
| 1796 | 1796 | |
| 1797 | INPUT_PORTS_START( scandal ) | |
| 1797 | static INPUT_PORTS_START( scandal ) | |
| 1798 | 1798 | PORT_START /* (0) DIPSW-A */ |
| 1799 | 1799 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1800 | 1800 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 1870 | 1870 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1871 | 1871 | INPUT_PORTS_END |
| 1872 | 1872 | |
| 1873 | INPUT_PORTS_START( scandalm ) | |
| 1873 | static INPUT_PORTS_START( scandalm ) | |
| 1874 | 1874 | PORT_START /* (0) DIPSW-A */ |
| 1875 | 1875 | PORT_DIPNAME( 0x07, 0x07, "Game Out" ) |
| 1876 | 1876 | PORT_DIPSETTING( 0x07, "90% (Easy)" ) |
| r1238 | r1239 | |
| 1944 | 1944 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1945 | 1945 | INPUT_PORTS_END |
| 1946 | 1946 | |
| 1947 | INPUT_PORTS_START( mjnanpas ) | |
| 1947 | static INPUT_PORTS_START( mjnanpas ) | |
| 1948 | 1948 | PORT_START /* (0) DIPSW-A */ |
| 1949 | 1949 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1950 | 1950 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 2020 | 2020 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 2021 | 2021 | INPUT_PORTS_END |
| 2022 | 2022 | |
| 2023 | INPUT_PORTS_START( mjnanpaa ) | |
| 2023 | static INPUT_PORTS_START( mjnanpaa ) | |
| 2024 | 2024 | PORT_START /* (0) DIPSW-A */ |
| 2025 | 2025 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 2026 | 2026 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 2096 | 2096 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 2097 | 2097 | INPUT_PORTS_END |
| 2098 | 2098 | |
| 2099 | INPUT_PORTS_START( bananadr ) | |
| 2099 | static INPUT_PORTS_START( bananadr ) | |
| 2100 | 2100 | |
| 2101 | 2101 | // I don't have manual for this game. |
| 2102 | 2102 | |
| r1238 | r1239 | |
| 2175 | 2175 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 2176 | 2176 | INPUT_PORTS_END |
| 2177 | 2177 | |
| 2178 | INPUT_PORTS_START( club90s ) | |
| 2178 | static INPUT_PORTS_START( club90s ) | |
| 2179 | 2179 | PORT_START /* (0) DIPSW-A */ |
| 2180 | 2180 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 2181 | 2181 | PORT_DIPSETTING( 0x03, "1" ) |
| r1238 | r1239 | |
| 2250 | 2250 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 2251 | 2251 | INPUT_PORTS_END |
| 2252 | 2252 | |
| 2253 | INPUT_PORTS_START( lovehous ) | |
| 2253 | static INPUT_PORTS_START( lovehous ) | |
| 2254 | 2254 | |
| 2255 | 2255 | // I don't have manual for this game. |
| 2256 | 2256 | |
| r1238 | r1239 | |
| 2337 | 2337 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2338 | 2338 | INPUT_PORTS_END |
| 2339 | 2339 | |
| 2340 | INPUT_PORTS_START( mladyhtr ) | |
| 2340 | static INPUT_PORTS_START( mladyhtr ) | |
| 2341 | 2341 | PORT_START /* (0) DIPSW-A */ |
| 2342 | 2342 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 2343 | 2343 | PORT_DIPSETTING( 0x03, "1" ) |
| r1238 | r1239 | |
| 2412 | 2412 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 2413 | 2413 | INPUT_PORTS_END |
| 2414 | 2414 | |
| 2415 | INPUT_PORTS_START( chinmoku ) | |
| 2415 | static INPUT_PORTS_START( chinmoku ) | |
| 2416 | 2416 | PORT_START /* (0) DIPSW-A */ |
| 2417 | 2417 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 2418 | 2418 | PORT_DIPSETTING( 0x03, "1" ) |
| r1238 | r1239 | |
| 2487 | 2487 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 2488 | 2488 | INPUT_PORTS_END |
| 2489 | 2489 | |
| 2490 | INPUT_PORTS_START( maiko ) | |
| 2490 | static INPUT_PORTS_START( maiko ) | |
| 2491 | 2491 | PORT_START /* (0) DIPSW-A */ |
| 2492 | 2492 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 2493 | 2493 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 2573 | 2573 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 2574 | 2574 | INPUT_PORTS_END |
| 2575 | 2575 | |
| 2576 | INPUT_PORTS_START( mmaiko ) | |
| 2576 | static INPUT_PORTS_START( mmaiko ) | |
| 2577 | 2577 | |
| 2578 | 2578 | // I don't have manual for this game. |
| 2579 | 2579 | |
| r1238 | r1239 | |
| 2659 | 2659 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2660 | 2660 | INPUT_PORTS_END |
| 2661 | 2661 | |
| 2662 | INPUT_PORTS_START( hanaoji ) | |
| 2662 | static INPUT_PORTS_START( hanaoji ) | |
| 2663 | 2663 | PORT_START /* (0) DIPSW-A */ |
| 2664 | 2664 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2665 | 2665 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2745 | 2745 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 2746 | 2746 | INPUT_PORTS_END |
| 2747 | 2747 | |
| 2748 | INPUT_PORTS_START( pairsnb ) | |
| 2748 | static INPUT_PORTS_START( pairsnb ) | |
| 2749 | 2749 | PORT_START /* (0) DIPSW-A */ |
| 2750 | 2750 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 2751 | 2751 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) // Hearts : 10 - Time : 60/60 |
| r1238 | r1239 | |
| 2828 | 2828 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2829 | 2829 | INPUT_PORTS_END |
| 2830 | 2830 | |
| 2831 | INPUT_PORTS_START( taiwanmb ) | |
| 2831 | static INPUT_PORTS_START( taiwanmb ) | |
| 2832 | 2832 | PORT_START /* (0) DIPSW-A */ |
| 2833 | 2833 | PORT_DIPNAME( 0x07, 0x07, "Game Out" ) |
| 2834 | 2834 | PORT_DIPSETTING( 0x07, "95% (Easy)" ) |
| r1238 | r1239 | |
|---|---|---|
| 218 | 218 | |
| 219 | 219 | |
| 220 | 220 | |
| 221 | INPUT_PORTS_START( wc90b ) | |
| 221 | static INPUT_PORTS_START( wc90b ) | |
| 222 | 222 | PORT_START /* IN0 bit 0-5 */ |
| 223 | 223 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 224 | 224 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 63 | 63 | |
| 64 | 64 | /******************************************************************************/ |
| 65 | 65 | |
| 66 | INPUT_PORTS_START( kncljoe ) | |
| 66 | static INPUT_PORTS_START( kncljoe ) | |
| 67 | 67 | PORT_START_TAG("IN0") |
| 68 | 68 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 69 | 69 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 77 | 77 | |
| 78 | 78 | |
| 79 | 79 | |
| 80 | INPUT_PORTS_START( holeland ) | |
| 80 | static INPUT_PORTS_START( holeland ) | |
| 81 | 81 | PORT_START_TAG("IN0") |
| 82 | 82 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 83 | 83 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 146 | 146 | PORT_DIPSETTING( 0x80, "Play" ) |
| 147 | 147 | INPUT_PORTS_END |
| 148 | 148 | |
| 149 | INPUT_PORTS_START( crzrally ) | |
| 149 | static INPUT_PORTS_START( crzrally ) | |
| 150 | 150 | PORT_START_TAG("IN0") |
| 151 | 151 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 152 | 152 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
|---|---|---|
| 290 | 290 | * |
| 291 | 291 | *************************************/ |
| 292 | 292 | |
| 293 | INPUT_PORTS_START( boomrang ) | |
| 293 | static INPUT_PORTS_START( boomrang ) | |
| 294 | 294 | PORT_INCLUDE( generic_input ) |
| 295 | 295 | |
| 296 | 296 | PORT_MODIFY("DSW2") |
| r1238 | r1239 | |
| 317 | 317 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 318 | 318 | INPUT_PORTS_END |
| 319 | 319 | |
| 320 | INPUT_PORTS_START( kamikcab ) | |
| 320 | static INPUT_PORTS_START( kamikcab ) | |
| 321 | 321 | PORT_INCLUDE( generic_input ) |
| 322 | 322 | |
| 323 | 323 | PORT_MODIFY("DSW2") |
| r1238 | r1239 | |
| 341 | 341 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 342 | 342 | INPUT_PORTS_END |
| 343 | 343 | |
| 344 | INPUT_PORTS_START( yellowcb ) | |
| 344 | static INPUT_PORTS_START( yellowcb ) | |
| 345 | 345 | PORT_INCLUDE( kamikcab ) |
| 346 | 346 | |
| 347 | 347 | PORT_MODIFY("IN0") |
| r1238 | r1239 | |
| 349 | 349 | PORT_BIT( 0xfb, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 350 | 350 | INPUT_PORTS_END |
| 351 | 351 | |
| 352 | INPUT_PORTS_START( liberate ) | |
| 352 | static INPUT_PORTS_START( liberate ) | |
| 353 | 353 | PORT_INCLUDE( generic_input ) |
| 354 | 354 | |
| 355 | 355 | PORT_MODIFY("DSW1") |
| r1238 | r1239 | |
| 376 | 376 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 377 | 377 | INPUT_PORTS_END |
| 378 | 378 | |
| 379 | INPUT_PORTS_START( dualaslt ) | |
| 379 | static INPUT_PORTS_START( dualaslt ) | |
| 380 | 380 | PORT_INCLUDE( liberate ) |
| 381 | 381 | |
| 382 | 382 | PORT_MODIFY("DSW1") |
| r1238 | r1239 | |
| 385 | 385 | PORT_DIPSETTING( 0x80, "(INVALID) Data East Corporation (Liberation)" ) |
| 386 | 386 | INPUT_PORTS_END |
| 387 | 387 | |
| 388 | INPUT_PORTS_START( liberatb ) | |
| 388 | static INPUT_PORTS_START( liberatb ) | |
| 389 | 389 | PORT_INCLUDE( liberate ) |
| 390 | 390 | |
| 391 | 391 | PORT_MODIFY("IN0") |
| r1238 | r1239 | |
|---|---|---|
| 304 | 304 | ADDRESS_MAP_END |
| 305 | 305 | |
| 306 | 306 | |
| 307 | INPUT_PORTS_START( spdodgeb ) | |
| 307 | static INPUT_PORTS_START( spdodgeb ) | |
| 308 | 308 | PORT_START |
| 309 | 309 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 310 | 310 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* mcu63701_busy flag */ |
| r1238 | r1239 | |
|---|---|---|
| 140 | 140 | |
| 141 | 141 | /* Input Ports */ |
| 142 | 142 | |
| 143 | INPUT_PORTS_START( gunsmoke ) | |
| 143 | static INPUT_PORTS_START( gunsmoke ) | |
| 144 | 144 | PORT_START_TAG("IN0") |
| 145 | 145 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 146 | 146 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 220 | 220 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 221 | 221 | INPUT_PORTS_END |
| 222 | 222 | |
| 223 | INPUT_PORTS_START( gunsmoka ) | |
| 223 | static INPUT_PORTS_START( gunsmoka ) | |
| 224 | 224 | PORT_INCLUDE(gunsmoke) |
| 225 | 225 | |
| 226 | 226 | // Same as 'gunsmoke', but "Lives" Dip Switch instead of "Demonstration" Dip Switch |
| r1238 | r1239 | |
|---|---|---|
| 94 | 94 | VIDEO_UPDATE( cvs ); |
| 95 | 95 | VIDEO_START( cvs ); |
| 96 | 96 | |
| 97 | extern UINT8 *bullet_ram; | |
| 97 | extern UINT8 *cvs_bullet_ram; | |
| 98 | 98 | |
| 99 | 99 | WRITE8_HANDLER( cvs_videoram_w ); |
| 100 | 100 | WRITE8_HANDLER( cvs_bullet_w ); |
| r1238 | r1239 | |
| 213 | 213 | DAC_1_data_w(0,DAC_Value); |
| 214 | 214 | } |
| 215 | 215 | |
| 216 | READ8_HANDLER( | |
| 216 | static READ8_HANDLER( cvs_393hz_Clock_r ) | |
| 217 | 217 | { |
| 218 | 218 | if(cpu_scalebyfcount(6) & 1) return 0x80; |
| 219 | 219 | else return 0; |
| r1238 | r1239 | |
| 227 | 227 | |
| 228 | 228 | static ADDRESS_MAP_START( cvs_cpu1_program, ADDRESS_SPACE_PROGRAM, 8 ) |
| 229 | 229 | AM_RANGE(0x0000, 0x13ff) AM_ROM |
| 230 | AM_RANGE(0x1400, 0x14ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_bullet_r, cvs_bullet_w) AM_BASE(&bullet_ram) | |
| 230 | AM_RANGE(0x1400, 0x14ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_bullet_r, cvs_bullet_w) AM_BASE(&cvs_bullet_ram) | |
| 231 | 231 | AM_RANGE(0x1500, 0x15ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_2636_3_r, cvs_2636_3_w) AM_BASE(&s2636_3_ram) |
| 232 | 232 | AM_RANGE(0x1600, 0x16ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_2636_2_r, cvs_2636_2_w) AM_BASE(&s2636_2_ram) |
| 233 | 233 | AM_RANGE(0x1700, 0x17ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_2636_1_r, cvs_2636_1_w) AM_BASE(&s2636_1_ram) |
| r1238 | r1239 | |
| 263 | 263 | ADDRESS_MAP_END |
| 264 | 264 | |
| 265 | 265 | static ADDRESS_MAP_START( cvs_cpu2_io, ADDRESS_SPACE_IO, 8 ) |
| 266 | AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ( | |
| 266 | AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ(cvs_393hz_Clock_r) | |
| 267 | 267 | ADDRESS_MAP_END |
| 268 | 268 | |
| 269 | INPUT_PORTS_START( cvs ) | |
| 269 | static INPUT_PORTS_START( cvs ) | |
| 270 | 270 | |
| 271 | 271 | PORT_START /* Matrix 0 */ |
| 272 | 272 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) /* Confirmed */ |
| r1238 | r1239 | |
|---|---|---|
| 745 | 745 | * |
| 746 | 746 | *************************************/ |
| 747 | 747 | |
| 748 | INPUT_PORTS_START( turbo ) | |
| 748 | static INPUT_PORTS_START( turbo ) | |
| 749 | 749 | PORT_START /* IN0 */ |
| 750 | 750 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) /* ACCEL B */ |
| 751 | 751 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) /* ACCEL A */ |
| r1238 | r1239 | |
| 834 | 834 | INPUT_PORTS_END |
| 835 | 835 | |
| 836 | 836 | |
| 837 | INPUT_PORTS_START( subroc3d ) | |
| 837 | static INPUT_PORTS_START( subroc3d ) | |
| 838 | 838 | PORT_START |
| 839 | 839 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) |
| 840 | 840 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) |
| r1238 | r1239 | |
| 903 | 903 | INPUT_PORTS_END |
| 904 | 904 | |
| 905 | 905 | |
| 906 | INPUT_PORTS_START( buckrog ) | |
| 906 | static INPUT_PORTS_START( buckrog ) | |
| 907 | 907 | PORT_START |
| 908 | 908 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START2 ) |
| 909 | 909 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) // Accel Hi |
| r1238 | r1239 | |
|---|---|---|
| 3080 | 3080 | Arbalester |
| 3081 | 3081 | ***************************************************************************/ |
| 3082 | 3082 | |
| 3083 | INPUT_PORTS_START( arbalest ) | |
| 3083 | static INPUT_PORTS_START( arbalest ) | |
| 3084 | 3084 | PORT_START_TAG("IN0") // Player 1 |
| 3085 | 3085 | JOY_TYPE2_2BUTTONS(1) |
| 3086 | 3086 | |
| r1238 | r1239 | |
| 3147 | 3147 | Athena no Hatena? |
| 3148 | 3148 | ***************************************************************************/ |
| 3149 | 3149 | |
| 3150 | INPUT_PORTS_START( atehate ) | |
| 3150 | static INPUT_PORTS_START( atehate ) | |
| 3151 | 3151 | PORT_START_TAG("IN0") // Player 1 |
| 3152 | 3152 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) |
| 3153 | 3153 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 3230 | 3230 | Blandia |
| 3231 | 3231 | ***************************************************************************/ |
| 3232 | 3232 | |
| 3233 | INPUT_PORTS_START( blandia ) | |
| 3233 | static INPUT_PORTS_START( blandia ) | |
| 3234 | 3234 | PORT_START_TAG("IN0") //Player 1 - $400000.w |
| 3235 | 3235 | JOY_TYPE1_3BUTTONS(1) |
| 3236 | 3236 | |
| r1238 | r1239 | |
| 3301 | 3301 | Block Carnival |
| 3302 | 3302 | ***************************************************************************/ |
| 3303 | 3303 | |
| 3304 | INPUT_PORTS_START( blockcar ) | |
| 3304 | static INPUT_PORTS_START( blockcar ) | |
| 3305 | 3305 | PORT_START_TAG("IN0") //Player 1 - $500001.b |
| 3306 | 3306 | JOY_TYPE1_2BUTTONS(1) // button2 = speed up |
| 3307 | 3307 | |
| r1238 | r1239 | |
| 3370 | 3370 | Caliber 50 |
| 3371 | 3371 | ***************************************************************************/ |
| 3372 | 3372 | |
| 3373 | INPUT_PORTS_START( calibr50 ) | |
| 3373 | static INPUT_PORTS_START( calibr50 ) | |
| 3374 | 3374 | PORT_START_TAG("IN0") //Player 1 |
| 3375 | 3375 | JOY_TYPE2_2BUTTONS(1) |
| 3376 | 3376 | |
| r1238 | r1239 | |
| 3444 | 3444 | Daioh |
| 3445 | 3445 | ***************************************************************************/ |
| 3446 | 3446 | |
| 3447 | INPUT_PORTS_START( daioh ) | |
| 3447 | static INPUT_PORTS_START( daioh ) | |
| 3448 | 3448 | PORT_START_TAG("IN0") |
| 3449 | 3449 | JOY_TYPE1_3BUTTONS(1) |
| 3450 | 3450 | |
| r1238 | r1239 | |
| 3531 | 3531 | Dragon Unit |
| 3532 | 3532 | ***************************************************************************/ |
| 3533 | 3533 | |
| 3534 | INPUT_PORTS_START( drgnunit ) | |
| 3534 | static INPUT_PORTS_START( drgnunit ) | |
| 3535 | 3535 | PORT_START_TAG("IN0") //Player 1 |
| 3536 | 3536 | JOY_TYPE1_3BUTTONS(1) |
| 3537 | 3537 | |
| r1238 | r1239 | |
| 3606 | 3606 | DownTown |
| 3607 | 3607 | ***************************************************************************/ |
| 3608 | 3608 | |
| 3609 | INPUT_PORTS_START( downtown ) | |
| 3609 | static INPUT_PORTS_START( downtown ) | |
| 3610 | 3610 | PORT_START_TAG("IN0") //Player 1 |
| 3611 | 3611 | JOY_TYPE2_2BUTTONS(1) |
| 3612 | 3612 | |
| r1238 | r1239 | |
| 3693 | 3693 | Eight Force |
| 3694 | 3694 | ***************************************************************************/ |
| 3695 | 3695 | |
| 3696 | INPUT_PORTS_START( eightfrc ) | |
| 3696 | static INPUT_PORTS_START( eightfrc ) | |
| 3697 | 3697 | PORT_START_TAG("IN0") //Player 1 |
| 3698 | 3698 | JOY_TYPE1_2BUTTONS(1) |
| 3699 | 3699 | |
| r1238 | r1239 | |
| 3764 | 3764 | Extreme Downhill |
| 3765 | 3765 | ***************************************************************************/ |
| 3766 | 3766 | |
| 3767 | INPUT_PORTS_START( extdwnhl ) | |
| 3767 | static INPUT_PORTS_START( extdwnhl ) | |
| 3768 | 3768 | PORT_START_TAG("IN0") //Player 1 |
| 3769 | 3769 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| 3770 | 3770 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 3858 | 3858 | Gundhara |
| 3859 | 3859 | ***************************************************************************/ |
| 3860 | 3860 | |
| 3861 | INPUT_PORTS_START( gundhara ) | |
| 3861 | static INPUT_PORTS_START( gundhara ) | |
| 3862 | 3862 | PORT_START_TAG("IN0") //Player 1 |
| 3863 | 3863 | JOY_TYPE1_3BUTTONS(1) |
| 3864 | 3864 | |
| r1238 | r1239 | |
| 3927 | 3927 | Zombie Raid |
| 3928 | 3928 | ***************************************************************************/ |
| 3929 | 3929 | |
| 3930 | INPUT_PORTS_START( zombraid ) | |
| 3930 | static INPUT_PORTS_START( zombraid ) | |
| 3931 | 3931 | PORT_START_TAG("IN0") //Player 1 |
| 3932 | 3932 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3933 | 3933 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 4023 | 4023 | J.J.Squawkers |
| 4024 | 4024 | ***************************************************************************/ |
| 4025 | 4025 | |
| 4026 | INPUT_PORTS_START( jjsquawk ) | |
| 4026 | static INPUT_PORTS_START( jjsquawk ) | |
| 4027 | 4027 | PORT_START_TAG("IN0") //Player 1 - $400000.w |
| 4028 | 4028 | JOY_TYPE1_2BUTTONS(1) |
| 4029 | 4029 | |
| r1238 | r1239 | |
| 4091 | 4091 | (Kamen) Masked Riders Club Battle Race |
| 4092 | 4092 | ***************************************************************************/ |
| 4093 | 4093 | |
| 4094 | INPUT_PORTS_START( kamenrid ) | |
| 4094 | static INPUT_PORTS_START( kamenrid ) | |
| 4095 | 4095 | PORT_START_TAG("IN0") //Player 1 |
| 4096 | 4096 | JOY_TYPE1_2BUTTONS(1) // BUTTON3 in "test mode" only |
| 4097 | 4097 | |
| r1238 | r1239 | |
| 4177 | 4177 | #define KRZYBOWL_TRACKBALL(_dir_, _n_ ) \ |
| 4178 | 4178 | PORT_BIT( 0x0fff, 0x0000, IPT_TRACKBALL_##_dir_ ) PORT_PLAYER(_n_) PORT_SENSITIVITY(70) PORT_KEYDELTA(30) PORT_REVERSE |
| 4179 | 4179 | |
| 4180 | INPUT_PORTS_START( krzybowl ) | |
| 4180 | static INPUT_PORTS_START( krzybowl ) | |
| 4181 | 4181 | PORT_START_TAG("IN0") //Player 1 |
| 4182 | 4182 | JOY_TYPE1_3BUTTONS(1) |
| 4183 | 4183 | |
| r1238 | r1239 | |
| 4260 | 4260 | Mad Shark |
| 4261 | 4261 | ***************************************************************************/ |
| 4262 | 4262 | |
| 4263 | INPUT_PORTS_START( madshark ) | |
| 4263 | static INPUT_PORTS_START( madshark ) | |
| 4264 | 4264 | PORT_START_TAG("IN0") //Player 1 |
| 4265 | 4265 | JOY_TYPE1_2BUTTONS(1) |
| 4266 | 4266 | |
| r1238 | r1239 | |
| 4338 | 4338 | Meta Fox |
| 4339 | 4339 | ***************************************************************************/ |
| 4340 | 4340 | |
| 4341 | INPUT_PORTS_START( metafox ) | |
| 4341 | static INPUT_PORTS_START( metafox ) | |
| 4342 | 4342 | PORT_START_TAG("IN0") //Player 1 |
| 4343 | 4343 | JOY_TYPE2_2BUTTONS(1) |
| 4344 | 4344 | |
| r1238 | r1239 | |
| 4407 | 4407 | ***************************************************************************/ |
| 4408 | 4408 | |
| 4409 | 4409 | |
| 4410 | INPUT_PORTS_START( msgundam ) | |
| 4410 | static INPUT_PORTS_START( msgundam ) | |
| 4411 | 4411 | PORT_START_TAG("IN0") //Player 1 - $400000.w |
| 4412 | 4412 | JOY_TYPE1_2BUTTONS(1) |
| 4413 | 4413 | |
| r1238 | r1239 | |
| 4475 | 4475 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) |
| 4476 | 4476 | INPUT_PORTS_END |
| 4477 | 4477 | |
| 4478 | INPUT_PORTS_START( msgunda1 ) | |
| 4478 | static INPUT_PORTS_START( msgunda1 ) | |
| 4479 | 4479 | PORT_START_TAG("IN0") //Player 1 - $400000.w |
| 4480 | 4480 | JOY_TYPE1_2BUTTONS(1) |
| 4481 | 4481 | |
| r1238 | r1239 | |
| 4549 | 4549 | Oishii Puzzle |
| 4550 | 4550 | ***************************************************************************/ |
| 4551 | 4551 | |
| 4552 | INPUT_PORTS_START( oisipuzl ) | |
| 4552 | static INPUT_PORTS_START( oisipuzl ) | |
| 4553 | 4553 | PORT_START_TAG("IN0") //Player 1 |
| 4554 | 4554 | JOY_TYPE1_2BUTTONS(1) |
| 4555 | 4555 | |
| r1238 | r1239 | |
| 4618 | 4618 | Pro Mahjong Kiwame |
| 4619 | 4619 | ***************************************************************************/ |
| 4620 | 4620 | |
| 4621 | INPUT_PORTS_START( kiwame ) | |
| 4621 | static INPUT_PORTS_START( kiwame ) | |
| 4622 | 4622 | PORT_START_TAG("IN0") //Unused |
| 4623 | 4623 | PORT_START_TAG("IN1") //Unused |
| 4624 | 4624 | |
| r1238 | r1239 | |
| 4733 | 4733 | Quiz Kokology |
| 4734 | 4734 | ***************************************************************************/ |
| 4735 | 4735 | |
| 4736 | INPUT_PORTS_START( qzkklogy ) | |
| 4736 | static INPUT_PORTS_START( qzkklogy ) | |
| 4737 | 4737 | PORT_START_TAG("IN0") //Player 1 - $b00001.b |
| 4738 | 4738 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) |
| 4739 | 4739 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 4813 | 4813 | Quiz Kokology 2 |
| 4814 | 4814 | ***************************************************************************/ |
| 4815 | 4815 | |
| 4816 | INPUT_PORTS_START( qzkklgy2 ) | |
| 4816 | static INPUT_PORTS_START( qzkklgy2 ) | |
| 4817 | 4817 | PORT_START_TAG("IN0") //Player 1 - $b00001.b |
| 4818 | 4818 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) |
| 4819 | 4819 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 4892 | 4892 | Rezon |
| 4893 | 4893 | ***************************************************************************/ |
| 4894 | 4894 | |
| 4895 | INPUT_PORTS_START( rezon ) | |
| 4895 | static INPUT_PORTS_START( rezon ) | |
| 4896 | 4896 | PORT_START_TAG("IN0") //Player 1 |
| 4897 | 4897 | JOY_TYPE1_3BUTTONS(1) // 1 used?? |
| 4898 | 4898 | |
| r1238 | r1239 | |
| 4961 | 4961 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 4962 | 4962 | INPUT_PORTS_END |
| 4963 | 4963 | |
| 4964 | INPUT_PORTS_START( rezont ) | |
| 4964 | static INPUT_PORTS_START( rezont ) | |
| 4965 | 4965 | |
| 4966 | 4966 | PORT_INCLUDE( rezon ) |
| 4967 | 4967 | |
| r1238 | r1239 | |
| 4977 | 4977 | When the "Stage Select" dip switch is on and button1 is pressed during boot, |
| 4978 | 4978 | pressing P1's button3 freezes the game (pressing P2's button3 resumes it). |
| 4979 | 4979 | */ |
| 4980 | INPUT_PORTS_START( neobattl ) | |
| 4980 | static INPUT_PORTS_START( neobattl ) | |
| 4981 | 4981 | PORT_START_TAG("IN0") // Player 1 - $400000.w |
| 4982 | 4982 | JOY_TYPE1_1BUTTON(1) // bump to 3 buttons for freezing to work |
| 4983 | 4983 | |
| r1238 | r1239 | |
| 5053 | 5053 | Sokonuke |
| 5054 | 5054 | ***************************************************************************/ |
| 5055 | 5055 | |
| 5056 | INPUT_PORTS_START( sokonuke ) | |
| 5056 | static INPUT_PORTS_START( sokonuke ) | |
| 5057 | 5057 | PORT_START_TAG("IN0") //Player 1 |
| 5058 | 5058 | JOY_TYPE1_1BUTTON(1) |
| 5059 | 5059 | |
| r1238 | r1239 | |
| 5125 | 5125 | Strike Gunner |
| 5126 | 5126 | ***************************************************************************/ |
| 5127 | 5127 | |
| 5128 | INPUT_PORTS_START( stg ) | |
| 5128 | static INPUT_PORTS_START( stg ) | |
| 5129 | 5129 | PORT_START_TAG("IN0") //Player 1 - $b00001.b |
| 5130 | 5130 | JOY_TYPE1_2BUTTONS(1) |
| 5131 | 5131 | |
| r1238 | r1239 | |
| 5194 | 5194 | Thunder & Lightning |
| 5195 | 5195 | ***************************************************************************/ |
| 5196 | 5196 | |
| 5197 | INPUT_PORTS_START( thunderl ) | |
| 5197 | static INPUT_PORTS_START( thunderl ) | |
| 5198 | 5198 | PORT_START_TAG("IN0") //Player 1 |
| 5199 | 5199 | JOY_TYPE1_2BUTTONS(1) // button2 = speed up |
| 5200 | 5200 | |
| r1238 | r1239 | |
| 5284 | 5284 | Thundercade (US) |
| 5285 | 5285 | ***************************************************************************/ |
| 5286 | 5286 | |
| 5287 | INPUT_PORTS_START( tndrcade ) | |
| 5287 | static INPUT_PORTS_START( tndrcade ) | |
| 5288 | 5288 | PORT_START_TAG("IN0") //Player 1 |
| 5289 | 5289 | JOY_TYPE1_2BUTTONS(1) |
| 5290 | 5290 | |
| r1238 | r1239 | |
| 5351 | 5351 | Thundercade (Japan) |
| 5352 | 5352 | ***************************************************************************/ |
| 5353 | 5353 | |
| 5354 | INPUT_PORTS_START( tndrcadj ) | |
| 5354 | static INPUT_PORTS_START( tndrcadj ) | |
| 5355 | 5355 | PORT_START_TAG("IN0") //Player 1 |
| 5356 | 5356 | JOY_TYPE1_2BUTTONS(1) |
| 5357 | 5357 | |
| r1238 | r1239 | |
| 5419 | 5419 | Twin Eagle |
| 5420 | 5420 | ***************************************************************************/ |
| 5421 | 5421 | |
| 5422 | INPUT_PORTS_START( twineagl ) | |
| 5422 | static INPUT_PORTS_START( twineagl ) | |
| 5423 | 5423 | PORT_START_TAG("IN0") //Player 1 |
| 5424 | 5424 | JOY_TYPE1_2BUTTONS(1) |
| 5425 | 5425 | |
| r1238 | r1239 | |
| 5485 | 5485 | Ultraman Club |
| 5486 | 5486 | ***************************************************************************/ |
| 5487 | 5487 | |
| 5488 | INPUT_PORTS_START( umanclub ) | |
| 5488 | static INPUT_PORTS_START( umanclub ) | |
| 5489 | 5489 | PORT_START_TAG("IN0") //Player 1 |
| 5490 | 5490 | JOY_TYPE1_2BUTTONS(1) |
| 5491 | 5491 | |
| r1238 | r1239 | |
| 5560 | 5560 | Ultra Toukon Densetsu |
| 5561 | 5561 | ***************************************************************************/ |
| 5562 | 5562 | |
| 5563 | INPUT_PORTS_START( utoukond ) | |
| 5563 | static INPUT_PORTS_START( utoukond ) | |
| 5564 | 5564 | PORT_START_TAG("IN0") //Player 1 |
| 5565 | 5565 | JOY_TYPE1_3BUTTONS(1) |
| 5566 | 5566 | |
| r1238 | r1239 | |
| 5651 | 5651 | #define TRACKBALL(_dir_) \ |
| 5652 | 5652 | PORT_BIT( 0x0fff, 0x0000, IPT_TRACKBALL_##_dir_ ) PORT_SENSITIVITY(70) PORT_KEYDELTA(30) PORT_RESET |
| 5653 | 5653 | |
| 5654 | INPUT_PORTS_START( usclssic ) | |
| 5654 | static INPUT_PORTS_START( usclssic ) | |
| 5655 | 5655 | PORT_START_TAG("IN0") |
| 5656 | 5656 | TRACKBALL(X) |
| 5657 | 5657 | PORT_BIT ( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 5728 | 5728 | War of Aero |
| 5729 | 5729 | ***************************************************************************/ |
| 5730 | 5730 | |
| 5731 | INPUT_PORTS_START( wrofaero ) | |
| 5731 | static INPUT_PORTS_START( wrofaero ) | |
| 5732 | 5732 | PORT_START_TAG("IN0") //Player 1 - $400000.w |
| 5733 | 5733 | JOY_TYPE1_3BUTTONS(1) // 3rd button selects the weapon |
| 5734 | 5734 | // when the dsw for cheating is on |
| r1238 | r1239 | |
| 5805 | 5805 | Wit's |
| 5806 | 5806 | ***************************************************************************/ |
| 5807 | 5807 | |
| 5808 | INPUT_PORTS_START( wits ) | |
| 5808 | static INPUT_PORTS_START( wits ) | |
| 5809 | 5809 | PORT_START_TAG("IN0") //Player 1 |
| 5810 | 5810 | JOY_TYPE1_2BUTTONS(1) |
| 5811 | 5811 | |
| r1238 | r1239 | |
| 5885 | 5885 | Zing Zing Zip |
| 5886 | 5886 | ***************************************************************************/ |
| 5887 | 5887 | |
| 5888 | INPUT_PORTS_START( zingzip ) | |
| 5888 | static INPUT_PORTS_START( zingzip ) | |
| 5889 | 5889 | PORT_START_TAG("IN0") //Player 1 - $400000.w |
| 5890 | 5890 | JOY_TYPE1_2BUTTONS(1) |
| 5891 | 5891 | |
| r1238 | r1239 | |
| 5959 | 5959 | Pairs Love |
| 5960 | 5960 | *************************************/ |
| 5961 | 5961 | |
| 5962 | INPUT_PORTS_START( pairlove ) | |
| 5962 | static INPUT_PORTS_START( pairlove ) | |
| 5963 | 5963 | PORT_START_TAG("IN0") //Player 1 - $500001.b |
| 5964 | 5964 | JOY_TYPE1_2BUTTONS(1) // button2 = speed up |
| 5965 | 5965 | |
| r1238 | r1239 | |
| 6031 | 6031 | Crazy Fight |
| 6032 | 6032 | ***************************************************************************/ |
| 6033 | 6033 | |
| 6034 | INPUT_PORTS_START( crazyfgt ) | |
| 6034 | static INPUT_PORTS_START( crazyfgt ) | |
| 6035 | 6035 | PORT_START_TAG("IN0") //Coins - $610000.w |
| 6036 | 6036 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 6037 | 6037 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 50 | 50 | AM_RANGE(0x8008, 0xffff) AM_WRITE(MWA8_ROM) |
| 51 | 51 | ADDRESS_MAP_END |
| 52 | 52 | |
| 53 | INPUT_PORTS_START( truco ) | |
| 53 | static INPUT_PORTS_START( truco ) | |
| 54 | 54 | PORT_START /* IN0 */ |
| 55 | 55 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 56 | 56 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 233 | 233 | ADDRESS_MAP_END |
| 234 | 234 | |
| 235 | 235 | |
| 236 | INPUT_PORTS_START( laserbat ) | |
| 236 | static INPUT_PORTS_START( laserbat ) | |
| 237 | 237 | PORT_START |
| 238 | 238 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 239 | 239 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 312 | 312 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 313 | 313 | INPUT_PORTS_END |
| 314 | 314 | |
| 315 | INPUT_PORTS_START( lazarian ) | |
| 315 | static INPUT_PORTS_START( lazarian ) | |
| 316 | 316 | PORT_START |
| 317 | 317 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 318 | 318 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 390 | 390 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 391 | 391 | INPUT_PORTS_END |
| 392 | 392 | |
| 393 | INPUT_PORTS_START( catnmous ) | |
| 393 | static INPUT_PORTS_START( catnmous ) | |
| 394 | 394 | PORT_START |
| 395 | 395 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 396 | 396 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 134 | 134 | AM_RANGE(0xb000, 0xffff) AM_ROM |
| 135 | 135 | ADDRESS_MAP_END |
| 136 | 136 | |
| 137 | INPUT_PORTS_START( trvquest ) | |
| 137 | static INPUT_PORTS_START( trvquest ) | |
| 138 | 138 | PORT_START |
| 139 | 139 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 140 | 140 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 569 | 569 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_4C ) )\ |
| 570 | 570 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) |
| 571 | 571 | |
| 572 | INPUT_PORTS_START( extrmatn ) | |
| 572 | static INPUT_PORTS_START( extrmatn ) | |
| 573 | 573 | PORT_START_TAG("DSWA") |
| 574 | 574 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) |
| 575 | 575 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 665 | 665 | PORT_BIT ( 0x0fff, 0x0000, IPT_DIAL ) PORT_SENSITIVITY(70) PORT_KEYDELTA(15) PORT_PLAYER(2)\ |
| 666 | 666 | PORT_BIT ( 0xf000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 667 | 667 | |
| 668 | INPUT_PORTS_START( arknoid2 ) | |
| 668 | static INPUT_PORTS_START( arknoid2 ) | |
| 669 | 669 | PORT_START_TAG("DSWA") |
| 670 | 670 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 671 | 671 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 681 | 681 | ARKNOI2_COMMON |
| 682 | 682 | INPUT_PORTS_END |
| 683 | 683 | |
| 684 | INPUT_PORTS_START( arknid2u ) | |
| 684 | static INPUT_PORTS_START( arknid2u ) | |
| 685 | 685 | PORT_START_TAG("DSWA") |
| 686 | 686 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 687 | 687 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 697 | 697 | ARKNOI2_COMMON |
| 698 | 698 | INPUT_PORTS_END |
| 699 | 699 | |
| 700 | INPUT_PORTS_START( plumppop ) | |
| 700 | static INPUT_PORTS_START( plumppop ) | |
| 701 | 701 | PORT_START_TAG("DSWA") |
| 702 | 702 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 703 | 703 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 805 | 805 | COMMON_COIN1(IP_ACTIVE_HIGH)\ |
| 806 | 806 | COMMON_COIN2(IP_ACTIVE_HIGH) |
| 807 | 807 | |
| 808 | INPUT_PORTS_START( drtoppel ) | |
| 808 | static INPUT_PORTS_START( drtoppel ) | |
| 809 | 809 | PORT_START_TAG("DSWA") |
| 810 | 810 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 811 | 811 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 821 | 821 | DRTOPP_COMMON |
| 822 | 822 | INPUT_PORTS_END |
| 823 | 823 | |
| 824 | INPUT_PORTS_START( drtopplu ) | |
| 824 | static INPUT_PORTS_START( drtopplu ) | |
| 825 | 825 | PORT_START_TAG("DSWA") |
| 826 | 826 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 827 | 827 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 868 | 868 | COMMON_COIN1(IP_ACTIVE_HIGH)\ |
| 869 | 869 | COMMON_COIN2(IP_ACTIVE_HIGH) |
| 870 | 870 | |
| 871 | INPUT_PORTS_START( chukatai ) | |
| 871 | static INPUT_PORTS_START( chukatai ) | |
| 872 | 872 | PORT_START_TAG("DSWA") |
| 873 | 873 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 874 | 874 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 885 | 885 | CHUKA_COMMON |
| 886 | 886 | INPUT_PORTS_END |
| 887 | 887 | |
| 888 | INPUT_PORTS_START( chukatau ) | |
| 888 | static INPUT_PORTS_START( chukatau ) | |
| 889 | 889 | PORT_START_TAG("DSWA") |
| 890 | 890 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 891 | 891 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 928 | 928 | PORT_START_TAG("IN0")\ |
| 929 | 929 | TNZS_PLAYER_INPUT(1) |
| 930 | 930 | |
| 931 | INPUT_PORTS_START( tnzs ) | |
| 931 | static INPUT_PORTS_START( tnzs ) | |
| 932 | 932 | PORT_START_TAG("DSWA") |
| 933 | 933 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 934 | 934 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 953 | 953 | |
| 954 | 954 | INPUT_PORTS_END |
| 955 | 955 | |
| 956 | INPUT_PORTS_START( tnzsb ) | |
| 956 | static INPUT_PORTS_START( tnzsb ) | |
| 957 | 957 | PORT_START_TAG("DSWA") |
| 958 | 958 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 959 | 959 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 991 | 991 | |
| 992 | 992 | INPUT_PORTS_END |
| 993 | 993 | |
| 994 | INPUT_PORTS_START( tnzs2 ) | |
| 994 | static INPUT_PORTS_START( tnzs2 ) | |
| 995 | 995 | PORT_START_TAG("DSWA") |
| 996 | 996 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 997 | 997 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 1039 | 1039 | COMMON_COIN2(IP_ACTIVE_LOW) |
| 1040 | 1040 | INPUT_PORTS_END |
| 1041 | 1041 | |
| 1042 | INPUT_PORTS_START( kabukiz ) | |
| 1042 | static INPUT_PORTS_START( kabukiz ) | |
| 1043 | 1043 | PORT_START_TAG("DSWA") |
| 1044 | 1044 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1045 | 1045 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 1103 | 1103 | |
| 1104 | 1104 | INPUT_PORTS_END |
| 1105 | 1105 | |
| 1106 | INPUT_PORTS_START( insectx ) | |
| 1106 | static INPUT_PORTS_START( insectx ) | |
| 1107 | 1107 | PORT_START_TAG("DSWA") |
| 1108 | 1108 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1109 | 1109 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 1156 | 1156 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1157 | 1157 | INPUT_PORTS_END |
| 1158 | 1158 | |
| 1159 | INPUT_PORTS_START( kageki ) | |
| 1159 | static INPUT_PORTS_START( kageki ) | |
| 1160 | 1160 | PORT_START_TAG("DSWA") |
| 1161 | 1161 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1162 | 1162 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 1597 | 1597 | |
| 1598 | 1598 | ROM_START( extrmatn ) |
| 1599 | 1599 | ROM_REGION( 0x30000, REGION_CPU1, 0 ) /* Region 0 - main cpu */ |
| 1600 | ROM_LOAD( "b06-20. | |
| 1600 | ROM_LOAD( "b06-20.11c", 0x00000, 0x08000, CRC(04e3fc1f) SHA1(b1cf2f79f43fa33d6175368c897f84ec6aa6e746) ) | |
| 1601 | 1601 | ROM_CONTINUE( 0x18000, 0x08000 ) /* banked at 8000-bfff */ |
| 1602 | ROM_LOAD( "b06-21. | |
| 1602 | ROM_LOAD( "b06-21.9c | |
| 1603 | 1603 | |
| 1604 | 1604 | ROM_REGION( 0x18000, REGION_CPU2, 0 ) /* Region 2 - sound cpu */ |
| 1605 | ROM_LOAD( "b06-06. | |
| 1605 | ROM_LOAD( "b06-06.4e | |
| 1606 | 1606 | ROM_CONTINUE( 0x10000, 0x08000 ) /* banked at 8000-9fff */ |
| 1607 | 1607 | |
| 1608 | 1608 | ROM_REGION( 0x10000, REGION_CPU3, 0 ) /* M-Chip (i8742 internal ROM) */ |
| 1609 | ROM_LOAD( "extr8742. | |
| 1609 | ROM_LOAD( "extr8742.4f | |
| 1610 | 1610 | |
| 1611 | 1611 | ROM_REGION( 0x80000, REGION_GFX1, ROMREGION_DISPOSE ) |
| 1612 | ROM_LOAD( "b06-01.bin", 0x00000, 0x20000, CRC(d2afbf7e) SHA1(28b4cf94798f049a9f8375464741dbef208d7290) ) | |
| 1613 | ROM_LOAD( "b06-02.bin", 0x20000, 0x20000, CRC(e0c2757a) SHA1(3c89044caa28b10b4d1bef1515881810c23d312a) ) | |
| 1614 | ROM_LOAD( "b06-03.bin", 0x40000, 0x20000, CRC(ee80ab9d) SHA1(f4e4833cadff7d856b5a8075a61d902427653e16) ) | |
| 1615 | ROM_LOAD( "b06-04.bin", 0x60000, 0x20000, CRC(3697ace4) SHA1(6d6e4e64147365bcfcf74a84eb7ae84dffedd304) ) | |
| 1612 | ROM_LOAD( "b06-01.13a", 0x00000, 0x20000, CRC(d2afbf7e) SHA1(28b4cf94798f049a9f8375464741dbef208d7290) ) | |
| 1613 | ROM_LOAD( "b06-02.10a", 0x20000, 0x20000, CRC(e0c2757a) SHA1(3c89044caa28b10b4d1bef1515881810c23d312a) ) | |
| 1614 | ROM_LOAD( "b06-03.7a", 0x40000, 0x20000, CRC(ee80ab9d) SHA1(f4e4833cadff7d856b5a8075a61d902427653e16) ) | |
| 1615 | ROM_LOAD( "b06-04.4a", 0x60000, 0x20000, CRC(3697ace4) SHA1(6d6e4e64147365bcfcf74a84eb7ae84dffedd304) ) | |
| 1616 | 1616 | |
| 1617 | 1617 | ROM_REGION( 0x0400, REGION_PROMS, 0 ) |
| 1618 | ROM_LOAD( "b06-09.bin", 0x00000, 0x200, CRC(f388b361) SHA1(f00db6ad6994cfe9b7ad76e30b7049b11f8c16e4) ) /* hi bytes, AM27S29 or compatible like MB7124 */ | |
| 1619 | ROM_LOAD( "b06-08.bin", 0x00200, 0x200, CRC(10c9aac3) SHA1(09d6f791dea358e78099af7a370b00b8504ffc97) ) /* lo bytes, AM27S29 or compatible like MB7124 */ | |
| 1618 | ROM_LOAD( "b06-09.15f", 0x00000, 0x200, CRC(f388b361) SHA1(f00db6ad6994cfe9b7ad76e30b7049b11f8c16e4) ) /* hi bytes, AM27S29 or compatible like MB7124 */ | |
| 1619 | ROM_LOAD( "b06-08.17f", 0x00200, 0x200, CRC(10c9aac3) SHA1(09d6f791dea358e78099af7a370b00b8504ffc97) ) /* lo bytes, AM27S29 or compatible like MB7124 */ | |
| 1620 | 1620 | ROM_END |
| 1621 | 1621 | |
| 1622 | ROM_START( extrmatj ) | |
| 1623 | ROM_REGION( 0x30000, REGION_CPU1, 0 ) /* Region 0 - main cpu */ | |
| 1624 | ROM_LOAD( "b06-05.11c", 0x00000, 0x08000, CRC(918e1fe3) SHA1(1aa69e7ae393f275d440b3d5bf817475e443045d) ) | |
| 1625 | ROM_CONTINUE( 0x18000, 0x08000 ) /* banked at 8000-bfff */ | |
| 1626 | ROM_LOAD( "b06-06.9c", 0x20000, 0x10000, CRC(8842e105) SHA1(68675e77801504c5f67f82fae42f55152ffadebe) ) /* banked at 8000-bfff */ | |
| 1627 | ||
| 1628 | ROM_REGION( 0x18000, REGION_CPU2, 0 ) /* Region 2 - sound cpu */ | |
| 1629 | ROM_LOAD( "b06-07.4e", 0x00000, 0x08000, CRC(b37fb8b3) SHA1(10696914b9e39d34d56069a69b9d641339ea2309) ) | |
| 1630 | ROM_CONTINUE( 0x10000, 0x08000 ) /* banked at 8000-9fff */ | |
| 1631 | ||
| 1632 | ROM_REGION( 0x10000, REGION_CPU3, 0 ) /* M-Chip (i8742 internal ROM) */ | |
| 1633 | ROM_LOAD( "extr8742.4f", 0x0000, 0x0800, NO_DUMP ) /* Labeled B06-14 */ | |
| 1634 | ||
| 1635 | ROM_REGION( 0x80000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 1636 | ROM_LOAD( "b06-01.13a", 0x00000, 0x20000, CRC(d2afbf7e) SHA1(28b4cf94798f049a9f8375464741dbef208d7290) ) | |
| 1637 | ROM_LOAD( "b06-02.10a", 0x20000, 0x20000, CRC(e0c2757a) SHA1(3c89044caa28b10b4d1bef1515881810c23d312a) ) | |
| 1638 | ROM_LOAD( "b06-03.7a", 0x40000, 0x20000, CRC(ee80ab9d) SHA1(f4e4833cadff7d856b5a8075a61d902427653e16) ) | |
| 1639 | ROM_LOAD( "b06-04.4a", 0x60000, 0x20000, CRC(3697ace4) SHA1(6d6e4e64147365bcfcf74a84eb7ae84dffedd304) ) | |
| 1640 | ||
| 1641 | ROM_REGION( 0x0400, REGION_PROMS, 0 ) | |
| 1642 | ROM_LOAD( "b06-09.15f", 0x00000, 0x200, CRC(f388b361) SHA1(f00db6ad6994cfe9b7ad76e30b7049b11f8c16e4) ) /* hi bytes, AM27S29 or compatible like MB7124 */ | |
| 1643 | ROM_LOAD( "b06-08.17f", 0x00200, 0x200, CRC(10c9aac3) SHA1(09d6f791dea358e78099af7a370b00b8504ffc97) ) /* lo bytes, AM27S29 or compatible like MB7124 */ | |
| 1644 | ROM_END | |
| 1645 | ||
| 1622 | 1646 | ROM_START( arknoid2 ) |
| 1623 | 1647 | ROM_REGION( 0x30000, REGION_CPU1, 0 ) /* Region 0 - main cpu */ |
| 1624 | 1648 | ROM_LOAD( "b08_05.11c", 0x00000, 0x08000, CRC(136edf9d) SHA1(f632321650897eee585511a84f451a205d1f7704) ) |
| r1238 | r1239 | |
| 2097 | 2121 | /* ( YEAR NAME PARENT MACHINE INPUT INIT MONITOR COMPANY FULLNAME FLAGS ) */ |
| 2098 | 2122 | GAME( 1987, plumppop, 0, drtoppel, plumppop, plumpop, ROT0, "Taito Corporation", "Plump Pop (Japan)", 0 ) |
| 2099 | 2123 | GAME( 1987, extrmatn, 0, arknoid2, extrmatn, extrmatn, ROT270, "[Taito] World Games", "Extermination (US)", 0 ) |
| 2124 | GAME( 1987, extrmatj, 0, arknoid2, extrmatn, extrmatn, ROT270, "Taito Corporation", "Extermination (Japan)", 0 ) | |
| 2100 | 2125 | GAME( 1987, arknoid2, 0, arknoid2, arknoid2, arknoid2, ROT270, "Taito Corporation Japan", "Arkanoid - Revenge of DOH (World)", 0 ) |
| 2101 | 2126 | GAME( 1987, arknid2u, arknoid2, arknoid2, arknid2u, arknoid2, ROT270, "Taito America Corporation (Romstar license)", "Arkanoid - Revenge of DOH (US)", 0 ) |
| 2102 | 2127 | GAME( 1987, arknid2j, arknoid2, arknoid2, arknid2u, arknoid2, ROT270, "Taito Corporation", "Arkanoid - Revenge of DOH (Japan)", 0 ) |
| r1238 | r1239 | |
|---|---|---|
| 255 | 255 | |
| 256 | 256 | |
| 257 | 257 | |
| 258 | INPUT_PORTS_START( tp84 ) | |
| 258 | static INPUT_PORTS_START( tp84 ) | |
| 259 | 259 | PORT_START /* IN0 */ |
| 260 | 260 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 261 | 261 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 346 | 346 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 347 | 347 | INPUT_PORTS_END |
| 348 | 348 | |
| 349 | INPUT_PORTS_START( tp84a ) | |
| 349 | static INPUT_PORTS_START( tp84a ) | |
| 350 | 350 | PORT_START /* IN0 */ |
| 351 | 351 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 352 | 352 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 348 | 348 | |
| 349 | 349 | /**********************************************************************************/ |
| 350 | 350 | |
| 351 | INPUT_PORTS_START( rohga ) | |
| 351 | static INPUT_PORTS_START( rohga ) | |
| 352 | 352 | PORT_START |
| 353 | 353 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 354 | 354 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 446 | 446 | PORT_DIPSETTING( 0x0000, "Fastest" ) |
| 447 | 447 | INPUT_PORTS_END |
| 448 | 448 | |
| 449 | INPUT_PORTS_START( wizdfire ) | |
| 449 | static INPUT_PORTS_START( wizdfire ) | |
| 450 | 450 | PORT_START |
| 451 | 451 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 452 | 452 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 519 | 519 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 520 | 520 | INPUT_PORTS_END |
| 521 | 521 | |
| 522 | INPUT_PORTS_START( nitrobal ) | |
| 522 | static INPUT_PORTS_START( nitrobal ) | |
| 523 | 523 | PORT_START |
| 524 | 524 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 525 | 525 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 603 | 603 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN3 ) |
| 604 | 604 | INPUT_PORTS_END |
| 605 | 605 | |
| 606 | INPUT_PORTS_START( schmeisr ) | |
| 606 | static INPUT_PORTS_START( schmeisr ) | |
| 607 | 607 | PORT_START |
| 608 | 608 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 609 | 609 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 283 | 283 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) \ |
| 284 | 284 | PORT_DIPSETTING( 0x80, DEF_STR( On )) \ |
| 285 | 285 | |
| 286 | INPUT_PORTS_START (vball) | |
| 286 | static INPUT_PORTS_START (vball) | |
| 287 | 287 | COMMON_PORTS_BEFORE |
| 288 | 288 | /* The dipswitch instructions in naz's dump (vball) don't quite sync here) */ |
| 289 | 289 | /* Looks like the pins from the dips to the board were mixed up a little. */ |
| r1238 | r1239 | |
| 334 | 334 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 ) |
| 335 | 335 | INPUT_PORTS_END |
| 336 | 336 | |
| 337 | INPUT_PORTS_START (vball2pj) | |
| 337 | static INPUT_PORTS_START (vball2pj) | |
| 338 | 338 | COMMON_PORTS_BEFORE |
| 339 | 339 | |
| 340 | 340 | /* The 2-player roms have the game-time in the difficulty spot, and |
| r1238 | r1239 | |
|---|---|---|
| 53 | 53 | ADDRESS_MAP_END |
| 54 | 54 | |
| 55 | 55 | |
| 56 | INPUT_PORTS_START( higemaru ) | |
| 56 | static INPUT_PORTS_START( higemaru ) | |
| 57 | 57 | PORT_START /* IN0 */ |
| 58 | 58 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 59 | 59 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
|---|---|---|
| 725 | 725 | MDRV_SOUND_ROUTE(1, "right", 0.75) |
| 726 | 726 | MACHINE_DRIVER_END |
| 727 | 727 | |
| 728 | INPUT_PORTS_START( polygonet ) | |
| 728 | static INPUT_PORTS_START( polygonet ) | |
| 729 | 729 | PORT_START |
| 730 | 730 | |
| 731 | 731 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1) |
| r1238 | r1239 | |
|---|---|---|
| 149 | 149 | * |
| 150 | 150 | *************************************/ |
| 151 | 151 | |
| 152 | INPUT_PORTS_START( batman ) | |
| 152 | static INPUT_PORTS_START( batman ) | |
| 153 | 153 | PORT_START /* 26000 */ |
| 154 | 154 | PORT_BIT( 0x01ff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 155 | 155 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
|---|---|---|
| 252 | 252 | Stagger I |
| 253 | 253 | ***************************************************************************/ |
| 254 | 254 | |
| 255 | INPUT_PORTS_START( stagger1 ) | |
| 255 | static INPUT_PORTS_START( stagger1 ) | |
| 256 | 256 | PORT_START_TAG("IN0") // $080000.w |
| 257 | 257 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 258 | 258 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 329 | 329 | INPUT_PORTS_END |
| 330 | 330 | |
| 331 | 331 | /* everything seems active high.. not low */ |
| 332 | INPUT_PORTS_START( redhawkb ) | |
| 332 | static INPUT_PORTS_START( redhawkb ) | |
| 333 | 333 | PORT_START_TAG("IN0") // $080000.w |
| 334 | 334 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 335 | 335 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 409 | 409 | Sen Jin - Guardian Storm |
| 410 | 410 | ***************************************************************************/ |
| 411 | 411 | |
| 412 | INPUT_PORTS_START( grdnstrm ) | |
| 412 | static INPUT_PORTS_START( grdnstrm ) | |
| 413 | 413 | PORT_START_TAG("IN0") // $080000.w |
| 414 | 414 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 415 | 415 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 487 | 487 | |
| 488 | 488 | /* Pop's Pop's */ |
| 489 | 489 | |
| 490 | INPUT_PORTS_START( popspops ) | |
| 490 | static INPUT_PORTS_START( popspops ) | |
| 491 | 491 | PORT_START_TAG("IN0") // $080000.w |
| 492 | 492 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 493 | 493 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 572 | 572 | Bubble 2000 |
| 573 | 573 | ***************************************************************************/ |
| 574 | 574 | |
| 575 | INPUT_PORTS_START( bubl2000 ) | |
| 575 | static INPUT_PORTS_START( bubl2000 ) | |
| 576 | 576 | PORT_START_TAG("IN0") // $080000.w |
| 577 | 577 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 578 | 578 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 655 | 655 | Mang Chi |
| 656 | 656 | ***************************************************************************/ |
| 657 | 657 | |
| 658 | INPUT_PORTS_START( mangchi ) | |
| 658 | static INPUT_PORTS_START( mangchi ) | |
| 659 | 659 | PORT_START_TAG("IN0") // $080000.w |
| 660 | 660 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 661 | 661 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 739 | 739 | Fire Hawk |
| 740 | 740 | ***************************************************************************/ |
| 741 | 741 | |
| 742 | INPUT_PORTS_START( firehawk ) | |
| 742 | static INPUT_PORTS_START( firehawk ) | |
| 743 | 743 | PORT_START_TAG("IN0") // $080000.w |
| 744 | 744 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 745 | 745 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 823 | 823 | Spectrum 2000 |
| 824 | 824 | ***************************************************************************/ |
| 825 | 825 | |
| 826 | INPUT_PORTS_START( spec2k ) | |
| 826 | static INPUT_PORTS_START( spec2k ) | |
| 827 | 827 | PORT_START_TAG("IN0") // $080000.w |
| 828 | 828 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 829 | 829 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 905 | 905 | Twin Action |
| 906 | 906 | ***************************************************************************/ |
| 907 | 907 | |
| 908 | INPUT_PORTS_START( twinactn ) | |
| 908 | static INPUT_PORTS_START( twinactn ) | |
| 909 | 909 | PORT_START_TAG("IN0") // $080000.w |
| 910 | 910 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 911 | 911 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 474 | 474 | AM_RANGE(0x00000000, 0x001fffff) AM_RAM /* shared with SH-4 */ |
| 475 | 475 | ADDRESS_MAP_END |
| 476 | 476 | |
| 477 | INPUT_PORTS_START( naomi ) | |
| 477 | static INPUT_PORTS_START( naomi ) | |
| 478 | 478 | INPUT_PORTS_END |
| 479 | 479 | |
| 480 | 480 | static MACHINE_DRIVER_START( naomi ) |
| r1238 | r1239 | |
| 1846 | 1846 | */ |
| 1847 | 1847 | |
| 1848 | 1848 | /* Naomi & Naomi GD-ROM */ |
| 1849 | GAME | |
| 1849 | GAME | |
| 1850 | 1850 | // Complete Dumps |
| 1851 | GAMEB( 2001, csmash, naomi, naomi, naomi, naomi, 0, ROT0, "Sega", "Cosmic Smash (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1852 | GAMEB( 1999, vs2_2k, naomi, naomi, naomi, naomi, 0, ROT0, "Sega", "Virtua Striker 2 Ver. 2000 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1853 | GAMEB( 1999, vs2_2ka, vs2_2k, naomi, naomi, naomi, 0, ROT0, "Sega", "Virtua Striker 2 Ver. 2000 (set 2) (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1851 | GAME( 2001, csmash, naomi, naomi, naomi, 0, ROT0, "Sega", "Cosmic Smash (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1852 | 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 ) | |
| 1853 | 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 ) | |
| 1854 | 1854 | // Incomplete Dumps (just IC22) |
| 1855 | GAMEB( 2000, cspike, naomi, naomi, naomi, naomi, 0, ROT0, "Psikyo / Capcom","Gun Spike (JPN) / Cannon Spike (USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1856 | GAMEB( 2000, capsnk, naomi, naomi, naomi, naomi, 0, ROT0, "Capcom / SNK", "Capcom Vs. SNK Millennium Fight 2000 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1857 | GAMEB( ????, derbyoc, naomi, naomi, naomi, naomi, 0, ROT0, "Sega", "Derby Owners Club (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1858 | GAMEB( 1998, dybb99, naomi, naomi, naomi, naomi, 0, ROT0, "Sega", "Dynamite Baseball '99 (JPN) / World Series '99 (USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1859 | GAMEB( 2000, gram2000, naomi, naomi, naomi, naomi, 0, ROT0, "Sega", "Giant Gram 2000 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1860 | GAMEB( 1999, ggram2, naomi, naomi, naomi, naomi, 0, ROT0, "Sega", "Giant Gram (2?) (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) // strings in rom don't contain '2' | |
| 1861 | GAMEB( 2001, hmgeo, naomi, naomi, naomi, naomi, 0, ROT0, "Capcom", "Heavy Metal Geomatrix (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1862 | GAMEB( 2000, gwing2, naomi, naomi, naomi, naomi, 0, ROT0, "Takumi / Capcom","Giga Wing 2 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1863 | GAMEB( 1999, suchie3, naomi, naomi, naomi, naomi, 0, ROT0, "Jaleco", "Idol Janshi Suchie-Pai 3 (JPN)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1864 | GAMEB( 2000, pjustic, naomi, naomi, naomi, naomi, 0, ROT0, "Capcom", "Moero Justice Gakuen (JPN) / Project Justice (USA, EXP, KOR, AUS) ", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1865 | GAMEB( 1999, pstone, naomi, naomi, naomi, naomi, 0, ROT0, "Capcom", "Power Stone (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1866 | GAMEB( 2000, pstone2, naomi, naomi, naomi, naomi, 0, ROT0, "Capcom", "Power Stone 2 (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1867 | GAMEB( 1999, otrigger, naomi, naomi, naomi, naomi, 0, ROT0, "Sega", "OutTrigger (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1868 | GAMEB( 1999, samba, naomi, naomi, naomi, naomi, 0, ROT0, "Sega", "Samba De Amigo (JPN)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1869 | GAMEB( 2000, slasho, naomi, naomi, naomi, naomi, 0, ROT0, "Sega", "Slashout (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1870 | GAMEB( 1999, spawn, naomi, naomi, naomi, naomi, 0, ROT0, "Capcom", "Spawn (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1871 | GAMEB( 2000, virnba, naomi, naomi, naomi, naomi, 0, ROT0, "Sega", "Virtua NBA (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1872 | GAMEB( 1999, vtennis, naomi, naomi, naomi, naomi, 0, ROT0, "Sega", "Power Smash (JPN) / Virtua Tennis (USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1873 | GAMEB( 1999, zombrvn, naomi, naomi, naomi, naomi, 0, ROT0, "Sega", "Zombie Revenge (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1874 | GAMEB( 1999, doa2, naomi, naomi, naomi, naomi, 0, ROT0, "Tecmo", "Dead or Alive 2 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1875 | GAMEB( 2000, doa2m, doa2, naomi, naomi, naomi, 0, ROT0, "Tecmo", "Dead or Alive 2 Millennium (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1876 | GAMEB( 1998, dybbnao, naomi, naomi, naomi, naomi, 0, ROT0, "Sega", "Dynamite Baseball NAOMI (JPN)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1855 | 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 ) | |
| 1856 | 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 ) | |
| 1857 | GAME( ????, derbyoc, naomi, naomi, naomi, 0, ROT0, "Sega", "Derby Owners Club (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1858 | 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 ) | |
| 1859 | GAME( 2000, gram2000, naomi, naomi, naomi, 0, ROT0, "Sega", "Giant Gram 2000 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1860 | GAME( 1999, ggram2, naomi, naomi, naomi, 0, ROT0, "Sega", "Giant Gram (2?) (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) // strings in rom don't contain '2' | |
| 1861 | GAME( 2001, hmgeo, naomi, naomi, naomi, 0, ROT0, "Capcom", "Heavy Metal Geomatrix (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1862 | GAME( 2000, gwing2, naomi, naomi, naomi, 0, ROT0, "Takumi / Capcom","Giga Wing 2 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1863 | GAME( 1999, suchie3, naomi, naomi, naomi, 0, ROT0, "Jaleco", "Idol Janshi Suchie-Pai 3 (JPN)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1864 | 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 ) | |
| 1865 | GAME( 1999, pstone, naomi, naomi, naomi, 0, ROT0, "Capcom", "Power Stone (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1866 | GAME( 2000, pstone2, naomi, naomi, naomi, 0, ROT0, "Capcom", "Power Stone 2 (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1867 | GAME( 1999, otrigger, naomi, naomi, naomi, 0, ROT0, "Sega", "OutTrigger (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1868 | GAME( 1999, samba, naomi, naomi, naomi, 0, ROT0, "Sega", "Samba De Amigo (JPN)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1869 | GAME( 2000, slasho, naomi, naomi, naomi, 0, ROT0, "Sega", "Slashout (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1870 | GAME( 1999, spawn, naomi, naomi, naomi, 0, ROT0, "Capcom", "Spawn (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1871 | GAME( 2000, virnba, naomi, naomi, naomi, 0, ROT0, "Sega", "Virtua NBA (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1872 | GAME( 1999, vtennis, naomi, naomi, naomi, 0, ROT0, "Sega", "Power Smash (JPN) / Virtua Tennis (USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1873 | GAME( 1999, zombrvn, naomi, naomi, naomi, 0, ROT0, "Sega", "Zombie Revenge (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1874 | GAME( 1999, doa2, naomi, naomi, naomi, 0, ROT0, "Tecmo", "Dead or Alive 2 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1875 | 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 ) | |
| 1876 | GAME( 1998, dybbnao, naomi, naomi, naomi, 0, ROT0, "Sega", "Dynamite Baseball NAOMI (JPN)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 1877 | 1877 | |
| 1878 | 1878 | |
| 1879 | 1879 | |
| 1880 | 1880 | // No GD-Rom Sets Supported */ |
| 1881 | 1881 | |
| 1882 | 1882 | /* Naomi 2 & Naomi 2 GD-ROM */ |
| 1883 | GAME | |
| 1883 | GAME | |
| 1884 | 1884 | // No Supported Sets |
| 1885 | 1885 | |
| 1886 | 1886 | /* Atomiswave */ |
| 1887 | GAME | |
| 1887 | GAME | |
| 1888 | 1888 | // No Supported Setas |
| r1238 | r1239 | |
|---|---|---|
| 867 | 867 | PORT_DIPSETTING( 0x00, "Disabled" ) |
| 868 | 868 | |
| 869 | 869 | |
| 870 | INPUT_PORTS_START( nemesis ) | |
| 870 | static INPUT_PORTS_START( nemesis ) | |
| 871 | 871 | PORT_START /* IN0 */ |
| 872 | 872 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 873 | 873 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 940 | 940 | INPUT_PORTS_END |
| 941 | 941 | |
| 942 | 942 | |
| 943 | INPUT_PORTS_START( nemesuk ) | |
| 943 | static INPUT_PORTS_START( nemesuk ) | |
| 944 | 944 | PORT_START /* IN0 */ |
| 945 | 945 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 946 | 946 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1014 | 1014 | |
| 1015 | 1015 | |
| 1016 | 1016 | /* This needs to be sorted */ |
| 1017 | INPUT_PORTS_START( konamigt ) | |
| 1017 | static INPUT_PORTS_START( konamigt ) | |
| 1018 | 1018 | PORT_START /* IN0 */ |
| 1019 | 1019 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1020 | 1020 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1085 | 1085 | |
| 1086 | 1086 | |
| 1087 | 1087 | /* This needs to be sorted */ |
| 1088 | INPUT_PORTS_START( rf2 ) | |
| 1088 | static INPUT_PORTS_START( rf2 ) | |
| 1089 | 1089 | PORT_START /* IN0 */ |
| 1090 | 1090 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1091 | 1091 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1156 | 1156 | INPUT_PORTS_END |
| 1157 | 1157 | |
| 1158 | 1158 | |
| 1159 | INPUT_PORTS_START( gwarrior ) | |
| 1159 | static INPUT_PORTS_START( gwarrior ) | |
| 1160 | 1160 | PORT_START /* IN0 */ |
| 1161 | 1161 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1162 | 1162 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1229 | 1229 | INPUT_PORTS_END |
| 1230 | 1230 | |
| 1231 | 1231 | |
| 1232 | INPUT_PORTS_START( twinbee ) | |
| 1232 | static INPUT_PORTS_START( twinbee ) | |
| 1233 | 1233 | PORT_START /* IN0 */ |
| 1234 | 1234 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1235 | 1235 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1303 | 1303 | INPUT_PORTS_END |
| 1304 | 1304 | |
| 1305 | 1305 | |
| 1306 | INPUT_PORTS_START( gradius ) | |
| 1306 | static INPUT_PORTS_START( gradius ) | |
| 1307 | 1307 | PORT_START /* IN0 */ |
| 1308 | 1308 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1309 | 1309 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1376 | 1376 | INPUT_PORTS_END |
| 1377 | 1377 | |
| 1378 | 1378 | |
| 1379 | INPUT_PORTS_START( salamand ) | |
| 1379 | static INPUT_PORTS_START( salamand ) | |
| 1380 | 1380 | PORT_START /* IN0 */ |
| 1381 | 1381 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1382 | 1382 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1470 | 1470 | INPUT_PORTS_END |
| 1471 | 1471 | |
| 1472 | 1472 | |
| 1473 | INPUT_PORTS_START( lifefrcj ) | |
| 1473 | static INPUT_PORTS_START( lifefrcj ) | |
| 1474 | 1474 | PORT_START /* IN0 */ |
| 1475 | 1475 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1476 | 1476 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1568 | 1568 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1569 | 1569 | INPUT_PORTS_END |
| 1570 | 1570 | |
| 1571 | INPUT_PORTS_START( blkpnthr ) | |
| 1571 | static INPUT_PORTS_START( blkpnthr ) | |
| 1572 | 1572 | PORT_START /* IN0 */ |
| 1573 | 1573 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1574 | 1574 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1665 | 1665 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1666 | 1666 | INPUT_PORTS_END |
| 1667 | 1667 | |
| 1668 | INPUT_PORTS_START( citybomb ) | |
| 1668 | static INPUT_PORTS_START( citybomb ) | |
| 1669 | 1669 | PORT_START /* IN0 */ |
| 1670 | 1670 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1671 | 1671 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1757 | 1757 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1758 | 1758 | INPUT_PORTS_END |
| 1759 | 1759 | |
| 1760 | INPUT_PORTS_START( nyanpani ) | |
| 1760 | static INPUT_PORTS_START( nyanpani ) | |
| 1761 | 1761 | PORT_START /* IN0 */ |
| 1762 | 1762 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1763 | 1763 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1842 | 1842 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1843 | 1843 | INPUT_PORTS_END |
| 1844 | 1844 | |
| 1845 | INPUT_PORTS_START( hcrash ) | |
| 1845 | static INPUT_PORTS_START( hcrash ) | |
| 1846 | 1846 | PORT_START /* IN0 */ |
| 1847 | 1847 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1848 | 1848 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | |
| 46 | INPUT_PORTS_START( cheekyms ) | |
| 46 | static INPUT_PORTS_START( cheekyms ) | |
| 47 | 47 | PORT_START /* IN0 */ |
| 48 | 48 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) |
| 49 | 49 | PORT_DIPSETTING( 0x00, "2" ) |
| r1238 | r1239 | |
|---|---|---|
| 95 | 95 | ADDRESS_MAP_END |
| 96 | 96 | #endif |
| 97 | 97 | |
| 98 | INPUT_PORTS_START( progolf ) | |
| 98 | static INPUT_PORTS_START( progolf ) | |
| 99 | 99 | PORT_START |
| 100 | 100 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 101 | 101 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 241 | 241 | ADDRESS_MAP_END |
| 242 | 242 | |
| 243 | 243 | |
| 244 | INPUT_PORTS_START( magmax ) | |
| 244 | static INPUT_PORTS_START( magmax ) | |
| 245 | 245 | PORT_START /* Player 1 controls */ |
| 246 | 246 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 247 | 247 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 281 | 281 | * |
| 282 | 282 | *************************************/ |
| 283 | 283 | |
| 284 | INPUT_PORTS_START( asteroid ) | |
| 284 | static INPUT_PORTS_START( asteroid ) | |
| 285 | 285 | PORT_START_TAG("IN0") |
| 286 | 286 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 287 | 287 | /* Bit 2 and 3 are handled in the machine dependent part. */ |
| r1238 | r1239 | |
| 329 | 329 | INPUT_PORTS_END |
| 330 | 330 | |
| 331 | 331 | |
| 332 | INPUT_PORTS_START( asteroib ) | |
| 332 | static INPUT_PORTS_START( asteroib ) | |
| 333 | 333 | PORT_START_TAG("IN0") |
| 334 | 334 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* resets */ |
| 335 | 335 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* resets */ |
| r1238 | r1239 | |
| 381 | 381 | INPUT_PORTS_END |
| 382 | 382 | |
| 383 | 383 | |
| 384 | INPUT_PORTS_START( asterock ) | |
| 384 | static INPUT_PORTS_START( asterock ) | |
| 385 | 385 | PORT_START_TAG("IN0") |
| 386 | 386 | /* Bit 0 is VG_HALT, handled in the machine dependent part */ |
| 387 | 387 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 433 | 433 | INPUT_PORTS_END |
| 434 | 434 | |
| 435 | 435 | |
| 436 | INPUT_PORTS_START( astdelux ) | |
| 436 | static INPUT_PORTS_START( astdelux ) | |
| 437 | 437 | PORT_START_TAG("IN0") |
| 438 | 438 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 439 | 439 | /* Bit 2 and 3 are handled in the machine dependent part. */ |
| r1238 | r1239 | |
| 502 | 502 | INPUT_PORTS_END |
| 503 | 503 | |
| 504 | 504 | |
| 505 | INPUT_PORTS_START( llander ) | |
| 505 | static INPUT_PORTS_START( llander ) | |
| 506 | 506 | PORT_START_TAG("IN0") |
| 507 | 507 | /* Bit 0 is VG_HALT, handled in the machine dependent part */ |
| 508 | 508 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 555 | 555 | INPUT_PORTS_END |
| 556 | 556 | |
| 557 | 557 | |
| 558 | INPUT_PORTS_START( llander1 ) | |
| 558 | static INPUT_PORTS_START( llander1 ) | |
| 559 | 559 | PORT_START_TAG("IN0") |
| 560 | 560 | /* Bit 0 is VG_HALT, handled in the machine dependent part */ |
| 561 | 561 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 146 | 146 | ADDRESS_MAP_END |
| 147 | 147 | |
| 148 | 148 | |
| 149 | INPUT_PORTS_START( powerbal ) | |
| 149 | static INPUT_PORTS_START( powerbal ) | |
| 150 | 150 | PORT_START_TAG("IN0") |
| 151 | 151 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 152 | 152 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 228 | 228 | PORT_DIPSETTING( 0x00, DEF_STR( Very_Hard ) ) |
| 229 | 229 | INPUT_PORTS_END |
| 230 | 230 | |
| 231 | INPUT_PORTS_START( magicstk ) | |
| 231 | static INPUT_PORTS_START( magicstk ) | |
| 232 | 232 | PORT_START_TAG("IN0") |
| 233 | 233 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 234 | 234 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 252 | 252 | UINT32* stv_workram_l; |
| 253 | 253 | UINT32* stv_workram_h; |
| 254 | 254 | UINT32* stv_backupram; |
| 255 | UINT32* stv_scu; | |
| 255 | extern UINT32* stv_scu; | |
| 256 | 256 | static UINT32* ioga; |
| 257 | 257 | static UINT16* scsp_regs; |
| 258 | 258 | static UINT16* sound_ram; |
| r1238 | r1239 | |
| 1193 | 1193 | #define D1MV_0 if(DMA_STATUS & 0x100) DMA_STATUS^=0x100 |
| 1194 | 1194 | #define D2MV_0 if(DMA_STATUS & 0x1000) DMA_STATUS^=0x1000 |
| 1195 | 1195 | |
| 1196 | UINT32 scu_index_0,scu_index_1,scu_index_2; | |
| 1196 | static UINT32 scu_index_0,scu_index_1,scu_index_2; | |
| 1197 | 1197 | static UINT8 scsp_to_main_irq; |
| 1198 | 1198 | |
| 1199 | 1199 | static UINT32 scu_add_tmp; |
| r1238 | r1239 | |
| 2138 | 2138 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(_n_) \ |
| 2139 | 2139 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(_n_) |
| 2140 | 2140 | |
| 2141 | INPUT_PORTS_START( stv ) | |
| 2141 | static INPUT_PORTS_START( stv ) | |
| 2142 | 2142 | PORT_START |
| 2143 | 2143 | PORT_DIPNAME( 0x01, 0x01, "PDR1" ) |
| 2144 | 2144 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2261 | 2261 | #endif |
| 2262 | 2262 | INPUT_PORTS_END |
| 2263 | 2263 | |
| 2264 | INPUT_PORTS_START( critcrsh ) | |
| 2264 | static INPUT_PORTS_START( critcrsh ) | |
| 2265 | 2265 | |
| 2266 | 2266 | PORT_INCLUDE( stv ) |
| 2267 | 2267 | |
| r1238 | r1239 | |
| 2276 | 2276 | INPUT_PORTS_END |
| 2277 | 2277 | |
| 2278 | 2278 | /*Same as the regular one,but with an additional & optional mahjong panel*/ |
| 2279 | INPUT_PORTS_START( stvmp ) | |
| 2279 | static INPUT_PORTS_START( stvmp ) | |
| 2280 | 2280 | PORT_START |
| 2281 | 2281 | PORT_DIPNAME( 0x01, 0x01, "PDR1" ) |
| 2282 | 2282 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 3689 | 3689 | by Sega titles,and this is a Sunsoft game)It's likely to be a left-over... |
| 3690 | 3690 | */ |
| 3691 | 3691 | |
| 3692 | GAME | |
| 3692 | GAME | |
| 3693 | 3693 | |
| 3694 | 3694 | //GBX YEAR, NAME, PARENT, BIOS, MACH,INP, INIT, MONITOR |
| 3695 | 3695 | /* Playable */ |
| 3696 | GAMEB( 1998, astrass, stvbios, stvbios, stv, stv, astrass, ROT0, "Sunsoft", "Astra SuperStars (J 980514 V1.002)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 3697 | GAMEB( 1995, bakubaku, stvbios, stvbios, stv, stv, bakubaku, ROT0, "Sega", "Baku Baku Animal (J 950407 V1.000)", GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3698 | GAMEB( 1996, batmanfr, stvbios, stvbios, stv, stv, batmanfr, ROT0, "Acclaim", "Batman Forever (JUE 960507 V1.000)", GAME_NO_SOUND ) | |
| 3699 | GAMEB( 1996, colmns97, stvbios, stvbios, stv, stv, colmns97, ROT0, "Sega", "Columns '97 (JET 961209 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3700 | GAMEB( 1997, cotton2, stvbios, stvbios, stv, stv, cotton2, ROT0, "Success", "Cotton 2 (JUET 970902 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3701 | GAMEB( 1998, cottonbm, stvbios, stvbios, stv, stv, cottonbm, ROT0, "Success", "Cotton Boomerang (JUET 980709 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3702 | GAMEB( 1995, critcrsh, stvbios, stvbios, stv, critcrsh, ic13, ROT0, "Sega", "Critter Crusher (EA 951204 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3703 | GAMEB( 1999, danchih, stvbios, stvbios, stv, stvmp,danchih, ROT0, "Altron (Tecmo license)", "Danchi de Hanafuda (J 990607 V1.400)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3704 | GAMEB( 1996, diehard, stvbios, stvbios, stv, stv, diehard, ROT0, "Sega", "Die Hard Arcade (UET 960515 V1.000)", GAME_IMPERFECT_SOUND ) | |
| 3705 | GAMEB( 1996, dnmtdeka, diehard, stvbios, stv, stv, dnmtdeka, ROT0, "Sega", "Dynamite Deka (J 960515 V1.000)", GAME_IMPERFECT_SOUND ) | |
| 3706 | GAMEB( 1995, ejihon, stvbios, stvbios, stv, stv, ic13, ROT0, "Sega", "Ejihon Tantei Jimusyo (J 950613 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3707 | GAMEB( 1995, fhboxers, stvbios, stvbios, stv, stv, fhboxers, ROT0, "Sega", "Funky Head Boxers (JUETBKAL 951218 V1.000)", GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3708 | GAMEB( 1994, gaxeduel, stvbios, stvbios, stv, stv, gaxeduel, ROT0, "Sega", "Golden Axe - The Duel (JUETL 950117 V1.000)", GAME_IMPERFECT_SOUND ) | |
| 3709 | GAMEB( 1998, grdforce, stvbios, stvbios, stv, stv, grdforce, ROT0, "Success", "Guardian Force (JUET 980318 V0.105)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3710 | GAMEB( 1998, groovef, stvbios, stvbios, stv, stv, groovef, ROT0, "Atlus", "Power Instinct 3 - Groove On Fight (J 970416 V1.001)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3711 | GAMEB( 1997, hanagumi, stvbios, stvbios, stv, stv, hanagumi, ROT0, "Sega", "Hanagumi Taisen Columns - Sakura Wars (J 971007 V1.010)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 3712 | GAMEB( 1996, introdon, stvbios, stvbios, stv, stv, ic13, ROT0, "Sunsoft / Success", "Karaoke Quiz Intro Don Don! (J 960213 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3713 | GAMEB( 1995, kiwames, stvbios, stvbios, stv, stvmp,ic13, ROT0, "Athena", "Pro Mahjong Kiwame S (J 951020 V1.208)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3714 | GAMEB( 1997, maruchan, stvbios, stvbios, stv, stv, maruchan, ROT0, "Sega / Toyosuisan", "Maru-Chan de Goo! (J 971216 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3715 | GAMEB( 1996, mausuke, stvbios, stvbios, stv, stv, mausuke, ROT0, "Data East", "Mausuke no Ojama the World (J 960314 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3716 | GAMEB( 1998, othellos, stvbios, stvbios, stv, stv, othellos, ROT0, "Success", "Othello Shiyouyo (J 980423 V1.002)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3717 | GAMEB( 1995, pblbeach, stvbios, stvbios, stv, stv, pblbeach, ROT0, "T&E Soft", "Pebble Beach - The Great Shot (JUE 950913 V0.990)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3718 | GAMEB( 1996, prikura, stvbios, stvbios, stv, stv, prikura, ROT0, "Atlus", "Princess Clara Daisakusen (J 960910 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3719 | GAMEB( 1996, puyosun, stvbios, stvbios, stv, stv, puyosun, ROT0, "Compile", "Puyo Puyo Sun (J 961115 V0.001)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3720 | GAMEB( 1998, rsgun, stvbios, stvbios, stv, stv, rsgun, ROT0, "Treasure", "Radiant Silvergun (JUET 980523 V1.000)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 3721 | GAMEB( 1998, sasissu, stvbios, stvbios, stv, stv, sasissu, ROT0, "Sega", "Taisen Tanto-R Sashissu!! (J 980216 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3722 | GAMEB( 1997, seabass, stvbios, stvbios, stv, stv, seabass, ROT0, "A wave inc. (Able license)","Sea Bass Fishing (JUET 971110 V0.001)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3723 | GAMEB( 1995, shanhigw, stvbios, stvbios, stv, stv, shanhigw, ROT0, "Sunsoft / Activision", "Shanghai - The Great Wall / Shanghai Triple Threat (JUE 950623 V1.005)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3724 | GAMEB( 1997, shienryu, stvbios, stvbios, stv, stv, shienryu, ROT270, "Warashi", "Shienryu (JUET 961226 V1.000)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 3725 | GAMEB( 1995, smleague, stvbios, stvbios, stv, stv, smleague, ROT0, "Sega", "Super Major League (U 960108 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3726 | GAMEB( 1995, finlarch, smleague,stvbios, stv, stv, finlarch, ROT0, "Sega", "Final Arch (J 950714 V1.001)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3727 | GAMEB( 1998, sss, stvbios, stvbios, stv, stv, sss, ROT0, "Capcom / Cave / Victor", "Steep Slope Sliders (JUET 981110 V1.000)", GAME_IMPERFECT_SOUND ) | |
| 3728 | GAMEB( 1995, sandor, stvbios, stvbios, stv, stv, sandor, ROT0, "Sega", "Puzzle & Action: Sando-R (J 951114 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3729 | GAMEB( 1996, sokyugrt, stvbios, stvbios, stv, stv, sokyugrt, ROT0, "Raizing / 8ing", "Soukyugurentai / Terra Diver (JUET 960821 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3730 | GAMEB( 1995, suikoenb, stvbios, stvbios, stv, stv, suikoenb, ROT0, "Data East", "Suikoenbu / Outlaws of the Lost Dynasty (JUETL 950314 V2.001)", GAME_IMPERFECT_SOUND ) | |
| 3731 | GAMEB( 1997, thunt, sandor, stvbios, stv, stv, thunt, ROT0, "Sega", "Puzzle & Action: Treasure Hunt (JUET 970901 V2.00E)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3732 | GAMEB( 1996, vfkids, stvbios, stvbios, stv, stv, ic13, ROT0, "Sega", "Virtua Fighter Kids (JUET 960319 V0.000)", GAME_IMPERFECT_SOUND ) | |
| 3733 | GAMEB( 1997, winterht, stvbios, stvbios, stv, stv, winterht, ROT0, "Sega", "Winter Heat (JUET 971012 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3734 | GAMEB( 1997, znpwfv, stvbios, stvbios, stv, stv, znpwfv, ROT0, "Sega", "Zen Nippon Pro-Wrestling Featuring Virtua (J 971123 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3696 | GAME( 1998, astrass, stvbios, stv, stv, astrass, ROT0, "Sunsoft", "Astra SuperStars (J 980514 V1.002)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 3697 | GAME( 1995, bakubaku, stvbios, stv, stv, bakubaku, ROT0, "Sega", "Baku Baku Animal (J 950407 V1.000)", GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3698 | GAME( 1996, batmanfr, stvbios, stv, stv, batmanfr, ROT0, "Acclaim", "Batman Forever (JUE 960507 V1.000)", GAME_NO_SOUND ) | |
| 3699 | GAME( 1996, colmns97, stvbios, stv, stv, colmns97, ROT0, "Sega", "Columns '97 (JET 961209 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3700 | GAME( 1997, cotton2, stvbios, stv, stv, cotton2, ROT0, "Success", "Cotton 2 (JUET 970902 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3701 | GAME( 1998, cottonbm, stvbios, stv, stv, cottonbm, ROT0, "Success", "Cotton Boomerang (JUET 980709 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3702 | GAME( 1995, critcrsh, stvbios, stv, critcrsh, ic13, ROT0, "Sega", "Critter Crusher (EA 951204 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3703 | GAME( 1999, danchih, stvbios, stv, stvmp,danchih, ROT0, "Altron (Tecmo license)", "Danchi de Hanafuda (J 990607 V1.400)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3704 | GAME( 1996, diehard, stvbios, stv, stv, diehard, ROT0, "Sega", "Die Hard Arcade (UET 960515 V1.000)", GAME_IMPERFECT_SOUND ) | |
| 3705 | GAME( 1996, dnmtdeka, diehard, stv, stv, dnmtdeka, ROT0, "Sega", "Dynamite Deka (J 960515 V1.000)", GAME_IMPERFECT_SOUND ) | |
| 3706 | GAME( 1995, ejihon, stvbios, stv, stv, ic13, ROT0, "Sega", "Ejihon Tantei Jimusyo (J 950613 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3707 | GAME( 1995, fhboxers, stvbios, stv, stv, fhboxers, ROT0, "Sega", "Funky Head Boxers (JUETBKAL 951218 V1.000)", GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3708 | GAME( 1994, gaxeduel, stvbios, stv, stv, gaxeduel, ROT0, "Sega", "Golden Axe - The Duel (JUETL 950117 V1.000)", GAME_IMPERFECT_SOUND ) | |
| 3709 | GAME( 1998, grdforce, stvbios, stv, stv, grdforce, ROT0, "Success", "Guardian Force (JUET 980318 V0.105)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3710 | GAME( 1998, groovef, stvbios, stv, stv, groovef, ROT0, "Atlus", "Power Instinct 3 - Groove On Fight (J 970416 V1.001)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3711 | GAME( 1997, hanagumi, stvbios, stv, stv, hanagumi, ROT0, "Sega", "Hanagumi Taisen Columns - Sakura Wars (J 971007 V1.010)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 3712 | GAME( 1996, introdon, stvbios, stv, stv, ic13, ROT0, "Sunsoft / Success", "Karaoke Quiz Intro Don Don! (J 960213 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3713 | GAME( 1995, kiwames, stvbios, stv, stvmp,ic13, ROT0, "Athena", "Pro Mahjong Kiwame S (J 951020 V1.208)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3714 | GAME( 1997, maruchan, stvbios, stv, stv, maruchan, ROT0, "Sega / Toyosuisan", "Maru-Chan de Goo! (J 971216 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3715 | GAME( 1996, mausuke, stvbios, stv, stv, mausuke, ROT0, "Data East", "Mausuke no Ojama the World (J 960314 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3716 | GAME( 1998, othellos, stvbios, stv, stv, othellos, ROT0, "Success", "Othello Shiyouyo (J 980423 V1.002)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3717 | GAME( 1995, pblbeach, stvbios, stv, stv, pblbeach, ROT0, "T&E Soft", "Pebble Beach - The Great Shot (JUE 950913 V0.990)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3718 | GAME( 1996, prikura, stvbios, stv, stv, prikura, ROT0, "Atlus", "Princess Clara Daisakusen (J 960910 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3719 | GAME( 1996, puyosun, stvbios, stv, stv, puyosun, ROT0, "Compile", "Puyo Puyo Sun (J 961115 V0.001)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3720 | GAME( 1998, rsgun, stvbios, stv, stv, rsgun, ROT0, "Treasure", "Radiant Silvergun (JUET 980523 V1.000)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 3721 | GAME( 1998, sasissu, stvbios, stv, stv, sasissu, ROT0, "Sega", "Taisen Tanto-R Sashissu!! (J 980216 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3722 | GAME( 1997, seabass, stvbios, stv, stv, seabass, ROT0, "A wave inc. (Able license)","Sea Bass Fishing (JUET 971110 V0.001)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3723 | GAME( 1995, shanhigw, stvbios, stv, stv, shanhigw, ROT0, "Sunsoft / Activision", "Shanghai - The Great Wall / Shanghai Triple Threat (JUE 950623 V1.005)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3724 | GAME( 1997, shienryu, stvbios, stv, stv, shienryu, ROT270, "Warashi", "Shienryu (JUET 961226 V1.000)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 3725 | GAME( 1995, smleague, stvbios, stv, stv, smleague, ROT0, "Sega", "Super Major League (U 960108 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3726 | GAME( 1995, finlarch, smleague, stv, stv, finlarch, ROT0, "Sega", "Final Arch (J 950714 V1.001)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3727 | GAME( 1998, sss, stvbios, stv, stv, sss, ROT0, "Capcom / Cave / Victor", "Steep Slope Sliders (JUET 981110 V1.000)", GAME_IMPERFECT_SOUND ) | |
| 3728 | GAME( 1995, sandor, stvbios, stv, stv, sandor, ROT0, "Sega", "Puzzle & Action: Sando-R (J 951114 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3729 | GAME( 1996, sokyugrt, stvbios, stv, stv, sokyugrt, ROT0, "Raizing / 8ing", "Soukyugurentai / Terra Diver (JUET 960821 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3730 | GAME( 1995, suikoenb, stvbios, stv, stv, suikoenb, ROT0, "Data East", "Suikoenbu / Outlaws of the Lost Dynasty (JUETL 950314 V2.001)", GAME_IMPERFECT_SOUND ) | |
| 3731 | GAME( 1997, thunt, sandor, stv, stv, thunt, ROT0, "Sega", "Puzzle & Action: Treasure Hunt (JUET 970901 V2.00E)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3732 | GAME( 1996, vfkids, stvbios, stv, stv, ic13, ROT0, "Sega", "Virtua Fighter Kids (JUET 960319 V0.000)", GAME_IMPERFECT_SOUND ) | |
| 3733 | GAME( 1997, winterht, stvbios, stv, stv, winterht, ROT0, "Sega", "Winter Heat (JUET 971012 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3734 | GAME( 1997, znpwfv, stvbios, stv, stv, znpwfv, ROT0, "Sega", "Zen Nippon Pro-Wrestling Featuring Virtua (J 971123 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3735 | 3735 | |
| 3736 | 3736 | /* Almost */ |
| 3737 | GAMEB( 1997, vmahjong, stvbios, stvbios, stv, stvmp,stv, ROT0, "Micronet", "Virtual Mahjong (J 961214 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3738 | GAMEB( 1998, myfairld, stvbios, stvbios, stv, stvmp,stv, ROT0, "Micronet", "Virtual Mahjong 2 - My Fair Lady (J 980608 V1.000)", GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_NOT_WORKING ) | |
| 3739 | GAMEB( 1998, twcup98, stvbios, stvbios, stv, stv, twcup98, ROT0, "Tecmo", "Tecmo World Cup '98 (JUET 980410 V1.000)", GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS|GAME_NOT_WORKING ) // player movement | |
| 3737 | GAME( 1997, vmahjong, stvbios, stv, stvmp,stv, ROT0, "Micronet", "Virtual Mahjong (J 961214 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3738 | GAME( 1998, myfairld, stvbios, stv, stvmp,stv, ROT0, "Micronet", "Virtual Mahjong 2 - My Fair Lady (J 980608 V1.000)", GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_NOT_WORKING ) | |
| 3739 | GAME( 1998, twcup98, stvbios, stv, stv, twcup98, ROT0, "Tecmo", "Tecmo World Cup '98 (JUET 980410 V1.000)", GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS|GAME_NOT_WORKING ) // player movement | |
| 3740 | 3740 | |
| 3741 | 3741 | /* Doing Something.. but not enough yet */ |
| 3742 | GAMEB( 1998, elandore, stvbios, stvbios, stv, stv, elandore, ROT0, "Sai-Mate", "Elan Doree - Legend of Dragon (JUET 980922 V1.006)", GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING )//japanese name? | |
| 3743 | GAMEB( 1995, vfremix, stvbios, stvbios, stv, stv, vfremix, ROT0, "Sega", "Virtua Fighter Remix (JUETBKAL 950428 V1.000)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) | |
| 3744 | GAMEB( 1997, findlove, stvbios, stvbios, stv, stv, ic13, ROT0, "Daiki / FCF", "Find Love (J 971212 V1.000)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) | |
| 3745 | GAMEB( 1996, decathlt, stvbios, stvbios, stv, stv, decathlt, ROT0, "Sega", "Decathlete (JUET 960424 V1.000)", GAME_NO_SOUND | GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION ) | |
| 3742 | GAME( 1998, elandore, stvbios, stv, stv, elandore, ROT0, "Sai-Mate", "Elan Doree - Legend of Dragon (JUET 980922 V1.006)", GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING )//japanese name? | |
| 3743 | GAME( 1995, vfremix, stvbios, stv, stv, vfremix, ROT0, "Sega", "Virtua Fighter Remix (JUETBKAL 950428 V1.000)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) | |
| 3744 | GAME( 1997, findlove, stvbios, stv, stv, ic13, ROT0, "Daiki / FCF", "Find Love (J 971212 V1.000)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) | |
| 3745 | GAME( 1996, decathlt, stvbios, stv, stv, decathlt, ROT0, "Sega", "Decathlete (JUET 960424 V1.000)", GAME_NO_SOUND | GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION ) | |
| 3746 | 3746 | |
| 3747 | 3747 | /* not working,black screen */ |
| 3748 | GAME | |
| 3748 | GAME | |
| 3749 | 3749 | /* CD games */ |
| 3750 | GAMEB( 1995, sfish2, 0, stvbios, stv, stv, ic13, ROT0, "Sega", "Sport Fishing 2 (UET 951106 V1.10e)", GAME_NO_SOUND | GAME_NOT_WORKING ) | |
| 3751 | GAMEB( 1995, sfish2j, sfish2, stvbios, stv, stv, ic13, ROT0, "Sega", "Sport Fishing 2 (J 951201 V1.100)", GAME_NO_SOUND | GAME_NOT_WORKING ) | |
| 3750 | GAME( 1995, sfish2, 0, stv, stv, ic13, ROT0, "Sega", "Sport Fishing 2 (UET 951106 V1.10e)", GAME_NO_SOUND | GAME_NOT_WORKING ) | |
| 3751 | GAME( 1995, sfish2j, sfish2, stv, stv, ic13, ROT0, "Sega", "Sport Fishing 2 (J 951201 V1.100)", GAME_NO_SOUND | GAME_NOT_WORKING ) | |
| 3752 | 3752 | |
| 3753 | 3753 | /* |
| 3754 | 3754 | This is the known list of undumped ST-V games: |
| r1238 | r1239 | |
|---|---|---|
| 102 | 102 | |
| 103 | 103 | |
| 104 | 104 | /* not currently used */ |
| 105 | INPUT_PORTS_START( megatech ) /* Genesis Input Ports */ | |
| 105 | static INPUT_PORTS_START( megatech ) /* Genesis Input Ports */ | |
| 106 | 106 | PORT_INCLUDE(megadriv) |
| 107 | 107 | |
| 108 | 108 | PORT_START_TAG("BIOS_IN0") // port 6 |
| r1238 | r1239 | |
|---|---|---|
| 109 | 109 | |
| 110 | 110 | /***************************************************************************/ |
| 111 | 111 | |
| 112 | INPUT_PORTS_START( timelimt ) | |
| 112 | static INPUT_PORTS_START( timelimt ) | |
| 113 | 113 | PORT_START_TAG("IN0") |
| 114 | 114 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 115 | 115 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| r1238 | r1239 | |
| 154 | 154 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 155 | 155 | INPUT_PORTS_END |
| 156 | 156 | |
| 157 | INPUT_PORTS_START( progress ) | |
| 157 | static INPUT_PORTS_START( progress ) | |
| 158 | 158 | PORT_START_TAG("IN0") |
| 159 | 159 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) |
| 160 | 160 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) |
| r1238 | r1239 | |
|---|---|---|
| 60 | 60 | AM_RANGE(0x0000, 0x03ff) AM_RAM AM_SHARE(1) /* main CPU shared RAM */ |
| 61 | 61 | ADDRESS_MAP_END |
| 62 | 62 | |
| 63 | INPUT_PORTS_START( talbot ) | |
| 63 | static INPUT_PORTS_START( talbot ) | |
| 64 | 64 | PORT_START /* IN0 */ |
| 65 | 65 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 66 | 66 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 306 | 306 | INPUT PORTS, DIPs |
| 307 | 307 | ***********************************************************/ |
| 308 | 308 | |
| 309 | INPUT_PORTS_START( darius2d ) | |
| 309 | static INPUT_PORTS_START( darius2d ) | |
| 310 | 310 | /* 0x800000 -> 0x109e16 ($1e16,A5) and 0x109e1a ($1e1a,A5) */ |
| 311 | 311 | PORT_START_TAG("DSWA") |
| 312 | 312 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:1") /* code at 0x0170f2 ('darius2d') or 0x01705c ('drius2do') */ |
| r1238 | r1239 | |
| 360 | 360 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 361 | 361 | INPUT_PORTS_END |
| 362 | 362 | |
| 363 | INPUT_PORTS_START( warriorb ) | |
| 363 | static INPUT_PORTS_START( warriorb ) | |
| 364 | 364 | PORT_INCLUDE(darius2d) |
| 365 | 365 | |
| 366 | 366 | /* 0x800000 -> 0x202912.b (-$56ee,A5) */ |
| r1238 | r1239 | |
|---|---|---|
| 1296 | 1296 | |
| 1297 | 1297 | ***************************************************************************/ |
| 1298 | 1298 | |
| 1299 | INPUT_PORTS_START( chindrag ) | |
| 1299 | static INPUT_PORTS_START( chindrag ) | |
| 1300 | 1300 | PORT_START // IN0 - DSW1 |
| 1301 | 1301 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) ) |
| 1302 | 1302 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) |
| r1238 | r1239 | |
| 1396 | 1396 | |
| 1397 | 1397 | |
| 1398 | 1398 | |
| 1399 | INPUT_PORTS_START( chmplst2 ) | |
| 1399 | static INPUT_PORTS_START( chmplst2 ) | |
| 1400 | 1400 | PORT_START // IN0 - DSW1 |
| 1401 | 1401 | PORT_DIPNAME( 0x07, 0x02, "Pay Out (%)" ) |
| 1402 | 1402 | PORT_DIPSETTING( 0x07, "50" ) |
| r1238 | r1239 | |
| 1534 | 1534 | |
| 1535 | 1535 | |
| 1536 | 1536 | |
| 1537 | INPUT_PORTS_START( drgnwrld ) | |
| 1537 | static INPUT_PORTS_START( drgnwrld ) | |
| 1538 | 1538 | PORT_START // IN0 - DSW1 |
| 1539 | 1539 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) ) |
| 1540 | 1540 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) |
| r1238 | r1239 | |
| 1634 | 1634 | |
| 1635 | 1635 | |
| 1636 | 1636 | |
| 1637 | INPUT_PORTS_START( grtwall ) | |
| 1637 | static INPUT_PORTS_START( grtwall ) | |
| 1638 | 1638 | PORT_START // IN0 - DSW3 |
| 1639 | 1639 | PORT_DIPNAME( 0xff, 0xff, "3" ) |
| 1640 | 1640 | PORT_DIPSETTING( 0xff, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1715 | 1715 | INPUT_PORTS_END |
| 1716 | 1716 | |
| 1717 | 1717 | |
| 1718 | INPUT_PORTS_START( lhb ) | |
| 1718 | static INPUT_PORTS_START( lhb ) | |
| 1719 | 1719 | PORT_START // IN0 - DSW1 |
| 1720 | 1720 | PORT_DIPNAME( 0x0f, 0x07, "Pay Out (%)" ) |
| 1721 | 1721 | PORT_DIPSETTING( 0x0f, "96" ) |
| r1238 | r1239 | |
| 1884 | 1884 | INPUT_PORTS_END |
| 1885 | 1885 | |
| 1886 | 1886 | |
| 1887 | INPUT_PORTS_START( vbowl ) | |
| 1887 | static INPUT_PORTS_START( vbowl ) | |
| 1888 | 1888 | PORT_START // IN0 - DSW1 |
| 1889 | 1889 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) ) |
| 1890 | 1890 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
| 2022 | 2022 | INPUT_PORTS_END |
| 2023 | 2023 | |
| 2024 | 2024 | |
| 2025 | INPUT_PORTS_START( vbowlj ) | |
| 2025 | static INPUT_PORTS_START( vbowlj ) | |
| 2026 | 2026 | PORT_START // IN0 - DSW1 |
| 2027 | 2027 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) ) |
| 2028 | 2028 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
| 2160 | 2160 | INPUT_PORTS_END |
| 2161 | 2161 | |
| 2162 | 2162 | |
| 2163 | INPUT_PORTS_START( xymg ) | |
| 2163 | static INPUT_PORTS_START( xymg ) | |
| 2164 | 2164 | PORT_START // IN0 - DSW1 |
| 2165 | 2165 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 2166 | 2166 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 114 | 114 | AM_RANGE(0xf800, 0xf800) AM_READ(soundlatch_r) |
| 115 | 115 | ADDRESS_MAP_END |
| 116 | 116 | |
| 117 | INPUT_PORTS_START( goal92 ) | |
| 117 | static INPUT_PORTS_START( goal92 ) | |
| 118 | 118 | PORT_START_TAG("DSW1") |
| 119 | 119 | PORT_DIPNAME( 0x0007, 0x0007, "Coin A / Coin C" ) |
| 120 | 120 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 213 | 213 | AM_RANGE(0xf800, 0xf800) AM_WRITENOP |
| 214 | 214 | ADDRESS_MAP_END |
| 215 | 215 | |
| 216 | INPUT_PORTS_START( champbwl ) | |
| 216 | static INPUT_PORTS_START( champbwl ) | |
| 217 | 217 | PORT_START |
| 218 | 218 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 219 | 219 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
|---|---|---|
| 146 | 146 | AM_RANGE(0xb00000, 0xb03fff) AM_WRITE(paletteram16_xbgr_word_be_w) AM_BASE(&paletteram16) |
| 147 | 147 | ADDRESS_MAP_END |
| 148 | 148 | |
| 149 | INPUT_PORTS_START( bishi ) | |
| 149 | static INPUT_PORTS_START( bishi ) | |
| 150 | 150 | PORT_START_TAG("IN0") |
| 151 | 151 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 152 | 152 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 139 | 139 | ADDRESS_MAP_END |
| 140 | 140 | |
| 141 | 141 | |
| 142 | INPUT_PORTS_START( 1942 ) | |
| 142 | static INPUT_PORTS_START( 1942 ) | |
| 143 | 143 | PORT_START_TAG("IN0") |
| 144 | 144 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 145 | 145 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 99 | 99 | |
| 100 | 100 | /****************************************************************************/ |
| 101 | 101 | |
| 102 | INPUT_PORTS_START( mayumi ) | |
| 102 | static INPUT_PORTS_START( mayumi ) | |
| 103 | 103 | |
| 104 | 104 | PORT_START /* dsw1 */ |
| 105 | 105 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) ) |
| r1238 | r1239 | |
|---|---|---|
| 115 | 115 | ADDRESS_MAP_END |
| 116 | 116 | |
| 117 | 117 | |
| 118 | INPUT_PORTS_START( poolshrk ) | |
| 118 | static INPUT_PORTS_START( poolshrk ) | |
| 119 | 119 | PORT_START |
| 120 | 120 | PORT_BIT( 0x0C, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 121 | 121 |
| r1238 | r1239 | |
|---|---|---|
| 156 | 156 | |
| 157 | 157 | /* Input Ports */ |
| 158 | 158 | |
| 159 | INPUT_PORTS_START( bloodbro ) | |
| 159 | static INPUT_PORTS_START( bloodbro ) | |
| 160 | 160 | SEIBU_COIN_INPUTS /* Must be port 0: coin inputs read through sound cpu */ |
| 161 | 161 | |
| 162 | 162 | PORT_START |
| r1238 | r1239 | |
| 248 | 248 | PORT_BIT( 0xe000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 249 | 249 | INPUT_PORTS_END |
| 250 | 250 | |
| 251 | INPUT_PORTS_START( weststry ) | |
| 251 | static INPUT_PORTS_START( weststry ) | |
| 252 | 252 | PORT_START |
| 253 | 253 | PORT_DIPNAME( 0x0001, 0x0001, "Coin Mode" ) |
| 254 | 254 | PORT_DIPSETTING( 0x0001, "Mode 1" ) |
| r1238 | r1239 | |
| 337 | 337 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 338 | 338 | INPUT_PORTS_END |
| 339 | 339 | |
| 340 | INPUT_PORTS_START( skysmash ) | |
| 340 | static INPUT_PORTS_START( skysmash ) | |
| 341 | 341 | SEIBU_COIN_INPUTS /* Must be port 0: coin inputs read through sound cpu */ |
| 342 | 342 | |
| 343 | 343 | PORT_START |
| r1238 | r1239 | |
|---|---|---|
| 96 | 96 | |
| 97 | 97 | /******************************************************************************/ |
| 98 | 98 | |
| 99 | INPUT_PORTS_START( raiden ) | |
| 99 | static INPUT_PORTS_START( raiden ) | |
| 100 | 100 | SEIBU_COIN_INPUTS /* Must be port 0: coin inputs read through sound cpu */ |
| 101 | 101 | |
| 102 | 102 | PORT_START /* IN0 */ |
| r1238 | r1239 | |
|---|---|---|
| 359 | 359 | * |
| 360 | 360 | *************************************/ |
| 361 | 361 | |
| 362 | INPUT_PORTS_START( alg ) | |
| 362 | static INPUT_PORTS_START( alg ) | |
| 363 | 363 | PORT_START_TAG("JOY0DAT") /* read by Amiga core */ |
| 364 | 364 | PORT_BIT( 0x0303, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(amiga_joystick_convert, "P1JOY") |
| 365 | 365 | PORT_BIT( 0xfcfc, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 402 | 402 | INPUT_PORTS_END |
| 403 | 403 | |
| 404 | 404 | |
| 405 | INPUT_PORTS_START( alg_2p ) | |
| 405 | static INPUT_PORTS_START( alg_2p ) | |
| 406 | 406 | PORT_INCLUDE(alg) |
| 407 | 407 | |
| 408 | 408 | PORT_MODIFY("POTGO") |
| r1238 | r1239 | |
| 828 | 828 | *************************************/ |
| 829 | 829 | |
| 830 | 830 | /* BIOS */ |
| 831 | GAME | |
| 831 | GAME | |
| 832 | 832 | |
| 833 | 833 | /* Rev. A board */ |
| 834 | 834 | /* PAL R1 */ |
| 835 | GAME | |
| 835 | GAME | |
| 836 | 836 | |
| 837 | 837 | /* PAL R3 */ |
| 838 | GAMEB( 1991, wsjr, alg_bios, alg_bios, alg_r1, alg, palr3, ROT0, "American Laser Games", "Who Shot Johnny Rock? v1.6", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 839 | GAMEB( 1991, wsjr15, wsjr, alg_bios, alg_r1, alg, palr3, ROT0, "American Laser Games", "Who Shot Johnny Rock? v1.5", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 838 | GAME( 1991, wsjr, alg_bios, alg_r1, alg, palr3, ROT0, "American Laser Games", "Who Shot Johnny Rock? v1.6", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 839 | GAME( 1991, wsjr15, wsjr, alg_r1, alg, palr3, ROT0, "American Laser Games", "Who Shot Johnny Rock? v1.5", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 840 | 840 | |
| 841 | 841 | /* Rev. B board */ |
| 842 | 842 | /* PAL R6 */ |
| 843 | GAME | |
| 843 | GAME | |
| 844 | 844 | /* works ok but uses right player (2) controls only for trigger and holster */ |
| 845 | GAMEB( 1992, maddog2, alg_bios, alg_bios, alg_r2, alg_2p, palr6, ROT0, "American Laser Games", "Mad Dog II: The Lost Gold v2.04", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 846 | GAMEB( 1992, maddog22, alg_bios, alg_bios, alg_r2, alg_2p, palr6, ROT0, "American Laser Games", "Mad Dog II: The Lost Gold v2.02", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 847 | GAMEB( 1992, maddog21, maddog2, alg_bios, alg_r2, alg_2p, palr6, ROT0, "American Laser Games", "Mad Dog II: The Lost Gold v1.0", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 845 | GAME( 1992, maddog2, alg_bios, alg_r2, alg_2p, palr6, ROT0, "American Laser Games", "Mad Dog II: The Lost Gold v2.04", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 846 | GAME( 1992, maddog22, alg_bios, alg_r2, alg_2p, palr6, ROT0, "American Laser Games", "Mad Dog II: The Lost Gold v2.02", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 847 | GAME( 1992, maddog21, maddog2, alg_r2, alg_2p, palr6, ROT0, "American Laser Games", "Mad Dog II: The Lost Gold v1.0", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 848 | 848 | /* works ok but uses right player (2) controls only for trigger and holster */ |
| 849 | GAMEB( 1992, spacepir, alg_bios, alg_bios, alg_r2, alg_2p, palr6, ROT0, "American Laser Games", "Space Pirates v2.2", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 850 | GAMEB( 1992, gallgall, alg_bios, alg_bios, alg_r2, alg_2p, palr6, ROT0, "American Laser Games", "Gallagher's Gallery v2.2", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 849 | GAME( 1992, spacepir, alg_bios, alg_r2, alg_2p, palr6, ROT0, "American Laser Games", "Space Pirates v2.2", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 850 | GAME( 1992, gallgall, alg_bios, alg_r2, alg_2p, palr6, ROT0, "American Laser Games", "Gallagher's Gallery v2.2", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 851 | 851 | /* all good, but no holster */ |
| 852 | GAMEB( 1993, crimepat, alg_bios, alg_bios, alg_r2, alg_2p, palr6, ROT0, "American Laser Games", "Crime Patrol v1.4", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 853 | GAMEB( 1993, crimep2, alg_bios, alg_bios, alg_r2, alg_2p, palr6, ROT0, "American Laser Games", "Crime Patrol 2: Drug Wars v1.3", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 854 | GAMEB( 1993, crime211, crimep2, alg_bios, alg_r2, alg_2p, palr6, ROT0, "American Laser Games", "Crime Patrol 2: Drug Wars v1.1", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 855 | GAMEB( 1994, lastbh, alg_bios, alg_bios, alg_r2, alg_2p, palr6, ROT0, "American Laser Games", "The Last Bounty Hunter v0.06", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 856 | GAMEB( 1995, fastdraw, alg_bios, alg_bios, alg_r2, alg_2p, palr6, ROT90, "American Laser Games", "Fast Draw Showdown v1.3", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 852 | GAME( 1993, crimepat, alg_bios, alg_r2, alg_2p, palr6, ROT0, "American Laser Games", "Crime Patrol v1.4", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 853 | GAME( 1993, crimep2, alg_bios, alg_r2, alg_2p, palr6, ROT0, "American Laser Games", "Crime Patrol 2: Drug Wars v1.3", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 854 | GAME( 1993, crime211, crimep2, alg_r2, alg_2p, palr6, ROT0, "American Laser Games", "Crime Patrol 2: Drug Wars v1.1", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 855 | GAME( 1994, lastbh, alg_bios, alg_r2, alg_2p, palr6, ROT0, "American Laser Games", "The Last Bounty Hunter v0.06", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 856 | GAME( 1995, fastdraw, alg_bios, alg_r2, alg_2p, palr6, ROT90, "American Laser Games", "Fast Draw Showdown v1.3", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 857 | 857 | /* works ok but uses right player (2) controls only for trigger and holster */ |
| 858 | 858 | |
| 859 | 859 | /* NOVA games on ALG hardware with own address scramble */ |
| 860 | GAME | |
| 860 | GAME | |
| 861 | 861 | |
| 862 | 862 | /* Web Picmatic games PAL tv standard, own rom board */ |
| 863 | GAME | |
| 863 | GAME |
| r1238 | r1239 | |
|---|---|---|
| 86 | 86 | ADDRESS_MAP_END |
| 87 | 87 | |
| 88 | 88 | |
| 89 | INPUT_PORTS_START( galaxia ) | |
| 89 | static INPUT_PORTS_START( galaxia ) | |
| 90 | 90 | PORT_START /* */ |
| 91 | 91 | |
| 92 | 92 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) |
| r1238 | r1239 | |
|---|---|---|
| 92 | 92 | AM_RANGE(0xfff80000, 0xffffffff) AM_ROM AM_REGION(REGION_CPU1, 0) |
| 93 | 93 | ADDRESS_MAP_END |
| 94 | 94 | |
| 95 | INPUT_PORTS_START( crazywar ) | |
| 95 | static INPUT_PORTS_START( crazywar ) | |
| 96 | 96 | PORT_START_TAG("IN0") |
| 97 | 97 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 98 | 98 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
|---|---|---|
| 587 | 587 | PORT_BIT ( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ |
| 588 | 588 | PORT_BIT ( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 589 | 589 | |
| 590 | INPUT_PORTS_START( fromanc2 ) | |
| 590 | static INPUT_PORTS_START( fromanc2 ) | |
| 591 | 591 | PORT_START_TAG("IN0") /* (0) COIN SW, TEST SW, EEPROM DATA, etc */ |
| 592 | 592 | PORT_BIT ( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) // COIN1 (1P) |
| 593 | 593 | PORT_BIT ( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) // COIN2 (1P) |
| r1238 | r1239 | |
| 612 | 612 | VSYSMJCTRL_PORT4 /* (4) PORT 1-3 */ |
| 613 | 613 | INPUT_PORTS_END |
| 614 | 614 | |
| 615 | INPUT_PORTS_START( fromanc4 ) | |
| 615 | static INPUT_PORTS_START( fromanc4 ) | |
| 616 | 616 | PORT_START_TAG("IN0") /* (0) COIN SW, TEST SW, EEPROM DATA, etc */ |
| 617 | 617 | PORT_SERVICE_NO_TOGGLE( 0x0001, IP_ACTIVE_LOW) // TEST (1P) |
| 618 | 618 | PORT_BIT ( 0x0002, IP_ACTIVE_LOW, IPT_COIN1 ) // COIN1 (1P) |
| r1238 | r1239 | |
|---|---|---|
| 186 | 186 | ADDRESS_MAP_END |
| 187 | 187 | |
| 188 | 188 | |
| 189 | INPUT_PORTS_START( bombjack ) | |
| 189 | static INPUT_PORTS_START( bombjack ) | |
| 190 | 190 | PORT_START /* IN0 */ |
| 191 | 191 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 192 | 192 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 334 | 334 | * |
| 335 | 335 | *************************************/ |
| 336 | 336 | |
| 337 | INPUT_PORTS_START( gridlee ) | |
| 337 | static INPUT_PORTS_START( gridlee ) | |
| 338 | 338 | PORT_START /* 9500 (fake) */ |
| 339 | 339 | PORT_BIT( 0xff, 0, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(20) PORT_KEYDELTA(8) |
| 340 | 340 |
| r1238 | r1239 | |
|---|---|---|
| 344 | 344 | |
| 345 | 345 | |
| 346 | 346 | |
| 347 | INPUT_PORTS_START( rallyx ) | |
| 347 | static INPUT_PORTS_START( rallyx ) | |
| 348 | 348 | PORT_START_TAG("IN0") |
| 349 | 349 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 350 | 350 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 411 | 411 | PORT_SERVICE( 0x01, IP_ACTIVE_LOW ) |
| 412 | 412 | INPUT_PORTS_END |
| 413 | 413 | |
| 414 | INPUT_PORTS_START( nrallyx ) | |
| 414 | static INPUT_PORTS_START( nrallyx ) | |
| 415 | 415 | PORT_START_TAG("IN0") |
| 416 | 416 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 417 | 417 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 459 | 459 | INPUT_PORTS_END |
| 460 | 460 | |
| 461 | 461 | |
| 462 | INPUT_PORTS_START( jungler ) | |
| 462 | static INPUT_PORTS_START( jungler ) | |
| 463 | 463 | PORT_START_TAG("IN0") |
| 464 | 464 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| 465 | 465 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
| 512 | 512 | INPUT_PORTS_END |
| 513 | 513 | |
| 514 | 514 | |
| 515 | INPUT_PORTS_START( locomotn ) | |
| 515 | static INPUT_PORTS_START( locomotn ) | |
| 516 | 516 | PORT_START_TAG("IN0") |
| 517 | 517 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| 518 | 518 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
| 592 | 592 | INPUT_PORTS_END |
| 593 | 593 | |
| 594 | 594 | |
| 595 | INPUT_PORTS_START( tactcian ) | |
| 595 | static INPUT_PORTS_START( tactcian ) | |
| 596 | 596 | PORT_START_TAG("IN0") |
| 597 | 597 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| 598 | 598 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 668 | 668 | INPUT_PORTS_END |
| 669 | 669 | |
| 670 | 670 | |
| 671 | INPUT_PORTS_START( commsega ) | |
| 671 | static INPUT_PORTS_START( commsega ) | |
| 672 | 672 | PORT_START_TAG("IN0") |
| 673 | 673 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| 674 | 674 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
|---|---|---|
| 105 | 105 | AM_RANGE(0x8000, 0xffff) AM_WRITE(MWA8_ROM) |
| 106 | 106 | ADDRESS_MAP_END |
| 107 | 107 | |
| 108 | INPUT_PORTS_START( trucocl ) | |
| 108 | static INPUT_PORTS_START( trucocl ) | |
| 109 | 109 | PORT_START_TAG("IN0") |
| 110 | 110 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 111 | 111 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 32 | 32 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 33 | 33 | ADDRESS_MAP_END |
| 34 | 34 | |
| 35 | INPUT_PORTS_START( igs_m68 ) | |
| 35 | static INPUT_PORTS_START( igs_m68 ) | |
| 36 | 36 | INPUT_PORTS_END |
| 37 | 37 | |
| 38 | 38 |
| r1238 | r1239 | |
|---|---|---|
| 458 | 458 | |
| 459 | 459 | |
| 460 | 460 | |
| 461 | WRITE32_HANDLER( ms32_spramx_w ) | |
| 461 | static WRITE32_HANDLER( ms32_spramx_w ) | |
| 462 | 462 | { |
| 463 | 463 | COMBINE_DATA(&ms32_spram[offset]); |
| 464 | 464 | } |
| r1238 | r1239 | |
| 532 | 532 | return 0; |
| 533 | 533 | } |
| 534 | 534 | |
| 535 | INPUT_PORTS_START( bnstars ) | |
| 535 | static INPUT_PORTS_START( bnstars ) | |
| 536 | 536 | PORT_START |
| 537 | 537 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_START1 ) |
| 538 | 538 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_A ) |
| r1238 | r1239 | |
|---|---|---|
| 225 | 225 | AM_RANGE(0x4802, 0x4802) AM_WRITE(bking2_sndnmi_enable_w) |
| 226 | 226 | ADDRESS_MAP_END |
| 227 | 227 | |
| 228 | INPUT_PORTS_START( bking ) | |
| 228 | static INPUT_PORTS_START( bking ) | |
| 229 | 229 | PORT_START /* IN0 */ |
| 230 | 230 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 231 | 231 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 339 | 339 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_REVERSE PORT_COCKTAIL /* Sensitivity, clip, min, max */ |
| 340 | 340 | INPUT_PORTS_END |
| 341 | 341 | |
| 342 | INPUT_PORTS_START( bking2 ) | |
| 342 | static INPUT_PORTS_START( bking2 ) | |
| 343 | 343 | PORT_START /* IN0 */ |
| 344 | 344 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 345 | 345 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 327 | 327 | Burglar X |
| 328 | 328 | ***************************************************************************/ |
| 329 | 329 | |
| 330 | INPUT_PORTS_START( burglarx ) | |
| 330 | static INPUT_PORTS_START( burglarx ) | |
| 331 | 331 | |
| 332 | 332 | PORT_START_TAG("IN0") //$800000.w |
| 333 | 333 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 416 | 416 | Zero Point |
| 417 | 417 | ***************************************************************************/ |
| 418 | 418 | |
| 419 | INPUT_PORTS_START( zeropnt ) | |
| 419 | static INPUT_PORTS_START( zeropnt ) | |
| 420 | 420 | |
| 421 | 421 | PORT_START_TAG("IN0") //$800018.w |
| 422 | 422 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| r1238 | r1239 | |
| 509 | 509 | Zero Point 2 |
| 510 | 510 | ***************************************************************************/ |
| 511 | 511 | |
| 512 | INPUT_PORTS_START( zeropnt2 ) | |
| 512 | static INPUT_PORTS_START( zeropnt2 ) | |
| 513 | 513 | PORT_START_TAG("IN0") //$800019.b |
| 514 | 514 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 515 | 515 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 110 | 110 | |
| 111 | 111 | ***************************************************************************/ |
| 112 | 112 | |
| 113 | INPUT_PORTS_START( blockhl ) | |
| 113 | static INPUT_PORTS_START( blockhl ) | |
| 114 | 114 | PORT_START /* PLAYER 1 INPUTS */ |
| 115 | 115 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 116 | 116 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 230 | 230 | INPUT PORTS, DIPs |
| 231 | 231 | ***********************************************************/ |
| 232 | 232 | |
| 233 | INPUT_PORTS_START( gcpinbal ) | |
| 233 | static INPUT_PORTS_START( gcpinbal ) | |
| 234 | 234 | PORT_START /* DSW */ |
| 235 | 235 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) |
| 236 | 236 | PORT_DIPSETTING( 0x0002, DEF_STR( Easy ) ) |
| r1238 | r1239 | |
|---|---|---|
| 218 | 218 | Billiard Academy Real Break |
| 219 | 219 | ***************************************************************************/ |
| 220 | 220 | |
| 221 | INPUT_PORTS_START( realbrk ) | |
| 221 | static INPUT_PORTS_START( realbrk ) | |
| 222 | 222 | PORT_START // IN0 - $c00000.w |
| 223 | 223 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) |
| 224 | 224 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) |
| r1238 | r1239 | |
| 314 | 314 | PORT_BIT( 0xffff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 315 | 315 | INPUT_PORTS_END |
| 316 | 316 | |
| 317 | INPUT_PORTS_START( pkgnsh ) | |
| 317 | static INPUT_PORTS_START( pkgnsh ) | |
| 318 | 318 | PORT_START // IN0 - $c00002.w |
| 319 | 319 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 320 | 320 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
| 422 | 422 | PORT_BIT( 0xf000, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 423 | 423 | INPUT_PORTS_END |
| 424 | 424 | |
| 425 | INPUT_PORTS_START( pkgnshdx ) | |
| 425 | static INPUT_PORTS_START( pkgnshdx ) | |
| 426 | 426 | PORT_START // IN0 - $c00002.w |
| 427 | 427 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 428 | 428 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
|---|---|---|
| 114 | 114 | |
| 115 | 115 | |
| 116 | 116 | |
| 117 | INPUT_PORTS_START( diverboy ) | |
| 117 | static INPUT_PORTS_START( diverboy ) | |
| 118 | 118 | PORT_START // 0x180000.w |
| 119 | 119 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) // unused ? |
| 120 | 120 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) // unused ? |
| r1238 | r1239 | |
|---|---|---|
| 217 | 217 | * |
| 218 | 218 | *************************************/ |
| 219 | 219 | |
| 220 | INPUT_PORTS_START( arcadia ) | |
| 220 | static INPUT_PORTS_START( arcadia ) | |
| 221 | 221 | PORT_START_TAG("CIA0PORTA") |
| 222 | 222 | PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_SPECIAL ) |
| 223 | 223 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 718 | 718 | *************************************/ |
| 719 | 719 | |
| 720 | 720 | /* BIOS */ |
| 721 | GAME | |
| 721 | GAME | |
| 722 | 722 | |
| 723 | 723 | /* working */ |
| 724 | GAMEB( 1988, ar_airh, ar_bios, ar_bios, arcadia, arcadia, airh, ROT0, "Arcadia Systems", "SportTime Table Hockey (Arcadia, V 2.1)", 0 ) | |
| 725 | GAMEB( 1988, ar_bowl, ar_bios, ar_bios, arcadia, arcadia, bowl, ROT0, "Arcadia Systems", "SportTime Bowling (Arcadia, V 2.1)", 0 ) | |
| 726 | GAMEB( 1987, ar_dart, ar_bios, ar_bios, arcadia, arcadia, dart, ROT0, "Arcadia Systems", "World Darts (Arcadia, V 2.1)", 0 ) | |
| 727 | GAMEB( 1988, ar_fast, ar_bios, ar_bios, arcadia, arcadia, none, ROT0, "Arcadia Systems", "Magic Johnson's Fast Break (Arcadia, V 2.8)", 0 ) | |
| 728 | GAMEB( 1988, ar_ldrb, ar_bios, ar_bios, arcadia, arcadia, none, ROT0, "Arcadia Systems", "Leader Board (Arcadia, V 2.4?)", 0 ) | |
| 729 | GAMEB( 1988, ar_ldrba, ar_ldrb, ar_bios, arcadia, arcadia, ldrba, ROT0, "Arcadia Systems", "Leader Board (Arcadia, V 2.5)", 0 ) | |
| 730 | GAMEB( 1987, ar_ninj, ar_bios, ar_bios, arcadia, arcadia, ninj, ROT0, "Arcadia Systems", "Ninja Mission (Arcadia, V 2.5)", 0 ) | |
| 731 | GAMEB( 1988, ar_rdwr, ar_bios, ar_bios, arcadia, arcadia, rdwr, ROT0, "Arcadia Systems", "RoadWars (Arcadia, V 2.3)", 0 ) | |
| 732 | GAMEB( 1988, ar_sdwr, ar_bios, ar_bios, arcadia, arcadia, sdwr, ROT0, "Arcadia Systems", "Sidewinder (Arcadia, V 2.1)", 0 ) | |
| 733 | GAMEB( 1989, ar_socc, ar_bios, ar_bios, arcadia, arcadia, socc, ROT0, "Arcadia Systems", "World Trophy Soccer (Arcadia, V 3.0)", 0 ) | |
| 734 | GAMEB( 1990, ar_spot, ar_bios, ar_bios, arcadia, arcadia, none, ROT0, "Arcadia Systems", "Spot (Arcadia)", 0 ) | |
| 735 | GAMEB( 1987, ar_sprg, ar_bios, ar_bios, arcadia, arcadia, sprg, ROT0, "Arcadia Systems", "Space Ranger (Arcadia, V 2.0)", 0 ) | |
| 736 | GAMEB( 1988, ar_xeon, ar_bios, ar_bios, arcadia, arcadia, xeon, ROT0, "Arcadia Systems", "Xenon (Arcadia, V 2.3)", 0 ) | |
| 724 | GAME( 1988, ar_airh, ar_bios, arcadia, arcadia, airh, ROT0, "Arcadia Systems", "SportTime Table Hockey (Arcadia, V 2.1)", 0 ) | |
| 725 | GAME( 1988, ar_bowl, ar_bios, arcadia, arcadia, bowl, ROT0, "Arcadia Systems", "SportTime Bowling (Arcadia, V 2.1)", 0 ) | |
| 726 | GAME( 1987, ar_dart, ar_bios, arcadia, arcadia, dart, ROT0, "Arcadia Systems", "World Darts (Arcadia, V 2.1)", 0 ) | |
| 727 | GAME( 1988, ar_fast, ar_bios, arcadia, arcadia, none, ROT0, "Arcadia Systems", "Magic Johnson's Fast Break (Arcadia, V 2.8)", 0 ) | |
| 728 | GAME( 1988, ar_ldrb, ar_bios, arcadia, arcadia, none, ROT0, "Arcadia Systems", "Leader Board (Arcadia, V 2.4?)", 0 ) | |
| 729 | GAME( 1988, ar_ldrba, ar_ldrb, arcadia, arcadia, ldrba, ROT0, "Arcadia Systems", "Leader Board (Arcadia, V 2.5)", 0 ) | |
| 730 | GAME( 1987, ar_ninj, ar_bios, arcadia, arcadia, ninj, ROT0, "Arcadia Systems", "Ninja Mission (Arcadia, V 2.5)", 0 ) | |
| 731 | GAME( 1988, ar_rdwr, ar_bios, arcadia, arcadia, rdwr, ROT0, "Arcadia Systems", "RoadWars (Arcadia, V 2.3)", 0 ) | |
| 732 | GAME( 1988, ar_sdwr, ar_bios, arcadia, arcadia, sdwr, ROT0, "Arcadia Systems", "Sidewinder (Arcadia, V 2.1)", 0 ) | |
| 733 | GAME( 1989, ar_socc, ar_bios, arcadia, arcadia, socc, ROT0, "Arcadia Systems", "World Trophy Soccer (Arcadia, V 3.0)", 0 ) | |
| 734 | GAME( 1990, ar_spot, ar_bios, arcadia, arcadia, none, ROT0, "Arcadia Systems", "Spot (Arcadia)", 0 ) | |
| 735 | GAME( 1987, ar_sprg, ar_bios, arcadia, arcadia, sprg, ROT0, "Arcadia Systems", "Space Ranger (Arcadia, V 2.0)", 0 ) | |
| 736 | GAME( 1988, ar_xeon, ar_bios, arcadia, arcadia, xeon, ROT0, "Arcadia Systems", "Xenon (Arcadia, V 2.3)", 0 ) |
| r1238 | r1239 | |
|---|---|---|
| 429 | 429 | * |
| 430 | 430 | *************************************/ |
| 431 | 431 | |
| 432 | INPUT_PORTS_START( g80v_generic ) | |
| 432 | static INPUT_PORTS_START( g80v_generic ) | |
| 433 | 433 | PORT_START_TAG("D7D6") |
| 434 | 434 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(3) /* P1.5 */ |
| 435 | 435 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) /* n/c */ |
| r1238 | r1239 | |
| 534 | 534 | * |
| 535 | 535 | *************************************/ |
| 536 | 536 | |
| 537 | INPUT_PORTS_START( elim2 ) | |
| 537 | static INPUT_PORTS_START( elim2 ) | |
| 538 | 538 | PORT_INCLUDE( g80v_generic ) |
| 539 | 539 | |
| 540 | 540 | PORT_MODIFY("D7D6") |
| r1238 | r1239 | |
| 574 | 574 | INPUT_PORTS_END |
| 575 | 575 | |
| 576 | 576 | |
| 577 | INPUT_PORTS_START( elim2c ) | |
| 577 | static INPUT_PORTS_START( elim2c ) | |
| 578 | 578 | PORT_INCLUDE( elim2 ) |
| 579 | 579 | |
| 580 | 580 | PORT_MODIFY("D7D6") |
| r1238 | r1239 | |
| 593 | 593 | INPUT_PORTS_END |
| 594 | 594 | |
| 595 | 595 | |
| 596 | INPUT_PORTS_START( elim4 ) | |
| 596 | static INPUT_PORTS_START( elim4 ) | |
| 597 | 597 | PORT_INCLUDE( g80v_generic ) |
| 598 | 598 | |
| 599 | 599 | PORT_MODIFY("D7D6") |
| r1238 | r1239 | |
| 674 | 674 | INPUT_PORTS_END |
| 675 | 675 | |
| 676 | 676 | |
| 677 | INPUT_PORTS_START( spacfury ) | |
| 677 | static INPUT_PORTS_START( spacfury ) | |
| 678 | 678 | PORT_INCLUDE( g80v_generic ) |
| 679 | 679 | |
| 680 | 680 | PORT_MODIFY("D5D4") |
| r1238 | r1239 | |
| 716 | 716 | INPUT_PORTS_END |
| 717 | 717 | |
| 718 | 718 | |
| 719 | INPUT_PORTS_START( zektor ) | |
| 719 | static INPUT_PORTS_START( zektor ) | |
| 720 | 720 | PORT_INCLUDE( g80v_generic ) |
| 721 | 721 | |
| 722 | 722 | PORT_MODIFY("D3D2") |
| r1238 | r1239 | |
| 753 | 753 | INPUT_PORTS_END |
| 754 | 754 | |
| 755 | 755 | |
| 756 | INPUT_PORTS_START( tacscan ) | |
| 756 | static INPUT_PORTS_START( tacscan ) | |
| 757 | 757 | PORT_INCLUDE( g80v_generic ) |
| 758 | 758 | |
| 759 | 759 | PORT_MODIFY("D3D2") |
| r1238 | r1239 | |
| 790 | 790 | INPUT_PORTS_END |
| 791 | 791 | |
| 792 | 792 | |
| 793 | INPUT_PORTS_START( startrek ) | |
| 793 | static INPUT_PORTS_START( startrek ) | |
| 794 | 794 | PORT_INCLUDE( g80v_generic ) |
| 795 | 795 | |
| 796 | 796 | PORT_MODIFY("D3D2") |
| r1238 | r1239 | |
|---|---|---|
| 108 | 108 | AM_RANGE(0x32, 0x32) AM_WRITE(MWA8_NOP) //?? written before and after 0x31 with same value |
| 109 | 109 | ADDRESS_MAP_END |
| 110 | 110 | |
| 111 | INPUT_PORTS_START( carjmbre ) | |
| 111 | static INPUT_PORTS_START( carjmbre ) | |
| 112 | 112 | PORT_START_TAG("IN0") |
| 113 | 113 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) //coin error if held high for 1s |
| 114 | 114 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) //or if many coins inserted quickly |
| r1238 | r1239 | |
|---|---|---|
| 202 | 202 | ADDRESS_MAP_END |
| 203 | 203 | |
| 204 | 204 | |
| 205 | INPUT_PORTS_START( ace ) | |
| 205 | static INPUT_PORTS_START( ace ) | |
| 206 | 206 | |
| 207 | 207 | PORT_START_TAG("c008") /* player thrust */ |
| 208 | 208 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(1) PORT_NAME("P1 Thrust") |
| r1238 | r1239 | |
|---|---|---|
| 260 | 260 | |
| 261 | 261 | |
| 262 | 262 | |
| 263 | INPUT_PORTS_START( varia ) | |
| 263 | static INPUT_PORTS_START( varia ) | |
| 264 | 264 | PORT_START /* IN0 */ |
| 265 | 265 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 266 | 266 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| r1238 | r1239 | |
|---|---|---|
| 272 | 272 | |
| 273 | 273 | /***********************************************************/ |
| 274 | 274 | |
| 275 | INPUT_PORTS_START( superchs ) | |
| 275 | static INPUT_PORTS_START( superchs ) | |
| 276 | 276 | PORT_START /* IN0 */ |
| 277 | 277 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 278 | 278 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 174 | 174 | |
| 175 | 175 | |
| 176 | 176 | |
| 177 | INPUT_PORTS_START( bottom9 ) | |
| 177 | static INPUT_PORTS_START( bottom9 ) | |
| 178 | 178 | PORT_START |
| 179 | 179 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 180 | 180 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 272 | 272 | PORT_DIPSETTING( 0x00, "Auto" ) |
| 273 | 273 | INPUT_PORTS_END |
| 274 | 274 | |
| 275 | INPUT_PORTS_START( mstadium ) | |
| 275 | static INPUT_PORTS_START( mstadium ) | |
| 276 | 276 | PORT_START |
| 277 | 277 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 278 | 278 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 129 | 129 | ADDRESS_MAP_END |
| 130 | 130 | |
| 131 | 131 | |
| 132 | INPUT_PORTS_START( flower ) | |
| 132 | static INPUT_PORTS_START( flower ) | |
| 133 | 133 | PORT_START_TAG("IN0CPU0") |
| 134 | 134 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 135 | 135 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
|---|---|---|
| 150 | 150 | |
| 151 | 151 | /******************************************************************************/ |
| 152 | 152 | |
| 153 | INPUT_PORTS_START( battlera ) | |
| 153 | static INPUT_PORTS_START( battlera ) | |
| 154 | 154 | PORT_START_TAG("IN0") /* Player 1 controls */ |
| 155 | 155 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 156 | 156 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 312 | 312 | |
| 313 | 313 | |
| 314 | 314 | |
| 315 | INPUT_PORTS_START(dreamwld) | |
| 315 | static INPUT_PORTS_START(dreamwld) | |
| 316 | 316 | PORT_START |
| 317 | 317 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START2 ) |
| 318 | 318 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) |
| r1238 | r1239 | |
|---|---|---|
| 343 | 343 | |
| 344 | 344 | |
| 345 | 345 | |
| 346 | INPUT_PORTS_START( xsleena ) | |
| 346 | static INPUT_PORTS_START( xsleena ) | |
| 347 | 347 | PORT_START_TAG("IN0") |
| 348 | 348 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 349 | 349 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 180 | 180 | |
| 181 | 181 | |
| 182 | 182 | |
| 183 | INPUT_PORTS_START( gundealr ) | |
| 183 | static INPUT_PORTS_START( gundealr ) | |
| 184 | 184 | PORT_START /* DSW0 */ |
| 185 | 185 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 186 | 186 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 262 | 262 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 263 | 263 | INPUT_PORTS_END |
| 264 | 264 | |
| 265 | INPUT_PORTS_START( gundealt ) | |
| 265 | static INPUT_PORTS_START( gundealt ) | |
| 266 | 266 | PORT_START /* DSW0 */ |
| 267 | 267 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 268 | 268 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 344 | 344 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 345 | 345 | INPUT_PORTS_END |
| 346 | 346 | |
| 347 | INPUT_PORTS_START( yamyam ) | |
| 347 | static INPUT_PORTS_START( yamyam ) | |
| 348 | 348 | PORT_START /* DSW0 */ |
| 349 | 349 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 350 | 350 | PORT_DIPSETTING( 0x00, "3" ) |
| r1238 | r1239 | |
|---|---|---|
| 64 | 64 | ADDRESS_MAP_END |
| 65 | 65 | |
| 66 | 66 | |
| 67 | INPUT_PORTS_START( mrdo ) | |
| 67 | static INPUT_PORTS_START( mrdo ) | |
| 68 | 68 | PORT_START_TAG("IN0") |
| 69 | 69 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 70 | 70 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY |
| r1238 | r1239 | |
|---|---|---|
| 534 | 534 | |
| 535 | 535 | |
| 536 | 536 | /* Standard Namco System 1 input port definition */ |
| 537 | INPUT_PORTS_START( ns1 ) | |
| 537 | static INPUT_PORTS_START( ns1 ) | |
| 538 | 538 | PORT_START_TAG( "CONTROL0" ) |
| 539 | 539 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) |
| 540 | 540 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) |
| r1238 | r1239 | |
| 592 | 592 | |
| 593 | 593 | |
| 594 | 594 | |
| 595 | INPUT_PORTS_START( shadowld ) | |
| 595 | static INPUT_PORTS_START( shadowld ) | |
| 596 | 596 | PORT_INCLUDE( ns1 ) |
| 597 | 597 | |
| 598 | 598 | PORT_MODIFY( "DIPSW" ) |
| r1238 | r1239 | |
| 605 | 605 | INPUT_PORTS_END |
| 606 | 606 | |
| 607 | 607 | |
| 608 | INPUT_PORTS_START( dspirit ) | |
| 608 | static INPUT_PORTS_START( dspirit ) | |
| 609 | 609 | PORT_INCLUDE( ns1 ) |
| 610 | 610 | |
| 611 | 611 | PORT_MODIFY( "DIPSW" ) |
| r1238 | r1239 | |
| 615 | 615 | INPUT_PORTS_END |
| 616 | 616 | |
| 617 | 617 | |
| 618 | INPUT_PORTS_START( quester ) | |
| 618 | static INPUT_PORTS_START( quester ) | |
| 619 | 619 | PORT_INCLUDE( ns1 ) |
| 620 | 620 | |
| 621 | 621 | PORT_MODIFY( "CONTROL0" ) |
| r1238 | r1239 | |
| 654 | 654 | INPUT_PORTS_END |
| 655 | 655 | |
| 656 | 656 | |
| 657 | INPUT_PORTS_START( pacmania ) | |
| 657 | static INPUT_PORTS_START( pacmania ) | |
| 658 | 658 | PORT_INCLUDE( ns1 ) |
| 659 | 659 | |
| 660 | 660 | PORT_MODIFY( "DIPSW" ) |
| r1238 | r1239 | |
| 672 | 672 | INPUT_PORTS_END |
| 673 | 673 | |
| 674 | 674 | |
| 675 | INPUT_PORTS_START( galaga88 ) | |
| 675 | static INPUT_PORTS_START( galaga88 ) | |
| 676 | 676 | PORT_INCLUDE( ns1 ) |
| 677 | 677 | |
| 678 | 678 | PORT_MODIFY( "DIPSW" ) |
| r1238 | r1239 | |
| 682 | 682 | INPUT_PORTS_END |
| 683 | 683 | |
| 684 | 684 | |
| 685 | INPUT_PORTS_START( berabohm ) | |
| 685 | static INPUT_PORTS_START( berabohm ) | |
| 686 | 686 | PORT_INCLUDE( ns1 ) |
| 687 | 687 | |
| 688 | 688 | PORT_MODIFY( "CONTROL0" ) |
| r1238 | r1239 | |
| 753 | 753 | INPUT_PORTS_END |
| 754 | 754 | |
| 755 | 755 | |
| 756 | INPUT_PORTS_START( mmaze ) | |
| 756 | static INPUT_PORTS_START( mmaze ) | |
| 757 | 757 | PORT_INCLUDE( ns1 ) |
| 758 | 758 | |
| 759 | 759 | PORT_MODIFY( "DIPSW" ) |
| r1238 | r1239 | |
| 766 | 766 | INPUT_PORTS_END |
| 767 | 767 | |
| 768 | 768 | |
| 769 | INPUT_PORTS_START( bakutotu ) | |
| 769 | static INPUT_PORTS_START( bakutotu ) | |
| 770 | 770 | PORT_INCLUDE( ns1 ) |
| 771 | 771 | |
| 772 | 772 | PORT_MODIFY( "DIPSW" ) |
| r1238 | r1239 | |
| 785 | 785 | INPUT_PORTS_END |
| 786 | 786 | |
| 787 | 787 | |
| 788 | INPUT_PORTS_START( wldcourt ) | |
| 788 | static INPUT_PORTS_START( wldcourt ) | |
| 789 | 789 | PORT_INCLUDE( ns1 ) |
| 790 | 790 | |
| 791 | 791 | PORT_MODIFY( "DIPSW" ) |
| r1238 | r1239 | |
| 799 | 799 | INPUT_PORTS_END |
| 800 | 800 | |
| 801 | 801 | |
| 802 | INPUT_PORTS_START( splatter ) | |
| 802 | static INPUT_PORTS_START( splatter ) | |
| 803 | 803 | PORT_INCLUDE( ns1 ) |
| 804 | 804 | |
| 805 | 805 | PORT_MODIFY( "DIPSW" ) |
| r1238 | r1239 | |
| 813 | 813 | INPUT_PORTS_END |
| 814 | 814 | |
| 815 | 815 | |
| 816 | INPUT_PORTS_START( faceoff ) | |
| 816 | static INPUT_PORTS_START( faceoff ) | |
| 817 | 817 | PORT_INCLUDE( ns1 ) |
| 818 | 818 | |
| 819 | 819 | PORT_MODIFY( "CONTROL0" ) |
| r1238 | r1239 | |
| 858 | 858 | INPUT_PORTS_END |
| 859 | 859 | |
| 860 | 860 | |
| 861 | INPUT_PORTS_START( ws89 ) | |
| 861 | static INPUT_PORTS_START( ws89 ) | |
| 862 | 862 | PORT_INCLUDE( ns1 ) |
| 863 | 863 | |
| 864 | 864 | PORT_MODIFY( "DIPSW" ) |
| r1238 | r1239 | |
| 872 | 872 | INPUT_PORTS_END |
| 873 | 873 | |
| 874 | 874 | |
| 875 | INPUT_PORTS_START( dangseed ) | |
| 875 | static INPUT_PORTS_START( dangseed ) | |
| 876 | 876 | PORT_INCLUDE( ns1 ) |
| 877 | 877 | |
| 878 | 878 | PORT_MODIFY( "DIPSW" ) |
| r1238 | r1239 | |
| 890 | 890 | INPUT_PORTS_END |
| 891 | 891 | |
| 892 | 892 | |
| 893 | INPUT_PORTS_START( ws90 ) | |
| 893 | static INPUT_PORTS_START( ws90 ) | |
| 894 | 894 | PORT_INCLUDE( ns1 ) |
| 895 | 895 | |
| 896 | 896 | PORT_MODIFY( "DIPSW" ) |
| r1238 | r1239 | |
| 904 | 904 | INPUT_PORTS_END |
| 905 | 905 | |
| 906 | 906 | |
| 907 | INPUT_PORTS_START( boxyboy ) | |
| 907 | static INPUT_PORTS_START( boxyboy ) | |
| 908 | 908 | PORT_INCLUDE( ns1 ) |
| 909 | 909 | |
| 910 | 910 | PORT_MODIFY( "DIPSW" ) |
| r1238 | r1239 | |
| 914 | 914 | INPUT_PORTS_END |
| 915 | 915 | |
| 916 | 916 | |
| 917 | INPUT_PORTS_START( puzlclub ) | |
| 917 | static INPUT_PORTS_START( puzlclub ) | |
| 918 | 918 | PORT_INCLUDE( ns1 ) |
| 919 | 919 | |
| 920 | 920 | PORT_MODIFY( "DIPSW" ) |
| r1238 | r1239 | |
|---|---|---|
| 119 | 119 | upd7759_set_bank_base(0, ((data >> 4) & 0x03) * 0x20000); |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | WRITE8_HANDLER( dv_sh_bankswitch_w ) | |
| 122 | static WRITE8_HANDLER( dv_sh_bankswitch_w ) | |
| 123 | 123 | { |
| 124 | 124 | int bank_A,bank_B; |
| 125 | 125 | |
| r1238 | r1239 | |
| 231 | 231 | |
| 232 | 232 | /*****************************************************************************/ |
| 233 | 233 | |
| 234 | INPUT_PORTS_START( mainevt ) | |
| 234 | static INPUT_PORTS_START( mainevt ) | |
| 235 | 235 | PORT_START /* IN0 */ |
| 236 | 236 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 237 | 237 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 351 | 351 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 352 | 352 | INPUT_PORTS_END |
| 353 | 353 | |
| 354 | INPUT_PORTS_START( mainev2p ) | |
| 354 | static INPUT_PORTS_START( mainev2p ) | |
| 355 | 355 | PORT_START /* IN0 */ |
| 356 | 356 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 357 | 357 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 462 | 462 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 463 | 463 | INPUT_PORTS_END |
| 464 | 464 | |
| 465 | INPUT_PORTS_START( devstors ) | |
| 465 | static INPUT_PORTS_START( devstors ) | |
| 466 | 466 | PORT_START /* IN0 */ |
| 467 | 467 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 468 | 468 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 573 | 573 | INPUT_PORTS_END |
| 574 | 574 | |
| 575 | 575 | /* Same as 'devstors', but additional "Cocktail" Dip Switch (even if I don't see the use) */ |
| 576 | INPUT_PORTS_START( devstor2 ) | |
| 576 | static INPUT_PORTS_START( devstor2 ) | |
| 577 | 577 | PORT_START /* IN0 */ |
| 578 | 578 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 579 | 579 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 587 | 587 | PORT_DIPSETTING( 0x50, DEF_STR( 1C_6C ) ) \ |
| 588 | 588 | |
| 589 | 589 | |
| 590 | INPUT_PORTS_START( kungfum ) | |
| 590 | static INPUT_PORTS_START( kungfum ) | |
| 591 | 591 | PORT_START_TAG("IN0") |
| 592 | 592 | IN0_PORT |
| 593 | 593 | |
| r1238 | r1239 | |
| 654 | 654 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 655 | 655 | INPUT_PORTS_END |
| 656 | 656 | |
| 657 | INPUT_PORTS_START( battroad ) | |
| 657 | static INPUT_PORTS_START( battroad ) | |
| 658 | 658 | PORT_START_TAG("IN0") |
| 659 | 659 | IN0_PORT |
| 660 | 660 | |
| r1238 | r1239 | |
| 705 | 705 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 706 | 706 | INPUT_PORTS_END |
| 707 | 707 | |
| 708 | INPUT_PORTS_START( ldrun ) | |
| 708 | static INPUT_PORTS_START( ldrun ) | |
| 709 | 709 | PORT_START_TAG("IN0") |
| 710 | 710 | IN0_PORT |
| 711 | 711 | |
| r1238 | r1239 | |
| 756 | 756 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 757 | 757 | INPUT_PORTS_END |
| 758 | 758 | |
| 759 | INPUT_PORTS_START( ldrun2 ) | |
| 759 | static INPUT_PORTS_START( ldrun2 ) | |
| 760 | 760 | PORT_START_TAG("IN0") |
| 761 | 761 | IN0_PORT |
| 762 | 762 | |
| r1238 | r1239 | |
| 808 | 808 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 809 | 809 | INPUT_PORTS_END |
| 810 | 810 | |
| 811 | INPUT_PORTS_START( ldrun3 ) | |
| 811 | static INPUT_PORTS_START( ldrun3 ) | |
| 812 | 812 | PORT_START_TAG("IN0") |
| 813 | 813 | IN0_PORT |
| 814 | 814 | |
| r1238 | r1239 | |
| 860 | 860 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 861 | 861 | INPUT_PORTS_END |
| 862 | 862 | |
| 863 | INPUT_PORTS_START( ldrun4 ) | |
| 863 | static INPUT_PORTS_START( ldrun4 ) | |
| 864 | 864 | PORT_START_TAG("IN0") |
| 865 | 865 | IN0_PORT |
| 866 | 866 | |
| r1238 | r1239 | |
| 913 | 913 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 914 | 914 | INPUT_PORTS_END |
| 915 | 915 | |
| 916 | INPUT_PORTS_START( lotlot ) | |
| 916 | static INPUT_PORTS_START( lotlot ) | |
| 917 | 917 | PORT_START_TAG("IN0") |
| 918 | 918 | IN0_PORT |
| 919 | 919 | |
| r1238 | r1239 | |
| 963 | 963 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 964 | 964 | INPUT_PORTS_END |
| 965 | 965 | |
| 966 | INPUT_PORTS_START( kidniki ) | |
| 966 | static INPUT_PORTS_START( kidniki ) | |
| 967 | 967 | PORT_START_TAG("IN0") |
| 968 | 968 | IN0_PORT |
| 969 | 969 | |
| r1238 | r1239 | |
| 1013 | 1013 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 1014 | 1014 | INPUT_PORTS_END |
| 1015 | 1015 | |
| 1016 | INPUT_PORTS_START( spelunkr ) | |
| 1016 | static INPUT_PORTS_START( spelunkr ) | |
| 1017 | 1017 | PORT_START_TAG("IN0") |
| 1018 | 1018 | IN0_PORT |
| 1019 | 1019 | |
| r1238 | r1239 | |
| 1064 | 1064 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 1065 | 1065 | INPUT_PORTS_END |
| 1066 | 1066 | |
| 1067 | INPUT_PORTS_START( spelunk2 ) | |
| 1067 | static INPUT_PORTS_START( spelunk2 ) | |
| 1068 | 1068 | PORT_START_TAG("IN0") |
| 1069 | 1069 | IN0_PORT |
| 1070 | 1070 | |
| r1238 | r1239 | |
| 1116 | 1116 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 1117 | 1117 | INPUT_PORTS_END |
| 1118 | 1118 | |
| 1119 | INPUT_PORTS_START( youjyudn ) | |
| 1119 | static INPUT_PORTS_START( youjyudn ) | |
| 1120 | 1120 | PORT_START_TAG("IN0") |
| 1121 | 1121 | IN0_PORT |
| 1122 | 1122 | |
| r1238 | r1239 | |
| 1167 | 1167 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 1168 | 1168 | INPUT_PORTS_END |
| 1169 | 1169 | |
| 1170 | INPUT_PORTS_START( horizon ) | |
| 1170 | static INPUT_PORTS_START( horizon ) | |
| 1171 | 1171 | PORT_START_TAG("IN0") |
| 1172 | 1172 | IN0_PORT |
| 1173 | 1173 |
| r1238 | r1239 | |
|---|---|---|
| 726 | 726 | 0x04, 0x05, 0x07, 0x06, 0x02, 0x03, 0x01, 0x00 |
| 727 | 727 | }; |
| 728 | 728 | |
| 729 | INPUT_PORTS_START( seawolf2 ) | |
| 729 | static INPUT_PORTS_START( seawolf2 ) | |
| 730 | 730 | PORT_START_TAG("P1HANDLE") |
| 731 | 731 | PORT_BIT( 0x3f, 0x1f, IPT_POSITIONAL ) PORT_PLAYER(2) PORT_POSITIONS(64) PORT_REMAP_TABLE(controller_table) PORT_SENSITIVITY(20) PORT_KEYDELTA(4) PORT_CENTERDELTA(0) PORT_CROSSHAIR(X, 2.0, -0.40, 34.0 / 240.0) |
| 732 | 732 | PORT_DIPNAME( 0x40, 0x00, "Language 1" ) |
| r1238 | r1239 | |
| 772 | 772 | INPUT_PORTS_END |
| 773 | 773 | |
| 774 | 774 | |
| 775 | INPUT_PORTS_START( ebases ) | |
| 775 | static INPUT_PORTS_START( ebases ) | |
| 776 | 776 | PORT_START_TAG("P1HANDLE") |
| 777 | 777 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 778 | 778 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 824 | 824 | INPUT_PORTS_END |
| 825 | 825 | |
| 826 | 826 | |
| 827 | INPUT_PORTS_START( spacezap ) | |
| 827 | static INPUT_PORTS_START( spacezap ) | |
| 828 | 828 | PORT_START_TAG("P1HANDLE") |
| 829 | 829 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 830 | 830 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 870 | 870 | INPUT_PORTS_END |
| 871 | 871 | |
| 872 | 872 | |
| 873 | INPUT_PORTS_START( wow ) | |
| 873 | static INPUT_PORTS_START( wow ) | |
| 874 | 874 | PORT_START_TAG("P1HANDLE") |
| 875 | 875 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 876 | 876 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 929 | 929 | INPUT_PORTS_END |
| 930 | 930 | |
| 931 | 931 | |
| 932 | INPUT_PORTS_START( gorf ) | |
| 932 | static INPUT_PORTS_START( gorf ) | |
| 933 | 933 | PORT_START_TAG("P1HANDLE") |
| 934 | 934 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 935 | 935 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 988 | 988 | INPUT_PORTS_END |
| 989 | 989 | |
| 990 | 990 | |
| 991 | INPUT_PORTS_START( robby ) | |
| 991 | static INPUT_PORTS_START( robby ) | |
| 992 | 992 | PORT_START_TAG("P1HANDLE") |
| 993 | 993 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 994 | 994 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1039 | 1039 | INPUT_PORTS_END |
| 1040 | 1040 | |
| 1041 | 1041 | |
| 1042 | INPUT_PORTS_START( profpac ) | |
| 1042 | static INPUT_PORTS_START( profpac ) | |
| 1043 | 1043 | PORT_START_TAG("P1HANDLE") |
| 1044 | 1044 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1045 | 1045 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1084 | 1084 | INPUT_PORTS_END |
| 1085 | 1085 | |
| 1086 | 1086 | |
| 1087 | INPUT_PORTS_START( demndrgn ) | |
| 1087 | static INPUT_PORTS_START( demndrgn ) | |
| 1088 | 1088 | PORT_START_TAG("P1HANDLE") |
| 1089 | 1089 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1090 | 1090 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1125 | 1125 | INPUT_PORTS_END |
| 1126 | 1126 | |
| 1127 | 1127 | |
| 1128 | INPUT_PORTS_START( tenpindx ) | |
| 1128 | static INPUT_PORTS_START( tenpindx ) | |
| 1129 | 1129 | PORT_START_TAG("P60") |
| 1130 | 1130 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1131 | 1131 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 191 | 191 | AM_RANGE(I8039_p2, I8039_p2) AM_WRITE(i8039_irqen_and_status_w) |
| 192 | 192 | ADDRESS_MAP_END |
| 193 | 193 | |
| 194 | INPUT_PORTS_START( megazone ) | |
| 194 | static INPUT_PORTS_START( megazone ) | |
| 195 | 195 | PORT_START_TAG("IN0") |
| 196 | 196 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 197 | 197 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 279 | 279 | |
| 280 | 280 | /***************************************************************************/ |
| 281 | 281 | |
| 282 | INPUT_PORTS_START( hvysmsh ) | |
| 282 | static INPUT_PORTS_START( hvysmsh ) | |
| 283 | 283 | PORT_START |
| 284 | 284 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 285 | 285 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 317 | 317 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 318 | 318 | INPUT_PORTS_END |
| 319 | 319 | |
| 320 | INPUT_PORTS_START( wcvol95 ) | |
| 320 | static INPUT_PORTS_START( wcvol95 ) | |
| 321 | 321 | PORT_START |
| 322 | 322 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 323 | 323 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 169 | 169 | |
| 170 | 170 | |
| 171 | 171 | /* todo : work out function of unknown but used dsw */ |
| 172 | INPUT_PORTS_START( pass ) | |
| 172 | static INPUT_PORTS_START( pass ) | |
| 173 | 173 | PORT_START /* DSW */ |
| 174 | 174 | PORT_DIPNAME( 0x0001, 0x0001, "Unknown SW 0-0" ) // USED ! Check code at 0x0046ea |
| 175 | 175 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 145 | 145 | |
| 146 | 146 | /*****************************************************************************/ |
| 147 | 147 | |
| 148 | INPUT_PORTS_START( toki ) | |
| 148 | static INPUT_PORTS_START( toki ) | |
| 149 | 149 | SEIBU_COIN_INPUTS /* Must be port 0: coin inputs read through sound cpu */ |
| 150 | 150 | |
| 151 | 151 | PORT_START_TAG("DSW0") |
| r1238 | r1239 | |
| 230 | 230 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 231 | 231 | INPUT_PORTS_END |
| 232 | 232 | |
| 233 | INPUT_PORTS_START( tokib ) | |
| 233 | static INPUT_PORTS_START( tokib ) | |
| 234 | 234 | PORT_START_TAG("DSW0") |
| 235 | 235 | PORT_DIPNAME( 0x001f, 0x001f, DEF_STR( Coinage ) ) |
| 236 | 236 | PORT_DIPSETTING( 0x0015, DEF_STR( 6C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 378 | 378 | ADDRESS_MAP_END |
| 379 | 379 | |
| 380 | 380 | |
| 381 | INPUT_PORTS_START( dwarfd ) | |
| 381 | static INPUT_PORTS_START( dwarfd ) | |
| 382 | 382 | PORT_START /* 8bit */ |
| 383 | 383 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 384 | 384 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 813 | 813 | ADDRESS_MAP_END |
| 814 | 814 | |
| 815 | 815 | |
| 816 | INPUT_PORTS_START( 40love ) | |
| 816 | static INPUT_PORTS_START( 40love ) | |
| 817 | 817 | PORT_START_TAG("DSW1") |
| 818 | 818 | PORT_DIPNAME( 0x01, 0x00, "DSW1 Unknown 0" ) PORT_DIPLOCATION("SW1:1") |
| 819 | 819 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 930 | 930 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_COCKTAIL |
| 931 | 931 | INPUT_PORTS_END |
| 932 | 932 | |
| 933 | INPUT_PORTS_START( undoukai ) | |
| 933 | static INPUT_PORTS_START( undoukai ) | |
| 934 | 934 | PORT_START_TAG("DSW1") |
| 935 | 935 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 936 | 936 | PORT_DIPSETTING( 0x00, "4 (Hard)" ) |
| r1238 | r1239 | |
|---|---|---|
| 566 | 566 | |
| 567 | 567 | |
| 568 | 568 | |
| 569 | INPUT_PORTS_START( renegade ) | |
| 569 | static INPUT_PORTS_START( renegade ) | |
| 570 | 570 | PORT_START /* IN0 */ |
| 571 | 571 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 572 | 572 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 200 | 200 | * |
| 201 | 201 | *************************************/ |
| 202 | 202 | |
| 203 | INPUT_PORTS_START( chwrestl ) | |
| 203 | static INPUT_PORTS_START( chwrestl ) | |
| 204 | 204 | PORT_INCLUDE( sg1000 ) |
| 205 | 205 | |
| 206 | 206 | PORT_MODIFY("IN0") |
| r1238 | r1239 | |
| 221 | 221 | INPUT_PORTS_END |
| 222 | 222 | |
| 223 | 223 | |
| 224 | INPUT_PORTS_START( chboxing ) | |
| 224 | static INPUT_PORTS_START( chboxing ) | |
| 225 | 225 | PORT_INCLUDE( sg1000 ) |
| 226 | 226 | |
| 227 | 227 | PORT_MODIFY("DSW") |
| r1238 | r1239 | |
| 231 | 231 | INPUT_PORTS_END |
| 232 | 232 | |
| 233 | 233 | |
| 234 | INPUT_PORTS_START( dokidoki ) | |
| 234 | static INPUT_PORTS_START( dokidoki ) | |
| 235 | 235 | PORT_INCLUDE( sg1000 ) |
| 236 | 236 | |
| 237 | 237 | PORT_MODIFY("DSW") |
| r1238 | r1239 | |
|---|---|---|
| 1009 | 1009 | |
| 1010 | 1010 | |
| 1011 | 1011 | |
| 1012 | INPUT_PORTS_START( bosco ) | |
| 1012 | static INPUT_PORTS_START( bosco ) | |
| 1013 | 1013 | PORT_START_TAG("IN0") |
| 1014 | 1014 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1015 | 1015 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| r1238 | r1239 | |
| 1082 | 1082 | PORT_DIPSETTING( 0xc0, "5" ) |
| 1083 | 1083 | INPUT_PORTS_END |
| 1084 | 1084 | |
| 1085 | INPUT_PORTS_START( boscomd ) | |
| 1085 | static INPUT_PORTS_START( boscomd ) | |
| 1086 | 1086 | PORT_INCLUDE( bosco ) |
| 1087 | 1087 | |
| 1088 | 1088 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 1112 | 1112 | INPUT_PORTS_END |
| 1113 | 1113 | |
| 1114 | 1114 | |
| 1115 | INPUT_PORTS_START( galaga ) | |
| 1115 | static INPUT_PORTS_START( galaga ) | |
| 1116 | 1116 | PORT_START_TAG("IN0") |
| 1117 | 1117 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1118 | 1118 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| r1238 | r1239 | |
| 1185 | 1185 | PORT_DIPSETTING( 0xc0, "5" ) |
| 1186 | 1186 | INPUT_PORTS_END |
| 1187 | 1187 | |
| 1188 | INPUT_PORTS_START( galagamw ) | |
| 1188 | static INPUT_PORTS_START( galagamw ) | |
| 1189 | 1189 | PORT_INCLUDE( galaga ) |
| 1190 | 1190 | |
| 1191 | 1191 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 1215 | 1215 | INPUT_PORTS_END |
| 1216 | 1216 | |
| 1217 | 1217 | /* the same as galaga but with vertical movement */ |
| 1218 | INPUT_PORTS_START( gatsbee ) | |
| 1218 | static INPUT_PORTS_START( gatsbee ) | |
| 1219 | 1219 | PORT_INCLUDE( galaga ) |
| 1220 | 1220 | |
| 1221 | 1221 | PORT_MODIFY("IN1") |
| r1238 | r1239 | |
| 1230 | 1230 | INPUT_PORTS_END |
| 1231 | 1231 | |
| 1232 | 1232 | |
| 1233 | INPUT_PORTS_START( xevious ) | |
| 1233 | static INPUT_PORTS_START( xevious ) | |
| 1234 | 1234 | PORT_START_TAG("IN0") |
| 1235 | 1235 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1236 | 1236 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| r1238 | r1239 | |
| 1305 | 1305 | INPUT_PORTS_END |
| 1306 | 1306 | |
| 1307 | 1307 | /* same as xevious but different "Coin B" Dip Switch and "Copyright" Dip Switch instead of "Freeze" */ |
| 1308 | INPUT_PORTS_START( xeviousa ) | |
| 1308 | static INPUT_PORTS_START( xeviousa ) | |
| 1309 | 1309 | PORT_INCLUDE( xevious ) |
| 1310 | 1310 | |
| 1311 | 1311 | PORT_MODIFY("DSWB") |
| r1238 | r1239 | |
| 1331 | 1331 | INPUT_PORTS_END |
| 1332 | 1332 | |
| 1333 | 1333 | /* same as xevious but "Copyright" Dip Switch instead of "Freeze" */ |
| 1334 | INPUT_PORTS_START( xeviousb ) | |
| 1334 | static INPUT_PORTS_START( xeviousb ) | |
| 1335 | 1335 | PORT_INCLUDE( xevious ) |
| 1336 | 1336 | |
| 1337 | 1337 | PORT_MODIFY("DSWB") |
| r1238 | r1239 | |
| 1357 | 1357 | INPUT_PORTS_END |
| 1358 | 1358 | |
| 1359 | 1359 | /* same as xevious but different "Coin B" Dip Switch and inverted "Freeze" Dip Switch */ |
| 1360 | INPUT_PORTS_START( sxevious ) | |
| 1360 | static INPUT_PORTS_START( sxevious ) | |
| 1361 | 1361 | PORT_INCLUDE( xevious ) |
| 1362 | 1362 | |
| 1363 | 1363 | PORT_MODIFY("DSWB") |
| r1238 | r1239 | |
| 1382 | 1382 | INPUT_PORTS_END |
| 1383 | 1383 | |
| 1384 | 1384 | |
| 1385 | INPUT_PORTS_START( digdug ) | |
| 1385 | static INPUT_PORTS_START( digdug ) | |
| 1386 | 1386 | PORT_START_TAG("IN0") |
| 1387 | 1387 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1388 | 1388 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| r1238 | r1239 | |
|---|---|---|
| 214 | 214 | cpunum_set_input_line_and_vector(cpu_getactivecpu(), 0, HOLD_LINE, 0xc4/4); |
| 215 | 215 | } |
| 216 | 216 | |
| 217 | INPUT_PORTS_START( panicr ) | |
| 217 | static INPUT_PORTS_START( panicr ) | |
| 218 | 218 | PORT_START_TAG("IN0") |
| 219 | 219 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) //left |
| 220 | 220 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) //right |
| r1238 | r1239 | |
|---|---|---|
| 199 | 199 | |
| 200 | 200 | |
| 201 | 201 | /* PORTS */ |
| 202 | INPUT_PORTS_START( istellar ) | |
| 202 | static INPUT_PORTS_START( istellar ) | |
| 203 | 203 | /* TEST MODE might display a 0 for a short and a 1 for an open circuit? If so, everything below is inverted. */ |
| 204 | 204 | PORT_START_TAG("DSW1") |
| 205 | 205 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1") |
| r1238 | r1239 | |
|---|---|---|
| 291 | 291 | |
| 292 | 292 | |
| 293 | 293 | |
| 294 | INPUT_PORTS_START( lasso ) | |
| 294 | static INPUT_PORTS_START( lasso ) | |
| 295 | 295 | PORT_START_TAG("1804") |
| 296 | 296 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 297 | 297 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 356 | 356 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START1 ) |
| 357 | 357 | INPUT_PORTS_END |
| 358 | 358 | |
| 359 | INPUT_PORTS_START( chameleo ) | |
| 359 | static INPUT_PORTS_START( chameleo ) | |
| 360 | 360 | PORT_START_TAG("1804") |
| 361 | 361 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 362 | 362 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 421 | 421 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START1 ) |
| 422 | 422 | INPUT_PORTS_END |
| 423 | 423 | |
| 424 | INPUT_PORTS_START( wwjgtin ) | |
| 424 | static INPUT_PORTS_START( wwjgtin ) | |
| 425 | 425 | PORT_START_TAG("1804") |
| 426 | 426 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 427 | 427 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 487 | 487 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START2 ) |
| 488 | 488 | INPUT_PORTS_END |
| 489 | 489 | |
| 490 | INPUT_PORTS_START( pinbo ) | |
| 490 | static INPUT_PORTS_START( pinbo ) | |
| 491 | 491 | PORT_START_TAG("1804") |
| 492 | 492 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 493 | 493 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 146 | 146 | // GFXDECODE_ENTRY( 0, 0, charlayout, 0, 16*4 ) |
| 147 | 147 | GFXDECODE_END |
| 148 | 148 | |
| 149 | INPUT_PORTS_START( macs ) | |
| 149 | static INPUT_PORTS_START( macs ) | |
| 150 | 150 | /*0*/ |
| 151 | 151 | PORT_START_TAG("DSW0") |
| 152 | 152 | PORT_DIPNAME( 0x01, 0x01, "DSW0 - BIT 1" ) |
| r1238 | r1239 | |
|---|---|---|
| 550 | 550 | |
| 551 | 551 | |
| 552 | 552 | |
| 553 | INPUT_PORTS_START( mjsikaku ) | |
| 553 | static INPUT_PORTS_START( mjsikaku ) | |
| 554 | 554 | PORT_START /* (0) DIPSW-A */ |
| 555 | 555 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 556 | 556 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 626 | 626 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 627 | 627 | INPUT_PORTS_END |
| 628 | 628 | |
| 629 | INPUT_PORTS_START( mmsikaku ) | |
| 629 | static INPUT_PORTS_START( mmsikaku ) | |
| 630 | 630 | #if 1 |
| 631 | 631 | PORT_START /* (0) DIPSW-A */ |
| 632 | 632 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| r1238 | r1239 | |
| 741 | 741 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 742 | 742 | INPUT_PORTS_END |
| 743 | 743 | |
| 744 | INPUT_PORTS_START( otonano ) | |
| 744 | static INPUT_PORTS_START( otonano ) | |
| 745 | 745 | PORT_START /* (0) DIPSW-A */ |
| 746 | 746 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 747 | 747 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 817 | 817 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 818 | 818 | INPUT_PORTS_END |
| 819 | 819 | |
| 820 | INPUT_PORTS_START( mjcamera ) | |
| 820 | static INPUT_PORTS_START( mjcamera ) | |
| 821 | 821 | PORT_START /* (0) DIPSW-A */ |
| 822 | 822 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 823 | 823 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 893 | 893 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 894 | 894 | INPUT_PORTS_END |
| 895 | 895 | |
| 896 | INPUT_PORTS_START( kaguya ) | |
| 896 | static INPUT_PORTS_START( kaguya ) | |
| 897 | 897 | PORT_START /* (0) DIPSW-A */ |
| 898 | 898 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 899 | 899 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) |
| r1238 | r1239 | |
| 967 | 967 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 968 | 968 | INPUT_PORTS_END |
| 969 | 969 | |
| 970 | INPUT_PORTS_START( kaguya2 ) | |
| 970 | static INPUT_PORTS_START( kaguya2 ) | |
| 971 | 971 | PORT_START /* (0) DIPSW-A */ |
| 972 | 972 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 973 | 973 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1044 | 1044 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1045 | 1045 | INPUT_PORTS_END |
| 1046 | 1046 | |
| 1047 | INPUT_PORTS_START( kanatuen ) | |
| 1047 | static INPUT_PORTS_START( kanatuen ) | |
| 1048 | 1048 | PORT_START /* (0) DIPSW-A */ |
| 1049 | 1049 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 1050 | 1050 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1121 | 1121 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1122 | 1122 | INPUT_PORTS_END |
| 1123 | 1123 | |
| 1124 | INPUT_PORTS_START( kyuhito ) | |
| 1124 | static INPUT_PORTS_START( kyuhito ) | |
| 1125 | 1125 | PORT_START /* (0) DIPSW-A */ |
| 1126 | 1126 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 1127 | 1127 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1198 | 1198 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1199 | 1199 | INPUT_PORTS_END |
| 1200 | 1200 | |
| 1201 | INPUT_PORTS_START( idhimitu ) | |
| 1201 | static INPUT_PORTS_START( idhimitu ) | |
| 1202 | 1202 | PORT_START /* (0) DIPSW-A */ |
| 1203 | 1203 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 1204 | 1204 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1275 | 1275 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1276 | 1276 | INPUT_PORTS_END |
| 1277 | 1277 | |
| 1278 | INPUT_PORTS_START( secolove ) | |
| 1278 | static INPUT_PORTS_START( secolove ) | |
| 1279 | 1279 | PORT_START /* (0) DIPSW-A */ |
| 1280 | 1280 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1281 | 1281 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 1350 | 1350 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1351 | 1351 | INPUT_PORTS_END |
| 1352 | 1352 | |
| 1353 | INPUT_PORTS_START( citylove ) | |
| 1353 | static INPUT_PORTS_START( citylove ) | |
| 1354 | 1354 | PORT_START /* (0) DIPSW-A */ |
| 1355 | 1355 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Difficulty ) ) |
| 1356 | 1356 | PORT_DIPSETTING( 0x0f, "1 (Easy)" ) |
| r1238 | r1239 | |
| 1428 | 1428 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1429 | 1429 | INPUT_PORTS_END |
| 1430 | 1430 | |
| 1431 | INPUT_PORTS_START( mcitylov ) | |
| 1431 | static INPUT_PORTS_START( mcitylov ) | |
| 1432 | 1432 | #if 1 |
| 1433 | 1433 | PORT_START /* (0) DIPSW-A */ |
| 1434 | 1434 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| r1238 | r1239 | |
| 1543 | 1543 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1544 | 1544 | INPUT_PORTS_END |
| 1545 | 1545 | |
| 1546 | INPUT_PORTS_START( seiha ) | |
| 1546 | static INPUT_PORTS_START( seiha ) | |
| 1547 | 1547 | PORT_START /* (0) DIPSW-A */ |
| 1548 | 1548 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Difficulty ) ) |
| 1549 | 1549 | PORT_DIPSETTING( 0x07, "1 (Hard)" ) |
| r1238 | r1239 | |
| 1619 | 1619 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1620 | 1620 | INPUT_PORTS_END |
| 1621 | 1621 | |
| 1622 | INPUT_PORTS_START( seiham ) | |
| 1622 | static INPUT_PORTS_START( seiham ) | |
| 1623 | 1623 | PORT_START /* (0) DIPSW-A */ |
| 1624 | 1624 | PORT_DIPNAME( 0x07, 0x00, "Game Out" ) |
| 1625 | 1625 | PORT_DIPSETTING( 0x07, "60% (Hard)" ) |
| r1238 | r1239 | |
| 1693 | 1693 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1694 | 1694 | INPUT_PORTS_END |
| 1695 | 1695 | |
| 1696 | INPUT_PORTS_START( iemoto ) | |
| 1696 | static INPUT_PORTS_START( iemoto ) | |
| 1697 | 1697 | PORT_START /* (0) DIPSW-A */ |
| 1698 | 1698 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Difficulty ) ) |
| 1699 | 1699 | PORT_DIPSETTING( 0x07, "1 (Hard)" ) |
| r1238 | r1239 | |
| 1769 | 1769 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1770 | 1770 | INPUT_PORTS_END |
| 1771 | 1771 | |
| 1772 | INPUT_PORTS_START( iemotom ) | |
| 1772 | static INPUT_PORTS_START( iemotom ) | |
| 1773 | 1773 | PORT_START /* (0) DIPSW-A */ |
| 1774 | 1774 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 1775 | 1775 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1845 | 1845 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1846 | 1846 | INPUT_PORTS_END |
| 1847 | 1847 | |
| 1848 | INPUT_PORTS_START( ryuuha ) | |
| 1848 | static INPUT_PORTS_START( ryuuha ) | |
| 1849 | 1849 | PORT_START /* (0) DIPSW-A */ |
| 1850 | 1850 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 1851 | 1851 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1921 | 1921 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1922 | 1922 | INPUT_PORTS_END |
| 1923 | 1923 | |
| 1924 | INPUT_PORTS_START( bijokkoy ) | |
| 1924 | static INPUT_PORTS_START( bijokkoy ) | |
| 1925 | 1925 | PORT_START /* (0) DIPSW-A */ |
| 1926 | 1926 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1927 | 1927 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 1996 | 1996 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1997 | 1997 | INPUT_PORTS_END |
| 1998 | 1998 | |
| 1999 | INPUT_PORTS_START( bijokkog ) | |
| 1999 | static INPUT_PORTS_START( bijokkog ) | |
| 2000 | 2000 | PORT_START /* (0) DIPSW-A */ |
| 2001 | 2001 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 2002 | 2002 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 2070 | 2070 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 2071 | 2071 | INPUT_PORTS_END |
| 2072 | 2072 | |
| 2073 | INPUT_PORTS_START( housemnq ) | |
| 2073 | static INPUT_PORTS_START( housemnq ) | |
| 2074 | 2074 | PORT_START /* (0) DIPSW-A */ |
| 2075 | 2075 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 2076 | 2076 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 2144 | 2144 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 2145 | 2145 | INPUT_PORTS_END |
| 2146 | 2146 | |
| 2147 | INPUT_PORTS_START( housemn2 ) | |
| 2147 | static INPUT_PORTS_START( housemn2 ) | |
| 2148 | 2148 | PORT_START /* (0) DIPSW-A */ |
| 2149 | 2149 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 2150 | 2150 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 2217 | 2217 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 2218 | 2218 | INPUT_PORTS_END |
| 2219 | 2219 | |
| 2220 | INPUT_PORTS_START( orangec ) | |
| 2220 | static INPUT_PORTS_START( orangec ) | |
| 2221 | 2221 | PORT_START /* (0) DIPSW-A */ |
| 2222 | 2222 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2223 | 2223 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2293 | 2293 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 2294 | 2294 | INPUT_PORTS_END |
| 2295 | 2295 | |
| 2296 | INPUT_PORTS_START( orangeci ) | |
| 2296 | static INPUT_PORTS_START( orangeci ) | |
| 2297 | 2297 | PORT_START /* (0) DIPSW-A */ |
| 2298 | 2298 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2299 | 2299 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2369 | 2369 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 2370 | 2370 | INPUT_PORTS_END |
| 2371 | 2371 | |
| 2372 | INPUT_PORTS_START( vipclub ) | |
| 2372 | static INPUT_PORTS_START( vipclub ) | |
| 2373 | 2373 | PORT_START /* (1) DIPSW-A */ |
| 2374 | 2374 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 2375 | 2375 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2445 | 2445 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 2446 | 2446 | INPUT_PORTS_END |
| 2447 | 2447 | |
| 2448 | INPUT_PORTS_START( livegal ) | |
| 2448 | static INPUT_PORTS_START( livegal ) | |
| 2449 | 2449 | PORT_START /* (0) DIPSW-A */ |
| 2450 | 2450 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 2451 | 2451 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2521 | 2521 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 2522 | 2522 | INPUT_PORTS_END |
| 2523 | 2523 | |
| 2524 | INPUT_PORTS_START( ojousan ) | |
| 2524 | static INPUT_PORTS_START( ojousan ) | |
| 2525 | 2525 | PORT_START /* (0) DIPSW-A */ |
| 2526 | 2526 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 2527 | 2527 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 2597 | 2597 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 2598 | 2598 | INPUT_PORTS_END |
| 2599 | 2599 | |
| 2600 | INPUT_PORTS_START( ojousanm ) | |
| 2600 | static INPUT_PORTS_START( ojousanm ) | |
| 2601 | 2601 | PORT_START /* (0) DIPSW-A */ |
| 2602 | 2602 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2603 | 2603 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2673 | 2673 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 2674 | 2674 | INPUT_PORTS_END |
| 2675 | 2675 | |
| 2676 | INPUT_PORTS_START( korinai ) | |
| 2676 | static INPUT_PORTS_START( korinai ) | |
| 2677 | 2677 | PORT_START /* (0) DIPSW-A */ |
| 2678 | 2678 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2679 | 2679 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2749 | 2749 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 2750 | 2750 | INPUT_PORTS_END |
| 2751 | 2751 | |
| 2752 | INPUT_PORTS_START( korinaim ) | |
| 2752 | static INPUT_PORTS_START( korinaim ) | |
| 2753 | 2753 | PORT_START /* (0) DIPSW-A */ |
| 2754 | 2754 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2755 | 2755 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2825 | 2825 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 2826 | 2826 | INPUT_PORTS_END |
| 2827 | 2827 | |
| 2828 | INPUT_PORTS_START( crystalg ) | |
| 2828 | static INPUT_PORTS_START( crystalg ) | |
| 2829 | 2829 | PORT_START /* (0) DIPSW-A */ |
| 2830 | 2830 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 2831 | 2831 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2901 | 2901 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 2902 | 2902 | INPUT_PORTS_END |
| 2903 | 2903 | |
| 2904 | INPUT_PORTS_START( crystal2 ) | |
| 2904 | static INPUT_PORTS_START( crystal2 ) | |
| 2905 | 2905 | PORT_START /* (0) DIPSW-A */ |
| 2906 | 2906 | PORT_DIPNAME( 0x0f, 0x0d, DEF_STR( Difficulty ) ) |
| 2907 | 2907 | PORT_DIPSETTING( 0x0d, "1 (Easy)" ) |
| r1238 | r1239 | |
| 2973 | 2973 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 2974 | 2974 | INPUT_PORTS_END |
| 2975 | 2975 | |
| 2976 | INPUT_PORTS_START( apparel ) | |
| 2976 | static INPUT_PORTS_START( apparel ) | |
| 2977 | 2977 | PORT_START /* (0) DIPSW-A */ |
| 2978 | 2978 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 2979 | 2979 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 3049 | 3049 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 3050 | 3050 | INPUT_PORTS_END |
| 3051 | 3051 | |
| 3052 | INPUT_PORTS_START( nightlov ) | |
| 3052 | static INPUT_PORTS_START( nightlov ) | |
| 3053 | 3053 | PORT_START /* (0) DIPSW-A */ |
| 3054 | 3054 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 3055 | 3055 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 201 | 201 | |
| 202 | 202 | |
| 203 | 203 | |
| 204 | INPUT_PORTS_START( sbowling ) | |
| 204 | static INPUT_PORTS_START( sbowling ) | |
| 205 | 205 | PORT_START |
| 206 | 206 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 207 | 207 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_TILT ) |
| r1238 | r1239 | |
|---|---|---|
| 419 | 419 | ADDRESS_MAP_END |
| 420 | 420 | |
| 421 | 421 | |
| 422 | INPUT_PORTS_START( psychic5 ) | |
| 422 | static INPUT_PORTS_START( psychic5 ) | |
| 423 | 423 | PORT_START_TAG("IN0") |
| 424 | 424 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 425 | 425 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 368 | 368 | |
| 369 | 369 | ***************************************************************************/ |
| 370 | 370 | |
| 371 | INPUT_PORTS_START( syvalion ) | |
| 371 | static INPUT_PORTS_START( syvalion ) | |
| 372 | 372 | /* 0x200000 (port 0) -> 0x102842.b (-$57be,A5) */ |
| 373 | 373 | PORT_START_TAG("DSWA") |
| 374 | 374 | TAITO_MACHINE_COCKTAIL |
| r1238 | r1239 | |
| 425 | 425 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(30) PORT_KEYDELTA(30) PORT_RESET PORT_REVERSE PORT_PLAYER(2) |
| 426 | 426 | INPUT_PORTS_END |
| 427 | 427 | |
| 428 | INPUT_PORTS_START( recordbr ) | |
| 428 | static INPUT_PORTS_START( recordbr ) | |
| 429 | 429 | /* 0x200000 (port 0) -> 0x1022e6.b (-$5d1a,A5) */ |
| 430 | 430 | PORT_START_TAG("DSWA") |
| 431 | 431 | TAITO_MACHINE_NO_COCKTAIL |
| r1238 | r1239 | |
| 472 | 472 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* IPT_BUTTON4 (PL2) in service mode */ |
| 473 | 473 | INPUT_PORTS_END |
| 474 | 474 | |
| 475 | INPUT_PORTS_START( dleague ) | |
| 475 | static INPUT_PORTS_START( dleague ) | |
| 476 | 476 | /* 0x200000 -> 0x100526.b ($526,A5) */ |
| 477 | 477 | PORT_START_TAG("DSWA") |
| 478 | 478 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Difficulty ) ) /* see notes */ |
| r1238 | r1239 | |
|---|---|---|
| 33 | 33 | #include "driver.h" |
| 34 | 34 | #include "sound/okim6295.h" |
| 35 | 35 | |
| 36 | UINT16*unkkor_tileram2; | |
| 37 | ||
| 38 | 36 | static tilemap *bg_tilemap; |
| 39 | 37 | static tilemap *fg_tilemap; |
| 40 | 38 | static UINT16 *bg_tilemapram; |
| r1238 | r1239 | |
| 101 | 99 | AM_RANGE(0xff0000, 0xffefff) AM_RAM |
| 102 | 100 | ADDRESS_MAP_END |
| 103 | 101 | |
| 104 | INPUT_PORTS_START( good ) | |
| 102 | static INPUT_PORTS_START( good ) | |
| 105 | 103 | PORT_START |
| 106 | 104 | PORT_DIPNAME( 0x0001, 0x0001, "0" ) |
| 107 | 105 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 549 | 549 | INPUT PORTS, DIPs |
| 550 | 550 | ***********************************************************/ |
| 551 | 551 | |
| 552 | INPUT_PORTS_START( othunder ) | |
| 552 | static INPUT_PORTS_START( othunder ) | |
| 553 | 553 | /* 0x090000 -> 0x08a000 */ |
| 554 | 554 | PORT_START_TAG("DSWA") |
| 555 | 555 | PORT_DIPUNUSED( 0x01, IP_ACTIVE_LOW ) |
| r1238 | r1239 | |
| 628 | 628 | PORT_CONFSETTING( 0x00, DEF_STR( Low ) ) |
| 629 | 629 | INPUT_PORTS_END |
| 630 | 630 | |
| 631 | INPUT_PORTS_START( othundrj ) | |
| 631 | static INPUT_PORTS_START( othundrj ) | |
| 632 | 632 | PORT_INCLUDE( othunder ) |
| 633 | 633 | |
| 634 | 634 | PORT_MODIFY( "DSWA" ) |
| 635 | 635 | TAITO_COINAGE_JAPAN_OLD |
| 636 | 636 | INPUT_PORTS_END |
| 637 | 637 | |
| 638 | INPUT_PORTS_START( othundu ) | |
| 638 | static INPUT_PORTS_START( othundu ) | |
| 639 | 639 | PORT_INCLUDE( othundrj ) |
| 640 | 640 | |
| 641 | 641 | PORT_MODIFY( "DSWB" ) |
| r1238 | r1239 | |
|---|---|---|
| 189 | 189 | |
| 190 | 190 | /* Input Ports: [0] Controls [1] DSWs */ |
| 191 | 191 | |
| 192 | INPUT_PORTS_START( ginganin ) | |
| 192 | static INPUT_PORTS_START( ginganin ) | |
| 193 | 193 | |
| 194 | 194 | PORT_START_TAG("IN0") /* - Controls - Read from 70000.w */ |
| 195 | 195 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 132 | 132 | |
| 133 | 133 | |
| 134 | 134 | |
| 135 | INPUT_PORTS_START( tail2nos ) | |
| 135 | static INPUT_PORTS_START( tail2nos ) | |
| 136 | 136 | PORT_START |
| 137 | 137 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 138 | 138 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 106 | 106 | ADDRESS_MAP_END |
| 107 | 107 | |
| 108 | 108 | |
| 109 | INPUT_PORTS_START( m79amb ) | |
| 109 | static INPUT_PORTS_START( m79amb ) | |
| 110 | 110 | PORT_START /* 8000 */ |
| 111 | 111 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* dip switch */ |
| 112 | 112 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
|---|---|---|
| 99 | 99 | ADDRESS_MAP_END |
| 100 | 100 | |
| 101 | 101 | |
| 102 | INPUT_PORTS_START( mrjong ) | |
| 102 | static INPUT_PORTS_START( mrjong ) | |
| 103 | 103 | PORT_START /* IN0 */ |
| 104 | 104 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_PLAYER(2) |
| 105 | 105 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(2) |
| r1238 | r1239 | |
|---|---|---|
| 67 | 67 | VIDEO_UPDATE( quasar ); |
| 68 | 68 | VIDEO_START( quasar ); |
| 69 | 69 | |
| 70 | extern UINT8 *bullet_ram; | |
| 70 | extern UINT8 *cvs_bullet_ram; | |
| 71 | 71 | |
| 72 | extern UINT8 *effectram; | |
| 73 | extern int effectcontrol; | |
| 72 | extern UINT8 *quasar_effectram; | |
| 73 | extern int quasar_effectcontrol; | |
| 74 | 74 | |
| 75 | 75 | static int page = 0; |
| 76 | 76 | static int IOpage = 8; |
| r1238 | r1239 | |
| 149 | 149 | if (page == 1) colorram_w(offset,(data & 7)); // 3 bits of ram only - 3 x 2102 |
| 150 | 150 | if (page == 2) |
| 151 | 151 | { |
| 152 | effectram[offset] = data; | |
| 152 | quasar_effectram[offset] = data; | |
| 153 | 153 | } |
| 154 | 154 | if (page == 3) |
| 155 | 155 | { |
| 156 | effectcontrol = data; | |
| 156 | quasar_effectcontrol = data; | |
| 157 | 157 | } |
| 158 | 158 | } |
| 159 | 159 | |
| r1238 | r1239 | |
| 171 | 171 | |
| 172 | 172 | WRITE8_HANDLER( quasar_bullet_w ) |
| 173 | 173 | { |
| 174 | ||
| 174 | cvs_bullet_ram[offset] = (data ^ 0xff); | |
| 175 | 175 | } |
| 176 | 176 | |
| 177 | 177 | static int Quasar_T1=0; |
| r1238 | r1239 | |
| 216 | 216 | |
| 217 | 217 | static ADDRESS_MAP_START( quasar, ADDRESS_SPACE_PROGRAM, 8 ) |
| 218 | 218 | AM_RANGE(0x0000, 0x13ff) AM_ROM |
| 219 | AM_RANGE(0x1400, 0x14ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_bullet_r, quasar_bullet_w) AM_BASE(&bullet_ram) | |
| 219 | AM_RANGE(0x1400, 0x14ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_bullet_r, quasar_bullet_w) AM_BASE(&cvs_bullet_ram) | |
| 220 | 220 | AM_RANGE(0x1500, 0x15ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_2636_1_r, cvs_2636_1_w) AM_BASE(&s2636_1_ram) |
| 221 | 221 | AM_RANGE(0x1600, 0x16ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_2636_2_r, cvs_2636_2_w) AM_BASE(&s2636_2_ram) |
| 222 | 222 | AM_RANGE(0x1700, 0x17ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_2636_3_r, cvs_2636_3_w) AM_BASE(&s2636_3_ram) |
| r1238 | r1239 | |
| 272 | 272 | |
| 273 | 273 | ************************************************************************/ |
| 274 | 274 | |
| 275 | INPUT_PORTS_START( quasar ) | |
| 275 | static INPUT_PORTS_START( quasar ) | |
| 276 | 276 | PORT_START /* Controls 0 */ |
| 277 | 277 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 278 | 278 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 50 | 50 | |
| 51 | 51 | |
| 52 | 52 | |
| 53 | INPUT_PORTS_START( meritm ) | |
| 53 | static INPUT_PORTS_START( meritm ) | |
| 54 | 54 | INPUT_PORTS_END |
| 55 | 55 | |
| 56 | 56 |
| r1238 | r1239 | |
|---|---|---|
| 361 | 361 | INPUT PORTS (DIPs in nvram) |
| 362 | 362 | ***********************************************************/ |
| 363 | 363 | |
| 364 | INPUT_PORTS_START( slapshot ) | |
| 364 | static INPUT_PORTS_START( slapshot ) | |
| 365 | 365 | PORT_START_TAG("IN0") |
| 366 | 366 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 367 | 367 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 416 | 416 | PORT_SERVICE_NO_TOGGLE(0x10, IP_ACTIVE_LOW) |
| 417 | 417 | INPUT_PORTS_END |
| 418 | 418 | |
| 419 | INPUT_PORTS_START( opwolf3 ) | |
| 419 | static INPUT_PORTS_START( opwolf3 ) | |
| 420 | 420 | PORT_START_TAG("IN0") /* IN0, all bogus */ |
| 421 | 421 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 422 | 422 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 199 | 199 | AM_RANGE(0x03800000, 0x03ffffff) AM_ROM AM_REGION(REGION_USER1, 0) |
| 200 | 200 | ADDRESS_MAP_END |
| 201 | 201 | |
| 202 | INPUT_PORTS_START( ertictac ) | |
| 202 | static INPUT_PORTS_START( ertictac ) | |
| 203 | 203 | PORT_START_TAG("IN 0") |
| 204 | 204 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START2 ) |
| 205 | 205 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 ) |
| r1238 | r1239 | |
| 269 | 269 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 270 | 270 | INPUT_PORTS_END |
| 271 | 271 | |
| 272 | INPUT_PORTS_START( poizone ) | |
| 272 | static INPUT_PORTS_START( poizone ) | |
| 273 | 273 | PORT_START_TAG("IN 0") |
| 274 | 274 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START2 ) |
| 275 | 275 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 ) |
| r1238 | r1239 | |
|---|---|---|
| 513 | 513 | PORT_BIT ( 0x40, IP_ACTIVE_HIGH, IPT_COIN4 ) PORT_IMPULSE(1) \ |
| 514 | 514 | PORT_BIT ( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) /* this bit masks irqs - dont change */ \ |
| 515 | 515 | |
| 516 | INPUT_PORTS_START( vsnes ) | |
| 516 | static INPUT_PORTS_START( vsnes ) | |
| 517 | 517 | VS_CONTROLS( IPT_START1, IPT_BUTTON3, IPT_START2, IPT_BUTTON3 ) PORT_PLAYER(1) PORT_PLAYER(2) |
| 518 | 518 | |
| 519 | 519 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 543 | 543 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 544 | 544 | INPUT_PORTS_END |
| 545 | 545 | |
| 546 | INPUT_PORTS_START( topgun ) | |
| 546 | static INPUT_PORTS_START( topgun ) | |
| 547 | 547 | VS_CONTROLS( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN ) |
| 548 | 548 | |
| 549 | 549 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 572 | 572 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 573 | 573 | INPUT_PORTS_END |
| 574 | 574 | |
| 575 | INPUT_PORTS_START( platoon ) | |
| 575 | static INPUT_PORTS_START( platoon ) | |
| 576 | 576 | VS_CONTROLS( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN ) |
| 577 | 577 | |
| 578 | 578 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 618 | 618 | Lose Hole -1 -2 |
| 619 | 619 | */ |
| 620 | 620 | |
| 621 | INPUT_PORTS_START( golf ) | |
| 621 | static INPUT_PORTS_START( golf ) | |
| 622 | 622 | VS_CONTROLS_REVERSE( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN ) |
| 623 | 623 | |
| 624 | 624 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 648 | 648 | INPUT_PORTS_END |
| 649 | 649 | |
| 650 | 650 | /* Same as 'golf', but 4 start buttons */ |
| 651 | INPUT_PORTS_START( golf4s ) | |
| 651 | static INPUT_PORTS_START( golf4s ) | |
| 652 | 652 | VS_CONTROLS_REVERSE( IPT_START1, IPT_START3, IPT_START2, IPT_START4 ) |
| 653 | 653 | |
| 654 | 654 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 677 | 677 | PORT_DIPSETTING( 0x80, DEF_STR( Hard ) ) |
| 678 | 678 | INPUT_PORTS_END |
| 679 | 679 | |
| 680 | INPUT_PORTS_START( vstennis ) | |
| 680 | static INPUT_PORTS_START( vstennis ) | |
| 681 | 681 | VS_DUAL_CONTROLS_L /* left side controls */ |
| 682 | 682 | |
| 683 | 683 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 729 | 729 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 730 | 730 | INPUT_PORTS_END |
| 731 | 731 | |
| 732 | INPUT_PORTS_START( wrecking ) | |
| 732 | static INPUT_PORTS_START( wrecking ) | |
| 733 | 733 | VS_DUAL_CONTROLS_L /* left side controls */ |
| 734 | 734 | |
| 735 | 735 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 786 | 786 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 787 | 787 | INPUT_PORTS_END |
| 788 | 788 | |
| 789 | INPUT_PORTS_START( balonfgt ) | |
| 789 | static INPUT_PORTS_START( balonfgt ) | |
| 790 | 790 | VS_DUAL_CONTROLS_L /* left side controls */ |
| 791 | 791 | |
| 792 | 792 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 841 | 841 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 842 | 842 | INPUT_PORTS_END |
| 843 | 843 | |
| 844 | INPUT_PORTS_START( vsmahjng ) | |
| 844 | static INPUT_PORTS_START( vsmahjng ) | |
| 845 | 845 | VS_DUAL_CONTROLS_L /* left side controls */ |
| 846 | 846 | |
| 847 | 847 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 894 | 894 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 895 | 895 | INPUT_PORTS_END |
| 896 | 896 | |
| 897 | INPUT_PORTS_START( vsbball ) | |
| 897 | static INPUT_PORTS_START( vsbball ) | |
| 898 | 898 | VS_DUAL_CONTROLS_L /* left side controls */ |
| 899 | 899 | |
| 900 | 900 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 945 | 945 | PORT_DIPSETTING( 0xc0, "Very Strong" ) |
| 946 | 946 | INPUT_PORTS_END |
| 947 | 947 | |
| 948 | INPUT_PORTS_START( vsbballj ) | |
| 948 | static INPUT_PORTS_START( vsbballj ) | |
| 949 | 949 | VS_DUAL_CONTROLS_L /* left side controls */ |
| 950 | 950 | |
| 951 | 951 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 996 | 996 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 997 | 997 | INPUT_PORTS_END |
| 998 | 998 | |
| 999 | INPUT_PORTS_START( iceclmrj ) | |
| 999 | static INPUT_PORTS_START( iceclmrj ) | |
| 1000 | 1000 | VS_DUAL_CONTROLS_REVERSE_L /* left side controls */ |
| 1001 | 1001 | |
| 1002 | 1002 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 1052 | 1052 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1053 | 1053 | INPUT_PORTS_END |
| 1054 | 1054 | |
| 1055 | INPUT_PORTS_START( drmario ) | |
| 1055 | static INPUT_PORTS_START( drmario ) | |
| 1056 | 1056 | VS_CONTROLS_REVERSE( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN ) |
| 1057 | 1057 | |
| 1058 | 1058 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 1079 | 1079 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1080 | 1080 | INPUT_PORTS_END |
| 1081 | 1081 | |
| 1082 | INPUT_PORTS_START( rbibb ) | |
| 1082 | static INPUT_PORTS_START( rbibb ) | |
| 1083 | 1083 | VS_CONTROLS_REVERSE( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN ) |
| 1084 | 1084 | |
| 1085 | 1085 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 1105 | 1105 | /* 0x60,0xa0,0xe0:again "Wrong 3" */ |
| 1106 | 1106 | INPUT_PORTS_END |
| 1107 | 1107 | |
| 1108 | INPUT_PORTS_START( btlecity ) | |
| 1108 | static INPUT_PORTS_START( btlecity ) | |
| 1109 | 1109 | VS_CONTROLS_REVERSE( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN ) |
| 1110 | 1110 | |
| 1111 | 1111 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 1134 | 1134 | PORT_DIPSETTING( 0xc0, "Wrong 3" ) |
| 1135 | 1135 | INPUT_PORTS_END |
| 1136 | 1136 | |
| 1137 | INPUT_PORTS_START( cluclu ) | |
| 1137 | static INPUT_PORTS_START( cluclu ) | |
| 1138 | 1138 | VS_CONTROLS_REVERSE( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN ) |
| 1139 | 1139 | |
| 1140 | 1140 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 1163 | 1163 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1164 | 1164 | INPUT_PORTS_END |
| 1165 | 1165 | |
| 1166 | INPUT_PORTS_START( cstlevna ) | |
| 1166 | static INPUT_PORTS_START( cstlevna ) | |
| 1167 | 1167 | VS_CONTROLS( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN ) |
| 1168 | 1168 | |
| 1169 | 1169 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 1192 | 1192 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1193 | 1193 | INPUT_PORTS_END |
| 1194 | 1194 | |
| 1195 | INPUT_PORTS_START( iceclimb ) | |
| 1195 | static INPUT_PORTS_START( iceclimb ) | |
| 1196 | 1196 | VS_CONTROLS_REVERSE( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN ) |
| 1197 | 1197 | |
| 1198 | 1198 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 1222 | 1222 | INPUT_PORTS_END |
| 1223 | 1223 | |
| 1224 | 1224 | /* Same as 'iceclimb', but different buttons mapping and input protection */ |
| 1225 | INPUT_PORTS_START( iceclmbj ) | |
| 1225 | static INPUT_PORTS_START( iceclmbj ) | |
| 1226 | 1226 | PORT_START /* IN0 */ |
| 1227 | 1227 | PORT_BIT ( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) /* BUTTON A on a nes */ |
| 1228 | 1228 | PORT_BIT ( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) /* BUTTON B on a nes */ |
| r1238 | r1239 | |
| 1279 | 1279 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1280 | 1280 | INPUT_PORTS_END |
| 1281 | 1281 | |
| 1282 | INPUT_PORTS_START( excitebk ) | |
| 1282 | static INPUT_PORTS_START( excitebk ) | |
| 1283 | 1283 | VS_CONTROLS( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN ) |
| 1284 | 1284 | |
| 1285 | 1285 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 1308 | 1308 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1309 | 1309 | INPUT_PORTS_END |
| 1310 | 1310 | |
| 1311 | INPUT_PORTS_START( jajamaru ) | |
| 1311 | static INPUT_PORTS_START( jajamaru ) | |
| 1312 | 1312 | PORT_START /* IN0 */ |
| 1313 | 1313 | PORT_BIT ( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) /* BUTTON A on a nes */ |
| 1314 | 1314 | PORT_BIT ( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) /* BUTTON B on a nes */ |
| r1238 | r1239 | |
| 1364 | 1364 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1365 | 1365 | INPUT_PORTS_END |
| 1366 | 1366 | |
| 1367 | INPUT_PORTS_START( machridr ) | |
| 1367 | static INPUT_PORTS_START( machridr ) | |
| 1368 | 1368 | VS_CONTROLS( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN ) |
| 1369 | 1369 | |
| 1370 | 1370 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 1393 | 1393 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1394 | 1394 | INPUT_PORTS_END |
| 1395 | 1395 | |
| 1396 | INPUT_PORTS_START( machridj ) | |
| 1396 | static INPUT_PORTS_START( machridj ) | |
| 1397 | 1397 | PORT_START /* IN0 */ |
| 1398 | 1398 | PORT_BIT ( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) /* BUTTON A on a nes */ |
| 1399 | 1399 | PORT_BIT ( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) /* BUTTON B on a nes */ |
| r1238 | r1239 | |
| 1448 | 1448 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1449 | 1449 | INPUT_PORTS_END |
| 1450 | 1450 | |
| 1451 | INPUT_PORTS_START( suprmrio ) | |
| 1451 | static INPUT_PORTS_START( suprmrio ) | |
| 1452 | 1452 | VS_CONTROLS( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN ) |
| 1453 | 1453 | |
| 1454 | 1454 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 1477 | 1477 | PORT_DIPSETTING( 0x00, "4" ) |
| 1478 | 1478 | INPUT_PORTS_END |
| 1479 | 1479 | |
| 1480 | INPUT_PORTS_START( duckhunt ) | |
| 1480 | static INPUT_PORTS_START( duckhunt ) | |
| 1481 | 1481 | VS_ZAPPER |
| 1482 | 1482 | |
| 1483 | 1483 | PORT_START /* IN3 */ |
| r1238 | r1239 | |
| 1511 | 1511 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(50) PORT_KEYDELTA(30) |
| 1512 | 1512 | INPUT_PORTS_END |
| 1513 | 1513 | |
| 1514 | INPUT_PORTS_START( hogalley ) | |
| 1514 | static INPUT_PORTS_START( hogalley ) | |
| 1515 | 1515 | VS_ZAPPER |
| 1516 | 1516 | |
| 1517 | 1517 | PORT_START /* IN3 */ |
| r1238 | r1239 | |
| 1545 | 1545 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(50) PORT_KEYDELTA(30) |
| 1546 | 1546 | INPUT_PORTS_END |
| 1547 | 1547 | |
| 1548 | INPUT_PORTS_START( vsgshoe ) | |
| 1548 | static INPUT_PORTS_START( vsgshoe ) | |
| 1549 | 1549 | VS_ZAPPER |
| 1550 | 1550 | |
| 1551 | 1551 | PORT_START /* IN3 */ |
| r1238 | r1239 | |
| 1580 | 1580 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(50) PORT_KEYDELTA(30) |
| 1581 | 1581 | INPUT_PORTS_END |
| 1582 | 1582 | |
| 1583 | INPUT_PORTS_START( vsfdf ) | |
| 1583 | static INPUT_PORTS_START( vsfdf ) | |
| 1584 | 1584 | VS_ZAPPER |
| 1585 | 1585 | |
| 1586 | 1586 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 1616 | 1616 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(50) PORT_KEYDELTA(30) |
| 1617 | 1617 | INPUT_PORTS_END |
| 1618 | 1618 | |
| 1619 | INPUT_PORTS_START( vstetris ) | |
| 1619 | static INPUT_PORTS_START( vstetris ) | |
| 1620 | 1620 | VS_CONTROLS_REVERSE( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN ) |
| 1621 | 1621 | |
| 1622 | 1622 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 1643 | 1643 | /* 0x60,0xa0,0xe0:again "Wrong 3" */ |
| 1644 | 1644 | INPUT_PORTS_END |
| 1645 | 1645 | |
| 1646 | INPUT_PORTS_START( vsskykid ) | |
| 1646 | static INPUT_PORTS_START( vsskykid ) | |
| 1647 | 1647 | VS_CONTROLS_REVERSE( IPT_START1, IPT_START2, IPT_UNKNOWN, IPT_UNKNOWN ) |
| 1648 | 1648 | |
| 1649 | 1649 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 1669 | 1669 | /* 0x60,0xa0,0xe0:again DEF_STR( Normal ) */ |
| 1670 | 1670 | INPUT_PORTS_END |
| 1671 | 1671 | |
| 1672 | INPUT_PORTS_START( vspinbal ) | |
| 1672 | static INPUT_PORTS_START( vspinbal ) | |
| 1673 | 1673 | VS_CONTROLS( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN ) |
| 1674 | 1674 | |
| 1675 | 1675 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 1699 | 1699 | INPUT_PORTS_END |
| 1700 | 1700 | |
| 1701 | 1701 | /* Same as 'vspinbal', but different buttons mapping */ |
| 1702 | INPUT_PORTS_START( vspinblj ) | |
| 1702 | static INPUT_PORTS_START( vspinblj ) | |
| 1703 | 1703 | PORT_START /* IN0 */ |
| 1704 | 1704 | PORT_BIT ( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) /* Right flipper */ |
| 1705 | 1705 | PORT_BIT ( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) /* Right flipper */ |
| r1238 | r1239 | |
| 1756 | 1756 | PORT_DIPSETTING( 0x80, "Fast" ) |
| 1757 | 1757 | INPUT_PORTS_END |
| 1758 | 1758 | |
| 1759 | INPUT_PORTS_START( goonies ) | |
| 1759 | static INPUT_PORTS_START( goonies ) | |
| 1760 | 1760 | VS_CONTROLS( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN ) |
| 1761 | 1761 | |
| 1762 | 1762 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 1785 | 1785 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1786 | 1786 | INPUT_PORTS_END |
| 1787 | 1787 | |
| 1788 | INPUT_PORTS_START( vssoccer ) | |
| 1788 | static INPUT_PORTS_START( vssoccer ) | |
| 1789 | 1789 | VS_CONTROLS_REVERSE( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN ) |
| 1790 | 1790 | |
| 1791 | 1791 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 1813 | 1813 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1814 | 1814 | INPUT_PORTS_END |
| 1815 | 1815 | |
| 1816 | INPUT_PORTS_START( vsgradus ) | |
| 1816 | static INPUT_PORTS_START( vsgradus ) | |
| 1817 | 1817 | VS_CONTROLS_REVERSE( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN ) |
| 1818 | 1818 | |
| 1819 | 1819 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 1842 | 1842 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1843 | 1843 | INPUT_PORTS_END |
| 1844 | 1844 | |
| 1845 | INPUT_PORTS_START( vsslalom ) | |
| 1845 | static INPUT_PORTS_START( vsslalom ) | |
| 1846 | 1846 | VS_CONTROLS( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN ) |
| 1847 | 1847 | |
| 1848 | 1848 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 1871 | 1871 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1872 | 1872 | INPUT_PORTS_END |
| 1873 | 1873 | |
| 1874 | INPUT_PORTS_START( starlstr ) | |
| 1874 | static INPUT_PORTS_START( starlstr ) | |
| 1875 | 1875 | VS_DUAL_CONTROLS_L /* left side controls */ |
| 1876 | 1876 | |
| 1877 | 1877 | PORT_START |
| r1238 | r1239 | |
| 1900 | 1900 | VS_DUAL_CONTROLS_R /* Right Side Controls */ |
| 1901 | 1901 | INPUT_PORTS_END |
| 1902 | 1902 | |
| 1903 | INPUT_PORTS_START( tkoboxng ) | |
| 1903 | static INPUT_PORTS_START( tkoboxng ) | |
| 1904 | 1904 | VS_CONTROLS( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN ) |
| 1905 | 1905 | |
| 1906 | 1906 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 1929 | 1929 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1930 | 1930 | INPUT_PORTS_END |
| 1931 | 1931 | |
| 1932 | INPUT_PORTS_START( bnglngby ) | |
| 1932 | static INPUT_PORTS_START( bnglngby ) | |
| 1933 | 1933 | PORT_START /* IN0 */ |
| 1934 | 1934 | PORT_BIT ( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) /* BUTTON A on a nes */ |
| 1935 | 1935 | PORT_BIT ( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) /* BUTTON B on a nes */ |
| r1238 | r1239 | |
| 1984 | 1984 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1985 | 1985 | INPUT_PORTS_END |
| 1986 | 1986 | |
| 1987 | INPUT_PORTS_START( mightybj ) | |
| 1987 | static INPUT_PORTS_START( mightybj ) | |
| 1988 | 1988 | VS_CONTROLS( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN ) |
| 1989 | 1989 | |
| 1990 | 1990 | PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */ |
| r1238 | r1239 | |
| 2013 | 2013 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 2014 | 2014 | INPUT_PORTS_END |
| 2015 | 2015 | |
| 2016 | INPUT_PORTS_START( supxevs ) | |
| 2016 | static INPUT_PORTS_START( supxevs ) | |
| 2017 | 2017 | PORT_START /* IN0 */ |
| 2018 | 2018 | PORT_BIT ( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) /* BUTTON A on a nes */ |
| 2019 | 2019 | PORT_BIT ( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) /* BUTTON B on a nes */ |
| r1238 | r1239 | |
|---|---|---|
| 178 | 178 | |
| 179 | 179 | /* Inputs Ports **************************************************************/ |
| 180 | 180 | |
| 181 | INPUT_PORTS_START( xyonix ) | |
| 181 | static INPUT_PORTS_START( xyonix ) | |
| 182 | 182 | PORT_START |
| 183 | 183 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 184 | 184 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 256 | 256 | * |
| 257 | 257 | *************************************/ |
| 258 | 258 | |
| 259 | INPUT_PORTS_START( victory ) | |
| 259 | static INPUT_PORTS_START( victory ) | |
| 260 | 260 | PORT_START /* $00-$03 = SW2 */ |
| 261 | 261 | PORT_DIPNAME( 0x07, 0x00, "????" ) |
| 262 | 262 | PORT_DIPSETTING( 0x00, "0" ) |
| r1238 | r1239 | |
|---|---|---|
| 92 | 92 | |
| 93 | 93 | /* Input Ports */ |
| 94 | 94 | |
| 95 | INPUT_PORTS_START( 1943 ) | |
| 95 | static INPUT_PORTS_START( 1943 ) | |
| 96 | 96 | PORT_START_TAG("IN0") |
| 97 | 97 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 98 | 98 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 377 | 377 | |
| 378 | 378 | /**********************************************************************************/ |
| 379 | 379 | |
| 380 | INPUT_PORTS_START( edrandy ) | |
| 380 | static INPUT_PORTS_START( edrandy ) | |
| 381 | 381 | PORT_START |
| 382 | 382 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 383 | 383 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 451 | 451 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 452 | 452 | INPUT_PORTS_END |
| 453 | 453 | |
| 454 | INPUT_PORTS_START( cninja ) | |
| 454 | static INPUT_PORTS_START( cninja ) | |
| 455 | 455 | PORT_START |
| 456 | 456 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 457 | 457 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 525 | 525 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 526 | 526 | INPUT_PORTS_END |
| 527 | 527 | |
| 528 | INPUT_PORTS_START( cninjau ) | |
| 528 | static INPUT_PORTS_START( cninjau ) | |
| 529 | 529 | PORT_START |
| 530 | 530 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 531 | 531 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 599 | 599 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 600 | 600 | INPUT_PORTS_END |
| 601 | 601 | |
| 602 | INPUT_PORTS_START( robocop2 ) | |
| 602 | static INPUT_PORTS_START( robocop2 ) | |
| 603 | 603 | PORT_START |
| 604 | 604 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 605 | 605 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 673 | 673 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 674 | 674 | INPUT_PORTS_END |
| 675 | 675 | |
| 676 | INPUT_PORTS_START( mutantf ) | |
| 676 | static INPUT_PORTS_START( mutantf ) | |
| 677 | 677 | PORT_START |
| 678 | 678 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 679 | 679 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 288 | 288 | |
| 289 | 289 | |
| 290 | 290 | |
| 291 | INPUT_PORTS_START( pacland ) | |
| 291 | static INPUT_PORTS_START( pacland ) | |
| 292 | 292 | PORT_START /* DSWA */ |
| 293 | 293 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 294 | 294 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Lives ) ) |
| r1238 | r1239 | |
|---|---|---|
| 551 | 551 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ |
| 552 | 552 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 553 | 553 | |
| 554 | INPUT_PORTS_START( hotgmck ) | |
| 554 | static INPUT_PORTS_START( hotgmck ) | |
| 555 | 555 | PORT_START_TAG("IN0") /* fake player 1 controls 1st bank */ |
| 556 | 556 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_A ) |
| 557 | 557 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_E ) |
| r1238 | r1239 | |
| 652 | 652 | UNUSED_PORT |
| 653 | 653 | INPUT_PORTS_END |
| 654 | 654 | |
| 655 | INPUT_PORTS_START( loderndf ) | |
| 655 | static INPUT_PORTS_START( loderndf ) | |
| 656 | 656 | PORT_START_TAG("IN0") /* player 1 controls */ |
| 657 | 657 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 658 | 658 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 727 | 727 | INPUT_PORTS_END |
| 728 | 728 | |
| 729 | 729 | /* unused inputs also act as duplicate buttons */ |
| 730 | INPUT_PORTS_START( hotdebut ) | |
| 730 | static INPUT_PORTS_START( hotdebut ) | |
| 731 | 731 | PORT_START_TAG("IN0") /* player 1 controls */ |
| 732 | 732 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 733 | 733 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 331 | 331 | |
| 332 | 332 | |
| 333 | 333 | |
| 334 | INPUT_PORTS_START( wardner ) | |
| 334 | static INPUT_PORTS_START( wardner ) | |
| 335 | 335 | WARDNER_SYSTEM_INPUTS |
| 336 | 336 | WARDNER_PLAYER_INPUT( 1 ) |
| 337 | 337 | WARDNER_PLAYER_INPUT( 2 ) |
| r1238 | r1239 | |
| 363 | 363 | WARDNER_DSW_B |
| 364 | 364 | INPUT_PORTS_END |
| 365 | 365 | |
| 366 | INPUT_PORTS_START( pyros ) | |
| 366 | static INPUT_PORTS_START( pyros ) | |
| 367 | 367 | WARDNER_SYSTEM_INPUTS |
| 368 | 368 | WARDNER_PLAYER_INPUT( 1 ) |
| 369 | 369 | WARDNER_PLAYER_INPUT( 2 ) |
| r1238 | r1239 | |
| 393 | 393 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 394 | 394 | INPUT_PORTS_END |
| 395 | 395 | |
| 396 | INPUT_PORTS_START( wardnerj ) | |
| 396 | static INPUT_PORTS_START( wardnerj ) | |
| 397 | 397 | WARDNER_SYSTEM_INPUTS |
| 398 | 398 | WARDNER_PLAYER_INPUT( 1 ) |
| 399 | 399 | WARDNER_PLAYER_INPUT( 2 ) |
| r1238 | r1239 | |
|---|---|---|
| 128 | 128 | ADDRESS_MAP_END |
| 129 | 129 | |
| 130 | 130 | |
| 131 | INPUT_PORTS_START( jcross ) | |
| 131 | static INPUT_PORTS_START( jcross ) | |
| 132 | 132 | PORT_START_TAG("IN0") |
| 133 | 133 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 134 | 134 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 326 | 326 | AM_RANGE(0xffc0, 0xffff) AM_READ(spc_ipl_r) |
| 327 | 327 | ADDRESS_MAP_END |
| 328 | 328 | |
| 329 | INPUT_PORTS_START( snes ) | |
| 329 | static INPUT_PORTS_START( snes ) | |
| 330 | 330 | PORT_START /* IN 0 : Joypad 1 - L */ |
| 331 | 331 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("P1 Button A") PORT_PLAYER(1) |
| 332 | 332 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("P1 Button X") PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 24 | 24 | |
| 25 | 25 | READ8_HANDLER( rollrace_bkgpen_r ); |
| 26 | 26 | |
| 27 | READ8_HANDLER( ra_fake_d800_r ) | |
| 27 | static READ8_HANDLER( ra_fake_d800_r ) | |
| 28 | 28 | { |
| 29 | 29 | return 0x51; |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | WRITE8_HANDLER( ra_fake_d800_w ) | |
| 32 | static WRITE8_HANDLER( ra_fake_d800_w ) | |
| 33 | 33 | { |
| 34 | 34 | /* logerror("d900: %02X\n",data);*/ |
| 35 | 35 | } |
| r1238 | r1239 | |
| 91 | 91 | ADDRESS_MAP_END |
| 92 | 92 | |
| 93 | 93 | |
| 94 | INPUT_PORTS_START( rollrace ) | |
| 94 | static INPUT_PORTS_START( rollrace ) | |
| 95 | 95 | PORT_START |
| 96 | 96 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 97 | 97 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 205 | 205 | |
| 206 | 206 | |
| 207 | 207 | |
| 208 | INPUT_PORTS_START( mirage ) | |
| 208 | static INPUT_PORTS_START( mirage ) | |
| 209 | 209 | PORT_START_TAG("SYSTEM_IN") |
| 210 | 210 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 211 | 211 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 700 | 700 | * |
| 701 | 701 | *************************************/ |
| 702 | 702 | |
| 703 | INPUT_PORTS_START( missile ) | |
| 703 | static INPUT_PORTS_START( missile ) | |
| 704 | 704 | PORT_START /* IN0 */ |
| 705 | 705 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_COCKTAIL |
| 706 | 706 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL |
| r1238 | r1239 | |
| 782 | 782 | INPUT_PORTS_END |
| 783 | 783 | |
| 784 | 784 | |
| 785 | INPUT_PORTS_START( suprmatk ) | |
| 785 | static INPUT_PORTS_START( suprmatk ) | |
| 786 | 786 | PORT_START /* IN0 */ |
| 787 | 787 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_COCKTAIL |
| 788 | 788 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL |
| r1238 | r1239 | |
|---|---|---|
| 180 | 180 | AM_RANGE(0x8000, 0xffff) AM_WRITE(MWA8_ROM) /* ROM */ |
| 181 | 181 | ADDRESS_MAP_END |
| 182 | 182 | |
| 183 | INPUT_PORTS_START( ddribble ) | |
| 183 | static INPUT_PORTS_START( ddribble ) | |
| 184 | 184 | PORT_START /* PLAYER 1 INPUTS */ |
| 185 | 185 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 186 | 186 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 206 | 206 | AM_RANGE(0xd800, 0xdfff) AM_WRITE(popper_sharedram_w) |
| 207 | 207 | ADDRESS_MAP_END |
| 208 | 208 | |
| 209 | INPUT_PORTS_START( popper ) | |
| 209 | static INPUT_PORTS_START( popper ) | |
| 210 | 210 | PORT_START_TAG("IN0") |
| 211 | 211 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 212 | 212 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 ) |
| r1238 | r1239 | |
|---|---|---|
| 199 | 199 | ADDRESS_MAP_END |
| 200 | 200 | |
| 201 | 201 | |
| 202 | INPUT_PORTS_START( ladyfrog ) | |
| 202 | static INPUT_PORTS_START( ladyfrog ) | |
| 203 | 203 | PORT_START |
| 204 | 204 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) |
| 205 | 205 | PORT_DIPSETTING( 0x00, "4" ) |
| r1238 | r1239 | |
|---|---|---|
| 45 | 45 | ADDRESS_MAP_END |
| 46 | 46 | |
| 47 | 47 | |
| 48 | INPUT_PORTS_START( go2000 ) | |
| 48 | static INPUT_PORTS_START( go2000 ) | |
| 49 | 49 | PORT_START /* 16bit */ |
| 50 | 50 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) // continue |
| 51 | 51 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
|---|---|---|
| 186 | 186 | static UINT8 prot_param[8]; |
| 187 | 187 | static int coin; |
| 188 | 188 | static int complete; |
| 189 | int lives[2]; | |
| 189 | static int lives[2]; | |
| 190 | 190 | |
| 191 | enum | |
| 191 | static enum | |
| 192 | 192 | { |
| 193 | 193 | eDJBOY_ATTRACT_HIGHSCORE, |
| 194 | 194 | eDJBOY_ATTRACT_TITLE, |
| r1238 | r1239 | |
| 960 | 960 | ROM_LOAD( "bs-204.5j", 0x000000, 0x40000, CRC(510244f0) SHA1(afb502d46d268ad9cd209ae1da72c50e4e785626) ) |
| 961 | 961 | ROM_END |
| 962 | 962 | |
| 963 | INPUT_PORTS_START( djboy ) | |
| 963 | static INPUT_PORTS_START( djboy ) | |
| 964 | 964 | PORT_START |
| 965 | 965 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 966 | 966 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 240 | 240 | ADDRESS_MAP_END |
| 241 | 241 | |
| 242 | 242 | |
| 243 | INPUT_PORTS_START( sidearms ) | |
| 243 | static INPUT_PORTS_START( sidearms ) | |
| 244 | 244 | PORT_START_TAG("IN0") |
| 245 | 245 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 246 | 246 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 327 | 327 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK ) /* not sure, but likely */ |
| 328 | 328 | INPUT_PORTS_END |
| 329 | 329 | |
| 330 | INPUT_PORTS_START( turtship ) | |
| 330 | static INPUT_PORTS_START( turtship ) | |
| 331 | 331 | PORT_START_TAG("IN0") |
| 332 | 332 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 333 | 333 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 408 | 408 | /* 0xc0 1 Coin/1 Credit */ |
| 409 | 409 | INPUT_PORTS_END |
| 410 | 410 | |
| 411 | INPUT_PORTS_START( dyger ) | |
| 411 | static INPUT_PORTS_START( dyger ) | |
| 412 | 412 | PORT_START_TAG("IN0") |
| 413 | 413 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 414 | 414 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* seems to be 1-player only */ |
| r1238 | r1239 | |
| 482 | 482 | /* 0xc0 1 Coin/1 Credit */ |
| 483 | 483 | INPUT_PORTS_END |
| 484 | 484 | |
| 485 | INPUT_PORTS_START( whizz ) | |
| 485 | static INPUT_PORTS_START( whizz ) | |
| 486 | 486 | PORT_START_TAG("DSW0") /* 8-bit */ |
| 487 | 487 | PORT_DIPNAME( 0x07, 0x04, DEF_STR( Difficulty ) ) |
| 488 | 488 | PORT_DIPSETTING( 0x07, "0 (Easiest)" ) |
| r1238 | r1239 | |
|---|---|---|
| 604 | 604 | |
| 605 | 605 | /**************************************************************************/ |
| 606 | 606 | |
| 607 | INPUT_PORTS_START( taitox_generic ) | |
| 607 | static INPUT_PORTS_START( taitox_generic ) | |
| 608 | 608 | /* The Dip Switches will be filled for each game */ |
| 609 | 609 | PORT_START_TAG("DSWA") |
| 610 | 610 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| r1238 | r1239 | |
| 675 | 675 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 676 | 676 | INPUT_PORTS_END |
| 677 | 677 | |
| 678 | INPUT_PORTS_START( superman ) | |
| 678 | static INPUT_PORTS_START( superman ) | |
| 679 | 679 | PORT_INCLUDE( taitox_generic ) |
| 680 | 680 | |
| 681 | 681 | /* 0x500000 (low) and 0x500002 (high) -> 0xf01c4a ($1c4a,A5) */ |
| r1238 | r1239 | |
| 703 | 703 | TAITO_JOY_UDLR_2_BUTTONS_START( 2 ) |
| 704 | 704 | INPUT_PORTS_END |
| 705 | 705 | |
| 706 | INPUT_PORTS_START( suprmanj ) | |
| 706 | static INPUT_PORTS_START( suprmanj ) | |
| 707 | 707 | PORT_INCLUDE( superman ) |
| 708 | 708 | |
| 709 | 709 | PORT_MODIFY("DSWA") |
| 710 | 710 | TAITO_COINAGE_JAPAN_OLD_LOC(SWA) |
| 711 | 711 | INPUT_PORTS_END |
| 712 | 712 | |
| 713 | INPUT_PORTS_START( twinhawk ) | |
| 713 | static INPUT_PORTS_START( twinhawk ) | |
| 714 | 714 | PORT_INCLUDE( taitox_generic ) |
| 715 | 715 | |
| 716 | 716 | /* 0x500000 (low) and 0x500002 (high) -> 0xf001b8 */ |
| r1238 | r1239 | |
| 743 | 743 | TAITO_JOY_UDLR_2_BUTTONS_START( 2 ) |
| 744 | 744 | INPUT_PORTS_END |
| 745 | 745 | |
| 746 | INPUT_PORTS_START( twinhwku ) | |
| 746 | static INPUT_PORTS_START( twinhwku ) | |
| 747 | 747 | PORT_INCLUDE( twinhawk ) |
| 748 | 748 | |
| 749 | 749 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 754 | 754 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_1C ) ) |
| 755 | 755 | INPUT_PORTS_END |
| 756 | 756 | |
| 757 | INPUT_PORTS_START( daisenpu ) | |
| 757 | static INPUT_PORTS_START( daisenpu ) | |
| 758 | 758 | PORT_INCLUDE( twinhawk ) |
| 759 | 759 | |
| 760 | 760 | /* 0x500000 (low) and 0x500002 (high) -> 0xf001a4 */ |
| r1238 | r1239 | |
| 771 | 771 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) |
| 772 | 772 | INPUT_PORTS_END |
| 773 | 773 | |
| 774 | INPUT_PORTS_START( gigandes ) | |
| 774 | static INPUT_PORTS_START( gigandes ) | |
| 775 | 775 | PORT_INCLUDE( taitox_generic ) |
| 776 | 776 | |
| 777 | 777 | /* 0x500000 (low) and 0x500002 (high) -> 0xf00a3c */ |
| r1238 | r1239 | |
| 829 | 829 | TAITO_JOY_UDLR_2_BUTTONS_START( 2 ) |
| 830 | 830 | INPUT_PORTS_END |
| 831 | 831 | |
| 832 | INPUT_PORTS_START( kyustrkr ) | |
| 832 | static INPUT_PORTS_START( kyustrkr ) | |
| 833 | 833 | PORT_INCLUDE( taitox_generic ) |
| 834 | 834 | |
| 835 | 835 | /* 0x500000 (low) and 0x500002 (high) -> 0xf028fe */ |
| r1238 | r1239 | |
| 874 | 874 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 875 | 875 | INPUT_PORTS_END |
| 876 | 876 | |
| 877 | INPUT_PORTS_START( ballbros ) | |
| 877 | static INPUT_PORTS_START( ballbros ) | |
| 878 | 878 | PORT_INCLUDE( taitox_generic ) |
| 879 | 879 | |
| 880 | 880 | /* 0x500000 (low) and 0x500002 (high) -> 0xf028fe */ |
| r1238 | r1239 | |
|---|---|---|
| 256 | 256 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL\ |
| 257 | 257 | PORT_BIT( 0xfc, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 258 | 258 | |
| 259 | INPUT_PORTS_START( jack ) | |
| 259 | static INPUT_PORTS_START( jack ) | |
| 260 | 260 | PORT_START_TAG("DSW1") |
| 261 | 261 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_B ) ) |
| 262 | 262 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 273 | 273 | INPUT_PORTS_END |
| 274 | 274 | |
| 275 | 275 | /* Same as 'jack', but different coinage */ |
| 276 | INPUT_PORTS_START( jack2 ) | |
| 276 | static INPUT_PORTS_START( jack2 ) | |
| 277 | 277 | PORT_START_TAG("DSW1") |
| 278 | 278 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_B ) ) |
| 279 | 279 | PORT_DIPSETTING( 0x03, DEF_STR( 4C_3C ) ) |
| r1238 | r1239 | |
| 290 | 290 | INPUT_PORTS_END |
| 291 | 291 | |
| 292 | 292 | /* Same as 'jack', but another different coinage */ |
| 293 | INPUT_PORTS_START( jack3 ) | |
| 293 | static INPUT_PORTS_START( jack3 ) | |
| 294 | 294 | PORT_START /* DSW1 */ |
| 295 | 295 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_B ) ) |
| 296 | 296 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| r1238 | r1239 | |
| 307 | 307 | INPUT_PORTS_END |
| 308 | 308 | |
| 309 | 309 | /* Same as 'jack', but different "Bullets per Bean Collected" and "Difficulty" Dip Switches */ |
| 310 | INPUT_PORTS_START( treahunt ) | |
| 310 | static INPUT_PORTS_START( treahunt ) | |
| 311 | 311 | PORT_START_TAG("DSW1") |
| 312 | 312 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_B ) ) |
| 313 | 313 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 334 | 334 | COMMON_REMAINDER2 |
| 335 | 335 | INPUT_PORTS_END |
| 336 | 336 | |
| 337 | INPUT_PORTS_START( zzyzzyxx ) | |
| 337 | static INPUT_PORTS_START( zzyzzyxx ) | |
| 338 | 338 | PORT_START_TAG("DSW1") |
| 339 | 339 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) |
| 340 | 340 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 406 | 406 | PORT_BIT( 0xfe, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 407 | 407 | INPUT_PORTS_END |
| 408 | 408 | |
| 409 | INPUT_PORTS_START( freeze ) | |
| 409 | static INPUT_PORTS_START( freeze ) | |
| 410 | 410 | PORT_START_TAG("DSW1") |
| 411 | 411 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Flip_Screen ) ) |
| 412 | 412 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 474 | 474 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 475 | 475 | INPUT_PORTS_END |
| 476 | 476 | |
| 477 | INPUT_PORTS_START( sucasino ) | |
| 477 | static INPUT_PORTS_START( sucasino ) | |
| 478 | 478 | PORT_START_TAG("DSW1") |
| 479 | 479 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) |
| 480 | 480 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| r1238 | r1239 | |
| 525 | 525 | PORT_BIT( 0xfe, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 526 | 526 | INPUT_PORTS_END |
| 527 | 527 | |
| 528 | INPUT_PORTS_START( tripool ) | |
| 528 | static INPUT_PORTS_START( tripool ) | |
| 529 | 529 | PORT_START_TAG("DSW1") |
| 530 | 530 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) |
| 531 | 531 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 609 | 609 | PORT_BIT( 0xfc, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 610 | 610 | INPUT_PORTS_END |
| 611 | 611 | |
| 612 | INPUT_PORTS_START( joinem ) | |
| 612 | static INPUT_PORTS_START( joinem ) | |
| 613 | 613 | PORT_START |
| 614 | 614 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) ) |
| 615 | 615 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 683 | 683 | PORT_SERVICE( 0x80, IP_ACTIVE_HIGH ) |
| 684 | 684 | INPUT_PORTS_END |
| 685 | 685 | |
| 686 | INPUT_PORTS_START( loverboy ) | |
| 686 | static INPUT_PORTS_START( loverboy ) | |
| 687 | 687 | PORT_START |
| 688 | 688 | PORT_DIPNAME( 0x0f, 0x00, DEF_STR( Coin_A ) ) |
| 689 | 689 | PORT_DIPSETTING( 0x0c, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
| 772 | 772 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 773 | 773 | INPUT_PORTS_END |
| 774 | 774 | |
| 775 | INPUT_PORTS_START( striv ) | |
| 775 | static INPUT_PORTS_START( striv ) | |
| 776 | 776 | PORT_START_TAG("DSW1") |
| 777 | 777 | PORT_DIPNAME( 0x02, 0x00, "Monitor" ) |
| 778 | 778 | PORT_DIPSETTING( 0x02, "Horizontal" ) |
| r1238 | r1239 | |
|---|---|---|
| 171 | 171 | |
| 172 | 172 | /******************************************************************************/ |
| 173 | 173 | |
| 174 | INPUT_PORTS_START( tumblep ) | |
| 174 | static INPUT_PORTS_START( tumblep ) | |
| 175 | 175 | PORT_START /* Player 1 controls */ |
| 176 | 176 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 177 | 177 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 115 | 115 | |
| 116 | 116 | |
| 117 | 117 | |
| 118 | INPUT_PORTS_START( dogfgt ) | |
| 118 | static INPUT_PORTS_START( dogfgt ) | |
| 119 | 119 | PORT_START /* IN0 */ |
| 120 | 120 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 121 | 121 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 74 | 74 | |
| 75 | 75 | |
| 76 | 76 | |
| 77 | INPUT_PORTS_START( dietgo ) | |
| 77 | static INPUT_PORTS_START( dietgo ) | |
| 78 | 78 | PORT_START /* Verified as 4 bit input port only */ |
| 79 | 79 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 80 | 80 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 588 | 588 | |
| 589 | 589 | |
| 590 | 590 | |
| 591 | INPUT_PORTS_START( spaceskr ) | |
| 591 | static INPUT_PORTS_START( spaceskr ) | |
| 592 | 592 | COMMON_IN0 |
| 593 | 593 | COMMON_IN1 |
| 594 | 594 | COMMON_IN2 |
| r1238 | r1239 | |
| 651 | 651 | PORT_DIPSETTING( 0x00, "A only" ) |
| 652 | 652 | INPUT_PORTS_END |
| 653 | 653 | |
| 654 | INPUT_PORTS_START( spacecr ) | |
| 654 | static INPUT_PORTS_START( spacecr ) | |
| 655 | 655 | PORT_START_TAG("IN0") |
| 656 | 656 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 657 | 657 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| r1238 | r1239 | |
| 734 | 734 | PORT_DIPSETTING( 0x00, "A only" ) |
| 735 | 735 | INPUT_PORTS_END |
| 736 | 736 | |
| 737 | INPUT_PORTS_START( junglek ) | |
| 737 | static INPUT_PORTS_START( junglek ) | |
| 738 | 738 | PORT_START_TAG("IN0") |
| 739 | 739 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 740 | 740 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| r1238 | r1239 | |
| 813 | 813 | PORT_DIPSETTING( 0x00, "A only" ) |
| 814 | 814 | INPUT_PORTS_END |
| 815 | 815 | |
| 816 | INPUT_PORTS_START( piratpet ) | |
| 816 | static INPUT_PORTS_START( piratpet ) | |
| 817 | 817 | COMMON_IN0 |
| 818 | 818 | COMMON_IN1 //Button 2 skips levels when Debug mode is on |
| 819 | 819 | COMMON_IN2 |
| r1238 | r1239 | |
| 874 | 874 | PORT_DIPSETTING( 0x00, "A only" ) |
| 875 | 875 | INPUT_PORTS_END |
| 876 | 876 | |
| 877 | INPUT_PORTS_START( alpine ) | |
| 877 | static INPUT_PORTS_START( alpine ) | |
| 878 | 878 | PORT_START_TAG("IN0") |
| 879 | 879 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL |
| 880 | 880 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL |
| r1238 | r1239 | |
| 959 | 959 | PORT_DIPSETTING( 0x00, "A only" ) |
| 960 | 960 | INPUT_PORTS_END |
| 961 | 961 | |
| 962 | INPUT_PORTS_START( alpinea ) | |
| 962 | static INPUT_PORTS_START( alpinea ) | |
| 963 | 963 | PORT_START_TAG("IN0") |
| 964 | 964 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL |
| 965 | 965 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL |
| r1238 | r1239 | |
| 1042 | 1042 | PORT_DIPSETTING( 0x00, "A only" ) |
| 1043 | 1043 | INPUT_PORTS_END |
| 1044 | 1044 | |
| 1045 | INPUT_PORTS_START( timetunl ) | |
| 1045 | static INPUT_PORTS_START( timetunl ) | |
| 1046 | 1046 | PORT_START_TAG("IN0") |
| 1047 | 1047 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1048 | 1048 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 1125 | 1125 | PORT_DIPSETTING( 0x00, "A only" ) |
| 1126 | 1126 | INPUT_PORTS_END |
| 1127 | 1127 | |
| 1128 | INPUT_PORTS_START( wwestern ) | |
| 1128 | static INPUT_PORTS_START( wwestern ) | |
| 1129 | 1129 | WWEST_INPUT1 |
| 1130 | 1130 | |
| 1131 | 1131 | PORT_START_TAG("IN2") |
| r1238 | r1239 | |
| 1190 | 1190 | PORT_DIPSETTING( 0x00, "A only" ) |
| 1191 | 1191 | INPUT_PORTS_END |
| 1192 | 1192 | |
| 1193 | INPUT_PORTS_START( frontlin ) | |
| 1193 | static INPUT_PORTS_START( frontlin ) | |
| 1194 | 1194 | WWEST_INPUT1 |
| 1195 | 1195 | |
| 1196 | 1196 | PORT_START_TAG("IN2") |
| r1238 | r1239 | |
| 1257 | 1257 | PORT_DIPSETTING( 0x00, "A only" ) |
| 1258 | 1258 | INPUT_PORTS_END |
| 1259 | 1259 | |
| 1260 | INPUT_PORTS_START( elevator ) | |
| 1260 | static INPUT_PORTS_START( elevator ) | |
| 1261 | 1261 | COMMON_IN0 |
| 1262 | 1262 | COMMON_IN1 |
| 1263 | 1263 | COMMON_IN2 |
| r1238 | r1239 | |
| 1320 | 1320 | PORT_DIPSETTING( 0x00, "A only" ) |
| 1321 | 1321 | INPUT_PORTS_END |
| 1322 | 1322 | |
| 1323 | INPUT_PORTS_START( tinstar ) | |
| 1323 | static INPUT_PORTS_START( tinstar ) | |
| 1324 | 1324 | WWEST_INPUT1 |
| 1325 | 1325 | |
| 1326 | 1326 | PORT_START_TAG("IN2") |
| r1238 | r1239 | |
| 1404 | 1404 | PORT_DIPSETTING( 0x00, "A only" ) |
| 1405 | 1405 | INPUT_PORTS_END |
| 1406 | 1406 | |
| 1407 | INPUT_PORTS_START( waterski ) | |
| 1407 | static INPUT_PORTS_START( waterski ) | |
| 1408 | 1408 | PORT_START_TAG("IN0") |
| 1409 | 1409 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 1410 | 1410 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| r1238 | r1239 | |
| 1487 | 1487 | PORT_DIPSETTING( 0x00, "A only" ) |
| 1488 | 1488 | INPUT_PORTS_END |
| 1489 | 1489 | |
| 1490 | INPUT_PORTS_START( bioatack ) | |
| 1490 | static INPUT_PORTS_START( bioatack ) | |
| 1491 | 1491 | PORT_START_TAG("IN0") |
| 1492 | 1492 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 1493 | 1493 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| r1238 | r1239 | |
| 1575 | 1575 | PORT_DIPSETTING( 0x00, "A only" ) |
| 1576 | 1576 | INPUT_PORTS_END |
| 1577 | 1577 | |
| 1578 | INPUT_PORTS_START( sfposeid ) | |
| 1578 | static INPUT_PORTS_START( sfposeid ) | |
| 1579 | 1579 | COMMON_IN0 |
| 1580 | 1580 | COMMON_IN1 |
| 1581 | 1581 | COMMON_IN2 |
| r1238 | r1239 | |
| 1640 | 1640 | PORT_DIPSETTING( 0x00, "A only" ) |
| 1641 | 1641 | INPUT_PORTS_END |
| 1642 | 1642 | |
| 1643 | INPUT_PORTS_START( hwrace ) | |
| 1643 | static INPUT_PORTS_START( hwrace ) | |
| 1644 | 1644 | COMMON_IN0 |
| 1645 | 1645 | COMMON_IN1 |
| 1646 | 1646 | COMMON_IN2 |
| r1238 | r1239 | |
| 1703 | 1703 | PORT_DIPSETTING( 0x00, "A only" ) |
| 1704 | 1704 | INPUT_PORTS_END |
| 1705 | 1705 | |
| 1706 | INPUT_PORTS_START( kikstart ) | |
| 1706 | static INPUT_PORTS_START( kikstart ) | |
| 1707 | 1707 | PORT_START_TAG("IN0") |
| 1708 | 1708 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 1709 | 1709 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| r1238 | r1239 | |
|---|---|---|
| 198 | 198 | ADDRESS_MAP_END |
| 199 | 199 | |
| 200 | 200 | |
| 201 | INPUT_PORTS_START( vigilant ) | |
| 201 | static INPUT_PORTS_START( vigilant ) | |
| 202 | 202 | PORT_START_TAG("IN0") |
| 203 | 203 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 204 | 204 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 286 | 286 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 287 | 287 | INPUT_PORTS_END |
| 288 | 288 | |
| 289 | INPUT_PORTS_START( kikcubic ) | |
| 289 | static INPUT_PORTS_START( kikcubic ) | |
| 290 | 290 | PORT_START_TAG("IN0") |
| 291 | 291 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 292 | 292 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 373 | 373 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 374 | 374 | INPUT_PORTS_END |
| 375 | 375 | |
| 376 | INPUT_PORTS_START( buccanrs ) | |
| 376 | static INPUT_PORTS_START( buccanrs ) | |
| 377 | 377 | PORT_START_TAG("IN0") |
| 378 | 378 | PORT_SERVICE( 0x2f, IP_ACTIVE_LOW ) // any of these bits while booting will enable service mode |
| 379 | 379 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
| 453 | 453 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 454 | 454 | INPUT_PORTS_END |
| 455 | 455 | |
| 456 | INPUT_PORTS_START( buccanra ) | |
| 456 | static INPUT_PORTS_START( buccanra ) | |
| 457 | 457 | PORT_INCLUDE( buccanrs ) |
| 458 | 458 | |
| 459 | 459 | PORT_MODIFY("IN0") /* this port is reversed on this set.. */ |
| r1238 | r1239 | |
|---|---|---|
| 241 | 241 | AM_RANGE(0x03, 0x03) AM_WRITE(AY8910_control_port_0_w) |
| 242 | 242 | ADDRESS_MAP_END |
| 243 | 243 | |
| 244 | INPUT_PORTS_START( kingofb ) | |
| 244 | static INPUT_PORTS_START( kingofb ) | |
| 245 | 245 | PORT_START /* DSW0 - 0xfc01 */ |
| 246 | 246 | PORT_DIPNAME( 0x03, 0x01, "Rest Up Points" ) |
| 247 | 247 | PORT_DIPSETTING( 0x02, "70000" ) |
| r1238 | r1239 | |
| 332 | 332 | INPUT_PORTS_END |
| 333 | 333 | |
| 334 | 334 | /* Ring King */ |
| 335 | INPUT_PORTS_START( ringking ) | |
| 335 | static INPUT_PORTS_START( ringking ) | |
| 336 | 336 | PORT_START /* DSW0 - 0xe000 */ |
| 337 | 337 | PORT_DIPNAME( 0x03, 0x03, "Replay" ) |
| 338 | 338 | PORT_DIPSETTING( 0x01, "70000" ) |
| r1238 | r1239 | |
|---|---|---|
| 258 | 258 | PORT_DIPSETTING( 0x01, "5" ) \ |
| 259 | 259 | PORT_DIPSETTING( 0x00, "6" ) |
| 260 | 260 | |
| 261 | INPUT_PORTS_START( galivan ) | |
| 261 | static INPUT_PORTS_START( galivan ) | |
| 262 | 262 | PORT_START_TAG("IN0") |
| 263 | 263 | NIHON_JOYSTICK(1) |
| 264 | 264 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 298 | 298 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 299 | 299 | INPUT_PORTS_END |
| 300 | 300 | |
| 301 | INPUT_PORTS_START( dangar ) | |
| 301 | static INPUT_PORTS_START( dangar ) | |
| 302 | 302 | PORT_START_TAG("IN0") |
| 303 | 303 | NIHON_JOYSTICK(1) |
| 304 | 304 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 339 | 339 | INPUT_PORTS_END |
| 340 | 340 | |
| 341 | 341 | /* different Lives values and last different the last two dips */ |
| 342 | INPUT_PORTS_START( dangar2 ) | |
| 342 | static INPUT_PORTS_START( dangar2 ) | |
| 343 | 343 | PORT_START_TAG("IN0") |
| 344 | 344 | NIHON_JOYSTICK(1) |
| 345 | 345 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 384 | 384 | INPUT_PORTS_END |
| 385 | 385 | |
| 386 | 386 | /* the last two dip switches are different */ |
| 387 | INPUT_PORTS_START( dangarb ) | |
| 387 | static INPUT_PORTS_START( dangarb ) | |
| 388 | 388 | PORT_START_TAG("IN0") |
| 389 | 389 | NIHON_JOYSTICK(1) |
| 390 | 390 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 424 | 424 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 425 | 425 | INPUT_PORTS_END |
| 426 | 426 | |
| 427 | INPUT_PORTS_START( ninjemak ) | |
| 427 | static INPUT_PORTS_START( ninjemak ) | |
| 428 | 428 | PORT_START_TAG("IN0") |
| 429 | 429 | NIHON_JOYSTICK(1) |
| 430 | 430 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
|---|---|---|
| 438 | 438 | ADDRESS_MAP_END |
| 439 | 439 | |
| 440 | 440 | |
| 441 | INPUT_PORTS_START( pstadium ) | |
| 441 | static INPUT_PORTS_START( pstadium ) | |
| 442 | 442 | PORT_START /* (0) DIPSW-A */ |
| 443 | 443 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 444 | 444 | PORT_DIPSETTING( 0x03, "1 (Easy)" ) |
| r1238 | r1239 | |
| 513 | 513 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 514 | 514 | INPUT_PORTS_END |
| 515 | 515 | |
| 516 | INPUT_PORTS_START( triplew1 ) | |
| 516 | static INPUT_PORTS_START( triplew1 ) | |
| 517 | 517 | PORT_START /* (0) DIPSW-A */ |
| 518 | 518 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 519 | 519 | PORT_DIPSETTING( 0x03, "1 (Easy)" ) |
| r1238 | r1239 | |
| 588 | 588 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 589 | 589 | INPUT_PORTS_END |
| 590 | 590 | |
| 591 | INPUT_PORTS_START( ntopstar ) | |
| 591 | static INPUT_PORTS_START( ntopstar ) | |
| 592 | 592 | PORT_START /* (0) DIPSW-A */ |
| 593 | 593 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 594 | 594 | PORT_DIPSETTING( 0x03, "1 (Easy)" ) |
| r1238 | r1239 | |
| 663 | 663 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 664 | 664 | INPUT_PORTS_END |
| 665 | 665 | |
| 666 | INPUT_PORTS_START( mjlstory ) | |
| 666 | static INPUT_PORTS_START( mjlstory ) | |
| 667 | 667 | PORT_START /* (0) DIPSW-A */ |
| 668 | 668 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 669 | 669 | PORT_DIPSETTING( 0x03, "1 (Easy)" ) |
| r1238 | r1239 | |
| 738 | 738 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 739 | 739 | INPUT_PORTS_END |
| 740 | 740 | |
| 741 | INPUT_PORTS_START( vanilla ) | |
| 741 | static INPUT_PORTS_START( vanilla ) | |
| 742 | 742 | PORT_START /* (0) DIPSW-A */ |
| 743 | 743 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 744 | 744 | PORT_DIPSETTING( 0x03, "1 (Easy)" ) |
| r1238 | r1239 | |
| 813 | 813 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 814 | 814 | INPUT_PORTS_END |
| 815 | 815 | |
| 816 | INPUT_PORTS_START( finalbny ) | |
| 816 | static INPUT_PORTS_START( finalbny ) | |
| 817 | 817 | |
| 818 | 818 | // I don't have manual for this game. |
| 819 | 819 | |
| r1238 | r1239 | |
| 890 | 890 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 891 | 891 | INPUT_PORTS_END |
| 892 | 892 | |
| 893 | INPUT_PORTS_START( qmhayaku ) | |
| 893 | static INPUT_PORTS_START( qmhayaku ) | |
| 894 | 894 | PORT_START /* (0) DIPSW-A */ |
| 895 | 895 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 896 | 896 | PORT_DIPSETTING( 0x03, "1 (Easy)" ) |
| r1238 | r1239 | |
| 965 | 965 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 966 | 966 | INPUT_PORTS_END |
| 967 | 967 | |
| 968 | INPUT_PORTS_START( galkoku ) | |
| 968 | static INPUT_PORTS_START( galkoku ) | |
| 969 | 969 | PORT_START /* (0) DIPSW-A */ |
| 970 | 970 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 971 | 971 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 1041 | 1041 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1042 | 1042 | INPUT_PORTS_END |
| 1043 | 1043 | |
| 1044 | INPUT_PORTS_START( hyouban ) | |
| 1044 | static INPUT_PORTS_START( hyouban ) | |
| 1045 | 1045 | |
| 1046 | 1046 | // I don't have manual for this game. |
| 1047 | 1047 | |
| r1238 | r1239 | |
| 1120 | 1120 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1121 | 1121 | INPUT_PORTS_END |
| 1122 | 1122 | |
| 1123 | INPUT_PORTS_START( galkaika ) | |
| 1123 | static INPUT_PORTS_START( galkaika ) | |
| 1124 | 1124 | |
| 1125 | 1125 | // I don't have manual for this game. |
| 1126 | 1126 | |
| r1238 | r1239 | |
| 1199 | 1199 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1200 | 1200 | INPUT_PORTS_END |
| 1201 | 1201 | |
| 1202 | INPUT_PORTS_START( tokyogal ) | |
| 1202 | static INPUT_PORTS_START( tokyogal ) | |
| 1203 | 1203 | |
| 1204 | 1204 | // I don't have manual for this game. |
| 1205 | 1205 | |
| r1238 | r1239 | |
| 1278 | 1278 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1279 | 1279 | INPUT_PORTS_END |
| 1280 | 1280 | |
| 1281 | INPUT_PORTS_START( tokimbsj ) | |
| 1281 | static INPUT_PORTS_START( tokimbsj ) | |
| 1282 | 1282 | |
| 1283 | 1283 | // I don't have manual for this game. |
| 1284 | 1284 | |
| r1238 | r1239 | |
| 1357 | 1357 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1358 | 1358 | INPUT_PORTS_END |
| 1359 | 1359 | |
| 1360 | INPUT_PORTS_START( mcontest ) | |
| 1360 | static INPUT_PORTS_START( mcontest ) | |
| 1361 | 1361 | |
| 1362 | 1362 | // I don't have manual for this game. |
| 1363 | 1363 | |
| r1238 | r1239 | |
| 1436 | 1436 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1437 | 1437 | INPUT_PORTS_END |
| 1438 | 1438 | |
| 1439 | INPUT_PORTS_START( uchuuai ) | |
| 1439 | static INPUT_PORTS_START( uchuuai ) | |
| 1440 | 1440 | |
| 1441 | 1441 | // I don't have manual for this game. |
| 1442 | 1442 | |
| r1238 | r1239 | |
| 1515 | 1515 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1516 | 1516 | INPUT_PORTS_END |
| 1517 | 1517 | |
| 1518 | INPUT_PORTS_START( mjgottub ) | |
| 1518 | static INPUT_PORTS_START( mjgottub ) | |
| 1519 | 1519 | |
| 1520 | 1520 | // I don't have manual for this game. |
| 1521 | 1521 | |
| r1238 | r1239 | |
| 1594 | 1594 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1595 | 1595 | INPUT_PORTS_END |
| 1596 | 1596 | |
| 1597 | INPUT_PORTS_START( av2mj1bb ) | |
| 1597 | static INPUT_PORTS_START( av2mj1bb ) | |
| 1598 | 1598 | PORT_START /* (0) DIPSW-A */ |
| 1599 | 1599 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1600 | 1600 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| r1238 | r1239 | |
| 1668 | 1668 | NBMJCTRL_PORT10 /* (12) PORT 2-5 */ |
| 1669 | 1669 | INPUT_PORTS_END |
| 1670 | 1670 | |
| 1671 | INPUT_PORTS_START( av2mj2rg ) | |
| 1671 | static INPUT_PORTS_START( av2mj2rg ) | |
| 1672 | 1672 | |
| 1673 | 1673 | // I don't have manual for this game. |
| 1674 | 1674 |
| r1238 | r1239 | |
|---|---|---|
| 86 | 86 | ADDRESS_MAP_END |
| 87 | 87 | |
| 88 | 88 | |
| 89 | INPUT_PORTS_START( blockout ) | |
| 89 | static INPUT_PORTS_START( blockout ) | |
| 90 | 90 | PORT_START /* IN0 */ |
| 91 | 91 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 92 | 92 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 161 | 161 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 162 | 162 | INPUT_PORTS_END |
| 163 | 163 | |
| 164 | INPUT_PORTS_START( blckoutj ) | |
| 164 | static INPUT_PORTS_START( blckoutj ) | |
| 165 | 165 | PORT_START /* IN0 */ |
| 166 | 166 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 167 | 167 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 238 | 238 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) |
| 239 | 239 | INPUT_PORTS_END |
| 240 | 240 | |
| 241 | INPUT_PORTS_START( agress ) | |
| 241 | static INPUT_PORTS_START( agress ) | |
| 242 | 242 | PORT_START /* IN0 */ |
| 243 | 243 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 244 | 244 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 75 | 75 | if (nmi_enabled) cpunum_set_input_line(0, INPUT_LINE_NMI, PULSE_LINE); |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | READ8_HANDLER( unknown_d803_r ) | |
| 78 | static READ8_HANDLER( unknown_d803_r ) | |
| 79 | 79 | { |
| 80 | 80 | return 0x6b; |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | READ8_HANDLER( unknown_d803_m660_r ) | |
| 83 | static READ8_HANDLER( unknown_d803_m660_r ) | |
| 84 | 84 | { |
| 85 | 85 | return 0x53; // this is what the bootleg patches in. |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | READ8_HANDLER( unknown_d806_r ) | |
| 88 | static READ8_HANDLER( unknown_d806_r ) | |
| 89 | 89 | { |
| 90 | 90 | return 0x40; |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | READ8_HANDLER( unknown_d900_r ) | |
| 93 | static READ8_HANDLER( unknown_d900_r ) | |
| 94 | 94 | { |
| 95 | 95 | return 0x6a; |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | READ8_HANDLER( unknown_d938_r ) | |
| 98 | static READ8_HANDLER( unknown_d938_r ) | |
| 99 | 99 | { |
| 100 | 100 | return 0xfb; |
| 101 | 101 | } |
| r1238 | r1239 | |
| 496 | 496 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )\ |
| 497 | 497 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) |
| 498 | 498 | |
| 499 | INPUT_PORTS_START( tsamurai ) | |
| 499 | static INPUT_PORTS_START( tsamurai ) | |
| 500 | 500 | TS_IN0 |
| 501 | 501 | TS_IN1 |
| 502 | 502 | TS_IN2 |
| r1238 | r1239 | |
| 526 | 526 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 527 | 527 | INPUT_PORTS_END |
| 528 | 528 | |
| 529 | INPUT_PORTS_START( nunchaku ) | |
| 529 | static INPUT_PORTS_START( nunchaku ) | |
| 530 | 530 | TS_IN0 |
| 531 | 531 | TS_IN1 |
| 532 | 532 | TS_IN2 |
| r1238 | r1239 | |
| 556 | 556 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 557 | 557 | INPUT_PORTS_END |
| 558 | 558 | |
| 559 | INPUT_PORTS_START( vsgongf ) | |
| 559 | static INPUT_PORTS_START( vsgongf ) | |
| 560 | 560 | TS_IN0 |
| 561 | 561 | TS_IN1 |
| 562 | 562 | TS_IN2 |
| r1238 | r1239 | |
| 609 | 609 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN )\ |
| 610 | 610 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 611 | 611 | |
| 612 | INPUT_PORTS_START( yamagchi ) | |
| 612 | static INPUT_PORTS_START( yamagchi ) | |
| 613 | 613 | YAMINS |
| 614 | 614 | TS_IN2 |
| 615 | 615 | TS_DSW1 |
| r1238 | r1239 | |
| 639 | 639 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 640 | 640 | INPUT_PORTS_END |
| 641 | 641 | |
| 642 | INPUT_PORTS_START( m660 ) | |
| 642 | static INPUT_PORTS_START( m660 ) | |
| 643 | 643 | YAMINS |
| 644 | 644 | TS_IN2 |
| 645 | 645 |
| r1238 | r1239 | |
|---|---|---|
| 301 | 301 | |
| 302 | 302 | ***************************************************************************/ |
| 303 | 303 | |
| 304 | INPUT_PORTS_START( sdwx ) | |
| 304 | static INPUT_PORTS_START( sdwx ) | |
| 305 | 305 | INPUT_PORTS_END |
| 306 | 306 | |
| 307 | 307 |
| r1238 | r1239 | |
|---|---|---|
| 132 | 132 | * |
| 133 | 133 | *************************************/ |
| 134 | 134 | |
| 135 | INPUT_PORTS_START( canyon ) | |
| 135 | static INPUT_PORTS_START( canyon ) | |
| 136 | 136 | PORT_START /* DSW */ |
| 137 | 137 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Language ) ) |
| 138 | 138 | PORT_DIPSETTING( 0x00, DEF_STR( English ) ) |
| r1238 | r1239 | |
|---|---|---|
| 249 | 249 | AM_RANGE(0xff0000, 0xffffff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 250 | 250 | ADDRESS_MAP_END |
| 251 | 251 | |
| 252 | INPUT_PORTS_START( splash ) | |
| 252 | static INPUT_PORTS_START( splash ) | |
| 253 | 253 | PORT_START /* DSW #1 */ |
| 254 | 254 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 255 | 255 | PORT_DIPSETTING( 0x06, DEF_STR( 5C_1C ) ) |
| r1238 | r1239 | |
| 321 | 321 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) |
| 322 | 322 | INPUT_PORTS_END |
| 323 | 323 | |
| 324 | INPUT_PORTS_START( funystrp ) | |
| 324 | static INPUT_PORTS_START( funystrp ) | |
| 325 | 325 | PORT_START /* DSW #1 */ |
| 326 | 326 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 327 | 327 | PORT_DIPSETTING( 0x06, DEF_STR( 5C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 550 | 550 | |
| 551 | 551 | |
| 552 | 552 | |
| 553 | INPUT_PORTS_START( jalmah ) | |
| 553 | static INPUT_PORTS_START( jalmah ) | |
| 554 | 554 | /*System port*/ |
| 555 | 555 | PORT_START |
| 556 | 556 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) ) |
| r1238 | r1239 | |
| 708 | 708 | INPUT_PORTS_END |
| 709 | 709 | |
| 710 | 710 | |
| 711 | INPUT_PORTS_START( jalmah2 ) | |
| 711 | static INPUT_PORTS_START( jalmah2 ) | |
| 712 | 712 | /*System port*/ |
| 713 | 713 | PORT_START |
| 714 | 714 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) ) |
| r1238 | r1239 | |
| 836 | 836 | INPUT_PORTS_END |
| 837 | 837 | |
| 838 | 838 | |
| 839 | INPUT_PORTS_START( jalmah2a ) | |
| 839 | static INPUT_PORTS_START( jalmah2a ) | |
| 840 | 840 | /*System port*/ |
| 841 | 841 | PORT_START |
| 842 | 842 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) ) |
| r1238 | r1239 | |
|---|---|---|
| 273 | 273 | AM_RANGE(0xfff030, 0xfff031) AM_NOP //? |
| 274 | 274 | ADDRESS_MAP_END |
| 275 | 275 | |
| 276 | INPUT_PORTS_START( f1gp ) | |
| 276 | static INPUT_PORTS_START( f1gp ) | |
| 277 | 277 | PORT_START |
| 278 | 278 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 279 | 279 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 378 | 378 | |
| 379 | 379 | |
| 380 | 380 | /* the same as f1gp, but with an extra button */ |
| 381 | INPUT_PORTS_START( f1gp2 ) | |
| 381 | static INPUT_PORTS_START( f1gp2 ) | |
| 382 | 382 | PORT_START |
| 383 | 383 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 384 | 384 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 79 | 79 | AM_RANGE(0x9801, 0x9801) AM_WRITE(AY8910_control_port_0_w) |
| 80 | 80 | ADDRESS_MAP_END |
| 81 | 81 | |
| 82 | INPUT_PORTS_START( supdrapo ) | |
| 82 | static INPUT_PORTS_START( supdrapo ) | |
| 83 | 83 | PORT_START |
| 84 | 84 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) //win |
| 85 | 85 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) //cancel |
| r1238 | r1239 | |
|---|---|---|
| 196 | 196 | AM_RANGE(0xc000, 0xdfff) AM_ROM |
| 197 | 197 | ADDRESS_MAP_END |
| 198 | 198 | |
| 199 | INPUT_PORTS_START( lvcards ) | |
| 199 | static INPUT_PORTS_START( lvcards ) | |
| 200 | 200 | PORT_START_TAG("IN0") |
| 201 | 201 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Analyzer") PORT_CODE(KEYCODE_0) |
| 202 | 202 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r1238 | r1239 | |
| 280 | 280 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 281 | 281 | INPUT_PORTS_END |
| 282 | 282 | |
| 283 | INPUT_PORTS_START( lvpoker ) | |
| 283 | static INPUT_PORTS_START( lvpoker ) | |
| 284 | 284 | PORT_START_TAG("IN0") |
| 285 | 285 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Analyzer") PORT_TOGGLE |
| 286 | 286 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r1238 | r1239 | |
| 363 | 363 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 364 | 364 | INPUT_PORTS_END |
| 365 | 365 | |
| 366 | INPUT_PORTS_START( ponttehk ) | |
| 366 | static INPUT_PORTS_START( ponttehk ) | |
| 367 | 367 | PORT_START_TAG("IN0") |
| 368 | 368 | PORT_SERVICE( 0x01, IP_ACTIVE_LOW ) |
| 369 | 369 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r1238 | r1239 | |
|---|---|---|
| 124 | 124 | * |
| 125 | 125 | *************************************/ |
| 126 | 126 | |
| 127 | INPUT_PORTS_START( mk3 ) | |
| 127 | static INPUT_PORTS_START( mk3 ) | |
| 128 | 128 | PORT_START |
| 129 | 129 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 130 | 130 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 223 | 223 | INPUT_PORTS_END |
| 224 | 224 | |
| 225 | 225 | |
| 226 | INPUT_PORTS_START( openice ) | |
| 226 | static INPUT_PORTS_START( openice ) | |
| 227 | 227 | PORT_START |
| 228 | 228 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 229 | 229 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 332 | 332 | INPUT_PORTS_END |
| 333 | 333 | |
| 334 | 334 | |
| 335 | INPUT_PORTS_START( nbahangt ) | |
| 335 | static INPUT_PORTS_START( nbahangt ) | |
| 336 | 336 | PORT_START |
| 337 | 337 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 338 | 338 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 425 | 425 | INPUT_PORTS_END |
| 426 | 426 | |
| 427 | 427 | |
| 428 | INPUT_PORTS_START( rmpgwt ) | |
| 428 | static INPUT_PORTS_START( rmpgwt ) | |
| 429 | 429 | PORT_START |
| 430 | 430 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 431 | 431 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 518 | 518 | INPUT_PORTS_END |
| 519 | 519 | |
| 520 | 520 | |
| 521 | INPUT_PORTS_START( wwfmania ) | |
| 521 | static INPUT_PORTS_START( wwfmania ) | |
| 522 | 522 | PORT_START |
| 523 | 523 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 524 | 524 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 877 | 877 | /* */ |
| 878 | 878 | /*************************************************************/ |
| 879 | 879 | |
| 880 | INPUT_PORTS_START( default ) | |
| 880 | static INPUT_PORTS_START( default ) | |
| 881 | 881 | NAMCOS2_MCU_PORT_B_DEFAULT |
| 882 | 882 | NAMCOS2_MCU_PORT_C_DEFAULT |
| 883 | 883 | NAMCOS2_MCU_ANALOG_PORT_DEFAULT |
| r1238 | r1239 | |
| 886 | 886 | NAMCOS2_MCU_DIAL_DEFAULT |
| 887 | 887 | INPUT_PORTS_END |
| 888 | 888 | |
| 889 | INPUT_PORTS_START( gollygho ) | |
| 889 | static INPUT_PORTS_START( gollygho ) | |
| 890 | 890 | PORT_START_TAG("INB") |
| 891 | 891 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 892 | 892 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 923 | 923 | NAMCOS2_MCU_DIAL_DEFAULT |
| 924 | 924 | INPUT_PORTS_END |
| 925 | 925 | |
| 926 | INPUT_PORTS_START( bubbletr ) | |
| 926 | static INPUT_PORTS_START( bubbletr ) | |
| 927 | 927 | PORT_START_TAG("INB") |
| 928 | 928 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 929 | 929 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 960 | 960 | NAMCOS2_MCU_DIAL_DEFAULT |
| 961 | 961 | INPUT_PORTS_END |
| 962 | 962 | |
| 963 | INPUT_PORTS_START( finallap ) | |
| 963 | static INPUT_PORTS_START( finallap ) | |
| 964 | 964 | PORT_START_TAG("MCUB") /* 63B05Z0 - PORT B */ |
| 965 | 965 | PORT_DIPNAME( 0x01, 0x01, "PortB 0x01") |
| 966 | 966 | PORT_DIPSETTING( 0x01, "H" ) |
| r1238 | r1239 | |
| 1029 | 1029 | NAMCOS2_MCU_DIAL_DEFAULT /* 63B05Z0 - $3000 */ |
| 1030 | 1030 | INPUT_PORTS_END |
| 1031 | 1031 | |
| 1032 | INPUT_PORTS_START( finalap3 ) | |
| 1032 | static INPUT_PORTS_START( finalap3 ) | |
| 1033 | 1033 | PORT_START_TAG("MCUB") /* 63B05Z0 - PORT B */ |
| 1034 | 1034 | PORT_DIPNAME( 0x01, 0x01, "PortB 0x01") |
| 1035 | 1035 | PORT_DIPSETTING( 0x01, "H" ) |
| r1238 | r1239 | |
| 1093 | 1093 | NAMCOS2_MCU_DIAL_DEFAULT /* 63B05Z0 - $3000 */ |
| 1094 | 1094 | INPUT_PORTS_END |
| 1095 | 1095 | |
| 1096 | INPUT_PORTS_START( fourtrax ) | |
| 1096 | static INPUT_PORTS_START( fourtrax ) | |
| 1097 | 1097 | PORT_START_TAG("MCUB") /* 63B05Z0 - PORT B */ |
| 1098 | 1098 | PORT_DIPNAME( 0x01, 0x01, "PortB 0x01") |
| 1099 | 1099 | PORT_DIPSETTING( 0x01, "H" ) |
| r1238 | r1239 | |
| 1179 | 1179 | NAMCOS2_MCU_DIAL_DEFAULT |
| 1180 | 1180 | INPUT_PORTS_END |
| 1181 | 1181 | |
| 1182 | INPUT_PORTS_START( assault ) | |
| 1182 | static INPUT_PORTS_START( assault ) | |
| 1183 | 1183 | PORT_START_TAG("MCUB") /* 63B05Z0 - PORT B */ |
| 1184 | 1184 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT ) PORT_PLAYER(2) |
| 1185 | 1185 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT ) |
| r1238 | r1239 | |
| 1218 | 1218 | // PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1219 | 1219 | INPUT_PORTS_END |
| 1220 | 1220 | |
| 1221 | INPUT_PORTS_START( suzuka ) | |
| 1221 | static INPUT_PORTS_START( suzuka ) | |
| 1222 | 1222 | PORT_START_TAG("MCUB") /* 63B05Z0 - PORT B */ |
| 1223 | 1223 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) |
| 1224 | 1224 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 1272 | 1272 | NAMCOS2_MCU_DIAL_DEFAULT |
| 1273 | 1273 | INPUT_PORTS_END |
| 1274 | 1274 | |
| 1275 | INPUT_PORTS_START( luckywld ) | |
| 1275 | static INPUT_PORTS_START( luckywld ) | |
| 1276 | 1276 | PORT_START_TAG("MCUB") /* 63B05Z0 - PORT B */ |
| 1277 | 1277 | PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1278 | 1278 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 1307 | 1307 | NAMCOS2_MCU_DIAL_DEFAULT |
| 1308 | 1308 | INPUT_PORTS_END |
| 1309 | 1309 | |
| 1310 | INPUT_PORTS_START( sgunner ) | |
| 1310 | static INPUT_PORTS_START( sgunner ) | |
| 1311 | 1311 | PORT_START_TAG("MCUB") /* 63B05Z0 - PORT B */ |
| 1312 | 1312 | PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1313 | 1313 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 1344 | 1344 | NAMCOS2_MCU_DIAL_DEFAULT |
| 1345 | 1345 | INPUT_PORTS_END |
| 1346 | 1346 | |
| 1347 | INPUT_PORTS_START( dirtfox ) | |
| 1347 | static INPUT_PORTS_START( dirtfox ) | |
| 1348 | 1348 | PORT_START_TAG("MCUB") /* 63B05Z0 - PORT B */ \ |
| 1349 | 1349 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("Gear Shift Up") /* Gear shift up */ |
| 1350 | 1350 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_NAME("Gear Shift Down")/* Gear shift down */ |
| r1238 | r1239 | |
| 1375 | 1375 | NAMCOS2_MCU_DIAL_DEFAULT |
| 1376 | 1376 | INPUT_PORTS_END |
| 1377 | 1377 | |
| 1378 | INPUT_PORTS_START( metlhawk ) | |
| 1378 | static INPUT_PORTS_START( metlhawk ) | |
| 1379 | 1379 | PORT_START_TAG("MCUB") /* 63B05Z0 - PORT B */ |
| 1380 | 1380 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) |
| 1381 | 1381 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
|---|---|---|
| 486 | 486 | INPUT_PORTS_END |
| 487 | 487 | |
| 488 | 488 | |
| 489 | INPUT_PORTS_START( ttmahjng ) | |
| 489 | static INPUT_PORTS_START( ttmahjng ) | |
| 490 | 490 | PORT_START /* IN0 */ |
| 491 | 491 | PORT_DIPNAME( 0x01, 0x00, "Unknown 01" ) |
| 492 | 492 | PORT_DIPSETTING( 0x00, "00" ) |
| r1238 | r1239 | |
|---|---|---|
| 298 | 298 | AM_RANGE(0xe80000, 0xe80001) AM_WRITE(reg_e80000_w) |
| 299 | 299 | ADDRESS_MAP_END |
| 300 | 300 | |
| 301 | INPUT_PORTS_START( deroon ) | |
| 301 | static INPUT_PORTS_START( deroon ) | |
| 302 | 302 | PORT_START |
| 303 | 303 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(1) |
| 304 | 304 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH,IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 184 | 184 | ADDRESS_MAP_END |
| 185 | 185 | |
| 186 | 186 | |
| 187 | INPUT_PORTS_START( polyplay ) | |
| 187 | static INPUT_PORTS_START( polyplay ) | |
| 188 | 188 | PORT_START /* IN0 */ |
| 189 | 189 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 190 | 190 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 582 | 582 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C ) ) |
| 583 | 583 | |
| 584 | 584 | |
| 585 | INPUT_PORTS_START( crossbow ) | |
| 585 | static INPUT_PORTS_START( crossbow ) | |
| 586 | 586 | PORT_START /* player inputs and logic board dips */ |
| 587 | 587 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 588 | 588 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 622 | 622 | INPUT_PORTS_END |
| 623 | 623 | |
| 624 | 624 | |
| 625 | INPUT_PORTS_START( cheyenne ) | |
| 625 | static INPUT_PORTS_START( cheyenne ) | |
| 626 | 626 | PORT_START /* player inputs and logic board dips */ |
| 627 | 627 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 628 | 628 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 662 | 662 | INPUT_PORTS_END |
| 663 | 663 | |
| 664 | 664 | |
| 665 | INPUT_PORTS_START( combat ) | |
| 665 | static INPUT_PORTS_START( combat ) | |
| 666 | 666 | PORT_START /* player inputs and logic board dips */ |
| 667 | 667 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 668 | 668 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 702 | 702 | INPUT_PORTS_END |
| 703 | 703 | |
| 704 | 704 | |
| 705 | INPUT_PORTS_START( catch22 ) | |
| 705 | static INPUT_PORTS_START( catch22 ) | |
| 706 | 706 | PORT_START /* player inputs and logic board dips */ |
| 707 | 707 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 708 | 708 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 742 | 742 | INPUT_PORTS_END |
| 743 | 743 | |
| 744 | 744 | |
| 745 | INPUT_PORTS_START( cracksht ) | |
| 745 | static INPUT_PORTS_START( cracksht ) | |
| 746 | 746 | PORT_START /* player inputs and logic board dips */ |
| 747 | 747 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 748 | 748 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 782 | 782 | INPUT_PORTS_END |
| 783 | 783 | |
| 784 | 784 | |
| 785 | INPUT_PORTS_START( claypign ) | |
| 785 | static INPUT_PORTS_START( claypign ) | |
| 786 | 786 | PORT_START /* player inputs and logic board dips */ |
| 787 | 787 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 788 | 788 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 818 | 818 | INPUT_PORTS_END |
| 819 | 819 | |
| 820 | 820 | |
| 821 | INPUT_PORTS_START( chiller ) | |
| 821 | static INPUT_PORTS_START( chiller ) | |
| 822 | 822 | PORT_START /* player inputs and logic board dips */ |
| 823 | 823 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 824 | 824 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 855 | 855 | INPUT_PORTS_END |
| 856 | 856 | |
| 857 | 857 | |
| 858 | INPUT_PORTS_START( topsecex ) | |
| 858 | static INPUT_PORTS_START( topsecex ) | |
| 859 | 859 | PORT_START /* player inputs and logic board dips */ |
| 860 | 860 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 861 | 861 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 902 | 902 | INPUT_PORTS_END |
| 903 | 903 | |
| 904 | 904 | |
| 905 | INPUT_PORTS_START( hitnmiss ) | |
| 905 | static INPUT_PORTS_START( hitnmiss ) | |
| 906 | 906 | PORT_START /* player inputs and logic board dips */ |
| 907 | 907 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 908 | 908 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 942 | 942 | INPUT_PORTS_END |
| 943 | 943 | |
| 944 | 944 | |
| 945 | INPUT_PORTS_START( whodunit ) | |
| 945 | static INPUT_PORTS_START( whodunit ) | |
| 946 | 946 | PORT_START /* player inputs and logic board dips */ |
| 947 | 947 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 948 | 948 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 979 | 979 | INPUT_PORTS_END |
| 980 | 980 | |
| 981 | 981 | |
| 982 | INPUT_PORTS_START( showdown ) | |
| 982 | static INPUT_PORTS_START( showdown ) | |
| 983 | 983 | PORT_START /* player inputs and logic board dips */ |
| 984 | 984 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 985 | 985 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
|---|---|---|
| 245 | 245 | |
| 246 | 246 | ***************************************************************************/ |
| 247 | 247 | |
| 248 | INPUT_PORTS_START( exzisus ) | |
| 248 | static INPUT_PORTS_START( exzisus ) | |
| 249 | 249 | PORT_START_TAG("IN0") |
| 250 | 250 | TAITO_JOY_UDRL_2_BUTTONS( 1 ) |
| 251 | 251 |
| r1238 | r1239 | |
|---|---|---|
| 235 | 235 | z80_ram[offset] = data; |
| 236 | 236 | } |
| 237 | 237 | |
| 238 | INPUT_PORTS_START( tx1 ) | |
| 238 | static INPUT_PORTS_START( tx1 ) | |
| 239 | 239 | PORT_START_TAG("DSW1") |
| 240 | 240 | PORT_DIPNAME( 0x0700, 0x0300, DEF_STR( Difficulty ) ) |
| 241 | 241 | PORT_DIPSETTING( 0x0000, "A" ) |
| r1238 | r1239 | |
| 300 | 300 | INPUT_PORTS_END |
| 301 | 301 | |
| 302 | 302 | |
| 303 | INPUT_PORTS_START( buggyboy ) | |
| 303 | static INPUT_PORTS_START( buggyboy ) | |
| 304 | 304 | PORT_START_TAG("DSW1") |
| 305 | 305 | PORT_DIPNAME( 0xe000, 0x0000, DEF_STR( Coin_A ) ) |
| 306 | 306 | PORT_DIPSETTING( 0x4000, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
| 384 | 384 | |
| 385 | 385 | INPUT_PORTS_END |
| 386 | 386 | |
| 387 | INPUT_PORTS_START( buggyb1 ) | |
| 387 | static INPUT_PORTS_START( buggyb1 ) | |
| 388 | 388 | PORT_START_TAG("DSW1") |
| 389 | 389 | PORT_DIPNAME( 0xe000, 0x0000, DEF_STR( Coin_A ) ) |
| 390 | 390 | PORT_DIPSETTING( 0x4000, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 80 | 80 | |
| 81 | 81 | /* MEMORY HANDLERS */ |
| 82 | 82 | /* Z80 R/W */ |
| 83 | READ8_HANDLER(z80_irq_status_r) | |
| 83 | static READ8_HANDLER(z80_irq_status_r) | |
| 84 | 84 | { |
| 85 | 85 | return z80_irq_status; |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | READ8_HANDLER(ram_ic_read) | |
| 88 | static READ8_HANDLER(ram_ic_read) | |
| 89 | 89 | { |
| 90 | 90 | /* Daphne patches. |
| 91 | 91 | if (offset == 0xbe07-0x8000) |
| r1238 | r1239 | |
| 116 | 116 | return (laserdisc_line_r(discinfo, LASERDISC_LINE_COMMAND) == ASSERT_LINE) ? 0 : 1; |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | WRITE8_HANDLER(ram_ic_write) | |
| 119 | static WRITE8_HANDLER(ram_ic_write) | |
| 120 | 120 | { |
| 121 | 121 | ram_ic[offset] = data; |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | WRITE8_HANDLER(data_ready_int_w) | |
| 124 | static WRITE8_HANDLER(data_ready_int_w) | |
| 125 | 125 | { |
| 126 | 126 | CLEAR_Z80_DATA_RDY_INT(); |
| 127 | 127 | /* Hackaroo? */ |
| 128 | 128 | /* cop_l_latch = 0x00; */ |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | WRITE8_HANDLER(timer_int_w) | |
| 131 | static WRITE8_HANDLER(timer_int_w) | |
| 132 | 132 | { |
| 133 | 133 | CLEAR_Z80_TIMER_INT(); |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | WRITE8_HANDLER(write_cop) | |
| 136 | static WRITE8_HANDLER(write_cop) | |
| 137 | 137 | { |
| 138 | 138 | logerror("Writing 0x%x to COP port G\n", data); |
| 139 | 139 | |
| r1238 | r1239 | |
| 146 | 146 | /* Bit 1 goes to CS128x? (illegible schems) */ |
| 147 | 147 | } |
| 148 | 148 | |
| 149 | WRITE8_HANDLER(data_write_cop) | |
| 149 | #ifdef UNUSED_FUNCTION | |
| 150 | static WRITE8_HANDLER(data_write_cop) | |
| 150 | 151 | { |
| 151 | 152 | cop_l_latch = data; |
| 152 | 153 | } |
| 154 | #endif | |
| 153 | 155 | |
| 154 | WRITE8_HANDLER(intrq_w) | |
| 156 | static WRITE8_HANDLER(intrq_w) | |
| 155 | 157 | { |
| 156 | 158 | cpunum_set_input_line(0, 0, ASSERT_LINE); |
| 157 | 159 | } |
| 158 | 160 | |
| 159 | WRITE8_HANDLER(sc01_register_w) | |
| 161 | static WRITE8_HANDLER(sc01_register_w) | |
| 160 | 162 | { |
| 161 | 163 | /* (Thank you Daphne) */ |
| 162 | 164 | switch (offset) |
| r1238 | r1239 | |
| 226 | 228 | |
| 227 | 229 | /* COP R/W */ |
| 228 | 230 | /* All 8 l pins are hooked up here */ |
| 229 | READ8_HANDLER(cop_l_read) | |
| 231 | static READ8_HANDLER(cop_l_read) | |
| 230 | 232 | { |
| 231 | 233 | logerror("COP - Reading from L @ (0x%x)\n", activecpu_get_pc()); |
| 232 | 234 | return cop_l_latch; |
| 233 | 235 | } |
| 234 | 236 | |
| 235 | 237 | /* Pins g0, g1, g2, and g3 are all hooked up */ |
| 236 | READ8_HANDLER(cop_g_read) | |
| 238 | static READ8_HANDLER(cop_g_read) | |
| 237 | 239 | { |
| 238 | 240 | logerror("COP - Reading from G @ (0x%x)\n", activecpu_get_pc()); |
| 239 | 241 | return cop_g_latch; |
| 240 | 242 | } |
| 241 | 243 | |
| 242 | WRITE8_HANDLER(cop_l_write) | |
| 244 | static WRITE8_HANDLER(cop_l_write) | |
| 243 | 245 | { |
| 244 | 246 | logerror("COP - WRITING TO L 0x%x @ (0x%x)\n", data, activecpu_get_pc()); |
| 245 | 247 | cop_l_latch = data; |
| 246 | 248 | } |
| 247 | 249 | |
| 248 | WRITE8_HANDLER(cop_g_write) | |
| 250 | static WRITE8_HANDLER(cop_g_write) | |
| 249 | 251 | { |
| 250 | 252 | logerror("COP - WRITING TO G 0x%x @ (0x%x)\n", data, activecpu_get_pc()); |
| 251 | 253 | |
| r1238 | r1239 | |
| 254 | 256 | } |
| 255 | 257 | |
| 256 | 258 | /* Schematics say pins d0 and d1 are the only two that are hooked up */ |
| 257 | WRITE8_HANDLER(cop_d_write) | |
| 259 | static WRITE8_HANDLER(cop_d_write) | |
| 258 | 260 | { |
| 259 | 261 | int irq_flag = 0; |
| 260 | 262 | |
| r1238 | r1239 | |
| 291 | 293 | } |
| 292 | 294 | } |
| 293 | 295 | |
| 294 | WRITE8_HANDLER(cop_sk_write) | |
| 296 | static WRITE8_HANDLER(cop_sk_write) | |
| 295 | 297 | { |
| 296 | 298 | /* I think this data falls off into a black hole - the pins aren't hooked up. |
| 297 | 299 | The COP400 XAS instruction writes to both SK and SIO, that's why the CPU writes data here at all. */ |
| 298 | 300 | } |
| 299 | 301 | |
| 300 | WRITE8_HANDLER(cop_sio_write) | |
| 302 | static WRITE8_HANDLER(cop_sio_write) | |
| 301 | 303 | { |
| 302 | 304 | /* This data is sent to the CLK pin of the keyboard handling logic. We don't need to emulate it here. */ |
| 303 | 305 | } |
| r1238 | r1239 | |
| 346 | 348 | be understood much better than what I have here */ |
| 347 | 349 | |
| 348 | 350 | /* PORTS */ |
| 349 | INPUT_PORTS_START( thayers ) | |
| 351 | static INPUT_PORTS_START( thayers ) | |
| 350 | 352 | PORT_START_TAG("DSWA") |
| 351 | 353 | PORT_DIPNAME( 0x07, 0x07, "Time Per Coin" ) PORT_DIPLOCATION( "A:3,2,1" ) |
| 352 | 354 | PORT_DIPSETTING( 0x07, "110 Seconds" ) |
| r1238 | r1239 | |
|---|---|---|
| 137 | 137 | #include "genesis.h" |
| 138 | 138 | |
| 139 | 139 | |
| 140 | INPUT_PORTS_START( topshoot ) /* Top Shooter Input Ports */ | |
| 140 | static INPUT_PORTS_START( topshoot ) /* Top Shooter Input Ports */ | |
| 141 | 141 | PORT_START /* 16bit */ |
| 142 | 142 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Unknown ) ) |
| 143 | 143 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 279 | 279 | // keep service test button pressed to clear the coin counter. |
| 280 | 280 | // keep it pressed for 10 seconds to clear all the memory. |
| 281 | 281 | // to enter hidden test mode enable "Enable Test Mode", enable "Reset High Scores" |
| 282 | INPUT_PORTS_START( phrcraze ) | |
| 282 | static INPUT_PORTS_START( phrcraze ) | |
| 283 | 283 | PORT_START /* IN0 */ |
| 284 | 284 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 285 | 285 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 352 | 352 | // keep service test button pressed to clear the coin counter. |
| 353 | 353 | // keep it pressed for 10 seconds to clear all the memory. |
| 354 | 354 | // to enter hidden test mode enable "Enable Test Mode", enable "Reset High Scores" |
| 355 | INPUT_PORTS_START( phrcrazs ) | |
| 355 | static INPUT_PORTS_START( phrcrazs ) | |
| 356 | 356 | PORT_START |
| 357 | 357 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 358 | 358 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 422 | 422 | // keep service test button pressed to clear the coin counter. |
| 423 | 423 | // To enter hidden test-mode in service mode: |
| 424 | 424 | // enable "Reset High Scores" then press "Service Mode" |
| 425 | INPUT_PORTS_START( tictac ) | |
| 425 | static INPUT_PORTS_START( tictac ) | |
| 426 | 426 | PORT_START |
| 427 | 427 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 428 | 428 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 489 | 489 | // PORT_DIPSETTING( 0x40, "Upright 1 Player" ) |
| 490 | 490 | INPUT_PORTS_END |
| 491 | 491 | |
| 492 | INPUT_PORTS_START( trivia ) | |
| 492 | static INPUT_PORTS_START( trivia ) | |
| 493 | 493 | PORT_START /* IN0 */ |
| 494 | 494 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 495 | 495 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 561 | 561 | // keep service test button pressed to clear the coin counter. |
| 562 | 562 | // keep it pressed for 10 seconds to clear all the memory. |
| 563 | 563 | // to enter hidden test mode enable "Enable Test Mode", enable "Reset High Scores" |
| 564 | INPUT_PORTS_START( trvwhziv ) | |
| 564 | static INPUT_PORTS_START( trvwhziv ) | |
| 565 | 565 | PORT_INCLUDE( trivia ) |
| 566 | 566 | |
| 567 | 567 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 570 | 570 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 571 | 571 | INPUT_PORTS_END |
| 572 | 572 | |
| 573 | INPUT_PORTS_START( pitboss ) | |
| 573 | static INPUT_PORTS_START( pitboss ) | |
| 574 | 574 | PORT_START |
| 575 | 575 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 576 | 576 | PORT_DIPNAME( 0x02, 0x02, "0-1" ) |
| r1238 | r1239 | |
| 610 | 610 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 611 | 611 | INPUT_PORTS_END |
| 612 | 612 | |
| 613 | INPUT_PORTS_START( bigappg ) | |
| 613 | static INPUT_PORTS_START( bigappg ) | |
| 614 | 614 | PORT_START |
| 615 | 615 | PORT_DIPNAME( 0x01, 0x01, "1" ) |
| 616 | 616 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 299 | 299 | PORT_BIT( 0x80, IP_ACTIVE_LOW, start ) |
| 300 | 300 | |
| 301 | 301 | |
| 302 | INPUT_PORTS_START( thndzone ) | |
| 302 | static INPUT_PORTS_START( thndzone ) | |
| 303 | 303 | PORT_START |
| 304 | 304 | DASSAULT_PLAYER_INPUT( 1, IPT_START1 ) |
| 305 | 305 | |
| r1238 | r1239 | |
| 369 | 369 | DASSAULT_PLAYER_INPUT( 4, IPT_COIN4 ) |
| 370 | 370 | INPUT_PORTS_END |
| 371 | 371 | |
| 372 | INPUT_PORTS_START( dassault ) | |
| 372 | static INPUT_PORTS_START( dassault ) | |
| 373 | 373 | PORT_START |
| 374 | 374 | DASSAULT_PLAYER_INPUT( 1, IPT_START1 ) |
| 375 | 375 | |
| r1238 | r1239 | |
| 436 | 436 | DASSAULT_PLAYER_INPUT( 4, IPT_COIN4 ) |
| 437 | 437 | INPUT_PORTS_END |
| 438 | 438 | |
| 439 | INPUT_PORTS_START( dassaul4 ) | |
| 439 | static INPUT_PORTS_START( dassaul4 ) | |
| 440 | 440 | PORT_START |
| 441 | 441 | DASSAULT_PLAYER_INPUT( 1, IPT_UNUSED ) |
| 442 | 442 |
| r1238 | r1239 | |
|---|---|---|
| 70 | 70 | ADDRESS_MAP_END |
| 71 | 71 | |
| 72 | 72 | |
| 73 | INPUT_PORTS_START( dambustr ) | |
| 73 | static INPUT_PORTS_START( dambustr ) | |
| 74 | 74 | PORT_START_TAG("IN0") |
| 75 | 75 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 76 | 76 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| r1238 | r1239 | |
|---|---|---|
| 129 | 129 | |
| 130 | 130 | |
| 131 | 131 | |
| 132 | INPUT_PORTS_START( pingpong ) | |
| 132 | static INPUT_PORTS_START( pingpong ) | |
| 133 | 133 | PORT_START /* IN0 */ |
| 134 | 134 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 135 | 135 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
| 202 | 202 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 203 | 203 | INPUT_PORTS_END |
| 204 | 204 | |
| 205 | INPUT_PORTS_START( merlinmm ) | |
| 205 | static INPUT_PORTS_START( merlinmm ) | |
| 206 | 206 | PORT_START_TAG("IN0") |
| 207 | 207 | PORT_DIPNAME( 0x01, 0x01, "Bank 3-3") |
| 208 | 208 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 314 | 314 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN4 ) PORT_NAME("100P") |
| 315 | 315 | INPUT_PORTS_END |
| 316 | 316 | |
| 317 | INPUT_PORTS_START( cashquiz ) | |
| 317 | static INPUT_PORTS_START( cashquiz ) | |
| 318 | 318 | PORT_START_TAG("IN0") |
| 319 | 319 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 320 | 320 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 91 | 91 | AM_RANGE(0xf800, 0xf800) AM_WRITE(MWA8_NOP) /* wheel ? */ |
| 92 | 92 | ADDRESS_MAP_END |
| 93 | 93 | |
| 94 | INPUT_PORTS_START( ssrj ) | |
| 94 | static INPUT_PORTS_START( ssrj ) | |
| 95 | 95 | |
| 96 | 96 | PORT_START |
| 97 | 97 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| r1238 | r1239 | |
|---|---|---|
| 111 | 111 | * |
| 112 | 112 | *************************************/ |
| 113 | 113 | |
| 114 | INPUT_PORTS_START( blstroid ) | |
| 114 | static INPUT_PORTS_START( blstroid ) | |
| 115 | 115 | PORT_START /* ff9800 */ |
| 116 | 116 | PORT_BIT( 0x00ff, 0, IPT_DIAL ) PORT_SENSITIVITY(60) PORT_KEYDELTA(10) PORT_PLAYER(1) |
| 117 | 117 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
|---|---|---|
| 70 | 70 | ADDRESS_MAP_END |
| 71 | 71 | |
| 72 | 72 | |
| 73 | INPUT_PORTS_START( gotya ) | |
| 73 | static INPUT_PORTS_START( gotya ) | |
| 74 | 74 | PORT_START /* IN0 */ |
| 75 | 75 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) |
| 76 | 76 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 33 | 33 | ADDRESS_MAP_END |
| 34 | 34 | |
| 35 | 35 | |
| 36 | INPUT_PORTS_START( gtipoker ) | |
| 36 | static INPUT_PORTS_START( gtipoker ) | |
| 37 | 37 | INPUT_PORTS_END |
| 38 | 38 | |
| 39 | 39 | static const gfx_layout tiles8x8_layout = |
| r1238 | r1239 | |
|---|---|---|
| 136 | 136 | * |
| 137 | 137 | *************************************/ |
| 138 | 138 | |
| 139 | INPUT_PORTS_START( aztarac ) | |
| 139 | static INPUT_PORTS_START( aztarac ) | |
| 140 | 140 | PORT_START_TAG("IN0") |
| 141 | 141 | PORT_BIT( 0x1f, 0xf, IPT_AD_STICK_Z ) PORT_MINMAX(0,0x1e) PORT_SENSITIVITY(100) PORT_KEYDELTA(1) |
| 142 | 142 |
| r1238 | r1239 | |
|---|---|---|
| 228 | 228 | |
| 229 | 229 | /******************************************************************************/ |
| 230 | 230 | |
| 231 | INPUT_PORTS_START( apache3 ) | |
| 231 | static INPUT_PORTS_START( apache3 ) | |
| 232 | 232 | PORT_START |
| 233 | 233 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) |
| 234 | 234 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME( "Trigger" ) |
| r1238 | r1239 | |
| 294 | 294 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 295 | 295 | INPUT_PORTS_END |
| 296 | 296 | |
| 297 | INPUT_PORTS_START( roundup5 ) | |
| 297 | static INPUT_PORTS_START( roundup5 ) | |
| 298 | 298 | PORT_START |
| 299 | 299 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_NAME("Accelerator") |
| 300 | 300 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 369 | 369 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 370 | 370 | INPUT_PORTS_END |
| 371 | 371 | |
| 372 | INPUT_PORTS_START( cyclwarr ) | |
| 372 | static INPUT_PORTS_START( cyclwarr ) | |
| 373 | 373 | PORT_START |
| 374 | 374 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 375 | 375 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 152 | 152 | |
| 153 | 153 | /******************************************************************************/ |
| 154 | 154 | |
| 155 | INPUT_PORTS_START( supbtime ) | |
| 155 | static INPUT_PORTS_START( supbtime ) | |
| 156 | 156 | PORT_START /* Player 1 controls */ |
| 157 | 157 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 158 | 158 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 234 | 234 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 235 | 235 | INPUT_PORTS_END |
| 236 | 236 | |
| 237 | INPUT_PORTS_START( chinatwn ) | |
| 237 | static INPUT_PORTS_START( chinatwn ) | |
| 238 | 238 | PORT_START /* Player 1 controls */ |
| 239 | 239 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 240 | 240 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 209 | 209 | |
| 210 | 210 | ***************************************************************************/ |
| 211 | 211 | |
| 212 | INPUT_PORTS_START( blmbycar ) | |
| 212 | static INPUT_PORTS_START( blmbycar ) | |
| 213 | 213 | |
| 214 | 214 | PORT_START // IN0 - $700000.w |
| 215 | 215 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) |
| r1238 | r1239 | |
| 286 | 286 | INPUT_PORTS_END |
| 287 | 287 | |
| 288 | 288 | |
| 289 | INPUT_PORTS_START( watrball ) | |
| 289 | static INPUT_PORTS_START( watrball ) | |
| 290 | 290 | PORT_START /* dips */ |
| 291 | 291 | PORT_DIPNAME( 0x0001, 0x0001, "1" ) |
| 292 | 292 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 187 | 187 | |
| 188 | 188 | |
| 189 | 189 | |
| 190 | INPUT_PORTS_START( retofinv ) | |
| 190 | static INPUT_PORTS_START( retofinv ) | |
| 191 | 191 | PORT_START_TAG("IN0") |
| 192 | 192 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 193 | 193 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 305 | 305 | PORT_DIPSETTING( 0x00, "A only" ) |
| 306 | 306 | INPUT_PORTS_END |
| 307 | 307 | |
| 308 | INPUT_PORTS_START( retofin2 ) | |
| 308 | static INPUT_PORTS_START( retofin2 ) | |
| 309 | 309 | PORT_INCLUDE( retofinv ) |
| 310 | 310 | |
| 311 | 311 | PORT_MODIFY( "DSW1" ) |
| r1238 | r1239 | |
|---|---|---|
| 169 | 169 | |
| 170 | 170 | ***************************************************************************/ |
| 171 | 171 | |
| 172 | INPUT_PORTS_START( gbusters ) | |
| 172 | static INPUT_PORTS_START( gbusters ) | |
| 173 | 173 | PORT_START /* DSW #1 */ |
| 174 | 174 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 175 | 175 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
| 341 | 341 | |
| 342 | 342 | ROM_START( gbusters ) |
| 343 | 343 | ROM_REGION( 0x30800, REGION_CPU1, 0 ) /* code + banked roms + space for banked RAM */ |
| 344 | ROM_LOAD( "878n02. | |
| 344 | ROM_LOAD( "878n02.k13", 0x10000, 0x08000, CRC(51697aaa) SHA1(1e6461e2e5e871d44085623a890158a4c1c4c404) ) | |
| 345 | 345 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 346 | ROM_LOAD( "878j03. | |
| 346 | ROM_LOAD( "878j03.k15", 0x20000, 0x10000, CRC(3943a065) SHA1(6b0863f4182e6c973adfaa618f096bd4cc9b7b6d) ) | |
| 347 | 347 | |
| 348 | 348 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for the sound CPU */ |
| 349 | ROM_LOAD( "878h01. | |
| 349 | ROM_LOAD( "878h01.f8 | |
| 350 | 350 | |
| 351 | 351 | ROM_REGION( 0x80000, REGION_GFX1, 0 ) /* graphics (addressable by the main CPU) */ |
| 352 | ROM_LOAD( "878c07.rom", 0x00000, 0x40000, CRC(eeed912c) SHA1(b2e27610b38f3fc9c2cdad600b03c8bae4fb9138) ) /* tiles */ | |
| 353 | ROM_LOAD( "878c08.rom", 0x40000, 0x40000, CRC(4d14626d) SHA1(226b1d83fb82586302be0a67737a427475856537) ) /* tiles */ | |
| 352 | ROM_LOAD( "878c07.h27", 0x00000, 0x40000, CRC(eeed912c) SHA1(b2e27610b38f3fc9c2cdad600b03c8bae4fb9138) ) /* tiles */ | |
| 353 | ROM_LOAD( "878c08.k27", 0x40000, 0x40000, CRC(4d14626d) SHA1(226b1d83fb82586302be0a67737a427475856537) ) /* tiles */ | |
| 354 | 354 | |
| 355 | 355 | ROM_REGION( 0x80000, REGION_GFX2, 0 ) /* graphics (addressable by the main CPU) */ |
| 356 | ROM_LOAD( "878c05.rom", 0x00000, 0x40000, CRC(01f4aea5) SHA1(124123823be6bd597805484539d821aaaadde2c0) ) /* sprites */ | |
| 357 | ROM_LOAD( "878c06.rom", 0x40000, 0x40000, CRC(edfaaaaf) SHA1(67468c4ce47e8d43d58de8d3b50b048c66508156) ) /* sprites */ | |
| 356 | ROM_LOAD( "878c05.h5", 0x00000, 0x40000, CRC(01f4aea5) SHA1(124123823be6bd597805484539d821aaaadde2c0) ) /* sprites */ | |
| 357 | ROM_LOAD( "878c06.k5", 0x40000, 0x40000, CRC(edfaaaaf) SHA1(67468c4ce47e8d43d58de8d3b50b048c66508156) ) /* sprites */ | |
| 358 | 358 | |
| 359 | 359 | ROM_REGION( 0x0100, REGION_PROMS, 0 ) |
| 360 | ROM_LOAD( "878a09. | |
| 360 | ROM_LOAD( "878a09.f20", 0x0000, 0x0100, CRC(e2d09a1b) SHA1(a9651e137486b2df367c39eb43f52d0833589e87) ) /* priority encoder (not used) */ | |
| 361 | 361 | |
| 362 | 362 | ROM_REGION( 0x40000, REGION_SOUND1, 0 ) /* samples for 007232 */ |
| 363 | ROM_LOAD( "878c04. | |
| 363 | ROM_LOAD( "878c04.d5 | |
| 364 | 364 | ROM_END |
| 365 | 365 | |
| 366 | ROM_START( gbustera ) | |
| 367 | ROM_REGION( 0x30800, REGION_CPU1, 0 ) /* code + banked roms + space for banked RAM */ | |
| 368 | ROM_LOAD( "878_02.k13", 0x10000, 0x08000, CRC(57178414) SHA1(89b1403158f6ce18706c8a941109554d03cf77d9) ) /* unknown region/version leter */ | |
| 369 | ROM_CONTINUE( 0x08000, 0x08000 ) | |
| 370 | ROM_LOAD( "878_03.k15", 0x20000, 0x10000, CRC(6c59e660) SHA1(66a92eb8a93c9f542489fa31bec6ed1819d174da) ) /* unknown region/version leter */ | |
| 371 | ||
| 372 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for the sound CPU */ | |
| 373 | ROM_LOAD( "878h01.f8", 0x00000, 0x08000, CRC(96feafaa) SHA1(8b6547e610cb4fa1c1f5bf12cb05e9a12a353903) ) | |
| 374 | ||
| 375 | ROM_REGION( 0x80000, REGION_GFX1, 0 ) /* graphics (addressable by the main CPU) */ | |
| 376 | ROM_LOAD( "878c07.h27", 0x00000, 0x40000, CRC(eeed912c) SHA1(b2e27610b38f3fc9c2cdad600b03c8bae4fb9138) ) /* tiles */ | |
| 377 | ROM_LOAD( "878c08.k27", 0x40000, 0x40000, CRC(4d14626d) SHA1(226b1d83fb82586302be0a67737a427475856537) ) /* tiles */ | |
| 378 | ||
| 379 | ROM_REGION( 0x80000, REGION_GFX2, 0 ) /* graphics (addressable by the main CPU) */ | |
| 380 | ROM_LOAD( "878c05.h5", 0x00000, 0x40000, CRC(01f4aea5) SHA1(124123823be6bd597805484539d821aaaadde2c0) ) /* sprites */ | |
| 381 | ROM_LOAD( "878c06.k5", 0x40000, 0x40000, CRC(edfaaaaf) SHA1(67468c4ce47e8d43d58de8d3b50b048c66508156) ) /* sprites */ | |
| 382 | ||
| 383 | ROM_REGION( 0x0100, REGION_PROMS, 0 ) | |
| 384 | ROM_LOAD( "878a09.f20", 0x0000, 0x0100, CRC(e2d09a1b) SHA1(a9651e137486b2df367c39eb43f52d0833589e87) ) /* priority encoder (not used) */ | |
| 385 | ||
| 386 | ROM_REGION( 0x40000, REGION_SOUND1, 0 ) /* samples for 007232 */ | |
| 387 | ROM_LOAD( "878c04.d5", 0x00000, 0x40000, CRC(9e982d1c) SHA1(a5b611c67b0f2ac50c679707931ee12ebbf72ebe) ) | |
| 388 | ROM_END | |
| 389 | ||
| 366 | 390 | ROM_START( crazycop ) |
| 367 | 391 | ROM_REGION( 0x30800, REGION_CPU1, 0 ) /* code + banked roms + space for banked RAM */ |
| 368 | ROM_LOAD( "878m02. | |
| 392 | ROM_LOAD( "878m02.k13", 0x10000, 0x08000, CRC(9c1c9f52) SHA1(7a60ad20aac92da8258b43b04f8c7f27bb71f1df) ) | |
| 369 | 393 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 370 | ROM_LOAD( "878j03. | |
| 394 | ROM_LOAD( "878j03.k15", 0x20000, 0x10000, CRC(3943a065) SHA1(6b0863f4182e6c973adfaa618f096bd4cc9b7b6d) ) | |
| 371 | 395 | |
| 372 | 396 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for the sound CPU */ |
| 373 | ROM_LOAD( "878h01. | |
| 397 | ROM_LOAD( "878h01.f8 | |
| 374 | 398 | |
| 375 | 399 | ROM_REGION( 0x80000, REGION_GFX1, 0 ) /* graphics (addressable by the main CPU) */ |
| 376 | ROM_LOAD( "878c07.rom", 0x00000, 0x40000, CRC(eeed912c) SHA1(b2e27610b38f3fc9c2cdad600b03c8bae4fb9138) ) /* tiles */ | |
| 377 | ROM_LOAD( "878c08.rom", 0x40000, 0x40000, CRC(4d14626d) SHA1(226b1d83fb82586302be0a67737a427475856537) ) /* tiles */ | |
| 400 | ROM_LOAD( "878c07.h27", 0x00000, 0x40000, CRC(eeed912c) SHA1(b2e27610b38f3fc9c2cdad600b03c8bae4fb9138) ) /* tiles */ | |
| 401 | ROM_LOAD( "878c08.k27", 0x40000, 0x40000, CRC(4d14626d) SHA1(226b1d83fb82586302be0a67737a427475856537) ) /* tiles */ | |
| 378 | 402 | |
| 379 | 403 | ROM_REGION( 0x80000, REGION_GFX2, 0 ) /* graphics (addressable by the main CPU) */ |
| 380 | ROM_LOAD( "878c05.rom", 0x00000, 0x40000, CRC(01f4aea5) SHA1(124123823be6bd597805484539d821aaaadde2c0) ) /* sprites */ | |
| 381 | ROM_LOAD( "878c06.rom", 0x40000, 0x40000, CRC(edfaaaaf) SHA1(67468c4ce47e8d43d58de8d3b50b048c66508156) ) /* sprites */ | |
| 404 | ROM_LOAD( "878c05.h5", 0x00000, 0x40000, CRC(01f4aea5) SHA1(124123823be6bd597805484539d821aaaadde2c0) ) /* sprites */ | |
| 405 | ROM_LOAD( "878c06.k5", 0x40000, 0x40000, CRC(edfaaaaf) SHA1(67468c4ce47e8d43d58de8d3b50b048c66508156) ) /* sprites */ | |
| 382 | 406 | |
| 383 | 407 | ROM_REGION( 0x0100, REGION_PROMS, 0 ) |
| 384 | ROM_LOAD( "878a09. | |
| 408 | ROM_LOAD( "878a09.f20", 0x0000, 0x0100, CRC(e2d09a1b) SHA1(a9651e137486b2df367c39eb43f52d0833589e87) ) /* priority encoder (not used) */ | |
| 385 | 409 | |
| 386 | 410 | ROM_REGION( 0x40000, REGION_SOUND1, 0 ) /* samples for 007232 */ |
| 387 | ROM_LOAD( "878c04. | |
| 411 | ROM_LOAD( "878c04.d5 | |
| 388 | 412 | ROM_END |
| 389 | 413 | |
| 390 | 414 | |
| r1238 | r1239 | |
| 426 | 450 | |
| 427 | 451 | |
| 428 | 452 | |
| 429 | GAME( 1988, gbusters, 0, gbusters, gbusters, gbusters, ROT90, "Konami", "Gang Busters", 0 ) | |
| 430 | GAME( 1988, crazycop, gbusters, gbusters, gbusters, gbusters, ROT90, "Konami", "Crazy Cop (Japan)", 0 ) | |
| 453 | GAME( 1988, gbusters, 0, gbusters, gbusters, gbusters, ROT90, "Konami", "Gang Busters (set 1)", 0 ) /* N02 & J03 program roms */ | |
| 454 | GAME( 1988, gbustera, gbusters, gbusters, gbusters, gbusters, ROT90, "Konami", "Gang Busters (set 2)", 0 ) /* unknown region program roms */ | |
| 455 | GAME( 1988, crazycop, gbusters, gbusters, gbusters, gbusters, ROT90, "Konami", "Crazy Cop (Japan)", 0 ) /* M02 & J03 program roms */ |
| r1238 | r1239 | |
|---|---|---|
| 177 | 177 | PORT_DIPSETTING( 0x10, "1 coin/1 credit - 2 coins/3 credits" ) \ |
| 178 | 178 | PORT_DIPSETTING( 0x00, " 1 coin/1 credit" ) |
| 179 | 179 | |
| 180 | INPUT_PORTS_START ( megaplay ) | |
| 180 | static INPUT_PORTS_START ( megaplay ) | |
| 181 | 181 | GENESIS_PORTS |
| 182 | 182 | MEGAPLAY_TEST |
| 183 | 183 | MEGAPLAY_COIN |
| r1238 | r1239 | |
| 186 | 186 | |
| 187 | 187 | INPUT_PORTS_END |
| 188 | 188 | |
| 189 | INPUT_PORTS_START ( mp_sonic ) | |
| 189 | static INPUT_PORTS_START ( mp_sonic ) | |
| 190 | 190 | GENESIS_PORTS |
| 191 | 191 | MEGAPLAY_TEST |
| 192 | 192 | MEGAPLAY_COIN |
| r1238 | r1239 | |
| 214 | 214 | |
| 215 | 215 | INPUT_PORTS_END |
| 216 | 216 | |
| 217 | INPUT_PORTS_START ( mp_gaxe2 ) | |
| 217 | static INPUT_PORTS_START ( mp_gaxe2 ) | |
| 218 | 218 | GENESIS_PORTS |
| 219 | 219 | MEGAPLAY_TEST |
| 220 | 220 | MEGAPLAY_COIN |
| r1238 | r1239 | |
| 247 | 247 | |
| 248 | 248 | INPUT_PORTS_END |
| 249 | 249 | |
| 250 | INPUT_PORTS_START ( mp_col3 ) | |
| 250 | static INPUT_PORTS_START ( mp_col3 ) | |
| 251 | 251 | GENESIS_PORTS |
| 252 | 252 | MEGAPLAY_TEST |
| 253 | 253 | MEGAPLAY_COIN |
| r1238 | r1239 | |
| 278 | 278 | |
| 279 | 279 | INPUT_PORTS_END |
| 280 | 280 | |
| 281 | INPUT_PORTS_START ( mp_twc ) | |
| 281 | static INPUT_PORTS_START ( mp_twc ) | |
| 282 | 282 | GENESIS_PORTS |
| 283 | 283 | MEGAPLAY_TEST |
| 284 | 284 | MEGAPLAY_COIN |
| r1238 | r1239 | |
| 303 | 303 | |
| 304 | 304 | INPUT_PORTS_END |
| 305 | 305 | |
| 306 | INPUT_PORTS_START ( mp_sor2 ) | |
| 306 | static INPUT_PORTS_START ( mp_sor2 ) | |
| 307 | 307 | GENESIS_PORTS |
| 308 | 308 | MEGAPLAY_TEST |
| 309 | 309 | MEGAPLAY_COIN |
| r1238 | r1239 | |
| 326 | 326 | |
| 327 | 327 | INPUT_PORTS_END |
| 328 | 328 | |
| 329 | INPUT_PORTS_START ( mp_bio ) | |
| 329 | static INPUT_PORTS_START ( mp_bio ) | |
| 330 | 330 | GENESIS_PORTS |
| 331 | 331 | MEGAPLAY_TEST |
| 332 | 332 | MEGAPLAY_COIN |
| r1238 | r1239 | |
| 349 | 349 | |
| 350 | 350 | INPUT_PORTS_END |
| 351 | 351 | |
| 352 | INPUT_PORTS_START ( mp_gslam ) | |
| 352 | static INPUT_PORTS_START ( mp_gslam ) | |
| 353 | 353 | GENESIS_PORTS |
| 354 | 354 | MEGAPLAY_TEST |
| 355 | 355 | MEGAPLAY_COIN |
| r1238 | r1239 | |
| 375 | 375 | |
| 376 | 376 | INPUT_PORTS_END |
| 377 | 377 | |
| 378 | INPUT_PORTS_START ( mp_mazin ) | |
| 378 | static INPUT_PORTS_START ( mp_mazin ) | |
| 379 | 379 | GENESIS_PORTS |
| 380 | 380 | MEGAPLAY_TEST |
| 381 | 381 | MEGAPLAY_COIN |
| r1238 | r1239 | |
| 402 | 402 | |
| 403 | 403 | INPUT_PORTS_END |
| 404 | 404 | |
| 405 | INPUT_PORTS_START ( mp_soni2 ) | |
| 405 | static INPUT_PORTS_START ( mp_soni2 ) | |
| 406 | 406 | GENESIS_PORTS |
| 407 | 407 | MEGAPLAY_TEST |
| 408 | 408 | MEGAPLAY_COIN |
| r1238 | r1239 | |
| 1055 | 1055 | |
| 1056 | 1056 | */ |
| 1057 | 1057 | |
| 1058 | /* -- */ GAMEB( 1993, megaplay, 0, megaplay, mpnew, megaplay, megaplay, ROT0, "Sega", "Mega Play BIOS", GAME_IS_BIOS_ROOT ) | |
| 1059 | /* 01 */ GAMEB( 1993, mp_sonic, megaplay, megaplay, mpnew, mp_sonic, megaplay, ROT0, "Sega", "Sonic The Hedgehog (Mega Play)" , 0 ) | |
| 1060 | /* 02 */ GAMEB( 1993, mp_gaxe2, megaplay, megaplay, mpnew, mp_gaxe2, megaplay, ROT0, "Sega", "Golden Axe II (Mega Play)" , 0 ) | |
| 1061 | /* 03 */ GAMEB( 1993, mp_gslam, megaplay, megaplay, mpnew, mp_gslam, megaplay, ROT0, "Sega", "Grand Slam (Mega Play)",0 ) | |
| 1062 | /* 04 */ GAMEB( 1993, mp_twc, megaplay, megaplay, mpnew, mp_twc, megaplay, ROT0, "Sega", "Tecmo World Cup (Mega Play)" , 0 ) | |
| 1063 | /* 05 */ GAMEB( 1993, mp_sor2, megaplay, megaplay, mpnew, mp_sor2, megaplay, ROT0, "Sega", "Streets of Rage II (Mega Play)" , 0 ) | |
| 1064 | /* 06 */ GAMEB( 1993, mp_bio, megaplay, megaplay, mpnew, mp_bio, megaplay, ROT0, "Sega", "Bio-hazard Battle (Mega Play)" , 0 ) | |
| 1065 | /* 07 */ GAMEB( 1993, mp_soni2, megaplay, megaplay, mpnew, mp_soni2, megaplay, ROT0, "Sega", "Sonic The Hedgehog 2 (Mega Play)" , 0 ) | |
| 1058 | /* -- */ GAME( 1993, megaplay, 0, mpnew, megaplay, megaplay, ROT0, "Sega", "Mega Play BIOS", GAME_IS_BIOS_ROOT ) | |
| 1059 | /* 01 */ GAME( 1993, mp_sonic, megaplay, mpnew, mp_sonic, megaplay, ROT0, "Sega", "Sonic The Hedgehog (Mega Play)" , 0 ) | |
| 1060 | /* 02 */ GAME( 1993, mp_gaxe2, megaplay, mpnew, mp_gaxe2, megaplay, ROT0, "Sega", "Golden Axe II (Mega Play)" , 0 ) | |
| 1061 | /* 03 */ GAME( 1993, mp_gslam, megaplay, mpnew, mp_gslam, megaplay, ROT0, "Sega", "Grand Slam (Mega Play)",0 ) | |
| 1062 | /* 04 */ GAME( 1993, mp_twc, megaplay, mpnew, mp_twc, megaplay, ROT0, "Sega", "Tecmo World Cup (Mega Play)" , 0 ) | |
| 1063 | /* 05 */ GAME( 1993, mp_sor2, megaplay, mpnew, mp_sor2, megaplay, ROT0, "Sega", "Streets of Rage II (Mega Play)" , 0 ) | |
| 1064 | /* 06 */ GAME( 1993, mp_bio, megaplay, mpnew, mp_bio, megaplay, ROT0, "Sega", "Bio-hazard Battle (Mega Play)" , 0 ) | |
| 1065 | /* 07 */ GAME( 1993, mp_soni2, megaplay, mpnew, mp_soni2, megaplay, ROT0, "Sega", "Sonic The Hedgehog 2 (Mega Play)" , 0 ) | |
| 1066 | 1066 | /* 08 */ |
| 1067 | 1067 | /* 09 */ |
| 1068 | 1068 | /* 10 */ |
| 1069 | /* 11 */ GAME | |
| 1069 | /* 11 */ GAME | |
| 1070 | 1070 | |
| 1071 | /* ?? */ GAME | |
| 1071 | /* ?? */ GAME | |
| 1072 | 1072 | |
| 1073 | 1073 | |
| 1074 | 1074 | /* Also known to exist: |
| r1238 | r1239 | |
|---|---|---|
| 426 | 426 | * |
| 427 | 427 | *************************************/ |
| 428 | 428 | |
| 429 | INPUT_PORTS_START( meadows ) | |
| 429 | static INPUT_PORTS_START( meadows ) | |
| 430 | 430 | PORT_START /* IN0 buttons */ |
| 431 | 431 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 432 | 432 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 470 | 470 | INPUT_PORTS_END |
| 471 | 471 | |
| 472 | 472 | |
| 473 | INPUT_PORTS_START( minferno ) | |
| 473 | static INPUT_PORTS_START( minferno ) | |
| 474 | 474 | PORT_START /* IN0 left joystick */ |
| 475 | 475 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 476 | 476 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 49 | 49 | ADDRESS_MAP_END |
| 50 | 50 | |
| 51 | 51 | |
| 52 | INPUT_PORTS_START( dotrikun ) | |
| 52 | static INPUT_PORTS_START( dotrikun ) | |
| 53 | 53 | PORT_START |
| 54 | 54 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) |
| 55 | 55 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 83 | 83 | |
| 84 | 84 | /* Input Ports */ |
| 85 | 85 | |
| 86 | INPUT_PORTS_START( bogeyman ) | |
| 86 | static INPUT_PORTS_START( bogeyman ) | |
| 87 | 87 | PORT_START_TAG("IN0") |
| 88 | 88 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 89 | 89 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
|---|---|---|
| 533 | 533 | * |
| 534 | 534 | *************************************/ |
| 535 | 535 | |
| 536 | INPUT_PORTS_START( harddriv ) | |
| 536 | static INPUT_PORTS_START( harddriv ) | |
| 537 | 537 | PORT_START_TAG("600000") |
| 538 | 538 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED ) /* diagnostic switch */ |
| 539 | 539 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_SPECIAL ) /* HBLANK */ |
| r1238 | r1239 | |
| 589 | 589 | INPUT_PORTS_END |
| 590 | 590 | |
| 591 | 591 | |
| 592 | INPUT_PORTS_START( racedriv ) | |
| 592 | static INPUT_PORTS_START( racedriv ) | |
| 593 | 593 | PORT_START_TAG("600000") |
| 594 | 594 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED ) /* diagnostic switch */ |
| 595 | 595 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_SPECIAL ) /* HBLANK */ |
| r1238 | r1239 | |
| 645 | 645 | INPUT_PORTS_END |
| 646 | 646 | |
| 647 | 647 | |
| 648 | INPUT_PORTS_START( racedrvc ) | |
| 648 | static INPUT_PORTS_START( racedrvc ) | |
| 649 | 649 | PORT_START_TAG("60c000") |
| 650 | 650 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED ) /* diagnostic switch */ |
| 651 | 651 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_SPECIAL ) /* HBLANK */ |
| r1238 | r1239 | |
| 707 | 707 | INPUT_PORTS_END |
| 708 | 708 | |
| 709 | 709 | |
| 710 | INPUT_PORTS_START( stunrun ) | |
| 710 | static INPUT_PORTS_START( stunrun ) | |
| 711 | 711 | PORT_START_TAG("60c000") |
| 712 | 712 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 713 | 713 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_SPECIAL ) /* HBLANK */ |
| r1238 | r1239 | |
| 765 | 765 | INPUT_PORTS_END |
| 766 | 766 | |
| 767 | 767 | |
| 768 | INPUT_PORTS_START( steeltal ) | |
| 768 | static INPUT_PORTS_START( steeltal ) | |
| 769 | 769 | PORT_START_TAG("60c000") |
| 770 | 770 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 771 | 771 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_SPECIAL ) /* HBLANK */ |
| r1238 | r1239 | |
| 824 | 824 | INPUT_PORTS_END |
| 825 | 825 | |
| 826 | 826 | |
| 827 | INPUT_PORTS_START( strtdriv ) | |
| 827 | static INPUT_PORTS_START( strtdriv ) | |
| 828 | 828 | PORT_START_TAG("60c000") |
| 829 | 829 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 830 | 830 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_SPECIAL ) /* HBLANK */ |
| r1238 | r1239 | |
| 887 | 887 | INPUT_PORTS_END |
| 888 | 888 | |
| 889 | 889 | |
| 890 | INPUT_PORTS_START( hdrivair ) | |
| 890 | static INPUT_PORTS_START( hdrivair ) | |
| 891 | 891 | PORT_START_TAG("60c000") |
| 892 | 892 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 893 | 893 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_SPECIAL ) /* HBLANK */ |
| r1238 | r1239 | |
|---|---|---|
| 655 | 655 | PORT_BIT ( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ |
| 656 | 656 | PORT_BIT ( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 657 | 657 | |
| 658 | INPUT_PORTS_START( srmp2 ) | |
| 658 | static INPUT_PORTS_START( srmp2 ) | |
| 659 | 659 | PORT_START_TAG("IN0") /* Coinage (0) */ |
| 660 | 660 | PORT_BIT ( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 661 | 661 | PORT_BIT ( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 734 | 734 | INPUT_PORTS_END |
| 735 | 735 | |
| 736 | 736 | |
| 737 | INPUT_PORTS_START( srmp3 ) | |
| 737 | static INPUT_PORTS_START( srmp3 ) | |
| 738 | 738 | PORT_START_TAG("IN0") /* Coinage (0) */ |
| 739 | 739 | PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 740 | 740 | PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r1238 | r1239 | |
| 811 | 811 | INPUT_PORTS_END |
| 812 | 812 | |
| 813 | 813 | |
| 814 | INPUT_PORTS_START( mjyuugi ) | |
| 814 | static INPUT_PORTS_START( mjyuugi ) | |
| 815 | 815 | PORT_START_TAG("IN0") /* Coinage (0) */ |
| 816 | 816 | PORT_BIT ( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 817 | 817 | PORT_BIT ( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 921 | 921 | PORT_BIT ( 0xfff0, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 922 | 922 | INPUT_PORTS_END |
| 923 | 923 | |
| 924 | INPUT_PORTS_START( ponchin ) | |
| 924 | static INPUT_PORTS_START( ponchin ) | |
| 925 | 925 | PORT_START_TAG("IN0") /* Coinage (0) */ |
| 926 | 926 | PORT_BIT ( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 927 | 927 | PORT_BIT ( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 850 | 850 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 851 | 851 | |
| 852 | 852 | |
| 853 | INPUT_PORTS_START( rtype ) | |
| 853 | static INPUT_PORTS_START( rtype ) | |
| 854 | 854 | PORT_START |
| 855 | 855 | JOYSTICK_1 |
| 856 | 856 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 ) |
| r1238 | r1239 | |
| 916 | 916 | INPUT_PORTS_END |
| 917 | 917 | |
| 918 | 918 | /* identical but Demo Sounds is inverted */ |
| 919 | INPUT_PORTS_START( rtypep ) | |
| 919 | static INPUT_PORTS_START( rtypep ) | |
| 920 | 920 | PORT_START |
| 921 | 921 | JOYSTICK_1 |
| 922 | 922 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 ) |
| r1238 | r1239 | |
| 981 | 981 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) |
| 982 | 982 | INPUT_PORTS_END |
| 983 | 983 | |
| 984 | INPUT_PORTS_START( bchopper ) | |
| 984 | static INPUT_PORTS_START( bchopper ) | |
| 985 | 985 | PORT_START |
| 986 | 986 | JOYSTICK_1 |
| 987 | 987 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 ) |
| r1238 | r1239 | |
| 1046 | 1046 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) |
| 1047 | 1047 | INPUT_PORTS_END |
| 1048 | 1048 | |
| 1049 | INPUT_PORTS_START( nspirit ) | |
| 1049 | static INPUT_PORTS_START( nspirit ) | |
| 1050 | 1050 | PORT_START |
| 1051 | 1051 | JOYSTICK_1 |
| 1052 | 1052 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 ) |
| r1238 | r1239 | |
| 1110 | 1110 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) |
| 1111 | 1111 | INPUT_PORTS_END |
| 1112 | 1112 | |
| 1113 | INPUT_PORTS_START( imgfight ) | |
| 1113 | static INPUT_PORTS_START( imgfight ) | |
| 1114 | 1114 | PORT_START |
| 1115 | 1115 | JOYSTICK_1 |
| 1116 | 1116 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 ) |
| r1238 | r1239 | |
| 1172 | 1172 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) |
| 1173 | 1173 | INPUT_PORTS_END |
| 1174 | 1174 | |
| 1175 | INPUT_PORTS_START( loht ) | |
| 1175 | static INPUT_PORTS_START( loht ) | |
| 1176 | 1176 | PORT_START |
| 1177 | 1177 | JOYSTICK_1 |
| 1178 | 1178 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 ) |
| r1238 | r1239 | |
| 1234 | 1234 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) |
| 1235 | 1235 | INPUT_PORTS_END |
| 1236 | 1236 | |
| 1237 | INPUT_PORTS_START( xmultipl ) | |
| 1237 | static INPUT_PORTS_START( xmultipl ) | |
| 1238 | 1238 | PORT_START |
| 1239 | 1239 | JOYSTICK_1 |
| 1240 | 1240 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 ) |
| r1238 | r1239 | |
| 1297 | 1297 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) |
| 1298 | 1298 | INPUT_PORTS_END |
| 1299 | 1299 | |
| 1300 | INPUT_PORTS_START( dbreed ) | |
| 1300 | static INPUT_PORTS_START( dbreed ) | |
| 1301 | 1301 | PORT_START |
| 1302 | 1302 | JOYSTICK_1 |
| 1303 | 1303 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 ) |
| r1238 | r1239 | |
| 1359 | 1359 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) |
| 1360 | 1360 | INPUT_PORTS_END |
| 1361 | 1361 | |
| 1362 | INPUT_PORTS_START( rtype2 ) | |
| 1362 | static INPUT_PORTS_START( rtype2 ) | |
| 1363 | 1363 | PORT_START |
| 1364 | 1364 | JOYSTICK_1 |
| 1365 | 1365 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 ) |
| r1238 | r1239 | |
| 1419 | 1419 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) |
| 1420 | 1420 | INPUT_PORTS_END |
| 1421 | 1421 | |
| 1422 | INPUT_PORTS_START( hharry ) | |
| 1422 | static INPUT_PORTS_START( hharry ) | |
| 1423 | 1423 | PORT_START |
| 1424 | 1424 | JOYSTICK_1 |
| 1425 | 1425 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 ) |
| r1238 | r1239 | |
| 1496 | 1496 | // COIN_MODE_2 |
| 1497 | 1497 | INPUT_PORTS_END |
| 1498 | 1498 | |
| 1499 | INPUT_PORTS_START( poundfor ) | |
| 1499 | static INPUT_PORTS_START( poundfor ) | |
| 1500 | 1500 | PORT_START |
| 1501 | 1501 | PORT_BIT( 0x001f, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* high bits of trackball X */ |
| 1502 | 1502 | PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1585 | 1585 | PORT_BIT( 0xffff, 0x0000, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(50) PORT_KEYDELTA(30) PORT_PLAYER(2) |
| 1586 | 1586 | INPUT_PORTS_END |
| 1587 | 1587 | |
| 1588 | INPUT_PORTS_START( airduel ) | |
| 1588 | static INPUT_PORTS_START( airduel ) | |
| 1589 | 1589 | PORT_START |
| 1590 | 1590 | JOYSTICK_1 |
| 1591 | 1591 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 ) |
| r1238 | r1239 | |
| 1654 | 1654 | // COIN_MODE_2 |
| 1655 | 1655 | INPUT_PORTS_END |
| 1656 | 1656 | |
| 1657 | INPUT_PORTS_START( gallop ) | |
| 1657 | static INPUT_PORTS_START( gallop ) | |
| 1658 | 1658 | PORT_START |
| 1659 | 1659 | JOYSTICK_1 |
| 1660 | 1660 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 ) |
| r1238 | r1239 | |
| 1729 | 1729 | // COIN_MODE_2 |
| 1730 | 1730 | INPUT_PORTS_END |
| 1731 | 1731 | |
| 1732 | INPUT_PORTS_START( kengo ) | |
| 1732 | static INPUT_PORTS_START( kengo ) | |
| 1733 | 1733 | PORT_START |
| 1734 | 1734 | JOYSTICK_1 |
| 1735 | 1735 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 ) |
| r1238 | r1239 | |
|---|---|---|
| 94 | 94 | |
| 95 | 95 | |
| 96 | 96 | |
| 97 | INPUT_PORTS_START( ohmygod ) | |
| 97 | static INPUT_PORTS_START( ohmygod ) | |
| 98 | 98 | PORT_START |
| 99 | 99 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 100 | 100 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 194 | 194 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 195 | 195 | INPUT_PORTS_END |
| 196 | 196 | |
| 197 | INPUT_PORTS_START( naname ) | |
| 197 | static INPUT_PORTS_START( naname ) | |
| 198 | 198 | PORT_START |
| 199 | 199 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 200 | 200 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 166 | 166 | ADDRESS_MAP_END |
| 167 | 167 | |
| 168 | 168 | |
| 169 | INPUT_PORTS_START( pokechmp ) | |
| 169 | static INPUT_PORTS_START( pokechmp ) | |
| 170 | 170 | PORT_START |
| 171 | 171 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 172 | 172 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 278 | 278 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) )\ |
| 279 | 279 | PORT_DIPSETTING( 0xc0, DEF_STR( Hardest ) ) |
| 280 | 280 | |
| 281 | INPUT_PORTS_START( pow ) | |
| 281 | static INPUT_PORTS_START( pow ) | |
| 282 | 282 | POW_IN0 |
| 283 | 283 | POW_IN1 |
| 284 | 284 | POW_IN2 |
| r1238 | r1239 | |
| 311 | 311 | INPUT_PORTS_END |
| 312 | 312 | |
| 313 | 313 | /* Identical to pow, but the Language dip switch has no effect */ |
| 314 | INPUT_PORTS_START( powj ) | |
| 314 | static INPUT_PORTS_START( powj ) | |
| 315 | 315 | POW_IN0 |
| 316 | 316 | POW_IN1 |
| 317 | 317 | POW_IN2 |
| r1238 | r1239 | |
| 343 | 343 | POW_DSW2 |
| 344 | 344 | INPUT_PORTS_END |
| 345 | 345 | |
| 346 | INPUT_PORTS_START( searchar ) | |
| 346 | static INPUT_PORTS_START( searchar ) | |
| 347 | 347 | PORT_START_TAG("IN0") /* Player 1 controls */ |
| 348 | 348 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 349 | 349 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 466 | 466 | PORT_START_TAG("ROT2") /* player 2 12-way rotary control - not used in this game */\ |
| 467 | 467 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 468 | 468 | |
| 469 | INPUT_PORTS_START( streetsm ) | |
| 469 | static INPUT_PORTS_START( streetsm ) | |
| 470 | 470 | STREETS_IN0 |
| 471 | 471 | STREETS_IN1 |
| 472 | 472 | POW_IN2 |
| r1238 | r1239 | |
| 499 | 499 | INPUT_PORTS_END |
| 500 | 500 | |
| 501 | 501 | /* Same as streetsm, but Coinage is different */ |
| 502 | INPUT_PORTS_START( streetsj ) | |
| 502 | static INPUT_PORTS_START( streetsj ) | |
| 503 | 503 | STREETS_IN0 |
| 504 | 504 | STREETS_IN1 |
| 505 | 505 | POW_IN2 |
| r1238 | r1239 | |
| 531 | 531 | STREETS_REST |
| 532 | 532 | INPUT_PORTS_END |
| 533 | 533 | |
| 534 | INPUT_PORTS_START( ikari3 ) | |
| 534 | static INPUT_PORTS_START( ikari3 ) | |
| 535 | 535 | PORT_START_TAG("IN0") /* Player 1 controls, maybe all are active_high? */ |
| 536 | 536 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 537 | 537 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 530 | 530 | ADDRESS_MAP_END |
| 531 | 531 | |
| 532 | 532 | |
| 533 | INPUT_PORTS_START( madalien ) | |
| 533 | static INPUT_PORTS_START( madalien ) | |
| 534 | 534 | PORT_START_TAG("PLAYER1") |
| 535 | 535 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| 536 | 536 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 28 | 28 | return 0; |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | INPUT_PORTS_START( igs_180 ) | |
| 31 | static INPUT_PORTS_START( igs_180 ) | |
| 32 | 32 | INPUT_PORTS_END |
| 33 | 33 | |
| 34 | 34 | static ADDRESS_MAP_START( igs_180_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| r1238 | r1239 | |
|---|---|---|
| 127 | 127 | |
| 128 | 128 | |
| 129 | 129 | |
| 130 | INPUT_PORTS_START( formatz ) | |
| 130 | static INPUT_PORTS_START( formatz ) | |
| 131 | 131 | PORT_START_TAG("IN0") |
| 132 | 132 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 133 | 133 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 375 | 375 | MDRV_SOUND_ROUTE( 1, "right", 1.0 ) |
| 376 | 376 | MACHINE_DRIVER_END |
| 377 | 377 | |
| 378 | INPUT_PORTS_START( konamigv ) | |
| 378 | static INPUT_PORTS_START( konamigv ) | |
| 379 | 379 | PORT_START_TAG("IN0") |
| 380 | 380 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 381 | 381 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT) PORT_8WAY |
| r1238 | r1239 | |
| 553 | 553 | MDRV_NVRAM_HANDLER( simpbowl ) |
| 554 | 554 | MACHINE_DRIVER_END |
| 555 | 555 | |
| 556 | INPUT_PORTS_START( simpbowl ) | |
| 556 | static INPUT_PORTS_START( simpbowl ) | |
| 557 | 557 | PORT_INCLUDE( konamigv ) |
| 558 | 558 | |
| 559 | 559 | PORT_START_TAG("IN3") |
| r1238 | r1239 | |
| 642 | 642 | MDRV_NVRAM_HANDLER( btchamp ) |
| 643 | 643 | MACHINE_DRIVER_END |
| 644 | 644 | |
| 645 | INPUT_PORTS_START( btchamp ) | |
| 645 | static INPUT_PORTS_START( btchamp ) | |
| 646 | 646 | PORT_INCLUDE( konamigv ) |
| 647 | 647 | |
| 648 | 648 | PORT_START_TAG("IN3") |
| r1238 | r1239 | |
| 734 | 734 | MDRV_NVRAM_HANDLER( btchamp ) |
| 735 | 735 | MACHINE_DRIVER_END |
| 736 | 736 | |
| 737 | INPUT_PORTS_START( kdeadeye ) | |
| 737 | static INPUT_PORTS_START( kdeadeye ) | |
| 738 | 738 | PORT_INCLUDE( konamigv ) |
| 739 | 739 | |
| 740 | 740 | PORT_MODIFY("IN0") |
| r1238 | r1239 | |
|---|---|---|
| 325 | 325 | |
| 326 | 326 | |
| 327 | 327 | |
| 328 | INPUT_PORTS_START( firetrap ) | |
| 328 | static INPUT_PORTS_START( firetrap ) | |
| 329 | 329 | PORT_START /* IN0 */ |
| 330 | 330 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_4WAY |
| 331 | 331 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_4WAY |
| r1238 | r1239 | |
| 408 | 408 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 409 | 409 | INPUT_PORTS_END |
| 410 | 410 | |
| 411 | INPUT_PORTS_START( firetpbl ) | |
| 411 | static INPUT_PORTS_START( firetpbl ) | |
| 412 | 412 | PORT_START /* IN0 */ |
| 413 | 413 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_4WAY |
| 414 | 414 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_4WAY |
| r1238 | r1239 | |
|---|---|---|
| 270 | 270 | * |
| 271 | 271 | *************************************/ |
| 272 | 272 | |
| 273 | INPUT_PORTS_START( crgolf ) | |
| 273 | static INPUT_PORTS_START( crgolf ) | |
| 274 | 274 | PORT_START /* CREDIT */ |
| 275 | 275 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 276 | 276 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| r1238 | r1239 | |
|---|---|---|
| 726 | 726 | |
| 727 | 727 | /* Input Ports */ |
| 728 | 728 | |
| 729 | INPUT_PORTS_START( mastboy ) | |
| 729 | static INPUT_PORTS_START( mastboy ) | |
| 730 | 730 | PORT_START |
| 731 | 731 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 732 | 732 | PORT_BIT( 0x1e, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
|---|---|---|
| 205 | 205 | |
| 206 | 206 | ***************************************************************************/ |
| 207 | 207 | |
| 208 | INPUT_PORTS_START( thedeep ) | |
| 208 | static INPUT_PORTS_START( thedeep ) | |
| 209 | 209 | PORT_START_TAG("IN0") // e008 |
| 210 | 210 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) // Up / down shown in service mode |
| 211 | 211 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 160 | 160 | AM_RANGE(0xe010, 0xe010) AM_WRITE(OKIM6295_data_0_w) |
| 161 | 161 | ADDRESS_MAP_END |
| 162 | 162 | |
| 163 | INPUT_PORTS_START( oneshot ) | |
| 163 | static INPUT_PORTS_START( oneshot ) | |
| 164 | 164 | PORT_START /* DSW 1 (0x19c020.l -> 0x08006c.l) */ |
| 165 | 165 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) // 0x080084.l : credits (00-09) |
| 166 | 166 | PORT_DIPSETTING( 0x03, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
| 247 | 247 | |
| 248 | 248 | INPUT_PORTS_END |
| 249 | 249 | |
| 250 | INPUT_PORTS_START( maddonna ) | |
| 250 | static INPUT_PORTS_START( maddonna ) | |
| 251 | 251 | PORT_START /* DSW A */ |
| 252 | 252 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) |
| 253 | 253 | PORT_DIPSETTING( 0x03, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 127 | 127 | AM_RANGE(0x410000, 0x410001) AM_READWRITE(OKIM6295_status_0_lsb_r, OKIM6295_data_0_lsb_w) |
| 128 | 128 | ADDRESS_MAP_END |
| 129 | 129 | |
| 130 | INPUT_PORTS_START( stlforce ) | |
| 130 | static INPUT_PORTS_START( stlforce ) | |
| 131 | 131 | PORT_START |
| 132 | 132 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 133 | 133 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 229 | 229 | AM_RANGE(0xbc0c, 0xbc0c) AM_WRITE(MWA8_NOP) // ?? |
| 230 | 230 | ADDRESS_MAP_END |
| 231 | 231 | |
| 232 | INPUT_PORTS_START( rmhaihai ) | |
| 232 | static INPUT_PORTS_START( rmhaihai ) | |
| 233 | 233 | PORT_START /* dsw2 */ |
| 234 | 234 | PORT_DIPNAME( 0x01, 0x01, "Unknown 2-1" ) |
| 235 | 235 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 341 | 341 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1) |
| 342 | 342 | INPUT_PORTS_END |
| 343 | 343 | |
| 344 | INPUT_PORTS_START( rmhaihib ) | |
| 344 | static INPUT_PORTS_START( rmhaihib ) | |
| 345 | 345 | PORT_START /* dsw2 */ |
| 346 | 346 | PORT_DIPNAME( 0x01, 0x01, "Unknown 2-1" ) |
| 347 | 347 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 535 | 535 | INPUT PORTS, DIPs |
| 536 | 536 | ***********************************************************/ |
| 537 | 537 | |
| 538 | INPUT_PORTS_START( topspeed ) | |
| 538 | static INPUT_PORTS_START( topspeed ) | |
| 539 | 539 | /* 0x880000 (port 0) -> 0x400852 (-$77ae,A5) (shared RAM) */ |
| 540 | 540 | PORT_START_TAG("DSWA") |
| 541 | 541 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Cabinet ) ) |
| r1238 | r1239 | |
| 609 | 609 | PORT_CONFSETTING( 0x00, "Analogue" ) |
| 610 | 610 | INPUT_PORTS_END |
| 611 | 611 | |
| 612 | INPUT_PORTS_START( fullthrl ) | |
| 612 | static INPUT_PORTS_START( fullthrl ) | |
| 613 | 613 | PORT_INCLUDE(topspeed) |
| 614 | 614 | |
| 615 | 615 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
|---|---|---|
| 417 | 417 | /*****************************************************************************/ |
| 418 | 418 | |
| 419 | 419 | |
| 420 | INPUT_PORTS_START( midnrun ) | |
| 420 | static INPUT_PORTS_START( midnrun ) | |
| 421 | 421 | PORT_START |
| 422 | 422 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) // View switch |
| 423 | 423 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) // Shift up |
| r1238 | r1239 | |
| 460 | 460 | |
| 461 | 461 | INPUT_PORTS_END |
| 462 | 462 | |
| 463 | INPUT_PORTS_START( windheat ) | |
| 463 | static INPUT_PORTS_START( windheat ) | |
| 464 | 464 | PORT_START |
| 465 | 465 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) // View switch |
| 466 | 466 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) // Shift up |
| r1238 | r1239 | |
| 503 | 503 | |
| 504 | 504 | INPUT_PORTS_END |
| 505 | 505 | |
| 506 | INPUT_PORTS_START( jetwave ) | |
| 506 | static INPUT_PORTS_START( jetwave ) | |
| 507 | 507 | PORT_START |
| 508 | 508 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 509 | 509 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
|---|---|---|
| 149 | 149 | |
| 150 | 150 | ***************************************************************************/ |
| 151 | 151 | |
| 152 | INPUT_PORTS_START( amspdwy ) | |
| 152 | static INPUT_PORTS_START( amspdwy ) | |
| 153 | 153 | |
| 154 | 154 | PORT_START_TAG("DSW1") |
| 155 | 155 | PORT_DIPNAME( 0x01, 0x00, "Character Test" ) |
| r1238 | r1239 | |
| 211 | 211 | INPUT_PORTS_END |
| 212 | 212 | |
| 213 | 213 | |
| 214 | INPUT_PORTS_START( amspdwya ) | |
| 214 | static INPUT_PORTS_START( amspdwya ) | |
| 215 | 215 | |
| 216 | 216 | PORT_INCLUDE(amspdwy) |
| 217 | 217 |
| r1238 | r1239 | |
|---|---|---|
| 1542 | 1542 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) ) |
| 1543 | 1543 | |
| 1544 | 1544 | |
| 1545 | INPUT_PORTS_START( transfrm ) /* Used By Transformer */ | |
| 1545 | static INPUT_PORTS_START( transfrm ) /* Used By Transformer */ | |
| 1546 | 1546 | PORT_START_TAG("DSW0") /* Read from Port 0xf2 */ |
| 1547 | 1547 | SEGA_COIN_A |
| 1548 | 1548 | SEGA_COIN_B |
| r1238 | r1239 | |
| 1591 | 1591 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1592 | 1592 | INPUT_PORTS_END |
| 1593 | 1593 | |
| 1594 | INPUT_PORTS_START( fantzn2 ) /* Used By Fantasy Zone 2 */ | |
| 1594 | static INPUT_PORTS_START( fantzn2 ) /* Used By Fantasy Zone 2 */ | |
| 1595 | 1595 | PORT_START_TAG("DSW0") /* Read from Port 0xf2 */ |
| 1596 | 1596 | SEGA_COIN_A |
| 1597 | 1597 | SEGA_COIN_B |
| r1238 | r1239 | |
| 1638 | 1638 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1639 | 1639 | INPUT_PORTS_END |
| 1640 | 1640 | |
| 1641 | INPUT_PORTS_START( opaopa ) /* Used By Opa Opa */ | |
| 1641 | static INPUT_PORTS_START( opaopa ) /* Used By Opa Opa */ | |
| 1642 | 1642 | PORT_START_TAG("DSW0") /* Read from Port 0xf2 */ |
| 1643 | 1643 | SEGA_COIN_A |
| 1644 | 1644 | SEGA_COIN_B |
| r1238 | r1239 | |
| 1698 | 1698 | INPUT_PORTS_END |
| 1699 | 1699 | |
| 1700 | 1700 | |
| 1701 | INPUT_PORTS_START( tetrisse ) /* Used By Tetris */ | |
| 1701 | static INPUT_PORTS_START( tetrisse ) /* Used By Tetris */ | |
| 1702 | 1702 | PORT_START_TAG("DSW0") /* Read from Port 0xf2 */ |
| 1703 | 1703 | SEGA_COIN_A |
| 1704 | 1704 | SEGA_COIN_B |
| r1238 | r1239 | |
| 1740 | 1740 | INPUT_PORTS_END |
| 1741 | 1741 | |
| 1742 | 1742 | |
| 1743 | INPUT_PORTS_START( hangonjr ) /* Used By Hang On Jr */ | |
| 1743 | static INPUT_PORTS_START( hangonjr ) /* Used By Hang On Jr */ | |
| 1744 | 1744 | PORT_START_TAG("DSW0") /* Read from Port 0xf2 */ |
| 1745 | 1745 | SEGA_COIN_A |
| 1746 | 1746 | SEGA_COIN_B |
| r1238 | r1239 | |
| 1790 | 1790 | PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_MINMAX(0x00,0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) |
| 1791 | 1791 | INPUT_PORTS_END |
| 1792 | 1792 | |
| 1793 | INPUT_PORTS_START( ridleofp ) /* Used By Riddle Of Pythagoras */ | |
| 1793 | static INPUT_PORTS_START( ridleofp ) /* Used By Riddle Of Pythagoras */ | |
| 1794 | 1794 | PORT_START_TAG("DSW0") /* Read from Port 0xf2 */ |
| 1795 | 1795 | SEGA_COIN_A |
| 1796 | 1796 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| r1238 | r1239 | |
|---|---|---|
| 381 | 381 | Fantasy Land |
| 382 | 382 | ***************************************************************************/ |
| 383 | 383 | |
| 384 | INPUT_PORTS_START( fantland ) | |
| 384 | static INPUT_PORTS_START( fantland ) | |
| 385 | 385 | PORT_START /* IN0 - a3000 */ |
| 386 | 386 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 387 | 387 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 455 | 455 | Galaxy Gunners |
| 456 | 456 | ***************************************************************************/ |
| 457 | 457 | |
| 458 | INPUT_PORTS_START( galaxygn ) | |
| 458 | static INPUT_PORTS_START( galaxygn ) | |
| 459 | 459 | PORT_START /* IN0 - 53000 */ |
| 460 | 460 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 461 | 461 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 530 | 530 | Born To Fight |
| 531 | 531 | ***************************************************************************/ |
| 532 | 532 | |
| 533 | INPUT_PORTS_START( borntofi ) | |
| 533 | static INPUT_PORTS_START( borntofi ) | |
| 534 | 534 | PORT_START /* IN0 - 53000 (Lightgun) */ |
| 535 | 535 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 536 | 536 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
|---|---|---|
| 160 | 160 | ADDRESS_MAP_END |
| 161 | 161 | |
| 162 | 162 | |
| 163 | INPUT_PORTS_START( dominob ) | |
| 163 | static INPUT_PORTS_START( dominob ) | |
| 164 | 164 | PORT_START_TAG("IN0") |
| 165 | 165 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 166 | 166 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) /* works (subs 2 credits), but starts a 1 player game as START1 */ |
| r1238 | r1239 | |
|---|---|---|
| 2745 | 2745 | MDRV_SOUND_ROUTE( 1, "right", 1.0 ) |
| 2746 | 2746 | MACHINE_DRIVER_END |
| 2747 | 2747 | |
| 2748 | INPUT_PORTS_START( konami573 ) | |
| 2748 | static INPUT_PORTS_START( konami573 ) | |
| 2749 | 2749 | PORT_START_TAG("IN0") |
| 2750 | 2750 | PORT_BIT( 0xffffffff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2751 | 2751 | |
| r1238 | r1239 | |
| 2826 | 2826 | PORT_CONFSETTING( 1, "Game" ) |
| 2827 | 2827 | INPUT_PORTS_END |
| 2828 | 2828 | |
| 2829 | INPUT_PORTS_START( fbaitbc ) | |
| 2829 | static INPUT_PORTS_START( fbaitbc ) | |
| 2830 | 2830 | PORT_INCLUDE( konami573 ) |
| 2831 | 2831 | |
| 2832 | 2832 | PORT_MODIFY("IN3") |
| r1238 | r1239 | |
| 2840 | 2840 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_PLAYER(1) |
| 2841 | 2841 | INPUT_PORTS_END |
| 2842 | 2842 | |
| 2843 | INPUT_PORTS_START( fbaitmc ) | |
| 2843 | static INPUT_PORTS_START( fbaitmc ) | |
| 2844 | 2844 | PORT_INCLUDE( fbaitbc ) |
| 2845 | 2845 | |
| 2846 | 2846 | PORT_START_TAG( "analog0" ) |
| r1238 | r1239 | |
| 2850 | 2850 | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_MINMAX(0x20,0xdf) PORT_SENSITIVITY(30) PORT_KEYDELTA(30) PORT_PLAYER(1) |
| 2851 | 2851 | INPUT_PORTS_END |
| 2852 | 2852 | |
| 2853 | INPUT_PORTS_START( ddr ) | |
| 2853 | static INPUT_PORTS_START( ddr ) | |
| 2854 | 2854 | PORT_INCLUDE( konami573 ) |
| 2855 | 2855 | |
| 2856 | 2856 | PORT_MODIFY("IN2") |
| r1238 | r1239 | |
| 2867 | 2867 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_16WAY PORT_PLAYER(2) |
| 2868 | 2868 | INPUT_PORTS_END |
| 2869 | 2869 | |
| 2870 | INPUT_PORTS_START( ddrsolo ) | |
| 2870 | static INPUT_PORTS_START( ddrsolo ) | |
| 2871 | 2871 | PORT_INCLUDE( konami573 ) |
| 2872 | 2872 | |
| 2873 | 2873 | PORT_MODIFY("IN2") |
| r1238 | r1239 | |
| 2896 | 2896 | PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_UNUSED ) /* P2 BUTTON6 */ |
| 2897 | 2897 | INPUT_PORTS_END |
| 2898 | 2898 | |
| 2899 | INPUT_PORTS_START( gtrfrks ) | |
| 2899 | static INPUT_PORTS_START( gtrfrks ) | |
| 2900 | 2900 | PORT_INCLUDE( konami573 ) |
| 2901 | 2901 | |
| 2902 | 2902 | PORT_MODIFY("IN1") |
| r1238 | r1239 | |
| 2929 | 2929 | PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_UNUSED ) /* P1 BUTTON6 */ |
| 2930 | 2930 | INPUT_PORTS_END |
| 2931 | 2931 | |
| 2932 | INPUT_PORTS_START( dmx ) | |
| 2932 | static INPUT_PORTS_START( dmx ) | |
| 2933 | 2933 | PORT_INCLUDE( konami573 ) |
| 2934 | 2934 | |
| 2935 | 2935 | PORT_MODIFY("IN2") |
| r1238 | r1239 | |
| 2957 | 2957 | PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_UNUSED ) /* P2 BUTTON6 */ |
| 2958 | 2958 | INPUT_PORTS_END |
| 2959 | 2959 | |
| 2960 | INPUT_PORTS_START( drmn ) | |
| 2960 | static INPUT_PORTS_START( drmn ) | |
| 2961 | 2961 | PORT_INCLUDE( konami573 ) |
| 2962 | 2962 | |
| 2963 | 2963 | PORT_MODIFY("IN1") |
| r1238 | r1239 | |
|---|---|---|
| 232 | 232 | * |
| 233 | 233 | *************************************/ |
| 234 | 234 | |
| 235 | INPUT_PORTS_START( hydra ) | |
| 235 | static INPUT_PORTS_START( hydra ) | |
| 236 | 236 | PORT_START /* fc0000 */ |
| 237 | 237 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON5 ) |
| 238 | 238 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 262 | 262 | INPUT_PORTS_END |
| 263 | 263 | |
| 264 | 264 | |
| 265 | INPUT_PORTS_START( pitfight ) | |
| 265 | static INPUT_PORTS_START( pitfight ) | |
| 266 | 266 | PORT_START /* fc0000 */ |
| 267 | 267 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| 268 | 268 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 310 | 310 | INPUT_PORTS_END |
| 311 | 311 | |
| 312 | 312 | |
| 313 | INPUT_PORTS_START( pitfighj ) | |
| 313 | static INPUT_PORTS_START( pitfighj ) | |
| 314 | 314 | PORT_START /* fc0000 */ |
| 315 | 315 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| 316 | 316 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 145 | 145 | * |
| 146 | 146 | *************************************/ |
| 147 | 147 | |
| 148 | INPUT_PORTS_START( sbrkout ) | |
| 148 | static INPUT_PORTS_START( sbrkout ) | |
| 149 | 149 | PORT_START /* DSW - fake port, gets mapped to Super Breakout ports */ |
| 150 | 150 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Language ) ) |
| 151 | 151 | PORT_DIPSETTING( 0x00, DEF_STR( English ) ) |
| r1238 | r1239 | |
|---|---|---|
| 160 | 160 | |
| 161 | 161 | ***************************************************************************/ |
| 162 | 162 | |
| 163 | INPUT_PORTS_START( bladestl ) | |
| 163 | static INPUT_PORTS_START( bladestl ) | |
| 164 | 164 | PORT_START /* DSW #1 */ |
| 165 | 165 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 166 | 166 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
| 271 | 271 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(63) PORT_PLAYER(2) |
| 272 | 272 | INPUT_PORTS_END |
| 273 | 273 | |
| 274 | INPUT_PORTS_START( bladstle ) | |
| 274 | static INPUT_PORTS_START( bladstle ) | |
| 275 | 275 | PORT_START /* DSW #1 */ |
| 276 | 276 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 277 | 277 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 150 | 150 | * |
| 151 | 151 | *************************************/ |
| 152 | 152 | |
| 153 | INPUT_PORTS_START( toobin ) | |
| 153 | static INPUT_PORTS_START( toobin ) | |
| 154 | 154 | PORT_START /* ff8800 */ |
| 155 | 155 | PORT_BIT(0x0001, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("P2 R Paddle Forward") PORT_CODE(KEYCODE_L) PORT_PLAYER(2) |
| 156 | 156 | PORT_BIT(0x0002, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("P2 L Paddle Forward") PORT_CODE(KEYCODE_J) PORT_PLAYER(2) |
| r1238 | r1239 | |
|---|---|---|
| 385 | 385 | * |
| 386 | 386 | *************************************/ |
| 387 | 387 | |
| 388 | INPUT_PORTS_START( bwidow ) | |
| 388 | static INPUT_PORTS_START( bwidow ) | |
| 389 | 389 | PORT_START_TAG("IN0") |
| 390 | 390 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 ) // To fit "Coin B" Dip Switch |
| 391 | 391 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 ) // To fit "Coin A" Dip Switch |
| r1238 | r1239 | |
| 464 | 464 | INPUT_PORTS_END |
| 465 | 465 | |
| 466 | 466 | |
| 467 | INPUT_PORTS_START( gravitar ) | |
| 467 | static INPUT_PORTS_START( gravitar ) | |
| 468 | 468 | PORT_START_TAG("IN0") |
| 469 | 469 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 ) // To fit "Coin B" Dip Switch |
| 470 | 470 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 ) // To fit "Coin A" Dip Switch |
| r1238 | r1239 | |
| 538 | 538 | INPUT_PORTS_END |
| 539 | 539 | |
| 540 | 540 | |
| 541 | INPUT_PORTS_START( lunarbat ) | |
| 541 | static INPUT_PORTS_START( lunarbat ) | |
| 542 | 542 | PORT_START_TAG("IN0") |
| 543 | 543 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 ) // To be similar with other games |
| 544 | 544 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 ) // To be similar with other games |
| r1238 | r1239 | |
| 572 | 572 | INPUT_PORTS_END |
| 573 | 573 | |
| 574 | 574 | |
| 575 | INPUT_PORTS_START( spacduel ) | |
| 575 | static INPUT_PORTS_START( spacduel ) | |
| 576 | 576 | PORT_START_TAG("IN0") |
| 577 | 577 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 ) // To fit "Coin B" Dip Switch |
| 578 | 578 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 ) // To fit "Coin A" Dip Switch |
| r1238 | r1239 | |
|---|---|---|
| 129 | 129 | ADDRESS_MAP_END |
| 130 | 130 | |
| 131 | 131 | |
| 132 | INPUT_PORTS_START( srumbler ) | |
| 132 | static INPUT_PORTS_START( srumbler ) | |
| 133 | 133 | PORT_START /* IN0 */ |
| 134 | 134 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 135 | 135 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 2814 | 2814 | |
| 2815 | 2815 | /*****************************************************************************/ |
| 2816 | 2816 | |
| 2817 | INPUT_PORTS_START( legionna ) | |
| 2817 | static INPUT_PORTS_START( legionna ) | |
| 2818 | 2818 | SEIBU_COIN_INPUTS /* Must be port 0: coin inputs read through sound cpu */ |
| 2819 | 2819 | |
| 2820 | 2820 | PORT_START |
| r1238 | r1239 | |
| 2902 | 2902 | INPUT_PORTS_END |
| 2903 | 2903 | |
| 2904 | 2904 | |
| 2905 | INPUT_PORTS_START( heatbrl ) | |
| 2905 | static INPUT_PORTS_START( heatbrl ) | |
| 2906 | 2906 | SEIBU_COIN_INPUTS /* Must be port 0: coin inputs read through sound cpu */ |
| 2907 | 2907 | |
| 2908 | 2908 | PORT_START |
| r1238 | r1239 | |
| 3006 | 3006 | INPUT_PORTS_END |
| 3007 | 3007 | |
| 3008 | 3008 | |
| 3009 | INPUT_PORTS_START( godzilla ) | |
| 3009 | static INPUT_PORTS_START( godzilla ) | |
| 3010 | 3010 | SEIBU_COIN_INPUTS /* Must be port 0: coin inputs read through sound cpu */ |
| 3011 | 3011 | |
| 3012 | 3012 | PORT_START |
| r1238 | r1239 | |
| 3104 | 3104 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3105 | 3105 | INPUT_PORTS_END |
| 3106 | 3106 | |
| 3107 | INPUT_PORTS_START( sdgndmrb ) | |
| 3107 | static INPUT_PORTS_START( sdgndmrb ) | |
| 3108 | 3108 | SEIBU_COIN_INPUTS /* Must be port 0: coin inputs read through sound cpu */ |
| 3109 | 3109 | |
| 3110 | 3110 | PORT_START |
| r1238 | r1239 | |
| 3249 | 3249 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3250 | 3250 | INPUT_PORTS_END |
| 3251 | 3251 | |
| 3252 | INPUT_PORTS_START( cupsoc ) | |
| 3252 | static INPUT_PORTS_START( cupsoc ) | |
| 3253 | 3253 | SEIBU_COIN_INPUTS /* Must be port 0: coin inputs read through sound cpu */ |
| 3254 | 3254 | |
| 3255 | 3255 | PORT_START |
| r1238 | r1239 | |
|---|---|---|
| 289 | 289 | GFXDECODE_END |
| 290 | 290 | |
| 291 | 291 | |
| 292 | INPUT_PORTS_START( livequiz ) | |
| 292 | static INPUT_PORTS_START( livequiz ) | |
| 293 | 293 | |
| 294 | 294 | PORT_START // IN0 |
| 295 | 295 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 89 | 89 | // AM_RANGE(0x30, 0x39) AM_WRITENOP |
| 90 | 90 | ADDRESS_MAP_END |
| 91 | 91 | |
| 92 | INPUT_PORTS_START( ampoker2 ) | |
| 92 | static INPUT_PORTS_START( ampoker2 ) | |
| 93 | 93 | PORT_START_TAG("IN0") |
| 94 | 94 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Bit 0") PORT_CODE(KEYCODE_Q) |
| 95 | 95 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Bit 1") PORT_CODE(KEYCODE_W) |
| r1238 | r1239 | |
|---|---|---|
| 393 | 393 | * |
| 394 | 394 | *************************************/ |
| 395 | 395 | |
| 396 | INPUT_PORTS_START( zwackery ) | |
| 396 | static INPUT_PORTS_START( zwackery ) | |
| 397 | 397 | PORT_START_TAG("IN0") |
| 398 | 398 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 399 | 399 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 450 | 450 | INPUT_PORTS_END |
| 451 | 451 | |
| 452 | 452 | |
| 453 | INPUT_PORTS_START( xenophob ) | |
| 453 | static INPUT_PORTS_START( xenophob ) | |
| 454 | 454 | PORT_START_TAG("IN0") |
| 455 | 455 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 456 | 456 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 509 | 509 | INPUT_PORTS_END |
| 510 | 510 | |
| 511 | 511 | |
| 512 | INPUT_PORTS_START( spyhunt2 ) | |
| 512 | static INPUT_PORTS_START( spyhunt2 ) | |
| 513 | 513 | PORT_START_TAG("IN0") |
| 514 | 514 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 515 | 515 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 577 | 577 | INPUT_PORTS_END |
| 578 | 578 | |
| 579 | 579 | |
| 580 | INPUT_PORTS_START( blasted ) | |
| 580 | static INPUT_PORTS_START( blasted ) | |
| 581 | 581 | PORT_START_TAG("IN0") |
| 582 | 582 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 583 | 583 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 630 | 630 | INPUT_PORTS_END |
| 631 | 631 | |
| 632 | 632 | |
| 633 | INPUT_PORTS_START( archrivl ) | |
| 633 | static INPUT_PORTS_START( archrivl ) | |
| 634 | 634 | PORT_START_TAG("IN0") |
| 635 | 635 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 636 | 636 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 690 | 690 | INPUT_PORTS_END |
| 691 | 691 | |
| 692 | 692 | |
| 693 | INPUT_PORTS_START( pigskin ) | |
| 693 | static INPUT_PORTS_START( pigskin ) | |
| 694 | 694 | PORT_START_TAG("IN0") |
| 695 | 695 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 696 | 696 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 756 | 756 | INPUT_PORTS_END |
| 757 | 757 | |
| 758 | 758 | |
| 759 | INPUT_PORTS_START( trisport ) | |
| 759 | static INPUT_PORTS_START( trisport ) | |
| 760 | 760 | PORT_START_TAG("IN0") |
| 761 | 761 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 762 | 762 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 115 | 115 | ADDRESS_MAP_END |
| 116 | 116 | |
| 117 | 117 | |
| 118 | INPUT_PORTS_START( pbaction ) | |
| 118 | static INPUT_PORTS_START( pbaction ) | |
| 119 | 119 | PORT_START /* IN0 */ |
| 120 | 120 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON3 ) |
| 121 | 121 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 870 | 870 | * Input ports * |
| 871 | 871 | *************************/ |
| 872 | 872 | |
| 873 | INPUT_PORTS_START( funworld ) | |
| 873 | static INPUT_PORTS_START( funworld ) | |
| 874 | 874 | PORT_START_TAG("IN0") |
| 875 | 875 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Remote") PORT_CODE(KEYCODE_Q) |
| 876 | 876 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Halten (Hold) 1") PORT_CODE(KEYCODE_Z) |
| r1238 | r1239 | |
| 932 | 932 | PORT_DIPSETTING( 0x80, "Manual Payout SW" ) |
| 933 | 933 | INPUT_PORTS_END |
| 934 | 934 | |
| 935 | INPUT_PORTS_START( jolycdcr ) | |
| 935 | static INPUT_PORTS_START( jolycdcr ) | |
| 936 | 936 | PORT_START_TAG("IN0") |
| 937 | 937 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Navijanje (Remote)") PORT_CODE(KEYCODE_Q) |
| 938 | 938 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Stop (Hold) 1") PORT_CODE(KEYCODE_Z) |
| r1238 | r1239 | |
| 994 | 994 | PORT_DIPSETTING( 0x80, "Manual Payout SW" ) |
| 995 | 995 | INPUT_PORTS_END |
| 996 | 996 | |
| 997 | INPUT_PORTS_START( jolycdit ) | |
| 997 | static INPUT_PORTS_START( jolycdit ) | |
| 998 | 998 | PORT_START_TAG("IN0") |
| 999 | 999 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Remote") PORT_CODE(KEYCODE_Q) |
| 1000 | 1000 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Stop (Hold) 1 / Alta (High)") PORT_CODE(KEYCODE_Z) |
| r1238 | r1239 | |
| 1055 | 1055 | PORT_DIPSETTING( 0x80, "Manual Payout SW" ) |
| 1056 | 1056 | INPUT_PORTS_END |
| 1057 | 1057 | |
| 1058 | INPUT_PORTS_START( bigdeal ) | |
| 1058 | static INPUT_PORTS_START( bigdeal ) | |
| 1059 | 1059 | PORT_START_TAG("IN0") |
| 1060 | 1060 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Remote") PORT_CODE(KEYCODE_Q) |
| 1061 | 1061 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Hold 1") PORT_CODE(KEYCODE_Z) |
| r1238 | r1239 | |
| 1118 | 1118 | PORT_DIPSETTING( 0x80, "Manual Payout SW" ) |
| 1119 | 1119 | INPUT_PORTS_END |
| 1120 | 1120 | |
| 1121 | INPUT_PORTS_START( magiccrd ) | |
| 1121 | static INPUT_PORTS_START( magiccrd ) | |
| 1122 | 1122 | PORT_START_TAG("IN0") |
| 1123 | 1123 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Remote") PORT_CODE(KEYCODE_Q) |
| 1124 | 1124 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Hold 1") PORT_CODE(KEYCODE_Z) |
| r1238 | r1239 | |
| 1180 | 1180 | PORT_DIPSETTING( 0x80, "Manual Payout SW" ) |
| 1181 | 1181 | INPUT_PORTS_END |
| 1182 | 1182 | |
| 1183 | INPUT_PORTS_START( royalcrd ) | |
| 1183 | static INPUT_PORTS_START( royalcrd ) | |
| 1184 | 1184 | PORT_START_TAG("IN0") |
| 1185 | 1185 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Remote") PORT_CODE(KEYCODE_Q) |
| 1186 | 1186 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Halten (Hold) 1 / Hoch (High)") PORT_CODE(KEYCODE_Z) |
| r1238 | r1239 | |
| 1242 | 1242 | PORT_DIPSETTING( 0x80, "Manual Payout SW" ) |
| 1243 | 1243 | INPUT_PORTS_END |
| 1244 | 1244 | |
| 1245 | INPUT_PORTS_START( cuoreuno ) | |
| 1245 | static INPUT_PORTS_START( cuoreuno ) | |
| 1246 | 1246 | PORT_START_TAG("IN0") |
| 1247 | 1247 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1248 | 1248 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Stop 1 / Switch Bet (1-Max)") PORT_CODE(KEYCODE_Z) |
| r1238 | r1239 | |
| 1304 | 1304 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1305 | 1305 | INPUT_PORTS_END |
| 1306 | 1306 | |
| 1307 | INPUT_PORTS_START( snookr10 ) | |
| 1307 | static INPUT_PORTS_START( snookr10 ) | |
| 1308 | 1308 | INPUT_PORTS_END |
| 1309 | 1309 | |
| 1310 | 1310 |
| r1238 | r1239 | |
|---|---|---|
| 340 | 340 | |
| 341 | 341 | |
| 342 | 342 | |
| 343 | INPUT_PORTS_START( overdriv ) | |
| 343 | static INPUT_PORTS_START( overdriv ) | |
| 344 | 344 | PORT_START |
| 345 | 345 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_TOGGLE |
| 346 | 346 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
|---|---|---|
| 463 | 463 | |
| 464 | 464 | ***************************************************************************/ |
| 465 | 465 | |
| 466 | INPUT_PORTS_START( scontra ) | |
| 466 | static INPUT_PORTS_START( scontra ) | |
| 467 | 467 | PORT_START /* COINSW */ |
| 468 | 468 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 469 | 469 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 567 | 567 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 568 | 568 | INPUT_PORTS_END |
| 569 | 569 | |
| 570 | INPUT_PORTS_START( thunderx ) | |
| 570 | static INPUT_PORTS_START( thunderx ) | |
| 571 | 571 | PORT_START /* IN0 */ |
| 572 | 572 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 573 | 573 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 122 | 122 | |
| 123 | 123 | |
| 124 | 124 | |
| 125 | INPUT_PORTS_START( jackpool ) | |
| 125 | static INPUT_PORTS_START( jackpool ) | |
| 126 | 126 | INPUT_PORTS_END |
| 127 | 127 | |
| 128 | 128 |
| r1238 | r1239 | |
|---|---|---|
| 122 | 122 | ADDRESS_MAP_END |
| 123 | 123 | |
| 124 | 124 | |
| 125 | INPUT_PORTS_START( spcforce ) | |
| 125 | static INPUT_PORTS_START( spcforce ) | |
| 126 | 126 | PORT_START /* DSW */ |
| 127 | 127 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Coin_A ) ) |
| 128 | 128 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
| 169 | 169 | INPUT_PORTS_END |
| 170 | 170 | |
| 171 | 171 | /* same as spcforce, but no cocktail mode */ |
| 172 | INPUT_PORTS_START( spcforc2 ) | |
| 172 | static INPUT_PORTS_START( spcforc2 ) | |
| 173 | 173 | PORT_START /* DSW */ |
| 174 | 174 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Coin_A ) ) |
| 175 | 175 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 441 | 441 | |
| 442 | 442 | ADDRESS_MAP_END |
| 443 | 443 | |
| 444 | INPUT_PORTS_START( gsword ) | |
| 444 | static INPUT_PORTS_START( gsword ) | |
| 445 | 445 | PORT_START /* IN0 (8741-2 port1?) */ |
| 446 | 446 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) |
| 447 | 447 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| r1238 | r1239 | |
| 551 | 551 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 552 | 552 | INPUT_PORTS_END |
| 553 | 553 | |
| 554 | INPUT_PORTS_START( josvolly ) | |
| 554 | static INPUT_PORTS_START( josvolly ) | |
| 555 | 555 | PORT_START /* IN0 */ |
| 556 | 556 | PORT_BIT( 0x01, IP_ACTIVE_LOW , IPT_START2 ) |
| 557 | 557 | PORT_BIT( 0x02, IP_ACTIVE_LOW , IPT_START1 ) |
| r1238 | r1239 | |
|---|---|---|
| 351 | 351 | AM_RANGE(0x1c, 0x1c) AM_READWRITE(OKIM6295_status_0_r, OKIM6295_data_0_w) |
| 352 | 352 | ADDRESS_MAP_END |
| 353 | 353 | |
| 354 | INPUT_PORTS_START( nmg5 ) | |
| 354 | static INPUT_PORTS_START( nmg5 ) | |
| 355 | 355 | PORT_START_TAG("DSW") |
| 356 | 356 | PORT_DIPNAME( 0x0001, 0x0001, "Game Title" ) PORT_DIPLOCATION("SW1:8") |
| 357 | 357 | PORT_DIPSETTING( 0x0001, "Multi 5" ) |
| r1238 | r1239 | |
| 426 | 426 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) |
| 427 | 427 | INPUT_PORTS_END |
| 428 | 428 | |
| 429 | INPUT_PORTS_START( searchey ) | |
| 429 | static INPUT_PORTS_START( searchey ) | |
| 430 | 430 | PORT_START |
| 431 | 431 | PORT_DIPNAME( 0x0003, 0x0003, "Timer Speed" ) PORT_DIPLOCATION("SW1:8,7") |
| 432 | 432 | PORT_DIPSETTING( 0x0003, "Slowest" ) |
| r1238 | r1239 | |
| 486 | 486 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) |
| 487 | 487 | INPUT_PORTS_END |
| 488 | 488 | |
| 489 | INPUT_PORTS_START( searchp2 ) | |
| 489 | static INPUT_PORTS_START( searchp2 ) | |
| 490 | 490 | PORT_START |
| 491 | 491 | PORT_DIPNAME( 0x0003, 0x0003, "Timer Speed" ) PORT_DIPLOCATION("SW1:8,7") |
| 492 | 492 | PORT_DIPSETTING( 0x0003, "Slowest" ) |
| r1238 | r1239 | |
| 553 | 553 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) |
| 554 | 554 | INPUT_PORTS_END |
| 555 | 555 | |
| 556 | INPUT_PORTS_START( pclubys ) | |
| 556 | static INPUT_PORTS_START( pclubys ) | |
| 557 | 557 | PORT_START |
| 558 | 558 | PORT_DIPNAME( 0x0001, 0x0000, "Lives (Mad Ball)" ) PORT_DIPLOCATION("SW1:8") |
| 559 | 559 | PORT_DIPSETTING( 0x0000, "3" ) |
| r1238 | r1239 | |
| 616 | 616 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) |
| 617 | 617 | INPUT_PORTS_END |
| 618 | 618 | |
| 619 | INPUT_PORTS_START( garogun ) | |
| 619 | static INPUT_PORTS_START( garogun ) | |
| 620 | 620 | PORT_START |
| 621 | 621 | PORT_DIPNAME( 0x0003, 0x0003, "Helps" ) PORT_DIPLOCATION("SW1:8,7") |
| 622 | 622 | PORT_DIPSETTING( 0x0000, "1" ) |
| r1238 | r1239 | |
| 665 | 665 | INPUT_PORTS_END |
| 666 | 666 | |
| 667 | 667 | |
| 668 | INPUT_PORTS_START( 7ordi ) | |
| 668 | static INPUT_PORTS_START( 7ordi ) | |
| 669 | 669 | PORT_START_TAG("DSW") |
| 670 | 670 | PORT_DIPNAME( 0x0001, 0x0001, "High-Low Error" ) PORT_DIPLOCATION("SW1:8") |
| 671 | 671 | PORT_DIPSETTING( 0x0001, "-500" ) |
| r1238 | r1239 | |
| 733 | 733 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 734 | 734 | INPUT_PORTS_END |
| 735 | 735 | |
| 736 | INPUT_PORTS_START( wondstck ) | |
| 736 | static INPUT_PORTS_START( wondstck ) | |
| 737 | 737 | PORT_START_TAG("DSW") |
| 738 | 738 | PORT_DIPUNUSED_DIPLOC( 0x0001, IP_ACTIVE_LOW, "SW1:8" ) |
| 739 | 739 | PORT_DIPUNUSED_DIPLOC( 0x0002, IP_ACTIVE_LOW, "SW1:7" ) |
| r1238 | r1239 | |
|---|---|---|
| 226 | 226 | |
| 227 | 227 | |
| 228 | 228 | |
| 229 | INPUT_PORTS_START( mario ) | |
| 229 | static INPUT_PORTS_START( mario ) | |
| 230 | 230 | PORT_START_TAG("IN0") |
| 231 | 231 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) |
| 232 | 232 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 270 | 270 | PORT_DIPSETTING( 0xc0, DEF_STR( Hardest ) ) |
| 271 | 271 | INPUT_PORTS_END |
| 272 | 272 | |
| 273 | INPUT_PORTS_START( marioo ) | |
| 273 | static INPUT_PORTS_START( marioo ) | |
| 274 | 274 | PORT_INCLUDE( mario ) |
| 275 | 275 | |
| 276 | 276 | PORT_MODIFY( "IN1" ) |
| r1238 | r1239 | |
| 278 | 278 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 279 | 279 | INPUT_PORTS_END |
| 280 | 280 | |
| 281 | INPUT_PORTS_START( marioj ) | |
| 281 | static INPUT_PORTS_START( marioj ) | |
| 282 | 282 | PORT_INCLUDE( mario ) |
| 283 | 283 | |
| 284 | 284 | PORT_MODIFY( "DSW" ) |
| r1238 | r1239 | |
| 306 | 306 | PORT_DIPSETTING( 0xc0, DEF_STR( None ) ) |
| 307 | 307 | INPUT_PORTS_END |
| 308 | 308 | |
| 309 | INPUT_PORTS_START( masao ) | |
| 309 | static INPUT_PORTS_START( masao ) | |
| 310 | 310 | PORT_INCLUDE( marioo ) |
| 311 | 311 | |
| 312 | 312 | PORT_MODIFY( "DSW" ) |
| r1238 | r1239 | |
|---|---|---|
| 321 | 321 | |
| 322 | 322 | |
| 323 | 323 | |
| 324 | INPUT_PORTS_START( xmen ) | |
| 324 | static INPUT_PORTS_START( xmen ) | |
| 325 | 325 | PORT_START /* IN1 */ |
| 326 | 326 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 327 | 327 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| r1238 | r1239 | |
| 371 | 371 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* unused? */ |
| 372 | 372 | INPUT_PORTS_END |
| 373 | 373 | |
| 374 | INPUT_PORTS_START( xmen6p ) | |
| 374 | static INPUT_PORTS_START( xmen6p ) | |
| 375 | 375 | PORT_START /* IN1 */ |
| 376 | 376 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 377 | 377 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| r1238 | r1239 | |
| 441 | 441 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN6 ) |
| 442 | 442 | INPUT_PORTS_END |
| 443 | 443 | |
| 444 | INPUT_PORTS_START( xmen2p ) | |
| 444 | static INPUT_PORTS_START( xmen2p ) | |
| 445 | 445 | PORT_START /* IN1 */ |
| 446 | 446 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 447 | 447 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| r1238 | r1239 | |
|---|---|---|
| 197 | 197 | * |
| 198 | 198 | *************************************/ |
| 199 | 199 | |
| 200 | INPUT_PORTS_START( atarifb ) | |
| 200 | static INPUT_PORTS_START( atarifb ) | |
| 201 | 201 | PORT_START_TAG("IN0") |
| 202 | 202 | PORT_BIT ( 0x0F, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 203 | 203 | PORT_BIT ( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 240 | 240 | INPUT_PORTS_END |
| 241 | 241 | |
| 242 | 242 | |
| 243 | INPUT_PORTS_START( atarifb4 ) | |
| 243 | static INPUT_PORTS_START( atarifb4 ) | |
| 244 | 244 | PORT_START_TAG("IN0") |
| 245 | 245 | PORT_BIT ( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 246 | 246 | |
| r1238 | r1239 | |
| 303 | 303 | INPUT_PORTS_END |
| 304 | 304 | |
| 305 | 305 | |
| 306 | INPUT_PORTS_START( abaseb ) | |
| 306 | static INPUT_PORTS_START( abaseb ) | |
| 307 | 307 | PORT_START_TAG("IN0") |
| 308 | 308 | PORT_BIT ( 0x0F, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 309 | 309 | PORT_BIT ( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 346 | 346 | INPUT_PORTS_END |
| 347 | 347 | |
| 348 | 348 | |
| 349 | INPUT_PORTS_START( soccer ) | |
| 349 | static INPUT_PORTS_START( soccer ) | |
| 350 | 350 | PORT_START_TAG("IN0") |
| 351 | 351 | PORT_BIT ( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 352 | 352 |
| r1238 | r1239 | |
|---|---|---|
| 258 | 258 | ADDRESS_MAP_END |
| 259 | 259 | |
| 260 | 260 | |
| 261 | INPUT_PORTS_START( silkroad ) | |
| 261 | static INPUT_PORTS_START( silkroad ) | |
| 262 | 262 | PORT_START /* Players inputs */ |
| 263 | 263 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 264 | 264 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) |
| r1238 | r1239 | |
|---|---|---|
| 136 | 136 | AM_RANGE(0x80, 0x80) AM_WRITE(AY8910_control_port_0_w) |
| 137 | 137 | ADDRESS_MAP_END |
| 138 | 138 | |
| 139 | INPUT_PORTS_START( wink ) | |
| 139 | static INPUT_PORTS_START( wink ) | |
| 140 | 140 | PORT_START |
| 141 | 141 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(50) PORT_KEYDELTA(3) PORT_REVERSE |
| 142 | 142 |
| r1238 | r1239 | |
|---|---|---|
| 514 | 514 | |
| 515 | 515 | /* sound */ |
| 516 | 516 | |
| 517 | INPUT_PORTS_START( lethalen ) | |
| 517 | static INPUT_PORTS_START( lethalen ) | |
| 518 | 518 | /* IN 0 */ |
| 519 | 519 | PORT_START |
| 520 | 520 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
| 562 | 562 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, -1.0, 0.0, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_PLAYER(2) |
| 563 | 563 | INPUT_PORTS_END |
| 564 | 564 | |
| 565 | INPUT_PORTS_START( lethalej ) | |
| 565 | static INPUT_PORTS_START( lethalej ) | |
| 566 | 566 | /* IN 0 */ |
| 567 | 567 | PORT_START |
| 568 | 568 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
|---|---|---|
| 231 | 231 | * |
| 232 | 232 | *************************************/ |
| 233 | 233 | |
| 234 | INPUT_PORTS_START( videopin ) | |
| 234 | static INPUT_PORTS_START( videopin ) | |
| 235 | 235 | PORT_START /* IN0 */ |
| 236 | 236 | PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 237 | 237 | PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 147 | 147 | ADDRESS_MAP_END |
| 148 | 148 | |
| 149 | 149 | |
| 150 | INPUT_PORTS_START( exprraid ) | |
| 150 | static INPUT_PORTS_START( exprraid ) | |
| 151 | 151 | PORT_START /* IN 0 - 0x3800 */ |
| 152 | 152 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 153 | 153 |
| r1238 | r1239 | |
|---|---|---|
| 167 | 167 | |
| 168 | 168 | /******************************************************************************/ |
| 169 | 169 | |
| 170 | INPUT_PORTS_START( fstarfrc ) | |
| 170 | static INPUT_PORTS_START( fstarfrc ) | |
| 171 | 171 | PORT_START /* DIP SW 1 */ |
| 172 | 172 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2") |
| 173 | 173 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) |
| r1238 | r1239 | |
| 233 | 233 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 234 | 234 | INPUT_PORTS_END |
| 235 | 235 | |
| 236 | INPUT_PORTS_START( ginkun ) | |
| 236 | static INPUT_PORTS_START( ginkun ) | |
| 237 | 237 | PORT_START /* DIP SW 1 */ |
| 238 | 238 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:8,7") |
| 239 | 239 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) |
| r1238 | r1239 | |
| 304 | 304 | /* Not used */ |
| 305 | 305 | INPUT_PORTS_END |
| 306 | 306 | |
| 307 | INPUT_PORTS_START( riot ) | |
| 307 | static INPUT_PORTS_START( riot ) | |
| 308 | 308 | PORT_START /* DIP SW 1 */ |
| 309 | 309 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3") |
| 310 | 310 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 143 | 143 | AM_RANGE(0x60000e, 0x60000f) AM_READ(MRA16_NOP) AM_WRITE(MWA16_NOP) |
| 144 | 144 | ADDRESS_MAP_END |
| 145 | 145 | |
| 146 | INPUT_PORTS_START( drill ) | |
| 146 | static INPUT_PORTS_START( drill ) | |
| 147 | 147 | INPUT_PORTS_END |
| 148 | 148 | |
| 149 | 149 | static const gfx_layout drill_layout = |
| r1238 | r1239 | |
|---|---|---|
| 235 | 235 | |
| 236 | 236 | /* MB: 05 Jun 99 Input ports and Dip switches are all verified! */ |
| 237 | 237 | |
| 238 | INPUT_PORTS_START( csk227 ) | |
| 238 | static INPUT_PORTS_START( csk227 ) | |
| 239 | 239 | |
| 240 | 240 | PORT_START_TAG("DSW1") |
| 241 | 241 | PORT_DIPNAME( 0x01, 0x01, "Demo Music" ) |
| r1238 | r1239 | |
| 395 | 395 | INPUT_PORTS_END |
| 396 | 396 | |
| 397 | 397 | |
| 398 | INPUT_PORTS_START( csk234 ) | |
| 398 | static INPUT_PORTS_START( csk234 ) | |
| 399 | 399 | |
| 400 | 400 | PORT_START_TAG("DSW1") |
| 401 | 401 | PORT_DIPNAME( 0x01, 0x01, "Demo Music" ) |
| r1238 | r1239 | |
|---|---|---|
| 221 | 221 | cpunum_set_input_line(0, INPUT_LINE_NMI, PULSE_LINE); |
| 222 | 222 | } |
| 223 | 223 | |
| 224 | INPUT_PORTS_START( naughtyb ) | |
| 224 | static INPUT_PORTS_START( naughtyb ) | |
| 225 | 225 | PORT_START_TAG( "IN0" ) |
| 226 | 226 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 227 | 227 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 276 | 276 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK ) |
| 277 | 277 | INPUT_PORTS_END |
| 278 | 278 | |
| 279 | INPUT_PORTS_START( trvmstr ) | |
| 279 | static INPUT_PORTS_START( trvmstr ) | |
| 280 | 280 | PORT_START_TAG( "IN0" ) |
| 281 | 281 | PORT_SERVICE(0x0f, IP_ACTIVE_LOW ) |
| 282 | 282 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON4 ) |
| r1238 | r1239 | |
|---|---|---|
| 117 | 117 | ADDRESS_MAP_END |
| 118 | 118 | |
| 119 | 119 | |
| 120 | INPUT_PORTS_START( qwak ) | |
| 120 | static INPUT_PORTS_START( qwak ) | |
| 121 | 121 | PORT_START /* 3000 D7 */ |
| 122 | 122 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 123 | 123 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| r1238 | r1239 | |
| 169 | 169 | INPUT_PORTS_END |
| 170 | 170 | |
| 171 | 171 | |
| 172 | INPUT_PORTS_START( runaway ) | |
| 172 | static INPUT_PORTS_START( runaway ) | |
| 173 | 173 | PORT_START /* 3000 D7 */ |
| 174 | 174 | PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 175 | 175 | PORT_BIT ( 0x02, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| r1238 | r1239 | |
|---|---|---|
| 362 | 362 | #define AT_KEYB_HELPER(bit, text, key1) \ |
| 363 | 363 | PORT_BIT( bit, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME(text) PORT_CODE(key1) |
| 364 | 364 | |
| 365 | INPUT_PORTS_START(taitowlf) | |
| 365 | static INPUT_PORTS_START(taitowlf) | |
| 366 | 366 | PORT_START_TAG("pc_keyboard_0") |
| 367 | 367 | PORT_BIT ( 0x0001, 0x0000, IPT_UNUSED ) /* unused scancode 0 */ |
| 368 | 368 | AT_KEYB_HELPER( 0x0002, "Esc", KEYCODE_Q ) /* Esc 01 81 */ |
| r1238 | r1239 | |
|---|---|---|
| 356 | 356 | |
| 357 | 357 | |
| 358 | 358 | |
| 359 | INPUT_PORTS_START( liblrabl ) | |
| 359 | static INPUT_PORTS_START( liblrabl ) | |
| 360 | 360 | /* The inputs are not memory mapped, they are handled by three I/O chips. */ |
| 361 | 361 | PORT_START /* 58XX #0 pins 22-29 */ |
| 362 | 362 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_8WAY |
| r1238 | r1239 | |
| 446 | 446 | PORT_SERVICE( 0x08, IP_ACTIVE_LOW ) |
| 447 | 447 | INPUT_PORTS_END |
| 448 | 448 | |
| 449 | INPUT_PORTS_START( toypop ) | |
| 449 | static INPUT_PORTS_START( toypop ) | |
| 450 | 450 | /* The inputs are not memory mapped, they are handled by three I/O chips. */ |
| 451 | 451 | PORT_START /* 58XX #0 pins 22-29 */ |
| 452 | 452 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| r1238 | r1239 | |
|---|---|---|
| 958 | 958 | |
| 959 | 959 | /******************************************************************************/ |
| 960 | 960 | |
| 961 | INPUT_PORTS_START( tumblepb ) | |
| 961 | static INPUT_PORTS_START( tumblepb ) | |
| 962 | 962 | PORT_START /* Player 1 controls */ |
| 963 | 963 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 964 | 964 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1048 | 1048 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1049 | 1049 | INPUT_PORTS_END |
| 1050 | 1050 | |
| 1051 | INPUT_PORTS_START( metlsavr ) | |
| 1051 | static INPUT_PORTS_START( metlsavr ) | |
| 1052 | 1052 | PORT_START /* Player 1 controls */ |
| 1053 | 1053 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1054 | 1054 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1123 | 1123 | PORT_DIPSETTING( 0x00, "80 Seconds" ) |
| 1124 | 1124 | INPUT_PORTS_END |
| 1125 | 1125 | |
| 1126 | INPUT_PORTS_START( suprtrio ) | |
| 1126 | static INPUT_PORTS_START( suprtrio ) | |
| 1127 | 1127 | PORT_START |
| 1128 | 1128 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1129 | 1129 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1171 | 1171 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1172 | 1172 | INPUT_PORTS_END |
| 1173 | 1173 | |
| 1174 | INPUT_PORTS_START( htchctch ) | |
| 1174 | static INPUT_PORTS_START( htchctch ) | |
| 1175 | 1175 | PORT_START /* Player 1 controls */ |
| 1176 | 1176 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1177 | 1177 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1236 | 1236 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1237 | 1237 | INPUT_PORTS_END |
| 1238 | 1238 | |
| 1239 | INPUT_PORTS_START( cookbib ) | |
| 1239 | static INPUT_PORTS_START( cookbib ) | |
| 1240 | 1240 | PORT_START /* Player 1 controls */ |
| 1241 | 1241 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1242 | 1242 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1302 | 1302 | PORT_SERVICE( 0x01, IP_ACTIVE_LOW ) |
| 1303 | 1303 | INPUT_PORTS_END |
| 1304 | 1304 | |
| 1305 | INPUT_PORTS_START( chokchok ) | |
| 1305 | static INPUT_PORTS_START( chokchok ) | |
| 1306 | 1306 | PORT_START /* Player 1 controls */ |
| 1307 | 1307 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1308 | 1308 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1380 | 1380 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1381 | 1381 | INPUT_PORTS_END |
| 1382 | 1382 | |
| 1383 | INPUT_PORTS_START( fncywld ) | |
| 1383 | static INPUT_PORTS_START( fncywld ) | |
| 1384 | 1384 | PORT_START /* Player 1 controls */ |
| 1385 | 1385 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1386 | 1386 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1471 | 1471 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1472 | 1472 | INPUT_PORTS_END |
| 1473 | 1473 | |
| 1474 | INPUT_PORTS_START( bcstory ) | |
| 1474 | static INPUT_PORTS_START( bcstory ) | |
| 1475 | 1475 | PORT_START /* Player 1 controls */ |
| 1476 | 1476 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1477 | 1477 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1545 | 1545 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1546 | 1546 | INPUT_PORTS_END |
| 1547 | 1547 | |
| 1548 | INPUT_PORTS_START( semibase ) | |
| 1548 | static INPUT_PORTS_START( semibase ) | |
| 1549 | 1549 | PORT_START /* Player 1 controls */ |
| 1550 | 1550 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1551 | 1551 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1619 | 1619 | PORT_DIPSETTING( 0x80, "6 Credits" ) |
| 1620 | 1620 | INPUT_PORTS_END |
| 1621 | 1621 | |
| 1622 | INPUT_PORTS_START( sdfight ) | |
| 1622 | static INPUT_PORTS_START( sdfight ) | |
| 1623 | 1623 | PORT_START /* Player 1 controls */ |
| 1624 | 1624 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1625 | 1625 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1700 | 1700 | PORT_DIPSETTING( 0x00, "90" ) |
| 1701 | 1701 | INPUT_PORTS_END |
| 1702 | 1702 | |
| 1703 | INPUT_PORTS_START( wlstar ) | |
| 1703 | static INPUT_PORTS_START( wlstar ) | |
| 1704 | 1704 | PORT_START /* Player 1 controls */ |
| 1705 | 1705 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1706 | 1706 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1782 | 1782 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1783 | 1783 | INPUT_PORTS_END |
| 1784 | 1784 | |
| 1785 | INPUT_PORTS_START( dquizgo ) | |
| 1785 | static INPUT_PORTS_START( dquizgo ) | |
| 1786 | 1786 | PORT_START /* Player 1 controls */ |
| 1787 | 1787 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1788 | 1788 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1853 | 1853 | PORT_DIPSETTING( 0x80, "5" ) |
| 1854 | 1854 | INPUT_PORTS_END |
| 1855 | 1855 | |
| 1856 | INPUT_PORTS_START( jumppop ) | |
| 1856 | static INPUT_PORTS_START( jumppop ) | |
| 1857 | 1857 | PORT_START /* Controls */ |
| 1858 | 1858 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1859 | 1859 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 215 | 215 | rom[0x28C3B]=0x4E71; |
| 216 | 216 | } |
| 217 | 217 | |
| 218 | INPUT_PORTS_START( stankatk ) | |
| 218 | static INPUT_PORTS_START( stankatk ) | |
| 219 | 219 | /* Ports A and B */ |
| 220 | 220 | PORT_START |
| 221 | 221 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Unused ) ) |
| r1238 | r1239 | |
| 286 | 286 | |
| 287 | 287 | INPUT_PORTS_END |
| 288 | 288 | |
| 289 | INPUT_PORTS_START( botss ) | |
| 289 | static INPUT_PORTS_START( botss ) | |
| 290 | 290 | PORT_START |
| 291 | 291 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Unused ) ) |
| 292 | 292 | PORT_DIPSETTING( 0x0001, DEF_STR(Off) ) |
| r1238 | r1239 | |
| 338 | 338 | INPUT_PORTS_END |
| 339 | 339 | |
| 340 | 340 | |
| 341 | INPUT_PORTS_START( f15se ) | |
| 341 | static INPUT_PORTS_START( f15se ) | |
| 342 | 342 | PORT_START |
| 343 | 343 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Unused ) ) |
| 344 | 344 | PORT_DIPSETTING( 0x0001, DEF_STR(Off) ) |
| r1238 | r1239 | |
|---|---|---|
| 112 | 112 | |
| 113 | 113 | /****************************************************************************/ |
| 114 | 114 | |
| 115 | INPUT_PORTS_START( momoko ) | |
| 115 | static INPUT_PORTS_START( momoko ) | |
| 116 | 116 | PORT_START_TAG("IN0") |
| 117 | 117 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) |
| 118 | 118 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
|---|---|---|
| 246 | 246 | ADDRESS_MAP_END |
| 247 | 247 | |
| 248 | 248 | |
| 249 | INPUT_PORTS_START( kchampvs ) | |
| 249 | static INPUT_PORTS_START( kchampvs ) | |
| 250 | 250 | PORT_START /* IN0 */ |
| 251 | 251 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT ) PORT_4WAY |
| 252 | 252 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 306 | 306 | * 1 Player Version * |
| 307 | 307 | ********************/ |
| 308 | 308 | |
| 309 | INPUT_PORTS_START( kchamp ) | |
| 309 | static INPUT_PORTS_START( kchamp ) | |
| 310 | 310 | PORT_START /* IN0 */ |
| 311 | 311 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT ) PORT_4WAY |
| 312 | 312 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
|---|---|---|
| 220 | 220 | |
| 221 | 221 | |
| 222 | 222 | |
| 223 | INPUT_PORTS_START( olibochu ) | |
| 223 | static INPUT_PORTS_START( olibochu ) | |
| 224 | 224 | PORT_START_TAG("IN0") |
| 225 | 225 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 226 | 226 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 182 | 182 | ADDRESS_MAP_END |
| 183 | 183 | |
| 184 | 184 | |
| 185 | INPUT_PORTS_START( ultratnk ) | |
| 185 | static INPUT_PORTS_START( ultratnk ) | |
| 186 | 186 | |
| 187 | 187 | PORT_START_TAG("IN0") |
| 188 | 188 | PORT_SERVICE( 0x40, IP_ACTIVE_LOW ) |
| r1238 | r1239 | |
|---|---|---|
| 160 | 160 | /*****************************************************************************/ |
| 161 | 161 | |
| 162 | 162 | |
| 163 | INPUT_PORTS_START( hasamu ) | |
| 163 | static INPUT_PORTS_START( hasamu ) | |
| 164 | 164 | IREM_JOYSTICKS_1_2 |
| 165 | 165 | |
| 166 | 166 | IREM_COINS |
| r1238 | r1239 | |
| 207 | 207 | // IREM_COIN_MODE_2 |
| 208 | 208 | INPUT_PORTS_END |
| 209 | 209 | |
| 210 | INPUT_PORTS_START( dynablst ) | |
| 210 | static INPUT_PORTS_START( dynablst ) | |
| 211 | 211 | IREM_JOYSTICKS_1_2 |
| 212 | 212 | |
| 213 | 213 | IREM_COINS |
| r1238 | r1239 | |
| 253 | 253 | IREM_JOYSTICKS_3_4 |
| 254 | 254 | INPUT_PORTS_END |
| 255 | 255 | |
| 256 | INPUT_PORTS_START( atompunk ) | |
| 256 | static INPUT_PORTS_START( atompunk ) | |
| 257 | 257 | PORT_INCLUDE(dynablst) |
| 258 | 258 | |
| 259 | 259 | PORT_MODIFY("DSW") |
| r1238 | r1239 | |
| 262 | 262 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 263 | 263 | INPUT_PORTS_END |
| 264 | 264 | |
| 265 | INPUT_PORTS_START( bombrman ) /* Does not appear to support 4 players or cocktail mode */ | |
| 265 | static INPUT_PORTS_START( bombrman ) /* Does not appear to support 4 players or cocktail mode */ | |
| 266 | 266 | IREM_JOYSTICKS_1_2 |
| 267 | 267 | |
| 268 | 268 | IREM_COINS |
| r1238 | r1239 | |
| 307 | 307 | // IREM_COIN_MODE_2 |
| 308 | 308 | INPUT_PORTS_END |
| 309 | 309 | |
| 310 | INPUT_PORTS_START( bbmanw ) | |
| 310 | static INPUT_PORTS_START( bbmanw ) | |
| 311 | 311 | IREM_JOYSTICKS_1_2 |
| 312 | 312 | |
| 313 | 313 | IREM_COINS |
| r1238 | r1239 | |
| 353 | 353 | IREM_JOYSTICKS_3_4 |
| 354 | 354 | INPUT_PORTS_END |
| 355 | 355 | |
| 356 | INPUT_PORTS_START( bbmanwj ) | |
| 356 | static INPUT_PORTS_START( bbmanwj ) | |
| 357 | 357 | PORT_INCLUDE(bbmanw) |
| 358 | 358 | |
| 359 | 359 | PORT_MODIFY("DSW") |
| r1238 | r1239 | |
| 362 | 362 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 363 | 363 | INPUT_PORTS_END |
| 364 | 364 | |
| 365 | INPUT_PORTS_START( quizf1 ) | |
| 365 | static INPUT_PORTS_START( quizf1 ) | |
| 366 | 366 | PORT_START |
| 367 | 367 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 368 | 368 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 424 | 424 | // IREM_COIN_MODE_2 |
| 425 | 425 | INPUT_PORTS_END |
| 426 | 426 | |
| 427 | INPUT_PORTS_START( matchit2 ) | |
| 427 | static INPUT_PORTS_START( matchit2 ) | |
| 428 | 428 | PORT_START |
| 429 | 429 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 430 | 430 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 491 | 491 | // IREM_COIN_MODE_2 |
| 492 | 492 | INPUT_PORTS_END |
| 493 | 493 | |
| 494 | INPUT_PORTS_START( shisen2 ) | |
| 494 | static INPUT_PORTS_START( shisen2 ) | |
| 495 | 495 | PORT_START |
| 496 | 496 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 497 | 497 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 560 | 560 | // IREM_COIN_MODE_2 |
| 561 | 561 | INPUT_PORTS_END |
| 562 | 562 | |
| 563 | INPUT_PORTS_START( riskchal ) | |
| 563 | static INPUT_PORTS_START( riskchal ) | |
| 564 | 564 | IREM_JOYSTICKS_1_2 |
| 565 | 565 | |
| 566 | 566 | IREM_COINS |
| r1238 | r1239 | |
|---|---|---|
| 208 | 208 | ADDRESS_MAP_END |
| 209 | 209 | |
| 210 | 210 | |
| 211 | INPUT_PORTS_START( tugboat ) | |
| 211 | static INPUT_PORTS_START( tugboat ) | |
| 212 | 212 | PORT_START |
| 213 | 213 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 214 | 214 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 279 | 279 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 280 | 280 | INPUT_PORTS_END |
| 281 | 281 | |
| 282 | INPUT_PORTS_START( noahsark ) | |
| 282 | static INPUT_PORTS_START( noahsark ) | |
| 283 | 283 | PORT_START |
| 284 | 284 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 285 | 285 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 220 | 220 | INPUT PORTS (dips in eprom) |
| 221 | 221 | ***********************************************************/ |
| 222 | 222 | |
| 223 | INPUT_PORTS_START( gunbustr ) | |
| 223 | static INPUT_PORTS_START( gunbustr ) | |
| 224 | 224 | PORT_START /* IN0 */ |
| 225 | 225 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 226 | 226 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 76 | 76 | AM_RANGE(0x01, 0x01) AM_WRITE(YM2203_write_port_0_w) |
| 77 | 77 | ADDRESS_MAP_END |
| 78 | 78 | |
| 79 | INPUT_PORTS_START( scotrsht ) | |
| 79 | static INPUT_PORTS_START( scotrsht ) | |
| 80 | 80 | PORT_START /* IN0 - $3300 */ |
| 81 | 81 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 82 | 82 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 1958 | 1958 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 1959 | 1959 | |
| 1960 | 1960 | |
| 1961 | INPUT_PORTS_START( contcirc ) | |
| 1961 | static INPUT_PORTS_START( contcirc ) | |
| 1962 | 1962 | PORT_START_TAG("DSW1") /* DSW A */ |
| 1963 | 1963 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) |
| 1964 | 1964 | PORT_DIPSETTING( 0x01, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 2029 | 2029 | PORT_DIPSETTING( 0x00, "Analogue" ) |
| 2030 | 2030 | INPUT_PORTS_END |
| 2031 | 2031 | |
| 2032 | INPUT_PORTS_START( contcrcu ) | |
| 2032 | static INPUT_PORTS_START( contcrcu ) | |
| 2033 | 2033 | PORT_INCLUDE(contcirc) |
| 2034 | 2034 | |
| 2035 | 2035 | PORT_MODIFY("DSW1") |
| 2036 | 2036 | TAITO_Z_COINAGE_JAPAN_8 // confirmed |
| 2037 | 2037 | INPUT_PORTS_END |
| 2038 | 2038 | |
| 2039 | INPUT_PORTS_START( chasehq ) // IN3-6 perhaps used with cockpit setup? // | |
| 2039 | static INPUT_PORTS_START( chasehq ) // IN3-6 perhaps used with cockpit setup? // | |
| 2040 | 2040 | PORT_START_TAG("DSW1") /* DSW A */ |
| 2041 | 2041 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Cabinet ) ) /* US Manual states DIPS 1 & 2 "MUST REMAIN OFF" */ |
| 2042 | 2042 | PORT_DIPSETTING( 0x03, "Upright / Steering Lock" ) |
| r1238 | r1239 | |
| 2142 | 2142 | PORT_DIPSETTING( 0x00, "Analogue" ) |
| 2143 | 2143 | INPUT_PORTS_END |
| 2144 | 2144 | |
| 2145 | INPUT_PORTS_START( chasehqj ) | |
| 2145 | static INPUT_PORTS_START( chasehqj ) | |
| 2146 | 2146 | PORT_INCLUDE(chasehq) |
| 2147 | 2147 | |
| 2148 | 2148 | PORT_MODIFY("DSW1") |
| 2149 | 2149 | TAITO_Z_COINAGE_JAPAN_8 |
| 2150 | 2150 | INPUT_PORTS_END |
| 2151 | 2151 | |
| 2152 | INPUT_PORTS_START( enforce ) | |
| 2152 | static INPUT_PORTS_START( enforce ) | |
| 2153 | 2153 | PORT_START /* DSW A */ |
| 2154 | 2154 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2155 | 2155 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2205 | 2205 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 2206 | 2206 | INPUT_PORTS_END |
| 2207 | 2207 | |
| 2208 | INPUT_PORTS_START( bshark ) | |
| 2208 | static INPUT_PORTS_START( bshark ) | |
| 2209 | 2209 | PORT_START_TAG("DSW1") /* DSW A */ |
| 2210 | 2210 | PORT_DIPNAME( 0x01, 0x01, "Mirror screen" ) // manual says first two must be off |
| 2211 | 2211 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2274 | 2274 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2275 | 2275 | INPUT_PORTS_END |
| 2276 | 2276 | |
| 2277 | INPUT_PORTS_START( bsharkj ) | |
| 2277 | static INPUT_PORTS_START( bsharkj ) | |
| 2278 | 2278 | PORT_INCLUDE(bshark) |
| 2279 | 2279 | |
| 2280 | 2280 | PORT_MODIFY("DSW1") |
| 2281 | 2281 | TAITO_Z_COINAGE_JAPAN_8 |
| 2282 | 2282 | INPUT_PORTS_END |
| 2283 | 2283 | |
| 2284 | INPUT_PORTS_START( sci ) | |
| 2284 | static INPUT_PORTS_START( sci ) | |
| 2285 | 2285 | PORT_START_TAG("DSW1") /* DSW A */ |
| 2286 | 2286 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 2287 | 2287 | PORT_DIPSETTING( 0x01, "Cockpit" ) |
| r1238 | r1239 | |
| 2348 | 2348 | PORT_DIPSETTING( 0x00, "Analogue" ) |
| 2349 | 2349 | INPUT_PORTS_END |
| 2350 | 2350 | |
| 2351 | INPUT_PORTS_START( sciu ) | |
| 2351 | static INPUT_PORTS_START( sciu ) | |
| 2352 | 2352 | PORT_INCLUDE(sci) |
| 2353 | 2353 | |
| 2354 | 2354 | PORT_MODIFY("DSW1") |
| 2355 | 2355 | TAITO_Z_COINAGE_US_8 |
| 2356 | 2356 | INPUT_PORTS_END |
| 2357 | 2357 | |
| 2358 | INPUT_PORTS_START( scij ) | |
| 2358 | static INPUT_PORTS_START( scij ) | |
| 2359 | 2359 | PORT_INCLUDE(sci) |
| 2360 | 2360 | |
| 2361 | 2361 | PORT_MODIFY("DSW1") |
| 2362 | 2362 | TAITO_Z_COINAGE_JAPAN_8 |
| 2363 | 2363 | INPUT_PORTS_END |
| 2364 | 2364 | |
| 2365 | INPUT_PORTS_START( nightstr ) | |
| 2365 | static INPUT_PORTS_START( nightstr ) | |
| 2366 | 2366 | PORT_START /* DSW A */ |
| 2367 | 2367 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 2368 | 2368 | PORT_DIPSETTING( 0x01, "Cockpit" ) |
| r1238 | r1239 | |
| 2430 | 2430 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2431 | 2431 | INPUT_PORTS_END |
| 2432 | 2432 | |
| 2433 | INPUT_PORTS_START( aquajack ) | |
| 2433 | static INPUT_PORTS_START( aquajack ) | |
| 2434 | 2434 | PORT_START_TAG("DSW1") /* DSW A */ |
| 2435 | 2435 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) ) |
| 2436 | 2436 | PORT_DIPSETTING( 0x80, "Cockpit" ) |
| r1238 | r1239 | |
| 2500 | 2500 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(50) PORT_KEYDELTA(10) PORT_PLAYER(1) |
| 2501 | 2501 | INPUT_PORTS_END |
| 2502 | 2502 | |
| 2503 | INPUT_PORTS_START( aquajckj ) | |
| 2503 | static INPUT_PORTS_START( aquajckj ) | |
| 2504 | 2504 | PORT_INCLUDE(aquajack) |
| 2505 | 2505 | |
| 2506 | 2506 | PORT_MODIFY("DSW1") |
| r1238 | r1239 | |
| 2516 | 2516 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C ) ) |
| 2517 | 2517 | INPUT_PORTS_END |
| 2518 | 2518 | |
| 2519 | INPUT_PORTS_START( spacegun ) | |
| 2519 | static INPUT_PORTS_START( spacegun ) | |
| 2520 | 2520 | PORT_START /* DSW A */ |
| 2521 | 2521 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) // Manual says Always Off |
| 2522 | 2522 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2586 | 2586 | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_SENSITIVITY(20) PORT_KEYDELTA(22) PORT_PLAYER(2) |
| 2587 | 2587 | INPUT_PORTS_END |
| 2588 | 2588 | |
| 2589 | INPUT_PORTS_START( dblaxle ) | |
| 2589 | static INPUT_PORTS_START( dblaxle ) | |
| 2590 | 2590 | PORT_START_TAG("DSW1") /* DSW A */ |
| 2591 | 2591 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2592 | 2592 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2654 | 2654 | PORT_DIPSETTING( 0x00, "Analogue" ) |
| 2655 | 2655 | INPUT_PORTS_END |
| 2656 | 2656 | |
| 2657 | INPUT_PORTS_START( pwheelsj ) | |
| 2657 | static INPUT_PORTS_START( pwheelsj ) | |
| 2658 | 2658 | PORT_INCLUDE(dblaxle) |
| 2659 | 2659 | |
| 2660 | 2660 | PORT_MODIFY("DSW1") |
| r1238 | r1239 | |
|---|---|---|
| 96 | 96 | |
| 97 | 97 | |
| 98 | 98 | |
| 99 | INPUT_PORTS_START( phoenix ) | |
| 99 | static INPUT_PORTS_START( phoenix ) | |
| 100 | 100 | PORT_START /* IN0 */ |
| 101 | 101 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 102 | 102 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 143 | 143 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 144 | 144 | INPUT_PORTS_END |
| 145 | 145 | |
| 146 | INPUT_PORTS_START( phoenixa ) | |
| 146 | static INPUT_PORTS_START( phoenixa ) | |
| 147 | 147 | PORT_START /* IN0 */ |
| 148 | 148 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 149 | 149 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 191 | 191 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 192 | 192 | INPUT_PORTS_END |
| 193 | 193 | |
| 194 | INPUT_PORTS_START( phoenixt ) | |
| 194 | static INPUT_PORTS_START( phoenixt ) | |
| 195 | 195 | PORT_START /* IN0 */ |
| 196 | 196 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 197 | 197 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 238 | 238 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 239 | 239 | INPUT_PORTS_END |
| 240 | 240 | |
| 241 | INPUT_PORTS_START( phoenix3 ) | |
| 241 | static INPUT_PORTS_START( phoenix3 ) | |
| 242 | 242 | PORT_START /* IN0 */ |
| 243 | 243 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 244 | 244 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 285 | 285 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 286 | 286 | INPUT_PORTS_END |
| 287 | 287 | |
| 288 | INPUT_PORTS_START( condor ) | |
| 288 | static INPUT_PORTS_START( condor ) | |
| 289 | 289 | PORT_START /* IN0 */ |
| 290 | 290 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 291 | 291 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 ) |
| r1238 | r1239 | |
| 368 | 368 | PORT_DIPSETTING( 0x70, DEF_STR( 1C_8C ) ) |
| 369 | 369 | INPUT_PORTS_END |
| 370 | 370 | |
| 371 | INPUT_PORTS_START( falcona ) | |
| 371 | static INPUT_PORTS_START( falcona ) | |
| 372 | 372 | PORT_START /* IN0 */ |
| 373 | 373 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 374 | 374 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 415 | 415 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 416 | 416 | INPUT_PORTS_END |
| 417 | 417 | |
| 418 | INPUT_PORTS_START( pleiads ) | |
| 418 | static INPUT_PORTS_START( pleiads ) | |
| 419 | 419 | PORT_START /* IN0 */ |
| 420 | 420 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 421 | 421 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 462 | 462 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 463 | 463 | INPUT_PORTS_END |
| 464 | 464 | |
| 465 | INPUT_PORTS_START( pleiadce ) | |
| 465 | static INPUT_PORTS_START( pleiadce ) | |
| 466 | 466 | PORT_START /* IN0 */ |
| 467 | 467 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 468 | 468 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 509 | 509 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 510 | 510 | INPUT_PORTS_END |
| 511 | 511 | |
| 512 | INPUT_PORTS_START( capitol ) | |
| 512 | static INPUT_PORTS_START( capitol ) | |
| 513 | 513 | PORT_START /* IN0 */ |
| 514 | 514 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 515 | 515 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 556 | 556 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 557 | 557 | INPUT_PORTS_END |
| 558 | 558 | |
| 559 | INPUT_PORTS_START( survival ) | |
| 559 | static INPUT_PORTS_START( survival ) | |
| 560 | 560 | PORT_START /* IN0 */ |
| 561 | 561 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 562 | 562 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
|---|---|---|
| 382 | 382 | Input Ports |
| 383 | 383 | ***************************************************************************/ |
| 384 | 384 | |
| 385 | INPUT_PORTS_START( lastfght ) | |
| 385 | static INPUT_PORTS_START( lastfght ) | |
| 386 | 386 | PORT_START // IN0 - c00002&3 |
| 387 | 387 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 388 | 388 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 95 | 95 | |
| 96 | 96 | /****************************************************************************/ |
| 97 | 97 | |
| 98 | INPUT_PORTS_START( markham ) | |
| 98 | static INPUT_PORTS_START( markham ) | |
| 99 | 99 | PORT_START /* dsw1 */ |
| 100 | 100 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1") |
| 101 | 101 | PORT_DIPSETTING( 0x00, "3" ) |
| r1238 | r1239 | |
|---|---|---|
| 368 | 368 | |
| 369 | 369 | #endif |
| 370 | 370 | |
| 371 | INPUT_PORTS_START( msisaac ) | |
| 371 | static INPUT_PORTS_START( msisaac ) | |
| 372 | 372 | PORT_START_TAG("DSW1") |
| 373 | 373 | PORT_DIPNAME( 0x01, 0x00, "DSW1 Unknown 0" ) |
| 374 | 374 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 580 | 580 | |
| 581 | 581 | |
| 582 | 582 | |
| 583 | INPUT_PORTS_START( pbillian ) | |
| 583 | static INPUT_PORTS_START( pbillian ) | |
| 584 | 584 | PORT_START |
| 585 | 585 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) |
| 586 | 586 | PORT_DIPSETTING( 0x03, DEF_STR( 5C_1C ) ) |
| r1238 | r1239 | |
| 665 | 665 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(20) PORT_KEYDELTA(10) PORT_COCKTAIL |
| 666 | 666 | INPUT_PORTS_END |
| 667 | 667 | |
| 668 | INPUT_PORTS_START( hotsmash ) | |
| 668 | static INPUT_PORTS_START( hotsmash ) | |
| 669 | 669 | PORT_START |
| 670 | 670 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 671 | 671 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 733 | 733 | INPUT_PORTS_END |
| 734 | 734 | |
| 735 | 735 | |
| 736 | INPUT_PORTS_START( superqix ) | |
| 736 | static INPUT_PORTS_START( superqix ) | |
| 737 | 737 | PORT_START /* DSW1 */ |
| 738 | 738 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 739 | 739 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 909 | 909 | |
| 910 | 910 | |
| 911 | 911 | |
| 912 | INTERRUPT_GEN( sqix_interrupt ) | |
| 912 | static INTERRUPT_GEN( sqix_interrupt ) | |
| 913 | 913 | { |
| 914 | 914 | /* highly suspicious... */ |
| 915 | 915 | if (cpu_getiloops() <= 3) |
| 916 | 916 | nmi_line_assert(); |
| 917 | 917 | } |
| 918 | 918 | |
| 919 | INTERRUPT_GEN( bootleg_interrupt ) | |
| 919 | static INTERRUPT_GEN( bootleg_interrupt ) | |
| 920 | 920 | { |
| 921 | 921 | /* highly suspicious... */ |
| 922 | 922 | if (cpu_getiloops() <= 3) |
| r1238 | r1239 | |
|---|---|---|
| 111 | 111 | |
| 112 | 112 | |
| 113 | 113 | |
| 114 | INPUT_PORTS_START( dday ) | |
| 114 | static INPUT_PORTS_START( dday ) | |
| 115 | 115 | PORT_START_TAG("IN0") |
| 116 | 116 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 117 | 117 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 190 | 190 | PORT_BIT(0xff, 96, IPT_PADDLE ) PORT_MINMAX(0,191) PORT_SENSITIVITY(20) PORT_KEYDELTA(10) PORT_CENTERDELTA(0) |
| 191 | 191 | INPUT_PORTS_END |
| 192 | 192 | |
| 193 | INPUT_PORTS_START( ddayc ) | |
| 193 | static INPUT_PORTS_START( ddayc ) | |
| 194 | 194 | PORT_INCLUDE(dday) |
| 195 | 195 | |
| 196 | 196 | PORT_MODIFY("DSW0") |
| r1238 | r1239 | |
|---|---|---|
| 465 | 465 | |
| 466 | 466 | /******************************************************************************/ |
| 467 | 467 | |
| 468 | INPUT_PORTS_START( playch10 ) | |
| 468 | static INPUT_PORTS_START( playch10 ) | |
| 469 | 469 | PORT_START_TAG("BIOS") |
| 470 | 470 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Channel Select") PORT_CODE(KEYCODE_0) |
| 471 | 471 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Enter") PORT_CODE(KEYCODE_MINUS) |
| r1238 | r1239 | |
| 687 | 687 | INPUT_PORTS_END |
| 688 | 688 | |
| 689 | 689 | /*Input Ports for gun games*/ |
| 690 | INPUT_PORTS_START( playc10g ) | |
| 690 | static INPUT_PORTS_START( playc10g ) | |
| 691 | 691 | PORT_INCLUDE(playch10) |
| 692 | 692 | |
| 693 | 693 | PORT_START // IN2 - FAKE - Gun X pos |
| r1238 | r1239 | |
| 1661 | 1661 | /* A dummy driver, so that the bios can be debugged, and to serve as */ |
| 1662 | 1662 | /* parent for the other drivers, so that we do not have to include */ |
| 1663 | 1663 | /* them in every zip file */ |
| 1664 | GAME | |
| 1664 | GAME | |
| 1665 | 1665 | |
| 1666 | 1666 | /******************************************************************************/ |
| 1667 | 1667 | |
| 1668 | 1668 | /* YEAR NAME PARENT BIOS MACHINE INPUT INIT MONITOR */ |
| 1669 | 1669 | |
| 1670 | 1670 | /* Standard Games */ |
| 1671 | GAMEB( 1983, pc_tenis, playch10, playch10, playch10, playch10, playch10, ROT0, "Nintendo", "Tennis (PlayChoice-10)", 0 ) | |
| 1672 | GAMEB( 1983, pc_mario, playch10, playch10, playch10, playch10, playch10, ROT0, "Nintendo", "Mario Bros. (PlayChoice-10)", 0 ) | |
| 1673 | GAMEB( 1984, pc_bball, playch10, playch10, playch10, playch10, playch10, ROT0, "Nintendo of America", "Baseball (PlayChoice-10)", 0 ) | |
| 1674 | GAMEB( 1984, pc_bfght, playch10, playch10, playch10, playch10, playch10, ROT0, "Nintendo", "Balloon Fight (PlayChoice-10)", 0 ) | |
| 1675 | GAMEB( 1984, pc_ebike, playch10, playch10, playch10, playch10, playch10, ROT0, "Nintendo", "Excite Bike (PlayChoice-10)", 0 ) | |
| 1676 | GAMEB( 1984, pc_golf, playch10, playch10, playch10, playch10, playch10, ROT0, "Nintendo", "Golf (PlayChoice-10)", 0 ) | |
| 1677 | GAMEB( 1985, pc_kngfu, playch10, playch10, playch10, playch10, playch10, ROT0, "Irem (Nintendo license)", "Kung Fu (PlayChoice-10)", 0 ) | |
| 1678 | GAMEB( 1985, pc_smb, playch10, playch10, playch10, playch10, playch10, ROT0, "Nintendo", "Super Mario Bros. (PlayChoice-10)", 0 ) | |
| 1679 | GAMEB( 1986, pc_vball, playch10, playch10, playch10, playch10, playch10, ROT0, "Nintendo", "Volley Ball (PlayChoice-10)", 0 ) | |
| 1680 | GAMEB( 1987, pc_1942, playch10, playch10, playch10, playch10, pc_hrz, ROT0, "Capcom", "1942 (PlayChoice-10)", GAME_IMPERFECT_GRAPHICS ) | |
| 1671 | GAME( 1983, pc_tenis, playch10, playch10, playch10, playch10, ROT0, "Nintendo", "Tennis (PlayChoice-10)", 0 ) | |
| 1672 | GAME( 1983, pc_mario, playch10, playch10, playch10, playch10, ROT0, "Nintendo", "Mario Bros. (PlayChoice-10)", 0 ) | |
| 1673 | GAME( 1984, pc_bball, playch10, playch10, playch10, playch10, ROT0, "Nintendo of America", "Baseball (PlayChoice-10)", 0 ) | |
| 1674 | GAME( 1984, pc_bfght, playch10, playch10, playch10, playch10, ROT0, "Nintendo", "Balloon Fight (PlayChoice-10)", 0 ) | |
| 1675 | GAME( 1984, pc_ebike, playch10, playch10, playch10, playch10, ROT0, "Nintendo", "Excite Bike (PlayChoice-10)", 0 ) | |
| 1676 | GAME( 1984, pc_golf, playch10, playch10, playch10, playch10, ROT0, "Nintendo", "Golf (PlayChoice-10)", 0 ) | |
| 1677 | GAME( 1985, pc_kngfu, playch10, playch10, playch10, playch10, ROT0, "Irem (Nintendo license)", "Kung Fu (PlayChoice-10)", 0 ) | |
| 1678 | GAME( 1985, pc_smb, playch10, playch10, playch10, playch10, ROT0, "Nintendo", "Super Mario Bros. (PlayChoice-10)", 0 ) | |
| 1679 | GAME( 1986, pc_vball, playch10, playch10, playch10, playch10, ROT0, "Nintendo", "Volley Ball (PlayChoice-10)", 0 ) | |
| 1680 | GAME( 1987, pc_1942, playch10, playch10, playch10, pc_hrz, ROT0, "Capcom", "1942 (PlayChoice-10)", GAME_IMPERFECT_GRAPHICS ) | |
| 1681 | 1681 | |
| 1682 | 1682 | /* Gun Games */ |
| 1683 | GAMEB( 1984, pc_duckh, playch10, playch10, playch10, playc10g, pc_gun, ROT0, "Nintendo", "Duck Hunt (PlayChoice-10)", 0 ) | |
| 1684 | GAMEB( 1984, pc_hgaly, playch10, playch10, playch10, playc10g, pc_gun, ROT0, "Nintendo", "Hogan's Alley (PlayChoice-10)", 0 ) | |
| 1685 | GAMEB( 1984, pc_wgnmn, playch10, playch10, playch10, playc10g, pc_gun, ROT0, "Nintendo", "Wild Gunman (PlayChoice-10)", 0 ) | |
| 1683 | GAME( 1984, pc_duckh, playch10, playch10, playc10g, pc_gun, ROT0, "Nintendo", "Duck Hunt (PlayChoice-10)", 0 ) | |
| 1684 | GAME( 1984, pc_hgaly, playch10, playch10, playc10g, pc_gun, ROT0, "Nintendo", "Hogan's Alley (PlayChoice-10)", 0 ) | |
| 1685 | GAME( 1984, pc_wgnmn, playch10, playch10, playc10g, pc_gun, ROT0, "Nintendo", "Wild Gunman (PlayChoice-10)", 0 ) | |
| 1686 | 1686 | |
| 1687 | 1687 | /* A-Board Games */ |
| 1688 | GAMEB( 1986, pc_grdus, playch10, playch10, playch10, playch10, pcaboard, ROT0, "Konami", "Gradius (PlayChoice-10)" , 0) // date: 860917 | |
| 1689 | GAMEB( 1986, pc_grdue, pc_grdus, playch10, playch10, playch10, pcaboard, ROT0, "Konami", "Gradius (PlayChoice-10, older)" , 0) // date: 860219 | |
| 1690 | GAMEB( 1987, pc_tkfld, playch10, playch10, playch10, playch10, pcaboard, ROT0, "Konami (Nintendo of America license)", "Track & Field (PlayChoice-10)", 0 ) | |
| 1688 | GAME( 1986, pc_grdus, playch10, playch10, playch10, pcaboard, ROT0, "Konami", "Gradius (PlayChoice-10)" , 0) // date: 860917 | |
| 1689 | GAME( 1986, pc_grdue, pc_grdus, playch10, playch10, pcaboard, ROT0, "Konami", "Gradius (PlayChoice-10, older)" , 0) // date: 860219 | |
| 1690 | GAME( 1987, pc_tkfld, playch10, playch10, playch10, pcaboard, ROT0, "Konami (Nintendo of America license)", "Track & Field (PlayChoice-10)", 0 ) | |
| 1691 | 1691 | |
| 1692 | 1692 | /* B-Board Games */ |
| 1693 | GAMEB( 1986, pc_pwrst, playch10, playch10, playch10, playch10, pcbboard, ROT0, "Nintendo", "Pro Wrestling (PlayChoice-10)", 0 ) | |
| 1694 | GAMEB( 1986, pc_trjan, playch10, playch10, playch10, playch10, pcbboard, ROT0, "Capcom USA (Nintendo of America license)", "Trojan (PlayChoice-10)", 0 ) | |
| 1695 | GAMEB( 1987, pc_cvnia, playch10, playch10, playch10, playch10, pcbboard, ROT0, "Konami (Nintendo of America license)", "Castlevania (PlayChoice-10)", 0 ) | |
| 1696 | GAMEB( 1987, pc_dbldr, playch10, playch10, playch10, playch10, pcbboard, ROT0, "Konami (Nintendo of America license)", "Double Dribble (PlayChoice-10)", 0 ) | |
| 1697 | GAMEB( 1987, pc_rnatk, playch10, playch10, playch10, playch10, pcbboard, ROT0, "Konami (Nintendo of America license)", "Rush'n Attack (PlayChoice-10)", 0 ) | |
| 1698 | GAMEB( 1987, pc_rygar, playch10, playch10, playch10, playch10, pcbboard, ROT0, "Tecmo (Nintendo of America license)", "Rygar (PlayChoice-10)", 0 ) | |
| 1699 | GAMEB( 1988, pc_cntra, playch10, playch10, playch10, playch10, pcbboard, ROT0, "Konami (Nintendo of America license)", "Contra (PlayChoice-10)", 0 ) | |
| 1693 | GAME( 1986, pc_pwrst, playch10, playch10, playch10, pcbboard, ROT0, "Nintendo", "Pro Wrestling (PlayChoice-10)", 0 ) | |
| 1694 | GAME( 1986, pc_trjan, playch10, playch10, playch10, pcbboard, ROT0, "Capcom USA (Nintendo of America license)", "Trojan (PlayChoice-10)", 0 ) | |
| 1695 | GAME( 1987, pc_cvnia, playch10, playch10, playch10, pcbboard, ROT0, "Konami (Nintendo of America license)", "Castlevania (PlayChoice-10)", 0 ) | |
| 1696 | GAME( 1987, pc_dbldr, playch10, playch10, playch10, pcbboard, ROT0, "Konami (Nintendo of America license)", "Double Dribble (PlayChoice-10)", 0 ) | |
| 1697 | GAME( 1987, pc_rnatk, playch10, playch10, playch10, pcbboard, ROT0, "Konami (Nintendo of America license)", "Rush'n Attack (PlayChoice-10)", 0 ) | |
| 1698 | GAME( 1987, pc_rygar, playch10, playch10, playch10, pcbboard, ROT0, "Tecmo (Nintendo of America license)", "Rygar (PlayChoice-10)", 0 ) | |
| 1699 | GAME( 1988, pc_cntra, playch10, playch10, playch10, pcbboard, ROT0, "Konami (Nintendo of America license)", "Contra (PlayChoice-10)", 0 ) | |
| 1700 | 1700 | |
| 1701 | 1701 | /* C-Board Games */ |
| 1702 | GAME | |
| 1702 | GAME | |
| 1703 | 1703 | |
| 1704 | 1704 | /* D-Board Games */ |
| 1705 | GAMEB( 1986, pc_mtoid, playch10, playch10, playch10, playch10, pcdboard_2, ROT0, "Nintendo", "Metroid (PlayChoice-10)", 0 ) | |
| 1706 | GAMEB( 1987, pc_radrc, playch10, playch10, playch10, playch10, pcdboard, ROT0, "Square", "Rad Racer (PlayChoice-10)", 0 ) | |
| 1705 | GAME( 1986, pc_mtoid, playch10, playch10, playch10, pcdboard_2, ROT0, "Nintendo", "Metroid (PlayChoice-10)", 0 ) | |
| 1706 | GAME( 1987, pc_radrc, playch10, playch10, playch10, pcdboard, ROT0, "Square", "Rad Racer (PlayChoice-10)", 0 ) | |
| 1707 | 1707 | |
| 1708 | 1708 | /* E-Board Games */ |
| 1709 | GAME | |
| 1709 | GAME | |
| 1710 | 1710 | |
| 1711 | 1711 | /* F-Board Games */ |
| 1712 | GAMEB( 1987, pc_rcpam, playch10, playch10, playch10, playch10, pcfboard, ROT0, "Rare", "R.C. Pro-Am (PlayChoice-10)", 0 ) | |
| 1713 | GAMEB( 1987, pc_rrngr, playch10, playch10, playch10, playch10, pcfboard, ROT0, "Capcom USA (Nintendo of America license)", "Chip'n Dale: Rescue Rangers (PlayChoice-10)", 0 ) | |
| 1714 | GAMEB( 1988, pc_ddrgn, playch10, playch10, playch10, playch10, pcfboard, ROT0, "Technos", "Double Dragon (PlayChoice-10)", 0 ) | |
| 1715 | GAMEB( 1989, pc_ngaid, playch10, playch10, playch10, playch10, pcfboard, ROT0, "Tecmo (Nintendo of America license)", "Ninja Gaiden (PlayChoice-10)", 0 ) | |
| 1716 | GAMEB( 1989, pc_tmnt, playch10, playch10, playch10, playch10, pcfboard, ROT0, "Konami (Nintendo of America license)", "Teenage Mutant Ninja Turtles (PlayChoice-10)", 0 ) | |
| 1717 | GAMEB( 1989, pc_ftqst, playch10, playch10, playch10, playch10, pcfboard, ROT0, "Sunsoft (Nintendo of America license)", "Uncle Fester's Quest: The Addams Family (PlayChoice-10)", 0 ) | |
| 1718 | GAMEB( 1989, pc_bstar, playch10, playch10, playch10, playch10, pcfboard_2, ROT0, "SNK (Nintendo of America license)", "Baseball Stars: Be a Champ! (PlayChoice-10)", GAME_IMPERFECT_GRAPHICS) | |
| 1719 | GAMEB( 1989, pc_tbowl, playch10, playch10, playch10, playch10, pcfboard, ROT0, "Tecmo (Nintendo of America license)", "Tecmo Bowl (PlayChoice-10)", 0 ) | |
| 1720 | GAMEB( 1990, pc_drmro, playch10, playch10, playch10, playch10, pcfboard, ROT0, "Nintendo", "Dr. Mario (PlayChoice-10)", 0 ) | |
| 1721 | GAMEB( 1990, pc_ynoid, playch10, playch10, playch10, playch10, pcfboard, ROT0, "Capcom USA (Nintendo of America license)", "Yo! Noid (PlayChoice-10)", 0 ) | |
| 1712 | GAME( 1987, pc_rcpam, playch10, playch10, playch10, pcfboard, ROT0, "Rare", "R.C. Pro-Am (PlayChoice-10)", 0 ) | |
| 1713 | GAME( 1987, pc_rrngr, playch10, playch10, playch10, pcfboard, ROT0, "Capcom USA (Nintendo of America license)", "Chip'n Dale: Rescue Rangers (PlayChoice-10)", 0 ) | |
| 1714 | GAME( 1988, pc_ddrgn, playch10, playch10, playch10, pcfboard, ROT0, "Technos", "Double Dragon (PlayChoice-10)", 0 ) | |
| 1715 | GAME( 1989, pc_ngaid, playch10, playch10, playch10, pcfboard, ROT0, "Tecmo (Nintendo of America license)", "Ninja Gaiden (PlayChoice-10)", 0 ) | |
| 1716 | GAME( 1989, pc_tmnt, playch10, playch10, playch10, pcfboard, ROT0, "Konami (Nintendo of America license)", "Teenage Mutant Ninja Turtles (PlayChoice-10)", 0 ) | |
| 1717 | GAME( 1989, pc_ftqst, playch10, playch10, playch10, pcfboard, ROT0, "Sunsoft (Nintendo of America license)", "Uncle Fester's Quest: The Addams Family (PlayChoice-10)", 0 ) | |
| 1718 | GAME( 1989, pc_bstar, playch10, playch10, playch10, pcfboard_2, ROT0, "SNK (Nintendo of America license)", "Baseball Stars: Be a Champ! (PlayChoice-10)", GAME_IMPERFECT_GRAPHICS) | |
| 1719 | GAME( 1989, pc_tbowl, playch10, playch10, playch10, pcfboard, ROT0, "Tecmo (Nintendo of America license)", "Tecmo Bowl (PlayChoice-10)", 0 ) | |
| 1720 | GAME( 1990, pc_drmro, playch10, playch10, playch10, pcfboard, ROT0, "Nintendo", "Dr. Mario (PlayChoice-10)", 0 ) | |
| 1721 | GAME( 1990, pc_ynoid, playch10, playch10, playch10, pcfboard, ROT0, "Capcom USA (Nintendo of America license)", "Yo! Noid (PlayChoice-10)", 0 ) | |
| 1722 | 1722 | |
| 1723 | 1723 | /* G-Board Games */ |
| 1724 | GAMEB( 1988, pc_smb2, playch10, playch10, playch10, playch10, pcgboard, ROT0, "Nintendo", "Super Mario Bros. 2 (PlayChoice-10)", 0 ) | |
| 1725 | GAMEB( 1988, pc_smb3, playch10, playch10, playch10, playch10, pcgboard, ROT0, "Nintendo", "Super Mario Bros. 3 (PlayChoice-10)", 0 ) | |
| 1726 | GAMEB( 1990, pc_mman3, playch10, playch10, playch10, playch10, pcgboard, ROT0, "Capcom USA (Nintendo of America license)", "Mega Man III (PlayChoice-10)", 0 ) | |
| 1727 | GAMEB( 1990, pc_suprc, playch10, playch10, playch10, playch10, pcgboard, ROT0, "Konami (Nintendo of America license)", "Super C (PlayChoice-10)", 0 ) | |
| 1728 | GAMEB( 1990, pc_tmnt2, playch10, playch10, playch10, playch10, pcgboard, ROT0, "Konami (Nintendo of America license)", "Teenage Mutant Ninja Turtles II: The Arcade Game (PlayChoice-10)", 0 ) | |
| 1729 | GAMEB( 1990, pc_wcup, playch10, playch10, playch10, playch10, pcgboard, ROT0, "Technos (Nintendo license)", "Nintendo World Cup (PlayChoice-10)", 0 ) | |
| 1730 | GAMEB( 1990, pc_ngai2, playch10, playch10, playch10, playch10, pcgboard, ROT0, "Tecmo (Nintendo of America license)", "Ninja Gaiden Episode II: The Dark Sword of Chaos (PlayChoice-10)", 0 ) | |
| 1731 | GAMEB( 1991, pc_ngai3, playch10, playch10, playch10, playch10, pcgboard, ROT0, "Tecmo (Nintendo of America license)", "Ninja Gaiden Episode III: The Ancient Ship of Doom (PlayChoice-10)", 0 ) | |
| 1732 | GAMEB( 1991, pc_pwbld, playch10, playch10, playch10, playch10, pcgboard, ROT0, "Taito (Nintendo of America license)", "Power Blade (PlayChoice-10)", 0 ) | |
| 1733 | GAMEB( 1991, pc_rkats, playch10, playch10, playch10, playch10, pcgboard, ROT0, "Atlus (Nintendo of America license)", "Rockin' Kats (PlayChoice-10)", 0 ) | |
| 1724 | GAME( 1988, pc_smb2, playch10, playch10, playch10, pcgboard, ROT0, "Nintendo", "Super Mario Bros. 2 (PlayChoice-10)", 0 ) | |
| 1725 | GAME( 1988, pc_smb3, playch10, playch10, playch10, pcgboard, ROT0, "Nintendo", "Super Mario Bros. 3 (PlayChoice-10)", 0 ) | |
| 1726 | GAME( 1990, pc_mman3, playch10, playch10, playch10, pcgboard, ROT0, "Capcom USA (Nintendo of America license)", "Mega Man III (PlayChoice-10)", 0 ) | |
| 1727 | GAME( 1990, pc_suprc, playch10, playch10, playch10, pcgboard, ROT0, "Konami (Nintendo of America license)", "Super C (PlayChoice-10)", 0 ) | |
| 1728 | GAME( 1990, pc_tmnt2, playch10, playch10, playch10, pcgboard, ROT0, "Konami (Nintendo of America license)", "Teenage Mutant Ninja Turtles II: The Arcade Game (PlayChoice-10)", 0 ) | |
| 1729 | GAME( 1990, pc_wcup, playch10, playch10, playch10, pcgboard, ROT0, "Technos (Nintendo license)", "Nintendo World Cup (PlayChoice-10)", 0 ) | |
| 1730 | GAME( 1990, pc_ngai2, playch10, playch10, playch10, pcgboard, ROT0, "Tecmo (Nintendo of America license)", "Ninja Gaiden Episode II: The Dark Sword of Chaos (PlayChoice-10)", 0 ) | |
| 1731 | GAME( 1991, pc_ngai3, playch10, playch10, playch10, pcgboard, ROT0, "Tecmo (Nintendo of America license)", "Ninja Gaiden Episode III: The Ancient Ship of Doom (PlayChoice-10)", 0 ) | |
| 1732 | GAME( 1991, pc_pwbld, playch10, playch10, playch10, pcgboard, ROT0, "Taito (Nintendo of America license)", "Power Blade (PlayChoice-10)", 0 ) | |
| 1733 | GAME( 1991, pc_rkats, playch10, playch10, playch10, pcgboard, ROT0, "Atlus (Nintendo of America license)", "Rockin' Kats (PlayChoice-10)", 0 ) | |
| 1734 | 1734 | /* variant with 4 screen mirror */ |
| 1735 | GAMEB( 1990, pc_radr2, playch10, playch10, playch10, playch10, pcgboard_type2, ROT0, "Square (Nintendo of America license)", "Rad Racer II (PlayChoice-10)", 0 ) | |
| 1736 | GAMEB( 1985, pc_gntlt, playch10, playch10, playch10, playch10, pcgboard_type2, ROT0, "Atari/Tengen (Nintendo of America license)", "Gauntlet (PlayChoice-10)", GAME_IMPERFECT_GRAPHICS ) | |
| 1735 | GAME( 1990, pc_radr2, playch10, playch10, playch10, pcgboard_type2, ROT0, "Square (Nintendo of America license)", "Rad Racer II (PlayChoice-10)", 0 ) | |
| 1736 | GAME( 1985, pc_gntlt, playch10, playch10, playch10, pcgboard_type2, ROT0, "Atari/Tengen (Nintendo of America license)", "Gauntlet (PlayChoice-10)", GAME_IMPERFECT_GRAPHICS ) | |
| 1737 | 1737 | |
| 1738 | 1738 | /* H-Board Games */ |
| 1739 | GAME | |
| 1739 | GAME | |
| 1740 | 1740 | |
| 1741 | 1741 | /* i-Board Games */ |
| 1742 | GAMEB( 1989, pc_cshwk, playch10, playch10, playch10, playch10, pciboard, ROT0, "Rare (Nintendo of America license)", "Captain Sky Hawk (PlayChoice-10)", 0 ) | |
| 1743 | GAMEB( 1990, pc_sjetm, playch10, playch10, playch10, playch10, pciboard, ROT0, "Rare", "Solar Jetman (PlayChoice-10)", 0 ) | |
| 1742 | GAME( 1989, pc_cshwk, playch10, playch10, playch10, pciboard, ROT0, "Rare (Nintendo of America license)", "Captain Sky Hawk (PlayChoice-10)", 0 ) | |
| 1743 | GAME( 1990, pc_sjetm, playch10, playch10, playch10, pciboard, ROT0, "Rare", "Solar Jetman (PlayChoice-10)", 0 ) | |
| 1744 | 1744 | |
| 1745 | 1745 | /* K-Board Games */ |
| 1746 | GAME | |
| 1746 | GAME |
| r1238 | r1239 | |
|---|---|---|
| 785 | 785 | * |
| 786 | 786 | *************************************/ |
| 787 | 787 | |
| 788 | INPUT_PORTS_START( area51 ) | |
| 788 | static INPUT_PORTS_START( area51 ) | |
| 789 | 789 | PORT_START |
| 790 | 790 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 791 | 791 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 828 | 828 | INPUT_PORTS_END |
| 829 | 829 | |
| 830 | 830 | |
| 831 | INPUT_PORTS_START( freezeat ) | |
| 831 | static INPUT_PORTS_START( freezeat ) | |
| 832 | 832 | PORT_START |
| 833 | 833 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 834 | 834 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 869 | 869 | INPUT_PORTS_END |
| 870 | 870 | |
| 871 | 871 | |
| 872 | INPUT_PORTS_START( fishfren ) | |
| 872 | static INPUT_PORTS_START( fishfren ) | |
| 873 | 873 | PORT_START |
| 874 | 874 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 875 | 875 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 910 | 910 | INPUT_PORTS_END |
| 911 | 911 | |
| 912 | 912 | |
| 913 | INPUT_PORTS_START( vcircle ) | |
| 913 | static INPUT_PORTS_START( vcircle ) | |
| 914 | 914 | PORT_START |
| 915 | 915 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) |
| 916 | 916 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(2) |
| r1238 | r1239 | |
|---|---|---|
| 288 | 288 | * |
| 289 | 289 | *************************************/ |
| 290 | 290 | |
| 291 | INPUT_PORTS_START( cyberbal ) | |
| 291 | static INPUT_PORTS_START( cyberbal ) | |
| 292 | 292 | PORT_START /* fe0000 */ |
| 293 | 293 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(4) |
| 294 | 294 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(4) |
| r1238 | r1239 | |
| 338 | 338 | INPUT_PORTS_END |
| 339 | 339 | |
| 340 | 340 | |
| 341 | INPUT_PORTS_START( cyberb2p ) | |
| 341 | static INPUT_PORTS_START( cyberb2p ) | |
| 342 | 342 | PORT_START /* fc0000 */ |
| 343 | 343 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 344 | 344 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 198 | 198 | } |
| 199 | 199 | |
| 200 | 200 | /* Wrong last time I checked */ |
| 201 | INPUT_PORTS_START( lockon ) | |
| 201 | static INPUT_PORTS_START( lockon ) | |
| 202 | 202 | PORT_START_TAG("DSW") |
| 203 | 203 | PORT_DIPNAME( 0x0003, 0x0000, DEF_STR( Lives ) ) |
| 204 | 204 | PORT_DIPSETTING( 0x0000, "5" ) |
| r1238 | r1239 | |
|---|---|---|
| 968 | 968 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) )\ |
| 969 | 969 | PORT_SERVICE( 0x08, IP_ACTIVE_LOW ) |
| 970 | 970 | |
| 971 | INPUT_PORTS_START( superpac ) | |
| 971 | static INPUT_PORTS_START( superpac ) | |
| 972 | 972 | NAMCO_56IN0 |
| 973 | 973 | NAMCO_56IN1 |
| 974 | 974 | NAMCO_56DSW0 |
| r1238 | r1239 | |
| 1037 | 1037 | INPUT_PORTS_END |
| 1038 | 1038 | |
| 1039 | 1039 | |
| 1040 | INPUT_PORTS_START( pacnpal ) | |
| 1040 | static INPUT_PORTS_START( pacnpal ) | |
| 1041 | 1041 | NAMCO_56IN0 |
| 1042 | 1042 | NAMCO_56IN1 |
| 1043 | 1043 | NAMCO_56DSW0 |
| r1238 | r1239 | |
| 1100 | 1100 | INPUT_PORTS_END |
| 1101 | 1101 | |
| 1102 | 1102 | |
| 1103 | INPUT_PORTS_START( grobda ) | |
| 1103 | static INPUT_PORTS_START( grobda ) | |
| 1104 | 1104 | NAMCO_5XIN0 |
| 1105 | 1105 | NAMCO_56IN1 |
| 1106 | 1106 | |
| r1238 | r1239 | |
| 1161 | 1161 | INPUT_PORTS_END |
| 1162 | 1162 | |
| 1163 | 1163 | |
| 1164 | INPUT_PORTS_START( phozon ) | |
| 1164 | static INPUT_PORTS_START( phozon ) | |
| 1165 | 1165 | NAMCO_5XIN0 |
| 1166 | 1166 | NAMCO_56IN1 |
| 1167 | 1167 | NAMCO_56DSW0 |
| r1238 | r1239 | |
| 1227 | 1227 | INPUT_PORTS_END |
| 1228 | 1228 | |
| 1229 | 1229 | |
| 1230 | INPUT_PORTS_START( mappy ) | |
| 1230 | static INPUT_PORTS_START( mappy ) | |
| 1231 | 1231 | PORT_START_TAG("IN0") /* 58XX #0 pins 22-29 */ |
| 1232 | 1232 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1233 | 1233 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| r1238 | r1239 | |
| 1301 | 1301 | INPUT_PORTS_END |
| 1302 | 1302 | |
| 1303 | 1303 | |
| 1304 | INPUT_PORTS_START( todruaga ) | |
| 1304 | static INPUT_PORTS_START( todruaga ) | |
| 1305 | 1305 | NAMCO_56IN0 |
| 1306 | 1306 | NAMCO_56IN1 |
| 1307 | 1307 | |
| r1238 | r1239 | |
| 1362 | 1362 | INPUT_PORTS_END |
| 1363 | 1363 | |
| 1364 | 1364 | |
| 1365 | INPUT_PORTS_START( digdug2 ) | |
| 1365 | static INPUT_PORTS_START( digdug2 ) | |
| 1366 | 1366 | NAMCO_56IN0 |
| 1367 | 1367 | NAMCO_56IN1 |
| 1368 | 1368 | |
| r1238 | r1239 | |
| 1424 | 1424 | INPUT_PORTS_END |
| 1425 | 1425 | |
| 1426 | 1426 | |
| 1427 | INPUT_PORTS_START( motos ) | |
| 1427 | static INPUT_PORTS_START( motos ) | |
| 1428 | 1428 | NAMCO_5XIN0 |
| 1429 | 1429 | NAMCO_56IN1 |
| 1430 | 1430 |
| r1238 | r1239 | |
|---|---|---|
| 259 | 259 | |
| 260 | 260 | |
| 261 | 261 | |
| 262 | INPUT_PORTS_START( rastan ) | |
| 262 | static INPUT_PORTS_START( rastan ) | |
| 263 | 263 | PORT_START_TAG("IN0") |
| 264 | 264 | TAITO_JOY_UDLR_2_BUTTONS( 1 ) |
| 265 | 265 | |
| r1238 | r1239 | |
| 317 | 317 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 318 | 318 | INPUT_PORTS_END |
| 319 | 319 | |
| 320 | INPUT_PORTS_START( rastsaga ) | |
| 320 | static INPUT_PORTS_START( rastsaga ) | |
| 321 | 321 | PORT_INCLUDE( rastan ) |
| 322 | 322 | |
| 323 | 323 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
|---|---|---|
| 417 | 417 | cpunum_set_input_line(0, 4, PULSE_LINE); |
| 418 | 418 | } |
| 419 | 419 | |
| 420 | INPUT_PORTS_START( pntnpuzl ) | |
| 420 | static INPUT_PORTS_START( pntnpuzl ) | |
| 421 | 421 | PORT_START /* fake inputs */ |
| 422 | 422 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 423 | 423 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(1) |
| r1238 | r1239 | |
|---|---|---|
| 268 | 268 | AM_RANGE(0xfc00, 0xfc00) AM_WRITE(soundlatch2_w) |
| 269 | 269 | ADDRESS_MAP_END |
| 270 | 270 | |
| 271 | INPUT_PORTS_START( gijoe ) | |
| 271 | static INPUT_PORTS_START( gijoe ) | |
| 272 | 272 | PORT_START |
| 273 | 273 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| 274 | 274 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 240 | 240 | |
| 241 | 241 | |
| 242 | 242 | |
| 243 | INPUT_PORTS_START( tigeroad ) | |
| 243 | static INPUT_PORTS_START( tigeroad ) | |
| 244 | 244 | PORT_START /* IN0 */ |
| 245 | 245 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 246 | 246 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 316 | 316 | PORT_DIPSETTING( 0x8000, DEF_STR( Yes ) ) |
| 317 | 317 | INPUT_PORTS_END |
| 318 | 318 | |
| 319 | INPUT_PORTS_START( toramich ) | |
| 319 | static INPUT_PORTS_START( toramich ) | |
| 320 | 320 | PORT_START /* IN0 */ |
| 321 | 321 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 322 | 322 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 393 | 393 | PORT_DIPSETTING( 0x8000, DEF_STR( Yes ) ) |
| 394 | 394 | INPUT_PORTS_END |
| 395 | 395 | |
| 396 | INPUT_PORTS_START( f1dream ) | |
| 396 | static INPUT_PORTS_START( f1dream ) | |
| 397 | 397 | PORT_START /* IN0 */ |
| 398 | 398 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 399 | 399 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 327 | 327 | |
| 328 | 328 | |
| 329 | 329 | |
| 330 | INPUT_PORTS_START( wilytowr ) | |
| 330 | static INPUT_PORTS_START( wilytowr ) | |
| 331 | 331 | PORT_START_TAG("IN0") |
| 332 | 332 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 333 | 333 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| r1238 | r1239 | |
| 405 | 405 | PORT_SERVICE( 0x80, IP_ACTIVE_HIGH ) |
| 406 | 406 | INPUT_PORTS_END |
| 407 | 407 | |
| 408 | INPUT_PORTS_START( fghtbskt ) | |
| 408 | static INPUT_PORTS_START( fghtbskt ) | |
| 409 | 409 | PORT_START |
| 410 | 410 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 411 | 411 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 382 | 382 | |
| 383 | 383 | |
| 384 | 384 | |
| 385 | INPUT_PORTS_START( spaceg ) | |
| 385 | static INPUT_PORTS_START( spaceg ) | |
| 386 | 386 | PORT_START |
| 387 | 387 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 388 | 388 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| r1238 | r1239 | |
|---|---|---|
| 626 | 626 | * |
| 627 | 627 | *************************************/ |
| 628 | 628 | |
| 629 | INPUT_PORTS_START( looping ) | |
| 629 | static INPUT_PORTS_START( looping ) | |
| 630 | 630 | PORT_START_TAG("IN0") |
| 631 | 631 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) |
| 632 | 632 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) |
| r1238 | r1239 | |
| 671 | 671 | INPUT_PORTS_END |
| 672 | 672 | |
| 673 | 673 | /* Same as 'looping' but additional "Infinite Lives" Dip Switch */ |
| 674 | INPUT_PORTS_START( skybump ) | |
| 674 | static INPUT_PORTS_START( skybump ) | |
| 675 | 675 | PORT_INCLUDE(looping) |
| 676 | 676 | |
| 677 | 677 | PORT_MODIFY("DSW0") |
| r1238 | r1239 | |
|---|---|---|
| 1275 | 1275 | * |
| 1276 | 1276 | *************************************/ |
| 1277 | 1277 | |
| 1278 | INPUT_PORTS_START( arescue ) | |
| 1278 | static INPUT_PORTS_START( arescue ) | |
| 1279 | 1279 | PORT_INCLUDE( system32_generic ) |
| 1280 | 1280 | |
| 1281 | 1281 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1301 | 1301 | INPUT_PORTS_END |
| 1302 | 1302 | |
| 1303 | 1303 | |
| 1304 | INPUT_PORTS_START( alien3 ) | |
| 1304 | static INPUT_PORTS_START( alien3 ) | |
| 1305 | 1305 | PORT_INCLUDE( system32_generic ) |
| 1306 | 1306 | |
| 1307 | 1307 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1330 | 1330 | INPUT_PORTS_END |
| 1331 | 1331 | |
| 1332 | 1332 | |
| 1333 | INPUT_PORTS_START( arabfgt ) | |
| 1333 | static INPUT_PORTS_START( arabfgt ) | |
| 1334 | 1334 | PORT_INCLUDE( system32_generic ) |
| 1335 | 1335 | |
| 1336 | 1336 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1363 | 1363 | PORT_BIT( 0xfc, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1364 | 1364 | INPUT_PORTS_END |
| 1365 | 1365 | |
| 1366 | INPUT_PORTS_START( arabfgtu ) | |
| 1366 | static INPUT_PORTS_START( arabfgtu ) | |
| 1367 | 1367 | PORT_INCLUDE( arabfgt ) |
| 1368 | 1368 | |
| 1369 | 1369 | PORT_MODIFY("SERVICE12") |
| r1238 | r1239 | |
| 1376 | 1376 | INPUT_PORTS_END |
| 1377 | 1377 | |
| 1378 | 1378 | |
| 1379 | INPUT_PORTS_START( brival ) | |
| 1379 | static INPUT_PORTS_START( brival ) | |
| 1380 | 1380 | PORT_INCLUDE( system32_generic ) |
| 1381 | 1381 | |
| 1382 | 1382 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1397 | 1397 | INPUT_PORTS_END |
| 1398 | 1398 | |
| 1399 | 1399 | |
| 1400 | INPUT_PORTS_START( darkedge ) | |
| 1400 | static INPUT_PORTS_START( darkedge ) | |
| 1401 | 1401 | PORT_INCLUDE( system32_generic ) |
| 1402 | 1402 | |
| 1403 | 1403 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1422 | 1422 | INPUT_PORTS_END |
| 1423 | 1423 | |
| 1424 | 1424 | |
| 1425 | INPUT_PORTS_START( dbzvrvs ) | |
| 1425 | static INPUT_PORTS_START( dbzvrvs ) | |
| 1426 | 1426 | PORT_INCLUDE( system32_generic ) |
| 1427 | 1427 | INPUT_PORTS_END |
| 1428 | 1428 | |
| 1429 | 1429 | |
| 1430 | INPUT_PORTS_START( f1en ) | |
| 1430 | static INPUT_PORTS_START( f1en ) | |
| 1431 | 1431 | PORT_INCLUDE( system32_generic ) |
| 1432 | 1432 | |
| 1433 | 1433 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1468 | 1468 | INPUT_PORTS_END |
| 1469 | 1469 | |
| 1470 | 1470 | |
| 1471 | INPUT_PORTS_START( f1lap ) | |
| 1471 | static INPUT_PORTS_START( f1lap ) | |
| 1472 | 1472 | PORT_INCLUDE( f1en ) |
| 1473 | 1473 | |
| 1474 | 1474 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1478 | 1478 | INPUT_PORTS_END |
| 1479 | 1479 | |
| 1480 | 1480 | |
| 1481 | INPUT_PORTS_START( ga2 ) | |
| 1481 | static INPUT_PORTS_START( ga2 ) | |
| 1482 | 1482 | PORT_INCLUDE( system32_generic ) |
| 1483 | 1483 | |
| 1484 | 1484 | PORT_START_TAG("EXTRA1") |
| r1238 | r1239 | |
| 1507 | 1507 | PORT_BIT( 0xfc, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1508 | 1508 | INPUT_PORTS_END |
| 1509 | 1509 | |
| 1510 | INPUT_PORTS_START( ga2u ) | |
| 1510 | static INPUT_PORTS_START( ga2u ) | |
| 1511 | 1511 | PORT_INCLUDE( ga2 ) |
| 1512 | 1512 | |
| 1513 | 1513 | PORT_MODIFY("SERVICE12") |
| r1238 | r1239 | |
| 1520 | 1520 | INPUT_PORTS_END |
| 1521 | 1521 | |
| 1522 | 1522 | |
| 1523 | INPUT_PORTS_START( harddunk ) | |
| 1523 | static INPUT_PORTS_START( harddunk ) | |
| 1524 | 1524 | PORT_INCLUDE( multi32_generic ) |
| 1525 | 1525 | |
| 1526 | 1526 | PORT_MODIFY("P1_A") |
| r1238 | r1239 | |
| 1600 | 1600 | INPUT_PORTS_END |
| 1601 | 1601 | |
| 1602 | 1602 | |
| 1603 | INPUT_PORTS_START( holo ) | |
| 1603 | static INPUT_PORTS_START( holo ) | |
| 1604 | 1604 | PORT_INCLUDE( system32_generic ) |
| 1605 | 1605 | |
| 1606 | 1606 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1611 | 1611 | INPUT_PORTS_END |
| 1612 | 1612 | |
| 1613 | 1613 | |
| 1614 | INPUT_PORTS_START( jpark ) | |
| 1614 | static INPUT_PORTS_START( jpark ) | |
| 1615 | 1615 | PORT_INCLUDE( system32_generic ) |
| 1616 | 1616 | |
| 1617 | 1617 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1634 | 1634 | INPUT_PORTS_END |
| 1635 | 1635 | |
| 1636 | 1636 | |
| 1637 | INPUT_PORTS_START( orunners ) | |
| 1637 | static INPUT_PORTS_START( orunners ) | |
| 1638 | 1638 | PORT_INCLUDE( multi32_generic ) |
| 1639 | 1639 | |
| 1640 | 1640 | PORT_MODIFY("P1_A") |
| r1238 | r1239 | |
| 1679 | 1679 | INPUT_PORTS_END |
| 1680 | 1680 | |
| 1681 | 1681 | |
| 1682 | INPUT_PORTS_START( radm ) | |
| 1682 | static INPUT_PORTS_START( radm ) | |
| 1683 | 1683 | PORT_INCLUDE( system32_generic ) |
| 1684 | 1684 | |
| 1685 | 1685 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1721 | 1721 | INPUT_PORTS_END |
| 1722 | 1722 | |
| 1723 | 1723 | |
| 1724 | INPUT_PORTS_START( radr ) | |
| 1724 | static INPUT_PORTS_START( radr ) | |
| 1725 | 1725 | PORT_INCLUDE( system32_generic ) |
| 1726 | 1726 | |
| 1727 | 1727 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1761 | 1761 | INPUT_PORTS_END |
| 1762 | 1762 | |
| 1763 | 1763 | |
| 1764 | INPUT_PORTS_START( scross ) | |
| 1764 | static INPUT_PORTS_START( scross ) | |
| 1765 | 1765 | PORT_INCLUDE( multi32_generic ) |
| 1766 | 1766 | |
| 1767 | 1767 | PORT_MODIFY("P1_A") |
| r1238 | r1239 | |
| 1790 | 1790 | INPUT_PORTS_END |
| 1791 | 1791 | |
| 1792 | 1792 | |
| 1793 | INPUT_PORTS_START( slipstrm ) | |
| 1793 | static INPUT_PORTS_START( slipstrm ) | |
| 1794 | 1794 | PORT_INCLUDE( system32_generic ) |
| 1795 | 1795 | |
| 1796 | 1796 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1830 | 1830 | INPUT_PORTS_END |
| 1831 | 1831 | |
| 1832 | 1832 | |
| 1833 | INPUT_PORTS_START( sonic ) | |
| 1833 | static INPUT_PORTS_START( sonic ) | |
| 1834 | 1834 | PORT_INCLUDE( system32_generic ) |
| 1835 | 1835 | |
| 1836 | 1836 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1865 | 1865 | INPUT_PORTS_END |
| 1866 | 1866 | |
| 1867 | 1867 | |
| 1868 | INPUT_PORTS_START( spidman ) | |
| 1868 | static INPUT_PORTS_START( spidman ) | |
| 1869 | 1869 | PORT_INCLUDE( system32_generic ) |
| 1870 | 1870 | |
| 1871 | 1871 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1899 | 1899 | INPUT_PORTS_END |
| 1900 | 1900 | |
| 1901 | 1901 | |
| 1902 | INPUT_PORTS_START( spidmanu ) | |
| 1902 | static INPUT_PORTS_START( spidmanu ) | |
| 1903 | 1903 | PORT_INCLUDE( spidman ) |
| 1904 | 1904 | |
| 1905 | 1905 | PORT_MODIFY("SERVICE12") |
| r1238 | r1239 | |
| 1912 | 1912 | INPUT_PORTS_END |
| 1913 | 1913 | |
| 1914 | 1914 | |
| 1915 | INPUT_PORTS_START( svf ) | |
| 1915 | static INPUT_PORTS_START( svf ) | |
| 1916 | 1916 | PORT_INCLUDE( system32_generic ) |
| 1917 | 1917 | INPUT_PORTS_END |
| 1918 | 1918 | |
| 1919 | 1919 | |
| 1920 | INPUT_PORTS_START( titlef ) | |
| 1920 | static INPUT_PORTS_START( titlef ) | |
| 1921 | 1921 | PORT_INCLUDE( multi32_generic ) |
| 1922 | 1922 | |
| 1923 | 1923 | PORT_MODIFY("P1_A") |
| r1238 | r1239 | |
|---|---|---|
| 162 | 162 | AM_RANGE(0x8c0000, 0x8cffff) AM_WRITE(MWA16_RAM) // not used? |
| 163 | 163 | ADDRESS_MAP_END |
| 164 | 164 | |
| 165 | INPUT_PORTS_START( k3 ) | |
| 165 | static INPUT_PORTS_START( k3 ) | |
| 166 | 166 | PORT_START_TAG("IN1") |
| 167 | 167 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 168 | 168 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 355 | 355 | * |
| 356 | 356 | *************************************/ |
| 357 | 357 | |
| 358 | INPUT_PORTS_START( badlands ) | |
| 358 | static INPUT_PORTS_START( badlands ) | |
| 359 | 359 | PORT_START /* fe4000 */ |
| 360 | 360 | PORT_BIT( 0x000f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 361 | 361 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 453 | 453 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 )\ |
| 454 | 454 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 455 | 455 | |
| 456 | INPUT_PORTS_START( perfrman ) | |
| 456 | static INPUT_PORTS_START( perfrman ) | |
| 457 | 457 | COMMON_START |
| 458 | 458 | PORT_START_TAG("DSW1") |
| 459 | 459 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) |
| r1238 | r1239 | |
| 509 | 509 | PORT_DIPSETTING( 0x02, "5" ) |
| 510 | 510 | INPUT_PORTS_END |
| 511 | 511 | |
| 512 | INPUT_PORTS_START( tigerh ) | |
| 512 | static INPUT_PORTS_START( tigerh ) | |
| 513 | 513 | COMMON_START |
| 514 | 514 | PORT_START_TAG("DSW1") |
| 515 | 515 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) ) |
| r1238 | r1239 | |
| 562 | 562 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 563 | 563 | INPUT_PORTS_END |
| 564 | 564 | |
| 565 | INPUT_PORTS_START( slapfigh ) | |
| 565 | static INPUT_PORTS_START( slapfigh ) | |
| 566 | 566 | COMMON_START |
| 567 | 567 | PORT_START_TAG("DSW1") |
| 568 | 568 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_B ) ) |
| r1238 | r1239 | |
| 613 | 613 | INPUT_PORTS_END |
| 614 | 614 | |
| 615 | 615 | |
| 616 | INPUT_PORTS_START( getstar ) | |
| 616 | static INPUT_PORTS_START( getstar ) | |
| 617 | 617 | PORT_START_TAG("IN0") |
| 618 | 618 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 619 | 619 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| r1238 | r1239 | |
| 684 | 684 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 685 | 685 | INPUT_PORTS_END |
| 686 | 686 | |
| 687 | INPUT_PORTS_START( gtstarba ) | |
| 687 | static INPUT_PORTS_START( gtstarba ) | |
| 688 | 688 | PORT_START_TAG("IN0") |
| 689 | 689 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 690 | 690 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 146 | 146 | PORT_DIPSETTING( 0xff, DEF_STR( Cocktail ) ) |
| 147 | 147 | INPUT_PORTS_END |
| 148 | 148 | |
| 149 | INPUT_PORTS_START( spcking2 ) | |
| 149 | static INPUT_PORTS_START( spcking2 ) | |
| 150 | 150 | COMMON_INPUT_BITS |
| 151 | 151 | |
| 152 | 152 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 178 | 178 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 179 | 179 | INPUT_PORTS_END |
| 180 | 180 | |
| 181 | INPUT_PORTS_START( spaceint ) | |
| 181 | static INPUT_PORTS_START( spaceint ) | |
| 182 | 182 | PORT_START_TAG("IN0") |
| 183 | 183 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) |
| 184 | 184 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 681 | 681 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(player) \ |
| 682 | 682 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(player) |
| 683 | 683 | |
| 684 | INPUT_PORTS_START( s1945ii ) | |
| 684 | static INPUT_PORTS_START( s1945ii ) | |
| 685 | 685 | PORT_START_TAG("IN0") |
| 686 | 686 | PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN ) |
| 687 | 687 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 696 | 696 | PORT_DIPSETTING( 0x01, DEF_STR( World ) ) |
| 697 | 697 | INPUT_PORTS_END |
| 698 | 698 | |
| 699 | INPUT_PORTS_START( soldivid ) | |
| 699 | static INPUT_PORTS_START( soldivid ) | |
| 700 | 700 | PORT_START_TAG("IN0") |
| 701 | 701 | PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 ) |
| 702 | 702 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 711 | 711 | PORT_DIPSETTING( 0x01, DEF_STR( World ) ) |
| 712 | 712 | INPUT_PORTS_END |
| 713 | 713 | |
| 714 | INPUT_PORTS_START( daraku ) | |
| 714 | static INPUT_PORTS_START( daraku ) | |
| 715 | 715 | PORT_START_TAG("IN0") |
| 716 | 716 | PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN ) |
| 717 | 717 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 735 | 735 | PORT_DIPSETTING( 0x01, DEF_STR( World ) ) /* Title screen is different, English is default now */ |
| 736 | 736 | INPUT_PORTS_END |
| 737 | 737 | |
| 738 | INPUT_PORTS_START( sbomberb ) | |
| 738 | static INPUT_PORTS_START( sbomberb ) | |
| 739 | 739 | PORT_START_TAG("IN0") |
| 740 | 740 | PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN ) |
| 741 | 741 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 750 | 750 | PORT_DIPSETTING( 0x01, DEF_STR( World ) ) |
| 751 | 751 | INPUT_PORTS_END |
| 752 | 752 | |
| 753 | INPUT_PORTS_START( gunbird2 ) /* Different Region */ | |
| 753 | static INPUT_PORTS_START( gunbird2 ) /* Different Region */ | |
| 754 | 754 | PORT_START_TAG("IN0") |
| 755 | 755 | PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 ) |
| 756 | 756 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 766 | 766 | PORT_DIPSETTING( 0x02, "International Ver B." ) |
| 767 | 767 | INPUT_PORTS_END |
| 768 | 768 | |
| 769 | INPUT_PORTS_START( s1945iii ) /* Different Region again */ | |
| 769 | static INPUT_PORTS_START( s1945iii ) /* Different Region again */ | |
| 770 | 770 | PORT_START_TAG("IN0") |
| 771 | 771 | PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 ) |
| 772 | 772 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 782 | 782 | PORT_DIPSETTING( 0x01, "International Ver B." ) |
| 783 | 783 | INPUT_PORTS_END |
| 784 | 784 | |
| 785 | INPUT_PORTS_START( dragnblz ) /* Security requires bit high */ | |
| 785 | static INPUT_PORTS_START( dragnblz ) /* Security requires bit high */ | |
| 786 | 786 | PORT_START_TAG("IN0") |
| 787 | 787 | PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 ) |
| 788 | 788 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 799 | 799 | PORT_DIPSETTING( 0x01, "International Ver B." ) |
| 800 | 800 | INPUT_PORTS_END |
| 801 | 801 | |
| 802 | INPUT_PORTS_START( gnbarich ) /* Same as S1945iii except only one button */ | |
| 802 | static INPUT_PORTS_START( gnbarich ) /* Same as S1945iii except only one button */ | |
| 803 | 803 | PORT_START_TAG("IN0") |
| 804 | 804 | PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 ) |
| 805 | 805 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 815 | 815 | PORT_DIPSETTING( 0x01, "International Ver B." ) |
| 816 | 816 | INPUT_PORTS_END |
| 817 | 817 | |
| 818 | INPUT_PORTS_START( mjgtaste ) /* This will need the Mahjong inputs */ | |
| 818 | static INPUT_PORTS_START( mjgtaste ) /* This will need the Mahjong inputs */ | |
| 819 | 819 | PORT_START_TAG("IN0") |
| 820 | 820 | PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 ) |
| 821 | 821 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
|---|---|---|
| 133 | 133 | |
| 134 | 134 | /**********************************************************************************/ |
| 135 | 135 | |
| 136 | INPUT_PORTS_START( boogwing ) | |
| 136 | static INPUT_PORTS_START( boogwing ) | |
| 137 | 137 | PORT_START /* 16bit */ |
| 138 | 138 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 139 | 139 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 116 | 116 | |
| 117 | 117 | /****************************************************************************/ |
| 118 | 118 | |
| 119 | INPUT_PORTS_START( quizdna ) | |
| 119 | static INPUT_PORTS_START( quizdna ) | |
| 120 | 120 | PORT_START /* sw2 */ |
| 121 | 121 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coinage ) ) |
| 122 | 122 | PORT_DIPSETTING( 0x01, DEF_STR( 9C_1C ) ) |
| r1238 | r1239 | |
| 210 | 210 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 211 | 211 | INPUT_PORTS_END |
| 212 | 212 | |
| 213 | INPUT_PORTS_START( gakupara ) | |
| 213 | static INPUT_PORTS_START( gakupara ) | |
| 214 | 214 | PORT_START /* sw2 */ |
| 215 | 215 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coinage ) ) |
| 216 | 216 | PORT_DIPSETTING( 0x00, "10 Coins/1 Credit" ) |
| r1238 | r1239 | |
| 306 | 306 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 307 | 307 | INPUT_PORTS_END |
| 308 | 308 | |
| 309 | INPUT_PORTS_START( gekiretu ) | |
| 309 | static INPUT_PORTS_START( gekiretu ) | |
| 310 | 310 | PORT_START /* dsw2 */ |
| 311 | 311 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coinage ) ) |
| 312 | 312 | PORT_DIPSETTING( 0x01, DEF_STR( 9C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 350 | 350 | |
| 351 | 351 | ***************************************************************************/ |
| 352 | 352 | |
| 353 | INPUT_PORTS_START( darkhors ) | |
| 353 | static INPUT_PORTS_START( darkhors ) | |
| 354 | 354 | PORT_START // IN0 - 580000 |
| 355 | 355 | PORT_BIT( 0xff7fffff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 356 | 356 | PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("?") PORT_CODE(KEYCODE_RCONTROL) |
| r1238 | r1239 | |
|---|---|---|
| 317 | 317 | Input Ports |
| 318 | 318 | ***************************************************************************/ |
| 319 | 319 | |
| 320 | INPUT_PORTS_START( bishjan ) | |
| 320 | static INPUT_PORTS_START( bishjan ) | |
| 321 | 321 | PORT_START // IN0 - Reset |
| 322 | 322 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Reset") PORT_CODE(KEYCODE_F1) |
| 323 | 323 |
| r1238 | r1239 | |
|---|---|---|
| 226 | 226 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) )\ |
| 227 | 227 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) |
| 228 | 228 | |
| 229 | INPUT_PORTS_START( mpatrol ) | |
| 229 | static INPUT_PORTS_START( mpatrol ) | |
| 230 | 230 | MPATROL_COMMON |
| 231 | 231 | |
| 232 | 232 | PORT_START_TAG("DSW0") |
| r1238 | r1239 | |
| 246 | 246 | INPUT_PORTS_END |
| 247 | 247 | |
| 248 | 248 | /* Identical to mpatrol, the only difference is the number of lives */ |
| 249 | INPUT_PORTS_START( mpatrolw ) | |
| 249 | static INPUT_PORTS_START( mpatrolw ) | |
| 250 | 250 | MPATROL_COMMON |
| 251 | 251 | |
| 252 | 252 | PORT_START_TAG("DSW0") |
| r1238 | r1239 | |
| 266 | 266 | INPUT_PORTS_END |
| 267 | 267 | |
| 268 | 268 | |
| 269 | INPUT_PORTS_START( alpha1v ) | |
| 269 | static INPUT_PORTS_START( alpha1v ) | |
| 270 | 270 | PORT_START_TAG("IN0")\ |
| 271 | 271 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 272 | 272 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 290 | 290 | * |
| 291 | 291 | *************************************/ |
| 292 | 292 | |
| 293 | INPUT_PORTS_START( offtwall ) | |
| 293 | static INPUT_PORTS_START( offtwall ) | |
| 294 | 294 | PORT_START /* 260000 */ |
| 295 | 295 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) |
| 296 | 296 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 251 | 251 | * |
| 252 | 252 | *************************************/ |
| 253 | 253 | |
| 254 | INPUT_PORTS_START( upscope ) | |
| 254 | static INPUT_PORTS_START( upscope ) | |
| 255 | 255 | PORT_START_TAG("POT1DAT") |
| 256 | 256 | PORT_BIT( 0xff, 0x80, IPT_PADDLE) PORT_SENSITIVITY(25) PORT_MINMAX(0x02,0xfe) PORT_KEYDELTA(5) PORT_CENTERDELTA(0) PORT_REVERSE |
| 257 | 257 |
| r1238 | r1239 | |
|---|---|---|
| 418 | 418 | /******************************************************************************/ |
| 419 | 419 | // Equites Port Map |
| 420 | 420 | |
| 421 | INPUT_PORTS_START( equites ) | |
| 421 | static INPUT_PORTS_START( equites ) | |
| 422 | 422 | PORT_START |
| 423 | 423 | EQUITES_PLAYER_INPUT_LSB( IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3, IPT_START1 ) |
| 424 | 424 | EQUITES_PLAYER_INPUT_MSB( IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3, IPT_START2 ) |
| r1238 | r1239 | |
| 451 | 451 | /******************************************************************************/ |
| 452 | 452 | // Bull Fighter Port Map |
| 453 | 453 | |
| 454 | INPUT_PORTS_START( bullfgtr ) | |
| 454 | static INPUT_PORTS_START( bullfgtr ) | |
| 455 | 455 | PORT_START |
| 456 | 456 | EQUITES_PLAYER_INPUT_LSB( IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3, IPT_START1 ) |
| 457 | 457 | EQUITES_PLAYER_INPUT_MSB( IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3, IPT_START2 ) |
| r1238 | r1239 | |
| 483 | 483 | /******************************************************************************/ |
| 484 | 484 | // Koukouyakyuh Port Map |
| 485 | 485 | |
| 486 | INPUT_PORTS_START( kouyakyu ) | |
| 486 | static INPUT_PORTS_START( kouyakyu ) | |
| 487 | 487 | PORT_START |
| 488 | 488 | EQUITES_PLAYER_INPUT_LSB( IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3, IPT_START1 ) |
| 489 | 489 | EQUITES_PLAYER_INPUT_MSB( IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3, IPT_START2 ) |
| r1238 | r1239 | |
| 516 | 516 | /******************************************************************************/ |
| 517 | 517 | // Splendor Blast Port Map |
| 518 | 518 | |
| 519 | INPUT_PORTS_START( splndrbt ) | |
| 519 | static INPUT_PORTS_START( splndrbt ) | |
| 520 | 520 | PORT_START |
| 521 | 521 | EQUITES_PLAYER_INPUT_LSB( IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN, IPT_START1 ) |
| 522 | 522 | EQUITES_PLAYER_INPUT_MSB( IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN, IPT_START2 ) |
| r1238 | r1239 | |
| 548 | 548 | /******************************************************************************/ |
| 549 | 549 | // High Voltage Port Map |
| 550 | 550 | |
| 551 | INPUT_PORTS_START( hvoltage ) | |
| 551 | static INPUT_PORTS_START( hvoltage ) | |
| 552 | 552 | PORT_START |
| 553 | 553 | EQUITES_PLAYER_INPUT_LSB( IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN, IPT_START1 ) |
| 554 | 554 | EQUITES_PLAYER_INPUT_MSB( IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 168 | 168 | |
| 169 | 169 | |
| 170 | 170 | /* PORTS */ |
| 171 | INPUT_PORTS_START( esh ) | |
| 171 | static INPUT_PORTS_START( esh ) | |
| 172 | 172 | PORT_START_TAG("IN0") |
| 173 | 173 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 174 | 174 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 7012 | 7012 | |
| 7013 | 7013 | |
| 7014 | 7014 | /* YEAR NAME PARENT BIOS MACHINE INPUT INIT MONITOR */ |
| 7015 | GAME | |
| 7015 | GAME | |
| 7016 | 7016 | |
| 7017 | 7017 | /* SNK */ |
| 7018 | GAMEB( 1990, nam1975, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "NAM-1975", 0 ) | |
| 7019 | GAMEB( 1990, bstars, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Baseball Stars Professional", 0 ) | |
| 7020 | GAMEB( 1990, tpgolf, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Top Player's Golf", 0 ) | |
| 7021 | GAMEB( 1990, mahretsu, neogeo, neogeo, neogeo_s, mjneogeo,neogeo, ROT0, "SNK", "Mahjong Kyoretsuden", 0 ) | |
| 7022 | GAMEB( 1990, ridhero, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Riding Hero (set 1)", 0 ) | |
| 7023 | GAMEB( 1990, ridheroh, ridhero, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Riding Hero (set 2)", 0 ) | |
| 7024 | GAMEB( 1991, alpham2, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Alpha Mission II / ASO II - Last Guardian", 0 ) | |
| 7025 | GAMEB( 1990, cyberlip, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Cyber-Lip", 0 ) | |
| 7026 | GAMEB( 1990, superspy, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "The Super Spy", 0 ) | |
| 7027 | GAMEB( 1992, mutnat, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Mutation Nation", 0 ) | |
| 7028 | GAMEB( 1991, kotm, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "King of the Monsters (set 1)", 0 ) | |
| 7029 | GAMEB( 1991, kotmh, kotm, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "King of the Monsters (set 2)", 0 ) | |
| 7030 | GAMEB( 1991, sengoku, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Sengoku / Sengoku Denshou (set 1)", 0 ) | |
| 7031 | GAMEB( 1991, sengokh, sengoku, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Sengoku / Sengoku Denshou (set 2)", 0 ) | |
| 7032 | GAMEB( 1991, burningf, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Burning Fight (set 1)", 0 ) | |
| 7033 | GAMEB( 1991, burningh, burningf, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Burning Fight (set 2)", 0 ) | |
| 7034 | GAMEB( 1990, lbowling, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "League Bowling", 0 ) | |
| 7035 | GAMEB( 1991, gpilots, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Ghost Pilots", 0 ) | |
| 7036 | GAMEB( 1990, joyjoy, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Puzzled / Joy Joy Kid", 0 ) | |
| 7037 | GAMEB( 1991, quizdais, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Quiz Daisousa Sen - The Last Count Down", 0 ) | |
| 7038 | GAMEB( 1992, lresort, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Last Resort", 0 ) | |
| 7039 | GAMEB( 1991, eightman, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK / Pallas", "Eight Man", 0 ) | |
| 7040 | GAMEB( 1991, legendos, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Legend of Success Joe / Ashitano Joe Densetsu", 0 ) | |
| 7041 | GAMEB( 1991, 2020bb, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK / Pallas", "2020 Super Baseball (set 1)", 0 ) | |
| 7042 | GAMEB( 1991, 2020bba, 2020bb, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK / Pallas", "2020 Super Baseball (set 2)", 0 ) | |
| 7043 | GAMEB( 1991, 2020bbh, 2020bb, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK / Pallas", "2020 Super Baseball (set 3)", 0 ) | |
| 7044 | GAMEB( 1991, socbrawl, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Soccer Brawl", 0 ) | |
| 7045 | GAMEB( 1991, fatfury1, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Fatal Fury - King of Fighters / Garou Densetsu - shukumei no tatakai", 0 ) | |
| 7046 | GAMEB( 1991, roboarmy, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Robo Army (set 1)", 0 ) | |
| 7047 | GAMEB( 1991, roboarma, roboarmy, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Robo Army (set 2)", 0 ) | |
| 7048 | GAMEB( 1992, fbfrenzy, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Football Frenzy", 0 ) | |
| 7049 | GAMEB( 1992, kotm2, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "King of the Monsters 2 - The Next Thing", 0 ) | |
| 7050 | GAMEB( 1993, sengoku2, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Sengoku 2 / Sengoku Denshou 2", 0) | |
| 7051 | GAMEB( 1992, bstars2, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Baseball Stars 2", 0 ) | |
| 7052 | GAMEB( 1992, quizdai2, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Quiz Meitantei Neo & Geo - Quiz Daisousa Sen part 2", 0 ) | |
| 7053 | GAMEB( 1993, 3countb, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "3 Count Bout / Fire Suplex", 0 ) | |
| 7054 | GAMEB( 1992, aof, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Art of Fighting / Ryuuko no Ken", 0 ) | |
| 7055 | GAMEB( 1993, samsho, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Samurai Shodown / Samurai Spirits", 0 ) | |
| 7056 | GAMEB( 1994, tophuntr, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Top Hunter - Roddy & Cathy (set 1)", 0 ) | |
| 7057 | GAMEB( 1994, tophunta, tophuntr, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Top Hunter - Roddy & Cathy (set 2)", 0 ) | |
| 7058 | GAMEB( 1992, fatfury2, neogeo, neogeo, neogeo, neogeo, fatfury2, ROT0, "SNK", "Fatal Fury 2 / Garou Densetsu 2 - arata-naru tatakai", 0 ) | |
| 7059 | GAMEB( 1992, ssideki, neogeo, neogeo, neogeo_s, neogeo, fatfury2, ROT0, "SNK", "Super Sidekicks / Tokuten Ou", 0 ) | |
| 7060 | GAMEB( 1994, kof94, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '94", 0 ) | |
| 7061 | GAMEB( 1994, aof2, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Art of Fighting 2 / Ryuuko no Ken 2 (set 1)", 0 ) | |
| 7062 | GAMEB( 1994, aof2a, aof2, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Art of Fighting 2 / Ryuuko no Ken 2 (set 2)", 0 ) | |
| 7063 | GAMEB( 1993, fatfursp, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Fatal Fury Special / Garou Densetsu Special (set 1)", 0 ) | |
| 7064 | GAMEB( 1993, fatfursa, fatfursp, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Fatal Fury Special / Garou Densetsu Special (set 2)", 0 ) | |
| 7065 | GAMEB( 1995, savagere, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Savage Reign / Fu'un Mokushiroku - kakutou sousei", 0 ) | |
| 7066 | GAMEB( 1994, ssideki2, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Super Sidekicks 2 - The World Championship / Tokuten Ou 2 - real fight football", 0 ) | |
| 7067 | GAMEB( 1994, samsho2, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Samurai Shodown II / Shin Samurai Spirits - Haohmaru jigokuhen", 0 ) | |
| 7018 | GAME( 1990, nam1975, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "NAM-1975", 0 ) | |
| 7019 | GAME( 1990, bstars, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Baseball Stars Professional", 0 ) | |
| 7020 | GAME( 1990, tpgolf, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Top Player's Golf", 0 ) | |
| 7021 | GAME( 1990, mahretsu, neogeo, neogeo_s, mjneogeo,neogeo, ROT0, "SNK", "Mahjong Kyoretsuden", 0 ) | |
| 7022 | GAME( 1990, ridhero, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Riding Hero (set 1)", 0 ) | |
| 7023 | GAME( 1990, ridheroh, ridhero, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Riding Hero (set 2)", 0 ) | |
| 7024 | GAME( 1991, alpham2, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Alpha Mission II / ASO II - Last Guardian", 0 ) | |
| 7025 | GAME( 1990, cyberlip, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Cyber-Lip", 0 ) | |
| 7026 | GAME( 1990, superspy, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "The Super Spy", 0 ) | |
| 7027 | GAME( 1992, mutnat, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Mutation Nation", 0 ) | |
| 7028 | GAME( 1991, kotm, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "King of the Monsters (set 1)", 0 ) | |
| 7029 | GAME( 1991, kotmh, kotm, neogeo_s, neogeo, neogeo, ROT0, "SNK", "King of the Monsters (set 2)", 0 ) | |
| 7030 | GAME( 1991, sengoku, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Sengoku / Sengoku Denshou (set 1)", 0 ) | |
| 7031 | GAME( 1991, sengokh, sengoku, neogeo, neogeo, neogeo, ROT0, "SNK", "Sengoku / Sengoku Denshou (set 2)", 0 ) | |
| 7032 | GAME( 1991, burningf, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Burning Fight (set 1)", 0 ) | |
| 7033 | GAME( 1991, burningh, burningf, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Burning Fight (set 2)", 0 ) | |
| 7034 | GAME( 1990, lbowling, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "League Bowling", 0 ) | |
| 7035 | GAME( 1991, gpilots, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Ghost Pilots", 0 ) | |
| 7036 | GAME( 1990, joyjoy, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Puzzled / Joy Joy Kid", 0 ) | |
| 7037 | GAME( 1991, quizdais, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Quiz Daisousa Sen - The Last Count Down", 0 ) | |
| 7038 | GAME( 1992, lresort, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Last Resort", 0 ) | |
| 7039 | GAME( 1991, eightman, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK / Pallas", "Eight Man", 0 ) | |
| 7040 | GAME( 1991, legendos, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Legend of Success Joe / Ashitano Joe Densetsu", 0 ) | |
| 7041 | GAME( 1991, 2020bb, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK / Pallas", "2020 Super Baseball (set 1)", 0 ) | |
| 7042 | GAME( 1991, 2020bba, 2020bb, neogeo_s, neogeo, neogeo, ROT0, "SNK / Pallas", "2020 Super Baseball (set 2)", 0 ) | |
| 7043 | GAME( 1991, 2020bbh, 2020bb, neogeo_s, neogeo, neogeo, ROT0, "SNK / Pallas", "2020 Super Baseball (set 3)", 0 ) | |
| 7044 | GAME( 1991, socbrawl, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Soccer Brawl", 0 ) | |
| 7045 | GAME( 1991, fatfury1, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Fatal Fury - King of Fighters / Garou Densetsu - shukumei no tatakai", 0 ) | |
| 7046 | GAME( 1991, roboarmy, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Robo Army (set 1)", 0 ) | |
| 7047 | GAME( 1991, roboarma, roboarmy, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Robo Army (set 2)", 0 ) | |
| 7048 | GAME( 1992, fbfrenzy, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Football Frenzy", 0 ) | |
| 7049 | GAME( 1992, kotm2, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "King of the Monsters 2 - The Next Thing", 0 ) | |
| 7050 | GAME( 1993, sengoku2, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Sengoku 2 / Sengoku Denshou 2", 0) | |
| 7051 | GAME( 1992, bstars2, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Baseball Stars 2", 0 ) | |
| 7052 | GAME( 1992, quizdai2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Quiz Meitantei Neo & Geo - Quiz Daisousa Sen part 2", 0 ) | |
| 7053 | GAME( 1993, 3countb, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "3 Count Bout / Fire Suplex", 0 ) | |
| 7054 | GAME( 1992, aof, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Art of Fighting / Ryuuko no Ken", 0 ) | |
| 7055 | GAME( 1993, samsho, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Samurai Shodown / Samurai Spirits", 0 ) | |
| 7056 | GAME( 1994, tophuntr, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Top Hunter - Roddy & Cathy (set 1)", 0 ) | |
| 7057 | GAME( 1994, tophunta, tophuntr, neogeo, neogeo, neogeo, ROT0, "SNK", "Top Hunter - Roddy & Cathy (set 2)", 0 ) | |
| 7058 | GAME( 1992, fatfury2, neogeo, neogeo, neogeo, fatfury2, ROT0, "SNK", "Fatal Fury 2 / Garou Densetsu 2 - arata-naru tatakai", 0 ) | |
| 7059 | GAME( 1992, ssideki, neogeo, neogeo_s, neogeo, fatfury2, ROT0, "SNK", "Super Sidekicks / Tokuten Ou", 0 ) | |
| 7060 | GAME( 1994, kof94, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '94", 0 ) | |
| 7061 | GAME( 1994, aof2, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Art of Fighting 2 / Ryuuko no Ken 2 (set 1)", 0 ) | |
| 7062 | GAME( 1994, aof2a, aof2, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Art of Fighting 2 / Ryuuko no Ken 2 (set 2)", 0 ) | |
| 7063 | GAME( 1993, fatfursp, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Fatal Fury Special / Garou Densetsu Special (set 1)", 0 ) | |
| 7064 | GAME( 1993, fatfursa, fatfursp, neogeo, neogeo, neogeo, ROT0, "SNK", "Fatal Fury Special / Garou Densetsu Special (set 2)", 0 ) | |
| 7065 | GAME( 1995, savagere, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Savage Reign / Fu'un Mokushiroku - kakutou sousei", 0 ) | |
| 7066 | GAME( 1994, ssideki2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Super Sidekicks 2 - The World Championship / Tokuten Ou 2 - real fight football", 0 ) | |
| 7067 | GAME( 1994, samsho2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Samurai Shodown II / Shin Samurai Spirits - Haohmaru jigokuhen", 0 ) | |
| 7068 | 7068 | /* 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 */ |
| 7069 | GAMEB( 1995, fatfury3, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Fatal Fury 3 - Road to the Final Victory / Garou Densetsu 3 - haruka-naru tatakai", 0 ) | |
| 7070 | GAMEB( 1995, ssideki3, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Super Sidekicks 3 - The Next Glory / Tokuten Ou 3 - eikoue no michi", 0 ) | |
| 7071 | GAMEB( 1995, kof95, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '95 (set 1)", 0 ) | |
| 7072 | GAMEB( 1995, kof95a, kof95, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '95 (set 2)", 0 ) | |
| 7073 | GAMEB( 1995, samsho3, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Samurai Shodown III / Samurai Spirits - Zankurou Musouken (set 1)", 0 ) | |
| 7074 | GAMEB( 1995, samsho3a, samsho3, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Samurai Shodown III / Samurai Spirits - Zankurou Musouken (set 2)", 0 ) | |
| 7075 | GAMEB( 1995, fswords, samsho3, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Fighters Swords (Korean release of Samurai Shodown III)", 0 ) | |
| 7076 | GAMEB( 1995, rbff1, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Real Bout Fatal Fury / Real Bout Garou Densetsu", 0 ) | |
| 7077 | GAMEB( 1996, aof3, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Art of Fighting 3 - The Path of the Warrior / Art of Fighting - Ryuuko no Ken Gaiden", 0 ) | |
| 7078 | GAMEB( 1996, aof3k, aof3, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Art of Fighting 3 - The Path of the Warrior (Korean release)", 0 ) // no Japanese title / mode | |
| 7079 | GAMEB( 1996, kof96, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '96 (set 1)", 0 ) | |
| 7080 | GAMEB( 1996, kof96h, kof96, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '96 (set 2)", 0 ) | |
| 7081 | GAMEB( 1996, ssideki4, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Ultimate 11 - The SNK Football Championship / Tokuten Ou - Honoo no Libero, The", 0 ) | |
| 7082 | GAMEB( 1996, kizuna, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Kizuna Encounter - Super Tag Battle / Fu'un Super Tag Battle", 0 ) | |
| 7083 | GAMEB( 1996, samsho4, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Samurai Shodown IV - Amakusa's Revenge / Samurai Spirits - Amakusa Kourin", 0 ) | |
| 7069 | GAME( 1995, fatfury3, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Fatal Fury 3 - Road to the Final Victory / Garou Densetsu 3 - haruka-naru tatakai", 0 ) | |
| 7070 | GAME( 1995, ssideki3, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Super Sidekicks 3 - The Next Glory / Tokuten Ou 3 - eikoue no michi", 0 ) | |
| 7071 | GAME( 1995, kof95, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '95 (set 1)", 0 ) | |
| 7072 | GAME( 1995, kof95a, kof95, neogeo_s, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '95 (set 2)", 0 ) | |
| 7073 | GAME( 1995, samsho3, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Samurai Shodown III / Samurai Spirits - Zankurou Musouken (set 1)", 0 ) | |
| 7074 | GAME( 1995, samsho3a, samsho3, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Samurai Shodown III / Samurai Spirits - Zankurou Musouken (set 2)", 0 ) | |
| 7075 | GAME( 1995, fswords, samsho3, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Fighters Swords (Korean release of Samurai Shodown III)", 0 ) | |
| 7076 | GAME( 1995, rbff1, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Real Bout Fatal Fury / Real Bout Garou Densetsu", 0 ) | |
| 7077 | GAME( 1996, aof3, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Art of Fighting 3 - The Path of the Warrior / Art of Fighting - Ryuuko no Ken Gaiden", 0 ) | |
| 7078 | GAME( 1996, aof3k, aof3, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Art of Fighting 3 - The Path of the Warrior (Korean release)", 0 ) // no Japanese title / mode | |
| 7079 | GAME( 1996, kof96, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '96 (set 1)", 0 ) | |
| 7080 | GAME( 1996, kof96h, kof96, neogeo_s, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '96 (set 2)", 0 ) | |
| 7081 | GAME( 1996, ssideki4, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Ultimate 11 - The SNK Football Championship / Tokuten Ou - Honoo no Libero, The", 0 ) | |
| 7082 | GAME( 1996, kizuna, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Kizuna Encounter - Super Tag Battle / Fu'un Super Tag Battle", 0 ) | |
| 7083 | GAME( 1996, samsho4, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Samurai Shodown IV - Amakusa's Revenge / Samurai Spirits - Amakusa Kourin", 0 ) | |
| 7084 | 7084 | /* 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 */ |
| 7085 | GAMEB( 1996, rbffspec, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Real Bout Fatal Fury Special / Real Bout Garou Densetsu Special", 0 ) | |
| 7086 | GAMEB( 1997, kof97, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '97 (set 1)", 0 ) | |
| 7087 | GAMEB( 1997, kof97a, kof97, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '97 (set 2)", 0 ) | |
| 7088 | GAMEB( 1997, kof97pls, kof97, neogeo, neogeo_s, neogeo, neogeo, ROT0, "bootleg", "The King of Fighters '97 Plus (bootleg)", 0 ) | |
| 7089 | GAMEB( 1997, kog, kof97, neogeo, neogeo_s, kog, kog, ROT0, "bootleg", "King of Gladiator (The King of Fighters '97 bootleg)", GAME_NOT_WORKING ) // protected bootleg | |
| 7090 | GAMEB( 1997, lastblad, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Last Blade / Bakumatsu Roman - Gekka no Kenshi, The (set 1)", 0 ) | |
| 7091 | GAMEB( 1997, lastbldh, lastblad, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Last Blade / Bakumatsu Roman - Gekka no Kenshi, The (set 2)", 0 ) | |
| 7092 | GAMEB( 1997, lastsold, lastblad, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "The Last Soldier (Korean release of The Last Blade)", 0 ) | |
| 7093 | GAMEB( 1997, irrmaze, neogeo, neogeo, neogeo_s, irrmaze, neogeo, ROT0, "SNK / Saurus", "The Irritating Maze / Ultra Denryu Iraira Bou", 0 ) | |
| 7094 | GAMEB( 1998, rbff2, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Real Bout Fatal Fury 2 - The Newcomers / Real Bout Garou Densetsu 2 - the newcomers (set 1)", 0 ) | |
| 7095 | GAMEB( 1998, rbff2h, rbff2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Real Bout Fatal Fury 2 - The Newcomers / Real Bout Garou Densetsu 2 - the newcomers (set 2)", 0 ) | |
| 7096 | GAMEB( 1998, rbff2k, rbff2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Real Bout Fatal Fury 2 - The Newcomers (Korean release)", 0 ) // no Japanese title / mode | |
| 7097 | GAMEB( 1998, mslug2, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Metal Slug 2 - Super Vehicle-001/II", 0 ) | |
| 7098 | GAMEB( 1998, kof98, neogeo, neogeo, neogeo_s, neogeo, kof98, ROT0, "SNK", "The King of Fighters '98 - The Slugfest / King of Fighters '98 - dream match never ends", 0 ) | |
| 7099 | GAMEB( 1998, kof98k, kof98, neogeo, neogeo_s, neogeo, kof98, ROT0, "SNK", "The King of Fighters '98 - The Slugfest / King of Fighters '98 - dream match never ends (Korean board)", 0 ) | |
| 7100 | GAMEB( 1998, kof98n, kof98, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '98 - The Slugfest / King of Fighters '98 - dream match never ends (not encrypted)", 0 ) | |
| 7101 | GAMEB( 1998, lastbld2, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Last Blade 2 / Bakumatsu Roman - Dai Ni Maku Gekka no Kenshi, The", 0 ) | |
| 7102 | GAMEB( 1998, neocup98, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Neo-Geo Cup '98 - The Road to the Victory", 0 ) | |
| 7103 | GAMEB( 1999, mslugx, neogeo, neogeo, neogeo_s, neogeo, mslugx, ROT0, "SNK", "Metal Slug X - Super Vehicle-001", 0 ) | |
| 7104 | GAMEB( 1999, kof99, neogeo, neogeo, neogeo_s, neogeo, kof99, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (set 1)" , 0) /* Encrypted Code & GFX */ | |
| 7105 | GAMEB( 1999, kof99a, kof99, neogeo, neogeo_s, neogeo, kof99, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (set 2)" , 0) /* Encrypted Code & GFX, crashes going into attract demo */ | |
| 7106 | GAMEB( 1999, kof99e, kof99, neogeo, neogeo_s, neogeo, kof99, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (earlier)" , 0) /* Encrypted Code & GFX */ | |
| 7107 | GAMEB( 1999, kof99n, kof99, neogeo, neogeo_s, neogeo, kof99n, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (not encrypted)" , 0) /* Encrypted GFX */ | |
| 7108 | GAMEB( 1999, kof99p, kof99, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (prototype)", 0 ) | |
| 7109 | GAMEB( 1999, garou, neogeo, neogeo, neogeo, neogeo, garou, ROT0, "SNK", "Garou - Mark of the Wolves (set 1)" , 0) /* Encrypted Code & GFX */ | |
| 7110 | GAMEB( 1999, garouo, garou, neogeo, neogeo, neogeo, garouo, ROT0, "SNK", "Garou - Mark of the Wolves (set 2)" , 0) /* Encrypted Code & GFX */ | |
| 7111 | GAMEB( 1999, garoup, garou, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Garou - Mark of the Wolves (prototype)", 0 ) | |
| 7112 | GAMEB( 1999, garoubl, garou, neogeo, neogeo, neogeo, garoubl, ROT0, "bootleg", "Garou - Mark of the Wolves (bootleg)", 0 ) /* Bootleg of garoup */ | |
| 7113 | GAMEB( 2000, mslug3, neogeo, neogeo, neogeo_s, neogeo, mslug3, ROT0, "SNK", "Metal Slug 3" , 0) /* Encrypted Code & GFX */ | |
| 7114 | GAMEB( 2000, mslug3n, mslug3, neogeo, neogeo_s, neogeo, mslug3n, ROT0, "SNK", "Metal Slug 3 (not encrypted)" , 0) /* Encrypted GFX */ | |
| 7115 | GAMEB( 2000, mslug3b6, mslug3, neogeo, 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 ;-) */ | |
| 7116 | GAMEB( 2000, kof2000, neogeo, neogeo, neogeo_s, neogeo, kof2000, ROT0, "SNK", "The King of Fighters 2000" , 0) /* Encrypted Code & GFX */ | |
| 7117 | GAMEB( 2000, kof2000n, kof2000, neogeo, neogeo_s, neogeo, kof2000n, ROT0, "SNK", "The King of Fighters 2000 (not encrypted)" , 0) /* Encrypted GFX */ | |
| 7118 | GAMEB( 2001, zupapa, neogeo, neogeo, neogeo_s, neogeo, zupapa, ROT0, "SNK", "Zupapa!" , 0) /* Encrypted GFX */ | |
| 7119 | GAMEB( 2001, sengoku3, neogeo, neogeo, neogeo, neogeo, sengoku3, ROT0, "SNK", "Sengoku 3" , 0) /* Encrypted GFX */ | |
| 7120 | GAMEB( 2001, kof2001, neogeo, neogeo, neogeo_s, neogeo, kof2001, ROT0, "Eolith / SNK", "The King of Fighters 2001 (set 1)" , 0) /* Encrypted GFX */ | |
| 7121 | GAMEB( 2001, kof2001h, kof2001, neogeo, neogeo_s, neogeo, kof2001, ROT0, "Eolith / SNK", "The King of Fighters 2001 (set 2)" , 0) /* Encrypted GFX */ | |
| 7122 | GAMEB( 2003, cthd2003, kof2001, neogeo, neogeo_s, neogeo, cthd2003, ROT0, "bootleg", "Crouching Tiger Hidden Dragon 2003 (The King of Fighters 2001 bootleg)", 0 ) /* Protected Hack / Bootleg of kof2001 */ | |
| 7123 | GAMEB( 2003, ct2k3sp, kof2001, neogeo, neogeo_s, neogeo, ct2k3sp, ROT0, "bootleg", "Crouching Tiger Hidden Dragon 2003 Super Plus (The King of Fighters 2001 bootleg)", 0 ) /* Protected Hack / Bootleg of kof2001 */ | |
| 7124 | GAMEB( 2003, ct2k3sa, kof2001, neogeo, neogeo_s, neogeo, ct2k3sa, ROT0, "bootleg", "Crouching Tiger Hidden Dragon 2003 Super Plus alternate (The King of Fighters 2001 bootleg)", 0 ) /* Hack / Bootleg of kof2001 */ | |
| 7125 | GAMEB( 2002, kof2002, neogeo, neogeo, neogeo_s, neogeo, kof2002, ROT0, "Eolith / Playmore", "The King of Fighters 2002" , 0) /* Encrypted GFX */ | |
| 7126 | GAMEB( 2002, kf2k2pls, kof2002, neogeo, neogeo_s, neogeo, kf2k2pls, ROT0, "bootleg", "The King of Fighters 2002 Plus (set 1, bootleg)" , 0) /* Encrypted GFX */ | |
| 7127 | GAMEB( 2002, kf2k2pla, kof2002, neogeo, neogeo_s, neogeo, kf2k2pls, ROT0, "bootleg", "The King of Fighters 2002 Plus (set 2, bootleg)" , 0) /* Encrypted GFX */ | |
| 7128 | GAMEB( 2002, kf2k2mp, kof2002, neogeo, neogeo_s, neogeo, kf2k2mp, ROT0, "bootleg", "The King of Fighters 2002 Magic Plus (bootleg)" , 0) /* Encrypted GFX */ | |
| 7129 | GAMEB( 2002, kf2k2mp2, kof2002, neogeo, neogeo_s, neogeo, kof2km2, ROT0, "bootleg", "The King of Fighters 2002 Magic Plus II (bootleg)" , 0) /* Encrypted GFX */ | |
| 7130 | GAMEB( 2002, kof10th, kof2002, neogeo, neogeo_s, neogeo, kof10th, ROT0, "bootleg", "The King of Fighters 10th Anniversary (The King of Fighters 2002 bootleg)", 0 ) // fake SNK copyright | |
| 7131 | GAMEB( 2004, kf2k5uni, kof2002, neogeo, neogeo_s, neogeo, kf2k5uni, ROT0, "bootleg", "The King of Fighters 10th Anniversary 2005 Unique (The King of Fighters 2002 bootleg)", 0 ) // fake SNK copyright | |
| 7132 | GAMEB( 2005, kf10thep, kof2002, neogeo, neogeo_s, neogeo, kf10thep, ROT0, "bootleg", "The King of Fighters 10th Anniversary Extra Plus (The King of Fighters 2002 bootleg)", 0 ) // fake SNK copyright | |
| 7133 | GAMEB( 2004, kof2k4se, kof2002, neogeo, neogeo_s, neogeo, kof2k4se, ROT0, "bootleg", "The King of Fighters Special Edition 2004 (The King of Fighters 2002 bootleg)", 0 ) /* Hack / Bootleg of kof2002 */ | |
| 7134 | GAMEB( 2003, mslug5, neogeo, neogeo, neogeo_s, neogeo, mslug5, ROT0, "SNK Playmore", "Metal Slug 5", 0 ) | |
| 7085 | GAME( 1996, rbffspec, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Real Bout Fatal Fury Special / Real Bout Garou Densetsu Special", 0 ) | |
| 7086 | GAME( 1997, kof97, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '97 (set 1)", 0 ) | |
| 7087 | GAME( 1997, kof97a, kof97, neogeo_s, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '97 (set 2)", 0 ) | |
| 7088 | GAME( 1997, kof97pls, kof97, neogeo_s, neogeo, neogeo, ROT0, "bootleg", "The King of Fighters '97 Plus (bootleg)", 0 ) | |
| 7089 | GAME( 1997, kog, kof97, neogeo_s, kog, kog, ROT0, "bootleg", "King of Gladiator (The King of Fighters '97 bootleg)", GAME_NOT_WORKING ) // protected bootleg | |
| 7090 | GAME( 1997, lastblad, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Last Blade / Bakumatsu Roman - Gekka no Kenshi, The (set 1)", 0 ) | |
| 7091 | GAME( 1997, lastbldh, lastblad, neogeo, neogeo, neogeo, ROT0, "SNK", "Last Blade / Bakumatsu Roman - Gekka no Kenshi, The (set 2)", 0 ) | |
| 7092 | GAME( 1997, lastsold, lastblad, neogeo, neogeo, neogeo, ROT0, "SNK", "The Last Soldier (Korean release of The Last Blade)", 0 ) | |
| 7093 | GAME( 1997, irrmaze, neogeo, neogeo_s, irrmaze, neogeo, ROT0, "SNK / Saurus", "The Irritating Maze / Ultra Denryu Iraira Bou", 0 ) | |
| 7094 | 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 ) | |
| 7095 | 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 ) | |
| 7096 | GAME( 1998, rbff2k, rbff2, neogeo, neogeo, neogeo, ROT0, "SNK", "Real Bout Fatal Fury 2 - The Newcomers (Korean release)", 0 ) // no Japanese title / mode | |
| 7097 | GAME( 1998, mslug2, neogeo, neogeo_s, neogeo, neogeo, ROT0, "SNK", "Metal Slug 2 - Super Vehicle-001/II", 0 ) | |
| 7098 | GAME( 1998, kof98, neogeo, neogeo_s, neogeo, kof98, ROT0, "SNK", "The King of Fighters '98 - The Slugfest / King of Fighters '98 - dream match never ends", 0 ) | |
| 7099 | GAME( 1998, kof98k, kof98, neogeo_s, neogeo, kof98, ROT0, "SNK", "The King of Fighters '98 - The Slugfest / King of Fighters '98 - dream match never ends (Korean board)", 0 ) | |
| 7100 | GAME( 1998, kof98n, kof98, neogeo_s, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '98 - The Slugfest / King of Fighters '98 - dream match never ends (not encrypted)", 0 ) | |
| 7101 | GAME( 1998, lastbld2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Last Blade 2 / Bakumatsu Roman - Dai Ni Maku Gekka no Kenshi, The", 0 ) | |
| 7102 | GAME( 1998, neocup98, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Neo-Geo Cup '98 - The Road to the Victory", 0 ) | |
| 7103 | GAME( 1999, mslugx, neogeo, neogeo_s, neogeo, mslugx, ROT0, "SNK", "Metal Slug X - Super Vehicle-001", 0 ) | |
| 7104 | GAME( 1999, kof99, neogeo, neogeo_s, neogeo, kof99, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (set 1)" , 0) /* Encrypted Code & GFX */ | |
| 7105 | GAME( 1999, kof99a, kof99, neogeo_s, neogeo, kof99, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (set 2)" , 0) /* Encrypted Code & GFX, crashes going into attract demo */ | |
| 7106 | GAME( 1999, kof99e, kof99, neogeo_s, neogeo, kof99, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (earlier)" , 0) /* Encrypted Code & GFX */ | |
| 7107 | GAME( 1999, kof99n, kof99, neogeo_s, neogeo, kof99n, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (not encrypted)" , 0) /* Encrypted GFX */ | |
| 7108 | GAME( 1999, kof99p, kof99, neogeo_s, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (prototype)", 0 ) | |
| 7109 | GAME( 1999, garou, neogeo, neogeo, neogeo, garou, ROT0, "SNK", "Garou - Mark of the Wolves (set 1)" , 0) /* Encrypted Code & GFX */ | |
| 7110 | GAME( 1999, garouo, garou, neogeo, neogeo, garouo, ROT0, "SNK", "Garou - Mark of the Wolves (set 2)" , 0) /* Encrypted Code & GFX */ | |
| 7111 | GAME( 1999, garoup, garou, neogeo, neogeo, neogeo, ROT0, "SNK", "Garou - Mark of the Wolves (prototype)", 0 ) | |
| 7112 | GAME( 1999, garoubl, garou, neogeo, neogeo, garoubl, ROT0, "bootleg", "Garou - Mark of the Wolves (bootleg)", 0 ) /* Bootleg of garoup */ | |
| 7113 | GAME( 2000, mslug3, neogeo, neogeo_s, neogeo, mslug3, ROT0, "SNK", "Metal Slug 3" , 0) /* Encrypted Code & GFX */ | |
| 7114 | GAME( 2000, mslug3n, mslug3, neogeo_s, neogeo, mslug3n, ROT0, "SNK", "Metal Slug 3 (not encrypted)" , 0) /* Encrypted GFX */ | |
| 7115 | 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 ;-) */ | |
| 7116 | GAME( 2000, kof2000, neogeo, neogeo_s, neogeo, kof2000, ROT0, "SNK", "The King of Fighters 2000" , 0) /* Encrypted Code & GFX */ | |
| 7117 | GAME( 2000, kof2000n, kof2000, neogeo_s, neogeo, kof2000n, ROT0, "SNK", "The King of Fighters 2000 (not encrypted)" , 0) /* Encrypted GFX */ | |
| 7118 | GAME( 2001, zupapa, neogeo, neogeo_s, neogeo, zupapa, ROT0, "SNK", "Zupapa!" , 0) /* Encrypted GFX */ | |
| 7119 | GAME( 2001, sengoku3, neogeo, neogeo, neogeo, sengoku3, ROT0, "SNK", "Sengoku 3" , 0) /* Encrypted GFX */ | |
| 7120 | GAME( 2001, kof2001, neogeo, neogeo_s, neogeo, kof2001, ROT0, "Eolith / SNK", "The King of Fighters 2001 (set 1)" , 0) /* Encrypted GFX */ | |
| 7121 | GAME( 2001, kof2001h, kof2001, neogeo_s, neogeo, kof2001, ROT0, "Eolith / SNK", "The King of Fighters 2001 (set 2)" , 0) /* Encrypted GFX */ | |
| 7122 | GAME( 2003, cthd2003, kof2001, neogeo_s, neogeo, cthd2003, ROT0, "bootleg", "Crouching Tiger Hidden Dragon 2003 (The King of Fighters 2001 bootleg)", 0 ) /* Protected Hack / Bootleg of kof2001 */ | |
| 7123 | GAME( 2003, ct2k3sp, kof2001, neogeo_s, neogeo, ct2k3sp, ROT0, "bootleg", "Crouching Tiger Hidden Dragon 2003 Super Plus (The King of Fighters 2001 bootleg)", 0 ) /* Protected Hack / Bootleg of kof2001 */ | |
| 7124 | GAME( 2003, ct2k3sa, kof2001, neogeo_s, neogeo, ct2k3sa, ROT0, "bootleg", "Crouching Tiger Hidden Dragon 2003 Super Plus alternate (The King of Fighters 2001 bootleg)", 0 ) /* Hack / Bootleg of kof2001 */ | |
| 7125 | GAME( 2002, kof2002, neogeo, neogeo_s, neogeo, kof2002, ROT0, "Eolith / Playmore", "The King of Fighters 2002" , 0) /* Encrypted GFX */ | |
| 7126 | GAME( 2002, kf2k2pls, kof2002, neogeo_s, neogeo, kf2k2pls, ROT0, "bootleg", "The King of Fighters 2002 Plus (set 1, bootleg)" , 0) /* Encrypted GFX */ | |
| 7127 | GAME( 2002, kf2k2pla, kof2002, neogeo_s, neogeo, kf2k2pls, ROT0, "bootleg", "The King of Fighters 2002 Plus (set 2, bootleg)" , 0) /* Encrypted GFX */ | |
| 7128 | GAME( 2002, kf2k2mp, kof2002, neogeo_s, neogeo, kf2k2mp, ROT0, "bootleg", "The King of Fighters 2002 Magic Plus (bootleg)" , 0) /* Encrypted GFX */ | |
| 7129 | GAME( 2002, kf2k2mp2, kof2002, neogeo_s, neogeo, kof2km2, ROT0, "bootleg", "The King of Fighters 2002 Magic Plus II (bootleg)" , 0) /* Encrypted GFX */ | |
| 7130 | GAME( 2002, kof10th, kof2002, neogeo_s, neogeo, kof10th, ROT0, "bootleg", "The King of Fighters 10th Anniversary (The King of Fighters 2002 bootleg)", 0 ) // fake SNK copyright | |
| 7131 | GAME( 2004, kf2k5uni, kof2002, neogeo_s, neogeo, kf2k5uni, ROT0, "bootleg", "The King of Fighters 10th Anniversary 2005 Unique (The King of Fighters 2002 bootleg)", 0 ) // fake SNK copyright | |
| 7132 | GAME( 2005, kf10thep, kof2002, neogeo_s, neogeo, kf10thep, ROT0, "bootleg", "The King of Fighters 10th Anniversary Extra Plus (The King of Fighters 2002 bootleg)", 0 ) // fake SNK copyright | |
| 7133 | GAME( 2004, kof2k4se, kof2002, neogeo_s, neogeo, kof2k4se, ROT0, "bootleg", "The King of Fighters Special Edition 2004 (The King of Fighters 2002 bootleg)", 0 ) /* Hack / Bootleg of kof2002 */ | |
| 7134 | GAME( 2003, mslug5, neogeo, neogeo_s, neogeo, mslug5, ROT0, "SNK Playmore", "Metal Slug 5", 0 ) | |
| 7135 | 7135 | GAME ( 2003, ms5pcb, 0, neogeo_s, neogeo, ms5pcb, ROT0, "SNK Playmore", "Metal Slug 5 (JAMMA PCB)", 0 ) |
| 7136 | GAME | |
| 7136 | GAME | |
| 7137 | 7137 | GAME ( 2003, svcpcb, 0, neogeo_s, svcpcb, svcpcb, ROT0, "Playmore", "SNK vs. CAPCOM SVC CHAOS (JAMMA PCB)", 0 ) // not a clone of neogeo because it's NOT a neogeo cart. |
| 7138 | 7138 | GAME ( 2003, svcpcba, svcpcb, neogeo_s, svcpcb, svcpcb, ROT0, "Playmore", "SNK vs. CAPCOM SVC CHAOS (JAMMA PCB, set 2)" , 0 ) /* Encrypted Code */ |
| 7139 | GAMEB( 2003, svc, neogeo, neogeo, neogeo_s, neogeo, svc, ROT0, "Playmore", "SNK vs. CAPCOM SVC CHAOS", 0 ) | |
| 7140 | GAMEB( 2003, svcboot, svc, neogeo, neogeo_s, neogeo, svcboot, ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS (bootleg)",0 ) | |
| 7141 | GAMEB( 2003, svcplus, svc, neogeo, neogeo_s, neogeo, svcplus, ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS Plus (set 1, bootleg)",0 ) | |
| 7142 | GAMEB( 2003, svcplusa, svc, neogeo, neogeo_s, neogeo, svcplusa, ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS Plus (set 2, bootleg)",0 ) | |
| 7143 | GAMEB( 2003, svcsplus, svc, neogeo, neogeo_s, neogeo, svcsplus, ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS Super Plus (bootleg)",0 ) | |
| 7144 | GAMEB( 2003, samsho5, neogeo, neogeo, neogeo_s, neogeo, samsho5, ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V / Samurai Spirits Zero (set 1)", 0 ) | |
| 7145 | GAMEB( 2003, samsho5h, samsho5, neogeo, neogeo_s, neogeo, samsho5, ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V / Samurai Spirits Zero (set 2)", 0 ) | |
| 7146 | GAMEB( 2003, samsho5b, samsho5, neogeo, neogeo_s, neogeo, samsho5b, ROT0, "bootleg", "Samurai Shodown V / Samurai Spirits Zero (bootleg)", 0 ) // different program scrambling | |
| 7139 | GAME( 2003, svc, neogeo, neogeo_s, neogeo, svc, ROT0, "Playmore", "SNK vs. CAPCOM SVC CHAOS", 0 ) | |
| 7140 | GAME( 2003, svcboot, svc, neogeo_s, neogeo, svcboot, ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS (bootleg)",0 ) | |
| 7141 | GAME( 2003, svcplus, svc, neogeo_s, neogeo, svcplus, ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS Plus (set 1, bootleg)",0 ) | |
| 7142 | GAME( 2003, svcplusa, svc, neogeo_s, neogeo, svcplusa, ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS Plus (set 2, bootleg)",0 ) | |
| 7143 | GAME( 2003, svcsplus, svc, neogeo_s, neogeo, svcsplus, ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS Super Plus (bootleg)",0 ) | |
| 7144 | GAME( 2003, samsho5, neogeo, neogeo_s, neogeo, samsho5, ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V / Samurai Spirits Zero (set 1)", 0 ) | |
| 7145 | GAME( 2003, samsho5h, samsho5, neogeo_s, neogeo, samsho5, ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V / Samurai Spirits Zero (set 2)", 0 ) | |
| 7146 | GAME( 2003, samsho5b, samsho5, neogeo_s, neogeo, samsho5b, ROT0, "bootleg", "Samurai Shodown V / Samurai Spirits Zero (bootleg)", 0 ) // different program scrambling | |
| 7147 | 7147 | GAME ( 2003, kf2k3pcb, 0, neogeo_s, 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. |
| 7148 | GAMEB( 2003, kof2003, neogeo, neogeo, neogeo_s, neogeo, kof2003, ROT0, "SNK Playmore", "The King of Fighters 2003 (World / US, MVS)", 0 ) | |
| 7149 | GAMEB( 2003, kf2k3bl, kof2003, neogeo, neogeo_s, 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?) | |
| 7150 | GAMEB( 2003, kf2k3bla, kof2003, neogeo, neogeo_s, 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 | |
| 7151 | GAMEB( 2003, kf2k3pl, kof2003, neogeo, neogeo_s, 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 | |
| 7152 | GAMEB( 2003, kf2k3upl, kof2003, neogeo, neogeo_s, 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 | |
| 7153 | GAMEB( 2003, samsh5sp, neogeo, neogeo, neogeo_s, neogeo, samsh5sp, ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V Special / Samurai Spirits Zero Special (set 1, uncensored)", 0 ) | |
| 7154 | GAMEB( 2003, samsh5sh, samsh5sp, neogeo, neogeo_s, neogeo, samsh5sp, ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V Special / Samurai Spirits Zero Special (set 2, censored)", 0 ) | |
| 7155 | GAMEB( 2003, samsh5sn, samsh5sp, neogeo, neogeo_s, neogeo, samsh5sp, ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V Special / Samurai Spirits Zero Special (set 3, less censored)", 0 ) | |
| 7148 | GAME( 2003, kof2003, neogeo, neogeo_s, neogeo, kof2003, ROT0, "SNK Playmore", "The King of Fighters 2003 (World / US, MVS)", 0 ) | |
| 7149 | GAME( 2003, kf2k3bl, kof2003, neogeo_s, 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?) | |
| 7150 | GAME( 2003, kf2k3bla, kof2003, neogeo_s, 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 | |
| 7151 | GAME( 2003, kf2k3pl, kof2003, neogeo_s, 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 | |
| 7152 | GAME( 2003, kf2k3upl, kof2003, neogeo_s, 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 | |
| 7153 | GAME( 2003, samsh5sp, neogeo, neogeo_s, neogeo, samsh5sp, ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V Special / Samurai Spirits Zero Special (set 1, uncensored)", 0 ) | |
| 7154 | GAME( 2003, samsh5sh, samsh5sp, neogeo_s, neogeo, samsh5sp, ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V Special / Samurai Spirits Zero Special (set 2, censored)", 0 ) | |
| 7155 | GAME( 2003, samsh5sn, samsh5sp, neogeo_s, neogeo, samsh5sp, ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V Special / Samurai Spirits Zero Special (set 3, less censored)", 0 ) | |
| 7156 | 7156 | |
| 7157 | 7157 | /* there are other bootlegs kof2002b etc. kof96ep, matrimbl?, kf2k1pls -- work out which should be supported */ |
| 7158 | 7158 | |
| 7159 | 7159 | /* Alpha Denshi Co. / ADK (changed name in 1993) */ |
| 7160 | GAMEB( 1990, maglord, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Magician Lord (set 1)", 0 ) | |
| 7161 | GAMEB( 1990, maglordh, maglord, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Magician Lord (set 2)", 0 ) | |
| 7162 | GAMEB( 1990, ncombat, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Ninja Combat (set 1)", 0 ) | |
| 7163 | GAMEB( 1990, ncombath, ncombat, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Ninja Combat (set 2)", 0 ) | |
| 7164 | GAMEB( 1990, bjourney, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Blue's Journey / Raguy", 0 ) | |
| 7165 | GAMEB( 1991, crsword, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Crossed Swords", 0 ) | |
| 7166 | GAMEB( 1991, trally, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Thrash Rally", 0 ) | |
| 7167 | GAMEB( 1992, ncommand, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Ninja Commando", 0 ) | |
| 7168 | GAMEB( 1992, wh1, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "World Heroes (set 1)", 0 ) | |
| 7169 | GAMEB( 1992, wh1h, wh1, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "World Heroes (set 2)", 0 ) | |
| 7170 | GAMEB( 1992, wh1ha, wh1, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "World Heroes (set 3)", 0 ) | |
| 7171 | GAMEB( 1993, wh2, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "ADK", "World Heroes 2", 0 ) | |
| 7172 | GAMEB( 1994, wh2j, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "ADK / SNK", "World Heroes 2 Jet (set 1)", 0 ) | |
| 7173 | GAMEB( 1994, wh2jh, wh2j, neogeo, neogeo_s, neogeo, neogeo, ROT0, "ADK / SNK", "World Heroes 2 Jet (set 2)", 0 ) | |
| 7174 | GAMEB( 1994, aodk, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "ADK / SNK", "Aggressors of Dark Kombat / Tsuukai GANGAN Koushinkyoku", 0 ) | |
| 7175 | GAMEB( 1995, whp, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "ADK / SNK", "World Heroes Perfect", 0 ) | |
| 7176 | GAMEB( 1995, mosyougi, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "ADK / SNK", "Syougi No Tatsujin - Master of Syougi", 0 ) | |
| 7177 | GAMEB( 1996, overtop, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "ADK", "Over Top", 0 ) | |
| 7178 | GAMEB( 1996, ninjamas, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "ADK / SNK", "Ninja Master's - haoh-ninpo-cho", 0 ) | |
| 7179 | GAMEB( 1996, twinspri, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "ADK", "Twinkle Star Sprites", 0 ) | |
| 7180 | GAMEB( 1996, zintrckb, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "hack / bootleg", "Zintrick / Oshidashi Zentrix (hack / bootleg)", 0 ) | |
| 7160 | GAME( 1990, maglord, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Magician Lord (set 1)", 0 ) | |
| 7161 | GAME( 1990, maglordh, maglord, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Magician Lord (set 2)", 0 ) | |
| 7162 | GAME( 1990, ncombat, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Ninja Combat (set 1)", 0 ) | |
| 7163 | GAME( 1990, ncombath, ncombat, neogeo_s, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Ninja Combat (set 2)", 0 ) | |
| 7164 | GAME( 1990, bjourney, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Blue's Journey / Raguy", 0 ) | |
| 7165 | GAME( 1991, crsword, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Crossed Swords", 0 ) | |
| 7166 | GAME( 1991, trally, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Thrash Rally", 0 ) | |
| 7167 | GAME( 1992, ncommand, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "Ninja Commando", 0 ) | |
| 7168 | GAME( 1992, wh1, neogeo, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "World Heroes (set 1)", 0 ) | |
| 7169 | GAME( 1992, wh1h, wh1, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "World Heroes (set 2)", 0 ) | |
| 7170 | GAME( 1992, wh1ha, wh1, neogeo, neogeo, neogeo, ROT0, "Alpha Denshi Co.", "World Heroes (set 3)", 0 ) | |
| 7171 | GAME( 1993, wh2, neogeo, neogeo_s, neogeo, neogeo, ROT0, "ADK", "World Heroes 2", 0 ) | |
| 7172 | GAME( 1994, wh2j, neogeo, neogeo_s, neogeo, neogeo, ROT0, "ADK / SNK", "World Heroes 2 Jet (set 1)", 0 ) | |
| 7173 | GAME( 1994, wh2jh, wh2j, neogeo_s, neogeo, neogeo, ROT0, "ADK / SNK", "World Heroes 2 Jet (set 2)", 0 ) | |
| 7174 | GAME( 1994, aodk, neogeo, neogeo_s, neogeo, neogeo, ROT0, "ADK / SNK", "Aggressors of Dark Kombat / Tsuukai GANGAN Koushinkyoku", 0 ) | |
| 7175 | GAME( 1995, whp, neogeo, neogeo, neogeo, neogeo, ROT0, "ADK / SNK", "World Heroes Perfect", 0 ) | |
| 7176 | GAME( 1995, mosyougi, neogeo, neogeo_s, neogeo, neogeo, ROT0, "ADK / SNK", "Syougi No Tatsujin - Master of Syougi", 0 ) | |
| 7177 | GAME( 1996, overtop, neogeo, neogeo_s, neogeo, neogeo, ROT0, "ADK", "Over Top", 0 ) | |
| 7178 | GAME( 1996, ninjamas, neogeo, neogeo, neogeo, neogeo, ROT0, "ADK / SNK", "Ninja Master's - haoh-ninpo-cho", 0 ) | |
| 7179 | GAME( 1996, twinspri, neogeo, neogeo_s, neogeo, neogeo, ROT0, "ADK", "Twinkle Star Sprites", 0 ) | |
| 7180 | GAME( 1996, zintrckb, neogeo, neogeo_s, neogeo, neogeo, ROT0, "hack / bootleg", "Zintrick / Oshidashi Zentrix (hack / bootleg)", 0 ) | |
| 7181 | 7181 | |
| 7182 | 7182 | /* Aicom */ |
| 7183 | GAMEB( 1994, janshin, neogeo, neogeo, neogeo, mjneogeo,neogeo, ROT0, "Aicom", "Jyanshin Densetsu - Quest of Jongmaster", 0 ) | |
| 7184 | GAMEB( 1995, pulstar, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "Aicom", "Pulstar", 0 ) | |
| 7183 | GAME( 1994, janshin, neogeo, neogeo, mjneogeo,neogeo, ROT0, "Aicom", "Jyanshin Densetsu - Quest of Jongmaster", 0 ) | |
| 7184 | GAME( 1995, pulstar, neogeo, neogeo, neogeo, neogeo, ROT0, "Aicom", "Pulstar", 0 ) | |
| 7185 | 7185 | |
| 7186 | 7186 | /* Data East Corporation */ |
| 7187 | GAMEB( 1993, spinmast, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Data East Corporation", "Spin Master / Miracle Adventure", 0 ) | |
| 7188 | GAMEB( 1994, wjammers, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Data East Corporation", "Windjammers / Flying Power Disc", 0 ) | |
| 7189 | GAMEB( 1994, karnovr, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Data East Corporation", "Karnov's Revenge / Fighter's History Dynamite", 0 ) | |
| 7190 | GAMEB( 1994, strhoop, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Data East Corporation", "Street Hoop / Street Slam / Dunk Dream", 0 ) | |
| 7191 | GAMEB( 1996, ghostlop, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Data East Corporation", "Ghostlop (prototype)", 0 ) | |
| 7192 | GAMEB( 1996, magdrop2, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Data East Corporation", "Magical Drop II", 0 ) | |
| 7193 | GAMEB( 1997, magdrop3, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Data East Corporation", "Magical Drop III", 0 ) | |
| 7187 | GAME( 1993, spinmast, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Data East Corporation", "Spin Master / Miracle Adventure", 0 ) | |
| 7188 | GAME( 1994, wjammers, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Data East Corporation", "Windjammers / Flying Power Disc", 0 ) | |
| 7189 | GAME( 1994, karnovr, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Data East Corporation", "Karnov's Revenge / Fighter's History Dynamite", 0 ) | |
| 7190 | GAME( 1994, strhoop, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Data East Corporation", "Street Hoop / Street Slam / Dunk Dream", 0 ) | |
| 7191 | GAME( 1996, ghostlop, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Data East Corporation", "Ghostlop (prototype)", 0 ) | |
| 7192 | GAME( 1996, magdrop2, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Data East Corporation", "Magical Drop II", 0 ) | |
| 7193 | GAME( 1997, magdrop3, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Data East Corporation", "Magical Drop III", 0 ) | |
| 7194 | 7194 | |
| 7195 | 7195 | /* Eleven */ |
| 7196 | GAMEB( 2000, nitd, neogeo, neogeo, neogeo, neogeo, nitd, ROT0, "Eleven / Gavaking", "Nightmare in the Dark" , 0) /* Encrypted GFX */ | |
| 7197 | GAMEB( 2001, nitdbl, nitd, neogeo, neogeo, neogeo, neogeo, ROT0, "Eleven / Gavaking", "Nightmare in the Dark (bootleg)" , 0) | |
| 7196 | GAME( 2000, nitd, neogeo, neogeo, neogeo, nitd, ROT0, "Eleven / Gavaking", "Nightmare in the Dark" , 0) /* Encrypted GFX */ | |
| 7197 | GAME( 2001, nitdbl, nitd, neogeo, neogeo, neogeo, ROT0, "Eleven / Gavaking", "Nightmare in the Dark (bootleg)" , 0) | |
| 7198 | 7198 | |
| 7199 | 7199 | /* Face */ |
| 7200 | GAMEB( 1994, gururin, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Face", "Gururin", 0 ) | |
| 7201 | GAMEB( 1997, miexchng, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Face", "Money Puzzle Exchanger / Money Idol Exchanger", 0 ) | |
| 7200 | GAME( 1994, gururin, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Face", "Gururin", 0 ) | |
| 7201 | GAME( 1997, miexchng, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Face", "Money Puzzle Exchanger / Money Idol Exchanger", 0 ) | |
| 7202 | 7202 | |
| 7203 | 7203 | /* Hudson Soft */ |
| 7204 | GAMEB( 1994, panicbom, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Eighting / Hudson", "Panic Bomber", 0 ) | |
| 7205 | GAMEB( 1995, kabukikl, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "Hudson", "Far East of Eden - Kabuki Klash / Tengai Makyou - Shin Den", 0 ) | |
| 7206 | GAMEB( 1997, neobombe, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Hudson", "Neo Bomberman", 0 ) | |
| 7204 | GAME( 1994, panicbom, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Eighting / Hudson", "Panic Bomber", 0 ) | |
| 7205 | GAME( 1995, kabukikl, neogeo, neogeo, neogeo, neogeo, ROT0, "Hudson", "Far East of Eden - Kabuki Klash / Tengai Makyou - Shin Den", 0 ) | |
| 7206 | GAME( 1997, neobombe, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Hudson", "Neo Bomberman", 0 ) | |
| 7207 | 7207 | |
| 7208 | 7208 | /* Monolith Corp. */ |
| 7209 | GAMEB( 1990, minasan, neogeo, neogeo, neogeo_s, mjneogeo,neogeo, ROT0, "Monolith Corp.", "Minnasanno Okagesamadesu", 0 ) | |
| 7210 | GAMEB( 1991, bakatono, neogeo, neogeo, neogeo_s, mjneogeo,neogeo, ROT0, "Monolith Corp.", "Bakatonosama Mahjong Manyuki", 0 ) | |
| 7209 | GAME( 1990, minasan, neogeo, neogeo_s, mjneogeo,neogeo, ROT0, "Monolith Corp.", "Minnasanno Okagesamadesu", 0 ) | |
| 7210 | GAME( 1991, bakatono, neogeo, neogeo_s, mjneogeo,neogeo, ROT0, "Monolith Corp.", "Bakatonosama Mahjong Manyuki", 0 ) | |
| 7211 | 7211 | |
| 7212 | 7212 | /* Nazca */ |
| 7213 | GAMEB( 1996, turfmast, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Nazca", "Neo Turf Masters / Big Tournament Golf", 0 ) | |
| 7214 | GAMEB( 1996, mslug, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Nazca", "Metal Slug - Super Vehicle-001", 0 ) | |
| 7213 | GAME( 1996, turfmast, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Nazca", "Neo Turf Masters / Big Tournament Golf", 0 ) | |
| 7214 | GAME( 1996, mslug, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Nazca", "Metal Slug - Super Vehicle-001", 0 ) | |
| 7215 | 7215 | |
| 7216 | 7216 | /* NMK */ |
| 7217 | GAME | |
| 7217 | GAME | |
| 7218 | 7218 | |
| 7219 | 7219 | /* Psikyo */ |
| 7220 | GAME | |
| 7220 | GAME | |
| 7221 | 7221 | |
| 7222 | 7222 | /* Sammy */ |
| 7223 | GAME | |
| 7223 | GAME | |
| 7224 | 7224 | |
| 7225 | 7225 | /* Saurus */ |
| 7226 | GAMEB( 1995, quizkof, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Saurus", "Quiz King of Fighters", 0 ) | |
| 7227 | GAMEB( 1995, stakwin, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "Saurus", "Stakes Winner / Stakes Winner - GI kinzen seihae no michi", 0 ) | |
| 7228 | GAMEB( 1996, ragnagrd, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "Saurus", "Ragnagard / Shin-Oh-Ken", 0 ) | |
| 7229 | GAMEB( 1996, pgoal, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Saurus", "Pleasure Goal / Futsal - 5 on 5 Mini Soccer", 0 ) | |
| 7230 | GAMEB( 1996, stakwin2, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "Saurus", "Stakes Winner 2", 0 ) | |
| 7231 | GAMEB( 1997, shocktro, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Saurus", "Shock Troopers (set 1)", 0 ) | |
| 7232 | GAMEB( 1997, shocktra, shocktro, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Saurus", "Shock Troopers (set 2)", 0 ) | |
| 7233 | GAMEB( 1998, shocktr2, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Saurus", "Shock Troopers - 2nd Squad", 0 ) | |
| 7234 | GAMEB( 1998, lans2004, shocktr2, neogeo, neogeo_s, neogeo, lans2004, ROT0, "bootleg", "Lansquenet 2004 (Shock Troopers - 2nd Squad bootleg)", 0 ) | |
| 7226 | GAME( 1995, quizkof, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Saurus", "Quiz King of Fighters", 0 ) | |
| 7227 | GAME( 1995, stakwin, neogeo, neogeo, neogeo, neogeo, ROT0, "Saurus", "Stakes Winner / Stakes Winner - GI kinzen seihae no michi", 0 ) | |
| 7228 | GAME( 1996, ragnagrd, neogeo, neogeo, neogeo, neogeo, ROT0, "Saurus", "Ragnagard / Shin-Oh-Ken", 0 ) | |
| 7229 | GAME( 1996, pgoal, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Saurus", "Pleasure Goal / Futsal - 5 on 5 Mini Soccer", 0 ) | |
| 7230 | GAME( 1996, stakwin2, neogeo, neogeo, neogeo, neogeo, ROT0, "Saurus", "Stakes Winner 2", 0 ) | |
| 7231 | GAME( 1997, shocktro, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Saurus", "Shock Troopers (set 1)", 0 ) | |
| 7232 | GAME( 1997, shocktra, shocktro, neogeo_s, neogeo, neogeo, ROT0, "Saurus", "Shock Troopers (set 2)", 0 ) | |
| 7233 | GAME( 1998, shocktr2, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Saurus", "Shock Troopers - 2nd Squad", 0 ) | |
| 7234 | GAME( 1998, lans2004, shocktr2, neogeo_s, neogeo, lans2004, ROT0, "bootleg", "Lansquenet 2004 (Shock Troopers - 2nd Squad bootleg)", 0 ) | |
| 7235 | 7235 | |
| 7236 | 7236 | /* Sunsoft */ |
| 7237 | GAMEB( 1995, galaxyfg, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Sunsoft", "Galaxy Fight - Universal Warriors", 0 ) | |
| 7238 | GAMEB( 1996, wakuwak7, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Sunsoft", "Waku Waku 7", 0 ) | |
| 7237 | GAME( 1995, galaxyfg, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Sunsoft", "Galaxy Fight - Universal Warriors", 0 ) | |
| 7238 | GAME( 1996, wakuwak7, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Sunsoft", "Waku Waku 7", 0 ) | |
| 7239 | 7239 | |
| 7240 | 7240 | /* Taito */ |
| 7241 | GAMEB( 1994, pbobblen, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "Taito", "Puzzle Bobble / Bust-A-Move (Neo-Geo) (set 1)", 0 ) | |
| 7242 | GAMEB( 1994, pbobblna, pbobblen, neogeo, neogeo, neogeo, neogeo, ROT0, "Taito", "Puzzle Bobble / Bust-A-Move (Neo-Geo) (set 2)", 0 ) | |
| 7243 | GAMEB( 1999, pbobbl2n, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Taito (SNK license)", "Puzzle Bobble 2 / Bust-A-Move Again (Neo-Geo)", 0 ) | |
| 7244 | GAMEB( 2003, pnyaa, neogeo, neogeo, neogeo_s, neogeo, pnyaa, ROT0, "Aiky / Taito", "Pochi and Nyaa", 0 ) | |
| 7241 | GAME( 1994, pbobblen, neogeo, neogeo, neogeo, neogeo, ROT0, "Taito", "Puzzle Bobble / Bust-A-Move (Neo-Geo) (set 1)", 0 ) | |
| 7242 | GAME( 1994, pbobblna, pbobblen, neogeo, neogeo, neogeo, ROT0, "Taito", "Puzzle Bobble / Bust-A-Move (Neo-Geo) (set 2)", 0 ) | |
| 7243 | GAME( 1999, pbobbl2n, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Taito (SNK license)", "Puzzle Bobble 2 / Bust-A-Move Again (Neo-Geo)", 0 ) | |
| 7244 | GAME( 2003, pnyaa, neogeo, neogeo_s, neogeo, pnyaa, ROT0, "Aiky / Taito", "Pochi and Nyaa", 0 ) | |
| 7245 | 7245 | |
| 7246 | 7246 | /* Takara */ |
| 7247 | GAME | |
| 7247 | GAME | |
| 7248 | 7248 | |
| 7249 | 7249 | /* Technos */ |
| 7250 | GAMEB( 1995, doubledr, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "Technos", "Double Dragon (Neo-Geo)", 0 ) | |
| 7251 | GAMEB( 1995, gowcaizr, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Technos", "Voltage Fighter - Gowcaizer / Choujin Gakuen Gowcaizer", 0) | |
| 7252 | GAMEB( 1996, sdodgeb, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Technos", "Super Dodge Ball / Kunio no Nekketsu Toukyuu Densetsu", 0 ) | |
| 7250 | GAME( 1995, doubledr, neogeo, neogeo, neogeo, neogeo, ROT0, "Technos", "Double Dragon (Neo-Geo)", 0 ) | |
| 7251 | GAME( 1995, gowcaizr, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Technos", "Voltage Fighter - Gowcaizer / Choujin Gakuen Gowcaizer", 0) | |
| 7252 | GAME( 1996, sdodgeb, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Technos", "Super Dodge Ball / Kunio no Nekketsu Toukyuu Densetsu", 0 ) | |
| 7253 | 7253 | |
| 7254 | 7254 | /* Tecmo */ |
| 7255 | GAME | |
| 7255 | GAME | |
| 7256 | 7256 | |
| 7257 | 7257 | /* Yumekobo */ |
| 7258 | GAMEB( 1998, blazstar, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "Yumekobo", "Blazing Star", 0 ) | |
| 7259 | GAMEB( 1999, preisle2, neogeo, neogeo, neogeo_s, neogeo, preisle2, ROT0, "Yumekobo", "Prehistoric Isle 2" , 0) /* Encrypted GFX */ | |
| 7258 | GAME( 1998, blazstar, neogeo, neogeo, neogeo, neogeo, ROT0, "Yumekobo", "Blazing Star", 0 ) | |
| 7259 | GAME( 1999, preisle2, neogeo, neogeo_s, neogeo, preisle2, ROT0, "Yumekobo", "Prehistoric Isle 2" , 0) /* Encrypted GFX */ | |
| 7260 | 7260 | |
| 7261 | 7261 | /* Viccom */ |
| 7262 | GAMEB( 1994, fightfev, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Viccom", "Fight Fever (set 1)", 0 ) | |
| 7263 | GAMEB( 1994, fightfva, fightfev, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Viccom", "Fight Fever (set 2)", 0 ) | |
| 7262 | GAME( 1994, fightfev, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Viccom", "Fight Fever (set 1)", 0 ) | |
| 7263 | GAME( 1994, fightfva, fightfev, neogeo_s, neogeo, neogeo, ROT0, "Viccom", "Fight Fever (set 2)", 0 ) | |
| 7264 | 7264 | |
| 7265 | 7265 | /* Video System Co. */ |
| 7266 | GAMEB( 1994, pspikes2, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "Video System Co.", "Power Spikes II", 0 ) | |
| 7267 | GAMEB( 1994, sonicwi2, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "Video System Co.", "Aero Fighters 2 / Sonic Wings 2", 0 ) | |
| 7268 | GAMEB( 1995, sonicwi3, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "Video System Co.", "Aero Fighters 3 / Sonic Wings 3", 0 ) | |
| 7269 | GAMEB( 1997, popbounc, neogeo, neogeo, neogeo_s, popbounc,neogeo, ROT0, "Video System Co.", "Pop 'n Bounce / Gapporin", 0 ) | |
| 7266 | GAME( 1994, pspikes2, neogeo, neogeo, neogeo, neogeo, ROT0, "Video System Co.", "Power Spikes II", 0 ) | |
| 7267 | GAME( 1994, sonicwi2, neogeo, neogeo, neogeo, neogeo, ROT0, "Video System Co.", "Aero Fighters 2 / Sonic Wings 2", 0 ) | |
| 7268 | GAME( 1995, sonicwi3, neogeo, neogeo, neogeo, neogeo, ROT0, "Video System Co.", "Aero Fighters 3 / Sonic Wings 3", 0 ) | |
| 7269 | GAME( 1997, popbounc, neogeo, neogeo_s, popbounc,neogeo, ROT0, "Video System Co.", "Pop 'n Bounce / Gapporin", 0 ) | |
| 7270 | 7270 | |
| 7271 | 7271 | /* Visco */ |
| 7272 | GAMEB( 1992, androdun, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Visco", "Andro Dunos", 0 ) | |
| 7273 | GAMEB( 1995, puzzledp, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Taito (Visco license)", "Puzzle De Pon!", 0 ) | |
| 7274 | GAMEB( 1996, neomrdo, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Visco", "Neo Mr. Do!", 0 ) | |
| 7275 | GAMEB( 1995, goalx3, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Visco", "Goal! Goal! Goal!", 0 ) | |
| 7276 | GAMEB( 1996, neodrift, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Visco", "Neo Drift Out - New Technology", 0 ) | |
| 7277 | GAMEB( 1996, breakers, neogeo, neogeo, neogeo, neogeo, neogeo, ROT0, "Visco", "Breakers", 0 ) | |
| 7278 | GAMEB( 1997, puzzldpr, puzzledp, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Taito (Visco license)", "Puzzle De Pon! R!", 0 ) | |
| 7279 | GAMEB( 1998, breakrev, breakers, neogeo, neogeo, neogeo, neogeo, ROT0, "Visco", "Breakers Revenge", 0) | |
| 7280 | GAMEB( 1998, flipshot, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Visco", "Battle Flip Shot", 0 ) | |
| 7281 | GAMEB( 1999, ctomaday, neogeo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Visco", "Captain Tomaday", 0 ) | |
| 7282 | GAMEB( 1999, ganryu, neogeo, neogeo, neogeo_s, neogeo, ganryu, ROT0, "Visco", "Ganryu / Musashi Ganryuki" , 0) /* Encrypted GFX */ | |
| 7283 | GAMEB( 2000, bangbead, neogeo, neogeo, neogeo_s, neogeo, bangbead, ROT0, "Visco", "Bang Bead", 0 ) | |
| 7284 | //GAMEB( 2000, bangbedp, bangbead, neogeo, neogeo, neogeo, neogeo, ROT0, "Visco", "Bang Bead (prototype)", 0 ) | |
| 7272 | GAME( 1992, androdun, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Visco", "Andro Dunos", 0 ) | |
| 7273 | GAME( 1995, puzzledp, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Taito (Visco license)", "Puzzle De Pon!", 0 ) | |
| 7274 | GAME( 1996, neomrdo, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Visco", "Neo Mr. Do!", 0 ) | |
| 7275 | GAME( 1995, goalx3, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Visco", "Goal! Goal! Goal!", 0 ) | |
| 7276 | GAME( 1996, neodrift, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Visco", "Neo Drift Out - New Technology", 0 ) | |
| 7277 | GAME( 1996, breakers, neogeo, neogeo, neogeo, neogeo, ROT0, "Visco", "Breakers", 0 ) | |
| 7278 | GAME( 1997, puzzldpr, puzzledp, neogeo_s, neogeo, neogeo, ROT0, "Taito (Visco license)", "Puzzle De Pon! R!", 0 ) | |
| 7279 | GAME( 1998, breakrev, breakers, neogeo, neogeo, neogeo, ROT0, "Visco", "Breakers Revenge", 0) | |
| 7280 | GAME( 1998, flipshot, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Visco", "Battle Flip Shot", 0 ) | |
| 7281 | GAME( 1999, ctomaday, neogeo, neogeo_s, neogeo, neogeo, ROT0, "Visco", "Captain Tomaday", 0 ) | |
| 7282 | GAME( 1999, ganryu, neogeo, neogeo_s, neogeo, ganryu, ROT0, "Visco", "Ganryu / Musashi Ganryuki" , 0) /* Encrypted GFX */ | |
| 7283 | GAME( 2000, bangbead, neogeo, neogeo_s, neogeo, bangbead, ROT0, "Visco", "Bang Bead", 0 ) | |
| 7284 | //GAME( 2000, bangbedp, bangbead, neogeo, neogeo, neogeo, ROT0, "Visco", "Bang Bead (prototype)", 0 ) | |
| 7285 | 7285 | |
| 7286 | 7286 | /* Mega Enterprise */ |
| 7287 | GAMEB( 2002, mslug4, neogeo, neogeo, neogeo_s, neogeo, mslug4, ROT0, "Mega", "Metal Slug 4", 0 ) | |
| 7288 | GAMEB( 2002, ms4plus, mslug4, neogeo, neogeo_s, neogeo, neogeo, ROT0, "bootleg", "Metal Slug 4 Plus (bootleg)", 0 ) | |
| 7287 | GAME( 2002, mslug4, neogeo, neogeo_s, neogeo, mslug4, ROT0, "Mega", "Metal Slug 4", 0 ) | |
| 7288 | GAME( 2002, ms4plus, mslug4, neogeo_s, neogeo, neogeo, ROT0, "bootleg", "Metal Slug 4 Plus (bootleg)", 0 ) | |
| 7289 | 7289 | |
| 7290 | 7290 | /* Evoga */ |
| 7291 | GAME | |
| 7291 | GAME | |
| 7292 | 7292 | |
| 7293 | 7293 | /* Atlus */ |
| 7294 | GAME | |
| 7294 | GAME | |
| 7295 | 7295 | |
| 7296 | 7296 | /* Breezasoft */ |
| 7297 | GAMEB( 2001, jockeygp, neogeo, neogeo, neogeo_s, jockeygp,jockeygp, ROT0, "Sun Amusement / BrezzaSoft", "Jockey Grand Prix", 0 ) | |
| 7298 | GAMEB( 2001, vliner, neogeo, neogeo, neogeo_s, vliner, vliner, ROT0, "Dyna / BreezaSoft", "V-Liner (set 1)", 0 ) | |
| 7299 | GAMEB( 2001, vlinero, vliner, neogeo, neogeo_s, vliner, vliner, ROT0, "Dyna / BreezaSoft", "V-Liner (set 2)", 0 ) | |
| 7297 | GAME( 2001, jockeygp, neogeo, neogeo_s, jockeygp,jockeygp, ROT0, "Sun Amusement / BrezzaSoft", "Jockey Grand Prix", 0 ) | |
| 7298 | GAME( 2001, vliner, neogeo, neogeo_s, vliner, vliner, ROT0, "Dyna / BreezaSoft", "V-Liner (set 1)", 0 ) | |
| 7299 | GAME( 2001, vlinero, vliner, neogeo_s, vliner, vliner, ROT0, "Dyna / BreezaSoft", "V-Liner (set 2)", 0 ) | |
| 7300 | 7300 | |
| 7301 | 7301 | /* Kyle Hodgetts */ |
| 7302 | GAME | |
| 7302 | GAME | |
| 7303 | 7303 |
| r1238 | r1239 | |
|---|---|---|
| 171 | 171 | GFXDECODE_ENTRY( REGION_GFX3, 0, layout16, 0, 1 ) |
| 172 | 172 | GFXDECODE_END |
| 173 | 173 | |
| 174 | INPUT_PORTS_START( mirax ) | |
| 174 | static INPUT_PORTS_START( mirax ) | |
| 175 | 175 | |
| 176 | 176 | INPUT_PORTS_END |
| 177 | 177 |
| r1238 | r1239 | |
|---|---|---|
| 252 | 252 | |
| 253 | 253 | |
| 254 | 254 | |
| 255 | INPUT_PORTS_START( gradius3 ) | |
| 255 | static INPUT_PORTS_START( gradius3 ) | |
| 256 | 256 | PORT_START /* COINS */ |
| 257 | 257 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 258 | 258 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 119 | 119 | AM_RANGE(0x01, 0x01) AM_READWRITE(unk_r, video_w) |
| 120 | 120 | ADDRESS_MAP_END |
| 121 | 121 | |
| 122 | INPUT_PORTS_START( cardline ) | |
| 122 | static INPUT_PORTS_START( cardline ) | |
| 123 | 123 | PORT_START |
| 124 | 124 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("Collect") |
| 125 | 125 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Card 1 / Double-Up") |
| r1238 | r1239 | |
|---|---|---|
| 387 | 387 | * |
| 388 | 388 | *************************************/ |
| 389 | 389 | |
| 390 | INPUT_PORTS_START( omegrace ) | |
| 390 | static INPUT_PORTS_START( omegrace ) | |
| 391 | 391 | PORT_START /* SW0 */ |
| 392 | 392 | PORT_DIPNAME( 0x03, 0x03, "1st Bonus Life" ) PORT_DIPLOCATION("SW1:1,2") |
| 393 | 393 | PORT_DIPSETTING ( 0x00, "40k" ) |
| r1238 | r1239 | |
|---|---|---|
| 1147 | 1147 | } |
| 1148 | 1148 | |
| 1149 | 1149 | |
| 1150 | GAMEB( 1981, decocass, 0, decocass, decocass, decocass, decocass, ROT270, "Data East Corporation", "DECO Cassette System", GAME_IS_BIOS_ROOT ) | |
| 1151 | GAMEB( 1981, ctsttape, decocass, decocass, ctsttape, decocass, decocass, ROT270, "Data East Corporation", "Test Tape (Cassette)", 0 ) | |
| 1152 | /* 01 */ GAMEB( 1980, chwy, decocass, decocass, chwy, decocass, decocass, ROT270, "Data East Corporation", "Highway Chase (Cassette)", 0 ) | |
| 1153 | /* 04 */ GAMEB( 1981, cterrani, decocass, decocass, cterrani, decocass, decocass, ROT270, "Data East Corporation", "Terranean (Cassette)", 0 ) | |
| 1154 | /* 07 */ GAMEB( 1981, castfant, decocass, decocass, castfant, decocass, decocass, ROT270, "Data East Corporation", "Astro Fantasia (Cassette)", 0 ) | |
| 1155 | /* 09 */ GAMEB( 1981, csuperas, decocass, decocass, csuperas, decocass, decocass, ROT270, "Data East Corporation", "Super Astro Fighter (Cassette)", 0 ) | |
| 1156 | /* 11 */ GAMEB( 1981, clocknch, decocass, decocass, clocknch, decocass, decocass, ROT270, "Data East Corporation", "Lock'n'Chase (Cassette)", 0 ) | |
| 1157 | /* 13 */ GAMEB( 1981, cprogolf, decocass, decocass, cprogolf, decocass, decocass, ROT270, "Data East Corporation", "Pro Golf (Cassette)", 0 ) | |
| 1158 | /* 15 */ GAMEB( 1981, cluckypo, decocass, decocass, cluckypo, decocass, decocass, ROT270, "Data East Corporation", "Lucky Poker (Cassette)", 0 ) | |
| 1159 | /* 16 */ GAMEB( 1981, ctisland, decocass, decocass, ctisland, decocass, decocrom, ROT270, "Data East Corporation", "Treasure Island (Cassette, set 1)", 0 ) | |
| 1160 | /* 16 */ GAMEB( 1981, ctislnd2, ctisland, decocass, ctisland, decocass, decocrom, ROT270, "Data East Corporation", "Treasure Island (Cassette, set 2)", 0 ) | |
| 1161 | /* 16 */ GAMEB( 1981, ctislnd3, ctisland, decocass, ctisland, decocass, decocrom, ROT270, "Data East Corporation", "Treasure Island (Cassette, set 3)", GAME_NOT_WORKING ) /* Different Bitswap? */ | |
| 1162 | /* 18 */ GAMEB( 1982, cexplore, decocass, decocass, cexplore, decocass, decocass, ROT270, "Data East Corporation", "Explorer (Cassette)", GAME_NOT_WORKING ) | |
| 1163 | /* 19 */ GAMEB( 1982, cdiscon1, decocass, decocass, cdiscon1, decocass, decocass, ROT270, "Data East Corporation", "Disco No.1 (Cassette)", 0 ) | |
| 1164 | /* 19 */ GAMEB( 1982, csweetht, cdiscon1, decocass, cdiscon1, decocass, decocass, ROT270, "Data East Corporation", "Sweet Heart (Cassette)", 0 ) | |
| 1165 | /* 20 */ GAMEB( 1982, ctornado, decocass, decocass, ctornado, decocass, decocass, ROT270, "Data East Corporation", "Tornado (Cassette)", 0 ) | |
| 1166 | /* 21 */ GAMEB( 1982, cmissnx, decocass, decocass, cmissnx, decocass, decocass, ROT270, "Data East Corporation", "Mission-X (Cassette)", 0 ) | |
| 1167 | /* 22 */ GAMEB( 1982, cptennis, decocass, decocass, cptennis, decocass, decocass, ROT270, "Data East Corporation", "Pro Tennis (Cassette)", 0 ) | |
| 1168 | /* 26 */ GAMEB( 1983, cbtime, decocass, decocass, cbtime, cbtime, decocass, ROT270, "Data East Corporation", "Burger Time (Cassette)", 0 ) | |
| 1169 | /* 27 */ GAMEB( 1982, cburnrub, decocass, decocass, cburnrub, decocass, decocass, ROT270, "Data East Corporation", "Burnin' Rubber (Cassette, set 1)", 0 ) | |
| 1170 | /* 27 */ GAMEB( 1982, cburnrb2, cburnrub, decocass, cburnrub, decocass, decocass, ROT270, "Data East Corporation", "Burnin' Rubber (Cassette, set 2)", 0 ) | |
| 1171 | /* 27 */ GAMEB( 1982, cbnj, cburnrub, decocass, cbnj, decocass, decocass, ROT270, "Data East Corporation", "Bump N Jump (Cassette)", 0 ) | |
| 1172 | /* 28 */ GAMEB( 1983, cgraplop, decocass, decocass, cgraplop, decocass, decocass, ROT270, "Data East Corporation", "Cluster Buster / Graplop (Cassette, set 1)", 0 ) | |
| 1173 | /* 28 */ GAMEB( 1983, cgraplp2, cgraplop, decocass, cgraplp2, decocass, decocass, ROT270, "Data East Corporation", "Cluster Buster / Graplop (Cassette, set 2)", GAME_NOT_WORKING ) | |
| 1174 | /* 29 */ GAMEB( 1983, clapapa, decocass, decocass, clapapa, decocass, decocass, ROT270, "Data East Corporation", "Rootin' Tootin' / La-Pa-Pa (Cassette)" , 0) /* Displays 'La-Pa-Pa during attract */ | |
| 1175 | /* 29 */ GAMEB( 1983, clapapa2, clapapa, decocass, clapapa, decocass, decocass, ROT270, "Data East Corporation", "Rootin' Tootin' (Cassette)" , 0) /* Displays 'Rootin' Tootin' during attract */ | |
| 1176 | /* 31 */ GAMEB( 1983, cprobowl, decocass, decocass, cprobowl, decocass, decocass, ROT270, "Data East Corporation", "Pro Bowling (Cassette)", 0 ) | |
| 1177 | /* 32 */ GAMEB( 1983, cnightst, decocass, decocass, cnightst, decocass, decocass, ROT270, "Data East Corporation", "Night Star (Cassette, set 1)", 0 ) | |
| 1178 | /* 32 */ GAMEB( 1983, cnights2, cnightst, decocass, cnightst, decocass, decocass, ROT270, "Data East Corporation", "Night Star (Cassette, set 2)", 0 ) | |
| 1179 | /* 33 */ GAMEB( 1983, cprosocc, decocass, decocass, cprosocc, decocass, decocass, ROT270, "Data East Corporation", "Pro Soccer (Cassette)", 0 ) | |
| 1180 | /* 37 */ GAMEB( 1983, czeroize, decocass, decocass, czeroize, decocass, decocass, ROT270, "Data East Corporation", "Zeroize (Cassette)", 0 ) | |
| 1181 | /* 38 */ GAMEB( 1984, cscrtry, decocass, decocass, cscrtry, decocass, decocass, ROT270, "Data East Corporation", "Scrum Try (Cassette, set 1)", 0 ) | |
| 1182 | /* 38 */ GAMEB( 1984, cscrtry2, cscrtry, decocass, cscrtry, decocass, decocass, ROT270, "Data East Corporation", "Scrum Try (Cassette, set 2)", 0 ) | |
| 1183 | /* 39 */ GAMEB( 1984, cppicf, decocass, decocass, cppicf, decocass, decocass, ROT270, "Data East Corporation", "Peter Pepper's Ice Cream Factory (Cassette, set 1)", 0 ) | |
| 1184 | /* 39 */ GAMEB( 1984, cppicf2, cppicf, decocass, cppicf, decocass, decocass, ROT270, "Data East Corporation", "Peter Pepper's Ice Cream Factory (Cassette, set 2)", 0 ) | |
| 1185 | /* 40 */ GAMEB( 1984, cfghtice, decocass, decocass, cfghtice, decocass, decocass, ROT270, "Data East Corporation", "Fighting Ice Hockey (Cassette)", 0 ) | |
| 1186 | /* 44 */ GAMEB( 1985, cbdash, decocass, decocass, cbdash, decocass, decocass, ROT270, "Data East Corporation", "Boulder Dash (Cassette)", 0 ) | |
| 1187 | GAMEB( 1985, cflyball, decocass, decocass, cflyball, decocass, decocass, ROT270, "Data East Corporation", "Flying Ball (Cassette)", GAME_NO_SOUND ) | |
| 1150 | GAME( 1981, decocass, 0, decocass, decocass, decocass, ROT270, "Data East Corporation", "DECO Cassette System", GAME_IS_BIOS_ROOT ) | |
| 1151 | GAME( 1981, ctsttape, decocass, ctsttape, decocass, decocass, ROT270, "Data East Corporation", "Test Tape (Cassette)", 0 ) | |
| 1152 | /* 01 */ GAME( 1980, chwy, decocass, chwy, decocass, decocass, ROT270, "Data East Corporation", "Highway Chase (Cassette)", 0 ) | |
| 1153 | /* 04 */ GAME( 1981, cterrani, decocass, cterrani, decocass, decocass, ROT270, "Data East Corporation", "Terranean (Cassette)", 0 ) | |
| 1154 | /* 07 */ GAME( 1981, castfant, decocass, castfant, decocass, decocass, ROT270, "Data East Corporation", "Astro Fantasia (Cassette)", 0 ) | |
| 1155 | /* 09 */ GAME( 1981, csuperas, decocass, csuperas, decocass, decocass, ROT270, "Data East Corporation", "Super Astro Fighter (Cassette)", 0 ) | |
| 1156 | /* 11 */ GAME( 1981, clocknch, decocass, clocknch, decocass, decocass, ROT270, "Data East Corporation", "Lock'n'Chase (Cassette)", 0 ) | |
| 1157 | /* 13 */ GAME( 1981, cprogolf, decocass, cprogolf, decocass, decocass, ROT270, "Data East Corporation", "Pro Golf (Cassette)", 0 ) | |
| 1158 | /* 15 */ GAME( 1981, cluckypo, decocass, cluckypo, decocass, decocass, ROT270, "Data East Corporation", "Lucky Poker (Cassette)", 0 ) | |
| 1159 | /* 16 */ GAME( 1981, ctisland, decocass, ctisland, decocass, decocrom, ROT270, "Data East Corporation", "Treasure Island (Cassette, set 1)", 0 ) | |
| 1160 | /* 16 */ GAME( 1981, ctislnd2, ctisland, ctisland, decocass, decocrom, ROT270, "Data East Corporation", "Treasure Island (Cassette, set 2)", 0 ) | |
| 1161 | /* 16 */ GAME( 1981, ctislnd3, ctisland, ctisland, decocass, decocrom, ROT270, "Data East Corporation", "Treasure Island (Cassette, set 3)", GAME_NOT_WORKING ) /* Different Bitswap? */ | |
| 1162 | /* 18 */ GAME( 1982, cexplore, decocass, cexplore, decocass, decocass, ROT270, "Data East Corporation", "Explorer (Cassette)", GAME_NOT_WORKING ) | |
| 1163 | /* 19 */ GAME( 1982, cdiscon1, decocass, cdiscon1, decocass, decocass, ROT270, "Data East Corporation", "Disco No.1 (Cassette)", 0 ) | |
| 1164 | /* 19 */ GAME( 1982, csweetht, cdiscon1, cdiscon1, decocass, decocass, ROT270, "Data East Corporation", "Sweet Heart (Cassette)", 0 ) | |
| 1165 | /* 20 */ GAME( 1982, ctornado, decocass, ctornado, decocass, decocass, ROT270, "Data East Corporation", "Tornado (Cassette)", 0 ) | |
| 1166 | /* 21 */ GAME( 1982, cmissnx, decocass, cmissnx, decocass, decocass, ROT270, "Data East Corporation", "Mission-X (Cassette)", 0 ) | |
| 1167 | /* 22 */ GAME( 1982, cptennis, decocass, cptennis, decocass, decocass, ROT270, "Data East Corporation", "Pro Tennis (Cassette)", 0 ) | |
| 1168 | /* 26 */ GAME( 1983, cbtime, decocass, cbtime, cbtime, decocass, ROT270, "Data East Corporation", "Burger Time (Cassette)", 0 ) | |
| 1169 | /* 27 */ GAME( 1982, cburnrub, decocass, cburnrub, decocass, decocass, ROT270, "Data East Corporation", "Burnin' Rubber (Cassette, set 1)", 0 ) | |
| 1170 | /* 27 */ GAME( 1982, cburnrb2, cburnrub, cburnrub, decocass, decocass, ROT270, "Data East Corporation", "Burnin' Rubber (Cassette, set 2)", 0 ) | |
| 1171 | /* 27 */ GAME( 1982, cbnj, cburnrub, cbnj, decocass, decocass, ROT270, "Data East Corporation", "Bump N Jump (Cassette)", 0 ) | |
| 1172 | /* 28 */ GAME( 1983, cgraplop, decocass, cgraplop, decocass, decocass, ROT270, "Data East Corporation", "Cluster Buster / Graplop (Cassette, set 1)", 0 ) | |
| 1173 | /* 28 */ GAME( 1983, cgraplp2, cgraplop, cgraplp2, decocass, decocass, ROT270, "Data East Corporation", "Cluster Buster / Graplop (Cassette, set 2)", GAME_NOT_WORKING ) | |
| 1174 | /* 29 */ GAME( 1983, clapapa, decocass, clapapa, decocass, decocass, ROT270, "Data East Corporation", "Rootin' Tootin' / La-Pa-Pa (Cassette)" , 0) /* Displays 'La-Pa-Pa during attract */ | |
| 1175 | /* 29 */ GAME( 1983, clapapa2, clapapa, clapapa, decocass, decocass, ROT270, "Data East Corporation", "Rootin' Tootin' (Cassette)" , 0) /* Displays 'Rootin' Tootin' during attract */ | |
| 1176 | /* 31 */ GAME( 1983, cprobowl, decocass, cprobowl, decocass, decocass, ROT270, "Data East Corporation", "Pro Bowling (Cassette)", 0 ) | |
| 1177 | /* 32 */ GAME( 1983, cnightst, decocass, cnightst, decocass, decocass, ROT270, "Data East Corporation", "Night Star (Cassette, set 1)", 0 ) | |
| 1178 | /* 32 */ GAME( 1983, cnights2, cnightst, cnightst, decocass, decocass, ROT270, "Data East Corporation", "Night Star (Cassette, set 2)", 0 ) | |
| 1179 | /* 33 */ GAME( 1983, cprosocc, decocass, cprosocc, decocass, decocass, ROT270, "Data East Corporation", "Pro Soccer (Cassette)", 0 ) | |
| 1180 | /* 37 */ GAME( 1983, czeroize, decocass, czeroize, decocass, decocass, ROT270, "Data East Corporation", "Zeroize (Cassette)", 0 ) | |
| 1181 | /* 38 */ GAME( 1984, cscrtry, decocass, cscrtry, decocass, decocass, ROT270, "Data East Corporation", "Scrum Try (Cassette, set 1)", 0 ) | |
| 1182 | /* 38 */ GAME( 1984, cscrtry2, cscrtry, cscrtry, decocass, decocass, ROT270, "Data East Corporation", "Scrum Try (Cassette, set 2)", 0 ) | |
| 1183 | /* 39 */ GAME( 1984, cppicf, decocass, cppicf, decocass, decocass, ROT270, "Data East Corporation", "Peter Pepper's Ice Cream Factory (Cassette, set 1)", 0 ) | |
| 1184 | /* 39 */ GAME( 1984, cppicf2, cppicf, cppicf, decocass, decocass, ROT270, "Data East Corporation", "Peter Pepper's Ice Cream Factory (Cassette, set 2)", 0 ) | |
| 1185 | /* 40 */ GAME( 1984, cfghtice, decocass, cfghtice, decocass, decocass, ROT270, "Data East Corporation", "Fighting Ice Hockey (Cassette)", 0 ) | |
| 1186 | /* 44 */ GAME( 1985, cbdash, decocass, cbdash, decocass, decocass, ROT270, "Data East Corporation", "Boulder Dash (Cassette)", 0 ) | |
| 1187 | GAME( 1985, cflyball, decocass, cflyball, decocass, decocass, ROT270, "Data East Corporation", "Flying Ball (Cassette)", GAME_NO_SOUND ) |
| r1238 | r1239 | |
|---|---|---|
| 1069 | 1069 | |
| 1070 | 1070 | /**********************************************************************************/ |
| 1071 | 1071 | |
| 1072 | INPUT_PORTS_START( mystwarr ) | |
| 1072 | static INPUT_PORTS_START( mystwarr ) | |
| 1073 | 1073 | PORT_START |
| 1074 | 1074 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1075 | 1075 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1137 | 1137 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 ) |
| 1138 | 1138 | INPUT_PORTS_END |
| 1139 | 1139 | |
| 1140 | INPUT_PORTS_START( metamrph ) | |
| 1140 | static INPUT_PORTS_START( metamrph ) | |
| 1141 | 1141 | PORT_START |
| 1142 | 1142 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1143 | 1143 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1207 | 1207 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 ) |
| 1208 | 1208 | INPUT_PORTS_END |
| 1209 | 1209 | |
| 1210 | INPUT_PORTS_START( viostorm ) | |
| 1210 | static INPUT_PORTS_START( viostorm ) | |
| 1211 | 1211 | PORT_START |
| 1212 | 1212 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1213 | 1213 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1277 | 1277 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 ) |
| 1278 | 1278 | INPUT_PORTS_END |
| 1279 | 1279 | |
| 1280 | INPUT_PORTS_START( dadandrn ) | |
| 1280 | static INPUT_PORTS_START( dadandrn ) | |
| 1281 | 1281 | PORT_START |
| 1282 | 1282 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1283 | 1283 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1343 | 1343 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 ) |
| 1344 | 1344 | INPUT_PORTS_END |
| 1345 | 1345 | |
| 1346 | INPUT_PORTS_START( martchmp ) | |
| 1346 | static INPUT_PORTS_START( martchmp ) | |
| 1347 | 1347 | PORT_START |
| 1348 | 1348 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1349 | 1349 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 446 | 446 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 447 | 447 | |
| 448 | 448 | |
| 449 | INPUT_PORTS_START( nekkyoku ) | |
| 449 | static INPUT_PORTS_START( nekkyoku ) | |
| 450 | 450 | PORT_START_TAG("IN0") /* (0) TEST SW */ |
| 451 | 451 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 452 | 452 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
| 527 | 527 | INPUT_PORTS_END |
| 528 | 528 | |
| 529 | 529 | |
| 530 | INPUT_PORTS_START( idolmj ) | |
| 530 | static INPUT_PORTS_START( idolmj ) | |
| 531 | 531 | PORT_START_TAG("IN0") /* (0) TEST SW */ |
| 532 | 532 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 533 | 533 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| r1238 | r1239 | |
| 608 | 608 | INPUT_PORTS_END |
| 609 | 609 | |
| 610 | 610 | |
| 611 | INPUT_PORTS_START( fromance ) | |
| 611 | static INPUT_PORTS_START( fromance ) | |
| 612 | 612 | PORT_START_TAG("IN0") /* (0) TEST SW */ |
| 613 | 613 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 614 | 614 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| r1238 | r1239 | |
| 687 | 687 | INPUT_PORTS_END |
| 688 | 688 | |
| 689 | 689 | |
| 690 | INPUT_PORTS_START( nmsengen ) | |
| 690 | static INPUT_PORTS_START( nmsengen ) | |
| 691 | 691 | PORT_START_TAG("IN0") /* (0) TEST SW */ |
| 692 | 692 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 693 | 693 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| r1238 | r1239 | |
| 766 | 766 | INPUT_PORTS_END |
| 767 | 767 | |
| 768 | 768 | |
| 769 | INPUT_PORTS_START( daiyogen ) | |
| 769 | static INPUT_PORTS_START( daiyogen ) | |
| 770 | 770 | PORT_START_TAG("IN0") /* (0) TEST SW */ |
| 771 | 771 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 772 | 772 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| r1238 | r1239 | |
| 847 | 847 | INPUT_PORTS_END |
| 848 | 848 | |
| 849 | 849 | |
| 850 | INPUT_PORTS_START( mfunclub ) | |
| 850 | static INPUT_PORTS_START( mfunclub ) | |
| 851 | 851 | PORT_START_TAG("IN0") /* (0) TEST SW */ |
| 852 | 852 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 853 | 853 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| r1238 | r1239 | |
| 928 | 928 | INPUT_PORTS_END |
| 929 | 929 | |
| 930 | 930 | |
| 931 | INPUT_PORTS_START( mjnatsu ) | |
| 931 | static INPUT_PORTS_START( mjnatsu ) | |
| 932 | 932 | PORT_START_TAG("IN0") /* (0) TEST SW */ |
| 933 | 933 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 934 | 934 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| r1238 | r1239 | |
|---|---|---|
| 598 | 598 | * |
| 599 | 599 | *************************************/ |
| 600 | 600 | |
| 601 | INPUT_PORTS_START( dlair ) | |
| 601 | static INPUT_PORTS_START( dlair ) | |
| 602 | 602 | PORT_START_TAG("DSW1") |
| 603 | 603 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) PORT_DIPLOCATION("A:1,0") |
| 604 | 604 | PORT_DIPSETTING( 0x01, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
| 671 | 671 | INPUT_PORTS_END |
| 672 | 672 | |
| 673 | 673 | |
| 674 | INPUT_PORTS_START( dlaire ) | |
| 674 | static INPUT_PORTS_START( dlaire ) | |
| 675 | 675 | PORT_INCLUDE(dlair) |
| 676 | 676 | |
| 677 | 677 | PORT_MODIFY("DSW2") |
| r1238 | r1239 | |
| 681 | 681 | INPUT_PORTS_END |
| 682 | 682 | |
| 683 | 683 | |
| 684 | INPUT_PORTS_START( dleuro ) | |
| 684 | static INPUT_PORTS_START( dleuro ) | |
| 685 | 685 | PORT_START /* IN0 */ |
| 686 | 686 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) |
| 687 | 687 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 163 | 163 | ADDRESS_MAP_END |
| 164 | 164 | |
| 165 | 165 | |
| 166 | INPUT_PORTS_START( jollyjgr ) | |
| 166 | static INPUT_PORTS_START( jollyjgr ) | |
| 167 | 167 | PORT_START |
| 168 | 168 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Bonus_Life ) ) |
| 169 | 169 | PORT_DIPSETTING( 0x03, "10000" ) |
| r1238 | r1239 | |
|---|---|---|
| 162 | 162 | * |
| 163 | 163 | *************************************/ |
| 164 | 164 | |
| 165 | INPUT_PORTS_START( irobot ) | |
| 165 | static INPUT_PORTS_START( irobot ) | |
| 166 | 166 | PORT_START /* IN0 */ |
| 167 | 167 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 168 | 168 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 155 | 155 | |
| 156 | 156 | |
| 157 | 157 | |
| 158 | INPUT_PORTS_START( skykid ) | |
| 158 | static INPUT_PORTS_START( skykid ) | |
| 159 | 159 | PORT_START /* DSW A */ |
| 160 | 160 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 161 | 161 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Coin_A ) ) |
| r1238 | r1239 | |
| 234 | 234 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 235 | 235 | INPUT_PORTS_END |
| 236 | 236 | |
| 237 | INPUT_PORTS_START( drgnbstr ) | |
| 237 | static INPUT_PORTS_START( drgnbstr ) | |
| 238 | 238 | PORT_START /* DSW A */ |
| 239 | 239 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 240 | 240 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Coin_A ) ) |
| r1238 | r1239 | |
|---|---|---|
| 136 | 136 | * |
| 137 | 137 | *************************************/ |
| 138 | 138 | |
| 139 | INPUT_PORTS_START( klax ) | |
| 139 | static INPUT_PORTS_START( klax ) | |
| 140 | 140 | PORT_START |
| 141 | 141 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 142 | 142 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 84 | 84 | ADDRESS_MAP_END |
| 85 | 85 | |
| 86 | 86 | |
| 87 | INPUT_PORTS_START( tarzan ) | |
| 87 | static INPUT_PORTS_START( tarzan ) | |
| 88 | 88 | INPUT_PORTS_END |
| 89 | 89 | |
| 90 | 90 |
| r1238 | r1239 | |
|---|---|---|
| 76 | 76 | AM_RANGE(0x200000, 0x33ffff) AM_WRITE(MWA16_ROM) |
| 77 | 77 | ADDRESS_MAP_END |
| 78 | 78 | |
| 79 | INPUT_PORTS_START( quizpani ) | |
| 79 | static INPUT_PORTS_START( quizpani ) | |
| 80 | 80 | PORT_START |
| 81 | 81 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 82 | 82 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 1685 | 1685 | Dip sw 2 is not used and all contacts should be set off. |
| 1686 | 1686 | */ |
| 1687 | 1687 | |
| 1688 | INPUT_PORTS_START( halleys ) | |
| 1688 | static INPUT_PORTS_START( halleys ) | |
| 1689 | 1689 | PORT_START_TAG("DSW1") // 0xff95 |
| 1690 | 1690 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1691 | 1691 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 1798 | 1798 | INPUT_PORTS_END |
| 1799 | 1799 | |
| 1800 | 1800 | |
| 1801 | INPUT_PORTS_START( benberob ) | |
| 1801 | static INPUT_PORTS_START( benberob ) | |
| 1802 | 1802 | PORT_START_TAG("DSW1") // 0xff95 |
| 1803 | 1803 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Bonus_Life ) ) |
| 1804 | 1804 | PORT_DIPSETTING( 0x02, "Every 100K" ) |
| r1238 | r1239 | |
|---|---|---|
| 83 | 83 | ADDRESS_MAP_END |
| 84 | 84 | |
| 85 | 85 | |
| 86 | INPUT_PORTS_START( gomoku ) | |
| 86 | static INPUT_PORTS_START( gomoku ) | |
| 87 | 87 | PORT_START /* 0 */ |
| 88 | 88 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) |
| 89 | 89 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 782 | 782 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* DSW 3-5 */ \ |
| 783 | 783 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* DSW 3-6 */ |
| 784 | 784 | |
| 785 | INPUT_PORTS_START( beatmania ) | |
| 785 | static INPUT_PORTS_START( beatmania ) | |
| 786 | 786 | BEATMANIA_INPUT /* IN 0-2 */ |
| 787 | 787 | BEATMANIA_DSW1(0x00, 0xff) /* IN 3 */ |
| 788 | 788 | BEATMANIA_DSW2 /* IN 4 */ |
| r1238 | r1239 | |
| 790 | 790 | BEATMANIA_TURNTABLE /* IN 6-7 */ |
| 791 | 791 | INPUT_PORTS_END |
| 792 | 792 | |
| 793 | INPUT_PORTS_START( bm1stmix ) | |
| 793 | static INPUT_PORTS_START( bm1stmix ) | |
| 794 | 794 | BEATMANIA_INPUT /* IN 0-2 */ |
| 795 | 795 | BM1STMIX_DSW1 /* IN 3 */ |
| 796 | 796 | BM1STMIX_DSW2 /* IN 4 */ |
| r1238 | r1239 | |
| 799 | 799 | INPUT_PORTS_END |
| 800 | 800 | |
| 801 | 801 | |
| 802 | INPUT_PORTS_START( bm2ndmix ) | |
| 802 | static INPUT_PORTS_START( bm2ndmix ) | |
| 803 | 803 | BEATMANIA_INPUT /* IN 0-2 */ |
| 804 | 804 | BEATMANIA_DSW1(0x00, 0xff) /* IN 3 */ |
| 805 | 805 | BEATMANIA_DSW2_OLD_LEVEL /* IN 4 */ |
| r1238 | r1239 | |
| 807 | 807 | BEATMANIA_TURNTABLE /* IN 6-7 */ |
| 808 | 808 | INPUT_PORTS_END |
| 809 | 809 | |
| 810 | INPUT_PORTS_START( bm3rdmix ) | |
| 810 | static INPUT_PORTS_START( bm3rdmix ) | |
| 811 | 811 | BEATMANIA_INPUT /* IN 0-2 */ |
| 812 | 812 | BEATMANIA_DSW1(0x00, 0xff) /* IN 3 */ |
| 813 | 813 | BEATMANIA_DSW2 /* IN 4 */ |
| r1238 | r1239 | |
| 815 | 815 | BEATMANIA_TURNTABLE /* IN 6 */ |
| 816 | 816 | INPUT_PORTS_END |
| 817 | 817 | |
| 818 | INPUT_PORTS_START( bmcompmx ) | |
| 818 | static INPUT_PORTS_START( bmcompmx ) | |
| 819 | 819 | BEATMANIA_INPUT /* IN 0-2 */ |
| 820 | 820 | BEATMANIA_DSW1(0x80, 0x3f) /* IN 3 */ |
| 821 | 821 | BMCOMPMX_DSW2 /* IN 4 */ |
| r1238 | r1239 | |
| 823 | 823 | BEATMANIA_TURNTABLE /* IN 6-7 */ |
| 824 | 824 | INPUT_PORTS_END |
| 825 | 825 | |
| 826 | INPUT_PORTS_START( bm4thmix ) | |
| 826 | static INPUT_PORTS_START( bm4thmix ) | |
| 827 | 827 | BEATMANIA_INPUT /* IN 0-2 */ |
| 828 | 828 | BEATMANIA_DSW1(0x40, 0x3f) /* IN 3 */ |
| 829 | 829 | BEATMANIA_DSW2 /* IN 4 */ |
| r1238 | r1239 | |
| 831 | 831 | BEATMANIA_TURNTABLE /* IN 6-7 */ |
| 832 | 832 | INPUT_PORTS_END |
| 833 | 833 | |
| 834 | INPUT_PORTS_START( hmcompm2 ) | |
| 834 | static INPUT_PORTS_START( hmcompm2 ) | |
| 835 | 835 | BEATMANIA_INPUT /* IN 0-2 */ |
| 836 | 836 | BEATMANIA_DSW1(0x00, 0xff) /* IN 3 */ |
| 837 | 837 | BEATMANIA_DSW2 /* IN 4 */ |
| r1238 | r1239 | |
| 839 | 839 | BEATMANIA_TURNTABLE /* IN 6-7 */ |
| 840 | 840 | INPUT_PORTS_END |
| 841 | 841 | |
| 842 | INPUT_PORTS_START( bmdct ) | |
| 842 | static INPUT_PORTS_START( bmdct ) | |
| 843 | 843 | BEATMANIA_INPUT /* IN 0-2 */ |
| 844 | 844 | BEATMANIA_DSW1(0x00, 0xff) /* IN 3 */ |
| 845 | 845 | BEATMANIA_DSW2 /* IN 4 */ |
| r1238 | r1239 | |
| 1012 | 1012 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1013 | 1013 | |
| 1014 | 1014 | |
| 1015 | INPUT_PORTS_START( popnmusic ) | |
| 1015 | static INPUT_PORTS_START( popnmusic ) | |
| 1016 | 1016 | POPN_INPUT /* IN 0-2 */ |
| 1017 | 1017 | POPN_DSW1 /* IN 3 */ |
| 1018 | 1018 | POPN_DSW2 /* IN 4 */ |
| 1019 | 1019 | POPN_DSW3 /* IN 5 */ |
| 1020 | 1020 | INPUT_PORTS_END |
| 1021 | 1021 | |
| 1022 | INPUT_PORTS_START( popn1 ) | |
| 1022 | static INPUT_PORTS_START( popn1 ) | |
| 1023 | 1023 | POPN_INPUT /* IN 0-2 */ |
| 1024 | 1024 | POPN1_DSW1 /* IN 3 */ |
| 1025 | 1025 | POPN1_DSW2 /* IN 4 */ |
| r1238 | r1239 | |
| 1113 | 1113 | PORT_DIPSETTING( 0x2a, DEF_STR( Off ) ) \ |
| 1114 | 1114 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1115 | 1115 | |
| 1116 | INPUT_PORTS_START( popnstage ) | |
| 1116 | static INPUT_PORTS_START( popnstage ) | |
| 1117 | 1117 | POPNST_INPUT /* IN 0-2 */ |
| 1118 | 1118 | POPNST_DSW1 /* IN 3 */ |
| 1119 | 1119 | POPNST_DSW2 /* IN 4 */ |
| r1238 | r1239 | |
|---|---|---|
| 208 | 208 | MAXIO=128 |
| 209 | 209 | }; |
| 210 | 210 | |
| 211 | UINT32 PS7500_IO[MAXIO]; | |
| 212 | UINT32 PS7500_FIFO[256]; | |
| 211 | static UINT32 PS7500_IO[MAXIO]; | |
| 212 | static UINT32 PS7500_FIFO[256]; | |
| 213 | 213 | static UINT32 *vram; |
| 214 | 214 | static UINT32 flashAdr,flashOffset,adrLatch,flashType,flashN; |
| 215 | 215 | |
| r1238 | r1239 | |
| 527 | 527 | PS7500_reset(); |
| 528 | 528 | } |
| 529 | 529 | |
| 530 | INPUT_PORTS_START( ssfindo ) | |
| 530 | static INPUT_PORTS_START( ssfindo ) | |
| 531 | 531 | PORT_START_TAG("PS7500") |
| 532 | 532 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 533 | 533 | |
| r1238 | r1239 | |
| 587 | 587 | INPUT_PORTS_END |
| 588 | 588 | |
| 589 | 589 | |
| 590 | INPUT_PORTS_START( ppcar ) | |
| 590 | static INPUT_PORTS_START( ppcar ) | |
| 591 | 591 | PORT_START_TAG("PS7500") |
| 592 | 592 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 593 | 593 |
| r1238 | r1239 | |
|---|---|---|
| 563 | 563 | ADDRESS_MAP_END |
| 564 | 564 | |
| 565 | 565 | |
| 566 | INPUT_PORTS_START( firetrk ) | |
| 566 | static INPUT_PORTS_START( firetrk ) | |
| 567 | 567 | PORT_START |
| 568 | 568 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_PLAYER(1) |
| 569 | 569 | |
| r1238 | r1239 | |
| 642 | 642 | INPUT_PORTS_END |
| 643 | 643 | |
| 644 | 644 | |
| 645 | INPUT_PORTS_START( superbug ) | |
| 645 | static INPUT_PORTS_START( superbug ) | |
| 646 | 646 | PORT_START |
| 647 | 647 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) |
| 648 | 648 | |
| r1238 | r1239 | |
| 709 | 709 | INPUT_PORTS_END |
| 710 | 710 | |
| 711 | 711 | |
| 712 | INPUT_PORTS_START( montecar ) | |
| 712 | static INPUT_PORTS_START( montecar ) | |
| 713 | 713 | PORT_START |
| 714 | 714 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_PLAYER(1) |
| 715 | 715 |
| r1238 | r1239 | |
|---|---|---|
| 48 | 48 | static tilemap *bg_tilemap; |
| 49 | 49 | |
| 50 | 50 | /* Pointers to External RAM */ |
| 51 | UINT8 *program_ram; | |
| 52 | UINT8 *cmos_ram; | |
| 51 | static UINT8 *program_ram; | |
| 52 | static UINT8 *cmos_ram; | |
| 53 | 53 | |
| 54 | 54 | /* Variables used instead of CRTC6845 system */ |
| 55 | UINT8 vid_register = 0; | |
| 56 | UINT8 vid_low = 0; | |
| 57 | UINT8 vid_high = 0; | |
| 55 | static UINT8 vid_register = 0; | |
| 56 | static UINT8 vid_low = 0; | |
| 57 | static UINT8 vid_high = 0; | |
| 58 | 58 | |
| 59 | 59 | /* Holds upper video address and palette number */ |
| 60 | UINT8 *palette_ram; | |
| 60 | static UINT8 *palette_ram; | |
| 61 | 61 | |
| 62 | 62 | /* IO Ports */ |
| 63 | UINT8 *io_port; | |
| 63 | static UINT8 *io_port; | |
| 64 | 64 | |
| 65 | 65 | |
| 66 | 66 | /***************** |
| r1238 | r1239 | |
| 545 | 545 | * Input ports * |
| 546 | 546 | *************************/ |
| 547 | 547 | |
| 548 | INPUT_PORTS_START( peplus ) | |
| 548 | static INPUT_PORTS_START( peplus ) | |
| 549 | 549 | PORT_START_TAG("IN0") |
| 550 | 550 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Jackpot Reset") PORT_CODE(KEYCODE_L) |
| 551 | 551 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Self Test") PORT_CODE(KEYCODE_K) |
| r1238 | r1239 | |
| 598 | 598 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 599 | 599 | INPUT_PORTS_END |
| 600 | 600 | |
| 601 | INPUT_PORTS_START( pepp0188 ) | |
| 601 | static INPUT_PORTS_START( pepp0188 ) | |
| 602 | 602 | PORT_START_TAG("IN0") |
| 603 | 603 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Jackpot Reset") PORT_CODE(KEYCODE_L) |
| 604 | 604 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Self Test") PORT_CODE(KEYCODE_K) |
| r1238 | r1239 | |
| 651 | 651 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 652 | 652 | INPUT_PORTS_END |
| 653 | 653 | |
| 654 | INPUT_PORTS_START( peset038 ) | |
| 654 | static INPUT_PORTS_START( peset038 ) | |
| 655 | 655 | PORT_START_TAG("IN0") |
| 656 | 656 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Jackpot Reset") PORT_CODE(KEYCODE_L) |
| 657 | 657 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Self Test") PORT_CODE(KEYCODE_K) |
| r1238 | r1239 | |
|---|---|---|
| 81 | 81 | |
| 82 | 82 | /******************************************************************************/ |
| 83 | 83 | |
| 84 | INPUT_PORTS_START( mustache ) | |
| 84 | static INPUT_PORTS_START( mustache ) | |
| 85 | 85 | PORT_START /* IN 1 */ |
| 86 | 86 | |
| 87 | 87 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) |
| r1238 | r1239 | |
|---|---|---|
| 241 | 241 | |
| 242 | 242 | ADDRESS_MAP_END |
| 243 | 243 | |
| 244 | INPUT_PORTS_START( ddayjlc ) | |
| 244 | static INPUT_PORTS_START( ddayjlc ) | |
| 245 | 245 | PORT_START |
| 246 | 246 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 247 | 247 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 768 | 768 | UINT32 address_mask; |
| 769 | 769 | |
| 770 | 770 | /* audio bios/cartridge selection */ |
| 771 | memory_configure_bank(NEOGEO_BANK_AUDIO_CPU_MAIN_BANK, 0, 1, memory_region(NEOGEO_REGION_AUDIO_CPU_BIOS), 0); | |
| 771 | if (memory_region(NEOGEO_REGION_AUDIO_CPU_BIOS)) | |
| 772 | memory_configure_bank(NEOGEO_BANK_AUDIO_CPU_MAIN_BANK, 0, 1, memory_region(NEOGEO_REGION_AUDIO_CPU_BIOS), 0); | |
| 772 | 773 | memory_configure_bank(NEOGEO_BANK_AUDIO_CPU_MAIN_BANK, 1, 1, memory_region(NEOGEO_REGION_AUDIO_CPU_CARTRIDGE), 0); |
| 773 | 774 | |
| 774 | 775 | /* audio banking */ |
| r1238 | r1239 | |
|---|---|---|
| 1434 | 1434 | /**********************************************************************************/ |
| 1435 | 1435 | /* port maps */ |
| 1436 | 1436 | |
| 1437 | INPUT_PORTS_START( konamigx ) | |
| 1437 | static INPUT_PORTS_START( konamigx ) | |
| 1438 | 1438 | PORT_START |
| 1439 | 1439 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1440 | 1440 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1549 | 1549 | INPUT_PORTS_END |
| 1550 | 1550 | |
| 1551 | 1551 | |
| 1552 | INPUT_PORTS_START( racinfrc ) | |
| 1552 | static INPUT_PORTS_START( racinfrc ) | |
| 1553 | 1553 | PORT_START |
| 1554 | 1554 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1555 | 1555 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1671 | 1671 | PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_MINMAX(0,0x68) PORT_SENSITIVITY(35) PORT_KEYDELTA(5) PORT_CODE_INC(KEYCODE_LCONTROL) |
| 1672 | 1672 | INPUT_PORTS_END |
| 1673 | 1673 | |
| 1674 | INPUT_PORTS_START( le2 ) | |
| 1674 | static INPUT_PORTS_START( le2 ) | |
| 1675 | 1675 | PORT_START |
| 1676 | 1676 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1677 | 1677 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1784 | 1784 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(35) PORT_KEYDELTA(15) PORT_PLAYER(2) |
| 1785 | 1785 | INPUT_PORTS_END |
| 1786 | 1786 | |
| 1787 | INPUT_PORTS_START( gokuparo ) | |
| 1787 | static INPUT_PORTS_START( gokuparo ) | |
| 1788 | 1788 | PORT_START |
| 1789 | 1789 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1790 | 1790 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1872 | 1872 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1873 | 1873 | INPUT_PORTS_END |
| 1874 | 1874 | |
| 1875 | INPUT_PORTS_START( puzldama ) | |
| 1875 | static INPUT_PORTS_START( puzldama ) | |
| 1876 | 1876 | PORT_START |
| 1877 | 1877 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1878 | 1878 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1961 | 1961 | PORT_DIPSETTING( 0x02, DEF_STR( High ) ) |
| 1962 | 1962 | INPUT_PORTS_END |
| 1963 | 1963 | |
| 1964 | INPUT_PORTS_START( dragoonj ) | |
| 1964 | static INPUT_PORTS_START( dragoonj ) | |
| 1965 | 1965 | PORT_START |
| 1966 | 1966 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1967 | 1967 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2050 | 2050 | PORT_DIPSETTING( 0x02, DEF_STR( High ) ) |
| 2051 | 2051 | INPUT_PORTS_END |
| 2052 | 2052 | |
| 2053 | INPUT_PORTS_START( type3 ) | |
| 2053 | static INPUT_PORTS_START( type3 ) | |
| 2054 | 2054 | PORT_START |
| 2055 | 2055 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2056 | 2056 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 179 | 179 | AM_RANGE(0x03, 0x03) AM_WRITE(sprcros2_s_port3_w) |
| 180 | 180 | ADDRESS_MAP_END |
| 181 | 181 | |
| 182 | INPUT_PORTS_START( sprcros2 ) | |
| 182 | static INPUT_PORTS_START( sprcros2 ) | |
| 183 | 183 | PORT_START /* IN0 */ |
| 184 | 184 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| 185 | 185 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 416 | 416 | AM_RANGE(0xce, 0xce) AM_READ(MRA8_NOP) // ??? |
| 417 | 417 | ADDRESS_MAP_END |
| 418 | 418 | |
| 419 | INPUT_PORTS_START( statriv2 ) | |
| 419 | static INPUT_PORTS_START( statriv2 ) | |
| 420 | 420 | PORT_START |
| 421 | 421 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 422 | 422 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_SERVICE3 ) PORT_NAME("Play All") |
| r1238 | r1239 | |
| 444 | 444 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 445 | 445 | INPUT_PORTS_END |
| 446 | 446 | |
| 447 | INPUT_PORTS_START( statriv4 ) | |
| 447 | static INPUT_PORTS_START( statriv4 ) | |
| 448 | 448 | PORT_START |
| 449 | 449 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 450 | 450 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_SERVICE3 ) PORT_NAME("Play All") |
| r1238 | r1239 | |
| 470 | 470 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 471 | 471 | INPUT_PORTS_END |
| 472 | 472 | |
| 473 | INPUT_PORTS_START( supertr2 ) | |
| 473 | static INPUT_PORTS_START( supertr2 ) | |
| 474 | 474 | PORT_START |
| 475 | 475 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 476 | 476 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_SERVICE3 ) PORT_NAME("Play All") |
| r1238 | r1239 | |
| 492 | 492 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 493 | 493 | INPUT_PORTS_END |
| 494 | 494 | |
| 495 | INPUT_PORTS_START( quaquiz2 ) | |
| 495 | static INPUT_PORTS_START( quaquiz2 ) | |
| 496 | 496 | PORT_START |
| 497 | 497 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 498 | 498 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_SERVICE3 ) PORT_NAME("Play All") |
| r1238 | r1239 | |
| 524 | 524 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 525 | 525 | INPUT_PORTS_END |
| 526 | 526 | |
| 527 | INPUT_PORTS_START( hangman ) | |
| 527 | static INPUT_PORTS_START( hangman ) | |
| 528 | 528 | PORT_START |
| 529 | 529 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) PORT_IMPULSE(8) |
| 530 | 530 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_IMPULSE(8) PORT_NAME("Choose") |
| r1238 | r1239 | |
| 554 | 554 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 555 | 555 | INPUT_PORTS_END |
| 556 | 556 | |
| 557 | INPUT_PORTS_START( sextriv ) | |
| 557 | static INPUT_PORTS_START( sextriv ) | |
| 558 | 558 | PORT_START |
| 559 | 559 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 560 | 560 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_SERVICE3 ) PORT_NAME("Play All") |
| r1238 | r1239 | |
|---|---|---|
| 80 | 80 | ADDRESS_MAP_END |
| 81 | 81 | |
| 82 | 82 | |
| 83 | INPUT_PORTS_START( carrera ) | |
| 83 | static INPUT_PORTS_START( carrera ) | |
| 84 | 84 | PORT_START_TAG("IN0") /* Port 0 */ |
| 85 | 85 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) |
| 86 | 86 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 245 | 245 | * |
| 246 | 246 | *************************************/ |
| 247 | 247 | |
| 248 | INPUT_PORTS_START( thunderj ) | |
| 248 | static INPUT_PORTS_START( thunderj ) | |
| 249 | 249 | PORT_START /* 260000 */ |
| 250 | 250 | PORT_BIT( 0xffff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 251 | 251 |
| r1238 | r1239 | |
|---|---|---|
| 166 | 166 | ADDRESS_MAP_END |
| 167 | 167 | |
| 168 | 168 | |
| 169 | INPUT_PORTS_START( ultraman ) | |
| 169 | static INPUT_PORTS_START( ultraman ) | |
| 170 | 170 | |
| 171 | 171 | PORT_START_TAG("IN0") /* Coins + Service */ |
| 172 | 172 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 181 | 181 | |
| 182 | 182 | ***************************************************************************/ |
| 183 | 183 | |
| 184 | INPUT_PORTS_START( parodius ) | |
| 184 | static INPUT_PORTS_START( parodius ) | |
| 185 | 185 | PORT_START /* PLAYER 1 INPUTS */ |
| 186 | 186 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 187 | 187 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 119 | 119 | cpunum_set_input_line(0, 0, HOLD_LINE); |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | INPUT_PORTS_START( ladybug ) | |
| 122 | static INPUT_PORTS_START( ladybug ) | |
| 123 | 123 | PORT_START_TAG("IN0") |
| 124 | 124 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 125 | 125 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY |
| r1238 | r1239 | |
| 210 | 210 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1) |
| 211 | 211 | INPUT_PORTS_END |
| 212 | 212 | |
| 213 | INPUT_PORTS_START( snapjack ) | |
| 213 | static INPUT_PORTS_START( snapjack ) | |
| 214 | 214 | PORT_START_TAG("IN0") |
| 215 | 215 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 216 | 216 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 303 | 303 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1) |
| 304 | 304 | INPUT_PORTS_END |
| 305 | 305 | |
| 306 | INPUT_PORTS_START( cavenger ) | |
| 306 | static INPUT_PORTS_START( cavenger ) | |
| 307 | 307 | PORT_START_TAG("IN0") |
| 308 | 308 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 309 | 309 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 392 | 392 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1) |
| 393 | 393 | INPUT_PORTS_END |
| 394 | 394 | |
| 395 | INPUT_PORTS_START( dorodon ) | |
| 395 | static INPUT_PORTS_START( dorodon ) | |
| 396 | 396 | PORT_START_TAG("IN0") |
| 397 | 397 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 398 | 398 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY |
| r1238 | r1239 | |
| 483 | 483 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1) |
| 484 | 484 | INPUT_PORTS_END |
| 485 | 485 | |
| 486 | INPUT_PORTS_START( sraider ) | |
| 486 | static INPUT_PORTS_START( sraider ) | |
| 487 | 487 | PORT_START /* IN0 */ |
| 488 | 488 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 489 | 489 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY |
| r1238 | r1239 | |
|---|---|---|
| 164 | 164 | * |
| 165 | 165 | *************************************/ |
| 166 | 166 | |
| 167 | INPUT_PORTS_START( quantum ) | |
| 167 | static INPUT_PORTS_START( quantum ) | |
| 168 | 168 | PORT_START /* IN0 */ |
| 169 | 169 | /* YHALT here MUST BE ALWAYS 0 */ |
| 170 | 170 | PORT_BIT( 0x01, IP_ACTIVE_HIGH,IPT_SPECIAL ) /* vg YHALT */ |
| r1238 | r1239 | |
|---|---|---|
| 337 | 337 | AM_RANGE(0x0d, 0x0d) AM_NOP |
| 338 | 338 | ADDRESS_MAP_END |
| 339 | 339 | |
| 340 | INPUT_PORTS_START( yamato ) | |
| 340 | static INPUT_PORTS_START( yamato ) | |
| 341 | 341 | PORT_START /* IN0 */ |
| 342 | 342 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 343 | 343 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 404 | 404 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 405 | 405 | INPUT_PORTS_END |
| 406 | 406 | |
| 407 | INPUT_PORTS_START( toprollr ) | |
| 407 | static INPUT_PORTS_START( toprollr ) | |
| 408 | 408 | PORT_START /* IN0 */ |
| 409 | 409 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 410 | 410 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 120 | 120 | |
| 121 | 121 | /* Input Ports */ |
| 122 | 122 | |
| 123 | INPUT_PORTS_START( blueprnt ) | |
| 123 | static INPUT_PORTS_START( blueprnt ) | |
| 124 | 124 | PORT_START_TAG("PORT 0") |
| 125 | 125 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 126 | 126 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 ) |
| r1238 | r1239 | |
| 180 | 180 | PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 181 | 181 | INPUT_PORTS_END |
| 182 | 182 | |
| 183 | INPUT_PORTS_START( saturn ) | |
| 183 | static INPUT_PORTS_START( saturn ) | |
| 184 | 184 | PORT_START_TAG("IN0") |
| 185 | 185 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 186 | 186 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 ) |
| r1238 | r1239 | |
|---|---|---|
| 390 | 390 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) \ |
| 391 | 391 | PORT_DIPSETTING( 0x00, "coin 2 invalidity" ) |
| 392 | 392 | |
| 393 | INPUT_PORTS_START( combasc ) | |
| 393 | static INPUT_PORTS_START( combasc ) | |
| 394 | 394 | PORT_START |
| 395 | 395 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 396 | 396 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 465 | 465 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 466 | 466 | INPUT_PORTS_END |
| 467 | 467 | |
| 468 | INPUT_PORTS_START( combasct ) | |
| 468 | static INPUT_PORTS_START( combasct ) | |
| 469 | 469 | PORT_START |
| 470 | 470 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 471 | 471 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 535 | 535 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(10) PORT_KEYDELTA(10) PORT_PLAYER(2) |
| 536 | 536 | INPUT_PORTS_END |
| 537 | 537 | |
| 538 | INPUT_PORTS_START( combascb ) | |
| 538 | static INPUT_PORTS_START( combascb ) | |
| 539 | 539 | PORT_START |
| 540 | 540 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 541 | 541 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 153 | 153 | |
| 154 | 154 | ***************************************************************************/ |
| 155 | 155 | |
| 156 | INPUT_PORTS_START( rockrage ) | |
| 156 | static INPUT_PORTS_START( rockrage ) | |
| 157 | 157 | PORT_START /* DSW #1 */ |
| 158 | 158 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 159 | 159 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 147 | 147 | |
| 148 | 148 | |
| 149 | 149 | |
| 150 | INPUT_PORTS_START(ttchamp) | |
| 150 | static INPUT_PORTS_START(ttchamp) | |
| 151 | 151 | PORT_START /* 8bit */ |
| 152 | 152 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 153 | 153 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 57 | 57 | * |
| 58 | 58 | *************************************/ |
| 59 | 59 | |
| 60 | INPUT_PORTS_START( revx ) | |
| 60 | static INPUT_PORTS_START( revx ) | |
| 61 | 61 | PORT_START_TAG("IN0") |
| 62 | 62 | PORT_BIT( 0x000f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 63 | 63 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 237 | 237 | ADDRESS_MAP_END |
| 238 | 238 | |
| 239 | 239 | |
| 240 | INPUT_PORTS_START( egghunt ) | |
| 240 | static INPUT_PORTS_START( egghunt ) | |
| 241 | 241 | PORT_START /* 8bit */ |
| 242 | 242 | PORT_DIPNAME( 0x01, 0x01, "Debug Mode" ) // Run all the animations |
| 243 | 243 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 252 | 252 | |
| 253 | 253 | /******************************************************************************/ |
| 254 | 254 | |
| 255 | INPUT_PORTS_START( buggychl ) | |
| 255 | static INPUT_PORTS_START( buggychl ) | |
| 256 | 256 | PORT_START_TAG("IN0") |
| 257 | 257 | PORT_DIPNAME( 0x03, 0x03, "Game Over Bonus" ) // Arks/Flags/Fuel |
| 258 | 258 | PORT_DIPSETTING( 0x03, "2000/1000/50" ) |
| r1238 | r1239 | |
|---|---|---|
| 672 | 672 | |
| 673 | 673 | ******************************************************************************/ |
| 674 | 674 | |
| 675 | INPUT_PORTS_START( systemc_generic ) | |
| 675 | static INPUT_PORTS_START( systemc_generic ) | |
| 676 | 676 | PORT_START_TAG("P1") |
| 677 | 677 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 678 | 678 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 778 | 778 | INPUT_PORTS_END |
| 779 | 779 | |
| 780 | 780 | |
| 781 | INPUT_PORTS_START( columns ) | |
| 781 | static INPUT_PORTS_START( columns ) | |
| 782 | 782 | PORT_INCLUDE( systemc_generic ) |
| 783 | 783 | |
| 784 | 784 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 802 | 802 | PORT_DIPSETTING( 0x20, DEF_STR( Hardest ) ) // 25 jewels |
| 803 | 803 | INPUT_PORTS_END |
| 804 | 804 | |
| 805 | INPUT_PORTS_START( columnsu ) | |
| 805 | static INPUT_PORTS_START( columnsu ) | |
| 806 | 806 | PORT_INCLUDE( systemc_generic ) |
| 807 | 807 | |
| 808 | 808 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 829 | 829 | PORT_DIPSETTING( 0x20, DEF_STR( Hardest ) ) // 25 jewels |
| 830 | 830 | INPUT_PORTS_END |
| 831 | 831 | |
| 832 | INPUT_PORTS_START( columns2 ) | |
| 832 | static INPUT_PORTS_START( columns2 ) | |
| 833 | 833 | PORT_INCLUDE( systemc_generic ) |
| 834 | 834 | |
| 835 | 835 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 860 | 860 | INPUT_PORTS_END |
| 861 | 861 | |
| 862 | 862 | |
| 863 | INPUT_PORTS_START( borench ) | |
| 863 | static INPUT_PORTS_START( borench ) | |
| 864 | 864 | PORT_INCLUDE( systemc_generic ) |
| 865 | 865 | |
| 866 | 866 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 894 | 894 | INPUT_PORTS_END |
| 895 | 895 | |
| 896 | 896 | |
| 897 | INPUT_PORTS_START( tfrceac ) | |
| 897 | static INPUT_PORTS_START( tfrceac ) | |
| 898 | 898 | PORT_INCLUDE( systemc_generic ) |
| 899 | 899 | |
| 900 | 900 | PORT_MODIFY("DSW") |
| r1238 | r1239 | |
| 922 | 922 | INPUT_PORTS_END |
| 923 | 923 | |
| 924 | 924 | |
| 925 | INPUT_PORTS_START( twinsqua ) | |
| 925 | static INPUT_PORTS_START( twinsqua ) | |
| 926 | 926 | PORT_INCLUDE( systemc_generic ) |
| 927 | 927 | |
| 928 | 928 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 956 | 956 | INPUT_PORTS_END |
| 957 | 957 | |
| 958 | 958 | |
| 959 | INPUT_PORTS_START( ribbit ) | |
| 959 | static INPUT_PORTS_START( ribbit ) | |
| 960 | 960 | PORT_INCLUDE( systemc_generic ) |
| 961 | 961 | |
| 962 | 962 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 989 | 989 | INPUT_PORTS_END |
| 990 | 990 | |
| 991 | 991 | |
| 992 | INPUT_PORTS_START( puyo ) | |
| 992 | static INPUT_PORTS_START( puyo ) | |
| 993 | 993 | PORT_INCLUDE( systemc_generic ) |
| 994 | 994 | |
| 995 | 995 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1018 | 1018 | INPUT_PORTS_END |
| 1019 | 1019 | |
| 1020 | 1020 | |
| 1021 | INPUT_PORTS_START( stkclmns ) | |
| 1021 | static INPUT_PORTS_START( stkclmns ) | |
| 1022 | 1022 | PORT_INCLUDE( systemc_generic ) |
| 1023 | 1023 | |
| 1024 | 1024 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1042 | 1042 | INPUT_PORTS_END |
| 1043 | 1043 | |
| 1044 | 1044 | |
| 1045 | INPUT_PORTS_START( potopoto ) | |
| 1045 | static INPUT_PORTS_START( potopoto ) | |
| 1046 | 1046 | PORT_INCLUDE( systemc_generic ) |
| 1047 | 1047 | |
| 1048 | 1048 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1080 | 1080 | INPUT_PORTS_END |
| 1081 | 1081 | |
| 1082 | 1082 | |
| 1083 | INPUT_PORTS_START( zunkyou ) | |
| 1083 | static INPUT_PORTS_START( zunkyou ) | |
| 1084 | 1084 | PORT_INCLUDE( systemc_generic ) |
| 1085 | 1085 | |
| 1086 | 1086 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1107 | 1107 | INPUT_PORTS_END |
| 1108 | 1108 | |
| 1109 | 1109 | |
| 1110 | INPUT_PORTS_START( ichir ) | |
| 1110 | static INPUT_PORTS_START( ichir ) | |
| 1111 | 1111 | PORT_INCLUDE( systemc_generic ) |
| 1112 | 1112 | |
| 1113 | 1113 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1130 | 1130 | INPUT_PORTS_END |
| 1131 | 1131 | |
| 1132 | 1132 | |
| 1133 | INPUT_PORTS_START( bloxeedc ) | |
| 1133 | static INPUT_PORTS_START( bloxeedc ) | |
| 1134 | 1134 | PORT_INCLUDE( systemc_generic ) |
| 1135 | 1135 | |
| 1136 | 1136 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1154 | 1154 | INPUT_PORTS_END |
| 1155 | 1155 | |
| 1156 | 1156 | |
| 1157 | INPUT_PORTS_START( puyopuy2 ) | |
| 1157 | static INPUT_PORTS_START( puyopuy2 ) | |
| 1158 | 1158 | PORT_INCLUDE( systemc_generic ) |
| 1159 | 1159 | |
| 1160 | 1160 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
| 1189 | 1189 | INPUT_PORTS_END |
| 1190 | 1190 | |
| 1191 | 1191 | |
| 1192 | INPUT_PORTS_START( pclub ) | |
| 1192 | static INPUT_PORTS_START( pclub ) | |
| 1193 | 1193 | PORT_INCLUDE( systemc_generic ) |
| 1194 | 1194 | |
| 1195 | 1195 | PORT_MODIFY("P1") |
| r1238 | r1239 | |
|---|---|---|
| 148 | 148 | |
| 149 | 149 | |
| 150 | 150 | |
| 151 | INPUT_PORTS_START( gotcha ) | |
| 151 | static INPUT_PORTS_START( gotcha ) | |
| 152 | 152 | PORT_START |
| 153 | 153 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 154 | 154 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 221 | 221 | ADDRESS_MAP_END |
| 222 | 222 | |
| 223 | 223 | |
| 224 | INPUT_PORTS_START( starshp1 ) | |
| 224 | static INPUT_PORTS_START( starshp1 ) | |
| 225 | 225 | PORT_START |
| 226 | 226 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 227 | 227 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* SWA1? */ |
| r1238 | r1239 | |
|---|---|---|
| 116 | 116 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(player) \ |
| 117 | 117 | PORT_BIT( 0x80, IP_ACTIVE_LOW, start ) |
| 118 | 118 | |
| 119 | INPUT_PORTS_START( bigstrkb ) | |
| 119 | static INPUT_PORTS_START( bigstrkb ) | |
| 120 | 120 | PORT_START /* DSW0 (0x700000.w) */ |
| 121 | 121 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 122 | 122 | PORT_DIPSETTING( 0x07, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 223 | 223 | |
| 224 | 224 | ***************************************************************************/ |
| 225 | 225 | |
| 226 | INPUT_PORTS_START( pandoras ) | |
| 226 | static INPUT_PORTS_START( pandoras ) | |
| 227 | 227 | PORT_START /* DSW #1 */ |
| 228 | 228 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 229 | 229 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 967 | 967 | AM_RANGE(0x100000, 0x100001) AM_WRITE(taitosound_port16_msb_w) |
| 968 | 968 | AM_RANGE(0x100002, 0x100003) AM_WRITE(taitosound_comm16_msb_w) |
| 969 | 969 | AM_RANGE(0x120000, 0x12000f) AM_WRITE(TC0220IOC_halfword_w) /* I/O */ |
| 970 | AM_RANGE(0x180000, 0x180fff) AM_WRITE(cchip2_word_w) AM_BASE(&cchip_ram) | |
| 970 | AM_RANGE(0x180000, 0x180fff) AM_WRITE(cchip2_word_w) AM_BASE(&cchip2_ram) | |
| 971 | 971 | AM_RANGE(0x200000, 0x20ffff) AM_WRITE(MWA16_RAM) |
| 972 | 972 | AM_RANGE(0x300000, 0x301fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 973 | 973 | AM_RANGE(0x400000, 0x40001f) AM_WRITE(TC0360PRI_halfword_w) /* ?? */ |
| r1238 | r1239 | |
| 1815 | 1815 | /* The other bits vary from one game to another, so they are not included here */ |
| 1816 | 1816 | |
| 1817 | 1817 | |
| 1818 | INPUT_PORTS_START( finalb ) | |
| 1818 | static INPUT_PORTS_START( finalb ) | |
| 1819 | 1819 | PORT_START_TAG("DSWA") |
| 1820 | 1820 | /* Not sure how to handle alternate controls */ |
| 1821 | 1821 | PORT_DIPNAME( 0x01, 0x01, "Alternate Controls" ) |
| r1238 | r1239 | |
| 1869 | 1869 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(2) /* 2P ducking? */ |
| 1870 | 1870 | INPUT_PORTS_END |
| 1871 | 1871 | |
| 1872 | INPUT_PORTS_START( finalbj ) | |
| 1872 | static INPUT_PORTS_START( finalbj ) | |
| 1873 | 1873 | PORT_INCLUDE(finalb) |
| 1874 | 1874 | |
| 1875 | 1875 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 1877 | 1877 | INPUT_PORTS_END |
| 1878 | 1878 | |
| 1879 | 1879 | |
| 1880 | INPUT_PORTS_START( dondokod ) | |
| 1880 | static INPUT_PORTS_START( dondokod ) | |
| 1881 | 1881 | PORT_START_TAG("DSWA") |
| 1882 | 1882 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 1883 | 1883 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1928 | 1928 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1929 | 1929 | INPUT_PORTS_END |
| 1930 | 1930 | |
| 1931 | INPUT_PORTS_START( dondokdu ) | |
| 1931 | static INPUT_PORTS_START( dondokdu ) | |
| 1932 | 1932 | PORT_INCLUDE(dondokod) |
| 1933 | 1933 | |
| 1934 | 1934 | PORT_MODIFY("DSWA") |
| 1935 | 1935 | TAITO_COINAGE_US_8 |
| 1936 | 1936 | INPUT_PORTS_END |
| 1937 | 1937 | |
| 1938 | INPUT_PORTS_START( dondokdj ) | |
| 1938 | static INPUT_PORTS_START( dondokdj ) | |
| 1939 | 1939 | PORT_INCLUDE(dondokod) |
| 1940 | 1940 | |
| 1941 | 1941 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 1943 | 1943 | INPUT_PORTS_END |
| 1944 | 1944 | |
| 1945 | 1945 | |
| 1946 | INPUT_PORTS_START( megab ) | |
| 1946 | static INPUT_PORTS_START( megab ) | |
| 1947 | 1947 | PORT_START_TAG("DSWA") |
| 1948 | 1948 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1949 | 1949 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 1994 | 1994 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1995 | 1995 | INPUT_PORTS_END |
| 1996 | 1996 | |
| 1997 | INPUT_PORTS_START( megabj ) | |
| 1997 | static INPUT_PORTS_START( megabj ) | |
| 1998 | 1998 | PORT_INCLUDE(megab) |
| 1999 | 1999 | |
| 2000 | 2000 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 2002 | 2002 | INPUT_PORTS_END |
| 2003 | 2003 | |
| 2004 | 2004 | |
| 2005 | INPUT_PORTS_START( thundfox ) | |
| 2005 | static INPUT_PORTS_START( thundfox ) | |
| 2006 | 2006 | PORT_START_TAG("DSWA") |
| 2007 | 2007 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) // all 2 in manual |
| 2008 | 2008 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2054 | 2054 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2055 | 2055 | INPUT_PORTS_END |
| 2056 | 2056 | |
| 2057 | INPUT_PORTS_START( thndfoxu ) | |
| 2057 | static INPUT_PORTS_START( thndfoxu ) | |
| 2058 | 2058 | PORT_INCLUDE(thundfox) |
| 2059 | 2059 | |
| 2060 | 2060 | PORT_MODIFY("DSWA") |
| 2061 | 2061 | TAITO_COINAGE_US_8 |
| 2062 | 2062 | INPUT_PORTS_END |
| 2063 | 2063 | |
| 2064 | INPUT_PORTS_START( thndfoxj ) | |
| 2064 | static INPUT_PORTS_START( thndfoxj ) | |
| 2065 | 2065 | PORT_INCLUDE(thundfox) |
| 2066 | 2066 | |
| 2067 | 2067 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 2069 | 2069 | INPUT_PORTS_END |
| 2070 | 2070 | |
| 2071 | 2071 | |
| 2072 | INPUT_PORTS_START( cameltry ) | |
| 2072 | static INPUT_PORTS_START( cameltry ) | |
| 2073 | 2073 | PORT_START_TAG("DSWA") |
| 2074 | 2074 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 2075 | 2075 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 2136 | 2136 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_PLAYER(2) |
| 2137 | 2137 | INPUT_PORTS_END |
| 2138 | 2138 | |
| 2139 | INPUT_PORTS_START( cameltrj ) | |
| 2139 | static INPUT_PORTS_START( cameltrj ) | |
| 2140 | 2140 | PORT_INCLUDE(cameltry) |
| 2141 | 2141 | |
| 2142 | 2142 | PORT_MODIFY("DSWA") |
| 2143 | 2143 | TAITO_COINAGE_JAPAN_8 |
| 2144 | 2144 | INPUT_PORTS_END |
| 2145 | 2145 | |
| 2146 | INPUT_PORTS_START( qtorimon ) | |
| 2146 | static INPUT_PORTS_START( qtorimon ) | |
| 2147 | 2147 | PORT_START_TAG("DSWA") |
| 2148 | 2148 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) // all 5 in manual |
| 2149 | 2149 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2205 | 2205 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2206 | 2206 | INPUT_PORTS_END |
| 2207 | 2207 | |
| 2208 | INPUT_PORTS_START( liquidk ) | |
| 2208 | static INPUT_PORTS_START( liquidk ) | |
| 2209 | 2209 | PORT_START_TAG("DSWA") |
| 2210 | 2210 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 2211 | 2211 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 2256 | 2256 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2257 | 2257 | INPUT_PORTS_END |
| 2258 | 2258 | |
| 2259 | INPUT_PORTS_START( liquidku ) | |
| 2259 | static INPUT_PORTS_START( liquidku ) | |
| 2260 | 2260 | PORT_INCLUDE(liquidk) |
| 2261 | 2261 | |
| 2262 | 2262 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 2264 | 2264 | INPUT_PORTS_END |
| 2265 | 2265 | |
| 2266 | 2266 | |
| 2267 | INPUT_PORTS_START( mizubaku ) | |
| 2267 | static INPUT_PORTS_START( mizubaku ) | |
| 2268 | 2268 | PORT_START_TAG("DSWA") |
| 2269 | 2269 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 2270 | 2270 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 2315 | 2315 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2316 | 2316 | INPUT_PORTS_END |
| 2317 | 2317 | |
| 2318 | INPUT_PORTS_START( ssi ) | |
| 2318 | static INPUT_PORTS_START( ssi ) | |
| 2319 | 2319 | PORT_START_TAG("DSWA") |
| 2320 | 2320 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 2321 | 2321 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 2366 | 2366 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2367 | 2367 | INPUT_PORTS_END |
| 2368 | 2368 | |
| 2369 | INPUT_PORTS_START( majest12 ) | |
| 2369 | static INPUT_PORTS_START( majest12 ) | |
| 2370 | 2370 | PORT_INCLUDE(ssi) |
| 2371 | 2371 | |
| 2372 | 2372 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 2374 | 2374 | INPUT_PORTS_END |
| 2375 | 2375 | |
| 2376 | 2376 | |
| 2377 | INPUT_PORTS_START( growl ) | |
| 2377 | static INPUT_PORTS_START( growl ) | |
| 2378 | 2378 | /* IN0 */ |
| 2379 | 2379 | TAITO_F2_PLAYERS_INPUT( 1 ) |
| 2380 | 2380 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 2454 | 2454 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2455 | 2455 | INPUT_PORTS_END |
| 2456 | 2456 | |
| 2457 | INPUT_PORTS_START( growlu ) | |
| 2457 | static INPUT_PORTS_START( growlu ) | |
| 2458 | 2458 | PORT_INCLUDE(growl) |
| 2459 | 2459 | |
| 2460 | 2460 | PORT_MODIFY("DSWA") |
| 2461 | 2461 | TAITO_COINAGE_US_8 |
| 2462 | 2462 | INPUT_PORTS_END |
| 2463 | 2463 | |
| 2464 | INPUT_PORTS_START( runark ) | |
| 2464 | static INPUT_PORTS_START( runark ) | |
| 2465 | 2465 | PORT_INCLUDE(growl) |
| 2466 | 2466 | |
| 2467 | 2467 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 2469 | 2469 | INPUT_PORTS_END |
| 2470 | 2470 | |
| 2471 | 2471 | |
| 2472 | INPUT_PORTS_START( pulirula ) | |
| 2472 | static INPUT_PORTS_START( pulirula ) | |
| 2473 | 2473 | PORT_START_TAG("DSWA") |
| 2474 | 2474 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2475 | 2475 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2520 | 2520 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2521 | 2521 | INPUT_PORTS_END |
| 2522 | 2522 | |
| 2523 | INPUT_PORTS_START( pulirulj ) | |
| 2523 | static INPUT_PORTS_START( pulirulj ) | |
| 2524 | 2524 | PORT_INCLUDE(pulirula) |
| 2525 | 2525 | |
| 2526 | 2526 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 2528 | 2528 | INPUT_PORTS_END |
| 2529 | 2529 | |
| 2530 | 2530 | |
| 2531 | INPUT_PORTS_START( qzquest ) | |
| 2531 | static INPUT_PORTS_START( qzquest ) | |
| 2532 | 2532 | PORT_START_TAG("DSWA") |
| 2533 | 2533 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 2534 | 2534 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 2591 | 2591 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2592 | 2592 | INPUT_PORTS_END |
| 2593 | 2593 | |
| 2594 | INPUT_PORTS_START( qzchikyu ) | |
| 2594 | static INPUT_PORTS_START( qzchikyu ) | |
| 2595 | 2595 | PORT_START_TAG("DSWA") |
| 2596 | 2596 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 2597 | 2597 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 2654 | 2654 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2655 | 2655 | INPUT_PORTS_END |
| 2656 | 2656 | |
| 2657 | INPUT_PORTS_START( footchmp ) | |
| 2657 | static INPUT_PORTS_START( footchmp ) | |
| 2658 | 2658 | /* IN0 */ |
| 2659 | 2659 | TAITO_F2_PLAYERS_INPUT( 1 ) |
| 2660 | 2660 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 2718 | 2718 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 ) |
| 2719 | 2719 | INPUT_PORTS_END |
| 2720 | 2720 | |
| 2721 | INPUT_PORTS_START( hthero ) | |
| 2721 | static INPUT_PORTS_START( hthero ) | |
| 2722 | 2722 | PORT_INCLUDE(footchmp) |
| 2723 | 2723 | |
| 2724 | 2724 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 2767 | 2767 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2768 | 2768 | INPUT_PORTS_END |
| 2769 | 2769 | |
| 2770 | INPUT_PORTS_START( ninjak ) | |
| 2770 | static INPUT_PORTS_START( ninjak ) | |
| 2771 | 2771 | /* IN0 */ |
| 2772 | 2772 | TAITO_F2_PLAYERS_INPUT( 1 ) |
| 2773 | 2773 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 2831 | 2831 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 ) |
| 2832 | 2832 | INPUT_PORTS_END |
| 2833 | 2833 | |
| 2834 | INPUT_PORTS_START( ninjaku ) | |
| 2834 | static INPUT_PORTS_START( ninjaku ) | |
| 2835 | 2835 | PORT_INCLUDE(ninjak) |
| 2836 | 2836 | |
| 2837 | 2837 | PORT_MODIFY("DSWA") |
| 2838 | 2838 | TAITO_COINAGE_US_8 |
| 2839 | 2839 | INPUT_PORTS_END |
| 2840 | 2840 | |
| 2841 | INPUT_PORTS_START( ninjakj ) | |
| 2841 | static INPUT_PORTS_START( ninjakj ) | |
| 2842 | 2842 | PORT_INCLUDE(ninjak) |
| 2843 | 2843 | |
| 2844 | 2844 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 2846 | 2846 | INPUT_PORTS_END |
| 2847 | 2847 | |
| 2848 | 2848 | |
| 2849 | INPUT_PORTS_START( driftout ) | |
| 2849 | static INPUT_PORTS_START( driftout ) | |
| 2850 | 2850 | PORT_START_TAG("DSWA") |
| 2851 | 2851 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) // all 5 in Service Mode |
| 2852 | 2852 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2902 | 2902 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(50) PORT_KEYDELTA(10) PORT_PLAYER(2) |
| 2903 | 2903 | INPUT_PORTS_END |
| 2904 | 2904 | |
| 2905 | INPUT_PORTS_START( gunfront ) | |
| 2905 | static INPUT_PORTS_START( gunfront ) | |
| 2906 | 2906 | PORT_START_TAG("DSWA") |
| 2907 | 2907 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) /* Listed as "Unused" */ |
| 2908 | 2908 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2953 | 2953 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2954 | 2954 | INPUT_PORTS_END |
| 2955 | 2955 | |
| 2956 | INPUT_PORTS_START( gunfronj ) | |
| 2956 | static INPUT_PORTS_START( gunfronj ) | |
| 2957 | 2957 | PORT_INCLUDE(gunfront) |
| 2958 | 2958 | |
| 2959 | 2959 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 2961 | 2961 | INPUT_PORTS_END |
| 2962 | 2962 | |
| 2963 | 2963 | |
| 2964 | INPUT_PORTS_START( metalb ) | |
| 2964 | static INPUT_PORTS_START( metalb ) | |
| 2965 | 2965 | PORT_START_TAG("DSWA") |
| 2966 | 2966 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2967 | 2967 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 3012 | 3012 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3013 | 3013 | INPUT_PORTS_END |
| 3014 | 3014 | |
| 3015 | INPUT_PORTS_START( metalbj ) | |
| 3015 | static INPUT_PORTS_START( metalbj ) | |
| 3016 | 3016 | PORT_INCLUDE(metalb) |
| 3017 | 3017 | |
| 3018 | 3018 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 3020 | 3020 | INPUT_PORTS_END |
| 3021 | 3021 | |
| 3022 | 3022 | |
| 3023 | INPUT_PORTS_START( deadconx ) | |
| 3023 | static INPUT_PORTS_START( deadconx ) | |
| 3024 | 3024 | /* IN0 */ |
| 3025 | 3025 | TAITO_F2_PLAYERS_INPUT( 1 ) |
| 3026 | 3026 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 3073 | 3073 | PORT_DIPSETTING( 0x80, "Multiplayer" ) |
| 3074 | 3074 | INPUT_PORTS_END |
| 3075 | 3075 | |
| 3076 | INPUT_PORTS_START( deadconj ) | |
| 3076 | static INPUT_PORTS_START( deadconj ) | |
| 3077 | 3077 | PORT_INCLUDE(deadconx) |
| 3078 | 3078 | |
| 3079 | 3079 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 3081 | 3081 | INPUT_PORTS_END |
| 3082 | 3082 | |
| 3083 | 3083 | |
| 3084 | INPUT_PORTS_START( dinorex ) | |
| 3084 | static INPUT_PORTS_START( dinorex ) | |
| 3085 | 3085 | PORT_START_TAG("DSWA") |
| 3086 | 3086 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) //are "unused" verified from manual? |
| 3087 | 3087 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 3133 | 3133 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3134 | 3134 | INPUT_PORTS_END |
| 3135 | 3135 | |
| 3136 | INPUT_PORTS_START( dinorexj ) | |
| 3136 | static INPUT_PORTS_START( dinorexj ) | |
| 3137 | 3137 | PORT_INCLUDE(dinorex) |
| 3138 | 3138 | |
| 3139 | 3139 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 3141 | 3141 | INPUT_PORTS_END |
| 3142 | 3142 | |
| 3143 | 3143 | |
| 3144 | INPUT_PORTS_START( solfigtr ) | |
| 3144 | static INPUT_PORTS_START( solfigtr ) | |
| 3145 | 3145 | /* IN0 */ |
| 3146 | 3146 | TAITO_F2_PLAYERS_INPUT( 1 ) |
| 3147 | 3147 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 3194 | 3194 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 3195 | 3195 | INPUT_PORTS_END |
| 3196 | 3196 | |
| 3197 | INPUT_PORTS_START( koshien ) | |
| 3197 | static INPUT_PORTS_START( koshien ) | |
| 3198 | 3198 | PORT_START /* DSW A, one lets you control fielders ? */ |
| 3199 | 3199 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 3200 | 3200 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 3256 | 3256 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 3257 | 3257 | INPUT_PORTS_END |
| 3258 | 3258 | |
| 3259 | INPUT_PORTS_START( quizhq ) | |
| 3259 | static INPUT_PORTS_START( quizhq ) | |
| 3260 | 3260 | PORT_START /* IN0 */ |
| 3261 | 3261 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 3262 | 3262 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 3317 | 3317 | PORT_DIPSETTING( 0x80, DEF_STR( Dual ) ) |
| 3318 | 3318 | INPUT_PORTS_END |
| 3319 | 3319 | |
| 3320 | INPUT_PORTS_START( qjinsei ) | |
| 3320 | static INPUT_PORTS_START( qjinsei ) | |
| 3321 | 3321 | PORT_START_TAG("DSWA") |
| 3322 | 3322 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 3323 | 3323 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 3380 | 3380 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3381 | 3381 | INPUT_PORTS_END |
| 3382 | 3382 | |
| 3383 | INPUT_PORTS_START( qcrayon ) | |
| 3383 | static INPUT_PORTS_START( qcrayon ) | |
| 3384 | 3384 | PORT_START_TAG("DSWA") |
| 3385 | 3385 | PORT_DIPUNUSED( 0x01, IP_ACTIVE_LOW ) |
| 3386 | 3386 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) |
| r1238 | r1239 | |
| 3432 | 3432 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3433 | 3433 | INPUT_PORTS_END |
| 3434 | 3434 | |
| 3435 | INPUT_PORTS_START( qcrayon2 ) | |
| 3435 | static INPUT_PORTS_START( qcrayon2 ) | |
| 3436 | 3436 | PORT_START_TAG("DSWA") |
| 3437 | 3437 | PORT_DIPUNUSED( 0x01, IP_ACTIVE_LOW ) |
| 3438 | 3438 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) |
| r1238 | r1239 | |
| 3503 | 3503 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3504 | 3504 | INPUT_PORTS_END |
| 3505 | 3505 | |
| 3506 | INPUT_PORTS_START( yuyugogo ) | |
| 3506 | static INPUT_PORTS_START( yuyugogo ) | |
| 3507 | 3507 | PORT_START_TAG("DSWA") |
| 3508 | 3508 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 3509 | 3509 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 3566 | 3566 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3567 | 3567 | INPUT_PORTS_END |
| 3568 | 3568 | |
| 3569 | INPUT_PORTS_START( mjnquest ) | |
| 3569 | static INPUT_PORTS_START( mjnquest ) | |
| 3570 | 3570 | PORT_START /* IN0 */ |
| 3571 | 3571 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_MAHJONG_A ) |
| 3572 | 3572 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_MAHJONG_E ) |
| r1238 | r1239 | |
| 3647 | 3647 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 3648 | 3648 | INPUT_PORTS_END |
| 3649 | 3649 | |
| 3650 | INPUT_PORTS_START( yesnoj ) // apparently no test mode, though text in rom suggests printer test | |
| 3650 | static INPUT_PORTS_START( yesnoj ) // apparently no test mode, though text in rom suggests printer test | |
| 3651 | 3651 | PORT_START /* IN0 */ |
| 3652 | 3652 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 3653 | 3653 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 191 | 191 | |
| 192 | 192 | /* Input Ports */ |
| 193 | 193 | |
| 194 | INPUT_PORTS_START( gberet ) | |
| 194 | static INPUT_PORTS_START( gberet ) | |
| 195 | 195 | PORT_START // IN0 |
| 196 | 196 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 197 | 197 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| r1238 | r1239 | |
| 288 | 288 | INPUT_PORTS_END |
| 289 | 289 | |
| 290 | 290 | // IN2 is different, IN1 and DSW0 are swapped and there is no DSW2 |
| 291 | INPUT_PORTS_START( gberetb ) | |
| 291 | static INPUT_PORTS_START( gberetb ) | |
| 292 | 292 | PORT_START // IN0 |
| 293 | 293 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 294 | 294 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| r1238 | r1239 | |
| 368 | 368 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 369 | 369 | INPUT_PORTS_END |
| 370 | 370 | |
| 371 | INPUT_PORTS_START( mrgoemon ) | |
| 371 | static INPUT_PORTS_START( mrgoemon ) | |
| 372 | 372 | PORT_START // IN0 |
| 373 | 373 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 374 | 374 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| r1238 | r1239 | |
|---|---|---|
| 316 | 316 | ADDRESS_MAP_END |
| 317 | 317 | |
| 318 | 318 | |
| 319 | INPUT_PORTS_START( stfight ) | |
| 319 | static INPUT_PORTS_START( stfight ) | |
| 320 | 320 | PORT_START /* PLAYER 1 */ |
| 321 | 321 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 322 | 322 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 505 | 505 | |
| 506 | 506 | |
| 507 | 507 | |
| 508 | INPUT_PORTS_START( reactor ) | |
| 508 | static INPUT_PORTS_START( reactor ) | |
| 509 | 509 | PORT_START_TAG("DSW") |
| 510 | 510 | PORT_DIPNAME( 0x01, 0x01, "Sound with Logos" ) |
| 511 | 511 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 552 | 552 | PORT_BIT ( 0xc0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 553 | 553 | INPUT_PORTS_END |
| 554 | 554 | |
| 555 | INPUT_PORTS_START( mplanets ) | |
| 555 | static INPUT_PORTS_START( mplanets ) | |
| 556 | 556 | PORT_START_TAG("DSW") |
| 557 | 557 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) |
| 558 | 558 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 601 | 601 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON2 ) |
| 602 | 602 | INPUT_PORTS_END |
| 603 | 603 | |
| 604 | INPUT_PORTS_START( tylz ) | |
| 604 | static INPUT_PORTS_START( tylz ) | |
| 605 | 605 | PORT_START_TAG("DSW") |
| 606 | 606 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) |
| 607 | 607 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 663 | 663 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 664 | 664 | INPUT_PORTS_END |
| 665 | 665 | |
| 666 | INPUT_PORTS_START( qbert ) | |
| 666 | static INPUT_PORTS_START( qbert ) | |
| 667 | 667 | PORT_START_TAG("DSW") |
| 668 | 668 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) |
| 669 | 669 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 719 | 719 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL |
| 720 | 720 | INPUT_PORTS_END |
| 721 | 721 | |
| 722 | INPUT_PORTS_START( qbertqub ) | |
| 722 | static INPUT_PORTS_START( qbertqub ) | |
| 723 | 723 | PORT_START_TAG("DSW") |
| 724 | 724 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Demo_Sounds ) ) |
| 725 | 725 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 778 | 778 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 779 | 779 | INPUT_PORTS_END |
| 780 | 780 | |
| 781 | INPUT_PORTS_START( krull ) | |
| 781 | static INPUT_PORTS_START( krull ) | |
| 782 | 782 | PORT_START_TAG("DSW") |
| 783 | 783 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) |
| 784 | 784 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 830 | 830 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_LEFT ) PORT_8WAY |
| 831 | 831 | INPUT_PORTS_END |
| 832 | 832 | |
| 833 | INPUT_PORTS_START( mach3 ) | |
| 833 | static INPUT_PORTS_START( mach3 ) | |
| 834 | 834 | PORT_START_TAG("DSW") |
| 835 | 835 | /* TODO: values are different for 5 lives */ |
| 836 | 836 | PORT_DIPNAME( 0x09, 0x08, DEF_STR( Coinage ) ) |
| r1238 | r1239 | |
| 883 | 883 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 884 | 884 | INPUT_PORTS_END |
| 885 | 885 | |
| 886 | INPUT_PORTS_START( usvsthem ) | |
| 886 | static INPUT_PORTS_START( usvsthem ) | |
| 887 | 887 | PORT_START_TAG("DSW") |
| 888 | 888 | /* TODO: values are different for 5 lives */ |
| 889 | 889 | PORT_DIPNAME( 0x09, 0x00, DEF_STR( Coinage ) ) |
| r1238 | r1239 | |
| 937 | 937 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 938 | 938 | INPUT_PORTS_END |
| 939 | 939 | |
| 940 | INPUT_PORTS_START( 3stooges ) | |
| 940 | static INPUT_PORTS_START( 3stooges ) | |
| 941 | 941 | PORT_START_TAG("DSW") |
| 942 | 942 | PORT_DIPNAME (0x01, 0x00, DEF_STR( Demo_Sounds ) ) |
| 943 | 943 | PORT_DIPSETTING ( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1002 | 1002 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 1003 | 1003 | INPUT_PORTS_END |
| 1004 | 1004 | |
| 1005 | INPUT_PORTS_START( curvebal ) | |
| 1005 | static INPUT_PORTS_START( curvebal ) | |
| 1006 | 1006 | PORT_START_TAG("DSW") |
| 1007 | 1007 | PORT_DIPNAME( 0x08, 0x00, "2 Players Game" ) |
| 1008 | 1008 | PORT_DIPSETTING( 0x08, "1 Credit" ) |
| r1238 | r1239 | |
| 1065 | 1065 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1066 | 1066 | INPUT_PORTS_END |
| 1067 | 1067 | |
| 1068 | INPUT_PORTS_START( screwloo ) | |
| 1068 | static INPUT_PORTS_START( screwloo ) | |
| 1069 | 1069 | PORT_START_TAG("DSW") |
| 1070 | 1070 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) |
| 1071 | 1071 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1118 | 1118 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1119 | 1119 | INPUT_PORTS_END |
| 1120 | 1120 | |
| 1121 | INPUT_PORTS_START( insector ) | |
| 1121 | static INPUT_PORTS_START( insector ) | |
| 1122 | 1122 | PORT_START_TAG("DSW") |
| 1123 | 1123 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) ) |
| 1124 | 1124 | PORT_DIPSETTING( 0x00, "25000" ) |
| r1238 | r1239 | |
| 1171 | 1171 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 1172 | 1172 | INPUT_PORTS_END |
| 1173 | 1173 | |
| 1174 | INPUT_PORTS_START( vidvince ) | |
| 1174 | static INPUT_PORTS_START( vidvince ) | |
| 1175 | 1175 | PORT_START_TAG("DSW") |
| 1176 | 1176 | PORT_DIPNAME( 0x09, 0x01, DEF_STR( Coinage ) ) |
| 1177 | 1177 | PORT_DIPSETTING( 0x09, DEF_STR( 3C_1C ) ) |
| r1238 | r1239 | |
| 1223 | 1223 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1224 | 1224 | INPUT_PORTS_END |
| 1225 | 1225 | |
| 1226 | INPUT_PORTS_START( wizwarz ) | |
| 1226 | static INPUT_PORTS_START( wizwarz ) | |
| 1227 | 1227 | /* TODO: Bonus Life and Bonus Mine values are dependent upon each other */ |
| 1228 | 1228 | PORT_START_TAG("DSW") |
| 1229 | 1229 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Bonus_Life ) ) |
| r1238 | r1239 | |
| 1278 | 1278 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START2 ) |
| 1279 | 1279 | INPUT_PORTS_END |
| 1280 | 1280 | |
| 1281 | INPUT_PORTS_START( argusg ) | |
| 1281 | static INPUT_PORTS_START( argusg ) | |
| 1282 | 1282 | PORT_START_TAG("DSW") |
| 1283 | 1283 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) |
| 1284 | 1284 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1331 | 1331 | PORT_BIT ( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1332 | 1332 | INPUT_PORTS_END |
| 1333 | 1333 | |
| 1334 | INPUT_PORTS_START( kngtmare ) | |
| 1334 | static INPUT_PORTS_START( kngtmare ) | |
| 1335 | 1335 | PORT_START_TAG("DSW") |
| 1336 | 1336 | PORT_DIPNAME( 0x11, 0x11, DEF_STR( Coinage ) ) |
| 1337 | 1337 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 217 | 217 | Sand Scorpion |
| 218 | 218 | ***************************************************************************/ |
| 219 | 219 | |
| 220 | INPUT_PORTS_START( sandscrp ) | |
| 220 | static INPUT_PORTS_START( sandscrp ) | |
| 221 | 221 | PORT_START // IN0 - $b00000.w |
| 222 | 222 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 223 | 223 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 220 | 220 | |
| 221 | 221 | /* MEMORY HANDLERS */ |
| 222 | 222 | /* READS */ |
| 223 | READ8_HANDLER(ldp_read) | |
| 223 | static READ8_HANDLER( ldp_read ) | |
| 224 | 224 | { |
| 225 | 225 | return ldp_read_latch; |
| 226 | 226 | } |
| 227 | 227 | |
| 228 | 228 | /* WRITES */ |
| 229 | WRITE8_HANDLER(ldp_write) | |
| 229 | static WRITE8_HANDLER( ldp_write ) | |
| 230 | 230 | { |
| 231 | 231 | ldp_write_latch = data; |
| 232 | 232 | } |
| 233 | 233 | |
| 234 | WRITE8_HANDLER(misc_io_write) | |
| 234 | static WRITE8_HANDLER( misc_io_write ) | |
| 235 | 235 | { |
| 236 | 236 | start_lamp = (data & 0x04) >> 1; |
| 237 | 237 | nmi_enable = (data & 0x40) >> 6; |
| r1238 | r1239 | |
| 240 | 240 | logerror("NMI : %x (0x%x)\n", nmi_enable, data); |
| 241 | 241 | } |
| 242 | 242 | |
| 243 | WRITE8_HANDLER(palette_write) | |
| 243 | static WRITE8_HANDLER( palette_write ) | |
| 244 | 244 | { |
| 245 | 245 | /* This is all just a (bad) guess */ |
| 246 | 246 | int pal_index, r, g, b; |
| r1238 | r1239 | |
| 289 | 289 | |
| 290 | 290 | |
| 291 | 291 | /* PORTS */ |
| 292 | INPUT_PORTS_START( gpworld ) | |
| 292 | static INPUT_PORTS_START( gpworld ) | |
| 293 | 293 | PORT_START_TAG("IN0") |
| 294 | 294 | PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 295 | 295 | PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 701 | 701 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 702 | 702 | |
| 703 | 703 | |
| 704 | INPUT_PORTS_START( darktowr ) | |
| 704 | static INPUT_PORTS_START( darktowr ) | |
| 705 | 705 | COMMON_INPUT_PORTS |
| 706 | 706 | |
| 707 | 707 | COMMON_INPUT_DIP2 |
| r1238 | r1239 | |
| 735 | 735 | COMMON_PORT4 |
| 736 | 736 | INPUT_PORTS_END |
| 737 | 737 | |
| 738 | INPUT_PORTS_START( tstrike ) | |
| 738 | static INPUT_PORTS_START( tstrike ) | |
| 739 | 739 | COMMON_INPUT_PORTS |
| 740 | 740 | |
| 741 | 741 | COMMON_INPUT_DIP1 |
| r1238 | r1239 | |
| 766 | 766 | COMMON_PORT4 |
| 767 | 767 | INPUT_PORTS_END |
| 768 | 768 | |
| 769 | INPUT_PORTS_START( ddragon ) | |
| 769 | static INPUT_PORTS_START( ddragon ) | |
| 770 | 770 | COMMON_INPUT_PORTS |
| 771 | 771 | |
| 772 | 772 | COMMON_INPUT_DIP1 |
| r1238 | r1239 | |
| 795 | 795 | COMMON_PORT4 |
| 796 | 796 | INPUT_PORTS_END |
| 797 | 797 | |
| 798 | INPUT_PORTS_START( ddragon2 ) | |
| 798 | static INPUT_PORTS_START( ddragon2 ) | |
| 799 | 799 | COMMON_INPUT_PORTS |
| 800 | 800 | |
| 801 | 801 | COMMON_INPUT_DIP1 |
| r1238 | r1239 | |
| 826 | 826 | COMMON_PORT4 |
| 827 | 827 | INPUT_PORTS_END |
| 828 | 828 | |
| 829 | INPUT_PORTS_START( ddungeon ) | |
| 829 | static INPUT_PORTS_START( ddungeon ) | |
| 830 | 830 | COMMON_INPUT_PORTS |
| 831 | 831 | |
| 832 | 832 | COMMON_INPUT_DIP2 |
| r1238 | r1239 | |
| 848 | 848 | COMMON_PORT4 |
| 849 | 849 | INPUT_PORTS_END |
| 850 | 850 | |
| 851 | INPUT_PORTS_START( toffy ) | |
| 851 | static INPUT_PORTS_START( toffy ) | |
| 852 | 852 | COMMON_INPUT_PORTS |
| 853 | 853 | |
| 854 | 854 | PORT_START_TAG("DSW0") |
| r1238 | r1239 | |
|---|---|---|
| 225 | 225 | } |
| 226 | 226 | |
| 227 | 227 | |
| 228 | WRITE16_HANDLER( ac_bgvram_w ) | |
| 228 | static WRITE16_HANDLER( ac_bgvram_w ) | |
| 229 | 229 | { |
| 230 | 230 | COMBINE_DATA(&ac_bgvram[offset]); |
| 231 | 231 | tilemap_mark_tile_dirty(bg_tilemap,offset); |
| 232 | 232 | } |
| 233 | 233 | |
| 234 | WRITE16_HANDLER( ac_txvram_w ) | |
| 234 | static WRITE16_HANDLER( ac_txvram_w ) | |
| 235 | 235 | { |
| 236 | 236 | COMBINE_DATA(&ac_txvram[offset]); |
| 237 | 237 | tilemap_mark_tile_dirty(tx_tilemap,offset); |
| r1238 | r1239 | |
| 373 | 373 | AM_RANGE(0x100000, 0x1000ff) AM_READ(ac_devices_r) AM_WRITE(ac_devices_w) AM_BASE(&ac_devram) |
| 374 | 374 | ADDRESS_MAP_END |
| 375 | 375 | |
| 376 | INPUT_PORTS_START( acommand ) | |
| 376 | static INPUT_PORTS_START( acommand ) | |
| 377 | 377 | PORT_START |
| 378 | 378 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) ) |
| 379 | 379 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 236 | 236 | |
| 237 | 237 | |
| 238 | 238 | |
| 239 | INPUT_PORTS_START( asterix ) | |
| 239 | static INPUT_PORTS_START( asterix ) | |
| 240 | 240 | PORT_START_TAG("IN0") |
| 241 | 241 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 242 | 242 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 517 | 517 | *************************************/ |
| 518 | 518 | |
| 519 | 519 | |
| 520 | INPUT_PORTS_START( tubep ) | |
| 520 | static INPUT_PORTS_START( tubep ) | |
| 521 | 521 | PORT_START_TAG("P1") |
| 522 | 522 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 523 | 523 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 614 | 614 | INPUT_PORTS_END |
| 615 | 615 | |
| 616 | 616 | |
| 617 | INPUT_PORTS_START( tubepb ) | |
| 617 | static INPUT_PORTS_START( tubepb ) | |
| 618 | 618 | PORT_INCLUDE(tubep ) |
| 619 | 619 | |
| 620 | 620 | PORT_MODIFY("DSW2") |
| r1238 | r1239 | |
| 629 | 629 | INPUT_PORTS_END |
| 630 | 630 | |
| 631 | 631 | |
| 632 | INPUT_PORTS_START( rjammer ) | |
| 632 | static INPUT_PORTS_START( rjammer ) | |
| 633 | 633 | PORT_START_TAG("P1") |
| 634 | 634 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 635 | 635 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
|---|---|---|
| 201 | 201 | AM_RANGE(0x0000, 0xffff) AM_READ(MRA8_ROM) AM_WRITE(ppmast_sound_w) AM_REGION(REGION_CPU2, 0x20000) |
| 202 | 202 | ADDRESS_MAP_END |
| 203 | 203 | |
| 204 | INPUT_PORTS_START( ppmast93 ) | |
| 204 | static INPUT_PORTS_START( ppmast93 ) | |
| 205 | 205 | PORT_START /* 8bit */ |
| 206 | 206 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_PLAYER(1) |
| 207 | 207 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 720 | 720 | /**************************************************************************/ |
| 721 | 721 | |
| 722 | 722 | |
| 723 | INPUT_PORTS_START( mjhokite ) | |
| 723 | static INPUT_PORTS_START( mjhokite ) | |
| 724 | 724 | PORT_START |
| 725 | 725 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) |
| 726 | 726 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 825 | 825 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 826 | 826 | INPUT_PORTS_END |
| 827 | 827 | |
| 828 | INPUT_PORTS_START( reikaids ) | |
| 828 | static INPUT_PORTS_START( reikaids ) | |
| 829 | 829 | PORT_START // IN0 - 0x7801 |
| 830 | 830 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_PLAYER(1) |
| 831 | 831 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 906 | 906 | PORT_DIPSETTING( 0x60, DEF_STR( 1C_5C ) ) |
| 907 | 907 | INPUT_PORTS_END |
| 908 | 908 | |
| 909 | INPUT_PORTS_START( battlcry ) | |
| 909 | static INPUT_PORTS_START( battlcry ) | |
| 910 | 910 | PORT_START // IN0 - 0x7801 |
| 911 | 911 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_PLAYER(1) |
| 912 | 912 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1044 | 1044 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1045 | 1045 | |
| 1046 | 1046 | |
| 1047 | INPUT_PORTS_START( pteacher ) | |
| 1047 | static INPUT_PORTS_START( pteacher ) | |
| 1048 | 1048 | PORT_START /* dip switches (handled by pteacher_keyboard_r) */ |
| 1049 | 1049 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds ) ) |
| 1050 | 1050 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1090 | 1090 | MJ_KEYBOARD |
| 1091 | 1091 | INPUT_PORTS_END |
| 1092 | 1092 | |
| 1093 | INPUT_PORTS_START( jogakuen ) | |
| 1093 | static INPUT_PORTS_START( jogakuen ) | |
| 1094 | 1094 | PORT_START /* dip switches (handled by pteacher_keyboard_r) */ |
| 1095 | 1095 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) ) |
| 1096 | 1096 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1136 | 1136 | MJ_KEYBOARD |
| 1137 | 1137 | INPUT_PORTS_END |
| 1138 | 1138 | |
| 1139 | INPUT_PORTS_START( mjikaga ) | |
| 1139 | static INPUT_PORTS_START( mjikaga ) | |
| 1140 | 1140 | PORT_START /* dip switches (handled by pteacher_keyboard_r) */ |
| 1141 | 1141 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) ) |
| 1142 | 1142 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1306 | 1306 | }; |
| 1307 | 1307 | |
| 1308 | 1308 | |
| 1309 | UPD7810_CONFIG upd_config = | |
| 1309 | static UPD7810_CONFIG upd_config = | |
| 1310 | 1310 | { |
| 1311 | 1311 | TYPE_7810, |
| 1312 | 1312 | NULL /* io_callback */ |
| r1238 | r1239 | |
|---|---|---|
| 278 | 278 | * |
| 279 | 279 | *************************************/ |
| 280 | 280 | |
| 281 | INPUT_PORTS_START( sidetrac ) | |
| 281 | static INPUT_PORTS_START( sidetrac ) | |
| 282 | 282 | PORT_START_TAG("DSW") |
| 283 | 283 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 284 | 284 | PORT_DIPSETTING( 0x00, "2" ) |
| r1238 | r1239 | |
| 313 | 313 | INPUT_PORTS_END |
| 314 | 314 | |
| 315 | 315 | |
| 316 | INPUT_PORTS_START( targ ) | |
| 316 | static INPUT_PORTS_START( targ ) | |
| 317 | 317 | PORT_START_TAG("DSW") |
| 318 | 318 | PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_COIN2 ) /* upright/cocktail switch? */ |
| 319 | 319 | PORT_DIPNAME( 0x02, 0x00, "Pence Coinage" ) |
| r1238 | r1239 | |
| 358 | 358 | |
| 359 | 359 | |
| 360 | 360 | /* identical to Targ, the only difference is the additional Language dip switch */ |
| 361 | INPUT_PORTS_START( spectar ) | |
| 361 | static INPUT_PORTS_START( spectar ) | |
| 362 | 362 | PORT_INCLUDE(targ) |
| 363 | 363 | |
| 364 | 364 | PORT_MODIFY("INTSOURCE") |
| r1238 | r1239 | |
| 370 | 370 | PORT_BIT( 0x1c, IP_ACTIVE_HIGH, IPT_SPECIAL ) |
| 371 | 371 | INPUT_PORTS_END |
| 372 | 372 | |
| 373 | INPUT_PORTS_START( rallys ) | |
| 373 | static INPUT_PORTS_START( rallys ) | |
| 374 | 374 | PORT_INCLUDE(spectar) |
| 375 | 375 | |
| 376 | 376 | PORT_MODIFY("DSW") |
| r1238 | r1239 | |
| 411 | 411 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 412 | 412 | INPUT_PORTS_END |
| 413 | 413 | |
| 414 | INPUT_PORTS_START( phantoma ) | |
| 414 | static INPUT_PORTS_START( phantoma ) | |
| 415 | 415 | PORT_INCLUDE(rallys) |
| 416 | 416 | |
| 417 | 417 | PORT_MODIFY("DSW") |
| r1238 | r1239 | |
| 427 | 427 | INPUT_PORTS_END |
| 428 | 428 | |
| 429 | 429 | |
| 430 | INPUT_PORTS_START( mtrap ) | |
| 430 | static INPUT_PORTS_START( mtrap ) | |
| 431 | 431 | PORT_START_TAG("DSW") |
| 432 | 432 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 433 | 433 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Bonus_Life ) ) |
| r1238 | r1239 | |
| 491 | 491 | INPUT_PORTS_END |
| 492 | 492 | |
| 493 | 493 | |
| 494 | INPUT_PORTS_START( venture ) | |
| 494 | static INPUT_PORTS_START( venture ) | |
| 495 | 495 | PORT_START_TAG("DSW") |
| 496 | 496 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 497 | 497 | PORT_DIPNAME( 0x06, 0x00, DEF_STR( Bonus_Life ) ) |
| r1238 | r1239 | |
| 547 | 547 | INPUT_PORTS_END |
| 548 | 548 | |
| 549 | 549 | |
| 550 | INPUT_PORTS_START( teetert ) | |
| 550 | static INPUT_PORTS_START( teetert ) | |
| 551 | 551 | PORT_START_TAG("DSW") |
| 552 | 552 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 553 | 553 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Bonus_Life ) ) |
| r1238 | r1239 | |
| 607 | 607 | INPUT_PORTS_END |
| 608 | 608 | |
| 609 | 609 | |
| 610 | INPUT_PORTS_START( pepper2 ) | |
| 610 | static INPUT_PORTS_START( pepper2 ) | |
| 611 | 611 | PORT_START_TAG("DSW") |
| 612 | 612 | PORT_BIT ( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 613 | 613 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Bonus_Life ) ) |
| r1238 | r1239 | |
| 664 | 664 | INPUT_PORTS_END |
| 665 | 665 | |
| 666 | 666 | |
| 667 | INPUT_PORTS_START( fax ) | |
| 667 | static INPUT_PORTS_START( fax ) | |
| 668 | 668 | PORT_START_TAG("DSW") |
| 669 | 669 | PORT_BIT ( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 670 | 670 | PORT_DIPNAME( 0x06, 0x06, "Bonus Time" ) |
| r1238 | r1239 | |
|---|---|---|
| 150 | 150 | |
| 151 | 151 | /****************************************************************************/ |
| 152 | 152 | |
| 153 | INPUT_PORTS_START( xxmissio ) | |
| 153 | static INPUT_PORTS_START( xxmissio ) | |
| 154 | 154 | PORT_START_TAG("IN0") |
| 155 | 155 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 156 | 156 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
|---|---|---|
| 238 | 238 | |
| 239 | 239 | |
| 240 | 240 | #if USE_FAKE_INPUT_PORTS |
| 241 | INPUT_PORTS_START( mugsmash ) | |
| 241 | static INPUT_PORTS_START( mugsmash ) | |
| 242 | 242 | PORT_START /* Fake IN0 (player 1 inputs) */ |
| 243 | 243 | MUGSMASH_PLAYER_INPUT( 1, IPT_START1 ) |
| 244 | 244 | |
| r1238 | r1239 | |
| 299 | 299 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 300 | 300 | INPUT_PORTS_END |
| 301 | 301 | #else |
| 302 | INPUT_PORTS_START( mugsmash ) | |
| 302 | static INPUT_PORTS_START( mugsmash ) | |
| 303 | 303 | PORT_START /* IN0 - $180000.w */ |
| 304 | 304 | MUGSMASH_PLAYER_INPUT( 1, IPT_START1 ) |
| 305 | 305 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
|---|---|---|
| 120 | 120 | |
| 121 | 121 | /***************************************************************************/ |
| 122 | 122 | |
| 123 | INPUT_PORTS_START( pcktgal ) | |
| 123 | static INPUT_PORTS_START( pcktgal ) | |
| 124 | 124 | PORT_START |
| 125 | 125 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 126 | 126 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 93 | 93 | ADDRESS_MAP_END |
| 94 | 94 | |
| 95 | 95 | |
| 96 | INPUT_PORTS_START( hyhoo ) | |
| 96 | static INPUT_PORTS_START( hyhoo ) | |
| 97 | 97 | PORT_START /* (0) DIPSW-A */ |
| 98 | 98 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Difficulty ) ) |
| 99 | 99 | PORT_DIPSETTING( 0x00, "4 (Easy)" ) |
| r1238 | r1239 | |
| 179 | 179 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 180 | 180 | INPUT_PORTS_END |
| 181 | 181 | |
| 182 | INPUT_PORTS_START( hyhoo2 ) | |
| 182 | static INPUT_PORTS_START( hyhoo2 ) | |
| 183 | 183 | PORT_START /* (0) DIPSW-A */ |
| 184 | 184 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Difficulty ) ) |
| 185 | 185 | PORT_DIPSETTING( 0x00, "4 (Easy)" ) |
| r1238 | r1239 | |
|---|---|---|
| 500 | 500 | static UINT8 *hng64_com_mmu_mem; |
| 501 | 501 | |
| 502 | 502 | /* Hacky stuff */ |
| 503 | char writeString[1024]; | |
| 503 | //static char writeString[1024]; | |
| 504 | 504 | extern UINT32 hng64_hackTilemap3, hng64_hackTm3Count, hng64_rowScrollOffset; |
| 505 | 505 | |
| 506 | 506 | |
| r1238 | r1239 | |
| 1241 | 1241 | ADDRESS_MAP_END |
| 1242 | 1242 | |
| 1243 | 1243 | |
| 1244 | INPUT_PORTS_START( hng64 ) | |
| 1244 | static INPUT_PORTS_START( hng64 ) | |
| 1245 | 1245 | PORT_START_TAG("IPT_TEST") |
| 1246 | 1246 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1247 | 1247 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 89 | 89 | |
| 90 | 90 | |
| 91 | 91 | |
| 92 | INPUT_PORTS_START( solomon ) | |
| 92 | static INPUT_PORTS_START( solomon ) | |
| 93 | 93 | PORT_START /* IN0 */ |
| 94 | 94 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 95 | 95 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 368 | 368 | |
| 369 | 369 | /*** INPUT PORTS *************************************************************/ |
| 370 | 370 | |
| 371 | INPUT_PORTS_START( macrossp ) | |
| 371 | static INPUT_PORTS_START( macrossp ) | |
| 372 | 372 | PORT_START |
| 373 | 373 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 374 | 374 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 458 | 458 | INPUT_PORTS_END |
| 459 | 459 | |
| 460 | 460 | |
| 461 | INPUT_PORTS_START( quizmoon ) | |
| 461 | static INPUT_PORTS_START( quizmoon ) | |
| 462 | 462 | PORT_INCLUDE(macrossp) |
| 463 | 463 | |
| 464 | 464 | PORT_MODIFY("KEYS") |
| r1238 | r1239 | |
|---|---|---|
| 468 | 468 | |
| 469 | 469 | |
| 470 | 470 | |
| 471 | INPUT_PORTS_START( ppking ) | |
| 471 | static INPUT_PORTS_START( ppking ) | |
| 472 | 472 | |
| 473 | 473 | INPUT_PORTS_END |
| 474 | 474 | |
| 475 | 475 | |
| 476 | INPUT_PORTS_START( gladiatr ) | |
| 476 | static INPUT_PORTS_START( gladiatr ) | |
| 477 | 477 | PORT_START_TAG("DSW1") /* (8741-0 parallel port)*/ |
| 478 | 478 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 479 | 479 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) |
| r1238 | r1239 | |
|---|---|---|
| 417 | 417 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 418 | 418 | MACHINE_DRIVER_END |
| 419 | 419 | |
| 420 | INPUT_PORTS_START( imolagp ) | |
| 420 | static INPUT_PORTS_START( imolagp ) | |
| 421 | 421 | PORT_START_TAG("DSWA") /* 0x4000 */ |
| 422 | 422 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Coin_A ) ) |
| 423 | 423 | PORT_DIPSETTING( 0x07, DEF_STR( 8C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 17 | 17 | |
| 18 | 18 | static UINT16* main_ram; |
| 19 | 19 | |
| 20 | INPUT_PORTS_START( puckpkmn ) /* Puckman Pockimon Input Ports */ | |
| 20 | static INPUT_PORTS_START( puckpkmn ) /* Puckman Pockimon Input Ports */ | |
| 21 | 21 | PORT_START /* Player 2 Controls ($700011.b) */ |
| 22 | 22 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 23 | 23 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 100 | 100 | AM_RANGE(0xffc0, 0xffff) AM_READ(spc_ipl_r) |
| 101 | 101 | ADDRESS_MAP_END |
| 102 | 102 | |
| 103 | INPUT_PORTS_START( kinstb ) | |
| 103 | static INPUT_PORTS_START( kinstb ) | |
| 104 | 104 | PORT_START /* IN 0 : Joypad 1 - L */ |
| 105 | 105 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("P1 Button A") PORT_PLAYER(1) |
| 106 | 106 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("P1 Button X") PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 468 | 468 | ADDRESS_MAP_END |
| 469 | 469 | |
| 470 | 470 | |
| 471 | INPUT_PORTS_START( moo ) | |
| 471 | static INPUT_PORTS_START( moo ) | |
| 472 | 472 | PORT_START_TAG("IN0") |
| 473 | 473 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 474 | 474 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 537 | 537 | INPUT_PORTS_END |
| 538 | 538 | |
| 539 | 539 | /* Same as 'moo', but additional "Button 3" for all players */ |
| 540 | INPUT_PORTS_START( bucky ) | |
| 540 | static INPUT_PORTS_START( bucky ) | |
| 541 | 541 | PORT_START_TAG("IN0") |
| 542 | 542 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 543 | 543 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 175 | 175 | cpunum_set_input_line(0, 0, HOLD_LINE); |
| 176 | 176 | } |
| 177 | 177 | |
| 178 | INPUT_PORTS_START( skychut ) | |
| 178 | static INPUT_PORTS_START( skychut ) | |
| 179 | 179 | PORT_START |
| 180 | 180 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) |
| 181 | 181 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| r1238 | r1239 | |
| 196 | 196 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(1) |
| 197 | 197 | INPUT_PORTS_END |
| 198 | 198 | |
| 199 | INPUT_PORTS_START( spacebeam ) | |
| 199 | static INPUT_PORTS_START( spacebeam ) | |
| 200 | 200 | PORT_START |
| 201 | 201 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) |
| 202 | 202 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| r1238 | r1239 | |
| 228 | 228 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_COCKTAIL |
| 229 | 229 | INPUT_PORTS_END |
| 230 | 230 | |
| 231 | INPUT_PORTS_START( headoni ) | |
| 231 | static INPUT_PORTS_START( headoni ) | |
| 232 | 232 | PORT_START |
| 233 | 233 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) |
| 234 | 234 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 10 | 10 | #include "driver.h" |
| 11 | 11 | //#include "random.h" |
| 12 | 12 | |
| 13 | READ16_HANDLER( unknown_read_0xc00000 ) | |
| 13 | static READ16_HANDLER( unknown_read_0xc00000 ) | |
| 14 | 14 | { |
| 15 | 15 | return mame_rand(Machine); |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | READ16_HANDLER( unknown_read_0xd00000 ) | |
| 18 | static READ16_HANDLER( unknown_read_0xd00000 ) | |
| 19 | 19 | { |
| 20 | 20 | return mame_rand(Machine); |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | READ16_HANDLER( unknown_read_0xffff00 ) | |
| 23 | static READ16_HANDLER( unknown_read_0xffff00 ) | |
| 24 | 24 | { |
| 25 | 25 | return mame_rand(Machine); |
| 26 | 26 | } |
| r1238 | r1239 | |
| 69 | 69 | AM_RANGE(0xf00000, 0xf00001) AM_WRITE(MWA16_NOP) //?? |
| 70 | 70 | ADDRESS_MAP_END |
| 71 | 71 | |
| 72 | READ16_HANDLER( unknown_sub_read_0xbe0004 ) | |
| 72 | static READ16_HANDLER( unknown_sub_read_0xbe0004 ) | |
| 73 | 73 | { |
| 74 | 74 | return mame_rand(Machine); |
| 75 | 75 | } |
| r1238 | r1239 | |
| 84 | 84 | AM_RANGE(0x000000, 0x0fffff) AM_WRITE(MWA16_ROM) |
| 85 | 85 | ADDRESS_MAP_END |
| 86 | 86 | |
| 87 | INPUT_PORTS_START( stepstag ) | |
| 87 | static INPUT_PORTS_START( stepstag ) | |
| 88 | 88 | INPUT_PORTS_END |
| 89 | 89 | |
| 90 | 90 | static const gfx_layout tiles8x8_layout = |
| r1238 | r1239 | |
|---|---|---|
| 190 | 190 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) )\ |
| 191 | 191 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 192 | 192 | |
| 193 | INPUT_PORTS_START( goindol ) | |
| 193 | static INPUT_PORTS_START( goindol ) | |
| 194 | 194 | GOINDOL_INPUT_BITS |
| 195 | 195 | |
| 196 | 196 | PORT_START_TAG("DSW0") |
| r1238 | r1239 | |
| 219 | 219 | GOINDOL_DSW1 |
| 220 | 220 | INPUT_PORTS_END |
| 221 | 221 | |
| 222 | INPUT_PORTS_START( homo ) | |
| 222 | static INPUT_PORTS_START( homo ) | |
| 223 | 223 | GOINDOL_INPUT_BITS |
| 224 | 224 | |
| 225 | 225 | PORT_START_TAG("DSW0") |
| r1238 | r1239 | |
|---|---|---|
| 73 | 73 | AM_RANGE(0xfff80000, 0xffffffff) AM_ROM AM_REGION(REGION_USER1, 0) |
| 74 | 74 | ADDRESS_MAP_END |
| 75 | 75 | |
| 76 | INPUT_PORTS_START( eolith16 ) | |
| 76 | static INPUT_PORTS_START( eolith16 ) | |
| 77 | 77 | PORT_START |
| 78 | 78 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_SPECIAL ) // eeprom bit |
| 79 | 79 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM(eolith_speedup_getvblank, 0) |
| r1238 | r1239 | |
|---|---|---|
| 1149 | 1149 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) \ |
| 1150 | 1150 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 1151 | 1151 | |
| 1152 | INPUT_PORTS_START( fhawk ) | |
| 1152 | static INPUT_PORTS_START( fhawk ) | |
| 1153 | 1153 | PORT_START_TAG("DSWA") |
| 1154 | 1154 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1155 | 1155 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 1185 | 1185 | TAITO_L_SYSTEM_INPUT( IP_ACTIVE_LOW, 4 ) |
| 1186 | 1186 | INPUT_PORTS_END |
| 1187 | 1187 | |
| 1188 | INPUT_PORTS_START( fhawkj ) | |
| 1188 | static INPUT_PORTS_START( fhawkj ) | |
| 1189 | 1189 | PORT_START_TAG("DSWA") |
| 1190 | 1190 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1191 | 1191 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 1220 | 1220 | TAITO_L_SYSTEM_INPUT( IP_ACTIVE_LOW, 4 ) |
| 1221 | 1221 | INPUT_PORTS_END |
| 1222 | 1222 | |
| 1223 | INPUT_PORTS_START( raimais ) | |
| 1223 | static INPUT_PORTS_START( raimais ) | |
| 1224 | 1224 | PORT_START_TAG("DSWA") |
| 1225 | 1225 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1226 | 1226 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 1256 | 1256 | TAITO_L_SYSTEM_INPUT( IP_ACTIVE_HIGH, 1 ) |
| 1257 | 1257 | INPUT_PORTS_END |
| 1258 | 1258 | |
| 1259 | INPUT_PORTS_START( raimaisj ) | |
| 1259 | static INPUT_PORTS_START( raimaisj ) | |
| 1260 | 1260 | PORT_START_TAG("DSWA") |
| 1261 | 1261 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1262 | 1262 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 1343 | 1343 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) \ |
| 1344 | 1344 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1345 | 1345 | |
| 1346 | INPUT_PORTS_START( champwr ) | |
| 1346 | static INPUT_PORTS_START( champwr ) | |
| 1347 | 1347 | PORT_START_TAG("DSWA") |
| 1348 | 1348 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) // all 2 in manual |
| 1349 | 1349 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1356 | 1356 | CHAMPWR_INPUTS |
| 1357 | 1357 | INPUT_PORTS_END |
| 1358 | 1358 | |
| 1359 | INPUT_PORTS_START( champwrj ) | |
| 1359 | static INPUT_PORTS_START( champwrj ) | |
| 1360 | 1360 | PORT_START_TAG("DSWA") |
| 1361 | 1361 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) |
| 1362 | 1362 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1369 | 1369 | CHAMPWR_INPUTS |
| 1370 | 1370 | INPUT_PORTS_END |
| 1371 | 1371 | |
| 1372 | INPUT_PORTS_START( champwru ) | |
| 1372 | static INPUT_PORTS_START( champwru ) | |
| 1373 | 1373 | PORT_START_TAG("DSWA") |
| 1374 | 1374 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) |
| 1375 | 1375 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1404 | 1404 | PORT_DIPSETTING( 0x80, "5 Times" ) \ |
| 1405 | 1405 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1406 | 1406 | |
| 1407 | INPUT_PORTS_START( kurikint ) | |
| 1407 | static INPUT_PORTS_START( kurikint ) | |
| 1408 | 1408 | PORT_START_TAG("DSWA") |
| 1409 | 1409 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1410 | 1410 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 1423 | 1423 | TAITO_L_SYSTEM_INPUT( IP_ACTIVE_HIGH, 4 ) |
| 1424 | 1424 | INPUT_PORTS_END |
| 1425 | 1425 | |
| 1426 | INPUT_PORTS_START( kurikinj ) | |
| 1426 | static INPUT_PORTS_START( kurikinj ) | |
| 1427 | 1427 | PORT_START_TAG("DSWA") |
| 1428 | 1428 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1429 | 1429 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 1442 | 1442 | TAITO_L_SYSTEM_INPUT( IP_ACTIVE_HIGH, 4 ) |
| 1443 | 1443 | INPUT_PORTS_END |
| 1444 | 1444 | |
| 1445 | INPUT_PORTS_START( kurikina ) | |
| 1445 | static INPUT_PORTS_START( kurikina ) | |
| 1446 | 1446 | PORT_START_TAG("DSWA") |
| 1447 | 1447 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1448 | 1448 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 1492 | 1492 | TAITO_L_SYSTEM_INPUT( IP_ACTIVE_HIGH, 4 ) |
| 1493 | 1493 | INPUT_PORTS_END |
| 1494 | 1494 | |
| 1495 | INPUT_PORTS_START( puzznic ) | |
| 1495 | static INPUT_PORTS_START( puzznic ) | |
| 1496 | 1496 | PORT_START_TAG("DSWA") |
| 1497 | 1497 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1498 | 1498 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 1562 | 1562 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1563 | 1563 | INPUT_PORTS_END |
| 1564 | 1564 | |
| 1565 | INPUT_PORTS_START( plotting ) | |
| 1565 | static INPUT_PORTS_START( plotting ) | |
| 1566 | 1566 | PORT_START_TAG("DSWA") |
| 1567 | 1567 | PORT_DIPNAME( 0x01, 0x01, "Play Mode" ) |
| 1568 | 1568 | PORT_DIPSETTING( 0x00, "1 Player" ) |
| r1238 | r1239 | |
| 1611 | 1611 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 1612 | 1612 | INPUT_PORTS_END |
| 1613 | 1613 | |
| 1614 | INPUT_PORTS_START( palamed ) | |
| 1614 | static INPUT_PORTS_START( palamed ) | |
| 1615 | 1615 | PORT_START_TAG("DSWA") |
| 1616 | 1616 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 1617 | 1617 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1670 | 1670 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1671 | 1671 | INPUT_PORTS_END |
| 1672 | 1672 | |
| 1673 | INPUT_PORTS_START( cachat ) | |
| 1673 | static INPUT_PORTS_START( cachat ) | |
| 1674 | 1674 | PORT_START_TAG("DSWA") |
| 1675 | 1675 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 1676 | 1676 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1736 | 1736 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1737 | 1737 | INPUT_PORTS_END |
| 1738 | 1738 | |
| 1739 | INPUT_PORTS_START( tubeit ) | |
| 1739 | static INPUT_PORTS_START( tubeit ) | |
| 1740 | 1740 | PORT_START_TAG("DSWA") |
| 1741 | 1741 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 1742 | 1742 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1802 | 1802 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1803 | 1803 | INPUT_PORTS_END |
| 1804 | 1804 | |
| 1805 | INPUT_PORTS_START( horshoes ) | |
| 1805 | static INPUT_PORTS_START( horshoes ) | |
| 1806 | 1806 | PORT_START_TAG("DSWA") |
| 1807 | 1807 | PORT_DIPNAME( 0x01, 0x01, "Beer Frame Message" ) |
| 1808 | 1808 | PORT_DIPSETTING( 0x01, "Break Time" ) |
| r1238 | r1239 | |
| 1864 | 1864 | PORT_BIT( 0xffff, 0x0000, IPT_TRACKBALL_X ) PORT_SENSITIVITY(50) PORT_KEYDELTA(30) |
| 1865 | 1865 | INPUT_PORTS_END |
| 1866 | 1866 | |
| 1867 | INPUT_PORTS_START( plgirls ) | |
| 1867 | static INPUT_PORTS_START( plgirls ) | |
| 1868 | 1868 | PORT_START_TAG("DSWA") |
| 1869 | 1869 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Demo_Sounds ) ) |
| 1870 | 1870 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 1942 | 1942 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1943 | 1943 | INPUT_PORTS_END |
| 1944 | 1944 | |
| 1945 | INPUT_PORTS_START( plgirls2 ) | |
| 1945 | static INPUT_PORTS_START( plgirls2 ) | |
| 1946 | 1946 | PORT_START_TAG("DSWA") |
| 1947 | 1947 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) /* Listed as Not Used */ |
| 1948 | 1948 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2024 | 2024 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2025 | 2025 | INPUT_PORTS_END |
| 2026 | 2026 | |
| 2027 | INPUT_PORTS_START( cubybop ) | |
| 2027 | static INPUT_PORTS_START( cubybop ) | |
| 2028 | 2028 | PORT_START_TAG("DSWA") |
| 2029 | 2029 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2030 | 2030 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
| 2090 | 2090 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2091 | 2091 | INPUT_PORTS_END |
| 2092 | 2092 | |
| 2093 | INPUT_PORTS_START( evilston ) | |
| 2093 | static INPUT_PORTS_START( evilston ) | |
| 2094 | 2094 | |
| 2095 | 2095 | PORT_START_TAG("DSWA") |
| 2096 | 2096 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| r1238 | r1239 | |
|---|---|---|
| 233 | 233 | PORT_DIPSETTING( 0x09, DEF_STR( 1C_7C ) )\ |
| 234 | 234 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 235 | 235 | |
| 236 | INPUT_PORTS_START( gyruss ) | |
| 236 | static INPUT_PORTS_START( gyruss ) | |
| 237 | 237 | GYRUSS_COMMON |
| 238 | 238 | |
| 239 | 239 | PORT_START_TAG("DSW1") |
| r1238 | r1239 | |
| 270 | 270 | |
| 271 | 271 | /* This is identical to gyruss except for the bonus that has different |
| 272 | 272 | values */ |
| 273 | INPUT_PORTS_START( gyrussce ) | |
| 273 | static INPUT_PORTS_START( gyrussce ) | |
| 274 | 274 | GYRUSS_COMMON |
| 275 | 275 | |
| 276 | 276 | PORT_START_TAG("DSW1") |
| r1238 | r1239 | |
|---|---|---|
| 297 | 297 | INPUT PORTS (dips in eprom) |
| 298 | 298 | ***********************************************************/ |
| 299 | 299 | |
| 300 | INPUT_PORTS_START( groundfx ) | |
| 300 | static INPUT_PORTS_START( groundfx ) | |
| 301 | 301 | PORT_START /* IN0 */ |
| 302 | 302 | PORT_BIT( 0xffff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 303 | 303 |
| r1238 | r1239 | |
|---|---|---|
| 125 | 125 | |
| 126 | 126 | ***************************************************************************/ |
| 127 | 127 | |
| 128 | INPUT_PORTS_START( fastlane ) | |
| 128 | static INPUT_PORTS_START( fastlane ) | |
| 129 | 129 | PORT_START /* DSW #1 */ |
| 130 | 130 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 131 | 131 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 372 | 372 | #define AT_KEYB_HELPER(bit, text, key1) \ |
| 373 | 373 | PORT_BIT( bit, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME(text) PORT_CODE(key1) |
| 374 | 374 | |
| 375 | INPUT_PORTS_START(gamecstl) | |
| 375 | static INPUT_PORTS_START(gamecstl) | |
| 376 | 376 | PORT_START_TAG("pc_keyboard_0") |
| 377 | 377 | PORT_BIT ( 0x0001, 0x0000, IPT_UNUSED ) /* unused scancode 0 */ |
| 378 | 378 | AT_KEYB_HELPER( 0x0002, "Esc", KEYCODE_Q ) /* Esc 01 81 */ |
| r1238 | r1239 | |
|---|---|---|
| 241 | 241 | |
| 242 | 242 | |
| 243 | 243 | /* PORTS */ |
| 244 | INPUT_PORTS_START( astron ) | |
| 244 | static INPUT_PORTS_START( astron ) | |
| 245 | 245 | PORT_START_TAG("DSWA") |
| 246 | 246 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:4,3,2,1") |
| 247 | 247 | PORT_DIPSETTING( 0xe0, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 255 | 255 | * |
| 256 | 256 | *************************************/ |
| 257 | 257 | |
| 258 | INPUT_PORTS_START( fnkyfish ) | |
| 258 | static INPUT_PORTS_START( fnkyfish ) | |
| 259 | 259 | PORT_START /* IN0 */ |
| 260 | 260 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| 261 | 261 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 ) |
| r1238 | r1239 | |
| 314 | 314 | INPUT_PORTS_END |
| 315 | 315 | |
| 316 | 316 | |
| 317 | INPUT_PORTS_START( kangaroo ) | |
| 317 | static INPUT_PORTS_START( kangaroo ) | |
| 318 | 318 | PORT_START /* IN0 */ |
| 319 | 319 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| 320 | 320 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 ) |
| r1238 | r1239 | |
|---|---|---|
| 356 | 356 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) )\ |
| 357 | 357 | PORT_DIPSETTING( 0x8000, DEF_STR( On ) ) |
| 358 | 358 | |
| 359 | INPUT_PORTS_START( cabalt ) | |
| 359 | static INPUT_PORTS_START( cabalt ) | |
| 360 | 360 | CABALDSW |
| 361 | 361 | |
| 362 | 362 | PORT_START_TAG("IN0") |
| r1238 | r1239 | |
| 389 | 389 | |
| 390 | 390 | |
| 391 | 391 | |
| 392 | INPUT_PORTS_START( cabalj ) | |
| 392 | static INPUT_PORTS_START( cabalj ) | |
| 393 | 393 | CABALDSW |
| 394 | 394 | |
| 395 | 395 | /* Since the Trackball version was produced first, and it doesn't use |
| r1238 | r1239 | |
| 436 | 436 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 437 | 437 | INPUT_PORTS_END |
| 438 | 438 | |
| 439 | INPUT_PORTS_START( cabalbl ) | |
| 439 | static INPUT_PORTS_START( cabalbl ) | |
| 440 | 440 | CABALDSW |
| 441 | 441 | |
| 442 | 442 | PORT_START_TAG("IN0") |
| r1238 | r1239 | |
|---|---|---|
| 305 | 305 | |
| 306 | 306 | /* Input Ports */ |
| 307 | 307 | |
| 308 | INPUT_PORTS_START( destryer ) | |
| 308 | static INPUT_PORTS_START( destryer ) | |
| 309 | 309 | PORT_START_TAG("IN0") |
| 310 | 310 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) // CARTUCHO |
| 311 | 311 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) // 1P |
| r1238 | r1239 | |
| 345 | 345 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 ) // M1 |
| 346 | 346 | INPUT_PORTS_END |
| 347 | 347 | |
| 348 | INPUT_PORTS_START( altair ) | |
| 348 | static INPUT_PORTS_START( altair ) | |
| 349 | 349 | PORT_START_TAG("IN0") |
| 350 | 350 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) // CARTUCHO |
| 351 | 351 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) // 1P |
| r1238 | r1239 | |
| 395 | 395 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 ) // M1 |
| 396 | 396 | INPUT_PORTS_END |
| 397 | 397 | |
| 398 | INPUT_PORTS_START( draco ) | |
| 398 | static INPUT_PORTS_START( draco ) | |
| 399 | 399 | PORT_START_TAG("IN0") |
| 400 | 400 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 401 | 401 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 136 | 136 | * |
| 137 | 137 | *************************************/ |
| 138 | 138 | |
| 139 | INPUT_PORTS_START( tickee ) | |
| 139 | static INPUT_PORTS_START( tickee ) | |
| 140 | 140 | PORT_START |
| 141 | 141 | PORT_DIPNAME( 0x03, 0x01, "Game Time/Diff" ) |
| 142 | 142 | PORT_DIPSETTING( 0x03, "Very Fast/Very Easy" ) |
| r1238 | r1239 | |
| 192 | 192 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(70) PORT_KEYDELTA(10) PORT_PLAYER(2) |
| 193 | 193 | INPUT_PORTS_END |
| 194 | 194 | |
| 195 | INPUT_PORTS_START( ghoshunt ) | |
| 195 | static INPUT_PORTS_START( ghoshunt ) | |
| 196 | 196 | PORT_START |
| 197 | 197 | PORT_DIPNAME( 0x01, 0x01, "Messages in Play") |
| 198 | 198 | PORT_DIPSETTING( 0x01, DEF_STR( Off )) |
| r1238 | r1239 | |
|---|---|---|
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | |
| 152 | INPUT_PORTS_START(hotblock) | |
| 152 | static INPUT_PORTS_START(hotblock) | |
| 153 | 153 | PORT_START /* 8bit */ |
| 154 | 154 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 155 | 155 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
|---|---|---|
| 220 | 220 | 4096 /* data cache size */ |
| 221 | 221 | }; |
| 222 | 222 | |
| 223 | INPUT_PORTS_START( srmp5 ) | |
| 223 | static INPUT_PORTS_START( srmp5 ) | |
| 224 | 224 | PORT_START |
| 225 | 225 | PORT_DIPNAME( 0x0001, 0x0001, "0-0" ) |
| 226 | 226 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 80 | 80 | |
| 81 | 81 | |
| 82 | 82 | |
| 83 | INPUT_PORTS_START( suprloco ) | |
| 83 | static INPUT_PORTS_START( suprloco ) | |
| 84 | 84 | PORT_START_TAG("IN0") |
| 85 | 85 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 86 | 86 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 569 | 569 | INPUT_PORTS_END |
| 570 | 570 | |
| 571 | 571 | |
| 572 | INPUT_PORTS_START( gunforce ) | |
| 572 | static INPUT_PORTS_START( gunforce ) | |
| 573 | 573 | PORT_INCLUDE(m92_2player) |
| 574 | 574 | |
| 575 | 575 | PORT_MODIFY("DIPS21") |
| r1238 | r1239 | |
| 590 | 590 | INPUT_PORTS_END |
| 591 | 591 | |
| 592 | 592 | |
| 593 | INPUT_PORTS_START( lethalth ) | |
| 593 | static INPUT_PORTS_START( lethalth ) | |
| 594 | 594 | PORT_INCLUDE(m92_2player) |
| 595 | 595 | |
| 596 | 596 | PORT_MODIFY("COINS_DIPS") |
| r1238 | r1239 | |
| 619 | 619 | INPUT_PORTS_END |
| 620 | 620 | |
| 621 | 621 | |
| 622 | INPUT_PORTS_START( hook ) | |
| 622 | static INPUT_PORTS_START( hook ) | |
| 623 | 623 | PORT_INCLUDE(m92_4player) |
| 624 | 624 | |
| 625 | 625 | PORT_MODIFY("DIPS21") |
| r1238 | r1239 | |
| 643 | 643 | INPUT_PORTS_END |
| 644 | 644 | |
| 645 | 645 | |
| 646 | INPUT_PORTS_START( majtitl2 ) | |
| 646 | static INPUT_PORTS_START( majtitl2 ) | |
| 647 | 647 | PORT_INCLUDE(m92_4player) |
| 648 | 648 | |
| 649 | 649 | PORT_MODIFY("COINS_DIPS") |
| r1238 | r1239 | |
| 692 | 692 | INPUT_PORTS_END |
| 693 | 693 | |
| 694 | 694 | |
| 695 | INPUT_PORTS_START( mysticri ) | |
| 695 | static INPUT_PORTS_START( mysticri ) | |
| 696 | 696 | PORT_INCLUDE(m92_2player) |
| 697 | 697 | |
| 698 | 698 | PORT_MODIFY("DIPS21") |
| r1238 | r1239 | |
| 713 | 713 | INPUT_PORTS_END |
| 714 | 714 | |
| 715 | 715 | |
| 716 | INPUT_PORTS_START( uccops ) | |
| 716 | static INPUT_PORTS_START( uccops ) | |
| 717 | 717 | PORT_INCLUDE(m92_3player) |
| 718 | 718 | |
| 719 | 719 | PORT_MODIFY("DIPS21") |
| r1238 | r1239 | |
| 736 | 736 | INPUT_PORTS_END |
| 737 | 737 | |
| 738 | 738 | |
| 739 | INPUT_PORTS_START( rtypeleo ) | |
| 739 | static INPUT_PORTS_START( rtypeleo ) | |
| 740 | 740 | PORT_INCLUDE(m92_2player) |
| 741 | 741 | |
| 742 | 742 | PORT_MODIFY("DIPS21") |
| r1238 | r1239 | |
| 754 | 754 | INPUT_PORTS_END |
| 755 | 755 | |
| 756 | 756 | |
| 757 | INPUT_PORTS_START( inthunt ) | |
| 757 | static INPUT_PORTS_START( inthunt ) | |
| 758 | 758 | PORT_INCLUDE(m92_2player) |
| 759 | 759 | |
| 760 | 760 | PORT_MODIFY("DIPS21") |
| r1238 | r1239 | |
| 775 | 775 | INPUT_PORTS_END |
| 776 | 776 | |
| 777 | 777 | |
| 778 | INPUT_PORTS_START( nbbatman ) | |
| 778 | static INPUT_PORTS_START( nbbatman ) | |
| 779 | 779 | PORT_INCLUDE(m92_4player) |
| 780 | 780 | |
| 781 | 781 | PORT_MODIFY("DIPS21") |
| r1238 | r1239 | |
| 796 | 796 | INPUT_PORTS_END |
| 797 | 797 | |
| 798 | 798 | |
| 799 | INPUT_PORTS_START( psoldier ) | |
| 799 | static INPUT_PORTS_START( psoldier ) | |
| 800 | 800 | PORT_INCLUDE(m92_2player) |
| 801 | 801 | |
| 802 | 802 | PORT_MODIFY("DIPS21") |
| r1238 | r1239 | |
| 817 | 817 | INPUT_PORTS_END |
| 818 | 818 | |
| 819 | 819 | |
| 820 | INPUT_PORTS_START( dsccr94j ) | |
| 820 | static INPUT_PORTS_START( dsccr94j ) | |
| 821 | 821 | PORT_INCLUDE(m92_4player) |
| 822 | 822 | /* Dip Switch 2, dip 2 is listed as "Don't Change" and is "OFF" */ |
| 823 | 823 | |
| r1238 | r1239 | |
| 857 | 857 | INPUT_PORTS_END |
| 858 | 858 | |
| 859 | 859 | |
| 860 | INPUT_PORTS_START( gunforc2 ) | |
| 860 | static INPUT_PORTS_START( gunforc2 ) | |
| 861 | 861 | PORT_INCLUDE(m92_2player) |
| 862 | 862 | |
| 863 | 863 | PORT_MODIFY("DIPS21") |
| r1238 | r1239 | |
|---|---|---|
| 340 | 340 | } |
| 341 | 341 | |
| 342 | 342 | |
| 343 | INPUT_PORTS_START( hal21 ) | |
| 343 | static INPUT_PORTS_START( hal21 ) | |
| 344 | 344 | PORT_START_TAG("IN0") |
| 345 | 345 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 346 | 346 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| r1238 | r1239 | |
| 419 | 419 | |
| 420 | 420 | /**************************************************************************/ |
| 421 | 421 | |
| 422 | INPUT_PORTS_START( aso ) | |
| 422 | static INPUT_PORTS_START( aso ) | |
| 423 | 423 | PORT_START_TAG("IN0") |
| 424 | 424 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 425 | 425 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r1238 | r1239 | |
|---|---|---|
| 364 | 364 | |
| 365 | 365 | ***************************************************************************/ |
| 366 | 366 | |
| 367 | INPUT_PORTS_START( vendet4p ) | |
| 367 | static INPUT_PORTS_START( vendet4p ) | |
| 368 | 368 | PORT_START_TAG("IN0") |
| 369 | 369 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 370 | 370 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 423 | 423 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN4 ) |
| 424 | 424 | INPUT_PORTS_END |
| 425 | 425 | |
| 426 | INPUT_PORTS_START( vendetta ) | |
| 426 | static INPUT_PORTS_START( vendetta ) | |
| 427 | 427 | PORT_START_TAG("IN0") |
| 428 | 428 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 429 | 429 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 462 | 462 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 463 | 463 | INPUT_PORTS_END |
| 464 | 464 | |
| 465 | INPUT_PORTS_START( esckids ) | |
| 465 | static INPUT_PORTS_START( esckids ) | |
| 466 | 466 | PORT_START_TAG("IN0") // Player 1 Control |
| 467 | 467 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 468 | 468 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 521 | 521 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN4 ) |
| 522 | 522 | INPUT_PORTS_END |
| 523 | 523 | |
| 524 | INPUT_PORTS_START( esckidsj ) | |
| 524 | static INPUT_PORTS_START( esckidsj ) | |
| 525 | 525 | PORT_START_TAG("IN0") // Player 1 Control |
| 526 | 526 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 527 | 527 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 57 | 57 | extern int fcombat_sh; |
| 58 | 58 | extern int fcombat_sv; |
| 59 | 59 | |
| 60 | INPUT_PORTS_START( fcombat ) | |
| 60 | static INPUT_PORTS_START( fcombat ) | |
| 61 | 61 | PORT_START_TAG("IN0") /* player 1 inputs (muxed on 0xe000) */ |
| 62 | 62 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 63 | 63 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 179 | 179 | ADDRESS_MAP_END |
| 180 | 180 | |
| 181 | 181 | |
| 182 | INPUT_PORTS_START( destroyr ) | |
| 182 | static INPUT_PORTS_START( destroyr ) | |
| 183 | 183 | PORT_START /* IN0 */ |
| 184 | 184 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) /* call 7400 */ |
| 185 | 185 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1238 | r1239 | |
|---|---|---|
| 110 | 110 | ADDRESS_MAP_END |
| 111 | 111 | |
| 112 | 112 | |
| 113 | INPUT_PORTS_START( thoop2 ) | |
| 113 | static INPUT_PORTS_START( thoop2 ) | |
| 114 | 114 | |
| 115 | 115 | PORT_START /* DSW #2 */ |
| 116 | 116 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| r1238 | r1239 | |
|---|---|---|
| 208 | 208 | There are 4 players, 2 sets of dipswitches and 2 misc |
| 209 | 209 | *******************************************************************************/ |
| 210 | 210 | |
| 211 | INPUT_PORTS_START( wwfwfest ) | |
| 211 | static INPUT_PORTS_START( wwfwfest ) | |
| 212 | 212 | PORT_START /* Player 1 */ |
| 213 | 213 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) |
| 214 | 214 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) |
| r1238 | r1239 | |
|---|---|---|
| 85 | 85 | ADDRESS_MAP_END |
| 86 | 86 | |
| 87 | 87 | |
| 88 | INPUT_PORTS_START( marineb ) | |
| 88 | static INPUT_PORTS_START( marineb ) | |
| 89 | 89 | PORT_START /* IN0 */ |
| 90 | 90 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 91 | 91 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| r1238 | r1239 | |
| 135 | 135 | PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 136 | 136 | INPUT_PORTS_END |
| 137 | 137 | |
| 138 | INPUT_PORTS_START( changes ) | |
| 138 | static INPUT_PORTS_START( changes ) | |
| 139 | 139 | PORT_START /* IN0 */ |
| 140 | 140 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 141 | 141 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| r1238 | r1239 | |
| 182 | 182 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 183 | 183 | INPUT_PORTS_END |
| 184 | 184 | |
| 185 | INPUT_PORTS_START( hoccer ) | |
| 185 | static INPUT_PORTS_START( hoccer ) | |
| 186 | 186 | PORT_START /* IN0 */ |
| 187 | 187 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 188 | 188 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| r1238 | r1239 | |
| 230 | 230 | PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 231 | 231 | INPUT_PORTS_END |
| 232 | 232 | |
| 233 | INPUT_PORTS_START( wanted ) | |
| 233 | static INPUT_PORTS_START( wanted ) | |
| 234 | 234 | PORT_START /* IN0 */ |
| 235 | 235 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 236 | 236 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| r1238 | r1239 | |
| 308 | 308 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 309 | 309 | INPUT_PORTS_END |
| 310 | 310 | |
| 311 | INPUT_PORTS_START( bcruzm12 ) | |
| 311 | static INPUT_PORTS_START( bcruzm12 ) | |
| 312 | 312 | PORT_START /* IN0 */ |
| 313 | 313 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 314 | 314 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| r1238 | r1239 | |
|---|---|---|
| 206 | 206 | |
| 207 | 207 | /**********************************************************************************/ |
| 208 | 208 | |
| 209 | INPUT_PORTS_START( pktgaldx ) | |
| 209 | static INPUT_PORTS_START( pktgaldx ) | |
| 210 | 210 | PORT_START /* 16bit */ |
| 211 | 211 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 212 | 212 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 130 | 130 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )\ |
| 131 | 131 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 132 | 132 | |
| 133 | INPUT_PORTS_START( timeplt ) | |
| 133 | static INPUT_PORTS_START( timeplt ) | |
| 134 | 134 | TIMEPILOT_INPUTS |
| 135 | 135 | |
| 136 | 136 | PORT_START_TAG("DSW0") |
| r1238 | r1239 | |
| 195 | 195 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 196 | 196 | INPUT_PORTS_END |
| 197 | 197 | |
| 198 | INPUT_PORTS_START( psurge ) | |
| 198 | static INPUT_PORTS_START( psurge ) | |
| 199 | 199 | TIMEPILOT_INPUTS |
| 200 | 200 | |
| 201 | 201 | PORT_START_TAG("DSW0") |
| r1238 | r1239 | |
|---|---|---|
| 174 | 174 | AM_RANGE(0x8000, 0xffff) AM_ROM AM_WRITE(multigam_mapper2_w) |
| 175 | 175 | ADDRESS_MAP_END |
| 176 | 176 | |
| 177 | INPUT_PORTS_START( multigam ) | |
| 177 | static INPUT_PORTS_START( multigam ) | |
| 178 | 178 | PORT_START /* IN0 */ |
| 179 | 179 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 180 | 180 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 1214 | 1214 | * |
| 1215 | 1215 | *************************************/ |
| 1216 | 1216 | |
| 1217 | INPUT_PORTS_START( spclords ) | |
| 1217 | static INPUT_PORTS_START( spclords ) | |
| 1218 | 1218 | PORT_START /* 68.SW (A1=0) */ |
| 1219 | 1219 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1220 | 1220 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) /* BLUE button */ |
| r1238 | r1239 | |
| 1275 | 1275 | INPUT_PORTS_END |
| 1276 | 1276 | |
| 1277 | 1277 | |
| 1278 | INPUT_PORTS_START( motofren ) | |
| 1278 | static INPUT_PORTS_START( motofren ) | |
| 1279 | 1279 | PORT_START /* 68.SW (A1=0) */ |
| 1280 | 1280 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1281 | 1281 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) /* Start/fire */ |
| r1238 | r1239 | |
| 1321 | 1321 | INPUT_PORTS_END |
| 1322 | 1322 | |
| 1323 | 1323 | |
| 1324 | INPUT_PORTS_START( rrreveng ) | |
| 1324 | static INPUT_PORTS_START( rrreveng ) | |
| 1325 | 1325 | PORT_START /* 68.SW (A1=0) */ |
| 1326 | 1326 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1327 | 1327 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
|---|---|---|
| 184 | 184 | |
| 185 | 185 | ***************************************************************************/ |
| 186 | 186 | |
| 187 | INPUT_PORTS_START( gogomile ) | |
| 187 | static INPUT_PORTS_START( gogomile ) | |
| 188 | 188 | |
| 189 | 189 | PORT_START // IN0 - $800000.w |
| 190 | 190 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
| 268 | 268 | |
| 269 | 269 | /* Same as gogomile, but the default country is different and |
| 270 | 270 | the coinage settings too. */ |
| 271 | INPUT_PORTS_START( gogomilj ) | |
| 271 | static INPUT_PORTS_START( gogomilj ) | |
| 272 | 272 | |
| 273 | 273 | PORT_START // IN0 - $800000.w |
| 274 | 274 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
| 351 | 351 | |
| 352 | 352 | |
| 353 | 353 | |
| 354 | INPUT_PORTS_START( pbancho ) | |
| 354 | static INPUT_PORTS_START( pbancho ) | |
| 355 | 355 | |
| 356 | 356 | PORT_START // IN0 - $800000.w |
| 357 | 357 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
|---|---|---|
| 821 | 821 | |
| 822 | 822 | /*****************************************************************************/ |
| 823 | 823 | |
| 824 | INPUT_PORTS_START( nwktr ) | |
| 824 | static INPUT_PORTS_START( nwktr ) | |
| 825 | 825 | PORT_START |
| 826 | 826 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) |
| 827 | 827 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 106 | 106 | |
| 107 | 107 | |
| 108 | 108 | |
| 109 | INPUT_PORTS_START( vulgus ) | |
| 109 | static INPUT_PORTS_START( vulgus ) | |
| 110 | 110 | PORT_START /* IN0 */ |
| 111 | 111 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 112 | 112 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 73 | 73 | ADDRESS_MAP_END |
| 74 | 74 | |
| 75 | 75 | |
| 76 | INPUT_PORTS_START( circus ) | |
| 76 | static INPUT_PORTS_START( circus ) | |
| 77 | 77 | PORT_START /* IN0 */ |
| 78 | 78 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) |
| 79 | 79 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| r1238 | r1239 | |
| 107 | 107 | INPUT_PORTS_END |
| 108 | 108 | |
| 109 | 109 | |
| 110 | INPUT_PORTS_START( robotbwl ) | |
| 110 | static INPUT_PORTS_START( robotbwl ) | |
| 111 | 111 | PORT_START /* IN0 */ |
| 112 | 112 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) |
| 113 | 113 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 142 | 142 | INPUT_PORTS_END |
| 143 | 143 | |
| 144 | 144 | |
| 145 | INPUT_PORTS_START( crash ) | |
| 145 | static INPUT_PORTS_START( crash ) | |
| 146 | 146 | PORT_START /* IN0 */ |
| 147 | 147 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) |
| 148 | 148 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| r1238 | r1239 | |
| 178 | 178 | INPUT_PORTS_END |
| 179 | 179 | |
| 180 | 180 | |
| 181 | INPUT_PORTS_START( ripcord ) | |
| 181 | static INPUT_PORTS_START( ripcord ) | |
| 182 | 182 | PORT_START /* IN0 */ |
| 183 | 183 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) |
| 184 | 184 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| r1238 | r1239 | |
|---|---|---|
| 164 | 164 | |
| 165 | 165 | |
| 166 | 166 | |
| 167 | INPUT_PORTS_START( sderby ) | |
| 167 | static INPUT_PORTS_START( sderby ) | |
| 168 | 168 | PORT_START /* 0x308000.w */ |
| 169 | 169 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 170 | 170 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 184 | 184 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 185 | 185 | INPUT_PORTS_END |
| 186 | 186 | |
| 187 | INPUT_PORTS_START( pmroulet ) | |
| 187 | static INPUT_PORTS_START( pmroulet ) | |
| 188 | 188 | PORT_START |
| 189 | 189 | PORT_BIT( 0x000f, IP_ACTIVE_LOW, IPT_UNKNOWN ) // ? |
| 190 | 190 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_VBLANK ) // it must be toggled to boot anyway |
| r1238 | r1239 | |
|---|---|---|
| 52 | 52 | AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ(input_port_3_r) |
| 53 | 53 | ADDRESS_MAP_END |
| 54 | 54 | |
| 55 | INPUT_PORTS_START( tinvader ) | |
| 55 | static INPUT_PORTS_START( tinvader ) | |
| 56 | 56 | |
| 57 | 57 | PORT_START_TAG("1E80") |
| 58 | 58 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 104 | 104 | |
| 105 | 105 | /* Almost identical, no number of bases selection */ |
| 106 | 106 | |
| 107 | INPUT_PORTS_START( sinvader ) | |
| 107 | static INPUT_PORTS_START( sinvader ) | |
| 108 | 108 | |
| 109 | 109 | PORT_START_TAG("1E80") |
| 110 | 110 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
| 152 | 152 | |
| 153 | 153 | INPUT_PORTS_END |
| 154 | 154 | |
| 155 | INPUT_PORTS_START( dodgem ) | |
| 155 | static INPUT_PORTS_START( dodgem ) | |
| 156 | 156 | |
| 157 | 157 | PORT_START_TAG("1E80") |
| 158 | 158 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| r1238 | r1239 | |
|---|---|---|
| 211 | 211 | |
| 212 | 212 | |
| 213 | 213 | |
| 214 | INPUT_PORTS_START( shangha3 ) | |
| 214 | static INPUT_PORTS_START( shangha3 ) | |
| 215 | 215 | PORT_START_TAG("IN0") |
| 216 | 216 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 217 | 217 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 290 | 290 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 291 | 291 | INPUT_PORTS_END |
| 292 | 292 | |
| 293 | INPUT_PORTS_START( heberpop ) | |
| 293 | static INPUT_PORTS_START( heberpop ) | |
| 294 | 294 | PORT_START_TAG("IN0") |
| 295 | 295 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 296 | 296 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 369 | 369 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 370 | 370 | INPUT_PORTS_END |
| 371 | 371 | |
| 372 | INPUT_PORTS_START( blocken ) | |
| 372 | static INPUT_PORTS_START( blocken ) | |
| 373 | 373 | PORT_START_TAG("IN0") |
| 374 | 374 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 375 | 375 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 118 | 118 | ADDRESS_MAP_END |
| 119 | 119 | |
| 120 | 120 | |
| 121 | INPUT_PORTS_START( pkscramble ) | |
| 121 | static INPUT_PORTS_START( pkscramble ) | |
| 122 | 122 | PORT_START /* Dips */ |
| 123 | 123 | PORT_DIPNAME( 0x0007, 0x0003, "Level" ) |
| 124 | 124 | PORT_DIPSETTING( 0x0000, "0" ) |
| r1238 | r1239 | |
|---|---|---|
| 178 | 178 | |
| 179 | 179 | |
| 180 | 180 | |
| 181 | INPUT_PORTS_START( vastar ) | |
| 181 | static INPUT_PORTS_START( vastar ) | |
| 182 | 182 | PORT_START_TAG("IN0") |
| 183 | 183 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 184 | 184 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 25 | 25 | AM_RANGE(0xfff80000, 0xffffffff) AM_ROM AM_REGION(REGION_CPU1, 0) // mirror to prevent crashing |
| 26 | 26 | ADDRESS_MAP_END |
| 27 | 27 | |
| 28 | INPUT_PORTS_START( 39in1 ) | |
| 28 | static INPUT_PORTS_START( 39in1 ) | |
| 29 | 29 | INPUT_PORTS_END |
| 30 | 30 | |
| 31 | 31 | static MACHINE_DRIVER_START( 39in1 ) |
| r1238 | r1239 | |
|---|---|---|
| 184 | 184 | |
| 185 | 185 | |
| 186 | 186 | |
| 187 | INPUT_PORTS_START( taotaido ) | |
| 187 | static INPUT_PORTS_START( taotaido ) | |
| 188 | 188 | PORT_START_TAG("IN0") /* Player 1 controls (0xffff81.b) */ |
| 189 | 189 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 190 | 190 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 315 | 315 | #endif |
| 316 | 316 | INPUT_PORTS_END |
| 317 | 317 | |
| 318 | INPUT_PORTS_START( taotaida ) | |
| 318 | static INPUT_PORTS_START( taotaida ) | |
| 319 | 319 | PORT_INCLUDE(taotaido) |
| 320 | 320 | |
| 321 | 321 | PORT_MODIFY("IN0") |
| r1238 | r1239 | |
|---|---|---|
| 43 | 43 | ADDRESS_MAP_END |
| 44 | 44 | |
| 45 | 45 | |
| 46 | INPUT_PORTS_START( fortecar ) | |
| 46 | static INPUT_PORTS_START( fortecar ) | |
| 47 | 47 | PORT_START /* 8bit */ |
| 48 | 48 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 49 | 49 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 205 | 205 | * |
| 206 | 206 | *************************************/ |
| 207 | 207 | |
| 208 | INPUT_PORTS_START( relief ) | |
| 208 | static INPUT_PORTS_START( relief ) | |
| 209 | 209 | PORT_START /* 260000 */ |
| 210 | 210 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Button D0") PORT_CODE(KEYCODE_Z) |
| 211 | 211 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Button D1") PORT_CODE(KEYCODE_X) |
| r1238 | r1239 | |
|---|---|---|
| 143 | 143 | |
| 144 | 144 | /***************************************************************************************/ |
| 145 | 145 | |
| 146 | INPUT_PORTS_START( gunpey ) | |
| 146 | static INPUT_PORTS_START( gunpey ) | |
| 147 | 147 | |
| 148 | 148 | INPUT_PORTS_END |
| 149 | 149 |
| r1238 | r1239 | |
|---|---|---|
| 187 | 187 | |
| 188 | 188 | /******************************************************************************/ |
| 189 | 189 | |
| 190 | INPUT_PORTS_START( f3 ) | |
| 190 | static INPUT_PORTS_START( f3 ) | |
| 191 | 191 | PORT_START |
| 192 | 192 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 193 | 193 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 253 | 253 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(4) |
| 254 | 254 | INPUT_PORTS_END |
| 255 | 255 | |
| 256 | INPUT_PORTS_START( kn ) | |
| 256 | static INPUT_PORTS_START( kn ) | |
| 257 | 257 | PORT_START |
| 258 | 258 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 259 | 259 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 305 | 305 | ADDRESS_MAP_END |
| 306 | 306 | |
| 307 | 307 | |
| 308 | INPUT_PORTS_START( bang ) | |
| 308 | static INPUT_PORTS_START( bang ) | |
| 309 | 309 | PORT_START /* 1P INPUTS */ |
| 310 | 310 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_IMPULSE(1) PORT_PLAYER(1) |
| 311 | 311 | |
| r1238 | r1239 | |
| 459 | 459 | ADDRESS_MAP_END |
| 460 | 460 | |
| 461 | 461 | |
| 462 | INPUT_PORTS_START( alighunt ) | |
| 462 | static INPUT_PORTS_START( alighunt ) | |
| 463 | 463 | |
| 464 | 464 | PORT_START /* DSW #1 */ |
| 465 | 465 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 690 | 690 | ADDRESS_MAP_END |
| 691 | 691 | |
| 692 | 692 | |
| 693 | INPUT_PORTS_START( touchgo ) | |
| 693 | static INPUT_PORTS_START( touchgo ) | |
| 694 | 694 | |
| 695 | 695 | PORT_START /* DSW #2 + 1P INPUTS */ |
| 696 | 696 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 970 | 970 | ADDRESS_MAP_END |
| 971 | 971 | |
| 972 | 972 | |
| 973 | INPUT_PORTS_START( snowboar ) | |
| 973 | static INPUT_PORTS_START( snowboar ) | |
| 974 | 974 | PORT_START /* 1P INPUTS */ |
| 975 | 975 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 976 | 976 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1161 | 1161 | ADDRESS_MAP_END |
| 1162 | 1162 | |
| 1163 | 1163 | |
| 1164 | INPUT_PORTS_START( wrally2 ) | |
| 1164 | static INPUT_PORTS_START( wrally2 ) | |
| 1165 | 1165 | PORT_START /* DIPSW #2 + 1P INPUTS */ |
| 1166 | 1166 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1167 | 1167 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 118 | 118 | }; |
| 119 | 119 | |
| 120 | 120 | |
| 121 | INPUT_PORTS_START( homerun ) | |
| 121 | static INPUT_PORTS_START( homerun ) | |
| 122 | 122 | PORT_START |
| 123 | 123 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 124 | 124 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) |
| r1238 | r1239 | |
| 148 | 148 | |
| 149 | 149 | INPUT_PORTS_END |
| 150 | 150 | |
| 151 | INPUT_PORTS_START( dynashot ) | |
| 151 | static INPUT_PORTS_START( dynashot ) | |
| 152 | 152 | PORT_START |
| 153 | 153 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 154 | 154 | PORT_BIT( 0xf7, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| r1238 | r1239 | |
|---|---|---|
| 158 | 158 | AM_RANGE(0x0000, 0x03ff) AM_RAM AM_SHARE(1) /* main CPU shared RAM */ |
| 159 | 159 | ADDRESS_MAP_END |
| 160 | 160 | |
| 161 | INPUT_PORTS_START( champbas ) | |
| 161 | static INPUT_PORTS_START( champbas ) | |
| 162 | 162 | PORT_START /* IN0 */ |
| 163 | 163 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 164 | 164 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
|---|---|---|
| 215 | 215 | |
| 216 | 216 | |
| 217 | 217 | |
| 218 | INPUT_PORTS_START( baraduke ) | |
| 218 | static INPUT_PORTS_START( baraduke ) | |
| 219 | 219 | PORT_START /* DSW A */ |
| 220 | 220 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 221 | 221 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Lives ) ) |
| r1238 | r1239 | |
| 295 | 295 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 296 | 296 | INPUT_PORTS_END |
| 297 | 297 | |
| 298 | INPUT_PORTS_START( metrocrs ) | |
| 298 | static INPUT_PORTS_START( metrocrs ) | |
| 299 | 299 | PORT_START /* DSW A */ |
| 300 | 300 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 301 | 301 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Coin_A ) ) |
| r1238 | r1239 | |
|---|---|---|
| 110 | 110 | ADDRESS_MAP_END |
| 111 | 111 | |
| 112 | 112 | |
| 113 | INPUT_PORTS_START( ssozumo ) | |
| 113 | static INPUT_PORTS_START( ssozumo ) | |
| 114 | 114 | PORT_START /* IN0 */ |
| 115 | 115 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 116 | 116 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 713 | 713 | *************************************/ |
| 714 | 714 | |
| 715 | 715 | /* verified from wiring diagram, plus DIP switches from manual */ |
| 716 | INPUT_PORTS_START( solarfox ) | |
| 716 | static INPUT_PORTS_START( solarfox ) | |
| 717 | 717 | PORT_START_TAG("SSIO.IP0") /* J4 1-8 */ |
| 718 | 718 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 719 | 719 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 764 | 764 | |
| 765 | 765 | |
| 766 | 766 | /* verified from wiring diagram, plus DIP switches from manual */ |
| 767 | INPUT_PORTS_START( kick ) | |
| 767 | static INPUT_PORTS_START( kick ) | |
| 768 | 768 | PORT_START_TAG("SSIO.IP0") /* J4 1-8 */ |
| 769 | 769 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 770 | 770 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 799 | 799 | |
| 800 | 800 | |
| 801 | 801 | /* verified from wiring diagram, plus DIP switches from manual */ |
| 802 | INPUT_PORTS_START( kickc ) | |
| 802 | static INPUT_PORTS_START( kickc ) | |
| 803 | 803 | PORT_START_TAG("SSIO.IP0") /* J4 1-8 */ |
| 804 | 804 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 805 | 805 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 839 | 839 | |
| 840 | 840 | |
| 841 | 841 | /* verified from wiring diagram, plus DIP switches from manual */ |
| 842 | INPUT_PORTS_START( shollow ) | |
| 842 | static INPUT_PORTS_START( shollow ) | |
| 843 | 843 | PORT_START_TAG("SSIO.IP0") /* J4 1-8 */ |
| 844 | 844 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 845 | 845 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 881 | 881 | |
| 882 | 882 | |
| 883 | 883 | /* verified from wiring diagram, plus DIP switches from manual */ |
| 884 | INPUT_PORTS_START( tron ) | |
| 884 | static INPUT_PORTS_START( tron ) | |
| 885 | 885 | PORT_START_TAG("SSIO.IP0") /* J4 1-8 */ |
| 886 | 886 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 887 | 887 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 928 | 928 | |
| 929 | 929 | |
| 930 | 930 | /* verified from wiring diagram, plus DIP switches from manual */ |
| 931 | INPUT_PORTS_START( kroozr ) | |
| 931 | static INPUT_PORTS_START( kroozr ) | |
| 932 | 932 | PORT_START_TAG("SSIO.IP0") /* J4 1-8 */ |
| 933 | 933 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 934 | 934 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 969 | 969 | |
| 970 | 970 | |
| 971 | 971 | /* verified from wiring diagram, plus DIP switches from manual */ |
| 972 | INPUT_PORTS_START( domino ) | |
| 972 | static INPUT_PORTS_START( domino ) | |
| 973 | 973 | PORT_START_TAG("SSIO.IP0") /* J4 1-8 */ |
| 974 | 974 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 975 | 975 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1019 | 1019 | |
| 1020 | 1020 | |
| 1021 | 1021 | /* verified from wiring diagram, plus DIP switches from manual */ |
| 1022 | INPUT_PORTS_START( journey ) | |
| 1022 | static INPUT_PORTS_START( journey ) | |
| 1023 | 1023 | PORT_START_TAG("SSIO.IP0") /* J4 1-8 */ |
| 1024 | 1024 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1025 | 1025 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1063 | 1063 | |
| 1064 | 1064 | |
| 1065 | 1065 | /* verified from wiring diagram, plus DIP switches from manual */ |
| 1066 | INPUT_PORTS_START( wacko ) | |
| 1066 | static INPUT_PORTS_START( wacko ) | |
| 1067 | 1067 | PORT_START_TAG("SSIO.IP0") /* J4 1-8 */ |
| 1068 | 1068 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1069 | 1069 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1111 | 1111 | |
| 1112 | 1112 | |
| 1113 | 1113 | /* not verified, no manual found */ |
| 1114 | INPUT_PORTS_START( twotiger ) | |
| 1114 | static INPUT_PORTS_START( twotiger ) | |
| 1115 | 1115 | PORT_START_TAG("SSIO.IP0") /* J4 1-8 */ |
| 1116 | 1116 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1117 | 1117 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1152 | 1152 | |
| 1153 | 1153 | |
| 1154 | 1154 | /* not verified, no manual found */ |
| 1155 | INPUT_PORTS_START( twotigrc ) | |
| 1155 | static INPUT_PORTS_START( twotigrc ) | |
| 1156 | 1156 | PORT_START_TAG("SSIO.IP0") /* J4 1-8 */ |
| 1157 | 1157 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1158 | 1158 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1185 | 1185 | |
| 1186 | 1186 | |
| 1187 | 1187 | /* verified from wiring diagram, plus DIP switches from manual */ |
| 1188 | INPUT_PORTS_START( tapper ) | |
| 1188 | static INPUT_PORTS_START( tapper ) | |
| 1189 | 1189 | PORT_START_TAG("SSIO.IP0") /* J4 1-8 */ |
| 1190 | 1190 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1191 | 1191 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1234 | 1234 | |
| 1235 | 1235 | |
| 1236 | 1236 | /* not verified, no manual found */ |
| 1237 | INPUT_PORTS_START( timber ) | |
| 1237 | static INPUT_PORTS_START( timber ) | |
| 1238 | 1238 | PORT_START_TAG("SSIO.IP0") /* J4 1-8 */ |
| 1239 | 1239 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1240 | 1240 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1285 | 1285 | |
| 1286 | 1286 | |
| 1287 | 1287 | /* verified from wiring diagram, plus DIP switches from manual */ |
| 1288 | INPUT_PORTS_START( dotron ) | |
| 1288 | static INPUT_PORTS_START( dotron ) | |
| 1289 | 1289 | PORT_START_TAG("SSIO.IP0") /* J4 1-8 */ |
| 1290 | 1290 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1291 | 1291 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1328 | 1328 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) |
| 1329 | 1329 | INPUT_PORTS_END |
| 1330 | 1330 | |
| 1331 | INPUT_PORTS_START( dotrone ) | |
| 1331 | static INPUT_PORTS_START( dotrone ) | |
| 1332 | 1332 | PORT_INCLUDE(dotron) |
| 1333 | 1333 | |
| 1334 | 1334 | PORT_MODIFY("SSIO.IP2") |
| r1238 | r1239 | |
| 1339 | 1339 | |
| 1340 | 1340 | |
| 1341 | 1341 | /* verified from wiring diagram, plus DIP switches from manual */ |
| 1342 | INPUT_PORTS_START( nflfoot ) | |
| 1342 | static INPUT_PORTS_START( nflfoot ) | |
| 1343 | 1343 | PORT_START_TAG("SSIO.IP0") /* J4 1-8 */ |
| 1344 | 1344 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1345 | 1345 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BILL1 ) |
| r1238 | r1239 | |
| 1386 | 1386 | |
| 1387 | 1387 | /* "wiring diagram was not available at time of publication" according to the manual */ |
| 1388 | 1388 | /* DIPs verified from the manual */ |
| 1389 | INPUT_PORTS_START( demoderb ) | |
| 1389 | static INPUT_PORTS_START( demoderb ) | |
| 1390 | 1390 | PORT_START_TAG("SSIO.IP0") /* J4 1-8 */ |
| 1391 | 1391 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1392 | 1392 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 270 | 270 | INPUT_PORTS_END |
| 271 | 271 | |
| 272 | 272 | |
| 273 | INPUT_PORTS_START( beaminva ) | |
| 273 | static INPUT_PORTS_START( beaminva ) | |
| 274 | 274 | PORT_START_TAG("IN0") |
| 275 | 275 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 276 | 276 | PORT_DIPSETTING( 0x00, "3" ) |
| r1238 | r1239 | |
|---|---|---|
| 322 | 322 | |
| 323 | 323 | /******************************************************************************/ |
| 324 | 324 | |
| 325 | INPUT_PORTS_START( firebarr ) | |
| 325 | static INPUT_PORTS_START( firebarr ) | |
| 326 | 326 | PORT_INCLUDE(m107_2player) |
| 327 | 327 | |
| 328 | 328 | PORT_MODIFY("COINS_DIPS") |
| r1238 | r1239 | |
| 339 | 339 | INPUT_PORTS_END |
| 340 | 340 | |
| 341 | 341 | |
| 342 | INPUT_PORTS_START( dsoccr94 ) | |
| 342 | static INPUT_PORTS_START( dsoccr94 ) | |
| 343 | 343 | PORT_INCLUDE(m107_4player) |
| 344 | 344 | |
| 345 | 345 | PORT_MODIFY("COINS_DIPS") |
| r1238 | r1239 | |
| 400 | 400 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 401 | 401 | INPUT_PORTS_END |
| 402 | 402 | |
| 403 | INPUT_PORTS_START( wpksoc ) | |
| 403 | static INPUT_PORTS_START( wpksoc ) | |
| 404 | 404 | PORT_INCLUDE(m107_2player) |
| 405 | 405 | INPUT_PORTS_END |
| 406 | 406 |
| r1238 | r1239 | |
|---|---|---|
| 458 | 458 | INPUT PORTS, DIPs |
| 459 | 459 | ***********************************************************/ |
| 460 | 460 | |
| 461 | INPUT_PORTS_START( ninjaw ) | |
| 461 | static INPUT_PORTS_START( ninjaw ) | |
| 462 | 462 | /* 0x200000 (port 0) -> 0x0c2291.b and 0x24122c (shared RAM) */ |
| 463 | 463 | PORT_START_TAG("DSWA") |
| 464 | 464 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW1:1") |
| r1238 | r1239 | |
| 503 | 503 | INPUT_PORTS_END |
| 504 | 504 | |
| 505 | 505 | /* Can't use PORT_INCLUDE because of PORT_DIPLOCATION */ |
| 506 | INPUT_PORTS_START( ninjawj ) | |
| 506 | static INPUT_PORTS_START( ninjawj ) | |
| 507 | 507 | PORT_INCLUDE(ninjaw) |
| 508 | 508 | |
| 509 | 509 | PORT_MODIFY("DSWA") |
| r1238 | r1239 | |
| 511 | 511 | INPUT_PORTS_END |
| 512 | 512 | |
| 513 | 513 | /* Can't use PORT_INCLUDE because of PORT_DIPLOCATION */ |
| 514 | INPUT_PORTS_START( darius2 ) | |
| 514 | static INPUT_PORTS_START( darius2 ) | |
| 515 | 515 | PORT_INCLUDE(ninjaw) |
| 516 | 516 | |
| 517 | 517 | /* 0x200000 (port 0) -> 0x0c2002 (-$5ffe,A5) and 0x0c2006 (-$5ffa,A5) */ |
| r1238 | r1239 | |
|---|---|---|
| 191 | 191 | |
| 192 | 192 | |
| 193 | 193 | |
| 194 | INPUT_PORTS_START( matmania ) | |
| 194 | static INPUT_PORTS_START( matmania ) | |
| 195 | 195 | PORT_START /* IN0 */ |
| 196 | 196 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 197 | 197 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 545 | 545 | PORT_START_TAG("IN3") /* Spinner Player 2 */\ |
| 546 | 546 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(30) PORT_KEYDELTA(15) PORT_COCKTAIL |
| 547 | 547 | |
| 548 | INPUT_PORTS_START( arkanoid ) | |
| 548 | static INPUT_PORTS_START( arkanoid ) | |
| 549 | 549 | ARKNOI_IN0 |
| 550 | 550 | ARKNOI_IN1 |
| 551 | 551 | ARKNOI_SPINNERS |
| r1238 | r1239 | |
| 575 | 575 | INPUT_PORTS_END |
| 576 | 576 | |
| 577 | 577 | /* Different coinage and additionnal "Cabinet" Dip Switch */ |
| 578 | INPUT_PORTS_START( arknoidj ) | |
| 578 | static INPUT_PORTS_START( arknoidj ) | |
| 579 | 579 | ARKNOI_IN0 |
| 580 | 580 | ARKNOI_IN1 |
| 581 | 581 | ARKNOI_SPINNERS |
| r1238 | r1239 | |
| 605 | 605 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) |
| 606 | 606 | INPUT_PORTS_END |
| 607 | 607 | |
| 608 | INPUT_PORTS_START( ark1ball ) | |
| 608 | static INPUT_PORTS_START( ark1ball ) | |
| 609 | 609 | PORT_INCLUDE(arknoidj) |
| 610 | 610 | |
| 611 | 611 | PORT_START_TAG("DSW") |
| r1238 | r1239 | |
| 617 | 617 | PORT_DIPSETTING( 0x00, "2" ) |
| 618 | 618 | INPUT_PORTS_END |
| 619 | 619 | |
| 620 | INPUT_PORTS_START( arkangc ) | |
| 620 | static INPUT_PORTS_START( arkangc ) | |
| 621 | 621 | PORT_INCLUDE(arknoidj) |
| 622 | 622 | |
| 623 | 623 | PORT_MODIFY("DSW") |
| r1238 | r1239 | |
| 626 | 626 | PORT_DIPSETTING( 0x00, "Faster" ) /* 0xc462 = 0x08 - Level 2 same as level 30 */ |
| 627 | 627 | INPUT_PORTS_END |
| 628 | 628 | |
| 629 | INPUT_PORTS_START( arkangc2 ) | |
| 629 | static INPUT_PORTS_START( arkangc2 ) | |
| 630 | 630 | PORT_INCLUDE(arknoidj) |
| 631 | 631 | |
| 632 | 632 | PORT_MODIFY("DSW") |
| r1238 | r1239 | |
| 635 | 635 | PORT_DIPSETTING( 0x00, DEF_STR ( Normal ) ) /* 0xc462 = 0x06 - Level 2 same as level 30 */ |
| 636 | 636 | INPUT_PORTS_END |
| 637 | 637 | |
| 638 | INPUT_PORTS_START( arkgcbl ) | |
| 638 | static INPUT_PORTS_START( arkgcbl ) | |
| 639 | 639 | PORT_INCLUDE(arknoidj) |
| 640 | 640 | |
| 641 | 641 | PORT_MODIFY("DSW") |
| r1238 | r1239 | |
| 651 | 651 | PORT_DIPUNUSED( 0x40, IP_ACTIVE_LOW ) /* Always 2C_1C - check code at 0x7d5e */ |
| 652 | 652 | INPUT_PORTS_END |
| 653 | 653 | |
| 654 | INPUT_PORTS_START( paddle2 ) | |
| 654 | static INPUT_PORTS_START( paddle2 ) | |
| 655 | 655 | PORT_INCLUDE(arknoidj) |
| 656 | 656 | |
| 657 | 657 | PORT_MODIFY("DSW") |
| r1238 | r1239 | |
| 669 | 669 | PORT_DIPSETTING( 0x20, "3" ) |
| 670 | 670 | INPUT_PORTS_END |
| 671 | 671 | |
| 672 | INPUT_PORTS_START( arktayt2 ) | |
| 672 | static INPUT_PORTS_START( arktayt2 ) | |
| 673 | 673 | PORT_INCLUDE(arknoidj) |
| 674 | 674 | |
| 675 | 675 | PORT_START_TAG("DSW") |
| r1238 | r1239 | |
| 685 | 685 | INPUT_PORTS_END |
| 686 | 686 | |
| 687 | 687 | |
| 688 | INPUT_PORTS_START( tetrsark ) | |
| 688 | static INPUT_PORTS_START( tetrsark ) | |
| 689 | 689 | PORT_START_TAG("IN0") |
| 690 | 690 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 691 | 691 |
| r1238 | r1239 | |
|---|---|---|
| 410 | 410 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) \ |
| 411 | 411 | PORT_DIPSETTING( 0x00, "Disabled" ) |
| 412 | 412 | |
| 413 | INPUT_PORTS_START( devilw ) | |
| 413 | static INPUT_PORTS_START( devilw ) | |
| 414 | 414 | PORT_START /* 0xa0001 */ |
| 415 | 415 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 416 | 416 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 472 | 472 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 473 | 473 | INPUT_PORTS_END |
| 474 | 474 | |
| 475 | INPUT_PORTS_START( darkadv ) | |
| 475 | static INPUT_PORTS_START( darkadv ) | |
| 476 | 476 | PORT_START /* 0xa0001 */ |
| 477 | 477 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 478 | 478 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 559 | 559 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 560 | 560 | INPUT_PORTS_END |
| 561 | 561 | |
| 562 | INPUT_PORTS_START( vulcan ) | |
| 562 | static INPUT_PORTS_START( vulcan ) | |
| 563 | 563 | PORT_START /* 0xa0001 */ |
| 564 | 564 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 565 | 565 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 631 | 631 | INPUT_PORTS_END |
| 632 | 632 | |
| 633 | 633 | |
| 634 | INPUT_PORTS_START( gradius2 ) // same as vulcan, different bonus | |
| 634 | static INPUT_PORTS_START( gradius2 ) // same as vulcan, different bonus | |
| 635 | 635 | PORT_START /* 0xa0001 */ |
| 636 | 636 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 637 | 637 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 702 | 702 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 703 | 703 | INPUT_PORTS_END |
| 704 | 704 | |
| 705 | INPUT_PORTS_START( fround ) | |
| 705 | static INPUT_PORTS_START( fround ) | |
| 706 | 706 | PORT_START /* 0xa0001 */ |
| 707 | 707 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 708 | 708 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 764 | 764 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 765 | 765 | INPUT_PORTS_END |
| 766 | 766 | |
| 767 | INPUT_PORTS_START( miaj ) | |
| 767 | static INPUT_PORTS_START( miaj ) | |
| 768 | 768 | PORT_START /* 0xa0001 */ |
| 769 | 769 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 770 | 770 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 833 | 833 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 834 | 834 | INPUT_PORTS_END |
| 835 | 835 | |
| 836 | INPUT_PORTS_START( cuebrick ) | |
| 836 | static INPUT_PORTS_START( cuebrick ) | |
| 837 | 837 | PORT_START /* 0xa0001 */ |
| 838 | 838 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 839 | 839 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 980 | 980 | |
| 981 | 981 | |
| 982 | 982 | |
| 983 | INPUT_PORTS_START( 64street ) | |
| 983 | static INPUT_PORTS_START( 64street ) | |
| 984 | 984 | COINS |
| 985 | 985 | // fire jump |
| 986 | 986 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 1116 | 1116 | ROM_END |
| 1117 | 1117 | |
| 1118 | 1118 | |
| 1119 | INPUT_PORTS_START( astyanax ) | |
| 1119 | static INPUT_PORTS_START( astyanax ) | |
| 1120 | 1120 | COINS /* IN0 0x80001.b */ |
| 1121 | 1121 | // fire jump magic |
| 1122 | 1122 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 1299 | 1299 | ROM_END |
| 1300 | 1300 | |
| 1301 | 1301 | |
| 1302 | INPUT_PORTS_START( avspirit ) | |
| 1302 | static INPUT_PORTS_START( avspirit ) | |
| 1303 | 1303 | COINS |
| 1304 | 1304 | PORT_START_TAG("IN1") |
| 1305 | 1305 | JOY_2BUTTONS(1) |
| r1238 | r1239 | |
| 1398 | 1398 | ROM_END |
| 1399 | 1399 | |
| 1400 | 1400 | |
| 1401 | INPUT_PORTS_START( bigstrik ) | |
| 1401 | static INPUT_PORTS_START( bigstrik ) | |
| 1402 | 1402 | COINS |
| 1403 | 1403 | // pass shoot feint |
| 1404 | 1404 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 1516 | 1516 | ROM_LOAD( "prom", 0x0000, 0x0200, NO_DUMP ) |
| 1517 | 1517 | ROM_END |
| 1518 | 1518 | |
| 1519 | INPUT_PORTS_START( chimerab ) | |
| 1519 | static INPUT_PORTS_START( chimerab ) | |
| 1520 | 1520 | |
| 1521 | 1521 | COINS |
| 1522 | 1522 | // fire jump unused?(shown in service mode, but not in instructions) |
| r1238 | r1239 | |
| 1642 | 1642 | ROM_LOAD( "pr-91028.12", 0x0000, 0x0200, CRC(cfe90082) SHA1(b59991ec7b3e83ba645b709547e5b4cbe03c0f11) ) |
| 1643 | 1643 | ROM_END |
| 1644 | 1644 | |
| 1645 | INPUT_PORTS_START( cybattlr ) | |
| 1645 | static INPUT_PORTS_START( cybattlr ) | |
| 1646 | 1646 | |
| 1647 | 1647 | COINS |
| 1648 | 1648 | // fire sword |
| r1238 | r1239 | |
| 1801 | 1801 | ROM_LOAD( "rd.20n", 0x0000, 0x0200, CRC(1d877538) SHA1(a5be0dc65dcfc36fbba10d1fddbe155e24b6122f) ) |
| 1802 | 1802 | ROM_END |
| 1803 | 1803 | |
| 1804 | INPUT_PORTS_START( edf ) | |
| 1804 | static INPUT_PORTS_START( edf ) | |
| 1805 | 1805 | COINS |
| 1806 | 1806 | // fire unfold_weapons |
| 1807 | 1807 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 1901 | 1901 | ROM_END |
| 1902 | 1902 | |
| 1903 | 1903 | |
| 1904 | INPUT_PORTS_START( hachoo ) | |
| 1904 | static INPUT_PORTS_START( hachoo ) | |
| 1905 | 1905 | COINS /* 0x80001.b */ |
| 1906 | 1906 | // fire jump |
| 1907 | 1907 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 2022 | 2022 | ROM_LOAD( "pr-91044", 0x0000, 0x0200, CRC(c69423d6) SHA1(ba9644a9899df2d73a5a16bf7ceef1954c2e25f3) ) |
| 2023 | 2023 | ROM_END |
| 2024 | 2024 | |
| 2025 | INPUT_PORTS_START( hayaosi1 ) | |
| 2025 | static INPUT_PORTS_START( hayaosi1 ) | |
| 2026 | 2026 | PORT_START_TAG("IN0") |
| 2027 | 2027 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 2028 | 2028 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 2179 | 2179 | ROM_END |
| 2180 | 2180 | |
| 2181 | 2181 | |
| 2182 | INPUT_PORTS_START( kazan ) | |
| 2182 | static INPUT_PORTS_START( kazan ) | |
| 2183 | 2183 | |
| 2184 | 2184 | COINS /* IN0 0x80001.b */ |
| 2185 | 2185 | // fire jump |
| r1238 | r1239 | |
| 2284 | 2284 | ROM_END |
| 2285 | 2285 | |
| 2286 | 2286 | |
| 2287 | INPUT_PORTS_START( jitsupro ) | |
| 2287 | static INPUT_PORTS_START( jitsupro ) | |
| 2288 | 2288 | |
| 2289 | 2289 | COINS /* 0x80001.b */ |
| 2290 | 2290 | // shoot change view change bat |
| r1238 | r1239 | |
| 2409 | 2409 | ROM_LOAD( "kick.bin", 0x0000, 0x0200, CRC(85b30ac4) SHA1(b03f577ceb0f26b67453ffa52ef61fea76a93184) ) |
| 2410 | 2410 | ROM_END |
| 2411 | 2411 | |
| 2412 | INPUT_PORTS_START( kickoff ) | |
| 2412 | static INPUT_PORTS_START( kickoff ) | |
| 2413 | 2413 | COINS /* 0x80001.b -> !f0008/a.w */ |
| 2414 | 2414 | // shoot pass |
| 2415 | 2415 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 2528 | 2528 | ROM_LOAD( "makaiden.10", 0x0100, 0x0100, CRC(e6709c51) SHA1(f5cd4f0454c1a71a5b0006b098f9e76c2d8a27d2) ) |
| 2529 | 2529 | ROM_END |
| 2530 | 2530 | |
| 2531 | INPUT_PORTS_START( lomakai ) | |
| 2531 | static INPUT_PORTS_START( lomakai ) | |
| 2532 | 2532 | COINS /* 0x80001.b */ |
| 2533 | 2533 | // fire jump |
| 2534 | 2534 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 2710 | 2710 | ROM_LOAD( "p-47.14m", 0x0000, 0x0200, CRC(1d877538) SHA1(a5be0dc65dcfc36fbba10d1fddbe155e24b6122f) ) |
| 2711 | 2711 | ROM_END |
| 2712 | 2712 | |
| 2713 | INPUT_PORTS_START( p47 ) | |
| 2713 | static INPUT_PORTS_START( p47 ) | |
| 2714 | 2714 | |
| 2715 | 2715 | COINS /* 0x80001.b */ |
| 2716 | 2716 | // fire bomb |
| r1238 | r1239 | |
| 2871 | 2871 | ROM_LOAD( "priority.69", 0x000000, 0x200, CRC(b40bff56) SHA1(39c95eed79328ef2df754988db83e07909e848f8) ) |
| 2872 | 2872 | ROM_END |
| 2873 | 2873 | |
| 2874 | INPUT_PORTS_START( peekaboo ) | |
| 2874 | static INPUT_PORTS_START( peekaboo ) | |
| 2875 | 2875 | |
| 2876 | 2876 | PORT_START_TAG("IN0") /* COINS + P1&P2 Buttons - .b */ |
| 2877 | 2877 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN3 ) // called "service" |
| r1238 | r1239 | |
| 3028 | 3028 | ROM_LOAD( "prom.14m", 0x0000, 0x0200, CRC(1d877538) SHA1(a5be0dc65dcfc36fbba10d1fddbe155e24b6122f) ) |
| 3029 | 3029 | ROM_END |
| 3030 | 3030 | |
| 3031 | INPUT_PORTS_START( plusalph ) | |
| 3031 | static INPUT_PORTS_START( plusalph ) | |
| 3032 | 3032 | COINS /* IN0 0x80001.b */ |
| 3033 | 3033 | // fire bomb |
| 3034 | 3034 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 3220 | 3220 | ROM_END |
| 3221 | 3221 | |
| 3222 | 3222 | |
| 3223 | INPUT_PORTS_START( rodland ) | |
| 3223 | static INPUT_PORTS_START( rodland ) | |
| 3224 | 3224 | |
| 3225 | 3225 | COINS /* 0x80001.b */ |
| 3226 | 3226 | // fire ladder |
| r1238 | r1239 | |
| 3317 | 3317 | ROM_LOAD( "prom.14m", 0x0000, 0x0200, CRC(1d877538) SHA1(a5be0dc65dcfc36fbba10d1fddbe155e24b6122f) ) |
| 3318 | 3318 | ROM_END |
| 3319 | 3319 | |
| 3320 | INPUT_PORTS_START( stdragon ) | |
| 3320 | static INPUT_PORTS_START( stdragon ) | |
| 3321 | 3321 | COINS /* 0x80001.b */ |
| 3322 | 3322 | // fire fire |
| 3323 | 3323 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 3409 | 3409 | ROM_LOAD( "soldam.m14", 0x0000, 0x0200, CRC(8914e72d) SHA1(80a664471f14c8ed8544a5e226fdca425ab3c657) ) |
| 3410 | 3410 | ROM_END |
| 3411 | 3411 | |
| 3412 | INPUT_PORTS_START( soldamj ) | |
| 3412 | static INPUT_PORTS_START( soldamj ) | |
| 3413 | 3413 | COINS /* 0x80001.b */ |
| 3414 | 3414 | // turn turn (3rd button is shown in service mode, but seems unused) |
| 3415 | 3415 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 3547 | 3547 | ROM_LOAD( "ts.bpr", 0x0000, 0x0200, CRC(85b30ac4) SHA1(b03f577ceb0f26b67453ffa52ef61fea76a93184) ) |
| 3548 | 3548 | ROM_END |
| 3549 | 3549 | |
| 3550 | INPUT_PORTS_START( tshingen ) | |
| 3550 | static INPUT_PORTS_START( tshingen ) | |
| 3551 | 3551 | COINS /* 0x80001.b */ |
| 3552 | 3552 | // sword_left sword_right jump |
| 3553 | 3553 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
|---|---|---|
| 247 | 247 | |
| 248 | 248 | |
| 249 | 249 | |
| 250 | INPUT_PORTS_START( crshrace ) | |
| 250 | static INPUT_PORTS_START( crshrace ) | |
| 251 | 251 | PORT_START |
| 252 | 252 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 253 | 253 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 403 | 403 | INPUT_PORTS_END |
| 404 | 404 | |
| 405 | 405 | /* Same as 'crshrace', but additional "unknown" Dip Switch (see notes) */ |
| 406 | INPUT_PORTS_START( crshrac2 ) | |
| 406 | static INPUT_PORTS_START( crshrac2 ) | |
| 407 | 407 | PORT_START |
| 408 | 408 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 409 | 409 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 423 | 423 | |
| 424 | 424 | /* Input Ports */ |
| 425 | 425 | |
| 426 | INPUT_PORTS_START( airbustr ) | |
| 426 | static INPUT_PORTS_START( airbustr ) | |
| 427 | 427 | PORT_START_TAG("IN0") |
| 428 | 428 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 429 | 429 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 503 | 503 | PORT_DIPUNUSED_DIPLOC( 0x80, IP_ACTIVE_LOW, "SW2:8" ) |
| 504 | 504 | INPUT_PORTS_END |
| 505 | 505 | |
| 506 | INPUT_PORTS_START( airbustj ) | |
| 506 | static INPUT_PORTS_START( airbustj ) | |
| 507 | 507 | PORT_INCLUDE(airbustr) |
| 508 | 508 | |
| 509 | 509 | PORT_MODIFY("DSW1") |
| r1238 | r1239 | |
|---|---|---|
| 101 | 101 | |
| 102 | 102 | |
| 103 | 103 | |
| 104 | INPUT_PORTS_START( clshroad ) | |
| 104 | static INPUT_PORTS_START( clshroad ) | |
| 105 | 105 | PORT_START_TAG("IN0") // Player 1 |
| 106 | 106 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) |
| 107 | 107 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) |
| r1238 | r1239 | |
| 185 | 185 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 186 | 186 | INPUT_PORTS_END |
| 187 | 187 | |
| 188 | INPUT_PORTS_START( firebatl ) | |
| 188 | static INPUT_PORTS_START( firebatl ) | |
| 189 | 189 | PORT_START_TAG("IN0") |
| 190 | 190 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) |
| 191 | 191 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 1210 | 1210 | * |
| 1211 | 1211 | *************************************/ |
| 1212 | 1212 | |
| 1213 | INPUT_PORTS_START( pacman ) | |
| 1213 | static INPUT_PORTS_START( pacman ) | |
| 1214 | 1214 | PORT_START_TAG("IN0") |
| 1215 | 1215 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) PORT_4WAY |
| 1216 | 1216 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) PORT_4WAY |
| r1238 | r1239 | |
| 1274 | 1274 | |
| 1275 | 1275 | /* Ms. Pac-Man input ports are identical to Pac-Man, the only difference is */ |
| 1276 | 1276 | /* the missing Ghost Names dip switch. */ |
| 1277 | INPUT_PORTS_START( mspacman ) | |
| 1277 | static INPUT_PORTS_START( mspacman ) | |
| 1278 | 1278 | PORT_START_TAG("IN0") |
| 1279 | 1279 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 1280 | 1280 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 1335 | 1335 | |
| 1336 | 1336 | |
| 1337 | 1337 | /* Same as 'mspacman', but no fake input port */ |
| 1338 | INPUT_PORTS_START( mspacpls ) | |
| 1338 | static INPUT_PORTS_START( mspacpls ) | |
| 1339 | 1339 | PORT_START_TAG("IN0") |
| 1340 | 1340 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 1341 | 1341 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 1386 | 1386 | INPUT_PORTS_END |
| 1387 | 1387 | |
| 1388 | 1388 | |
| 1389 | INPUT_PORTS_START( mschamp ) | |
| 1389 | static INPUT_PORTS_START( mschamp ) | |
| 1390 | 1390 | PORT_START_TAG("IN0") |
| 1391 | 1391 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 1392 | 1392 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 1450 | 1450 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 1451 | 1451 | INPUT_PORTS_END |
| 1452 | 1452 | |
| 1453 | INPUT_PORTS_START( maketrax ) | |
| 1453 | static INPUT_PORTS_START( maketrax ) | |
| 1454 | 1454 | PORT_START_TAG("IN0") |
| 1455 | 1455 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 1456 | 1456 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 1496 | 1496 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1497 | 1497 | INPUT_PORTS_END |
| 1498 | 1498 | |
| 1499 | INPUT_PORTS_START( crush4 ) | |
| 1499 | static INPUT_PORTS_START( crush4 ) | |
| 1500 | 1500 | PORT_INCLUDE( maketrax ) |
| 1501 | 1501 | |
| 1502 | 1502 | PORT_START_TAG("GAME") |
| 1503 | 1503 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) // always select 2nd part of code |
| 1504 | 1504 | INPUT_PORTS_END |
| 1505 | 1505 | |
| 1506 | INPUT_PORTS_START( korosuke ) | |
| 1506 | static INPUT_PORTS_START( korosuke ) | |
| 1507 | 1507 | PORT_START_TAG("IN0") |
| 1508 | 1508 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 1509 | 1509 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 1549 | 1549 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1550 | 1550 | INPUT_PORTS_END |
| 1551 | 1551 | |
| 1552 | INPUT_PORTS_START( mbrush ) | |
| 1552 | static INPUT_PORTS_START( mbrush ) | |
| 1553 | 1553 | PORT_START_TAG("IN0") |
| 1554 | 1554 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 1555 | 1555 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 1596 | 1596 | INPUT_PORTS_END |
| 1597 | 1597 | |
| 1598 | 1598 | |
| 1599 | INPUT_PORTS_START( paintrlr ) | |
| 1599 | static INPUT_PORTS_START( paintrlr ) | |
| 1600 | 1600 | PORT_START_TAG("IN0") |
| 1601 | 1601 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 1602 | 1602 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 1643 | 1643 | INPUT_PORTS_END |
| 1644 | 1644 | |
| 1645 | 1645 | |
| 1646 | INPUT_PORTS_START( crushs ) | |
| 1646 | static INPUT_PORTS_START( crushs ) | |
| 1647 | 1647 | PORT_START_TAG("IN0") |
| 1648 | 1648 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 1649 | 1649 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 1731 | 1731 | INPUT_PORTS_END |
| 1732 | 1732 | |
| 1733 | 1733 | |
| 1734 | INPUT_PORTS_START( ponpoko ) | |
| 1734 | static INPUT_PORTS_START( ponpoko ) | |
| 1735 | 1735 | PORT_START_TAG("IN0") |
| 1736 | 1736 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| 1737 | 1737 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 1809 | 1809 | INPUT_PORTS_END |
| 1810 | 1810 | |
| 1811 | 1811 | |
| 1812 | INPUT_PORTS_START( eyes ) | |
| 1812 | static INPUT_PORTS_START( eyes ) | |
| 1813 | 1813 | PORT_START_TAG("IN0") |
| 1814 | 1814 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 1815 | 1815 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 1858 | 1858 | INPUT_PORTS_END |
| 1859 | 1859 | |
| 1860 | 1860 | |
| 1861 | INPUT_PORTS_START( mrtnt ) | |
| 1861 | static INPUT_PORTS_START( mrtnt ) | |
| 1862 | 1862 | PORT_START_TAG("IN0") |
| 1863 | 1863 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 1864 | 1864 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 1907 | 1907 | INPUT_PORTS_END |
| 1908 | 1908 | |
| 1909 | 1909 | |
| 1910 | INPUT_PORTS_START( lizwiz ) | |
| 1910 | static INPUT_PORTS_START( lizwiz ) | |
| 1911 | 1911 | PORT_START_TAG("IN0") |
| 1912 | 1912 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 1913 | 1913 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 1956 | 1956 | INPUT_PORTS_END |
| 1957 | 1957 | |
| 1958 | 1958 | |
| 1959 | INPUT_PORTS_START( theglobp ) | |
| 1959 | static INPUT_PORTS_START( theglobp ) | |
| 1960 | 1960 | PORT_START_TAG("IN0") |
| 1961 | 1961 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 1962 | 1962 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 2011 | 2011 | INPUT_PORTS_END |
| 2012 | 2012 | |
| 2013 | 2013 | |
| 2014 | INPUT_PORTS_START( vanvan ) | |
| 2014 | static INPUT_PORTS_START( vanvan ) | |
| 2015 | 2015 | PORT_START_TAG("IN0") |
| 2016 | 2016 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 2017 | 2017 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 2084 | 2084 | INPUT_PORTS_END |
| 2085 | 2085 | |
| 2086 | 2086 | |
| 2087 | INPUT_PORTS_START( vanvank ) | |
| 2087 | static INPUT_PORTS_START( vanvank ) | |
| 2088 | 2088 | PORT_START_TAG("IN0") |
| 2089 | 2089 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 2090 | 2090 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 2158 | 2158 | INPUT_PORTS_END |
| 2159 | 2159 | |
| 2160 | 2160 | |
| 2161 | INPUT_PORTS_START( dremshpr ) | |
| 2161 | static INPUT_PORTS_START( dremshpr ) | |
| 2162 | 2162 | PORT_START_TAG("IN0") |
| 2163 | 2163 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 2164 | 2164 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 2215 | 2215 | INPUT_PORTS_END |
| 2216 | 2216 | |
| 2217 | 2217 | |
| 2218 | INPUT_PORTS_START( alibaba ) | |
| 2218 | static INPUT_PORTS_START( alibaba ) | |
| 2219 | 2219 | PORT_START_TAG("IN0") |
| 2220 | 2220 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 2221 | 2221 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 2265 | 2265 | INPUT_PORTS_END |
| 2266 | 2266 | |
| 2267 | 2267 | |
| 2268 | INPUT_PORTS_START( jumpshot ) | |
| 2268 | static INPUT_PORTS_START( jumpshot ) | |
| 2269 | 2269 | PORT_START_TAG("IN0") |
| 2270 | 2270 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 2271 | 2271 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 2320 | 2320 | INPUT_PORTS_END |
| 2321 | 2321 | |
| 2322 | 2322 | |
| 2323 | INPUT_PORTS_START( jumpshtp ) | |
| 2323 | static INPUT_PORTS_START( jumpshtp ) | |
| 2324 | 2324 | PORT_START_TAG("IN0") |
| 2325 | 2325 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 2326 | 2326 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 2375 | 2375 | INPUT_PORTS_END |
| 2376 | 2376 | |
| 2377 | 2377 | |
| 2378 | INPUT_PORTS_START( shootbul ) | |
| 2378 | static INPUT_PORTS_START( shootbul ) | |
| 2379 | 2379 | PORT_START_TAG("IN0") |
| 2380 | 2380 | PORT_BIT( 0x0f, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(50) PORT_KEYDELTA(25) |
| 2381 | 2381 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
| 2422 | 2422 | the dipswitches, and enter test mode. Now select cocktail mode and you |
| 2423 | 2423 | can test everything. Wierd. */ |
| 2424 | 2424 | |
| 2425 | INPUT_PORTS_START( bwcasino ) | |
| 2425 | static INPUT_PORTS_START( bwcasino ) | |
| 2426 | 2426 | PORT_START_TAG("IN0") |
| 2427 | 2427 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 2428 | 2428 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 2485 | 2485 | have a cocktail mode, and uses service button connected differently to |
| 2486 | 2486 | "Boardwalk" */ |
| 2487 | 2487 | |
| 2488 | INPUT_PORTS_START( acitya ) | |
| 2488 | static INPUT_PORTS_START( acitya ) | |
| 2489 | 2489 | PORT_START_TAG("IN0") |
| 2490 | 2490 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 2491 | 2491 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
| 2542 | 2542 | INPUT_PORTS_END |
| 2543 | 2543 | |
| 2544 | 2544 | |
| 2545 | INPUT_PORTS_START( nmouse ) | |
| 2545 | static INPUT_PORTS_START( nmouse ) | |
| 2546 | 2546 | PORT_START_TAG("IN0") |
| 2547 | 2547 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 2548 | 2548 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 2595 | 2595 | |
| 2596 | 2596 | INPUT_PORTS_END |
| 2597 | 2597 | |
| 2598 | INPUT_PORTS_START( woodpek ) | |
| 2598 | static INPUT_PORTS_START( woodpek ) | |
| 2599 | 2599 | PORT_START_TAG("IN0") |
| 2600 | 2600 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 2601 | 2601 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 2643 | 2643 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2644 | 2644 | INPUT_PORTS_END |
| 2645 | 2645 | |
| 2646 | INPUT_PORTS_START( bigbucks ) | |
| 2646 | static INPUT_PORTS_START( bigbucks ) | |
| 2647 | 2647 | PORT_START_TAG("IN0") |
| 2648 | 2648 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 2649 | 2649 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 2697 | 2697 | INPUT_PORTS_END |
| 2698 | 2698 | |
| 2699 | 2699 | |
| 2700 | INPUT_PORTS_START( drivfrcp ) | |
| 2700 | static INPUT_PORTS_START( drivfrcp ) | |
| 2701 | 2701 | PORT_START_TAG("IN0") |
| 2702 | 2702 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2703 | 2703 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| r1238 | r1239 | |
| 2749 | 2749 | INPUT_PORTS_END |
| 2750 | 2750 | |
| 2751 | 2751 | |
| 2752 | INPUT_PORTS_START( 8bpm ) | |
| 2752 | static INPUT_PORTS_START( 8bpm ) | |
| 2753 | 2753 | PORT_START_TAG("IN0") |
| 2754 | 2754 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 2755 | 2755 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 2801 | 2801 | INPUT_PORTS_END |
| 2802 | 2802 | |
| 2803 | 2803 | |
| 2804 | INPUT_PORTS_START( porky ) | |
| 2804 | static INPUT_PORTS_START( porky ) | |
| 2805 | 2805 | PORT_START_TAG("IN0") |
| 2806 | 2806 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 2807 | 2807 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| r1238 | r1239 | |
| 2853 | 2853 | INPUT_PORTS_END |
| 2854 | 2854 | |
| 2855 | 2855 | |
| 2856 | INPUT_PORTS_START( rocktrv2 ) | |
| 2856 | static INPUT_PORTS_START( rocktrv2 ) | |
| 2857 | 2857 | PORT_START_TAG("IN0") |
| 2858 | 2858 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 2859 | 2859 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
| 2923 | 2923 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 2924 | 2924 | INPUT_PORTS_END |
| 2925 | 2925 | |
| 2926 | INPUT_PORTS_START( cannonbp ) | |
| 2926 | static INPUT_PORTS_START( cannonbp ) | |
| 2927 | 2927 | PORT_START_TAG("IN0") |
| 2928 | 2928 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 2929 | 2929 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
|---|---|---|
| 256 | 256 | * |
| 257 | 257 | *************************************/ |
| 258 | 258 | |
| 259 | INPUT_PORTS_START( dcheese ) | |
| 259 | static INPUT_PORTS_START( dcheese ) | |
| 260 | 260 | PORT_START /* 200000 */ |
| 261 | 261 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 262 | 262 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
| 303 | 303 | INPUT_PORTS_END |
| 304 | 304 | |
| 305 | 305 | |
| 306 | INPUT_PORTS_START( lottof2 ) | |
| 306 | static INPUT_PORTS_START( lottof2 ) | |
| 307 | 307 | PORT_START /* 200000 */ |
| 308 | 308 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 309 | 309 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
| 346 | 346 | INPUT_PORTS_END |
| 347 | 347 | |
| 348 | 348 | |
| 349 | INPUT_PORTS_START( fredmem ) | |
| 349 | static INPUT_PORTS_START( fredmem ) | |
| 350 | 350 | PORT_START /* 200000 */ |
| 351 | 351 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 352 | 352 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
|---|---|---|
| 225 | 225 | ADDRESS_MAP_END |
| 226 | 226 | |
| 227 | 227 | |
| 228 | INPUT_PORTS_START( chqflag ) | |
| 228 | static INPUT_PORTS_START( chqflag ) | |
| 229 | 229 | PORT_START /* DSW #1 */ |
| 230 | 230 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 231 | 231 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 245 | 245 | //**************************************************************************** |
| 246 | 246 | // I/O Port Maps |
| 247 | 247 | |
| 248 | INPUT_PORTS_START( bwing ) | |
| 248 | static INPUT_PORTS_START( bwing ) | |
| 249 | 249 | PORT_START |
| 250 | 250 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) |
| 251 | 251 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 89 | 89 | 8*64 |
| 90 | 90 | }; |
| 91 | 91 | |
| 92 | void update_palette(void) | |
| 92 | static void update_palette(void) | |
| 93 | 93 | { |
| 94 | 94 | INT8 r, g ,b; |
| 95 | 95 | int brg = brightness - 0x60; |
| r1238 | r1239 | |
| 543 | 543 | } |
| 544 | 544 | } |
| 545 | 545 | |
| 546 | WRITE16_HANDLER(paletteram_w) | |
| 546 | static WRITE16_HANDLER(paletteram_w) | |
| 547 | 547 | { |
| 548 | 548 | INT8 r, g, b; |
| 549 | 549 | int brg = brightness - 0x60; |
| r1238 | r1239 | |
| 610 | 610 | Port definitions |
| 611 | 611 | ***************************************************************************/ |
| 612 | 612 | |
| 613 | INPUT_PORTS_START( srmp6 ) | |
| 613 | static INPUT_PORTS_START( srmp6 ) | |
| 614 | 614 | |
| 615 | 615 | PORT_START |
| 616 | 616 | PORT_BIT ( 0xfe01, IP_ACTIVE_LOW, IPT_UNUSED ) // explicitely discarded |
| r1238 | r1239 | |
|---|---|---|
| 290 | 290 | |
| 291 | 291 | |
| 292 | 292 | |
| 293 | INPUT_PORTS_START( sf ) | |
| 293 | static INPUT_PORTS_START( sf ) | |
| 294 | 294 | PORT_START |
| 295 | 295 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) |
| 296 | 296 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
| 468 | 468 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 469 | 469 | INPUT_PORTS_END |
| 470 | 470 | |
| 471 | INPUT_PORTS_START( sfus ) | |
| 471 | static INPUT_PORTS_START( sfus ) | |
| 472 | 472 | PORT_START |
| 473 | 473 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) |
| 474 | 474 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
| 606 | 606 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(2) |
| 607 | 607 | INPUT_PORTS_END |
| 608 | 608 | |
| 609 | INPUT_PORTS_START( sfjp ) | |
| 609 | static INPUT_PORTS_START( sfjp ) | |
| 610 | 610 | PORT_START |
| 611 | 611 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) |
| 612 | 612 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 272 | 272 | |
| 273 | 273 | |
| 274 | 274 | |
| 275 | INPUT_PORTS_START( lsasquad ) | |
| 275 | static INPUT_PORTS_START( lsasquad ) | |
| 276 | 276 | PORT_START_TAG("DSWA") |
| 277 | 277 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 278 | 278 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
| 431 | 431 | AM_RANGE(0xe000, 0xefff) AM_ROM /* space for diagnostic ROM? */ |
| 432 | 432 | ADDRESS_MAP_END |
| 433 | 433 | |
| 434 | INPUT_PORTS_START( daikaiju ) | |
| 434 | static INPUT_PORTS_START( daikaiju ) | |
| 435 | 435 | PORT_START_TAG("DSWA") |
| 436 | 436 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 437 | 437 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| r1238 | r1239 | |
|---|---|---|
| 1015 | 1015 | AM_RANGE(0xfff00000, 0xffffffff) AM_ROM AM_REGION(REGION_USER1, 0) AM_SHARE(2) |
| 1016 | 1016 | ADDRESS_MAP_END |
| 1017 | 1017 | |
| 1018 | INPUT_PORTS_START( m2 ) | |
| 1018 | static INPUT_PORTS_START( m2 ) | |
| 1019 | 1019 | INPUT_PORTS_END |
| 1020 | 1020 | |
| 1021 | 1021 |
| r1238 | r1239 | |
|---|---|---|
| 125 | 125 | ADDRESS_MAP_END |
| 126 | 126 | |
| 127 | 127 | |
| 128 | INPUT_PORTS_START( cball ) | |
| 128 | static INPUT_PORTS_START( cball ) | |
| 129 | 129 | |
| 130 | 130 | PORT_START /* 1001 */ |
| 131 | 131 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coinage )) |
| r1238 | r1239 | |
|---|---|---|
| 136 | 136 | ADDRESS_MAP_END |
| 137 | 137 | |
| 138 | 138 | |
| 139 | INPUT_PORTS_START( sengokmj ) | |
| 139 | static INPUT_PORTS_START( sengokmj ) | |
| 140 | 140 | /* Must be port 0: coin inputs read through sound cpu */ |
| 141 | 141 | SEIBU_COIN_INPUTS |
| 142 | 142 |
| r1238 | r1239 | |
|---|---|---|
| 166 | 166 | AM_RANGE(0x8000, 0xffff) AM_ROM AM_WRITE(cham24_mapper_w) |
| 167 | 167 | ADDRESS_MAP_END |
| 168 | 168 | |
| 169 | INPUT_PORTS_START( cham24 ) | |
| 169 | static INPUT_PORTS_START( cham24 ) | |
| 170 | 170 | PORT_START /* IN0 */ |
| 171 | 171 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 172 | 172 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 1487 | 1487 | */ |
| 1488 | 1488 | |
| 1489 | 1489 | /* Most games use this */ |
| 1490 | INPUT_PORTS_START( cave ) | |
| 1490 | static INPUT_PORTS_START( cave ) | |
| 1491 | 1491 | PORT_START // IN0 - Player 1 |
| 1492 | 1492 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 1493 | 1493 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1528 | 1528 | INPUT_PORTS_END |
| 1529 | 1529 | |
| 1530 | 1530 | /* Gaia Crusaders, no EEPROM. Has DIPS */ |
| 1531 | INPUT_PORTS_START( gaia ) | |
| 1531 | static INPUT_PORTS_START( gaia ) | |
| 1532 | 1532 | PORT_START // IN0 - Player 1 + 2 |
| 1533 | 1533 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 1534 | 1534 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1625 | 1625 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 1626 | 1626 | INPUT_PORTS_END |
| 1627 | 1627 | |
| 1628 | INPUT_PORTS_START( theroes ) | |
| 1628 | static INPUT_PORTS_START( theroes ) | |
| 1629 | 1629 | PORT_INCLUDE(gaia) |
| 1630 | 1630 | |
| 1631 | 1631 | PORT_MODIFY("DSW1") |
| r1238 | r1239 | |
| 1651 | 1651 | INPUT_PORTS_END |
| 1652 | 1652 | |
| 1653 | 1653 | /* Mazinger Z (has region stored in Eeprom) */ |
| 1654 | INPUT_PORTS_START( mazinger ) | |
| 1654 | static INPUT_PORTS_START( mazinger ) | |
| 1655 | 1655 | PORT_START // IN0 - Player 1 |
| 1656 | 1656 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 1657 | 1657 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1697 | 1697 | INPUT_PORTS_END |
| 1698 | 1698 | |
| 1699 | 1699 | /* Sailor Moon / Air Gallet (has region stored in Eeprom) */ |
| 1700 | INPUT_PORTS_START( sailormn ) | |
| 1700 | static INPUT_PORTS_START( sailormn ) | |
| 1701 | 1701 | PORT_START // IN0 - Player 1 |
| 1702 | 1702 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 1703 | 1703 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1747 | 1747 | INPUT_PORTS_END |
| 1748 | 1748 | |
| 1749 | 1749 | /* Different layout */ |
| 1750 | INPUT_PORTS_START( guwange ) | |
| 1750 | static INPUT_PORTS_START( guwange ) | |
| 1751 | 1751 | PORT_START // IN0 - Player 1 & 2 |
| 1752 | 1752 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| 1753 | 1753 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1788 | 1788 | INPUT_PORTS_END |
| 1789 | 1789 | |
| 1790 | 1790 | /* Normal layout but with 4 buttons */ |
| 1791 | INPUT_PORTS_START( metmqstr ) | |
| 1791 | static INPUT_PORTS_START( metmqstr ) | |
| 1792 | 1792 | PORT_START // IN0 - Player 1 |
| 1793 | 1793 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 1794 | 1794 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1829 | 1829 | INPUT_PORTS_END |
| 1830 | 1830 | |
| 1831 | 1831 | |
| 1832 | INPUT_PORTS_START( korokoro ) | |
| 1832 | static INPUT_PORTS_START( korokoro ) | |
| 1833 | 1833 | PORT_START // IN0 |
| 1834 | 1834 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(10) // bit 0x0010 of leds (coin) |
| 1835 | 1835 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(10) // bit 0x0020 of leds (does coin sound) |
| r1238 | r1239 | |
|---|---|---|
| 577 | 577 | |
| 578 | 578 | ***************************************************************************/ |
| 579 | 579 | |
| 580 | INPUT_PORTS_START( lastday ) | |
| 580 | static INPUT_PORTS_START( lastday ) | |
| 581 | 581 | PORT_INCLUDE( dooyongz80_generic ) |
| 582 | 582 | |
| 583 | 583 | PORT_MODIFY("DSW2") |
| r1238 | r1239 | |
| 601 | 601 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 602 | 602 | INPUT_PORTS_END |
| 603 | 603 | |
| 604 | INPUT_PORTS_START( gulfstrm ) | |
| 604 | static INPUT_PORTS_START( gulfstrm ) | |
| 605 | 605 | PORT_INCLUDE( dooyongz80_generic ) |
| 606 | 606 | |
| 607 | 607 | PORT_MODIFY("DSW2") |
| r1238 | r1239 | |
| 625 | 625 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 626 | 626 | INPUT_PORTS_END |
| 627 | 627 | |
| 628 | INPUT_PORTS_START( pollux ) | |
| 628 | static INPUT_PORTS_START( pollux ) | |
| 629 | 629 | PORT_INCLUDE( dooyongz80_generic ) |
| 630 | 630 | |
| 631 | 631 | PORT_START |
| r1238 | r1239 | |
| 639 | 639 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 640 | 640 | INPUT_PORTS_END |
| 641 | 641 | |
| 642 | INPUT_PORTS_START( bluehawk ) | |
| 642 | static INPUT_PORTS_START( bluehawk ) | |
| 643 | 643 | PORT_INCLUDE( dooyongz80_generic ) |
| 644 | 644 | |
| 645 | 645 | PORT_START |
| r1238 | r1239 | |
| 653 | 653 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 654 | 654 | INPUT_PORTS_END |
| 655 | 655 | |
| 656 | INPUT_PORTS_START( flytiger ) | |
| 656 | static INPUT_PORTS_START( flytiger ) | |
| 657 | 657 | PORT_INCLUDE( dooyongz80_generic ) |
| 658 | 658 | |
| 659 | 659 | PORT_MODIFY("DSW2") |
| r1238 | r1239 | |
| 672 | 672 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 673 | 673 | INPUT_PORTS_END |
| 674 | 674 | |
| 675 | INPUT_PORTS_START( sadari ) | |
| 675 | static INPUT_PORTS_START( sadari ) | |
| 676 | 676 | PORT_INCLUDE( dooyongz80_generic ) |
| 677 | 677 | |
| 678 | 678 | PORT_MODIFY("DSW2") |
| r1238 | r1239 | |
| 699 | 699 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 700 | 700 | INPUT_PORTS_END |
| 701 | 701 | |
| 702 | INPUT_PORTS_START( primella ) | |
| 702 | static INPUT_PORTS_START( primella ) | |
| 703 | 703 | PORT_INCLUDE( dooyongz80_generic ) |
| 704 | 704 | |
| 705 | 705 | PORT_MODIFY("DSW2") |
| r1238 | r1239 | |
| 723 | 723 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 724 | 724 | INPUT_PORTS_END |
| 725 | 725 | |
| 726 | INPUT_PORTS_START( rshark ) | |
| 726 | static INPUT_PORTS_START( rshark ) | |
| 727 | 727 | PORT_INCLUDE( dooyongm68_generic ) |
| 728 | 728 | |
| 729 | 729 | PORT_MODIFY("DSW") |
| r1238 | r1239 | |
| 738 | 738 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) PORT_CONDITION("DSW",0x0002,PORTCOND_NOTEQUALS,0x0002) |
| 739 | 739 | INPUT_PORTS_END |
| 740 | 740 | |
| 741 | INPUT_PORTS_START( superx ) | |
| 741 | static INPUT_PORTS_START( superx ) | |
| 742 | 742 | PORT_INCLUDE( dooyongm68_generic ) |
| 743 | 743 | INPUT_PORTS_END |
| 744 | 744 | |
| 745 | INPUT_PORTS_START( popbingo ) | |
| 745 | static INPUT_PORTS_START( popbingo ) | |
| 746 | 746 | PORT_INCLUDE( dooyongm68_generic ) |
| 747 | 747 | |
| 748 | 748 | PORT_MODIFY("DSW") |
| r1238 | r1239 | |
|---|---|---|
| 195 | 195 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )\ |
| 196 | 196 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK ) /* used only by the self test */ |
| 197 | 197 | |
| 198 | INPUT_PORTS_START( brkthru ) | |
| 198 | static INPUT_PORTS_START( brkthru ) | |
| 199 | 199 | COMMON_IN0 |
| 200 | 200 | COMMON_IN1 |
| 201 | 201 | |
| r1238 | r1239 | |
| 242 | 242 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) |
| 243 | 243 | INPUT_PORTS_END |
| 244 | 244 | |
| 245 | INPUT_PORTS_START( brkthruj ) | |
| 245 | static INPUT_PORTS_START( brkthruj ) | |
| 246 | 246 | COMMON_IN0 |
| 247 | 247 | COMMON_IN1 |
| 248 | 248 | |
| r1238 | r1239 | |
| 287 | 287 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) |
| 288 | 288 | INPUT_PORTS_END |
| 289 | 289 | |
| 290 | INPUT_PORTS_START( darwin ) | |
| 290 | static INPUT_PORTS_START( darwin ) | |
| 291 | 291 | COMMON_IN0 |
| 292 | 292 | COMMON_IN1 |
| 293 | 293 |
| r1238 | r1239 | |
|---|---|---|
| 71 | 71 | AM_RANGE(0x00000000, 0x0001ffff) AM_ROM |
| 72 | 72 | ADDRESS_MAP_END |
| 73 | 73 | |
| 74 | INPUT_PORTS_START( comebaby ) | |
| 74 | static INPUT_PORTS_START( comebaby ) | |
| 75 | 75 | INPUT_PORTS_END |
| 76 | 76 | |
| 77 | 77 |
| r1238 | r1239 | |
|---|---|---|
| 660 | 660 | * |
| 661 | 661 | *************************************/ |
| 662 | 662 | |
| 663 | INPUT_PORTS_START( defender ) | |
| 663 | static INPUT_PORTS_START( defender ) | |
| 664 | 664 | PORT_START_TAG("IN0") |
| 665 | 665 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Fire") |
| 666 | 666 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Thrust") |
| r1238 | r1239 | |
| 687 | 687 | INPUT_PORTS_END |
| 688 | 688 | |
| 689 | 689 | |
| 690 | INPUT_PORTS_START( mayday ) | |
| 690 | static INPUT_PORTS_START( mayday ) | |
| 691 | 691 | PORT_START_TAG("IN0") |
| 692 | 692 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Fire") |
| 693 | 693 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| r1238 | r1239 | |
| 714 | 714 | INPUT_PORTS_END |
| 715 | 715 | |
| 716 | 716 | |
| 717 | INPUT_PORTS_START( colony7 ) | |
| 717 | static INPUT_PORTS_START( colony7 ) | |
| 718 | 718 | PORT_START_TAG("IN0") |
| 719 | 719 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) |
| 720 | 720 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) |
| r1238 | r1239 | |
| 751 | 751 | INPUT_PORTS_END |
| 752 | 752 | |
| 753 | 753 | |
| 754 | INPUT_PORTS_START( jin ) | |
| 754 | static INPUT_PORTS_START( jin ) | |
| 755 | 755 | PORT_START_TAG("IN0") |
| 756 | 756 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) |
| 757 | 757 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) |
| r1238 | r1239 | |
| 814 | 814 | INPUT_PORTS_END |
| 815 | 815 | |
| 816 | 816 | |
| 817 | INPUT_PORTS_START( stargate ) | |
| 817 | static INPUT_PORTS_START( stargate ) | |
| 818 | 818 | PORT_START_TAG("IN0") |
| 819 | 819 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Fire") |
| 820 | 820 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Thrust") |
| r1238 | r1239 | |
| 842 | 842 | INPUT_PORTS_END |
| 843 | 843 | |
| 844 | 844 | |
| 845 | INPUT_PORTS_START( robotron ) | |
| 845 | static INPUT_PORTS_START( robotron ) | |
| 846 | 846 | PORT_START_TAG("IN0") |
| 847 | 847 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_UP ) |
| 848 | 848 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_DOWN ) |
| r1238 | r1239 | |
| 870 | 870 | INPUT_PORTS_END |
| 871 | 871 | |
| 872 | 872 | |
| 873 | INPUT_PORTS_START( joust ) | |
| 873 | static INPUT_PORTS_START( joust ) | |
| 874 | 874 | PORT_START_TAG("IN0") |
| 875 | 875 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 876 | 876 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| r1238 | r1239 | |
| 904 | 904 | INPUT_PORTS_END |
| 905 | 905 | |
| 906 | 906 | |
| 907 | INPUT_PORTS_START( bubbles ) | |
| 907 | static INPUT_PORTS_START( bubbles ) | |
| 908 | 908 | PORT_START_TAG("IN0") |
| 909 | 909 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) |
| 910 | 910 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) |
| r1238 | r1239 | |
| 929 | 929 | INPUT_PORTS_END |
| 930 | 930 | |
| 931 | 931 | |
| 932 | INPUT_PORTS_START( splat ) | |
| 932 | static INPUT_PORTS_START( splat ) | |
| 933 | 933 | PORT_START_TAG("IN0") |
| 934 | 934 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_UP ) PORT_8WAY PORT_PLAYER(2) |
| 935 | 935 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| r1238 | r1239 | |
| 971 | 971 | INPUT_PORTS_END |
| 972 | 972 | |
| 973 | 973 | |
| 974 | INPUT_PORTS_START( sinistar ) | |
| 974 | static INPUT_PORTS_START( sinistar ) | |
| 975 | 975 | PORT_START_TAG("IN0") |
| 976 | 976 | /* pseudo analog joystick, see below */ |
| 977 | 977 | |
| r1238 | r1239 | |
| 1000 | 1000 | INPUT_PORTS_END |
| 1001 | 1001 | |
| 1002 | 1002 | |
| 1003 | INPUT_PORTS_START( playball ) | |
| 1003 | static INPUT_PORTS_START( playball ) | |
| 1004 | 1004 | PORT_START_TAG("IN0") |
| 1005 | 1005 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) |
| 1006 | 1006 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) |
| r1238 | r1239 | |
| 1023 | 1023 | INPUT_PORTS_END |
| 1024 | 1024 | |
| 1025 | 1025 | |
| 1026 | INPUT_PORTS_START( blaster ) | |
| 1026 | static INPUT_PORTS_START( blaster ) | |
| 1027 | 1027 | PORT_START_TAG("IN0") |
| 1028 | 1028 | /* pseudo analog joystick, see below */ |
| 1029 | 1029 | |
| r1238 | r1239 | |
| 1054 | 1054 | INPUT_PORTS_END |
| 1055 | 1055 | |
| 1056 | 1056 | |
| 1057 | INPUT_PORTS_START( blastkit ) | |
| 1057 | static INPUT_PORTS_START( blastkit ) | |
| 1058 | 1058 | PORT_START_TAG("IN0") |
| 1059 | 1059 | /* pseudo analog joystick, see below */ |
| 1060 | 1060 | |
| r1238 | r1239 | |
| 1087 | 1087 | INPUT_PORTS_END |
| 1088 | 1088 | |
| 1089 | 1089 | |
| 1090 | INPUT_PORTS_START( spdball ) | |
| 1090 | static INPUT_PORTS_START( spdball ) | |
| 1091 | 1091 | PORT_START_TAG("IN0") |
| 1092 | 1092 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1093 | 1093 | |
| r1238 | r1239 | |
| 1138 | 1138 | INPUT_PORTS_END |
| 1139 | 1139 | |
| 1140 | 1140 | |
| 1141 | INPUT_PORTS_START( alienar ) | |
| 1141 | static INPUT_PORTS_START( alienar ) | |
| 1142 | 1142 | PORT_START_TAG("IN0") |
| 1143 | 1143 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(2) |
| 1144 | 1144 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) |
| r1238 | r1239 | |
| 1174 | 1174 | INPUT_PORTS_END |
| 1175 | 1175 | |
| 1176 | 1176 | |
| 1177 | INPUT_PORTS_START( lottofun ) | |
| 1177 | static INPUT_PORTS_START( lottofun ) | |
| 1178 | 1178 | PORT_START_TAG("IN0") |
| 1179 | 1179 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) |
| 1180 | 1180 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) |
| r1238 | r1239 | |
| 1199 | 1199 | INPUT_PORTS_END |
| 1200 | 1200 | |
| 1201 | 1201 | |
| 1202 | INPUT_PORTS_START( mysticm ) | |
| 1202 | static INPUT_PORTS_START( mysticm ) | |
| 1203 | 1203 | PORT_START_TAG("IN0") |
| 1204 | 1204 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) |
| 1205 | 1205 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) |
| r1238 | r1239 | |
| 1225 | 1225 | INPUT_PORTS_END |
| 1226 | 1226 | |
| 1227 | 1227 | |
| 1228 | INPUT_PORTS_START( tshoot ) | |
| 1228 | static INPUT_PORTS_START( tshoot ) | |
| 1229 | 1229 | PORT_START_TAG("IN0") /* (muxed with IN3)*/ |
| 1230 | 1230 | PORT_BIT( 0x3F, 0x20, IPT_AD_STICK_Y ) PORT_MINMAX(0,0x3F) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) |
| 1231 | 1231 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
| 1255 | 1255 | INPUT_PORTS_END |
| 1256 | 1256 | |
| 1257 | 1257 | |
| 1258 | INPUT_PORTS_START( inferno ) | |
| 1258 | static INPUT_PORTS_START( inferno ) | |
| 1259 | 1259 | PORT_START_TAG("IN0") /* (muxed with IN3) */ |
| 1260 | 1260 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_PLAYER(1) |
| 1261 | 1261 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT ) PORT_PLAYER(1) |
| r1238 | r1239 | |
| 1295 | 1295 | INPUT_PORTS_END |
| 1296 | 1296 | |
| 1297 | 1297 | |
| 1298 | INPUT_PORTS_START( joust2 ) | |
| 1298 | static INPUT_PORTS_START( joust2 ) | |
| 1299 | 1299 | PORT_START_TAG("IN0") |
| 1300 | 1300 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| 1301 | 1301 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 375 | 375 | |
| 376 | 376 | ***************************************************************************/ |
| 377 | 377 | |
| 378 | INPUT_PORTS_START( asurabld ) | |
| 378 | static INPUT_PORTS_START( asurabld ) | |
| 379 | 379 | PORT_START // IN0 - $800000.w/$800002.w |
| 380 | 380 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 381 | 381 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 1029 | 1029 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL \ |
| 1030 | 1030 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 1031 | 1031 | |
| 1032 | INPUT_PORTS_START( cobracom ) | |
| 1032 | static INPUT_PORTS_START( cobracom ) | |
| 1033 | 1033 | PORT_START_TAG("IN0") |
| 1034 | 1034 | PLAYER1_JOYSTICK |
| 1035 | 1035 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 1103 | 1103 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1104 | 1104 | INPUT_PORTS_END |
| 1105 | 1105 | |
| 1106 | INPUT_PORTS_START( ghostb ) | |
| 1106 | static INPUT_PORTS_START( ghostb ) | |
| 1107 | 1107 | PORT_START_TAG("IN0") |
| 1108 | 1108 | PLAYER1_JOYSTICK |
| 1109 | 1109 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 1176 | 1176 | PORT_DIPSETTING( 0x80, DEF_STR( Normal ) ) |
| 1177 | 1177 | INPUT_PORTS_END |
| 1178 | 1178 | |
| 1179 | INPUT_PORTS_START( ghostb3 ) | |
| 1179 | static INPUT_PORTS_START( ghostb3 ) | |
| 1180 | 1180 | PORT_INCLUDE(ghostb) |
| 1181 | 1181 | |
| 1182 | 1182 | PORT_MODIFY("IN2") |
| r1238 | r1239 | |
| 1191 | 1191 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START3 ) |
| 1192 | 1192 | INPUT_PORTS_END |
| 1193 | 1193 | |
| 1194 | INPUT_PORTS_START( srdarwin ) | |
| 1194 | static INPUT_PORTS_START( srdarwin ) | |
| 1195 | 1195 | PORT_START_TAG("IN0") |
| 1196 | 1196 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 1197 | 1197 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 1264 | 1264 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) /* Fake */ |
| 1265 | 1265 | INPUT_PORTS_END |
| 1266 | 1266 | |
| 1267 | INPUT_PORTS_START( gondo ) | |
| 1267 | static INPUT_PORTS_START( gondo ) | |
| 1268 | 1268 | PORT_START_TAG("IN0") |
| 1269 | 1269 | PLAYER1_JOYSTICK |
| 1270 | 1270 | /* Top 4 bits are rotary controller */ |
| r1238 | r1239 | |
| 1352 | 1352 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1353 | 1353 | INPUT_PORTS_END |
| 1354 | 1354 | |
| 1355 | INPUT_PORTS_START( oscar ) | |
| 1355 | static INPUT_PORTS_START( oscar ) | |
| 1356 | 1356 | PORT_START_TAG("IN0") |
| 1357 | 1357 | PLAYER1_JOYSTICK |
| 1358 | 1358 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 1425 | 1425 | PORT_DIPSETTING( 0x80, DEF_STR( Yes ) ) |
| 1426 | 1426 | INPUT_PORTS_END |
| 1427 | 1427 | |
| 1428 | INPUT_PORTS_START( oscarj0 ) | |
| 1428 | static INPUT_PORTS_START( oscarj0 ) | |
| 1429 | 1429 | PORT_START_TAG("IN0") |
| 1430 | 1430 | PLAYER1_JOYSTICK |
| 1431 | 1431 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 1498 | 1498 | PORT_DIPSETTING( 0x80, DEF_STR( Yes ) ) |
| 1499 | 1499 | INPUT_PORTS_END |
| 1500 | 1500 | |
| 1501 | INPUT_PORTS_START( lastmisn ) | |
| 1501 | static INPUT_PORTS_START( lastmisn ) | |
| 1502 | 1502 | PORT_START_TAG("IN0") |
| 1503 | 1503 | PLAYER1_JOYSTICK |
| 1504 | 1504 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 1572 | 1572 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 1573 | 1573 | INPUT_PORTS_END |
| 1574 | 1574 | |
| 1575 | INPUT_PORTS_START( lastmsnj ) | |
| 1575 | static INPUT_PORTS_START( lastmsnj ) | |
| 1576 | 1576 | PORT_START_TAG("IN0") |
| 1577 | 1577 | PLAYER1_JOYSTICK |
| 1578 | 1578 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 1646 | 1646 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1647 | 1647 | INPUT_PORTS_END |
| 1648 | 1648 | |
| 1649 | INPUT_PORTS_START( shackled ) | |
| 1649 | static INPUT_PORTS_START( shackled ) | |
| 1650 | 1650 | PORT_START_TAG("IN0") |
| 1651 | 1651 | PLAYER1_JOYSTICK |
| 1652 | 1652 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 1725 | 1725 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1726 | 1726 | INPUT_PORTS_END |
| 1727 | 1727 | |
| 1728 | INPUT_PORTS_START( csilver ) | |
| 1728 | static INPUT_PORTS_START( csilver ) | |
| 1729 | 1729 | PORT_START_TAG("IN0") |
| 1730 | 1730 | PLAYER1_JOYSTICK |
| 1731 | 1731 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
| 1799 | 1799 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1800 | 1800 | INPUT_PORTS_END |
| 1801 | 1801 | |
| 1802 | INPUT_PORTS_START( garyoret ) | |
| 1802 | static INPUT_PORTS_START( garyoret ) | |
| 1803 | 1803 | PORT_START_TAG("IN0") |
| 1804 | 1804 | PLAYER1_JOYSTICK |
| 1805 | 1805 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r1238 | r1239 | |
|---|---|---|
| 61 | 61 | AM_RANGE(0x0000, 0x1fff) AM_WRITE(MWA8_ROM) |
| 62 | 62 | ADDRESS_MAP_END |
| 63 | 63 | |
| 64 | INPUT_PORTS_START( inports ) | |
| 64 | static INPUT_PORTS_START( inports ) | |
| 65 | 65 | PORT_START |
| 66 | 66 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 67 | 67 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 120 | 120 | ADDRESS_MAP_END |
| 121 | 121 | |
| 122 | 122 | |
| 123 | INPUT_PORTS_START( mnight ) | |
| 123 | static INPUT_PORTS_START( mnight ) | |
| 124 | 124 | PORT_START /* Player 1 controls */ |
| 125 | 125 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 126 | 126 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
| 201 | 201 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) |
| 202 | 202 | INPUT_PORTS_END |
| 203 | 203 | |
| 204 | INPUT_PORTS_START( arkarea ) | |
| 204 | static INPUT_PORTS_START( arkarea ) | |
| 205 | 205 | PORT_START /* Player 1 controls */ |
| 206 | 206 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 207 | 207 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 46 | 46 | |
| 47 | 47 | |
| 48 | 48 | |
| 49 | INPUT_PORTS_START( pkunwar ) | |
| 49 | static INPUT_PORTS_START( pkunwar ) | |
| 50 | 50 | PORT_START /* IN0 */ |
| 51 | 51 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 52 | 52 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| r1238 | r1239 | |
|---|---|---|
| 294 | 294 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START##_n_ ) |
| 295 | 295 | |
| 296 | 296 | |
| 297 | INPUT_PORTS_START( tbowl ) | |
| 297 | static INPUT_PORTS_START( tbowl ) | |
| 298 | 298 | PORT_START /* player 1 inputs (0xfc00) */ |
| 299 | 299 | TBOWL_PLAYER_INPUT(1) |
| 300 | 300 | |
| r1238 | r1239 | |
| 400 | 400 | |
| 401 | 401 | /* same as 'tbowl', but different "Quarter Time" Dip Switch |
| 402 | 402 | ("3:00" and "4:00" are inverted) */ |
| 403 | INPUT_PORTS_START( tbowlj ) | |
| 403 | static INPUT_PORTS_START( tbowlj ) | |
| 404 | 404 | PORT_START /* player 1 inputs (0xfc00) */ |
| 405 | 405 | TBOWL_PLAYER_INPUT(1) |
| 406 | 406 |
| r1238 | r1239 | |
|---|---|---|
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | |
| 119 | INPUT_PORTS_START( battlane ) | |
| 119 | static INPUT_PORTS_START( battlane ) | |
| 120 | 120 | PORT_START /* IN0 */ |
| 121 | 121 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 122 | 122 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
|---|---|---|
| 689 | 689 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_COIN1 ) /* COINL */ \ |
| 690 | 690 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 691 | 691 | |
| 692 | INPUT_PORTS_START( tmek ) | |
| 692 | static INPUT_PORTS_START( tmek ) | |
| 693 | 693 | COMMON_IN0 /* 68.SW (A1=0) */ |
| 694 | 694 | |
| 695 | 695 | COMMON_IN1 /* 68.SW (A1=1) */ |
| r1238 | r1239 | |
| 721 | 721 | INPUT_PORTS_END |
| 722 | 722 | |
| 723 | 723 | |
| 724 | INPUT_PORTS_START( primrage ) | |
| 724 | static INPUT_PORTS_START( primrage ) | |
| 725 | 725 | COMMON_IN0 /* 68.SW (A1=0) */ |
| 726 | 726 | |
| 727 | 727 | COMMON_IN1 /* 68.SW (A1=1) bit 0x0008 does something */ |
| r1238 | r1239 | |
|---|---|---|
| 82 | 82 | AM_RANGE(0x0a, 0x0a) AM_READ(input_port_2_r) |
| 83 | 83 | ADDRESS_MAP_END |
| 84 | 84 | |
| 85 | INPUT_PORTS_START( cm2v841 ) | |
| 85 | static INPUT_PORTS_START( cm2v841 ) | |
| 86 | 86 | PORT_START_TAG("PLAYER") |
| 87 | 87 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Bit 0") PORT_CODE(KEYCODE_Q) |
| 88 | 88 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Bit 1") PORT_CODE(KEYCODE_W) |
| r1238 | r1239 | |
|---|---|---|
| 124 | 124 | ADDRESS_MAP_END |
| 125 | 125 | |
| 126 | 126 | |
| 127 | INPUT_PORTS_START( rbmk ) | |
| 127 | static INPUT_PORTS_START( rbmk ) | |
| 128 | 128 | |
| 129 | 129 | PORT_START /* 16bit */ |
| 130 | 130 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Controls ) ) |
| r1238 | r1239 | |
|---|---|---|
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | |
| 131 | INPUT_PORTS_START( tourtabl ) | |
| 131 | static INPUT_PORTS_START( tourtabl ) | |
| 132 | 132 | |
| 133 | 133 | PORT_START |
| 134 | 134 | PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_SENSITIVITY(40) PORT_KEYDELTA(10) PORT_CENTERDELTA(0) PORT_REVERSE PORT_PLAYER(4) |
| r1238 | r1239 | |
|---|---|---|
| 199 | 199 | PORT_DIPSETTING( 0x00, "Disable All Coins" ) |
| 200 | 200 | |
| 201 | 201 | |
| 202 | INPUT_PORTS_START( amidar ) | |
| 202 | static INPUT_PORTS_START( amidar ) | |
| 203 | 203 | AMIDAR_IN0 |
| 204 | 204 | |
| 205 | 205 | AMIDAR_IN1 |
| r1238 | r1239 | |
| 232 | 232 | /* absolutely identical to amidar, the only difference is the BONUS dip switch */ |
| 233 | 233 | /* Cannot find a port 'replace' macro, which would be all that's needed here */ |
| 234 | 234 | /* So instead, I'll use the old definition system */ |
| 235 | INPUT_PORTS_START( amidaru ) | |
| 235 | static INPUT_PORTS_START( amidaru ) | |
| 236 | 236 | AMIDAR_IN0 |
| 237 | 237 | |
| 238 | 238 | AMIDAR_IN1 |
| r1238 | r1239 | |
| 261 | 261 | |
| 262 | 262 | INPUT_PORTS_END |
| 263 | 263 | |
| 264 | INPUT_PORTS_START( amidaro ) | |
| 264 | static INPUT_PORTS_START( amidaro ) | |
| 265 | 265 | AMIDAR_IN0 |
| 266 | 266 | |
| 267 | 267 | PORT_START_TAG("IN1") |
| r1238 | r1239 | |
| 302 | 302 | |
| 303 | 303 | /* similar to Amidar, dip switches are different and port 3, which in Amidar */ |
| 304 | 304 | /* selects coins per credit, is not used. */ |
| 305 | INPUT_PORTS_START( turtles ) | |
| 305 | static INPUT_PORTS_START( turtles ) | |
| 306 | 306 | PORT_START_TAG("IN0") |
| 307 | 307 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 308 | 308 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably space for button 2 */ |
| r1238 | r1239 | |
| 347 | 347 | INPUT_PORTS_END |
| 348 | 348 | |
| 349 | 349 | /* same as Turtles, but dip switches are different. */ |
| 350 | INPUT_PORTS_START( turpin ) | |
| 350 | static INPUT_PORTS_START( turpin ) | |
| 351 | 351 | PORT_START_TAG("IN0") |
| 352 | 352 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| 353 | 353 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably space for button 2 */ |
| r1238 | r1239 | |
|---|---|---|
| 216 | 216 | AM_RANGE(0x80, 0x80) AM_WRITE(trvmadns_banking_w) |
| 217 | 217 | ADDRESS_MAP_END |
| 218 | 218 | |
| 219 | INPUT_PORTS_START( trvmadns ) | |
| 219 | static INPUT_PORTS_START( trvmadns ) | |
| 220 | 220 | PORT_START |
| 221 | 221 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 222 | 222 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1238 | r1239 | |
|---|---|---|
| 329 | 329 | * |
| 330 | 330 | *************************************/ |
| 331 | 331 | |
| 332 | INPUT_PORTS_START( cloud9 ) | |
| 332 | static INPUT_PORTS_START( cloud9 ) | |
| 333 | 333 | PORT_START |
| 334 | 334 | PORT_BIT( 0x07, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 335 | 335 | PORT_SERVICE( 0x08, IP_ACTIVE_LOW ) |
| r1238 | r1239 | |
| 370 | 370 | INPUT_PORTS_END |
| 371 | 371 | |
| 372 | 372 | |
| 373 | INPUT_PORTS_START( firebeas ) | |
| 373 | static INPUT_PORTS_START( firebeas ) | |
| 374 | 374 | PORT_START |
| 375 | 375 | PORT_BIT( 0x07, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 376 | 376 | PORT_SERVICE( 0x08, IP_ACTIVE_LOW ) |
| r1238 | r1239 | |
|---|---|---|
| 301 | 301 | * |
| 302 | 302 | *************************************/ |
| 303 | 303 | |
| 304 | INPUT_PORTS_START( rpunch ) | |
| 304 | static INPUT_PORTS_START( rpunch ) | |
| 305 | 305 | PORT_START /* c0018 lower 8 bits */ |
| 306 | 306 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 307 | 307 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 384 | 384 | INPUT_PORTS_END |
| 385 | 385 | |
| 386 | 386 | |
| 387 | INPUT_PORTS_START( rabiolep ) | |
| 387 | static INPUT_PORTS_START( rabiolep ) | |
| 388 | 388 | PORT_START /* c0018 lower 8 bits */ |
| 389 | 389 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 390 | 390 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 468 | 468 | |
| 469 | 469 | |
| 470 | 470 | |
| 471 | INPUT_PORTS_START( svolley ) | |
| 471 | static INPUT_PORTS_START( svolley ) | |
| 472 | 472 | PORT_START /* c0018 lower 8 bits */ |
| 473 | 473 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 474 | 474 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 54 | 54 | |
| 55 | 55 | /* Input Ports */ |
| 56 | 56 | |
| 57 | INPUT_PORTS_START( yard ) | |
| 57 | static INPUT_PORTS_START( yard ) | |
| 58 | 58 | PORT_START_TAG("IN0") |
| 59 | 59 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 60 | 60 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| r1238 | r1239 | |
| 148 | 148 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 149 | 149 | INPUT_PORTS_END |
| 150 | 150 | |
| 151 | INPUT_PORTS_START( vsyard ) | |
| 151 | static INPUT_PORTS_START( vsyard ) | |
| 152 | 152 | PORT_INCLUDE(yard) |
| 153 | 153 | |
| 154 | 154 | PORT_MODIFY("DSW1") |
| r1238 | r1239 | |
|---|---|---|
| 316 | 316 | ADDRESS_MAP_END |
| 317 | 317 | |
| 318 | 318 | |
| 319 | INPUT_PORTS_START( changela ) | |
| 319 | static INPUT_PORTS_START( changela ) | |
| 320 | 320 | PORT_START /* 0 */ /* DSWA */ |
| 321 | 321 | PORT_DIPNAME( 0x07, 0x01, "Steering Wheel Ratio" ) |
| 322 | 322 | PORT_DIPSETTING( 0x01, "Recommended" ) |
| r1238 | r1239 | |
| 459 | 459 | }; |
| 460 | 460 | |
| 461 | 461 | |
| 462 | INTERRUPT_GEN( chl_interrupt ) | |
| 462 | static INTERRUPT_GEN( chl_interrupt ) | |
| 463 | 463 | { |
| 464 | 464 | int vector = video_screen_get_vblank(0) ? 0xdf : 0xcf; /* 4 irqs per frame: 3 times 0xcf, 1 time 0xdf */ |
| 465 | 465 |
| r1238 | r1239 | |
|---|---|---|
| 96 | 96 | |
| 97 | 97 | ***************************************************************************/ |
| 98 | 98 | |
| 99 | INPUT_PORTS_START( crimfght ) | |
| 99 | static INPUT_PORTS_START( crimfght ) | |
| 100 | 100 | PORT_START /* DSW #1 */ |
| 101 | 101 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coinage ) ) |
| 102 | 102 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
| 222 | 222 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE4 ) |
| 223 | 223 | INPUT_PORTS_END |
| 224 | 224 | |
| 225 | INPUT_PORTS_START( crimfgtj ) | |
| 225 | static INPUT_PORTS_START( crimfgtj ) | |
| 226 | 226 | PORT_START /* DSW #1 */ |
| 227 | 227 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coinage ) ) |
| 228 | 228 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 495 | 495 | return rabbit_tilemap_ram[3][offset]; |
| 496 | 496 | } |
| 497 | 497 | |
| 498 | READ32_HANDLER( randomrabbits ) | |
| 498 | static READ32_HANDLER( randomrabbits ) | |
| 499 | 499 | { |
| 500 | 500 | return mame_rand(Machine); |
| 501 | 501 | } |
| r1238 | r1239 | |
| 824 | 824 | AM_RANGE(0xf00000, 0xffffff) AM_WRITE(MWA32_RAM) |
| 825 | 825 | ADDRESS_MAP_END |
| 826 | 826 | |
| 827 | INPUT_PORTS_START( rabbit ) | |
| 827 | static INPUT_PORTS_START( rabbit ) | |
| 828 | 828 | PORT_START /* 16bit */ |
| 829 | 829 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_SPECIAL ) // Eeprom |
| 830 | 830 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unlabeled in input test |
| r1238 | r1239 | |
| 878 | 878 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 879 | 879 | INPUT_PORTS_END |
| 880 | 880 | |
| 881 | INPUT_PORTS_START( tmmjprd ) | |
| 881 | static INPUT_PORTS_START( tmmjprd ) | |
| 882 | 882 | PORT_START /* 16bit */ |
| 883 | 883 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 884 | 884 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unlabeled in input test |
| r1238 | r1239 | |
|---|---|---|
| 485 | 485 | |
| 486 | 486 | |
| 487 | 487 | /* different players and system inputs than 'asuka' */ |
| 488 | INPUT_PORTS_START( bonzeadv ) | |
| 488 | static INPUT_PORTS_START( bonzeadv ) | |
| 489 | 489 | /* 0x390000 -> 0x10cb7c ($b7c,A5) */ |
| 490 | 490 | PORT_START_TAG("DSWA") |
| 491 | 491 | TAITO_MACHINE_COCKTAIL |
| r1238 | r1239 | |
| 539 | 539 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 540 | 540 | INPUT_PORTS_END |
| 541 | 541 | |
| 542 | INPUT_PORTS_START( jigkmgri ) | |
| 542 | static INPUT_PORTS_START( jigkmgri ) | |
| 543 | 543 | PORT_INCLUDE(bonzeadv) |
| 544 | 544 | |
| 545 | 545 | PORT_MODIFY("DSWA") |
| 546 | 546 | TAITO_COINAGE_JAPAN_OLD |
| 547 | 547 | INPUT_PORTS_END |
| 548 | 548 | |
| 549 | INPUT_PORTS_START( asuka ) | |
| 549 | static INPUT_PORTS_START( asuka ) | |
| 550 | 550 | /* 0x400000 -> 0x103618 */ |
| 551 | 551 | PORT_START_TAG("DSWA") |
| 552 | 552 | TAITO_MACHINE_NO_COCKTAIL |
| r1238 | r1239 | |
| 588 | 588 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) |
| 589 | 589 | INPUT_PORTS_END |
| 590 | 590 | |
| 591 | INPUT_PORTS_START( mofflott ) | |
| 591 | static INPUT_PORTS_START( mofflott ) | |
| 592 | 592 | PORT_INCLUDE(asuka) |
| 593 | 593 | |
| 594 | 594 | /* 0x400000 -> 0x100a92.b */ |
| r1238 | r1239 | |
| 618 | 618 | INPUT_PORTS_END |
| 619 | 619 | |
| 620 | 620 | /* different players and system inputs than 'asuka' */ |
| 621 | INPUT_PORTS_START( cadash ) | |
| 621 | static INPUT_PORTS_START( cadash ) | |
| 622 | 622 | /* 0x900000 -> 0x10317a ($317a,A5) */ |
| 623 | 623 | PORT_START_TAG("DSWA") |
| 624 | 624 | TAITO_MACHINE_NO_COCKTAIL |
| r1238 | r1239 | |
| 666 | 666 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 667 | 667 | INPUT_PORTS_END |
| 668 | 668 | |
| 669 | INPUT_PORTS_START( cadashj ) | |
| 669 | static INPUT_PORTS_START( cadashj ) | |
| 670 | 670 | PORT_INCLUDE(cadash) |
| 671 | 671 | |
| 672 | 672 | PORT_MODIFY("DSWA") |
| 673 | 673 | TAITO_COINAGE_JAPAN_OLD |
| 674 | 674 | INPUT_PORTS_END |
| 675 | 675 | |
| 676 | INPUT_PORTS_START( cadashu ) | |
| 676 | static INPUT_PORTS_START( cadashu ) | |
| 677 | 677 | PORT_INCLUDE(cadash) |
| 678 | 678 | |
| 679 | 679 | PORT_MODIFY("DSWA") |
| 680 | 680 | TAITO_COINAGE_US |
| 681 | 681 | INPUT_PORTS_END |
| 682 | 682 | |
| 683 | INPUT_PORTS_START( galmedes ) | |
| 683 | static INPUT_PORTS_START( galmedes ) | |
| 684 | 684 | PORT_INCLUDE(asuka) |
| 685 | 685 | |
| 686 | 686 | /* 0x400000 -> 0x100982 */ |
| r1238 | r1239 | |
| 724 | 724 | PORT_DIPSETTING( 0x00, "Mode B (World)" ) /* Mode B is TAITO_COINAGE_WORLD */ |
| 725 | 725 | INPUT_PORTS_END |
| 726 | 726 | |
| 727 | INPUT_PORTS_START( earthjkr ) | |
| 727 | static INPUT_PORTS_START( earthjkr ) | |
| 728 | 728 | PORT_INCLUDE(asuka) |
| 729 | 729 | |
| 730 | 730 | /* 0x400000 -> 0x100932 */ |
| r1238 | r1239 | |
| 751 | 751 | PORT_DIPUNUSED( 0x80, IP_ACTIVE_LOW ) |
| 752 | 752 | INPUT_PORTS_END |
| 753 | 753 | |
| 754 | INPUT_PORTS_START( eto ) | |
| 754 | static INPUT_PORTS_START( eto ) | |
| 755 | 755 | PORT_INCLUDE(asuka) |
| 756 | 756 | |
| 757 | 757 | /* 0x300000 -> 0x200914 */ |
| r1238 | r1239 | |
|---|---|---|
| 162 | 162 | ADDRESS_MAP_END |
| 163 | 163 | |
| 164 | 164 | |
| 165 | INPUT_PORTS_START( triplhnt ) | |
| 165 | static INPUT_PORTS_START( triplhnt ) | |
| 166 | 166 | PORT_START /* 0C00 */ |
| 167 | 167 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) |
| 168 | 168 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| r1238 | r1239 | |
|---|---|---|
| 96 | 96 | ADDRESS_MAP_END |
| 97 | 97 | |
| 98 | 98 | |
| 99 | INPUT_PORTS_START( pooyan ) | |
| 99 | static INPUT_PORTS_START( pooyan ) | |
| 100 | 100 | PORT_START /* IN0 */ |
| 101 | 101 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 102 | 102 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 356 | 356 | ADDRESS_MAP_END |
| 357 | 357 | |
| 358 | 358 | |
| 359 | INPUT_PORTS_START( backfire ) | |
| 359 | static INPUT_PORTS_START( backfire ) | |
| 360 | 360 | PORT_START |
| 361 | 361 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 362 | 362 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 131 | 131 | |
| 132 | 132 | ***************************************************************************/ |
| 133 | 133 | |
| 134 | INPUT_PORTS_START( rollerg ) | |
| 134 | static INPUT_PORTS_START( rollerg ) | |
| 135 | 135 | PORT_START |
| 136 | 136 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 137 | 137 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 177 | 177 | |
| 178 | 178 | /******************************************************************************/ |
| 179 | 179 | |
| 180 | INPUT_PORTS_START( sidepckt ) | |
| 180 | static INPUT_PORTS_START( sidepckt ) | |
| 181 | 181 | PORT_START_TAG("0X3000") |
| 182 | 182 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 183 | 183 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 215 | 215 | * |
| 216 | 216 | *************************************/ |
| 217 | 217 | |
| 218 | INPUT_PORTS_START( starwars ) | |
| 218 | static INPUT_PORTS_START( starwars ) | |
| 219 | 219 | PORT_START /* IN0 */ |
| 220 | 220 | PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 221 | 221 | PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
| 292 | 292 | INPUT_PORTS_END |
| 293 | 293 | |
| 294 | 294 | |
| 295 | INPUT_PORTS_START( esb ) | |
| 295 | static INPUT_PORTS_START( esb ) | |
| 296 | 296 | PORT_START /* IN0 */ |
| 297 | 297 | PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 298 | 298 | PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1238 | r1239 | |
|---|---|---|
| 224 | 224 | ADDRESS_MAP_END |
| 225 | 225 | |
| 226 | 226 | |
| 227 | INPUT_PORTS_START( wolfpack ) | |
| 227 | static INPUT_PORTS_START( wolfpack ) | |
| 228 | 228 | |
| 229 | 229 | PORT_START |
| 230 | 230 | PORT_BIT ( 0x03, IP_ACTIVE_HIGH, IPT_UNUSED ) /* dial connects here */ |
| r1238 | r1239 | |
|---|---|---|
| 209 | 209 | |
| 210 | 210 | /* Input Ports */ |
| 211 | 211 | |
| 212 | INPUT_PORTS_START( pirates ) | |
| 212 | static INPUT_PORTS_START( pirates ) | |
| 213 | 213 | PORT_START // IN0 - 0x300000.w |
| 214 | 214 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 215 | 215 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 180 | 180 | else if (tankbatt_nmi_enable) cpunum_set_input_line(0,INPUT_LINE_NMI,PULSE_LINE); |
| 181 | 181 | } |
| 182 | 182 | |
| 183 | INPUT_PORTS_START( tankbatt ) | |
| 183 | static INPUT_PORTS_START( tankbatt ) | |
| 184 | 184 | PORT_START /* IN0 */ |
| 185 | 185 | PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 186 | 186 | PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r1238 | r1239 | |
|---|---|---|
| 158 | 158 | AM_RANGE(0x13, 0x13) AM_WRITENOP |
| 159 | 159 | ADDRESS_MAP_END |
| 160 | 160 | |
| 161 | INPUT_PORTS_START( cmv801 ) | |
| 161 | static INPUT_PORTS_START( cmv801 ) | |
| 162 | 162 | PORT_START_TAG("PLAYER") |
| 163 | 163 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Bit 0") PORT_CODE(KEYCODE_Q) |
| 164 | 164 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Bit 1") PORT_CODE(KEYCODE_W) |
| r1238 | r1239 | |
|---|---|---|
| 128 | 128 | * |
| 129 | 129 | *************************************/ |
| 130 | 130 | |
| 131 | INPUT_PORTS_START( exerion ) | |
| 131 | static INPUT_PORTS_START( exerion ) | |
| 132 | 132 | PORT_START_TAG("IN0") /* player 1 inputs (muxed on 0xa000) */ |
| 133 | 133 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 134 | 134 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 133 | 133 | ADDRESS_MAP_END |
| 134 | 134 | |
| 135 | 135 | |
| 136 | INPUT_PORTS_START( wrally ) | |
| 136 | static INPUT_PORTS_START( wrally ) | |
| 137 | 137 | PORT_START /* DSW #1 & #2 */ |
| 138 | 138 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) |
| 139 | 139 | PORT_DIPSETTING( 0x0003, DEF_STR( Normal ) ) |
| r1238 | r1239 | |
|---|---|---|
| 164 | 164 | |
| 165 | 165 | |
| 166 | 166 | |
| 167 | INPUT_PORTS_START( mosaic ) | |
| 167 | static INPUT_PORTS_START( mosaic ) | |
| 168 | 168 | PORT_START /* IN0 */ |
| 169 | 169 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 170 | 170 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
| 209 | 209 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 210 | 210 | INPUT_PORTS_END |
| 211 | 211 | |
| 212 | INPUT_PORTS_START( gfire2 ) | |
| 212 | static INPUT_PORTS_START( gfire2 ) | |
| 213 | 213 | PORT_START /* IN0 */ |
| 214 | 214 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 215 | 215 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 165 | 165 | AM_RANGE(0x06, 0x06) AM_WRITE(MWA8_NOP) |
| 166 | 166 | ADDRESS_MAP_END |
| 167 | 167 | |
| 168 | INPUT_PORTS_START( meijinsn ) | |
| 168 | static INPUT_PORTS_START( meijinsn ) | |
| 169 | 169 | PORT_START_TAG("IN0") |
| 170 | 170 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 171 | 171 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 93 | 93 | ADDRESS_MAP_END |
| 94 | 94 | |
| 95 | 95 | |
| 96 | INPUT_PORTS_START( ltcasino ) | |
| 96 | static INPUT_PORTS_START( ltcasino ) | |
| 97 | 97 | PORT_START /* Q in service */ |
| 98 | 98 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_CODE(KEYCODE_Z) PORT_NAME("Hold 1") |
| 99 | 99 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_CODE(KEYCODE_X) PORT_NAME("Hold 2") |
| r1238 | r1239 | |
| 272 | 272 | |
| 273 | 273 | INPUT_PORTS_END |
| 274 | 274 | |
| 275 | INPUT_PORTS_START( ltcasin2 ) | |
| 275 | static INPUT_PORTS_START( ltcasin2 ) | |
| 276 | 276 | PORT_START /* Q in service */ |
| 277 | 277 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) //start? |
| 278 | 278 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) |
| r1238 | r1239 | |
| 465 | 465 | INPUT_PORTS_END |
| 466 | 466 | |
| 467 | 467 | |
| 468 | INPUT_PORTS_START( mv4in1 ) | |
| 468 | static INPUT_PORTS_START( mv4in1 ) | |
| 469 | 469 | PORT_START |
| 470 | 470 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_CODE(KEYCODE_Z) PORT_NAME("Hold 1") |
| 471 | 471 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_CODE(KEYCODE_X) PORT_NAME("Hold 2") |
| r1238 | r1239 | |
|---|---|---|
| 146 | 146 | AM_RANGE(0x02, 0x02) AM_WRITE(OKIM6295_data_0_w) |
| 147 | 147 | ADDRESS_MAP_END |
| 148 | 148 | |
| 149 | INPUT_PORTS_START( crospang ) | |
| 149 | static INPUT_PORTS_START( crospang ) | |
| 150 | 150 | PORT_START /* Inputs */ |
| 151 | 151 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_PLAYER(1) |
| 152 | 152 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 217 | 217 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 218 | 218 | INPUT_PORTS_END |
| 219 | 219 | |
| 220 | INPUT_PORTS_START( heuksun ) | |
| 220 | static INPUT_PORTS_START( heuksun ) | |
| 221 | 221 | PORT_START |
| 222 | 222 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_PLAYER(1) |
| 223 | 223 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
| 292 | 292 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 293 | 293 | INPUT_PORTS_END |
| 294 | 294 | |
| 295 | INPUT_PORTS_START( bestri ) | |
| 295 | static INPUT_PORTS_START( bestri ) | |
| 296 | 296 | PORT_START |
| 297 | 297 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_PLAYER(1) |
| 298 | 298 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_PLAYER(1) |
| r1238 | r1239 | |
|---|---|---|
| 82 | 82 | * |
| 83 | 83 | *************************************/ |
| 84 | 84 | |
| 85 | INPUT_PORTS_START( subs ) | |
| 85 | static INPUT_PORTS_START( subs ) | |
| 86 | 86 | PORT_START /* OPTIONS */ |
| 87 | 87 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) |
| 88 | 88 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r1238 | r1239 | |
|---|---|---|
| 118 | 118 | AM_RANGE(0x300000, 0x300fff) AM_READWRITE(SCSP_1_r, SCSP_1_w) |
| 119 | 119 | ADDRESS_MAP_END |
| 120 | 120 | |
| 121 | INPUT_PORTS_START( coolridr ) | |
| 121 | static INPUT_PORTS_START( coolridr ) | |
| 122 | 122 | INPUT_PORTS_END |
| 123 | 123 | |
| 124 | 124 | static const gfx_layout tiles8x8_layout = |
| r1238 | r1239 | |
|---|---|---|
| 82 | 82 | ADDRESS_MAP_END |
| 83 | 83 | |
| 84 | 84 | |
| 85 | INPUT_PORTS_START( darkmist ) | |
| 85 | static INPUT_PORTS_START( darkmist ) | |
| 86 | 86 | PORT_START |
| 87 | 87 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 88 | 88 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 240 | 240 | |
| 241 | 241 | ***************************************************************************/ |
| 242 | 242 | |
| 243 | INPUT_PORTS_START( exctsccr ) | |
| 243 | static INPUT_PORTS_START( exctsccr ) | |
| 244 | 244 | PORT_START /* IN0 */ |
| 245 | 245 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 246 | 246 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1238 | r1239 | |
|---|---|---|
| 98 | 98 | ADDRESS_MAP_END |
| 99 | 99 | |
| 100 | 100 | |
| 101 | INPUT_PORTS_START( ajax ) | |
| 101 | static INPUT_PORTS_START( ajax ) | |
| 102 | 102 | PORT_START_TAG("DSW1") |
| 103 | 103 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3,4") |
| 104 | 104 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 174 | 174 | * |
| 175 | 175 | *************************************/ |
| 176 | 176 | |
| 177 | INPUT_PORTS_START( mquake ) | |
| 177 | static INPUT_PORTS_START( mquake ) | |
| 178 | 178 | PORT_START_TAG("CIA0PORTA") |
| 179 | 179 | PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 180 | 180 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) /* JS0SW */ |
| r1238 | r1239 | |
|---|---|---|
| 143 | 143 | |
| 144 | 144 | |
| 145 | 145 | |
| 146 | INPUT_PORTS_START( funybubl ) | |
| 146 | static INPUT_PORTS_START( funybubl ) | |
| 147 | 147 | PORT_START /* System inputs */ |
| 148 | 148 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 149 | 149 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 104 | 104 | |
| 105 | 105 | |
| 106 | 106 | |
| 107 | INPUT_PORTS_START( shisen ) | |
| 107 | static INPUT_PORTS_START( shisen ) | |
| 108 | 108 | PORT_START_TAG("IN0") |
| 109 | 109 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 110 | 110 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r1238 | r1239 | |
|---|---|---|
| 554 | 554 | |
| 555 | 555 | ******************************************************************************************/ |
| 556 | 556 | |
| 557 | UINT16 *mcu_shared_ram; | |
| 558 | UINT16 *mcu_work_ram; | |
| 557 | UINT16 *nmk16_mcu_shared_ram; | |
| 558 | UINT16 *nmk16_mcu_work_ram; | |
| 559 | 559 | |
| 560 | 560 | #define PROT_JSR(_offs_,_protvalue_,_pc_) \ |
| 561 | if(mcu_shared_ram[(_offs_)/2] == _protvalue_) \ | |
| 561 | if(nmk16_mcu_shared_ram[(_offs_)/2] == _protvalue_) \ | |
| 562 | 562 | { \ |
| 563 | mcu_shared_ram[(_offs_)/2] = 0xffff; /*(MCU job done)*/ \ | |
| 564 | mcu_shared_ram[(_offs_+2-0x10)/2] = 0x4ef9;/*JMP*/\ | |
| 565 | mcu_shared_ram[(_offs_+4-0x10)/2] = 0x0000;/*HI-DWORD*/\ | |
| 566 | mcu_shared_ram[(_offs_+6-0x10)/2] = _pc_; /*LO-DWORD*/\ | |
| 563 | nmk16_mcu_shared_ram[(_offs_)/2] = 0xffff; /*(MCU job done)*/ \ | |
| 564 | nmk16_mcu_shared_ram[(_offs_+2-0x10)/2] = 0x4ef9;/*JMP*/\ | |
| 565 | nmk16_mcu_shared_ram[(_offs_+4-0x10)/2] = 0x0000;/*HI-DWORD*/\ | |
| 566 | nmk16_mcu_shared_ram[(_offs_+6-0x10)/2] = _pc_; /*LO-DWORD*/\ | |
| 567 | 567 | } \ |
| 568 | 568 | |
| 569 | 569 | #define PROT_INPUT(_offs_,_protvalue_,_protinput_,_input_) \ |
| 570 | if(mcu_shared_ram[_offs_] == _protvalue_) \ | |
| 570 | if(nmk16_mcu_shared_ram[_offs_] == _protvalue_) \ | |
| 571 | 571 | {\ |
| 572 | mcu_shared_ram[_protinput_] = ((_input_ & 0xffff0000)>>16);\ | |
| 573 | mcu_shared_ram[_protinput_+1] = (_input_ & 0x0000ffff);\ | |
| 572 | nmk16_mcu_shared_ram[_protinput_] = ((_input_ & 0xffff0000)>>16);\ | |
| 573 | nmk16_mcu_shared_ram[_protinput_+1] = (_input_ & 0x0000ffff);\ | |
| 574 | 574 | } |
| 575 | 575 | |
| 576 | 576 | static READ16_HANDLER( mcu_shared_r ) |
| 577 | 577 | { |
| 578 | return mcu_shared_ram[offset]; | |
| 578 | return nmk16_mcu_shared_ram[offset]; | |
| 579 | 579 | } |
| 580 | 580 | |
| 581 | 581 | //td - hmf |
| r1238 | r1239 | |
| 644 | 644 | |
| 645 | 645 | static WRITE16_HANDLER( hachamf_mcu_shared_w ) |
| 646 | 646 | { |
| 647 | COMBINE_DATA(&mcu_shared_ram[offset]); | |
| 647 | COMBINE_DATA(&nmk16_mcu_shared_ram[offset]); | |
| 648 | 648 | |
| 649 | 649 | switch(offset) |
| 650 | 650 | { |
| r1238 | r1239 | |
| 685 | 685 | case 0x1fe/2: PROT_JSR(0x1fe,0x8026,0x8c36);//8c36 |
| 686 | 686 | PROT_JSR(0x1fe,0x8016,0xd620); break; //unused |
| 687 | 687 | case 0xf00/2: |
| 688 | if(mcu_shared_ram[0xf00/2] == 0x60fe) | |
| 688 | if(nmk16_mcu_shared_ram[0xf00/2] == 0x60fe) | |
| 689 | 689 | { |
| 690 | mcu_shared_ram[0xf00/2] = 0x0000; //this is the coin counter | |
| 691 | mcu_shared_ram[0xf02/2] = 0x0000; | |
| 692 | mcu_shared_ram[0xf04/2] = 0x4ef9; | |
| 693 | mcu_shared_ram[0xf06/2] = 0x0000; | |
| 694 | mcu_shared_ram[0xf08/2] = 0x7dc2; | |
| 690 | nmk16_mcu_shared_ram[0xf00/2] = 0x0000; //this is the coin counter | |
| 691 | nmk16_mcu_shared_ram[0xf02/2] = 0x0000; | |
| 692 | nmk16_mcu_shared_ram[0xf04/2] = 0x4ef9; | |
| 693 | nmk16_mcu_shared_ram[0xf06/2] = 0x0000; | |
| 694 | nmk16_mcu_shared_ram[0xf08/2] = 0x7dc2; | |
| 695 | 695 | } |
| 696 | 696 | break; |
| 697 | 697 | } |
| r1238 | r1239 | |
| 726 | 726 | AM_RANGE(0x09c000, 0x09c7ff) AM_WRITE(nmk_txvideoram_w) AM_BASE(&nmk_txvideoram) |
| 727 | 727 | AM_RANGE(0x0f0000, 0x0f7fff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 728 | 728 | AM_RANGE(0x0f8000, 0x0f8fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 729 | AM_RANGE(0x0f9000, 0x0fdfff) AM_WRITE(MWA16_RAM) AM_BASE(&mcu_work_ram) /* Work RAM */ | |
| 730 | AM_RANGE(0x0fe000, 0x0fefff) AM_RAM AM_READWRITE(mcu_shared_r,hachamf_mcu_shared_w) AM_BASE(&mcu_shared_ram) /* Work RAM */ | |
| 729 | AM_RANGE(0x0f9000, 0x0fdfff) AM_WRITE(MWA16_RAM) AM_BASE(&nmk16_mcu_work_ram) /* Work RAM */ | |
| 730 | AM_RANGE(0x0fe000, 0x0fefff) AM_RAM AM_READWRITE(mcu_shared_r,hachamf_mcu_shared_w) AM_BASE(&nmk16_mcu_shared_ram) /* Work RAM */ | |
| 731 | 731 | AM_RANGE(0x0ff000, 0x0fffff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 732 | 732 | ADDRESS_MAP_END |
| 733 | 733 | |
| 734 | 734 | static WRITE16_HANDLER( tdragon_mcu_shared_w ) |
| 735 | 735 | { |
| 736 | COMBINE_DATA(&mcu_shared_ram[offset]); | |
| 736 | COMBINE_DATA(&nmk16_mcu_shared_ram[offset]); | |
| 737 | 737 | |
| 738 | 738 | switch(offset) |
| 739 | 739 | { |
| r1238 | r1239 | |
| 774 | 774 | case 0x7fe/2: PROT_JSR(0x7fe,0x8026,0xa57a); |
| 775 | 775 | PROT_JSR(0x7fe,0x8016,0xa57a); break; |
| 776 | 776 | case 0xf00/2: |
| 777 | if(mcu_shared_ram[0xf00/2] == 0x60fe) | |
| 777 | if(nmk16_mcu_shared_ram[0xf00/2] == 0x60fe) | |
| 778 | 778 | { |
| 779 | mcu_shared_ram[0xf00/2] = 0x0000; //this is the coin counter | |
| 780 | mcu_shared_ram[0xf02/2] = 0x0000; | |
| 781 | mcu_shared_ram[0xf04/2] = 0x4ef9; | |
| 782 | mcu_shared_ram[0xf06/2] = 0x0000; | |
| 783 | mcu_shared_ram[0xf08/2] = 0x92f4; | |
| 779 | nmk16_mcu_shared_ram[0xf00/2] = 0x0000; //this is the coin counter | |
| 780 | nmk16_mcu_shared_ram[0xf02/2] = 0x0000; | |
| 781 | nmk16_mcu_shared_ram[0xf04/2] = 0x4ef9; | |
| 782 | nmk16_mcu_shared_ram[0xf06/2] = 0x0000; | |
| 783 | nmk16_mcu_shared_ram[0xf08/2] = 0x92f4; | |
| 784 | 784 | } |
| 785 | 785 | break; |
| 786 | 786 | } |
| r1238 | r1239 | |
| 808 | 808 | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(MWA16_ROM) |
| 809 | 809 | AM_RANGE(0x0b0000, 0x0b7fff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 810 | 810 | AM_RANGE(0x0b8000, 0x0b8fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) /* Sprite RAM */ |
| 811 | AM_RANGE(0x0b9000, 0x0bdfff) AM_WRITE(MWA16_RAM) AM_BASE(&mcu_work_ram) /* Work RAM */ | |
| 812 | AM_RANGE(0x0be000, 0x0befff) AM_RAM AM_READWRITE(mcu_shared_r,tdragon_mcu_shared_w) AM_BASE(&mcu_shared_ram) /* Work RAM */ | |
| 811 | AM_RANGE(0x0b9000, 0x0bdfff) AM_WRITE(MWA16_RAM) AM_BASE(&nmk16_mcu_work_ram) /* Work RAM */ | |
| 812 | AM_RANGE(0x0be000, 0x0befff) AM_RAM AM_READWRITE(mcu_shared_r,tdragon_mcu_shared_w) AM_BASE(&nmk16_mcu_shared_ram) /* Work RAM */ | |
| 813 | 813 | AM_RANGE(0x0bf000, 0x0bffff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 814 | 814 | AM_RANGE(0x0c0014, 0x0c0015) AM_WRITE(nmk_flipscreen_w) /* Maybe */ |
| 815 | 815 | AM_RANGE(0x0c0018, 0x0c0019) AM_WRITE(nmk_tilebank_w) /* Tile Bank ? */ |
| r1238 | r1239 | |
| 1127 | 1127 | ADDRESS_MAP_END |
| 1128 | 1128 | |
| 1129 | 1129 | |
| 1130 | INPUT_PORTS_START( vandyke ) | |
| 1130 | static INPUT_PORTS_START( vandyke ) | |
| 1131 | 1131 | PORT_START /* IN0 */ |
| 1132 | 1132 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1133 | 1133 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1206 | 1206 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_4C ) ) |
| 1207 | 1207 | INPUT_PORTS_END |
| 1208 | 1208 | |
| 1209 | INPUT_PORTS_START( blkheart ) | |
| 1209 | static INPUT_PORTS_START( blkheart ) | |
| 1210 | 1210 | PORT_START /* IN0 */ |
| 1211 | 1211 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1212 | 1212 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1284 | 1284 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 1285 | 1285 | INPUT_PORTS_END |
| 1286 | 1286 | |
| 1287 | INPUT_PORTS_START( manybloc ) | |
| 1287 | static INPUT_PORTS_START( manybloc ) | |
| 1288 | 1288 | PORT_START /* IN0 - 0x080000 */ |
| 1289 | 1289 | PORT_BIT( 0x7fff, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1290 | 1290 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // VBLANK ? Check code at 0x005640 |
| r1238 | r1239 | |
| 1354 | 1354 | PORT_DIPSETTING( 0x8000, "Best" ) |
| 1355 | 1355 | INPUT_PORTS_END |
| 1356 | 1356 | |
| 1357 | INPUT_PORTS_START( tharrier ) | |
| 1357 | static INPUT_PORTS_START( tharrier ) | |
| 1358 | 1358 | PORT_START /* IN0 */ |
| 1359 | 1359 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1360 | 1360 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1439 | 1439 | PORT_DIPSETTING( 0x0000, "5" ) |
| 1440 | 1440 | INPUT_PORTS_END |
| 1441 | 1441 | |
| 1442 | INPUT_PORTS_START( mustang ) | |
| 1442 | static INPUT_PORTS_START( mustang ) | |
| 1443 | 1443 | PORT_START /* IN0 */ |
| 1444 | 1444 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1445 | 1445 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1517 | 1517 | PORT_DIPSETTING( 0x0000, "5" ) |
| 1518 | 1518 | INPUT_PORTS_END |
| 1519 | 1519 | |
| 1520 | INPUT_PORTS_START( hachamf ) | |
| 1520 | static INPUT_PORTS_START( hachamf ) | |
| 1521 | 1521 | PORT_START /* IN0 */ |
| 1522 | 1522 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1523 | 1523 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1596 | 1596 | PORT_DIPSETTING( 0x80, "4" ) |
| 1597 | 1597 | INPUT_PORTS_END |
| 1598 | 1598 | |
| 1599 | INPUT_PORTS_START( strahl ) | |
| 1599 | static INPUT_PORTS_START( strahl ) | |
| 1600 | 1600 | PORT_START /* IN0 */ |
| 1601 | 1601 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1602 | 1602 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1673 | 1673 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 1674 | 1674 | INPUT_PORTS_END |
| 1675 | 1675 | |
| 1676 | INPUT_PORTS_START( acrobatm ) | |
| 1676 | static INPUT_PORTS_START( acrobatm ) | |
| 1677 | 1677 | PORT_START /* IN0 */ |
| 1678 | 1678 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1679 | 1679 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1750 | 1750 | PORT_DIPSETTING( 0x00, "5" ) |
| 1751 | 1751 | INPUT_PORTS_END |
| 1752 | 1752 | |
| 1753 | INPUT_PORTS_START( bioship ) | |
| 1753 | static INPUT_PORTS_START( bioship ) | |
| 1754 | 1754 | PORT_START /* IN0 */ |
| 1755 | 1755 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1756 | 1756 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1828 | 1828 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_4C ) ) |
| 1829 | 1829 | INPUT_PORTS_END |
| 1830 | 1830 | |
| 1831 | INPUT_PORTS_START( tdragon ) | |
| 1831 | static INPUT_PORTS_START( tdragon ) | |
| 1832 | 1832 | PORT_START /* IN0 */ |
| 1833 | 1833 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1834 | 1834 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1908 | 1908 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1909 | 1909 | INPUT_PORTS_END |
| 1910 | 1910 | |
| 1911 | INPUT_PORTS_START( tdragonb ) | |
| 1911 | static INPUT_PORTS_START( tdragonb ) | |
| 1912 | 1912 | PORT_START /* IN0 */ |
| 1913 | 1913 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1914 | 1914 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 1988 | 1988 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1989 | 1989 | INPUT_PORTS_END |
| 1990 | 1990 | |
| 1991 | INPUT_PORTS_START( ssmissin ) | |
| 1991 | static INPUT_PORTS_START( ssmissin ) | |
| 1992 | 1992 | PORT_START /* IN0 */ |
| 1993 | 1993 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1994 | 1994 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2078 | 2078 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 2079 | 2079 | INPUT_PORTS_END |
| 2080 | 2080 | |
| 2081 | INPUT_PORTS_START( airattck ) | |
| 2081 | static INPUT_PORTS_START( airattck ) | |
| 2082 | 2082 | PORT_START /* IN0 */ |
| 2083 | 2083 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2084 | 2084 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2156 | 2156 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 2157 | 2157 | INPUT_PORTS_END |
| 2158 | 2158 | |
| 2159 | INPUT_PORTS_START( macross ) | |
| 2159 | static INPUT_PORTS_START( macross ) | |
| 2160 | 2160 | PORT_START /* IN0 */ |
| 2161 | 2161 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2162 | 2162 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2244 | 2244 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 2245 | 2245 | INPUT_PORTS_END |
| 2246 | 2246 | |
| 2247 | INPUT_PORTS_START( macross2 ) | |
| 2247 | static INPUT_PORTS_START( macross2 ) | |
| 2248 | 2248 | PORT_START /* IN0 */ |
| 2249 | 2249 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2250 | 2250 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2333 | 2333 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 2334 | 2334 | INPUT_PORTS_END |
| 2335 | 2335 | |
| 2336 | INPUT_PORTS_START( tdragon2 ) | |
| 2336 | static INPUT_PORTS_START( tdragon2 ) | |
| 2337 | 2337 | PORT_START /* IN0 */ |
| 2338 | 2338 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2339 | 2339 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2421 | 2421 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 2422 | 2422 | INPUT_PORTS_END |
| 2423 | 2423 | |
| 2424 | INPUT_PORTS_START( gunnail ) | |
| 2424 | static INPUT_PORTS_START( gunnail ) | |
| 2425 | 2425 | PORT_START /* IN0 */ |
| 2426 | 2426 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2427 | 2427 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2502 | 2502 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 2503 | 2503 | INPUT_PORTS_END |
| 2504 | 2504 | |
| 2505 | INPUT_PORTS_START( raphero ) | |
| 2505 | static INPUT_PORTS_START( raphero ) | |
| 2506 | 2506 | PORT_START /* IN0 */ |
| 2507 | 2507 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2508 | 2508 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2580 | 2580 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 2581 | 2581 | INPUT_PORTS_END |
| 2582 | 2582 | |
| 2583 | INPUT_PORTS_START( sabotenb ) | |
| 2583 | static INPUT_PORTS_START( sabotenb ) | |
| 2584 | 2584 | PORT_START /* IN0 */ |
| 2585 | 2585 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2586 | 2586 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2654 | 2654 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 2655 | 2655 | INPUT_PORTS_END |
| 2656 | 2656 | |
| 2657 | INPUT_PORTS_START( bjtwin ) | |
| 2657 | static INPUT_PORTS_START( bjtwin ) | |
| 2658 | 2658 | PORT_START /* IN0 */ |
| 2659 | 2659 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2660 | 2660 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
| 2734 | 2734 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 2735 | 2735 | INPUT_PORTS_END |
| 2736 | 2736 | |
| 2737 | INPUT_PORTS_START( nouryoku ) | |
| 2737 | static INPUT_PORTS_START( nouryoku ) | |
| 2738 | 2738 | PORT_START /* IN0 */ |
| 2739 | 2739 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2740 | 2740 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r1238 | r1239 | |
|---|---|---|
| 201 | 201 | * Input Ports * |
| 202 | 202 | *************************/ |
| 203 | 203 | |
| 204 | INPUT_PORTS_START( miniboy7 ) | |
| 204 | static INPUT_PORTS_START( miniboy7 ) | |
| 205 | 205 | INPUT_PORTS_END |
| 206 | 206 | |
| 207 | 207 |
| r1238 | r1239 | |
|---|---|---|
| 73 | 73 | |
| 74 | 74 | /* Input Ports */ |
| 75 | 75 | |
| 76 | INPUT_PORTS_START( nitedrvr ) | |
| 76 | static INPUT_PORTS_START( nitedrvr ) | |
| 77 | 77 | PORT_START // fake |
| 78 | 78 | PORT_DIPNAME( 0x30, 0x10, DEF_STR( Coinage ) ) |
| 79 | 79 | PORT_DIPSETTING( 0x30, DEF_STR( 2C_1C ) ) |
| r1238 | r1239 | |
|---|---|---|
| 83 | 83 | }; |
| 84 | 84 | |
| 85 | 85 | |
| 86 | typedef struct _thread_info thread_info; | |
| 87 | struct _thread_info | |
| 86 | typedef struct _work_thread_info work_thread_info; | |
| 87 | struct _work_thread_info | |
| 88 | 88 | { |
| 89 | 89 | osd_work_queue * queue; // pointer back to the queue |
| 90 | 90 | HANDLE handle; // handle to the thread |
| r1238 | r1239 | |
| 113 | 113 | volatile UINT8 exiting; // should the threads exit on their next opportunity? |
| 114 | 114 | UINT32 threads; // number of threads in this queue |
| 115 | 115 | UINT32 flags; // creation flags |
| 116 | thread_info * | |
| 116 | work_thread_info * | |
| 117 | 117 | HANDLE doneevent; // event signalled when work is complete |
| 118 | 118 | |
| 119 | 119 | #if KEEP_STATISTICS |
| r1238 | r1239 | |
| 145 | 145 | |
| 146 | 146 | static int effective_num_processors(void); |
| 147 | 147 | static unsigned __stdcall worker_thread_entry(void *param); |
| 148 | static void worker_thread_process(osd_work_queue *queue, thread_info *thread); | |
| 148 | static void worker_thread_process(osd_work_queue *queue, work_thread_info *thread); | |
| 149 | 149 | |
| 150 | 150 | |
| 151 | 151 | |
| r1238 | r1239 | |
| 274 | 274 | // iterate over threads |
| 275 | 275 | for (threadnum = 0; threadnum < queue->threads; threadnum++) |
| 276 | 276 | { |
| 277 | thread_info *thread = &queue->thread[threadnum]; | |
| 277 | work_thread_info *thread = &queue->thread[threadnum]; | |
| 278 | 278 | uintptr_t handle; |
| 279 | 279 | |
| 280 | 280 | // set a pointer back to the queue |
| r1238 | r1239 | |
| 337 | 337 | // if this is a multi queue, help out rather than doing nothing |
| 338 | 338 | if (queue->flags & WORK_QUEUE_FLAG_MULTI) |
| 339 | 339 | { |
| 340 | thread_info *thread = &queue->thread[queue->threads]; | |
| 340 | work_thread_info *thread = &queue->thread[queue->threads]; | |
| 341 | 341 | osd_ticks_t stopspin = osd_ticks() + timeout; |
| 342 | 342 | |
| 343 | 343 | end_timing(thread->waittime); |
| r1238 | r1239 | |
| 390 | 390 | queue->exiting = TRUE; |
| 391 | 391 | for (threadnum = 0; threadnum < queue->threads; threadnum++) |
| 392 | 392 | { |
| 393 | thread_info *thread = &queue->thread[threadnum]; | |
| 393 | work_thread_info *thread = &queue->thread[threadnum]; | |
| 394 | 394 | if (thread->wakeevent != NULL) |
| 395 | 395 | SetEvent(thread->wakeevent); |
| 396 | 396 | } |
| r1238 | r1239 | |
| 398 | 398 | // wait for all the threads to go away |
| 399 | 399 | for (threadnum = 0; threadnum < queue->threads; threadnum++) |
| 400 | 400 | { |
| 401 | thread_info *thread = &queue->thread[threadnum]; | |
| 401 | work_thread_info *thread = &queue->thread[threadnum]; | |
| 402 | 402 | |
| 403 | 403 | // block on the thread going away, then close the handle |
| 404 | 404 | if (thread->handle != NULL) |
| r1238 | r1239 | |
| 416 | 416 | // output per-thread statistics |
| 417 | 417 | for (threadnum = 0; threadnum <= queue->threads; threadnum++) |
| 418 | 418 | { |
| 419 | thread_info *thread = &queue->thread[threadnum]; | |
| 419 | work_thread_info *thread = &queue->thread[threadnum]; | |
| 420 | 420 | osd_ticks_t total = thread->runtime + thread->waittime + thread->spintime; |
| 421 | 421 | printf("Thread %d: items=%9d run=%5.2f%% (%5.2f%%) spin=%5.2f%% wait/other=%5.2f%%\n", |
| 422 | 422 | threadnum, thread->itemsdone, |
| r1238 | r1239 | |
| 532 | 532 | // iterate over all the threads |
| 533 | 533 | for (threadnum = 0; threadnum < queue->threads; threadnum++) |
| 534 | 534 | { |
| 535 | thread_info *thread = &queue->thread[threadnum]; | |
| 535 | work_thread_info *thread = &queue->thread[threadnum]; | |
| 536 | 536 | |
| 537 | 537 | // if this thread is not active, wake him up |
| 538 | 538 | if (!thread->active) |
| r1238 | r1239 | |
| 648 | 648 | |
| 649 | 649 | static unsigned __stdcall worker_thread_entry(void *param) |
| 650 | 650 | { |
| 651 | thread_info *thread = param; | |
| 651 | work_thread_info *thread = param; | |
| 652 | 652 | osd_work_queue *queue = thread->queue; |
| 653 | 653 | |
| 654 | 654 | // loop until we exit |
| r1238 | r1239 | |
| 708 | 708 | // worker_thread_process |
| 709 | 709 | //============================================================ |
| 710 | 710 | |
| 711 | static void worker_thread_process(osd_work_queue *queue, thread_info *thread) | |
| 711 | static void worker_thread_process(osd_work_queue *queue, work_thread_info *thread) | |
| 712 | 712 | { |
| 713 | 713 | int threadid = thread - queue->thread; |
| 714 | 714 |
| r1238 | r1239 | |
|---|---|---|
| 14 | 14 | |
| 15 | 15 | #ifdef PTR64 |
| 16 | 16 | #include <intrin.h> |
| 17 | #pragma intrinsic(_BitScanReverse) | |
| 18 | #else | |
| 19 | #pragma intrinsic(_InterlockedCompareExchange) | |
| 20 | #pragma intrinsic(_InterlockedExchange) | |
| 21 | #pragma intrinsic(_InterlockedExchangeAdd) | |
| 17 | 22 | #endif |
| 18 | 23 | |
| 19 | 24 | |
| r1238 | r1239 | |
| 396 | 401 | } |
| 397 | 402 | |
| 398 | 403 | |
| 404 | /*------------------------------------------------- | |
| 405 | atomic_increment32 - atomically increment the | |
| 406 | 32-bit value in memory at 'ptr', returning the | |
| 407 | final result. | |
| 408 | -------------------------------------------------*/ | |
| 409 | ||
| 410 | #define atomic_increment32 _atomic_increment32 | |
| 411 | INLINE INT32 _atomic_increment32(INT32 volatile *ptr, INT32 delta) | |
| 412 | { | |
| 413 | return _InterlockedIncrement(ptr); | |
| 414 | } | |
| 415 | ||
| 416 | ||
| 417 | /*------------------------------------------------- | |
| 418 | atomic_decrement32 - atomically decrement the | |
| 419 | 32-bit value in memory at 'ptr', returning the | |
| 420 | final result. | |
| 421 | -------------------------------------------------*/ | |
| 422 | ||
| 423 | #define atomic_decrement32 _atomic_decrement32 | |
| 424 | INLINE INT32 _atomic_decrement32(INT32 volatile *ptr, INT32 delta) | |
| 425 | { | |
| 426 | return _InterlockedDecrement(ptr); | |
| 427 | } | |
| 428 | ||
| 429 | ||
| 399 | 430 | #endif /* __OSINLINE__ */ |
| r1238 | r1239 | |
|---|---|---|
| 7 | 7 | * Olivier Galibert, Sylvain Glaize, and James Forshaw. |
| 8 | 8 | * |
| 9 | 9 | * |
| 10 | * TODO: interrupts | |
| 11 | * FPU | |
| 10 | * TODO: FPU | |
| 11 | * DMA | |
| 12 | 12 | * on-board peripherals |
| 13 | 13 | * |
| 14 | 14 | * DONE: boot/reset setup |
| r1238 | r1239 | |
| 17 | 17 | * additional registers for supervisor mode |
| 18 | 18 | * FPU status and data registers |
| 19 | 19 | * state save for the new registers |
| 20 | * interrupts | |
| 21 | * store queues | |
| 20 | 22 | * |
| 21 | 23 | *****************************************************************************/ |
| 22 | 24 | |
| r1238 | r1239 | |
| 41 | 43 | |
| 42 | 44 | typedef struct |
| 43 | 45 | { |
| 44 | int irq_vector; | |
| 45 | int irq_priority; | |
| 46 | } irq_entry; | |
| 47 | ||
| 48 | typedef struct | |
| 49 | { | |
| 50 | 46 | UINT32 ppc; |
| 51 | 47 | UINT32 pc, spc; |
| 52 | 48 | UINT32 pr; |
| r1238 | r1239 | |
| 64 | 60 | UINT32 fpul; |
| 65 | 61 | UINT32 dbr; |
| 66 | 62 | |
| 67 | irq_entry irq_queue[16]; | |
| 68 | 63 | UINT32 exception_priority[128]; |
| 69 | 64 | int exception_requesting[128]; |
| 70 | 65 | |
| r1238 | r1239 | |
| 74 | 69 | INT8 nmi_line_state; |
| 75 | 70 | |
| 76 | 71 | int frt_input; |
| 72 | int irln; | |
| 77 | 73 | int internal_irq_level; |
| 78 | 74 | int internal_irq_vector; |
| 79 | 75 | |
| 80 | mame_timer *dma_timer[ | |
| 76 | mame_timer *dma_timer[4]; | |
| 81 | 77 | mame_timer *refresh_timer; |
| 82 | 78 | mame_timer *rtc_timer; |
| 83 | 79 | mame_timer *timer0; |
| r1238 | r1239 | |
| 98 | 94 | static const int tcnt_div[8] = { 4, 16, 64, 256, 1024, 1, 1, 1 }; |
| 99 | 95 | static const int rtcnt_div[8] = { 0, 4, 16, 64, 256, 1024, 2048, 4096 }; |
| 100 | 96 | static const int daysmonth[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; |
| 97 | static const int dmasize[8] = { 8, 1, 2, 4, 32, 0, 0, 0 }; | |
| 101 | 98 | static const UINT32 exception_priority_default[] = { EXPPRI(1,1,0,0), EXPPRI(1,2,0,1), EXPPRI(1,1,0,2), EXPPRI(1,3,0,3), EXPPRI(1,4,0,4), |
| 102 | 99 | EXPPRI(2,0,0,5), EXPPRI(2,1,0,6), EXPPRI(2,2,0,7), EXPPRI(2,3,0,8), EXPPRI(2,4,0,9), EXPPRI(2,4,0,10), EXPPRI(2,4,0,11), EXPPRI(2,4,0,12), |
| 103 | 100 | EXPPRI(2,5,0,13), EXPPRI(2,5,0,14), EXPPRI(2,6,0,15), EXPPRI(2,6,0,16), EXPPRI(2,7,0,17), EXPPRI(2,7,0,18), EXPPRI(2,8,0,19), |
| r1238 | r1239 | |
| 340 | 337 | } |
| 341 | 338 | } |
| 342 | 339 | |
| 340 | INLINE void sh4_exception_checkunrequest(int exception) | |
| 341 | { | |
| 342 | if (exception == SH4_INTC_NMI) | |
| 343 | sh4_exception_unrequest(exception); | |
| 344 | if ((exception == SH4_INTC_DMTE0) || (exception == SH4_INTC_DMTE1) || | |
| 345 | (exception == SH4_INTC_DMTE2) || (exception == SH4_INTC_DMTE3)) | |
| 346 | sh4_exception_unrequest(exception); | |
| 347 | } | |
| 348 | ||
| 343 | 349 | INLINE void sh4_exception(const char *message, int exception) // handle exception |
| 344 | 350 | { |
| 345 | 351 | UINT32 vector; |
| r1238 | r1239 | |
| 349 | 355 | if (exception == SH4_INTC_NMI) { |
| 350 | 356 | if ((sh4.sr & BL) && (!(sh4.m[ICR] & 0x200))) |
| 351 | 357 | return; |
| 352 | sh4_exception_unrequest(SH4_INTC_NMI); | |
| 353 | 358 | sh4.m[ICR] &= ~0x200; |
| 354 | 359 | sh4.m[INTEVT] = 0x1c0; |
| 355 | 360 | vector = 0x600; |
| r1238 | r1239 | |
| 370 | 375 | sh4.irq_callback(SH4_IRL3+1); |
| 371 | 376 | LOG(("SH-4 #%d interrupt exception #%d after [%s]\n", cpu_getactivecpu(), exception, message)); |
| 372 | 377 | } |
| 378 | sh4_exception_checkunrequest(exception); | |
| 373 | 379 | |
| 374 | 380 | sh4.spc = sh4.pc; |
| 375 | 381 | sh4.ssr = sh4.sr; |
| r1238 | r1239 | |
| 2229 | 2235 | INLINE void SHAD(UINT32 m,UINT32 n) |
| 2230 | 2236 | { |
| 2231 | 2237 | if ((sh4.r[m] & 0x80000000) == 0) |
| 2232 | sh4.r[n] = sh4.r[n] << (sh4.r[ | |
| 2238 | sh4.r[n] = sh4.r[n] << (sh4.r[m] & 0x1F); | |
| 2233 | 2239 | else if ((sh4.r[m] & 0x1F) == 0) { |
| 2234 | 2240 | if ((sh4.r[n] & 0x80000000) == 0) |
| 2235 | 2241 | sh4.r[n] = 0; |
| r1238 | r1239 | |
| 2268 | 2274 | sh4.spc = sh4.r[m]; |
| 2269 | 2275 | } |
| 2270 | 2276 | |
| 2277 | /* PREF @Rn */ | |
| 2278 | INLINE void PREFM(UINT32 n) | |
| 2279 | { | |
| 2280 | int a; | |
| 2281 | UINT32 addr,dest,sq; | |
| 2282 | ||
| 2283 | addr = sh4.r[n]; // address | |
| 2284 | if ((addr >= 0xE0000000) && (addr <= 0xE3FFFFFF)) | |
| 2285 | { | |
| 2286 | sq = (addr & 0x20) >> 5; | |
| 2287 | dest = addr & 0x03FFFFE0; | |
| 2288 | if (sq == 0) | |
| 2289 | dest |= (sh4.m[QACR0] & 0x1C) << 24; | |
| 2290 | else | |
| 2291 | dest |= (sh4.m[QACR1] & 0x1C) << 24; | |
| 2292 | addr = addr & 0xFFFFFFE0; | |
| 2293 | for (a = 0;a < 8;a++) | |
| 2294 | { | |
| 2295 | program_write_dword_64le(dest, program_read_dword_64le(addr)); | |
| 2296 | addr += 4; | |
| 2297 | dest += 4; | |
| 2298 | } | |
| 2299 | } | |
| 2300 | } | |
| 2301 | ||
| 2271 | 2302 | /***************************************************************************** |
| 2272 | 2303 | * OPCODE DISPATCHERS |
| 2273 | 2304 | *****************************************************************************/ |
| r1238 | r1239 | |
| 2304 | 2335 | case 0x20: |
| 2305 | 2336 | BRAF(Rn); break; |
| 2306 | 2337 | case 0x80: |
| 2307 | | |
| 2338 | PREFM(Rn); break; | |
| 2308 | 2339 | case 0x90: |
| 2309 | 2340 | TODO(); break; |
| 2310 | 2341 | case 0xA0: |
| r1238 | r1239 | |
| 2771 | 2802 | } |
| 2772 | 2803 | } |
| 2773 | 2804 | |
| 2805 | /* FMOV XDm,@Rn PR=1 1111nnnnmmm11010 */ | |
| 2806 | /* FMOV.S FRm,@Rn PR=0 SZ=0 1111nnnnmmmm1010 */ | |
| 2807 | /* FMOV DRm,@Rn PR=0 SZ=1 1111nnnnmmm01010 */ | |
| 2808 | INLINE void FMOVFRMR(UINT32 m,UINT32 n) | |
| 2809 | { | |
| 2810 | if (sh4.fpscr & PR) { /* PR = 1 */ | |
| 2811 | m= m & 14; | |
| 2812 | sh4.ea = sh4.r[n]; | |
| 2813 | WL( sh4.ea,sh4.xf[m] ); | |
| 2814 | WL( sh4.ea+4,sh4.xf[m+1] ); | |
| 2815 | } else { /* PR = 0 */ | |
| 2816 | if (sh4.fpscr & SZ) { /* SZ = 1 */ | |
| 2817 | m= m & 14; | |
| 2818 | sh4.ea = sh4.r[n]; | |
| 2819 | WL( sh4.ea,sh4.fr[m] ); | |
| 2820 | WL( sh4.ea+4,sh4.fr[m+1] ); | |
| 2821 | } else { /* SZ = 0 */ | |
| 2822 | sh4.ea = sh4.r[n]; | |
| 2823 | WL( sh4.ea,sh4.fr[m] ); | |
| 2824 | } | |
| 2825 | } | |
| 2826 | } | |
| 2827 | ||
| 2774 | 2828 | /* FMOV XDm,@-Rn PR=1 1111nnnnmmm11011 */ |
| 2775 | 2829 | /* FMOV.S FRm,@-Rn PR=0 SZ=0 1111nnnnmmmm1011 */ |
| 2776 | 2830 | /* FMOV DRm,@-Rn PR=0 SZ=1 1111nnnnmmm01011 */ |
| r1238 | r1239 | |
| 2797 | 2851 | } |
| 2798 | 2852 | } |
| 2799 | 2853 | |
| 2854 | /* FLDI1 FRn 1111nnnn10011101 */ | |
| 2855 | INLINE void FLDI1(UINT32 n) | |
| 2856 | { | |
| 2857 | sh4.fr[n] = 0x3F800000; | |
| 2858 | } | |
| 2859 | ||
| 2860 | /* FLDI0 FRn 1111nnnn10001101 */ | |
| 2861 | INLINE void FLDI0(UINT32 n) | |
| 2862 | { | |
| 2863 | sh4.fr[n] = 0; | |
| 2864 | } | |
| 2865 | ||
| 2866 | /* FMOV XDm,@(R0,Rn) PR=1 1111nnnnmmm10111 */ | |
| 2867 | /* FMOV.S FRm,@(R0,Rn) PR=0 SZ=0 1111nnnnmmmm0111 */ | |
| 2868 | /* FMOV DRm,@(R0,Rn) PR=0 SZ=1 1111nnnnmmm00111 */ | |
| 2869 | INLINE void FMOVFRS0(UINT32 m,UINT32 n) | |
| 2870 | { | |
| 2871 | if (sh4.fpscr & PR) { /* PR = 1 */ | |
| 2872 | m= m & 14; | |
| 2873 | sh4.ea = sh4.r[0] + sh4.r[n]; | |
| 2874 | WL( sh4.ea,sh4.xf[m] ); | |
| 2875 | WL( sh4.ea+4,sh4.xf[m+1] ); | |
| 2876 | } else { /* PR = 0 */ | |
| 2877 | if (sh4.fpscr & SZ) { /* SZ = 1 */ | |
| 2878 | m= m & 14; | |
| 2879 | sh4.ea = sh4.r[0] + sh4.r[n]; | |
| 2880 | WL( sh4.ea,sh4.fr[m] ); | |
| 2881 | WL( sh4.ea+4,sh4.fr[m+1] ); | |
| 2882 | } else { /* SZ = 0 */ | |
| 2883 | sh4.ea = sh4.r[0] + sh4.r[n]; | |
| 2884 | WL( sh4.ea,sh4.fr[m] ); | |
| 2885 | } | |
| 2886 | } | |
| 2887 | } | |
| 2888 | ||
| 2889 | /* FMOV @(R0,Rm),XDn PR=1 1111nnn1mmmm0110 */ | |
| 2890 | /* FMOV.S @(R0,Rm),FRn PR=0 SZ=0 1111nnnnmmmm0110 */ | |
| 2891 | /* FMOV @(R0,Rm),DRn PR=0 SZ=1 1111nnn0mmmm0110 */ | |
| 2892 | INLINE void FMOVS0FR(UINT32 m,UINT32 n) | |
| 2893 | { | |
| 2894 | if (sh4.fpscr & PR) { /* PR = 1 */ | |
| 2895 | n= n & 14; | |
| 2896 | sh4.ea = sh4.r[0] + sh4.r[m]; | |
| 2897 | sh4.xf[n] = RL( sh4.ea ); | |
| 2898 | sh4.xf[n+1] = RL( sh4.ea+4 ); | |
| 2899 | } else { /* PR = 0 */ | |
| 2900 | if (sh4.fpscr & SZ) { /* SZ = 1 */ | |
| 2901 | n= n & 14; | |
| 2902 | sh4.ea = sh4.r[0] + sh4.r[m]; | |
| 2903 | sh4.fr[n] = RL( sh4.ea ); | |
| 2904 | sh4.fr[n+1] = RL( sh4.ea+4 ); | |
| 2905 | } else { /* SZ = 0 */ | |
| 2906 | sh4.ea = sh4.r[0] + sh4.r[m]; | |
| 2907 | sh4.fr[n] = RL( sh4.ea ); | |
| 2908 | } | |
| 2909 | } | |
| 2910 | } | |
| 2911 | ||
| 2912 | /* FMOV @Rm,XDn PR=1 1111nnn1mmmm1000 */ | |
| 2913 | /* FMOV.S @Rm,FRn PR=0 SZ=0 1111nnnnmmmm1000 */ | |
| 2914 | /* FMOV @Rm,DRn PR=0 SZ=1 1111nnn0mmmm1000 */ | |
| 2915 | INLINE void FMOVMRFR(UINT32 m,UINT32 n) | |
| 2916 | { | |
| 2917 | if (sh4.fpscr & PR) { /* PR = 1 */ | |
| 2918 | n= n & 14; | |
| 2919 | sh4.ea = sh4.r[m]; | |
| 2920 | sh4.xf[n] = RL( sh4.ea ); | |
| 2921 | sh4.xf[n+1] = RL( sh4.ea+4 ); | |
| 2922 | } else { /* PR = 0 */ | |
| 2923 | if (sh4.fpscr & SZ) { /* SZ = 1 */ | |
| 2924 | n= n & 14; | |
| 2925 | sh4.ea = sh4.r[m]; | |
| 2926 | sh4.fr[n] = RL( sh4.ea ); | |
| 2927 | sh4.fr[n+1] = RL( sh4.ea+4 ); | |
| 2928 | } else { /* SZ = 0 */ | |
| 2929 | sh4.ea = sh4.r[m]; | |
| 2930 | sh4.fr[n] = RL( sh4.ea ); | |
| 2931 | } | |
| 2932 | } | |
| 2933 | } | |
| 2934 | ||
| 2800 | 2935 | /* FRCHG 1111101111111101 */ |
| 2801 | 2936 | INLINE void FRCHG(void) |
| 2802 | 2937 | { |
| r1238 | r1239 | |
| 2833 | 2968 | TODO(); |
| 2834 | 2969 | break; |
| 2835 | 2970 | case 6: |
| 2836 | | |
| 2971 | FMOVS0FR(Rm,Rn); | |
| 2837 | 2972 | break; |
| 2838 | 2973 | case 7: |
| 2839 | | |
| 2974 | FMOVFRS0(Rm,Rn); | |
| 2840 | 2975 | break; |
| 2841 | 2976 | case 8: |
| 2842 | | |
| 2977 | FMOVMRFR(Rm,Rn); | |
| 2843 | 2978 | break; |
| 2844 | 2979 | case 9: |
| 2845 | 2980 | FMOVMRIFR(Rm,Rn); |
| 2846 | 2981 | break; |
| 2847 | 2982 | case 10: |
| 2848 | | |
| 2983 | FMOVFRMR(Rm,Rn); | |
| 2849 | 2984 | break; |
| 2850 | 2985 | case 11: |
| 2851 | 2986 | FMOVFRMDR(Rm,Rn); |
| r1238 | r1239 | |
| 2878 | 3013 | TODO(); |
| 2879 | 3014 | break; |
| 2880 | 3015 | case 0x80: |
| 2881 | | |
| 3016 | FLDI0(Rn); | |
| 2882 | 3017 | break; |
| 2883 | 3018 | case 0x90: |
| 2884 | | |
| 3019 | FLDI1(Rn); | |
| 2885 | 3020 | break; |
| 2886 | 3021 | case 0xA0: |
| 2887 | 3022 | TODO(); |
| r1238 | r1239 | |
| 2914 | 3049 | |
| 2915 | 3050 | static void sh4_reset(void) |
| 2916 | 3051 | { |
| 2917 | void *tsaved | |
| 3052 | void *tsaved[4] | |
| 2918 | 3053 | mame_timer *tsave[5]; |
| 2919 | 3054 | UINT32 *m; |
| 2920 | 3055 | int cpunum; |
| r1238 | r1239 | |
| 2926 | 3061 | |
| 2927 | 3062 | cpunum = sh4.cpu_number; |
| 2928 | 3063 | m = sh4.m; |
| 2929 | tsaved0 = sh4.dma_timer[0]; | |
| 2930 | tsaved1 = sh4.dma_timer[1]; | |
| 3064 | tsaved[0] = sh4.dma_timer[0]; | |
| 3065 | tsaved[1] = sh4.dma_timer[1]; | |
| 3066 | tsaved[2] = sh4.dma_timer[2]; | |
| 3067 | tsaved[3] = sh4.dma_timer[3]; | |
| 2931 | 3068 | tsave[0] = sh4.refresh_timer; |
| 2932 | 3069 | tsave[1] = sh4.rtc_timer; |
| 2933 | 3070 | tsave[2] = sh4.timer0; |
| r1238 | r1239 | |
| 2948 | 3085 | sh4.ftcsr_read_callback = f; |
| 2949 | 3086 | sh4.irq_callback = save_irqcallback; |
| 2950 | 3087 | |
| 2951 | sh4.dma_timer[0] = tsaved0; | |
| 2952 | sh4.dma_timer[1] = tsaved1; | |
| 3088 | sh4.dma_timer[0] = tsaved[0]; | |
| 3089 | sh4.dma_timer[1] = tsaved[1]; | |
| 3090 | sh4.dma_timer[2] = tsaved[2]; | |
| 3091 | sh4.dma_timer[3] = tsaved[3]; | |
| 2953 | 3092 | sh4.refresh_timer = tsave[0]; |
| 2954 | 3093 | sh4.rtc_timer = tsave[1]; |
| 2955 | 3094 | sh4.timer0 = tsave[2]; |
| r1238 | r1239 | |
| 2979 | 3118 | change_pc(sh4.pc & AM); |
| 2980 | 3119 | |
| 2981 | 3120 | sh4.internal_irq_level = -1; |
| 3121 | sh4.irln = 15; | |
| 2982 | 3122 | } |
| 2983 | 3123 | |
| 2984 | 3124 | /* Execute cycles - returns number of cycles actually run */ |
| r1238 | r1239 | |
| 3052 | 3192 | memcpy(&sh4, src, sizeof(SH4)); |
| 3053 | 3193 | } |
| 3054 | 3194 | |
| 3055 | static void sh4_recalc_irq(void) | |
| 3056 | { | |
| 3057 | int irq = 0, vector = -1; | |
| 3058 | int level; | |
| 3059 | ||
| 3060 | // Timer irqs | |
| 3061 | if((sh4.m[4]>>8) & sh4.m[4] & (ICF|OCFA|OCFB|OVF)) | |
| 3062 | { | |
| 3063 | level = (sh4.m[0x18] >> 24) & 15; | |
| 3064 | if(level > irq) | |
| 3065 | { | |
| 3066 | int mask = (sh4.m[4]>>8) & sh4.m[4]; | |
| 3067 | irq = level; | |
| 3068 | if(mask & ICF) | |
| 3069 | vector = (sh4.m[0x19] >> 8) & 0x7f; | |
| 3070 | else if(mask & (OCFA|OCFB)) | |
| 3071 | vector = sh4.m[0x19] & 0x7f; | |
| 3072 | else | |
| 3073 | vector = (sh4.m[0x1a] >> 24) & 0x7f; | |
| 3074 | } | |
| 3075 | } | |
| 3076 | ||
| 3077 | // DMA irqs | |
| 3078 | if((sh4.m[0x63] & 6) == 6) { | |
| 3079 | level = (sh4.m[0x38] >> 8) & 15; | |
| 3080 | if(level > irq) { | |
| 3081 | irq = level; | |
| 3082 | vector = (sh4.m[0x68] >> 24) & 0x7f; | |
| 3083 | } | |
| 3084 | } | |
| 3085 | ||
| 3086 | if((sh4.m[0x67] & 6) == 6) { | |
| 3087 | level = (sh4.m[0x38] >> 8) & 15; | |
| 3088 | if(level > irq) { | |
| 3089 | irq = level; | |
| 3090 | vector = (sh4.m[0x6a] >> 24) & 0x7f; | |
| 3091 | } | |
| 3092 | } | |
| 3093 | ||
| 3094 | ||
| 3095 | sh4.internal_irq_level = irq; | |
| 3096 | sh4.internal_irq_vector = vector; | |
| 3097 | sh4.test_irq = 1; | |
| 3098 | } | |
| 3099 | ||
| 3100 | 3195 | static UINT32 compute_ticks_refresh_timer(mame_timer *timer, int hertz, int base, int divisor) |
| 3101 | 3196 | { |
| 3102 | 3197 | // elapsed:total = x : ticks |
| r1238 | r1239 | |
| 3320 | 3415 | { |
| 3321 | 3416 | sh4.m[RCR1] |= 0x80; |
| 3322 | 3417 | increment_rtc_time(0); |
| 3323 | //sh4_exception_request(SH4_INTC_NMI); // TEST | |
| 3324 | set_irq_line(SH4_IRLn,4); | |
| 3418 | //sh4_exception_request(SH4_INTC_NMI); // TEST | |
| 3325 | 3419 | } |
| 3326 | 3420 | cpuintrf_pop_context(); |
| 3327 | 3421 | } |
| r1238 | r1239 | |
| 3367 | 3461 | |
| 3368 | 3462 | static TIMER_CALLBACK( sh4_dmac_callback ) |
| 3369 | 3463 | { |
| 3370 | int cpunum = param >> 1; | |
| 3371 | int dma = param & 1; | |
| 3464 | int cpunum = param >> 8; | |
| 3465 | int channel = param & 255; | |
| 3372 | 3466 | |
| 3373 | 3467 | cpuintrf_push_context(cpunum); |
| 3374 | LOG(("SH4.%d: DMA %d complete\n", cpunum, dma)); | |
| 3375 | sh4.m[0x63+4*dma] |= 2; | |
| 3376 | sh4.dma_timer_active[dma] = 0; | |
| 3377 | sh4_recalc_irq(); | |
| 3468 | LOG(("SH4.%d: DMA %d complete\n", cpunum, channel)); | |
| 3469 | sh4.dma_timer_active[channel] = 0; | |
| 3470 | switch (channel) | |
| 3471 | { | |
| 3472 | case 0: | |
| 3473 | sh4.m[DMATCR0] = 0; | |
| 3474 | sh4.m[CHCR0] |= 2; | |
| 3475 | if (sh4.m[CHCR0] & 4) | |
| 3476 | sh4_exception_request(SH4_INTC_DMTE0); | |
| 3477 | break; | |
| 3478 | case 1: | |
| 3479 | sh4.m[DMATCR1] = 0; | |
| 3480 | sh4.m[CHCR1] |= 2; | |
| 3481 | if (sh4.m[CHCR1] & 4) | |
| 3482 | sh4_exception_request(SH4_INTC_DMTE1); | |
| 3483 | break; | |
| 3484 | case 2: | |
| 3485 | sh4.m[DMATCR2] = 0; | |
| 3486 | sh4.m[CHCR2] |= 2; | |
| 3487 | if (sh4.m[CHCR2] & 4) | |
| 3488 | sh4_exception_request(SH4_INTC_DMTE2); | |
| 3489 | break; | |
| 3490 | case 3: | |
| 3491 | sh4.m[DMATCR3] = 0; | |
| 3492 | sh4.m[CHCR3] |= 2; | |
| 3493 | if (sh4.m[CHCR3] & 4) | |
| 3494 | sh4_exception_request(SH4_INTC_DMTE3); | |
| 3495 | break; | |
| 3496 | } | |
| 3378 | 3497 | cpuintrf_pop_context(); |
| 3379 | 3498 | } |
| 3380 | 3499 | |
| 3381 | #ifdef UNUSED_FUNCTION | |
| 3382 | static void sh4_dmac_check(int dma) | |
| 3500 | static int sh4_dma_transfer(int channel, int timermode, UINT32 chcr, UINT32 *sar, UINT32 *dar, UINT32 *dmatcr) | |
| 3383 | 3501 | { |
| 3384 | if(sh4.m[0x63+4*dma] & sh4.m[0x6c] & 1) | |
| 3502 | int incs, incd, size; | |
| 3503 | UINT32 src, dst, count; | |
| 3504 | ||
| 3505 | incd = (chcr >> 14) & 3; | |
| 3506 | incs = (chcr >> 12) & 3; | |
| 3507 | size = dmasize[(chcr >> 4) & 7]; | |
| 3508 | if(incd == 3 || incs == 3) | |
| 3385 | 3509 | { |
| 3386 | if(!sh4.dma_timer_active[dma] && !(sh4.m[0x63+4*dma] & 2)) | |
| 3387 | { | |
| 3388 | int incs, incd, size; | |
| 3389 | UINT32 src, dst, count; | |
| 3390 | incd = (sh4.m[0x63+4*dma] >> 14) & 3; | |
| 3391 | incs = (sh4.m[0x63+4*dma] >> 12) & 3; | |
| 3392 | size = (sh4.m[0x63+4*dma] >> 10) & 3; | |
| 3393 | if(incd == 3 || incs == 3) | |
| 3394 | { | |
| 3395 | logerror("SH4: DMA: bad increment values (%d, %d, %d, %04x)\n", incd, incs, size, sh4.m[0x63+4*dma]); | |
| 3396 | return; | |
| 3397 | } | |
| 3398 | src = sh4.m[0x60+4*dma]; | |
| 3399 | dst = sh4.m[0x61+4*dma]; | |
| 3400 | count = sh4.m[0x62+4*dma]; | |
| 3401 | if(!count) | |
| 3402 | count = 0x1000000; | |
| 3510 | logerror("SH4: DMA: bad increment values (%d, %d, %d, %04x)\n", incd, incs, size, chcr); | |
| 3511 | return 0; | |
| 3512 | } | |
| 3513 | src = *sar; | |
| 3514 | dst = *dar; | |
| 3515 | count = *dmatcr; | |
| 3516 | if (!count) | |
| 3517 | count = 0x1000000; | |
| 3403 | 3518 | |
| 3404 | | |
| 3519 | | |
| 3405 | 3520 | |
| 3406 | sh4.dma_timer_active[dma] = 1; | |
| 3407 | mame_timer_adjust(sh4.dma_timer[dma], MAME_TIME_IN_CYCLES(2*count+1, sh4.cpu_number), (sh4.cpu_number<<1)|dma, time_zero); | |
| 3521 | if (timermode == 1) | |
| 3522 | { | |
| 3523 | sh4.dma_timer_active[channel] = 1; | |
| 3524 | mame_timer_adjust(sh4.dma_timer[channel], MAME_TIME_IN_CYCLES(2*count+1, sh4.cpu_number), (sh4.cpu_number << 8) | channel, time_zero); | |
| 3525 | } | |
| 3526 | else if (timermode == 2) | |
| 3527 | { | |
| 3528 | sh4.dma_timer_active[channel] = 1; | |
| 3529 | mame_timer_adjust(sh4.dma_timer[channel], time_zero, (sh4.cpu_number << 8) | channel, time_zero); | |
| 3530 | } | |
| 3408 | 3531 | |
| 3409 | src &= AM; | |
| 3410 | dst &= AM; | |
| 3532 | src &= AM; | |
| 3533 | dst &= AM; | |
| 3411 | 3534 | |
| 3412 | switch(size) | |
| 3413 | { | |
| 3414 | case 0: | |
| 3415 | for(;count > 0; count --) | |
| 3416 | { | |
| 3417 | if(incs == 2) | |
| 3418 | src --; | |
| 3419 | if(incd == 2) | |
| 3420 | dst --; | |
| 3421 | program_write_byte_32le(dst, program_read_byte_32le(src)); | |
| 3422 | if(incs == 1) | |
| 3423 | src ++; | |
| 3424 | if(incd == 1) | |
| 3425 | dst ++; | |
| 3426 | } | |
| 3427 | break; | |
| 3428 | case 1: | |
| 3429 | src &= ~1; | |
| 3430 | dst &= ~1; | |
| 3431 | for(;count > 0; count --) | |
| 3432 | { | |
| 3433 | if(incs == 2) | |
| 3434 | src -= 2; | |
| 3435 | if(incd == 2) | |
| 3436 | dst -= 2; | |
| 3437 | program_write_word_32le(dst, program_read_word_32le(src)); | |
| 3438 | if(incs == 1) | |
| 3439 | src += 2; | |
| 3440 | if(incd == 1) | |
| 3441 | dst += 2; | |
| 3442 | } | |
| 3443 | break; | |
| 3444 | case 2: | |
| 3445 | src &= ~3; | |
| 3446 | dst &= ~3; | |
| 3447 | for(;count > 0; count --) | |
| 3448 | { | |
| 3449 | if(incs == 2) | |
| 3450 | src -= 4; | |
| 3451 | if(incd == 2) | |
| 3452 | dst -= 4; | |
| 3453 | program_write_dword_32le(dst, program_read_dword_32le(src)); | |
| 3454 | if(incs == 1) | |
| 3455 | src += 4; | |
| 3456 | if(incd == 1) | |
| 3457 | dst += 4; | |
| 3535 | switch(size) | |
| 3536 | { | |
| 3537 | case 1: | |
| 3538 | for(;count > 0; count --) | |
| 3539 | { | |
| 3540 | if(incs == 2) | |
| 3541 | src --; | |
| 3542 | if(incd == 2) | |
| 3543 | dst --; | |
| 3544 | program_write_byte_64le(dst, program_read_byte_64le(src)); | |
| 3545 | if(incs == 1) | |
| 3546 | src ++; | |
| 3547 | if(incd == 1) | |
| 3548 | dst ++; | |
| 3549 | } | |
| 3550 | break; | |
| 3551 | case 2: | |
| 3552 | src &= ~1; | |
| 3553 | dst &= ~1; | |
| 3554 | for(;count > 0; count --) | |
| 3555 | { | |
| 3556 | if(incs == 2) | |
| 3557 | src -= 2; | |
| 3558 | if(incd == 2) | |
| 3559 | dst -= 2; | |
| 3560 | program_write_word_64le(dst, program_read_word_64le(src)); | |
| 3561 | if(incs == 1) | |
| 3562 | src += 2; | |
| 3563 | if(incd == 1) | |
| 3564 | dst += 2; | |
| 3565 | } | |
| 3566 | break; | |
| 3567 | case 8: | |
| 3568 | src &= ~7; | |
| 3569 | dst &= ~7; | |
| 3570 | for(;count > 0; count --) | |
| 3571 | { | |
| 3572 | if(incs == 2) | |
| 3573 | src -= 8; | |
| 3574 | if(incd == 2) | |
| 3575 | dst -= 8; | |
| 3576 | program_write_qword_64le(dst, program_read_qword_64le(src)); | |
| 3577 | if(incs == 1) | |
| 3578 | src += 8; | |
| 3579 | if(incd == 1) | |
| 3580 | dst += 8; | |
| 3458 | 3581 | |
| 3459 | } | |
| 3460 | break; | |
| 3461 | case 3: | |
| 3462 | src &= ~3; | |
| 3463 | dst &= ~3; | |
| 3464 | count &= ~3; | |
| 3465 | for(;count > 0; count -= 4) | |
| 3466 | { | |
| 3467 | if(incd == 2) | |
| 3468 | dst -= 16; | |
| 3469 | program_write_dword_32le(dst, program_read_dword_32le(src)); | |
| 3470 | program_write_dword_32le(dst+4, program_read_dword_32le(src+4)); | |
| 3471 | program_write_dword_32le(dst+8, program_read_dword_32le(src+8)); | |
| 3472 | program_write_dword_32le(dst+12, program_read_dword_32le(src+12)); | |
| 3473 | src += 16; | |
| 3474 | if(incd == 1) | |
| 3475 | dst += 16; | |
| 3476 | } | |
| 3477 | break; | |
| 3478 | } | |
| 3479 | 3582 | } |
| 3583 | break; | |
| 3584 | case 4: | |
| 3585 | src &= ~3; | |
| 3586 | dst &= ~3; | |
| 3587 | for(;count > 0; count --) | |
| 3588 | { | |
| 3589 | if(incs == 2) | |
| 3590 | src -= 4; | |
| 3591 | if(incd == 2) | |
| 3592 | dst -= 4; | |
| 3593 | program_write_dword_64le(dst, program_read_dword_64le(src)); | |
| 3594 | if(incs == 1) | |
| 3595 | src += 4; | |
| 3596 | if(incd == 1) | |
| 3597 | dst += 4; | |
| 3598 | ||
| 3599 | } | |
| 3600 | break; | |
| 3601 | case 32: | |
| 3602 | src &= ~31; | |
| 3603 | dst &= ~31; | |
| 3604 | for(;count > 0; count --) | |
| 3605 | { | |
| 3606 | if(incs == 2) | |
| 3607 | src -= 32; | |
| 3608 | if(incd == 2) | |
| 3609 | dst -= 32; | |
| 3610 | program_write_qword_64le(dst, program_read_qword_64le(src)); | |
| 3611 | program_write_qword_64le(dst+8, program_read_qword_64le(src+8)); | |
| 3612 | program_write_qword_64le(dst+16, program_read_qword_64le(src+16)); | |
| 3613 | program_write_qword_64le(dst+24, program_read_qword_64le(src+24)); | |
| 3614 | if(incs == 1) | |
| 3615 | src += 32; | |
| 3616 | if(incd == 1) | |
| 3617 | dst += 32; | |
| 3618 | } | |
| 3619 | break; | |
| 3480 | 3620 | } |
| 3621 | *sar = (*sar & !AM) | src; | |
| 3622 | *dar = (*dar & !AM) | dst; | |
| 3623 | *dmatcr = count; | |
| 3624 | return 1; | |
| 3625 | } | |
| 3626 | ||
| 3627 | static void sh4_dmac_check(int channel) | |
| 3628 | { | |
| 3629 | UINT32 dmatcr,chcr,sar,dar; | |
| 3630 | ||
| 3631 | switch (channel) | |
| 3632 | { | |
| 3633 | case 0: | |
| 3634 | sar = sh4.m[SAR0]; | |
| 3635 | dar = sh4.m[DAR0]; | |
| 3636 | chcr = sh4.m[CHCR0]; | |
| 3637 | dmatcr = sh4.m[DMATCR0]; | |
| 3638 | break; | |
| 3639 | case 1: | |
| 3640 | sar = sh4.m[SAR1]; | |
| 3641 | dar = sh4.m[DAR1]; | |
| 3642 | chcr = sh4.m[CHCR1]; | |
| 3643 | dmatcr = sh4.m[DMATCR1]; | |
| 3644 | break; | |
| 3645 | case 2: | |
| 3646 | sar = sh4.m[SAR2]; | |
| 3647 | dar = sh4.m[DAR2]; | |
| 3648 | chcr = sh4.m[CHCR2]; | |
| 3649 | dmatcr = sh4.m[DMATCR2]; | |
| 3650 | break; | |
| 3651 | case 3: | |
| 3652 | sar = sh4.m[SAR3]; | |
| 3653 | dar = sh4.m[DAR3]; | |
| 3654 | chcr = sh4.m[CHCR3]; | |
| 3655 | dmatcr = sh4.m[DMATCR3]; | |
| 3656 | break; | |
| 3657 | default: | |
| 3658 | return; | |
| 3659 | } | |
| 3660 | if (chcr & sh4.m[DMAOR] & 1) | |
| 3661 | { | |
| 3662 | if ((((chcr >> 8) & 15) < 4) || (((chcr >> 8) & 15) > 6)) | |
| 3663 | return; | |
| 3664 | if (!sh4.dma_timer_active[channel] && !(chcr & 2) && !(sh4.m[DMAOR] & 6)) | |
| 3665 | sh4_dma_transfer(channel, 1, chcr, &sar, &dar, &dmatcr); | |
| 3666 | } | |
| 3481 | 3667 | else |
| 3482 | 3668 | { |
| 3483 | if(sh4.dma_timer_active[ | |
| 3669 | if (sh4.dma_timer_active[channel]) | |
| 3484 | 3670 | { |
| 3485 | logerror("SH4: DMA %d cancelled in-flight", dma); | |
| 3486 | mame_timer_adjust(sh4.dma_timer[dma], time_never, 0, time_zero); | |
| 3487 | sh4.dma_timer_active[dma] = 0; | |
| 3671 | logerror("SH4: DMA %d cancelled in-flight but all data transferred", channel); | |
| 3672 | mame_timer_adjust(sh4.dma_timer[channel], time_never, 0, time_zero); | |
| 3673 | sh4.dma_timer_active[channel] = 0; | |
| 3488 | 3674 | } |
| 3489 | 3675 | } |
| 3490 | 3676 | } |
| 3491 | #endif | |
| 3492 | 3677 | |
| 3678 | static void sh4_dmac_nmi(void) // manage dma when nmi | |
| 3679 | { | |
| 3680 | int s; | |
| 3681 | ||
| 3682 | sh4.m[DMAOR] |= 2; // nmif = 1 | |
| 3683 | for (s = 0;s < 4;s++) | |
| 3684 | { | |
| 3685 | if (sh4.dma_timer_active[s]) | |
| 3686 | { | |
| 3687 | logerror("SH4: DMA %d cancelled due to NMI but all data transferred", s); | |
| 3688 | mame_timer_adjust(sh4.dma_timer[s], time_never, 0, time_zero); | |
| 3689 | sh4.dma_timer_active[s] = 0; | |
| 3690 | } | |
| 3691 | } | |
| 3692 | } | |
| 3693 | ||
| 3493 | 3694 | WRITE32_HANDLER( sh4_internal_w ) |
| 3494 | 3695 | { |
| 3495 | 3696 | UINT32 old = sh4.m[offset]; |
| 3496 | 3697 | COMBINE_DATA(sh4.m+offset); |
| 3497 | 3698 | |
| 3498 | // if(offset != 0x20) | |
| 3499 | // logerror("sh4_internal_w: Write %08x (%x), %08x @ %08x\n", 0xfe000000+((offset & 0x3fc0) << 11)+((offset & 0x3f) << 2), offset, data, mem_mask); | |
| 3699 | // logerror("sh4_internal_w: Write %08x (%x), %08x @ %08x\n", 0xfe000000+((offset & 0x3fc0) << 11)+((offset & 0x3f) << 2), offset, data, mem_mask); | |
| 3500 | 3700 | |
| 3501 | 3701 | switch( offset ) |
| 3502 | 3702 | { |
| r1238 | r1239 | |
| 3651 | 3851 | sh4_timer2_recompute(); |
| 3652 | 3852 | break; |
| 3653 | 3853 | |
| 3854 | // INTC | |
| 3654 | 3855 | case ICR: |
| 3655 | 3856 | sh4.m[ICR] = (sh4.m[ICR] & 0x7fff) | (old & 0x8000); |
| 3656 | 3857 | break; |
| r1238 | r1239 | |
| 3689 | 3890 | sh4_exception_recompute(); |
| 3690 | 3891 | break; |
| 3691 | 3892 | |
| 3692 | case SCBRR2: | |
| 3893 | // DMA | |
| 3894 | case SAR0: | |
| 3895 | case SAR1: | |
| 3896 | case SAR2: | |
| 3897 | case SAR3: | |
| 3898 | case DAR0: | |
| 3899 | case DAR1: | |
| 3900 | case DAR2: | |
| 3901 | case DAR3: | |
| 3902 | case DMATCR0: | |
| 3903 | case DMATCR1: | |
| 3904 | case DMATCR2: | |
| 3905 | case DMATCR3: | |
| 3693 | 3906 | break; |
| 3694 | ||
| 3695 | #if 0 | |
| 3696 | // DMA | |
| 3697 | case 0x1c: // DRCR0, DRCR1 | |
| 3698 | break; | |
| 3699 | ||
| 3700 | // Watchdog | |
| 3701 | case 0x20: // WTCNT, RSTCSR | |
| 3702 | break; | |
| 3703 | ||
| 3704 | // Standby and cache | |
| 3705 | case 0x24: // SBYCR, CCR | |
| 3706 | break; | |
| 3707 | ||
| 3708 | // DMA controller | |
| 3709 | case 0x60: // SAR0 | |
| 3710 | case 0x61: // DAR0 | |
| 3711 | break; | |
| 3712 | case 0x62: // DTCR0 | |
| 3713 | sh4.m[0x62] &= 0xffffff; | |
| 3714 | break; | |
| 3715 | case 0x63: // CHCR0 | |
| 3716 | sh4.m[0x63] = (sh4.m[0x63] & ~2) | (old & sh4.m[0x63] & 2); | |
| 3907 | case CHCR0: | |
| 3717 | 3908 | sh4_dmac_check(0); |
| 3718 | 3909 | break; |
| 3719 | case 0x64: // SAR1 | |
| 3720 | case 0x65: // DAR1 | |
| 3910 | case CHCR1: | |
| 3911 | sh4_dmac_check(1); | |
| 3721 | 3912 | break; |
| 3722 | case 0x66: // DTCR1 | |
| 3723 | sh4.m[0x66] &= 0xffffff; | |
| 3913 | case CHCR2: | |
| 3914 | sh4_dmac_check(2); | |
| 3724 | 3915 | break; |
| 3725 | case 0x67: // CHCR1 | |
| 3726 | sh4.m[0x67] = (sh4.m[0x67] & ~2) | (old & sh4.m[0x67] & 2); | |
| 3727 | sh4_dmac_check(1); | |
| 3916 | case CHCR3: | |
| 3917 | sh4_dmac_check(3); | |
| 3728 | 3918 | break; |
| 3729 | case 0x68: // VCRDMA0 | |
| 3730 | case 0x6a: // VCRDMA1 | |
| 3731 | sh4_recalc_irq(); | |
| 3732 | break; | |
| 3733 | case 0x6c: // DMAOR | |
| 3734 | sh4.m[0x6c] = (sh4.m[0x6c] & ~6) | (old & sh4.m[0x6c] & 6); | |
| 3919 | case DMAOR: | |
| 3920 | if ((sh4.m[DMAOR] & 4) && (~old & 4)) | |
| 3921 | sh4.m[DMAOR] &= ~4; | |
| 3922 | if ((sh4.m[DMAOR] & 2) && (~old & 2)) | |
| 3923 | sh4.m[DMAOR] &= ~2; | |
| 3735 | 3924 | sh4_dmac_check(0); |
| 3736 | 3925 | sh4_dmac_check(1); |
| 3926 | sh4_dmac_check(2); | |
| 3927 | sh4_dmac_check(3); | |
| 3737 | 3928 | break; |
| 3738 | 3929 | |
| 3739 | // Bus controller | |
| 3740 | case 0x78: // BCR1 | |
| 3741 | case 0x79: // BCR2 | |
| 3742 | case 0x7a: // WCR | |
| 3743 | case 0x7b: // MCR | |
| 3744 | case 0x7c: // RTCSR | |
| 3745 | case 0x7d: // RTCNT | |
| 3746 | case 0x7e: // RTCOR | |
| 3930 | // Store Queues | |
| 3931 | case QACR0: | |
| 3932 | case QACR1: | |
| 3747 | 3933 | break; |
| 3748 | #endif | |
| 3749 | 3934 | |
| 3935 | case SCBRR2: | |
| 3936 | break; | |
| 3937 | ||
| 3750 | 3938 | default: |
| 3751 | 3939 | logerror("sh4_internal_w: Unmapped write %08x, %08x @ %08x\n", 0xfe000000+((offset & 0x3fc0) << 11)+((offset & 0x3f) << 2), data, mem_mask); |
| 3752 | 3940 | break; |
| r1238 | r1239 | |
| 3827 | 4015 | sh4.m[4] |= ICF; |
| 3828 | 4016 | logerror("SH4.%d: ICF activated (%x)\n", sh4.cpu_number, sh4.pc & AM); |
| 3829 | 4017 | sh4_recalc_irq(); |
| 4018 | #endif | |
| 3830 | 4019 | cpuintrf_pop_context(); |
| 3831 | #endif | |
| 3832 | 4020 | } |
| 3833 | 4021 | |
| 4022 | void sh4_set_irln_input(int cpunum, int value) | |
| 4023 | { | |
| 4024 | if (sh4.irln == value) | |
| 4025 | return; | |
| 4026 | sh4.irln = value; | |
| 4027 | cpunum_set_input_line(cpunum, SH4_IRLn, PULSE_LINE); | |
| 4028 | } | |
| 4029 | ||
| 3834 | 4030 | static void set_irq_line(int irqline, int state) // set state of external interrupt line |
| 3835 | 4031 | { |
| 3836 | 4032 | int s; |
| r1238 | r1239 | |
| 3845 | 4041 | { |
| 3846 | 4042 | LOG(("SH-4 #%d assert nmi\n", cpu_getactivecpu())); |
| 3847 | 4043 | sh4_exception_request(SH4_INTC_NMI); |
| 4044 | sh4_dmac_nmi(); | |
| 3848 | 4045 | } |
| 3849 | 4046 | } |
| 3850 | 4047 | else |
| r1238 | r1239 | |
| 3853 | 4050 | { |
| 3854 | 4051 | LOG(("SH-4 #%d assert nmi\n", cpu_getactivecpu())); |
| 3855 | 4052 | sh4_exception_request(SH4_INTC_NMI); |
| 4053 | sh4_dmac_nmi(); | |
| 3856 | 4054 | } |
| 3857 | 4055 | } |
| 3858 | 4056 | if (state == CLEAR_LINE) |
| r1238 | r1239 | |
| 3886 | 4084 | { |
| 3887 | 4085 | if (irqline != SH4_IRLn) |
| 3888 | 4086 | return; |
| 3889 | if ((s | |
| 4087 | if ((sh4.irln > 15) || (sh4.irln < 0)) | |
| 3890 | 4088 | return; |
| 3891 | for (s=0;s < 15;s++) | |
| 4089 | for (s = 0; s < 15; s++) | |
| 3892 | 4090 | sh4_exception_unrequest(SH4_INTC_IRLn0+s); |
| 3893 | if (state < 15) | |
| 3894 | sh4_exception_request(SH4_INTC_IRLn0+state); | |
| 3895 | LOG(("SH-4 #%d IRLn0-IRLn3 level #%d\n", cpu_getactivecpu(), state)); | |
| 4091 | if (sh4.irln < 15) | |
| 4092 | sh4_exception_request(SH4_INTC_IRLn0+sh4.irln); | |
| 4093 | LOG(("SH-4 #%d IRLn0-IRLn3 level #%d\n", cpu_getactivecpu(), sh4.irln)); | |
| 3896 | 4094 | } |
| 3897 | 4095 | } |
| 3898 | 4096 | if (sh4.test_irq && (!sh4.delay)) |
| r1238 | r1239 | |
| 3967 | 4165 | |
| 3968 | 4166 | sh4.dma_timer[0] = mame_timer_alloc(sh4_dmac_callback); |
| 3969 | 4167 | mame_timer_adjust(sh4.dma_timer[0], time_never, 0, time_zero); |
| 3970 | ||
| 3971 | 4168 | sh4.dma_timer[1] = mame_timer_alloc(sh4_dmac_callback); |
| 3972 | 4169 | mame_timer_adjust(sh4.dma_timer[1], time_never, 0, time_zero); |
| 4170 | sh4.dma_timer[2] = mame_timer_alloc(sh4_dmac_callback); | |
| 4171 | mame_timer_adjust(sh4.dma_timer[2], time_never, 0, time_zero); | |
| 4172 | sh4.dma_timer[3] = mame_timer_alloc(sh4_dmac_callback); | |
| 4173 | mame_timer_adjust(sh4.dma_timer[3], time_never, 0, time_zero); | |
| 3973 | 4174 | |
| 3974 | 4175 | sh4.refresh_timer = mame_timer_alloc(sh4_refresh_timer_callback); |
| 3975 | 4176 | mame_timer_adjust(sh4.refresh_timer, time_never, 0, time_zero); |
| r1238 | r1239 | |
| 3985 | 4186 | sh4.cpu_number = index; |
| 3986 | 4187 | sh4.irq_callback = irqcallback; |
| 3987 | 4188 | sh4_default_exception_priorities(); |
| 4189 | sh4.irln = 15; | |
| 3988 | 4190 | sh4.test_irq = 0; |
| 3989 | 4191 | |
| 3990 | 4192 | state_save_register_item("sh4", index, sh4.pc); |
| r1238 | r1239 | |
| 4054 | 4256 | |
| 4055 | 4257 | } |
| 4056 | 4258 | |
| 4259 | void sh4_dma_ddt(struct sh4_ddt_dma *s) | |
| 4260 | { | |
| 4261 | UINT32 chcr; | |
| 4262 | UINT32 *p32bits; | |
| 4263 | UINT32 pos,len,siz; | |
| 4057 | 4264 | |
| 4265 | if (sh4.dma_timer_active[s->channel]) | |
| 4266 | return; | |
| 4267 | if (s->mode >= 0) { | |
| 4268 | switch (s->channel) | |
| 4269 | { | |
| 4270 | case 0: | |
| 4271 | if (s->mode & 1) | |
| 4272 | s->source = sh4.m[SAR0]; | |
| 4273 | if (s->mode & 2) | |
| 4274 | sh4.m[SAR0] = s->source; | |
| 4275 | if (s->mode & 4) | |
| 4276 | s->destination = sh4.m[DAR0]; | |
| 4277 | if (s->mode & 8) | |
| 4278 | sh4.m[DAR0] = s->destination; | |
| 4279 | break; | |
| 4280 | case 1: | |
| 4281 | if (s->mode & 1) | |
| 4282 | s->source = sh4.m[SAR1]; | |
| 4283 | if (s->mode & 2) | |
| 4284 | sh4.m[SAR1] = s->source; | |
| 4285 | if (s->mode & 4) | |
| 4286 | s->destination = sh4.m[DAR1]; | |
| 4287 | if (s->mode & 8) | |
| 4288 | sh4.m[DAR1] = s->destination; | |
| 4289 | break; | |
| 4290 | case 2: | |
| 4291 | if (s->mode & 1) | |
| 4292 | s->source = sh4.m[SAR2]; | |
| 4293 | if (s->mode & 2) | |
| 4294 | sh4.m[SAR2] = s->source; | |
| 4295 | if (s->mode & 4) | |
| 4296 | s->destination = sh4.m[DAR2]; | |
| 4297 | if (s->mode & 8) | |
| 4298 | sh4.m[DAR2] = s->destination; | |
| 4299 | break; | |
| 4300 | case 3: | |
| 4301 | default: | |
| 4302 | if (s->mode & 1) | |
| 4303 | s->source = sh4.m[SAR3]; | |
| 4304 | if (s->mode & 2) | |
| 4305 | sh4.m[SAR3] = s->source; | |
| 4306 | if (s->mode & 4) | |
| 4307 | s->destination = sh4.m[DAR3]; | |
| 4308 | if (s->mode & 8) | |
| 4309 | sh4.m[DAR3] = s->destination; | |
| 4310 | break; | |
| 4311 | } | |
| 4312 | switch (s->channel) | |
| 4313 | { | |
| 4314 | case 0: | |
| 4315 | chcr = sh4.m[CHCR0]; | |
| 4316 | len = sh4.m[DMATCR0]; | |
| 4317 | break; | |
| 4318 | case 1: | |
| 4319 | chcr = sh4.m[CHCR1]; | |
| 4320 | len = sh4.m[DMATCR1]; | |
| 4321 | break; | |
| 4322 | case 2: | |
| 4323 | chcr = sh4.m[CHCR2]; | |
| 4324 | len = sh4.m[DMATCR2]; | |
| 4325 | break; | |
| 4326 | case 3: | |
| 4327 | default: | |
| 4328 | chcr = sh4.m[CHCR3]; | |
| 4329 | len = sh4.m[DMATCR3]; | |
| 4330 | break; | |
| 4331 | } | |
| 4332 | if ((s->direction) == 0) { | |
| 4333 | chcr = (chcr & 0xffff3fff) | ((s->mode & 0x30) << 10); | |
| 4334 | } else { | |
| 4335 | chcr = (chcr & 0xffffcfff) | ((s->mode & 0x30) << 8); | |
| 4336 | } | |
| 4337 | siz = dmasize[(chcr >> 4) & 7]; | |
| 4338 | if (siz && (s->size)) | |
| 4339 | if ((len * siz) != (s->length * s->size)) | |
| 4340 | return; | |
| 4341 | sh4_dma_transfer(s->channel, 0, chcr, &s->source, &s->destination, &len); | |
| 4342 | } else { | |
| 4343 | if ((s->direction) == 0) { | |
| 4344 | len = s->length; | |
| 4345 | p32bits = (UINT32 *)(s->buffer); | |
| 4346 | for (pos = 0;pos < len;pos++) { | |
| 4347 | *p32bits = program_read_dword_64le(s->source); | |
| 4348 | p32bits++; | |
| 4349 | s->source = s->source + 4; | |
| 4350 | } | |
| 4351 | } else { | |
| 4352 | len = s->length; | |
| 4353 | p32bits = (UINT32 *)(s->buffer); | |
| 4354 | for (pos = 0;pos < len;pos++) { | |
| 4355 | program_write_dword_64le(s->destination, *p32bits); | |
| 4356 | p32bits++; | |
| 4357 | s->destination = s->destination + 4; | |
| 4358 | } | |
| 4359 | } | |
| 4360 | } | |
| 4361 | } | |
| 4058 | 4362 | |
| 4363 | ||
| 4059 | 4364 | /************************************************************************** |
| 4060 | 4365 | * Generic set_info |
| 4061 | 4366 | **************************************************************************/ |
| r1238 | r1239 | |
| 4157 | 4462 | case CPUINFO_STR_REGISTER + SH4_XF14: sh4.xf[14] = info->i; break; |
| 4158 | 4463 | case CPUINFO_STR_REGISTER + SH4_XF15: sh4.xf[15] = info->i; break; |
| 4159 | 4464 | |
| 4465 | case CPUINFO_INT_SH4_IRLn_INPUT: sh4_set_irln_input(cpu_getactivecpu(), info->i); break; | |
| 4160 | 4466 | case CPUINFO_INT_SH4_FRT_INPUT: sh4_set_frt_input(cpu_getactivecpu(), info->i); break; |
| 4161 | 4467 | |
| 4162 | 4468 | /* --- the following bits of info are set as pointers to data or functions --- */ |
| 4163 | 4469 | case CPUINFO_PTR_SH4_FTCSR_READ_CALLBACK: sh4.ftcsr_read_callback = (void (*) (UINT32 ))info->f; break; |
| 4470 | case CPUINFO_PTR_SH4_EXTERNAL_DDT_DMA: sh4_dma_ddt((struct sh4_ddt_dma *)info->f); break; | |
| 4164 | 4471 | } |
| 4165 | 4472 | } |
| 4166 | 4473 | |
| r1238 | r1239 | |
| 4169 | 4476 | static ADDRESS_MAP_START( sh4_internal_map, ADDRESS_SPACE_PROGRAM, 64 ) |
| 4170 | 4477 | AM_RANGE(0x1C000000, 0x1C000FFF) AM_RAM AM_MIRROR(0x03FFD000) |
| 4171 | 4478 | AM_RANGE(0x1C002000, 0x1C002FFF) AM_RAM AM_MIRROR(0x03FFD000) |
| 4479 | AM_RANGE(0xE0000000, 0xE000003F) AM_RAM AM_MIRROR(0x03FFFFC0) | |
| 4172 | 4480 | ADDRESS_MAP_END |
| 4173 | 4481 | #endif |
| 4174 | 4482 | |
| r1238 | r1239 | |
| 4176 | 4484 | static ADDRESS_MAP_START( sh4_internal_map, ADDRESS_SPACE_PROGRAM, 64 ) |
| 4177 | 4485 | AM_RANGE(0x1C000000, 0x1C000FFF) AM_RAM AM_MIRROR(0x01FFF000) |
| 4178 | 4486 | AM_RANGE(0x1E000000, 0x1E000FFF) AM_RAM AM_MIRROR(0x01FFF000) |
| 4487 | AM_RANGE(0xE0000000, 0xE000003F) AM_RAM AM_MIRROR(0x03FFFFC0) | |
| 4179 | 4488 | ADDRESS_MAP_END |
| 4180 | 4489 | |
| 4181 | 4490 |
| r1238 | r1239 | |
|---|---|---|
| 44 | 44 | |
| 45 | 45 | enum |
| 46 | 46 | { |
| 47 | CPUINFO_INT_SH4_FRT_INPUT = CPUINFO_INT_CPU_SPECIFIC | |
| 47 | CPUINFO_INT_SH4_IRLn_INPUT = CPUINFO_INT_CPU_SPECIFIC, | |
| 48 | CPUINFO_INT_SH4_FRT_INPUT | |
| 48 | 49 | }; |
| 49 | 50 | |
| 50 | 51 | enum |
| 51 | 52 | { |
| 52 | 53 | CPUINFO_PTR_SH4_FTCSR_READ_CALLBACK = CPUINFO_PTR_CPU_SPECIFIC, |
| 54 | CPUINFO_PTR_SH4_EXTERNAL_DDT_DMA, | |
| 53 | 55 | }; |
| 54 | 56 | |
| 55 | 57 | struct sh4_config |
| r1238 | r1239 | |
| 66 | 68 | int clock; |
| 67 | 69 | }; |
| 68 | 70 | |
| 71 | struct sh4_ddt_dma | |
| 72 | { | |
| 73 | UINT32 source; | |
| 74 | UINT32 length; | |
| 75 | UINT32 size; | |
| 76 | UINT32 destination; | |
| 77 | void *buffer; | |
| 78 | int direction; | |
| 79 | int channel; | |
| 80 | int mode; | |
| 81 | }; | |
| 82 | ||
| 69 | 83 | extern void sh4_get_info(UINT32 state, cpuinfo *info); |
| 70 | 84 | |
| 71 | 85 | WRITE32_HANDLER( sh4_internal_w ); |
| r1238 | r1239 | |
|---|---|---|
| 13 | 13 | #ifndef __EIGCCX86__ |
| 14 | 14 | #define __EIGCCX86__ |
| 15 | 15 | |
| 16 | /* Include MMX/SSE intrinsics headers */ | |
| 16 | 17 | |
| 18 | #ifdef __SSE2__ | |
| 19 | #include <mmintrin.h> /* MMX */ | |
| 20 | #include <xmmintrin.h> /* SSE */ | |
| 21 | #include <emmintrin.h> /* SSE2 */ | |
| 22 | #endif | |
| 23 | ||
| 24 | ||
| 17 | 25 | /*************************************************************************** |
| 18 | 26 | INLINE MATH FUNCTIONS |
| 19 | 27 | ***************************************************************************/ |
| r1238 | r1239 | |
| 174 | 182 | divide and return the 32 bit quotient |
| 175 | 183 | -------------------------------------------------*/ |
| 176 | 184 | |
| 177 | /* TBD */ | |
| 185 | #ifndef __x86_64__ | |
| 186 | #define div_64x32 _div_64x32 | |
| 187 | INLINE INT32 _div_64x32(INT64 a, INT32 b) | |
| 188 | { | |
| 189 | INT32 result, temp; | |
| 178 | 190 | |
| 191 | __asm__ ( | |
| 192 | " idivl %[b] ;" | |
| 193 | : [result] "=a" (result) /* Result ends up in eax */ | |
| 194 | , [temp] "=d" (temp) /* This is effectively a clobber */ | |
| 195 | : [a] "A" (a) /* 'a' in edx:eax */ | |
| 196 | , [b] "rm" (b) /* 'b' in register or memory */ | |
| 197 | : "%cc" /* Clobbers condition codes */ | |
| 198 | ); | |
| 179 | 199 | |
| 200 | return result; | |
| 201 | } | |
| 202 | #endif | |
| 203 | ||
| 204 | ||
| 180 | 205 | /*------------------------------------------------- |
| 181 | 206 | divu_64x32 - perform an unsigned 64 bit x 32 bit |
| 182 | 207 | divide and return the 32 bit quotient |
| 183 | 208 | -------------------------------------------------*/ |
| 184 | 209 | |
| 185 | /* TBD */ | |
| 210 | #ifndef __x86_64__ | |
| 211 | #define divu_64x32 _divu_64x32 | |
| 212 | INLINE UINT32 _divu_64x32(UINT64 a, UINT32 b) | |
| 213 | { | |
| 214 | UINT32 result, temp; | |
| 186 | 215 | |
| 216 | __asm__ ( | |
| 217 | " divl %[b] ;" | |
| 218 | : [result] "=a" (result) /* Result ends up in eax */ | |
| 219 | , [temp] "=d" (temp) /* This is effectively a clobber */ | |
| 220 | : [a] "A" (a) /* 'a' in edx:eax */ | |
| 221 | , [b] "rm" (b) /* 'b' in register or memory */ | |
| 222 | : "%cc" /* Clobbers condition codes */ | |
| 223 | ); | |
| 187 | 224 | |
| 225 | return result; | |
| 226 | } | |
| 227 | #endif | |
| 228 | ||
| 229 | ||
| 188 | 230 | /*------------------------------------------------- |
| 189 | 231 | div_32x32_shift - perform a signed divide of |
| 190 | 232 | two 32 bit values, shifting the first before |
| r1238 | r1239 | |
| 248 | 290 | divide and return the 32 bit remainder |
| 249 | 291 | -------------------------------------------------*/ |
| 250 | 292 | |
| 251 | /* TBD */ | |
| 293 | #ifndef __x86_64__ | |
| 294 | #define mod_64x32 _mod_64x32 | |
| 295 | INLINE INT32 _mod_64x32(INT64 a, INT32 b) | |
| 296 | { | |
| 297 | INT32 result, temp; | |
| 252 | 298 | |
| 299 | __asm__ ( | |
| 300 | " idivl %[b] ;" | |
| 301 | : [result] "=d" (result) /* Result ends up in edx */ | |
| 302 | , [temp] "=a" (temp) /* This is effectively a clobber */ | |
| 303 | : [a] "A" (a) /* 'a' in edx:eax */ | |
| 304 | , [b] "rm" (b) /* 'b' in register or memory */ | |
| 305 | : "%cc" /* Clobbers condition codes */ | |
| 306 | ); | |
| 253 | 307 | |
| 308 | return result; | |
| 309 | } | |
| 310 | #endif | |
| 311 | ||
| 312 | ||
| 254 | 313 | /*------------------------------------------------- |
| 255 | 314 | modu_64x32 - perform an unsigned 64 bit x 32 bit |
| 256 | 315 | divide and return the 32 bit remainder |
| 257 | 316 | -------------------------------------------------*/ |
| 258 | 317 | |
| 259 | /* TBD */ | |
| 318 | #ifndef __x86_64__ | |
| 319 | #define modu_64x32 _modu_64x32 | |
| 320 | INLINE UINT32 _modu_64x32(UINT64 a, UINT32 b) | |
| 321 | { | |
| 322 | UINT32 result, temp; | |
| 260 | 323 | |
| 324 | __asm__ ( | |
| 325 | " divl %[b] ;" | |
| 326 | : [result] "=d" (result) /* Result ends up in edx */ | |
| 327 | , [temp] "=a" (temp) /* This is effectively a clobber */ | |
| 328 | : [a] "A" (a) /* 'a' in edx:eax */ | |
| 329 | , [b] "rm" (b) /* 'b' in register or memory */ | |
| 330 | : "%cc" /* Clobbers condition codes */ | |
| 331 | ); | |
| 261 | 332 | |
| 333 | return result; | |
| 334 | } | |
| 335 | #endif | |
| 336 | ||
| 337 | ||
| 262 | 338 | /*------------------------------------------------- |
| 263 | 339 | recip_approx - compute an approximate floating |
| 264 | 340 | point reciprocal |
| 265 | 341 | -------------------------------------------------*/ |
| 266 | 342 | |
| 267 | /* TBD */ | |
| 343 | #ifdef __SSE2__ | |
| 344 | #define recip_approx _recip_approx | |
| 345 | INLINE float _recip_approx(float value) | |
| 346 | { | |
| 347 | __m128 value_xmm = _mm_set_ss(value); | |
| 348 | __m128 result_xmm = _mm_rcp_ss(value_xmm); | |
| 349 | float result; | |
| 350 | _mm_store_ss(&result, result_xmm); | |
| 351 | return result; | |
| 352 | } | |
| 353 | #endif | |
| 268 | 354 | |
| 269 | 355 | |
| 270 | 356 |
| r1238 | r1239 | |
|---|---|---|
| 42 | 42 | CONSTANTS |
| 43 | 43 | ***************************************************************************/ |
| 44 | 44 | |
| 45 | #define MAX_VERTEX_PARAMS 6 | |
| 45 | #define MAX_VERTEX_PARAMS 6 | |
| 46 | 46 | |
| 47 | 47 | #define POLYFLAG_INCLUDE_BOTTOM_EDGE 0x01 |
| 48 | 48 | #define POLYFLAG_INCLUDE_RIGHT_EDGE 0x02 |
| 49 | 49 | #define POLYFLAG_NO_WORK_QUEUE 0x04 |
| 50 | #define POLYFLAG_ALLOW_QUADS 0x08 | |
| 50 | 51 | |
| 51 | 52 | |
| 52 | 53 | |
| r1238 | r1239 | |
| 58 | 59 | typedef struct _poly_manager poly_manager; |
| 59 | 60 | |
| 60 | 61 | |
| 61 | /* scanline_extent describes start/end points for a scanline */ | |
| 62 | typedef struct _scanline_extent scanline_extent; | |
| 63 | struct _scanline_extent | |
| 64 | { | |
| 65 | INT16 startx; | |
| 66 | INT16 stopx; | |
| 67 | }; | |
| 68 | ||
| 69 | ||
| 70 | 62 | /* input vertex data */ |
| 71 | 63 | typedef struct _poly_vertex poly_vertex; |
| 72 | 64 | struct _poly_vertex |
| 73 | 65 | { |
| 74 | float x; /* screen X coordinate */ | |
| 75 | float y; /* screen Y coordinate */ | |
| 66 | float x; /* X coordinate */ | |
| 67 | float y; /* Y coordinate */ | |
| 76 | 68 | float p[MAX_VERTEX_PARAMS]; /* interpolated parameter values */ |
| 77 | 69 | }; |
| 78 | 70 | |
| 79 | 71 | |
| 72 | /* tri_extent describes start/end points for a scanline */ | |
| 73 | typedef struct _tri_extent tri_extent; | |
| 74 | struct _tri_extent | |
| 75 | { | |
| 76 | INT16 startx; /* starting X coordinate (inclusive) */ | |
| 77 | INT16 stopx; /* ending X coordinate (exclusive) */ | |
| 78 | }; | |
| 79 | ||
| 80 | ||
| 81 | /* poly_param_extent describes information for a single parameter in an extent */ | |
| 82 | typedef struct _poly_param_extent poly_param_extent; | |
| 83 | struct _poly_param_extent | |
| 84 | { | |
| 85 | float start; /* parameter value at starting X,Y */ | |
| 86 | float dpdx; /* dp/dx relative to starting X */ | |
| 87 | }; | |
| 88 | ||
| 89 | ||
| 90 | /* quad_extent describes start/end points for a scanline, along with per-scanline parameters */ | |
| 91 | typedef struct _quad_extent quad_extent; | |
| 92 | struct _quad_extent | |
| 93 | { | |
| 94 | INT16 startx; /* starting X coordinate (inclusive) */ | |
| 95 | INT16 stopx; /* ending X coordinate (exclusive) */ | |
| 96 | poly_param_extent param[MAX_VERTEX_PARAMS]; /* starting and dx values for each parameter */ | |
| 97 | }; | |
| 98 | ||
| 99 | ||
| 80 | 100 | /* single set of polygon per-parameter data */ |
| 81 | 101 | typedef struct _poly_param poly_param; |
| 82 | 102 | struct _poly_param |
| r1238 | r1239 | |
| 91 | 111 | typedef struct _poly_params poly_params; |
| 92 | 112 | struct _poly_params |
| 93 | 113 | { |
| 94 | void * extra; /* pointer to the extra data */ | |
| 95 | 114 | INT32 xorigin; /* X origin for all parameters */ |
| 96 | 115 | INT32 yorigin; /* Y origin for all parameters */ |
| 97 | 116 | poly_param param[MAX_VERTEX_PARAMS]; /* array of parameter data */ |
| 98 | 117 | }; |
| 99 | 118 | |
| 100 | 119 | |
| 101 | /* callback routine to process a batch of scanlines */ | |
| 102 | typedef void (*poly_draw_scanline)(void *dest, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid); | |
| 120 | /* callback routine to process a batch of scanlines in a triangle */ | |
| 121 | typedef void (*poly_draw_tri_scanline)(void *dest, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid); | |
| 103 | 122 | |
| 123 | /* callback routine to process a batch of scanlines in a triangle */ | |
| 124 | typedef void (*poly_draw_quad_scanline)(void *dest, INT32 scanline, const quad_extent *extent, const void *extradata, int threadid); | |
| 104 | 125 | |
| 105 | 126 | |
| 127 | ||
| 106 | 128 | /*************************************************************************** |
| 107 | 129 | TYPE DEFINITIONS |
| 108 | 130 | ***************************************************************************/ |
| r1238 | r1239 | |
| 110 | 132 | |
| 111 | 133 | /* ----- initialization/teardown ----- */ |
| 112 | 134 | |
| 113 | /* allocate a new poly manager */ | |
| 114 | poly_manager *poly_alloc(int max_queued_polygons, size_t extra_data_size, UINT8 flags); | |
| 135 | /* allocate a new poly manager that can render triangles */ | |
| 136 | poly_manager *poly_alloc(int max_polys, size_t extra_data_size, UINT8 flags); | |
| 115 | 137 | |
| 116 | 138 | /* free a poly manager */ |
| 117 | 139 | void poly_free(poly_manager *poly); |
| 118 | 140 | |
| 119 | 141 | |
| 120 | 142 | |
| 121 | /* ----- | |
| 143 | /* ----- | |
| 122 | 144 | |
| 123 | 145 | /* wait until all polygons in the queue have been rendered */ |
| 124 | 146 | void poly_wait(poly_manager *poly, const char *debug_reason); |
| 125 | 147 | |
| 148 | /* get a pointer to the extra data for the next polygon */ | |
| 149 | void *poly_get_extra_data(poly_manager *poly); | |
| 126 | 150 | |
| 127 | 151 | |
| 128 | /* ----- core rendering ----- */ | |
| 129 | 152 | |
| 130 | /* get a pointer to the extra data for the next polygon */ | |
| 131 | void *poly_get_extra_data(poly_manager *poly); | |
| 153 | /* ----- core triangle rendering ----- */ | |
| 132 | 154 | |
| 133 | 155 | /* render a single triangle given 3 vertexes */ |
| 134 | UINT32 poly_render_triangle(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline callback, int paramcount, const poly_vertex *v1, const poly_vertex *v2, const poly_vertex *v3); | |
| 156 | UINT32 poly_render_triangle(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_tri_scanline callback, int paramcount, const poly_vertex *v1, const poly_vertex *v2, const poly_vertex *v3); | |
| 135 | 157 | |
| 158 | /* render a set of triangles in a fan */ | |
| 159 | UINT32 poly_render_triangle_fan(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_tri_scanline callback, int paramcount, int numverts, const poly_vertex *v); | |
| 160 | ||
| 136 | 161 | /* perform a custom render of an object, given specific extents */ |
| 137 | UINT32 poly_render_custom(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline callback, int startscanline, int numscanlines, const | |
| 162 | UINT32 poly_render_triangle_custom(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_tri_scanline callback, int startscanline, int numscanlines, const tr | |
| 138 | 163 | |
| 139 | 164 | |
| 140 | 165 | |
| 166 | /* ----- core quad rendering ----- */ | |
| 167 | ||
| 168 | /* render a single quad given 4 vertexes */ | |
| 169 | UINT32 poly_render_quad(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_quad_scanline callback, int paramcount, const poly_vertex *v1, const poly_vertex *v2, const poly_vertex *v3, const poly_vertex *v4); | |
| 170 | ||
| 171 | /* render a set of quads in a fan */ | |
| 172 | UINT32 poly_render_quad_fan(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_quad_scanline callback, int paramcount, int numverts, const poly_vertex *v); | |
| 173 | ||
| 174 | ||
| 175 | ||
| 176 | /* ----- clipping ----- */ | |
| 177 | ||
| 178 | /* zclip (assumes p[0] == z) a polygon */ | |
| 179 | int poly_zclip_if_less(int numverts, const poly_vertex *v, poly_vertex *outv, int paramcount, float clipval); | |
| 180 | ||
| 181 | ||
| 182 | ||
| 141 | 183 | /*************************************************************************** |
| 142 | 184 | INLINE FUNCTIONS |
| 143 | 185 | ***************************************************************************/ |
| 144 | 186 | |
| 145 | 187 | /*------------------------------------------------- |
| 146 | poly_param_value - return parameter value | |
| 188 | poly_param_tri_value - return parameter value | |
| 147 | 189 | at specified X,Y coordinate |
| 148 | 190 | -------------------------------------------------*/ |
| 149 | 191 | |
| 150 | INLINE float poly_param_value(INT32 x, INT32 y, int whichparam, const poly_params *data) | |
| 192 | INLINE float poly_param_tri_value(INT32 x, INT32 y, int whichparam, const poly_params *data) | |
| 151 | 193 | { |
| 152 | 194 | return data->param[whichparam].start + (float)(x - data->xorigin) * data->param[whichparam].dpdx + (float)(y - data->yorigin) * data->param[whichparam].dpdy; |
| 153 | 195 | } |
| r1238 | r1239 | |
|---|---|---|
| 138 | 138 | #include "eminline.h" |
| 139 | 139 | #include "profiler.h" |
| 140 | 140 | #include "video/polynew.h" |
| 141 | #include "video/rgbutil.h" | |
| 141 | 142 | #include "voodoo.h" |
| 142 | 143 | #include "vooddefs.h" |
| 143 | 144 | #include "ui.h" |
| r1238 | r1239 | |
| 231 | 232 | static void dump_rasterizer_stats(voodoo_state *v); |
| 232 | 233 | |
| 233 | 234 | /* generic rasterizers */ |
| 234 | static void raster_fastfill(void *destbase, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid); | |
| 235 | static void raster_generic_0tmu(void *destbase, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid); | |
| 236 | static void raster_generic_1tmu(void *destbase, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid); | |
| 237 | static void raster_generic_2tmu(void *destbase, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid); | |
| 235 | static void raster_fastfill(void *dest, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid); | |
| 236 | static void raster_generic_0tmu(void *dest, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid); | |
| 237 | static void raster_generic_1tmu(void *dest, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid); | |
| 238 | static void raster_generic_2tmu(void *dest, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid); | |
| 238 | 239 | |
| 239 | 240 | |
| 240 | 241 | |
| r1238 | r1239 | |
| 4589 | 4590 | int ex = (v->reg[clipLeftRight].u >> 0) & 0x3ff; |
| 4590 | 4591 | int sy = (v->reg[clipLowYHighY].u >> 16) & 0x3ff; |
| 4591 | 4592 | int ey = (v->reg[clipLowYHighY].u >> 0) & 0x3ff; |
| 4592 | | |
| 4593 | tr | |
| 4593 | 4594 | UINT16 dithermatrix[16]; |
| 4594 | 4595 | UINT16 *drawbuf = NULL; |
| 4595 | 4596 | UINT32 pixels = 0; |
| r1238 | r1239 | |
| 4650 | 4651 | extra->state = v; |
| 4651 | 4652 | memcpy(extra->dither, dithermatrix, sizeof(extra->dither)); |
| 4652 | 4653 | |
| 4653 | pixels += poly_render_custom(v->poly, drawbuf, NULL, raster_fastfill, y, count, extents); | |
| 4654 | pixels += poly_render_triangle_custom(v->poly, drawbuf, NULL, raster_fastfill, y, count, extents); | |
| 4654 | 4655 | } |
| 4655 | 4656 | |
| 4656 | 4657 | /* 2 pixels per clock */ |
| r1238 | r1239 | |
| 5212 | 5213 | implementation of the 'fastfill' command |
| 5213 | 5214 | -------------------------------------------------*/ |
| 5214 | 5215 | |
| 5215 | static void raster_fastfill(void *destbase, INT32 | |
| 5216 | static void raster_fastfill(void *destbase, INT32 y | |
| 5216 | 5217 | { |
| 5217 | poly_extra_data *extra = | |
| 5218 | const poly_extra_data *extra = | |
| 5218 | 5219 | voodoo_state *v = extra->state; |
| 5219 | 5220 | stats_block *stats = &v->thread_stats[threadid]; |
| 5221 | INT32 startx = extent->startx; | |
| 5222 | INT32 stopx = extent->stopx; | |
| 5220 | 5223 | int scry, x; |
| 5221 | 5224 | |
| 5222 | 5225 | /* determine the screen Y */ |
| 5223 | scry = | |
| 5226 | scry = y | |
| 5224 | 5227 | if (FBZMODE_Y_ORIGIN(v->reg[fbzMode].u)) |
| 5225 | scry = (v->fbi.yorigin - | |
| 5228 | scry = (v->fbi.yorigin - y | |
| 5226 | 5229 | |
| 5227 | 5230 | /* fill this RGB row */ |
| 5228 | 5231 | if (FBZMODE_RGB_BUFFER_MASK(v->reg[fbzMode].u)) |
| 5229 | 5232 | { |
| 5230 | UINT16 *ditherow = &extra->dither[( | |
| 5233 | const UINT16 *ditherow = &extra->dither[(y | |
| 5231 | 5234 | UINT64 expanded = *(UINT64 *)ditherow; |
| 5232 | 5235 | UINT16 *dest = (UINT16 *)destbase + scry * v->fbi.rowpixels; |
| 5233 | 5236 |
| r1238 | r1239 | |
|---|---|---|
| 400 | 400 | } |
| 401 | 401 | |
| 402 | 402 | |
| 403 | /*------------------------------------------------- | |
| 404 | rgbint_bilinear_filter - bilinear filter between | |
| 405 | four pixel values; this code is derived from | |
| 406 | code provided by Michael Herf | |
| 407 | -------------------------------------------------*/ | |
| 408 | ||
| 409 | INLINE void rgbint_bilinear_filter(rgbint *color, rgb_t rgb00, rgb_t rgb01, rgb_t rgb10, rgb_t rgb11, UINT8 u, UINT8 v) | |
| 410 | { | |
| 411 | UINT32 agd1 = (rgb01 & 0xff00ff00) - (rgb00 & 0xff00ff00); | |
| 412 | UINT32 agd2 = (rgb11 & 0xff00ff00) - (rgb10 & 0xff00ff00); | |
| 413 | UINT32 rbd1 = (rgb01 & 0x00ff00ff) - (rgb00 & 0x00ff00ff); | |
| 414 | UINT32 rbd2 = (rgb11 & 0x00ff00ff) - (rgb10 & 0x00ff00ff); | |
| 415 | agd1 >>= 8; | |
| 416 | agd2 >>= 8; | |
| 417 | ||
| 418 | rbd1 *= u; rgb01 = (rgb00 & 0x00ff00ff); | |
| 419 | agd1 *= u; rbd1 >>= 8; | |
| 420 | rbd2 *= u; rgb11 = (rgb10 & 0x00ff00ff); | |
| 421 | agd2 *= u; rbd2 >>= 8; | |
| 422 | ||
| 423 | rgb01 += rbd1; | |
| 424 | rgb00 += agd1; | |
| 425 | ||
| 426 | rgb11 += rbd2; | |
| 427 | rgb10 += agd2; | |
| 428 | ||
| 429 | rgb01 &= 0x00ff00ff; | |
| 430 | rgb00 &= 0xff00ff00; | |
| 431 | rgb10 &= 0xff00ff00; | |
| 432 | rgb11 &= 0x00ff00ff; | |
| 433 | ||
| 434 | // ---- rgb11 is now rb for the bottom | |
| 435 | // rgb10 is ag for the bottom | |
| 436 | // rgb01 is rb for the top | |
| 437 | // rgb00 is ag for the top | |
| 438 | ||
| 439 | rgb10 -= rgb00; // agd | |
| 440 | rgb11 -= rgb01; // rbd | |
| 441 | rgb10 >>= 8; | |
| 442 | ||
| 443 | rgb11 *= v; | |
| 444 | rgb10 *= v; | |
| 445 | rgb11 >>= 8; | |
| 446 | ||
| 447 | rgb00 += rgb10; | |
| 448 | rgb01 += rgb11; | |
| 449 | ||
| 450 | color->r = (rgb01 >> 16) & 0xff; | |
| 451 | color->g = (rgb00 >> 8) & 0xff; | |
| 452 | color->b = (rgb01 >> 0) & 0xff; | |
| 453 | } | |
| 454 | ||
| 455 | ||
| 456 | /*------------------------------------------------- | |
| 457 | rgbaint_bilinear_filter - bilinear filter between | |
| 458 | four pixel values; this code is derived from | |
| 459 | code provided by Michael Herf | |
| 460 | -------------------------------------------------*/ | |
| 461 | ||
| 462 | INLINE void rgbaint_bilinear_filter(rgbaint *color, rgb_t rgb00, rgb_t rgb01, rgb_t rgb10, rgb_t rgb11, UINT8 u, UINT8 v) | |
| 463 | { | |
| 464 | UINT32 agd1 = (rgb01 & 0xff00ff00) - (rgb00 & 0xff00ff00); | |
| 465 | UINT32 agd2 = (rgb11 & 0xff00ff00) - (rgb10 & 0xff00ff00); | |
| 466 | UINT32 rbd1 = (rgb01 & 0x00ff00ff) - (rgb00 & 0x00ff00ff); | |
| 467 | UINT32 rbd2 = (rgb11 & 0x00ff00ff) - (rgb10 & 0x00ff00ff); | |
| 468 | agd1 >>= 8; | |
| 469 | agd2 >>= 8; | |
| 470 | ||
| 471 | rbd1 *= u; rgb01 = (rgb00 & 0x00ff00ff); | |
| 472 | agd1 *= u; rbd1 >>= 8; | |
| 473 | rbd2 *= u; rgb11 = (rgb10 & 0x00ff00ff); | |
| 474 | agd2 *= u; rbd2 >>= 8; | |
| 475 | ||
| 476 | rgb01 += rbd1; | |
| 477 | rgb00 += agd1; | |
| 478 | ||
| 479 | rgb11 += rbd2; | |
| 480 | rgb10 += agd2; | |
| 481 | ||
| 482 | rgb01 &= 0x00ff00ff; | |
| 483 | rgb00 &= 0xff00ff00; | |
| 484 | rgb10 &= 0xff00ff00; | |
| 485 | rgb11 &= 0x00ff00ff; | |
| 486 | ||
| 487 | // ---- rgb11 is now rb for the bottom | |
| 488 | // rgb10 is ag for the bottom | |
| 489 | // rgb01 is rb for the top | |
| 490 | // rgb00 is ag for the top | |
| 491 | ||
| 492 | rgb10 -= rgb00; // agd | |
| 493 | rgb11 -= rgb01; // rbd | |
| 494 | rgb10 >>= 8; | |
| 495 | ||
| 496 | rgb11 *= v; | |
| 497 | rgb10 *= v; | |
| 498 | rgb11 >>= 8; | |
| 499 | ||
| 500 | rgb00 += rgb10; | |
| 501 | rgb01 += rgb11; | |
| 502 | ||
| 503 | color->a = (rgb00 >> 24) & 0xff; | |
| 504 | color->r = (rgb01 >> 16) & 0xff; | |
| 505 | color->g = (rgb00 >> 8) & 0xff; | |
| 506 | color->b = (rgb01 >> 0) & 0xff; | |
| 507 | } | |
| 508 | ||
| 509 | ||
| 403 | 510 | #endif /* __RGBUTIL__ */ |
| r1238 | r1239 | |
|---|---|---|
| 1603 | 1603 | struct _raster_info |
| 1604 | 1604 | { |
| 1605 | 1605 | struct _raster_info *next; /* pointer to next entry with the same hash */ |
| 1606 | poly_draw_scanline callback; | |
| 1606 | poly_draw_tri_scanline callback; | |
| 1607 | 1607 | UINT8 is_generic; /* TRUE if this is one of the generic rasterizers */ |
| 1608 | 1608 | UINT8 display; /* display index */ |
| 1609 | 1609 | UINT32 hits; /* how many hits (pixels) we've used this for */ |
| r1238 | r1239 | |
| 2746 | 2746 | /* bilinear filtered */ \ |
| 2747 | 2747 | \ |
| 2748 | 2748 | UINT32 texel0, texel1, texel2, texel3; \ |
| 2749 | UINT32 factor, factorsum; \ | |
| 2750 | 2749 | UINT32 sfrac, tfrac; \ |
| 2751 | UINT32 ag, rb; \ | |
| 2752 | 2750 | INT32 s1, t1; \ |
| 2753 | 2751 | \ |
| 2754 | 2752 | /* adjust S/T for the LOD and strip off all but the low 8 bits of */ \ |
| r1238 | r1239 | |
| 2827 | 2825 | } \ |
| 2828 | 2826 | \ |
| 2829 | 2827 | /* weigh in each texel */ \ |
| 2830 | factorsum = factor = ((0x100 - sfrac) * (0x100 - tfrac)) >> 8; \ | |
| 2831 | ag = ((texel0 >> 8) & 0x00ff00ff) * factor; \ | |
| 2832 | rb = (texel0 & 0x00ff00ff) * factor; \ | |
| 2833 | \ | |
| 2834 | factorsum += factor = (sfrac * (0x100 - tfrac)) >> 8; \ | |
| 2835 | ag += ((texel1 >> 8) & 0x00ff00ff) * factor; \ | |
| 2836 | rb += (texel1 & 0x00ff00ff) * factor; \ | |
| 2837 | \ | |
| 2838 | factorsum += factor = ((0x100 - sfrac) * tfrac) >> 8; \ | |
| 2839 | ag += ((texel2 >> 8) & 0x00ff00ff) * factor; \ | |
| 2840 | rb += (texel2 & 0x00ff00ff) * factor; \ | |
| 2841 | \ | |
| 2842 | factor = 0x100 - factorsum; \ | |
| 2843 | ag += ((texel3 >> 8) & 0x00ff00ff) * factor; \ | |
| 2844 | rb += (texel3 & 0x00ff00ff) * factor; \ | |
| 2845 | \ | |
| 2846 | c_local.u = (ag & 0xff00ff00) | ((rb >> 8) & 0x00ff00ff); \ | |
| 2828 | c_local.u = rgba_bilinear_filter(texel0, texel1, texel2, texel3, sfrac, tfrac);\ | |
| 2847 | 2829 | } \ |
| 2848 | 2830 | \ |
| 2849 | 2831 | /* select zero/other for RGB */ \ |
| r1238 | r1239 | |
| 3508 | 3490 | |
| 3509 | 3491 | #define RASTERIZER(name, TMUS, FBZCOLORPATH, FBZMODE, ALPHAMODE, FOGMODE, TEXMODE0, TEXMODE1) \ |
| 3510 | 3492 | \ |
| 3511 | static void raster_##name(void *destbase, INT32 y, | |
| 3493 | static void raster_##name(void *destbase, INT32 y, con | |
| 3512 | 3494 | { \ |
| 3513 | poly_extra_data *extra = | |
| 3495 | const poly_extra_data *extra = | |
| 3514 | 3496 | voodoo_state *v = extra->state; \ |
| 3515 | 3497 | stats_block *stats = &v->thread_stats[threadid]; \ |
| 3516 | 3498 | DECLARE_DITHER_POINTERS; \ |
| 3499 | INT32 startx = extent->startx; \ | |
| 3500 | INT32 stopx = extent->stopx; \ | |
| 3517 | 3501 | INT32 iterr, iterg, iterb, itera; \ |
| 3518 | 3502 | INT32 iterz; \ |
| 3519 | 3503 | INT64 iterw, iterw0 = 0, iterw1 = 0; \ |
| r1238 | r1239 | |
| 3565 | 3549 | } \ |
| 3566 | 3550 | \ |
| 3567 | 3551 | /* get pointers to the target buffer and depth buffer */ \ |
| 3568 | dest = (UINT16 *)destbase + scry * v->fbi.rowpixels; | |
| 3552 | dest = (UINT16 *)destbase + scry * v->fbi.rowpixels; | |
| 3569 | 3553 | depth = v->fbi.aux ? (v->fbi.aux + scry * v->fbi.rowpixels) : NULL; \ |
| 3570 | 3554 | \ |
| 3571 | 3555 | /* compute the starting parameters */ \ |
| r1238 | r1239 | |
|---|---|---|
| 14 | 14 | #ifndef __RGBSSE__ |
| 15 | 15 | #define __RGBSSE__ |
| 16 | 16 | |
| 17 | #include < | |
| 17 | #include <emmintrin.h> | |
| 18 | 18 | |
| 19 | 19 | |
| 20 | 20 | /*************************************************************************** |
| r1238 | r1239 | |
|---|---|---|
| 46 | 46 | typedef struct _polygon_info polygon_info; |
| 47 | 47 | |
| 48 | 48 | |
| 49 | /* work_unit describes a single "unit" of work, which is a small number of scanlines */ | |
| 50 | typedef struct _work_unit work_unit; | |
| 51 | struct _work_unit | |
| 49 | /* poly edge is used internally for quad rendering */ | |
| 50 | typedef struct _poly_edge poly_edge; | |
| 51 | struct _poly_edge | |
| 52 | 52 | { |
| 53 | poly_edge * next; /* next edge in sequence */ | |
| 54 | int index; /* index of this edge */ | |
| 55 | const poly_vertex * v1; /* pointer to first vertex */ | |
| 56 | const poly_vertex * v2; /* pointer to second vertex */ | |
| 57 | float dxdy; /* dx/dy along the edge */ | |
| 58 | float dpdy[MAX_VERTEX_PARAMS];/* per-parameter dp/dy values */ | |
| 59 | }; | |
| 60 | ||
| 61 | ||
| 62 | /* poly section is used internally for quad rendering */ | |
| 63 | typedef struct _poly_section poly_section; | |
| 64 | struct _poly_section | |
| 65 | { | |
| 66 | const poly_edge * ledge; /* pointer to left edge */ | |
| 67 | const poly_edge * redge; /* pointer to right edge */ | |
| 68 | float ybottom; /* bottom of this section */ | |
| 69 | }; | |
| 70 | ||
| 71 | ||
| 72 | /* work_unit_shared is a common set of data shared between tris and quads */ | |
| 73 | typedef struct _work_unit_shared work_unit_shared; | |
| 74 | struct _work_unit_shared | |
| 75 | { | |
| 53 | 76 | polygon_info * polygon; /* pointer to polygon */ |
| 54 | 77 | volatile UINT32 count_next; /* number of scanlines and index of next item to process */ |
| 55 | 78 | INT16 scanline; /* starting scanline and count */ |
| 56 | 79 | UINT16 previtem; /* index of previous item in the same bucket */ |
| 57 | scanline_extent extent[SCANLINES_PER_BUCKET]; /* array of scanline extents */ | |
| 80 | #ifndef PTR64 | |
| 81 | UINT32 dummy; /* pad to 16 bytes */ | |
| 82 | #endif | |
| 58 | 83 | }; |
| 59 | 84 | |
| 60 | 85 | |
| 86 | /* tri_work_unit is a triangle-specific work-unit */ | |
| 87 | typedef struct _tri_work_unit tri_work_unit; | |
| 88 | struct _tri_work_unit | |
| 89 | { | |
| 90 | work_unit_shared shared; /* shared data */ | |
| 91 | tri_extent extent[SCANLINES_PER_BUCKET]; /* array of scanline extents */ | |
| 92 | }; | |
| 93 | ||
| 94 | ||
| 95 | /* quad_work_unit is a quad-specific work-unit */ | |
| 96 | typedef struct _quad_work_unit quad_work_unit; | |
| 97 | struct _quad_work_unit | |
| 98 | { | |
| 99 | work_unit_shared shared; /* shared data */ | |
| 100 | quad_extent extent[SCANLINES_PER_BUCKET]; /* array of scanline extents */ | |
| 101 | }; | |
| 102 | ||
| 103 | ||
| 104 | /* work_unit is a union of the two types */ | |
| 105 | typedef union _work_unit work_unit; | |
| 106 | union _work_unit | |
| 107 | { | |
| 108 | work_unit_shared shared; /* shared data */ | |
| 109 | tri_work_unit tri; /* triangle work unit */ | |
| 110 | quad_work_unit quad; /* quad work unit */ | |
| 111 | }; | |
| 112 | ||
| 113 | ||
| 61 | 114 | /* polygon_info describes a single polygon, which includes the poly_params */ |
| 62 | 115 | struct _polygon_info |
| 63 | 116 | { |
| 64 | 117 | poly_manager * poly; /* pointer back to the poly manager */ |
| 65 | 118 | void * dest; /* pointer to the destination we are rendering to */ |
| 66 | poly_draw_scanline callback; /* callback to handle a scanline's worth of work */ | |
| 119 | void * extra; /* extra data pointer */ | |
| 120 | poly_draw_tri_scanline tricallback; /* callback to handle a scanline's worth of work */ | |
| 121 | poly_draw_quad_scanline quadcallback; /* callback to handle a scanline's worth of work */ | |
| 67 | 122 | poly_params params; /* poly_params structure */ |
| 68 | 123 | }; |
| 69 | 124 | |
| r1238 | r1239 | |
| 74 | 129 | /* queue management */ |
| 75 | 130 | osd_work_queue * queue; /* work queue */ |
| 76 | 131 | |
| 77 | /* work units */ | |
| 132 | /* triangle work units */ | |
| 78 | 133 | work_unit ** unit; /* array of work unit pointers */ |
| 79 | 134 | UINT32 unit_next; /* index of next unit to allocate */ |
| 80 | 135 | UINT32 unit_count; /* number of work units available */ |
| 81 | 136 | size_t unit_size; /* size of each work unit, in bytes */ |
| 82 | 137 | |
| 138 | /* quad work units */ | |
| 139 | UINT32 quadunit_next; /* index of next unit to allocate */ | |
| 140 | UINT32 quadunit_count; /* number of work units available */ | |
| 141 | size_t quadunit_size; /* size of each work unit, in bytes */ | |
| 142 | ||
| 83 | 143 | /* poly data */ |
| 84 | 144 | polygon_info ** polygon; /* array of polygon pointers */ |
| 85 | 145 | UINT32 polygon_next; /* index of next polygon to allocate */ |
| 86 | 146 | UINT32 polygon_count; /* number of polygon items available */ |
| 87 | 147 | size_t polygon_size; /* size of each polygon, in bytes */ |
| 88 | 148 | |
| 149 | /* extra data */ | |
| 150 | void ** extra; /* array of extra data pointers */ | |
| 151 | UINT32 extra_next; /* index of next extra data to allocate */ | |
| 152 | UINT32 extra_count; /* number of extra data items available */ | |
| 153 | size_t extra_size; /* size of each extra data, in bytes */ | |
| 154 | ||
| 89 | 155 | /* misc data */ |
| 90 | 156 | UINT8 flags; /* flags */ |
| 91 | 157 | |
| r1238 | r1239 | |
| 93 | 159 | UINT16 unit_bucket[TOTAL_BUCKETS]; /* buckets for tracking unit usage */ |
| 94 | 160 | |
| 95 | 161 | /* statistics */ |
| 96 | UINT32 polygons; /* number of polygons queued */ | |
| 162 | UINT32 triangles; /* number of triangles queued */ | |
| 163 | UINT32 quads; /* number of quads queued */ | |
| 97 | 164 | UINT64 pixels; /* number of pixels rendered */ |
| 98 | 165 | #if KEEP_STATISTICS |
| 166 | UINT32 unit_waits; /* number of times we waited for a unit */ | |
| 167 | UINT32 unit_max; /* maximum units used */ | |
| 168 | UINT32 polygon_waits; /* number of times we waited for a polygon */ | |
| 169 | UINT32 polygon_max; /* maximum polygons used */ | |
| 170 | UINT32 extra_waits; /* number of times we waited for an extra data */ | |
| 171 | UINT32 extra_max; /* maximum extra data used */ | |
| 99 | 172 | UINT32 conflicts[WORK_MAX_THREADS]; /* number of conflicts found, per thread */ |
| 100 | 173 | UINT32 resolved[WORK_MAX_THREADS]; /* number of conflicts resolved, per thread */ |
| 101 | 174 | #endif |
| r1238 | r1239 | |
| 107 | 180 | FUNCTION PROTOTYPES |
| 108 | 181 | ***************************************************************************/ |
| 109 | 182 | |
| 183 | static void **allocate_array(size_t *itemsize, UINT32 itemcount); | |
| 184 | static void free_array(void **array); | |
| 110 | 185 | static void *poly_item_callback(void *param, int threadid); |
| 111 | 186 | |
| 112 | 187 | |
| r1238 | r1239 | |
| 128 | 203 | } |
| 129 | 204 | |
| 130 | 205 | |
| 206 | /*------------------------------------------------- | |
| 207 | interpolate_vertex - interpolate values in | |
| 208 | a vertex based on p[0] crossing the clipval | |
| 209 | -------------------------------------------------*/ | |
| 131 | 210 | |
| 211 | INLINE void interpolate_vertex(poly_vertex *outv, const poly_vertex *v1, const poly_vertex *v2, int paramcount, float clipval) | |
| 212 | { | |
| 213 | float frac = (clipval - v1->p[0]) / (v2->p[0] - v1->p[0]); | |
| 214 | int paramnum; | |
| 215 | ||
| 216 | /* create a new one at the intersection point */ | |
| 217 | outv->x = v1->x + frac * (v2->x - v1->x); | |
| 218 | outv->y = v1->y + frac * (v2->y - v1->y); | |
| 219 | for (paramnum = 0; paramnum < paramcount; paramnum++) | |
| 220 | outv->p[paramnum] = v1->p[paramnum] + frac * (v2->p[paramnum] - v1->p[paramnum]); | |
| 221 | } | |
| 222 | ||
| 223 | ||
| 224 | /*------------------------------------------------- | |
| 225 | copy_vertex - copy vertex data from one to | |
| 226 | another | |
| 227 | -------------------------------------------------*/ | |
| 228 | ||
| 229 | INLINE void copy_vertex(poly_vertex *outv, const poly_vertex *v, int paramcount) | |
| 230 | { | |
| 231 | int paramnum; | |
| 232 | ||
| 233 | outv->x = v->x; | |
| 234 | outv->y = v->y; | |
| 235 | for (paramnum = 0; paramnum < paramcount; paramnum++) | |
| 236 | outv->p[paramnum] = v->p[paramnum]; | |
| 237 | } | |
| 238 | ||
| 239 | ||
| 240 | /*------------------------------------------------- | |
| 241 | allocate_polygon - allocate a new polygon | |
| 242 | object, blocking if we run out | |
| 243 | -------------------------------------------------*/ | |
| 244 | ||
| 245 | INLINE polygon_info *allocate_polygon(poly_manager *poly, int miny, int maxy) | |
| 246 | { | |
| 247 | /* wait for a work item if we have to */ | |
| 248 | if (poly->polygon_next + 1 > poly->polygon_count) | |
| 249 | { | |
| 250 | poly_wait(poly, "Out of polygons"); | |
| 251 | #if KEEP_STATISTICS | |
| 252 | poly->polygon_waits++; | |
| 253 | #endif | |
| 254 | } | |
| 255 | else if (poly->unit_next + (maxy - miny) / SCANLINES_PER_BUCKET + 2 > poly->unit_count) | |
| 256 | { | |
| 257 | poly_wait(poly, "Out of work units"); | |
| 258 | #if KEEP_STATISTICS | |
| 259 | poly->unit_waits++; | |
| 260 | #endif | |
| 261 | } | |
| 262 | #if KEEP_STATISTICS | |
| 263 | poly->polygon_max = MAX(poly->polygon_max, poly->polygon_next + 1); | |
| 264 | #endif | |
| 265 | return poly->polygon[poly->polygon_next++]; | |
| 266 | } | |
| 267 | ||
| 268 | ||
| 269 | ||
| 132 | 270 | /*************************************************************************** |
| 133 | 271 | INITIALIZATION/TEARDOWN |
| 134 | 272 | ***************************************************************************/ |
| r1238 | r1239 | |
| 138 | 276 | manager |
| 139 | 277 | -------------------------------------------------*/ |
| 140 | 278 | |
| 141 | poly_manager *poly_alloc(int max_ | |
| 279 | poly_manager *poly_alloc(int max_ | |
| 142 | 280 | { |
| 143 | int polynum, unitnum; | |
| 144 | 281 | poly_manager *poly; |
| 145 | 282 | |
| 146 | 283 | /* allocate the manager itself */ |
| r1238 | r1239 | |
| 149 | 286 | poly->flags = flags; |
| 150 | 287 | |
| 151 | 288 | /* allocate polygons */ |
| 152 | poly->polygon_size = sizeof(polygon_info) + extra_data_size; | |
| 153 | poly->polygon_count = MAX(max_queued_polygons, 1); | |
| 154 | poly->polygon = malloc_or_die(sizeof(*poly->polygon) * poly->polygon_count); | |
| 155 | memset(poly->polygon, 0, sizeof(*poly->polygon) * poly->polygon_count); | |
| 156 | poly->polygon[0] = malloc_or_die(sizeof(*poly->polygon[0]) * poly->polygon_count * poly->polygon_size); | |
| 157 | memset(poly->polygon[0], 0, sizeof(*poly->polygon[0]) * poly->polygon_count * poly->polygon_size); | |
| 289 | poly->polygon_size = sizeof(polygon_info); | |
| 290 | poly->polygon_count = MAX(max_polys, 1); | |
| 291 | poly->polygon_next = 0; | |
| 292 | poly->polygon = (polygon_info **)allocate_array(&poly->polygon_size, poly->polygon_count); | |
| 158 | 293 | |
| 159 | /* initialize the pointers */ | |
| 160 | for (polynum = 0; polynum < poly->polygon_count; polynum++) | |
| 161 | { | |
| 162 | poly->polygon[polynum] = (void *)((UINT8 *)poly->polygon[0] + polynum * poly->polygon_size); | |
| 163 | poly->polygon[polynum]->params.extra = (void *)((UINT8 *)poly->polygon[polynum] + sizeof(polygon_info)); | |
| 164 | } | |
| 294 | /* allocate extra data */ | |
| 295 | poly->extra_size = extra_data_size; | |
| 296 | poly->extra_count = poly->polygon_count; | |
| 297 | poly->extra_next = 1; | |
| 298 | poly->extra = allocate_array(&poly->extra_size, poly->extra_count); | |
| 165 | 299 | |
| 166 | /* allocate work units */ | |
| 167 | poly->unit_size = ((sizeof(work_unit) + CACHE_LINE_SIZE - 1) / CACHE_LINE_SIZE) * CACHE_LINE_SIZE; | |
| 300 | /* allocate triangle work units */ | |
| 301 | poly->unit_size = (flags & POLYFLAG_ALLOW_QUADS) ? sizeof(quad_work_unit) : sizeof(tri_work_unit); | |
| 168 | 302 | poly->unit_count = MIN(poly->polygon_count * UNITS_PER_POLY, 65535); |
| 169 | poly->unit = malloc_or_die(sizeof(*poly->unit) * poly->unit_count); | |
| 170 | memset(poly->unit, 0, sizeof(*poly->unit) * poly->unit_count); | |
| 171 | poly->unit[0] = malloc_or_die(sizeof(*poly->unit[0]) * poly->unit_count * poly->unit_size); | |
| 172 | memset(poly->unit[0], 0, sizeof(*poly->unit[0]) * poly->unit_count * poly->unit_size); | |
| 303 | poly->unit_next = 0; | |
| 304 | poly->unit = (work_unit **)allocate_array(&poly->unit_size, poly->unit_count); | |
| 173 | 305 | |
| 174 | /* initialize the work units */ | |
| 175 | for (unitnum = 0; unitnum < poly->unit_count; unitnum++) | |
| 176 | poly->unit[unitnum] = (void *)((UINT8 *)poly->unit[0] + unitnum * poly->unit_size); | |
| 177 | ||
| 178 | 306 | /* create the work queue */ |
| 179 | 307 | if (!(flags & POLYFLAG_NO_WORK_QUEUE)) |
| 180 | 308 | poly->queue = osd_work_queue_alloc(WORK_QUEUE_FLAG_MULTI | WORK_QUEUE_FLAG_HIGH_FREQ); |
| r1238 | r1239 | |
| 196 | 324 | conflicts += poly->conflicts[i]; |
| 197 | 325 | resolved += poly->resolved[i]; |
| 198 | 326 | } |
| 199 | printf("Total polygons = %d\n", poly->polygons); | |
| 327 | printf("Total triangles = %d\n", poly->triangles); | |
| 328 | printf("Total quads = %d\n", poly->quads); | |
| 200 | 329 | if (poly->pixels > 1000000000) |
| 201 | 330 | printf("Total pixels = %d%09d\n", (UINT32)(poly->pixels / 1000000000), (UINT32)(poly->pixels % 1000000000)); |
| 202 | 331 | else |
| 203 | 332 | printf("Total pixels = %d\n", (UINT32)poly->pixels); |
| 204 | printf("Resolved conflicts = %d/%d\n", resolved, conflicts); | |
| 333 | printf("Conflicts: %d resolved, %d total\n", resolved, conflicts); | |
| 334 | printf("Units: %5d used, %5d allocated, %5d waits, %4d bytes each, %7d total\n", poly->unit_max, poly->unit_count, poly->unit_waits, poly->unit_size, poly->unit_count * poly->unit_size); | |
| 335 | printf("Polygons: %5d used, %5d allocated, %5d waits, %4d bytes each, %7d total\n", poly->polygon_max, poly->polygon_count, poly->polygon_waits, poly->polygon_size, poly->polygon_count * poly->polygon_size); | |
| 336 | printf("Extra data: %5d used, %5d allocated, %5d waits, %4d bytes each, %7d total\n", poly->extra_max, poly->extra_count, poly->extra_waits, poly->extra_size, poly->extra_count * poly->extra_size); | |
| 205 | 337 | } |
| 206 | 338 | #endif |
| 207 | 339 | |
| r1238 | r1239 | |
| 209 | 341 | if (poly->queue != NULL) |
| 210 | 342 | osd_work_queue_free(poly->queue); |
| 211 | 343 | |
| 212 | /* free the work units */ | |
| 213 | if (poly->unit != NULL) | |
| 214 | { | |
| 215 | if (poly->unit[0] != NULL) | |
| 216 | free(poly->unit[0]); | |
| 217 | free(poly->unit); | |
| 218 | } | |
| 344 | /* free the arrays */ | |
| 345 | free_array(poly->extra); | |
| 346 | free_array((void **)poly->polygon); | |
| 347 | free_array((void **)poly->unit); | |
| 219 | 348 | |
| 220 | /* free the polygon */ | |
| 221 | if (poly->polygon != NULL) | |
| 222 | { | |
| 223 | if (poly->polygon[0] != NULL) | |
| 224 | free(poly->polygon[0]); | |
| 225 | free(poly->polygon); | |
| 226 | } | |
| 227 | ||
| 228 | 349 | /* free the manager itself */ |
| 229 | 350 | free(poly); |
| 230 | 351 | } |
| r1238 | r1239 | |
| 232 | 353 | |
| 233 | 354 | |
| 234 | 355 | /*************************************************************************** |
| 235 | | |
| 356 | | |
| 236 | 357 | ***************************************************************************/ |
| 237 | 358 | |
| 238 | 359 | /*------------------------------------------------- |
| r1238 | r1239 | |
| 271 | 392 | /* reset the state */ |
| 272 | 393 | poly->polygon_next = poly->unit_next = 0; |
| 273 | 394 | memset(poly->unit_bucket, 0xff, sizeof(poly->unit_bucket)); |
| 395 | ||
| 396 | /* we need to preserve the last extra data that was supplied */ | |
| 397 | if (poly->extra_next > 1) | |
| 398 | memcpy(poly->extra[0], poly->extra[poly->extra_next - 1], poly->extra_size); | |
| 399 | poly->extra_next = 1; | |
| 274 | 400 | } |
| 275 | 401 | |
| 276 | 402 | |
| 277 | ||
| 278 | /*************************************************************************** | |
| 279 | CORE RENDERING | |
| 280 | ***************************************************************************/ | |
| 281 | ||
| 282 | 403 | /*------------------------------------------------- |
| 283 | 404 | poly_get_extra_data - get a pointer to the |
| 284 | 405 | extra data for the next polygon |
| r1238 | r1239 | |
| 287 | 408 | void *poly_get_extra_data(poly_manager *poly) |
| 288 | 409 | { |
| 289 | 410 | /* wait for a work item if we have to */ |
| 290 | if (poly->polygon_next + 1 > poly->polygon_count) | |
| 291 | poly_wait(poly, "Out of polygons"); | |
| 411 | if (poly->extra_next + 1 > poly->extra_count) | |
| 412 | { | |
| 413 | poly_wait(poly, "Out of extra data"); | |
| 414 | #if KEEP_STATISTICS | |
| 415 | poly->extra_waits++; | |
| 416 | #endif | |
| 417 | } | |
| 292 | 418 | |
| 293 | 419 | /* return a pointer to the extra data for the next item */ |
| 294 | return poly->polygon[poly->polygon_next]->params.extra; | |
| 420 | #if KEEP_STATISTICS | |
| 421 | poly->extra_max = MAX(poly->extra_max, poly->extra_next + 1); | |
| 422 | #endif | |
| 423 | return poly->extra[poly->extra_next++]; | |
| 295 | 424 | } |
| 296 | 425 | |
| 297 | 426 | |
| 298 | 427 | |
| 299 | 428 | /*************************************************************************** |
| 300 | CORE RENDERING | |
| 429 | CORE TRIANGLE RENDERING | |
| 301 | 430 | ***************************************************************************/ |
| 302 | 431 | |
| 303 | 432 | /*------------------------------------------------- |
| r1238 | r1239 | |
| 305 | 434 | triangle given 3 vertexes |
| 306 | 435 | -------------------------------------------------*/ |
| 307 | 436 | |
| 308 | UINT32 poly_render_triangle(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline callback, int paramcount, const poly_vertex *v1, const poly_vertex *v2, const poly_vertex *v3) | |
| 437 | UINT32 poly_render_triangle(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_tri_scanline callback, int paramcount, const poly_vertex *v1, const poly_vertex *v2, const poly_vertex *v3) | |
| 309 | 438 | { |
| 310 | float dxdy_ | |
| 439 | float dxdy_v1v2 | |
| 311 | 440 | const poly_vertex *tv; |
| 312 | 441 | INT32 curscan, scaninc; |
| 313 | 442 | polygon_info *polygon; |
| r1238 | r1239 | |
| 352 | 481 | if (v3yclip - v1yclip <= 0) |
| 353 | 482 | return 0; |
| 354 | 483 | |
| 355 | /* wait for a work item if we have to */ | |
| 356 | if (poly->polygon_next + 1 > poly->polygon_count) | |
| 357 | poly_wait(poly, "Out of polygons"); | |
| 358 | else if (poly->unit_next + (v3yclip - v1yclip) / SCANLINES_PER_BUCKET + 2 > poly->unit_count) | |
| 359 | poly_wait(poly, "Out of work units"); | |
| 360 | polygon = poly->polygon[poly->polygon_next++]; | |
| 484 | /* allocate a new polygon */ | |
| 485 | polygon = allocate_polygon(poly, v1yclip, v3yclip); | |
| 361 | 486 | |
| 362 | 487 | /* fill in the polygon information */ |
| 363 | 488 | polygon->poly = poly; |
| 364 | 489 | polygon->dest = dest; |
| 365 | polygon->callback = callback; | |
| 490 | polygon->tricallback = callback; | |
| 491 | polygon->quadcallback = NULL; | |
| 492 | polygon->extra = poly->extra[poly->extra_next - 1]; | |
| 366 | 493 | |
| 367 | 494 | /* set the start X/Y coordinates */ |
| 368 | 495 | polygon->params.xorigin = v1x; |
| 369 | 496 | polygon->params.yorigin = v1y; |
| 370 | 497 | |
| 371 | 498 | /* compute the slopes for each portion of the triangle */ |
| 372 | dxdy_minmid = (v2->y == v1->y) ? 0.0f : (v2->x - v1->x) / (v2->y - v1->y); | |
| 373 | dxdy_minmax = (v3->y == v1->y) ? 0.0f : (v3->x - v1->x) / (v3->y - v1->y); | |
| 374 | dxdy_midmax = (v3->y == v2->y) ? 0.0f : (v3->x - v2->x) / (v3->y - v2->y); | |
| 499 | dxdy_v1v2 = (v2->y == v1->y) ? 0.0f : (v2->x - v1->x) / (v2->y - v1->y); | |
| 500 | dxdy_v1v3 = (v3->y == v1->y) ? 0.0f : (v3->x - v1->x) / (v3->y - v1->y); | |
| 501 | dxdy_v2v3 = (v3->y == v2->y) ? 0.0f : (v3->x - v2->x) / (v3->y - v2->y); | |
| 375 | 502 | |
| 376 | 503 | /* compute the X extents for each scanline */ |
| 377 | 504 | startunit = poly->unit_next; |
| r1238 | r1239 | |
| 379 | 506 | { |
| 380 | 507 | UINT32 bucketnum = ((UINT32)curscan / SCANLINES_PER_BUCKET) % TOTAL_BUCKETS; |
| 381 | 508 | UINT32 unit_index = poly->unit_next++; |
| 382 | work_unit *unit = poly->unit[unit_index]; | |
| 509 | tri_work_unit *unit = &poly->unit[unit_index]->tri; | |
| 383 | 510 | int extnum; |
| 384 | 511 | |
| 385 | 512 | /* determine how much to advance to hit the next bucket */ |
| 386 | 513 | scaninc = SCANLINES_PER_BUCKET - (UINT32)curscan % SCANLINES_PER_BUCKET; |
| 387 | 514 | |
| 388 | 515 | /* fill in the work unit basics */ |
| 389 | unit->polygon = polygon; | |
| 390 | unit->count_next = MIN(v3yclip - curscan, scaninc); | |
| 391 | unit->scanline = curscan; | |
| 392 | unit->previtem = poly->unit_bucket[bucketnum]; | |
| 516 | unit->shared.polygon = polygon; | |
| 517 | unit->shared.count_next = MIN(v3yclip - curscan, scaninc); | |
| 518 | unit->shared.scanline = curscan; | |
| 519 | unit->shared.previtem = poly->unit_bucket[bucketnum]; | |
| 393 | 520 | poly->unit_bucket[bucketnum] = unit_index; |
| 394 | 521 | |
| 395 | 522 | /* iterate over extents */ |
| 396 | for (extnum = 0; extnum < unit->count_next; extnum++) | |
| 523 | for (extnum = 0; extnum < unit->shared.count_next; extnum++) | |
| 397 | 524 | { |
| 398 | 525 | float fully = (float)(curscan + extnum) + 0.5f; |
| 399 | float startx = v1->x + (fully - v1->y) * dxdy_ | |
| 526 | float startx = v1->x + (fully - v1->y) * dxdy_v1v3 | |
| 400 | 527 | float stopx; |
| 401 | 528 | INT32 istartx, istopx; |
| 402 | 529 | |
| 403 | 530 | /* compute the ending X based on which part of the triangle we're in */ |
| 404 | 531 | if (fully < v2->y) |
| 405 | stopx = v1->x + (fully - v1->y) * dxdy_ | |
| 532 | stopx = v1->x + (fully - v1->y) * dxdy_v1v2 | |
| 406 | 533 | else |
| 407 | stopx = v2->x + (fully - v2->y) * dxdy_ | |
| 534 | stopx = v2->x + (fully - v2->y) * dxdy_v2v3 | |
| 408 | 535 | |
| 409 | 536 | /* clamp to full pixels */ |
| 410 | 537 | istartx = round_coordinate(startx); |
| r1238 | r1239 | |
| 439 | 566 | pixels += istopx - istartx; |
| 440 | 567 | } |
| 441 | 568 | } |
| 569 | #if KEEP_STATISTICS | |
| 570 | poly->unit_max = MAX(poly->unit_max, poly->unit_next); | |
| 571 | #endif | |
| 442 | 572 | |
| 443 | 573 | /* compute parameter starting points and deltas */ |
| 444 | 574 | if (paramcount > 0) |
| r1238 | r1239 | |
| 475 | 605 | osd_work_item_queue_multiple(poly->queue, poly_item_callback, poly->unit_next - startunit, poly->unit[startunit], poly->unit_size, WORK_ITEM_FLAG_AUTO_RELEASE); |
| 476 | 606 | |
| 477 | 607 | /* return the total number of pixels in the triangle */ |
| 478 | poly-> | |
| 608 | poly->tria | |
| 479 | 609 | poly->pixels += pixels; |
| 480 | 610 | return pixels; |
| 481 | 611 | } |
| 482 | 612 | |
| 483 | 613 | |
| 484 | 614 | /*------------------------------------------------- |
| 485 | poly_render_custom - perform a custom render | |
| 486 | of an object, given specific extents | |
| 615 | poly_render_triangle_fan - render a set of | |
| 616 | triangles in a fan | |
| 487 | 617 | -------------------------------------------------*/ |
| 488 | 618 | |
| 489 | UINT32 poly_render_ | |
| 619 | UINT32 poly_render_ | |
| 490 | 620 | { |
| 621 | UINT32 pixels = 0; | |
| 622 | int vertnum; | |
| 623 | ||
| 624 | /* iterate over vertices */ | |
| 625 | for (vertnum = 2; vertnum < numverts; vertnum++) | |
| 626 | pixels += poly_render_triangle(poly, dest, cliprect, callback, paramcount, &v[0], &v[vertnum - 1], &v[vertnum]); | |
| 627 | return pixels; | |
| 628 | } | |
| 629 | ||
| 630 | ||
| 631 | /*------------------------------------------------- | |
| 632 | poly_render_triangle_custom - perform a custom | |
| 633 | render of an object, given specific extents | |
| 634 | -------------------------------------------------*/ | |
| 635 | ||
| 636 | UINT32 poly_render_triangle_custom(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_tri_scanline callback, int startscanline, int numscanlines, const tri_extent *extents) | |
| 637 | { | |
| 491 | 638 | INT32 curscan, scaninc; |
| 492 | 639 | polygon_info *polygon; |
| 493 | 640 | INT32 v1yclip, v3yclip; |
| r1238 | r1239 | |
| 508 | 655 | if (v3yclip - v1yclip <= 0) |
| 509 | 656 | return 0; |
| 510 | 657 | |
| 511 | /* wait for a work item if we have to */ | |
| 512 | if (poly->polygon_next + 1 > poly->polygon_count) | |
| 513 | poly_wait(poly, "Out of polygons"); | |
| 514 | else if (poly->unit_next + (v3yclip - v1yclip) / SCANLINES_PER_BUCKET + 2 > poly->unit_count) | |
| 515 | poly_wait(poly, "Out of work units"); | |
| 516 | polygon = poly->polygon[poly->polygon_next++]; | |
| 658 | /* allocate a new polygon */ | |
| 659 | polygon = allocate_polygon(poly, v1yclip, v3yclip); | |
| 517 | 660 | |
| 518 | 661 | /* fill in the polygon information */ |
| 519 | 662 | polygon->poly = poly; |
| 520 | 663 | polygon->dest = dest; |
| 521 | polygon->callback = callback; | |
| 664 | polygon->tricallback = callback; | |
| 665 | polygon->quadcallback = NULL; | |
| 666 | polygon->extra = poly->extra[poly->extra_next - 1]; | |
| 522 | 667 | |
| 523 | 668 | /* compute the X extents for each scanline */ |
| 524 | 669 | startunit = poly->unit_next; |
| r1238 | r1239 | |
| 526 | 671 | { |
| 527 | 672 | UINT32 bucketnum = ((UINT32)curscan / SCANLINES_PER_BUCKET) % TOTAL_BUCKETS; |
| 528 | 673 | UINT32 unit_index = poly->unit_next++; |
| 529 | work_unit *unit = poly->unit[unit_index]; | |
| 674 | tri_work_unit *unit = &poly->unit[unit_index]->tri; | |
| 530 | 675 | int extnum; |
| 531 | 676 | |
| 532 | 677 | /* determine how much to advance to hit the next bucket */ |
| 533 | 678 | scaninc = SCANLINES_PER_BUCKET - (UINT32)curscan % SCANLINES_PER_BUCKET; |
| 534 | 679 | |
| 535 | 680 | /* fill in the work unit basics */ |
| 536 | unit->polygon = polygon; | |
| 537 | unit->count_next = MIN(v3yclip - curscan, scaninc); | |
| 538 | unit->scanline = curscan; | |
| 539 | unit->previtem = poly->unit_bucket[bucketnum]; | |
| 681 | unit->shared.polygon = polygon; | |
| 682 | unit->shared.count_next = MIN(v3yclip - curscan, scaninc); | |
| 683 | unit->shared.scanline = curscan; | |
| 684 | unit->shared.previtem = poly->unit_bucket[bucketnum]; | |
| 540 | 685 | poly->unit_bucket[bucketnum] = unit_index; |
| 541 | 686 | |
| 542 | 687 | /* iterate over extents */ |
| 543 | for (extnum = 0; extnum < unit->count_next; extnum++) | |
| 688 | for (extnum = 0; extnum < unit->shared.count_next; extnum++) | |
| 544 | 689 | { |
| 545 | const | |
| 690 | const tr | |
| 546 | 691 | INT32 istartx = extent->startx, istopx = extent->stopx; |
| 547 | 692 | |
| 548 | 693 | /* force start < stop */ |
| r1238 | r1239 | |
| 569 | 714 | pixels += istopx - istartx; |
| 570 | 715 | } |
| 571 | 716 | } |
| 717 | #if KEEP_STATISTICS | |
| 718 | poly->unit_max = MAX(poly->unit_max, poly->unit_next); | |
| 719 | #endif | |
| 572 | 720 | |
| 573 | 721 | /* enqueue the work items */ |
| 574 | 722 | if (poly->queue != NULL) |
| 575 | 723 | osd_work_item_queue_multiple(poly->queue, poly_item_callback, poly->unit_next - startunit, poly->unit[startunit], poly->unit_size, WORK_ITEM_FLAG_AUTO_RELEASE); |
| 576 | 724 | |
| 577 | 725 | /* return the total number of pixels in the object */ |
| 578 | poly-> | |
| 726 | poly->tria | |
| 579 | 727 | poly->pixels += pixels; |
| 580 | 728 | return pixels; |
| 581 | 729 | } |
| r1238 | r1239 | |
| 583 | 731 | |
| 584 | 732 | |
| 585 | 733 | /*************************************************************************** |
| 586 | | |
| 734 | COR | |
| 587 | 735 | ***************************************************************************/ |
| 588 | 736 | |
| 589 | 737 | /*------------------------------------------------- |
| 738 | poly_render_quad - render a single quad | |
| 739 | given 4 vertexes | |
| 740 | -------------------------------------------------*/ | |
| 741 | ||
| 742 | UINT32 poly_render_quad(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_quad_scanline callback, int paramcount, const poly_vertex *v1, const poly_vertex *v2, const poly_vertex *v3, const poly_vertex *v4) | |
| 743 | { | |
| 744 | poly_edge fedgelist[3], bedgelist[3]; | |
| 745 | const poly_edge *ledge, *redge; | |
| 746 | const poly_vertex *v[4]; | |
| 747 | poly_edge *edgeptr; | |
| 748 | int minv, maxv, curv; | |
| 749 | INT32 minyclip, maxyclip; | |
| 750 | INT32 miny, maxy; | |
| 751 | INT32 curscan, scaninc; | |
| 752 | polygon_info *polygon; | |
| 753 | INT32 pixels = 0; | |
| 754 | UINT32 startunit; | |
| 755 | ||
| 756 | assert(poly->flags & POLYFLAG_ALLOW_QUADS); | |
| 757 | ||
| 758 | /* arrays make things easier */ | |
| 759 | v[0] = v1; | |
| 760 | v[1] = v2; | |
| 761 | v[2] = v3; | |
| 762 | v[3] = v4; | |
| 763 | ||
| 764 | /* determine min/max Y vertices */ | |
| 765 | if (v[1]->y < v[0]->y) | |
| 766 | minv = 1, maxv = 0; | |
| 767 | else | |
| 768 | minv = 0, maxv = 1; | |
| 769 | if (v[2]->y < v[minv]->y) | |
| 770 | minv = 2; | |
| 771 | else if (v[2]->y > v[maxv]->y) | |
| 772 | maxv = 2; | |
| 773 | if (v[3]->y < v[minv]->y) | |
| 774 | minv = 3; | |
| 775 | else if (v[3]->y > v[maxv]->y) | |
| 776 | maxv = 3; | |
| 777 | ||
| 778 | /* determine start/end scanlines */ | |
| 779 | miny = round_coordinate(v[minv]->y); | |
| 780 | maxy = round_coordinate(v[maxv]->y); | |
| 781 | ||
| 782 | /* clip coordinates */ | |
| 783 | minyclip = miny; | |
| 784 | maxyclip = maxy + ((poly->flags & POLYFLAG_INCLUDE_BOTTOM_EDGE) ? 1 : 0); | |
| 785 | if (cliprect != NULL) | |
| 786 | { | |
| 787 | minyclip = MAX(minyclip, cliprect->min_y); | |
| 788 | maxyclip = MIN(maxyclip, cliprect->max_y + 1); | |
| 789 | } | |
| 790 | if (maxyclip - minyclip <= 0) | |
| 791 | return 0; | |
| 792 | ||
| 793 | /* allocate a new polygon */ | |
| 794 | polygon = allocate_polygon(poly, minyclip, maxyclip); | |
| 795 | ||
| 796 | /* fill in the polygon information */ | |
| 797 | polygon->poly = poly; | |
| 798 | polygon->dest = dest; | |
| 799 | polygon->tricallback = NULL; | |
| 800 | polygon->quadcallback = callback; | |
| 801 | polygon->extra = poly->extra[poly->extra_next - 1]; | |
| 802 | ||
| 803 | /* walk forward to build up the forward edge list */ | |
| 804 | edgeptr = &fedgelist[0]; | |
| 805 | for (curv = minv; curv != maxv; curv = (curv + 1) & 3) | |
| 806 | { | |
| 807 | int paramnum; | |
| 808 | float ooy; | |
| 809 | ||
| 810 | /* set the two vertices */ | |
| 811 | edgeptr->v1 = v[curv]; | |
| 812 | edgeptr->v2 = v[(curv + 1) & 3]; | |
| 813 | ||
| 814 | /* if horizontal, skip altogether */ | |
| 815 | if (edgeptr->v1->y == edgeptr->v2->y) | |
| 816 | continue; | |
| 817 | ||
| 818 | /* need dx/dy always, and parameter deltas as necessary */ | |
| 819 | ooy = 1.0f / (edgeptr->v2->y - edgeptr->v1->y); | |
| 820 | edgeptr->dxdy = (edgeptr->v2->x - edgeptr->v1->x) * ooy; | |
| 821 | for (paramnum = 0; paramnum < paramcount; paramnum++) | |
| 822 | edgeptr->dpdy[paramnum] = (edgeptr->v2->p[paramnum] - edgeptr->v1->p[paramnum]) * ooy; | |
| 823 | edgeptr++; | |
| 824 | } | |
| 825 | ||
| 826 | /* walk backward to build up the backward edge list */ | |
| 827 | edgeptr = &bedgelist[0]; | |
| 828 | for (curv = minv; curv != maxv; curv = (curv - 1) & 3) | |
| 829 | { | |
| 830 | int paramnum; | |
| 831 | float ooy; | |
| 832 | ||
| 833 | /* set the two vertices */ | |
| 834 | edgeptr->v1 = v[curv]; | |
| 835 | edgeptr->v2 = v[(curv - 1) & 3]; | |
| 836 | ||
| 837 | /* if horizontal, skip altogether */ | |
| 838 | if (edgeptr->v1->y == edgeptr->v2->y) | |
| 839 | continue; | |
| 840 | ||
| 841 | /* need dx/dy always, and parameter deltas as necessary */ | |
| 842 | ooy = 1.0f / (edgeptr->v2->y - edgeptr->v1->y); | |
| 843 | edgeptr->dxdy = (edgeptr->v2->x - edgeptr->v1->x) * ooy; | |
| 844 | for (paramnum = 0; paramnum < paramcount; paramnum++) | |
| 845 | edgeptr->dpdy[paramnum] = (edgeptr->v2->p[paramnum] - edgeptr->v1->p[paramnum]) * ooy; | |
| 846 | edgeptr++; | |
| 847 | } | |
| 848 | ||
| 849 | /* determine which list is left/right: */ | |
| 850 | /* if the first vertex is shared, compare the slopes */ | |
| 851 | /* if the first vertex is not shared, compare the X coordinates */ | |
| 852 | if ((fedgelist[0].v1 == bedgelist[0].v1 && fedgelist[0].dxdy < bedgelist[0].dxdy) || | |
| 853 | (fedgelist[0].v1 != bedgelist[0].v1 && fedgelist[0].v1->x < bedgelist[0].v1->x)) | |
| 854 | { | |
| 855 | ledge = fedgelist; | |
| 856 | redge = bedgelist; | |
| 857 | } | |
| 858 | else | |
| 859 | { | |
| 860 | ledge = bedgelist; | |
| 861 | redge = fedgelist; | |
| 862 | } | |
| 863 | ||
| 864 | /* compute the X extents for each scanline */ | |
| 865 | startunit = poly->unit_next; | |
| 866 | for (curscan = minyclip; curscan < maxyclip; curscan += scaninc) | |
| 867 | { | |
| 868 | UINT32 bucketnum = ((UINT32)curscan / SCANLINES_PER_BUCKET) % TOTAL_BUCKETS; | |
| 869 | UINT32 unit_index = poly->unit_next++; | |
| 870 | quad_work_unit *unit = &poly->unit[unit_index]->quad; | |
| 871 | int extnum; | |
| 872 | ||
| 873 | /* determine how much to advance to hit the next bucket */ | |
| 874 | scaninc = SCANLINES_PER_BUCKET - (UINT32)curscan % SCANLINES_PER_BUCKET; | |
| 875 | ||
| 876 | /* fill in the work unit basics */ | |
| 877 | unit->shared.polygon = polygon; | |
| 878 | unit->shared.count_next = MIN(maxyclip - curscan, scaninc); | |
| 879 | unit->shared.scanline = curscan; | |
| 880 | unit->shared.previtem = poly->unit_bucket[bucketnum]; | |
| 881 | poly->unit_bucket[bucketnum] = unit_index; | |
| 882 | ||
| 883 | /* iterate over extents */ | |
| 884 | for (extnum = 0; extnum < unit->shared.count_next; extnum++) | |
| 885 | { | |
| 886 | float fully = (float)(curscan + extnum) + 0.5f; | |
| 887 | float startx, stopx; | |
| 888 | INT32 istartx, istopx; | |
| 889 | int paramnum; | |
| 890 | ||
| 891 | /* compute the ending X based on which part of the triangle we're in */ | |
| 892 | while (fully > ledge->v2->y && fully < v[maxv]->y) | |
| 893 | ledge++; | |
| 894 | while (fully > redge->v2->y && fully < v[maxv]->y) | |
| 895 | redge++; | |
| 896 | startx = ledge->v1->x + (fully - ledge->v1->y) * ledge->dxdy; | |
| 897 | stopx = redge->v1->x + (fully - redge->v1->y) * redge->dxdy; | |
| 898 | ||
| 899 | /* clamp to full pixels */ | |
| 900 | istartx = round_coordinate(startx); | |
| 901 | istopx = round_coordinate(stopx); | |
| 902 | ||
| 903 | /* compute parameter starting points and deltas */ | |
| 904 | if (paramcount > 0) | |
| 905 | { | |
| 906 | float ldy = fully - ledge->v1->y; | |
| 907 | float rdy = fully - redge->v1->y; | |
| 908 | float oox = 1.0f / (stopx - startx); | |
| 909 | ||
| 910 | /* iterate over parameters */ | |
| 911 | for (paramnum = 0; paramnum < paramcount; paramnum++) | |
| 912 | { | |
| 913 | float lparam = ledge->v1->p[paramnum] + ldy * ledge->dpdy[paramnum]; | |
| 914 | float rparam = redge->v1->p[paramnum] + rdy * redge->dpdy[paramnum]; | |
| 915 | float dpdx = (rparam - lparam) * oox; | |
| 916 | ||
| 917 | unit->extent[extnum].param[paramnum].start = lparam;// - ((float)istartx + 0.5f) * dpdx; | |
| 918 | unit->extent[extnum].param[paramnum].dpdx = dpdx; | |
| 919 | } | |
| 920 | } | |
| 921 | ||
| 922 | /* include the right edge if requested */ | |
| 923 | if (poly->flags & POLYFLAG_INCLUDE_RIGHT_EDGE) | |
| 924 | istopx++; | |
| 925 | ||
| 926 | /* apply left/right clipping */ | |
| 927 | if (cliprect != NULL) | |
| 928 | { | |
| 929 | if (istartx < cliprect->min_x) | |
| 930 | { | |
| 931 | for (paramnum = 0; paramnum < paramcount; paramnum++) | |
| 932 | unit->extent[extnum].param[paramnum].start += (cliprect->min_x - istartx) * unit->extent[extnum].param[paramnum].dpdx; | |
| 933 | istartx = cliprect->min_x; | |
| 934 | } | |
| 935 | if (istopx > cliprect->max_x) | |
| 936 | istopx = cliprect->max_x + 1; | |
| 937 | } | |
| 938 | ||
| 939 | /* set the extent and update the total pixel count */ | |
| 940 | if (istartx >= istopx) | |
| 941 | istartx = istopx = 0; | |
| 942 | unit->extent[extnum].startx = istartx; | |
| 943 | unit->extent[extnum].stopx = istopx; | |
| 944 | pixels += istopx - istartx; | |
| 945 | } | |
| 946 | } | |
| 947 | #if KEEP_STATISTICS | |
| 948 | poly->unit_max = MAX(poly->unit_max, poly->unit_next); | |
| 949 | #endif | |
| 950 | ||
| 951 | /* enqueue the work items */ | |
| 952 | if (poly->queue != NULL) | |
| 953 | osd_work_item_queue_multiple(poly->queue, poly_item_callback, poly->unit_next - startunit, poly->unit[startunit], poly->unit_size, WORK_ITEM_FLAG_AUTO_RELEASE); | |
| 954 | ||
| 955 | /* return the total number of pixels in the triangle */ | |
| 956 | poly->quads++; | |
| 957 | poly->pixels += pixels; | |
| 958 | return pixels; | |
| 959 | } | |
| 960 | ||
| 961 | ||
| 962 | /*------------------------------------------------- | |
| 963 | poly_render_quad_fan - render a set of | |
| 964 | quads in a fan | |
| 965 | -------------------------------------------------*/ | |
| 966 | ||
| 967 | UINT32 poly_render_quad_fan(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_quad_scanline callback, int paramcount, int numverts, const poly_vertex *v) | |
| 968 | { | |
| 969 | UINT32 pixels = 0; | |
| 970 | int vertnum; | |
| 971 | ||
| 972 | /* iterate over vertices */ | |
| 973 | for (vertnum = 2; vertnum < numverts; vertnum += 2) | |
| 974 | pixels += poly_render_quad(poly, dest, cliprect, callback, paramcount, &v[0], &v[vertnum - 1], &v[vertnum], &v[MIN(vertnum + 1, numverts - 1)]); | |
| 975 | return pixels; | |
| 976 | } | |
| 977 | ||
| 978 | ||
| 979 | ||
| 980 | /*************************************************************************** | |
| 981 | CLIPPING | |
| 982 | ***************************************************************************/ | |
| 983 | ||
| 984 | /*------------------------------------------------- | |
| 985 | poly_zclip_if_less - z clip a polygon against | |
| 986 | the given value, returning a set of clipped | |
| 987 | vertices | |
| 988 | -------------------------------------------------*/ | |
| 989 | ||
| 990 | int poly_zclip_if_less(int numverts, const poly_vertex *v, poly_vertex *outv, int paramcount, float clipval) | |
| 991 | { | |
| 992 | int prevclipped = (v[numverts - 1].p[0] < clipval); | |
| 993 | poly_vertex *nextout = outv; | |
| 994 | int vertnum; | |
| 995 | ||
| 996 | /* iterate over vertices */ | |
| 997 | for (vertnum = 0; vertnum < numverts; vertnum++) | |
| 998 | { | |
| 999 | int thisclipped = (v[vertnum].p[0] < clipval); | |
| 1000 | ||
| 1001 | /* if we switched from clipped to non-clipped, interpolate a vertex */ | |
| 1002 | if (thisclipped != prevclipped) | |
| 1003 | interpolate_vertex(nextout++, &v[(vertnum == 0) ? (numverts - 1) : (vertnum - 1)], &v[vertnum], paramcount, clipval); | |
| 1004 | ||
| 1005 | /* if this vertex is not clipped, copy it in */ | |
| 1006 | if (!thisclipped) | |
| 1007 | copy_vertex(nextout++, &v[vertnum], paramcount); | |
| 1008 | ||
| 1009 | /* remember the last state */ | |
| 1010 | prevclipped = thisclipped; | |
| 1011 | } | |
| 1012 | return nextout - outv; | |
| 1013 | } | |
| 1014 | ||
| 1015 | ||
| 1016 | ||
| 1017 | /*************************************************************************** | |
| 1018 | INTERNAL FUNCTIONS | |
| 1019 | ***************************************************************************/ | |
| 1020 | ||
| 1021 | /*------------------------------------------------- | |
| 1022 | allocate_array - allocate an array of pointers | |
| 1023 | -------------------------------------------------*/ | |
| 1024 | ||
| 1025 | static void **allocate_array(size_t *itemsize, UINT32 itemcount) | |
| 1026 | { | |
| 1027 | void **ptrarray; | |
| 1028 | int itemnum; | |
| 1029 | ||
| 1030 | /* fail if 0 */ | |
| 1031 | if (itemcount == 0) | |
| 1032 | return NULL; | |
| 1033 | ||
| 1034 | /* round to a cache line boundary */ | |
| 1035 | *itemsize = ((*itemsize + CACHE_LINE_SIZE - 1) / CACHE_LINE_SIZE) * CACHE_LINE_SIZE; | |
| 1036 | ||
| 1037 | /* allocate the array */ | |
| 1038 | ptrarray = malloc_or_die(sizeof(*ptrarray) * itemcount); | |
| 1039 | memset(ptrarray, 0, sizeof(*ptrarray) * itemcount); | |
| 1040 | ||
| 1041 | /* allocate the actual items */ | |
| 1042 | ptrarray[0] = malloc_or_die(*itemsize * itemcount); | |
| 1043 | memset(ptrarray[0], 0, *itemsize * itemcount); | |
| 1044 | ||
| 1045 | /* initialize the pointer array */ | |
| 1046 | for (itemnum = 1; itemnum < itemcount; itemnum++) | |
| 1047 | ptrarray[itemnum] = (UINT8 *)ptrarray[0] + *itemsize * itemnum; | |
| 1048 | return ptrarray; | |
| 1049 | } | |
| 1050 | ||
| 1051 | ||
| 1052 | /*------------------------------------------------- | |
| 1053 | free_array - release an array of pointers | |
| 1054 | -------------------------------------------------*/ | |
| 1055 | ||
| 1056 | static void free_array(void **array) | |
| 1057 | { | |
| 1058 | if (array != NULL) | |
| 1059 | { | |
| 1060 | if (array[0] != NULL) | |
| 1061 | free(array[0]); | |
| 1062 | free(array); | |
| 1063 | } | |
| 1064 | } | |
| 1065 | ||
| 1066 | ||
| 1067 | /*------------------------------------------------- | |
| 590 | 1068 | poly_item_callback - callback for each poly |
| 591 | 1069 | item |
| 592 | 1070 | -------------------------------------------------*/ |
| r1238 | r1239 | |
| 596 | 1074 | while (1) |
| 597 | 1075 | { |
| 598 | 1076 | work_unit *unit = param; |
| 599 | polygon_info *polygon = unit->polygon; | |
| 600 | int count = unit->count_next & 0xffff; | |
| 1077 | polygon_info *polygon = unit->shared.polygon; | |
| 1078 | int count = unit->shared.count_next & 0xffff; | |
| 601 | 1079 | UINT32 orig_count_next; |
| 602 | int | |
| 1080 | int c | |
| 603 | 1081 | |
| 604 | 1082 | /* if our previous item isn't done yet, enqueue this item to the end and proceed */ |
| 605 | if (unit->previtem != 0xffff) | |
| 1083 | if (unit->shared.previtem != 0xffff) | |
| 606 | 1084 | { |
| 607 | work_unit *prevunit = polygon->poly->unit[unit->previtem]; | |
| 608 | if (prevunit->count_next != 0) | |
| 1085 | work_unit *prevunit = polygon->poly->unit[unit->shared.previtem]; | |
| 1086 | if (prevunit->shared.count_next != 0) | |
| 609 | 1087 | { |
| 610 | 1088 | UINT32 unitnum = ((UINT8 *)unit - (UINT8 *)polygon->poly->unit[0]) / polygon->poly->unit_size; |
| 611 | 1089 | UINT32 new_count_next; |
| r1238 | r1239 | |
| 613 | 1091 | /* attempt to atomically swap in this new value */ |
| 614 | 1092 | do |
| 615 | 1093 | { |
| 616 | orig_count_next = prevunit->count_next; | |
| 1094 | orig_count_next = prevunit->shared.count_next; | |
| 617 | 1095 | new_count_next = orig_count_next | (unitnum << 16); |
| 618 | } while (compare_exchange32((volatile INT32 *)&prevunit->count_next, orig_count_next, new_count_next) != orig_count_next); | |
| 1096 | } while (compare_exchange32((volatile INT32 *)&prevunit->shared.count_next, orig_count_next, new_count_next) != orig_count_next); | |
| 619 | 1097 | |
| 620 | 1098 | #if KEEP_STATISTICS |
| 621 | 1099 | /* track resolved conflicts */ |
| r1238 | r1239 | |
| 630 | 1108 | } |
| 631 | 1109 | |
| 632 | 1110 | /* iterate over extents */ |
| 633 | for (extnum = 0; extnum < count; extnum++) | |
| 634 | (*polygon->callback)(polygon->dest, unit->scanline + extnum, unit->extent[extnum].startx, unit->extent[extnum].stopx, &polygon->params, threadid); | |
| 1111 | for (curscan = 0; curscan < count; curscan++) | |
| 1112 | if (polygon->tricallback != NULL) | |
| 1113 | (*polygon->tricallback)(polygon->dest, unit->shared.scanline + curscan, &unit->tri.extent[curscan], &polygon->params, polygon->extra, threadid); | |
| 1114 | else | |
| 1115 | (*polygon->quadcallback)(polygon->dest, unit->shared.scanline + curscan, &unit->quad.extent[curscan], polygon->extra, threadid); | |
| 635 | 1116 | |
| 636 | 1117 | /* set our count to 0 and re-fetch the original count value */ |
| 637 | 1118 | do |
| 638 | 1119 | { |
| 639 | orig_count_next = unit->count_next; | |
| 640 | } while (compare_exchange32((volatile INT32 *)&unit->count_next, orig_count_next, 0) != orig_count_next); | |
| 1120 | orig_count_next = unit->shared.count_next; | |
| 1121 | } while (compare_exchange32((volatile INT32 *)&unit->shared.count_next, orig_count_next, 0) != orig_count_next); | |
| 641 | 1122 | |
| 642 | 1123 | /* if we have no more work to do, do nothing */ |
| 643 | 1124 | orig_count_next >>= 16; |
| r1238 | r1239 | |
|---|---|---|
| 362 | 362 | } |
| 363 | 363 | #endif |
| 364 | 364 | |
| 365 | ||
| 366 | /*------------------------------------------------- | |
| 367 | atomic_increment32 - atomically increment the | |
| 368 | 32-bit value in memory at 'ptr', returning the | |
| 369 | final result. | |
| 370 | ||
| 371 | Note that the default implementation does | |
| 372 | no synchronization. You MUST override this | |
| 373 | in osinline.h for it to be useful in a | |
| 374 | multithreaded environment! | |
| 375 | -------------------------------------------------*/ | |
| 376 | ||
| 377 | #ifndef atomic_increment32 | |
| 378 | INLINE INT32 atomic_increment32(INT32 volatile *ptr, INT32 delta) | |
| 379 | { | |
| 380 | return atomic_add32(ptr, 1); | |
| 381 | } | |
| 382 | #endif | |
| 383 | ||
| 384 | ||
| 385 | /*------------------------------------------------- | |
| 386 | atomic_decrement32 - atomically decrement the | |
| 387 | 32-bit value in memory at 'ptr', returning the | |
| 388 | final result. | |
| 389 | ||
| 390 | Note that the default implementation does | |
| 391 | no synchronization. You MUST override this | |
| 392 | in osinline.h for it to be useful in a | |
| 393 | multithreaded environment! | |
| 394 | -------------------------------------------------*/ | |
| 395 | ||
| 396 | #ifndef atomic_decrement32 | |
| 397 | INLINE INT32 atomic_decrement32(INT32 volatile *ptr, INT32 delta) | |
| 398 | { | |
| 399 | return atomic_add32(ptr, -1); | |
| 400 | } | |
| 401 | #endif | |
| 402 | ||
| 365 | 403 | #endif /* __EMINLINE__ */ |
| r1238 | r1239 | |
|---|---|---|
| 86 | 86 | result to 32 bits |
| 87 | 87 | -------------------------------------------------*/ |
| 88 | 88 | |
| 89 | #if !defined(__ppc64__) && !defined(__PPC64__) && !defined(_ARCH_PPC64) | |
| 89 | 90 | #define mul_32x32_shift _mul_32x32_shift |
| 90 | 91 | INLINE INT32 _mul_32x32_shift(INT32 val1, INT32 val2, UINT8 shift) |
| 91 | 92 | { |
| 92 | 93 | INT32 result; |
| 93 | 94 | |
| 94 | #if defined(__ppc64__) || defined(__PPC64__) | |
| 95 | 95 | __asm__ ( |
| 96 | " mulld %[result], %[val1], %[val2] \n" | |
| 97 | " srd %[result], %[result], %[shift] \n" | |
| 98 | : [result] "=&r" (result) /* result can go in any register */ | |
| 99 | : [val1] "%r" (val1) /* any register, can swap with val2 */ | |
| 100 | , [val2] "r" (val2) /* any register */ | |
| 101 | , [shift] "r" (shift) /* any register */ | |
| 102 | ); | |
| 103 | #else | |
| 104 | __asm__ ( | |
| 105 | 96 | " mullw %[result], %[val1], %[val2] \n" |
| 106 | 97 | " mulhw %[val1], %[val1], %[val2] \n" |
| 107 | 98 | " srw %[result], %[result], %[shift] \n" |
| r1238 | r1239 | |
| 114 | 105 | : [val2] "r" (val2) |
| 115 | 106 | : "xer" |
| 116 | 107 | ); |
| 117 | #endif | |
| 118 | 108 | |
| 119 | 109 | return result; |
| 120 | 110 | } |
| 111 | #endif | |
| 121 | 112 | |
| 122 | 113 | |
| 123 | 114 | /*------------------------------------------------- |
| r1238 | r1239 | |
| 127 | 118 | result to 32 bits |
| 128 | 119 | -------------------------------------------------*/ |
| 129 | 120 | |
| 121 | #if !defined(__ppc64__) && !defined(__PPC64__) && !defined(_ARCH_PPC64) | |
| 130 | 122 | #define mulu_32x32_shift _mulu_32x32_shift |
| 131 | 123 | INLINE UINT32 _mulu_32x32_shift(UINT32 val1, UINT32 val2, UINT8 shift) |
| 132 | 124 | { |
| 133 | 125 | UINT32 result; |
| 134 | 126 | |
| 135 | #if defined(__ppc64__) || defined(__PPC64__) | |
| 136 | 127 | __asm__ ( |
| 137 | " mulld %[result], %[val1], %[val2] \n" | |
| 138 | " srd %[result], %[result], %[shift] \n" | |
| 139 | : [result] "=&r" (result) /* result can go in any register */ | |
| 140 | : [val1] "%r" (val1) /* any register, can swap with val2 */ | |
| 141 | , [val2] "r" (val2) /* any register */ | |
| 142 | , [shift] "r" (shift) /* any register */ | |
| 143 | ); | |
| 144 | #else | |
| 145 | __asm__ ( | |
| 146 | 128 | " mullw %[result], %[val1], %[val2] \n" |
| 147 | 129 | " mulhwu %[val1], %[val1], %[val2] \n" |
| 148 | 130 | " srw %[result], %[result], %[shift] \n" |
| r1238 | r1239 | |
| 155 | 137 | : [val2] "r" (val2) |
| 156 | 138 | : "xer" |
| 157 | 139 | ); |
| 158 | #endif | |
| 159 | 140 | |
| 160 | 141 | return result; |
| 161 | 142 | } |
| 143 | #endif | |
| 162 | 144 | |
| 163 | 145 | |
| 164 | 146 | /*------------------------------------------------- |
| r1238 | r1239 | |
| 216 | 198 | point reciprocal |
| 217 | 199 | -------------------------------------------------*/ |
| 218 | 200 | |
| 219 | /* TBD */ | |
| 201 | #define recip_approx _recip_approx | |
| 202 | INLINE float _recip_approx(float value) | |
| 203 | { | |
| 204 | float result; | |
| 220 | 205 | |
| 206 | __asm__ ( | |
| 207 | " fres %[result], %[value] \n" | |
| 208 | : [result] "=f" (result) | |
| 209 | : [value] "f" (value) | |
| 210 | ); | |
| 221 | 211 | |
| 212 | return result; | |
| 213 | } | |
| 222 | 214 | |
| 215 | ||
| 216 | ||
| 223 | 217 | /*************************************************************************** |
| 224 | 218 | INLINE BIT MANIPULATION FUNCTIONS |
| 225 | 219 | ***************************************************************************/ |
| r1238 | r1239 | |
|---|---|---|
| 76 | 76 | #define DEVSEL_RW ( 1 ) |
| 77 | 77 | #define DEVSEL_ADDRESS ( 0xfe ) |
| 78 | 78 | |
| 79 | struct i2cmem_chip i2cmem[ I2CMEM_MAXCHIP ]; | |
| 79 | static struct i2cmem_chip i2cmem[ I2CMEM_MAXCHIP ]; | |
| 80 | 80 | |
| 81 | 81 | void i2cmem_init( int chip, int slave_address, int page_size, int data_size, unsigned char *data ) |
| 82 | 82 | { |
| r1238 | r1239 | |
|---|---|---|
| 17 | 17 | #include "sound/2612intf.h" |
| 18 | 18 | |
| 19 | 19 | |
| 20 | #if (BUILD_YM2612) | |
| 21 | ||
| 22 | 20 | struct ym2612_info |
| 23 | 21 | { |
| 24 | 22 | sound_stream * stream; |
| r1238 | r1239 | |
| 235 | 233 | YM2612Write(info->chip,3,data); |
| 236 | 234 | } |
| 237 | 235 | |
| 236 | #if BUILD_YM3438 | |
| 238 | 237 | |
| 239 | 238 | /************************************************/ |
| 240 | 239 | /* Status Read for YM3438 - Chip 0 */ |
| r1238 | r1239 | |
| 339 | 338 | YM2612Write(info->chip,3,data); |
| 340 | 339 | } |
| 341 | 340 | |
| 341 | #endif | |
| 342 | ||
| 342 | 343 | /**************** end of file ****************/ |
| 343 | 344 | |
| 344 | 345 | /************************************************************************** |
| r1238 | r1239 | |
| 379 | 380 | * Generic get_info |
| 380 | 381 | **************************************************************************/ |
| 381 | 382 | |
| 383 | #if BUILD_YM3438 | |
| 384 | ||
| 382 | 385 | static void ym3438_set_info(void *token, UINT32 state, sndinfo *info) |
| 383 | 386 | { |
| 384 | 387 | switch (state) |
| r1238 | r1239 | |
|---|---|---|
| 24 | 24 | #include "sound/fmopl.h" |
| 25 | 25 | |
| 26 | 26 | |
| 27 | #if | |
| 27 | #if BUILD_YM3812 | |
| 28 | 28 | |
| 29 | 29 | struct ym3812_info |
| 30 | 30 | { |
| r1238 | r1239 | |
| 191 | 191 | #endif |
| 192 | 192 | |
| 193 | 193 | |
| 194 | #if | |
| 194 | #if BUILD_YM3526 | |
| 195 | 195 | |
| 196 | 196 | struct ym3526_info |
| 197 | 197 | { |
| r1238 | r1239 | |
| 359 | 359 | #endif |
| 360 | 360 | |
| 361 | 361 | |
| 362 | #if | |
| 362 | #if BUILD_Y8950 | |
| 363 | 363 | |
| 364 | 364 | struct y8950_info |
| 365 | 365 | { |
| r1238 | r1239 | |
|---|---|---|
| 2457 | 2457 | |
| 2458 | 2458 | |
| 2459 | 2459 | |
| 2460 | #if (BUILD_YMF262) | |
| 2461 | ||
| 2462 | 2460 | void * YMF262Init(int clock, int rate) |
| 2463 | 2461 | { |
| 2464 | 2462 | return OPL3Create(OPL3_TYPE_YMF262,clock,rate); |
| r1238 | r1239 | |
| 2718 | 2716 | } |
| 2719 | 2717 | |
| 2720 | 2718 | } |
| 2721 | ||
| 2719 |
| r1238 | r1239 | |
|---|---|---|
| 1 | 1 | #ifndef YMF262_H |
| 2 | 2 | #define YMF262_H |
| 3 | 3 | |
| 4 | ||
| 5 | #define BUILD_YMF262 (HAS_YMF262) | |
| 6 | ||
| 7 | ||
| 8 | 4 | /* select number of output bits: 8 or 16 */ |
| 9 | 5 | #define OPL3_SAMPLE_BITS 16 |
| 10 | 6 | |
| r1238 | r1239 | |
| 34 | 30 | typedef void (*OPL3_UPDATEHANDLER)(void *param,int min_interval_us); |
| 35 | 31 | |
| 36 | 32 | |
| 37 | ||
| 38 | #if BUILD_YMF262 | |
| 39 | ||
| 40 | 33 | void *YMF262Init(int clock, int rate); |
| 41 | 34 | void YMF262Shutdown(void *chip); |
| 42 | 35 | void YMF262ResetChip(void *chip); |
| r1238 | r1239 | |
| 49 | 42 | void YMF262SetIRQHandler(void *chip, OPL3_IRQHANDLER IRQHandler, void *param); |
| 50 | 43 | void YMF262SetUpdateHandler(void *chip, OPL3_UPDATEHANDLER UpdateHandler, void *param); |
| 51 | 44 | |
| 52 | #endif | |
| 53 | 45 | |
| 54 | ||
| 55 | 46 | #endif /* YMF262_H */ |
| r1238 | r1239 | |
|---|---|---|
| 9 | 9 | ****************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "streams.h" | |
| 13 | #ifdef MESS | |
| 14 | #include "messdrv.h" | |
| 12 | 15 | #include "utils.h" |
| 13 | 16 | #include "devices/cassette.h" |
| 14 | #include "streams.h" | |
| 15 | #include "wave.h" | |
| 17 | #endif | |
| 16 | 18 | |
| 17 | 19 | #define ALWAYS_PLAY_SOUND 0 |
| 18 | 20 | #define WAVE_TOKEN_MASK 0xFFFF0000 |
| r1238 | r1239 | |
| 21 | 23 | |
| 22 | 24 | static void wave_sound_update(void *param,stream_sample_t **inputs, stream_sample_t **_buffer,int length) |
| 23 | 25 | { |
| 26 | #ifdef MESS | |
| 24 | 27 | mess_image *image; |
| 25 | 28 | cassette_image *cassette; |
| 26 | 29 | cassette_state state; |
| r1238 | r1239 | |
| 49 | 52 | { |
| 50 | 53 | memset(buffer, 0, sizeof(*buffer) * length); |
| 51 | 54 | } |
| 55 | #endif | |
| 52 | 56 | } |
| 53 | 57 | |
| 54 | 58 |
| r1238 | r1239 | |
|---|---|---|
| 1418 | 1418 | return SCSP_r16(SCSP, offset*2); |
| 1419 | 1419 | } |
| 1420 | 1420 | |
| 1421 | ||
| 1421 | ||
| 1422 | 1422 | |
| 1423 | 1423 | WRITE16_HANDLER( SCSP_0_w ) |
| 1424 | 1424 | { |
| r1238 | r1239 | |
|---|---|---|
| 17 | 17 | #include "2610intf.h" |
| 18 | 18 | #include "fm.h" |
| 19 | 19 | |
| 20 | #if (BUILD_YM2610||BUILD_YM2610B) | |
| 21 | ||
| 22 | 20 | static sound_type chip_type = SOUND_YM2610; |
| 23 | 21 | struct ym2610_info |
| 24 | 22 | { |
| r1238 | r1239 | |
| 443 | 441 | YM2610Write(info->chip,3,data); |
| 444 | 442 | } |
| 445 | 443 | } |
| 446 | #endif | |
| 447 | 444 | |
| 448 | 445 | /**************** end of file ****************/ |
| 449 | 446 |
| r1238 | r1239 | |
|---|---|---|
| 125 | 125 | #endif |
| 126 | 126 | |
| 127 | 127 | /* shared function building option */ |
| 128 | #define BUILD_OPN (BUILD_YM2203||BUILD_YM2608||BUILD_YM2610||BUILD_YM2610B||BUILD_YM2612) | |
| 128 | #define BUILD_OPN (BUILD_YM2203||BUILD_YM2608||BUILD_YM2610||BUILD_YM2610B||BUILD_YM2612||BUILD_YM3438) | |
| 129 | 129 | #define BUILD_OPN_PRESCALER (BUILD_YM2203||BUILD_YM2608) |
| 130 | 130 | |
| 131 | 131 | |
| r1238 | r1239 | |
| 4371 | 4371 | |
| 4372 | 4372 | |
| 4373 | 4373 | |
| 4374 | #if BUILD_YM2612 | |
| 4374 | #if (BUILD_YM2612||BUILD_YM3438) | |
| 4375 | 4375 | /*******************************************************************************/ |
| 4376 | 4376 | /* YM2612 local section */ |
| 4377 | 4377 | /*******************************************************************************/ |
| r1238 | r1239 | |
| 4741 | 4741 | return F2612->OPN.ST.irq; |
| 4742 | 4742 | } |
| 4743 | 4743 | |
| 4744 | #endif /* BUILD_YM2612 */ | |
| 4744 | #endif /* (BUILD_YM2612||BUILD_YM3238) */ |
| r1238 | r1239 | |
|---|---|---|
| 10 | 10 | #define BUILD_YM2608 (HAS_YM2608) /* build YM2608(OPNA) emulator */ |
| 11 | 11 | #define BUILD_YM2610 (HAS_YM2610) /* build YM2610(OPNB) emulator */ |
| 12 | 12 | #define BUILD_YM2610B (HAS_YM2610B) /* build YM2610B(OPNB?)emulator */ |
| 13 | #define BUILD_YM2612 (HAS_YM2612 || HAS_YM3438) /* build YM2612(OPN2) emulator */ | |
| 13 | #define BUILD_YM2612 (HAS_YM2612) /* build YM2612(OPN2) emulator */ | |
| 14 | #define BUILD_YM3438 (HAS_YM3438) /* build YM3438(OPN) emulator */ | |
| 14 | 15 | |
| 15 | 16 | /* select bit size of output : 8 or 16 */ |
| 16 | 17 | #define FM_SAMPLE_BITS 16 |
| r1238 | r1239 | |
| 58 | 59 | void YM2610UpdateRequest(void *param); |
| 59 | 60 | #define YM2610UpdateReq(chip) YM2610UpdateRequest(chip); |
| 60 | 61 | #endif |
| 61 | #if BUILD_YM2612 | |
| 62 | #if (BUILD_YM2612||BUILD_YM3438) | |
| 62 | 63 | /* in 2612intf.c */ |
| 63 | 64 | void YM2612UpdateRequest(void *param); |
| 64 | 65 | #define YM2612UpdateReq(chip) YM2612UpdateRequest(chip); |
| r1238 | r1239 | |
| 191 | 192 | unsigned char YM2610Read(void *chip,int a); |
| 192 | 193 | int YM2610TimerOver(void *chip, int c ); |
| 193 | 194 | void YM2610Postload(void *chip); |
| 194 | #endif /* BUILD_YM2610 */ | |
| 195 | #endif /* (BUILD_YM2610||BUILD_YM2610B) */ | |
| 195 | 196 | |
| 196 | #if BUILD_YM2612 | |
| 197 | #if (BUILD_YM2612||BUILD_YM3438) | |
| 197 | 198 | void * YM2612Init(void *param, int index, int baseclock, int rate, |
| 198 | 199 | FM_TIMERHANDLER TimerHandler,FM_IRQHANDLER IRQHandler); |
| 199 | 200 | void YM2612Shutdown(void *chip); |
| r1238 | r1239 | |
| 204 | 205 | unsigned char YM2612Read(void *chip,int a); |
| 205 | 206 | int YM2612TimerOver(void *chip, int c ); |
| 206 | 207 | void YM2612Postload(void *chip); |
| 207 | #endif /* BUILD_YM2612 */ | |
| 208 | #endif /* (BUILD_YM2612||BUILD_YM3438) */ | |
| 208 | 209 | |
| 209 | 210 | |
| 210 | 211 | #endif /* _H_FM_FM_ */ |
| r1238 | r1239 | |
|---|---|---|
| 17 | 17 | #include "2608intf.h" |
| 18 | 18 | #include "fm.h" |
| 19 | 19 | |
| 20 | #if (BUILD_YM2608) | |
| 21 | ||
| 22 | 20 | struct ym2608_info |
| 23 | 21 | { |
| 24 | 22 | sound_stream * stream; |
| r1238 | r1239 | |
| 314 | 312 | case SNDINFO_STR_CORE_CREDITS: info->s = "Copyright (c) 2004, The MAME Team"; break; |
| 315 | 313 | } |
| 316 | 314 | } |
| 317 | ||
| 318 | #endif |
| r1238 | r1239 | |
|---|---|---|
| 22 | 22 | }; |
| 23 | 23 | |
| 24 | 24 | |
| 25 | #if (HAS_YM2151) | |
| 26 | ||
| 27 | 25 | static void ym2151_update(void *param, stream_sample_t **inputs, stream_sample_t **buffers, int length) |
| 28 | 26 | { |
| 29 | 27 | struct ym2151_info *info = param; |
| r1238 | r1239 | |
| 236 | 234 | case SNDINFO_STR_CORE_CREDITS: info->s = "Copyright (c) 2004, The MAME Team"; break; |
| 237 | 235 | } |
| 238 | 236 | } |
| 239 | ||
| 240 | #endif | |
| 241 |
| r1238 | r1239 | |
|---|---|---|
| 612 | 612 | SOUNDDEFS += -DHAS_VOTRAX=$(if $(filter VOTRAX,$(SOUNDS)),1,0) |
| 613 | 613 | |
| 614 | 614 | ifneq ($(filter VOTRAX,$(SOUNDS)),) |
| 615 | SOUNDOBJS += $(SOUNDOBJ)/votrax.o | |
| 615 | SOUNDOBJS += $(SOUNDOBJ)/votrax.o $(SOUNDOBJ)/samples.o | |
| 616 | 616 | endif |
| 617 | 617 | |
| 618 | 618 |
| r1238 | r1239 | |
|---|---|---|
| 11 | 11 | #include "ymf262.h" |
| 12 | 12 | |
| 13 | 13 | |
| 14 | #if (HAS_YMF262) | |
| 15 | ||
| 16 | 14 | struct ymf262_info |
| 17 | 15 | { |
| 18 | 16 | sound_stream * stream; |
| r1238 | r1239 | |
| 189 | 187 | } |
| 190 | 188 | } |
| 191 | 189 | |
| 192 | #endif | |
| 193 |
| r1238 | r1239 | |
|---|---|---|
| 524 | 524 | NULL \ |
| 525 | 525 | }; |
| 526 | 526 | |
| 527 | #define GAMEB(YEAR,NAME,PARENT,BIOS,MACHINE,INPUT,INIT,MONITOR,COMPANY,FULLNAME,FLAGS) \ | |
| 528 | game_driver driver_##NAME = \ | |
| 529 | { \ | |
| 530 | __FILE__, \ | |
| 531 | #PARENT, \ | |
| 532 | #NAME, \ | |
| 533 | FULLNAME, \ | |
| 534 | #YEAR, \ | |
| 535 | COMPANY, \ | |
| 536 | construct_##MACHINE, \ | |
| 537 | ipt_##INPUT, \ | |
| 538 | driver_init_##INIT, \ | |
| 539 | rom_##NAME, \ | |
| 540 | (MONITOR)|(FLAGS), \ | |
| 541 | NULL \ | |
| 542 | }; | |
| 543 | ||
| 544 | 527 | #define GAMEL(YEAR,NAME,PARENT,MACHINE,INPUT,INIT,MONITOR,COMPANY,FULLNAME,FLAGS,LAYOUT) \ |
| 545 | 528 | game_driver driver_##NAME = \ |
| 546 | 529 | { \ |
| r1238 | r1239 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | - [ATARIST] Implemented iKBD<->68000 communications, so the keyboard is working now. [Curt Coder] |
| 35 | 35 | |
| 36 | - [MEPHISTO] Implemented artwork/code for real chess board usage. [Ralf Sch | |
| 36 | - [MEPHISTO] Implemented artwork/code for real chess board usage. [Ralf Sch | |
| 37 | 37 | |
| 38 | 38 | User Interface Changes: |
| 39 | 39 | ----------------------- |
| r1238 | r1239 | |
| 49 | 49 | |
| 50 | 50 | Source Changes: |
| 51 | 51 | ---------------- |
| 52 | - The core is based on MAME 0.120u | |
| 52 | - The core is based on MAME 0.120u3. This incorporates all features of the | |
| 53 | 53 | update to this core. [MAME team] |
| 54 | 54 | |
| 55 | 55 | |
| r1238 | r1239 | |
| 5643 | 5643 | *"Engine" is separate from the "shell"; which gives the potential for front ends for |
| 5644 | 5644 | those who don't like command lines. [Nate Woods] |
| 5645 | 5645 | |
| 5646 | - Disk write support for AMSTRAD CPC [Oscar MartĂn González] | |
| 5646 | - Disk write support for AMSTRAD CPC [Oscar Martďż˝Ăn González] | |
| 5647 | 5647 | |
| 5648 | 5648 | - Wave timer fix [Oscar MartĂn González] |
| 5649 | 5649 | |
| r1238 | r1239 | |
| 6106 | 6106 | NES [Brad Oliver] |
| 6107 | 6107 | TRS-80 [Jurgen Buchmueller] |
| 6108 | 6108 | Colour Genie [Juergen Buchmueller] |
| 6109 | Genesis [Gareth Long] | |
| 6109 | Genesis [Gareth Long] |
| Previous | 15994 Revisions | Next |