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

src/mame/audio/t5182.c
r1238r1239
200200
201201
202202
203int semaphore_main, semaphore_snd;
203static int semaphore_main, semaphore_snd;
204204
205205READ8_HANDLER(t5182_sharedram_semaphore_snd_r)
206206{
src/mame/machine/scudsp.c
r1238r1239
8383   UINT16 ui;
8484} SCUDSPREG16;
8585
86struct {
86static struct {
8787      UINT8 pc;                                 /*Program Counter*/
8888      UINT8 delay;                              /* Delay */
8989      UINT8 top;                                 /*Jump Command memory*/
src/mame/machine/cubocd32.c
r1238r1239
2828#define   NVRAM_SIZE 1024
2929#define   NVRAM_PAGE_SIZE   16   /* max size of one write request */
3030
31struct akiko_def
31static struct akiko_def
3232{
3333   /* chunky to planar converter */
3434   UINT32   c2p_input_buffer[8];
src/mame/machine/kaneko16.c
r1238r1239
1717
1818#include "kanekotb.h"   // TOYBOX MCU trojaning results
1919
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))
2121
22UINT16 *mcu_ram;
22UINT16 *kaneko16_mcu_ram;
2323
2424/***************************************************************************
2525                                Gals Panic (set 2)
r1238r1239
147147  rect2       <----->       |     <----------->  |             <--->
148148  result      <---------->  |     <-------->     |       <---->
149149*/
150INT16 calc_compute_x(void)
150static INT16 calc_compute_x(void)
151151{
152152   INT16 x_coll;
153153
r1238r1239
161161
162162   return x_coll;
163163}
164INT16 calc_compute_y(void)
164static INT16 calc_compute_y(void)
165165{
166166   INT16 y_coll;
167167
r1238r1239
282282
283283WRITE16_HANDLER( calc3_mcu_ram_w )
284284{
285   COMBINE_DATA(&mcu_ram[offset]);
285   COMBINE_DATA(&kaneko16_mcu_ram[offset]);
286286   calc3_mcu_run();
287287}
288288
r1238r1239
317317
318318   if ( calc3_mcu_status != (1|2|4|8) )   return;
319319
320   mcu_command = mcu_ram[calc3_mcu_command_offset + 0];
320   mcu_command = kaneko16_mcu_ram[calc3_mcu_command_offset + 0];
321321
322322   if (mcu_command == 0) return;
323323
r1238r1239
329329
330330      case 0x00ff:
331331      {
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];
339339
340340         // clear old command (handshake to main cpu)
341         mcu_ram[calc3_mcu_command_offset] = 0x0000;
341         kaneko16_mcu_ram[calc3_mcu_command_offset] = 0x0000;
342342
343343         // execute the command:
344344
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
347347
348348         calc3_mcu_command_offset = param3 / 2;   // where next command will be written?
349349         // param 4?
350         mcu_ram[param5 / 2] = 0x8ee4;            // MCU Rom Checksum!
350         kaneko16_mcu_ram[param5 / 2] = 0x8ee4;            // MCU Rom Checksum!
351351         // param 6&7 = address.l
352352
353353/*
r1238r1239
432432
433433      case 0x0001:
434434      {
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];
437437
438438         // clear old command (handshake to main cpu)
439         mcu_ram[calc3_mcu_command_offset] = 0x0000;
439         kaneko16_mcu_ram[calc3_mcu_command_offset] = 0x0000;
440440
441441         // execute the command:
442442
443443         // 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
449449
450450      }
451451      break;
r1238r1239
453453
454454      case 0x0002:
455455      {
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];
463463
464464         // clear old command (handshake to main cpu)
465         mcu_ram[calc3_mcu_command_offset] = 0x0000;
465         kaneko16_mcu_ram[calc3_mcu_command_offset] = 0x0000;
466466
467467         // execute the command:
468468
r1238r1239
511511MCU parameters:
512512---------------
513513
514mcu_command = mcu_ram[0x0010/2];    // command nb
515mcu_offset  = mcu_ram[0x0012/2]/2;  // offset in shared RAM where MCU will write
516mcu_subcmd  = mcu_ram[0x0014/2];    // sub-command parameter, happens only for command #4
514mcu_command = kaneko16_mcu_ram[0x0010/2];    // command nb
515mcu_offset  = kaneko16_mcu_ram[0x0012/2]/2;  // offset in shared RAM where MCU will write
516mcu_subcmd  = kaneko16_mcu_ram[0x0014/2];    // sub-command parameter, happens only for command #4
517517
518518
519519    the only MCU commands found in program code are:
r1238r1239
587587
588588void bloodwar_mcu_run(void)
589589{
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];
593593
594594   switch (mcu_command >> 8)
595595   {
r1238r1239
598598         mame_file *f;
599599         if ((f = nvram_fopen(Machine, OPEN_FLAG_READ)) != 0)
600600         {
601            mame_fread(f,&mcu_ram[mcu_offset], 128);
601            mame_fread(f,&kaneko16_mcu_ram[mcu_offset], 128);
602602            mame_fclose(f);
603603         }
604604         logerror("PC=%06X : MCU executed command: %04X %04X (load NVRAM settings)\n", activecpu_get_pc(), mcu_command, mcu_offset*2);
r1238r1239
610610         mame_file *f;
611611         if ((f = nvram_fopen(Machine, OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS)) != 0)
612612         {
613            mame_fwrite(f,&mcu_ram[mcu_offset], 128);
613            mame_fwrite(f,&kaneko16_mcu_ram[mcu_offset], 128);
614614            mame_fclose(f);
615615         }
616616         logerror("PC=%06X : MCU executed command: %04X %04X (save NVRAM settings)\n", activecpu_get_pc(), mcu_command, mcu_offset*2);
r1238r1239
619619
620620      case 0x03:   // DSW
621621      {
622         mcu_ram[mcu_offset] = readinputport(4);
622         kaneko16_mcu_ram[mcu_offset] = readinputport(4);
623623         logerror("PC=%06X : MCU executed command: %04X %04X (read DSW)\n", activecpu_get_pc(), mcu_command, mcu_offset*2);
624624      }
625625      break;
r1238r1239
701701
702702void bonkadv_mcu_run(void)
703703{
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];
707707
708708   switch (mcu_command >> 8)
709709   {
r1238r1239
713713         mame_file *f;
714714         if ((f = nvram_fopen(Machine, OPEN_FLAG_READ)) != 0)
715715         {
716            mame_fread(f,&mcu_ram[mcu_offset], 128);
716            mame_fread(f,&kaneko16_mcu_ram[mcu_offset], 128);
717717            mame_fclose(f);
718718         }
719719         logerror("PC=%06X : MCU executed command: %04X %04X (load NVRAM settings)\n", activecpu_get_pc(), mcu_command, mcu_offset*2);
r1238r1239
725725         mame_file *f;
726726         if ((f = nvram_fopen(Machine, OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS)) != 0)
727727         {
728            mame_fwrite(f,&mcu_ram[mcu_offset], 128);
728            mame_fwrite(f,&kaneko16_mcu_ram[mcu_offset], 128);
729729            mame_fclose(f);
730730         }
731731         logerror("PC=%06X : MCU executed command: %04X %04X (save NVRAM settings)\n", activecpu_get_pc(), mcu_command, mcu_offset*2);
r1238r1239
746746
747747      case 0x03:   // DSW
748748      {
749         mcu_ram[mcu_offset] = readinputport(4);
749         kaneko16_mcu_ram[mcu_offset] = readinputport(4);
750750         logerror("PC=%06X : MCU executed command: %04X %04X (read DSW)\n", activecpu_get_pc(), mcu_command, mcu_offset*2);
751751      }
752752      break;
r1238r1239
821821
822822void gtmr_mcu_run(void)
823823{
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];
827827
828828   logerror("CPU #0 PC %06X : MCU executed command: %04X %04X %04X\n", activecpu_get_pc(), mcu_command, mcu_offset*2, mcu_data);
829829
r1238r1239
835835         mame_file *f;
836836         if ((f = nvram_fopen(Machine, OPEN_FLAG_READ)) != 0)
837837         {
838            mame_fread(f,&mcu_ram[mcu_offset], 128);
838            mame_fread(f,&kaneko16_mcu_ram[mcu_offset], 128);
839839            mame_fclose(f);
840840         }
841841      }
r1238r1239
846846         mame_file *f;
847847         if ((f = nvram_fopen(Machine, OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS)) != 0)
848848         {
849            mame_fwrite(f,&mcu_ram[mcu_offset], 128);
849            mame_fwrite(f,&kaneko16_mcu_ram[mcu_offset], 128);
850850            mame_fclose(f);
851851         }
852852      }
r1238r1239
854854
855855      case 0x03:   // DSW
856856      {
857         mcu_ram[mcu_offset] = readinputport(4);
857         kaneko16_mcu_ram[mcu_offset] = readinputport(4);
858858      }
859859      break;
860860
r1238r1239
864864            strcmp(Machine->gamedrv->name, "gtmra") == 0)
865865         {
866866            /* 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;
875875         }
876876         else
877877         {
878878            /* 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;
887887         }
888888      }
889889      break;
src/mame/machine/cchip.c
r1238r1239
159159
160160/* Mega Blast */
161161
162UINT16 *cchip_ram;
162UINT16 *cchip2_ram;
163163
164164WRITE16_HANDLER( cchip2_word_w )
165165{
166166    logerror("cchip2_w pc: %06x offset %04x: %02x\n", activecpu_get_pc(), offset, data);
167167
168    COMBINE_DATA(&cchip_ram[offset]);
168    COMBINE_DATA(&cchip2_ram[offset]);
169169}
170170
171171READ16_HANDLER( cchip2_word_r )
r1238r1239
179179
180180   logerror("cchip2_r offset: %04x\n", offset);
181181
182   return cchip_ram[offset];
182   return cchip2_ram[offset];
183183}
184184
src/mame/machine/pgmprot.c
r1238r1239
88
99
1010/*** (PSTARS) ***/
11UINT16 PSTARSKEY;
11static UINT16 PSTARSKEY;
1212static UINT16 PSTARSINT[2];
1313static UINT32 PSTARS_REGS[16];
1414static UINT32 PSTARS_VAL;
src/mame/machine/cps2crpt.c
r1238r1239
458458
459459// srckey is the 64-bit master key (2x32 bits)
460460// dstkey will contain the 96-bit key for the 1st FN (4x24 bits)
461void expand_1st_key(UINT32 *dstkey, const UINT32 *srckey)
461static void expand_1st_key(UINT32 *dstkey, const UINT32 *srckey)
462462{
463463   static const int bits[96] =
464464   {
r1238r1239
493493
494494// srckey is the 64-bit master key (2x32 bits) XORed with the subkey
495495// dstkey will contain the 96-bit key for the 2nd FN (4x24 bits)
496void expand_2nd_key(UINT32 *dstkey, const UINT32 *srckey)
496static void expand_2nd_key(UINT32 *dstkey, const UINT32 *srckey)
497497{
498498   static const int bits[96] =
499499   {
src/mame/machine/opwolf.c
r1238r1239
212212   0x0000,0xfc01,0x8009,0x0042
213213};
214214
215const UINT16 level_data_05[0xcc] =
215static const UINT16 level_data_05[0xcc] =
216216{
217217   0x0480,0x1008,0x0300,0x5701,0x0001,0x0010,0x0480,0x1008,
218218   0x0300,0x5701,0x0001,0x002b,0x0780,0x0009,0x0300,0x4a01,
src/mame/mamedriv.c
r1238r1239
17221722   /* Taito "tnzs" (Seta) hardware */
17231723   DRIVER( plumppop )   /* A98 (c) 1987 Taito Corporation (Japan) */
17241724   DRIVER( extrmatn )   /* B06 (c) 1987 World Games */
1725   DRIVER( extrmatj )   /* B06 (c) 1987 Taito Corporation (Japan)*/
17251726   DRIVER( arknoid2 )   /* B08 (c) 1987 Taito Corporation Japan (World) */
17261727   DRIVER( arknid2u )   /* B08 (c) 1987 Taito America Corporation + Romstar license (US) */
17271728   DRIVER( arknid2j )   /* B08 (c) 1987 Taito Corporation (Japan) */
r1238r1239
45014502   DRIVER( konami88 )   /* GX861 (c) 1988 */
45024503   DRIVER( hypsptsp )   /* GX861 (c) 1988 (Japan) */
45034504   DRIVER( gbusters )   /* GX878 (c) 1988 */
4505   DRIVER( gbustera )   /* GX878 (c) 1988 */
45044506   DRIVER( crazycop )   /* GX878 (c) 1988 (Japan) */
45054507   DRIVER( crimfght )   /* GX821 (c) 1989 (US) */
45064508   DRIVER( crimfgt2 )   /* GX821 (c) 1989 (World) */
r1238r1239
59105912   DRIVER( narc )      /* (c) 1988 Williams */
59115913   DRIVER( narc3 )      /* (c) 1988 Williams */
59125914   DRIVER( trog )      /* (c) 1990 Midway */
5915   DRIVER( trog4 )      /* (c) 1990 Midway */
59135916   DRIVER( trog3 )      /* (c) 1990 Midway */
59145917   DRIVER( trogpa6 )   /* (c) 1990 Midway */
59155918   DRIVER( trogp )      /* (c) 1990 Midway */
r1238r1239
73517354   DRIVER( evosocc )   /* 2001 Evoga. Evolution Soccer */
73527355
73537356   /* Bell Fruit Cobra Hardware */
7357   DRIVER( inquiztr )   /* 1989 BFM */
7358   DRIVER( escounts )   /* 1990 BFM */
7359   DRIVER( trebltop )   /* 1991 BFM */
7360   DRIVER( quizvadr )   /* 1991 BFM */
73547361   DRIVER( qos )      /* 1992 BFM */
73557362   DRIVER( qosa )      /* 1992 BFM */
73567363
src/mame/includes/taito_f2.h
r1238r1239
4949
5050/*----------- defined in machine/cchip.c -----------*/
5151
52extern UINT16 *cchip_ram;
52extern UINT16 *cchip2_ram;
5353READ16_HANDLER ( cchip2_word_r );
5454WRITE16_HANDLER( cchip2_word_w );
5555
src/mame/includes/kaneko16.h
r1238r1239
66
77/*----------- defined in machine/kaneko16.c -----------*/
88
9extern UINT16 *mcu_ram; /* for calc3 and toybox */
9extern UINT16 *kaneko16_mcu_ram; /* for calc3 and toybox */
1010
1111READ16_HANDLER( galpanib_calc_r );
1212WRITE16_HANDLER( galpanib_calc_w );
src/mame/video/stvvdp1.c
r1238r1239
1818
1919#include "driver.h"
2020
21int vdp1_sprite_log = 0;
21static int vdp1_sprite_log = 0;
2222
2323UINT32 *stv_vdp1_vram;
2424UINT32 *stv_vdp1_regs;
src/mame/video/midzeus.c
r1238r1239
603603*/
604604
605605
606static void render_poly_4bit(void *dest, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid)
606static void render_poly_4bit(void *dest, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid)
607607{
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;
612609   float doozdx = poly->param[0].dpdx;
613610   float duozdx = poly->param[1].dpdx;
614611   float dvozdx = poly->param[2].dpdx;
r1238r1239
616613   const UINT32 *palbase = extra->palbase;
617614   UINT16 transcolor = extra->transcolor;
618615   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);
619619   int x;
620620
621   for (x = startx; x < stopx; x++)
621   for (x = extent->startx; x < extent->stopx; x++)
622622   {
623623      float z = recip_approx(ooz);
624624      int u = (int)(uoz * z) & ((texwidth * 2) - 1);
r1238r1239
640640}
641641
642642
643static void render_poly_8bit(void *dest, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid)
643static void render_poly_8bit(void *dest, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid)
644644{
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;
649646   float doozdx = poly->param[0].dpdx;
650647   float duozdx = poly->param[1].dpdx;
651648   float dvozdx = poly->param[2].dpdx;
r1238r1239
653650   const UINT32 *palbase = extra->palbase;
654651   UINT16 transcolor = extra->transcolor;
655652   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);
656656   int x;
657657
658   for (x = startx; x < stopx; x++)
658   for (x = extent->startx; x < extent->stopx; x++)
659659   {
660660      float z = recip_approx(ooz);
661661      int u = (int)(uoz * z) & (texwidth - 1);
r1238r1239
757757
758758         if ((data[datanum] >> 24) == 0x25 || (data[datanum] >> 24) == 0x30 /* invasn */)
759759         {
760            poly_draw_scanline callback;
760            poly_draw_tri_scanline callback;
761761            poly_extra_data *extra;
762762            poly_vertex vert[4];
763763            int i;
src/mame/video/psx.c
r1238r1239
161161   } Dot;
162162} m_packet;
163163
164struct PSXGPU
164static struct PSXGPU
165165{
166166   INT32 n_tx;
167167   INT32 n_ty;
src/mame/video/cps1.c
r1238r1239
656656
657657*/
658658/* first 0x4000 of gfx ROM are used, but 0x0000-0x1fff is == 0x2000-0x3fff */
659const int stars_rom_size = 0x2000;
659static const int stars_rom_size = 0x2000;
660660
661661/* PSL: CPS2 support */
662662const int cps2_obj_size    =0x2000;
src/mame/video/gaelco3d.c
r1238r1239
2020
2121#define MAX_POLYGONS      4096
2222#define MAX_POLYDATA      (MAX_POLYGONS * 21)
23#define MAX_VERTICES      32
2324
2425#define DISPLAY_TEXTURE      0
2526#define LOG_POLYGONS      0
r1238r1239
5253};
5354
5455
55static void render_noz_noperspective(void *destbase, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid);
56static void render_normal(void *destbase, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid);
57static void render_alphablend(void *destbase, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid);
56static void render_noz_noperspective(void *destbase, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid);
57static void render_normal(void *destbase, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid);
58static void render_alphablend(void *destbase, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid);
5859
5960
6061
r1238r1239
166167   float midx = Machine->screen[0].width / 2;
167168   float midy = Machine->screen[0].height / 2;
168169   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;
171172   float ooz_dy = dsp_to_float(polydata[3]);
172173   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;
176177   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);
178180   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;
181184
182185   if (LOG_POLYGONS)
183186   {
r1238r1239
203206      logerror("\n");
204207   }
205208
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;
211222
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++)
214226   {
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   }
216232
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   {
235236      /* special case: no Z buffering and no perspective correction */
236237      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, &vert[0], &vert[1], &vert[2]);
238         poly_render_triangle_fan(poly, screenbits, &Machine->screen[0].visarea, render_noz_noperspective, 0, vertnum, &vert[0]);
238239
239240      /* general case: non-alpha blended */
240241      else if (color != 0x7f00)
241         poly_render_triangle(poly, screenbits, &Machine->screen[0].visarea, render_normal, 0, &vert[0], &vert[1], &vert[2]);
242         poly_render_triangle_fan(poly, screenbits, &Machine->screen[0].visarea, render_normal, 0, vertnum, &vert[0]);
242243
243244      /* color 0x7f seems to be hard-coded as a 50% alpha blend */
244245      else
245         poly_render_triangle(poly, screenbits, &Machine->screen[0].visarea, render_alphablend, 0, &vert[0], &vert[1], &vert[2]);
246         poly_render_triangle_fan(poly, screenbits, &Machine->screen[0].visarea, render_alphablend, 0, vertnum, &vert[0]);
246247
247      /* copy vertex 2 to vertex 1 -- this hardware draws in fans */
248      vert[1] = vert[2];
249      polygons++;
248      polygons += vertnum - 2;
250249   }
251250}
252251
253252
254253
255static void render_noz_noperspective(void *destbase, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid)
254static void render_noz_noperspective(void *destbase, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid)
256255{
257   poly_extra_data *extra = poly->extra;
256   const poly_extra_data *extra = extradata;
258257   mame_bitmap *bitmap = destbase;
259   UINT16 *dest = BITMAP_ADDR16(bitmap, scanline, 0);
260   UINT16 *zbuf = BITMAP_ADDR16(zbuffer, scanline, 0);
261258   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;
267261   int zbufval = (int)(-extra->z0 * zbase);
268262   offs_t endmask = gaelco3d_texture_size - 1;
269263   const rgb_t *palsource = palette + extra->color;
270264   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;
271270   int x;
272271
273   for (x = startx; x < stopx; x++)
272   for (x = startx; x < extent->stopx; x++)
274273   {
275274      int u = (int)uoz;
276275      int v = (int)voz;
r1238r1239
293292}
294293
295294
296static void render_normal(void *destbase, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid)
295static void render_normal(void *destbase, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid)
297296{
298   poly_extra_data *extra = poly->extra;
297   const poly_extra_data *extra = extradata;
299298   mame_bitmap *bitmap = destbase;
300   UINT16 *dest = BITMAP_ADDR16(bitmap, scanline, 0);
301   UINT16 *zbuf = BITMAP_ADDR16(zbuffer, scanline, 0);
302299   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;
308302   offs_t endmask = gaelco3d_texture_size - 1;
309303   const rgb_t *palsource = palette + extra->color;
310304   UINT32 tex = extra->tex;
311305   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;
312312   int x;
313313
314   for (x = startx; x < stopx; x++)
314   for (x = startx; x < extent->stopx; x++)
315315   {
316316      if (ooz > 0)
317317      {
r1238r1239
344344}
345345
346346
347static void render_alphablend(void *destbase, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid)
347static void render_alphablend(void *destbase, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid)
348348{
349   poly_extra_data *extra = poly->extra;
349   const poly_extra_data *extra = extradata;
350350   mame_bitmap *bitmap = destbase;
351   UINT16 *dest = BITMAP_ADDR16(bitmap, scanline, 0);
352   UINT16 *zbuf = BITMAP_ADDR16(zbuffer, scanline, 0);
353351   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;
359354   offs_t endmask = gaelco3d_texture_size - 1;
360355   const rgb_t *palsource = palette + extra->color;
361356   UINT32 tex = extra->tex;
362357   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;
363364   int x;
364365
365   for (x = startx; x < stopx; x++)
366   for (x = startx; x < extent->stopx; x++)
366367   {
367368      if (ooz > 0)
368369      {
src/mame/video/tia.c
r1238r1239
2323   int skipclip[PLAYER_GFX_SLOTS];
2424};
2525
26struct player_gfx p0gfx;
27struct player_gfx p1gfx;
26static struct player_gfx p0gfx;
27static struct player_gfx p1gfx;
2828
2929static UINT32 frame_cycles;
3030static UINT32 paddle_cycles;
src/mame/video/model3.c
r1238r1239
11#include "driver.h"
2#include "video/poly.h"
2#include "video/polynew.h"
3#include "video/rgbutil.h"
4#include "eminline.h"
35#include <math.h>
46
57
6#define BILINEAR   1
8#define pz  p[0]
9#define pu    p[1]
10#define pv   p[2]
711
812
913
r1238r1239
1216typedef float VECTOR3[3];
1317
1418typedef struct {
15   float x,y,z;
16   UINT32 u,v;
17} VERTEX;
18
19typedef struct {
2019   float x,y,z,d;
2120} PLANE;
2221
2322typedef struct
2423{
25   VERTEX v[3];
24   poly_vertex v[3];
2625   UINT8 texture_x, texture_y;
2726   UINT8 texture_width, texture_height;
28   UINT8 transparency, texture_coord_shift;
27   UINT8 transparency;
2928   UINT8 texture_format, param;
3029   int intensity;
3130   UINT32 color;
32   int viewport_priority;
3331} TRIANGLE;
3432
33typedef struct _cached_texture cached_texture;
34struct _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
44typedef struct _poly_extra_data poly_extra_data;
45struct _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
3554#define TRI_PARAM_TEXTURE_PAGE         0x1
3655#define TRI_PARAM_TEXTURE_MIRROR_U      0x2
3756#define TRI_PARAM_TEXTURE_MIRROR_V      0x4
3857#define TRI_PARAM_TEXTURE_ENABLE      0x8
58#define TRI_PARAM_ALPHA_TEST         0x10
3959
4060#define MAX_TRIANGLES      131072
4161
4262
4363/* forward declarations */
4464static void real3d_traverse_display_list(void);
45static void draw_model(UINT32*);
65static void draw_model(UINT32 addr);
4666static void init_matrix_stack(void);
4767static void get_top_matrix(MATRIX *out);
4868static void push_matrix_stack(void);
r1238r1239
5070static void multiply_matrix_stack(MATRIX matrix);
5171static void translate_matrix_stack(float x, float y, float z);
5272static void traverse_list(UINT32 address);
53static void traverse_node(UINT32 address);
54static void traverse_root_node(UINT32 address);
73static void draw_block(UINT32 address);
74static void draw_viewport(int pri, UINT32 address);
5575
5676/*****************************************************************************/
5777
r1238r1239
92112static rectangle *screen_clip;
93113
94114
95static TRIANGLE* triangle_buffer;
96static TRIANGLE* alpha_triangle_buffer;
97static int triangle_buffer_ptr;
98static int alpha_triangle_buffer_ptr;
99
100
101static int* texture_wrap_table[5];
102static int* texture_mirror_table[5];
103
104
105115static VECTOR3 parallel_light;
106116static float parallel_light_intensity;
107117static float ambient_light_intensity;
108118
119static poly_manager *poly;
120static cached_texture *texcache[2][1024/32][2048/32];
121
122
109123static int list_depth = 0;
110124
111125
r1238r1239
116130
117131#define BYTE_REVERSE16(x)      (((x >> 8) & 0xff) | ((x << 8) & 0xff00))
118132
133static void invalidate_texture(int page, int texx, int texy, int texwidth, int texheight);
119134
120135
136static 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
121143VIDEO_START( model3 )
122144{
123   int j,t;
145   poly = poly_alloc(4000, sizeof(poly_extra_data), 0);
146   add_exit_callback(machine, model3_exit);
124147
125148   bitmap3d = auto_bitmap_alloc(machine->screen[0].width, machine->screen[0].height, machine->screen[0].format);
126149   zbuffer = auto_bitmap_alloc(machine->screen[0].width, machine->screen[0].height, BITMAP_FORMAT_INDEXED32);
r1238r1239
153176   memset(texture_fifo, 0, 0x100000);
154177
155178   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   }
178179}
179180
180181static void draw_tile_4bit(mame_bitmap *bitmap, int tx, int ty, int tilenum)
r1238r1239
373374   layer_scroll_x[3] = (layer_data[3] & 0x8000) ? (layer_data[3] & 0x1ff) : -(layer_data[3] & 0x1ff);
374375   layer_scroll_y[3] = (layer_data[3] & 0x8000) ? (layer_data[3] & 0x1ff) : -(layer_data[3] & 0x1ff);
375376
376   bitmap3d = bitmap;
377377   screen_clip = (rectangle*)cliprect;
378378
379379   clip3d.min_x = cliprect->min_x;
r1238r1239
398398         debug_layer_disable ^= 0x10;
399399   }
400400
401   fillbitmap(bitmap3d, 0, cliprect);
401   fillbitmap(bitmap, 0, cliprect);
402402
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);
409405
406   if (!(debug_layer_disable & 0x4))
407      draw_layer(bitmap, cliprect, 2, (model3_layer_enable >> 2) & 0x1);
408
410409   if( !(debug_layer_disable & 0x10) )
411410   {
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);
416417   }
417418
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
424425   //copy_screen(bitmap, cliprect);
425426
426427   //draw_texture_sheet(bitmap, cliprect);
r1238r1239
511512
512513
513514/*****************************************************************************/
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*/
524static 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
540static 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/*****************************************************************************/
514654/* Real3D Graphics stuff */
515655
516656WRITE64_HANDLER( real3d_display_list_w )
r1238r1239
597737   int xpos   = (header & 0x3f) * 32;
598738   int ypos   = ((header >> 7) & 0x1f) * 32;
599739   int page   = (header >> 20) & 0x1;
600   int bitdepth = (header >> 23) & 0x1;
740//  int bitdepth = (header >> 23) & 0x1;
601741
602742   switch(header >> 24)
603743   {
604744      case 0x00:      /* Texture with mipmaps */
605         if(bitdepth) {
745//          if(bitdepth) {
606746            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 {
608749            /* TODO: 8-bit textures are weird. need to figure out some additional bits */
609750            //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);
610751            //write_texture8(xpos, ypos, width, height, page, (UINT16*)data);
611         }
752//          }
612753         break;
613754      case 0x01:      /* Texture without mipmaps */
614         if(bitdepth) {
755//          if(bitdepth) {
615756            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 {
617759            /* TODO: 8-bit textures are weird. need to figure out some additional bits */
618760            //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);
619761            //write_texture8(xpos, ypos, width, height, page, (UINT16*)data);
620         }
762//          }
621763         break;
622764      case 0x02:      /* Only mipmaps */
623765         break;
r1238r1239
644786      };
645787   }
646788   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;
648793}
649794
650795void real3d_display_list1_dma(UINT32 src, UINT32 dst, int length, int byteswap)
r1238r1239
733878   real3d_display_list_end();
734879}
735880
881
736882/*****************************************************************************/
737883/* matrix and vector operations */
738884
r1238r1239
747893}
748894
749895/* multiplies a 4-element vector by a 4x4 matrix */
750static void matrix_multiply_vector(MATRIX matrix, VECTOR v, VECTOR *p)
896static void matrix_multiply_vector(MATRIX matrix, const VECTOR v, VECTOR *p)
751897{
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]);
758902}
759903
760904/* multiplies a 4x4 matrix with another 4x4 matrix */
r1238r1239
809953{
810954   matrix_stack_ptr++;
811955   if (matrix_stack_ptr >= MATRIX_STACK_SIZE)
812   {
813956      fatalerror("push_matrix_stack: matrix stack overflow");
814   }
815957
816958   memcpy( &matrix_stack[matrix_stack_ptr], &matrix_stack[matrix_stack_ptr-1], sizeof(MATRIX));
817959}
r1238r1239
820962{
821963   matrix_stack_ptr--;
822964   if (matrix_stack_ptr < 0)
823   {
824965      fatalerror("pop_matrix_stack: matrix stack underflow");
825   }
826966}
827967
828968void multiply_matrix_stack(MATRIX matrix)
r1238r1239
845985/*****************************************************************************/
846986/* transformation and rasterizing */
847987
848INLINE 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
872static int texture_x;
873static int texture_y;
874static int texture_width;
875static int texture_height;
876static UINT32 texture_width_mask;
877static UINT32 texture_height_mask;
878static int texture_page;
879static int texture_coord_shift = 16;
880static int polygon_transparency = 0;
881static int polygon_intensity = 0;
882
883static int* texture_u_table;
884static int* texture_v_table;
885
886static UINT32 viewport_priority;
887
888#define ZBUFFER_SCALE      16777216.0
889#define ZDIVIDE_SHIFT      16
890
891988#include "m3raster.c"
892989
893990INLINE int is_point_inside(float x, float y, float z, PLANE cp)
r1238r1239
899996      return 0;
900997}
901998
902INLINE float line_plane_intersection(VERTEX *v1, VERTEX *v2, PLANE cp)
999INLINE float line_plane_intersection(const poly_vertex *v1, const poly_vertex *v2, PLANE cp)
9031000{
9041001   float x = v1->x - v2->x;
9051002   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));
9081005   return t;
9091006}
9101007
911static int clip_polygon(VERTEX *v, int num_vertices, PLANE cp, VERTEX *vout)
1008static int clip_polygon(const poly_vertex *v, int num_vertices, PLANE cp, poly_vertex *vout)
9121009{
913   VERTEX clipv[10];
1010   poly_vertex clipv[10];
9141011   int clip_verts = 0;
9151012   float t;
9161013   int i;
9171014
918   int pv = num_vertices - 1;
1015   int previ = num_vertices - 1;
9191016
9201017   for (i=0; i < num_vertices; i++)
9211018   {
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);
9241021
9251022      if (v1_in && v2_in)         /* edge is completely inside the volume */
9261023      {
927         memcpy(&clipv[clip_verts], &v[i], sizeof(VERTEX));
1024         clipv[clip_verts] = v[i];
9281025         ++clip_verts;
9291026      }
9301027      else if (!v1_in && v2_in)   /* edge is entering the volume */
9311028      {
9321029         /* 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);
9391036         ++clip_verts;
9401037      }
9411038      else if (v1_in && !v2_in)   /* edge is leaving the volume */
9421039      {
9431040         /* 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);
9501047         ++clip_verts;
9511048
9521049         /* insert the existing vertex */
953         memcpy(&clipv[clip_verts], &v[i], sizeof(VERTEX));
1050         clipv[clip_verts] = v[i];
9541051         ++clip_verts;
9551052      }
9561053
957      pv = i;
1054      previ = i;
9581055   }
959   memcpy(&vout[0], &clipv[0], sizeof(VERTEX) * clip_verts);
1056   memcpy(&vout[0], &clipv[0], sizeof(vout[0]) * clip_verts);
9601057   return clip_verts;
9611058}
9621059
r1238r1239
9711068
9721069static PLANE clip_plane[5];
9731070
974static void draw_model(UINT32 *model)
1071static void render_one(TRIANGLE *tri)
9751072{
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
1112static void draw_model(UINT32 addr)
1113{
1114   UINT32 *model = (addr >= 0x100000) ? &model3_vrom[addr] :  &polygon_ram[addr];
9761115   UINT32 header[7];
9771116   int index = 0;
978   int last_polygon = 0;
979   int num_vertices, num_reused_vertices;
1117   int last_polygon = FALSE;
1118   int num_vertices;
9801119   int i, v, vi;
9811120   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];
9851124
9861125   int polynum = 0;
9871126   MATRIX transform_matrix;
9881127   float center_x, center_y;
9891128
9901129   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;
9921131   } else {               /* 13.19 fixed-point in other Steps */
993      fixed_point_fraction = 524288.0f;
1132      fixed_point_fraction = 1.0f / 524288.0f;
9941133   }
9951134
9961135   get_top_matrix(&transform_matrix);
r1238r1239
9991138   center_x = (float)(viewport_region_x + (viewport_region_width / 2));
10001139   center_y = (float)(viewport_region_y + (viewport_region_height / 2));
10011140
1002   while(!last_polygon)
1141   while (!last_polygon)
10031142   {
1143      float texture_coord_scale;
10041144      UINT16 color;
10051145      VECTOR3 normal;
10061146      VECTOR3 sn;
r1238r1239
10081148      TRIANGLE tri;
10091149      float dot;
10101150      int intensity;
1151      int polygon_transparency;
10111152
1012      for(i=0; i < 7; i++) {
1153      for (i = 0; i < 7; i++)
10131154         header[i] = model[index++];
1014      }
10151155
1016      if(header[6] == 0) {
1017         //logerror("draw_model: header word 6 == 0\n");
1156      if (header[6] == 0)
10181157         return;
1019      }
10201158
1021      if(header[1] & 0x4)
1022         last_polygon = 1;
1159      if (header[1] & 0x4)
1160         last_polygon = TRUE;
10231161
1024      if(header[0] & 0x40)
1025         num_vertices = 4;
1026      else
1027         num_vertices = 3;
1162      num_vertices = (header[0] & 0x40) ? 4 : 3;
10281163
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);
10301166
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
10371167      /* 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);
10411171
1172      /* load reused vertices */
10421173      vi = 0;
1174      for (v = 0; v < 4; v++)
1175         if (header[0] & (1 << v))
1176            vertex[vi++] = prev_vertex[v];
10431177
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
10531178      /* load new vertices */
1054      for(v=0; v < (num_vertices - num_reused_vertices); v++)
1179      for ( ; vi < num_vertices; vi++)
10551180      {
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++]);
10641186      }
10651187
10661188      /* Copy current vertices as previous vertices */
1067      memcpy(prev_vertex, vertex, sizeof(VERTEX) * 4);
1189      memcpy(prev_vertex, vertex, sizeof(poly_vertex) * 4);
10681190
10691191      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);
10751193
10761194      /* transform polygon normal to view-space */
10771195      sn[0] = (normal[0] * transform_matrix[0][0]) +
r1238r1239
10901208
10911209      /* TODO: backface culling */
10921210      /* transform vertices */
1093      for(i=0; i < num_vertices; i++) {
1211      for (i = 0; i < num_vertices; i++)
1212      {
10941213         VECTOR vect;
10951214
10961215         vect[0] = vertex[i].x;
10971216         vect[1] = vertex[i].y;
1098         vect[2] = vertex[i].z;
1217         vect[2] = vertex[i].pz;
10991218         vect[3] = 1.0f;
11001219
11011220         /* transform to world-space */
r1238r1239
11041223         /* apply coordinate system */
11051224         clip_vert[i].x = p[i][0] * coordinate_system[0][1];
11061225         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;
11101229      }
11111230
11121231      /* clip against view frustum */
r1238r1239
11181237
11191238      /* homogeneous Z-divide, screen-space transformation */
11201239      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;
11221241         clip_vert[i].x = ((clip_vert[i].x * ooz) * viewport_focal_length) + center_x;
11231242         clip_vert[i].y = ((clip_vert[i].y * ooz) * viewport_focal_length) + center_y;
11241243      }
r1238r1239
11451264
11461265      for (i=2; i < num_vertices; i++)
11471266      {
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));
11511270         tri.texture_x             = ((header[4] & 0x1f) << 1) | ((header[5] >> 7) & 0x1);
11521271         tri.texture_y             = (header[5] & 0x1f);
11531272         tri.texture_width         = ((header[3] >> 3) & 0x7);
r1238r1239
11551274         tri.texture_format         = (header[6] >> 7) & 0x7;
11561275         tri.transparency         = polygon_transparency;
11571276         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;
11611278
11621279         tri.param   = 0;
11631280         tri.param    |= (header[4] & 0x40) ? TRI_PARAM_TEXTURE_PAGE : 0;
11641281         tri.param   |= (header[6] & 0x4000000) ? TRI_PARAM_TEXTURE_ENABLE : 0;
11651282         tri.param   |= (header[2] & 0x2) ? TRI_PARAM_TEXTURE_MIRROR_U : 0;
11661283         tri.param   |= (header[2] & 0x1) ? TRI_PARAM_TEXTURE_MIRROR_V : 0;
1284         tri.param   |= (header[6] & 0x80000000) ? TRI_PARAM_ALPHA_TEST : 0;
11671285
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);
11771287      }
11781288
11791289      ++polynum;
11801290   };
11811291}
11821292
1183static void render_triangles(void)
1184{
1185   int i;
11861293
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
13091294/*****************************************************************************/
13101295/* display list parser */
13111296
r1238r1239
13271312      }
13281313      return &culling_ram[address];
13291314   }
1330   return 0;
1315   return NULL;
13311316}
13321317
13331318static void load_matrix(int matrix_num, MATRIX *out)
13341319{
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);
13371321
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;
13441326}
13451327
1346static void traverse_list4(UINT32 address)
1328static void traverse_list4(int lod_num, UINT32 address)
13471329{
1330   /* does something with the LOD selection */
13481331   UINT32 *list = get_memory_pointer(address);
13491332   UINT32 link = list[0];
13501333
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);
13601335}
13611336
13621337static void traverse_list(UINT32 address)
13631338{
13641339   UINT32 *list = get_memory_pointer(address);
1365   int end = 0;
13661340   int list_ptr = 0;
13671341
13681342   if (list_depth > 2)
r1238r1239
13701344
13711345   list_depth++;
13721346
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)
13761349   {
13771350      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;
13821357      }
1358   }
13831359
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   }
13851368
1386      if (address != 0 && address != 0x800800) {
1387         traverse_node(address);
1388      }
1389   };
1390
13911369   list_depth--;
13921370}
13931371
1394static void traverse_node(UINT32 address)
1372INLINE void process_link(UINT32 address, UINT32 link)
13951373{
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
1398static void draw_block(UINT32 address)
1399{
1400   const UINT32 *node = get_memory_pointer(address);
13971401   UINT32 link;
13981402   int node_matrix;
13991403   float x, y, z;
14001404   MATRIX matrix;
14011405   int offset;
14021406
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];
14081409
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;
14131412   load_matrix(node_matrix, &matrix);
14141413
14151414   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];
14231421      translate_matrix_stack(x, y, z);
14241422   }
1423   else if (node_matrix != 0)
1424      multiply_matrix_stack(matrix);
14251425
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);
14291431
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
14711432   pop_matrix_stack();
14721433
14731434   /* 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);
14841437}
14851438
1486static void traverse_root_node(UINT32 address)
1439static void draw_viewport(int pri, UINT32 address)
14871440{
1488   UINT32 *node;
1489   UINT32 link_address, link_node;
1441   const UINT32 *node = get_memory_pointer(address);
1442   UINT32 link_address;
14901443   float viewport_left, viewport_right, viewport_top, viewport_bottom;
14911444   float fov_x, fov_y;
14921445
1493   node = get_memory_pointer(address);
1494
14951446   link_address = node[1];
1496   if (link_address == 0) {
1447   if (link_address == 0)
14971448      return;
1498   }
14991449
15001450   /* traverse to the link node before drawing this viewport */
15011451   /* 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);
15101454
1511   /* draw this viewport */
1455   /* skip if this isn't the right priority */
1456   if (pri != ((node[0] >> 3) & 3))
1457      return;
15121458
15131459   /* 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;
15181464
1519   viewport_priority = (((node[0] >> 3) & 0x3)) << 29;         /* we use priority as 2 top bits of depth buffer value */
1520
15211465   /* 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]));
15261470
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;
15321477
1478   /* compute field of view */
15331479   fov_x = viewport_left + viewport_right;
15341480   fov_y = viewport_top + viewport_bottom;
15351481   viewport_focal_length = (viewport_region_height / 2) / tan( (fov_y * M_PI / 180.0f) / 2.0f );
r1238r1239
15381484   /* TODO: where does node[23] point to ? LOD table ? */
15391485
15401486   /* 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;
15451492
1546   ambient_light_intensity = (UINT8)((node[0x24] >> 8) & 0xff) / 256.0f;
1547
15481493   /* set coordinate system matrix */
15491494   load_matrix(0, &coordinate_system);
15501495
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]);
15621498}
15631499
1500
15641501static void real3d_traverse_display_list(void)
15651502{
1503   int pri;
1504
15661505   init_matrix_stack();
15671506
1568   triangle_buffer_ptr = 0;
1569   alpha_triangle_buffer_ptr = 0;
1507   for (pri = 0; pri < 4; pri++)
1508      draw_viewport(pri, 0x800000);
15701509
1571   traverse_root_node(0x800000);
1572
1573   render_triangles();
1510   poly_wait(poly, "real3d_traverse_display_list");
15741511}
15751512
src/mame/video/tankbust.c
r1238r1239
1010
1111static tilemap *bg_tilemap;
1212static tilemap *txt_tilemap;
13UINT8 * txt_ram;
13UINT8 * tankbust_txtram;
1414
1515/***************************************************************************
1616
r1238r1239
6464
6565static TILE_GET_INFO( get_txt_tile_info )
6666{
67   int code = txt_ram[tile_index];
67   int code = tankbust_txtram[tile_index];
6868   int color = ((code>>6) & 0x03);
6969
7070   SET_TILE_INFO(   2,
r1238r1239
121121
122122WRITE8_HANDLER( tankbust_txtram_w )
123123{
124   txt_ram[offset] = data;
124   tankbust_txtram[offset] = data;
125125   tilemap_mark_tile_dirty(txt_tilemap, offset);
126126}
127127READ8_HANDLER( tankbust_txtram_r )
128128{
129   return txt_ram[offset];
129   return tankbust_txtram[offset];
130130}
131131
132132
src/mame/video/namcos22.c
r1238r1239
4040#include "video/polynew.h"
4141#include <math.h>
4242
43// uncomment this line to render everything as quads
44//#define RENDER_AS_QUADS
45
4346static int mbSuperSystem22; /* used to conditionally support Super System22-specific features */
4447static int mbSpotlightEnable;
4548static UINT16 *namcos22_czram[4];
r1238r1239
264267};
265268
266269
267static void renderscanline_uvi_full(void *dest, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid)
270#ifdef RENDER_AS_QUADS
271static void renderscanline_uvi_full(void *dest, INT32 scanline, const quad_extent *extent, const void *extradata, int threadid)
272#else
273static void renderscanline_uvi_full(void *dest, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid)
274#endif
268275{
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
269295   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;
272298   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;
287302   rgbint fogColor = extra->fogColor;
288303   rgbint fadeColor = extra->fadeColor;
289304   int penmask, penshift;
305   int prioverchar;
306   const UINT8 *pCharPri = BITMAP_ADDR8(priority_bitmap, scanline, 0);
307   UINT32 *pDest = BITMAP_ADDR32(bitmap, scanline, 0);
290308   int x;
291   bn *= 0x1000;
292309
293310   if (extra->cmode & 4)
294311   {
r1238r1239
306323   }
307324   else if (extra->cmode & 1)
308325   {
326      transFactor = 0xff - mixer.poly_translucency;
309327      prioverchar = 1;
310328      penmask = 0xff;
311329      penshift = 0;
r1238r1239
317335      penshift = 0;
318336   }
319337
320   for( x=startx; x<stopx; x++ )
338   if (prioverchar)
321339   {
322      if( pCharPri[x]==0 || prioverchar )
340      for( x=extent->startx; x<extent->stopx; x++ )
323341      {
324         float ooz = recip_approx(z);
342         float ooz = 1.0f / z;
325343         int pen = texel((int)(u * ooz),bn+(int)(v*ooz));
326344         int shade = i*ooz;
327345         rgbint rgb;
r1238r1239
329347         rgb_to_rgbint(&rgb, pens[(pen >> penshift) & penmask]);
330348         rgbint_scale_and_clamp(&rgb, shade << 2);
331349
332         if( fogFactor != 0 )
333            rgbint_blend(&rgb, &fogColor, 0xff - fogFactor);
350         if( fogFactor != 0xff )
351            rgbint_blend(&rgb, &fogColor, fogFactor);
334352
335         if( fadeFactor != 0 )
336            rgbint_blend(&rgb, &fadeColor, 0xff - fadeFactor);
353         if( fadeFactor != 0xff )
354            rgbint_blend(&rgb, &fadeColor, fadeFactor);
337355
338         if( prioverchar )
356         if( transFactor != 0xff )
339357         {
340358            rgbint dest;
341359            rgb_to_rgbint(&dest, pDest[x]);
342            rgbint_blend(&rgb, &dest, 0xff - mixer.poly_translucency);
360            rgbint_blend(&rgb, &dest, transFactor);
343361         }
344362
345363         pDest[x] = rgbint_to_rgb(&rgb);
364
365         u += du;
366         v += dv;
367         i += di;
368         z += dz;
346369      }
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;
347381
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      }
352399   }
353400} /* renderscanline_uvi_full */
354401
355static 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 )
402static void poly3d_DrawQuad(running_machine *machine, mame_bitmap *bitmap, int textureBank, int color, Poly3dVertex pv[4], UINT16 flags, int direct, int cmode )
365403{
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;
368408
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   }
387435
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
388454   extra->color = color;
389   extra->bn = bn;
455   extra->bn = textureBank;
390456   extra->flags = flags;
391457   extra->cmode = cmode;
392458   extra->fogFactor = 0;
r1238r1239
425491      }
426492   }
427493
428   poly_render_triangle(poly, bitmap, clip, renderscanline_uvi_full, 4, &vert[0], &vert[1], &vert[2]);
429} /* rendertri */
430
431static void
432ProjectPoint( 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
453static 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
471static float
472interp( 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
477499}
478500
479static int
480VertexEqual( const Poly3dVertex *a, const Poly3dVertex *b )
501#ifdef RENDER_AS_QUADS
502static void renderscanline_sprite(void *destbase, INT32 scanline, const quad_extent *extent, const void *extradata, int threadid)
503#else
504static void renderscanline_sprite(void *destbase, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid)
505#endif
481506{
482   return
483      a->x == b->x &&
484      a->y == b->y &&
485      a->z == b->z;
486}
487
488static 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
586static 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
601static 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;
606514   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;
611518   const pen_t *pal = &Machine->remapped_colortable[extra->color];
612519   int prioverchar = extra->prioverchar;
613520   int z = extra->z;
614521   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);
615525   int x;
616526
617527   int bFogEnable = 0;
r1238r1239
628538      bFogEnable = 0;
629539   }
630540
631   for( x=startx; x<stopx; x++ )
541   for( x=extent->startx; x<extent->stopx; x++ )
632542   {
633543      int pen = source[x_index>>16];
634544      if( pen != 0xff )
r1238r1239
713623      extra->line_modulo = gfx->line_modulo;
714624      extra->color = gfx->color_base + gfx->color_granularity * (color % gfx->total_colors);
715625      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
726631   }
727632} /* mydrawgfxzoom */
728633
r1238r1239
12301135   int i;
12311136   switch( namcos22_gametype )
12321137   {
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;
12481153
1249   default:
1250      break;
1154      default:
1155         break;
12511156   }
12521157} /* PatchTexture */
12531158
r1238r1239
12791184    *    xx-- ---- // BRI
12801185     *    --xx xxxx // zpos
12811186     */
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);
12861191   node->data.quad3d.cmode = (pSource[2]&0x00f0)>>4;
12871192   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];
12931198
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;
13031208
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      }
13361237
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;
13471248} /* namcos22_draw_direct_poly */
13481249
13491250static void
r1238r1239
13801281   int deltax,
13811282   int deltay )
13821283{
1383   int i;
1284   int i;
13841285   for( i=0; i<num_sprites; i++ )
13851286   {
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        */
13971298      UINT32 attrs = pSource[2];
1398      if( (attrs&0x04000000)==0 )
1299      if( (attrs&0x04000000)==0 )
13991300      { /* sprite is not hidden */
14001301         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];
14041305         UINT32 size = pSource[1];
14051306         UINT32 code = pSource[3];
14061307         int xpos = (xypos>>16)-deltax;
r1238r1239
14151316         int flipx = (attrs>>4)&0x8;
14161317         int numcols = (attrs>>4)&0x7;
14171318         int tile = code>>16;
1418         int translucency = (code&0xff00)>>8;
1319         int translucency = (code&0xff00)>>8;
14191320
1420         if( numrows==0 )
1421         {
1422            numrows = 8;
1423         }
1321         if( numrows==0 )
1322            numrows = 8;
14241323         if( flipy )
14251324         {
14261325            ypos += sizey*(numrows-1);
r1238r1239
14281327         }
14291328
14301329         if( numcols==0 )
1431         {
1432            numcols = 8;
1433         }
1330            numcols = 8;
14341331         if( flipx )
14351332         {
14361333            xpos += sizex*(numcols-1);
r1238r1239
14401337         if( attrs & 0x0200 )
14411338         { /* right justify */
14421339            xpos -= ((zoomx*numcols*0x20)>>16)-1;
1443         }
1340         }
14441341         if( attrs & 0x0100 )
14451342         { /* bottom justify */
1446            ypos -= ((zoomy*numrows*0x20)>>16)-1;
1447         }
1343            ypos -= ((zoomy*numrows*0x20)>>16)-1;
1344         }
14481345
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 */
14681365      pSource += 4;
14691366      pPal += 2;
1470   }
1367   }
14711368} /* DrawSpritesHelper */
14721369
14731370static void
r1238r1239
15441441   int num_sprites = ((spriteram32[0x04/4]>>16)&0x3ff)+1;
15451442   const UINT32 *pSource = &spriteram32[0x4000/4];
15461443   const UINT32 *pPal = &spriteram32[0x20000/4];
1547   int deltax = spriteram32[0x14/4]>>16;
1444   int deltax = spriteram32[0x14/4]>>16;
15481445   int deltay = spriteram32[0x18/4]>>16;
1549   int enable = spriteram32[0]>>16;
1446   int enable = spriteram32[0]>>16;
15501447
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;
15551452      deltay = 43;
1556   }
1453   }
15571454
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   }
15621459
15631460   /* VICS RAM provides two additional banks */
15641461   /*
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
15671464
1568        0x940034 xxxxxxxx       0x3070b0f
1465    0x940034 xxxxxxxx       0x3070b0f
15691466
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
15741471
1575        0x940060..0x94007c      set#2
1576*/
1472    0x940060..0x94007c      set#2
1473    */
15771474
15781475   num_sprites = (namcos22_vics_control[0x40/4]&0xffff)/0x10;
15791476   if( num_sprites>=1 )
r1238r1239
15991496   {
16001497      if( dirtypal[i] )
16011498      {
1602         int j;
1499         int j;
16031500         for( j=0; j<4; j++ )
16041501         {
16051502            int which = i*4+j;
r1238r1239
16731570static void DrawCharacterLayer(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect )
16741571{
16751572   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
16801577    * namcos22_tilemapattr[0x8/4] == 0x01ff0000
1681    * namcos22_tilemapattr[0xe/4] == ?
1578    * namcos22_tilemapattr[0xe/4] == ?
16821579    */
1683   if( cgsomethingisdirty )
1580   if( cgsomethingisdirty )
16841581   {
16851582      for( i=0; i<64*64; i+=2 )
16861583      {
r1238r1239
17831680      int flags,
17841681      int packetFormat )
17851682{
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;
17901687   Poly3dVertex v[4];
17911688   int i;
1792   int bBackFace = 0;
1689   int bBackFace = 0;
17931690
17941691   for( i=0; i<4; i++ )
17951692   {
r1238r1239
18001697      TransformPoint( &pVerTex->x, &pVerTex->y, &pVerTex->z, m );
18011698   } /* for( i=0; i<4; i++ ) */
18021699
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 &&
18061703
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   }
18131710
1814   if( bBackFace && (flags&0x0020) )
1815   { /* backface cull one-sided polygons */
1711   /* backface cull one-sided polygons */
1712   if( bBackFace && (flags&0x0020) )
18161713      return;
1817   }
18181714
1819   for( i=0; i<4; i++ )
1715   for( i=0; i<4; i++ )
18201716   {
18211717      Poly3dVertex *pVerTex = &v[i];
1822      int bri;
1718      int bri;
18231719
18241720      pVerTex->u = GetPolyData(  0+i*2+addr );
18251721      pVerTex->v = GetPolyData(  1+i*2+addr );
r1238r1239
18271723      if( i==0 || pVerTex->z > zmax ) zmax = pVerTex->z;
18281724      if( i==0 || pVerTex->z < zmin ) zmin = pVerTex->z;
18291725
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 )
18541727      {
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
18551742         bri = 0x40;
1856      }
1857      pVerTex->bri = bri;
1743      pVerTex->bri = bri;
18581744   } /* for( i=0; i<4; i++ ) */
18591745
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;
18621748
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;
18681754
1869   case 1:
1870       zsortvalue24 = (INT32)zmax;
1871       break;
1755      case 1:
1756         zsortvalue24 = (INT32)zmax;
1757         break;
18721758
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   }
18781764
1879   /* relative: representative z + shift values
1765   /* relative: representative z + shift values
18801766    * 1x.xxxx.xxxxxxxx.xxxxxxxx fixed z value
18811767    * 0x.xx--.--------.-------- absolute priority shift
18821768    * 0-.--xx.xxxxxxxx.xxxxxxxx z-representative value shift
18831769    */
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   }
19051777
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);
19081792      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;
19111795
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      }
19171801
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   }
19341818} /* BlitQuadHelper */
19351819
19361820static void
19371821RegisterNormals( INT32 addr, float m[4][4] )
19381822{
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;
19461830
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   }
19561838} /* RegisterNormals */
19571839
19581840static void
19591841BlitQuads( mame_bitmap *bitmap, INT32 addr, float m[4][4], INT32 base )
19601842{
1961   int numAdditionalNormals = 0;
1843   int numAdditionalNormals = 0;
19621844   int chunkLength = GetPolyData(addr++);
19631845   int finish = addr + chunkLength;
1846
19641847   if( chunkLength>0x100 )
1965   {
19661848      fatalerror( "bad packet length" );
1967   }
19681849
19691850   while( addr<finish )
19701851   {
r1238r1239
19731854      int flags, color, bias;
19741855
19751856      /**
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        */
20031884      switch( packetLength )
20041885      {
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;
20161897
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;
20291910
2030      case 0x10: /* vertex lighting */
2031         /*
2032            333401 (opcode)
1911         case 0x10: /* vertex lighting */
1912            /*
1913                333401 (opcode)
20331914                000000  [count] [type]
20341915                000000  000000  007fff // normal vector
20351916                000000  000000  007fff // normal vector
20361917                000000  000000  007fff // normal vector
20371918                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;
20451926
2046      case 0x0d: /* additional normals */
2047         /*
2048            300401 (opcode)
1927         case 0x0d: /* additional normals */
1928            /*
1929                300401 (opcode)
20491930                007b09 ffdd04 0004c2
20501931                007a08 ffd968 0001c1
20511932                ff8354 ffe401 000790
20521933                ff84f7 ffdd04 0004c2
2053            */
2054         RegisterNormals( addr+1, m );
2055         break;
1934                */
1935            RegisterNormals( addr+1, m );
1936            break;
20561937
2057      default:
2058         break;
1938         default:
1939            break;
20591940      }
20601941      addr += packetLength;
20611942   }
r1238r1239
20651946BlitPolyObject( mame_bitmap *bitmap, int code, float M[4][4] )
20661947{
20671948   unsigned addr1 = GetPolyData(code);
2068   mLitSurfaceCount = 0;
2069   mLitSurfaceIndex = 0;
1949   mLitSurfaceCount = 0;
1950   mLitSurfaceIndex = 0;
20701951   for(;;)
20711952   {
20721953      INT32 addr2 = GetPolyData(addr1++);
20731954      if( addr2<0 )
2074      {
20751955         break;
2076      }
20771956      BlitQuads( bitmap, addr2, M, code );
20781957   }
20791958} /* BlitPolyObject */
r1238r1239
23842263   mpPolyM = mpPolyL + mPtRomSize;
23852264   mpPolyH = mpPolyM + mPtRomSize;
23862265
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
23882271   add_exit_callback(machine, namcos22_exit);
23892272}
23902273
src/mame/video/midvunit.c
r1238r1239
7171VIDEO_START( midvunit )
7272{
7373   scanline_timer = mame_timer_alloc(scanline_timer_cb);
74   poly = poly_alloc(4000, sizeof(poly_extra_data), 0);
74   poly = poly_alloc(4000, sizeof(poly_extra_data), POLYFLAG_ALLOW_QUADS);
7575   add_exit_callback(machine, midvunit_exit);
7676}
7777
r1238r1239
8383 *
8484 *************************************/
8585
86static void render_flat(void *destbase, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid)
86static void render_flat(void *destbase, INT32 scanline, const quad_extent *extent, const void *extradata, int threadid)
8787{
88   poly_extra_data *extra = poly->extra;
89   UINT16 *dest = (UINT16 *)destbase + scanline * 512;
88   const poly_extra_data *extra = extradata;
9089   UINT16 pixdata = extra->pixdata;
9190   int xstep = extra->dither + 1;
91   UINT16 *dest = (UINT16 *)destbase + scanline * 512;
92   int startx = extent->startx;
9293   int x;
9394
9495   /* if dithering, ensure that we start on an appropriate pixel */
r1238r1239
9697
9798   /* non-dithered 0 pixels can use a memset */
9899   if (pixdata == 0 && xstep == 1)
99      memset(&dest[startx], 0, 2 * (stopx - startx + 1));
100      memset(&dest[startx], 0, 2 * (extent->stopx - startx + 1));
100101
101102   /* otherwise, we fill manually */
102103   else
103104   {
104      for (x = startx; x < stopx; x += xstep)
105      for (x = startx; x < extent->stopx; x += xstep)
105106         dest[x] = pixdata;
106107   }
107108}
r1238r1239
114115 *
115116 *************************************/
116117
117static void render_tex(void *destbase, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid)
118static void render_tex(void *destbase, INT32 scanline, const quad_extent *extent, const void *extradata, int threadid)
118119{
119   poly_extra_data *extra = poly->extra;
120   UINT16 *dest = (UINT16 *)destbase + scanline * 512;
120   const poly_extra_data *extra = extradata;
121121   UINT16 pixdata = extra->pixdata & 0xff00;
122122   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;
127123   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;
128131   int x;
129132
130133   /* if dithering, we advance by 2x; also ensure that we start on an appropriate pixel */
r1238r1239
150153}
151154
152155
153static void render_textrans(void *destbase, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid)
156static void render_textrans(void *destbase, INT32 scanline, const quad_extent *extent, const void *extradata, int threadid)
154157{
155   poly_extra_data *extra = poly->extra;
156   UINT16 *dest = (UINT16 *)destbase + scanline * 512;
158   const poly_extra_data *extra = extradata;
157159   UINT16 pixdata = extra->pixdata & 0xff00;
158160   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;
163161   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;
164169   int x;
165170
166171   /* if dithering, we advance by 2x; also ensure that we start on an appropriate pixel */
r1238r1239
188193}
189194
190195
191static void render_textransmask(void *destbase, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid)
196static void render_textransmask(void *destbase, INT32 scanline, const quad_extent *extent, const void *extradata, int threadid)
192197{
193   poly_extra_data *extra = poly->extra;
194   UINT16 *dest = (UINT16 *)destbase + scanline * 512;
198   const poly_extra_data *extra = extradata;
195199   UINT16 pixdata = extra->pixdata;
196200   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;
201201   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;
202209   int x;
203210
204211   /* if dithering, we advance by 2x; also ensure that we start on an appropriate pixel */
r1238r1239
235242
236243static void process_dma_queue(running_machine *machine)
237244{
245   poly_extra_data *extra = poly_get_extra_data(poly);
246   UINT16 *dest = &midvunit_videoram[(page_control & 4) ? 0x40000 : 0x00000];
238247   int textured = ((dma_data[0] & 0x300) == 0x100);
239   poly_draw_scanline callback;
248   poly_draw_quad_scanline callback;
240249   poly_vertex vert[4];
241   int i;
242250
243251   /* if we're rendering to the same page we're viewing, it has changed */
244252   if ((((page_control >> 2) ^ page_control) & 1) == 0)
r1238r1239
262270   else
263271   {
264272      /* 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;
273281
274282      /* handle non-masked, non-transparent quads */
275283      if ((dma_data[0] & 0xc00) == 0x000)
r1238r1239
288296         callback = render_flat;
289297   }
290298
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);
296303
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]);
308306}
309307
310308
src/mame/video/bigevglf.c
r1238r1239
88#include "driver.h"
99
1010
11UINT8 *beg_spriteram1;
12UINT8 *beg_spriteram2;
11UINT8 *bigevglf_spriteram1;
12UINT8 *bigevglf_spriteram2;
1313
1414
1515static UINT32 vidram_bank = 0;
r1238r1239
2020
2121static mame_bitmap *tmp_bitmap[4];
2222
23WRITE8_HANDLER(beg_palette_w)
23WRITE8_HANDLER(bigevglf_palette_w)
2424{
2525   int color;
2626
r1238r1239
2929   palette_set_color_rgb(Machine, offset&0x3ff, pal4bit(color >> 4), pal4bit(color >> 0), pal4bit(color >> 8));
3030}
3131
32WRITE8_HANDLER( beg_gfxcontrol_w )
32WRITE8_HANDLER( bigevglf_gfxcontrol_w )
3333{
3434/* bits used: 0,1,2,3
3535 0 and 2 select plane,
r1238r1239
7474   for (i = 0xc0-4; i >= 0; i-=4)
7575   {
7676      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];
8080      for(j=0;j<16;j++)
8181         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,
8484            0,0,
8585            sx+((j&1)<<3),sy+((j>>1)<<3),
8686            cliprect,TRANSPARENCY_PEN,0);
src/mame/video/cvs.c
r1238r1239
4747static UINT8 *character_1_ram;
4848static UINT8 *character_2_ram;
4949static UINT8 *character_3_ram;
50UINT8 *bullet_ram;
50UINT8 *cvs_bullet_ram;
5151
52mame_bitmap *collision_bitmap;
53mame_bitmap *collision_background;
52mame_bitmap *cvs_collision_bitmap;
53mame_bitmap *cvs_collision_background;
5454static mame_bitmap *scrolled_background;
5555
56int CollisionRegister=0;
56int cvs_collision_register=0;
5757
5858static int ModeOffset[4] = {223,191,255,127};
5959
r1238r1239
160160
161161READ8_HANDLER( cvs_collision_r )
162162{
163   return CollisionRegister;
163   return cvs_collision_register;
164164}
165165
166166READ8_HANDLER( cvs_collision_clear )
167167{
168   CollisionRegister=0;
169    return 0;
168   cvs_collision_register=0;
169   return 0;
170170}
171171
172172WRITE8_HANDLER( cvs_scroll_w )
r1238r1239
218218    {
219219       // Bullet Ram
220220
221        bullet_ram[offset] = data;
221        cvs_bullet_ram[offset] = data;
222222    }
223223    else
224224    {
r1238r1239
237237    {
238238       // Bullet Ram
239239
240        return bullet_ram[offset];
240        return cvs_bullet_ram[offset];
241241    }
242242    else
243243    {
r1238r1239
406406
407407   /* 3 bitmaps for collision detection */
408408
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);
411411   scrolled_background = auto_bitmap_alloc(machine->screen[0].width,machine->screen[0].height,BITMAP_FORMAT_INDEXED8);
412412}
413413
r1238r1239
497497      }
498498
499499      if(forecolor)
500         drawgfx(collision_background,machine->gfx[character_bank],
500         drawgfx(cvs_collision_background,machine->gfx[character_bank],
501501               character,
502502               forecolor,
503503               0,0,
r1238r1239
509509    /* Update screen - 8 regions, fixed scrolling area */
510510
511511   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);
513513
514514    /* 2636's */
515515
516516   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);
518518
519519   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);
521521
522522   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);
524524
525525    /* Bullet Hardware */
526526
527527    for (offs = 8; offs < 256; offs++ )
528528    {
529        if(bullet_ram[offs] != 0)
529        if(cvs_bullet_ram[offs] != 0)
530530        {
531531           int ct;
532532            for(ct=0;ct<4;ct++)
533533            {
534               int bx=255-7-bullet_ram[offs]-ct;
534               int bx=255-7-cvs_bullet_ram[offs]-ct;
535535
536536               /* Bullet/Object Collision */
537537
538                if((CollisionRegister & 8) == 0)
538                if((cvs_collision_register & 8) == 0)
539539                {
540540                    if ((*BITMAP_ADDR8(s2636_1_bitmap, offs, bx) != 0) ||
541541                   (*BITMAP_ADDR8(s2636_2_bitmap, offs, bx) != 0) ||
542542                   (*BITMAP_ADDR8(s2636_3_bitmap, offs, bx) != 0))
543                        CollisionRegister |= 8;
543                        cvs_collision_register |= 8;
544544                }
545545
546546               /* Bullet/Background Collision */
547547
548                if((CollisionRegister & 0x80) == 0)
548                if((cvs_collision_register & 0x80) == 0)
549549                {
550550               if (*BITMAP_ADDR8(scrolled_background, offs, bx) != machine->pens[0])
551                       CollisionRegister |= 0x80;
551                       cvs_collision_register |= 0x80;
552552                }
553553
554554            *BITMAP_ADDR16(bitmap, offs, bx) = machine->pens[7];
r1238r1239
594594                if (spb[BL1] != machine->pens[0]) SB |= 0x00000800;
595595                if (spb[BL0] != machine->pens[0]) SB |= 0x00000008;
596596
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;
600600
601601                    if (SB)
602602                    {
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;
606606                    }
607607                 }
608608
src/mame/video/quasar.c
r1238r1239
3838
3939VIDEO_START( cvs );
4040
41extern UINT8 *bullet_ram;
41extern UINT8 *cvs_bullet_ram;
4242
43extern mame_bitmap *collision_bitmap;
44extern mame_bitmap *collision_background;
43extern mame_bitmap *cvs_collision_bitmap;
44extern mame_bitmap *cvs_collision_background;
4545
4646
47extern int CollisionRegister;
47extern int cvs_collision_register;
4848
4949
5050// Used here
5151//static int    scroll[8];
5252//static int    scroll_reg = 0;
5353
54UINT8 *effectram;
55int           effectcontrol;
54UINT8 *quasar_effectram;
55int quasar_effectcontrol;
5656
5757static mame_bitmap *effect_bitmap;
5858
r1238r1239
135135
136136VIDEO_START( quasar )
137137{
138   effectram   = auto_malloc(0x400);
138   quasar_effectram   = auto_malloc(0x400);
139139
140140   effect_bitmap = auto_bitmap_alloc(machine->screen[0].width,machine->screen[0].height,machine->screen[0].format);
141141
r1238r1239
161161      // While we have the current character code, draw the effects layer
162162      // intensity / on and off controlled by latch
163163
164      if (effectcontrol == 0x30)
164      if (quasar_effectcontrol == 0x30)
165165         forecolor = 0;
166166      else
167         forecolor = effectram[offs] + (256 * (((effectcontrol >> 4) ^ 3) & 3));
167         forecolor = quasar_effectram[offs] + (256 * (((quasar_effectcontrol >> 4) ^ 3) & 3));
168168
169169      for(ox=0;ox<8;ox++)
170170         for(oy=0;oy<8;oy++)
r1238r1239
184184
185185      if((colorram[offs] & 7) == 0)
186186      {
187         drawgfx(collision_background,machine->gfx[0],
187         drawgfx(cvs_collision_background,machine->gfx[0],
188188               character,
189189               64,
190190               0,0,
r1238r1239
201201    /* 2636's */
202202
203203   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);
205205
206206   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);
208208
209209   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);
211211
212212    /* Bullet Hardware */
213213
214214    for (offs = 8; offs < 256; offs++ )
215215    {
216        if(bullet_ram[offs] != 0)
216        if(cvs_bullet_ram[offs] != 0)
217217        {
218218           int ct;
219219            for(ct=0;ct<1;ct++)
220220            {
221               int bx=255-9-bullet_ram[offs]-ct;
221               int bx=255-9-cvs_bullet_ram[offs]-ct;
222222
223223               /* Bullet/Object Collision */
224224
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;
227227
228228            *BITMAP_ADDR16(bitmap, offs, bx) = machine->pens[7];
229229            }
r1238r1239
241241          UINT32 *sp2 = (UINT32 *)BITMAP_ADDR8(s2636_2_bitmap, sx, 0);
242242          UINT32 *sp3 = (UINT32 *)BITMAP_ADDR8(s2636_3_bitmap, sx, 0);
243243           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);
245245
246246            for(offs=0;offs<62;offs++)
247247            {
r1238r1239
269269
270270                    if (SB)
271271                    {
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;
274274                    }
275275                 }
276276
src/mame/video/konamiic.c
r1238r1239
36073607static int K053247_memory_region, K053247_dx, K053247_dy, K053247_wraparound;
36083608static UINT8  K053246_regs[8];
36093609static UINT16 K053247_regs[16];
3610UINT16 *K053247_ram=0;
3610static UINT16 *K053247_ram=0;
36113611static gfx_element *K053247_gfx;
36123612static void (*K053247_callback)(int *code,int *color,int *priority);
36133613static UINT8 K053246_OBJCHA_line;
src/mame/video/xmen.c
r1238r1239
5656
5757static mame_bitmap * screen_right;
5858static mame_bitmap * screen_left;
59static UINT16 *K053247_ram;
5960
6061VIDEO_START( xmen6p )
6162{
r1238r1239
6364
6465   K052109_vh_start(machine,REGION_GFX1,NORMAL_PLANE_ORDER,xmen_tile_callback);
6566   K053247_vh_start(machine,REGION_GFX2,53,-2,NORMAL_PLANE_ORDER,xmen_sprite_callback);
67   K053247_export_config(&K053247_ram, NULL, NULL, NULL, NULL);
6668
6769   screen_left = auto_bitmap_alloc(64*8, 32*8, BITMAP_FORMAT_INDEXED16);
6870   screen_right = auto_bitmap_alloc(64*8, 32*8, BITMAP_FORMAT_INDEXED16);
r1238r1239
127129}
128130
129131extern UINT16 xmen_current_frame;
130extern UINT16 *K053247_ram;
131132extern UINT16*xmen6p_spriteramleft;
132133extern UINT16*xmen6p_spriteramright;
133134extern UINT16*xmen6p_tilemapleft;
src/mame/video/neogeo.c
r1238r1239
2424static UINT16 videoram_offset;
2525
2626static UINT8 fixed_layer_source;
27static int *blank_fixed_layer_chars[2];   /* no need to state save */
2827int neogeo_fixed_layer_bank_type;      /* no need to state save */
2928
3029static UINT8 auto_animation_speed;
r1238r1239
280279}
281280
282281
283static 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
307static 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
314282static void draw_fixed_layer(mame_bitmap *bitmap, int scanline)
315283{
316284   int x;
r1238r1239
363331      break;
364332   }
365333}
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
370335      {
371336         UINT8 data = 0;
372337         int i;
r1238r1239
900865   neogeo_videoram = auto_malloc(0x20000);
901866
902867   compute_rgb_weights();
903   scan_for_blank_fixed_layer_chars();
904868   create_sprite_line_timer();
905869   create_auto_animation_timer();
906870   optimize_sprite_data();
src/mame/video/m3raster.c
r1238r1239
1static void draw_triangle_tex1555(VERTEX v1, VERTEX v2, VERTEX v3)
1static void draw_scanline_normal(void *dest, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid)
22{
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;
619
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++)
2421   {
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;
12142      }
122   }
123}
12443
125static 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;
25547   }
25648}
25749
258static void draw_triangle_tex1555_alpha(VERTEX v1, VERTEX v2, VERTEX v3)
50static void draw_scanline_trans(void *dest, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid)
25951{
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;
26369
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++)
28171   {
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;
39296      }
97
98      ooz += doozdx;
99      uoz += duozdx;
100      voz += dvozdx;
393101   }
394102}
395103
396static void draw_triangle_tex4444(VERTEX v1, VERTEX v2, VERTEX v3)
104
105static void draw_scanline_alpha(void *dest, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid)
397106{
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;
401124
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++)
418126   {
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;
519154      }
155
156      ooz += doozdx;
157      uoz += duozdx;
158      voz += dvozdx;
520159   }
521160}
522161
523static void draw_triangle_tex4444_alpha(VERTEX v1, VERTEX v2, VERTEX v3)
162
163static void draw_scanline_alpha_test(void *dest, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid)
524164{
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;
528182
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++)
545184   {
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;
661214         }
662215      }
216
217      ooz += doozdx;
218      uoz += duozdx;
219      voz += dvozdx;
663220   }
664221}
665222
666static void draw_triangle_color(VERTEX v1, VERTEX v2, VERTEX v3, UINT16 color)
223
224static void draw_scanline_color(void *dest, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid)
667225{
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;
671236
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;
675241
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)
683244   {
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;
717253         }
254         ooz += doozdx;
718255      }
719256   }
720}
721257
722static 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
739260   {
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;
749262
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;
752267
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);
754277
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;
780280         }
281         ooz += doozdx;
781282      }
782283   }
783284}
src/mame/video/nmk16.c
r1238r1239
601601   return 0;
602602}
603603
604extern UINT16 *mcu_shared_ram;
605extern UINT16 *mcu_work_ram;
604extern UINT16 *nmk16_mcu_shared_ram;
605extern UINT16 *nmk16_mcu_work_ram;
606606
607607/*coin setting MCU simulation*/
608608static void mcu_run(UINT8 dsw_setting)
r1238r1239
627627   old_value = readinputport(0);
628628
629629   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
631631
632632   if(read_coin != old_value)
633633   {
r1238r1239
635635      {
636636         switch(dsw_a & 7)
637637         {
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;
641641            case 4:
642642            coina++;
643643            if(coina >= 4)
644644            {
645645               coina = 0;
646               mcu_shared_ram[0xf00/2]++;
646               nmk16_mcu_shared_ram[0xf00/2]++;
647647            }
648648            break;
649649            case 5:
r1238r1239
651651            if(coina >= 3)
652652            {
653653               coina = 0;
654               mcu_shared_ram[0xf00/2]++;
654               nmk16_mcu_shared_ram[0xf00/2]++;
655655            }
656656            break;
657657            case 6:
r1238r1239
659659            if(coina >= 2)
660660            {
661661               coina = 0;
662               mcu_shared_ram[0xf00/2]++;
662               nmk16_mcu_shared_ram[0xf00/2]++;
663663            }
664664            break;
665            case 7: mcu_shared_ram[0xf00/2]++; break;
665            case 7: nmk16_mcu_shared_ram[0xf00/2]++; break;
666666         }
667667      }
668668
r1238r1239
670670      {
671671         switch(dsw_b & 7)
672672         {
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;
676676            case 4:
677677            coinb++;
678678            if(coinb >= 4)
679679            {
680680               coinb = 0;
681               mcu_shared_ram[0xf00/2]++;
681               nmk16_mcu_shared_ram[0xf00/2]++;
682682            }
683683            break;
684684            case 5:
r1238r1239
686686            if(coinb >= 3)
687687            {
688688               coinb = 0;
689               mcu_shared_ram[0xf00/2]++;
689               nmk16_mcu_shared_ram[0xf00/2]++;
690690            }
691691            break;
692692            case 6:
r1238r1239
694694            if(coinb >= 2)
695695            {
696696               coinb = 0;
697               mcu_shared_ram[0xf00/2]++;
697               nmk16_mcu_shared_ram[0xf00/2]++;
698698            }
699699            break;
700            case 7: mcu_shared_ram[0xf00/2]++; break;
700            case 7: nmk16_mcu_shared_ram[0xf00/2]++; break;
701701         }
702702      }
703703
704704      if(!(readinputport(0) & 0x04))//SERVICE_COIN
705         mcu_shared_ram[0xf00/2]++;
705         nmk16_mcu_shared_ram[0xf00/2]++;
706706
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*/
708708      {
709709         /*Start a 1-player game,but don't decrement if the player 1 is already playing*/
710710         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*/
712712         )
713            mcu_shared_ram[0xf00/2]--;
713            nmk16_mcu_shared_ram[0xf00/2]--;
714714
715715         /*Start a 2-players game,but don't decrement if the player 2 is already playing*/
716716         if((!(readinputport(0) & 0x10))
717         && (!(mcu_work_ram[0x000/2] & 0x0100))
717         && (!(nmk16_mcu_work_ram[0x000/2] & 0x0100))
718718         )
719719         {
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;
722722            else
723               mcu_shared_ram[0xf00/2]--;
723               nmk16_mcu_shared_ram[0xf00/2]--;
724724         }
725725      }
726726
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;
728728   }
729729}
730730
src/mame/drivers/bfcobra.c
r1238r1239
1/*
2    Bell-Fruit Cobra Hardware
1/******************************************************************************
32
4    Working:
5    * A Question of Sport
3    Bell-Fruit Cobra I/II and Viper Hardware
64
7    Other games:
8    * Brain Box
9    * Every Second Counts
10    * Inquizitor
11    * Quizvaders
12    * Treble Top
5    driver by Phil Bennett
136
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
2213
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******************************************************************************/
2372#include "driver.h"
2473#include "debugger.h"
2574#include "machine/6850acia.h"
r1238r1239
2877#include "sound/upd7759.h"
2978#include "sound/ay8910.h"
3079
31/* TODO */
80/*
81    Defines
82*/
3283#define Z80_XTAL   4000000
3384#define M6809_XTAL   1000000
3485
86
87/*
88    Globals
89*/
90UINT8 bank[4];
91UINT8 *work_ram;
92UINT8 *video_ram;
93UINT8 h_scroll;
94UINT8 v_scroll;
95UINT8 flip_8;
96UINT8 flip_22;
97
98/* UART source/sinks */
99UINT8 z80_m6809_line;
100UINT8 m6809_z80_line;
101UINT8 data_r;
102UINT8 data_t;
103
104int   irq_state;
105int acia_irq;
106int vblank_irq;
107int blitter_irq;
108
109UINT8 z80_int;
110UINT8 z80_inten;
111
112/* EM and lamps stuff */
113UINT32 meter_latch;
114UINT32 mux_input;
115UINT32 mux_outputlatch;
116
117/*
118    Function prototypes
119*/
120INLINE void z80_bank(int num, int data);
121
122
123static 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
35140#ifdef MAME_DEBUG
36141int DEBUG_BLITTER = 0;
37142#endif
r1238r1239
48153} ADDR_REG;
49154
50155/* 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
58163#define CMD_LINEDRAW   0x80
59164
60165/* All unconfirmed */
61166//#define SRCDST_CMP    0x10
62167//#define SRCDST_WRAP   0x20
63168//#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? */
65170
66171/* 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
70175#define MODE_BITTOBYTE   0x04
71#define MODE_UNKNOWN   0x10      // TODO: Used to adjust photo palette?
176#define MODE_PALREMAP   0x10
72177
73178/* All unconfirmed */
74179//#define CMPFUNC_EQ    0x01
r1238r1239
76181//#define CMPFUNC_GT    0x04
77182//#define CMPFUNC_PLANE 0x08
78183
79#define CMPFUNC_EQ   0x08
184#define CMPFUNC_EQ      0x08
80185#define CMPFUNC_LOG0   0x10
81186#define CMPFUNC_LOG1   0x20
82187#define CMPFUNC_LOG2   0x40
83188#define CMPFUNC_LOG3   0x80
84189
85
86190/*
87    State for the blitter unit
191    Blitter state
88192*/
89static struct
193struct
90194{
91195   ADDR_REG   program;
92196
r1238r1239
108212/*
109213    MUSIC Semiconductor TR9C1710 RAMDAC or equivalent
110214*/
111static struct
215struct
112216{
113217   UINT8   addr_w;
114218   UINT8   addr_r;
r1238r1239
124228   UINT8   count_w;
125229} ramdac;
126230
127/*
128    Globals
129*/
130
131static UINT8 bank[4];
132static UINT8 *work_ram;
133static UINT8 *video_ram;
134static UINT8 h_scroll;
135static UINT8 flip_8;
136static UINT8 flip_22;
137
138/* UART source/sinks */
139static UINT8 z80_m6809_line;
140static UINT8 m6809_z80_line;
141static UINT8 data_r;
142static UINT8 data_t;
143
144static UINT8 z80_int;
145static UINT8 z80_inten;
146
147/* EM and lamps stuff */
148static UINT32 meter_latch;
149static UINT32 mux_input;
150static UINT32 mux_outputlatch;
151
152INLINE void z80_bank(int num, int data);
153
154/* TODO */
155static MACHINE_RESET( bfcobra )
231VIDEO_UPDATE( bfcobra )
156232{
157   bank[0] = 1;
158   memset(&ramdac, 0, sizeof(ramdac));
159}
160
161/* TODO: Put in video/bfcobra.c */
162static VIDEO_UPDATE( bfcobra )
163{
164233   int x, y;
165   UINT8 *src;
234   UINT8 *src;
166235   UINT32 *dest;
167236   UINT32 offset;
168237
169   if (flip_8 == 0x44 && flip_22 == 0x41)
170   {
238   /* A bit dodgy */
239   if (flip_8 & 0x40 && flip_22 & 0x40)
171240      offset = 0x10000;
172   }
173241   else
174   {
175242      offset = 0;
176   }
177243
178   for (y = cliprect->min_y; y <= cliprect->max_y; y++)
244   for (y = cliprect->min_y; y <= cliprect->max_y; ++y)
179245   {
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);
182249
183      for (x = cliprect->min_x; x <= cliprect->max_x; x++)
250      for (x = cliprect->min_x; x <= cliprect->max_x; ++x)
184251      {
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];
186257      }
187258   }
188259
189260   return 0;
190261}
191262
192/* TODO */
193263INLINE UINT8* blitter_get_addr(UINT32 addr)
194264{
195265   if (addr < 0x10000)
196266   {
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);
199269   }
200270   else if(addr < 0x20000)
201271   {
r1238r1239
216286
217287
218288/*
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.
220292*/
221static void RunBlit(void)
293void RunBlit(void)
222294{
223295#define BLITPRG_READ(x)      blitter.x = *(blitter_get_addr(blitter.program.addr++))
224296
r1238r1239
241313      BLITPRG_READ(step);
242314      BLITPRG_READ(pattern);
243315
244   #ifdef MAME_DEBUG
316#ifdef MAME_DEBUG
245317      if (DEBUG_BLITTER)
246318      {
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",
252322            blitter.command & CMD_RUN ? "RUN" : "     ",
253323            blitter.command & CMD_COLST ? "COLST" : "     ",
254324            blitter.command & CMD_PARRD ? "PARRD" : "     ",
r1238r1239
257327            blitter.command & CMD_SRCEN ? "SRCEN" : "     ",
258328            blitter.command & CMD_DSTEN ? "DSTEN" : "     ");
259329
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" : "");
270340
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);
276346      }
277   #endif
347#endif
278348
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      }
284354
355      /* Dirty hacks for Quizvaders */
356      if ( (blitter.command == 0x01) || (blitter.command == 0x19) )
357      {
358         blitter.command |= CMD_SRCEN;
359      }
360
285361      /* Begin outer loop */
286      do
362      for (;;)
287363      {
288364         UINT8 innercnt = blitter.innercnt;
289365
290         /*
291                Line Drawing Mode
366         if (blitter.command & CMD_LINEDRAW)
367         {
368            /*
369                    Line Drawing Mode
292370
293                x1 - x0
294                y1 - y0
371                    x1 - x0
372                    y1 - y0
295373
296                d1 = bigger
297                d2 = smaller
374                    d1 = bigger
375                    d2 = smaller
298376
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                */
310385         }
311386         else do
312387         {
313            //UINT32    srcaddr = 0;
388         //  UINT32  srcaddr = 0;
314389            UINT8   inhibit = 0;
315390
316            // TODO: Set this correctly.
391            /* TODO: Set this correctly */
317392            UINT8   result = blitter.pattern;
318393
319394            /* Source value is read only once in character mode */
r1238r1239
326401            }
327402
328403            /* Enable source address read and increment? */
329            if (!(blitter.modectl & MODE_BITTOBYTE))
404            if ( !(blitter.modectl & (MODE_BITTOBYTE | MODE_PALREMAP)) )
330405            {
331406               if (blitter.command & CMD_SRCEN)
332407               {
333408                  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
335416                  result = srcdata;
336417               }
337418            }
r1238r1239
344425
345426            /* Inhibit depending on the bit selected by the inner count */
346427
347            // Switch on comparator type?
428            /* Switch on comparator type? */
348429            if (blitter.modectl & MODE_BITTOBYTE)
349430            {
350431               inhibit = !(srcdata & (1 << (8 - innercnt)));
r1238r1239
361442               {
362443                  inhibit = 1;
363444
364                  /* TODO: Resume from inhibit */
445                  /* TODO: Resume from inhibit? */
365446                  if (blitter.command & CMD_COLST)
366                  {
367447                     return;
368                  }
369448               }
370449            }
371#if 0
372            else
373            {
374               UINT32 LOG0, LOG1, LOG2, LOG3;
375450
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
386451            /* Write the data if not inhibited */
387452            if (!inhibit)
388453            {
389               /* TODO: This is definitely not right */
390               if (blitter.modectl & 0x10)
454               if (blitter.modectl == MODE_PALREMAP)
391455               {
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;
393465               }
394466               else
395467               {
r1238r1239
399471
400472            /* Update destination address */
401473            blitter.dest.addr = (blitter.dest.addr + 1) & 0xfffff;
474         } while (--innercnt);
402475
403         }while (--innercnt);
404
405476         if (!--blitter.outercnt)
406477         {
407478            break;
r1238r1239
425496               BLITPRG_READ(pattern);
426497            }
427498         }
499      }
428500
429      }while (1);
430
431501      /* Read next command header */
432502      BLITPRG_READ(command);
433503
434   }while (blitter.command  & CMD_RUN);
504   } while (blitter.command  & CMD_RUN);
435505}
436506
507
437508static READ8_HANDLER( ramdac_r )
438509{
439510   UINT8 val = 0xff;
r1238r1239
462533         if (++*count == 3)
463534         {
464535            *count = 0;
465            /* Address register auto-increments */
466536            ramdac.addr_r++;
467537         }
468538         break;
469539      }
470540      default:
471541      {
472         printf("Odd DAC access\n");
473         DEBUGGER_BREAK;
474         break;
542         mame_printf_debug("Unhandled RAMDAC read (PC:%.4x)\n", activecpu_get_previouspc());
475543      }
476544   }
477545
r1238r1239
502570      case 2:
503571      {
504572         ramdac.mask = data;
505         if (data != 0xff)
506         {
507            printf("Unimplemented: RAMDAC Mask %x\n",data);
508            DEBUGGER_BREAK;
509         }
510573         break;
511574      }
512575      case 3:
r1238r1239
517580   }
518581}
519582
520/*
521    WD37C656C-PL (or equivalent) Floppy Disk Controller
522*/
523static WRITE8_HANDLER( fdctrl_w )
524{
583/***************************************************************************
525584
526}
585    Flare One Register Map
527586
528static 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
532590
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
533597
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
538600
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
545605
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
548612
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
552615
553    14                  W
616        Joystick: xxx1 11xx                                 R
617        ? (polled on tight loop):  x1xx xxxx                R
554618
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
561620
562    22  ???? Linked with C002       WR
563        Mask of 20
564    40: ROM bank select         W
565*/
621***************************************************************************/
566622
567/*
568    Z80 IO addressing handled by Slipstream
569*/
570static READ8_HANDLER( slipstream_r )
623static READ8_HANDLER( chipset_r )
571624{
572625   UINT8 val = 0xff;
573626
r1238r1239
582635      }
583636      case 6:
584637      {
585         val = z80_int << 4;
638         /* TODO */
639         val = vblank_irq << 4;
586640         break;
587641      }
588642      case 7:
589643      {
590         z80_int = 0;
644         vblank_irq = 0;
591645         val = 0x1;
646
647         /* TODO */
648         update_irqs();
592649         break;
593650      }
594651      case 0x1C:
r1238r1239
599656      }
600657      case 0x20:
601658      {
602         /* TODO: Seems correct */
659         /* Seems correct - used during RLE pic decoding */
603660         val = blitter.dest.addr0;
604661         break;
605662      }
663      case 0x22:
664      {
665         val = 0x40 | readinputportbytag("JOYSTICK");
666         break;
667      }
606668      default:
607669      {
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());
611671      }
612672   }
613673
614674   return val;
615675}
616676
617static WRITE8_HANDLER( slipstream_w )
677static WRITE8_HANDLER( chipset_w )
618678{
619   switch(offset)
679   switch (offset)
620680   {
621681      case 0x01:
622682      case 0x02:
623683      case 0x03:
624684      {
685         if (data > 0x3f)
686         {
687            popmessage("%x: Unusual bank access (%x)\n", activecpu_get_previouspc(), data);
688         }
625689         data &= 0x3f;
626690         bank[offset] = data;
627691         z80_bank(offset, data);
628692         break;
629693      }
630      case 0x07:
631      {
632         z80_inten = data;
633         break;
634      }
635694      case 0x08:
636695      {
637696         flip_8 = data;
638697         break;
639698      }
640      case 0x22:
699      case 0x0B:
641700      {
642         flip_22 = data;
701         h_scroll = data;
643702         break;
644703      }
645      case 0x0B:
704      case 0x0C:
646705      {
647         h_scroll = data;
706         v_scroll = data;
648707         break;
649708      }
650709      case 0x18:
r1238r1239
662721         blitter.program.addr2 = data;
663722         break;
664723      }
665      case 0x1B:
666      {
667         /* TODO: Blitter resume. */
668         break;
669      }
670724      case 0x20:
671725      {
672726         blitter.command = data;
727
673728         if (data & CMD_RUN)
674         {
675729            RunBlit();
676         }
677730         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
683733         break;
684734      }
735      case 0x22:
736      {
737         flip_22 = data;
738         break;
739      }
685740      default:
686741      {
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());
690743      }
691744   }
692745}
693746
694747INLINE void z80_bank(int num, int data)
695748{
696   if (data < 8)
749   if (data < 0x08)
697750   {
698751      /* TODO: Don't need this table! */
699752      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      };
702757
703758      UINT32 offset = ((bank[0] >> 1) * 0x20000) + offs_table[bank[0] & 0x1][data];
704759
r1238r1239
706761   }
707762   else if (data < 0x10)
708763   {
709      memory_set_bankptr(num, &video_ram[(data * 0x4000) - 0x40000]);
764      memory_set_bankptr(num, &video_ram[(data - 0x08) * 0x4000]);
710765   }
711766   else
712767   {
713      memory_set_bankptr(num, &work_ram[(data * 0x4000) - 0x40000]);
768      memory_set_bankptr(num, &work_ram[(data - 0x10) * 0x4000]);
714769   }
715770}
716771
r1238r1239
723778}
724779
725780
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
791void command_phase(UINT8 data);
792void exec_w_phase(UINT8 data);
793UINT8 exec_r_phase(void);
794
795/*
796    WD37C656C-PL (or equivalent) Floppy Disk Controller
797*/
798
799enum fdc_phase
800{
801   COMMAND,
802   EXECUTION_R,
803   EXECUTION_W,
804   RESULTS,
805};
806
807enum 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
826struct
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
851void reset_fdc(void)
852{
853   memset(&fdc, 0, sizeof(fdc));
854
855   fdc.MSR = 0x80;
856   fdc.phase = COMMAND;
857}
858
859READ8_HANDLER( fdctrl_r )
860{
861   UINT8 val = 0;
862
863   val = fdc.MSR;
864
865   return val;
866}
867
868READ8_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
940WRITE8_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
961void 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
1042UINT8 exec_r_phase(void)
1043{
1044   return 0;
1045}
1046
1047void exec_w_phase(UINT8 data)
1048{
1049}
1050
1051UINT8 results_phase(void)
1052{
1053   return 0;
1054}
1055
1056WRITE8_HANDLER( fd_op_w )
1057{
1058}
1059
1060WRITE8_HANDLER( fd_ctrl_w )
1061{
1062}
1063
1064MACHINE_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
7261079static ADDRESS_MAP_START( z80_prog_map, ADDRESS_SPACE_PROGRAM, 8 )
7271080   AM_RANGE(0x0000, 0x3fff) AM_READ(MRA8_BANK4)
7281081   AM_RANGE(0x4000, 0x7fff) AM_READWRITE(MRA8_BANK1, MWA8_BANK1)
r1238r1239
7301083   AM_RANGE(0xc000, 0xffff) AM_READWRITE(MRA8_BANK3, MWA8_BANK3)
7311084ADDRESS_MAP_END
7321085
733/*
734    All addressing is handled by Slipstream ASICs
735*/
7361086static ADDRESS_MAP_START( z80_io_map, ADDRESS_SPACE_IO, 8 )
7371087ADDRESS_MAP_FLAGS( AMEF_ABITS(8) )
738   AM_RANGE(0x00, 0x23) AM_READWRITE(slipstream_r, slipstream_w)
1088   AM_RANGE(0x00, 0x23) AM_READWRITE(chipset_r, chipset_w)
7391089   AM_RANGE(0x24, 0x24) AM_WRITE(acia6850_0_ctrl_w)
7401090   AM_RANGE(0x25, 0x25) AM_WRITE(acia6850_0_data_w)
7411091   AM_RANGE(0x26, 0x26) AM_READ(acia6850_0_stat_r)
7421092   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)
7431095   AM_RANGE(0x40, 0x40) AM_WRITE(rombank_w)
7441096   AM_RANGE(0x50, 0x53) AM_READWRITE(ramdac_r, ramdac_w)
745   AM_RANGE(0x30, 0x33) AM_READWRITE(fdctrl_r, fdctrl_w)
7461097ADDRESS_MAP_END
7471098
748/*
749    MC68B09P: Processes sound and I/O
7501099
1100/***************************************************************************
1101
1102    Cobra I/Viper 6809 Memory Map
1103
1104    Cobra I has these components:
1105
7511106    EF68B50P            - For communication with Z80
7521107    EF68B50P            - For data retrieval
7531108    AY38912A
r1238r1239
7581113
7591114    /IRQ provided by EF68850P at IC38
7601115    /FIRQ connected to meter current sensing circuitry
761    TODO: Watchdog timer provided by NE556. Calculate correct timeout period.
762*/
7631116
1117    TODO: Calculate watchdog timer period.
1118
1119***************************************************************************/
1120
7641121/* TODO */
7651122static READ8_HANDLER( int_latch_r )
7661123{
r1238r1239
8071164
8081165         mux_outputlatch = data;
8091166
810         // Clock has changed
1167         /* Clock has changed */
8111168         if (changed & 0x08)
8121169         {
8131170            int input_strobe = data & 0x7;
814               // Clock is low
1171
1172            /* Clock is low */
8151173            if (!(data & 0x08))
816            {
8171174               mux_input = readinputport(input_strobe);
818            }
8191175         }
8201176         break;
8211177      }
r1238r1239
8341190
8351191static READ8_HANDLER( upd7759_r )
8361192{
837   return upd7759_busy_r(0);
1193   return 2 | upd7759_busy_r(0);
8381194}
8391195
8401196static WRITE8_HANDLER( upd7759_w )
8411197{
842   upd7759_start_w(0, data & 0x40);
8431198   upd7759_reset_w(0, data & 0x80);
8441199   upd7759_port_w(0, data & 0x3f);
1200   upd7759_start_w(0, data & 0x40 ? 0 : 1);
8451201}
8461202
8471203static ADDRESS_MAP_START( m6809_prog_map, ADDRESS_SPACE_PROGRAM, 8 )
r1238r1239
8581214   AM_RANGE(0x3405, 0x3405) AM_READWRITE(acia6850_1_data_r, acia6850_1_data_w)
8591215   AM_RANGE(0x3406, 0x3406) AM_READWRITE(acia6850_2_stat_r, acia6850_2_ctrl_w)
8601216   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
8611220   AM_RANGE(0x3801, 0x3801) AM_READWRITE(upd7759_r, upd7759_w)
8621221   AM_RANGE(0x8000, 0xffff) AM_READ(MRA8_ROM)
8631222   AM_RANGE(0xf000, 0xf000) AM_WRITE(MWA8_NOP)   /* Watchdog */
8641223ADDRESS_MAP_END
8651224
866static INPUT_PORTS_START( qos )
1225INPUT_PORTS_START( bfcobra )
8671226PORT_START_TAG("STROBE0")
8681227   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_NAME("Coin: 10p")
8691228   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_NAME("Coin: 20p")
8701229   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") // ?1 is invalid!  src/mame/drivers/bfcobra.c: qos input 'Coin: ?1' has invalid characters
1230   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN4 ) PORT_NAME("Coin: 1 pound")
8721231   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN )
8731232   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Green Test?") PORT_CODE(KEYCODE_F1)
8741233   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
8801239   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("COLLECT") PORT_CODE(KEYCODE_D)
8811240   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START1 ) PORT_NAME("START")
8821241   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 )
8861245
8871246   PORT_START_TAG("STROBE2")
8881247   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON5 ) PORT_NAME("<A")
r1238r1239
9031262   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN )
9041263   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN )
9051264   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
1265   PORT_BIT( 0xF8, IP_ACTIVE_HIGH, IPT_UNKNOWN )
9061266
9071267   PORT_START_TAG("STROBE4")
9081268   PORT_BIT( 0xFF, IP_ACTIVE_HIGH, IPT_UNKNOWN )
r1238r1239
9571317   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
9581318   PORT_DIPSETTING(    0x40, DEF_STR( On  ) )
9591319   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
960INPUT_PORTS_END
9611320
962#if 0
963INPUT_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 )
9641327INPUT_PORTS_END
9651328
966INPUT_PORTS_START( trebltop )
967INPUT_PORTS_END
1329/*
1330    Allocate work RAM and video RAM shared by the Z80 and chipset.
1331*/
1332static int init_ram(void)
1333{
1334   /* 768kB work RAM */
1335   work_ram = auto_malloc(0xC0000);
9681336
969INPUT_PORTS_START( inquiztr )
970INPUT_PORTS_END
1337   if (!work_ram)
1338      goto startfailed;
9711339
972INPUT_PORTS_START( everysec )
973INPUT_PORTS_END
974#endif
1340   /* 128kB video RAM */
1341   video_ram = auto_malloc(0x20000);
9751342
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
1351startfailed:
1352   return 1;
1353}
1354
9761355static void z80_acia_irq(int state)
9771356{
978   cpunum_set_input_line(0, 0, state ? CLEAR_LINE : ASSERT_LINE);
1357   acia_irq = state ? CLEAR_LINE : ASSERT_LINE;
1358   update_irqs();
9791359}
9801360
9811361static void m6809_data_irq(int state)
r1238r1239
9831363   cpunum_set_input_line(1, M6809_IRQ_LINE, state ? CLEAR_LINE : ASSERT_LINE);
9841364}
9851365
1366/*
1367    What are the correct ACIA clocks ?
1368*/
9861369static struct acia6850_interface z80_acia_if =
9871370{
9881371   500000,
r1238r1239
10201403};
10211404
10221405
1023DRIVER_INIT( bfcobra )
1406/* TODO: Driver vs Machine Init */
1407static DRIVER_INIT( bfcobra )
10241408{
10251409   /*
10261410        6809 ROM address and data lines are scrambled.
10271411        This is the same scrambling as Scorpion 2.
10281412    */
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 };
10311415
10321416   UINT32 i;
10331417   UINT8 *rom;
10341418   UINT8 *tmp;
10351419
1036   tmp = malloc_or_die(0x8000);
1420   tmp = malloc(0x8000);
10371421   rom = memory_region(REGION_CPU2) + 0x8000;
10381422   memcpy(tmp, rom, 0x8000);
10391423
r1238r1239
10451429      UINT8 val = tmp[i];
10461430
10471431      for (x = 0; x < 8; x ++)
1048      {
10491432         data |= ((val >> x) & 1) << datalookup[x];
1050      }
10511433
10521434      for (x = 0; x < 15; x ++)
1053      {
10541435         addr |= ((i >> x) & 1)  << addrlookup[x];
1055      }
10561436
10571437      rom[addr] = data;
10581438   }
10591439
10601440   free(tmp);
10611441
1062   /* 768kB work RAM */
1063   work_ram = auto_malloc(0xC0000);
1064   memset(work_ram, 0, 0xc0000);
1442   init_ram();
10651443
1066   /* 128kB video RAM */
1067   video_ram = auto_malloc(0x20000);
1068   memset(video_ram, 0, 0x20000);
1069
10701444   bank[0] = 1;
10711445   bank[1] = 0;
10721446   bank[2] = 0;
r1238r1239
10821456
10831457   /* TODO: Properly sort out the data ACIA */
10841458   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);
10851474}
10861475
10871476static struct upd7759_interface upd7759_interface =
r1238r1239
10891478   REGION_SOUND1
10901479};
10911480
1092/* TODO: Verify */
1481/* TODO */
10931482static INTERRUPT_GEN( timer_irq )
10941483{
10951484   cpunum_set_input_line(1, M6809_IRQ_LINE, PULSE_LINE);
10961485}
10971486
10981487/* TODO */
1099static INTERRUPT_GEN( vblank_irq )
1488static INTERRUPT_GEN( vblank_gen )
11001489{
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();
11061492}
11071493
11081494static MACHINE_DRIVER_START( bfcobra )
11091495   MDRV_CPU_ADD(Z80, Z80_XTAL)
11101496   MDRV_CPU_PROGRAM_MAP(z80_prog_map, 0)
11111497   MDRV_CPU_IO_MAP(z80_io_map, 0)
1112   MDRV_CPU_VBLANK_INT(vblank_irq, 1)
1498   MDRV_CPU_VBLANK_INT(vblank_gen, 1)
11131499
11141500   MDRV_CPU_ADD(M6809, M6809_XTAL)
11151501   MDRV_CPU_PROGRAM_MAP(m6809_prog_map, 0)
11161502   MDRV_CPU_PERIODIC_INT(timer_irq, 1000)
11171503
11181504   MDRV_NVRAM_HANDLER(generic_0fill)
1505
11191506   MDRV_MACHINE_RESET(bfcobra)
11201507
1508   /* TODO */
11211509   MDRV_SCREEN_REFRESH_RATE(60)
11221510   MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION)
1123
11241511   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32)
11251512   MDRV_SCREEN_SIZE(256, 256)
11261513   MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-1)
r1238r1239
11281515
11291516   MDRV_SPEAKER_STANDARD_MONO("mono")
11301517
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)
11341520
11351521   MDRV_SOUND_ADD(UPD7759, UPD7759_STANDARD_CLOCK)
11361522   MDRV_SOUND_CONFIG(upd7759_interface)
1137   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
1523   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40)
11381524
11391525   MDRV_VIDEO_START(generic_bitmapped)
11401526   MDRV_VIDEO_UPDATE(bfcobra)
r1238r1239
11441530
11451531  Game driver(s)
11461532
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
11471536***************************************************************************/
1148/* TODO: Check region sizes, correct CRC/SHA1 entries */
1149ROM_START( qos )
1150   ROM_REGION( 0x10000, REGION_CPU2, 0 )
1151   ROM_LOAD( "qos_nondata_68f4.bin", 0x08000, 0x8000, CRC(5f40005a) SHA1(180017acf6b432bc135d1090099fdf99f1e3583a) )
11521537
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) )
1538ROM_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) )
11561542
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) )
1162ROM_END
1163
1164ROM_START( qosa )
11651543   ROM_REGION( 0x10000, REGION_CPU2, 0 )
1166   ROM_LOAD( "95740599.bin", 0x08000, 0x8000, CRC(bf1e321f) SHA1(51f18620f22ba2a1b110954284ddf00614d51a0e) )
1544   ROM_LOAD( "inq6809", 0x08000, 0x08000, CRC(ae996600) SHA1(f360399e77b81399d910770fa8106c196f04363c) )
11671545
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 )
11771548ROM_END
11781549
1179#if 0
1180/* This dump is crap */
1181ROM_START( qosb )
1550ROM_START( escounts )
1551   ROM_REGION( 0x10000, REGION_USER1, 0 )
1552   ROM_LOAD( "esccobpa", 0x00000, 0x10000, CRC(d8eadeb7) SHA1(9b94f1454e6a17bf8321b0ef4ddd0ed1a56150f7) )
1553
11821554   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) )
11841557
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) )
11941561ROM_END
11951562
1196ROM_START( inquiztr )
1563ROM_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
11971568   ROM_REGION( 0x10000, REGION_CPU2, 0 )
1198   ROM_LOAD( "inq6809", 0x00000, 0x08000, NO_DUMP )
1569   ROM_LOAD( "95740078.bin", 0x08000, 0x08000, CRC(aca1980b) SHA1(3d4ed1dc545cc80f56d7daa13028fb10a12a718b) )
11991570
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) )
12031574
12041575   ROM_REGION( 0x1c2000, REGION_USER2, 0 )
1205   ROM_LOAD( "inqdisk.img", 0x000000, 0x1c2000, NO_DUMP )
1576   ROM_LOAD( "ttdisk1.img", 0x000000, 0x190000, CRC(b2003228) SHA1(5eb49f05137cdd404f22948d39aa79c1518c06eb) )
12061577ROM_END
12071578
1208/* TODO: No Z80 dump; is this actually Cobra-based? */
1209ROM_START( brainbox )
1579ROM_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
12101586   ROM_REGION( 0x10000, REGION_CPU2, 0 )
1211   ROM_LOAD( "39360122.p1", 0x08000, 0x08000, CRC(96918aae) SHA1(849ce7b8eccc89c45aacc840a73935f95788a141) )
1587   ROM_LOAD( "q6809.bin", 0x08000, 0x8000, CRC(a74dff10) SHA1(87578694a022dc3d7ade9cc76d387c1ae5fc74d9) )
12121588
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) )
12181592ROM_END
12191593
1220ROM_START( everysec )
1594ROM_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
12211601   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) )
12241603
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) )
12301607ROM_END
12311608
1232ROM_START( trebltop )
1609ROM_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
12331616   ROM_REGION( 0x10000, REGION_CPU2, 0 )
1234   ROM_LOAD( "ttpint20",   0x08000, 0x08000, CRC(96918aae) SHA1(849ce7b8eccc89c45aacc840a73935f95788a141) )
1617   ROM_LOAD( "95740599.bin", 0x08000, 0x8000, CRC(bf1e321f) SHA1(51f18620f22ba2a1b110954284ddf00614d51a0e) )
12351618
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) )
12421622ROM_END
1243#endif
12441623
1245GAME( 1992, qos,  0,   bfcobra, qos, bfcobra, ROT0, "BFM", "A Question of Sport (39-960-099)", GAME_IMPERFECT_GRAPHICS )
1246GAME( 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 )
1624GAME( 1989, inquiztr, 0,   bfcobra, bfcobra, bfcobra, ROT0, "BFM", "Inquizitor",                       GAME_NOT_WORKING )
1625GAME( 1990, escounts, 0,   bfcobra, bfcobra, bfcobra, ROT0, "BFM", "Every Second Counts (39-360-053)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_COLORS )
1626GAME( 1991, trebltop, 0,   bfcobra, bfcobra, bfcobra, ROT0, "BFM", "Treble Top (39-360-070)",          GAME_IMPERFECT_GRAPHICS )
1627GAME( 1991, quizvadr, 0,   bfcobra, bfcobra, bfcobra, ROT0, "BFM", "Quizvaders (39-360-078)",          GAME_IMPERFECT_GRAPHICS )
1628GAME( 1992, qos,      0,   bfcobra, bfcobra, bfcobra, ROT0, "BFM", "A Question of Sport (39-960-099)", GAME_IMPERFECT_GRAPHICS )
1629GAME( 1992, qosa,     qos, bfcobra, bfcobra, bfcobra, ROT0, "BFM", "A Question of Sport (39-960-089)", GAME_IMPERFECT_GRAPHICS )
src/mame/drivers/rcasino.c
r1238r1239
187187   AM_RANGE(0x13, 0x13) AM_WRITE(rcasino_coin_counter_w)
188188ADDRESS_MAP_END
189189
190INPUT_PORTS_START( rcasino )
190static INPUT_PORTS_START( rcasino )
191191   PORT_START_TAG("IN0")
192192   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_CODE(KEYCODE_A)   // SW1
193193   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_CODE(KEYCODE_S)   // SW2
src/mame/drivers/sbugger.c
r1238r1239
161161
162162/* input ports */
163163
164INPUT_PORTS_START( sbugger )
164static INPUT_PORTS_START( sbugger )
165165   PORT_START   /* 8-bit */
166166   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_2WAY
167167   PORT_DIPNAME( 0x02, 0x02, "PA 1" )
src/mame/drivers/targeth.c
r1238r1239
100100ADDRESS_MAP_END
101101
102102
103INPUT_PORTS_START( targeth )
103static INPUT_PORTS_START( targeth )
104104PORT_START   /* Gun 1 X */
105105   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)
106106   PORT_BIT( 0xfe00, IP_ACTIVE_HIGH, IPT_UNKNOWN )
src/mame/drivers/intrscti.c
r1238r1239
1818   return mame_rand(Machine);
1919}
2020
21UINT8 *intrscti_ram;
21static UINT8 *intrscti_ram;
2222
2323static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 )
2424   AM_RANGE(0x0000, 0x1fff) AM_READ(MRA8_ROM)
r1238r1239
4141ADDRESS_MAP_END
4242
4343
44INPUT_PORTS_START( intrscti )
44static INPUT_PORTS_START( intrscti )
4545INPUT_PORTS_END
4646
4747static const gfx_layout tiles8x8_layout =
src/mame/drivers/nycaptor.c
r1238r1239
608608/* Cycle Shooting */
609609
610610
611INPUT_PORTS_START( cyclshtg )
611static INPUT_PORTS_START( cyclshtg )
612612   PORT_START_TAG("IN0")
613613  PORT_DIPNAME( 0x04, 0x04, "Test Mode" )
614614  PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
r1238r1239
657657INPUT_PORTS_END
658658
659659
660INPUT_PORTS_START( nycaptor )
660static INPUT_PORTS_START( nycaptor )
661661   PORT_START_TAG("IN0")
662662   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Bonus_Life ) )
663663   PORT_DIPSETTING(    0x02, "20k, 80k then every 80k" )
src/mame/drivers/mitchell.c
r1238r1239
512512/**** End Monsters World ****/
513513
514514
515INPUT_PORTS_START( mgakuen )
515static INPUT_PORTS_START( mgakuen )
516516   PORT_START      /* DSW */
517517   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* USED - handled in port5_r */
518518   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
680680   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
681681INPUT_PORTS_END
682682
683INPUT_PORTS_START( marukin )
683static INPUT_PORTS_START( marukin )
684684   PORT_START      /* DSW */
685685   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* USED - handled in port5_r */
686686   PORT_BIT(0x02, 0x02, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2)
r1238r1239
800800   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
801801INPUT_PORTS_END
802802
803INPUT_PORTS_START( pkladies )
803static INPUT_PORTS_START( pkladies )
804804   PORT_START      /* DSW */
805805   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* USED - handled in port5_r */
806806   PORT_BIT(0x02, 0x02, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2)
r1238r1239
922922   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
923923INPUT_PORTS_END
924924
925INPUT_PORTS_START( pang )
925static INPUT_PORTS_START( pang )
926926   PORT_START      /* DSW */
927927   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* USED - handled in port5_r */
928928   PORT_BIT(0x02, 0x02, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2)
r1238r1239
962962   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
963963INPUT_PORTS_END
964964
965INPUT_PORTS_START( spangbl )
965static INPUT_PORTS_START( spangbl )
966966   PORT_START      /* DSW */
967967   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* USED - handled in port5_r */
968968   PORT_BIT(0x02, 0x02, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2)
r1238r1239
10021002   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
10031003INPUT_PORTS_END
10041004
1005INPUT_PORTS_START( mstworld )
1005static INPUT_PORTS_START( mstworld )
10061006   /* this port may not have the same role */
10071007   PORT_START      /* DSW */
10081008   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* USED - handled in port5_r */
r1238r1239
11191119   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
11201120INPUT_PORTS_END
11211121
1122INPUT_PORTS_START( qtono1 )
1122static INPUT_PORTS_START( qtono1 )
11231123   PORT_START      /* DSW */
11241124   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* USED - handled in port5_r */
11251125   PORT_BIT(0x02, 0x02, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2)
r1238r1239
11591159   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
11601160INPUT_PORTS_END
11611161
1162INPUT_PORTS_START( block )
1162static INPUT_PORTS_START( block )
11631163   PORT_START      /* DSW */
11641164   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* USED - handled in port5_r */
11651165   PORT_BIT(0x02, 0x02, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2)
r1238r1239
12011201   PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(50) PORT_KEYDELTA(20) PORT_PLAYER(2)
12021202INPUT_PORTS_END
12031203
1204INPUT_PORTS_START( blockjoy )
1204static INPUT_PORTS_START( blockjoy )
12051205   PORT_START      /* DSW */
12061206   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* USED - handled in port5_r */
12071207   PORT_BIT(0x02, 0x02, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2)
src/mame/drivers/rainbow.c
r1238r1239
404404             INPUT PORTS, DIPs
405405***********************************************************/
406406
407INPUT_PORTS_START( rainbow_generic )
407static INPUT_PORTS_START( rainbow_generic )
408408   PORT_START_TAG("DSWA")
409409   TAITO_MACHINE_COCKTAIL
410410   PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) )
r1238r1239
447447   PORT_DIPSETTING(    0x00, "Mode B (World)" ) /* Mode B is TAITO_COINAGE_WORLD */
448448INPUT_PORTS_END
449449
450INPUT_PORTS_START( rainbow )
450static INPUT_PORTS_START( rainbow )
451451   PORT_INCLUDE(rainbow_generic)
452452
453453   /* 0x390000 -> 0x10cfc2 ($fc2,A5) : DSWA */
r1238r1239
494494   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL
495495INPUT_PORTS_END
496496
497INPUT_PORTS_START( jumping )
497static INPUT_PORTS_START( jumping )
498498   PORT_INCLUDE(rainbow_generic)
499499
500500   /* 0x400000 -> 0x10cfc2 ($fc2,A5) */
src/mame/drivers/galspnbl.c
r1238r1239
9999ADDRESS_MAP_END
100100
101101
102INPUT_PORTS_START( galspnbl )
102static INPUT_PORTS_START( galspnbl )
103103   PORT_START
104104   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )            /* tested at 0x0016c6 - doesn't seem tilt related */
105105   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )            /* tested at 0x0016d2 - doesn't seem tilt related */
r1238r1239
176176   PORT_DIPSETTING(    0x40, "5" )
177177INPUT_PORTS_END
178178
179INPUT_PORTS_START( hotpinbl )
179static INPUT_PORTS_START( hotpinbl )
180180   PORT_START
181181   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )            /* tested at 0x0016c6 - doesn't seem tilt related */
182182   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )            /* tested at 0x0016d2 - doesn't seem tilt related */
src/mame/drivers/blktiger.c
r1238r1239
124124
125125
126126
127INPUT_PORTS_START( blktiger )
127static INPUT_PORTS_START( blktiger )
128128   PORT_START   /* IN0 */
129129   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
130130   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/dynduke.c
r1238r1239
8383
8484/* Input Ports */
8585
86INPUT_PORTS_START( dynduke )
86static INPUT_PORTS_START( dynduke )
8787   SEIBU_COIN_INPUTS   // Must be port 0: coin inputs read through sound cpu
8888
8989   PORT_START_TAG("IN0")
src/mame/drivers/mgolf.c
r1238r1239
214214ADDRESS_MAP_END
215215
216216
217INPUT_PORTS_START( mgolf )
217static INPUT_PORTS_START( mgolf )
218218
219219   PORT_START /* 40 */
220220   PORT_DIPNAME( 0x30, 0x00, DEF_STR( Language ) )
src/mame/drivers/deco_mlc.c
r1238r1239
330330
331331/******************************************************************************/
332332
333INPUT_PORTS_START( mlc )
333static INPUT_PORTS_START( mlc )
334334   PORT_START
335335   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
336336   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/tunhunt.c
r1238r1239
182182 *
183183 *************************************/
184184
185INPUT_PORTS_START( tunhunt )
185static INPUT_PORTS_START( tunhunt )
186186   PORT_START_TAG("IN0")
187187   PORT_BIT ( 0x01, IP_ACTIVE_HIGH, IPT_TILT )
188188   PORT_BIT ( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 )
src/mame/drivers/tryout.c
r1238r1239
8282   AM_RANGE(0xc000, 0xffff) AM_ROM
8383ADDRESS_MAP_END
8484
85INPUT_PORTS_START( tryout )
85static INPUT_PORTS_START( tryout )
8686   PORT_START
8787   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) )
8888   PORT_DIPSETTING(    0x00, DEF_STR( 2C_1C ) )
src/mame/drivers/pasha2.c
r1238r1239
244244   AM_RANGE(0xec, 0xef) AM_WRITE(oki_1_bank_w)
245245ADDRESS_MAP_END
246246
247INPUT_PORTS_START( pasha2 )
247static INPUT_PORTS_START( pasha2 )
248248   PORT_START
249249   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN )
250250   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/rungun.c
r1238r1239
370370   MDRV_SOUND_ROUTE(1, "right", 1.0)
371371MACHINE_DRIVER_END
372372
373INPUT_PORTS_START( rng )
373static INPUT_PORTS_START( rng )
374374   PORT_START
375375   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
376376   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/crystal.c
r1238r1239
735735   IntReq(24);      //VRender0 VBlank
736736}
737737
738INPUT_PORTS_START(crystal)
738static INPUT_PORTS_START(crystal)
739739   PORT_START
740740   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
741741   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
src/mame/drivers/tempest.c
r1238r1239
438438 *
439439 *************************************/
440440
441INPUT_PORTS_START( tempest )
441static INPUT_PORTS_START( tempest )
442442   PORT_START_TAG("IN0")   /* IN0 */
443443   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN3 )
444444   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/madmotor.c
r1238r1239
132132
133133/******************************************************************************/
134134
135INPUT_PORTS_START( madmotor )
135static INPUT_PORTS_START( madmotor )
136136   PORT_START
137137   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
138138   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/eprom.c
r1238r1239
214214 *
215215 *************************************/
216216
217INPUT_PORTS_START( eprom )
217static INPUT_PORTS_START( eprom )
218218   PORT_START      /* 26000 */
219219   PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED )
220220   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
258258INPUT_PORTS_END
259259
260260
261INPUT_PORTS_START( klaxp )
261static INPUT_PORTS_START( klaxp )
262262   PORT_START      /* 26000 */
263263   PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED )
264264   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 )
src/mame/drivers/bublbobl.c
r1238r1239
450450
451451
452452
453INPUT_PORTS_START( bublbobl )
453static INPUT_PORTS_START( bublbobl )
454454   PORT_START_TAG("IN0")
455455   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_TILT )
456456   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 )
r1238r1239
529529   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
530530INPUT_PORTS_END
531531
532INPUT_PORTS_START( boblbobl )
532static INPUT_PORTS_START( boblbobl )
533533   PORT_START_TAG("DSW0")
534534   PORT_DIPNAME( 0x05, 0x04, "Mode" )
535535   PORT_DIPSETTING(    0x04, "Game, English" )
r1238r1239
597597   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
598598INPUT_PORTS_END
599599
600INPUT_PORTS_START( sboblbob )
600static INPUT_PORTS_START( sboblbob )
601601   PORT_INCLUDE( boblbobl )
602602
603603   PORT_MODIFY( "DSW0" )
r1238r1239
614614   PORT_DIPSETTING(    0x20, "100 (Cheat)")
615615INPUT_PORTS_END
616616
617INPUT_PORTS_START( tokio )
617static INPUT_PORTS_START( tokio )
618618   PORT_START_TAG("DSW0")
619619   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
620620   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
src/mame/drivers/chinsan.c
r1238r1239
8282   memory_set_bank(1, data >> 6);
8383}
8484
85WRITE8_HANDLER( ym_port_w1 )
85static WRITE8_HANDLER( ym_port_w1 )
8686{
8787   logerror("ym_write port 1 %02x\n",data);
8888}
8989
9090
91WRITE8_HANDLER( ym_port_w2 )
91static WRITE8_HANDLER( ym_port_w2 )
9292{
9393   logerror("ym_write port 2 %02x\n",data);
9494}
r1238r1239
199199ADDRESS_MAP_END
200200
201201
202INPUT_PORTS_START( chinsan )
202static INPUT_PORTS_START( chinsan )
203203   PORT_START
204204   PORT_DIPNAME( 0x01, 0x01, "DSW1" )
205205   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
src/mame/drivers/skyfox.c
r1238r1239
111111
112112***************************************************************************/
113113
114INPUT_PORTS_START( skyfox )
114static INPUT_PORTS_START( skyfox )
115115
116116   PORT_START_TAG("IN0")   // Player 1
117117   PORT_BIT(  0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    )
src/mame/drivers/cshooter.c
r1238r1239
375375
376376
377377
378INPUT_PORTS_START( cshooter )
378static INPUT_PORTS_START( cshooter )
379379   PORT_START   /* IN0  (0xc200) */
380380   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
381381   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/aerofgt.c
r1238r1239
535535   AM_RANGE(0xfc20, 0xfc20) AM_READ(soundlatch_r)
536536ADDRESS_MAP_END
537537
538INPUT_PORTS_START( pspikes )
538static INPUT_PORTS_START( pspikes )
539539   PORT_START_TAG("IN0")
540540   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
541541   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)
r1238r1239
616616   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
617617INPUT_PORTS_END
618618
619INPUT_PORTS_START( pspikesb )
619static INPUT_PORTS_START( pspikesb )
620620   PORT_START_TAG("IN0")
621621   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
622622   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
693693   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
694694INPUT_PORTS_END
695695
696INPUT_PORTS_START( karatblz )
696static INPUT_PORTS_START( karatblz )
697697   PORT_START_TAG("IN0")
698698   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
699699   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
804804   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
805805INPUT_PORTS_END
806806
807INPUT_PORTS_START( spinlbrk )
807static INPUT_PORTS_START( spinlbrk )
808808   PORT_START_TAG("IN0")
809809   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
810810   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
901901   PORT_DIPSETTING(      0x0000, "5 Points" )
902902INPUT_PORTS_END
903903
904INPUT_PORTS_START( spinlbrj )
904static INPUT_PORTS_START( spinlbrj )
905905   PORT_INCLUDE(spinlbrk)
906906
907907   PORT_MODIFY("DSW")
r1238r1239
910910   PORT_DIPSETTING(      0x0000, "6 Times" )
911911INPUT_PORTS_END
912912
913INPUT_PORTS_START( spinlbru )
913static INPUT_PORTS_START( spinlbru )
914914   PORT_INCLUDE(spinlbrk)
915915
916916   PORT_MODIFY("DSW")
r1238r1239
919919   PORT_DIPSETTING(      0x0000, "32 Hitpoints" )
920920INPUT_PORTS_END
921921
922INPUT_PORTS_START( turbofrc )
922static INPUT_PORTS_START( turbofrc )
923923   PORT_START_TAG("IN0")
924924   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
925925   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
10101010   PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START3 )
10111011INPUT_PORTS_END
10121012
1013INPUT_PORTS_START( aerofgtb )
1013static INPUT_PORTS_START( aerofgtb )
10141014   PORT_START_TAG("IN0")
10151015   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
10161016   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
10931093   /* this port is checked at 1b080 */
10941094INPUT_PORTS_END
10951095
1096INPUT_PORTS_START( aerofgt )
1096static INPUT_PORTS_START( aerofgt )
10971097   PORT_START_TAG("IN0")
10981098   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
10991099   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
11821182   PORT_DIPSETTING(      0x000b, "Taiwan" )
11831183INPUT_PORTS_END
11841184
1185INPUT_PORTS_START( wbbc97 )
1185static INPUT_PORTS_START( wbbc97 )
11861186   PORT_INCLUDE(pspikes)
11871187   PORT_MODIFY("IN0")
11881188   PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_SERVICE1 )
src/mame/drivers/rocnrope.c
r1238r1239
6161ADDRESS_MAP_END
6262
6363
64INPUT_PORTS_START( rocnrope )
64static INPUT_PORTS_START( rocnrope )
6565   PORT_START_TAG("IN0")
6666   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
6767   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/fgoal.c
r1238r1239
284284ADDRESS_MAP_END
285285
286286
287INPUT_PORTS_START( fgoal )
287static INPUT_PORTS_START( fgoal )
288288
289289   PORT_START
290290   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_TILT )
src/mame/drivers/coinmstr.c
r1238r1239
179179   AM_RANGE(0xc0, 0xc3) AM_WRITENOP
180180ADDRESS_MAP_END
181181
182INPUT_PORTS_START( quizmstr )
182static INPUT_PORTS_START( quizmstr )
183183   PORT_START
184184   PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
185185    PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1) PORT_NAME("Bookkeeping") PORT_TOGGLE /* Button 2 for second page, Button 3 erases data */
r1238r1239
281281   PORT_DIPSETTING(    0x80, DEF_STR( Yes ))
282282INPUT_PORTS_END
283283
284INPUT_PORTS_START( trailblz )
284static INPUT_PORTS_START( trailblz )
285285   PORT_START
286286   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
287287   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
393393   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
394394INPUT_PORTS_END
395395
396INPUT_PORTS_START( supnudg2 )
396static INPUT_PORTS_START( supnudg2 )
397397   PORT_START
398398   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
399399   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/docastle.c
r1238r1239
350350   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) \
351351   PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED )
352352
353INPUT_PORTS_START( docastle )
353static INPUT_PORTS_START( docastle )
354354   DOCASTLE_IN0
355355
356356   DOCASTLE_IN1
r1238r1239
384384   COINAGE_PORT
385385INPUT_PORTS_END
386386
387INPUT_PORTS_START( dorunrun )
387static INPUT_PORTS_START( dorunrun )
388388   DOCASTLE_IN0
389389
390390   DOCASTLE_IN1
r1238r1239
419419   COINAGE_PORT
420420INPUT_PORTS_END
421421
422INPUT_PORTS_START( dowild )
422static INPUT_PORTS_START( dowild )
423423   DOCASTLE_IN0
424424
425425   DOCASTLE_IN1
r1238r1239
454454   COINAGE_PORT
455455INPUT_PORTS_END
456456
457INPUT_PORTS_START( jjack )
457static INPUT_PORTS_START( jjack )
458458   DOCASTLE_IN0
459459
460460   DOCASTLE_IN1
r1238r1239
488488   COINAGE_PORT
489489INPUT_PORTS_END
490490
491INPUT_PORTS_START( kickridr )
491static INPUT_PORTS_START( kickridr )
492492   PORT_START   // IN0
493493   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
494494   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
r1238r1239
531531   COINAGE_PORT
532532INPUT_PORTS_END
533533
534INPUT_PORTS_START( idsoccer )
534static INPUT_PORTS_START( idsoccer )
535535   PORT_START   // IN0
536536   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT ) PORT_8WAY
537537   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_8WAY
src/mame/drivers/omegaf.c
r1238r1239
143143  Inputs
144144**************************************************************************/
145145
146INPUT_PORTS_START( omegaf )
146static INPUT_PORTS_START( omegaf )
147147   PORT_START         /* Player 1 inputs */
148148   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
149149   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
219219   PORT_DIPSETTING(    0x20, DEF_STR( 1C_4C ) )
220220INPUT_PORTS_END
221221
222INPUT_PORTS_START( robokid )
222static INPUT_PORTS_START( robokid )
223223   PORT_START         /* Player 1 inputs */
224224   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
225225   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
288288INPUT_PORTS_END
289289
290290
291INPUT_PORTS_START( robokidj )
291static INPUT_PORTS_START( robokidj )
292292   PORT_START         /* Player 1 inputs */
293293   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
294294   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
src/mame/drivers/expro02.c
r1238r1239
129129extern UINT16* galsnew_bg_pixram;
130130extern UINT16* galsnew_fg_pixram;
131131
132INPUT_PORTS_START( galsnew )
132static INPUT_PORTS_START( galsnew )
133133   PORT_START_TAG("DSW1")
134134   PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unused ) )
135135   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
src/mame/drivers/ultrsprt.c
r1238r1239
198198
199199/*****************************************************************************/
200200
201INPUT_PORTS_START( ultrsprt )
201static INPUT_PORTS_START( ultrsprt )
202202   PORT_START
203203   PORT_BIT( 0x4, IP_ACTIVE_HIGH, IPT_COIN1 )
204204   PORT_BIT( 0x2, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1)
src/mame/drivers/mainsnk.c
r1238r1239
155155   AM_RANGE(0x00, 0x00) AM_READNOP
156156ADDRESS_MAP_END
157157
158INPUT_PORTS_START( mainsnk )
158static INPUT_PORTS_START( mainsnk )
159159   PORT_START
160160   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
161161   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
204204   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
205205INPUT_PORTS_END
206206
207INPUT_PORTS_START( canvas )
207static INPUT_PORTS_START( canvas )
208208   PORT_START
209209   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
210210   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
src/mame/drivers/mystston.c
r1238r1239
106106ADDRESS_MAP_END
107107
108108
109INPUT_PORTS_START( mystston )
109static INPUT_PORTS_START( mystston )
110110   PORT_START   /* IN0 */
111111   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY
112112   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
src/mame/drivers/midyunit.c
r1238r1239
114114 *
115115 *************************************/
116116
117INPUT_PORTS_START( narc )
117static INPUT_PORTS_START( narc )
118118   PORT_START
119119   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
120120   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
164164INPUT_PORTS_END
165165
166166
167INPUT_PORTS_START( trog )
167static INPUT_PORTS_START( trog )
168168   PORT_START
169169   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
170170   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
259259INPUT_PORTS_END
260260
261261
262INPUT_PORTS_START( smashtv )
262static INPUT_PORTS_START( smashtv )
263263   PORT_START
264264   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_PLAYER(1)
265265   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_PLAYER(1)
r1238r1239
355355INPUT_PORTS_END
356356
357357
358INPUT_PORTS_START( strkforc )
358static INPUT_PORTS_START( strkforc )
359359   PORT_START
360360   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
361361   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
451451INPUT_PORTS_END
452452
453453
454INPUT_PORTS_START( mkla2 )
454static INPUT_PORTS_START( mkla2 )
455455   PORT_START
456456   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
457457   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
543543INPUT_PORTS_END
544544
545545
546INPUT_PORTS_START( mkla4 )
546static INPUT_PORTS_START( mkla4 )
547547   PORT_START
548548   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
549549   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
638638INPUT_PORTS_END
639639
640640
641INPUT_PORTS_START( term2 )
641static INPUT_PORTS_START( term2 )
642642   PORT_START
643643   PORT_BIT( 0x000f, IP_ACTIVE_LOW, IPT_UNUSED )
644644   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
r1238r1239
734734INPUT_PORTS_END
735735
736736
737INPUT_PORTS_START( totcarn )
737static INPUT_PORTS_START( totcarn )
738738   PORT_START
739739   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_PLAYER(1)
740740   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_PLAYER(1)
r1238r1239
12311231   ROM_RELOAD(                0x60000, 0x10000 )
12321232
12331233   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) )
1251ROM_END
1252
1253
1254ROM_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 */
12341264   ROM_LOAD16_BYTE( "u105-la4",  0xc0000, 0x20000, CRC(e6095189) SHA1(a2caaf64e371050b37c63d9608ba5d289cf3cd91) )
12351265   ROM_LOAD16_BYTE( "u89-la4",   0xc0001, 0x20000, CRC(fdd7cc65) SHA1(bfc4339953c122bca968f9cfa3a82df3584a3727) )
12361266
r1238r1239
20452075GAME( 1988, narc,     0,        zunit,                 narc,     narc,     ROT0, "Williams", "Narc (rev 7.00)", GAME_SUPPORTS_SAVE )
20462076GAME( 1988, narc3,    narc,     zunit,                 narc,     narc,     ROT0, "Williams", "Narc (rev 3.20)", GAME_SUPPORTS_SAVE )
20472077
2048GAME( 1990, trog,     0,        yunit_cvsd_4bit_slow,  trog,     trog,     ROT0, "Midway",   "Trog (rev LA4 03/11/91)", GAME_SUPPORTS_SAVE )
2078GAME( 1990, trog,     0,        yunit_cvsd_4bit_slow,  trog,     trog,     ROT0, "Midway",   "Trog (rev LA5 03/29/91)", GAME_SUPPORTS_SAVE )
2079GAME( 1990, trog4,    trog,     yunit_cvsd_4bit_slow,  trog,     trog,     ROT0, "Midway",   "Trog (rev LA4 03/11/91)", GAME_SUPPORTS_SAVE )
20492080GAME( 1990, trog3,    trog,     yunit_cvsd_4bit_slow,  trog,     trog,     ROT0, "Midway",   "Trog (rev LA3 02/14/91)", GAME_SUPPORTS_SAVE )
20502081GAME( 1990, trogpa6,  trog,     yunit_cvsd_4bit_slow,  trog,     trog,     ROT0, "Midway",   "Trog (rev PA6-PAC 09/09/90)", GAME_SUPPORTS_SAVE )
20512082GAME( 1990, trogp,    trog,     yunit_cvsd_4bit_slow,  trog,     trog,     ROT0, "Midway",   "Trog (prototype, rev 4.00 07/27/90)", GAME_SUPPORTS_SAVE )
src/mame/drivers/hitme.c
r1238r1239
353353 *
354354 *************************************/
355355
356INPUT_PORTS_START( hitme )
356static INPUT_PORTS_START( hitme )
357357   PORT_START
358358   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )               /* Start button */
359359   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )               /* Always high */
r1238r1239
430430INPUT_PORTS_END
431431
432432
433INPUT_PORTS_START( barricad )
433static INPUT_PORTS_START( barricad )
434434   PORT_START
435435   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )                     /* Start button */
436436   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )                     /* Always high */
src/mame/drivers/rampart.c
r1238r1239
201201 *
202202 *************************************/
203203
204INPUT_PORTS_START( rampart )
204static INPUT_PORTS_START( rampart )
205205   PORT_START
206206   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) // alternate button1
207207   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3)
r1238r1239
243243INPUT_PORTS_END
244244
245245
246INPUT_PORTS_START( ramprt2p )
246static INPUT_PORTS_START( ramprt2p )
247247   PORT_START
248248   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) // alternate button1
249249   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3)
r1238r1239
295295INPUT_PORTS_END
296296
297297
298INPUT_PORTS_START( rampartj )
298static INPUT_PORTS_START( rampartj )
299299   PORT_START
300300   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED )
301301   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNUSED )
src/mame/drivers/senjyo.c
r1238r1239
319319
320320
321321
322INPUT_PORTS_START( senjyo )
322static INPUT_PORTS_START( senjyo )
323323   PORT_START   /* IN0 */
324324   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
325325   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
400400   PORT_DIPSETTING(    0xc0, DEF_STR( Hardest ) )
401401INPUT_PORTS_END
402402
403INPUT_PORTS_START( starforc )
403static INPUT_PORTS_START( starforc )
404404   PORT_START   /* IN0 */
405405   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
406406   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
481481   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
482482INPUT_PORTS_END
483483
484INPUT_PORTS_START( baluba )
484static INPUT_PORTS_START( baluba )
485485   PORT_START   /* IN0 */
486486   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
487487   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
src/mame/drivers/yiear.c
r1238r1239
115115
116116
117117
118INPUT_PORTS_START( yiear )
118static INPUT_PORTS_START( yiear )
119119   PORT_START   /* IN0 */
120120   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
121121   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/murogem.c
r1238r1239
111111ADDRESS_MAP_END
112112
113113
114INPUT_PORTS_START( murogem )
114static INPUT_PORTS_START( murogem )
115115   PORT_START
116116   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_CODE(KEYCODE_1) PORT_NAME("Bet (Replay)")
117117   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_CODE(KEYCODE_2) PORT_NAME("Deal")
src/mame/drivers/snowbros.c
r1238r1239
561561   AM_RANGE(0xa00000, 0xa00001) AM_WRITE(MWA16_NOP)   /* IRQ 2 acknowledge? */
562562ADDRESS_MAP_END
563563
564INPUT_PORTS_START( snowbros )
564static INPUT_PORTS_START( snowbros )
565565   PORT_START_TAG("DSW")   /* 500001 */
566566   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Region ) )
567567   PORT_DIPSETTING(    0x00, DEF_STR( Europe ) )
r1238r1239
642642   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
643643INPUT_PORTS_END
644644
645INPUT_PORTS_START( snowbroj )
645static INPUT_PORTS_START( snowbroj )
646646   PORT_START   /* 500001 */
647647   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
648648   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
r1238r1239
716716   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
717717INPUT_PORTS_END
718718
719INPUT_PORTS_START( honeydol )
719static INPUT_PORTS_START( honeydol )
720720   PORT_START_TAG("DSW")
721721   PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Coinage ) )
722722   PORT_DIPSETTING(      0x0000, DEF_STR( 3C_1C ) )
r1238r1239
792792   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
793793INPUT_PORTS_END
794794
795INPUT_PORTS_START( twinadv )
795static INPUT_PORTS_START( twinadv )
796796   PORT_START_TAG("DSW")
797797   PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Coinage ) )
798798   PORT_DIPSETTING(      0x0000, DEF_STR( 3C_1C ) )
r1238r1239
870870   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
871871INPUT_PORTS_END
872872
873INPUT_PORTS_START( 4in1boot )
873static INPUT_PORTS_START( 4in1boot )
874874   PORT_START   /* 500001 */
875875   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) )
876876   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
952952   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
953953INPUT_PORTS_END
954954
955INPUT_PORTS_START( hyperpac )
955static INPUT_PORTS_START( hyperpac )
956956   PORT_START   /* 500000.w */
957957   PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds ) )
958958   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
r1238r1239
10291029   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
10301030INPUT_PORTS_END
10311031
1032INPUT_PORTS_START( cookbib2 )
1032static INPUT_PORTS_START( cookbib2 )
10331033   PORT_START   /* 500000.w */
10341034   PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds ) )
10351035   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
r1238r1239
11061106   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
11071107INPUT_PORTS_END
11081108
1109INPUT_PORTS_START( cookbib3 )
1109static INPUT_PORTS_START( cookbib3 )
11101110   PORT_START   /* 500000.w */
11111111   PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds ) )
11121112   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
r1238r1239
11841184   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
11851185INPUT_PORTS_END
11861186
1187INPUT_PORTS_START( moremore )
1187static INPUT_PORTS_START( moremore )
11881188   PORT_START   /* 500000.w */
11891189   PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds ) )
11901190   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
r1238r1239
12621262   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
12631263INPUT_PORTS_END
12641264
1265INPUT_PORTS_START( toppyrap )
1265static INPUT_PORTS_START( toppyrap )
12661266   PORT_START   /* 500000.w */
12671267   PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds ) )
12681268   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
r1238r1239
13371337   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
13381338INPUT_PORTS_END
13391339
1340INPUT_PORTS_START( finalttr )
1340static INPUT_PORTS_START( finalttr )
13411341   PORT_START   /* 500001 */
13421342   PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Demo_Sounds ) )
13431343   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
src/mame/drivers/mhavoc.c
r1238r1239
334334 *
335335 *************************************/
336336
337INPUT_PORTS_START( mhavoc )
337static INPUT_PORTS_START( mhavoc )
338338   PORT_START   /* IN0 - alpha (player_1 = 0) */
339339   PORT_BIT ( 0x03, IP_ACTIVE_HIGH, IPT_SPECIAL )
340340   PORT_BIT ( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )
r1238r1239
407407INPUT_PORTS_END
408408
409409
410INPUT_PORTS_START( mhavocp )
410static INPUT_PORTS_START( mhavocp )
411411   PORT_START   /* IN0 - alpha (player_1 = 0) */
412412   PORT_BIT ( 0x0f, IP_ACTIVE_HIGH, IPT_SPECIAL )
413413   PORT_BIT ( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
477477INPUT_PORTS_END
478478
479479
480INPUT_PORTS_START( alphaone )
480static INPUT_PORTS_START( alphaone )
481481   PORT_START   /* IN0 - alpha (player_1 = 0) */
482482   PORT_BIT ( 0x03, IP_ACTIVE_HIGH, IPT_SPECIAL )
483483   PORT_BIT ( 0x7c, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/bzone.c
r1238r1239
423423   PORT_DIPSETTING (  0x60, "6 credits/4 coins" )\
424424     PORT_DIPSETTING (  0x80, "6 credits/5 coins" )
425425
426INPUT_PORTS_START( bzone )
426static INPUT_PORTS_START( bzone )
427427BZONEIN0
428428BZONEDSW0
429429BZONEDSW1
r1238r1239
440440INPUT_PORTS_END
441441
442442
443INPUT_PORTS_START( redbaron )
443static INPUT_PORTS_START( redbaron )
444444BZONEIN0
445445   PORT_START_TAG("DSW0")
446446   /* See the table above if you are really interested */
r1238r1239
494494INPUT_PORTS_END
495495
496496
497INPUT_PORTS_START( bradley )
497static INPUT_PORTS_START( bradley )
498498BZONEIN0
499499BZONEDSW0
500500BZONEDSW1
src/mame/drivers/nbmj9195.c
r1238r1239
19711971   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 )
19721972
19731973
1974INPUT_PORTS_START( mjuraden )
1974static INPUT_PORTS_START( mjuraden )
19751975
19761976   // I don't have manual for this game.
19771977
r1238r1239
20502050   MJCTRL_NBMJ9195_TYPE1_PORT10
20512051INPUT_PORTS_END
20522052
2053INPUT_PORTS_START( koinomp )
2053static INPUT_PORTS_START( koinomp )
20542054
20552055   // I don't have manual for this game.
20562056
r1238r1239
21292129   MJCTRL_NBMJ9195_TYPE1_PORT10
21302130INPUT_PORTS_END
21312131
2132INPUT_PORTS_START( patimono )
2132static INPUT_PORTS_START( patimono )
21332133
21342134   // I don't have manual for this game.
21352135
r1238r1239
22082208   MJCTRL_NBMJ9195_TYPE1_PORT10
22092209INPUT_PORTS_END
22102210
2211INPUT_PORTS_START( janbari )
2211static INPUT_PORTS_START( janbari )
22122212
22132213   // I don't have manual for this game.
22142214
r1238r1239
22872287   MJCTRL_NBMJ9195_TYPE1_PORT10
22882288INPUT_PORTS_END
22892289
2290INPUT_PORTS_START( mjanbari )
2290static INPUT_PORTS_START( mjanbari )
22912291
22922292   // I don't have manual for this game.
22932293
r1238r1239
23662366   MJCTRL_NBMJ9195_TYPE1_PORT10
23672367INPUT_PORTS_END
23682368
2369INPUT_PORTS_START( mmehyou )
2369static INPUT_PORTS_START( mmehyou )
23702370
23712371   // I don't have manual for this game.
23722372
r1238r1239
24452445   MJCTRL_NBMJ9195_TYPE1_PORT10
24462446INPUT_PORTS_END
24472447
2448INPUT_PORTS_START( ultramhm )
2448static INPUT_PORTS_START( ultramhm )
24492449
24502450   // I don't have manual for this game.
24512451
r1238r1239
25242524   MJCTRL_NBMJ9195_TYPE1_PORT10
25252525INPUT_PORTS_END
25262526
2527INPUT_PORTS_START( gal10ren )
2527static INPUT_PORTS_START( gal10ren )
25282528
25292529   // I don't have manual for this game.
25302530
r1238r1239
26032603   MJCTRL_NBMJ9195_TYPE1_PORT10
26042604INPUT_PORTS_END
26052605
2606INPUT_PORTS_START( renaiclb )
2606static INPUT_PORTS_START( renaiclb )
26072607
26082608   // I don't have manual for this game.
26092609
r1238r1239
26822682   MJCTRL_NBMJ9195_TYPE1_PORT10
26832683INPUT_PORTS_END
26842684
2685INPUT_PORTS_START( mjlaman )
2685static INPUT_PORTS_START( mjlaman )
26862686   PORT_START   /* (0) DIPSW-A */
26872687   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) )
26882688   PORT_DIPSETTING(    0x00, DEF_STR( 2C_1C ) )
r1238r1239
27572757   MJCTRL_NBMJ9195_TYPE1_PORT10
27582758INPUT_PORTS_END
27592759
2760INPUT_PORTS_START( mkeibaou )
2760static INPUT_PORTS_START( mkeibaou )
27612761   PORT_START   /* (0) DIPSW-A */
27622762   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
27632763   PORT_DIPSETTING(    0x03, "1" )
r1238r1239
28322832   MJCTRL_NBMJ9195_TYPE1_PORT10
28332833INPUT_PORTS_END
28342834
2835INPUT_PORTS_START( pachiten )
2835static INPUT_PORTS_START( pachiten )
28362836   PORT_START   /* (0) DIPSW-A */
28372837   PORT_DIPNAME( 0x07, 0x07, "Game Out" )
28382838   PORT_DIPSETTING(    0x07, "90% (Easy)" )
r1238r1239
29062906   MJCTRL_NBMJ9195_TYPE1_PORT10
29072907INPUT_PORTS_END
29082908
2909INPUT_PORTS_START( sailorws )
2909static INPUT_PORTS_START( sailorws )
29102910   PORT_START   /* (0) DIPSW-A */
29112911   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
29122912   PORT_DIPSETTING(    0x03, "1" )
r1238r1239
29812981   MJCTRL_NBMJ9195_TYPE1_PORT10
29822982INPUT_PORTS_END
29832983
2984INPUT_PORTS_START( sailorwr )
2984static INPUT_PORTS_START( sailorwr )
29852985   PORT_START   /* (0) DIPSW-A */
29862986   PORT_DIPNAME( 0x07, 0x07, "Game Out" )
29872987   PORT_DIPSETTING(    0x07, "90% (Easy)" )
r1238r1239
30553055   MJCTRL_NBMJ9195_TYPE1_PORT10
30563056INPUT_PORTS_END
30573057
3058INPUT_PORTS_START( psailor1 )
3058static INPUT_PORTS_START( psailor1 )
30593059   PORT_START   /* (0) DIPSW-A */
30603060   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) )
30613061   PORT_DIPSETTING(    0x00, DEF_STR( 2C_1C ) )
r1238r1239
31293129   MJCTRL_NBMJ9195_TYPE1_PORT10
31303130INPUT_PORTS_END
31313131
3132INPUT_PORTS_START( psailor2 )
3132static INPUT_PORTS_START( psailor2 )
31333133   PORT_START   /* (0) DIPSW-A */
31343134   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) )
31353135   PORT_DIPSETTING(    0x00, DEF_STR( 2C_1C ) )
r1238r1239
32033203   MJCTRL_NBMJ9195_TYPE1_PORT10
32043204INPUT_PORTS_END
32053205
3206INPUT_PORTS_START( otatidai )
3206static INPUT_PORTS_START( otatidai )
32073207
32083208   // I don't have manual for this game.
32093209
r1238r1239
32803280   MJCTRL_NBMJ9195_TYPE1_PORT10
32813281INPUT_PORTS_END
32823282
3283INPUT_PORTS_START( wcatcher )
3283static INPUT_PORTS_START( wcatcher )
32843284
32853285   // I don't have manual for this game.
32863286
r1238r1239
33583358   MJCTRL_NBMJ9195_TYPE1_PORT10
33593359INPUT_PORTS_END
33603360
3361INPUT_PORTS_START( yosimoto )
3361static INPUT_PORTS_START( yosimoto )
33623362
33633363   // I don't have manual for this game.
33643364
r1238r1239
34353435   MJCTRL_NBMJ9195_TYPE1_PORT10
34363436INPUT_PORTS_END
34373437
3438INPUT_PORTS_START( jituroku )
3438static INPUT_PORTS_START( jituroku )
34393439
34403440   // I don't have manual for this game.
34413441
r1238r1239
35143514   MJCTRL_NBMJ9195_TYPE1_PORT10
35153515INPUT_PORTS_END
35163516
3517INPUT_PORTS_START( ngpgal )
3517static INPUT_PORTS_START( ngpgal )
35183518   PORT_START   /* (0) DIPSW-A */
35193519   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
35203520   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
35903590   MJCTRL_NBMJ9195_TYPE1_PORT10
35913591INPUT_PORTS_END
35923592
3593INPUT_PORTS_START( mjgottsu )
3593static INPUT_PORTS_START( mjgottsu )
35943594   PORT_START   /* (0) DIPSW-A */
35953595   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
35963596   PORT_DIPSETTING(    0x03, "1" )
r1238r1239
36653665   MJCTRL_NBMJ9195_TYPE1_PORT10
36663666INPUT_PORTS_END
36673667
3668INPUT_PORTS_START( bakuhatu )
3668static INPUT_PORTS_START( bakuhatu )
36693669   PORT_START   /* (0) DIPSW-A */
36703670   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
36713671   PORT_DIPSETTING(    0x03, "1" )
r1238r1239
37403740   MJCTRL_NBMJ9195_TYPE1_PORT10
37413741INPUT_PORTS_END
37423742
3743INPUT_PORTS_START( cmehyou )
3743static INPUT_PORTS_START( cmehyou )
37443744   PORT_START   /* (0) DIPSW-A */
37453745   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
37463746   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
38163816   MJCTRL_NBMJ9195_TYPE1_PORT10
38173817INPUT_PORTS_END
38183818
3819INPUT_PORTS_START( mjkoiura )
3819static INPUT_PORTS_START( mjkoiura )
38203820   PORT_START   /* (0) DIPSW-A */
38213821   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
38223822   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
38923892   MJCTRL_NBMJ9195_TYPE1_PORT10
38933893INPUT_PORTS_END
38943894
3895INPUT_PORTS_START( mscoutm )
3895static INPUT_PORTS_START( mscoutm )
38963896   PORT_START   /* (0) DIPSW-A */
38973897   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
38983898   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
39673967   MJCTRL_NBMJ9195_TYPE2_PORT10
39683968INPUT_PORTS_END
39693969
3970INPUT_PORTS_START( imekura )
3970static INPUT_PORTS_START( imekura )
39713971   PORT_START   /* (0) DIPSW-A */
39723972   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
39733973   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
40424042   MJCTRL_NBMJ9195_TYPE2_PORT10
40434043INPUT_PORTS_END
40444044
4045INPUT_PORTS_START( mjegolf )
4045static INPUT_PORTS_START( mjegolf )
40464046   PORT_START   /* (0) DIPSW-A */
40474047   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
40484048   PORT_DIPSETTING(    0x07, "1 (Easy)" )
src/mame/drivers/sonson.c
r1238r1239
115115
116116
117117
118INPUT_PORTS_START( sonson )
118static INPUT_PORTS_START( sonson )
119119   PORT_START   /* IN0 */
120120   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
121121   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* probably unused */
src/mame/drivers/sslam.c
r1238r1239
502502
503503/* Input Ports */
504504
505INPUT_PORTS_START( sslam )
505static INPUT_PORTS_START( sslam )
506506   PORT_START_TAG("IN0")
507507   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
508508   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )
r1238r1239
604604   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
605605INPUT_PORTS_END
606606
607INPUT_PORTS_START( powerbls )
607static INPUT_PORTS_START( powerbls )
608608   PORT_START_TAG("IN0")
609609   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
610610   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )
src/mame/drivers/simpl156.c
r1238r1239
105105extern VIDEO_UPDATE( simpl156 );
106106
107107
108INPUT_PORTS_START( simpl156 )
108static INPUT_PORTS_START( simpl156 )
109109   PORT_START   /* 16bit */
110110   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
111111   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/lgp.c
r1238r1239
165165
166166/* PORTS */
167167/*  (DIPLOCATION diplay inverted) */
168INPUT_PORTS_START( lgp )
168static INPUT_PORTS_START( lgp )
169169   PORT_START_TAG("DSWA")
170170   PORT_DIPNAME( 0x03, 0x03, "1st Round" ) PORT_DIPLOCATION("SWA:2,1")
171171   PORT_DIPSETTING(    0x03, "68 Seconds" )
src/mame/drivers/hcastle.c
r1238r1239
116116
117117/*****************************************************************************/
118118
119INPUT_PORTS_START( hcastle )
119static INPUT_PORTS_START( hcastle )
120120   PORT_START   /* IN0 */
121121   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
122122   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/deadang.c
r1238r1239
7070
7171/* Input Ports */
7272
73INPUT_PORTS_START( deadang )
73static INPUT_PORTS_START( deadang )
7474   SEIBU_COIN_INPUTS   /* Must be port 0: coin inputs read through sound cpu */
7575
7676   PORT_START   /* IN0 */
r1238r1239
136136   PORT_DIPSETTING(    0x8000, "Overseas" )
137137INPUT_PORTS_END
138138
139INPUT_PORTS_START( ghunter )
139static INPUT_PORTS_START( ghunter )
140140   SEIBU_COIN_INPUTS   /* Must be port 0: coin inputs read through sound cpu */
141141
142142   PORT_START   /* IN0 */
src/mame/drivers/cliffhgr.c
r1238r1239
308308 *
309309 *************************************/
310310
311INPUT_PORTS_START( cliffhgr )
311static INPUT_PORTS_START( cliffhgr )
312312   PORT_START_TAG("BANK0")
313313   PORT_BIT ( 0x3F, IP_ACTIVE_LOW, IPT_UNUSED )
314314   PORT_BIT ( 0x40, IP_ACTIVE_LOW, IPT_SERVICE2 )   /* SW2 on CPU PCB */
r1238r1239
438438   PORT_BIT ( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )
439439INPUT_PORTS_END
440440
441INPUT_PORTS_START( cliffhga )
441static INPUT_PORTS_START( cliffhga )
442442   PORT_START_TAG("BANK0")
443443   PORT_BIT ( 0x3F, IP_ACTIVE_LOW, IPT_UNUSED )
444444   PORT_BIT ( 0x40, IP_ACTIVE_LOW, IPT_SERVICE2 )   /* SW2 on CPU PCB */
r1238r1239
574574   PORT_BIT ( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )
575575INPUT_PORTS_END
576576
577INPUT_PORTS_START( goaltogo )
577static INPUT_PORTS_START( goaltogo )
578578   PORT_START_TAG("BANK0")
579579   PORT_BIT ( 0x3F, IP_ACTIVE_LOW, IPT_UNUSED )
580580   PORT_BIT ( 0x40, IP_ACTIVE_LOW, IPT_SERVICE2 )   /* SW2 on CPU PCB */
src/mame/drivers/copsnrob.c
r1238r1239
136136 *
137137 *************************************/
138138
139INPUT_PORTS_START( copsnrob )
139static INPUT_PORTS_START( copsnrob )
140140   PORT_START      /* IN0 */
141141   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_VBLANK )
142142
src/mame/drivers/artmagic.c
r1238r1239
489489 *
490490 *************************************/
491491
492INPUT_PORTS_START( artmagic )
492static INPUT_PORTS_START( artmagic )
493493   PORT_START_TAG("300000")
494494   PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
495495   PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
r1238r1239
580580INPUT_PORTS_END
581581
582582
583INPUT_PORTS_START( cheesech )
583static INPUT_PORTS_START( cheesech )
584584   PORT_INCLUDE(artmagic)
585585
586586   PORT_MODIFY("300004")
r1238r1239
605605INPUT_PORTS_END
606606
607607
608INPUT_PORTS_START( ultennis )
608static INPUT_PORTS_START( ultennis )
609609   PORT_INCLUDE(artmagic)
610610
611611   PORT_MODIFY("300004")
r1238r1239
634634INPUT_PORTS_END
635635
636636
637INPUT_PORTS_START( stonebal )
637static INPUT_PORTS_START( stonebal )
638638   PORT_INCLUDE(artmagic)
639639
640640   PORT_MODIFY("300004")
src/mame/drivers/cntsteer.c
r1238r1239
484484
485485
486486/***************************************************************************/
487INPUT_PORTS_START( cntsteer )
487static INPUT_PORTS_START( cntsteer )
488488   PORT_START
489489   PORT_DIPNAME( 0x01, 0x01, "0" )
490490   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
563563INPUT_PORTS_END
564564
565565
566INPUT_PORTS_START( zerotrgt )
566static INPUT_PORTS_START( zerotrgt )
567567   PORT_START
568568   PORT_DIPNAME( 0x01, 0x01, "0" )
569569   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
src/mame/drivers/twincobr.c
r1238r1239
384384
385385
386386
387INPUT_PORTS_START( twincobr )
387static INPUT_PORTS_START( twincobr )
388388   TWINCOBR_VBLANK_INPUT( IP_ACTIVE_HIGH )
389389   TOAPLAN_PLAYER_INPUT( 1 )
390390   TOAPLAN_PLAYER_INPUT( 2 )
r1238r1239
417417   TWINCOBR_SYSTEM_INPUTS
418418INPUT_PORTS_END
419419
420INPUT_PORTS_START( twincobu )
420static INPUT_PORTS_START( twincobu )
421421   TWINCOBR_VBLANK_INPUT( IP_ACTIVE_HIGH )
422422   TOAPLAN_PLAYER_INPUT( 1 )
423423   TOAPLAN_PLAYER_INPUT( 2 )
r1238r1239
450450   TWINCOBR_SYSTEM_INPUTS
451451INPUT_PORTS_END
452452
453INPUT_PORTS_START( ktiger )
453static INPUT_PORTS_START( ktiger )
454454   TWINCOBR_VBLANK_INPUT( IP_ACTIVE_HIGH )
455455   TOAPLAN_PLAYER_INPUT( 1 )
456456   TOAPLAN_PLAYER_INPUT( 2 )
r1238r1239
482482   TWINCOBR_SYSTEM_INPUTS
483483INPUT_PORTS_END
484484
485INPUT_PORTS_START( fshark )
485static INPUT_PORTS_START( fshark )
486486   FSHARK_SYSTEM_INPUTS
487487   TOAPLAN_PLAYER_INPUT( 1 )
488488   TOAPLAN_PLAYER_INPUT( 2 )
r1238r1239
514514   FSHARK_DSW_B
515515INPUT_PORTS_END
516516
517INPUT_PORTS_START( skyshark )
517static INPUT_PORTS_START( skyshark )
518518   FSHARK_SYSTEM_INPUTS
519519   TOAPLAN_PLAYER_INPUT( 1 )
520520   TOAPLAN_PLAYER_INPUT( 2 )
r1238r1239
546546   FSHARK_DSW_B
547547INPUT_PORTS_END
548548
549INPUT_PORTS_START( hishouza )
549static INPUT_PORTS_START( hishouza )
550550   FSHARK_SYSTEM_INPUTS
551551   TOAPLAN_PLAYER_INPUT( 1 )
552552   TOAPLAN_PLAYER_INPUT( 2 )
r1238r1239
554554   FSHARK_DSW_B
555555INPUT_PORTS_END
556556
557INPUT_PORTS_START( gulfwar2 )
557static INPUT_PORTS_START( gulfwar2 )
558558   TWINCOBR_VBLANK_INPUT( IP_ACTIVE_LOW )
559559   TOAPLAN_PLAYER_INPUT( 1 )
560560   TOAPLAN_PLAYER_INPUT( 2 )
src/mame/drivers/hexion.c
r1238r1239
143143
144144
145145
146INPUT_PORTS_START( hexion )
146static INPUT_PORTS_START( hexion )
147147   PORT_START
148148   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
149149   PORT_DIPSETTING(    0x02, DEF_STR( 4C_1C ) )
src/mame/drivers/battlnts.c
r1238r1239
100100
101101***************************************************************************/
102102
103INPUT_PORTS_START( battlnts )
103static INPUT_PORTS_START( battlnts )
104104   PORT_START   /* DSW #1 */
105105   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
106106   PORT_DIPSETTING(   0x02, DEF_STR( 4C_1C ) )
r1238r1239
197197   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
198198INPUT_PORTS_END
199199
200INPUT_PORTS_START( thehustj )
200static INPUT_PORTS_START( thehustj )
201201   PORT_START   /* DSW #1 */
202202   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
203203   PORT_DIPSETTING(   0x02, DEF_STR( 4C_1C ) )
src/mame/drivers/dblewing.c
r1238r1239
393393   GFXDECODE_ENTRY( REGION_GFX2, 0, spritelayout,        0x200, 32 )   /* Sprites (16x16) */
394394GFXDECODE_END
395395
396INPUT_PORTS_START( dblewing )
396static INPUT_PORTS_START( dblewing )
397397   PORT_START   /* 16bit */
398398   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
399399   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/galpani2.c
r1238r1239
325325
326326***************************************************************************/
327327
328INPUT_PORTS_START( galpani2 )
328static INPUT_PORTS_START( galpani2 )
329329   PORT_START_TAG("IN0")   // IN0 - DSW + Player - 780000.w
330330   PORT_DIPNAME( 0x0007, 0x0007, "Unknown 2-0&1&2*" )
331331   PORT_DIPSETTING(      0x007, "7" )
src/mame/drivers/arabian.c
r1238r1239
241241 *
242242 *************************************/
243243
244INPUT_PORTS_START( arabian )
244static INPUT_PORTS_START( arabian )
245245   PORT_START_TAG("IN0")
246246   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
247247   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
src/mame/drivers/labyrunr.c
r1238r1239
9494
9595***************************************************************************/
9696
97INPUT_PORTS_START( labyrunr )
97static INPUT_PORTS_START( labyrunr )
9898   PORT_START   /* DSW #1 */
9999   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
100100   PORT_DIPSETTING(    0x02, DEF_STR( 4C_1C ) )
src/mame/drivers/shougi.c
r1238r1239
329329   AM_RANGE(0x0000, 0x03ff) AM_RAM AM_SHARE(1)
330330ADDRESS_MAP_END
331331
332INPUT_PORTS_START( shougi )
332static INPUT_PORTS_START( shougi )
333333   PORT_START   /* Player 1 controls */
334334   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START2 )//+-
335335   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 )//+-
src/mame/drivers/hornet.c
r1238r1239
741741
742742/*****************************************************************************/
743743
744INPUT_PORTS_START( hornet )
744static INPUT_PORTS_START( hornet )
745745   PORT_START
746746   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 )
747747   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
797797
798798INPUT_PORTS_END
799799
800INPUT_PORTS_START( sscope )
800static INPUT_PORTS_START( sscope )
801801   PORT_START
802802   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 )
803803   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/thief.c
r1238r1239
225225
226226/**********************************************************/
227227
228INPUT_PORTS_START( sharkatt )
228static INPUT_PORTS_START( sharkatt )
229229   PORT_START      /* IN0 */
230230   PORT_DIPNAME( 0x7f, 0x7f, DEF_STR( Coinage ) )
231231   PORT_DIPSETTING(    0x00, DEF_STR( 2C_1C ) )
r1238r1239
278278   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL
279279INPUT_PORTS_END
280280
281INPUT_PORTS_START( thief )
281static INPUT_PORTS_START( thief )
282282   PORT_START
283283   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) )
284284   PORT_DIPSETTING(    0x01, DEF_STR( 2C_1C ) )
r1238r1239
347347   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
348348INPUT_PORTS_END
349349
350INPUT_PORTS_START( natodef )
350static INPUT_PORTS_START( natodef )
351351   PORT_START
352352   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) )
353353   PORT_DIPSETTING(    0x01, DEF_STR( 2C_1C ) )
src/mame/drivers/pipedrm.c
r1238r1239
293293 *
294294 *************************************/
295295
296INPUT_PORTS_START( pipedrm )
296static INPUT_PORTS_START( pipedrm )
297297   PORT_START   /* $20 */
298298   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
299299   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
384384INPUT_PORTS_END
385385
386386
387INPUT_PORTS_START( hatris )
387static INPUT_PORTS_START( hatris )
388388   PORT_START   /* $20 */
389389   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
390390   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/ccastles.c
r1238r1239
372372 *
373373 *************************************/
374374
375INPUT_PORTS_START( ccastles )
375static INPUT_PORTS_START( ccastles )
376376   PORT_START   /* IN0 */
377377   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 )
378378   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 )
src/mame/drivers/ddragon3.c
r1238r1239
200200
201201/* Input Ports */
202202
203INPUT_PORTS_START( ddragon3 )
203static INPUT_PORTS_START( ddragon3 )
204204   PORT_START
205205   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
206206   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
279279   PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
280280INPUT_PORTS_END
281281
282INPUT_PORTS_START( ddrago3b )
282static INPUT_PORTS_START( ddrago3b )
283283   PORT_START
284284   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
285285   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
360360   PORT_BIT( 0xfc00, IP_ACTIVE_LOW, IPT_UNUSED )
361361INPUT_PORTS_END
362362
363INPUT_PORTS_START( ctribe )
363static INPUT_PORTS_START( ctribe )
364364   PORT_START
365365   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
366366   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
src/mame/drivers/sprint2.c
r1238r1239
312312ADDRESS_MAP_END
313313
314314
315INPUT_PORTS_START( sprint2 )
315static INPUT_PORTS_START( sprint2 )
316316   PORT_START
317317   PORT_DIPNAME( 0x01, 0x00, "Tracks on Demo" )
318318   PORT_DIPSETTING(    0x00, "Easy Track Only" )
r1238r1239
384384INPUT_PORTS_END
385385
386386
387INPUT_PORTS_START( sprint1 )
387static INPUT_PORTS_START( sprint1 )
388388   PORT_START
389389   PORT_DIPNAME( 0x01, 0x00, "Change Track" )
390390   PORT_DIPSETTING(    0x01, "Every Lap" )
r1238r1239
441441INPUT_PORTS_END
442442
443443
444INPUT_PORTS_START( dominos )
444static INPUT_PORTS_START( dominos )
445445   PORT_START
446446   PORT_DIPNAME( 0x03, 0x01, "Points to Win" )
447447   PORT_DIPSETTING(   0x03, "6" )
src/mame/drivers/exterm.c
r1238r1239
371371 *
372372 *************************************/
373373
374INPUT_PORTS_START( exterm )
374static INPUT_PORTS_START( exterm )
375375   PORT_START      /* IN0 */
376376   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
377377   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START1 )
src/mame/drivers/dragrace.c
r1238r1239
189189ADDRESS_MAP_END
190190
191191
192INPUT_PORTS_START( dragrace )
192static INPUT_PORTS_START( dragrace )
193193   PORT_START /* IN0 */
194194   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Player 1 Gas") PORT_PLAYER(1)
195195   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) /* player 1 gear 1 */
src/mame/drivers/discoboy.c
r1238r1239
364364
365365
366366
367INPUT_PORTS_START( discoboy )
367static INPUT_PORTS_START( discoboy )
368368    PORT_START      /* DSWA */
369369   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) )          PORT_DIPLOCATION("SWA:6,7,8")
370370    PORT_DIPSETTING(    0x00, DEF_STR( 4C_1C ) )
src/mame/drivers/mediagx.c
r1238r1239
781781   GFXDECODE_ENTRY( REGION_GFX1, 0x1800, CGA_charlayout,              0, 256 )   /* Font 3*/
782782GFXDECODE_END
783783
784INPUT_PORTS_START(mediagx)
784static INPUT_PORTS_START(mediagx)
785785   PORT_START
786786   PORT_BIT( 0x001, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2)
787787   PORT_BIT( 0x002, IP_ACTIVE_HIGH, IPT_SERVICE1 )
src/mame/drivers/ambush.c
r1238r1239
9191ADDRESS_MAP_END
9292
9393
94INPUT_PORTS_START( ambush )
94static INPUT_PORTS_START( ambush )
9595   PORT_START_TAG("IN0")
9696   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 )
9797   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
src/mame/drivers/orbit.c
r1238r1239
102102ADDRESS_MAP_END
103103
104104
105INPUT_PORTS_START( orbit )
105static INPUT_PORTS_START( orbit )
106106   PORT_START /* 0800 */
107107   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
108108   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
src/mame/drivers/policetr.c
r1238r1239
345345 *
346346 *************************************/
347347
348INPUT_PORTS_START( policetr )
348static INPUT_PORTS_START( policetr )
349349   PORT_START
350350   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN )
351351   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
423423INPUT_PORTS_END
424424
425425
426INPUT_PORTS_START( polict10 )
426static INPUT_PORTS_START( polict10 )
427427   PORT_INCLUDE( policetr )
428428
429429   PORT_MODIFY("GUNX1")            /* fake analog X */
r1238r1239
440440INPUT_PORTS_END
441441
442442
443INPUT_PORTS_START( sshoot11 )
443static INPUT_PORTS_START( sshoot11 )
444444   PORT_INCLUDE( policetr )
445445
446446   PORT_MODIFY("GUNX1")            /* fake analog X */
src/mame/drivers/seibuspi.c
r1238r1239
11461146
11471147/********************************************************************/
11481148
1149INPUT_PORTS_START( spi_2button )
1149static INPUT_PORTS_START( spi_2button )
11501150   PORT_START_TAG("IN0")
11511151   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
11521152   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
11861186   PORT_BIT( 0xfc, IP_ACTIVE_LOW, IPT_UNUSED )
11871187INPUT_PORTS_END
11881188
1189INPUT_PORTS_START( spi_3button )
1189static INPUT_PORTS_START( spi_3button )
11901190   PORT_START_TAG("IN0")
11911191   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
11921192   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
12261226   PORT_BIT( 0xfc, IP_ACTIVE_LOW, IPT_UNUSED )
12271227INPUT_PORTS_END
12281228
1229INPUT_PORTS_START( seibu386_2button )
1229static INPUT_PORTS_START( seibu386_2button )
12301230   PORT_START_TAG("IN0")
12311231   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
12321232   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
12871287   Start - 000111 port 0
12881288*/
12891289
1290INPUT_PORTS_START( spi_ejanhs )
1290static INPUT_PORTS_START( spi_ejanhs )
12911291   PORT_START_TAG("IN0")
12921292   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("P1 A") PORT_CODE(KEYCODE_A)
12931293   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("P1 B") PORT_CODE(KEYCODE_B)
src/mame/drivers/coolpool.c
r1238r1239
399399}
400400
401401
402WRITE16_HANDLER( dsp_dac_w )
402static WRITE16_HANDLER( dsp_dac_w )
403403{
404404   DAC_signed_data_16_w(0, (INT16)(data << 4) + 0x8000);
405405}
r1238r1239
555555 *
556556 *************************************/
557557
558INPUT_PORTS_START( amerdart )
558static INPUT_PORTS_START( amerdart )
559559   PORT_START_TAG("IN1")
560560   PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_BUTTON1 )   PORT_PLAYER(1)
561561   PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2)
r1238r1239
581581INPUT_PORTS_END
582582
583583
584INPUT_PORTS_START( 9ballsht )
584static INPUT_PORTS_START( 9ballsht )
585585   PORT_START_TAG("IN0")
586586   PORT_BIT( 0x00ff, IP_ACTIVE_HIGH, IPT_UNKNOWN )
587587   PORT_BIT( 0x0300, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
612612INPUT_PORTS_END
613613
614614
615INPUT_PORTS_START( coolpool )
615static INPUT_PORTS_START( coolpool )
616616   PORT_START_TAG("IN0")
617617   PORT_BIT( 0x00ff, IP_ACTIVE_HIGH, IPT_UNKNOWN )
618618   PORT_BIT( 0x0f00, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/mwarr.c
r1238r1239
151151   AM_RANGE(0x190000, 0x190001) AM_READWRITE(OKIM6295_status_1_lsb_r, OKIM6295_data_1_lsb_w)
152152ADDRESS_MAP_END
153153
154INPUT_PORTS_START( mwarr )
154static INPUT_PORTS_START( mwarr )
155155   PORT_START
156156   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
157157   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/sauro.c
r1238r1239
208208   AM_RANGE(0xf83f, 0xf83f) AM_WRITE(MWA8_NOP)
209209ADDRESS_MAP_END
210210
211INPUT_PORTS_START( tecfri )
211static INPUT_PORTS_START( tecfri )
212212   PORT_START      /* IN0 */
213213   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 )
214214   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 )
src/mame/drivers/gaplus.c
r1238r1239
379379
380380
381381
382INPUT_PORTS_START( gaplus )
382static INPUT_PORTS_START( gaplus )
383383   /* The inputs are not memory mapped, they are handled by three I/O chips. */
384384   PORT_START   /* 56XX #0 pins 22-29 */
385385   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
r1238r1239
460460INPUT_PORTS_END
461461
462462/* identical to gaplus, but service mode is a dip switch instead of coming from edge connector */
463INPUT_PORTS_START( gapluso )
463static INPUT_PORTS_START( gapluso )
464464   /* The inputs are not memory mapped, they are handled by three I/O chips. */
465465   PORT_START   /* 56XX #0 pins 22-29 */
466466   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
r1238r1239
539539INPUT_PORTS_END
540540
541541/* identical to gaplus, but different bonus life settings */
542INPUT_PORTS_START( galaga3a )
542static INPUT_PORTS_START( galaga3a )
543543   /* The inputs are not memory mapped, they are handled by three I/O chips. */
544544   PORT_START   /* 56XX #0 pins 22-29 */
545545   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
r1238r1239
620620INPUT_PORTS_END
621621
622622/* identical to gaplus, but different bonus life settings */
623INPUT_PORTS_START( galaga3m )
623static INPUT_PORTS_START( galaga3m )
624624   /* The inputs are not memory mapped, they are handled by three I/O chips. */
625625   PORT_START   /* 56XX #0 pins 22-29 */
626626   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
src/mame/drivers/midtunit.c
r1238r1239
6767 *
6868 *************************************/
6969
70INPUT_PORTS_START( mk )
70static INPUT_PORTS_START( mk )
7171   PORT_START
7272   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
7373   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
165165INPUT_PORTS_END
166166
167167
168INPUT_PORTS_START( mk2 )
168static INPUT_PORTS_START( mk2 )
169169   PORT_START
170170   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
171171   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
272272INPUT_PORTS_END
273273
274274
275INPUT_PORTS_START( jdreddp )
275static INPUT_PORTS_START( jdreddp )
276276   PORT_START
277277   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
278278   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
368368INPUT_PORTS_END
369369
370370
371INPUT_PORTS_START( nbajam )
371static INPUT_PORTS_START( nbajam )
372372   PORT_START
373373   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
374374   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
471471INPUT_PORTS_END
472472
473473
474INPUT_PORTS_START( nbajamte )
474static INPUT_PORTS_START( nbajamte )
475475   PORT_START
476476   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
477477   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/carpolo.c
r1238r1239
6767 *
6868 *************************************/
6969
70INPUT_PORTS_START( carpolo )
70static INPUT_PORTS_START( carpolo )
7171   PORT_START   /* IN0 */
7272   PORT_BIT (0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
7373   PORT_BIT (0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
src/mame/drivers/drmicro.c
r1238r1239
109109
110110/****************************************************************************/
111111
112INPUT_PORTS_START( drmicro )
112static INPUT_PORTS_START( drmicro )
113113   PORT_START // 1P (0)
114114   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
115115   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SERVICE1 )
src/mame/drivers/speedatk.c
r1238r1239
185185   AM_RANGE(0x41, 0x41) AM_WRITE(AY8910_write_port_0_w)
186186ADDRESS_MAP_END
187187
188INPUT_PORTS_START( speedatk )
188static INPUT_PORTS_START( speedatk )
189189   PORT_START
190190   PORT_SERVICE( 0x01, IP_ACTIVE_HIGH )
191191   PORT_DIPNAME( 0x02, 0x00, DEF_STR( Flip_Screen ) )
src/mame/drivers/vroulet.c
r1238r1239
121121
122122/* Input Ports */
123123
124INPUT_PORTS_START( vroulet )
124static INPUT_PORTS_START( vroulet )
125125   PORT_START_TAG("IN0")
126126   PORT_SERVICE( 0x01, IP_ACTIVE_LOW )
127127   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_TILT )
src/mame/drivers/twins.c
r1238r1239
134134}
135135
136136
137INPUT_PORTS_START(twins)
137static INPUT_PORTS_START(twins)
138138   PORT_START   /* 8bit */
139139   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
140140   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 )
src/mame/drivers/system1.c
r1238r1239
457457   PORT_DIPSETTING(   0x80, "Port $0D" ) \
458458   PORT_DIPSETTING(   0x00, "Port $10" )
459459
460INPUT_PORTS_START( starjack )
460static INPUT_PORTS_START( starjack )
461461   PORT_START  /* IN1 */
462462   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
463463   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
509509   PORT_DIPSETTING(   0x00, DEF_STR( Hardest ) )
510510INPUT_PORTS_END
511511
512INPUT_PORTS_START( starjacs )
512static INPUT_PORTS_START( starjacs )
513513   PORT_START  /* IN1 */
514514   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
515515   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
560560   PORT_DIPSETTING(   0x00, DEF_STR( Hardest ) )
561561INPUT_PORTS_END
562562
563INPUT_PORTS_START( regulus )
563static INPUT_PORTS_START( regulus )
564564   PORT_START  /* IN1 */
565565   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
566566   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
614614INPUT_PORTS_END
615615
616616/* Same as 'regulus', but no DEF_STR( Allow_Continue ) Dip Switch */
617INPUT_PORTS_START( reguluso )
617static INPUT_PORTS_START( reguluso )
618618   PORT_START  /* IN1 */
619619   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
620620   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
667667   PORT_DIPSETTING(   0x00, DEF_STR( On ) )
668668INPUT_PORTS_END
669669
670INPUT_PORTS_START( upndown )
670static INPUT_PORTS_START( upndown )
671671   PORT_START  /* IN1 */
672672   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
673673   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
719719   PORT_DIPSETTING(   0x00, DEF_STR( Hardest ) )
720720INPUT_PORTS_END
721721
722INPUT_PORTS_START( mrviking )
722static INPUT_PORTS_START( mrviking )
723723   PORT_START  /* IN1 */
724724   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
725725   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
771771
772772/* Same as 'mrviking', but no "Maximum Credits" Dip Switch and "Difficulty" Dip Switch is
773773   handled by bit 7 instead of bit 6 (so bit 6 is unused) */
774INPUT_PORTS_START( mrvikngj )
774static INPUT_PORTS_START( mrvikngj )
775775   PORT_START  /* IN1 */
776776   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
777777   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
823823   PORT_DIPSETTING(   0x00, DEF_STR( Hard ) )
824824INPUT_PORTS_END
825825
826INPUT_PORTS_START( swat )
826static INPUT_PORTS_START( swat )
827827   PORT_START  /* IN1 */
828828   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
829829   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
876876   PORT_DIPSETTING(   0x00, DEF_STR( On ) )
877877INPUT_PORTS_END
878878
879INPUT_PORTS_START( flicky )
879static INPUT_PORTS_START( flicky )
880880   PORT_START  /* IN1 */
881881   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
882882   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
926926   DSW0_BIT7
927927INPUT_PORTS_END
928928
929INPUT_PORTS_START( wmatch )
929static INPUT_PORTS_START( wmatch )
930930   PORT_START  /* IN1 */
931931   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_8WAY
932932   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_8WAY
r1238r1239
984984   DSW0_BIT7
985985INPUT_PORTS_END
986986
987INPUT_PORTS_START( bullfgt )
987static INPUT_PORTS_START( bullfgt )
988988   PORT_START  /* IN1 */
989989   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
990990   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
10341034   DSW0_BIT7
10351035INPUT_PORTS_END
10361036
1037INPUT_PORTS_START( spatter )
1037static INPUT_PORTS_START( spatter )
10381038   PORT_START  /* IN1 */
10391039   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
10401040   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
10841084   DSW0_BIT7
10851085INPUT_PORTS_END
10861086
1087INPUT_PORTS_START( pitfall2 )
1087static INPUT_PORTS_START( pitfall2 )
10881088   PORT_START  /* IN1 */
10891089   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
10901090   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
11371137   PORT_DIPSETTING(   0x00, DEF_STR( On ) )
11381138INPUT_PORTS_END
11391139
1140INPUT_PORTS_START( pitfallu )
1140static INPUT_PORTS_START( pitfallu )
11411141   PORT_START  /* IN1 */
11421142   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
11431143   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
11891189   PORT_DIPSETTING(   0x00, DEF_STR( On ) )
11901190INPUT_PORTS_END
11911191
1192INPUT_PORTS_START( seganinj )
1192static INPUT_PORTS_START( seganinj )
11931193   PORT_START  /* IN1 */
11941194   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 )
11951195   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
12401240   DSW0_BIT7
12411241INPUT_PORTS_END
12421242
1243INPUT_PORTS_START( imsorry )
1243static INPUT_PORTS_START( imsorry )
12441244   PORT_START  /* IN1 */
12451245   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
12461246   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
12901290   DSW0_BIT7
12911291INPUT_PORTS_END
12921292
1293INPUT_PORTS_START( teddybb )
1293static INPUT_PORTS_START( teddybb )
12941294   PORT_START  /* IN1 */
12951295   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
12961296   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
13401340   DSW0_BIT7
13411341INPUT_PORTS_END
13421342
1343INPUT_PORTS_START( hvymetal )
1343static INPUT_PORTS_START( hvymetal )
13441344   PORT_START  /* IN1 */
13451345   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
13461346   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
13921392   PORT_DIPSETTING(   0x00, DEF_STR( Yes ) )
13931393INPUT_PORTS_END
13941394
1395INPUT_PORTS_START( myhero )
1395static INPUT_PORTS_START( myhero )
13961396   PORT_START  /* IN1 */
13971397   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
13981398   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
14421442   DSW0_BIT7
14431443INPUT_PORTS_END
14441444
1445INPUT_PORTS_START( shtngmst )
1445static INPUT_PORTS_START( shtngmst )
14461446   PORT_START  /* IN1 */
14471447   /*
14481448    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
15431543INPUT_PORTS_END
15441544
15451545
1546INPUT_PORTS_START( chplft )
1546static INPUT_PORTS_START( chplft )
15471547   PORT_START  /* IN1 */
15481548   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
15491549   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
15961596   DSW1_PORT
15971597INPUT_PORTS_END
15981598
1599INPUT_PORTS_START( 4dwarrio )
1599static INPUT_PORTS_START( 4dwarrio )
16001600   PORT_START  /* IN1 */
16011601   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
16021602   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
16471647   DSW0_BIT7
16481648INPUT_PORTS_END
16491649
1650INPUT_PORTS_START( brain )
1650static INPUT_PORTS_START( brain )
16511651   PORT_START  /* IN1 */
16521652   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
16531653   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
17001700   PORT_DIPSETTING(   0x00, DEF_STR( On ) )
17011701INPUT_PORTS_END
17021702
1703INPUT_PORTS_START( gardia )
1703static INPUT_PORTS_START( gardia )
17041704   PORT_START  /* IN1 */
17051705   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
17061706   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
17521752   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
17531753INPUT_PORTS_END
17541754
1755INPUT_PORTS_START( raflesia )
1755static INPUT_PORTS_START( raflesia )
17561756   PORT_START  /* IN1 */
17571757   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
17581758   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
18021802   DSW0_BIT7
18031803INPUT_PORTS_END
18041804
1805INPUT_PORTS_START( wboy )
1805static INPUT_PORTS_START( wboy )
18061806   PORT_START  /* IN1 */
18071807   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
18081808   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
18551855   PORT_DIPSETTING(   0x00, DEF_STR( On ) )
18561856INPUT_PORTS_END
18571857
1858INPUT_PORTS_START( wboysys2 )
1858static INPUT_PORTS_START( wboysys2 )
18591859   PORT_START  /* IN1 */
18601860   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
18611861   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
19091909INPUT_PORTS_END
19101910
19111911/* same as wboy, additional Energy Consumption switch */
1912INPUT_PORTS_START( wbdeluxe )
1912static INPUT_PORTS_START( wbdeluxe )
19131913   PORT_START  /* IN1 */
19141914   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* Has to be 0 otherwise the game resets */
19151915                                    /* if you die after level 1. */
r1238r1239
19631963   PORT_DIPSETTING(   0x80, "Fast" )
19641964INPUT_PORTS_END
19651965
1966INPUT_PORTS_START( wboyu )
1966static INPUT_PORTS_START( wboyu )
19671967   PORT_START  /* IN1 */
19681968   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
19691969   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
20832083
20842084*/
20852085
2086INPUT_PORTS_START( blockgal )
2086static INPUT_PORTS_START( blockgal )
20872087   PORT_START  /* IN1 */
20882088   PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(60) PORT_KEYDELTA(15) PORT_REVERSE
20892089
r1238r1239
21282128   DSW1_PORT
21292129INPUT_PORTS_END
21302130
2131INPUT_PORTS_START( tokisens )
2131static INPUT_PORTS_START( tokisens )
21322132   PORT_START  /* IN1 */
21332133   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
21342134   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
21812181   DSW1_PORT
21822182INPUT_PORTS_END
21832183
2184INPUT_PORTS_START( wbml )
2184static INPUT_PORTS_START( wbml )
21852185   PORT_START  /* IN1 */
21862186   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
21872187   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
22342234   DSW1_PORT
22352235INPUT_PORTS_END
22362236
2237INPUT_PORTS_START( noboranb )
2237static INPUT_PORTS_START( noboranb )
22382238   PORT_START  /* IN1 */
22392239   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
22402240   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )            // shot
r1238r1239
23192319 To get Infinite Lives all DIP Switches in DSW0 must be ON
23202320
23212321*/
2322INPUT_PORTS_START( ufosensi )
2322static INPUT_PORTS_START( ufosensi )
23232323   PORT_START  /* IN1 */
23242324   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 )
23252325   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
src/mame/drivers/tetriunk.c
r1238r1239
171171   GFXDECODE_ENTRY( REGION_GFX1, 0, tiles8x8_layout, 0, 16 )
172172GFXDECODE_END
173173
174INPUT_PORTS_START( tetriunk )
174static INPUT_PORTS_START( tetriunk )
175175INPUT_PORTS_END
176176
177177static MACHINE_DRIVER_START( tetriunk )
src/mame/drivers/cultures.c
r1238r1239
183183ADDRESS_MAP_END
184184
185185
186INPUT_PORTS_START( cultures )
186static INPUT_PORTS_START( cultures )
187187   PORT_START
188188   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:1,2,3")
189189   PORT_DIPSETTING(    0x00, "10 Coins / 1 Credit" )
src/mame/drivers/powerins.c
r1238r1239
156156
157157***************************************************************************/
158158
159INPUT_PORTS_START( powerins )
159static INPUT_PORTS_START( powerins )
160160   PORT_START   // IN0 - $100000 - Coins
161161   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1    )
162162   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2    )
r1238r1239
248248   PORT_DIPSETTING(      0x0000, DEF_STR( Hardest ) )
249249INPUT_PORTS_END
250250
251INPUT_PORTS_START( powerinj )
251static INPUT_PORTS_START( powerinj )
252252   PORT_INCLUDE(powerins)
253253
254254   PORT_MODIFY("DSW2")
src/mame/drivers/quizo.c
r1238r1239
146146   AM_RANGE(0x70, 0x70) AM_WRITE(port70_w)
147147ADDRESS_MAP_END
148148
149INPUT_PORTS_START( quizo )
149static INPUT_PORTS_START( quizo )
150150   PORT_START_TAG("IN0")
151151   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
152152   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN )
src/mame/drivers/niyanpai.c
r1238r1239
535535ADDRESS_MAP_END
536536
537537
538INPUT_PORTS_START( niyanpai )
538static INPUT_PORTS_START( niyanpai )
539539   PORT_START   /* (0) DIPSW-A */
540540   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
541541   PORT_DIPSETTING(    0x03, "1" )
r1238r1239
600600   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
601601INPUT_PORTS_END
602602
603INPUT_PORTS_START( musobana )
603static INPUT_PORTS_START( musobana )
604604
605605   // I don't have manual for this game.
606606
r1238r1239
675675   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
676676INPUT_PORTS_END
677677
678INPUT_PORTS_START( 4psimasy )
678static INPUT_PORTS_START( 4psimasy )
679679
680680   // I don't have manual for this game.
681681
r1238r1239
754754   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
755755INPUT_PORTS_END
756756
757INPUT_PORTS_START( mhhonban )
757static INPUT_PORTS_START( mhhonban )
758758
759759   // I don't have manual for this game.
760760
src/mame/drivers/exedexes.c
r1238r1239
8686
8787
8888
89INPUT_PORTS_START( exedexes )
89static INPUT_PORTS_START( exedexes )
9090   PORT_START   /* IN0 */
9191   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
9292   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/jedi.c
r1238r1239
429429 *
430430 *************************************/
431431
432INPUT_PORTS_START( jedi )
432static INPUT_PORTS_START( jedi )
433433   PORT_START   /* 0C00 */
434434   PORT_BIT( 0x01, IP_ACTIVE_LOW,  IPT_BUTTON3 )
435435   PORT_BIT( 0x02, IP_ACTIVE_LOW,  IPT_BUTTON2 )
src/mame/drivers/suprnova.c
r1238r1239
704704
705705static UINT32 timer_0_temp[4];
706706
707static WRITE32_HANDLER( msm6242_w )
707static WRITE32_HANDLER( skns_msm6242_w )
708708{
709709   COMBINE_DATA(&timer_0_temp[offset]);
710710
r1238r1239
777777}
778778
779779
780static READ32_HANDLER( msm6242_r )
780static READ32_HANDLER( skns_msm6242_r )
781781{
782782   mame_system_time systime;
783783   long value;
r1238r1239
854854   AM_RANGE(0x0040000c, 0x0040000f) AM_READ(nova_input_port_3_r)
855855   AM_RANGE(0x00800000, 0x00801fff) AM_READ(MRA32_RAM) /* 'backup' RAM */
856856//  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)
858858   AM_RANGE(0x02000000, 0x02003fff) AM_READ(MRA32_RAM) /* 'spc' RAM */
859859   AM_RANGE(0x02100000, 0x0210003f) AM_READ(MRA32_RAM) /* 'spc' */
860860   AM_RANGE(0x02400000, 0x0240007f) AM_READ(MRA32_RAM) /* 'v3' */
r1238r1239
874874   AM_RANGE(0x00400000, 0x0040000f) AM_WRITE(skns_io_w) /* I/O Write */
875875   AM_RANGE(0x00800000, 0x00801fff) AM_WRITE(MWA32_RAM) AM_BASE(&generic_nvram32) AM_SIZE(&generic_nvram_size) /* 'backup' RAM */
876876   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)
878878   AM_RANGE(0x01800000, 0x01800003) AM_WRITE(skns_hit2_w)
879879   AM_RANGE(0x02000000, 0x02003fff) AM_WRITE(MWA32_RAM) AM_BASE(&spriteram32) AM_SIZE(&spriteram_size) /* sprite ram */
880880   AM_RANGE(0x02100000, 0x0210003f) AM_WRITE(MWA32_RAM) AM_BASE(&skns_spc_regs) /* sprite registers */
src/mame/drivers/seta2.c
r1238r1239
714714                        Mobile Suit Gundam EX Revue
715715***************************************************************************/
716716
717INPUT_PORTS_START( gundamex )
717static INPUT_PORTS_START( gundamex )
718718   PORT_START_TAG("IN0")   // $600000.w
719719   PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Demo_Sounds ) )
720720   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
r1238r1239
828828                                Guardians
829829***************************************************************************/
830830
831INPUT_PORTS_START( grdians )
831static INPUT_PORTS_START( grdians )
832832   PORT_START_TAG("IN0")   // $600000.w
833833   PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) )
834834   PORT_DIPSETTING(      0x0002, DEF_STR( Easy )    )   // 0
r1238r1239
932932                      Wakakusamonogatari Mahjong Yonshimai
933933***************************************************************************/
934934
935INPUT_PORTS_START( mj4simai )
935static INPUT_PORTS_START( mj4simai )
936936   PORT_START_TAG("IN0")   // $600300.w
937937   PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coinage ) )
938938   PORT_DIPSETTING(      0x0000, DEF_STR( 5C_1C ) )
r1238r1239
10491049                            Kosodate Quiz My Angel
10501050***************************************************************************/
10511051
1052INPUT_PORTS_START( myangel )
1052static INPUT_PORTS_START( myangel )
10531053   PORT_START_TAG("IN0")   // $700300.w
10541054   PORT_SERVICE( 0x0001, IP_ACTIVE_LOW )
10551055   PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Unused ) ) /* Listed as "Unused" */
r1238r1239
11501150                            Kosodate Quiz My Angel 2
11511151***************************************************************************/
11521152
1153INPUT_PORTS_START( myangel2 )
1153static INPUT_PORTS_START( myangel2 )
11541154   PORT_START_TAG("IN0") //$600300.w
11551155   PORT_SERVICE( 0x0001, IP_ACTIVE_LOW )
11561156   PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Unused ) ) /* Listed as "Unused" */
r1238r1239
12511251                                Puzzle De Bowling
12521252***************************************************************************/
12531253
1254INPUT_PORTS_START( pzlbowl )
1254static INPUT_PORTS_START( pzlbowl )
12551255   PORT_START_TAG("IN0") //$400300.w
12561256   PORT_SERVICE( 0x0001, IP_ACTIVE_LOW )
12571257   PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) )
r1238r1239
13521352                            Penguin Bros
13531353***************************************************************************/
13541354
1355INPUT_PORTS_START( penbros )
1355static INPUT_PORTS_START( penbros )
13561356   PORT_START_TAG("IN0") //$500300.w
13571357   PORT_SERVICE( 0x0001, IP_ACTIVE_LOW )
13581358   PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) )
r1238r1239
14431443                            Sammy Outdoor Shooting
14441444***************************************************************************/
14451445
1446INPUT_PORTS_START( deerhunt )
1446static INPUT_PORTS_START( deerhunt )
14471447   PORT_START_TAG("DSW1") // IN0 - $400000.w
14481448   PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3")
14491449   PORT_DIPSETTING(      0x0005, DEF_STR( 4C_1C ) )
r1238r1239
15301530INPUT_PORTS_END
15311531
15321532
1533INPUT_PORTS_START( turkhunt )
1533static INPUT_PORTS_START( turkhunt )
15341534   PORT_INCLUDE(deerhunt)
15351535
15361536   PORT_MODIFY("DSW2") // IN1 - fffd0a.w
r1238r1239
15401540INPUT_PORTS_END
15411541
15421542
1543INPUT_PORTS_START( wschamp )
1543static INPUT_PORTS_START( wschamp )
15441544   PORT_INCLUDE(deerhunt)
15451545
15461546   PORT_MODIFY("DSW1")   // IN0 - $400000.w
r1238r1239
16061606   PORT_BIT( 0xffcc, IP_ACTIVE_LOW, IPT_UNKNOWN )
16071607INPUT_PORTS_END
16081608
1609INPUT_PORTS_START( trophyh )
1609static INPUT_PORTS_START( trophyh )
16101610   PORT_INCLUDE(wschamp)
16111611
16121612   PORT_MODIFY("DSW2") // IN1 - fffd0a.w
src/mame/drivers/witch.c
r1238r1239
462462   AM_RANGE(0xf180, 0xffff) AM_RAM AM_SHARE(2)
463463ADDRESS_MAP_END
464464
465INPUT_PORTS_START( witch )
465static INPUT_PORTS_START( witch )
466466   PORT_START   /* DSW */
467467    PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
468468    PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
src/mame/drivers/flkatck.c
r1238r1239
135135ADDRESS_MAP_END
136136
137137
138INPUT_PORTS_START( flkatck )
138static INPUT_PORTS_START( flkatck )
139139   PORT_START   /* DSW #1 */
140140   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
141141   PORT_DIPSETTING(   0x02, DEF_STR( 4C_1C ) )
src/mame/drivers/namcofl.c
r1238r1239
207207   AM_RANGE(0xfffffffc, 0xffffffff) AM_READ( fl_unk1_r )
208208ADDRESS_MAP_END
209209
210INPUT_PORTS_START( namcofl )
210static INPUT_PORTS_START( namcofl )
211211   PORT_START
212212   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
213213   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN )
src/mame/drivers/dynax.c
r1238r1239
14291429
14301430***************************************************************************/
14311431
1432INPUT_PORTS_START( MAHJONG_KEYS )
1432static INPUT_PORTS_START( MAHJONG_KEYS )
14331433   // Keyboard 1
14341434   PORT_START
14351435   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_A      )   PORT_PLAYER(1)
r1238r1239
15131513   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN   )
15141514INPUT_PORTS_END
15151515
1516INPUT_PORTS_START( MAHJONG_KEYS_BET )
1516static INPUT_PORTS_START( MAHJONG_KEYS_BET )
15171517   // Keyboard 1
15181518   PORT_START
15191519   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_A      )   PORT_PLAYER(1)
r1238r1239
15971597   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_MAHJONG_SMALL      )   PORT_PLAYER(2)   // "s"
15981598INPUT_PORTS_END
15991599
1600INPUT_PORTS_START( HANAFUDA_KEYS )
1600static INPUT_PORTS_START( HANAFUDA_KEYS )
16011601   // Keyboard 1
16021602   PORT_START
16031603   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER            ) PORT_NAME("1") PORT_CODE(KEYCODE_1_PAD)
r1238r1239
16811681   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN   )
16821682INPUT_PORTS_END
16831683
1684INPUT_PORTS_START( HANAFUDA_KEYS_BET )
1684static INPUT_PORTS_START( HANAFUDA_KEYS_BET )
16851685   // Keyboard 1
16861686   PORT_START
16871687   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER            ) PORT_NAME("1") PORT_CODE(KEYCODE_1_PAD)
r1238r1239
17661766INPUT_PORTS_END
17671767
17681768
1769INPUT_PORTS_START( hanamai )
1769static INPUT_PORTS_START( hanamai )
17701770   PORT_START_TAG("DSW0")
17711771   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
17721772   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
18301830   PORT_INCLUDE( HANAFUDA_KEYS )
18311831INPUT_PORTS_END
18321832
1833INPUT_PORTS_START( hnkochou )
1833static INPUT_PORTS_START( hnkochou )
18341834   PORT_START_TAG("DSW0")
18351835   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
18361836   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
18971897INPUT_PORTS_END
18981898
18991899
1900INPUT_PORTS_START( hnoridur )
1900static INPUT_PORTS_START( hnoridur )
19011901   PORT_START_TAG("DSW0")   /* note that these are in reverse order wrt the others */
19021902   PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coinage ) )
19031903   PORT_DIPSETTING(    0xc0, DEF_STR( 1C_1C ) )
r1238r1239
20122012INPUT_PORTS_END
20132013
20142014
2015INPUT_PORTS_START( sprtmtch )
2015static INPUT_PORTS_START( sprtmtch )
20162016   PORT_START_TAG("IN0")
20172017   PORT_BIT(  0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
20182018   PORT_BIT(  0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
r1238r1239
20932093   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
20942094INPUT_PORTS_END
20952095
2096INPUT_PORTS_START( mjfriday )
2096static INPUT_PORTS_START( mjfriday )
20972097   PORT_START_TAG("DSW0")
20982098   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) )
20992099   PORT_DIPSETTING(    0x00, DEF_STR( 3C_1C ) )
r1238r1239
21572157INPUT_PORTS_END
21582158
21592159
2160INPUT_PORTS_START( mjdialq2 )
2160static INPUT_PORTS_START( mjdialq2 )
21612161   PORT_START_TAG("DSW0")
21622162   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
21632163   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
22242224INPUT_PORTS_END
22252225
22262226
2227INPUT_PORTS_START( yarunara )
2227static INPUT_PORTS_START( yarunara )
22282228   PORT_START_TAG("DSW0")
22292229   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) )
22302230   PORT_DIPSETTING(    0x00, DEF_STR( 3C_1C ) )
r1238r1239
22862286   PORT_INCLUDE( MAHJONG_KEYS )
22872287INPUT_PORTS_END
22882288
2289INPUT_PORTS_START( hanayara )
2289static INPUT_PORTS_START( hanayara )
22902290   PORT_START_TAG("DSW0")
22912291   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) )
22922292   PORT_DIPSETTING(    0x00, DEF_STR( 3C_1C ) )
r1238r1239
23482348   PORT_INCLUDE( HANAFUDA_KEYS )
23492349INPUT_PORTS_END
23502350
2351INPUT_PORTS_START( quiztvqq )
2351static INPUT_PORTS_START( quiztvqq )
23522352   PORT_START_TAG("DSW0")
23532353   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) )
23542354   PORT_DIPSETTING(    0x00, DEF_STR( 3C_1C ) )
r1238r1239
24432443INPUT_PORTS_END
24442444
24452445
2446INPUT_PORTS_START( mcnpshnt )
2446static INPUT_PORTS_START( mcnpshnt )
24472447   PORT_START_TAG("DSW0")
24482448   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
24492449   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
25062506INPUT_PORTS_END
25072507
25082508
2509INPUT_PORTS_START( nanajign )
2509static INPUT_PORTS_START( nanajign )
25102510   PORT_START_TAG("DSW0")
25112511   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) )
25122512   PORT_DIPSETTING(    0x00, DEF_STR( 3C_1C ) )
r1238r1239
25962596INPUT_PORTS_END
25972597
25982598
2599INPUT_PORTS_START( jantouki )
2599static INPUT_PORTS_START( jantouki )
26002600   PORT_START_TAG("DSW0")
26012601   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Unknown ) )
26022602   PORT_DIPSETTING(    0x07, "0" )   // 0 6 2
r1238r1239
27002700INPUT_PORTS_END
27012701
27022702
2703INPUT_PORTS_START( mjelct3 )
2703static INPUT_PORTS_START( mjelct3 )
27042704   PORT_START_TAG("DSW2")   // 7c21 (select = 00)
27052705   PORT_DIPNAME( 0x03, 0x03, "Difficulty?" )
27062706   PORT_DIPSETTING(    0x03, "0" )   // 20
r1238r1239
28252825INPUT_PORTS_END
28262826
28272827
2828INPUT_PORTS_START( mjelctrn )
2828static INPUT_PORTS_START( mjelctrn )
28292829   PORT_START_TAG("DSW2")   // 7c21 (select = 00)
28302830   PORT_DIPNAME( 0x03, 0x03, "Difficulty?" )
28312831   PORT_DIPSETTING(    0x03, "0" )   // 20
r1238r1239
29502950INPUT_PORTS_END
29512951
29522952
2953INPUT_PORTS_START( majxtal7 )
2953static INPUT_PORTS_START( majxtal7 )
29542954   PORT_START_TAG("DSW2")   // select = 00
29552955   PORT_DIPNAME( 0x03, 0x03, "Difficulty?" )
29562956   PORT_DIPSETTING(    0x03, "0" )   // 20
r1238r1239
30743074   PORT_DIPSETTING(    0xff, DEF_STR( On ) )
30753075INPUT_PORTS_END
30763076
3077INPUT_PORTS_START( neruton )
3077static INPUT_PORTS_START( neruton )
30783078   PORT_START_TAG("DSW2") //6a77 (select = 00)
30793079   PORT_DIPNAME( 0x07, 0x07, "Hours" )
30803080   PORT_DIPSETTING(    0x07, "08:30" )
r1238r1239
31383138INPUT_PORTS_END
31393139
31403140
3141INPUT_PORTS_START( tenkai )
3141static INPUT_PORTS_START( tenkai )
31423142   PORT_START   // 0
31433143   PORT_DIPNAME( 0x0f, 0x07, "Pay Out Rate" )
31443144   PORT_DIPSETTING(    0x00, "50" )
r1238r1239
32843284INPUT_PORTS_END
32853285
32863286
3287INPUT_PORTS_START( mjreach )
3287static INPUT_PORTS_START( mjreach )
32883288   PORT_START   // 0
32893289   PORT_DIPNAME( 0x0f, 0x07, "Pay Out Rate" )
32903290   PORT_DIPSETTING(    0x00, "50" )
r1238r1239
34283428   PORT_INCLUDE( MAHJONG_KEYS_BET )
34293429INPUT_PORTS_END
34303430
3431INPUT_PORTS_START( htengoku )
3431static INPUT_PORTS_START( htengoku )
34323432   PORT_START   // IN0
34333433   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE4   )   // medal out
34343434   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN   )
src/mame/drivers/shootout.c
r1238r1239
145145
146146/*******************************************************************************/
147147
148INPUT_PORTS_START( shootout )
148static INPUT_PORTS_START( shootout )
149149   PORT_START_TAG("DSW1")
150150   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) )
151151   PORT_DIPSETTING(   0x00, DEF_STR( 2C_1C ) )
r1238r1239
208208   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK )
209209INPUT_PORTS_END
210210
211INPUT_PORTS_START( shootouj )
211static INPUT_PORTS_START( shootouj )
212212   PORT_INCLUDE(shootout)
213213
214214   PORT_MODIFY("DSW1")
src/mame/drivers/contra.c
r1238r1239
120120
121121
122122
123INPUT_PORTS_START( contra )
123static INPUT_PORTS_START( contra )
124124   PORT_START   /* IN0 */
125125   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
126126   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/zn.c
r1238r1239
30383038   MDRV_SOUND_ROUTE(1, "right", 0.35)
30393039MACHINE_DRIVER_END
30403040
3041INPUT_PORTS_START( zn )
3041static INPUT_PORTS_START( zn )
30423042   PORT_START      /* IN0 */
30433043   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
30443044   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/paradise.c
r1238r1239
130130                                Paradise
131131***************************************************************************/
132132
133INPUT_PORTS_START( paradise )
133static INPUT_PORTS_START( paradise )
134134   PORT_START   // IN0 - port $2020 - DSW 1
135135   PORT_DIPNAME( 0x03, 0x02, DEF_STR( Difficulty ) )
136136   PORT_DIPSETTING(    0x03, DEF_STR( Easy ) )
r1238r1239
211211INPUT_PORTS_END
212212
213213
214INPUT_PORTS_START( tgtball )
214static INPUT_PORTS_START( tgtball )
215215   PORT_START   // IN0 - port $2020 - DSW 1
216216   PORT_DIPNAME( 0x03, 0x02, "Time" )
217217   PORT_DIPSETTING(    0x03, "60" )
r1238r1239
290290   PORT_BIT(  0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
291291INPUT_PORTS_END
292292
293INPUT_PORTS_START( torus )
293static INPUT_PORTS_START( torus )
294294
295295   PORT_START   // IN0 - port $2020 - DSW 1
296296   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) )
r1238r1239
375375INPUT_PORTS_END
376376
377377
378INPUT_PORTS_START( madball )
378static INPUT_PORTS_START( madball )
379379   PORT_START   /* 8bit DSW 1 */
380380   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) )
381381   PORT_DIPSETTING(    0x00, DEF_STR( 2C_1C ) )
src/mame/drivers/volfied.c
r1238r1239
120120                INPUT PORTS
121121***********************************************************/
122122
123INPUT_PORTS_START( volfied )
123static INPUT_PORTS_START( volfied )
124124   /* Z80 CPU -> 0x10002c ($2c,A5) */
125125   PORT_START_TAG("DSWA")
126126   TAITO_MACHINE_COCKTAIL
r1238r1239
192192   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
193193INPUT_PORTS_END
194194
195INPUT_PORTS_START( volfiedu )
195static INPUT_PORTS_START( volfiedu )
196196   PORT_INCLUDE(volfied)
197197
198198   PORT_MODIFY("DSWA")
r1238r1239
201201   PORT_DIPUNUSED( 0x80, IP_ACTIVE_LOW )                        /* see notes */
202202INPUT_PORTS_END
203203
204INPUT_PORTS_START( volfiedj )
204static INPUT_PORTS_START( volfiedj )
205205   PORT_INCLUDE(volfied)
206206
207207   PORT_MODIFY("DSWA")
src/mame/drivers/dribling.c
r1238r1239
245245 *
246246 *************************************/
247247
248INPUT_PORTS_START( dribling )
248static INPUT_PORTS_START( dribling )
249249   PORT_START   /* IN0 (mux 0) */
250250   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_LEFT ) PORT_PLAYER(1)
251251   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_RIGHT ) PORT_PLAYER(1)
src/mame/drivers/frogger.c
r1238r1239
142142
143143
144144
145INPUT_PORTS_START( frogger )
145static INPUT_PORTS_START( frogger )
146146   PORT_START_TAG("IN0")
147147   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
148148   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* 1P shoot2 - unused */
r1238r1239
183183INPUT_PORTS_END
184184
185185
186INPUT_PORTS_START( froggrmc )
186static INPUT_PORTS_START( froggrmc )
187187   PORT_START_TAG("IN0")
188188   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
189189   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
src/mame/drivers/balsente.c
r1238r1239
347347   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(70) PORT_KEYDELTA(10)
348348
349349
350INPUT_PORTS_START( sentetst )
350static INPUT_PORTS_START( sentetst )
351351   PORT_START   /* IN0 */
352352   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) )
353353   PORT_DIPSETTING(    0x02, DEF_STR( 2C_1C ) )
r1238r1239
401401INPUT_PORTS_END
402402
403403
404INPUT_PORTS_START( cshift )
404static INPUT_PORTS_START( cshift )
405405   PORT_START   /* IN0 */
406406   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) )
407407   PORT_DIPSETTING(    0x02, DEF_STR( 2C_1C ) )
r1238r1239
442442INPUT_PORTS_END
443443
444444
445INPUT_PORTS_START( gghost )
445static INPUT_PORTS_START( gghost )
446446   PORT_START   /* IN0 */
447447   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) )
448448   PORT_DIPSETTING(    0x02, DEF_STR( 2C_1C ) )
r1238r1239
491491INPUT_PORTS_END
492492
493493
494INPUT_PORTS_START( hattrick )
494static INPUT_PORTS_START( hattrick )
495495   PORT_START   /* IN0 */
496496   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) )
497497   PORT_DIPSETTING(    0x02, DEF_STR( 2C_1C ) )
r1238r1239
543543INPUT_PORTS_END
544544
545545
546INPUT_PORTS_START( otwalls )
546static INPUT_PORTS_START( otwalls )
547547   PORT_START   /* IN0 */
548548   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) )
549549   PORT_DIPSETTING(    0x02, DEF_STR( 2C_1C ) )
r1238r1239
584584INPUT_PORTS_END
585585
586586
587INPUT_PORTS_START( snakepit )
587static INPUT_PORTS_START( snakepit )
588588   PORT_START   /* IN0 */
589589   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) )
590590   PORT_DIPSETTING(    0x02, DEF_STR( 2C_1C ) )
r1238r1239
638638INPUT_PORTS_END
639639
640640
641INPUT_PORTS_START( snakjack )
641static INPUT_PORTS_START( snakjack )
642642   PORT_START   /* IN0 */
643643   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) )
644644   PORT_DIPSETTING(    0x02, DEF_STR( 2C_1C ) )
r1238r1239
685685INPUT_PORTS_END
686686
687687
688INPUT_PORTS_START( stocker )
688static INPUT_PORTS_START( stocker )
689689   PORT_START   /* IN0 */
690690   PORT_DIPNAME( 0x03, 0x01, DEF_STR( Coinage ) )
691691   PORT_DIPSETTING(    0x03, DEF_STR( 2C_1C ) )
r1238r1239
737737INPUT_PORTS_END
738738
739739
740INPUT_PORTS_START( triviag1 )
740static INPUT_PORTS_START( triviag1 )
741741   PORT_START   /* IN0 */
742742   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) )
743743   PORT_DIPSETTING(    0x02, DEF_STR( 2C_1C ) )
r1238r1239
792792INPUT_PORTS_END
793793
794794
795INPUT_PORTS_START( triviaes )
795static INPUT_PORTS_START( triviaes )
796796   PORT_START   /* IN0 */
797797   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) )
798798   PORT_DIPSETTING(    0x02, DEF_STR( 2C_1C ) )
r1238r1239
847847INPUT_PORTS_END
848848
849849
850INPUT_PORTS_START( gimeabrk )
850static INPUT_PORTS_START( gimeabrk )
851851   PORT_START   /* IN0 */
852852   PORT_DIPNAME( 0x03, 0x01, DEF_STR( Coinage ) )
853853   PORT_DIPSETTING(    0x03, DEF_STR( 2C_1C ) )
r1238r1239
915915INPUT_PORTS_END
916916
917917
918INPUT_PORTS_START( minigolf )
918static INPUT_PORTS_START( minigolf )
919919   PORT_START   /* IN0 */
920920   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) )
921921   PORT_DIPSETTING(    0x03, DEF_STR( 3C_1C ) )
r1238r1239
987987INPUT_PORTS_END
988988
989989
990INPUT_PORTS_START( minigol2 )
990static INPUT_PORTS_START( minigol2 )
991991   PORT_START   /* IN0 */
992992   PORT_DIPNAME( 0x03, 0x01, DEF_STR( Coinage ) )
993993   PORT_DIPSETTING(    0x03, DEF_STR( 2C_1C ) )
r1238r1239
10591059INPUT_PORTS_END
10601060
10611061
1062INPUT_PORTS_START( toggle )
1062static INPUT_PORTS_START( toggle )
10631063   PORT_START   /* IN0 */
10641064   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) )
10651065   PORT_DIPSETTING(    0x02, DEF_STR( 2C_1C ) )
r1238r1239
11061106INPUT_PORTS_END
11071107
11081108
1109INPUT_PORTS_START( nametune )
1109static INPUT_PORTS_START( nametune )
11101110   PORT_START   /* IN0 */
11111111   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) )
11121112   PORT_DIPSETTING(    0x02, DEF_STR( 2C_1C ) )
r1238r1239
11811181INPUT_PORTS_END
11821182
11831183
1184INPUT_PORTS_START( nstocker )
1184static INPUT_PORTS_START( nstocker )
11851185   PORT_START   /* IN0 */
11861186   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) )
11871187   PORT_DIPSETTING(    0x03, DEF_STR( 3C_1C ) )
r1238r1239
12401240INPUT_PORTS_END
12411241
12421242
1243INPUT_PORTS_START( sfootbal )
1243static INPUT_PORTS_START( sfootbal )
12441244   PORT_START   /* IN0 */
12451245   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) )
12461246   PORT_DIPSETTING(    0x03, DEF_STR( 3C_1C ) )
r1238r1239
13031303INPUT_PORTS_END
13041304
13051305
1306INPUT_PORTS_START( spiker )
1306static INPUT_PORTS_START( spiker )
13071307   PORT_START   /* IN0 */
13081308   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) )
13091309   PORT_DIPSETTING(    0x03, DEF_STR( 3C_1C ) )
r1238r1239
13751375INPUT_PORTS_END
13761376
13771377
1378INPUT_PORTS_START( stompin )
1378static INPUT_PORTS_START( stompin )
13791379   PORT_START   /* IN0 */
13801380   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) )
13811381   PORT_DIPSETTING(    0x03, DEF_STR( 3C_1C ) )
r1238r1239
14691469INPUT_PORTS_END
14701470
14711471
1472INPUT_PORTS_START( grudge )
1472static INPUT_PORTS_START( grudge )
14731473   PORT_START   /* IN0 */
14741474   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Unknown ) )
14751475   PORT_DIPSETTING(    0x00, "0" )
r1238r1239
15181518INPUT_PORTS_END
15191519
15201520
1521INPUT_PORTS_START( rescraid )
1521static INPUT_PORTS_START( rescraid )
15221522   PORT_START   /* IN0 */
15231523   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) )
15241524   PORT_DIPSETTING(    0x03, DEF_STR( 3C_1C ) )
r1238r1239
15901590INPUT_PORTS_END
15911591
15921592
1593INPUT_PORTS_START( shrike )
1593static INPUT_PORTS_START( shrike )
15941594   PORT_START   /* IN0 */
15951595   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ))
15961596   PORT_DIPSETTING(    0x02, DEF_STR( 4C_1C ))
src/mame/drivers/galpani3.c
r1238r1239
108108}
109109
110110
111INPUT_PORTS_START( galpani3 )
111static INPUT_PORTS_START( galpani3 )
112112
113113   PORT_START   // IN0 - Player Controls
114114   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP   ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/itech32.c
r1238r1239
975975 *
976976 *************************************/
977977
978INPUT_PORTS_START( timekill )
978static INPUT_PORTS_START( timekill )
979979   PORT_START   /* 40000 */
980980   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
981981   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
r1238r1239
10241024INPUT_PORTS_END
10251025
10261026
1027INPUT_PORTS_START( itech32_base )
1027static INPUT_PORTS_START( itech32_base )
10281028   PORT_START_TAG("P1")   /* 080000 */
10291029   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
10301030   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
10721072INPUT_PORTS_END
10731073
10741074
1075INPUT_PORTS_START( bloodstm )
1075static INPUT_PORTS_START( bloodstm )
10761076   PORT_INCLUDE(itech32_base)
10771077
10781078   PORT_MODIFY("P1")
r1238r1239
10971097INPUT_PORTS_END
10981098
10991099
1100INPUT_PORTS_START( hardyard )
1100static INPUT_PORTS_START( hardyard )
11011101   PORT_INCLUDE(itech32_base)
11021102
11031103   PORT_MODIFY("P3")
r1238r1239
11291129INPUT_PORTS_END
11301130
11311131
1132INPUT_PORTS_START( pairs )
1132static INPUT_PORTS_START( pairs )
11331133   PORT_INCLUDE(itech32_base)
11341134
11351135   PORT_MODIFY("P1")
r1238r1239
11451145INPUT_PORTS_END
11461146
11471147
1148INPUT_PORTS_START( drivedge )
1148static INPUT_PORTS_START( drivedge )
11491149   PORT_START   /* 8C000 */
11501150   PORT_BIT ( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
11511151   PORT_BIT ( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
11961196INPUT_PORTS_END
11971197
11981198
1199INPUT_PORTS_START( wcbowl )
1199static INPUT_PORTS_START( wcbowl )
12001200   PORT_INCLUDE(itech32_base)
12011201
12021202   PORT_MODIFY("P1")
r1238r1239
12131213INPUT_PORTS_END
12141214
12151215
1216INPUT_PORTS_START( wcbowln ) /* WCB version 1.66 supports cocktail mode */
1216static INPUT_PORTS_START( wcbowln ) /* WCB version 1.66 supports cocktail mode */
12171217   PORT_INCLUDE(wcbowl)
12181218
12191219   PORT_MODIFY("P3")
r1238r1239
12391239INPUT_PORTS_END
12401240
12411241
1242INPUT_PORTS_START( wcbowldx )
1242static INPUT_PORTS_START( wcbowldx )
12431243   PORT_INCLUDE(wcbowln)
12441244
12451245   PORT_MODIFY("DIPS")   /* 280000 */
r1238r1239
12521252INPUT_PORTS_END
12531253
12541254
1255INPUT_PORTS_START( sftm )
1255static INPUT_PORTS_START( sftm )
12561256   PORT_INCLUDE(itech32_base)
12571257
12581258   PORT_MODIFY("P3")
r1238r1239
12721272INPUT_PORTS_END
12731273
12741274
1275INPUT_PORTS_START( shufshot ) /* ShuffleShot v1.39 & v1.40 support cocktail mode */
1275static INPUT_PORTS_START( shufshot ) /* ShuffleShot v1.39 & v1.40 support cocktail mode */
12761276   PORT_INCLUDE(itech32_base)
12771277
12781278   PORT_MODIFY("P1")
r1238r1239
13041304INPUT_PORTS_END
13051305
13061306
1307INPUT_PORTS_START( shufbowl )
1307static INPUT_PORTS_START( shufbowl )
13081308   /*
13091309    Earlier versions of Shuffleshot & World Class Bowling share the same input
13101310    port set up. IE: "Freeze Screen" and no support for a cocktail mode
r1238r1239
13401340INPUT_PORTS_END
13411341
13421342
1343INPUT_PORTS_START( gt3d )
1343static INPUT_PORTS_START( gt3d )
13441344   PORT_INCLUDE(itech32_base)
13451345
13461346   PORT_MODIFY("P1")
r1238r1239
13801380INPUT_PORTS_END
13811381
13821382
1383INPUT_PORTS_START( gt97 ) /* v1.30 is the first known version of GT97 to support Cocktail mode! */
1383static INPUT_PORTS_START( gt97 ) /* v1.30 is the first known version of GT97 to support Cocktail mode! */
13841384   PORT_INCLUDE(gt3d)
13851385
13861386   PORT_MODIFY("DIPS")
r1238r1239
13961396INPUT_PORTS_END
13971397
13981398
1399INPUT_PORTS_START( gt97o ) /* Older versions of GT97 do NOT support a cocktail mode */
1399static INPUT_PORTS_START( gt97o ) /* Older versions of GT97 do NOT support a cocktail mode */
14001400   PORT_INCLUDE(gt3d)
14011401
14021402   PORT_MODIFY("DIPS")
r1238r1239
14061406INPUT_PORTS_END
14071407
14081408
1409INPUT_PORTS_START( gt97s )
1409static INPUT_PORTS_START( gt97s )
14101410   PORT_INCLUDE(gt3d)
14111411
14121412   PORT_MODIFY("DIPS")
r1238r1239
14191419INPUT_PORTS_END
14201420
14211421
1422INPUT_PORTS_START( gt98 )
1422static INPUT_PORTS_START( gt98 )
14231423   PORT_INCLUDE(gt3d)
14241424
14251425   PORT_MODIFY("DIPS")
r1238r1239
14321432INPUT_PORTS_END
14331433
14341434
1435INPUT_PORTS_START( gt98s )
1435static INPUT_PORTS_START( gt98s )
14361436   PORT_INCLUDE(gt3d)
14371437
14381438   PORT_MODIFY("DIPS")
r1238r1239
14451445INPUT_PORTS_END
14461446
14471447
1448INPUT_PORTS_START( s_ver )
1448static INPUT_PORTS_START( s_ver )
14491449   PORT_INCLUDE(gt3d)
14501450
14511451   PORT_MODIFY("DIPS")
r1238r1239
14611461INPUT_PORTS_END
14621462
14631463
1464INPUT_PORTS_START( aama )
1464static INPUT_PORTS_START( aama )
14651465   PORT_INCLUDE(gt3d)
14661466
14671467   PORT_MODIFY("DIPS")
src/mame/drivers/mexico86.c
r1238r1239
141141   AM_RANGE(0x0000, 0x3fff) AM_ROM
142142ADDRESS_MAP_END
143143
144INPUT_PORTS_START( mexico86 )
144static INPUT_PORTS_START( mexico86 )
145145   PORT_START      /* IN0 */
146146   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
147147   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
234234   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
235235INPUT_PORTS_END
236236
237INPUT_PORTS_START( kikikai )
237static INPUT_PORTS_START( kikikai )
238238   PORT_START      /* IN0 */
239239   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
240240   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/chaknpop.c
r1238r1239
127127
128128***************************************************************************/
129129
130INPUT_PORTS_START( chaknpop )
130static INPUT_PORTS_START( chaknpop )
131131   PORT_START_TAG("IN0")
132132   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
133133   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/fitfight.c
r1238r1239
278278
279279/* I've put the inputs the same way they can be read in the "test mode" */
280280
281INPUT_PORTS_START( fitfight )
281static INPUT_PORTS_START( fitfight )
282282   PORT_START   // 0x200000.w
283283   /* players inputs -> 0xe022cc.w */
284284   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
r1238r1239
406406   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
407407INPUT_PORTS_END
408408
409INPUT_PORTS_START( histryma )
409static INPUT_PORTS_START( histryma )
410410   PORT_START   // 0x200000.w
411411   /* players inputs -> 0xe02cf2.w and 0xe02cf8.w */
412412   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
r1238r1239
548548/* Surprisingly, the Dip Switches look very similar to the ones from 'histryma'
549549   (the only difference being that there is no "Needed Points/Maximum Points"
550550   Dip Switch, the value always being set to "2/3") */
551INPUT_PORTS_START( bbprot )
551static INPUT_PORTS_START( bbprot )
552552   PORT_START   // 0x300000.w
553553   /* players inputs -> 0xe0545e.w and 0xe05464.w */
554554   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
src/mame/drivers/sspeedr.c
r1238r1239
152152};
153153
154154
155INPUT_PORTS_START( sspeedr )
155static INPUT_PORTS_START( sspeedr )
156156
157157   PORT_START_TAG("IN0")
158158   PORT_BIT( 0x3f, 0x00, IPT_POSITIONAL ) PORT_POSITIONS(64) PORT_REMAP_TABLE(sspeedr_controller_table) PORT_WRAPS PORT_SENSITIVITY(25) PORT_KEYDELTA(10)
src/mame/drivers/filetto.c
r1238r1239
573573   AM_RANGE(0x03f8, 0x03ff) AM_RAM //rs232c (serial) port
574574ADDRESS_MAP_END
575575
576INPUT_PORTS_START( filetto )
576static INPUT_PORTS_START( filetto )
577577   PORT_START
578578   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) //START1
579579   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1)
src/mame/drivers/ashnojoe.c
r1238r1239
182182   AM_RANGE(0x02, 0x02) AM_WRITE(adpcm_data_w)
183183ADDRESS_MAP_END
184184
185INPUT_PORTS_START( ashnojoe )
185static INPUT_PORTS_START( ashnojoe )
186186   PORT_START_TAG("IN0")   /* player 1 16-bit */
187187   PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_PLAYER(1)
188188   PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_PLAYER(1)
src/mame/drivers/terracre.c
r1238r1239
326326   AM_RANGE(0x03, 0x03) AM_WRITE(DAC_1_signed_data_w)
327327ADDRESS_MAP_END
328328
329INPUT_PORTS_START( terracre )
329static INPUT_PORTS_START( terracre )
330330   PORT_START_TAG("IN0")
331331   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
332332   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
400400   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
401401INPUT_PORTS_END
402402
403INPUT_PORTS_START( amazon )
403static INPUT_PORTS_START( amazon )
404404   PORT_START_TAG("IN0")
405405   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
406406   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
474474   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
475475INPUT_PORTS_END
476476
477INPUT_PORTS_START( horekid )
477static INPUT_PORTS_START( horekid )
478478   PORT_START_TAG("DSW")
479479   PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Lives ) )
480480   PORT_DIPSETTING(      0x0003, "3" )
src/mame/drivers/findout.c
r1238r1239
262262   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) \
263263   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
264264
265INPUT_PORTS_START( reelfun )
265static INPUT_PORTS_START( reelfun )
266266   PORT_START
267267   PORT_DIPNAME( 0x07, 0x01, "Coinage Multiplier" )
268268   PORT_DIPSETTING(    0x07, "7" )
r1238r1239
292292   REELFUN_STANDARD_INPUT
293293INPUT_PORTS_END
294294
295INPUT_PORTS_START( findout )
295static INPUT_PORTS_START( findout )
296296   PORT_START      /* DSW A */
297297   PORT_DIPNAME( 0x07, 0x01, DEF_STR( Coinage ) )
298298   PORT_DIPSETTING(    0x07, DEF_STR( 7C_1C ) )
r1238r1239
322322   REELFUN_STANDARD_INPUT
323323INPUT_PORTS_END
324324
325INPUT_PORTS_START( gt103 )
325static INPUT_PORTS_START( gt103 )
326326   PORT_START      /* DSW A */
327327   PORT_DIPNAME( 0x07, 0x01, "Coinage Multiplier" )
328328   PORT_DIPSETTING(    0x07, "7" )
r1238r1239
352352   TRIVIA_STANDARD_INPUT
353353INPUT_PORTS_END
354354
355INPUT_PORTS_START( gt103a )
355static INPUT_PORTS_START( gt103a )
356356   PORT_START_TAG ("DSWA")
357357   PORT_DIPNAME( 0x03, 0x01, "Questions" )
358358   PORT_DIPSETTING(    0x00, "4" )
r1238r1239
401401   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
402402INPUT_PORTS_END
403403
404INPUT_PORTS_START( quiz )
404static INPUT_PORTS_START( quiz )
405405   PORT_INCLUDE( gt103a )
406406
407407   PORT_MODIFY("DSWA")
r1238r1239
414414   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* no tickets */
415415INPUT_PORTS_END
416416
417INPUT_PORTS_START( gt507uk )
417static INPUT_PORTS_START( gt507uk )
418418   PORT_START      /* DSW A */
419419   PORT_DIPNAME( 0x01, 0x00, "If Ram Error" )
420420   PORT_DIPSETTING( 0x01, "Freeze" )
src/mame/drivers/minivadr.c
r1238r1239
5454ADDRESS_MAP_END
5555
5656
57INPUT_PORTS_START( minivadr )
57static INPUT_PORTS_START( minivadr )
5858   PORT_START
5959   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )
6060   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT )
src/mame/drivers/mouser.c
r1238r1239
103103   AM_RANGE(0x81, 0x81) AM_WRITE(AY8910_control_port_1_w)
104104ADDRESS_MAP_END
105105
106INPUT_PORTS_START( mouser )
106static INPUT_PORTS_START( mouser )
107107    PORT_START
108108    PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED )
109109    PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED )
src/mame/drivers/undrfire.c
r1238r1239
413413             INPUT PORTS (dips in eprom)
414414***********************************************************/
415415
416INPUT_PORTS_START( undrfire )
416static INPUT_PORTS_START( undrfire )
417417   PORT_START_TAG("IN0")
418418   PORT_BIT( 0x0001, IP_ACTIVE_LOW,  IPT_UNKNOWN )
419419   PORT_BIT( 0x0002, IP_ACTIVE_LOW,  IPT_UNKNOWN )
src/mame/drivers/malzak.c
r1238r1239
279279   AM_RANGE(0xc0, 0xc0) AM_WRITE(portc0_w)  // possibly playfield row selection for writing and/or collisions
280280ADDRESS_MAP_END
281281
282INPUT_PORTS_START( malzak )
282static INPUT_PORTS_START( malzak )
283283
284284   /* Malzak has an 8-way stick
285285       and only one button (firing and bomb dropping on the same button) */
r1238r1239
302302
303303INPUT_PORTS_END
304304
305INPUT_PORTS_START( malzak2 )
305static INPUT_PORTS_START( malzak2 )
306306
307307   /* Same as Malzak, but with additional POT switch, and
308308       possibly a reset button too. */
src/mame/drivers/deco32.c
r1238r1239
12441244
12451245*/
12461246
1247INPUT_PORTS_START( captaven )
1247static INPUT_PORTS_START( captaven )
12481248   PORT_START
12491249   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
12501250   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
13501350   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
13511351INPUT_PORTS_END
13521352
1353INPUT_PORTS_START( fghthist )
1353static INPUT_PORTS_START( fghthist )
13541354   PORT_START
13551355   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
13561356   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
13881388   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
13891389INPUT_PORTS_END
13901390
1391INPUT_PORTS_START( dragngun )
1391static INPUT_PORTS_START( dragngun )
13921392   PORT_START
13931393   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED )
13941394   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNUSED )
r1238r1239
14751475   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_SENSITIVITY(20) PORT_KEYDELTA(25) PORT_PLAYER(2)
14761476INPUT_PORTS_END
14771477
1478INPUT_PORTS_START( lockload )
1478static INPUT_PORTS_START( lockload )
14791479   PORT_START
14801480   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED )
14811481   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNUSED )
r1238r1239
15561556   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(20) PORT_KEYDELTA(25) PORT_PLAYER(2)
15571557INPUT_PORTS_END
15581558
1559INPUT_PORTS_START( tattass )
1559static INPUT_PORTS_START( tattass )
15601560   PORT_START
15611561   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
15621562   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
15941594   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNUSED )
15951595INPUT_PORTS_END
15961596
1597INPUT_PORTS_START( nslasher )
1597static INPUT_PORTS_START( nslasher )
15981598   PORT_START
15991599   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
16001600   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/vertigo.c
r1238r1239
7373 *
7474 *************************************/
7575
76INPUT_PORTS_START( vertigo )
76static INPUT_PORTS_START( vertigo )
7777   PORT_START_TAG("IN0")
7878   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10)
7979
src/mame/drivers/midzeus.c
r1238r1239
185185 *
186186 *************************************/
187187
188INPUT_PORTS_START( mk4 )
188static INPUT_PORTS_START( mk4 )
189189   PORT_START       /* DS1 */
190190   PORT_DIPNAME( 0x0001, 0x0001, "Coinage Source" )
191191   PORT_DIPSETTING(      0x0001, "Dipswitch" )
r1238r1239
287287INPUT_PORTS_END
288288
289289
290INPUT_PORTS_START( invasn )
290static INPUT_PORTS_START( invasn )
291291   PORT_START       /* DS1 */
292292   PORT_DIPNAME( 0x0001, 0x0001, "Coinage Source" )
293293   PORT_DIPSETTING(      0x0001, "Dipswitch" )
r1238r1239
392392INPUT_PORTS_END
393393
394394
395INPUT_PORTS_START( crusnexo )
395static INPUT_PORTS_START( crusnexo )
396396   PORT_START       /* DS1 */
397397    PORT_DIPNAME( 0x0001, 0x0001, "Game Type" )   /* Manual states "*DIP 1, Switch 1 MUST be set */
398398    PORT_DIPSETTING(      0x0001, "Dedicated" )   /*   to OFF position for proper operation" */
r1238r1239
494494INPUT_PORTS_END
495495
496496
497INPUT_PORTS_START( thegrid )
497static INPUT_PORTS_START( thegrid )
498498   PORT_START       /* DS1 */
499499    PORT_DIPNAME( 0x0001, 0x0001, "Show Blood" )
500500   PORT_DIPSETTING(      0x0001, DEF_STR( Off ))
r1238r1239
689689   ROM_REGION32_LE( 0x1800000, REGION_USER1, 0 )
690690   ROM_LOAD32_WORD( "mk4_l2.1.u10", 0x000000, 0x200000, CRC(42d0f1c9) SHA1(5ac0ded8bf6e756319be2691e3b555eac079ebdc) )
691691   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) )
698698ROM_END
699699
700700
src/mame/drivers/grchamp.c
r1238r1239
580580 *
581581 *************************************/
582582
583INPUT_PORTS_START( grchamp )
583static INPUT_PORTS_START( grchamp )
584584
585585   PORT_START_TAG("TILT")
586586   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
src/mame/drivers/argus.c
r1238r1239
543543   PORT_DIPSETTING(    0x00, "5" )
544544
545545
546INPUT_PORTS_START( argus )
546static INPUT_PORTS_START( argus )
547547   ARGUS_IN0 /* System control */
548548
549549   ARGUS_IN1 /* Player 1 control */
r1238r1239
579579   PORT_DIPSETTING(    0x80, DEF_STR( 1C_4C ) )
580580INPUT_PORTS_END
581581
582INPUT_PORTS_START( valtric )
582static INPUT_PORTS_START( valtric )
583583
584584   ARGUS_IN0
585585
r1238r1239
616616   PORT_DIPSETTING(    0x80, DEF_STR( 1C_4C ) )
617617INPUT_PORTS_END
618618
619INPUT_PORTS_START( butasan )
619static INPUT_PORTS_START( butasan )
620620   PORT_START_TAG("IN0")
621621   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
622622   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
682682   PORT_DIPSETTING(    0x80, DEF_STR( 1C_4C ) )
683683INPUT_PORTS_END
684684
685INPUT_PORTS_START( bombsa )
685static INPUT_PORTS_START( bombsa )
686686
687687   PORT_START_TAG("IN0")
688688   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
src/mame/drivers/lkage.c
r1238r1239
162162
163163/***************************************************************************/
164164
165INPUT_PORTS_START( lkage )
165static INPUT_PORTS_START( lkage )
166166   PORT_START_TAG("DSW1")
167167   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Bonus_Life ) )
168168   PORT_DIPSETTING(    0x03, "30000 100000" ) /* unverified */
src/mame/drivers/superdq.c
r1238r1239
240240 *
241241 *************************************/
242242
243INPUT_PORTS_START( superdq )
243static INPUT_PORTS_START( superdq )
244244   PORT_START_TAG("IN0")
245245   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
246246   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )
src/mame/drivers/goodejan.c
r1238r1239
122122   AM_RANGE(0xd000, 0xd00f) AM_READWRITE(seibu_main_word_r, seibu_main_word_w)
123123ADDRESS_MAP_END
124124
125INPUT_PORTS_START( goodejan )
125static INPUT_PORTS_START( goodejan )
126126   /* Must be port 0: coin inputs read through sound cpu */
127127   SEIBU_COIN_INPUTS
128128
src/mame/drivers/bestleag.c
r1238r1239
214214   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(player) \
215215   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
216216
217INPUT_PORTS_START( bestleag )
217static INPUT_PORTS_START( bestleag )
218218   PORT_START   /* System inputs */
219219   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
220220   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/gaiden.c
r1238r1239
464464ADDRESS_MAP_END
465465
466466
467INPUT_PORTS_START( shadoww )
467static INPUT_PORTS_START( shadoww )
468468   PORT_START   /* System Inputs */
469469   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
470470   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
544544   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
545545INPUT_PORTS_END
546546
547INPUT_PORTS_START( wildfang )
547static INPUT_PORTS_START( wildfang )
548548   PORT_START   /* System Inputs */
549549   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
550550   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
625625   PORT_DIPSETTING(      0x0000, "Tecmo Knight" )
626626INPUT_PORTS_END
627627
628INPUT_PORTS_START( tknight )
628static INPUT_PORTS_START( tknight )
629629   PORT_START   /* System Inputs */
630630   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
631631   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
705705   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
706706INPUT_PORTS_END
707707
708INPUT_PORTS_START( raiga )
708static INPUT_PORTS_START( raiga )
709709   PORT_START   /* System Inputs */
710710   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
711711   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
794794   PORT_DIPSETTING(      0x0000, DEF_STR( None ) )
795795INPUT_PORTS_END
796796
797INPUT_PORTS_START( drgnbowl )
797static INPUT_PORTS_START( drgnbowl )
798798   PORT_START   /* System Inputs */
799799   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
800800   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/ninjakid.c
r1238r1239
254254 2 Sets of Dipsiwtches
255255*******************************************************************************/
256256
257INPUT_PORTS_START( ninjakid )
257static INPUT_PORTS_START( ninjakid )
258258   PORT_START_TAG("IN0")   /* 0xa000 */
259259   PORT_BIT( 0x01, IP_ACTIVE_LOW,   IPT_JOYSTICK_LEFT ) PORT_2WAY /* "XPOS1" */
260260   PORT_BIT( 0x02, IP_ACTIVE_LOW,   IPT_JOYSTICK_RIGHT ) PORT_2WAY
src/mame/drivers/zaxxon.c
r1238r1239
535535 *
536536 *************************************/
537537
538INPUT_PORTS_START( zaxxon )
538static INPUT_PORTS_START( zaxxon )
539539   PORT_START_TAG("SW00")
540540   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
541541   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
621621INPUT_PORTS_END
622622
623623
624INPUT_PORTS_START( szaxxon )
624static INPUT_PORTS_START( szaxxon )
625625   PORT_INCLUDE(zaxxon)
626626
627627   PORT_MODIFY("DSW02")
r1238r1239
632632INPUT_PORTS_END
633633
634634
635INPUT_PORTS_START( futspy )
635static INPUT_PORTS_START( futspy )
636636   PORT_INCLUDE(zaxxon)
637637
638638   PORT_MODIFY("SW00")
r1238r1239
706706INPUT_PORTS_END
707707
708708
709INPUT_PORTS_START( razmataz )
709static INPUT_PORTS_START( razmataz )
710710   PORT_START_TAG("SW00")
711711   PORT_BIT( 0xff, 0x00, IPT_SPECIAL) PORT_CUSTOM(razmataz_dial_r, 0)
712712
r1238r1239
792792INPUT_PORTS_END
793793
794794
795INPUT_PORTS_START( ixion )
795static INPUT_PORTS_START( ixion )
796796   PORT_INCLUDE(zaxxon)
797797
798798   PORT_MODIFY("SW00")
r1238r1239
856856INPUT_PORTS_END
857857
858858
859INPUT_PORTS_START( congo )
859static INPUT_PORTS_START( congo )
860860   PORT_INCLUDE(zaxxon)
861861
862862   PORT_MODIFY("SW00")
src/mame/drivers/aleck64.c
r1238r1239
212212   AM_RANGE(0x04001000, 0x04001fff) AM_RAM AM_BASE(&rsp_imem) AM_SHARE(2)
213213ADDRESS_MAP_END
214214
215INPUT_PORTS_START( aleck64 )
215static INPUT_PORTS_START( aleck64 )
216216   PORT_START_TAG("P1")
217217      PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1)         // Button A
218218      PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1)         // Button B
r1238r1239
295295      PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_COIN1 )
296296INPUT_PORTS_END
297297
298INPUT_PORTS_START( mtetrisc )
298static INPUT_PORTS_START( mtetrisc )
299299   // The basic N64 controls are unused in this game
300300   PORT_START_TAG("P1")
301301   PORT_START_TAG("P1_ANALOG_X")
r1238r1239
329329
330330INPUT_PORTS_END
331331
332INPUT_PORTS_START( starsldr )
332static INPUT_PORTS_START( starsldr )
333333   PORT_START_TAG("P1")
334334      PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1)         // Button A
335335      PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1)         // Button B
src/mame/drivers/trackfld.c
r1238r1239
368368
369369
370370
371INPUT_PORTS_START( trackfld )
371static INPUT_PORTS_START( trackfld )
372372   PORT_START_TAG("IN0")
373373   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
374374   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
463463   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
464464INPUT_PORTS_END
465465
466INPUT_PORTS_START( atlantol )
466static INPUT_PORTS_START( atlantol )
467467   PORT_START_TAG("IN0")
468468   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
469469   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
558558   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
559559INPUT_PORTS_END
560560
561INPUT_PORTS_START( mastkin )
561static INPUT_PORTS_START( mastkin )
562562   PORT_START_TAG("IN0")
563563   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
564564   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
637637//  PORT_DIPSETTING(    0xf0, DEF_STR( 1C_1C ) )
638638INPUT_PORTS_END
639639
640INPUT_PORTS_START( wizzquiz )
640static INPUT_PORTS_START( wizzquiz )
641641   PORT_START
642642   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
643643   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
730730   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
731731INPUT_PORTS_END
732732
733INPUT_PORTS_START( reaktor )
733static INPUT_PORTS_START( reaktor )
734734   PORT_START_TAG("IN0")
735735   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
736736   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/fastfred.c
r1238r1239
196196ADDRESS_MAP_END
197197
198198
199INPUT_PORTS_START( fastfred )
199static INPUT_PORTS_START( fastfred )
200200   PORT_START_TAG("IN0")
201201   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
202202   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
248248   PORT_DIPSETTING(    0x80, DEF_STR( Cocktail ) )
249249INPUT_PORTS_END
250250
251INPUT_PORTS_START( flyboy )
251static INPUT_PORTS_START( flyboy )
252252   PORT_START_TAG("IN0")
253253   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
254254   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
293293   PORT_DIPSETTING(    0x80, DEF_STR( Cocktail ) )
294294INPUT_PORTS_END
295295
296INPUT_PORTS_START( jumpcoas )
296static INPUT_PORTS_START( jumpcoas )
297297   PORT_START_TAG("DSW0")
298298   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) )
299299   PORT_DIPSETTING(    0x03, DEF_STR( 6C_1C ) )
r1238r1239
340340   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL
341341INPUT_PORTS_END
342342
343INPUT_PORTS_START( boggy84 )
343static INPUT_PORTS_START( boggy84 )
344344   PORT_START_TAG("DSW0")
345345   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) )
346346   PORT_DIPSETTING(    0x03, DEF_STR( 6C_1C ) )
r1238r1239
411411   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
412412INPUT_PORTS_END
413413
414INPUT_PORTS_START( redrobin )
414static INPUT_PORTS_START( redrobin )
415415   PORT_START_TAG("IN0")
416416   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
417417   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
451451   PORT_DIPSETTING(    0x80, DEF_STR( On ) )      /* monsters */
452452INPUT_PORTS_END
453453
454INPUT_PORTS_START( imago )
454static INPUT_PORTS_START( imago )
455455   PORT_START_TAG("IN0")
456456   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
457457   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 )
src/mame/drivers/karnov.c
r1238r1239
409409   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE1 )
410410
411411
412INPUT_PORTS_START( karnov )
412static INPUT_PORTS_START( karnov )
413413INPUTS
414414   PORT_START_TAG("DSW1")
415415   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_B ) )   PORT_DIPLOCATION("SW1:3,4")
r1238r1239
461461   PORT_DIPSETTING(    0x00, "Fast" )
462462INPUT_PORTS_END
463463
464INPUT_PORTS_START( wndrplnt )
464static INPUT_PORTS_START( wndrplnt )
465465INPUTS
466466
467467   PORT_START_TAG("DSW1")   /* Dip switch bank 1 */
r1238r1239
513513   PORT_DIPSETTING(    0x00, DEF_STR( Hardest ) )
514514INPUT_PORTS_END
515515
516INPUT_PORTS_START( chelnov )
516static INPUT_PORTS_START( chelnov )
517517   PORT_START_TAG("IN0")   /* Player 1 controls */
518518   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
519519   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/lwings.c
r1238r1239
384384   AM_RANGE(0x01, 0x01) AM_WRITE(msm5205_w)
385385ADDRESS_MAP_END
386386
387INPUT_PORTS_START( sectionz )
387static INPUT_PORTS_START( sectionz )
388388   PORT_START      /* IN0 */
389389   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
390390   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
461461   PORT_DIPSETTING(    0xc0, DEF_STR( Cocktail ) )
462462INPUT_PORTS_END
463463
464INPUT_PORTS_START( lwings )
464static INPUT_PORTS_START( lwings )
465465   PORT_START      /* IN0 */
466466   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
467467   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
541541   PORT_DIPSETTING(    0x00, DEF_STR( None ) )
542542INPUT_PORTS_END
543543
544INPUT_PORTS_START( trojan )
544static INPUT_PORTS_START( trojan )
545545   PORT_START      /* IN0 */
546546   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
547547   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
621621INPUT_PORTS_END
622622
623623/* Trojan with level selection - starting level dip switches not used */
624INPUT_PORTS_START( trojanls )
624static INPUT_PORTS_START( trojanls )
625625   PORT_START      /* IN0 */
626626   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
627627   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
701701   PORT_DIPSETTING(    0x80, DEF_STR( Yes ) )
702702INPUT_PORTS_END
703703
704INPUT_PORTS_START( avengers )
704static INPUT_PORTS_START( avengers )
705705   PORT_START      /* IN0 */
706706   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
707707   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/xtheball.c
r1238r1239
262262 *
263263 *************************************/
264264
265INPUT_PORTS_START( xtheball )
265static INPUT_PORTS_START( xtheball )
266266   PORT_START
267267   PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED )
268268   PORT_DIPNAME( 0x0700, 0x0000, "Target Tickets")
src/mame/drivers/maxaflex.c
r1238r1239
267267ADDRESS_MAP_END
268268
269269
270INPUT_PORTS_START( a600xl )
270static INPUT_PORTS_START( a600xl )
271271
272272    PORT_START_TAG("console")  /* IN0 console keys & switch settings */
273273   PORT_BIT(0x04, 0x04, IPT_KEYBOARD) PORT_NAME("Option") PORT_CODE(KEYCODE_F2)
src/mame/drivers/punchout.c
r1238r1239
488488
489489
490490
491INPUT_PORTS_START( punchout )
491static INPUT_PORTS_START( punchout )
492492   PORT_START   /* IN0 */
493493   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 )
494494   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN )
r1238r1239
559559INPUT_PORTS_END
560560
561561/* same as punchout with additional duck button */
562INPUT_PORTS_START( spnchout )
562static INPUT_PORTS_START( spnchout )
563563   PORT_START   /* IN0 */
564564   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 )
565565   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN )
r1238r1239
629629   PORT_START
630630INPUT_PORTS_END
631631
632INPUT_PORTS_START( armwrest )
632static INPUT_PORTS_START( armwrest )
633633   PORT_START   /* IN0 */
634634   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
635635   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN )
src/mame/drivers/vegas.c
r1238r1239
17241724 *
17251725 *************************************/
17261726
1727INPUT_PORTS_START( vegas_common )
1727static INPUT_PORTS_START( vegas_common )
17281728   PORT_START_TAG("DIPS")
17291729   PORT_DIPNAME( 0x0001, 0x0001, "Unknown0001" )
17301730   PORT_DIPSETTING(      0x0001, DEF_STR( Off ))
r1238r1239
18371837 *
18381838 *************************************/
18391839
1840INPUT_PORTS_START( gauntleg )
1840static INPUT_PORTS_START( gauntleg )
18411841   PORT_INCLUDE(vegas_common)
18421842
18431843   PORT_MODIFY("DIPS")
r1238r1239
18631863INPUT_PORTS_END
18641864
18651865
1866INPUT_PORTS_START( gauntdl )
1866static INPUT_PORTS_START( gauntdl )
18671867   PORT_INCLUDE(vegas_common)
18681868
18691869   PORT_MODIFY("DIPS")
r1238r1239
18951895INPUT_PORTS_END
18961896
18971897
1898INPUT_PORTS_START( tenthdeg )
1898static INPUT_PORTS_START( tenthdeg )
18991899   PORT_INCLUDE(vegas_common)
19001900
19011901   PORT_MODIFY("DIPS")
r1238r1239
19191919INPUT_PORTS_END
19201920
19211921
1922INPUT_PORTS_START( warfa )
1922static INPUT_PORTS_START( warfa )
19231923   PORT_INCLUDE(vegas_common)
19241924
19251925   PORT_MODIFY("DIPS")
r1238r1239
19631963INPUT_PORTS_END
19641964
19651965
1966INPUT_PORTS_START( roadburn )
1966static INPUT_PORTS_START( roadburn )
19671967   PORT_INCLUDE(vegas_common)
19681968
19691969   PORT_MODIFY("DIPS")
r1238r1239
20072007INPUT_PORTS_END
20082008
20092009
2010INPUT_PORTS_START( nbashowt )
2010static INPUT_PORTS_START( nbashowt )
20112011   PORT_INCLUDE(vegas_common)
20122012
20132013   PORT_MODIFY("DIPS")
r1238r1239
20602060INPUT_PORTS_END
20612061
20622062
2063INPUT_PORTS_START( sf2049 )
2063static INPUT_PORTS_START( sf2049 )
20642064   PORT_INCLUDE(vegas_common)
20652065
20662066   PORT_MODIFY("DIPS")
r1238r1239
21032103INPUT_PORTS_END
21042104
21052105
2106INPUT_PORTS_START( sf2049se )
2106static INPUT_PORTS_START( sf2049se )
21072107   PORT_INCLUDE(vegas_common)
21082108
21092109   PORT_MODIFY("DIPS")
r1238r1239
21342134INPUT_PORTS_END
21352135
21362136
2137INPUT_PORTS_START( sf2049te )
2137static INPUT_PORTS_START( sf2049te )
21382138   PORT_INCLUDE(vegas_common)
21392139
21402140   PORT_MODIFY("DIPS")
r1238r1239
21652165INPUT_PORTS_END
21662166
21672167
2168INPUT_PORTS_START( cartfury )
2168static INPUT_PORTS_START( cartfury )
21692169   PORT_INCLUDE(vegas_common)
21702170
21712171   PORT_MODIFY("DIPS")
src/mame/drivers/kopunch.c
r1238r1239
8787ADDRESS_MAP_END
8888
8989
90INPUT_PORTS_START( kopunch )
90static INPUT_PORTS_START( kopunch )
9191   PORT_START
9292   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
9393   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY
src/mame/drivers/tecmo.c
r1238r1239
227227
228228
229229
230INPUT_PORTS_START( rygar )
230static INPUT_PORTS_START( rygar )
231231   PORT_START   /* IN0 bits 0-3 */
232232   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
233233   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
r1238r1239
316316   PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNKNOWN )
317317INPUT_PORTS_END
318318
319INPUT_PORTS_START( gemini )
319static INPUT_PORTS_START( gemini )
320320   PORT_START   /* IN0 bits 0-3 */
321321   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
322322   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
r1238r1239
408408   PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNKNOWN )
409409INPUT_PORTS_END
410410
411INPUT_PORTS_START( silkworm )
411static INPUT_PORTS_START( silkworm )
412412   PORT_START   /* IN0 bit 0-3 */
413413   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
414414   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
src/mame/drivers/news.c
r1238r1239
3838ADDRESS_MAP_END
3939
4040
41INPUT_PORTS_START( news )
41static INPUT_PORTS_START( news )
4242   PORT_START   /* DSW */
4343   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SWA:1,2")
4444   PORT_DIPSETTING(    0x00, DEF_STR( 3C_1C ) )
r1238r1239
7070   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 )
7171INPUT_PORTS_END
7272
73INPUT_PORTS_START( newsa )
73static INPUT_PORTS_START( newsa )
7474   PORT_START   /* DSW */
7575   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SWA:1,2")
7676   PORT_DIPSETTING(    0x00, DEF_STR( 3C_1C ) )
src/mame/drivers/galpanic.c
r1238r1239
449449   PORT_DIPSETTING(      0x0000, DEF_STR( 1C_6C ) )   PORT_CONDITION("DSW2",0x0008,PORTCOND_EQUALS,0x0008)
450450
451451
452INPUT_PORTS_START( galpanic )
452static INPUT_PORTS_START( galpanic )
453453   PORT_START_TAG("DSW1")
454454   PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unused ) )
455455   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
r1238r1239
537537   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
538538INPUT_PORTS_END
539539
540INPUT_PORTS_START( galpania )
540static INPUT_PORTS_START( galpania )
541541   PORT_START_TAG("DSW1")
542542   PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unused ) )
543543   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
r1238r1239
616616   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
617617INPUT_PORTS_END
618618
619INPUT_PORTS_START( fantasia )
619static INPUT_PORTS_START( fantasia )
620620   PORT_START
621621   PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) )
622622   PORT_DIPSETTING(      0x0002, DEF_STR( Easy ) )
r1238r1239
683683INPUT_PORTS_END
684684
685685/* Same as 'fantasia', but no "Service Mode" Dip Switch (and thus no "hidden" buttons) */
686INPUT_PORTS_START( missw96 )
686static INPUT_PORTS_START( missw96 )
687687   PORT_START
688688   PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) )
689689   PORT_DIPSETTING(      0x0002, DEF_STR( Easy ) )
r1238r1239
751751   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
752752INPUT_PORTS_END
753753
754INPUT_PORTS_START( galhustl )
754static INPUT_PORTS_START( galhustl )
755755   PORT_START
756756   PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Lives ) )
757757   PORT_DIPSETTING(      0x0000, "6" )
r1238r1239
827827   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
828828INPUT_PORTS_END
829829
830INPUT_PORTS_START( zipzap )
830static INPUT_PORTS_START( zipzap )
831831   PORT_START
832832   PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) )
833833   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
src/mame/drivers/finalizr.c
r1238r1239
154154
155155
156156
157INPUT_PORTS_START( finalizr )
157static INPUT_PORTS_START( finalizr )
158158   PORT_START   /* IN2 */
159159   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
160160   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
260260   PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNKNOWN )
261261INPUT_PORTS_END
262262
263INPUT_PORTS_START( finalizb )
263static INPUT_PORTS_START( finalizb )
264264   PORT_START   /* IN2 */
265265   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
266266   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/shuuz.c
r1238r1239
166166 *
167167 *************************************/
168168
169INPUT_PORTS_START( shuuz )
169static INPUT_PORTS_START( shuuz )
170170   PORT_START
171171   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
172172   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
191191INPUT_PORTS_END
192192
193193
194INPUT_PORTS_START( shuuz2 )
194static INPUT_PORTS_START( shuuz2 )
195195   PORT_START
196196   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
197197   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/cclimber.c
r1238r1239
357357   PORT_DIPSETTING(    0x00, DEF_STR( Cocktail ) )\
358358   PORT_BIT( 0xe0, IP_ACTIVE_HIGH, IPT_UNUSED )
359359
360INPUT_PORTS_START( cclimber )
360static INPUT_PORTS_START( cclimber )
361361   CCIN0
362362   CCIN1
363363
r1238r1239
388388INPUT_PORTS_END
389389
390390/* Same as 'cclimber' but correct "Bonus Life" Dip Switch */
391INPUT_PORTS_START( cclimbrj )
391static INPUT_PORTS_START( cclimbrj )
392392   CCIN0
393393   CCIN1
394394
r1238r1239
444444   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START2 )\
445445   PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )
446446
447INPUT_PORTS_START( cannonb )
447static INPUT_PORTS_START( cannonb )
448448   PORT_START_TAG("IN0")
449449   PORT_BIT( 0x07, IP_ACTIVE_HIGH, IPT_UNUSED )
450450   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 )
r1238r1239
487487   PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )
488488INPUT_PORTS_END
489489
490INPUT_PORTS_START( ckong )
490static INPUT_PORTS_START( ckong )
491491   CKONGIN0
492492   CKONGIN1
493493
r1238r1239
519519INPUT_PORTS_END
520520
521521/* Similar to normal Crazy Kong except for the lives per game */
522INPUT_PORTS_START( ckongb )
522static INPUT_PORTS_START( ckongb )
523523   CKONGIN0
524524   CKONGIN1
525525
r1238r1239
550550   CKONGIN2
551551INPUT_PORTS_END
552552
553INPUT_PORTS_START( rpatrolb )
553static INPUT_PORTS_START( rpatrolb )
554554   PORT_START_TAG("IN0")
555555   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL
556556   PORT_BIT( 0x3e, IP_ACTIVE_HIGH, IPT_UNKNOWN )
r1238r1239
642642   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )\
643643   PORT_BIT( 0xfc, IP_ACTIVE_HIGH, IPT_UNUSED )
644644
645INPUT_PORTS_START( swimmer )
645static INPUT_PORTS_START( swimmer )
646646   SWIMIN0
647647   SWIMIN1
648648   SWIMDSW1
r1238r1239
667667INPUT_PORTS_END
668668
669669/* Same as 'swimmer' but different "Difficulty" Dip Switch */
670INPUT_PORTS_START( swimmerb )
670static INPUT_PORTS_START( swimmerb )
671671   SWIMIN0
672672   SWIMIN1
673673   SWIMDSW1
r1238r1239
690690   SWIMIN4
691691INPUT_PORTS_END
692692
693INPUT_PORTS_START( guzzler )
693static INPUT_PORTS_START( guzzler )
694694   PORT_START_TAG("IN0")
695695   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL
696696   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL
src/mame/drivers/xorworld.c
r1238r1239
116116ADDRESS_MAP_END
117117
118118
119INPUT_PORTS_START( xorworld )
119static INPUT_PORTS_START( xorworld )
120120   PORT_START   // DSW0
121121   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) )
122122   PORT_DIPSETTING(    0x00, DEF_STR( 3C_1C ) )
src/mame/drivers/speedspn.c
r1238r1239
174174
175175/*** INPUT PORT **************************************************************/
176176
177INPUT_PORTS_START( speedspn )
177static INPUT_PORTS_START( speedspn )
178178   PORT_START
179179   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
180180   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/cowrace.c
r1238r1239
145145   GFXDECODE_ENTRY( REGION_GFX2, 0x000000, layout8x8x2, 0, 0x1 )
146146GFXDECODE_END
147147
148INPUT_PORTS_START( cowrace )
148static INPUT_PORTS_START( cowrace )
149149   PORT_START   // IN0
150150INPUT_PORTS_END
151151
src/mame/drivers/koikoi.c
r1238r1239
135135
136136ADDRESS_MAP_END
137137
138INPUT_PORTS_START( koikoi )
138static INPUT_PORTS_START( koikoi )
139139   PORT_START   /* DSW */
140140   PORT_DIPNAME( 0x03, 0x01, "Timer C" )
141141    PORT_DIPSETTING(    0x00, "50" )
src/mame/drivers/hexa.c
r1238r1239
6464
6565
6666
67INPUT_PORTS_START( hexa )
67static INPUT_PORTS_START( hexa )
6868   PORT_START   /* IN0 */
6969   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
7070   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY
src/mame/drivers/gticlub.c
r1238r1239
546546}
547547
548548
549INPUT_PORTS_START( gticlub )
549static INPUT_PORTS_START( gticlub )
550550   PORT_START
551551   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 )      // View switch
552552   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 )       // Shift Down
r1238r1239
592592
593593INPUT_PORTS_END
594594
595INPUT_PORTS_START( slrasslt )
595static INPUT_PORTS_START( slrasslt )
596596   PORT_START
597597   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 )                  // View Shift
598598   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)      // Trigger
r1238r1239
634634
635635INPUT_PORTS_END
636636
637INPUT_PORTS_START( thunderh )
637static INPUT_PORTS_START( thunderh )
638638   PORT_START
639639   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 )
640640   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
678678
679679INPUT_PORTS_END
680680
681INPUT_PORTS_START( hangplt )
681static INPUT_PORTS_START( hangplt )
682682   PORT_START
683683   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 )
684684   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/cloak.c
r1238r1239
216216 *
217217 *************************************/
218218
219INPUT_PORTS_START( cloak )
219static INPUT_PORTS_START( cloak )
220220   PORT_START   /* IN0 */
221221   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_8WAY
222222   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_8WAY
src/mame/drivers/system24.c
r1238r1239
12421242   mlatch = 0x00;
12431243}
12441244
1245INPUT_PORTS_START( hotrod )
1245static INPUT_PORTS_START( hotrod )
12461246   PORT_START
12471247   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
12481248   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
13181318   PORT_BIT( 0xffff, IP_ACTIVE_HIGH, IPT_UNUSED )
13191319INPUT_PORTS_END
13201320
1321INPUT_PORTS_START( hotrodj )
1321static INPUT_PORTS_START( hotrodj )
13221322   PORT_START
13231323   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
13241324   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
13941394   PORT_BIT( 0xff, 0x01, IPT_PEDAL ) PORT_MINMAX(0x01,0xff) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_PLAYER(4)
13951395INPUT_PORTS_END
13961396
1397INPUT_PORTS_START( bnzabros )
1397static INPUT_PORTS_START( bnzabros )
13981398   PORT_START
13991399   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
14001400   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
r1238r1239
14521452   PORT_DIPSETTING(    0x00, "1" )
14531453INPUT_PORTS_END
14541454
1455INPUT_PORTS_START( crkdown )
1455static INPUT_PORTS_START( crkdown )
14561456   PORT_START
14571457   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
14581458    PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
r1238r1239
15121512   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
15131513INPUT_PORTS_END
15141514
1515INPUT_PORTS_START( roughrac )
1515static INPUT_PORTS_START( roughrac )
15161516   PORT_START
15171517   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
15181518    PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
r1238r1239
15781578   PORT_BIT( 0xfff, 0x000, IPT_DIAL ) PORT_MINMAX(0x000,0xfff) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_PLAYER(2)
15791579INPUT_PORTS_END
15801580
1581INPUT_PORTS_START( sspirits )
1581static INPUT_PORTS_START( sspirits )
15821582   PORT_START
15831583   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
15841584   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
r1238r1239
16401640INPUT_PORTS_END
16411641
16421642
1643INPUT_PORTS_START( qgh )
1643static INPUT_PORTS_START( qgh )
16441644   PORT_START
16451645   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
16461646   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
r1238r1239
16981698   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
16991699INPUT_PORTS_END
17001700
1701INPUT_PORTS_START( dcclub )
1701static INPUT_PORTS_START( dcclub )
17021702   PORT_START
17031703   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
17041704   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
r1238r1239
17491749   PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_MINMAX(0x00,0x8f) PORT_SENSITIVITY(16) PORT_KEYDELTA(16) PORT_PLAYER(1)
17501750INPUT_PORTS_END
17511751
1752INPUT_PORTS_START( quizmeku )
1752static INPUT_PORTS_START( quizmeku )
17531753   PORT_START
17541754   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START3 )
17551755   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
r1238r1239
18171817   PORT_DIPSETTING(    0x00, DEF_STR( Hardest ) )
18181818INPUT_PORTS_END
18191819
1820INPUT_PORTS_START( mahmajn )
1820static INPUT_PORTS_START( mahmajn )
18211821   PORT_START
18221822   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("A") PORT_CODE(KEYCODE_A)
18231823   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("B") PORT_CODE(KEYCODE_B)
r1238r1239
18991899   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
19001900INPUT_PORTS_END
19011901
1902INPUT_PORTS_START( gground )
1902static INPUT_PORTS_START( gground )
19031903   PORT_START
19041904   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
19051905   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
r1238r1239
19681968   PORT_DIPSETTING(    0x00, "0.80 sec" )
19691969INPUT_PORTS_END
19701970
1971INPUT_PORTS_START( ggroundj )
1971static INPUT_PORTS_START( ggroundj )
19721972   PORT_START
19731973   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
19741974   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
src/mame/drivers/mazerbla.c
r1238r1239
11501150
11511151
11521152
1153INPUT_PORTS_START( mazerbla )
1153static INPUT_PORTS_START( mazerbla )
11541154   PORT_START   /* Strobe 0: ZPU Switches */
11551155   PORT_DIPNAME( 0x40, 0x40, "ZPU Switch 1" )
11561156   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
r1238r1239
12921292   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_SENSITIVITY(25) PORT_KEYDELTA(7) PORT_PLAYER(2)
12931293INPUT_PORTS_END
12941294
1295INPUT_PORTS_START( greatgun )
1295static INPUT_PORTS_START( greatgun )
12961296   PORT_START   /* Strobe 0: ZPU Switches */
12971297   PORT_DIPNAME( 0x40, 0x40, "ZPU Switch 1" )
12981298   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
src/mame/drivers/foodf.c
r1238r1239
261261 *
262262 *************************************/
263263
264INPUT_PORTS_START( foodf )
264static INPUT_PORTS_START( foodf )
265265   PORT_START   /* IN0 */
266266   PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_REVERSE PORT_PLAYER(1)
267267
src/mame/drivers/namcona1.c
r1238r1239
271271
272272/***************************************************************************/
273273
274INPUT_PORTS_START( namcona1_joy )
274static INPUT_PORTS_START( namcona1_joy )
275275   PORT_START
276276   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
277277   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
327327   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 )
328328INPUT_PORTS_END
329329
330INPUT_PORTS_START( namcona1_quiz )
330static INPUT_PORTS_START( namcona1_quiz )
331331   PORT_START
332332   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON4 )
333333   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON3 )
r1238r1239
383383   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 )
384384INPUT_PORTS_END
385385
386INPUT_PORTS_START( namcona2_joy )
386static INPUT_PORTS_START( namcona2_joy )
387387   PORT_START
388388   PORT_DIPNAME( 0x01, 0x00, "DIP2 (Freeze)" )
389389   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
r1238r1239
447447   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN4 )
448448INPUT_PORTS_END
449449
450INPUT_PORTS_START( namcona2_quiz )
450static INPUT_PORTS_START( namcona2_quiz )
451451   PORT_START
452452   PORT_DIPNAME( 0x01, 0x00, "DIP2 (Freeze)" )
453453   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
src/mame/drivers/bsktball.c
r1238r1239
167167 *
168168 *************************************/
169169
170INPUT_PORTS_START( bsktball )
170static INPUT_PORTS_START( bsktball )
171171   PORT_START   /* IN0 */
172172   PORT_BIT( 0xFF, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) /* Sensitivity, clip, min, max */
173173
src/mame/drivers/armedf.c
r1238r1239
515515   PORT_DIPSETTING(    0x00, "6" )
516516
517517
518INPUT_PORTS_START( legion )
518static INPUT_PORTS_START( legion )
519519   PORT_START_TAG("IN0")
520520   NIHON_SINGLE_JOYSTICK(1)
521521   NIHON_COINS
r1238r1239
570570INPUT_PORTS_END
571571
572572
573INPUT_PORTS_START( terraf )
573static INPUT_PORTS_START( terraf )
574574   PORT_START_TAG("IN0")
575575   NIHON_SINGLE_JOYSTICK(1)
576576   NIHON_COINS
r1238r1239
618618   PORT_DIPSETTING(    0x00, DEF_STR( Yes ) )
619619INPUT_PORTS_END
620620
621INPUT_PORTS_START( kodure )
621static INPUT_PORTS_START( kodure )
622622   PORT_START_TAG("IN0")
623623   NIHON_SINGLE_JOYSTICK(1)
624624   NIHON_COINS
r1238r1239
664664   PORT_DIPUNUSED( 0x80, IP_ACTIVE_LOW )
665665INPUT_PORTS_END
666666
667INPUT_PORTS_START( cclimbr2 )
667static INPUT_PORTS_START( cclimbr2 )
668668   PORT_START_TAG("IN0")
669669   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_8WAY PORT_PLAYER(1)
670670   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
727727INPUT_PORTS_END
728728
729729
730INPUT_PORTS_START( armedf )
730static INPUT_PORTS_START( armedf )
731731   PORT_START_TAG("IN0")
732732   NIHON_SINGLE_JOYSTICK(1)
733733   NIHON_COINS
src/mame/drivers/acefruit.c
r1238r1239
292292   AM_RANGE(0x00, 0x00) AM_NOP /* ? */
293293ADDRESS_MAP_END
294294
295INPUT_PORTS_START( sidewndr )
295static INPUT_PORTS_START( sidewndr )
296296   PORT_START_TAG("IN0")   // 0
297297   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME( "Stop Nudge/Nudge Up or Down" )
298298   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME( "Gamble" )
r1238r1239
368368   PORT_DIPSETTING(    0x03, "86%" )
369369INPUT_PORTS_END
370370
371INPUT_PORTS_START( spellbnd )
371static INPUT_PORTS_START( spellbnd )
372372   PORT_INCLUDE(sidewndr)
373373
374374   PORT_MODIFY("IN0")
r1238r1239
412412INPUT_PORTS_END
413413
414414/* I've only mapped the known inputs after comparaison with 'spellbnd' and the ones known to do something */
415INPUT_PORTS_START( starspnr )
415static INPUT_PORTS_START( starspnr )
416416   PORT_START_TAG("IN0")   // 0
417417   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME( "Gamble" )
418418   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 )
src/mame/drivers/dkong.c
r1238r1239
650650 *
651651 *************************************/
652652
653INPUT_PORTS_START( dkong )
653static INPUT_PORTS_START( dkong )
654654   PORT_START      /* IN0 */
655655   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY
656656   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
715715
716716INPUT_PORTS_END
717717
718INPUT_PORTS_START( radarscp )
718static INPUT_PORTS_START( radarscp )
719719   PORT_START      /* IN0 */
720720   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY
721721   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY
r1238r1239
783783
784784INPUT_PORTS_END
785785
786INPUT_PORTS_START( dkong3 )
786static INPUT_PORTS_START( dkong3 )
787787   PORT_START      /* IN0 */
788788   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY
789789   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
851851   PORT_DIPSETTING(    0xc0, DEF_STR( Hardest ) )
852852INPUT_PORTS_END
853853
854INPUT_PORTS_START( dkong3b )
854static INPUT_PORTS_START( dkong3b )
855855   PORT_START      /* IN0 */
856856   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY
857857   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
917917   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
918918INPUT_PORTS_END
919919
920INPUT_PORTS_START( hunchbkd )
920static INPUT_PORTS_START( hunchbkd )
921921   PORT_START      /* IN0 */
922922   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
923923   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
979979   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK )
980980INPUT_PORTS_END
981981
982INPUT_PORTS_START( shootgal )
982static INPUT_PORTS_START( shootgal )
983983   PORT_START      /* IN0 */
984984   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_SENSITIVITY(50) PORT_KEYDELTA(4) PORT_REVERSE
985985
r1238r1239
10241024   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK )
10251025INPUT_PORTS_END
10261026
1027INPUT_PORTS_START( sbdk )
1027static INPUT_PORTS_START( sbdk )
10281028   PORT_START      /* IN0 */
10291029   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
10301030   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
10871087   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK )
10881088INPUT_PORTS_END
10891089
1090INPUT_PORTS_START( herbiedk )
1090static INPUT_PORTS_START( herbiedk )
10911091   PORT_START      /* IN0 */
10921092   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
10931093   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
11541154     - you ALWAYS get an extra life at 150000 points.
11551155     - having more than 6 lives will reset the game.
11561156*/
1157INPUT_PORTS_START( herodk )
1157static INPUT_PORTS_START( herodk )
11581158   PORT_START      /* IN0 */
11591159   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
11601160   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
12151215INPUT_PORTS_END
12161216
12171217
1218INPUT_PORTS_START( pestplce )
1218static INPUT_PORTS_START( pestplce )
12191219   PORT_START      /* IN0 */
12201220   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_PLAYER(1)
12211221   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(1)
r1238r1239
12721272INPUT_PORTS_END
12731273
12741274
1275INPUT_PORTS_START( spclforc )
1275static INPUT_PORTS_START( spclforc )
12761276   PORT_START      /* IN0 */
12771277   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
12781278   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
13331333INPUT_PORTS_END
13341334
13351335
1336INPUT_PORTS_START( 8ballact )
1336static INPUT_PORTS_START( 8ballact )
13371337   PORT_START      /* IN0 */
13381338   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
13391339   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
13971397INPUT_PORTS_END
13981398
13991399
1400INPUT_PORTS_START( drakton )
1400static INPUT_PORTS_START( drakton )
14011401   PORT_START      /* IN0 */
14021402   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY
14031403   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
14551455INPUT_PORTS_END
14561456
14571457
1458INPUT_PORTS_START( strtheat )
1458static INPUT_PORTS_START( strtheat )
14591459   PORT_START      /* IN0 */
14601460   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY
14611461   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY
src/mame/drivers/sprint4.c
r1238r1239
270270ADDRESS_MAP_END
271271
272272
273INPUT_PORTS_START( sprint4 )
273static INPUT_PORTS_START( sprint4 )
274274
275275   PORT_START_TAG("IN0")
276276   PORT_SERVICE( 0x40, IP_ACTIVE_LOW )
src/mame/drivers/appoooh.c
r1238r1239
128128
129129
130130
131INPUT_PORTS_START( appoooh )
131static INPUT_PORTS_START( appoooh )
132132   PORT_START_TAG("IN0")
133133   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY
134134   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
r1238r1239
386386
387387*/
388388
389INPUT_PORTS_START( robowres )
389static INPUT_PORTS_START( robowres )
390390   PORT_START_TAG("IN0")
391391   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY
392392   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
src/mame/drivers/skyraid.c
r1238r1239
129129ADDRESS_MAP_END
130130
131131
132INPUT_PORTS_START( skyraid )
132static INPUT_PORTS_START( skyraid )
133133   PORT_START
134134   PORT_DIPNAME( 0x30, 0x00, DEF_STR( Language ) )
135135   PORT_DIPSETTING(    0x00, DEF_STR( English ) )
src/mame/drivers/travrusa.c
r1238r1239
144144   /* PORT_DIPSETTING( 0x10, "INVALID" ) */\
145145   /* PORT_DIPSETTING( 0x00, "INVALID" ) */
146146
147INPUT_PORTS_START( travrusa )
147static INPUT_PORTS_START( travrusa )
148148TRAV_COMMON
149149
150150   PORT_START_TAG("DSW2")
r1238r1239
174174INPUT_PORTS_END
175175
176176/* same as travrusa, no "Title" switch */
177INPUT_PORTS_START( motorace )
177static INPUT_PORTS_START( motorace )
178178TRAV_COMMON
179179
180180   PORT_START   /* DSW2 */
r1238r1239
201201   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
202202INPUT_PORTS_END
203203
204INPUT_PORTS_START( shtrider )
204static INPUT_PORTS_START( shtrider )
205205   PORT_START_TAG("IN0")
206206   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
207207   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/hanaroku.c
r1238r1239
149149ADDRESS_MAP_END
150150
151151
152INPUT_PORTS_START( hanaroku )
152static INPUT_PORTS_START( hanaroku )
153153   PORT_START_TAG("IN0")   // IN0  (0xe000)
154154   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )      // adds n credits depending on "Coinage" Dip Switch
155155   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )      // adds 5 credits
src/mame/drivers/metlclsh.c
r1238r1239
166166
167167***************************************************************************/
168168
169INPUT_PORTS_START( metlclsh )
169static INPUT_PORTS_START( metlclsh )
170170   PORT_START_TAG("IN0")   /* c000 */
171171   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) )
172172   PORT_DIPSETTING(    0x00, DEF_STR( 2C_1C ) )
src/mame/drivers/aliens.c
r1238r1239
134134
135135***************************************************************************/
136136
137INPUT_PORTS_START( aliens )
137static INPUT_PORTS_START( aliens )
138138   PORT_START_TAG("DSW1")
139139   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )      PORT_DIPLOCATION("SW1:1,2,3,4")
140140   PORT_DIPSETTING(    0x02, DEF_STR( 4C_1C ) )
src/mame/drivers/beezer.c
r1238r1239
4848
4949
5050
51INPUT_PORTS_START( beezer )
51static INPUT_PORTS_START( beezer )
5252   PORT_START   /* IN0 */
5353   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_TILT )
5454   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 )
src/mame/drivers/88games.c
r1238r1239
173173
174174***************************************************************************/
175175
176INPUT_PORTS_START( 88games )
176static INPUT_PORTS_START( 88games )
177177   PORT_START_TAG("IN0")
178178   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
179179   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/ddenlovr.c
r1238r1239
33713371ADDRESS_MAP_END
33723372
33733373
3374INPUT_PORTS_START( ddenlvrj )
3374static INPUT_PORTS_START( ddenlvrj )
33753375   PORT_START   // IN0 - Player 1
33763376   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
33773377   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
r1238r1239
34773477INPUT_PORTS_END
34783478
34793479
3480INPUT_PORTS_START( ddenlovr )
3480static INPUT_PORTS_START( ddenlovr )
34813481   PORT_START   // IN0 - Player 1
34823482   PORT_BIT(  0x01, IP_ACTIVE_LOW, IPT_START1 )
34833483   PORT_BIT(  0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
r1238r1239
35333533INPUT_PORTS_END
35343534
35353535
3536INPUT_PORTS_START( nettoqc )
3536static INPUT_PORTS_START( nettoqc )
35373537   PORT_START   // IN0 - Player 1
35383538   PORT_BIT(  0x01, IP_ACTIVE_LOW, IPT_START1 )
35393539   PORT_BIT(  0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
r1238r1239
36313631INPUT_PORTS_END
36323632
36333633
3634INPUT_PORTS_START( quiz365 )
3634static INPUT_PORTS_START( quiz365 )
36353635   PORT_START   // IN0 - Player 1
36363636   PORT_BIT(  0x01, IP_ACTIVE_LOW, IPT_START1 )
36373637   PORT_BIT(  0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
r1238r1239
37243724INPUT_PORTS_END
37253725
37263726
3727INPUT_PORTS_START( rongrong )
3727static INPUT_PORTS_START( rongrong )
37283728   PORT_START   // IN0 - Player 1
37293729   PORT_BIT(  0x01, IP_ACTIVE_LOW, IPT_START1 )
37303730   PORT_BIT(  0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
r1238r1239
38163816     PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNKNOWN )
38173817INPUT_PORTS_END
38183818
3819INPUT_PORTS_START( quizchq )
3819static INPUT_PORTS_START( quizchq )
38203820   PORT_START   // IN0 - Player 1
38213821   PORT_BIT(  0x01, IP_ACTIVE_LOW, IPT_START1 )
38223822   PORT_BIT(  0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
r1238r1239
39113911   PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNKNOWN )
39123912INPUT_PORTS_END
39133913
3914INPUT_PORTS_START( mmpanic )
3914static INPUT_PORTS_START( mmpanic )
39153915   PORT_START   // IN0 6a (68 = 1:used? 2:normal 3:goes to 69)
39163916   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2)
39173917   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )   // tested?
r1238r1239
40084008INPUT_PORTS_END
40094009
40104010
4011INPUT_PORTS_START( animaljr )
4011static INPUT_PORTS_START( animaljr )
40124012   PORT_START   // IN0 6a (68 = 1:used? 2:normal 3:goes to 69)
40134013   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2)
40144014   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
41054105INPUT_PORTS_END
41064106
41074107
4108INPUT_PORTS_START( hanakanz )
4108static INPUT_PORTS_START( hanakanz )
41094109
41104110   PORT_START   // IN0 - Coins + Service Keys
41114111   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE3   )   // medal out
r1238r1239
43314331INPUT_PORTS_END
43324332
43334333
4334INPUT_PORTS_START( hkagerou )
4334static INPUT_PORTS_START( hkagerou )
43354335
43364336   PORT_START   // IN0 - Coins + Service Keys
43374337   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE3   )   // medal out
r1238r1239
45584558INPUT_PORTS_END
45594559
45604560
4561INPUT_PORTS_START( mjreach1 )
4561static INPUT_PORTS_START( mjreach1 )
45624562
45634563   PORT_START   // IN0 - Coins + Service Keys
45644564   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE3   )   // medal out
r1238r1239
47934793INPUT_PORTS_END
47944794
47954795
4796INPUT_PORTS_START( mjchuuka )
4796static INPUT_PORTS_START( mjchuuka )
47974797
47984798   PORT_START   // IN0 - Coins + Service Keys
47994799   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE3   )   // medal out
r1238r1239
50285028INPUT_PORTS_END
50295029
50305030
5031INPUT_PORTS_START( funkyfig )
5031static INPUT_PORTS_START( funkyfig )
50325032   PORT_START   // IN0 - Keys (port 83 with port 80 = 20)
50335033   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
50345034   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("1") PORT_CODE(KEYCODE_1_PAD)
r1238r1239
51295129
51305130
51315131
5132INPUT_PORTS_START( mjmyster )
5132static INPUT_PORTS_START( mjmyster )
51335133   PORT_START   // IN0 - Coins + Service Keys
51345134   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE3   )   // medal out
51355135   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN   )
r1238r1239
53105310   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
53115311INPUT_PORTS_END
53125312
5313INPUT_PORTS_START( hginga )
5313static INPUT_PORTS_START( hginga )
53145314
53155315   PORT_START   // IN0 - Coins + Service Keys
53165316   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE3   )   // medal out
r1238r1239
55335533   PORT_BIT( 0xbf, IP_ACTIVE_LOW, IPT_UNKNOWN   )
55345534INPUT_PORTS_END
55355535
5536INPUT_PORTS_START( hgokou )
5536static INPUT_PORTS_START( hgokou )
55375537   PORT_START   // IN0
55385538   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE3   )   // medal out
55395539   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN   )
r1238r1239
57495749   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
57505750INPUT_PORTS_END
57515751
5752INPUT_PORTS_START( mjmyornt )
5752static INPUT_PORTS_START( mjmyornt )
57535753   PORT_START   // IN0 - Coins + Service Keys
57545754   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE3   )   // medal out
57555755   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN   )
r1238r1239
59305930   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
59315931INPUT_PORTS_END
59325932
5933INPUT_PORTS_START( mjmyuniv )
5933static INPUT_PORTS_START( mjmyuniv )
59345934   PORT_START   // IN0 - Coins + Service Keys
59355935   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE3   )   // medal out
59365936   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN   )
r1238r1239
61116111   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
61126112INPUT_PORTS_END
61136113
6114INPUT_PORTS_START( akamaru )
6114static INPUT_PORTS_START( akamaru )
61156115   PORT_START   // IN0 - Player 1
61166116   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
61176117   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
r1238r1239
61906190   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
61916191INPUT_PORTS_END
61926192
6193INPUT_PORTS_START( mjflove )
6193static INPUT_PORTS_START( mjflove )
61946194   PORT_START   // IN0 - Coins + Service Keys
61956195   PORT_BIT( 0x01, IP_ACTIVE_LOW,  IPT_COIN1    )
61966196   PORT_BIT( 0x02, IP_ACTIVE_LOW,  IPT_COIN2    )
r1238r1239
63336333   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
63346334INPUT_PORTS_END
63356335
6336INPUT_PORTS_START( hparadis )
6336static INPUT_PORTS_START( hparadis )
63376337   PORT_START   // IN0 - Player 1
63386338   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
63396339   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )
src/mame/drivers/chinagat.c
r1238r1239
350350
351351
352352
353INPUT_PORTS_START( chinagat )
353static INPUT_PORTS_START( chinagat )
354354   PORT_START
355355   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_VBLANK )
356356   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 )
src/mame/drivers/kaneko16.c
r1238r1239
490490static ADDRESS_MAP_START( bloodwar, ADDRESS_SPACE_PROGRAM, 16 )
491491   AM_RANGE(0x000000, 0x0fffff) AM_ROM      // ROM
492492   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
494494   AM_RANGE(0x2a0000, 0x2a0001) AM_WRITE(toybox_mcu_com0_w)   // To MCU ?
495495   AM_RANGE(0x2b0000, 0x2b0001) AM_WRITE(toybox_mcu_com1_w)
496496   AM_RANGE(0x2c0000, 0x2c0001) AM_WRITE(toybox_mcu_com2_w)
r1238r1239
550550static ADDRESS_MAP_START( bonkadv, ADDRESS_SPACE_PROGRAM, 16 )
551551   AM_RANGE(0x000000, 0x0fffff) AM_ROM      // ROM
552552   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
554554   AM_RANGE(0x2a0000, 0x2a0001) AM_WRITE(toybox_mcu_com0_w)   // To MCU ?
555555   AM_RANGE(0x2b0000, 0x2b0001) AM_WRITE(toybox_mcu_com1_w)
556556   AM_RANGE(0x2c0000, 0x2c0001) AM_WRITE(toybox_mcu_com2_w)
r1238r1239
660660static ADDRESS_MAP_START( gtmr_writemem, ADDRESS_SPACE_PROGRAM, 16 )
661661   AM_RANGE(0x000000, 0x0fffff) AM_WRITE(MWA16_ROM               )   // ROM
662662   AM_RANGE(0x100000, 0x10ffff) AM_WRITE(MWA16_RAM               )   // Work RAM
663   AM_RANGE(0x200000, 0x20ffff) AM_WRITE(MWA16_RAM) AM_BASE(&mcu_ram      )   // Shared With MCU
663   AM_RANGE(0x200000, 0x20ffff) AM_WRITE(MWA16_RAM) AM_BASE(&kaneko16_mcu_ram   )   // Shared With MCU
664664   AM_RANGE(0x2a0000, 0x2a0001) AM_WRITE(toybox_mcu_com0_w         )   // To MCU ?
665665   AM_RANGE(0x2b0000, 0x2b0001) AM_WRITE(toybox_mcu_com1_w         )
666666   AM_RANGE(0x2c0000, 0x2c0001) AM_WRITE(toybox_mcu_com2_w         )
r1238r1239
794794static ADDRESS_MAP_START( shogwarr, ADDRESS_SPACE_PROGRAM, 16 )
795795   AM_RANGE(0x000000, 0x03ffff) AM_ROM      // ROM
796796   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
798798   AM_RANGE(0x280000, 0x280001) AM_WRITE(calc3_mcu_com0_w)
799799   AM_RANGE(0x290000, 0x290001) AM_WRITE(calc3_mcu_com1_w)
800800   AM_RANGE(0x2b0000, 0x2b0001) AM_WRITE(calc3_mcu_com2_w)
r1238r1239
866866                            Bakuretsu Breaker
867867***************************************************************************/
868868
869INPUT_PORTS_START( bakubrkr )
869static INPUT_PORTS_START( bakubrkr )
870870   PORT_START   // IN0 - Player 1 + DSW - e00000.w
871871   PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) )
872872   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
r1238r1239
936936                            The Berlin Wall (set 1)
937937***************************************************************************/
938938
939INPUT_PORTS_START( berlwall )
939static INPUT_PORTS_START( berlwall )
940940   PORT_START   // IN0 - Player 1 - 680000.w
941941   PORT_BIT(  0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
942942   PORT_BIT(  0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
10321032
10331033//  Same as berlwall, but for a different lives setting
10341034
1035INPUT_PORTS_START( berlwalt )
1035static INPUT_PORTS_START( berlwalt )
10361036   PORT_START   // IN0 - Player 1 - 680000.w
10371037   PORT_BIT(  0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
10381038   PORT_BIT(  0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
11261126                                    Blaze On
11271127***************************************************************************/
11281128
1129INPUT_PORTS_START( blazeon )
1129static INPUT_PORTS_START( blazeon )
11301130   PORT_START   // IN0 - Player 1 + DSW - c00000.w
11311131   PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) )
11321132   PORT_DIPSETTING(      0x0002, DEF_STR( Easy )    )
r1238r1239
12221222                                Blood Warrior
12231223***************************************************************************/
12241224
1225INPUT_PORTS_START( bloodwar )
1225static INPUT_PORTS_START( bloodwar )
12261226   PORT_START   // IN0 - Player 1 - b00000.w
12271227   PORT_BIT(  0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP      ) PORT_PLAYER(1)
12281228   PORT_BIT(  0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN      ) PORT_PLAYER(1)
r1238r1239
12921292                                Bonk's Adventure
12931293***************************************************************************/
12941294
1295INPUT_PORTS_START( bonkadv )
1295static INPUT_PORTS_START( bonkadv )
12961296   PORT_START   // IN0 - Player 1 - b00000.w
12971297   PORT_BIT(  0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP      ) PORT_PLAYER(1)
12981298   PORT_BIT(  0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN      ) PORT_PLAYER(1)
r1238r1239
13631363                            Great 1000 Miles Rally
13641364***************************************************************************/
13651365
1366INPUT_PORTS_START( gtmr )
1366static INPUT_PORTS_START( gtmr )
13671367   PORT_START   // IN0 - Player 1 - b00000.w
13681368   PORT_BIT(  0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
13691369   PORT_BIT(  0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
14351435                            Great 1000 Miles Rally 2
14361436***************************************************************************/
14371437
1438INPUT_PORTS_START( gtmr2 )
1438static INPUT_PORTS_START( gtmr2 )
14391439   PORT_START   // IN0 - Player 1 - 100004.w <- b00000.w (cpl)
14401440   PORT_BIT(  0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
14411441   PORT_BIT(  0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
15261526                                Magical Crystal
15271527***************************************************************************/
15281528
1529INPUT_PORTS_START( mgcrystl )
1529static INPUT_PORTS_START( mgcrystl )
15301530   PORT_START   // IN0 - Player 1 + DSW - c00000.w
15311531   PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) )
15321532   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
r1238r1239
16131613                                Shogun Warriors
16141614***************************************************************************/
16151615
1616INPUT_PORTS_START( shogwarr )
1616static INPUT_PORTS_START( shogwarr )
16171617   PORT_START   // IN0 - - b80000.w
16181618   PORT_BIT(  0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
16191619   PORT_BIT(  0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/goldstar.c
r1238r1239
9494   AM_RANGE(0x10, 0x10) AM_READ(input_port_8_r)
9595ADDRESS_MAP_END
9696
97INPUT_PORTS_START( goldstar )
97static INPUT_PORTS_START( goldstar )
9898   PORT_START_TAG("IN0")
9999   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
100100   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/dbz.c
r1238r1239
218218/**********************************************************************************/
219219
220220
221INPUT_PORTS_START( dbz )
221static INPUT_PORTS_START( dbz )
222222   PORT_START_TAG("IN0")
223223   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
224224   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
r1238r1239
311311//  PORT_DIPSETTING(    0x00, "Disabled" )
312312INPUT_PORTS_END
313313
314INPUT_PORTS_START( dbz2 )
314static INPUT_PORTS_START( dbz2 )
315315   PORT_START_TAG("IN0")
316316   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
317317   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
src/mame/drivers/cybertnk.c
r1238r1239
395395   AM_RANGE(0xc001, 0xc001 ) AM_WRITE(Y8950_write_port_1_w)
396396ADDRESS_MAP_END
397397
398INPUT_PORTS_START( cybertnk )
398static INPUT_PORTS_START( cybertnk )
399399   PORT_START_TAG("IN0")
400400   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED )
401401   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNUSED )
src/mame/drivers/namcos10.c
r1238r1239
401401   MDRV_SPEAKER_STANDARD_STEREO("left", "right")
402402MACHINE_DRIVER_END
403403
404INPUT_PORTS_START( namcos10 )
404static INPUT_PORTS_START( namcos10 )
405405   /* IN 0 */
406406   PORT_START
407407   PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Test Switch") PORT_CODE(KEYCODE_F2)
src/mame/drivers/wc90.c
r1238r1239
201201
202202
203203
204INPUT_PORTS_START( wc90 )
204static INPUT_PORTS_START( wc90 )
205205   PORT_START   /* IN0 bit 0-5 */
206206   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
207207   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/gauntlet.c
r1238r1239
374374 *
375375 *************************************/
376376
377INPUT_PORTS_START( gauntlet )
377static INPUT_PORTS_START( gauntlet )
378378   PORT_START_TAG("IN0")   /* 803000 */
379379   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 )
380380   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
r1238r1239
435435INPUT_PORTS_END
436436
437437
438INPUT_PORTS_START( vindctr2 )
438static INPUT_PORTS_START( vindctr2 )
439439   PORT_START_TAG("IN0")   /* 803000 */
440440   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
441441   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
src/mame/drivers/ms32.c
r1238r1239
478478   PORT_SERVICE( 0x01, IP_ACTIVE_LOW )
479479
480480
481INPUT_PORTS_START( ms32 )
481static INPUT_PORTS_START( ms32 )
482482   MS32_UNKNOWN_INPUTS
483483
484484   MS32_SYSTEM_INPUTS
r1238r1239
549549
550550INPUT_PORTS_END
551551
552INPUT_PORTS_START( bbbxing )
552static INPUT_PORTS_START( bbbxing )
553553   MS32_UNKNOWN_INPUTS
554554
555555   MS32_SYSTEM_INPUTS
r1238r1239
618618
619619INPUT_PORTS_END
620620
621INPUT_PORTS_START( desertwr )
621static INPUT_PORTS_START( desertwr )
622622   MS32_UNKNOWN_INPUTS
623623
624624   MS32_SYSTEM_INPUTS
r1238r1239
687687
688688INPUT_PORTS_END
689689
690INPUT_PORTS_START( gametngk )
690static INPUT_PORTS_START( gametngk )
691691   MS32_UNKNOWN_INPUTS
692692
693693   MS32_SYSTEM_INPUTS
r1238r1239
756756
757757INPUT_PORTS_END
758758
759INPUT_PORTS_START( tetrisp )
759static INPUT_PORTS_START( tetrisp )
760760   MS32_UNKNOWN_INPUTS
761761
762762   MS32_SYSTEM_INPUTS
r1238r1239
826826
827827INPUT_PORTS_END
828828
829INPUT_PORTS_START( tp2m32 )
829static INPUT_PORTS_START( tp2m32 )
830830   MS32_UNKNOWN_INPUTS
831831
832832   MS32_SYSTEM_INPUTS
r1238r1239
894894INPUT_PORTS_END
895895
896896/* The Dip Switches for this game are completely wrong in the "test mode" ! */
897INPUT_PORTS_START( p47aces )
897static INPUT_PORTS_START( p47aces )
898898   MS32_UNKNOWN_INPUTS
899899
900900   MS32_SYSTEM_INPUTS
r1238r1239
962962
963963INPUT_PORTS_END
964964
965INPUT_PORTS_START( gratia )
965static INPUT_PORTS_START( gratia )
966966   MS32_UNKNOWN_INPUTS
967967
968968   MS32_SYSTEM_INPUTS
r1238r1239
10311031
10321032INPUT_PORTS_END
10331033
1034INPUT_PORTS_START( hayaosi2 )
1034static INPUT_PORTS_START( hayaosi2 )
10351035   MS32_UNKNOWN_INPUTS
10361036
10371037   MS32_SYSTEM_INPUTS
r1238r1239
11471147
11481148INPUT_PORTS_END
11491149
1150INPUT_PORTS_START( kirarast )   // player 1 inputs done? others?
1150static INPUT_PORTS_START( kirarast )   // player 1 inputs done? others?
11511151   MS32_UNKNOWN_INPUTS
11521152
11531153   PORT_START_TAG("IN1")
r1238r1239
12881288   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
12891289INPUT_PORTS_END
12901290
1291INPUT_PORTS_START( akiss )   // player 1 inputs done? others?
1291static INPUT_PORTS_START( akiss )   // player 1 inputs done? others?
12921292   PORT_INCLUDE( kirarast )
12931293
12941294   PORT_MODIFY("IN1")
r1238r1239
12961296   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )
12971297INPUT_PORTS_END
12981298
1299INPUT_PORTS_START( f1superb )   // Mostly wrong !
1299static INPUT_PORTS_START( f1superb )   // Mostly wrong !
13001300   MS32_UNKNOWN_INPUTS
13011301
13021302   MS32_SYSTEM_INPUTS
src/mame/drivers/mpu4.c
r1238r1239
18291829
18301830// input ports for MPU4 board ////////////////////////////////////////
18311831
1832INPUT_PORTS_START( mpu4 )
1832static INPUT_PORTS_START( mpu4 )
18331833   PORT_START_TAG("ORANGE1")
18341834   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("00")
18351835   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("01")
r1238r1239
19441944
19451945INPUT_PORTS_END
19461946
1947INPUT_PORTS_START( connect4 )
1947static INPUT_PORTS_START( connect4 )
19481948   PORT_START_TAG("ORANGE1")
19491949   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("00")
19501950   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("01")
r1238r1239
20592059
20602060INPUT_PORTS_END
20612061
2062INPUT_PORTS_START( crmaze )
2062static INPUT_PORTS_START( crmaze )
20632063   PORT_START_TAG("ORANGE1")
20642064   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("00")
20652065   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("01")
r1238r1239
21742174
21752175INPUT_PORTS_END
21762176
2177INPUT_PORTS_START( dealem )
2177static INPUT_PORTS_START( dealem )
21782178   PORT_START_TAG("ORANGE1")
21792179   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Gamble")
21802180   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_START2) PORT_NAME("Pontoon")
src/mame/drivers/skylncr.c
r1238r1239
261261   GFXDECODE_ENTRY( REGION_GFX2, 0, layout8x32x8,      0, 2 )
262262GFXDECODE_END
263263
264INPUT_PORTS_START( skylncr )
264static INPUT_PORTS_START( skylncr )
265265
266266   PORT_START   // IN0 - $0 "PORT0 A"
267267   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1)
src/mame/drivers/darkseal.c
r1238r1239
144144
145145/******************************************************************************/
146146
147INPUT_PORTS_START( darkseal )
147static INPUT_PORTS_START( darkseal )
148148   PORT_START   /* Player 1 controls */
149149   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
150150   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/20pacgal.c
r1238r1239
163163
164164
165165
166INPUT_PORTS_START( 20pacgal )
166static INPUT_PORTS_START( 20pacgal )
167167   PORT_START
168168   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    )
169169   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  )
src/mame/drivers/seicross.c
r1238r1239
161161
162162
163163
164INPUT_PORTS_START( friskyt )
164static INPUT_PORTS_START( friskyt )
165165   PORT_START      /* IN0 */
166166   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY
167167   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
194194   PORT_BIT( 0xfc, IP_ACTIVE_HIGH, IPT_UNKNOWN )   /* probably unused */
195195INPUT_PORTS_END
196196
197INPUT_PORTS_START( radrad )
197static INPUT_PORTS_START( radrad )
198198   PORT_START      /* IN0 */
199199   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY
200200   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
274274   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
275275INPUT_PORTS_END
276276
277INPUT_PORTS_START( seicross )
277static INPUT_PORTS_START( seicross )
278278   PORT_START      /* IN0 */
279279   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY
280280   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/spbactn.c
r1238r1239
215215   AM_RANGE(0xfc00, 0xfc00) AM_WRITE(MWA8_NOP)   /* irq ack ?? */
216216ADDRESS_MAP_END
217217
218INPUT_PORTS_START( spbactn )
218static INPUT_PORTS_START( spbactn )
219219   PORT_START   /* IN0 */
220220   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
221221   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/system16.c
r1238r1239
11231123INPUT_PORTS_END
11241124
11251125
1126INPUT_PORTS_START( fpointbj )
1126static INPUT_PORTS_START( fpointbj )
11271127   SYS16_SERVICE
11281128
11291129   PORT_START_TAG("IN0")
r1238r1239
15691569   PORT_DIPSETTING(    0x00, DEF_STR( Hardest ) )
15701570INPUT_PORTS_END
15711571
1572INPUT_PORTS_START( passht4b )
1572static INPUT_PORTS_START( passht4b )
15731573   PORT_START_TAG("IN0")
15741574   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
15751575   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
r1238r1239
21042104
21052105/***************************************************************************/
21062106
2107INPUT_PORTS_START( wb3b )
2107static INPUT_PORTS_START( wb3b )
21082108   SYS16_JOY1
21092109   SYS16_JOY2
21102110   SYS16_SERVICE
src/mame/drivers/deniam.c
r1238r1239
173173
174174
175175
176INPUT_PORTS_START( karianx )
176static INPUT_PORTS_START( karianx )
177177   PORT_START
178178   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
179179   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
228228   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
229229INPUT_PORTS_END
230230
231INPUT_PORTS_START( logicpr2 )
231static INPUT_PORTS_START( logicpr2 )
232232   PORT_START
233233   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
234234   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/limenko.c
r1238r1239
312312  INPUT PORTS
313313*****************************************************************************************************/
314314
315INPUT_PORTS_START( legendoh )
315static INPUT_PORTS_START( legendoh )
316316   PORT_START
317317   PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )    PORT_PLAYER(1)
318318   PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )  PORT_PLAYER(1)
r1238r1239
372372   PORT_BIT( 0x4000ffff, IP_ACTIVE_LOW, IPT_UNUSED )
373373INPUT_PORTS_END
374374
375INPUT_PORTS_START( sb2003 )
375static INPUT_PORTS_START( sb2003 )
376376   PORT_START
377377   PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )    PORT_PLAYER(1)
378378   PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )  PORT_PLAYER(1)
r1238r1239
410410   PORT_BIT( 0x5f10ffff, IP_ACTIVE_LOW, IPT_UNUSED )
411411INPUT_PORTS_END
412412
413INPUT_PORTS_START( spotty )
413static INPUT_PORTS_START( spotty )
414414   PORT_START
415415   PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )    PORT_NAME("Hold 1")
416416   PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )  PORT_NAME("Hold 2")
src/mame/drivers/redalert.c
r1238r1239
154154ADDRESS_MAP_END
155155
156156
157INPUT_PORTS_START( redalert )
157static INPUT_PORTS_START( redalert )
158158   PORT_START            /* DIP Switches */
159159   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) )
160160   PORT_DIPSETTING(    0x00, "3" )
r1238r1239
202202INPUT_PORTS_END
203203
204204
205INPUT_PORTS_START( demoneye )
205static INPUT_PORTS_START( demoneye )
206206   PORT_START            /* DIP Switches */
207207   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) )
208208   PORT_DIPSETTING(    0x00, "3" )
src/mame/drivers/mcr3.c
r1238r1239
507507 *************************************/
508508
509509/* verified from wiring diagram, plus DIP switches from manual */
510INPUT_PORTS_START( demoderm )
510static INPUT_PORTS_START( demoderm )
511511   PORT_START_TAG("MONO.IP0")   /* J2 1-8 */
512512   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
513513   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
571571
572572
573573/* not verified, no manual found */
574INPUT_PORTS_START( sarge )
574static INPUT_PORTS_START( sarge )
575575   PORT_START_TAG("MONO.IP0")   /* J2 1-8 */
576576   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
577577   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
614614
615615
616616/* verified from wiring diagram, plus DIP switches from manual */
617INPUT_PORTS_START( maxrpm )
617static INPUT_PORTS_START( maxrpm )
618618   PORT_START_TAG("MONO.IP0")   /* J2 1-8 */
619619   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
620620   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
664664
665665
666666/* verified from wiring diagram, plus DIP switches from manual */
667INPUT_PORTS_START( rampage )
667static INPUT_PORTS_START( rampage )
668668   PORT_START_TAG("MONO.IP0")   /* J2 1-8 */
669669   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
670670   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
730730
731731
732732/* verified from wiring diagram, plus DIP switches from manual */
733INPUT_PORTS_START( powerdrv )
733static INPUT_PORTS_START( powerdrv )
734734   PORT_START_TAG("MONO.IP0")   /* J2 1-8 */
735735   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
736736   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
784784
785785
786786/* verified from wiring diagram, plus DIP switches from manual */
787INPUT_PORTS_START( stargrds )
787static INPUT_PORTS_START( stargrds )
788788   PORT_START_TAG("MONO.IP0")   /* J2 1-8 */
789789   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
790790   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
855855
856856
857857/* verified from wiring diagram, plus DIP switches from manual */
858INPUT_PORTS_START( spyhunt )
858static INPUT_PORTS_START( spyhunt )
859859   PORT_START_TAG("SSIO.IP0")   /* J4 1-8 */
860860   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
861861   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
901901
902902
903903/* not verified, no manual found */
904INPUT_PORTS_START( crater )
904static INPUT_PORTS_START( crater )
905905   PORT_START_TAG("SSIO.IP0")   /* J4 1-8 */
906906   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
907907   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
936936
937937
938938/* not verified, no manual found */
939INPUT_PORTS_START( turbotag )
939static INPUT_PORTS_START( turbotag )
940940   PORT_START_TAG("SSIO.IP0")   /* J4 1-8 */
941941   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
942942   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/pipeline.c
r1238r1239
103103}
104104
105105
106INPUT_PORTS_START( pipeline )
106static INPUT_PORTS_START( pipeline )
107107   PORT_START
108108   PORT_BIT(  0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
109109   PORT_BIT(  0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
src/mame/drivers/pengo.c
r1238r1239
148148 *
149149 *************************************/
150150
151INPUT_PORTS_START( pengo )
151static INPUT_PORTS_START( pengo )
152152   PORT_START_TAG("IN0")
153153   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
154154   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY
r1238r1239
237237INPUT_PORTS_END
238238
239239
240INPUT_PORTS_START( jrpacmbl )
240static INPUT_PORTS_START( jrpacmbl )
241241   PORT_START_TAG("IN0")
242242   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
243243   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY
src/mame/drivers/stadhero.c
r1238r1239
135135
136136/******************************************************************************/
137137
138INPUT_PORTS_START( stadhero )
138static INPUT_PORTS_START( stadhero )
139139   PORT_START   /* Player 1 controls */
140140   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
141141   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/prehisle.c
r1238r1239
9191
9292/******************************************************************************/
9393
94INPUT_PORTS_START( prehisle )
94static INPUT_PORTS_START( prehisle )
9595   PORT_START   /* Player 1 controls */
9696   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
9797   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/simpsons.c
r1238r1239
105105
106106***************************************************************************/
107107
108INPUT_PORTS_START( simpsons )
108static INPUT_PORTS_START( simpsons )
109109   PORT_START /* IN0 - Player 1 */
110110   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
111111   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
161161   PORT_BIT( 0xfe, IP_ACTIVE_LOW, IPT_UNKNOWN )
162162INPUT_PORTS_END
163163
164INPUT_PORTS_START( simpsn2p )
164static INPUT_PORTS_START( simpsn2p )
165165   PORT_START /* IN0 - Player 1 */
166166   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
167167   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/marvins.c
r1238r1239
216216ADDRESS_MAP_END
217217
218218
219INPUT_PORTS_START( marvins )
219static INPUT_PORTS_START( marvins )
220220   PORT_START_TAG("IN0")
221221   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
222222   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
297297INPUT_PORTS_END
298298
299299
300INPUT_PORTS_START( vangrd2 )
300static INPUT_PORTS_START( vangrd2 )
301301   PORT_START_TAG("IN0")
302302   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
303303   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN )
r1238r1239
379379INPUT_PORTS_END
380380
381381
382INPUT_PORTS_START( madcrash )
382static INPUT_PORTS_START( madcrash )
383383   PORT_START_TAG("IN0")
384384   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
385385   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
src/mame/drivers/wwfsstar.c
r1238r1239
216216 2 Sets of Dipswitches
217217*******************************************************************************/
218218
219INPUT_PORTS_START( wwfsstar )
219static INPUT_PORTS_START( wwfsstar )
220220   PORT_START
221221   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
222222   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
src/mame/drivers/model1.c
r1238r1239
10871087   REGION_SOUND2
10881088};
10891089
1090INPUT_PORTS_START( vf )
1090static INPUT_PORTS_START( vf )
10911091   PORT_START_TAG("AN0")  /* Unused analog port 0 */
10921092   PORT_START_TAG("AN1")  /* Unused analog port 1 */
10931093   PORT_START_TAG("AN2")  /* Unused analog port 2 */
r1238r1239
11281128   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2)
11291129INPUT_PORTS_END
11301130
1131INPUT_PORTS_START( vr )
1131static INPUT_PORTS_START( vr )
11321132   PORT_START_TAG("AN0")   /* Steering */
11331133   PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_SENSITIVITY(100) PORT_KEYDELTA(3)
11341134
r1238r1239
11681168   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
11691169INPUT_PORTS_END
11701170
1171INPUT_PORTS_START( wingwar )
1171static INPUT_PORTS_START( wingwar )
11721172   PORT_START_TAG("AN0")   /* X */
11731173   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4)
11741174
r1238r1239
12081208   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
12091209INPUT_PORTS_END
12101210
1211INPUT_PORTS_START( swa )
1211static INPUT_PORTS_START( swa )
12121212   PORT_START_TAG("AN0")   /* X */
12131213   PORT_BIT( 0xff, 127, IPT_AD_STICK_X ) PORT_MINMAX(27,227) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_REVERSE
12141214
src/mame/drivers/actfancr.c
r1238r1239
162162
163163/******************************************************************************/
164164
165INPUT_PORTS_START( actfancr )
165static INPUT_PORTS_START( actfancr )
166166   PORT_START_TAG("IN0")   /* Player 1 controls */
167167   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
168168   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
242242   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
243243INPUT_PORTS_END
244244
245INPUT_PORTS_START( triothep )
245static INPUT_PORTS_START( triothep )
246246   PORT_START_TAG("IN0")   /* Player 1 controls */
247247   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
248248   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/polepos.c
r1238r1239
480480 * Input port definitions
481481 *********************************************************************/
482482
483INPUT_PORTS_START( polepos )
483static INPUT_PORTS_START( polepos )
484484   PORT_START
485485   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
486486   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Gear Change") PORT_CODE(KEYCODE_SPACE) POLEPOS_TOGGLE /* Gear */
r1238r1239
552552INPUT_PORTS_END
553553
554554
555INPUT_PORTS_START( poleposa )
555static INPUT_PORTS_START( poleposa )
556556   PORT_START
557557   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
558558   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Gear Change") PORT_CODE(KEYCODE_SPACE) POLEPOS_TOGGLE /* Gear */
r1238r1239
624624INPUT_PORTS_END
625625
626626
627INPUT_PORTS_START( topracra )
627static INPUT_PORTS_START( topracra )
628628   // no coins ?!
629629   PORT_START
630630   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
696696INPUT_PORTS_END
697697
698698
699INPUT_PORTS_START( polepos2 )
699static INPUT_PORTS_START( polepos2 )
700700   PORT_START
701701   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
702702   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Gear Change") PORT_CODE(KEYCODE_SPACE) POLEPOS_TOGGLE /* Gear */
src/mame/drivers/taito_b.c
r1238r1239
11541154   PORT_DIPSETTING(    0x08, DEF_STR( On ) )
11551155
11561156
1157INPUT_PORTS_START( rastsag2 )
1157static INPUT_PORTS_START( rastsag2 )
11581158   PORT_START_TAG("DSWA")
11591159   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )  // all 2 "unused" in manual
11601160   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
11951195   TAITO_B_SYSTEM_INPUT
11961196INPUT_PORTS_END
11971197
1198INPUT_PORTS_START( nastar )
1198static INPUT_PORTS_START( nastar )
11991199   PORT_START_TAG("DSWA")
12001200   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )
12011201   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
12361236   TAITO_B_SYSTEM_INPUT
12371237INPUT_PORTS_END
12381238
1239INPUT_PORTS_START( nastarw )
1239static INPUT_PORTS_START( nastarw )
12401240   PORT_START_TAG("DSWA")
12411241   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
12421242   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
12771277   TAITO_B_SYSTEM_INPUT
12781278INPUT_PORTS_END
12791279
1280INPUT_PORTS_START( masterw )
1280static INPUT_PORTS_START( masterw )
12811281   PORT_START_TAG("DSWA")
12821282   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
12831283   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
13191319
13201320INPUT_PORTS_END
13211321
1322INPUT_PORTS_START( crimec )
1322static INPUT_PORTS_START( crimec )
13231323   PORT_START_TAG("DSWA")
13241324   PORT_DIPNAME( 0x01, 0x01, "Hi Score" )
13251325   PORT_DIPSETTING(    0x01, "Scribble" )
r1238r1239
13591359   TAITO_B_SYSTEM_INPUT
13601360INPUT_PORTS_END
13611361
1362INPUT_PORTS_START( crimecj )
1362static INPUT_PORTS_START( crimecj )
13631363   PORT_START_TAG("DSWA")
13641364   PORT_DIPNAME( 0x01, 0x01, "Hi Score" )
13651365   PORT_DIPSETTING(    0x01, "Scribble" )
r1238r1239
13991399   TAITO_B_SYSTEM_INPUT
14001400INPUT_PORTS_END
14011401
1402INPUT_PORTS_START( crimecu )
1402static INPUT_PORTS_START( crimecu )
14031403   PORT_START_TAG("DSWA")
14041404   PORT_DIPNAME( 0x01, 0x01, "Hi Score" )
14051405   PORT_DIPSETTING(    0x01, "Scribble" )
r1238r1239
14391439   TAITO_B_SYSTEM_INPUT
14401440INPUT_PORTS_END
14411441
1442INPUT_PORTS_START( tetrist )
1442static INPUT_PORTS_START( tetrist )
14431443   PORT_START_TAG("DSWA")
14441444   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
14451445   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
14821482   TAITO_B_SYSTEM_INPUT
14831483INPUT_PORTS_END
14841484
1485INPUT_PORTS_START( ashura )
1485static INPUT_PORTS_START( ashura )
14861486   PORT_START_TAG("DSWA")
14871487   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
14881488   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
15231523   TAITO_B_SYSTEM_INPUT
15241524INPUT_PORTS_END
15251525
1526INPUT_PORTS_START( ashurau )
1526static INPUT_PORTS_START( ashurau )
15271527   PORT_START_TAG("DSWA")
15281528   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
15291529   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
160916095,6,7 are set to off
16101610*/
16111611
1612INPUT_PORTS_START( hitice )
1612static INPUT_PORTS_START( hitice )
16131613   PORT_START_TAG("DSWA")
16141614   PORT_DIPNAME( 0x01, 0x01, "Cabinet Style" )
16151615   PORT_DIPSETTING(    0x01, "4 Players")
r1238r1239
16921692   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START4 )
16931693INPUT_PORTS_END
16941694
1695INPUT_PORTS_START( rambo3 )
1695static INPUT_PORTS_START( rambo3 )
16961696   PORT_START_TAG("DSWA")
16971697   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )  // all 5 "unused" in manual
16981698   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
17351735   TAITO_B_SYSTEM_INPUT
17361736INPUT_PORTS_END
17371737
1738INPUT_PORTS_START( rambo3a )
1738static INPUT_PORTS_START( rambo3a )
17391739   PORT_START /* DSW A */
17401740   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )
17411741   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
18201820
18211821/* Helps document the input ports. */
18221822
1823INPUT_PORTS_START( pbobble )   /* Missing P3&4 controls ! */
1823static INPUT_PORTS_START( pbobble )   /* Missing P3&4 controls ! */
18241824   PORT_START_TAG("IN0")
18251825   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /*unused in test mode*/
18261826   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /*unused in test mode*/
r1238r1239
18921892   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(4)
18931893INPUT_PORTS_END
18941894
1895INPUT_PORTS_START( spacedxo )
1895static INPUT_PORTS_START( spacedxo )
18961896   PORT_START_TAG("DSWA")
18971897   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) )
18981898   PORT_DIPSETTING(    0x01, DEF_STR( Upright ) )
r1238r1239
19811981
19821982INPUT_PORTS_END
19831983
1984INPUT_PORTS_START( qzshowby )
1984static INPUT_PORTS_START( qzshowby )
19851985   PORT_START_TAG("IN0")
19861986   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /*unused in test mode*/
19871987   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /*unused in test mode*/
r1238r1239
20532053   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(4)
20542054INPUT_PORTS_END
20552055
2056INPUT_PORTS_START( viofight )
2056static INPUT_PORTS_START( viofight )
20572057   PORT_START_TAG("DSWA")
20582058   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )  // all 7 "unused" in manual
20592059   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
20962096   TAITO_B_SYSTEM_INPUT
20972097INPUT_PORTS_END
20982098
2099INPUT_PORTS_START( silentd )   /* World Version */
2099static INPUT_PORTS_START( silentd )   /* World Version */
21002100   PORT_START_TAG("DSWA")
21012101   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )   /* Listed as "NOT USED" in the manual and only shown as "OFF" */
21022102   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
22202220   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
22212221INPUT_PORTS_END
22222222
2223INPUT_PORTS_START( silentdj )
2223static INPUT_PORTS_START( silentdj )
22242224   PORT_START_TAG("DSWA")
22252225   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )   /* Listed as "NOT USED" in the manual and only shown as "OFF" */
22262226   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
23152315   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
23162316INPUT_PORTS_END
23172317
2318INPUT_PORTS_START( selfeena )
2318static INPUT_PORTS_START( selfeena )
23192319   PORT_START_TAG("DSWA")
23202320   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )
23212321   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
23732373   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2)
23742374INPUT_PORTS_END
23752375
2376INPUT_PORTS_START( ryujin )
2376static INPUT_PORTS_START( ryujin )
23772377   PORT_START_TAG("DSWA")
23782378   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )
23792379   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
24322432   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2)
24332433INPUT_PORTS_END
24342434
2435INPUT_PORTS_START( sbm )
2435static INPUT_PORTS_START( sbm )
24362436   PORT_START_TAG("DSWA") /* DSW A *///+-ok
24372437   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
24382438   PORT_DIPSETTING(    0x01, DEF_STR( Off ))
src/mame/drivers/jackal.c
r1238r1239
8989
9090/* Input Ports */
9191
92INPUT_PORTS_START( jackal )
92static INPUT_PORTS_START( jackal )
9393   PORT_START_TAG("DSW1")
9494   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
9595   PORT_DIPSETTING(    0x02, DEF_STR( 4C_1C ) )
r1238r1239
181181   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
182182INPUT_PORTS_END
183183
184INPUT_PORTS_START( topgunbl )
184static INPUT_PORTS_START( topgunbl )
185185   PORT_INCLUDE(jackal)
186186
187187   PORT_MODIFY("IN0")
src/mame/drivers/tank8.c
r1238r1239
185185ADDRESS_MAP_END
186186
187187
188INPUT_PORTS_START( tank8 )
188static INPUT_PORTS_START( tank8 )
189189
190190   PORT_START // 0
191191   PORT_BIT( 0x01, IP_ACTIVE_LOW,  IPT_COIN1 )
src/mame/drivers/viper.c
r1238r1239
604604/*****************************************************************************/
605605
606606
607INPUT_PORTS_START(viper)
607static INPUT_PORTS_START(viper)
608608
609609INPUT_PORTS_END
610610
r1238r1239
10141014/*****************************************************************************/
10151015
10161016/* Viper BIOS */
1017GAMEB(1999, kviper,   0,        kviper, viper, viper, viper, ROT0, "Konami", "Konami Viper BIOS", GAME_IS_BIOS_ROOT)
1017GAME(1999, kviper,   0, viper, viper, viper, ROT0, "Konami", "Konami Viper BIOS", GAME_IS_BIOS_ROOT)
10181018
1019GAMEB(2001, ppp2nd,   kviper,   kviper, viper, viper, ppp2nd,   ROT0,  "Konami", "ParaParaParadise 2nd Mix", GAME_NOT_WORKING|GAME_NO_SOUND)
1019GAME(2001, ppp2nd,   kviper, viper, viper, ppp2nd,   ROT0,  "Konami", "ParaParaParadise 2nd Mix", GAME_NOT_WORKING|GAME_NO_SOUND)
10201020
1021GAMEB(2001, boxingm,  kviper,   kviper, viper, viper, vipercf,  ROT0,  "Konami", "Boxing Mania", GAME_NOT_WORKING|GAME_NO_SOUND)
1022GAMEB(2000, code1d,   kviper,   kviper, viper, viper, vipercf,  ROT0,  "Konami", "Code One Dispatch", GAME_NOT_WORKING|GAME_NO_SOUND)
1023GAMEB(2000, code1db,  code1d,   kviper, viper, viper, vipercf,  ROT0,  "Konami", "Code One Dispatch (ver B)", GAME_NOT_WORKING|GAME_NO_SOUND)
1024GAMEB(2001, gticlub2, kviper,   kviper, viper, viper, vipercf,  ROT0,  "Konami", "GTI Club 2", GAME_NOT_WORKING|GAME_NO_SOUND)
1025GAMEB(2001, jpark3,   kviper,   kviper, viper, viper, vipercf,  ROT0,  "Konami", "Jurassic Park 3", GAME_NOT_WORKING|GAME_NO_SOUND)
1026GAMEB(2001, mocapglf, kviper,   kviper, viper, viper, vipercf,  ROT0,  "Konami", "Mocap Golf", GAME_NOT_WORKING|GAME_NO_SOUND)
1027GAMEB(2001, mocapb,   kviper,   kviper, viper, viper, vipercf,  ROT0,  "Konami", "Mocap Boxing (ver AAA)", GAME_NOT_WORKING|GAME_NO_SOUND)
1028GAMEB(2001, mocapbj,  mocapb,   kviper, viper, viper, vipercf,  ROT0,  "Konami", "Mocap Boxing (ver JAA)", GAME_NOT_WORKING|GAME_NO_SOUND)
1029GAMEB(2001, p911,     kviper,   kviper, viper, viper, vipercf,  ROT0,  "Konami", "Police 911", GAME_NOT_WORKING|GAME_NO_SOUND)
1030GAMEB(2001, p911uc,   p911,     kviper, viper, viper, vipercf,  ROT0,  "Konami", "Police 911 (ver UAC)", GAME_NOT_WORKING|GAME_NO_SOUND)
1031GAMEB(2001, p911e,    p911,     kviper, viper, viper, vipercf,  ROT0,  "Konami", "Police 24/7 (ver EAA)", GAME_NOT_WORKING|GAME_NO_SOUND)
1032GAMEB(2001, p911j,    p911,     kviper, viper, viper, vipercf,  ROT0,  "Konami", "Keisatsukan Shinjuku 24ji (ver JAC)", GAME_NOT_WORKING|GAME_NO_SOUND)
1033GAMEB(2001, p9112,    kviper,   kviper, viper, viper, vipercf,  ROT0,  "Konami", "Police 911 2", GAME_NOT_WORKING|GAME_NO_SOUND)
1034GAMEB(2003, popn9,    kviper,   kviper, viper, viper, vipercf,  ROT0,  "Konami", "Pop'n Music 9", GAME_NOT_WORKING|GAME_NO_SOUND)
1035GAMEB(2001, sscopex,  kviper,   kviper, viper, viper, vipercf,  ROT0,  "Konami", "Silent Scope EX (ver UAA)", GAME_NOT_WORKING|GAME_NO_SOUND)
1036GAMEB(2001, sogeki,   sscopex,  kviper, viper, viper, vipercf,  ROT0,  "Konami", "Sogeki (ver JAA)", GAME_NOT_WORKING|GAME_NO_SOUND)
1037GAMEB(2001, thrild2,  kviper,   kviper, viper, viper, vipercf,  ROT0,  "Konami", "Thrill Drive 2", GAME_NOT_WORKING|GAME_NO_SOUND)
1038GAMEB(2001, thrild2a, thrild2,  kviper, viper, viper, vipercf,  ROT0,  "Konami", "Thrill Drive 2 (ver A)", GAME_NOT_WORKING|GAME_NO_SOUND)
1039GAMEB(2001, tsurugi,  kviper,   kviper, viper, viper, vipercf,  ROT0,  "Konami", "Tsurugi (ver EAB)", GAME_NOT_WORKING|GAME_NO_SOUND)
1040GAMEB(2001, tsurugij, tsurugi,  kviper, viper, viper, vipercf,  ROT0,  "Konami", "Tsurugi (ver JAC)", GAME_NOT_WORKING|GAME_NO_SOUND)
1041GAMEB(2002, wcombat,  kviper,   kviper, viper, viper, vipercf,  ROT0,  "Konami", "World Combat", GAME_NOT_WORKING|GAME_NO_SOUND)
1042GAMEB(2002, wcombak,  wcombat,  kviper, viper, viper, vipercf,  ROT0,  "Konami", "World Combat (ver KBC)", GAME_NOT_WORKING|GAME_NO_SOUND)
1043GAMEB(2002, wcombaj,  wcombat,  kviper, viper, viper, vipercf,  ROT0,  "Konami", "World Combat (ver JAA)", GAME_NOT_WORKING|GAME_NO_SOUND)
1044GAMEB(2002, xtrial,   kviper,   kviper, viper, viper, vipercf,  ROT0,  "Konami", "Xtrial Racing", GAME_NOT_WORKING|GAME_NO_SOUND)
1021GAME(2001, boxingm,  kviper, viper, viper, vipercf,  ROT0,  "Konami", "Boxing Mania", GAME_NOT_WORKING|GAME_NO_SOUND)
1022GAME(2000, code1d,   kviper, viper, viper, vipercf,  ROT0,  "Konami", "Code One Dispatch", GAME_NOT_WORKING|GAME_NO_SOUND)
1023GAME(2000, code1db,  code1d, viper, viper, vipercf,  ROT0,  "Konami", "Code One Dispatch (ver B)", GAME_NOT_WORKING|GAME_NO_SOUND)
1024GAME(2001, gticlub2, kviper, viper, viper, vipercf,  ROT0,  "Konami", "GTI Club 2", GAME_NOT_WORKING|GAME_NO_SOUND)
1025GAME(2001, jpark3,   kviper, viper, viper, vipercf,  ROT0,  "Konami", "Jurassic Park 3", GAME_NOT_WORKING|GAME_NO_SOUND)
1026GAME(2001, mocapglf, kviper, viper, viper, vipercf,  ROT0,  "Konami", "Mocap Golf", GAME_NOT_WORKING|GAME_NO_SOUND)
1027GAME(2001, mocapb,   kviper, viper, viper, vipercf,  ROT0,  "Konami", "Mocap Boxing (ver AAA)", GAME_NOT_WORKING|GAME_NO_SOUND)
1028GAME(2001, mocapbj,  mocapb, viper, viper, vipercf,  ROT0,  "Konami", "Mocap Boxing (ver JAA)", GAME_NOT_WORKING|GAME_NO_SOUND)
1029GAME(2001, p911,     kviper, viper, viper, vipercf,  ROT0,  "Konami", "Police 911", GAME_NOT_WORKING|GAME_NO_SOUND)
1030GAME(2001, p911uc,   p911, viper, viper, vipercf,  ROT0,  "Konami", "Police 911 (ver UAC)", GAME_NOT_WORKING|GAME_NO_SOUND)
1031GAME(2001, p911e,    p911, viper, viper, vipercf,  ROT0,  "Konami", "Police 24/7 (ver EAA)", GAME_NOT_WORKING|GAME_NO_SOUND)
1032GAME(2001, p911j,    p911, viper, viper, vipercf,  ROT0,  "Konami", "Keisatsukan Shinjuku 24ji (ver JAC)", GAME_NOT_WORKING|GAME_NO_SOUND)
1033GAME(2001, p9112,    kviper, viper, viper, vipercf,  ROT0,  "Konami", "Police 911 2", GAME_NOT_WORKING|GAME_NO_SOUND)
1034GAME(2003, popn9,    kviper, viper, viper, vipercf,  ROT0,  "Konami", "Pop'n Music 9", GAME_NOT_WORKING|GAME_NO_SOUND)
1035GAME(2001, sscopex,  kviper, viper, viper, vipercf,  ROT0,  "Konami", "Silent Scope EX (ver UAA)", GAME_NOT_WORKING|GAME_NO_SOUND)
1036GAME(2001, sogeki,   sscopex, viper, viper, vipercf,  ROT0,  "Konami", "Sogeki (ver JAA)", GAME_NOT_WORKING|GAME_NO_SOUND)
1037GAME(2001, thrild2,  kviper, viper, viper, vipercf,  ROT0,  "Konami", "Thrill Drive 2", GAME_NOT_WORKING|GAME_NO_SOUND)
1038GAME(2001, thrild2a, thrild2, viper, viper, vipercf,  ROT0,  "Konami", "Thrill Drive 2 (ver A)", GAME_NOT_WORKING|GAME_NO_SOUND)
1039GAME(2001, tsurugi,  kviper, viper, viper, vipercf,  ROT0,  "Konami", "Tsurugi (ver EAB)", GAME_NOT_WORKING|GAME_NO_SOUND)
1040GAME(2001, tsurugij, tsurugi, viper, viper, vipercf,  ROT0,  "Konami", "Tsurugi (ver JAC)", GAME_NOT_WORKING|GAME_NO_SOUND)
1041GAME(2002, wcombat,  kviper, viper, viper, vipercf,  ROT0,  "Konami", "World Combat", GAME_NOT_WORKING|GAME_NO_SOUND)
1042GAME(2002, wcombak,  wcombat, viper, viper, vipercf,  ROT0,  "Konami", "World Combat (ver KBC)", GAME_NOT_WORKING|GAME_NO_SOUND)
1043GAME(2002, wcombaj,  wcombat, viper, viper, vipercf,  ROT0,  "Konami", "World Combat (ver JAA)", GAME_NOT_WORKING|GAME_NO_SOUND)
1044GAME(2002, xtrial,   kviper, viper, viper, vipercf,  ROT0,  "Konami", "Xtrial Racing", GAME_NOT_WORKING|GAME_NO_SOUND)
10451045
1046GAMEB(2002, mfightc,  kviper,   kviper, viper, viper, vipercf,  ROT0,  "Konami", "Mahjong Fight Club (ver D)", GAME_NOT_WORKING|GAME_NO_SOUND)
1047GAMEB(2002, mfightcc, mfightc,  kviper, viper, viper, vipercf,  ROT0,  "Konami", "Mahjong Fight Club (ver C)", GAME_NOT_WORKING|GAME_NO_SOUND)
1046GAME(2002, mfightc,  kviper, viper, viper, vipercf,  ROT0,  "Konami", "Mahjong Fight Club (ver D)", GAME_NOT_WORKING|GAME_NO_SOUND)
1047GAME(2002, mfightcc, mfightc, viper, viper, vipercf,  ROT0,  "Konami", "Mahjong Fight Club (ver C)", GAME_NOT_WORKING|GAME_NO_SOUND)
src/mame/drivers/namcos86.c
r1238r1239
453453
454454/*******************************************************************/
455455
456INPUT_PORTS_START( hopmappy )
456static INPUT_PORTS_START( hopmappy )
457457   PORT_START_TAG("IN0")
458458   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* button 3 player 2 */
459459   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* button 2 player 1 */
r1238r1239
532532   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL
533533INPUT_PORTS_END
534534
535INPUT_PORTS_START( skykiddx )
535static INPUT_PORTS_START( skykiddx )
536536   PORT_START_TAG("IN0")
537537   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* button 3 player 2 */
538538   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
610610   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL
611611INPUT_PORTS_END
612612
613INPUT_PORTS_START( roishtar )
613static INPUT_PORTS_START( roishtar )
614614   PORT_START_TAG("IN0")
615615   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* button 3 player 2 */
616616   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
692692   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_LEFT ) PORT_8WAY
693693INPUT_PORTS_END
694694
695INPUT_PORTS_START( genpeitd )
695static INPUT_PORTS_START( genpeitd )
696696   PORT_START_TAG("IN0")
697697   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* button 3 player 2 */
698698   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
770770   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2)
771771INPUT_PORTS_END
772772
773INPUT_PORTS_START( rthunder )
773static INPUT_PORTS_START( rthunder )
774774   PORT_START_TAG("IN0")
775775   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* button 3 player 2 */
776776   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
849849   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(2)
850850INPUT_PORTS_END
851851
852INPUT_PORTS_START( rthundro )
852static INPUT_PORTS_START( rthundro )
853853   PORT_START_TAG("IN0")
854854   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* button 3 player 2 */
855855   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
928928   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(2)
929929INPUT_PORTS_END
930930
931INPUT_PORTS_START( wndrmomo )
931static INPUT_PORTS_START( wndrmomo )
932932   PORT_START_TAG("IN0")
933933   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* button 3 player 2 */
934934   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
src/mame/drivers/suna8.c
r1238r1239
11371137                                Hard Head
11381138***************************************************************************/
11391139
1140INPUT_PORTS_START( hardhead )
1140static INPUT_PORTS_START( hardhead )
11411141
11421142   PORT_START_TAG("IN0")   // Player 1 - $da00 (ip = 0)
11431143   JOY(1)
r1238r1239
12011201                                Rough Ranger
12021202***************************************************************************/
12031203
1204INPUT_PORTS_START( rranger )
1204static INPUT_PORTS_START( rranger )
12051205
12061206   PORT_START_TAG("IN0")   // Player 1 - $c002
12071207   JOY(1)
r1238r1239
12661266                                Brick Zone
12671267***************************************************************************/
12681268
1269INPUT_PORTS_START( brickzn )
1269static INPUT_PORTS_START( brickzn )
12701270
12711271   PORT_START_TAG("IN0") // Player 1 - $c100
12721272   JOY(1)
r1238r1239
13391339                        Hard Head 2 / Star Fighter
13401340***************************************************************************/
13411341
1342INPUT_PORTS_START( hardhea2 )
1342static INPUT_PORTS_START( hardhea2 )
13431343
13441344   PORT_START_TAG("IN0") // Player 1 - $c000
13451345   JOY(1)
r1238r1239
14131413                                Spark Man
14141414***************************************************************************/
14151415
1416INPUT_PORTS_START( sparkman )
1416static INPUT_PORTS_START( sparkman )
14171417
14181418   PORT_START_TAG("IN0") // Player 1 - $c000
14191419   JOY(1)
src/mame/drivers/vaportra.c
r1238r1239
143143
144144/******************************************************************************/
145145
146INPUT_PORTS_START( vaportra )
146static INPUT_PORTS_START( vaportra )
147147   PORT_START   /* Player 1 controls */
148148   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
149149   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/btime.c
r1238r1239
526526   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED )\
527527   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )\
528528
529INPUT_PORTS_START( btime )
529static INPUT_PORTS_START( btime )
530530   COMMON_INPUTS
531531
532532   PORT_START_TAG("IN2")
r1238r1239
585585   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
586586INPUT_PORTS_END
587587
588INPUT_PORTS_START( cookrace )
588static INPUT_PORTS_START( cookrace )
589589   PORT_START_TAG("IN0")
590590   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY
591591   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
664664   PORT_DIPSETTING(    0x00, DEF_STR( Hardest ) )
665665INPUT_PORTS_END
666666
667INPUT_PORTS_START( zoar )
667static INPUT_PORTS_START( zoar )
668668   PORT_START_TAG("IN0")
669669   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
670670   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
740740   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
741741INPUT_PORTS_END
742742
743INPUT_PORTS_START( lnc )
743static INPUT_PORTS_START( lnc )
744744   PORT_START_TAG("IN0")
745745   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY
746746   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
810810   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
811811INPUT_PORTS_END
812812
813INPUT_PORTS_START( wtennis )
813static INPUT_PORTS_START( wtennis )
814814   PORT_START_TAG("IN0")
815815   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
816816   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
881881   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
882882INPUT_PORTS_END
883883
884INPUT_PORTS_START( mmonkey )
884static INPUT_PORTS_START( mmonkey )
885885   PORT_START_TAG("IN0")
886886   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY
887887   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
949949   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
950950INPUT_PORTS_END
951951
952INPUT_PORTS_START( bnj )
952static INPUT_PORTS_START( bnj )
953953   PORT_START_TAG("IN0")
954954   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
955955   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
10271027   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
10281028INPUT_PORTS_END
10291029
1030INPUT_PORTS_START( disco )
1030static INPUT_PORTS_START( disco )
10311031   PORT_START_TAG("IN0")
10321032   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY
10331033   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
11051105   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK )
11061106INPUT_PORTS_END
11071107
1108INPUT_PORTS_START( sdtennis )
1108static INPUT_PORTS_START( sdtennis )
11091109   PORT_START_TAG("IN0")
11101110   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
11111111   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
src/mame/drivers/qdrmfgp.c
r1238r1239
419419 *
420420 *************************************/
421421
422INPUT_PORTS_START( qdrmfgp )
422static INPUT_PORTS_START( qdrmfgp )
423423   PORT_START
424424   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 )
425425   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
499499   PORT_BIT( 0xfff0, IP_ACTIVE_LOW, IPT_UNUSED )
500500INPUT_PORTS_END
501501
502INPUT_PORTS_START( qdrmfgp2 )
502static INPUT_PORTS_START( qdrmfgp2 )
503503   PORT_START
504504   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 )
505505   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/cps1.c
r1238r1239
604604   PORT_DIPSETTING(    0x00, "8 (Hardest)" )
605605
606606
607INPUT_PORTS_START( forgottn )
607static INPUT_PORTS_START( forgottn )
608608   PORT_START_TAG("IN0")
609609   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
610610   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
691691   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)
692692INPUT_PORTS_END
693693
694INPUT_PORTS_START( ghouls )
694static INPUT_PORTS_START( ghouls )
695695   PORT_START_TAG("IN0")
696696   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
697697   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
773773
774774/* Same as 'ghouls' but additional "Freeze" Dip Switch, different "Lives" Dip Switch,
775775   and LOTS of "debug" features (read the notes to know how to activate them) */
776INPUT_PORTS_START( ghoulsu )
776static INPUT_PORTS_START( ghoulsu )
777777   PORT_START_TAG("IN0")
778778   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
779779   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
924924INPUT_PORTS_END
925925
926926/* Same as 'ghouls' but additional "Freeze" Dip Switch */
927INPUT_PORTS_START( daimakai )
927static INPUT_PORTS_START( daimakai )
928928   PORT_INCLUDE(ghouls)
929929
930930   PORT_MODIFY("DSWB")
r1238r1239
934934INPUT_PORTS_END
935935
936936/* "Debug" features to be implemented */
937INPUT_PORTS_START( strider )
937static INPUT_PORTS_START( strider )
938938   PORT_START_TAG("IN0")
939939   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
940940   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
10181018
10191019/* Same as 'strider' but additional "2 Coins to Start, 1 to Continue" Dip Switch */
10201020/* "Debug" features to be implemented */
1021INPUT_PORTS_START( stridrua )
1021static INPUT_PORTS_START( stridrua )
10221022   PORT_START_TAG("IN0")
10231023   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
10241024   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
11001100   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
11011101INPUT_PORTS_END
11021102
1103INPUT_PORTS_START( dynwar )
1103static INPUT_PORTS_START( dynwar )
11041104   PORT_START_TAG("IN0")
11051105   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
11061106   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
11861186INPUT_PORTS_END
11871187
11881188/* Read the notes to know how to activate the "debug" features */
1189INPUT_PORTS_START( willow )
1189static INPUT_PORTS_START( willow )
11901190   PORT_START_TAG("IN0")
11911191   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
11921192   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
13511351INPUT_PORTS_END
13521352
13531353/* To enable extra choices in the "test mode", you must press "Coin 1" ('5') AND "Service Mode" ('F2') */
1354INPUT_PORTS_START( unsquad )
1354static INPUT_PORTS_START( unsquad )
13551355   PORT_START_TAG("IN0")
13561356   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
13571357   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
14371437
14381438/* To enable other choices in the "test mode", you must press ("P1 Button 1" ('Ctrl')
14391439   or "P1 Button 2" ('Alt')) when "Service Mode" is ON */
1440INPUT_PORTS_START( ffight )
1440static INPUT_PORTS_START( ffight )
14411441   PORT_START_TAG("IN0")
14421442   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
14431443   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
15251525   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
15261526INPUT_PORTS_END
15271527
1528INPUT_PORTS_START( 1941 )
1528static INPUT_PORTS_START( 1941 )
15291529   PORT_START_TAG("IN0")
15301530   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
15311531   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
16061606   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
16071607INPUT_PORTS_END
16081608
1609INPUT_PORTS_START( mercs )
1609static INPUT_PORTS_START( mercs )
16101610   PORT_START_TAG("IN0")
16111611   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
16121612   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
17191719     - 0xff14ab.w : energy (player 1)
17201720     - 0xff156b.w : energy (player 2)
17211721*/
1722INPUT_PORTS_START( mtwins )
1722static INPUT_PORTS_START( mtwins )
17231723   PORT_START_TAG("IN0")
17241724   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
17251725   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
18071807     - code at 0x019b62 ('msword' and 'mswordr1'), 0x019bde ('mswordu') or 0x019c26 ('mswordj') : unknown effect
18081808     - code at 0x01c322 ('msword' and 'mswordr1'), 0x01c39e ('mswordu') or 0x01c3e0 ('mswordj') : unknown effect
18091809   These features are not available because of the 'bra' instruction after the test of bit 7. */
1810INPUT_PORTS_START( msword )
1810static INPUT_PORTS_START( msword )
18111811   PORT_START_TAG("IN0")
18121812   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
18131813   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
18971897   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
18981898INPUT_PORTS_END
18991899
1900INPUT_PORTS_START( cawing )
1900static INPUT_PORTS_START( cawing )
19011901   PORT_START_TAG("IN0")
19021902   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
19031903   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
19881988INPUT_PORTS_END
19891989
19901990/* "Debug" features to be implemented */
1991INPUT_PORTS_START( nemo )
1991static INPUT_PORTS_START( nemo )
19921992   PORT_START_TAG("IN0")
19931993   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
19941994   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
20692069   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
20702070INPUT_PORTS_END
20712071
2072INPUT_PORTS_START( sf2 )
2072static INPUT_PORTS_START( sf2 )
20732073   PORT_START_TAG("IN0")
20742074   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
20752075   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
21632163INPUT_PORTS_END
21642164
21652165/* Needs further checking */
2166INPUT_PORTS_START( sf2j )
2166static INPUT_PORTS_START( sf2j )
21672167   PORT_START_TAG("IN0")
21682168   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
21692169   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
22562256   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
22572257INPUT_PORTS_END
22582258
2259INPUT_PORTS_START( 3wonders )
2259static INPUT_PORTS_START( 3wonders )
22602260   PORT_START_TAG("IN0")
22612261   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
22622262   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
23422342   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
23432343INPUT_PORTS_END
23442344
2345INPUT_PORTS_START( kod )
2345static INPUT_PORTS_START( kod )
23462346   PORT_START_TAG("IN0")
23472347   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
23482348   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
24452445
24462446/* Needs further checking
24472447   Same as kod but different "Bonus_life" values */
2448INPUT_PORTS_START( kodj )
2448static INPUT_PORTS_START( kodj )
24492449   PORT_START_TAG("IN0")
24502450   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
24512451   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
25472547INPUT_PORTS_END
25482548
25492549
2550INPUT_PORTS_START( captcomm )
2550static INPUT_PORTS_START( captcomm )
25512551   PORT_START_TAG("IN0")
25522552   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
25532553   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
26642664   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 )
26652665INPUT_PORTS_END
26662666
2667INPUT_PORTS_START( knights )
2667static INPUT_PORTS_START( knights )
26682668   PORT_START_TAG("IN0")
26692669   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
26702670   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
27732773   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START3 )
27742774INPUT_PORTS_END
27752775
2776INPUT_PORTS_START( varth )
2776static INPUT_PORTS_START( varth )
27772777   PORT_START_TAG("IN0")
27782778   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
27792779   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
28552855INPUT_PORTS_END
28562856
28572857/* Needs further checking */
2858INPUT_PORTS_START( cworld2j )
2858static INPUT_PORTS_START( cworld2j )
28592859   PORT_START_TAG("IN0")
28602860   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
28612861   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
29512951INPUT_PORTS_END
29522952
29532953/* Needs further checking */
2954INPUT_PORTS_START( wof )
2954static INPUT_PORTS_START( wof )
29552955   PORT_START_TAG("IN0")
29562956   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
29572957   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
30043004INPUT_PORTS_END
30053005
30063006/* Needs further checking */
3007INPUT_PORTS_START( dino )
3007static INPUT_PORTS_START( dino )
30083008   PORT_START_TAG("IN0")
30093009   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
30103010   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
30573057INPUT_PORTS_END
30583058
30593059/* Needs further checking */
3060INPUT_PORTS_START( punisher )
3060static INPUT_PORTS_START( punisher )
30613061   PORT_START_TAG("IN0")
30623062   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
30633063   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
31003100INPUT_PORTS_END
31013101
31023102/* Needs further checking */
3103INPUT_PORTS_START( slammast )
3103static INPUT_PORTS_START( slammast )
31043104   PORT_START_TAG("IN0")
31053105   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
31063106   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
31633163INPUT_PORTS_END
31643164
31653165/* Needs further checking */
3166INPUT_PORTS_START( pnickj )
3166static INPUT_PORTS_START( pnickj )
31673167   PORT_START_TAG("IN0")
31683168   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
31693169   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
32553255INPUT_PORTS_END
32563256
32573257/* Needs further checking */
3258INPUT_PORTS_START( qad )
3258static INPUT_PORTS_START( qad )
32593259   PORT_START_TAG("IN0")
32603260   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
32613261   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
33583358INPUT_PORTS_END
33593359
33603360/* Needs further checking */
3361INPUT_PORTS_START( qadj )
3361static INPUT_PORTS_START( qadj )
33623362   PORT_START_TAG("IN0")
33633363   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
33643364   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
34653465INPUT_PORTS_END
34663466
34673467/* Needs further checking */
3468INPUT_PORTS_START( qtono2 )
3468static INPUT_PORTS_START( qtono2 )
34693469   PORT_START_TAG("IN0")
34703470   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
34713471   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
35643564INPUT_PORTS_END
35653565
35663566/* Needs further checking */
3567INPUT_PORTS_START( pang3 )
3567static INPUT_PORTS_START( pang3 )
35683568   PORT_START_TAG("IN0")
35693569   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
35703570   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
36063606INPUT_PORTS_END
36073607
36083608/* Needs further checking */
3609INPUT_PORTS_START( megaman )
3609static INPUT_PORTS_START( megaman )
36103610   PORT_START_TAG("IN0")
36113611   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
36123612   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
37193719
37203720/* Needs further checking */
37213721/* Same as 'megaman' but no "Voice" Dip Switch */
3722INPUT_PORTS_START( rockmanj )
3722static INPUT_PORTS_START( rockmanj )
37233723   PORT_START_TAG("IN0")
37243724   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
37253725   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/nova2001.c
r1238r1239
7272
7373
7474
75INPUT_PORTS_START( nova2001 )
75static INPUT_PORTS_START( nova2001 )
7676    PORT_START
7777    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
7878    PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/starcrus.c
r1238r1239
6868
6969
7070
71INPUT_PORTS_START( starcrus )
71static INPUT_PORTS_START( starcrus )
7272      PORT_START   /* player 1 */
7373      PORT_BIT (0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY /* ccw */
7474      PORT_BIT (0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) /* engine */
src/mame/drivers/yunsun16.c
r1238r1239
225225                                Magic Bubble
226226***************************************************************************/
227227
228INPUT_PORTS_START( magicbub )
228static INPUT_PORTS_START( magicbub )
229229   PORT_START_TAG("IN0")   // $800000.w
230230   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
231231   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
r1238r1239
295295                        Magic Bubble (Adult version)
296296***************************************************************************/
297297
298INPUT_PORTS_START( magicbua )
298static INPUT_PORTS_START( magicbua )
299299   PORT_INCLUDE(magicbub)
300300
301301   PORT_MODIFY("DSW2")
r1238r1239
310310                                Shocking
311311***************************************************************************/
312312
313INPUT_PORTS_START( shocking )
313static INPUT_PORTS_START( shocking )
314314   PORT_START_TAG("IN0")   // $800000.w
315315   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
316316   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
r1238r1239
383383                                Bomb Kick
384384***************************************************************************/
385385
386INPUT_PORTS_START( bombkick )
386static INPUT_PORTS_START( bombkick )
387387   PORT_START_TAG("IN0")   // $800000.w
388388   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
389389   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
src/mame/drivers/scobra.c
r1238r1239
522522   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY\
523523   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
524524
525INPUT_PORTS_START( scobra )
525static INPUT_PORTS_START( scobra )
526526SCOBRA_IN0
527527SCOBRA_IN1
528528SCOBRA_IN2
529529INPUT_PORTS_END
530530
531531/* identical to scobra apart from the number of lives */
532INPUT_PORTS_START( scobras )
532static INPUT_PORTS_START( scobras )
533533SCOBRA_IN0
534534
535535   PORT_START_TAG("IN1")
r1238r1239
549549SCOBRA_IN2
550550INPUT_PORTS_END
551551
552INPUT_PORTS_START( stratgyx )
552static INPUT_PORTS_START( stratgyx )
553553SCOBRA_IN0
554554
555555   PORT_START_TAG("IN1")
r1238r1239
617617   PORT_DIPSETTING(    0x00, "A 1/99  B 1/3" )
618618INPUT_PORTS_END
619619
620INPUT_PORTS_START( armorcar )
620static INPUT_PORTS_START( armorcar )
621621   PORT_START_TAG("IN0")
622622   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
623623   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
683683   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 )\
684684   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 )
685685
686INPUT_PORTS_START( moonwar )
686static INPUT_PORTS_START( moonwar )
687687   MOONWAR_COMMON
688688
689689   PORT_START_TAG("IN2")
r1238r1239
706706INPUT_PORTS_END
707707
708708/* same as above, but coinage is different */
709INPUT_PORTS_START( moonwara )
709static INPUT_PORTS_START( moonwara )
710710   MOONWAR_COMMON
711711
712712   PORT_START_TAG("IN2")
r1238r1239
728728   PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_RESET PORT_COCKTAIL
729729INPUT_PORTS_END
730730
731INPUT_PORTS_START( spdcoin )
731static INPUT_PORTS_START( spdcoin )
732732   PORT_START_TAG("IN0")
733733   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
734734   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
763763INPUT_PORTS_END
764764
765765/* cocktail mode is N/A */
766INPUT_PORTS_START( darkplnt )
766static INPUT_PORTS_START( darkplnt )
767767   PORT_START_TAG("IN0")
768768   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
769769   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
801801   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
802802INPUT_PORTS_END
803803
804INPUT_PORTS_START( tazmania )
804static INPUT_PORTS_START( tazmania )
805805   PORT_START_TAG("IN0")
806806   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 )
807807   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
849849INPUT_PORTS_END
850850
851851/* cocktail mode is N/A */
852INPUT_PORTS_START( calipso )
852static INPUT_PORTS_START( calipso )
853853   PORT_START_TAG("IN0")
854854   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
855855   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
891891INPUT_PORTS_END
892892
893893/* cocktail mode not working due to bug in game code */
894INPUT_PORTS_START( anteater )
894static INPUT_PORTS_START( anteater )
895895   PORT_START_TAG("IN0")
896896   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
897897   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
938938   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
939939INPUT_PORTS_END
940940
941INPUT_PORTS_START( anteatg )
941static INPUT_PORTS_START( anteatg )
942942   PORT_START_TAG("IN0")
943943   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL
944944   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Coinage ) )
r1238r1239
989989   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 )
990990INPUT_PORTS_END
991991
992INPUT_PORTS_START( anteatgb )
992static INPUT_PORTS_START( anteatgb )
993993   PORT_START_TAG("IN0")
994994   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
995995   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )
r1238r1239
10411041INPUT_PORTS_END
10421042
10431043/* cocktail mode is N/A */
1044INPUT_PORTS_START( rescue )
1044static INPUT_PORTS_START( rescue )
10451045   PORT_START_TAG("IN0")
10461046   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
10471047   PORT_DIPNAME( 0x02, 0x02, "Starting Level" )
r1238r1239
10951095INPUT_PORTS_END
10961096
10971097/* cocktail mode is N/A */
1098INPUT_PORTS_START( minefld )
1098static INPUT_PORTS_START( minefld )
10991099   PORT_START_TAG("IN0")
11001100   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
11011101   PORT_DIPNAME( 0x02, 0x02, "Starting Level" )
r1238r1239
11491149INPUT_PORTS_END
11501150
11511151/* cocktail mode is N/A */
1152INPUT_PORTS_START( losttomb )
1152static INPUT_PORTS_START( losttomb )
11531153   PORT_START_TAG("IN0")
11541154   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START2 )
11551155   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
12021202INPUT_PORTS_END
12031203
12041204/* cocktail mode is N/A */
1205INPUT_PORTS_START( superbon )
1205static INPUT_PORTS_START( superbon )
12061206   PORT_START_TAG("IN0")
12071207   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START2 )
12081208   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
12601260   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
12611261INPUT_PORTS_END
12621262
1263INPUT_PORTS_START( hustler )
1263static INPUT_PORTS_START( hustler )
12641264   PORT_START_TAG("IN0")
12651265   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
12661266   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
13321332   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )\
13331333   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
13341334
1335INPUT_PORTS_START( mimonkey )
1335static INPUT_PORTS_START( mimonkey )
13361336   MM_COMMON1
13371337
13381338   PORT_START_TAG("IN1")
r1238r1239
13531353INPUT_PORTS_END
13541354
13551355/* Same as 'mimonkey' but different "Lives" Dip Switch */
1356INPUT_PORTS_START( mimonsco )
1356static INPUT_PORTS_START( mimonsco )
13571357   MM_COMMON1
13581358
13591359   PORT_START   /* IN1 */
src/mame/drivers/wiz.c
r1238r1239
329329   PORT_DIPSETTING(    0x20, "30000 90000" )\
330330     PORT_DIPSETTING(    0x00, DEF_STR( None ) )
331331
332INPUT_PORTS_START( stinger )
332static INPUT_PORTS_START( stinger )
333333COMMON_IN01
334334COMMON_DSW0
335335   PORT_START_TAG("DSW1")
r1238r1239
358358   PORT_DIPSETTING(    0x00, DEF_STR( Cocktail ) )
359359INPUT_PORTS_END
360360
361INPUT_PORTS_START( stinger2 )
361static INPUT_PORTS_START( stinger2 )
362362COMMON_IN01
363363COMMON_DSW0
364364
r1238r1239
389389   PORT_DIPSETTING(    0x00, DEF_STR( Cocktail ) )
390390INPUT_PORTS_END
391391
392INPUT_PORTS_START( scion )
392static INPUT_PORTS_START( scion )
393393COMMON_IN01
394394
395395   PORT_START_TAG("DSW0")
r1238r1239
442442//  PORT_DIPSETTING(    0x80, DEF_STR( On ) )       /* See notes */
443443INPUT_PORTS_END
444444
445INPUT_PORTS_START( kungfut )
445static INPUT_PORTS_START( kungfut )
446446   PORT_START_TAG("IN0")
447447   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
448448   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2)
r1238r1239
513513   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
514514INPUT_PORTS_END
515515
516INPUT_PORTS_START( wiz )
516static INPUT_PORTS_START( wiz )
517517   PORT_START_TAG("IN1") //Are Buttons 1 and 2 the right way around? Because the majority of hardware
518518   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) // In this driver has 2 first, then 1 (See COMMON_IN01 macro)
519519   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL
src/mame/drivers/stactics.c
r1238r1239
148148
149149ADDRESS_MAP_END
150150
151INPUT_PORTS_START( stactics )
151static INPUT_PORTS_START( stactics )
152152
153153    PORT_START  /*  IN0 */
154154    /*PORT_BIT (0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) Motor status. see stactics_port_0_r */
src/mame/drivers/mermaid.c
r1238r1239
156156
157157/* Input Ports */
158158
159INPUT_PORTS_START( mermaid )
159static INPUT_PORTS_START( mermaid )
160160   PORT_START_TAG("DSW")
161161   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
162162   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
src/mame/drivers/calorie.c
r1238r1239
233233   AM_RANGE(0x00, 0xff) AM_WRITE(bogus_w)
234234ADDRESS_MAP_END
235235
236INPUT_PORTS_START( calorie )
236static INPUT_PORTS_START( calorie )
237237   PORT_START
238238   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP )    PORT_PLAYER(1) PORT_4WAY
239239   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN )  PORT_PLAYER(1) PORT_4WAY
src/mame/drivers/drtomy.c
r1238r1239
174174GFXDECODE_END
175175
176176
177INPUT_PORTS_START( drtomy )
177static INPUT_PORTS_START( drtomy )
178178   PORT_START   /* DSW #1 */
179179   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
180180   PORT_DIPSETTING(    0x0a, DEF_STR( 2C_1C ) )
src/mame/drivers/gdrawpkr.c
r1238r1239
283283*      Input ports       *
284284*************************/
285285
286INPUT_PORTS_START( gdrawpkr )
286static INPUT_PORTS_START( gdrawpkr )
287287   PORT_START_TAG("IN0-0")
288288   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )   /* credits */
289289   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Manual Collect") PORT_CODE(KEYCODE_7)
r1238r1239
353353   PORT_DIPSETTING(    0xC0, "80" )
354354INPUT_PORTS_END
355355
356INPUT_PORTS_START( elgrande )
356static INPUT_PORTS_START( elgrande )
357357   PORT_START_TAG("IN0-0")
358358   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 )
359359   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/gaelco3d.c
r1238r1239
814814 *
815815 *************************************/
816816
817INPUT_PORTS_START( speedup )
817static INPUT_PORTS_START( speedup )
818818   PORT_START       /* DIPs */
819819   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_VOLUME_UP )
820820   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_VOLUME_DOWN )
r1238r1239
853853INPUT_PORTS_END
854854
855855
856INPUT_PORTS_START( surfplnt )
856static INPUT_PORTS_START( surfplnt )
857857   PORT_START       /* DIPs */
858858   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_VOLUME_UP )   // low two bits read, compared against 3
859859   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_VOLUME_DOWN )   // low four bits read, compared against f
r1238r1239
887887INPUT_PORTS_END
888888
889889
890INPUT_PORTS_START( radikalb )
890static INPUT_PORTS_START( radikalb )
891891   PORT_START       /* DIPs */
892892   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_VOLUME_UP )
893893   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_VOLUME_DOWN )
src/mame/drivers/namcos11.c
r1238r1239
924924   MDRV_VIDEO_START( psx_type2 )
925925MACHINE_DRIVER_END
926926
927INPUT_PORTS_START( namcos11 )
927static INPUT_PORTS_START( namcos11 )
928928   PORT_START_TAG( "SWITCH" )
929929   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* read by pocket racer */
930930   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN )
r1238r1239
987987   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN4 )
988988INPUT_PORTS_END
989989
990INPUT_PORTS_START( tekken )
990static INPUT_PORTS_START( tekken )
991991   PORT_INCLUDE( namcos11 )
992992
993993   PORT_MODIFY( "PLAYER1" )
r1238r1239
10171017   PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_UNUSED )
10181018INPUT_PORTS_END
10191019
1020INPUT_PORTS_START( souledge )
1020static INPUT_PORTS_START( souledge )
10211021   PORT_INCLUDE( namcos11 )
10221022
10231023   PORT_MODIFY( "PLAYER3" )
r1238r1239
10411041   PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_UNUSED )
10421042INPUT_PORTS_END
10431043
1044INPUT_PORTS_START( myangel3 )
1044static INPUT_PORTS_START( myangel3 )
10451045   PORT_INCLUDE( namcos11 )
10461046
10471047   PORT_MODIFY( "PLAYER1" )
r1238r1239
10831083   PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_UNUSED )
10841084INPUT_PORTS_END
10851085
1086INPUT_PORTS_START( ptblnk2a )
1086static INPUT_PORTS_START( ptblnk2a )
10871087   PORT_INCLUDE( namcos11 )
10881088
10891089   PORT_MODIFY( "PLAYER1" )
r1238r1239
11351135   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 )
11361136INPUT_PORTS_END
11371137
1138INPUT_PORTS_START( pocketrc )
1138static INPUT_PORTS_START( pocketrc )
11391139   PORT_INCLUDE( namcos11 )
11401140
11411141   PORT_MODIFY( "PLAYER1" )
src/mame/drivers/lethalj.c
r1238r1239
8484 *
8585 *************************************/
8686
87INPUT_PORTS_START( lethalj )
87static INPUT_PORTS_START( lethalj )
8888   PORT_START
8989   PORT_BIT( 0x0003, IP_ACTIVE_LOW, IPT_UNUSED )
9090   PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
r1238r1239
146146INPUT_PORTS_END
147147
148148
149INPUT_PORTS_START( eggventr )
149static INPUT_PORTS_START( eggventr )
150150   PORT_START
151151   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_SERVICE1 )
152152   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
200200INPUT_PORTS_END
201201
202202
203INPUT_PORTS_START( eggvntdx )
203static INPUT_PORTS_START( eggvntdx )
204204   PORT_START
205205   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_SERVICE1 )
206206   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
252252INPUT_PORTS_END
253253
254254
255INPUT_PORTS_START( laigames )
255static INPUT_PORTS_START( laigames )
256256   /* No Idea about the inputs */
257257   PORT_START
258258   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_SERVICE1 )
r1238r1239
360360INPUT_PORTS_END
361361
362362
363INPUT_PORTS_START( ripribit )
363static INPUT_PORTS_START( ripribit )
364364   /* No Idea about the inputs */
365365   PORT_START
366366    PORT_DIPNAME( 0x0001, 0x0001, "0" )
src/mame/drivers/dcon.c
r1238r1239
105105   PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) \
106106   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
107107
108INPUT_PORTS_START( dcon )
108static INPUT_PORTS_START( dcon )
109109   SEIBU_COIN_INPUTS   /* Must be port 0: coin inputs read through sound cpu */
110110
111111   PORT_START
r1238r1239
163163   DCON_SYSTEM
164164INPUT_PORTS_END
165165
166INPUT_PORTS_START( sdgndmps )
166static INPUT_PORTS_START( sdgndmps )
167167   SEIBU_COIN_INPUTS   /* Must be port 0: coin inputs read through sound cpu */
168168
169169   PORT_START
src/mame/drivers/kickgoal.c
r1238r1239
526526
527527/* INPUT ports ***************************************************************/
528528
529INPUT_PORTS_START( kickgoal )
529static INPUT_PORTS_START( kickgoal )
530530   PORT_START_TAG("IN0")
531531   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
532532   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/itech8.c
r1238r1239
10721072   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
10731073
10741074
1075INPUT_PORTS_START( wfortune )
1075static INPUT_PORTS_START( wfortune )
10761076   PORT_START   /* 40 */
10771077   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* input from sound board */
10781078   PORT_BIT( 0x06, IP_ACTIVE_LOW, IPT_UNUSED )
r1238r1239
11051105INPUT_PORTS_END
11061106
11071107
1108INPUT_PORTS_START( stratab )
1108static INPUT_PORTS_START( stratab )
11091109   PORT_START   /* 40 */
11101110   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* input from sound board */
11111111   PORT_BIT( 0x06, IP_ACTIVE_LOW, IPT_UNUSED )
r1238r1239
11421142INPUT_PORTS_END
11431143
11441144
1145INPUT_PORTS_START( gtg )
1145static INPUT_PORTS_START( gtg )
11461146   PORT_START   /* 40 */
11471147   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* input from sound board */
11481148   PORT_BIT( 0x06, IP_ACTIVE_LOW, IPT_UNUSED )
r1238r1239
11791179INPUT_PORTS_END
11801180
11811181
1182INPUT_PORTS_START( gtgt )
1182static INPUT_PORTS_START( gtgt )
11831183   PORT_START   /* 40 */
11841184   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* input from sound board */
11851185   PORT_BIT( 0x7e, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
12091209INPUT_PORTS_END
12101210
12111211
1212INPUT_PORTS_START( gtg2t )
1212static INPUT_PORTS_START( gtg2t )
12131213   PORT_START   /* 40 */
12141214   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* input from sound board */
12151215   PORT_BIT( 0x06, IP_ACTIVE_LOW, IPT_UNUSED )
r1238r1239
12461246INPUT_PORTS_END
12471247
12481248
1249INPUT_PORTS_START( slikshot )
1249static INPUT_PORTS_START( slikshot )
12501250   PORT_START   /* 40 */
12511251   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* input from sound board */
12521252   PORT_BIT( 0x7e, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
12781278INPUT_PORTS_END
12791279
12801280
1281INPUT_PORTS_START( dynobop )
1281static INPUT_PORTS_START( dynobop )
12821282   PORT_START   /* 40 */
12831283   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* input from sound board */
12841284   PORT_BIT( 0x7e, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
13101310INPUT_PORTS_END
13111311
13121312
1313INPUT_PORTS_START( sstrike )
1313static INPUT_PORTS_START( sstrike )
13141314   PORT_START   /* 40 */
13151315   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* input from sound board */
13161316   PORT_BIT( 0x7e, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
13421342INPUT_PORTS_END
13431343
13441344
1345INPUT_PORTS_START( pokrdice )
1345static INPUT_PORTS_START( pokrdice )
13461346   PORT_START   /* 40 */
13471347   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* input from sound board */
13481348   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Lower Right") PORT_CODE(KEYCODE_3_PAD)
r1238r1239
13761376INPUT_PORTS_END
13771377
13781378
1379INPUT_PORTS_START( hstennis )
1379static INPUT_PORTS_START( hstennis )
13801380   PORT_START   /* 40 */
13811381   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* input from sound board */
13821382   PORT_BIT( 0x06, IP_ACTIVE_LOW, IPT_UNUSED )
r1238r1239
14161416INPUT_PORTS_END
14171417
14181418
1419INPUT_PORTS_START( arlingtn )
1419static INPUT_PORTS_START( arlingtn )
14201420   PORT_START   /* 40 */
14211421   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* input from sound board */
14221422   PORT_BIT( 0x06, IP_ACTIVE_LOW, IPT_UNUSED )
r1238r1239
14521452INPUT_PORTS_END
14531453
14541454
1455INPUT_PORTS_START( peggle )
1455static INPUT_PORTS_START( peggle )
14561456   PORT_START   /* 40 */
14571457   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* input from sound board */
14581458   PORT_BIT( 0x7e, IP_ACTIVE_LOW, IPT_UNUSED )
r1238r1239
14791479INPUT_PORTS_END
14801480
14811481
1482INPUT_PORTS_START( pegglet )
1482static INPUT_PORTS_START( pegglet )
14831483   PORT_START   /* 40 */
14841484   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* input from sound board */
14851485   PORT_BIT( 0x7e, IP_ACTIVE_LOW, IPT_UNUSED )
r1238r1239
15061506INPUT_PORTS_END
15071507
15081508
1509INPUT_PORTS_START( neckneck )
1509static INPUT_PORTS_START( neckneck )
15101510   PORT_START   /* 40 */
15111511   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* input from sound board */
15121512   PORT_BIT( 0x06, IP_ACTIVE_LOW, IPT_UNUSED )
r1238r1239
15421542INPUT_PORTS_END
15431543
15441544
1545INPUT_PORTS_START( rimrockn )
1545static INPUT_PORTS_START( rimrockn )
15461546   PORT_START   /* 40 */
15471547   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
15481548
r1238r1239
16181618INPUT_PORTS_END
16191619
16201620
1621INPUT_PORTS_START( ninclown )
1621static INPUT_PORTS_START( ninclown )
16221622   PORT_START   /* 40 */
16231623   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_SERVICE1 )
16241624   PORT_SERVICE_NO_TOGGLE( 0x0200, IP_ACTIVE_LOW )
r1238r1239
16541654INPUT_PORTS_END
16551655
16561656
1657INPUT_PORTS_START( gtg2 )
1657static INPUT_PORTS_START( gtg2 )
16581658   PORT_START   /* 40 */
16591659   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
16601660   PORT_SERVICE_NO_TOGGLE( 0x02, IP_ACTIVE_LOW )
r1238r1239
16941694INPUT_PORTS_END
16951695
16961696
1697INPUT_PORTS_START( gpgolf )
1697static INPUT_PORTS_START( gpgolf )
16981698   PORT_START   /* 40 */
16991699   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
17001700   PORT_SERVICE_NO_TOGGLE( 0x02, IP_ACTIVE_LOW )
src/mame/drivers/galaxian.c
r1238r1239
13221322   PORT_DIPSETTING(    0x80, DEF_STR( 1C_2C ) )\
13231323   PORT_DIPSETTING(    0xc0, DEF_STR( Free_Play ) )
13241324
1325INPUT_PORTS_START( galaxian )
1325static INPUT_PORTS_START( galaxian )
13261326GAL_IN0
13271327GAL_IN1
13281328
r1238r1239
13411341   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
13421342INPUT_PORTS_END
13431343
1344INPUT_PORTS_START( superg )
1344static INPUT_PORTS_START( superg )
13451345GAL_IN0
13461346GAL_IN1
13471347
r1238r1239
13601360   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
13611361INPUT_PORTS_END
13621362
1363INPUT_PORTS_START( swarm )
1363static INPUT_PORTS_START( swarm )
13641364GAL_IN0
13651365GAL_IN1
13661366
r1238r1239
13791379   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
13801380INPUT_PORTS_END
13811381
1382INPUT_PORTS_START( gmgalax )
1382static INPUT_PORTS_START( gmgalax )
13831383   PORT_START_TAG("GMIN0")      /* Ghost Muncher - IN0 */
13841384   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
13851385   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP) PORT_4WAY PORT_COCKTAIL
r1238r1239
14631463   PORT_DIPSETTING( 0x01, "Galaxian" )
14641464INPUT_PORTS_END
14651465
1466INPUT_PORTS_START( zerotime )
1466static INPUT_PORTS_START( zerotime )
14671467GAL_IN0
14681468   PORT_START_TAG("IN1")
14691469   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
r1238r1239
15181518   PORT_DIPSETTING(    0x80, DEF_STR( Cocktail ) )
15191519
15201520
1521INPUT_PORTS_START( pisces )
1521static INPUT_PORTS_START( pisces )
15221522PISCES_COMMON
15231523
15241524   PORT_START_TAG("DSW0")
r1238r1239
15381538INPUT_PORTS_END
15391539
15401540/* Same as 'pisces', but different "Coinage" Dip Switch */
1541INPUT_PORTS_START( piscesb )
1541static INPUT_PORTS_START( piscesb )
15421542PISCES_COMMON
15431543   PORT_START_TAG("DSW0")
15441544   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) )
r1238r1239
15801580   PORT_DIPSETTING(    0x80, DEF_STR( 1C_3C ) )\
15811581   PORT_DIPSETTING(    0x00, DEF_STR( 1C_5C ) )
15821582
1583INPUT_PORTS_START( gteikokb )
1583static INPUT_PORTS_START( gteikokb )
15841584GTEIKOB_COMMON
15851585   PORT_START_TAG("DSW0")
15861586   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) )
r1238r1239
15991599INPUT_PORTS_END
16001600
16011601/* same as gteikokb with cabinet reversed */
1602INPUT_PORTS_START( gteikob2 )
1602static INPUT_PORTS_START( gteikob2 )
16031603GTEIKOB_COMMON
16041604   PORT_START_TAG("DSW0")
16051605   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) )
r1238r1239
16171617   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
16181618INPUT_PORTS_END
16191619
1620INPUT_PORTS_START( spacbatt )
1620static INPUT_PORTS_START( spacbatt )
16211621GAL_IN0
16221622
16231623   PORT_START_TAG("IN1")
r1238r1239
16481648   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
16491649INPUT_PORTS_END
16501650
1651INPUT_PORTS_START( batman2 )
1651static INPUT_PORTS_START( batman2 )
16521652   PORT_START_TAG("IN0")
16531653   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
16541654   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
16891689   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
16901690INPUT_PORTS_END
16911691
1692INPUT_PORTS_START( warofbug )
1692static INPUT_PORTS_START( warofbug )
16931693   PORT_START_TAG("IN0")
16941694   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
16951695   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
r1238r1239
17301730   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
17311731INPUT_PORTS_END
17321732
1733INPUT_PORTS_START( redufo )
1733static INPUT_PORTS_START( redufo )
17341734GAL_IN0
17351735
17361736   PORT_START_TAG("IN1")
r1238r1239
17591759   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
17601760INPUT_PORTS_END
17611761
1762INPUT_PORTS_START( exodus )
1762static INPUT_PORTS_START( exodus )
17631763   PORT_START_TAG("IN0")
17641764   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
17651765   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
18001800   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
18011801INPUT_PORTS_END
18021802
1803INPUT_PORTS_START( streakng )
1803static INPUT_PORTS_START( streakng )
18041804   PORT_START_TAG("IN0")
18051805   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
18061806   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP) PORT_4WAY PORT_COCKTAIL
r1238r1239
18401840   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
18411841INPUT_PORTS_END
18421842
1843INPUT_PORTS_START( pacmanbl )
1843static INPUT_PORTS_START( pacmanbl )
18441844   PORT_START_TAG("IN0")
18451845   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
18461846   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
18811881   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
18821882INPUT_PORTS_END
18831883
1884INPUT_PORTS_START( devilfsg )
1884static INPUT_PORTS_START( devilfsg )
18851885   PORT_START_TAG("IN0")
18861886   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
18871887   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
19201920   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
19211921INPUT_PORTS_END
19221922
1923INPUT_PORTS_START( zigzag )
1923static INPUT_PORTS_START( zigzag )
19241924   PORT_START_TAG("IN0")
19251925   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
19261926   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN )
r1238r1239
19591959   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
19601960INPUT_PORTS_END
19611961
1962INPUT_PORTS_START( scramblb )
1962static INPUT_PORTS_START( scramblb )
19631963   PORT_START_TAG("IN0")
19641964   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
19651965   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL
r1238r1239
19981998
19991999
20002000/* the cocktail controls only seem to be used in upright mode, is the flip flag wrong for this bootleg? */
2001INPUT_PORTS_START( scramb2 )
2001static INPUT_PORTS_START( scramb2 )
20022002   PORT_START_TAG("IN0")
20032003   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
20042004   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
20452045INPUT_PORTS_END
20462046
20472047
2048INPUT_PORTS_START( jumpbug )
2048static INPUT_PORTS_START( jumpbug )
20492049   PORT_START_TAG("IN0")
20502050   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
20512051   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
r1238r1239
20842084   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
20852085INPUT_PORTS_END
20862086
2087INPUT_PORTS_START( levers )
2087static INPUT_PORTS_START( levers )
20882088   PORT_START_TAG("IN0")
20892089   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
20902090   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
r1238r1239
21322132   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
21332133INPUT_PORTS_END
21342134
2135INPUT_PORTS_START( azurian )
2135static INPUT_PORTS_START( azurian )
21362136   PORT_START_TAG("IN0")
21372137   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY
21382138   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY
r1238r1239
21762176   PORT_DIPSETTING(    0x00, DEF_STR( Very_Hard ) )
21772177INPUT_PORTS_END
21782178
2179INPUT_PORTS_START( orbitron )
2179static INPUT_PORTS_START( orbitron )
21802180   PORT_START_TAG("IN0")
21812181   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
21822182   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
22162216   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
22172217INPUT_PORTS_END
22182218
2219INPUT_PORTS_START( blkhole )
2219static INPUT_PORTS_START( blkhole )
22202220   PORT_START_TAG("IN0")
22212221   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
22222222   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED )
r1238r1239
22562256   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
22572257INPUT_PORTS_END
22582258
2259INPUT_PORTS_START( checkman )
2259static INPUT_PORTS_START( checkman )
22602260   PORT_START_TAG("IN0")
22612261   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 )
22622262   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 )
r1238r1239
22962296   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
22972297INPUT_PORTS_END
22982298
2299INPUT_PORTS_START( checkmaj )
2299static INPUT_PORTS_START( checkmaj )
23002300   PORT_START_TAG("IN0")
23012301   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
23022302   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
23372337   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("P1 Tiles Left")
23382338INPUT_PORTS_END
23392339
2340INPUT_PORTS_START( dingo )
2340static INPUT_PORTS_START( dingo )
23412341   PORT_START_TAG("IN0")
23422342   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
23432343   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
23912391   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN )   /* "reset" on schematics */\
23922392   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED )
23932393
2394INPUT_PORTS_START( mooncrst )
2394static INPUT_PORTS_START( mooncrst )
23952395MOON_IN0
23962396   PORT_START_TAG("IN1")
23972397   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
r1238r1239
24212421   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
24222422INPUT_PORTS_END
24232423
2424INPUT_PORTS_START( mooncrsa )
2424static INPUT_PORTS_START( mooncrsa )
24252425MOON_IN0
24262426   PORT_START_TAG("IN1")
24272427   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
r1238r1239
24512451   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
24522452INPUT_PORTS_END
24532453
2454INPUT_PORTS_START( mooncrsg )
2454static INPUT_PORTS_START( mooncrsg )
24552455   PORT_START_TAG("IN0")
24562456   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
24572457   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
24922492   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
24932493INPUT_PORTS_END
24942494
2495INPUT_PORTS_START( fantazia )
2495static INPUT_PORTS_START( fantazia )
24962496MOON_IN0
24972497   PORT_START_TAG("IN1")
24982498   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
r1238r1239
25222522   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
25232523INPUT_PORTS_END
25242524
2525INPUT_PORTS_START( eagle )
2525static INPUT_PORTS_START( eagle )
25262526MOON_IN0
25272527   PORT_START_TAG("IN1")
25282528   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
r1238r1239
25522552   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
25532553INPUT_PORTS_END
25542554
2555INPUT_PORTS_START( eagle2 )
2555static INPUT_PORTS_START( eagle2 )
25562556MOON_IN0
25572557   PORT_START_TAG("IN1")
25582558   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
r1238r1239
25872587   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
25882588INPUT_PORTS_END
25892589
2590INPUT_PORTS_START( smooncrs )
2590static INPUT_PORTS_START( smooncrs )
25912591MOON_IN0
25922592   PORT_START_TAG("IN1")
25932593   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
r1238r1239
26232623   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
26242624INPUT_PORTS_END
26252625
2626INPUT_PORTS_START( spcdrag )
2626static INPUT_PORTS_START( spcdrag )
26272627MOON_IN0
26282628   PORT_START_TAG("IN1")
26292629   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
r1238r1239
26592659   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
26602660INPUT_PORTS_END
26612661
2662INPUT_PORTS_START( mooncrgx )
2662static INPUT_PORTS_START( mooncrgx )
26632663   PORT_START_TAG("IN0")
26642664   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
26652665   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
27002700   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
27012701INPUT_PORTS_END
27022702
2703INPUT_PORTS_START( skybase )
2703static INPUT_PORTS_START( skybase )
27042704   PORT_START_TAG("IN0")
27052705   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
27062706   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED )
r1238r1239
27432743   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL
27442744INPUT_PORTS_END
27452745
2746INPUT_PORTS_START( omega )
2746static INPUT_PORTS_START( omega )
27472747   PORT_START_TAG("IN0")
27482748   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
27492749   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
27802780   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
27812781INPUT_PORTS_END
27822782
2783INPUT_PORTS_START( moonqsr )
2783static INPUT_PORTS_START( moonqsr )
27842784   PORT_START_TAG("IN0")
27852785   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
27862786   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
28202820   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
28212821INPUT_PORTS_END
28222822
2823INPUT_PORTS_START( moonal2 )
2823static INPUT_PORTS_START( moonal2 )
28242824GAL_IN0
28252825GAL_IN1
28262826   PORT_START_TAG("DSW")
r1238r1239
28382838   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
28392839INPUT_PORTS_END
28402840
2841INPUT_PORTS_START( mshuttle )
2841static INPUT_PORTS_START( mshuttle )
28422842   PORT_START_TAG("IN0")
28432843   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
28442844   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
28852885   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
28862886INPUT_PORTS_END
28872887
2888INPUT_PORTS_START( kingball )
2888static INPUT_PORTS_START( kingball )
28892889GAL_IN0
28902890   /* Relating to above port:Hack? - possibly multiplexed via writes to $b003 */
28912891   //PORT_DIPNAME( 0x80, 0x80, "Speech" )
r1238r1239
29252925   PORT_DIPSETTING(    0x01, DEF_STR( On ) )
29262926INPUT_PORTS_END
29272927
2928INPUT_PORTS_START( scorpnmc )
2928static INPUT_PORTS_START( scorpnmc )
29292929   PORT_START_TAG("IN0")      /* 0xa000 */
29302930   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE1 )      // COIN2? (it ALWAYS adds 1 credit)
29312931   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 )
r1238r1239
29782978   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED )
29792979INPUT_PORTS_END
29802980
2981INPUT_PORTS_START( frogg )
2981static INPUT_PORTS_START( frogg )
29822982   PORT_START_TAG("IN0")
29832983   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
29842984   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
30193019   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED )
30203020INPUT_PORTS_END
30213021
3022INPUT_PORTS_START( 4in1 )
3022static INPUT_PORTS_START( 4in1 )
30233023   PORT_START_TAG("IN0")
30243024   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
30253025   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
r1238r1239
31393139   PORT_DIPSETTING(    0xc0, DEF_STR( Free_Play ) )
31403140INPUT_PORTS_END
31413141
3142INPUT_PORTS_START( bagmanmc )
3142static INPUT_PORTS_START( bagmanmc )
31433143   PORT_START_TAG("IN0")
31443144   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
31453145   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
31873187   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
31883188INPUT_PORTS_END
31893189
3190INPUT_PORTS_START( dkongjrm )
3190static INPUT_PORTS_START( dkongjrm )
31913191   PORT_START_TAG("IN0")
31923192   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
31933193   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN )
r1238r1239
32263226   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
32273227INPUT_PORTS_END
32283228
3229INPUT_PORTS_START( rockclim )
3229static INPUT_PORTS_START( rockclim )
32303230
32313231   PORT_START_TAG("IN0")
32323232   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
r1238r1239
33043304- you can insert 99 credits 3 times consecutively, then it resets
33053305
33063306*/
3307INPUT_PORTS_START( ozon1 )
3307static INPUT_PORTS_START( ozon1 )
33083308   PORT_START_TAG("IN0")
33093309   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
33103310   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
33543354   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
33553355INPUT_PORTS_END
33563356
3357INPUT_PORTS_START( ladybugg )
3357static INPUT_PORTS_START( ladybugg )
33583358   PORT_START_TAG("IN0")
33593359   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
33603360   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
33953395   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) /* Check code at 0x22e1 */
33963396INPUT_PORTS_END
33973397
3398INPUT_PORTS_START( vpool )
3398static INPUT_PORTS_START( vpool )
33993399   PORT_START_TAG("IN0")
34003400   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
34013401   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
34513451   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
34523452INPUT_PORTS_END
34533453
3454INPUT_PORTS_START( drivfrcg )
3454static INPUT_PORTS_START( drivfrcg )
34553455   PORT_START_TAG("IN0")
34563456   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
34573457   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
35303530   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK )
35313531INPUT_PORTS_END
35323532
3533INPUT_PORTS_START( bongo )
3533static INPUT_PORTS_START( bongo )
35343534   PORT_START_TAG("IN0")
35353535   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
35363536   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // coin? it jumps to an unmapped area at $C003
r1238r1239
36033603   PORT_DIPSETTING(    0x80, DEF_STR( Cocktail ) )
36043604INPUT_PORTS_END
36053605
3606INPUT_PORTS_START( hunchbkg )
3606static INPUT_PORTS_START( hunchbkg )
36073607   PORT_START_TAG("IN0")
36083608   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
36093609   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
36543654   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK )
36553655INPUT_PORTS_END
36563656
3657INPUT_PORTS_START( harem )
3657static INPUT_PORTS_START( harem )
36583658   PORT_START_TAG("IN0")//Change tag when major usage uncovered.
36593659   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) )
36603660   PORT_DIPSETTING(   0x00, DEF_STR( Off ) )
r1238r1239
37083708   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
37093709INPUT_PORTS_END
37103710
3711INPUT_PORTS_START( tazzmang )
3711static INPUT_PORTS_START( tazzmang )
37123712   PORT_START
37133713   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
37143714   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
37553755   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
37563756INPUT_PORTS_END
37573757
3758INPUT_PORTS_START( racknrol )
3758static INPUT_PORTS_START( racknrol )
37593759   PORT_START_TAG("IN0")
37603760   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
37613761   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
38183818   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK )
38193819INPUT_PORTS_END
38203820
3821INPUT_PORTS_START( trvchlng )
3821static INPUT_PORTS_START( trvchlng )
38223822   PORT_START_TAG("IN0")
38233823   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
38243824   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
38813881   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK )
38823882INPUT_PORTS_END
38833883
3884INPUT_PORTS_START( catacomb )
3884static INPUT_PORTS_START( catacomb )
38853885   PORT_START_TAG("IN0")
38863886   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
38873887   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
39443944   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK )
39453945INPUT_PORTS_END
39463946
3947INPUT_PORTS_START( luctoday )
3947static INPUT_PORTS_START( luctoday )
39483948   PORT_START_TAG("IN0") //These inputs are clearly wrong, they need a full test
39493949   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
39503950   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN )
r1238r1239
39733973   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
39743974INPUT_PORTS_END
39753975
3976INPUT_PORTS_START( ckongg )
3976static INPUT_PORTS_START( ckongg )
39773977   PORT_START_TAG("IN0")
39783978   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
39793979   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
r1238r1239
40134013INPUT_PORTS_END
40144014
40154015/* not correct */
4016INPUT_PORTS_START( kkgalax )
4016static INPUT_PORTS_START( kkgalax )
40174017   PORT_START_TAG("IN0")
40184018   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
40194019   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
r1238r1239
40524052   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
40534053INPUT_PORTS_END
40544054
4055INPUT_PORTS_START( porter )
4055static INPUT_PORTS_START( porter )
40564056   PORT_START_TAG("IN0")\
40574057   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
40584058   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
src/mame/drivers/othldrby.c
r1238r1239
125125
126126
127127
128INPUT_PORTS_START( othldrby )
128static INPUT_PORTS_START( othldrby )
129129   PORT_START
130130   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) )
131131   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
src/mame/drivers/bbusters.c
r1238r1239
402402
403403/******************************************************************************/
404404
405INPUT_PORTS_START( bbusters )
405static INPUT_PORTS_START( bbusters )
406406   PORT_START_TAG("IN0")   /* Player controls */
407407   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
408408   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)   PORT_NAME("P1 Fire")   // "Fire"
r1238r1239
497497#endif
498498INPUT_PORTS_END
499499
500INPUT_PORTS_START( mechatt )
500static INPUT_PORTS_START( mechatt )
501501   PORT_START_TAG("IN0")
502502   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
503503   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/gstriker.c
r1238r1239
350350
351351/*** INPUT PORTS *************************************************************/
352352
353INPUT_PORTS_START( gstriker )
353static INPUT_PORTS_START( gstriker )
354354   PORT_START
355355   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
356356   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/snk.c
r1238r1239
28882888   PORT_DIPSETTING(    0x80, DEF_STR( 1C_4C ) ) \
28892889   PORT_DIPSETTING(    0xc0, DEF_STR( 1C_6C ) )
28902890
2891INPUT_PORTS_START( ikari )
2891static INPUT_PORTS_START( ikari )
28922892   PORT_START_TAG("IN0")
28932893   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound CPU status */
28942894   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 )
r1238r1239
29442944   PORT_DIPSETTING(    0x00, DEF_STR( Yes ) )
29452945INPUT_PORTS_END
29462946
2947INPUT_PORTS_START( ikarijp )
2947static INPUT_PORTS_START( ikarijp )
29482948   PORT_START_TAG("IN0")
29492949   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
29502950   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
30013001INPUT_PORTS_END
30023002
30033003
3004INPUT_PORTS_START( ikarijpb )
3004static INPUT_PORTS_START( ikarijpb )
30053005   PORT_INCLUDE(ikarijp)
30063006
30073007   PORT_MODIFY("IN1") \
r1238r1239
30203020INPUT_PORTS_END
30213021
30223022
3023INPUT_PORTS_START( victroad )
3023static INPUT_PORTS_START( victroad )
30243024   PORT_START_TAG("IN0")
30253025   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )    /* sound related ??? */
30263026   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 )
r1238r1239
30773077INPUT_PORTS_END
30783078
30793079
3080INPUT_PORTS_START( dogosokj )
3080static INPUT_PORTS_START( dogosokj )
30813081   PORT_START_TAG("IN0")
30823082   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )    /* sound related ??? */
30833083   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 )
r1238r1239
31343134INPUT_PORTS_END
31353135
31363136
3137INPUT_PORTS_START( gwar )
3137static INPUT_PORTS_START( gwar )
31383138   PORT_START_TAG("IN0")
31393139   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )    /* sound related ??? */
31403140   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 )
r1238r1239
31913191   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
31923192INPUT_PORTS_END
31933193
3194INPUT_PORTS_START( athena )
3194static INPUT_PORTS_START( athena )
31953195   PORT_START_TAG("IN0")
31963196   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )  /* sound CPU status */
31973197   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 )
r1238r1239
32623262   PORT_DIPSETTING(    0x00, "14" )
32633263INPUT_PORTS_END
32643264
3265INPUT_PORTS_START( tnk3 )
3265static INPUT_PORTS_START( tnk3 )
32663266   PORT_START_TAG("IN0")
32673267   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 )
32683268   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
33463346   PORT_DIPSETTING(    0x00, DEF_STR( Yes ) )
33473347INPUT_PORTS_END
33483348
3349INPUT_PORTS_START( bermudat )
3349static INPUT_PORTS_START( bermudat )
33503350   PORT_START_TAG("IN0")
33513351   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound CPU status */
33523352   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 )
r1238r1239
34303430   SNK_COINAGE
34313431
34323432
3433INPUT_PORTS_START( bermudaa )
3433static INPUT_PORTS_START( bermudaa )
34343434   BERMWW_COMMON
34353435
34363436   PORT_START_TAG("DSW2")
r1238r1239
34613461INPUT_PORTS_END
34623462
34633463/* Same as Bermudaa, but has different Bonus Life */
3464INPUT_PORTS_START( worldwar )
3464static INPUT_PORTS_START( worldwar )
34653465   BERMWW_COMMON
34663466
34673467   PORT_START_TAG("DSW2")
r1238r1239
34883488   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
34893489INPUT_PORTS_END
34903490
3491INPUT_PORTS_START( psychos )
3491static INPUT_PORTS_START( psychos )
34923492   PORT_START_TAG("IN0")
34933493   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )  /* sound related */
34943494   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
35493549   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
35503550INPUT_PORTS_END
35513551
3552INPUT_PORTS_START( legofair )
3552static INPUT_PORTS_START( legofair )
35533553   PORT_START_TAG("IN0")
35543554   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )  /* sound CPU status */
35553555   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
36193619   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
36203620INPUT_PORTS_END
36213621
3622INPUT_PORTS_START( choppera )
3622static INPUT_PORTS_START( choppera )
36233623   PORT_START_TAG("IN0")
36243624   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )  /* sound CPU status */
36253625   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 )
r1238r1239
36753675   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
36763676INPUT_PORTS_END
36773677
3678INPUT_PORTS_START( fitegolf )
3678static INPUT_PORTS_START( fitegolf )
36793679   PORT_START_TAG("IN0")
36803680   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )  /* sound related? */
36813681   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 )
r1238r1239
37523752   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
37533753INPUT_PORTS_END
37543754
3755INPUT_PORTS_START( countryc )
3755static INPUT_PORTS_START( countryc )
37563756   PORT_START_TAG("IN0")
37573757   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )  /* sound related? */
37583758   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 )
r1238r1239
38173817   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
38183818INPUT_PORTS_END
38193819
3820INPUT_PORTS_START( ftsoccer )
3820static INPUT_PORTS_START( ftsoccer )
38213821   PORT_START_TAG("IN0")
38223822   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
38233823   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
39313931   PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_START4 ) PORT_NAME("Start Game D")
39323932INPUT_PORTS_END
39333933
3934INPUT_PORTS_START( tdfever )
3934static INPUT_PORTS_START( tdfever )
39353935   PORT_START_TAG("IN0")
39363936   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
39373937   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
40724072   PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_START4 ) PORT_NAME("Start Game D")
40734073INPUT_PORTS_END
40744074
4075INPUT_PORTS_START( tdfeverj )
4075static INPUT_PORTS_START( tdfeverj )
40764076   PORT_START_TAG("IN0")
40774077   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
40784078   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/hyprduel.c
r1238r1239
608608   PORT_BIT(  0x8000, IP_ACTIVE_LOW, IPT_##_b4_         ) PORT_PLAYER(_n_) \
609609
610610
611INPUT_PORTS_START( hyprduel )
611static INPUT_PORTS_START( hyprduel )
612612   PORT_START
613613   PORT_BIT(    0x8000, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2)
614614   PORT_DIPNAME( 0x4000, 0x0000, "Show Warning" )
src/mame/drivers/arcadecl.c
r1238r1239
197197 *
198198 *************************************/
199199
200INPUT_PORTS_START( arcadecl )
200static INPUT_PORTS_START( arcadecl )
201201   PORT_START_TAG("640000")
202202   PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED )
203203   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
251251INPUT_PORTS_END
252252
253253
254INPUT_PORTS_START( sparkz )
254static INPUT_PORTS_START( sparkz )
255255   PORT_START_TAG("640000")
256256   PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED )
257257   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 )
src/mame/drivers/namconb1.c
r1238r1239
12131213
12141214/***************************************************************/
12151215
1216INPUT_PORTS_START( gunbulet )
1216static INPUT_PORTS_START( gunbulet )
12171217   PORT_START
12181218   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
12191219   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
12461246   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(50) PORT_KEYDELTA(4) PORT_PLAYER(2)
12471247INPUT_PORTS_END
12481248
1249INPUT_PORTS_START( machbrkr )
1249static INPUT_PORTS_START( machbrkr )
12501250   PORT_START
12511251   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
12521252   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
12981298   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START4 )
12991299INPUT_PORTS_END
13001300
1301INPUT_PORTS_START( outfxies )
1301static INPUT_PORTS_START( outfxies )
13021302   PORT_START
13031303   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
13041304   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
13461346   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START2 )
13471347INPUT_PORTS_END
13481348
1349INPUT_PORTS_START( namconb1 )
1349static INPUT_PORTS_START( namconb1 )
13501350   PORT_START
13511351   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
13521352   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
src/mame/drivers/flstory.c
r1238r1239
347347   (0xe781) is between 8 and 98 (included).
348348*/
349349
350INPUT_PORTS_START( flstory )
350static INPUT_PORTS_START( flstory )
351351   PORT_START_TAG("DSW0")      /*D800*/
352352   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Bonus_Life ) )
353353   PORT_DIPSETTING(    0x00, "30000 100000" )
r1238r1239
451451   PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )
452452INPUT_PORTS_END
453453
454INPUT_PORTS_START( onna34ro )
454static INPUT_PORTS_START( onna34ro )
455455   PORT_START_TAG("DSW0")      /* D800*/
456456   PORT_DIPNAME(0x03, 0x00, DEF_STR( Bonus_Life ) )
457457   PORT_DIPSETTING(   0x00, "200000 200000" )
r1238r1239
568568   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
569569INPUT_PORTS_END
570570
571INPUT_PORTS_START( victnine )
571static INPUT_PORTS_START( victnine )
572572   PORT_START_TAG("DSW0")      /* D800 */
573573   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
574574   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/fcrash.c
r1238r1239
234234   PORT_DIPSETTING(    0x20, DEF_STR( 1C_4C ) ) \
235235   PORT_DIPSETTING(    0x18, DEF_STR( 1C_6C ) )
236236
237INPUT_PORTS_START( fcrash )
237static INPUT_PORTS_START( fcrash )
238238   PORT_START_TAG("IN0")
239239   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
240240   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/suprslam.c
r1238r1239
195195
196196/*** INPUT PORTS *************************************************************/
197197
198INPUT_PORTS_START( suprslam )
198static INPUT_PORTS_START( suprslam )
199199
200200   PORT_START      /* IN1 */
201201   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/f-32.c
r1238r1239
102102ADDRESS_MAP_END
103103
104104
105INPUT_PORTS_START( mosaicf2 )
105static INPUT_PORTS_START( mosaicf2 )
106106   PORT_START
107107   PORT_BIT( 0x0000ffff, IP_ACTIVE_LOW, IPT_UNUSED )
108108   PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    ) PORT_PLAYER(1)
src/mame/drivers/strnskil.c
r1238r1239
140140
141141/****************************************************************************/
142142
143INPUT_PORTS_START( strnskil )
143static INPUT_PORTS_START( strnskil )
144144   PORT_START  /* dsw1 */
145145   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) )
146146   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
229229   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
230230INPUT_PORTS_END
231231
232INPUT_PORTS_START( banbam )
232static INPUT_PORTS_START( banbam )
233233   PORT_START  /* dsw1 */
234234   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1")
235235   PORT_DIPSETTING(    0x00, "3" )
src/mame/drivers/sfkick.c
r1238r1239
3939ADDRESS_MAP_END
4040#endif
4141
42INPUT_PORTS_START( sfkick )
42static INPUT_PORTS_START( sfkick )
4343    PORT_START
4444    PORT_DIPNAME(   0x01, 0x01, DEF_STR( Unknown ) )
4545    PORT_DIPSETTING(      0x01, DEF_STR( Off ) )
src/mame/drivers/atetris.c
r1238r1239
221221 *
222222 *************************************/
223223
224INPUT_PORTS_START( atetris )
224static INPUT_PORTS_START( atetris )
225225   // These ports are read via the Pokeys
226226   PORT_START      /* IN0 */
227227   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
247247
248248
249249// Same as the regular one except they added a Flip Controls switch
250INPUT_PORTS_START( atetcktl )
250static INPUT_PORTS_START( atetcktl )
251251   // These ports are read via the Pokeys
252252   PORT_START      /* IN0 */
253253   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 )
src/mame/drivers/dgpix.c
r1238r1239
263263   }
264264}
265265
266INPUT_PORTS_START( dgpix )
266static INPUT_PORTS_START( dgpix )
267267   PORT_START
268268   PORT_BIT( 0x00000003, IP_ACTIVE_LOW, IPT_VBLANK ) //value 2 is used by fmaniac3
269269   PORT_BIT( 0xfffffffc, IP_ACTIVE_LOW, IPT_UNUSED )
src/mame/drivers/troangel.c
r1238r1239
7373
7474
7575
76INPUT_PORTS_START( troangel )
76static INPUT_PORTS_START( troangel )
7777   PORT_START_TAG("IN0")
7878   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
7979   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/cosmic.c
r1238r1239
385385ADDRESS_MAP_END
386386
387387
388INPUT_PORTS_START( panic )
388static INPUT_PORTS_START( panic )
389389   PORT_START      /* IN1 */
390390   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
391391   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY
r1238r1239
442442
443443INPUT_PORTS_END
444444
445INPUT_PORTS_START( cosmica )
445static INPUT_PORTS_START( cosmica )
446446   PORT_START      /* IN0 */
447447   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
448448   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY
r1238r1239
499499
500500/* Offsets are in BYTES, so bits 0-7 are at offset 0 etc.   */
501501
502INPUT_PORTS_START( cosmicg )
502static INPUT_PORTS_START( cosmicg )
503503   PORT_START /* 4-7 */
504504   PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_SPECIAL )   /* pixel clock */
505505   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
549549INPUT_PORTS_END
550550
551551
552INPUT_PORTS_START( magspot2 )
552static INPUT_PORTS_START( magspot2 )
553553   PORT_START   /* IN0 */
554554   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
555555   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY
r1238r1239
638638   PORT_DIPSETTING(    0x40, DEF_STR( 1C_5C ) )
639639INPUT_PORTS_END
640640
641INPUT_PORTS_START( devzone )
641static INPUT_PORTS_START( devzone )
642642   PORT_START   /* IN0 */
643643   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
644644   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY
r1238r1239
722722INPUT_PORTS_END
723723
724724
725INPUT_PORTS_START( devzone2 )
725static INPUT_PORTS_START( devzone2 )
726726   PORT_START   /* IN0 */
727727   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
728728   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY
r1238r1239
806806INPUT_PORTS_END
807807
808808
809INPUT_PORTS_START( nomnlnd )
809static INPUT_PORTS_START( nomnlnd )
810810   PORT_START   /* Controls - Remapped for game */
811811   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
812812   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
854854INPUT_PORTS_END
855855
856856
857INPUT_PORTS_START( nomnlndg )
857static INPUT_PORTS_START( nomnlndg )
858858   PORT_START   /* Controls - Remapped for game */
859859   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
860860   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/shaolins.c
r1238r1239
6969
7070
7171
72INPUT_PORTS_START( shaolins )
72static INPUT_PORTS_START( shaolins )
7373   PORT_START   /* IN0 */
7474   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
7575   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/model2.c
r1238r1239
8282   DSP_TYPE_TGP   = 1,
8383   DSP_TYPE_SHARC   = 2,
8484   DSP_TYPE_TGPX4   = 3,
85} DSP_TYPE;
85};
8686
8787static int dsp_type;
8888
r1238r1239
14191419   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(_n_) \
14201420   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  ) PORT_PLAYER(_n_)
14211421
1422INPUT_PORTS_START( model2 )
1422static INPUT_PORTS_START( model2 )
14231423   PORT_START
14241424   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_COIN1 )
14251425   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
14371437   MODEL2_PLAYER_INPUTS(2, BUTTON1, BUTTON2, BUTTON3, BUTTON4)
14381438INPUT_PORTS_END
14391439
1440INPUT_PORTS_START( desert )
1440static INPUT_PORTS_START( desert )
14411441   PORT_START
14421442   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_COIN1 )
14431443   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
14681468   PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(30) PORT_KEYDELTA(10) PORT_PLAYER(1)
14691469INPUT_PORTS_END
14701470
1471INPUT_PORTS_START( daytona )
1471static INPUT_PORTS_START( daytona )
14721472   PORT_START
14731473   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_COIN1 )
14741474   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
15001500   PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(30) PORT_KEYDELTA(10) PORT_PLAYER(1)
15011501INPUT_PORTS_END
15021502
1503INPUT_PORTS_START( bel )
1503static INPUT_PORTS_START( bel )
15041504   PORT_START
15051505   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_COIN1 )
15061506   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/ataxx.c
r1238r1239
9999#define IPT_EEPROM_DATA   IPT_SPECIAL
100100
101101
102INPUT_PORTS_START( ataxx )
102static INPUT_PORTS_START( ataxx )
103103   PORT_START      /* 0xF6 */
104104   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
105105   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
130130INPUT_PORTS_END
131131
132132
133INPUT_PORTS_START( wsf )
133static INPUT_PORTS_START( wsf )
134134   PORT_START      /* 0xF6 */
135135   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
136136    PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
184184INPUT_PORTS_END
185185
186186
187INPUT_PORTS_START( indyheat )
187static INPUT_PORTS_START( indyheat )
188188   PORT_START      /* 0xF6 */
189189    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
190190   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(1)
r1238r1239
230230INPUT_PORTS_END
231231
232232
233INPUT_PORTS_START( brutforc )
233static INPUT_PORTS_START( brutforc )
234234   PORT_START      /* 0xF6 */
235235    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
236236   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1)
src/mame/drivers/sshangha.c
r1238r1239
201201
202202/******************************************************************************/
203203
204INPUT_PORTS_START( sshangha )
204static INPUT_PORTS_START( sshangha )
205205   PORT_START_TAG("IN0")   /* Player 1 controls (0xfec047.b) */
206206   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
207207   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/wiping.c
r1238r1239
135135
136136
137137
138INPUT_PORTS_START( wiping )
138static INPUT_PORTS_START( wiping )
139139   PORT_START   /* 0 */
140140   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY
141141   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY
r1238r1239
200200INPUT_PORTS_END
201201
202202/* identical apart from bonus life */
203INPUT_PORTS_START( rugrats )
203static INPUT_PORTS_START( rugrats )
204204   PORT_START   /* 0 */
205205   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY
206206   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY
src/mame/drivers/kyugo.c
r1238r1239
206206   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN )\
207207   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
208208
209INPUT_PORTS_START( gyrodine )
209static INPUT_PORTS_START( gyrodine )
210210   PORT_START_TAG("DSW1")
211211   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) )
212212   PORT_DIPSETTING(    0x03, "3" )
r1238r1239
233233
234234INPUT_PORTS_END
235235
236INPUT_PORTS_START( sonofphx )
236static INPUT_PORTS_START( sonofphx )
237237   PORT_START_TAG("DSW1")
238238   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) )
239239   PORT_DIPSETTING(    0x03, "3" )
r1238r1239
270270COMMON_END
271271INPUT_PORTS_END
272272
273INPUT_PORTS_START( airwolf )
273static INPUT_PORTS_START( airwolf )
274274   PORT_START_TAG("DSW1")
275275   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) )
276276   PORT_DIPSETTING(    0x03, "4" )
r1238r1239
301301INPUT_PORTS_END
302302
303303/* Same as 'airwolf', but different "Lives" Dip Switch */
304INPUT_PORTS_START( skywolf )
304static INPUT_PORTS_START( skywolf )
305305   PORT_START_TAG("DSW1")
306306   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) )
307307   PORT_DIPSETTING(    0x03, "3" )
r1238r1239
331331COMMON_END
332332INPUT_PORTS_END
333333
334INPUT_PORTS_START( flashgal )
334static INPUT_PORTS_START( flashgal )
335335   PORT_START_TAG("DSW1")
336336   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) )
337337   PORT_DIPSETTING(    0x03, "3" )
r1238r1239
361361COMMON_END
362362INPUT_PORTS_END
363363
364INPUT_PORTS_START( srdmissn )
364static INPUT_PORTS_START( srdmissn )
365365   PORT_START_TAG("DSW1")
366366   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) )
367367   PORT_DIPSETTING(    0x03, "3" )
r1238r1239
391391COMMON_END
392392INPUT_PORTS_END
393393
394INPUT_PORTS_START( legend )
394static INPUT_PORTS_START( legend )
395395   PORT_START_TAG("DSW1")
396396   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) )
397397   PORT_DIPSETTING(    0x03, "3" )
src/mame/drivers/leland.c
r1238r1239
119119#define IPT_EEPROM_DATA   IPT_SPECIAL
120120
121121
122INPUT_PORTS_START( cerberus )      /* complete, verified from code */
122static INPUT_PORTS_START( cerberus )      /* complete, verified from code */
123123   PORT_START      /* 0x80 */
124124    PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_PLAYER(1)
125125   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
r1238r1239
155155INPUT_PORTS_END
156156
157157
158INPUT_PORTS_START( mayhem )      /* complete, verified from code */
158static INPUT_PORTS_START( mayhem )      /* complete, verified from code */
159159   PORT_START      /* 0xC0 */
160160   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
161161   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
r1238r1239
199199INPUT_PORTS_END
200200
201201
202INPUT_PORTS_START( wseries )      /* complete, verified from code */
202static INPUT_PORTS_START( wseries )      /* complete, verified from code */
203203   PORT_START      /* 0x80 */
204204   PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNUSED )
205205   PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Extra Base") PORT_PLAYER(1)
r1238r1239
236236INPUT_PORTS_END
237237
238238
239INPUT_PORTS_START( alleymas )      /* complete, verified from code */
239static INPUT_PORTS_START( alleymas )      /* complete, verified from code */
240240   PORT_START      /* 0xC0 */
241241   PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNUSED )
242242   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
272272INPUT_PORTS_END
273273
274274
275INPUT_PORTS_START( upyoural )      /* complete, verified from code */
275static INPUT_PORTS_START( upyoural )      /* complete, verified from code */
276276   PORT_START      /* 0xC0 */
277277   PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNUSED )
278278   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON4 )
r1238r1239
308308INPUT_PORTS_END
309309
310310
311INPUT_PORTS_START( dangerz )      /* complete, verified from code */
311static INPUT_PORTS_START( dangerz )      /* complete, verified from code */
312312   PORT_START      /* 0x80 */
313313   PORT_BIT( 0x1f, IP_ACTIVE_LOW, IPT_UNUSED )
314314   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
339339INPUT_PORTS_END
340340
341341
342INPUT_PORTS_START( basebal2 )      /* complete, verified from code */
342static INPUT_PORTS_START( basebal2 )      /* complete, verified from code */
343343   PORT_START      /* 0x40/C0 */
344344   PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNUSED )
345345   PORT_BIT( 0x30, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* read by strkzone, but never referenced */
r1238r1239
380380INPUT_PORTS_END
381381
382382
383INPUT_PORTS_START( redline )      /* complete, verified in code */
383static INPUT_PORTS_START( redline )      /* complete, verified in code */
384384   PORT_START      /* 0xC0 */
385385   PORT_BIT( 0x1f, IP_ACTIVE_LOW, IPT_UNUSED )
386386   PORT_BIT( 0xe0, 0x00, IPT_PEDAL ) PORT_MINMAX(0x00,0xe0) PORT_SENSITIVITY(100) PORT_KEYDELTA(64) PORT_PLAYER(1)
r1238r1239
411411INPUT_PORTS_END
412412
413413
414INPUT_PORTS_START( quarterb )      /* complete, verified in code */
414static INPUT_PORTS_START( quarterb )      /* complete, verified in code */
415415   PORT_START      /* 0x80 */
416416   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
417417   PORT_BIT( 0x0e, IP_ACTIVE_LOW, IPT_UNUSED )
r1238r1239
453453INPUT_PORTS_END
454454
455455
456INPUT_PORTS_START( teamqb )      /* complete, verified in code */
456static INPUT_PORTS_START( teamqb )      /* complete, verified in code */
457457   PORT_START      /* 0x80 */
458458   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
459459   PORT_BIT( 0x0e, IP_ACTIVE_LOW, IPT_UNUSED )
r1238r1239
515515INPUT_PORTS_END
516516
517517
518INPUT_PORTS_START( aafb2p )      /* complete, verified in code */
518static INPUT_PORTS_START( aafb2p )      /* complete, verified in code */
519519   PORT_START      /* 0x80 */
520520   PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNUSED )
521521   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
r1238r1239
569569INPUT_PORTS_END
570570
571571
572INPUT_PORTS_START( offroad )      /* complete, verified from code */
572static INPUT_PORTS_START( offroad )      /* complete, verified from code */
573573   PORT_START      /* 0xC0 */
574574   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* read */
575575   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* read */
r1238r1239
612612INPUT_PORTS_END
613613
614614
615INPUT_PORTS_START( pigout )      /* complete, verified from code */
615static INPUT_PORTS_START( pigout )      /* complete, verified from code */
616616   PORT_START      /* 0x40 */
617617   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
618618   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3)
src/mame/drivers/mjsiyoub.c
r1238r1239
6161   AM_RANGE(0x0000, 0x7fff) AM_WRITE(MWA8_ROM)
6262ADDRESS_MAP_END
6363
64INPUT_PORTS_START( mjsiyoub )
64static INPUT_PORTS_START( mjsiyoub )
6565INPUT_PORTS_END
6666
6767
src/mame/drivers/lazercmd.c
r1238r1239
449449
450450
451451
452INPUT_PORTS_START( lazercmd )
452static INPUT_PORTS_START( lazercmd )
453453   PORT_START                  /* IN0 player 1 controls */
454454   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
455455   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
r1238r1239
498498   PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )
499499INPUT_PORTS_END
500500
501INPUT_PORTS_START( medlanes )
501static INPUT_PORTS_START( medlanes )
502502   PORT_START                  /* IN0 player 1 controls */
503503   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT )
504504   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )
r1238r1239
541541   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
542542INPUT_PORTS_END
543543
544INPUT_PORTS_START( bbonk )
544static INPUT_PORTS_START( bbonk )
545545   PORT_START                  /* IN0 player 1 controls */
546546   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
547547   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
src/mame/drivers/popeye.c
r1238r1239
162162
163163
164164
165INPUT_PORTS_START( skyskipr )
165static INPUT_PORTS_START( skyskipr )
166166   PORT_START   /* IN0 */
167167   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
168168   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
247247INPUT_PORTS_END
248248
249249
250INPUT_PORTS_START( popeye )
250static INPUT_PORTS_START( popeye )
251251   PORT_START   /* IN0 */
252252   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY
253253   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
331331INPUT_PORTS_END
332332
333333
334INPUT_PORTS_START( popeyef )
334static INPUT_PORTS_START( popeyef )
335335   PORT_START   /* IN0 */
336336   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY
337337   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY
src/mame/drivers/4enraya.c
r1238r1239
103103ADDRESS_MAP_END
104104
105105
106INPUT_PORTS_START( 4enraya )
106static INPUT_PORTS_START( 4enraya )
107107   PORT_START_TAG("DSW")
108108   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Difficulty ) )   PORT_DIPLOCATION("SW1:1")
109109   PORT_DIPSETTING(    0x01, DEF_STR( Easy ) )
src/mame/drivers/taxidrvr.c
r1238r1239
196196
197197
198198
199INPUT_PORTS_START( taxidrvr )
199static INPUT_PORTS_START( taxidrvr )
200200   PORT_START_TAG("DSW0")
201201   PORT_DIPNAME( 0x0f, 0x00, DEF_STR( Coin_A ) )
202202   PORT_DIPSETTING(    0x0d, DEF_STR( 4C_1C ) )
src/mame/drivers/blockade.c
r1238r1239
145145/* different harnesses which plugged in here, and */
146146/* some pins were unused.                         */
147147
148INPUT_PORTS_START( blockade )
148static INPUT_PORTS_START( blockade )
149149    PORT_START  /* IN0 */
150150    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
151151    PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
187187   PORT_BIT( 0x7f, IP_ACTIVE_LOW, IPT_UNKNOWN )
188188INPUT_PORTS_END
189189
190INPUT_PORTS_START( comotion )
190static INPUT_PORTS_START( comotion )
191191    PORT_START  /* IN0 */
192192    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
193193    PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
229229   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK )
230230INPUT_PORTS_END
231231
232INPUT_PORTS_START( blasto )
232static INPUT_PORTS_START( blasto )
233233    PORT_START  /* IN0 */
234234    PORT_DIPNAME(    0x03, 0x03, DEF_STR( Coinage ) )
235235    PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) )
r1238r1239
274274   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK )
275275INPUT_PORTS_END
276276
277INPUT_PORTS_START( hustle )
277static INPUT_PORTS_START( hustle )
278278    PORT_START  /* IN0 */
279279    PORT_DIPNAME(    0x03, 0x03, DEF_STR( Coinage ) )
280280    PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) )
r1238r1239
318318   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK )
319319INPUT_PORTS_END
320320
321INPUT_PORTS_START( mineswpr )
321static INPUT_PORTS_START( mineswpr )
322322    PORT_START  /* IN0 */
323323    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
324324   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* This wiring selects upright mode */
r1238r1239
360360   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK )
361361INPUT_PORTS_END
362362
363INPUT_PORTS_START( minesw4p )
363static INPUT_PORTS_START( minesw4p )
364364    PORT_START  /* IN0 */
365365    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
366366   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* This wiring selects cocktail mode */
src/mame/drivers/compgolf.c
r1238r1239
7878
7979/***************************************************************************/
8080
81INPUT_PORTS_START( compgolf )
81static INPUT_PORTS_START( compgolf )
8282   /* Player 1 Port */
8383   PORT_START
8484   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
src/mame/drivers/cps2.c
r1238r1239
813813
814814
815815
816INPUT_PORTS_START( 19xx )
816static INPUT_PORTS_START( 19xx )
817817    PORT_START      /* IN0 (0x00) */
818818    PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
819819    PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
858858    PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
859859INPUT_PORTS_END
860860
861INPUT_PORTS_START( cybots )
861static INPUT_PORTS_START( cybots )
862862    PORT_START      /* IN0 (0x00) */
863863    PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
864864    PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
903903    PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
904904INPUT_PORTS_END
905905
906INPUT_PORTS_START( ssf2 )
906static INPUT_PORTS_START( ssf2 )
907907    PORT_START      /* IN0 (0x00) */
908908    PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
909909    PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
948948    PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
949949INPUT_PORTS_END
950950
951INPUT_PORTS_START( ddtod )
951static INPUT_PORTS_START( ddtod )
952952    PORT_START      /* IN0 (0x00) */
953953    PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
954954    PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
10001000    PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN4 )
10011001INPUT_PORTS_END
10021002
1003INPUT_PORTS_START( avsp )
1003static INPUT_PORTS_START( avsp )
10041004    PORT_START      /* IN0 (0x00) */
10051005    PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
10061006    PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
10451045    PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
10461046INPUT_PORTS_END
10471047
1048INPUT_PORTS_START( qndream )
1048static INPUT_PORTS_START( qndream )
10491049    PORT_START      /* IN0 (0x00) */
10501050    PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1)
10511051    PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
r1238r1239
10821082    PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
10831083INPUT_PORTS_END
10841084
1085INPUT_PORTS_START( batcir )
1085static INPUT_PORTS_START( batcir )
10861086    PORT_START      /* IN0 (0x00) */
10871087    PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
10881088    PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
11341134    PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN4 )
11351135INPUT_PORTS_END
11361136
1137INPUT_PORTS_START( sgemf )
1137static INPUT_PORTS_START( sgemf )
11381138    PORT_START      /* IN0 (0x00) */
11391139    PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
11401140    PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
11791179    PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
11801180INPUT_PORTS_END
11811181
1182INPUT_PORTS_START( cps2 )
1182static INPUT_PORTS_START( cps2 )
11831183    PORT_START      /* IN0 (0x00) */
11841184    PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
11851185    PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
12251225INPUT_PORTS_END
12261226
12271227
1228INPUT_PORTS_START( puzloop2 )
1228static INPUT_PORTS_START( puzloop2 )
12291229    PORT_START      /* IN0 (0x00) */
12301230    PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
12311231    PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/lordgun.c
r1238r1239
329329
330330***************************************************************************/
331331
332INPUT_PORTS_START( lordgun )
332static INPUT_PORTS_START( lordgun )
333333   PORT_START   // IN0
334334   PORT_DIPNAME( 0x01, 0x01, "Game Mode" )
335335   PORT_DIPSETTING(    0x01, "Arcade" )
src/mame/drivers/lemmings.c
r1238r1239
133133
134134/******************************************************************************/
135135
136INPUT_PORTS_START( lemmings )
136static INPUT_PORTS_START( lemmings )
137137   PORT_START_TAG("IN0")
138138   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 )
139139   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("P1 Select")
src/mame/drivers/pushman.c
r1238r1239
215215
216216/******************************************************************************/
217217
218INPUT_PORTS_START( pushman )
218static INPUT_PORTS_START( pushman )
219219   PORT_START_TAG("IN0")
220220   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
221221   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
294294   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
295295INPUT_PORTS_END
296296
297INPUT_PORTS_START( bballs )
297static INPUT_PORTS_START( bballs )
298298   PORT_START_TAG("IN0")
299299   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
300300   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/zerozone.c
r1238r1239
9999   AM_RANGE(0x9800, 0x9800) AM_WRITE(OKIM6295_data_0_w)
100100ADDRESS_MAP_END
101101
102INPUT_PORTS_START( zerozone )
102static INPUT_PORTS_START( zerozone )
103103   PORT_START_TAG("IN0")
104104   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
105105   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/espial.c
r1238r1239
150150ADDRESS_MAP_END
151151
152152
153INPUT_PORTS_START( espial )
153static INPUT_PORTS_START( espial )
154154   PORT_START   /* IN0 */
155155   PORT_DIPNAME( 0x01, 0x00, "Number of Buttons" )
156156   PORT_DIPSETTING(    0x01, "1" )
r1238r1239
212212INPUT_PORTS_END
213213
214214
215INPUT_PORTS_START( netwars )
215static INPUT_PORTS_START( netwars )
216216   PORT_START   /* IN0 */
217217   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) )   /* probably unused */
218218   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
src/mame/drivers/hyperspt.c
r1238r1239
190190
191191
192192
193INPUT_PORTS_START( hyperspt )
193static INPUT_PORTS_START( hyperspt )
194194   PORT_START_TAG("IN0")
195195   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
196196   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
293293   PORT_DIPSETTING(   0x00, "Difficult 4" )
294294INPUT_PORTS_END
295295
296INPUT_PORTS_START( roadf )
296static INPUT_PORTS_START( roadf )
297297   PORT_START_TAG("IN0")
298298   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
299299   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/tiamc1.c
r1238r1239
208208   AM_RANGE(0xd2, 0xd2) AM_READ(input_port_2_r)
209209ADDRESS_MAP_END
210210
211INPUT_PORTS_START( tiamc1 )
211static INPUT_PORTS_START( tiamc1 )
212212   PORT_START_TAG("IN0")
213213   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Player 0 JOYSTICK_RIGHT */
214214   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
src/mame/drivers/toaplan1.c
r1238r1239
397397   PORT_BIT( 0xfffe, IP_ACTIVE_HIGH, IPT_UNKNOWN )
398398
399399
400INPUT_PORTS_START( rallybik )
400static INPUT_PORTS_START( rallybik )
401401   TOAPLAN1_VBLANK_INPUT
402402
403403   TOAPLAN1_PLAYER_INPUT( 1, IPT_UNKNOWN, )
r1238r1239
454454
455455INPUT_PORTS_END
456456
457INPUT_PORTS_START( truxton )
457static INPUT_PORTS_START( truxton )
458458   TOAPLAN1_VBLANK_INPUT
459459
460460   TOAPLAN1_PLAYER_INPUT( 1, IPT_UNKNOWN, )
r1238r1239
537537   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN )
538538INPUT_PORTS_END
539539
540INPUT_PORTS_START( hellfire )
540static INPUT_PORTS_START( hellfire )
541541   TOAPLAN1_VBLANK_INPUT
542542
543543   TOAPLAN1_PLAYER_INPUT( 1, IPT_UNKNOWN, )
r1238r1239
606606   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN )
607607INPUT_PORTS_END
608608
609INPUT_PORTS_START( hellfir1 )
609static INPUT_PORTS_START( hellfir1 )
610610   TOAPLAN1_VBLANK_INPUT
611611
612612   TOAPLAN1_PLAYER_INPUT( 1, IPT_UNKNOWN, )
r1238r1239
675675   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN )
676676INPUT_PORTS_END
677677
678INPUT_PORTS_START( zerowing )
678static INPUT_PORTS_START( zerowing )
679679   TOAPLAN1_VBLANK_INPUT
680680
681681   TOAPLAN1_PLAYER_INPUT( 1, IPT_UNKNOWN, )
r1238r1239
744744   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN )
745745INPUT_PORTS_END
746746
747INPUT_PORTS_START( demonwld )
747static INPUT_PORTS_START( demonwld )
748748   TOAPLAN1_VBLANK_INPUT
749749
750750   TOAPLAN1_PLAYER_INPUT( 1, IPT_BUTTON3, )
r1238r1239
814814   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN )
815815INPUT_PORTS_END
816816
817INPUT_PORTS_START( demonwl1 )
817static INPUT_PORTS_START( demonwl1 )
818818   TOAPLAN1_VBLANK_INPUT
819819
820820   TOAPLAN1_PLAYER_INPUT( 1, IPT_BUTTON3, )
r1238r1239
883883   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN )
884884INPUT_PORTS_END
885885
886INPUT_PORTS_START( samesame )
886static INPUT_PORTS_START( samesame )
887887   TOAPLAN1_VBLANK_INPUT
888888
889889   TOAPLAN1_PLAYER_INPUT( 1, IPT_UNKNOWN, )
r1238r1239
967967   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN )
968968INPUT_PORTS_END
969969
970INPUT_PORTS_START( samesam2 )
970static INPUT_PORTS_START( samesam2 )
971971   TOAPLAN1_VBLANK_INPUT
972972
973973   TOAPLAN1_PLAYER_INPUT( 1, IPT_UNKNOWN, )
r1238r1239
10581058   PORT_BIT( 0xf2, IP_ACTIVE_HIGH, IPT_UNKNOWN )   /* Mask bit 2 aswell */
10591059INPUT_PORTS_END
10601060
1061INPUT_PORTS_START( fireshrk )
1061static INPUT_PORTS_START( fireshrk )
10621062   TOAPLAN1_VBLANK_INPUT
10631063
10641064   TOAPLAN1_PLAYER_INPUT( 1, IPT_UNKNOWN, )
r1238r1239
11261126   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN )
11271127INPUT_PORTS_END
11281128
1129INPUT_PORTS_START( outzone )
1129static INPUT_PORTS_START( outzone )
11301130   TOAPLAN1_VBLANK_INPUT
11311131
11321132   TOAPLAN1_PLAYER_INPUT( 1, IPT_BUTTON3, )
r1238r1239
12011201   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN )
12021202INPUT_PORTS_END
12031203
1204INPUT_PORTS_START( outzoneb )
1204static INPUT_PORTS_START( outzoneb )
12051205   TOAPLAN1_VBLANK_INPUT
12061206
12071207   TOAPLAN1_PLAYER_INPUT( 1, IPT_BUTTON3, )
r1238r1239
12711271   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN )
12721272INPUT_PORTS_END
12731273
1274INPUT_PORTS_START( outzonec )
1274static INPUT_PORTS_START( outzonec )
12751275   TOAPLAN1_VBLANK_INPUT
12761276
12771277   TOAPLAN1_PLAYER_INPUT( 1, IPT_BUTTON3, )
r1238r1239
13461346   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN )
13471347INPUT_PORTS_END
13481348
1349INPUT_PORTS_START( vimana )
1349static INPUT_PORTS_START( vimana )
13501350   TOAPLAN1_VBLANK_INPUT
13511351
13521352   TOAPLAN1_PLAYER_INPUT( 1, IPT_BUTTON3, )
r1238r1239
14211421   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN )
14221422INPUT_PORTS_END
14231423
1424INPUT_PORTS_START( vimanan )
1424static INPUT_PORTS_START( vimanan )
14251425   TOAPLAN1_VBLANK_INPUT
14261426
14271427   TOAPLAN1_PLAYER_INPUT( 1, IPT_BUTTON3, )
src/mame/drivers/segag80r.c
r1238r1239
388388 *
389389 *************************************/
390390
391INPUT_PORTS_START( g80r_generic )
391static INPUT_PORTS_START( g80r_generic )
392392   PORT_START_TAG("D7D6")
393393   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(3)   /* P1.5 */
394394   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )               /* n/c */
r1238r1239
493493 *
494494 *************************************/
495495
496INPUT_PORTS_START( astrob )
496static INPUT_PORTS_START( astrob )
497497   PORT_INCLUDE(g80r_generic)
498498
499499   PORT_MODIFY("D5D4")
r1238r1239
523523INPUT_PORTS_END
524524
525525
526INPUT_PORTS_START( astrob2 )
526static INPUT_PORTS_START( astrob2 )
527527   PORT_INCLUDE(astrob)
528528
529529   PORT_MODIFY("D3D2")
r1238r1239
535535INPUT_PORTS_END
536536
537537
538INPUT_PORTS_START( astrob1 )
538static INPUT_PORTS_START( astrob1 )
539539   PORT_INCLUDE(astrob)
540540
541541   PORT_MODIFY("D3D2")
r1238r1239
545545INPUT_PORTS_END
546546
547547
548INPUT_PORTS_START( 005 )
548static INPUT_PORTS_START( 005 )
549549   PORT_INCLUDE(g80r_generic)
550550
551551   PORT_MODIFY("D7D6")
r1238r1239
581581INPUT_PORTS_END
582582
583583
584INPUT_PORTS_START( spaceod )
584static INPUT_PORTS_START( spaceod )
585585   PORT_INCLUDE(g80r_generic)
586586
587587   PORT_MODIFY("D7D6")
r1238r1239
631631INPUT_PORTS_END
632632
633633
634INPUT_PORTS_START( monsterb )
634static INPUT_PORTS_START( monsterb )
635635   PORT_INCLUDE(g80r_generic)
636636
637637   PORT_MODIFY("D7D6")
r1238r1239
675675INPUT_PORTS_END
676676
677677
678INPUT_PORTS_START( pignewt )
678static INPUT_PORTS_START( pignewt )
679679   PORT_INCLUDE(g80r_generic)
680680
681681   PORT_MODIFY("D7D6")
r1238r1239
709709INPUT_PORTS_END
710710
711711
712INPUT_PORTS_START( pignewta )
712static INPUT_PORTS_START( pignewta )
713713   PORT_INCLUDE(pignewt)
714714
715715   PORT_MODIFY("D7D6")
r1238r1239
731731INPUT_PORTS_END
732732
733733
734INPUT_PORTS_START( sindbadm )
734static INPUT_PORTS_START( sindbadm )
735735   PORT_INCLUDE(g80r_generic)
736736
737737   PORT_MODIFY("D7D6")
src/mame/drivers/magic10.c
r1238r1239
129129
130130
131131
132INPUT_PORTS_START( magic10 )
132static INPUT_PORTS_START( magic10 )
133133   PORT_START
134134   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 )
135135   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
194194   PORT_DIPSETTING(      0xc000, "Lots Dispenser" )
195195INPUT_PORTS_END
196196
197INPUT_PORTS_START( magic102 )
197static INPUT_PORTS_START( magic102 )
198198   PORT_START
199199   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
200200   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_NAME("Note A")
src/mame/drivers/hnayayoi.c
r1238r1239
221221
222222
223223
224INPUT_PORTS_START( hnayayoi )
224static INPUT_PORTS_START( hnayayoi )
225225   PORT_START   /* DSW1 */
226226   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
227227   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
350350INPUT_PORTS_END
351351
352352
353INPUT_PORTS_START( hnfubuki )
353static INPUT_PORTS_START( hnfubuki )
354354   PORT_START   /* DSW1 */
355355   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
356356   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
481481INPUT_PORTS_END
482482
483483
484INPUT_PORTS_START( untoucha )
484static INPUT_PORTS_START( untoucha )
485485   PORT_START   /* DSW1 */
486486   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
487487   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
src/mame/drivers/shanghai.c
r1238r1239
807807   AM_RANGE(0x80000, 0xfffff) AM_ROM
808808ADDRESS_MAP_END
809809
810INPUT_PORTS_START( kothello )
810static INPUT_PORTS_START( kothello )
811811   SEIBU_COIN_INPUTS
812812INPUT_PORTS_END
813813
814814
815INPUT_PORTS_START( shanghai )
815static INPUT_PORTS_START( shanghai )
816816   PORT_START   /* IN0 */
817817   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
818818   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
891891   PORT_DIPSETTING(    0x00, "120" )
892892INPUT_PORTS_END
893893
894INPUT_PORTS_START( shangha2 )
894static INPUT_PORTS_START( shangha2 )
895895   PORT_START   /* IN0 */
896896   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
897897   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/tmnt.c
r1238r1239
15091509   PORT_BIT(  0x4000, IP_ACTIVE_LOW, button3            ) PORT_PLAYER(player) \
15101510   PORT_BIT(  0x8000, IP_ACTIVE_LOW, start )
15111511
1512INPUT_PORTS_START( cuebrckj )
1512static INPUT_PORTS_START( cuebrckj )
15131513   PORT_START      /* COINS */
15141514   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
15151515   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
15941594   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED )
15951595INPUT_PORTS_END
15961596
1597INPUT_PORTS_START( mia )
1597static INPUT_PORTS_START( mia )
15981598   PORT_START      /* COINS */
15991599   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
16001600   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
16791679   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED )
16801680INPUT_PORTS_END
16811681
1682INPUT_PORTS_START( tmnt )
1682static INPUT_PORTS_START( tmnt )
16831683   PORT_START      /* COINS */
16841684   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
16851685   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
17591759   PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )
17601760INPUT_PORTS_END
17611761
1762INPUT_PORTS_START( tmnt2p )
1762static INPUT_PORTS_START( tmnt2p )
17631763   PORT_START      /* COINS */
17641764   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
17651765   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
18561856   PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )
18571857INPUT_PORTS_END
18581858
1859INPUT_PORTS_START( punkshot )
1859static INPUT_PORTS_START( punkshot )
18601860   PORT_START   /* DSW1/DSW2 */
18611861   PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coinage ) )
18621862   PORT_DIPSETTING(      0x0000, DEF_STR( 5C_1C ) )
r1238r1239
19421942   KONAMI_PLAYERS_INPUT_MSB( 4, IPT_UNKNOWN, IPT_UNKNOWN )
19431943INPUT_PORTS_END
19441944
1945INPUT_PORTS_START( punksht2 )
1945static INPUT_PORTS_START( punksht2 )
19461946   PORT_START   /* DSW1/DSW2 */
19471947   PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coinage ) )
19481948   PORT_DIPSETTING(      0x0000, DEF_STR( 5C_1C ) )
r1238r1239
20242024   KONAMI_PLAYERS_INPUT_MSB( 2, IPT_UNKNOWN, IPT_UNKNOWN )
20252025INPUT_PORTS_END
20262026
2027INPUT_PORTS_START( lgtnfght )
2027static INPUT_PORTS_START( lgtnfght )
20282028   PORT_START
20292029   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
20302030   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
21142114   PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )
21152115INPUT_PORTS_END
21162116
2117INPUT_PORTS_START( detatwin )
2117static INPUT_PORTS_START( detatwin )
21182118   PORT_START   /* IN0 */
21192119   KONAMI_PLAYERS_INPUT_LSB( 1, IPT_UNKNOWN, IPT_UNKNOWN )
21202120
r1238r1239
21372137   PORT_BIT( 0xfc, IP_ACTIVE_LOW, IPT_UNKNOWN )
21382138INPUT_PORTS_END
21392139
2140INPUT_PORTS_START( glfgreat )
2140static INPUT_PORTS_START( glfgreat )
21412141   PORT_START   /* IN0 */
21422142   KONAMI_PLAYERS_INPUT_LSB( 1, IPT_BUTTON3, IPT_BUTTON4 ) PORT_PLAYER(1)
21432143   KONAMI_PLAYERS_INPUT_MSB( 2, IPT_BUTTON3, IPT_BUTTON4 ) PORT_PLAYER(2)
r1238r1239
22312231   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
22322232INPUT_PORTS_END
22332233
2234INPUT_PORTS_START( ssriders )
2234static INPUT_PORTS_START( ssriders )
22352235   PORT_START   /* IN0 */
22362236   KONAMI_PLAYERS_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1 )
22372237
r1238r1239
22582258   PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2)
22592259INPUT_PORTS_END
22602260
2261INPUT_PORTS_START( ssridr4p )
2261static INPUT_PORTS_START( ssridr4p )
22622262   PORT_START   /* IN0 */
22632263   KONAMI_PLAYERS_INPUT_LSB( 1, IPT_UNKNOWN, IPT_UNKNOWN )
22642264
r1238r1239
22932293
22942294/* Same as 'ssridr4p', but additional Start button for each player.
22952295   COIN3, COIN4, SERVICE3 and SERVICE4 only have an effect in the "test mode". */
2296INPUT_PORTS_START( ssrid4ps )
2296static INPUT_PORTS_START( ssrid4ps )
22972297   PORT_START   /* IN0 */
22982298   KONAMI_PLAYERS_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1 )
22992299
r1238r1239
23272327INPUT_PORTS_END
23282328
23292329/* Version for the bootleg, which has the service switch a little different */
2330INPUT_PORTS_START( ssridbl )
2330static INPUT_PORTS_START( ssridbl )
23312331   PORT_START   /* IN0 */
23322332   KONAMI_PLAYERS_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1 )
23332333
r1238r1239
23602360   KONAMI_PLAYERS_INPUT_LSB( 4, IPT_UNKNOWN, IPT_START4 )
23612361INPUT_PORTS_END
23622362
2363INPUT_PORTS_START( qgakumon )
2363static INPUT_PORTS_START( qgakumon )
23642364   PORT_START   /* IN0 */
23652365   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)   // Joystick control : Left
23662366   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1)   // Joystick control : Right
r1238r1239
24012401   PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2)
24022402INPUT_PORTS_END
24032403
2404INPUT_PORTS_START( thndrx2 )
2404static INPUT_PORTS_START( thndrx2 )
24052405   PORT_START
24062406   KONAMI_PLAYERS_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1 )
24072407   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_COIN1 )
r1238r1239
24252425   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
24262426INPUT_PORTS_END
24272427
2428INPUT_PORTS_START( prmrsocr )
2428static INPUT_PORTS_START( prmrsocr )
24292429   PORT_START
24302430   KONAMI_PLAYERS_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1 )
24312431   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_SERVICE1 )
src/mame/drivers/jpmimpct.c
r1238r1239
592592   PORT_START_TAG("TOUCH_Y") \
593593   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(45) PORT_KEYDELTA(15) \
594594
595INPUT_PORTS_START( hngmnjpm )
595static INPUT_PORTS_START( hngmnjpm )
596596   IMPACT_STANDARD
597597
598598   PORT_START_TAG("COINS")
r1238r1239
612612   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME( "'1'" )
613613INPUT_PORTS_END
614614
615INPUT_PORTS_START( cluedo )
615static INPUT_PORTS_START( cluedo )
616616   IMPACT_STANDARD
617617
618618   PORT_START_TAG("COINS")
r1238r1239
631631   IMPACT_TOUCHSCREEN
632632INPUT_PORTS_END
633633
634INPUT_PORTS_START( trivialp )
634static INPUT_PORTS_START( trivialp )
635635   IMPACT_STANDARD
636636
637637   PORT_START_TAG("COINS")
r1238r1239
651651   IMPACT_TOUCHSCREEN
652652INPUT_PORTS_END
653653
654INPUT_PORTS_START( scrabble )
654static INPUT_PORTS_START( scrabble )
655655   IMPACT_STANDARD
656656
657657   PORT_START_TAG("COINS")
src/mame/drivers/namcos12.c
r1238r1239
14021402   MDRV_SOUND_ROUTE(3, "left", 1.00)
14031403MACHINE_DRIVER_END
14041404
1405INPUT_PORTS_START( namcos12 )
1405static INPUT_PORTS_START( namcos12 )
14061406   PORT_START_TAG("IN0")
14071407   PORT_DIPNAME( 0x0080, 0x0080, DEF_STR(Service_Mode) )
14081408   PORT_DIPSETTING(      0x0080, DEF_STR( Off ) )
r1238r1239
14491449   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_SERVICE1 )
14501450INPUT_PORTS_END
14511451
1452INPUT_PORTS_START( ptblank2 )
1452static INPUT_PORTS_START( ptblank2 )
14531453   PORT_INCLUDE( namcos12 )
14541454
14551455   PORT_MODIFY("IN1")
r1238r1239
14711471   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)
14721472INPUT_PORTS_END
14731473
1474INPUT_PORTS_START( ghlpanic )
1474static INPUT_PORTS_START( ghlpanic )
14751475   PORT_INCLUDE( namcos12 )
14761476
14771477   PORT_MODIFY("IN1")
r1238r1239
14931493   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)
14941494INPUT_PORTS_END
14951495
1496INPUT_PORTS_START( golgo13 )
1496static INPUT_PORTS_START( golgo13 )
14971497   PORT_INCLUDE( namcos12 )
14981498
14991499   PORT_MODIFY("IN1")
src/mame/drivers/raiden2.c
r1238r1239
928928
929929/* INPUT PORTS */
930930
931INPUT_PORTS_START( raiden2 )
931static INPUT_PORTS_START( raiden2 )
932932   PORT_START   /* IN0 */
933933   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
934934   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
10061006   PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )
10071007INPUT_PORTS_END
10081008
1009INPUT_PORTS_START( raidendx )
1009static INPUT_PORTS_START( raidendx )
10101010   PORT_START   /* IN0 */
10111011   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
10121012   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
10821082   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
10831083INPUT_PORTS_END
10841084
1085INPUT_PORTS_START( raiden2n ) /* For "Newer" (V33) versions of Raiden 2 & Raiden DX */
1085static INPUT_PORTS_START( raiden2n ) /* For "Newer" (V33) versions of Raiden 2 & Raiden DX */
10861086   PORT_START   /* IN0 */
10871087   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
10881088   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/zodiack.c
r1238r1239
102102
103103
104104
105INPUT_PORTS_START( zodiack )
105static INPUT_PORTS_START( zodiack )
106106   PORT_START_TAG("DSW0")      /* never read in this game */
107107   PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED )
108108
r1238r1239
152152   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
153153INPUT_PORTS_END
154154
155INPUT_PORTS_START( dogfight )
155static INPUT_PORTS_START( dogfight )
156156   PORT_START_TAG("DSW0")
157157   PORT_DIPNAME( 0x07, 0x00, DEF_STR( Coin_B ) )
158158   PORT_DIPSETTING(    0x05, DEF_STR( 2C_1C ) )
r1238r1239
225225   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
226226INPUT_PORTS_END
227227
228INPUT_PORTS_START( moguchan )
228static INPUT_PORTS_START( moguchan )
229229   PORT_START_TAG("DSW0")
230230   PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNKNOWN )
231231
r1238r1239
275275   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
276276INPUT_PORTS_END
277277
278INPUT_PORTS_START( percuss )
278static INPUT_PORTS_START( percuss )
279279   PORT_START_TAG("DSW0")
280280   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) )
281281   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
r1238r1239
344344   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
345345INPUT_PORTS_END
346346
347INPUT_PORTS_START( bounty )
347static INPUT_PORTS_START( bounty )
348348   PORT_START_TAG("DSW0")
349349   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) )
350350   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
src/mame/drivers/scramble.c
r1238r1239
734734    AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ(input_port_3_r)
735735ADDRESS_MAP_END
736736
737INPUT_PORTS_START( scramble )
737static INPUT_PORTS_START( scramble )
738738   PORT_START_TAG("IN0")
739739   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
740740   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
774774   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SPECIAL )   /* protection bit */
775775INPUT_PORTS_END
776776
777INPUT_PORTS_START( explorer )
777static INPUT_PORTS_START( explorer )
778778   PORT_START_TAG("IN0")
779779   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY
780780   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 )
r1238r1239
865865   PORT_SERVICE( 0x80, IP_ACTIVE_HIGH )
866866INPUT_PORTS_END
867867
868INPUT_PORTS_START( strfbomb )
868static INPUT_PORTS_START( strfbomb )
869869   PORT_START_TAG("IN0")
870870   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
871871   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
905905   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SPECIAL )   /* protection bit */
906906INPUT_PORTS_END
907907
908INPUT_PORTS_START( atlantis )
908static INPUT_PORTS_START( atlantis )
909909   PORT_START_TAG("IN0")
910910   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
911911   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
943943   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
944944INPUT_PORTS_END
945945
946INPUT_PORTS_START( theend )
946static INPUT_PORTS_START( theend )
947947   PORT_START_TAG("IN0")
948948   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
949949   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
980980   PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )      /* output bits */
981981INPUT_PORTS_END
982982
983INPUT_PORTS_START( froggers )
983static INPUT_PORTS_START( froggers )
984984   PORT_START_TAG("IN0")
985985   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
986986   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* 1P shoot2 - unused */
r1238r1239
10201020   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
10211021INPUT_PORTS_END
10221022
1023INPUT_PORTS_START( amidars )
1023static INPUT_PORTS_START( amidars )
10241024   PORT_START_TAG("IN0")
10251025   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
10261026   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* 1P shoot2 - unused */
r1238r1239
10671067INPUT_PORTS_END
10681068
10691069
1070INPUT_PORTS_START( turpins )
1070static INPUT_PORTS_START( turpins )
10711071   PORT_START_TAG("IN0")
10721072   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
10731073   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* probably space for button 2 */
r1238r1239
11111111   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
11121112INPUT_PORTS_END
11131113
1114INPUT_PORTS_START( triplep )
1114static INPUT_PORTS_START( triplep )
11151115   PORT_START_TAG("IN0")
11161116   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
11171117   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
11531153   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
11541154INPUT_PORTS_END
11551155
1156INPUT_PORTS_START( ckongs )
1156static INPUT_PORTS_START( ckongs )
11571157   PORT_START_TAG("IN0")
11581158   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
11591159   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* probably unused */
r1238r1239
12011201   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* probably unused */
12021202INPUT_PORTS_END
12031203
1204INPUT_PORTS_START( mars )
1204static INPUT_PORTS_START( mars )
12051205   PORT_START_TAG("IN0")
12061206   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_8WAY PORT_PLAYER(2)
12071207   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 )
r1238r1239
12491249   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_8WAY PORT_PLAYER(2)
12501250INPUT_PORTS_END
12511251
1252INPUT_PORTS_START( devilfsh )
1252static INPUT_PORTS_START( devilfsh )
12531253   PORT_START_TAG("IN0")
12541254   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
12551255   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
12911291   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
12921292INPUT_PORTS_END
12931293
1294INPUT_PORTS_START( newsin7 )
1294static INPUT_PORTS_START( newsin7 )
12951295   PORT_START_TAG("IN0")
12961296   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
12971297   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
13321332   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
13331333INPUT_PORTS_END
13341334
1335INPUT_PORTS_START( mrkougar )
1335static INPUT_PORTS_START( mrkougar )
13361336   PORT_START_TAG("IN0")
13371337   PORT_BIT( 0x03, IP_ACTIVE_LOW, IPT_UNKNOWN )
13381338   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 )
r1238r1239
13701370   PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNKNOWN )
13711371INPUT_PORTS_END
13721372
1373INPUT_PORTS_START( hotshock )
1373static INPUT_PORTS_START( hotshock )
13741374   PORT_START_TAG("IN0")
13751375   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY
13761376   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
14501450   PORT_DIPSETTING(    0x80, DEF_STR( Cocktail ) )
14511451INPUT_PORTS_END
14521452
1453INPUT_PORTS_START( hunchbks )
1453static INPUT_PORTS_START( hunchbks )
14541454   PORT_START_TAG("IN0")
14551455   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
14561456   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
14941494   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK )
14951495INPUT_PORTS_END
14961496
1497INPUT_PORTS_START( hncholms )
1497static INPUT_PORTS_START( hncholms )
14981498   PORT_START_TAG("IN0")
14991499   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
15001500   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
15381538   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK )
15391539INPUT_PORTS_END
15401540
1541INPUT_PORTS_START( cavelon )
1541static INPUT_PORTS_START( cavelon )
15421542   PORT_START_TAG("IN0")
15431543   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
15441544   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
15791579   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* protection check? */
15801580INPUT_PORTS_END
15811581
1582INPUT_PORTS_START( sfx )
1582static INPUT_PORTS_START( sfx )
15831583   PORT_START_TAG("IN0")
15841584   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
15851585   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)   // "Fire" left
r1238r1239
16201620INPUT_PORTS_END
16211621
16221622/* Same as 'mimonkey' (scobra.c driver) */
1623INPUT_PORTS_START( mimonscr )
1623static INPUT_PORTS_START( mimonscr )
16241624   PORT_START_TAG("IN0")
16251625   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
16261626   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
16641664   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
16651665INPUT_PORTS_END
16661666
1667INPUT_PORTS_START( scorpion )
1667static INPUT_PORTS_START( scorpion )
16681668   PORT_START_TAG("IN0")
16691669   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
16701670   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
17081708   PORT_DIPSETTING(    0x00, DEF_STR( Very_Hard ) )
17091709INPUT_PORTS_END
17101710
1711INPUT_PORTS_START( ad2083 )
1711static INPUT_PORTS_START( ad2083 )
17121712   PORT_START
17131713   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP )
17141714   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN )
src/mame/drivers/mogura.c
r1238r1239
136136ADDRESS_MAP_END
137137
138138
139INPUT_PORTS_START( mogura )
139static INPUT_PORTS_START( mogura )
140140   PORT_START_TAG("IN0")
141141   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
142142   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/mole.c
r1238r1239
122122ADDRESS_MAP_END
123123
124124
125INPUT_PORTS_START( mole )
125static INPUT_PORTS_START( mole )
126126   PORT_START // 0x8d00
127127   PORT_DIPNAME( 0x01, 0x00, "Round Points" )
128128   PORT_DIPSETTING(   0x00, DEF_STR( Off ) )
src/mame/drivers/system18.c
r1238r1239
12131213
12141214
12151215
1216INPUT_PORTS_START( astormbl )
1216static INPUT_PORTS_START( astormbl )
12171217   PORT_START /* player 1 */
12181218   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
12191219   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
12781278   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3)
12791279INPUT_PORTS_END
12801280
1281INPUT_PORTS_START( mwalkbl )
1281static INPUT_PORTS_START( mwalkbl )
12821282   PORT_START /* player 1 */
12831283   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
12841284   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
src/mame/drivers/taitojc.c
r1238r1239
10781078
10791079/*****************************************************************************/
10801080
1081INPUT_PORTS_START( taitojc )
1081static INPUT_PORTS_START( taitojc )
10821082   PORT_START
10831083      PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_COIN4)
10841084      PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_COIN3)
r1238r1239
11121112
11131113INPUT_PORTS_END
11141114
1115INPUT_PORTS_START( dendeg )
1115static INPUT_PORTS_START( dendeg )
11161116   PORT_START
11171117      PORT_BIT(0xe0, IP_ACTIVE_LOW, IPT_UNUSED)
11181118      PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_COIN1)
r1238r1239
11431143
11441144INPUT_PORTS_END
11451145
1146INPUT_PORTS_START( landgear )
1146static INPUT_PORTS_START( landgear )
11471147   PORT_START
11481148      PORT_BIT(0xe0, IP_ACTIVE_LOW, IPT_UNUSED)
11491149      PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_COIN1)
r1238r1239
11731173
11741174INPUT_PORTS_END
11751175
1176INPUT_PORTS_START( sidebs )
1176static INPUT_PORTS_START( sidebs )
11771177   PORT_START
11781178      PORT_BIT(0xe0, IP_ACTIVE_LOW, IPT_UNUSED)
11791179      PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_COIN1)
src/mame/drivers/missb2.c
r1238r1239
202202
203203/* Input Ports */
204204
205INPUT_PORTS_START( missb2 )
205static INPUT_PORTS_START( missb2 )
206206   PORT_START_TAG("DSW0")
207207   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Language ) )
208208   PORT_DIPSETTING(    0x00, DEF_STR( English ) )
src/mame/drivers/pitnrun.c
r1238r1239
202202   AM_RANGE(0x0080, 0x07ff) AM_WRITE(MWA8_ROM)
203203ADDRESS_MAP_END
204204
205INPUT_PORTS_START( pitnrun )
205static INPUT_PORTS_START( pitnrun )
206206   PORT_START_TAG("IN0")
207207   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1  )
208208   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SERVICE1 )
src/mame/drivers/ddealer.c
r1238r1239
154154   AM_RANGE(0x0f0000, 0x0fffff) AM_RAM AM_BASE(&shared_ram)// at least fe000-ffff shared with mcu
155155ADDRESS_MAP_END
156156
157INPUT_PORTS_START( ddealer )
157static INPUT_PORTS_START( ddealer )
158158INPUT_PORTS_END
159159
160160static const gfx_layout charlayout =
src/mame/drivers/liberatr.c
r1238r1239
273273 *
274274 *************************************/
275275
276INPUT_PORTS_START( liberatr )
276static INPUT_PORTS_START( liberatr )
277277   PORT_START         /* IN0 - $5000 */
278278   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN3 )
279279   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 )
src/mame/drivers/tehkanwc.c
r1238r1239
431431
432432
433433
434INPUT_PORTS_START( tehkanwc )
434static INPUT_PORTS_START( tehkanwc )
435435   PORT_START /* DSW1 - Active LOW */
436436   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) )
437437   PORT_DIPSETTING (   0x01, DEF_STR( 2C_1C ) )
r1238r1239
549549INPUT_PORTS_END
550550
551551
552INPUT_PORTS_START( gridiron )
552static INPUT_PORTS_START( gridiron )
553553   PORT_START /* DSW1 - Active LOW */
554554   PORT_DIPNAME( 0x03, 0x03, "Start Credits (P1&P2)/Extra" )
555555   PORT_DIPSETTING (   0x01, "1&1/200%" )
r1238r1239
651651INPUT_PORTS_END
652652
653653
654INPUT_PORTS_START( teedoff )
654static INPUT_PORTS_START( teedoff )
655655   PORT_START /* DSW1 - Active LOW */
656656   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) )
657657   PORT_DIPSETTING (   0x02, DEF_STR( 2C_1C ) )
src/mame/drivers/bionicc.c
r1238r1239
193193
194194
195195
196INPUT_PORTS_START( bionicc )
196static INPUT_PORTS_START( bionicc )
197197   PORT_START
198198   PORT_BIT( 0x0fff, IP_ACTIVE_LOW, IPT_UNKNOWN )
199199   PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/citycon.c
r1238r1239
6666
6767
6868
69INPUT_PORTS_START( citycon )
69static INPUT_PORTS_START( citycon )
7070   PORT_START_TAG("IN0")
7171   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
7272   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/suprridr.c
r1238r1239
219219 *
220220 *************************************/
221221
222INPUT_PORTS_START( suprridr )
222static INPUT_PORTS_START( suprridr )
223223   PORT_START      /* IN0 */
224224   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY
225225   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY
src/mame/drivers/spy.c
r1238r1239
396396
397397
398398
399INPUT_PORTS_START( spy )
399static INPUT_PORTS_START( spy )
400400   PORT_START
401401   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
402402   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/psikyo.c
r1238r1239
540540                        Samurai Aces / Sengoku Ace (Japan)
541541***************************************************************************/
542542
543INPUT_PORTS_START( samuraia )
543static INPUT_PORTS_START( samuraia )
544544
545545   PORT_START   // IN0 - c00000&1
546546   PSIKYO_PORT_PLAYER2
r1238r1239
659659
660660INPUT_PORTS_END
661661
662INPUT_PORTS_START( sngkace )
662static INPUT_PORTS_START( sngkace )
663663
664664   PORT_START   // IN0 - c00000&1
665665   PSIKYO_PORT_PLAYER2
r1238r1239
784784                                Battle K-Road
785785***************************************************************************/
786786
787INPUT_PORTS_START( btlkroad )
787static INPUT_PORTS_START( btlkroad )
788788
789789   PORT_START   // IN0 - c00000&1
790790   PSIKYO_PORT_PLAYER2
r1238r1239
911911                                Gun Bird
912912***************************************************************************/
913913
914INPUT_PORTS_START( gunbird )
914static INPUT_PORTS_START( gunbird )
915915
916916   PORT_START   // IN0 - c00000&1
917917   PSIKYO_PORT_PLAYER2
r1238r1239
10211021
10221022INPUT_PORTS_END
10231023
1024INPUT_PORTS_START( gunbirdj )
1024static INPUT_PORTS_START( gunbirdj )
10251025
10261026   PORT_START   // IN0 - c00000&1
10271027   PSIKYO_PORT_PLAYER2
r1238r1239
11141114                                Strikers 1945
11151115***************************************************************************/
11161116
1117INPUT_PORTS_START( s1945 )
1117static INPUT_PORTS_START( s1945 )
11181118
11191119   PORT_START   // IN0 - c00000&1
11201120   PSIKYO_PORT_PLAYER2
r1238r1239
12251225
12261226INPUT_PORTS_END
12271227
1228INPUT_PORTS_START( s1945a )
1228static INPUT_PORTS_START( s1945a )
12291229
12301230   PORT_START   // IN0 - c00000&1
12311231   PSIKYO_PORT_PLAYER2
r1238r1239
13201320
13211321INPUT_PORTS_END
13221322
1323INPUT_PORTS_START( s1945j )
1323static INPUT_PORTS_START( s1945j )
13241324
13251325   PORT_START   // IN0 - c00000&1
13261326   PSIKYO_PORT_PLAYER2
r1238r1239
14131413                                Tengai
14141414***************************************************************************/
14151415
1416INPUT_PORTS_START( tengai )
1416static INPUT_PORTS_START( tengai )
14171417
14181418   PORT_START   // IN0 - c00000&1
14191419   PSIKYO_PORT_PLAYER2
src/mame/drivers/dynadice.c
r1238r1239
9393   AM_RANGE(0x03, 0x03) AM_WRITE(sound_control_w)
9494ADDRESS_MAP_END
9595
96INPUT_PORTS_START( dynadice )
96static INPUT_PORTS_START( dynadice )
9797
9898   PORT_START
9999   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
src/mame/drivers/playmark.c
r1238r1239
395395
396396
397397
398INPUT_PORTS_START( bigtwin )
398static INPUT_PORTS_START( bigtwin )
399399   PORT_START_TAG("IN0")
400400   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
401401   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
494494   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
495495INPUT_PORTS_END
496496
497INPUT_PORTS_START( wbeachvl )
497static INPUT_PORTS_START( wbeachvl )
498498   PORT_START_TAG("IN0")
499499   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
500500   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
546546   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 )
547547INPUT_PORTS_END
548548
549INPUT_PORTS_START( excelsr )
549static INPUT_PORTS_START( excelsr )
550550   PORT_START_TAG("IN0")
551551   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
552552   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
640640   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
641641INPUT_PORTS_END
642642
643INPUT_PORTS_START( hotmind )
643static INPUT_PORTS_START( hotmind )
644644   PORT_START_TAG("IN0")
645645   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
646646   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
739739   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
740740INPUT_PORTS_END
741741
742INPUT_PORTS_START( hrdtimes )
742static INPUT_PORTS_START( hrdtimes )
743743   PORT_START_TAG("IN0")
744744   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
745745   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/dacholer.c
r1238r1239
100100ADDRESS_MAP_END
101101
102102
103INPUT_PORTS_START( dacholer )
103static INPUT_PORTS_START( dacholer )
104104   PORT_START
105105   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )
106106   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )
r1238r1239
188188   PORT_DIPSETTING(    0x80, DEF_STR( Cocktail ) )
189189INPUT_PORTS_END
190190
191INPUT_PORTS_START( kickboy )
191static INPUT_PORTS_START( kickboy )
192192   PORT_INCLUDE(dacholer)
193193
194194   PORT_MODIFY("DSWA")
src/mame/drivers/esd16.c
r1238r1239
315315
316316***************************************************************************/
317317
318INPUT_PORTS_START( multchmp )
318static INPUT_PORTS_START( multchmp )
319319   PORT_START_TAG("IN0")   // $600002.w
320320   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
321321   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
r1238r1239
394394INPUT_PORTS_END
395395
396396
397INPUT_PORTS_START( hedpanic )
397static INPUT_PORTS_START( hedpanic )
398398   PORT_START_TAG("IN0")   // $600002.w
399399   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
400400   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
src/mame/drivers/model3.c
r1238r1239
15141514   PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNUSED )
15151515
15161516
1517INPUT_PORTS_START( model3 )
1517static INPUT_PORTS_START( model3 )
15181518   MODEL3_SYSTEM_CONTROLS_1
15191519   MODEL3_SYSTEM_CONTROLS_2
15201520
r1238r1239
15351535   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )      /* Dip switches */
15361536INPUT_PORTS_END
15371537
1538INPUT_PORTS_START( lostwsga )
1538static INPUT_PORTS_START( lostwsga )
15391539   MODEL3_SYSTEM_CONTROLS_1
15401540   MODEL3_SYSTEM_CONTROLS_2
15411541
r1238r1239
15651565   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1)
15661566INPUT_PORTS_END
15671567
1568INPUT_PORTS_START( scud )
1568static INPUT_PORTS_START( scud )
15691569   MODEL3_SYSTEM_CONTROLS_1
15701570   MODEL3_SYSTEM_CONTROLS_2
15711571
r1238r1239
15951595   PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(30) PORT_KEYDELTA(10) PORT_PLAYER(1)
15961596INPUT_PORTS_END
15971597
1598INPUT_PORTS_START( bass )
1598static INPUT_PORTS_START( bass )
15991599   MODEL3_SYSTEM_CONTROLS_1
16001600   MODEL3_SYSTEM_CONTROLS_2
16011601
r1238r1239
16291629   PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_SENSITIVITY(30) PORT_KEYDELTA(10) PORT_PLAYER(1)
16301630INPUT_PORTS_END
16311631
1632INPUT_PORTS_START( harley )
1632static INPUT_PORTS_START( harley )
16331633   MODEL3_SYSTEM_CONTROLS_1
16341634   MODEL3_SYSTEM_CONTROLS_2
16351635
r1238r1239
16591659   PORT_BIT( 0xff, 0x00, IPT_PEDAL3 ) PORT_SENSITIVITY(30) PORT_KEYDELTA(10) PORT_PLAYER(1)
16601660INPUT_PORTS_END
16611661
1662INPUT_PORTS_START( daytona2 )
1662static INPUT_PORTS_START( daytona2 )
16631663   MODEL3_SYSTEM_CONTROLS_1
16641664   MODEL3_SYSTEM_CONTROLS_2
16651665
r1238r1239
16891689   PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(30) PORT_KEYDELTA(10) PORT_PLAYER(1)
16901690INPUT_PORTS_END
16911691
1692INPUT_PORTS_START( swtrilgy )
1692static INPUT_PORTS_START( swtrilgy )
16931693   MODEL3_SYSTEM_CONTROLS_1
16941694   MODEL3_SYSTEM_CONTROLS_2
16951695
r1238r1239
17121712
17131713INPUT_PORTS_END
17141714
1715INPUT_PORTS_START( eca )
1715static INPUT_PORTS_START( eca )
17161716   MODEL3_SYSTEM_CONTROLS_1
17171717   MODEL3_SYSTEM_CONTROLS_2
17181718
r1238r1239
17381738   PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(30) PORT_KEYDELTA(10) PORT_PLAYER(1)
17391739INPUT_PORTS_END
17401740
1741INPUT_PORTS_START( skichamp )
1741static INPUT_PORTS_START( skichamp )
17421742   PORT_START_TAG("IN0") \
17431743   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
17441744   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/pgm.c
r1238r1239
608608   AM_RANGE(0xc10000, 0xc1ffff) AM_READWRITE(z80_ram_r, z80_ram_w) /* Z80 Program */
609609ADDRESS_MAP_END
610610
611UINT16*olds_sharedprotram;
611static UINT16 *olds_sharedprotram;
612612
613613static ADDRESS_MAP_START( olds_mem, ADDRESS_SPACE_PROGRAM, 16)
614614   AM_RANGE(0x000000, 0x01ffff) AM_ROM   /* BIOS ROM */
r1238r1239
924924   PORT_DIPSETTING(      0x0000, DEF_STR( On ) ) // "incorrect version" error
925925INPUT_PORTS_END
926926
927INPUT_PORTS_START( sango )
927static INPUT_PORTS_START( sango )
928928   PORT_START   /* DSW */
929929   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1                       )
930930   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
r1238r1239
10141014   PORT_DIPSETTING(      0x0005, DEF_STR( World ) )
10151015INPUT_PORTS_END
10161016
1017INPUT_PORTS_START( olds )
1017static INPUT_PORTS_START( olds )
10181018   PORT_START   /* DSW */
10191019   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1                       )
10201020   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
r1238r1239
11051105   PORT_DIPSETTING(      0x0006, DEF_STR( World ) )
11061106INPUT_PORTS_END
11071107
1108INPUT_PORTS_START( killbld )
1108static INPUT_PORTS_START( killbld )
11091109   PORT_START   /* DSW */
11101110   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1                       )
11111111   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
r1238r1239
12021202   PORT_DIPSETTING(      0x0021, DEF_STR( World ) )
12031203INPUT_PORTS_END
12041204
1205INPUT_PORTS_START( photoy2k )
1205static INPUT_PORTS_START( photoy2k )
12061206   PORT_START   /* DSW */
12071207   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1                       )
12081208   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
r1238r1239
12921292   PORT_DIPSETTING(      0x0005, "Hong Kong" )
12931293INPUT_PORTS_END
12941294
1295INPUT_PORTS_START( ddp2 )
1295static INPUT_PORTS_START( ddp2 )
12961296   PORT_START   /* P1 */
12971297   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1                       )
12981298   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
r1238r1239
22152215}
22162216
22172217
2218UINT16 olds_bs,olds_cmd3;
2218static UINT16 olds_bs,olds_cmd3;
22192219
22202220
22212221//UINT16 olds_r16(UINT32 addr)
2222READ16_HANDLER( olds_r16 )
2222static READ16_HANDLER( olds_r16 )
22232223{
22242224//  int offset=addr&0xf;
22252225   UINT16 res ;
r1238r1239
22452245}
22462246
22472247//void olds_w16(UINT32 addr,UINT16 data)
2248WRITE16_HANDLER( olds_w16 )
2248static WRITE16_HANDLER( olds_w16 )
22492249{
22502250//  int offset=addr&0xf;
22512251
src/mame/drivers/iqblock.c
r1238r1239
170170ADDRESS_MAP_END
171171
172172
173INPUT_PORTS_START( iqblock )
173static INPUT_PORTS_START( iqblock )
174174   PORT_START
175175   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
176176   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 )
src/mame/drivers/ikki.c
r1238r1239
6363
6464/****************************************************************************/
6565
66INPUT_PORTS_START( ikki )
66static INPUT_PORTS_START( ikki )
6767   PORT_START  /* dsw1 */
6868   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives ) )
6969   PORT_DIPSETTING(    0x00, "3" )
src/mame/drivers/capbowl.c
r1238r1239
292292 *
293293 *************************************/
294294
295INPUT_PORTS_START( capbowl )
295static INPUT_PORTS_START( capbowl )
296296   PORT_START   /* IN0 */
297297   /* low 4 bits are for the trackball */
298298   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
src/mame/drivers/darius.c
r1238r1239
661661   PORT_BIT( 0x80, IP_ACTIVE_LOW,  IPT_UNKNOWN )
662662
663663
664INPUT_PORTS_START( darius )
664static INPUT_PORTS_START( darius )
665665   DARIUS_PLAYERS_INPUT( 1 )
666666
667667   DARIUS_PLAYERS_INPUT( 2 )
r1238r1239
699699   PORT_DIPSETTING(      0x8000, DEF_STR( Yes ) )
700700INPUT_PORTS_END
701701
702INPUT_PORTS_START( dariuse )
702static INPUT_PORTS_START( dariuse )
703703   DARIUS_PLAYERS_INPUT( 1 )
704704
705705   DARIUS_PLAYERS_INPUT( 2 )
r1238r1239
737737   PORT_DIPSETTING(      0x8000, DEF_STR( Yes ) )
738738INPUT_PORTS_END
739739
740INPUT_PORTS_START( dariusj )
740static INPUT_PORTS_START( dariusj )
741741   DARIUS_PLAYERS_INPUT( 1 )
742742
743743   DARIUS_PLAYERS_INPUT( 2 )
src/mame/drivers/ssingles.c
r1238r1239
137137   AM_RANGE(0xfe, 0xff) AM_WRITENOP
138138ADDRESS_MAP_END
139139
140INPUT_PORTS_START( ssingles )
140static INPUT_PORTS_START( ssingles )
141141PORT_START_TAG("IN0")
142142   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
143143   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) //must be LOW
src/mame/drivers/kinst.c
r1238r1239
427427 *
428428 *************************************/
429429
430INPUT_PORTS_START( kinst )
430static INPUT_PORTS_START( kinst )
431431   PORT_START
432432   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
433433   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
r1238r1239
531531INPUT_PORTS_END
532532
533533
534INPUT_PORTS_START( kinst2 )
534static INPUT_PORTS_START( kinst2 )
535535   PORT_START
536536   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
537537   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
src/mame/drivers/cbasebal.c
r1238r1239
169169ADDRESS_MAP_END
170170
171171
172INPUT_PORTS_START( cbasebal )
172static INPUT_PORTS_START( cbasebal )
173173   PORT_START
174174   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
175175   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON3 )
src/mame/drivers/beathead.c
r1238r1239
377377 *
378378 *************************************/
379379
380INPUT_PORTS_START( beathead )
380static INPUT_PORTS_START( beathead )
381381   PORT_START
382382   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
383383   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
src/mame/drivers/st0016.c
r1238r1239
244244 *
245245 *************************************/
246246
247INPUT_PORTS_START( renju )
247static INPUT_PORTS_START( renju )
248248   PORT_INCLUDE( st0016 )
249249
250250   PORT_MODIFY("IN2")
r1238r1239
279279   PORT_DIPSETTING(      0x03, DEF_STR( Normal ) )
280280INPUT_PORTS_END
281281
282INPUT_PORTS_START( koikois )
282static INPUT_PORTS_START( koikois )
283283   PORT_INCLUDE( st0016 )
284284
285285
r1238r1239
318318   PORT_DIPSETTING(      0x03, DEF_STR( Normal ) )
319319INPUT_PORTS_END
320320
321INPUT_PORTS_START( nratechu )
321static INPUT_PORTS_START( nratechu )
322322   PORT_INCLUDE( st0016 )
323323
324324   PORT_MODIFY("DSW1")   /* Dip switch A  */
r1238r1239
353353   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
354354INPUT_PORTS_END
355355
356INPUT_PORTS_START( mayjisn2 )
356static INPUT_PORTS_START( mayjisn2 )
357357   PORT_INCLUDE( st0016 )
358358
359359   PORT_MODIFY("DSW1")   /* Dip switch A  */
src/mame/drivers/cchasm.c
r1238r1239
100100 *
101101 *************************************/
102102
103INPUT_PORTS_START( cchasm )
103static INPUT_PORTS_START( cchasm )
104104   PORT_START /* DSW */
105105   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Lives ) )
106106   PORT_DIPSETTING(    0x01, "3" )
src/mame/drivers/sbasketb.c
r1238r1239
100100
101101
102102
103INPUT_PORTS_START( sbasketb )
103static INPUT_PORTS_START( sbasketb )
104104   PORT_START   /* IN0 */
105105   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
106106   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/funkyjet.c
r1238r1239
154154
155155/******************************************************************************/
156156
157INPUT_PORTS_START( funkyjet )
157static INPUT_PORTS_START( funkyjet )
158158   PORT_START   /* Player 1 controls */
159159   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
160160   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
232232   PORT_DIPSETTING(    0x01, DEF_STR( On ) )
233233INPUT_PORTS_END
234234
235INPUT_PORTS_START( funkyjej )
235static INPUT_PORTS_START( funkyjej )
236236   PORT_INCLUDE(funkyjet)
237237
238238   PORT_MODIFY("DSWB")
r1238r1239
242242   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
243243INPUT_PORTS_END
244244
245INPUT_PORTS_START( sotsugyo )
245static INPUT_PORTS_START( sotsugyo )
246246   PORT_START   /* Player 1 controls */
247247   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
248248   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/skyarmy.c
r1238r1239
178178        AM_RANGE(0xa007, 0xa007) AM_WRITE(MWA8_NOP)
179179ADDRESS_MAP_END
180180
181INPUT_PORTS_START( skyarmy )
181static INPUT_PORTS_START( skyarmy )
182182        PORT_START
183183        PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) )
184184   PORT_DIPSETTING(    0x00, "2" )
src/mame/drivers/ksayakyu.c
r1238r1239
134134   AM_RANGE(0xa010, 0xa010) AM_WRITE(MWA8_NOP)
135135ADDRESS_MAP_END
136136
137INPUT_PORTS_START( ksayakyu )
137static INPUT_PORTS_START( ksayakyu )
138138   PORT_START
139139     PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT )
140140     PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT  )
src/mame/drivers/qix.c
r1238r1239
366366   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_TILT )
367367
368368
369INPUT_PORTS_START( qix )
369static INPUT_PORTS_START( qix )
370370   PORT_START   /* PIA 0 Port A (PLAYER 1) */
371371    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
372372    PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY
r1238r1239
397397INPUT_PORTS_END
398398
399399
400INPUT_PORTS_START( sdungeon )
400static INPUT_PORTS_START( sdungeon )
401401   PORT_START   /* PIA 0 Port A (PLAYER 1) */
402402    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_8WAY
403403    PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT ) PORT_8WAY
r1238r1239
431431INPUT_PORTS_END
432432
433433
434INPUT_PORTS_START( elecyoyo )
434static INPUT_PORTS_START( elecyoyo )
435435   PORT_START   /* PIA 0 Port A (PLAYER 1) */
436436    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
437437    PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY
r1238r1239
460460INPUT_PORTS_END
461461
462462
463INPUT_PORTS_START( kram )
463static INPUT_PORTS_START( kram )
464464   PORT_START   /* PIA 0 Port A (PLAYER 1) */
465465    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
466466    PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
r1238r1239
491491INPUT_PORTS_END
492492
493493
494INPUT_PORTS_START( zookeep )
494static INPUT_PORTS_START( zookeep )
495495   PORT_START   /* PIA 0 Port A (PLAYER 1) */
496496   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
497497   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY
r1238r1239
522522INPUT_PORTS_END
523523
524524
525INPUT_PORTS_START( slither )
525static INPUT_PORTS_START( slither )
526526   PORT_START   /* PIA 0 Port A (PLAYER 1) */
527527    PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNUSED )
528528   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
559559INPUT_PORTS_END
560560
561561
562INPUT_PORTS_START( complexx )
562static INPUT_PORTS_START( complexx )
563563   PORT_START   /* PIA 0 Port A (Left Stick) */
564564    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_8WAY
565565    PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT ) PORT_8WAY
src/mame/drivers/suprgolf.c
r1238r1239
107107   AM_RANGE(0x09, 0x09) AM_READ(YM2203_read_port_0_r) AM_WRITE(YM2203_write_port_0_w)
108108 ADDRESS_MAP_END
109109
110INPUT_PORTS_START( suprgolf )
110static INPUT_PORTS_START( suprgolf )
111111   PORT_START   /* PLAY1 */
112112   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
113113   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/xexex.c
r1238r1239
423423ADDRESS_MAP_END
424424
425425
426INPUT_PORTS_START( xexex )
426static INPUT_PORTS_START( xexex )
427427   PORT_START
428428   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
429429   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/wallc.c
r1238r1239
159159ADDRESS_MAP_END
160160
161161
162INPUT_PORTS_START( wallc )
162static INPUT_PORTS_START( wallc )
163163   PORT_START   /* DSW - read from b000 */
164164   PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) )
165165   PORT_DIPSETTING(   0x03, "5" )
src/mame/drivers/marinedt.c
r1238r1239
297297   AM_RANGE(0x0f, 0x0f) AM_WRITE(marinedt_pf_w)
298298ADDRESS_MAP_END
299299
300INPUT_PORTS_START( marinedt )
300static INPUT_PORTS_START( marinedt )
301301   PORT_START   /* IN0 */
302302   PORT_DIPNAME( 0x0f, 0x00, DEF_STR( Coin_A ) )
303303   PORT_DIPSETTING(    0x0f, DEF_STR( 9C_1C ) )
src/mame/drivers/ironhors.c
r1238r1239
106106
107107
108108
109INPUT_PORTS_START( ironhors )
109static INPUT_PORTS_START( ironhors )
110110   PORT_START   /* IN0 */
111111   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
112112   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
207207   PORT_BIT( 0xf8, IP_ACTIVE_LOW, IPT_UNUSED )
208208INPUT_PORTS_END
209209
210INPUT_PORTS_START( dairesya )
210static INPUT_PORTS_START( dairesya )
211211   PORT_START   /* IN0 */
212212   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
213213   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/battlex.c
r1238r1239
9999
100100/*** INPUT PORTS *************************************************************/
101101
102INPUT_PORTS_START( battlex )
102static INPUT_PORTS_START( battlex )
103103   PORT_START   /* IN0 */
104104   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) )
105105   PORT_DIPSETTING(    0x02, DEF_STR( 2C_1C ) )
src/mame/drivers/skullxbo.c
r1238r1239
156156 *
157157 *************************************/
158158
159INPUT_PORTS_START( skullxbo )
159static INPUT_PORTS_START( skullxbo )
160160   PORT_START      /* ff5800 */
161161   PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED )
162162   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
src/mame/drivers/adp.c
r1238r1239
151151   return 0;
152152}
153153
154INPUT_PORTS_START( skattv )
154static INPUT_PORTS_START( skattv )
155155
156156INPUT_PORTS_END
157157
src/mame/drivers/sliver.c
r1238r1239
320320   }
321321}
322322
323int find_data(int offset)
323static int find_data(int offset)
324324{
325325   int idx=0;
326326   while(gfxlookup[idx][0]>=0)
r1238r1239
451451   return 0;
452452}
453453
454INPUT_PORTS_START( sliver )
454static INPUT_PORTS_START( sliver )
455455
456456   PORT_START
457457   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
src/mame/drivers/konamigq.c
r1238r1239
408408   MDRV_SOUND_ROUTE(1, "right", 1.0)
409409MACHINE_DRIVER_END
410410
411INPUT_PORTS_START( konamigq )
411static INPUT_PORTS_START( konamigq )
412412   /* IN 0 */
413413   PORT_START
414414   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)
src/mame/drivers/epos.c
r1238r1239
141141   so that ROMs couldn't be simply swapped.  Each game checks these bits and halts
142142   the processor if an unexpected value is read. */
143143
144INPUT_PORTS_START( megadon )
144static INPUT_PORTS_START( megadon )
145145   PORT_START_TAG("IN0")
146146   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Coinage ) )
147147   PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
r1238r1239
189189INPUT_PORTS_END
190190
191191
192INPUT_PORTS_START( suprglob )
192static INPUT_PORTS_START( suprglob )
193193   PORT_START_TAG("IN0")
194194   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Coinage ) )
195195   PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
r1238r1239
240240INPUT_PORTS_END
241241
242242
243INPUT_PORTS_START( igmo )
243static INPUT_PORTS_START( igmo )
244244   PORT_START_TAG("IN0")
245245   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Coinage ) )
246246   PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
r1238r1239
289289INPUT_PORTS_END
290290
291291
292INPUT_PORTS_START( dealer )
292static INPUT_PORTS_START( dealer )
293293   PORT_START_TAG("IN0")
294294   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) )
295295   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
src/mame/drivers/mrflea.c
r1238r1239
347347   ROM_LOAD( "vd_l4",   0xe000, 0x2000, CRC(423735a5) SHA1(4ee93f93cd2b08560e148525e08880d64c64fcd2) )
348348ROM_END
349349
350INPUT_PORTS_START( mrflea )
350static INPUT_PORTS_START( mrflea )
351351   PORT_START
352352   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY
353353   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
src/mame/drivers/cps3.c
r1238r1239
347347
348348int cps3_use_fastboot;
349349
350UINT32* decrypted_bios;
351UINT32* decrypted_gamerom;
352UINT32 cram_gfxflash_bank;
350static UINT32* decrypted_bios;
351static UINT32* decrypted_gamerom;
352static UINT32 cram_gfxflash_bank;
353353UINT32* cps3_nops;
354354
355UINT32*tilemap20_regs_base;
356UINT32*tilemap30_regs_base;
357UINT32*tilemap40_regs_base;
358UINT32*tilemap50_regs_base;
355static UINT32* tilemap20_regs_base;
356static UINT32* tilemap30_regs_base;
357static UINT32* tilemap40_regs_base;
358static UINT32* tilemap50_regs_base;
359359
360360UINT32* cps3_0xc0000000_ram;
361361UINT32* cps3_0xc0000000_ram_decrypted;
r1238r1239
849849   if (colournum<0x10000) palette_set_color(Machine,colournum,cps3_mame_colours[colournum]/* MAKE_RGB(r<<3,g<<3,b<<3)*/);//cps3_mame_colours[colournum]);
850850}
851851
852void decode_ssram(void)
852#ifdef UNUSED_FUNCTION
853static void decode_ssram(void)
853854{
854855   if (cps3_ss_ram_dirty)
855856   {
r1238r1239
869870   return;
870871}
871872
872void decode_charram(void)
873static void decode_charram(void)
873874{
874875   if (cps3_char_ram_is_dirty)
875876   {
r1238r1239
888889
889890   return;
890891}
892#endif
891893
892894VIDEO_START(cps3)
893895{
r1238r1239
14251427   return ~0;
14261428}
14271429
1428UINT32 cram_bank = 0;
1430static UINT32 cram_bank = 0;
14291431
1430WRITE32_HANDLER( cram_bank_w )
1432static WRITE32_HANDLER( cram_bank_w )
14311433{
14321434   if (ACCESSING_LSB)
14331435   {
r1238r1239
14561458   }
14571459}
14581460
1459READ32_HANDLER( cram_data_r )
1461static READ32_HANDLER( cram_data_r )
14601462{
14611463   UINT32 fulloffset = (((cram_bank&0x7)*0x100000)/4) + offset;
14621464
14631465   return LITTLE_ENDIANIZE_INT32(cps3_char_ram[fulloffset]);
14641466}
14651467
1466WRITE32_HANDLER( cram_data_w )
1468static WRITE32_HANDLER( cram_data_w )
14671469{
14681470   UINT32 fulloffset = (((cram_bank&0x7)*0x100000)/4) + offset;
14691471   mem_mask = LITTLE_ENDIANIZE_INT32(mem_mask);
r1238r1239
17671769   cps3_flashmain_w(4, offset,data,mem_mask);
17681770}
17691771
1770WRITE32_HANDLER( cram_gfxflash_bank_w )
1772static WRITE32_HANDLER( cram_gfxflash_bank_w )
17711773{
17721774   if (ACCESSING_MSB32)
17731775   {
r1238r1239
19651967   }
19661968}
19671969
1968UINT32*tilemap20_regs_base;
1969UINT32*tilemap30_regs_base;
1970UINT32*tilemap40_regs_base;
1971UINT32*tilemap50_regs_base;
1970static UINT32* tilemap20_regs_base;
1971static UINT32* tilemap30_regs_base;
1972static UINT32* tilemap40_regs_base;
1973static UINT32* tilemap50_regs_base;
19721974
19731975//<ElSemi> +0 X  +2 Y +4 unknown +6 enable (&0x8000) +8 low part tilemap base, high part linescroll base
19741976//<ElSemi> (a word each)
19751977
1976UINT32 paldma_source;
1977UINT32 paldma_realsource;
1978UINT32 paldma_dest;
1979UINT32 paldma_fade;
1980UINT32 paldma_other2;
1981UINT32 paldma_length;
1978static UINT32 paldma_source;
1979static UINT32 paldma_realsource;
1980static UINT32 paldma_dest;
1981static UINT32 paldma_fade;
1982static UINT32 paldma_other2;
1983static UINT32 paldma_length;
19821984
19831985WRITE32_HANDLER( cps3_palettedma_w )
19841986{
r1238r1239
20302032
20312033}
20322034
2033UINT32 chardma_source;
2034UINT32 chardma_other;
2035static UINT32 chardma_source;
2036static UINT32 chardma_other;
20352037
2036UINT8* current_table;
2037UINT32 current_table_address = -1;
2038//static UINT8* current_table;
2039static UINT32 current_table_address = -1;
20382040
20392041int cps3_rle_length = 0;
20402042
2041int last_normal_byte = 0;
2043static int last_normal_byte = 0;
20422044
20432045
2044UINT32 process_byte( UINT8 real_byte, UINT32 destination, int max_length )
2046static UINT32 process_byte( UINT8 real_byte, UINT32 destination, int max_length )
20452047{
20462048   UINT8* dest       = (UINT8*)cps3_char_ram;
20472049
r1238r1239
21382140   }
21392141}
21402142
2141unsigned short lastb;
2142unsigned short lastb2;
2143UINT32 ProcessByte8(UINT8 b,UINT32 dst_offset)
2143static unsigned short lastb;
2144static unsigned short lastb2;
2145static UINT32 ProcessByte8(UINT8 b,UINT32 dst_offset)
21442146{
21452147   UINT8* destRAM = (UINT8*)cps3_char_ram;
21462148    int l=0;
r1238r1239
24202422
24212423
24222424
2423INPUT_PORTS_START( cps3 )
2425static INPUT_PORTS_START( cps3 )
24242426   PORT_START
24252427   PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
24262428   PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
r1238r1239
24732475}
24742476
24752477
2476struct sh2_config sh2cp_conf_slave  = { 1 };
2478//static struct sh2_config sh2cp_conf_slave  = { 1 };
24772479
24782480
24792481static struct CustomSound_interface custom_interface =
r1238r1239
25232525
25242526
25252527
2526void precopy_to_flash(void)
2528static void precopy_to_flash(void)
25272529{
25282530   int i;
25292531   /* precopy program roms, ok, sfiii2 tests pass, others fail because of how the decryption affects testing */
r1238r1239
25902592
25912593
25922594// make a copy in the regions we execute code / draw gfx from
2593void copy_from_nvram(void)
2595static void copy_from_nvram(void)
25942596{
25952597
25962598   int i;
src/mame/drivers/glass.c
r1238r1239
123123ADDRESS_MAP_END
124124
125125
126INPUT_PORTS_START( glass )
126static INPUT_PORTS_START( glass )
127127PORT_START   /* DSW #2 */
128128   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
129129   PORT_DIPSETTING(    0x02, DEF_STR( Easy ) )
src/mame/drivers/mcatadv.c
r1238r1239
304304
305305/*** Inputs ***/
306306
307INPUT_PORTS_START( mcatadv )
307static INPUT_PORTS_START( mcatadv )
308308   PORT_START_TAG("IN0")
309309   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
310310   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
r1238r1239
381381//  PORT_DIPSETTING(    0x00, "Upright 2 Players" )     // duplicated setting (NEVER tested)
382382INPUT_PORTS_END
383383
384INPUT_PORTS_START( nost )
384static INPUT_PORTS_START( nost )
385385   PORT_START_TAG("IN0")
386386   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
387387   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
src/mame/drivers/cinemat.c
r1238r1239
337337 *
338338 *************************************/
339339
340INPUT_PORTS_START( spacewar )
340static INPUT_PORTS_START( spacewar )
341341   PORT_START_TAG("INPUTS")
342342   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Option 3") PORT_CODE(KEYCODE_3_PAD)
343343   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Option 8") PORT_CODE(KEYCODE_8_PAD)
r1238r1239
373373INPUT_PORTS_END
374374
375375
376INPUT_PORTS_START( barrier )
376static INPUT_PORTS_START( barrier )
377377   PORT_START_TAG("INPUTS")
378378   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Skill A") PORT_CODE(KEYCODE_A)
379379   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNUSED )
r1238r1239
418418INPUT_PORTS_END
419419
420420
421INPUT_PORTS_START( speedfrk )
421static INPUT_PORTS_START( speedfrk )
422422   PORT_START_TAG("INPUTS")
423423   PORT_BIT( 0x000f, IP_ACTIVE_LOW, IPT_SPECIAL ) /* steering wheel, fake below */
424424   PORT_BIT( 0x0070, IP_ACTIVE_LOW, IPT_SPECIAL ) /* gear shift, fake below */
r1238r1239
461461
462462
463463/* TODO: 4way or 8way stick? */
464INPUT_PORTS_START( starhawk )
464static INPUT_PORTS_START( starhawk )
465465   PORT_START_TAG("INPUTS")
466466   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
467467   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
496496INPUT_PORTS_END
497497
498498
499INPUT_PORTS_START( sundance )
499static INPUT_PORTS_START( sundance )
500500   PORT_START_TAG("INPUTS")
501501   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_SPECIAL ) /* P1 Pad */
502502   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
r1238r1239
562562INPUT_PORTS_END
563563
564564
565INPUT_PORTS_START( tailg )
565static INPUT_PORTS_START( tailg )
566566   PORT_START_TAG("INPUTS")
567567   PORT_BIT( 0x001f, IP_ACTIVE_LOW, IPT_UNUSED )
568568   PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
602602INPUT_PORTS_END
603603
604604
605INPUT_PORTS_START( warrior )
605static INPUT_PORTS_START( warrior )
606606   PORT_START_TAG("INPUTS")
607607   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2)
608608   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )  PORT_PLAYER(2)
r1238r1239
641641INPUT_PORTS_END
642642
643643
644INPUT_PORTS_START( armora )
644static INPUT_PORTS_START( armora )
645645   PORT_START_TAG("INPUTS")
646646   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2)
647647   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
677677INPUT_PORTS_END
678678
679679
680INPUT_PORTS_START( ripoff )
680static INPUT_PORTS_START( ripoff )
681681   PORT_START_TAG("INPUTS")
682682   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2)
683683   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
713713INPUT_PORTS_END
714714
715715
716INPUT_PORTS_START( starcas )
716static INPUT_PORTS_START( starcas )
717717   PORT_START_TAG("INPUTS")
718718   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 )
719719   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNUSED )
r1238r1239
750750INPUT_PORTS_END
751751
752752
753INPUT_PORTS_START( solarq )
753static INPUT_PORTS_START( solarq )
754754   PORT_START_TAG("INPUTS")
755755   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START2 )
756756   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) /* nova */
r1238r1239
784784INPUT_PORTS_END
785785
786786
787INPUT_PORTS_START( boxingb )
787static INPUT_PORTS_START( boxingb )
788788   PORT_START_TAG("INPUTS")
789789   PORT_BIT( 0x0001, IP_ACTIVE_LOW,  IPT_BUTTON1 ) PORT_PLAYER(2)
790790   PORT_BIT( 0x0002, IP_ACTIVE_LOW,  IPT_BUTTON2 ) PORT_PLAYER(2)
r1238r1239
823823INPUT_PORTS_END
824824
825825
826INPUT_PORTS_START( wotw )
826static INPUT_PORTS_START( wotw )
827827   PORT_START_TAG("INPUTS")
828828   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 )
829829   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNUSED )
r1238r1239
862862INPUT_PORTS_END
863863
864864
865INPUT_PORTS_START( demon )
865static INPUT_PORTS_START( demon )
866866   PORT_START_TAG("INPUTS")
867867   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 )
868868   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
904904INPUT_PORTS_END
905905
906906
907INPUT_PORTS_START( qb3 )
907static INPUT_PORTS_START( qb3 )
908908   PORT_START_TAG("INPUTS")
909909   PORT_BIT( 0x0001, IP_ACTIVE_LOW,  IPT_JOYSTICKLEFT_UP )
910910   PORT_BIT( 0x0002, IP_ACTIVE_LOW,  IPT_JOYSTICKLEFT_DOWN )
src/mame/drivers/toaplan2.c
r1238r1239
19611961
19621962
19631963
1964INPUT_PORTS_START( toaplan2 )
1964static INPUT_PORTS_START( toaplan2 )
19651965   PORT_START_TAG("VBL")
19661966   PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_VBLANK )
19671967   PORT_BIT( 0xfffe, IP_ACTIVE_HIGH, IPT_UNKNOWN )   /* Unknown/Unused */
r1238r1239
20322032
20332033
20342034
2035INPUT_PORTS_START( tekipaki )
2035static INPUT_PORTS_START( tekipaki )
20362036   PORT_INCLUDE(toaplan2)
20372037
20382038   PORT_MODIFY("DSWA")
r1238r1239
20762076INPUT_PORTS_END
20772077
20782078
2079INPUT_PORTS_START( ghox )
2079static INPUT_PORTS_START( ghox )
20802080   PORT_INCLUDE(toaplan2)
20812081
20822082   PORT_MODIFY("DSWA")
r1238r1239
21322132INPUT_PORTS_END
21332133
21342134
2135INPUT_PORTS_START( dogyuun )
2135static INPUT_PORTS_START( dogyuun )
21362136   PORT_INCLUDE(toaplan2)
21372137
21382138   PORT_MODIFY("IN1")
r1238r1239
21892189INPUT_PORTS_END
21902190
21912191
2192INPUT_PORTS_START( kbash )
2192static INPUT_PORTS_START( kbash )
21932193   PORT_INCLUDE(toaplan2)
21942194
21952195   PORT_MODIFY("IN1")
r1238r1239
22382238INPUT_PORTS_END
22392239
22402240
2241INPUT_PORTS_START( kbash2 )
2241static INPUT_PORTS_START( kbash2 )
22422242   PORT_INCLUDE(kbash)
22432243
22442244   PORT_MODIFY("JMPR")
r1238r1239
22532253INPUT_PORTS_END
22542254
22552255
2256INPUT_PORTS_START( truxton2 )
2256static INPUT_PORTS_START( truxton2 )
22572257   PORT_INCLUDE(toaplan2)
22582258
22592259   PORT_MODIFY("IN1")
r1238r1239
23012301INPUT_PORTS_END
23022302
23032303
2304INPUT_PORTS_START( pipibibs )
2304static INPUT_PORTS_START( pipibibs )
23052305   PORT_INCLUDE(toaplan2)
23062306
23072307   PORT_MODIFY("DSWA")
r1238r1239
23442344INPUT_PORTS_END
23452345
23462346
2347INPUT_PORTS_START( whoopee )
2347static INPUT_PORTS_START( whoopee )
23482348   PORT_INCLUDE(pipibibs)
23492349
23502350   PORT_MODIFY("JMPR")
r1238r1239
23522352INPUT_PORTS_END
23532353
23542354
2355INPUT_PORTS_START( pipibibi )
2355static INPUT_PORTS_START( pipibibi )
23562356   PORT_INCLUDE(pipibibs)
23572357
23582358   PORT_MODIFY("VBL")
r1238r1239
23782378INPUT_PORTS_END
23792379
23802380
2381INPUT_PORTS_START( fixeight )
2381static INPUT_PORTS_START( fixeight )
23822382   PORT_INCLUDE(toaplan2)
23832383
23842384   PORT_START_TAG("IN3")
r1238r1239
24552455INPUT_PORTS_END
24562456
24572457
2458INPUT_PORTS_START( fixeighb )
2458static INPUT_PORTS_START( fixeighb )
24592459   PORT_INCLUDE(fixeight)
24602460
24612461   PORT_MODIFY("DSWA")
r1238r1239
24662466INPUT_PORTS_END
24672467
24682468
2469INPUT_PORTS_START( grindstm )
2469static INPUT_PORTS_START( grindstm )
24702470   PORT_INCLUDE(toaplan2)
24712471
24722472   PORT_MODIFY("DSWA")
r1238r1239
25182518INPUT_PORTS_END
25192519
25202520
2521INPUT_PORTS_START( vfive )
2521static INPUT_PORTS_START( vfive )
25222522   PORT_INCLUDE(grindstm)
25232523
25242524   PORT_MODIFY("JMPR")      /* (6) Territory Jumper block */
r1238r1239
25282528INPUT_PORTS_END
25292529
25302530
2531INPUT_PORTS_START( batsugun )
2531static INPUT_PORTS_START( batsugun )
25322532   PORT_INCLUDE(toaplan2)
25332533
25342534   PORT_MODIFY("DSWA")
r1238r1239
25802580INPUT_PORTS_END
25812581
25822582
2583INPUT_PORTS_START( snowbro2 )
2583static INPUT_PORTS_START( snowbro2 )
25842584   PORT_INCLUDE(toaplan2)
25852585
25862586   PORT_START_TAG("IN3")
r1238r1239
26482648INPUT_PORTS_END
26492649
26502650
2651INPUT_PORTS_START( sstriker )
2651static INPUT_PORTS_START( sstriker )
26522652   PORT_INCLUDE(toaplan2)
26532653
26542654   PORT_MODIFY("DSWA")
r1238r1239
26922692INPUT_PORTS_END
26932693
26942694
2695INPUT_PORTS_START( mahoudai )
2695static INPUT_PORTS_START( mahoudai )
26962696   PORT_INCLUDE(sstriker)
26972697
26982698   PORT_MODIFY("JMPR")
r1238r1239
27012701INPUT_PORTS_END
27022702
27032703
2704INPUT_PORTS_START( kingdmgp )
2704static INPUT_PORTS_START( kingdmgp )
27052705   PORT_INCLUDE(toaplan2)
27062706
27072707   PORT_MODIFY("DSWA")
r1238r1239
27452745INPUT_PORTS_END
27462746
27472747
2748INPUT_PORTS_START( shippumd )
2748static INPUT_PORTS_START( shippumd )
27492749   PORT_INCLUDE(kingdmgp)
27502750
27512751   PORT_MODIFY("JMPR")
r1238r1239
27542754INPUT_PORTS_END
27552755
27562756
2757INPUT_PORTS_START( bgaregga )
2757static INPUT_PORTS_START( bgaregga )
27582758   PORT_START_TAG("VBL")
27592759   PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_VBLANK )
27602760   PORT_BIT( 0xfffe, IP_ACTIVE_HIGH, IPT_UNKNOWN )   /* Unknown/Unused */
r1238r1239
28682868INPUT_PORTS_END
28692869
28702870
2871INPUT_PORTS_START( bgareghk )
2871static INPUT_PORTS_START( bgareghk )
28722872   PORT_INCLUDE(bgaregga)
28732873
28742874   PORT_MODIFY("JMPR")
r1238r1239
28812881INPUT_PORTS_END
28822882
28832883
2884INPUT_PORTS_START( bgaregcn )
2884static INPUT_PORTS_START( bgaregcn )
28852885   PORT_INCLUDE(bgaregga)
28862886
28872887   PORT_MODIFY("JMPR")
r1238r1239
28942894INPUT_PORTS_END
28952895
28962896
2897INPUT_PORTS_START( batrider )
2897static INPUT_PORTS_START( batrider )
28982898   PORT_START_TAG("VBL")      /* VBlank */
28992899   PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_VBLANK )
29002900   PORT_BIT( 0xfffe, IP_ACTIVE_HIGH, IPT_UNKNOWN )
r1238r1239
30103010INPUT_PORTS_END
30113011
30123012
3013INPUT_PORTS_START( bbakraid )
3013static INPUT_PORTS_START( bbakraid )
30143014   PORT_START_TAG("VBL")      /* VBlank */
30153015   PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_VBLANK )
30163016   PORT_BIT( 0xfffe, IP_ACTIVE_HIGH, IPT_UNKNOWN )
src/mame/drivers/ddz.c
r1238r1239
4040//  IntReq(24);     //VRender0 VBlank
4141}
4242
43INPUT_PORTS_START(ddz)
43static INPUT_PORTS_START(ddz)
4444
4545INPUT_PORTS_END
4646
src/mame/drivers/mjkjidai.c
r1238r1239
191191
192192
193193
194INPUT_PORTS_START( mjkjidai )
194static INPUT_PORTS_START( mjkjidai )
195195   PORT_START
196196   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
197197   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
src/mame/drivers/jchan.c
r1238r1239
669669
670670/* input ports */
671671
672INPUT_PORTS_START( jchan )
672static INPUT_PORTS_START( jchan )
673673
674674/* TO BE VERIFIED: Player 1 & 2 - see subroutine $21e2a of main68k IT1 */
675675/* TO BE VERIFIED: dips assignements according infos by BrianT at http://www.crazykong.com - seems ok */
src/mame/drivers/jailbrek.c
r1238r1239
9494
9595
9696
97INPUT_PORTS_START( jailbrek )
97static INPUT_PORTS_START( jailbrek )
9898   PORT_START   /* IN0 - $3300 */
9999   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
100100   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/couple.c
r1238r1239
227227   PORT_DIPSETTING(    0x20, DEF_STR( Off ) ) \
228228   PORT_DIPSETTING(    0x00, DEF_STR( On ) ) \
229229
230INPUT_PORTS_START( couple )
230static INPUT_PORTS_START( couple )
231231   PORT_INPUTS
232232
233233   PORT_DSW
r1238r1239
314314INPUT_PORTS_END
315315
316316/*Different DSWs*/
317INPUT_PORTS_START( couplep )
317static INPUT_PORTS_START( couplep )
318318   PORT_INPUTS
319319
320320   PORT_DSW
src/mame/drivers/sgladiat.c
r1238r1239
214214   ROM_LOAD( "82s137.003",  0x800, 0x400, CRC(c0e70308) SHA1(d7dbc500bc9991c2d1b95850f3723a2a224fbfbb) )
215215ROM_END
216216
217INPUT_PORTS_START( sgladiat )
217static INPUT_PORTS_START( sgladiat )
218218   PORT_START_TAG("IN0")
219219   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 )
220220   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/mlanding.c
r1238r1239
287287}
288288
289289
290INPUT_PORTS_START( mlanding )
290static INPUT_PORTS_START( mlanding )
291291
292292PORT_START_TAG("IN0")
293293   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_TILT )
src/mame/drivers/gaelco.c
r1238r1239
128128   AM_RANGE(0x0c00, 0xffff) AM_WRITE(MWA8_ROM)            /* ROM */
129129ADDRESS_MAP_END
130130
131INPUT_PORTS_START( bigkarnk )
131static INPUT_PORTS_START( bigkarnk )
132132   PORT_START   /* DSW #1 */
133133   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
134134   PORT_DIPSETTING(    0x07, DEF_STR( 4C_1C ) )
r1238r1239
557557
558558/*********** Squash Encryption Related Code ******************/
559559
560INPUT_PORTS_START( squash )
560static INPUT_PORTS_START( squash )
561561   PORT_START   /* DSW2 8bit */
562562   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
563563   PORT_DIPSETTING(    0x02, DEF_STR( Easy ) )
r1238r1239
11581158
11591159/*********** Thunder Hoop Encryption Related Code ******************/
11601160
1161INPUT_PORTS_START( thoop )
1161static INPUT_PORTS_START( thoop )
11621162   PORT_START   /* DSW2 8bit */
11631163   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
11641164   PORT_DIPSETTING(    0x03, DEF_STR( Easy ) )
src/mame/drivers/bankp.c
r1238r1239
136136
137137
138138
139INPUT_PORTS_START( bankp )
139static INPUT_PORTS_START( bankp )
140140   PORT_START   /* IN0 */
141141   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED )
142142   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY
r1238r1239
189189   PORT_DIPSETTING(    0x00, DEF_STR( Cocktail ) )
190190INPUT_PORTS_END
191191
192INPUT_PORTS_START( combh )
192static INPUT_PORTS_START( combh )
193193   PORT_START   /* IN0 */
194194   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_2WAY
195195   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED )
src/mame/drivers/tankbust.c
r1238r1239
2323VIDEO_START( tankbust );
2424VIDEO_UPDATE( tankbust );
2525
26extern UINT8 * txt_ram;
26extern UINT8 *tankbust_txtram;
2727
2828WRITE8_HANDLER( tankbust_background_videoram_w );
2929READ8_HANDLER ( tankbust_background_videoram_r );
r1238r1239
229229
230230   AM_RANGE(0xc000, 0xc7ff) AM_WRITE(tankbust_background_videoram_w) AM_BASE(&videoram)
231231   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(&txt_ram)
232   AM_RANGE(0xd000, 0xd7ff) AM_WRITE(tankbust_txtram_w) AM_BASE(&tankbust_txtram)
233233   AM_RANGE(0xd800, 0xd8ff) AM_WRITE(MWA8_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size)
234234ADDRESS_MAP_END
235235
r1238r1239
267267
268268
269269
270INPUT_PORTS_START( tankbust )
270static INPUT_PORTS_START( tankbust )
271271   PORT_START   /* IN0 */
272272   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
273273   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/wecleman.c
r1238r1239
827827                        WEC Le Mans 24 Input Ports
828828***************************************************************************/
829829
830INPUT_PORTS_START( wecleman )
830static INPUT_PORTS_START( wecleman )
831831   PORT_START   /* IN0 - Controls and Coins - $140011.b */
832832   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
833833   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
917917                            Hot Chase Input Ports
918918***************************************************************************/
919919
920INPUT_PORTS_START( hotchase )
920static INPUT_PORTS_START( hotchase )
921921   PORT_START   /* IN0 - Controls and Coins - $140011.b */
922922   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
923923   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/crbaloon.c
r1238r1239
198198
199199
200200
201INPUT_PORTS_START( crbaloon )
201static INPUT_PORTS_START( crbaloon )
202202   PORT_START_TAG("DSW0") // 0
203203   PORT_DIPNAME( 0x01, 0x01, "Test?" )
204204   PORT_DIPSETTING(    0x01, "I/O Check?" )
src/mame/drivers/dmndrby.c
r1238r1239
5555ADDRESS_MAP_END
5656
5757
58INPUT_PORTS_START( dderby )
58static INPUT_PORTS_START( dderby )
5959   PORT_START   /* 8bit */
6060   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
6161   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
src/mame/drivers/pastelg.c
r1238r1239
9393ADDRESS_MAP_END
9494
9595
96INPUT_PORTS_START( pastelg )
96static INPUT_PORTS_START( pastelg )
9797   PORT_START   /* (0) DIPSW-A */
9898   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
9999   PORT_DIPSETTING(    0x03, "1 (Easy)" )
src/mame/drivers/seattle.c
r1238r1239
17551755 *
17561756 *************************************/
17571757
1758INPUT_PORTS_START( seattle_common )
1758static INPUT_PORTS_START( seattle_common )
17591759   PORT_START_TAG("DIPS")
17601760   PORT_DIPNAME( 0x0001, 0x0001, "Unknown0001" )
17611761   PORT_DIPSETTING(      0x0001, DEF_STR( Off ))
r1238r1239
18681868 *
18691869 *************************************/
18701870
1871INPUT_PORTS_START( wg3dh )
1871static INPUT_PORTS_START( wg3dh )
18721872   PORT_INCLUDE(seattle_common)
18731873
18741874   PORT_MODIFY("DIPS")
r1238r1239
18791879INPUT_PORTS_END
18801880
18811881
1882INPUT_PORTS_START( mace )
1882static INPUT_PORTS_START( mace )
18831883   PORT_INCLUDE(seattle_common)
18841884
18851885   PORT_MODIFY("DIPS")
r1238r1239
18931893INPUT_PORTS_END
18941894
18951895
1896INPUT_PORTS_START( sfrush )
1896static INPUT_PORTS_START( sfrush )
18971897   PORT_INCLUDE(seattle_common)
18981898
18991899   PORT_MODIFY("DIPS")
r1238r1239
19571957INPUT_PORTS_END
19581958
19591959
1960INPUT_PORTS_START( sfrushrk )
1960static INPUT_PORTS_START( sfrushrk )
19611961   PORT_INCLUDE(sfrush)
19621962
19631963   PORT_MODIFY("DIPS")
r1238r1239
19741974INPUT_PORTS_END
19751975
19761976
1977INPUT_PORTS_START( calspeed )
1977static INPUT_PORTS_START( calspeed )
19781978   PORT_INCLUDE(seattle_common)
19791979
19801980   PORT_MODIFY("DIPS")
r1238r1239
20322032INPUT_PORTS_END
20332033
20342034
2035INPUT_PORTS_START( vaportrx )
2035static INPUT_PORTS_START( vaportrx )
20362036   PORT_INCLUDE(seattle_common)
20372037
20382038   PORT_MODIFY("DIPS")
r1238r1239
20912091INPUT_PORTS_END
20922092
20932093
2094INPUT_PORTS_START( biofreak )
2094static INPUT_PORTS_START( biofreak )
20952095   PORT_INCLUDE(seattle_common)
20962096
20972097   PORT_MODIFY("DIPS")
r1238r1239
21242124INPUT_PORTS_END
21252125
21262126
2127INPUT_PORTS_START( blitz )
2127static INPUT_PORTS_START( blitz )
21282128   PORT_INCLUDE(seattle_common)
21292129
21302130   PORT_MODIFY("DIPS")
r1238r1239
21852185INPUT_PORTS_END
21862186
21872187
2188INPUT_PORTS_START( blitz99 )
2188static INPUT_PORTS_START( blitz99 )
21892189   PORT_INCLUDE(blitz)
21902190
21912191   PORT_MODIFY("DIPS")
r1238r1239
22312231INPUT_PORTS_END
22322232
22332233
2234INPUT_PORTS_START( carnevil )
2234static INPUT_PORTS_START( carnevil )
22352235   PORT_INCLUDE( seattle_common )
22362236
22372237   PORT_MODIFY("DIPS")
r1238r1239
23292329INPUT_PORTS_END
23302330
23312331
2332INPUT_PORTS_START( hyprdriv )
2332static INPUT_PORTS_START( hyprdriv )
23332333   PORT_INCLUDE( seattle_common )
23342334
23352335   PORT_MODIFY("DIPS")
src/mame/drivers/portrait.c
r1238r1239
147147ADDRESS_MAP_END
148148
149149
150INPUT_PORTS_START( portrait )
150static INPUT_PORTS_START( portrait )
151151   PORT_START /* DSW 1 */
152152   PORT_DIPNAME( 0x0f, 0x08, DEF_STR( Coin_A ) )
153153   PORT_DIPSETTING(    0x08, DEF_STR( 1C_1C ) )
src/mame/drivers/munchmo.c
r1238r1239
126126   AM_RANGE(0xe000, 0xe7ff) AM_WRITE(MWA8_RAM)
127127ADDRESS_MAP_END
128128
129INPUT_PORTS_START( mnchmobl )
129static INPUT_PORTS_START( mnchmobl )
130130   PORT_START
131131   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
132132   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/funkybee.c
r1238r1239
137137ADDRESS_MAP_END
138138
139139
140INPUT_PORTS_START( funkybee )
140static INPUT_PORTS_START( funkybee )
141141   PORT_START_TAG("IN0")
142142   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
143143   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
187187   PORT_DIPSETTING(   0x80, DEF_STR( Cocktail ) )
188188INPUT_PORTS_END
189189
190INPUT_PORTS_START( funkbeeb )
190static INPUT_PORTS_START( funkbeeb )
191191   PORT_INCLUDE(funkybee)
192192
193193   PORT_MODIFY("DSW")
r1238r1239
198198   PORT_DIPSETTING(   0x00, "4" )
199199INPUT_PORTS_END
200200
201INPUT_PORTS_START( skylancr )
201static INPUT_PORTS_START( skylancr )
202202   PORT_START_TAG("IN0")
203203   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
204204   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
246246   PORT_DIPSETTING(   0x80, DEF_STR( Cocktail ) )
247247INPUT_PORTS_END
248248
249INPUT_PORTS_START( skylance )
249static INPUT_PORTS_START( skylance )
250250   PORT_INCLUDE(skylancr)
251251
252252   PORT_MODIFY("DSW")
src/mame/drivers/btoads.c
r1238r1239
225225 *
226226 *************************************/
227227
228INPUT_PORTS_START( btoads )
228static INPUT_PORTS_START( btoads )
229229   PORT_START
230230   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
231231   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
src/mame/drivers/tetrisp2.c
r1238r1239
631631   PORT_BIT(  0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN  )
632632
633633
634INPUT_PORTS_START( tetrisp2 )
634static INPUT_PORTS_START( tetrisp2 )
635635TETPLUS2_COMMON
636636
637637   PORT_START_TAG("IN2") //$be0008.w
r1238r1239
689689***************************************************************************/
690690
691691
692INPUT_PORTS_START( teplus2j )
692static INPUT_PORTS_START( teplus2j )
693693TETPLUS2_COMMON
694694
695695/*
r1238r1239
751751***************************************************************************/
752752
753753
754INPUT_PORTS_START( rockn )
754static INPUT_PORTS_START( rockn )
755755   PORT_START_TAG("IN0")   //$be0002.w
756756   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN  )
757757   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN  )
r1238r1239
841841INPUT_PORTS_END
842842
843843
844INPUT_PORTS_START( rocknms )
844static INPUT_PORTS_START( rocknms )
845845   PORT_START   // IN0 - $be0002.w
846846
847847   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_SPECIAL )      // MAIN -> SUB Communication
src/mame/drivers/lastduel.c
r1238r1239
332332
333333/******************************************************************************/
334334
335INPUT_PORTS_START( lastduel )
335static INPUT_PORTS_START( lastduel )
336336   PORT_START
337337   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
338338   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
435435   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
436436INPUT_PORTS_END
437437
438INPUT_PORTS_START( madgear )
438static INPUT_PORTS_START( madgear )
439439   PORT_START
440440   PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Allow_Continue ) )
441441   PORT_DIPSETTING(      0x0000, DEF_STR( No ) )
src/mame/drivers/alpha68k.c
r1238r1239
10071007   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )\
10081008
10091009
1010INPUT_PORTS_START( sstingry )
1010static INPUT_PORTS_START( sstingry )
10111011   PORT_START_TAG("IN0")
10121012   ALPHA68K_PLAYER_INPUT_SWAP_LR_LSB( 1, IPT_UNKNOWN, IPT_START1, IP_ACTIVE_HIGH )
10131013   ALPHA68K_PLAYER_INPUT_SWAP_LR_MSB( 2, IPT_UNKNOWN, IPT_START2, IP_ACTIVE_HIGH )
r1238r1239
10321032   ALPHA68K_MCU
10331033INPUT_PORTS_END
10341034
1035INPUT_PORTS_START( kyros )
1035static INPUT_PORTS_START( kyros )
10361036   PORT_START_TAG("IN0")
10371037   ALPHA68K_PLAYER_INPUT_SWAP_LR_LSB( 1, IPT_UNKNOWN, IPT_START1, IP_ACTIVE_HIGH )
10381038   ALPHA68K_PLAYER_INPUT_SWAP_LR_MSB( 2, IPT_UNKNOWN, IPT_START2, IP_ACTIVE_HIGH )
r1238r1239
10571057   ALPHA68K_MCU
10581058INPUT_PORTS_END
10591059
1060INPUT_PORTS_START( jongbou )
1060static INPUT_PORTS_START( jongbou )
10611061   PORT_START_TAG("IN0")
10621062   PORT_BIT( 0x0fff, IP_ACTIVE_HIGH, IPT_UNKNOWN )
10631063   PORT_BIT( 0x1000, IP_ACTIVE_HIGH, IPT_START1 )
r1238r1239
10991099   PORT_BIT( 0x0f, 0, IPT_DIAL ) PORT_MINMAX(0, 15) PORT_SENSITIVITY(50) PORT_KEYDELTA(20) PORT_PLAYER(2)
11001100INPUT_PORTS_END
11011101
1102INPUT_PORTS_START( paddlema )
1102static INPUT_PORTS_START( paddlema )
11031103   PORT_START_TAG("IN0")   // (bottom players)
11041104   ALPHA68K_PLAYER_INPUT_LSB( 1, IPT_UNKNOWN, IPT_UNKNOWN, IP_ACTIVE_LOW )
11051105   ALPHA68K_PLAYER_INPUT_MSB( 2, IPT_UNKNOWN, IPT_UNKNOWN, IP_ACTIVE_LOW )
r1238r1239
11721172   PORT_DIPSETTING(    0x00, DEF_STR( Yes ) )
11731173INPUT_PORTS_END
11741174
1175INPUT_PORTS_START( timesold )
1175static INPUT_PORTS_START( timesold )
11761176   PORT_START_TAG("IN0")
11771177   ALPHA68K_PLAYER_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1, IP_ACTIVE_LOW )
11781178
r1238r1239
12241224INPUT_PORTS_END
12251225
12261226/* Same as 'timesold' but different default settings for the "Language" Dip Switch */
1227INPUT_PORTS_START( btlfield )
1227static INPUT_PORTS_START( btlfield )
12281228   PORT_START_TAG("IN0")
12291229   ALPHA68K_PLAYER_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1, IP_ACTIVE_LOW )
12301230
r1238r1239
12751275   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)
12761276INPUT_PORTS_END
12771277
1278INPUT_PORTS_START( btlfildb )
1278static INPUT_PORTS_START( btlfildb )
12791279   PORT_START_TAG("IN0")
12801280   ALPHA68K_PLAYER_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1, IP_ACTIVE_LOW )
12811281
r1238r1239
13351335   /* not used */
13361336INPUT_PORTS_END
13371337
1338INPUT_PORTS_START( skysoldr )
1338static INPUT_PORTS_START( skysoldr )
13391339   PORT_START_TAG("IN0")
13401340   ALPHA68K_PLAYER_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1, IP_ACTIVE_LOW )
13411341
r1238r1239
13861386   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
13871387INPUT_PORTS_END
13881388
1389INPUT_PORTS_START( goldmedl )
1389static INPUT_PORTS_START( goldmedl )
13901390   PORT_START_TAG("IN0")  /* 3 buttons per player, no joystick */
13911391   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
13921392   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
r1238r1239
14501450   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
14511451INPUT_PORTS_END
14521452
1453INPUT_PORTS_START( skyadvnt )
1453static INPUT_PORTS_START( skyadvnt )
14541454   PORT_START_TAG("IN0")
14551455   ALPHA68K_PLAYER_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1, IP_ACTIVE_LOW )
14561456
r1238r1239
14961496INPUT_PORTS_END
14971497
14981498/* Same as 'skyadvnt' but bits 0-3 of 2nd set of Dip Switches are different */
1499INPUT_PORTS_START( skyadvnu )
1499static INPUT_PORTS_START( skyadvnu )
15001500   PORT_START_TAG("IN0")
15011501   ALPHA68K_PLAYER_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1, IP_ACTIVE_LOW )
15021502
r1238r1239
15481548   PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED )
15491549INPUT_PORTS_END
15501550
1551INPUT_PORTS_START( gangwars )
1551static INPUT_PORTS_START( gangwars )
15521552   PORT_START_TAG("IN0")
15531553   ALPHA68K_PLAYER_INPUT_LSB( 1, IPT_BUTTON3, IPT_START1, IP_ACTIVE_LOW )
15541554
r1238r1239
16011601INPUT_PORTS_END
16021602
16031603/* Same as 'gangwars' but bits 0-3 of 2nd set of Dip Switches are different */
1604INPUT_PORTS_START( gangwarb )
1604static INPUT_PORTS_START( gangwarb )
16051605   PORT_START_TAG("IN0")
16061606   ALPHA68K_PLAYER_INPUT_LSB( 1, IPT_BUTTON3, IPT_START1, IP_ACTIVE_LOW )
16071607
r1238r1239
16551655   PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED )
16561656INPUT_PORTS_END
16571657
1658INPUT_PORTS_START( sbasebal )
1658static INPUT_PORTS_START( sbasebal )
16591659   PORT_START_TAG("IN0")
16601660   ALPHA68K_PLAYER_INPUT_LSB( 1, IPT_BUTTON3, IPT_START1, IP_ACTIVE_LOW )
16611661
r1238r1239
17241724   PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED )
17251725INPUT_PORTS_END
17261726
1727INPUT_PORTS_START( tnexspce )
1727static INPUT_PORTS_START( tnexspce )
17281728   PORT_START_TAG("IN0")
17291729   ALPHA68K_PLAYER_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1, IP_ACTIVE_LOW )
17301730
src/mame/drivers/drgnmst.c
r1238r1239
212212
213213
214214
215INPUT_PORTS_START( drgnmst )
215static INPUT_PORTS_START( drgnmst )
216216   PORT_START
217217   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
218218   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/lucky8.c
r1238r1239
136136   AM_RANGE(0xb870, 0xb870) AM_WRITENOP
137137ADDRESS_MAP_END
138138
139INPUT_PORTS_START( lucky8 )
139static INPUT_PORTS_START( lucky8 )
140140   PORT_START_TAG("B800")
141141   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Bit 0") PORT_CODE(KEYCODE_Q)
142142   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Bit 1") PORT_CODE(KEYCODE_W)
src/mame/drivers/boxer.c
r1238r1239
206206ADDRESS_MAP_END
207207
208208
209INPUT_PORTS_START( boxer )
209static INPUT_PORTS_START( boxer )
210210
211211   PORT_START
212212   PORT_BIT ( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED )
src/mame/drivers/starfire.c
r1238r1239
203203 *
204204 *************************************/
205205
206INPUT_PORTS_START( starfire )
206static INPUT_PORTS_START( starfire )
207207   PORT_START      /* DSW0 */
208208   PORT_DIPNAME( 0x03, 0x00, "Time" )
209209   PORT_DIPSETTING(    0x00, "90 Sec" )
r1238r1239
247247INPUT_PORTS_END
248248
249249
250INPUT_PORTS_START( fireone )
250static INPUT_PORTS_START( fireone )
251251   PORT_START      /* DSW0 */
252252   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) )
253253   PORT_DIPSETTING(    0x03, "2 Coins/1 Player" )
src/mame/drivers/tmaster.c
r1238r1239
104104
105105
106106
107INPUT_PORTS_START( tmaster )
107static INPUT_PORTS_START( tmaster )
108108    PORT_START
109109    PORT_DIPNAME( 0x0001, 0x0001, "DSW" )
110110    PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
src/mame/drivers/tcl.c
r1238r1239
5454ADDRESS_MAP_END
5555
5656
57INPUT_PORTS_START( tcl )
57static INPUT_PORTS_START( tcl )
5858   PORT_START
5959INPUT_PORTS_END
6060
src/mame/drivers/cischeat.c
r1238r1239
993993//                  [1] Coins       [2] Controls    [3] Unknown
994994//                  [4] DSW 1 & 2   [5] DSW 3       [6] Driving Wheel
995995
996INPUT_PORTS_START( bigrun )
996static INPUT_PORTS_START( bigrun )
997997   PORT_START_TAG("FAKE")   // IN0 - Fake input port - Buttons status
998998   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("P1 Accelerator")\
999999   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("P1 Low Gear")\
r1238r1239
11221122//                  [1] Coins       [2] Controls    [3] Unknown
11231123//                  [4] DSW 1 & 2   [5] DSW 3       [6] Driving Wheel
11241124
1125INPUT_PORTS_START( cischeat )
1125static INPUT_PORTS_START( cischeat )
11261126   PORT_START_TAG("IN0")   // Fake input port - Buttons status
11271127   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("P1 Low Gear")\
11281128   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("P1 High Gear")\
r1238r1239
12241224//                  [4] DSW 3           [5] Driving Wheel
12251225//                  [6] Coinage JP&USA  [7] Coinage UK&FR
12261226
1227INPUT_PORTS_START( f1gpstar )
1227static INPUT_PORTS_START( f1gpstar )
12281228   PORT_START_TAG("IN0")   // Fake input port - Buttons status
12291229    PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("P1 Accelerator")\
12301230   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("P1 Low Gear")\
r1238r1239
13671367                                Wild Pilot
13681368**************************************************************************/
13691369
1370INPUT_PORTS_START( wildplt )
1370static INPUT_PORTS_START( wildplt )
13711371   PORT_START_TAG("IN0")   // DSW 1 & 2
13721372   PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coinage ) )
13731373   PORT_DIPSETTING(      0x0001, DEF_STR( 4C_1C ) )
r1238r1239
14471447                                Scud Hammer
14481448**************************************************************************/
14491449
1450INPUT_PORTS_START( scudhamm )
1450static INPUT_PORTS_START( scudhamm )
14511451   PORT_START_TAG("IN0")   // Buttons
14521452   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(1)
14531453   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN  ) // GAME OVER if pressed on the selection screen
r1238r1239
15251525                            Arm Champs II
15261526**************************************************************************/
15271527
1528INPUT_PORTS_START( armchmp2 )
1528static INPUT_PORTS_START( armchmp2 )
15291529   PORT_START_TAG("IN0")   // Buttons + Sensors
15301530   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_SPECIAL  ) // left   sensor
15311531   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_SPECIAL  ) // right  sensor
src/mame/drivers/namcos22.c
r1238r1239
34763476
34773477/*******************************************************************/
34783478
3479INPUT_PORTS_START( alpiner )
3479static INPUT_PORTS_START( alpiner )
34803480   PORT_START
34813481   PORT_DIPNAME( 0x01, 0x01, "DIP4-1" )
34823482   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
35473547INPUT_PORTS_END /* Alpine Racer */
35483548
35493549
3550INPUT_PORTS_START( airco22 )
3550static INPUT_PORTS_START( airco22 )
35513551   PORT_START
35523552   PORT_DIPNAME( 0x01, 0x01, "DIP1" )
35533553   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
35993599   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_BUTTON3 )
36003600INPUT_PORTS_END /* Air Combat22 */
36013601
3602INPUT_PORTS_START( cybrcycc )
3602static INPUT_PORTS_START( cybrcycc )
36033603   PORT_START
36043604   PORT_DIPNAME( 0x01, 0x01, "DIP4-1 (Test Mode)" )
36053605   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
36493649   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
36503650INPUT_PORTS_END /* Cyber Cycles */
36513651
3652INPUT_PORTS_START( propcycl )
3652static INPUT_PORTS_START( propcycl )
36533653   PORT_START /* DIP4 */
36543654   PORT_DIPNAME( 0x01, 0x01, "DIP1" )
36553655   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
37113711   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
37123712INPUT_PORTS_END /* Prop Cycle */
37133713
3714INPUT_PORTS_START( cybrcomm )
3714static INPUT_PORTS_START( cybrcomm )
37153715   PORT_START
37163716   PORT_DIPNAME( 0x0001, 0x0001, "DIP2-1" )
37173717   PORT_DIPSETTING(    0x0001, DEF_STR( Off ) )
r1238r1239
37903790   PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_X ) PORT_SENSITIVITY(   100) PORT_KEYDELTA(4) PORT_PLAYER(2)   /* left joystick: horizontal */
37913791INPUT_PORTS_END /* Cyber Commando */
37923792
3793INPUT_PORTS_START( timecris )
3793static INPUT_PORTS_START( timecris )
37943794   PORT_START
37953795   PORT_DIPNAME( 0x01, 0x01, "DIP4-1" )
37963796   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
38363836
38373837/*****************************************************************************************************/
38383838
3839INPUT_PORTS_START( acedrvr )
3839static INPUT_PORTS_START( acedrvr )
38403840   PORT_START /* 0: DIP2 and DIP3 */
38413841   PORT_DIPNAME( 0x0001, 0x0001, "DIP2-1" )
38423842   PORT_DIPSETTING(    0x0001, DEF_STR( Off ) )
r1238r1239
39103910   DRIVING_ANALOG_PORTS
39113911INPUT_PORTS_END /* Ace Driver */
39123912
3913INPUT_PORTS_START( victlap )
3913static INPUT_PORTS_START( victlap )
39143914   PORT_START /* 0: DIP2 and DIP3 */
39153915   PORT_DIPNAME( 0x0001, 0x0001, "DIP2-1" )
39163916   PORT_DIPSETTING(    0x0001, DEF_STR( Off ) )
r1238r1239
39863986   DRIVING_ANALOG_PORTS
39873987INPUT_PORTS_END /* Victory Lap */
39883988
3989INPUT_PORTS_START( ridgera )
3989static INPUT_PORTS_START( ridgera )
39903990   PORT_START /* 0: DIP2 and DIP3 */
39913991   PORT_DIPNAME( 0x0001, 0x0001, "DIP2-1 (test mode?)" )
39923992   PORT_DIPSETTING(    0x0001, DEF_STR( Off ) )
r1238r1239
40614061   DRIVING_ANALOG_PORTS
40624062INPUT_PORTS_END /* Ridge Racer */
40634063
4064INPUT_PORTS_START( raveracw )
4064static INPUT_PORTS_START( raveracw )
40654065   PORT_START
40664066   PORT_DIPNAME( 0x0001, 0x0001, "DIP2-1 (test mode)" )
40674067   PORT_DIPSETTING(    0x0001, DEF_STR( Off ) )
r1238r1239
43894389//GAME( 1996, tokyowrx, "Tokyo Wars")
43904390//GAME( 1996, aquajetx, "Aqua Jet")
43914391//GAME( 1997, armdilox, "Armidillo Racing")
4392//GAME( 199?, downhbkx, "Downhill Bikers")
src/mame/drivers/flyball.c
r1238r1239
175175ADDRESS_MAP_END
176176
177177
178INPUT_PORTS_START( flyball )
178static INPUT_PORTS_START( flyball )
179179   PORT_START /* IN0 */
180180   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START2 )
181181   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/redclash.c
r1238r1239
111111
112112
113113
114INPUT_PORTS_START( redclash )
114static INPUT_PORTS_START( redclash )
115115   PORT_START   /* IN0 */
116116   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
117117   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
204204   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1)
205205INPUT_PORTS_END
206206
207INPUT_PORTS_START( zerohour )
207static INPUT_PORTS_START( zerohour )
208208   PORT_START   /* IN0 */
209209   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
210210   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/vicdual.c
r1238r1239
311311ADDRESS_MAP_END
312312
313313
314INPUT_PORTS_START( depthch )
314static INPUT_PORTS_START( depthch )
315315   PORT_START_TAG("IN0")
316316   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 )
317317   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
397397ADDRESS_MAP_END
398398
399399
400INPUT_PORTS_START( safari )
400static INPUT_PORTS_START( safari )
401401   PORT_START_TAG("IN0")
402402   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
403403   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
481481ADDRESS_MAP_END
482482
483483
484INPUT_PORTS_START( frogs )
484static INPUT_PORTS_START( frogs )
485485   PORT_START_TAG("IN0")
486486   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY   /* The original joystick was a 3-way */
487487   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY   /* stick, of which Mame's 4-way does */
r1238r1239
617617ADDRESS_MAP_END
618618
619619
620INPUT_PORTS_START( headon )
620static INPUT_PORTS_START( headon )
621621   PORT_START_TAG("IN0")
622622   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) )
623623   PORT_DIPSETTING(    0x00, "3" )
r1238r1239
644644INPUT_PORTS_END
645645
646646
647INPUT_PORTS_START( supcrash )
647static INPUT_PORTS_START( supcrash )
648648   PORT_START_TAG("IN0")
649649   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY
650650   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP) PORT_4WAY
r1238r1239
675675INPUT_PORTS_END
676676
677677
678INPUT_PORTS_START( sspaceat )
678static INPUT_PORTS_START( sspaceat )
679679   PORT_START_TAG("IN0")
680680   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY
681681   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
840840ADDRESS_MAP_END
841841
842842
843INPUT_PORTS_START( headon2 )
843static INPUT_PORTS_START( headon2 )
844844   PORT_START_TAG("IN0")
845845   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
846846   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
872872INPUT_PORTS_END
873873
874874/* this actually seems to ignore the dipswitches and is hardcoded to 2 coins 1 credit, and 2 lives */
875INPUT_PORTS_START( car2 )
875static INPUT_PORTS_START( car2 )
876876   PORT_START_TAG("IN0")
877877   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
878878   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
904904   PORT_COIN
905905INPUT_PORTS_END
906906
907INPUT_PORTS_START( digger )
907static INPUT_PORTS_START( digger )
908908   PORT_START_TAG("IN0")
909909   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
910910   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
12581258ADDRESS_MAP_END
12591259
12601260
1261INPUT_PORTS_START( invho2 )
1261static INPUT_PORTS_START( invho2 )
12621262   PORT_START_TAG("IN0")
12631263   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* probably unused */
12641264   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* probably unused */
r1238r1239
13121312INPUT_PORTS_END
13131313
13141314
1315INPUT_PORTS_START( invds )
1315static INPUT_PORTS_START( invds )
13161316   PORT_START_TAG("IN0")
13171317   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* probably unused */
13181318   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* probably unused */
r1238r1239
13641364INPUT_PORTS_END
13651365
13661366
1367INPUT_PORTS_START( sspacaho )
1367static INPUT_PORTS_START( sspacaho )
13681368   PORT_START_TAG("IN0")
13691369   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
13701370   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
r1238r1239
14151415INPUT_PORTS_END
14161416
14171417
1418INPUT_PORTS_START( tranqgun )
1418static INPUT_PORTS_START( tranqgun )
14191419   PORT_START_TAG("IN0")
14201420   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
14211421   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
r1238r1239
14661466INPUT_PORTS_END
14671467
14681468
1469INPUT_PORTS_START( spacetrk )
1469static INPUT_PORTS_START( spacetrk )
14701470   PORT_START_TAG("IN0")
14711471   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* probably unused */
14721472   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* probably unused */
r1238r1239
15171517INPUT_PORTS_END
15181518
15191519
1520INPUT_PORTS_START( sptrekct )
1520static INPUT_PORTS_START( sptrekct )
15211521   PORT_START_TAG("IN0")
15221522   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL
15231523   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
r1238r1239
15681568INPUT_PORTS_END
15691569
15701570
1571INPUT_PORTS_START( carnival )
1571static INPUT_PORTS_START( carnival )
15721572   PORT_START_TAG("IN0")
15731573   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */
15741574   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */
r1238r1239
16211621INPUT_PORTS_END
16221622
16231623
1624INPUT_PORTS_START( carnvckt )
1624static INPUT_PORTS_START( carnvckt )
16251625   PORT_START_TAG("IN0")
16261626   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* probably unused */
16271627   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
r1238r1239
16741674INPUT_PORTS_END
16751675
16761676
1677INPUT_PORTS_START( brdrline )
1677static INPUT_PORTS_START( brdrline )
16781678   PORT_START_TAG("IN0")
16791679   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
16801680   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
r1238r1239
17301730INPUT_PORTS_END
17311731
17321732
1733INPUT_PORTS_START( pulsar )
1733static INPUT_PORTS_START( pulsar )
17341734   PORT_START_TAG("IN0")
17351735   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* probably unused */
17361736   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* probably unused */
r1238r1239
17811781INPUT_PORTS_END
17821782
17831783
1784INPUT_PORTS_START( heiankyo )
1784static INPUT_PORTS_START( heiankyo )
17851785   PORT_START_TAG("IN0")
17861786   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
17871787   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
r1238r1239
18321832INPUT_PORTS_END
18331833
18341834
1835INPUT_PORTS_START( alphaho )
1835static INPUT_PORTS_START( alphaho )
18361836   PORT_START_TAG("IN0")
18371837   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
18381838   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
r1238r1239
20792079ADDRESS_MAP_END
20802080
20812081
2082INPUT_PORTS_START( samurai )
2082static INPUT_PORTS_START( samurai )
20832083   PORT_START_TAG("IN0")
20842084   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */
20852085   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */
r1238r1239
21952195ADDRESS_MAP_END
21962196
21972197
2198INPUT_PORTS_START( nsub )
2198static INPUT_PORTS_START( nsub )
21992199   PORT_START_TAG("IN0")
22002200   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
22012201   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
22952295ADDRESS_MAP_END
22962296
22972297
2298INPUT_PORTS_START( invinco )
2298static INPUT_PORTS_START( invinco )
22992299   PORT_START_TAG("IN0")
23002300   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
23012301   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/xybots.c
r1238r1239
109109 *
110110 *************************************/
111111
112INPUT_PORTS_START( xybots )
112static INPUT_PORTS_START( xybots )
113113   PORT_START   /* ffe100 */
114114   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START2 )
115115   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
src/mame/drivers/rockola.c
r1238r1239
315315/* Input Ports */
316316
317317/* Derived from Zarzon. Might not reflect the actual hardware. */
318INPUT_PORTS_START( sasuke )
318static INPUT_PORTS_START( sasuke )
319319   PORT_START  // IN0
320320   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY
321321   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY
r1238r1239
363363   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* connected to a binary counter */
364364INPUT_PORTS_END
365365
366INPUT_PORTS_START( satansat )
366static INPUT_PORTS_START( satansat )
367367   PORT_START  // IN0
368368   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY
369369   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY
r1238r1239
410410   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* connected to a binary counter */
411411INPUT_PORTS_END
412412
413INPUT_PORTS_START( vanguard )
413static INPUT_PORTS_START( vanguard )
414414   PORT_START   // IN0
415415   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON3 )
416416   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON4 )
r1238r1239
472472   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START1 )
473473INPUT_PORTS_END
474474
475INPUT_PORTS_START( fantasy )
475static INPUT_PORTS_START( fantasy )
476476   PORT_START   // IN0
477477   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
478478   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN )
r1238r1239
536536   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START1 )
537537INPUT_PORTS_END
538538
539INPUT_PORTS_START( nibbler )
539static INPUT_PORTS_START( nibbler )
540540   PORT_START   // IN0
541541   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Debug 0") PORT_CODE(KEYCODE_Z) // slow down
542542   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Debug 1") PORT_CODE(KEYCODE_X)
r1238r1239
590590   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START1 )
591591INPUT_PORTS_END
592592
593INPUT_PORTS_START( pballoon )
593static INPUT_PORTS_START( pballoon )
594594   PORT_START   // IN0
595595   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
596596   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN )
src/mame/drivers/magicfly.c
r1238r1239
468468*      Input ports       *
469469*************************/
470470
471INPUT_PORTS_START( magicfly )
471static INPUT_PORTS_START( magicfly )
472472/*  Multiplexed 4 x 5 bits.
473473    Code accept only bits 0, 1, 2, 3 and 5 as valid. */
474474   PORT_START_TAG("IN0-0")
r1238r1239
530530   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
531531INPUT_PORTS_END
532532
533INPUT_PORTS_START( 7mezzo )
533static INPUT_PORTS_START( 7mezzo )
534534/*  Multiplexed 4 x 5 bits.
535535    Code accept only bits 0, 1, 2, 3 and 5 as valid. */
536536   PORT_START_TAG("IN0-0")
src/mame/drivers/centiped.c
r1238r1239
820820
821821#define PORTS(GAMENAME, FOURTH_LANGUAGE)                              \
822822                                                            \
823INPUT_PORTS_START( GAMENAME )                                       \
823static INPUT_PORTS_START( GAMENAME )                                       \
824824   PORT_START   /* IN0 */                                          \
825825   PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* trackball data */      \
826826   PORT_DIPNAME( 0x10, 0x00, DEF_STR( Cabinet ))                        \
r1238r1239
917917PORTS(caterplr, DEF_STR( Italian ))
918918
919919
920INPUT_PORTS_START( centtime )
920static INPUT_PORTS_START( centtime )
921921   PORT_START   /* IN0 */
922922   PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* trackball data */
923923   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED )
r1238r1239
10071007INPUT_PORTS_END
10081008
10091009
1010INPUT_PORTS_START( magworm )
1010static INPUT_PORTS_START( magworm )
10111011   PORT_START   /* IN0 */
10121012   PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* trackball data */
10131013   PORT_DIPNAME( 0x10, 0x00, DEF_STR( Cabinet ))
r1238r1239
10941094INPUT_PORTS_END
10951095
10961096
1097INPUT_PORTS_START( milliped )
1097static INPUT_PORTS_START( milliped )
10981098   PORT_START   /* IN0 $2000 */ /* see port 6 for x trackball */
10991099   PORT_DIPNAME(0x03, 0x00, DEF_STR( Language ) ) PORT_DIPLOCATION("P8:1,2")
11001100   PORT_DIPSETTING(   0x00, DEF_STR( English ) )
r1238r1239
12101210INPUT_PORTS_END
12111211
12121212
1213INPUT_PORTS_START( warlords )
1213static INPUT_PORTS_START( warlords )
12141214   PORT_START   /* IN0 */
12151215   PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNUSED )
12161216   PORT_DIPNAME( 0x10, 0x00, "Diag Step" )  /* Not referenced */
r1238r1239
12831283INPUT_PORTS_END
12841284
12851285
1286INPUT_PORTS_START( bullsdrt )
1286static INPUT_PORTS_START( bullsdrt )
12871287   PORT_START   /* IN0 */
12881288   PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* trackball data */
12891289   PORT_BIT( 0x30, IP_ACTIVE_LOW,  IPT_UNKNOWN )
src/mame/drivers/atarisy1.c
r1238r1239
505505 *
506506 *************************************/
507507
508INPUT_PORTS_START( marble )
508static INPUT_PORTS_START( marble )
509509   PORT_START  /* F20000 */
510510    PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(30) PORT_KEYDELTA(30) PORT_REVERSE PORT_PLAYER(1)
511511
r1238r1239
540540INPUT_PORTS_END
541541
542542
543INPUT_PORTS_START( peterpak )
543static INPUT_PORTS_START( peterpak )
544544   PORT_START   /* F40000 */
545545   PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNUSED )
546546   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP )
r1238r1239
580580INPUT_PORTS_END
581581
582582
583INPUT_PORTS_START( indytemp )
583static INPUT_PORTS_START( indytemp )
584584   PORT_START   /* F40000 */
585585   PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNUSED )
586586   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP )
r1238r1239
620620INPUT_PORTS_END
621621
622622
623INPUT_PORTS_START( roadrunn )
623static INPUT_PORTS_START( roadrunn )
624624   PORT_START   /* F40000 */
625625   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_MINMAX(0x10,0xf0) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_PLAYER(1)
626626
r1238r1239
656656INPUT_PORTS_END
657657
658658
659INPUT_PORTS_START( roadblst )
659static INPUT_PORTS_START( roadblst )
660660   PORT_START   /* F20000 */
661661   PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_REVERSE
662662
src/mame/drivers/wgp.c
r1238r1239
741741                      INPUT PORTS, DIPs
742742***********************************************************/
743743
744INPUT_PORTS_START( wgp_joy_generic )
744static INPUT_PORTS_START( wgp_joy_generic )
745745   PORT_START_TAG("DSWA")
746746   PORT_DIPNAME( 0x01, 0x01, "Gear Shift" )                     /* see notes */
747747   PORT_DIPSETTING(    0x01, DEF_STR( Normal ) )
r1238r1239
803803   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
804804INPUT_PORTS_END
805805
806INPUT_PORTS_START( wgp_no_joy_generic )
806static INPUT_PORTS_START( wgp_no_joy_generic )
807807   PORT_INCLUDE(wgp_joy_generic)
808808
809809   PORT_MODIFY("DSWB")
r1238r1239
852852INPUT_PORTS_END
853853
854854
855INPUT_PORTS_START( wgp )
855static INPUT_PORTS_START( wgp )
856856   PORT_INCLUDE(wgp_no_joy_generic)
857857
858858   /* 0x180000 -> 0x10bf16 and 0x140010 (shared RAM) */
r1238r1239
866866   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON6 ) PORT_PLAYER(1)                    /* "brake lump" (lamp?) - test mode only */
867867INPUT_PORTS_END
868868
869INPUT_PORTS_START( wgpj )
869static INPUT_PORTS_START( wgpj )
870870   PORT_INCLUDE(wgp)
871871
872872   PORT_MODIFY("DSWA")
873873   TAITO_COINAGE_JAPAN_NEW
874874INPUT_PORTS_END
875875
876INPUT_PORTS_START( wgpjoy )
876static INPUT_PORTS_START( wgpjoy )
877877   PORT_INCLUDE(wgp_joy_generic)
878878
879879   /* 0x180000 -> 0x10bf1a and 0x140010 (shared RAM) */
r1238r1239
883883   /* 0x180002 -> 0x10bf1c and 0x140012 (shared RAM) : DSWB*/
884884INPUT_PORTS_END
885885
886INPUT_PORTS_START( wgp2 )
886static INPUT_PORTS_START( wgp2 )
887887   PORT_INCLUDE(wgp_no_joy_generic)
888888
889889   /* 0x180000 -> 0x107d3a.b (-$2c6,A5) and 0x140018 (shared RAM) */
src/mame/drivers/turbosub.c
r1238r1239
178178       FDT_B[offset] = data;
179179}
180180
181INPUT_PORTS_START( turbosub )
181static INPUT_PORTS_START( turbosub )
182182PORT_START
183183INPUT_PORTS_END
184184
src/mame/drivers/welltris.c
r1238r1239
431431
432432
433433
434INPUT_PORTS_START( welltris )
434static INPUT_PORTS_START( welltris )
435435   PORT_START
436436   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
437437   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
591591     PORT_SERVICE( 0x0080, IP_ACTIVE_LOW )
592592INPUT_PORTS_END
593593
594INPUT_PORTS_START( quiz18k )
594static INPUT_PORTS_START( quiz18k )
595595   PORT_START
596596   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
597597   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/sprint8.c
r1238r1239
210210ADDRESS_MAP_END
211211
212212
213INPUT_PORTS_START( sprint8 )
213static INPUT_PORTS_START( sprint8 )
214214
215215   PORT_START
216216   PORT_BIT ( 0x01, IP_ACTIVE_LOW,  IPT_COIN1 )
r1238r1239
345345INPUT_PORTS_END
346346
347347
348INPUT_PORTS_START( sprint8p )
348static INPUT_PORTS_START( sprint8p )
349349
350350   PORT_START
351351   PORT_BIT ( 0x01, IP_ACTIVE_LOW,  IPT_COIN1 )
src/mame/drivers/pturn.c
r1238r1239
350350   GFXDECODE_ENTRY( REGION_GFX3, 0, spritelayout, 0x000, 32 )
351351GFXDECODE_END
352352
353INPUT_PORTS_START( pturn )
353static INPUT_PORTS_START( pturn )
354354   PORT_START_TAG("IN0")
355355   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT )    PORT_8WAY PORT_PLAYER(1)
356356   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT )    PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/gumbo.c
r1238r1239
108108   AM_RANGE(0x1f0000, 0x1f0fff) AM_WRITE(gumbo_bg_videoram_w) AM_BASE(&gumbo_bg_videoram) // bg tilemap
109109ADDRESS_MAP_END
110110
111INPUT_PORTS_START( gumbo )
111static INPUT_PORTS_START( gumbo )
112112   PORT_START   /* DSW */
113113   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
114114   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
151151   PORT_SERVICE( 0x8000, IP_ACTIVE_LOW )
152152INPUT_PORTS_END
153153
154INPUT_PORTS_START( msbingo )
154static INPUT_PORTS_START( msbingo )
155155   PORT_START   /* DSW */
156156   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
157157   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
194194   PORT_SERVICE( 0x8000, IP_ACTIVE_LOW )
195195INPUT_PORTS_END
196196
197INPUT_PORTS_START( mspuzzle )
197static INPUT_PORTS_START( mspuzzle )
198198   PORT_START   /* DSW */
199199   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
200200   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
237237   PORT_SERVICE( 0x8000, IP_ACTIVE_LOW )
238238INPUT_PORTS_END
239239
240INPUT_PORTS_START( dblpoint )
240static INPUT_PORTS_START( dblpoint )
241241   PORT_START   /* Inputs */
242242   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
243243   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
src/mame/drivers/getrivia.c
r1238r1239
241241ADDRESS_MAP_END
242242
243243
244INPUT_PORTS_START( gselect )
244static INPUT_PORTS_START( gselect )
245245   PORT_START      /* DSW A */
246246   PORT_DIPNAME( 0x01, 0x01, "Poker: Discard Cards" )
247247   PORT_DIPSETTING(    0x01, "5" )
r1238r1239
292292   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
293293INPUT_PORTS_END
294294
295INPUT_PORTS_START( gepoker )
295static INPUT_PORTS_START( gepoker )
296296   PORT_INCLUDE( gselect )
297297
298298   PORT_MODIFY("IN0")
r1238r1239
300300   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* no button 12 */
301301INPUT_PORTS_END
302302
303INPUT_PORTS_START( getrivia )
303static INPUT_PORTS_START( getrivia )
304304   PORT_START_TAG("DSWA")
305305   PORT_DIPNAME( 0x03, 0x01, "Questions" )
306306   PORT_DIPSETTING(    0x00, "4" )
r1238r1239
350350
351351INPUT_PORTS_END
352352
353INPUT_PORTS_START( sextriv1 )
353static INPUT_PORTS_START( sextriv1 )
354354   PORT_INCLUDE( getrivia )
355355
356356   PORT_MODIFY("IN0")
src/mame/drivers/dec0.c
r1238r1239
410410   PORT_DIPSETTING(    0x0c, DEF_STR( 1C_1C ) ) \
411411   PORT_DIPSETTING(    0x08, DEF_STR( 1C_2C ) ) \
412412
413INPUT_PORTS_START( hbarrel )
413static INPUT_PORTS_START( hbarrel )
414414   DEC0_PLAYER1_CONTROL
415415   DEC0_PLAYER2_CONTROL
416416   DEC0_MACHINE_CONTROL
r1238r1239
467467   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)
468468INPUT_PORTS_END
469469
470INPUT_PORTS_START( birdtry )
470static INPUT_PORTS_START( birdtry )
471471   DEC0_PLAYER1_CONTROL
472472   DEC0_PLAYER2_CONTROL
473473   DEC0_MACHINE_CONTROL
r1238r1239
518518   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)
519519INPUT_PORTS_END
520520
521INPUT_PORTS_START( baddudes )
521static INPUT_PORTS_START( baddudes )
522522   DEC0_PLAYER1_CONTROL
523523   DEC0_PLAYER2_CONTROL
524524   DEC0_MACHINE_CONTROL
r1238r1239
567567   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* unused */
568568INPUT_PORTS_END
569569
570INPUT_PORTS_START( robocop )
570static INPUT_PORTS_START( robocop )
571571   DEC0_PLAYER1_CONTROL
572572   DEC0_PLAYER2_CONTROL
573573   DEC0_MACHINE_CONTROL
r1238r1239
612612   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
613613INPUT_PORTS_END
614614
615INPUT_PORTS_START( hippodrm )
615static INPUT_PORTS_START( hippodrm )
616616   DEC0_PLAYER1_CONTROL
617617   DEC0_PLAYER2_CONTROL
618618   DEC0_MACHINE_CONTROL
r1238r1239
682682   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 )
683683
684684
685INPUT_PORTS_START( slyspy )
685static INPUT_PORTS_START( slyspy )
686686   DEC1_PLAYER1_CONTROL
687687   DEC1_PLAYER2_CONTROL
688688
r1238r1239
734734   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
735735INPUT_PORTS_END
736736
737INPUT_PORTS_START( midres )
737static INPUT_PORTS_START( midres )
738738   DEC1_PLAYER1_CONTROL
739739   DEC1_PLAYER2_CONTROL
740740
r1238r1239
794794   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)
795795INPUT_PORTS_END
796796
797INPUT_PORTS_START( bouldash )
797static INPUT_PORTS_START( bouldash )
798798   DEC1_PLAYER1_CONTROL
799799   DEC1_PLAYER2_CONTROL
800800
src/mame/drivers/ssv.c
r1238r1239
11241124                           Change Air Blade
11251125***************************************************************************/
11261126
1127INPUT_PORTS_START( cairblad )
1127static INPUT_PORTS_START( cairblad )
11281128   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" )
11301130   PORT_DIPSETTING(      0x0005, DEF_STR( 3C_1C ) )
11311131   PORT_DIPSETTING(      0x0006, DEF_STR( 2C_1C ) )
11321132   PORT_DIPSETTING(      0x0007, DEF_STR( 1C_1C ) )
r1238r1239
11351135   PORT_DIPSETTING(      0x0002, DEF_STR( 1C_4C ) )
11361136   PORT_DIPSETTING(      0x0001, DEF_STR( 1C_5C ) )
11371137   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" )
11391139   PORT_DIPSETTING(      0x0028, DEF_STR( 3C_1C ) )
11401140   PORT_DIPSETTING(      0x0030, DEF_STR( 2C_1C ) )
11411141   PORT_DIPSETTING(      0x0038, DEF_STR( 1C_1C ) )
r1238r1239
11441144   PORT_DIPSETTING(      0x0010, DEF_STR( 1C_4C ) )
11451145   PORT_DIPSETTING(      0x0008, DEF_STR( 1C_5C ) )
11461146   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" */
11531149
11541150   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" )
11561152   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
11571153   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" )
11591155   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
11601156   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" )
11621158   PORT_DIPSETTING(      0x0008, DEF_STR( Easy ) )
11631159   PORT_DIPSETTING(      0x000c, DEF_STR( Normal ) )
11641160   PORT_DIPSETTING(      0x0004, DEF_STR( Hard ) )
11651161   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" )
11671163   PORT_DIPSETTING(      0x0010, DEF_STR( Off ) )
11681164   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" )
11701166   PORT_DIPSETTING(      0x0040, "Every 2 Mil" )
11711167   PORT_DIPSETTING(      0x0060, "2 Mil/6 Mil" )
11721168   PORT_DIPSETTING(      0x0020, "4 Million" )
11731169   PORT_DIPSETTING(      0x0000, DEF_STR( None ) )
1174   PORT_SERVICE( 0x0080, IP_ACTIVE_LOW )
1170   PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "DSW2:8" )
11751171
11761172   PORT_START   // IN2
11771173   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
12061202                                Drift Out '94
12071203***************************************************************************/
12081204
1209INPUT_PORTS_START( drifto94 )
1205static INPUT_PORTS_START( drifto94 )
12101206   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" )
12121208   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
12131209   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" )
12161212   PORT_DIPSETTING(      0x0004, DEF_STR( Off ) )
12171213   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" )
12191215   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
12201216   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" )
12221218   PORT_DIPSETTING(      0x0010, DEF_STR( 2C_1C ) )
12231219   PORT_DIPSETTING(      0x0030, DEF_STR( 1C_1C ) )
12241220   PORT_DIPSETTING(      0x0000, DEF_STR( 2C_3C ) )
12251221   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" )
12271223   PORT_DIPSETTING(      0x0040, DEF_STR( 2C_1C ) )
12281224   PORT_DIPSETTING(      0x00c0, DEF_STR( 1C_1C ) )
12291225   PORT_DIPSETTING(      0x0000, DEF_STR( 2C_3C ) )
12301226   PORT_DIPSETTING(      0x0080, DEF_STR( 1C_2C ) )
12311227
12321228   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" )
12341230   PORT_DIPSETTING(      0x0003, DEF_STR( Normal ) )
12351231   PORT_DIPSETTING(      0x0002, DEF_STR( Easy ) )
12361232   PORT_DIPSETTING(      0x0001, DEF_STR( Hard ) )
12371233   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" )
12441237   PORT_DIPSETTING(      0x0000, "Quiet" )
12451238   PORT_DIPSETTING(      0x0010, "Loud" )
1246   PORT_DIPNAME( 0x0020, 0x0020, "Sound Volume" )
1239   PORT_DIPNAME( 0x0020, 0x0020, "Sound Volume" )         PORT_DIPLOCATION( "DSW2:6" )
12471240   PORT_DIPSETTING(      0x0000, "Quiet" )
12481241   PORT_DIPSETTING(      0x0020, "Loud" )
1249   PORT_DIPNAME( 0x0040, 0x0040, "Save Best Time" )
1242   PORT_DIPNAME( 0x0040, 0x0040, "Save Best Time" )      PORT_DIPLOCATION( "DSW2:7" )
12501243   PORT_DIPSETTING(      0x0000, DEF_STR( No ) )
12511244   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" */
12551246
12561247   PORT_START   // IN2 - $210008
12571248   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
12861277                                Eagle Shot Golf
12871278***************************************************************************/
12881279
1289INPUT_PORTS_START( eaglshot )
1280static INPUT_PORTS_START( eaglshot )
12901281   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" )
12921283   PORT_DIPSETTING(      0x0007, DEF_STR( 4C_1C ) )
12931284   PORT_DIPSETTING(      0x0008, DEF_STR( 3C_1C ) )
12941285   PORT_DIPSETTING(      0x0009, DEF_STR( 2C_1C ) )
r1238r1239
13111302   PORT_DIPSETTING(      0x0001, "Multiple Coin Feature E" )
13121303// 1c-1c, 2c-3c
13131304   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" )
13151306   PORT_DIPSETTING(      0x0010, "1" )
13161307   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
13191310   PORT_DIPSETTING(      0x0000, DEF_STR( Joystick ) )
1320   PORT_DIPNAME( 0x0040, 0x0040, "Trackball Type" )
1311   PORT_DIPNAME( 0x0040, 0x0040, "Trackball Type" )         PORT_DIPLOCATION( "DSW1:7" )
13211312   PORT_DIPSETTING(      0x0040, "24 Counts (USA)" )
13221313   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" )
13261315
13271316   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" )
13291318   PORT_DIPSETTING(      0x0002, "2" )
13301319   PORT_DIPSETTING(      0x0003, "3" )
13311320   PORT_DIPSETTING(      0x0001, "4" )
13321321   PORT_DIPSETTING(      0x0000, "5" )
1333   PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) // No listed value for ON & ON
1322   PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) )      PORT_DIPLOCATION( "DSW2:3,4" )
13341323   PORT_DIPSETTING(      0x0008, DEF_STR( Easy ) )
13351324   PORT_DIPSETTING(      0x000c, DEF_STR( Normal ) )
13361325   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" )
13381328   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
13391329   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" )
13411331   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
13421332   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" )
13441334   PORT_DIPSETTING(      0x0040, DEF_STR( Off ) )
13451335   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
1346   PORT_SERVICE( 0x0080, IP_ACTIVE_LOW )
1336   PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "DSW2:8" )
13471337
13481338   PORT_START   // IN2 - $210008
13491339   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
13861376                     Mobil Suit Gundam Final Shooting
13871377***************************************************************************/
13881378
1389INPUT_PORTS_START( gdfs )
1379static INPUT_PORTS_START( gdfs )
13901380   PORT_START   // IN0 - $210002
13911381   PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Controls ) )
13921382   PORT_DIPSETTING(      0x0001, DEF_STR( Joystick ) )
r1238r1239
14831473                                Hyper Reaction
14841474***************************************************************************/
14851475
1486INPUT_PORTS_START( hypreact )
1476static INPUT_PORTS_START( hypreact )
14871477   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" )
14891479   PORT_DIPSETTING(      0x0005, DEF_STR( 3C_1C ) )
14901480   PORT_DIPSETTING(      0x0006, DEF_STR( 2C_1C ) )
14911481   PORT_DIPSETTING(      0x0007, DEF_STR( 1C_1C ) )
r1238r1239
14941484   PORT_DIPSETTING(      0x0002, DEF_STR( 1C_4C ) )
14951485   PORT_DIPSETTING(      0x0001, DEF_STR( 1C_5C ) )
14961486   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" )
14981488   PORT_DIPSETTING(      0x0028, DEF_STR( 3C_1C ) )
14991489   PORT_DIPSETTING(      0x0030, DEF_STR( 2C_1C ) )
15001490   PORT_DIPSETTING(      0x0038, DEF_STR( 1C_1C ) )
r1238r1239
15031493   PORT_DIPSETTING(      0x0010, DEF_STR( 1C_4C ) )
15041494   PORT_DIPSETTING(      0x0008, DEF_STR( 1C_5C ) )
15051495   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" )
15071497   PORT_DIPSETTING(      0x0040, DEF_STR( No ) )
15081498   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" )
15101500   PORT_DIPSETTING(      0x0080, DEF_STR( Off ) )
15111501   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
15121502
15131503   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" )
15151505   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
15161506   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" )
15181508   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
15191509   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" )
15211511   PORT_DIPSETTING(      0x0008, DEF_STR( Easy )    )
15221512   PORT_DIPSETTING(      0x000c, DEF_STR( Normal )  )
15231513   PORT_DIPSETTING(      0x0004, DEF_STR( Hard )    )
15241514   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" )
15261516   PORT_DIPSETTING(      0x0010, "Keyboard" )
15271517   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" )
15351521
15361522   PORT_START   // IN2 - $210008 (used in joystick mode)
15371523   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
15991585                                Hyper Reaction 2
16001586***************************************************************************/
16011587
1602INPUT_PORTS_START( hypreac2 )
1588static INPUT_PORTS_START( hypreac2 )
16031589   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" )
16051591   PORT_DIPSETTING(      0x0005, DEF_STR( 3C_1C ) )
16061592   PORT_DIPSETTING(      0x0006, DEF_STR( 2C_1C ) )
16071593   PORT_DIPSETTING(      0x0007, DEF_STR( 1C_1C ) )
r1238r1239
16101596   PORT_DIPSETTING(      0x0002, DEF_STR( 1C_4C ) )
16111597   PORT_DIPSETTING(      0x0001, DEF_STR( 1C_5C ) )
16121598   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" )
16141600   PORT_DIPSETTING(      0x0028, DEF_STR( 3C_1C ) )
16151601   PORT_DIPSETTING(      0x0030, DEF_STR( 2C_1C ) )
16161602   PORT_DIPSETTING(      0x0038, DEF_STR( 1C_1C ) )
r1238r1239
16191605   PORT_DIPSETTING(      0x0010, DEF_STR( 1C_4C ) )
16201606   PORT_DIPSETTING(      0x0008, DEF_STR( 1C_5C ) )
16211607   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" )
16231609   PORT_DIPSETTING(      0x0040, DEF_STR( No ) )
16241610   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" )
16261612   PORT_DIPSETTING(      0x0080, DEF_STR( Off ) )
16271613   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
16281614
16291615   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" )
16311617   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
16321618   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" )
16341620   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
16351621   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" )
16371623   PORT_DIPSETTING(      0x0008, DEF_STR( Easy ) )
16381624   PORT_DIPSETTING(      0x000c, DEF_STR( Normal ) )
16391625   PORT_DIPSETTING(      0x0004, DEF_STR( Hard ) )
16401626   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" )
16421628   PORT_DIPSETTING(      0x0010, "Keyboard" )
16431629   PORT_DIPSETTING(      0x0000, DEF_STR( Joystick ) )
1644   PORT_DIPNAME( 0x0020, 0x0020, "Communication 1" )
1630   PORT_DIPNAME( 0x0020, 0x0020, "Communication 1" )         PORT_DIPLOCATION( "DSWB:6" )
16451631   PORT_DIPSETTING(      0x0020, DEF_STR( Off ) )
16461632   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
1647   PORT_DIPNAME( 0x0040, 0x0040, "Communication 2" )
1633   PORT_DIPNAME( 0x0040, 0x0040, "Communication 2" )         PORT_DIPLOCATION( "DSWB:7" )
16481634   PORT_DIPSETTING(      0x0040, DEF_STR( Off ) )
16491635   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
1650   PORT_SERVICE( 0x0080, IP_ACTIVE_LOW )
1636   PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "DSWB:8" )
16511637
16521638   PORT_START   // IN2 - $210008
16531639   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
17141700                                JangJang Shimasho
17151701***************************************************************************/
17161702
1717INPUT_PORTS_START( janjans1 )
1703static INPUT_PORTS_START( janjans1 )
17181704   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" )
17231707   PORT_DIPSETTING(      0x0002, DEF_STR( Off ) )
17241708   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" )
17271711   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
17281712   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" )
17301714   PORT_DIPSETTING(      0x0010, DEF_STR( 2C_1C ) )
17311715   PORT_DIPSETTING(      0x0030, DEF_STR( 1C_1C ) )
17321716   PORT_DIPSETTING(      0x0000, DEF_STR( 2C_3C ) )
17331717   PORT_DIPSETTING(      0x0020, DEF_STR( 1C_2C ) )
1734   PORT_DIPNAME( 0x0040, 0x0040, "Voice" )
1718   PORT_DIPNAME( 0x0040, 0x0040, "Voice" )               PORT_DIPLOCATION( "DSW1:7" )
17351719   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
17361720   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" )
17401722
17411723   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" )
17431725   PORT_DIPSETTING(      0x0002, DEF_STR( Easy ) )
17441726   PORT_DIPSETTING(      0x0003, DEF_STR( Normal ) )
17451727   PORT_DIPSETTING(      0x0001, DEF_STR( Hard ) )
17461728   PORT_DIPSETTING(      0x0000, DEF_STR( Hardest ) )
1747   PORT_DIPNAME( 0x0004, 0x0004, "Nudity" )
1729   PORT_DIPNAME( 0x0004, 0x0004, "Nudity" )            PORT_DIPLOCATION( "DSW2:3" )
17481730   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
17491731   PORT_DIPSETTING(      0x0004, DEF_STR( On ) )
1750   PORT_DIPNAME( 0x0008, 0x0008, "Mini Game" )
1732   PORT_DIPNAME( 0x0008, 0x0008, "Mini Game" )            PORT_DIPLOCATION( "DSW2:4" )
17511733   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
17521734   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" )
17541736   PORT_DIPSETTING(      0x0020, "1000" )
17551737   PORT_DIPSETTING(      0x0030, "1500" )
17561738   PORT_DIPSETTING(      0x0010, "2000" )
17571739   PORT_DIPSETTING(      0x0000, "3000" )
1758   PORT_DIPNAME( 0x00c0, 0x00c0, "Communication" )
1740   PORT_DIPNAME( 0x00c0, 0x00c0, "Communication" )         PORT_DIPLOCATION( "DSW2:7,8" )
17591741//  PORT_DIPSETTING(      0x0080, "unused" )
17601742   PORT_DIPSETTING(      0x00c0, DEF_STR( None ) )
17611743   PORT_DIPSETTING(      0x0040, "Board 1 (Main)" )
r1238r1239
18201802                           Joryuu Syougi Kyoushitsu
18211803***************************************************************************/
18221804
1823INPUT_PORTS_START( jsk )
1805static INPUT_PORTS_START( jsk )
18241806   PORT_START   // IN0 - $210002
18251807   PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coinage ) )
18261808   PORT_DIPSETTING(      0x0000, DEF_STR( 5C_1C ) )
r1238r1239
19021884                                Keith & Lucy
19031885***************************************************************************/
19041886
1905INPUT_PORTS_START( keithlcy )
1887static INPUT_PORTS_START( keithlcy )
19061888   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" )
19111891   PORT_DIPSETTING(      0x0002, DEF_STR( Off ) )
19121892   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" )
19151895   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
19161896   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" )
19181898   PORT_DIPSETTING(      0x0010, DEF_STR( 2C_1C ) )
19191899   PORT_DIPSETTING(      0x0030, DEF_STR( 1C_1C ) )
19201900   PORT_DIPSETTING(      0x0000, DEF_STR( 2C_3C ) )
19211901   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" )
19231903   PORT_DIPSETTING(      0x0040, DEF_STR( 2C_1C ) )
19241904   PORT_DIPSETTING(      0x00c0, DEF_STR( 1C_1C ) )
19251905   PORT_DIPSETTING(      0x0000, DEF_STR( 2C_3C ) )
19261906   PORT_DIPSETTING(      0x0080, DEF_STR( 1C_2C ) )
19271907
19281908   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" )
19301910   PORT_DIPSETTING(      0x0002, DEF_STR( Easy ) )      // 15 sec
19311911   PORT_DIPSETTING(      0x0003, DEF_STR( Normal )   )    // 12
19321912   PORT_DIPSETTING(      0x0001, DEF_STR( Hard ) )      // 10
19331913   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" )
19351915   PORT_DIPSETTING(      0x0008, "2" )
19361916   PORT_DIPSETTING(      0x000c, "3" )
19371917   PORT_DIPSETTING(      0x0004, "4" )
19381918   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" )
19401920   PORT_DIPSETTING(      0x0030, "Every 100k" )      //100
19411921   PORT_DIPSETTING(      0x0020, "Every 150k" )      //150
19421922   PORT_DIPSETTING(      0x0010, "100k & Every 200K" )   //100
19431923   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" */
19501926
19511927   PORT_START   // IN2 - $210008
19521928   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1  )
r1238r1239
19811957                            Koi Koi Simasho 2
19821958***************************************************************************/
19831959
1984INPUT_PORTS_START( koikois2 )
1960static INPUT_PORTS_START( koikois2 )
19851961   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" )
19901964   PORT_DIPSETTING(      0x0002, DEF_STR( Off ) )
19911965   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" )
19941968   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
19951969   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" )
19971971   PORT_DIPSETTING(      0x0010, DEF_STR( 2C_1C ) )
19981972   PORT_DIPSETTING(      0x0030, DEF_STR( 1C_1C ) )
19991973   PORT_DIPSETTING(      0x0000, DEF_STR( 2C_3C ) )
20001974   PORT_DIPSETTING(      0x0020, DEF_STR( 1C_2C ) )
2001   PORT_DIPNAME( 0x0040, 0x0040, "Voice" )
1975   PORT_DIPNAME( 0x0040, 0x0040, "Voice" )               PORT_DIPLOCATION( "DSW1:7" )
20021976   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
20031977   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" )
20051979   PORT_DIPSETTING(      0x0080, DEF_STR( Joystick ) )
20061980   PORT_DIPSETTING(      0x0000, "Keyboard" )
20071981
20081982   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" )
20101984   PORT_DIPSETTING(      0x0002, DEF_STR( Easy ) )
20111985   PORT_DIPSETTING(      0x0003, DEF_STR( Normal ) )
20121986   PORT_DIPSETTING(      0x0001, DEF_STR( Hard ) )
20131987   PORT_DIPSETTING(      0x0000, DEF_STR( Hardest ) )
2014   PORT_DIPNAME( 0x0004, 0x0004, "Nudity" )
1988   PORT_DIPNAME( 0x0004, 0x0004, "Nudity" )            PORT_DIPLOCATION( "DSW2:3" )
20151989   PORT_DIPSETTING(      0x0000, DEF_STR( No ) )
20161990   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" )
20271995//  PORT_DIPSETTING(      0x0080, "unused" )
20281996   PORT_DIPSETTING(      0x00c0, DEF_STR( None ) )
20291997   PORT_DIPSETTING(      0x0040, "Board 1 (Main)" )
r1238r1239
21022070                                Meosis Magic
21032071***************************************************************************/
21042072
2105INPUT_PORTS_START( meosism )
2073static INPUT_PORTS_START( meosism )
21062074   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" )
21082076   PORT_DIPSETTING(      0x0003, "1 Medal/1 Credit" )
21092077   PORT_DIPSETTING(      0x0001, "1 Medal/5 Credits" )
21102078   PORT_DIPSETTING(      0x0002, "1 Medal/10 Credits" )
21112079   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" )
21132081   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
21142082   PORT_DIPSETTING(      0x0004, DEF_STR( On ) )
2115   PORT_DIPNAME( 0x0008, 0x0008, "Attendant Pay" )
2083   PORT_DIPNAME( 0x0008, 0x0008, "Attendant Pay" )         PORT_DIPLOCATION( "DSW1:4" )
21162084   PORT_DIPSETTING(      0x0000, DEF_STR( No ) )
21172085   PORT_DIPSETTING(      0x0008, DEF_STR( Yes ) )
2118   PORT_DIPNAME( 0x0010, 0x0010, "Medals Payout" )
2086   PORT_DIPNAME( 0x0010, 0x0010, "Medals Payout" )         PORT_DIPLOCATION( "DSW1:5" )
21192087   PORT_DIPSETTING(      0x0010, "400" )
21202088   PORT_DIPSETTING(      0x0000, "800" )
2121   PORT_DIPNAME( 0x0020, 0x0020, "Max Credits" )
2089   PORT_DIPNAME( 0x0020, 0x0020, "Max Credits" )         PORT_DIPLOCATION( "DSW1:6" )
21222090   PORT_DIPSETTING(      0x0020, "5000" )
21232091   PORT_DIPSETTING(      0x0000, "9999" )
2124   PORT_DIPNAME( 0x0040, 0x0040, "Hopper" )
2092   PORT_DIPNAME( 0x0040, 0x0040, "Hopper" )            PORT_DIPLOCATION( "DSW1:7" )
21252093   PORT_DIPSETTING(      0x0000, DEF_STR( No ) )
21262094   PORT_DIPSETTING(      0x0040, DEF_STR( Yes ) )
2127   PORT_DIPNAME( 0x0080, 0x0080, "Reel Speed" )
2095   PORT_DIPNAME( 0x0080, 0x0080, "Reel Speed" )         PORT_DIPLOCATION( "DSW1:8" )
21282096   PORT_DIPSETTING(      0x0080, DEF_STR( Low ) )
21292097   PORT_DIPSETTING(      0x0000, DEF_STR( High ) )
21302098
21312099   PORT_START   // IN1 - $210004
2132   PORT_DIPNAME( 0x0003, 0x0003, "Game Rate" )
2100   PORT_DIPNAME( 0x0003, 0x0003, "Game Rate" )            PORT_DIPLOCATION( "DSW2:1,2" )
21332101   PORT_DIPSETTING(      0x0000, "80%" )
21342102   PORT_DIPSETTING(      0x0002, "85%" )
21352103   PORT_DIPSETTING(      0x0003, "90%" )
21362104   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" )
21472109//  PORT_DIPSETTING(      0x0020, "Simple") )
21482110   PORT_DIPSETTING(      0x0000, "Complex" )
2149   PORT_DIPNAME( 0x0040, 0x0000, "Coin Sensor" )
2111   PORT_DIPNAME( 0x0040, 0x0000, "Coin Sensor" )         PORT_DIPLOCATION( "DSW2:7" )
21502112   PORT_DIPSETTING(      0x0040, "Active High" )
21512113   PORT_DIPSETTING(      0x0000, "Active Low" )
2152   PORT_DIPNAME( 0x0080, 0x0080, "Hopper Sensor" )
2114   PORT_DIPNAME( 0x0080, 0x0080, "Hopper Sensor" )         PORT_DIPLOCATION( "DSW2:8" )
21532115   PORT_DIPSETTING(      0x0080, DEF_STR( Off ) )
21542116   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
21552117
r1238r1239
21872149                                Monster Slider
21882150***************************************************************************/
21892151
2190INPUT_PORTS_START( mslider )
2152static INPUT_PORTS_START( mslider )
21912153   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" )
21932155   PORT_DIPSETTING(      0x0005, DEF_STR( 3C_1C ) )
21942156   PORT_DIPSETTING(      0x0006, DEF_STR( 2C_1C ) )
21952157   PORT_DIPSETTING(      0x0007, DEF_STR( 1C_1C ) )
r1238r1239
21982160   PORT_DIPSETTING(      0x0002, DEF_STR( 1C_4C ) )
21992161   PORT_DIPSETTING(      0x0001, DEF_STR( 1C_5C ) )
22002162   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" )
22022164   PORT_DIPSETTING(      0x0028, DEF_STR( 3C_1C ) )
22032165   PORT_DIPSETTING(      0x0030, DEF_STR( 2C_1C ) )
22042166   PORT_DIPSETTING(      0x0038, DEF_STR( 1C_1C ) )
r1238r1239
22072169   PORT_DIPSETTING(      0x0010, DEF_STR( 1C_4C ) )
22082170   PORT_DIPSETTING(      0x0008, DEF_STR( 1C_5C ) )
22092171   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" */
22142174
22152175   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" )
22172177   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
22182178   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" )
22202180   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
22212181   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" )
22232183   PORT_DIPSETTING(      0x0008, DEF_STR( Easy ) )
22242184   PORT_DIPSETTING(      0x000c, DEF_STR( Normal ) )
22252185   PORT_DIPSETTING(      0x0004, DEF_STR( Hard ) )
22262186   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" )
22282188   PORT_DIPSETTING(      0x0000, "1" )
22292189   PORT_DIPSETTING(      0x0030, "2" )
22302190   PORT_DIPSETTING(      0x0020, "3" )
22312191   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" )
22382194
22392195   PORT_START   // IN2 - $210008
22402196   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
22692225                    Gourmet Battle Quiz Ryohrioh CooKing
22702226***************************************************************************/
22712227
2272INPUT_PORTS_START( ryorioh )
2228static INPUT_PORTS_START( ryorioh )
22732229   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" )
22782232   PORT_DIPSETTING(      0x0002, DEF_STR( Off ) )
22792233   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" )
22822236   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
22832237   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" )
22852239   PORT_DIPSETTING(      0x0010, DEF_STR( 2C_1C ) )
22862240   PORT_DIPSETTING(      0x0030, DEF_STR( 1C_1C ) )
22872241   PORT_DIPSETTING(      0x0000, DEF_STR( 2C_3C ) )
22882242   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" )
22952245
22962246   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" )
22982248   PORT_DIPSETTING(      0x0002, DEF_STR( Easy ) )
22992249   PORT_DIPSETTING(      0x0003, DEF_STR( Normal ) )
23002250   PORT_DIPSETTING(      0x0001, DEF_STR( Hard ) )
23012251   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" )
23202258
23212259   PORT_START   // IN2 - $210008
23222260   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1  )
r1238r1239
23512289                            Super Real Mahjong PIV
23522290***************************************************************************/
23532291
2354INPUT_PORTS_START( srmp4 )
2292static INPUT_PORTS_START( srmp4 )
23552293   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" )
23572295   PORT_DIPSETTING(      0x0000, DEF_STR( 5C_1C ) )
23582296   PORT_DIPSETTING(      0x0001, DEF_STR( 4C_1C ) )
23592297   PORT_DIPSETTING(      0x0002, DEF_STR( 3C_1C ) )
r1238r1239
23622300   PORT_DIPSETTING(      0x0006, DEF_STR( 1C_2C ) )
23632301   PORT_DIPSETTING(      0x0005, DEF_STR( 1C_3C ) )
23642302   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" )
23662304   PORT_DIPSETTING(      0x0000, DEF_STR( 5C_1C ) )
23672305   PORT_DIPSETTING(      0x0008, DEF_STR( 4C_1C ) )
23682306   PORT_DIPSETTING(      0x0010, DEF_STR( 3C_1C ) )
r1238r1239
23712309   PORT_DIPSETTING(      0x0030, DEF_STR( 1C_2C ) )
23722310   PORT_DIPSETTING(      0x0028, DEF_STR( 1C_3C ) )
23732311   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" )
23752313   PORT_DIPSETTING(      0x0040, DEF_STR( Off ) )
23762314   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" )
23802316
23812317   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" )
23832319   PORT_DIPSETTING(      0x0006, DEF_STR( Easiest ) )
23842320   PORT_DIPSETTING(      0x0005, DEF_STR( Easier ) )
23852321   PORT_DIPSETTING(      0x0004, DEF_STR( Easy ) )
r1238r1239
23882324   PORT_DIPSETTING(      0x0002, DEF_STR( Hard ) )
23892325   PORT_DIPSETTING(      0x0001, DEF_STR( Harder ) )
23902326   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" )
23922328   PORT_DIPSETTING(      0x0008, DEF_STR( Off ) )
23932329   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" )
23952331   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
23962332   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" )
23992335   PORT_DIPSETTING(      0x0000, DEF_STR( No ) )
24002336   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" )
24042338
24052339   PORT_START   // IN2 - $210008
24062340   PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
24612395                            Super Real Mahjong P7
24622396***************************************************************************/
24632397
2464INPUT_PORTS_START( srmp7 )
2398static INPUT_PORTS_START( srmp7 )
24652399   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" )
24672401   PORT_DIPSETTING(      0x0000, DEF_STR( 5C_1C ) )
24682402   PORT_DIPSETTING(      0x0001, DEF_STR( 4C_1C ) )
24692403   PORT_DIPSETTING(      0x0002, DEF_STR( 3C_1C ) )
r1238r1239
24722406   PORT_DIPSETTING(      0x0006, DEF_STR( 1C_2C ) )
24732407   PORT_DIPSETTING(      0x0005, DEF_STR( 1C_3C ) )
24742408   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" )
24852413   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
24862414   PORT_DIPSETTING(      0x0040, DEF_STR( On ) )
2487   PORT_DIPNAME( 0x0080, 0x0080, "Nudity" )
2415   PORT_DIPNAME( 0x0080, 0x0080, "Nudity" )               PORT_DIPLOCATION( "DSW1:8" )
24882416   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
24892417   PORT_DIPSETTING(      0x0080, DEF_STR( On ) )
24902418
24912419   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" )
24932421   PORT_DIPSETTING(      0x0006, DEF_STR( Easiest ) )
24942422   PORT_DIPSETTING(      0x0005, DEF_STR( Easier ) )
24952423   PORT_DIPSETTING(      0x0004, DEF_STR( Easy ) )
r1238r1239
24982426   PORT_DIPSETTING(      0x0002, DEF_STR( Hard ) )
24992427   PORT_DIPSETTING(      0x0001, DEF_STR( Harder ) )
25002428   PORT_DIPSETTING(      0x0000, DEF_STR( Hardest ) )
2501   PORT_DIPNAME( 0x0008, 0x0008, "Kuitan" )
2429   PORT_DIPNAME( 0x0008, 0x0008, "Kuitan" )               PORT_DIPLOCATION( "DSW2:4" )
25022430   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
25032431   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" )
25052433   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
25062434   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" )
25082436   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
25092437   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" )
25112439   PORT_DIPSETTING(      0x0040, DEF_STR( Off ) )
25122440   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
2513   PORT_SERVICE( 0x0080, IP_ACTIVE_LOW )
2441   PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "DSW2:8" )
25142442
25152443   PORT_START   // IN2 - $210008
25162444   PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
25722500                                Storm Blade
25732501***************************************************************************/
25742502
2575INPUT_PORTS_START( stmblade )
2503static INPUT_PORTS_START( stmblade )
25762504   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" )
25782506   PORT_DIPSETTING(      0x0005, DEF_STR( 3C_1C ) )
25792507   PORT_DIPSETTING(      0x0006, DEF_STR( 2C_1C ) )
25802508   PORT_DIPSETTING(      0x0007, DEF_STR( 1C_1C ) )
r1238r1239
25832511   PORT_DIPSETTING(      0x0002, DEF_STR( 1C_4C ) )
25842512   PORT_DIPSETTING(      0x0001, DEF_STR( 1C_5C ) )
25852513   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" )
25872515   PORT_DIPSETTING(      0x0028, DEF_STR( 3C_1C ) )
25882516   PORT_DIPSETTING(      0x0030, DEF_STR( 2C_1C ) )
25892517   PORT_DIPSETTING(      0x0038, DEF_STR( 1C_1C ) )
r1238r1239
25922520   PORT_DIPSETTING(      0x0010, DEF_STR( 1C_4C ) )
25932521   PORT_DIPSETTING(      0x0008, DEF_STR( 1C_5C ) )
25942522   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" )
25992525   PORT_DIPSETTING(      0x0080, DEF_STR( Off ) )
26002526   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
26012527
26022528   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" )
26042530   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
26052531   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" )
26072533   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
26082534   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" )
26102536   PORT_DIPSETTING(      0x0008, DEF_STR( Easy ) )
26112537   PORT_DIPSETTING(      0x000c, DEF_STR( Normal ) )
26122538   PORT_DIPSETTING(      0x0004, DEF_STR( Hard ) )
26132539   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" )
26152541   PORT_DIPSETTING(      0x0020, "1" )
26162542   PORT_DIPSETTING(      0x0010, "2" )
26172543   PORT_DIPSETTING(      0x0030, "3" )
26182544   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" )
26202546   PORT_DIPSETTING(      0x0040, "600000" )
26212547   PORT_DIPSETTING(      0x0000, "800000" )
2622   PORT_SERVICE( 0x0080, IP_ACTIVE_LOW )
2548   PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "DSW2:8" )
26232549
26242550   PORT_START   // IN2 - $210008
26252551   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
26542580                                Survival Arts
26552581***************************************************************************/
26562582
2657INPUT_PORTS_START( survarts )
2583static INPUT_PORTS_START( survarts )
26582584   PORT_START   // IN0 - $210002
26592585   PORT_DIPNAME( 0x000f, 0x0009, DEF_STR( Coin_A ) ) // Verified Default is 2 coins 1 Credit
26602586   PORT_DIPSETTING(      0x0007, DEF_STR( 4C_1C ) )
r1238r1239
27652691                Dyna Gears
27662692***************************************************************************/
27672693
2768INPUT_PORTS_START( dynagear )
2694static INPUT_PORTS_START( dynagear )
27692695   PORT_START   // IN0 - $210002
27702696   PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coin_A ) )
27712697   PORT_DIPSETTING(      0x0007, DEF_STR( 4C_1C ) )
r1238r1239
28662792                            Pachinko Sexy Reaction
28672793***************************************************************************/
28682794
2869INPUT_PORTS_START( sxyreact )
2795static INPUT_PORTS_START( sxyreact )
28702796   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" )
28722798   PORT_DIPSETTING(      0x0005, DEF_STR( 3C_1C ) )
28732799   PORT_DIPSETTING(      0x0006, DEF_STR( 2C_1C ) )
28742800   PORT_DIPSETTING(      0x0007, DEF_STR( 1C_1C ) )
r1238r1239
28782804   PORT_DIPSETTING(      0x0001, DEF_STR( 1C_5C ) )
28792805   PORT_DIPSETTING(      0x0000, DEF_STR( 1C_6C ) )
28802806   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" )
28822811//  PORT_DIPSETTING(      0x0028, DEF_STR( 3C_1C ) )
28832812//  PORT_DIPSETTING(      0x0030, DEF_STR( 2C_1C ) )
28842813//  PORT_DIPSETTING(      0x0038, DEF_STR( 1C_1C ) )
r1238r1239
28872816//  PORT_DIPSETTING(      0x0010, DEF_STR( 1C_4C ) )
28882817//  PORT_DIPSETTING(      0x0008, DEF_STR( 1C_5C ) )
28892818//  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" )
28912820   PORT_DIPSETTING(      0x0040, "1" )
28922821   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
28942823   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
28952824   PORT_DIPSETTING(      0x0080, DEF_STR( On ) )
28962825
28972826   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" )
28992828   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
29002829   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" )
29022831   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
29032832   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" )
29052834   PORT_DIPSETTING(      0x0008, DEF_STR( Easy ) )
29062835   PORT_DIPSETTING(      0x000c, DEF_STR( Normal ) )
29072836   PORT_DIPSETTING(      0x0004, DEF_STR( Hard ) )
29082837   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" )
29102839   PORT_DIPSETTING(      0x0010, "Dial" )
29112840   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" )
29132842   PORT_DIPSETTING(      0x0020, DEF_STR( Off ) )
29142843   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" )
29192846
29202847   PORT_START   // IN2 - $210008
29212848   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
29502877                                Twin Eagle II
29512878***************************************************************************/
29522879
2953INPUT_PORTS_START( twineag2 )
2880static INPUT_PORTS_START( twineag2 )
29542881   PORT_START   // IN0 - $210002
2955   PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coin_A ) ) // No values listed for all "ON"
2882   PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coin_A ) )   PORT_DIPLOCATION( "DSW1:1,2,3,4" )
29562883   PORT_DIPSETTING(      0x0007, DEF_STR( 4C_1C ) )
29572884   PORT_DIPSETTING(      0x0008, DEF_STR( 3C_1C ) )
29582885   PORT_DIPSETTING(      0x0009, DEF_STR( 2C_1C ) )
r1238r1239
29742901// 1c-1c, 2c-2c, 3c-3c & 4c-5c
29752902   PORT_DIPSETTING(      0x0001, "Multiple Coin Feature E" )
29762903// 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" )
29782906   PORT_DIPSETTING(      0x0070, DEF_STR( 4C_1C ) )
29792907   PORT_DIPSETTING(      0x0080, DEF_STR( 3C_1C ) )
29802908   PORT_DIPSETTING(      0x0090, DEF_STR( 2C_1C ) )
r1238r1239
29962924// 1c-1c, 2c-2c, 3c-3c & 4c-5c
29972925   PORT_DIPSETTING(      0x0010, "Multiple Coin Feature E" )
29982926// 1c-1c, 2c-3c
2927   //PORT_DIPSETTING(      0x0000, "???" ) - No values listed for all "ON"
29992928
30002929   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" )
30022931   PORT_DIPSETTING(      0x0006, DEF_STR( Easiest ) )
30032932   PORT_DIPSETTING(      0x0005, DEF_STR( Easier ) )
30042933   PORT_DIPSETTING(      0x0004, DEF_STR( Easy ) )
r1238r1239
30072936   PORT_DIPSETTING(      0x0002, DEF_STR( Hard ) )
30082937   PORT_DIPSETTING(      0x0001, DEF_STR( Harder ) )
30092938   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" )
30112940   PORT_DIPSETTING(      0x0008, DEF_STR( Off ) )
30122941   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" )
30142943   PORT_DIPSETTING(      0x0000, "2" )
30152944   PORT_DIPSETTING(      0x0010, "3" )
3016   PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Pause ) )
2945   PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Pause ) )      PORT_DIPLOCATION( "DSW2:6" )
30172946   PORT_DIPSETTING(      0x0020, DEF_STR( Off ) )
30182947   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" )
30202949   PORT_DIPSETTING(      0x0040, DEF_STR( Off ) )
30212950   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
3022   PORT_SERVICE( 0x0080, IP_ACTIVE_LOW )
2951   PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "DSW2:8" )
30232952
30242953   PORT_START   // IN2 - $210008
30252954   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
30582987                                Ultra X
30592988***************************************************************************/
30602989
3061INPUT_PORTS_START( ultrax )
2990static INPUT_PORTS_START( ultrax )
30622991   PORT_START   // IN0 - $210002
30632992   PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coin_A ) )
30642993   PORT_DIPSETTING(      0x0008, DEF_STR( 3C_1C ) )
r1238r1239
31363065                               Vasara
31373066***************************************************************************/
31383067
3139INPUT_PORTS_START( vasara )
3068static INPUT_PORTS_START( vasara )
31403069   PORT_START   // IN0 - $210002
31413070   PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Free_Play )  )
31423071   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
r1238r1239
32143143                               Vasara 2
32153144***************************************************************************/
32163145
3217INPUT_PORTS_START( vasara2 )
3146static INPUT_PORTS_START( vasara2 )
32183147   PORT_START   // IN0 - $210002
32193148   PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Free_Play )  )
32203149   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
src/mame/drivers/taitoair.c
r1238r1239
425425               INPUT PORTS & DIPS
426426************************************************************/
427427
428INPUT_PORTS_START( topland )
428static INPUT_PORTS_START( topland )
429429   /* 0xa00200 -> 0x0c0d7c (-$7285,A5) */
430430   PORT_START_TAG("DSWA")
431431   PORT_DIPUNUSED_DIPLOC( 0x01, IP_ACTIVE_LOW, "SWA:1" )
r1238r1239
478478   PORT_BIT( 0xffff, 0x0000, IPT_AD_STICK_Y ) PORT_MINMAX(0xf800,0x7ff) PORT_SENSITIVITY(30) PORT_KEYDELTA(40) PORT_PLAYER(2)
479479INPUT_PORTS_END
480480
481INPUT_PORTS_START( ainferno )
481static INPUT_PORTS_START( ainferno )
482482   /* 0xa00200 -> 0x0c0003.b (-$7ffd,A5) */
483483   PORT_START_TAG("DSWA")
484484   PORT_DIPNAME( 0x01, 0x01, "Moving Control" )      PORT_DIPLOCATION("SWA:1")
src/mame/drivers/atarig42.c
r1238r1239
380380 *
381381 *************************************/
382382
383INPUT_PORTS_START( roadriot )
383static INPUT_PORTS_START( roadriot )
384384   PORT_START      /* e00000 */
385385   PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED )
386386   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
407407INPUT_PORTS_END
408408
409409
410INPUT_PORTS_START( guardian )
410static INPUT_PORTS_START( guardian )
411411   PORT_START      /* e00000 */
412412   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED )
413413   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(3)
src/mame/drivers/tceptor.c
r1238r1239
345345
346346/*******************************************************************/
347347
348INPUT_PORTS_START( tceptor )
348static INPUT_PORTS_START( tceptor )
349349   PORT_START      /* DSW 1 */
350350   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) )
351351   PORT_DIPSETTING(    0x02, DEF_STR( 3C_1C ) )
r1238r1239
401401   PORT_BIT(  0xff, 0x7f, IPT_AD_STICK_Y ) PORT_MINMAX(0x00,0xfe) PORT_SENSITIVITY(100) PORT_KEYDELTA(16)
402402INPUT_PORTS_END
403403
404INPUT_PORTS_START( tceptor2 )
404static INPUT_PORTS_START( tceptor2 )
405405   PORT_START      /* DSW 1 */
406406   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) )
407407   PORT_DIPSETTING(    0x02, DEF_STR( 3C_1C ) )
src/mame/drivers/cop01.c
r1238r1239
194194
195195
196196
197INPUT_PORTS_START( cop01 )
197static INPUT_PORTS_START( cop01 )
198198   PORT_START_TAG("IN0")
199199   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
200200   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
275275
276276/* There is an ingame bug at 0x00e4 to 0x00e6 that performs the 'rrca' instead of 'rlca'
277277   so you DSW1-8 has no effect and you can NOT start a game at areas 5 to 8. */
278INPUT_PORTS_START( mightguy )
278static INPUT_PORTS_START( mightguy )
279279   PORT_START_TAG("IN0")
280280   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
281281   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/vindictr.c
r1238r1239
109109 *
110110 *************************************/
111111
112INPUT_PORTS_START( vindictr )
112static INPUT_PORTS_START( vindictr )
113113   PORT_START_TAG("26000")
114114   PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED )
115115   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
src/mame/drivers/hanaawas.c
r1238r1239
108108ADDRESS_MAP_END
109109
110110
111INPUT_PORTS_START( hanaawas )
111static INPUT_PORTS_START( hanaawas )
112112   PORT_START      /* IN0 */
113113   PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_SPECIAL )
114114   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN )
src/mame/drivers/aquarium.c
r1238r1239
195195   AM_RANGE(0x08, 0x08) AM_WRITE(aquarium_z80_bank_w)
196196ADDRESS_MAP_END
197197
198INPUT_PORTS_START( aquarium )
198static INPUT_PORTS_START( aquarium )
199199   PORT_START_TAG("DSW")
200200   PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) )
201201   PORT_DIPSETTING(      0x0002, DEF_STR( Easy ) )
src/mame/drivers/metro.c
r1238r1239
21592159                                    Bal Cube
21602160***************************************************************************/
21612161
2162INPUT_PORTS_START( balcube )
2162static INPUT_PORTS_START( balcube )
21632163   PORT_START_TAG("IN0")   // $500000
21642164   COINS
21652165
r1238r1239
22022202                                Bang Bang Ball
22032203***************************************************************************/
22042204
2205INPUT_PORTS_START( bangball )
2205static INPUT_PORTS_START( bangball )
22062206   PORT_START_TAG("IN0")   // $d00000
22072207   COINS
22082208
r1238r1239
22432243                                Battle Bubble
22442244***************************************************************************/
22452245
2246INPUT_PORTS_START( batlbubl )
2246static INPUT_PORTS_START( batlbubl )
22472247   PORT_START_TAG("IN0")
22482248   JOY_LSB(1, BUTTON1, UNKNOWN, UNKNOWN, UNKNOWN)
22492249   JOY_MSB(2, BUTTON1, UNKNOWN, UNKNOWN, UNKNOWN)
r1238r1239
23522352                            Blazing Tornado
23532353***************************************************************************/
23542354
2355INPUT_PORTS_START( blzntrnd )
2355static INPUT_PORTS_START( blzntrnd )
23562356   PORT_START_TAG("IN0")
23572357   PORT_DIPNAME( 0x0007, 0x0004, DEF_STR( Difficulty ) )
23582358   PORT_DIPSETTING(      0x0007, "Beginner" )
r1238r1239
24692469                            Grand Striker 2
24702470***************************************************************************/
24712471
2472INPUT_PORTS_START( gstrik2 )
2472static INPUT_PORTS_START( gstrik2 )
24732473   PORT_START_TAG("IN0")
24742474   PORT_DIPNAME( 0x0003, 0x0003, "Player Vs Com" )
24752475   PORT_DIPSETTING(      0x0003, "1:00" )
r1238r1239
26142614     On  On    Continue, Retry level
26152615
26162616*/
2617INPUT_PORTS_START( daitorid )
2617static INPUT_PORTS_START( daitorid )
26182618   PORT_START_TAG("IN0") // $c00000
26192619   COINS
26202620
r1238r1239
26652665
26662666   Even if there are 4 "tables" the 2 first ones and the 2 last ones
26672667   contains the same values for the timer. */
2668INPUT_PORTS_START( dharma )
2668static INPUT_PORTS_START( dharma )
26692669   PORT_START_TAG("IN0") //$c00000
26702670   COINS
26712671
r1238r1239
27072707                                Gun Master
27082708***************************************************************************/
27092709
2710INPUT_PORTS_START( gunmast )
2710static INPUT_PORTS_START( gunmast )
27112711   PORT_START_TAG("IN0") //$400000
27122712   COINS
27132713
r1238r1239
27522752                                Karate Tournament
27532753***************************************************************************/
27542754
2755INPUT_PORTS_START( karatour )
2755static INPUT_PORTS_START( karatour )
27562756   PORT_START_TAG("IN0") // $400002
27572757   JOY_LSB(2, BUTTON1, BUTTON2, UNKNOWN, UNKNOWN)
27582758
r1238r1239
28512851   PORT_START_TAG("IN4") /*$40000c*/\
28522852   JOY_LSB(1, BUTTON1, BUTTON2, UNKNOWN, UNKNOWN)
28532853
2854INPUT_PORTS_START( ladykill )
2854static INPUT_PORTS_START( ladykill )
28552855   LKILL_COMMON1
28562856   PORT_START_TAG("IN2") // $400006
28572857   PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Lives ) )
r1238r1239
28792879INPUT_PORTS_END
28802880
28812881/* Same as 'ladykill' but NO "Nudity" Dip Switch */
2882INPUT_PORTS_START( moegonta )
2882static INPUT_PORTS_START( moegonta )
28832883   LKILL_COMMON1
28842884
28852885   PORT_START_TAG("IN2")   // $400006
r1238r1239
29272927   COINAGE_DSW\
29282928
29292929
2930INPUT_PORTS_START( lastfort )
2930static INPUT_PORTS_START( lastfort )
29312931   LFORT_COMMON
29322932
29332933   PORT_START_TAG("IN4")// $c0000c
r1238r1239
29652965***************************************************************************/
29662966
29672967/* Same as 'lastfort' but WORKING "Tiles" Dip Switch */
2968INPUT_PORTS_START( lastfero )
2968static INPUT_PORTS_START( lastfero )
29692969   LFORT_COMMON
29702970
29712971   PORT_START   // IN4 - $c0000c
r1238r1239
30583058
30593059
30603060
3061INPUT_PORTS_START( dokyusei )
3061static INPUT_PORTS_START( dokyusei )
30623062   MAHJONG_PANEL
30633063
30643064   PORT_START_TAG("IN6")   // $478884.w
r1238r1239
31183118
31193119/* Same as dokyusei, without the DSWs (these games have an eeprom) */
31203120
3121INPUT_PORTS_START( gakusai )
3121static INPUT_PORTS_START( gakusai )
31223122
31233123MAHJONG_PANEL
31243124
r1238r1239
31293129                                    Mouja
31303130***************************************************************************/
31313131
3132INPUT_PORTS_START( mouja )
3132static INPUT_PORTS_START( mouja )
31333133   PORT_START_TAG("IN0") //$478880
31343134   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN )
31353135   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
r1238r1239
32143214                                Pang Poms
32153215***************************************************************************/
32163216
3217INPUT_PORTS_START( pangpoms )
3217static INPUT_PORTS_START( pangpoms )
32183218   PORT_START_TAG("IN0") //$800004
32193219   COINS
32203220
r1238r1239
32593259                                Poitto!
32603260***************************************************************************/
32613261
3262INPUT_PORTS_START( poitto )
3262static INPUT_PORTS_START( poitto )
32633263   PORT_START_TAG("IN0") //$800000
32643264   COINS
32653265
r1238r1239
33033303                                Puzzli
33043304***************************************************************************/
33053305
3306INPUT_PORTS_START( puzzli )
3306static INPUT_PORTS_START( puzzli )
33073307   PORT_START_TAG("IN0") //$c00000
33083308   COINS
33093309
r1238r1239
33473347                                Sankokushi
33483348***************************************************************************/
33493349
3350INPUT_PORTS_START( 3kokushi )
3350static INPUT_PORTS_START( 3kokushi )
33513351   PORT_START_TAG("IN0") //$c00000
33523352   COINS
33533353
r1238r1239
34093409                                Pururun
34103410***************************************************************************/
34113411
3412INPUT_PORTS_START( pururun )
3412static INPUT_PORTS_START( pururun )
34133413   PORT_START_TAG("IN0") //$400000
34143414   COINS
34153415
r1238r1239
34683468       "none"       "none"
34693469
34703470*/
3471INPUT_PORTS_START( skyalert )
3471static INPUT_PORTS_START( skyalert )
34723472   PORT_START_TAG("IN0") //$400004
34733473   COINS
34743474
r1238r1239
35173517   All I can tell is that is that it affects the levels which are
35183518   proposed, but there is no evidence that one "table" is harder
35193519   than another. */
3520INPUT_PORTS_START( toride2g )
3520static INPUT_PORTS_START( toride2g )
35213521   PORT_START_TAG("IN0") //$800000
35223522   COINS
35233523
src/mame/drivers/angelkds.c
r1238r1239
319319                              /* move right in hiscores table */
320320
321321
322INPUT_PORTS_START( angelkds )
322static INPUT_PORTS_START( angelkds )
323323   PORT_START_TAG("I40")      /* inport $40 */
324324   PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_A ) )
325325   PORT_DIPSETTING(   0x70, DEF_STR( 4C_1C ) )
r1238r1239
425425
426426INPUT_PORTS_END
427427
428INPUT_PORTS_START( spcpostn )
428static INPUT_PORTS_START( spcpostn )
429429   PORT_START_TAG("I40")      /* inport $40 */
430430   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
431431   PORT_DIPSETTING(    0x02, DEF_STR( 4C_1C ) )
src/mame/drivers/jrpacman.c
r1238r1239
154154 *
155155 *************************************/
156156
157INPUT_PORTS_START( jrpacman )
157static INPUT_PORTS_START( jrpacman )
158158   PORT_START_TAG("IN0")
159159   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
160160   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
src/mame/drivers/hshavoc.c
r1238r1239
4040#define MASTER_CLOCK      53693100
4141
4242
43INPUT_PORTS_START( hshavoc )
43static INPUT_PORTS_START( hshavoc )
4444   PORT_START   /* 16bit */
4545   PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Unknown ) )
4646   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
src/mame/drivers/circusc.c
r1238r1239
172172
173173
174174
175INPUT_PORTS_START( circusc )
175static INPUT_PORTS_START( circusc )
176176   PORT_START      /* IN0 */
177177   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
178178   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/laserbas.c
r1238r1239
9696   AM_RANGE(0x80, 0x9f) AM_WRITE(palette_w)
9797ADDRESS_MAP_END
9898
99INPUT_PORTS_START( laserbas )
99static INPUT_PORTS_START( laserbas )
100100   PORT_START
101101      PORT_DIPNAME( 0x01, 0x00, "0-0" )
102102      PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
src/mame/drivers/mikie.c
r1238r1239
100100
101101/* Input Ports */
102102
103INPUT_PORTS_START( mikie )
103static INPUT_PORTS_START( mikie )
104104   PORT_START_TAG("IN0")
105105   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
106106   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/midvunit.c
r1238r1239
536536 *
537537 *************************************/
538538
539INPUT_PORTS_START( crusnusa )
539static INPUT_PORTS_START( crusnusa )
540540   PORT_START
541541   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
542542   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
660660INPUT_PORTS_END
661661
662662
663INPUT_PORTS_START( crusnwld )
663static INPUT_PORTS_START( crusnwld )
664664   PORT_START
665665   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
666666   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
781781INPUT_PORTS_END
782782
783783
784INPUT_PORTS_START( offroadc )
784static INPUT_PORTS_START( offroadc )
785785   PORT_START
786786   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
787787   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
876876INPUT_PORTS_END
877877
878878
879INPUT_PORTS_START( wargods )
879static INPUT_PORTS_START( wargods )
880880   PORT_START       /* DS1 */
881881   PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ))
882882   PORT_DIPSETTING(      0x0001, DEF_STR( Off ))
src/mame/drivers/kingpin.c
r1238r1239
3030
3131
3232/* Ports */
33INPUT_PORTS_START( kingpin )
33static INPUT_PORTS_START( kingpin )
3434   PORT_START
3535   PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
3636   PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
src/mame/drivers/namcond1.c
r1238r1239
8787
8888/*************************************************************/
8989
90INPUT_PORTS_START( namcond1 )
90static INPUT_PORTS_START( namcond1 )
9191   PORT_START      /* player 1 */
9292   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT )
9393   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )
src/mame/drivers/usgames.c
r1238r1239
206206   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
207207
208208
209INPUT_PORTS_START( usg32 )
209static INPUT_PORTS_START( usg32 )
210210
211211   USGIN0
212212
r1238r1239
237237INPUT_PORTS_END
238238
239239
240INPUT_PORTS_START( usg83 ) //From here, the hardware was slightly upgraded, but not too different.
240static INPUT_PORTS_START( usg83 ) //From here, the hardware was slightly upgraded, but not too different.
241241
242242    USGIN0
243243
src/mame/drivers/opwolf.c
r1238r1239
402402             INPUT PORTS, DIPs
403403***********************************************************/
404404
405INPUT_PORTS_START( opwolf )
405static INPUT_PORTS_START( opwolf )
406406   /* 0x380000 -> 0x0ff028 (-$fd8,A5) (C-chip) */
407407   PORT_START_TAG("DSWA")
408408   PORT_DIPUNUSED( 0x01, IP_ACTIVE_LOW )
r1238r1239
456456   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_PLAYER(1)
457457INPUT_PORTS_END
458458
459INPUT_PORTS_START( opwolfu )
459static INPUT_PORTS_START( opwolfu )
460460   PORT_INCLUDE( opwolf )
461461
462462   PORT_MODIFY( "DSWA" )
463463   TAITO_COINAGE_JAPAN_OLD
464464INPUT_PORTS_END
465465
466INPUT_PORTS_START( opwolfb )
466static INPUT_PORTS_START( opwolfb )
467467   PORT_INCLUDE( opwolf )
468468
469469   PORT_MODIFY( "DSWB" )
src/mame/drivers/surpratk.c
r1238r1239
121121
122122***************************************************************************/
123123
124INPUT_PORTS_START( surpratk )
124static INPUT_PORTS_START( surpratk )
125125   PORT_START   /* PLAYER 1 INPUTS */
126126   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
127127   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/pangofun.c
r1238r1239
105105ADDRESS_MAP_END
106106
107107
108INPUT_PORTS_START( pangofun )
108static INPUT_PORTS_START( pangofun )
109109INPUT_PORTS_END
110110
111111
src/mame/drivers/pmpoker.c
r1238r1239
495495*      Input Ports       *
496496*************************/
497497
498INPUT_PORTS_START( pmpoker )
498static INPUT_PORTS_START( pmpoker )
499499   /* Multiplexed - 4x5bits */
500500   PORT_START_TAG("IN0-0")
501501   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
564564   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
565565INPUT_PORTS_END
566566
567INPUT_PORTS_START( goldnpkr )
567static INPUT_PORTS_START( goldnpkr )
568568   /* Multiplexed - 4x5bits */
569569   PORT_START_TAG("IN0-0")
570570   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("Bet") PORT_CODE(KEYCODE_1)
r1238r1239
626626   PORT_DIPSETTING(    0x00, DEF_STR( Yes ) )
627627INPUT_PORTS_END
628628
629INPUT_PORTS_START( goldnpkc )
629static INPUT_PORTS_START( goldnpkc )
630630   /* Multiplexed - 4x5bits */
631631   PORT_START_TAG("IN0-0")
632632   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("Bet") PORT_CODE(KEYCODE_1)
r1238r1239
696696   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
697697INPUT_PORTS_END
698698
699INPUT_PORTS_START( jokerpkr )
699static INPUT_PORTS_START( jokerpkr )
700700   /* Multiplexed - 4x5bits */
701701   PORT_START_TAG("IN0-0")
702702   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )   PORT_IMPULSE(3) PORT_NAME("Coin 1")
r1238r1239
765765   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
766766INPUT_PORTS_END
767767
768INPUT_PORTS_START( pottnpkr )
768static INPUT_PORTS_START( pottnpkr )
769769   /* Multiplexed - 4x5bits */
770770   PORT_START_TAG("IN0-0")
771771   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )   PORT_IMPULSE(3) PORT_NAME("Coin 1")
src/mame/drivers/suna16.c
r1238r1239
393393                            Back Street Soccer
394394***************************************************************************/
395395
396INPUT_PORTS_START( bssoccer )
396static INPUT_PORTS_START( bssoccer )
397397
398398   PORT_START   // IN0 - $a00001.b - Player 1
399399   JOY(1)
r1238r1239
476476                                Ultra Balloon
477477***************************************************************************/
478478
479INPUT_PORTS_START( uballoon )
479static INPUT_PORTS_START( uballoon )
480480
481481   PORT_START   // IN0 - $600000.w - Player 1
482482   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
r1238r1239
571571                                Suna Quiz 6000
572572***************************************************************************/
573573
574INPUT_PORTS_START( sunaq )
574static INPUT_PORTS_START( sunaq )
575575   PORT_START   // Player 1
576576   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
577577   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
src/mame/drivers/zaccaria.c
r1238r1239
390390
391391
392392
393INPUT_PORTS_START( monymony )
393static INPUT_PORTS_START( monymony )
394394   PORT_START_TAG("IN0")
395395   PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) )
396396   PORT_DIPSETTING(    0x00, "2" )
r1238r1239
499499   /* other bits come from a protection device */
500500INPUT_PORTS_END
501501
502INPUT_PORTS_START( jackrabt )
502static INPUT_PORTS_START( jackrabt )
503503   PORT_START_TAG("IN0")
504504   PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) )
505505   PORT_DIPSETTING(    0x00, "2" )
src/mame/drivers/shadfrce.c
r1238r1239
321321
322322
323323#if USE_SHADFRCE_FAKE_INPUT_PORTS
324INPUT_PORTS_START( shadfrce )
324static INPUT_PORTS_START( shadfrce )
325325   PORT_START   /* Fake IN0 (player 1 inputs) */
326326   SHADFRCE_PLAYER_INPUT( 1, IPT_START1 )
327327
r1238r1239
400400   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
401401INPUT_PORTS_END
402402#else
403INPUT_PORTS_START( shadfrce )
403static INPUT_PORTS_START( shadfrce )
404404   PORT_START   /* IN0 - $1d0020.w */
405405   SHADFRCE_PLAYER_INPUT( 1, IPT_START1 )
406406   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_COIN1 )
src/mame/drivers/speedbal.c
r1238r1239
108108ADDRESS_MAP_END
109109
110110
111INPUT_PORTS_START( speedbal )
111static INPUT_PORTS_START( speedbal )
112112   PORT_START      /* DSW2 */
113113   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Bonus_Life ) )
114114   PORT_DIPSETTING(    0x06, "70000 200000 1M" )
src/mame/drivers/yumefuda.c
r1238r1239
267267
268268/***************************************************************************************/
269269
270INPUT_PORTS_START( yumefuda )
270static INPUT_PORTS_START( yumefuda )
271271   PORT_START
272272   PORT_DIPNAME( 0x01, 0x01, "Port 0" )
273273   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
src/mame/drivers/jongkyo.c
r1238r1239
230230*/
231231
232232
233INPUT_PORTS_START( jongkyo )
233static INPUT_PORTS_START( jongkyo )
234234   PORT_START_TAG("0")
235235    PORT_DIPNAME( 0x01, 0x01, "0" )
236236    PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
src/mame/drivers/attckufo.c
r1238r1239
9191   AM_RANGE(0x2000, 0x3fff) AM_ROM
9292ADDRESS_MAP_END
9393
94INPUT_PORTS_START( attckufo )
94static INPUT_PORTS_START( attckufo )
9595   PORT_START
9696   PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) )
9797   PORT_DIPSETTING(    0x00, "3" )
src/mame/drivers/littlerb.c
r1238r1239
210210ADDRESS_MAP_END
211211
212212
213INPUT_PORTS_START( littlerb )
213static INPUT_PORTS_START( littlerb )
214214   PORT_START   /* 16bit */
215215   PORT_DIPNAME( 0x0003, 0x0001, DEF_STR( Lives ) )
216216   PORT_DIPSETTING(      0x0003, "2" )
src/mame/drivers/firebeat.c
r1238r1239
18121812   }
18131813}
18141814
1815INPUT_PORTS_START(ppp)
1815static INPUT_PORTS_START(ppp)
18161816   PORT_START_TAG("IN0")
18171817   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )         // Left
18181818   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )         // Right
r1238r1239
18451845
18461846INPUT_PORTS_END
18471847
1848INPUT_PORTS_START(kbm)
1848static INPUT_PORTS_START(kbm)
18491849   PORT_START_TAG("IN0")
18501850   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )            // Start P1
18511851   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )            // Start P2
r1238r1239
19211921
19221922INPUT_PORTS_END
19231923
1924INPUT_PORTS_START(popn)
1924static INPUT_PORTS_START(popn)
19251925   PORT_START_TAG("IN0")
19261926   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )         // Switch 1
19271927   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )         // Switch 2
r1238r1239
20922092{
20932093   DS1991_STATE_NORMAL,
20942094   DS1991_STATE_READ_SUBKEY,
2095} DS1991_STATE;
2095};
20962096
20972097static IBUTTON ibutton;
20982098
src/mame/drivers/clayshoo.c
r1238r1239
228228 *
229229 *************************************/
230230
231INPUT_PORTS_START( clayshoo )
231static INPUT_PORTS_START( clayshoo )
232232   PORT_START_TAG("IN0")
233233   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) )
234234   PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
src/mame/drivers/tagteam.c
r1238r1239
132132   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 )\
133133   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 )
134134
135INPUT_PORTS_START( bigprowr )
135static INPUT_PORTS_START( bigprowr )
136136   TAGTEAM_PLAYERS
137137
138138   PORT_START_TAG("DSW1")
r1238r1239
184184INPUT_PORTS_END
185185
186186/* Same as 'bigprowr', but additional "Coin Mode" Dip Switch */
187INPUT_PORTS_START( tagteam )
187static INPUT_PORTS_START( tagteam )
188188   TAGTEAM_PLAYERS
189189   PORT_START_TAG("DSW1")
190190   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) )
src/mame/drivers/eolith.c
r1238r1239
178178   PORT_BIT( 0xffffffff, IP_ACTIVE_LOW, IPT_UNUSED   )
179179INPUT_PORTS_END
180180
181INPUT_PORTS_START( hidnctch )
181static INPUT_PORTS_START( hidnctch )
182182   PORT_INCLUDE(common)
183183   PORT_MODIFY("IN0")
184184   PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
193193   PORT_BIT( 0xfffffffc, IP_ACTIVE_LOW, IPT_UNUSED   )
194194INPUT_PORTS_END
195195
196INPUT_PORTS_START( hidctch3 )
196static INPUT_PORTS_START( hidctch3 )
197197   PORT_INCLUDE(common)
198198   PORT_MODIFY("IN0")
199199   PORT_BIT( 0x00ff0000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
r1238r1239
208208   // missing touch screen / pen inputs
209209INPUT_PORTS_END
210210
211INPUT_PORTS_START( raccoon )
211static INPUT_PORTS_START( raccoon )
212212   PORT_INCLUDE(common)
213213   PORT_MODIFY("IN0")
214214   PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNUSED )
r1238r1239
223223   PORT_BIT( 0xfffffff0, IP_ACTIVE_LOW, IPT_UNUSED   )
224224INPUT_PORTS_END
225225
226INPUT_PORTS_START( landbrk )
226static INPUT_PORTS_START( landbrk )
227227   PORT_INCLUDE(common)
228228   PORT_MODIFY("DSW1")
229229   PORT_DIPNAME( 0x00000001, 0x00000001, "Show Settings" )
r1238r1239
241241   PORT_BIT( 0xfffffff0, IP_ACTIVE_LOW, IPT_UNUSED   )
242242INPUT_PORTS_END
243243
244INPUT_PORTS_START( puzzlekg )
244static INPUT_PORTS_START( puzzlekg )
245245   PORT_INCLUDE(common)
246246   PORT_MODIFY("IN0")
247247   PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNUSED )
src/mame/drivers/bigevglf.c
r1238r1239
8282READ8_HANDLER( bigevglf_mcu_r );
8383READ8_HANDLER( bigevglf_mcu_status_r );
8484
85WRITE8_HANDLER( beg_gfxcontrol_w );
86WRITE8_HANDLER( beg_palette_w );
85WRITE8_HANDLER( bigevglf_gfxcontrol_w );
86WRITE8_HANDLER( bigevglf_palette_w );
8787
88extern UINT8 *beg_spriteram1;
89extern UINT8 *beg_spriteram2;
88extern UINT8 *bigevglf_spriteram1;
89extern UINT8 *bigevglf_spriteram2;
9090
9191static UINT32 beg_bank=0;
92UINT8 *beg_sharedram;
92static UINT8 *beg_sharedram;
9393
9494static int sound_nmi_enable=0,pending_nmi=0;
9595static UINT8 for_sound = 0;
r1238r1239
225225   beg_sharedram[offset] = data;
226226}
227227
228INPUT_PORTS_START( bigevglf )
228static INPUT_PORTS_START( bigevglf )
229229
230230   PORT_START   /* port 00 on sub cpu */
231231   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN3 )
r1238r1239
289289   PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(30) PORT_KEYDELTA(10) PORT_REVERSE
290290INPUT_PORTS_END
291291
292INPUT_PORTS_START( bigevglj )
292static INPUT_PORTS_START( bigevglj )
293293   PORT_INCLUDE(bigevglf)
294294
295295   PORT_MODIFY("DSW2")
r1238r1239
316316   AM_RANGE(0xc000, 0xcfff) AM_WRITE(MWA8_RAM)
317317   AM_RANGE(0xd000, 0xd7ff) AM_WRITE(MWA8_ROM)
318318   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' */
321321   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) */
323323ADDRESS_MAP_END
324324
325325static ADDRESS_MAP_START( bigevglf_writeport, ADDRESS_SPACE_IO, 8 )
326326   ADDRESS_MAP_FLAGS( AMEF_ABITS(8) )
327327   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 */
329329   AM_RANGE(0x02, 0x02) AM_WRITE(beg_banking_w)
330330   AM_RANGE(0x03, 0x03) AM_WRITE(beg13A_set_w)
331331   AM_RANGE(0x04, 0x04) AM_WRITE(beg13B_clr_w)
src/mame/drivers/bagman.c
r1238r1239
267267
268268
269269
270INPUT_PORTS_START( bagman )
270static INPUT_PORTS_START( bagman )
271271   PORT_START   /* IN0 */
272272   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
273273   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
315315
316316/* EXACTLY the same as bagman, the only difference is that
317317Languade dip is replaced by Demo Sounds */
318INPUT_PORTS_START( bagmans )
318static INPUT_PORTS_START( bagmans )
319319   PORT_START   /* IN0 */
320320   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
321321   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
364364
365365/* EXACTLY the same as bagman, the only difference is that the START1 button */
366366/* also acts as the shoot button. */
367INPUT_PORTS_START( sbagman )
367static INPUT_PORTS_START( sbagman )
368368   PORT_START   /* IN0 */
369369   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
370370   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
412412   PORT_DIPSETTING(   0x00, DEF_STR( Cocktail ) )
413413INPUT_PORTS_END
414414
415INPUT_PORTS_START( pickin )
415static INPUT_PORTS_START( pickin )
416416   PORT_START   /* IN0 */
417417   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
418418   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
459459   PORT_DIPSETTING(   0x00, DEF_STR( Cocktail ) )
460460INPUT_PORTS_END
461461
462INPUT_PORTS_START( botanic )
462static INPUT_PORTS_START( botanic )
463463   PORT_START   /* IN0 */
464464   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
465465   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/namcos23.c
r1238r1239
789789   AM_RANGE(H8_ADC_3_H, H8_ADC_3_L) AM_NOP
790790ADDRESS_MAP_END
791791
792INPUT_PORTS_START( ss23 )
792static INPUT_PORTS_START( ss23 )
793793INPUT_PORTS_END
794794
795795
r1238r1239
10901090ROM_END
10911091
10921092/* 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 )
10931094GAME( 1997, timecrs2, 0,         s23, ss23, ss23, ROT0, "Namco", "Time Crisis 2", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_SOUND )
10941095GAME( 1999, gp500,    0,        ss23, ss23, ss23, ROT0, "Namco", "GP500", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_SOUND )
10951096GAME( 1999, finfurl2, 0,        ss23, ss23, ss23, ROT0, "Namco", "Final Furlong 2 (World)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_SOUND )
src/mame/drivers/inufuku.c
r1238r1239
268268
269269******************************************************************************/
270270
271INPUT_PORTS_START( inufuku )
271static INPUT_PORTS_START( inufuku )
272272   PORT_START   // 0
273273   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
274274   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
src/mame/drivers/tattack.c
r1238r1239
6565   AM_RANGE(0xe000, 0xe3ff) AM_RAM
6666ADDRESS_MAP_END
6767
68INPUT_PORTS_START( tattack )
68static INPUT_PORTS_START( tattack )
6969PORT_START
7070   PORT_DIPNAME( 0x01, 0x00, "1-01" )
7171   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
src/mame/drivers/commando.c
r1238r1239
9393
9494/* Input Ports */
9595
96INPUT_PORTS_START( commando )
96static INPUT_PORTS_START( commando )
9797   PORT_START_TAG("IN0")
9898   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
9999   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
167167   PORT_DIPSETTING(    0xc0, DEF_STR( Cocktail ) )
168168INPUT_PORTS_END
169169
170INPUT_PORTS_START( commandu )
170static INPUT_PORTS_START( commandu )
171171   PORT_INCLUDE(commando)
172172
173173   PORT_MODIFY("DSW1")
src/mame/drivers/atarisy2.c
r1238r1239
715715 *
716716 *************************************/
717717
718INPUT_PORTS_START( paperboy )
718static INPUT_PORTS_START( paperboy )
719719   PORT_START_TAG("1840")   /*(sound) */
720720   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL )
721721   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL )
r1238r1239
815815INPUT_PORTS_END
816816
817817
818INPUT_PORTS_START( 720 )
818static INPUT_PORTS_START( 720 )
819819   PORT_START_TAG("1840")   /* (sound) */
820820   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL )
821821   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL )
r1238r1239
914914INPUT_PORTS_END
915915
916916
917INPUT_PORTS_START( ssprint )
917static INPUT_PORTS_START( ssprint )
918918   PORT_START_TAG("1840")
919919   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL )
920920   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL )
r1238r1239
10131013INPUT_PORTS_END
10141014
10151015
1016INPUT_PORTS_START( csprint )
1016static INPUT_PORTS_START( csprint )
10171017   PORT_START_TAG("1840")
10181018   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL )
10191019   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL )
r1238r1239
11121112INPUT_PORTS_END
11131113
11141114
1115INPUT_PORTS_START( apb )
1115static INPUT_PORTS_START( apb )
11161116   PORT_START_TAG("1840")
11171117   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL )
11181118   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL )
src/mame/drivers/mjsister.c
r1238r1239
182182
183183/****************************************************************************/
184184
185INPUT_PORTS_START( mjsister )
185static INPUT_PORTS_START( mjsister )
186186
187187   PORT_START   /* DSW1 (0) */
188188   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) )
src/mame/drivers/ninjakd2.c
r1238r1239
335335
336336
337337
338INPUT_PORTS_START( ninjakd2 )
338static INPUT_PORTS_START( ninjakd2 )
339339    PORT_START
340340    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT )
341341    PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )
src/mame/drivers/skydiver.c
r1238r1239
217217 *
218218 *************************************/
219219
220INPUT_PORTS_START( skydiver )
220static INPUT_PORTS_START( skydiver )
221221   PORT_START /* IN0 */
222222   PORT_BIT (0x3f, IP_ACTIVE_LOW, IPT_UNUSED )
223223   PORT_BIT (0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )
src/mame/drivers/yunsung8.c
r1238r1239
198198                                    Magix
199199***************************************************************************/
200200
201INPUT_PORTS_START( magix )
201static INPUT_PORTS_START( magix )
202202
203203   PORT_START   // IN0 - Coins
204204   PORT_BIT(  0x01, IP_ACTIVE_LOW, IPT_UNKNOWN  )
r1238r1239
286286                                Cannon Ball
287287***************************************************************************/
288288
289INPUT_PORTS_START( cannball )
289static INPUT_PORTS_START( cannball )
290290
291291   PORT_START   // IN0 - Coins
292292   PORT_BIT(  0x01, IP_ACTIVE_LOW, IPT_UNKNOWN  )
r1238r1239
372372                                    Rock Tris
373373***************************************************************************/
374374
375INPUT_PORTS_START( rocktris )
375static INPUT_PORTS_START( rocktris )
376376
377377   PORT_START   // IN0 - Coins
378378   PORT_BIT(  0x01, IP_ACTIVE_LOW, IPT_UNKNOWN  )
src/mame/drivers/warpwarp.c
r1238r1239
370370
371371
372372
373INPUT_PORTS_START( geebee )
373static INPUT_PORTS_START( geebee )
374374   PORT_START_TAG("SW0")
375375   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1   )
376376   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2   )
r1238r1239
410410   PORT_BIT( 0xff, 0x58, IPT_PADDLE ) PORT_MINMAX(0x10,0xa0) PORT_SENSITIVITY(30) PORT_KEYDELTA(15) PORT_CENTERDELTA(0) PORT_REVERSE PORT_COCKTAIL
411411INPUT_PORTS_END
412412
413INPUT_PORTS_START( navarone )
413static INPUT_PORTS_START( navarone )
414414   PORT_START_TAG("SW0")
415415   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1   )
416416   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
r1238r1239
452452   PORT_BIT( 0x02, 0x00, IPT_JOYSTICK_LEFT ) PORT_COCKTAIL
453453INPUT_PORTS_END
454454
455INPUT_PORTS_START( kaitei )
455static INPUT_PORTS_START( kaitei )
456456   PORT_START_TAG("SW0")
457457   PORT_BIT( 0x01, IP_ACTIVE_LOW,   IPT_COIN1 )
458458   PORT_BIT( 0x02, IP_ACTIVE_LOW,   IPT_BUTTON1 ) PORT_COCKTAIL
r1238r1239
492492   PORT_BIT( 0x02, 0x00, IPT_JOYSTICK_LEFT ) PORT_COCKTAIL
493493INPUT_PORTS_END
494494
495INPUT_PORTS_START( kaiteik )
495static INPUT_PORTS_START( kaiteik )
496496   PORT_START_TAG("SW0")
497497   PORT_BIT( 0x01, IP_ACTIVE_LOW,   IPT_COIN1 )
498498   PORT_BIT( 0x04, IP_ACTIVE_LOW,   IPT_START1 )
r1238r1239
536536   PORT_BIT( 0xc0, 0x80, IPT_UNKNOWN )   // game verifies these two bits and freezes if they don't match
537537INPUT_PORTS_END
538538
539INPUT_PORTS_START( sos )
539static INPUT_PORTS_START( sos )
540540   PORT_START_TAG("SW0")
541541   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1   )
542542   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
r1238r1239
577577   PORT_BIT( 0x02, 0x00, IPT_JOYSTICK_LEFT ) PORT_COCKTAIL
578578INPUT_PORTS_END
579579
580INPUT_PORTS_START( bombbee )
580static INPUT_PORTS_START( bombbee )
581581   PORT_START_TAG("IN0")
582582   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
583583   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
621621   PORT_BIT( 0xff, 0x60, IPT_PADDLE ) PORT_MINMAX(0x14,0xac) PORT_SENSITIVITY(30) PORT_KEYDELTA(10) PORT_CENTERDELTA(0) PORT_REVERSE PORT_COCKTAIL
622622INPUT_PORTS_END
623623
624INPUT_PORTS_START( cutieq )
624static INPUT_PORTS_START( cutieq )
625625   PORT_START_TAG("IN0")
626626   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
627627   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
665665   PORT_BIT( 0xff, 0x60, IPT_PADDLE ) PORT_MINMAX(0x14,0xac) PORT_SENSITIVITY(30) PORT_KEYDELTA(10) PORT_CENTERDELTA(0) PORT_REVERSE PORT_COCKTAIL
666666INPUT_PORTS_END
667667
668INPUT_PORTS_START( warpwarp )
668static INPUT_PORTS_START( warpwarp )
669669   PORT_START_TAG("IN0")
670670   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
671671   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
r1238r1239
724724INPUT_PORTS_END
725725
726726/* has High Score Initials dip switch instead of rack test */
727INPUT_PORTS_START( warpwarr )
727static INPUT_PORTS_START( warpwarr )
728728   PORT_START_TAG("IN0")
729729   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
730730   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
src/mame/drivers/cubocd32.c
r1238r1239
185185
186186
187187
188INPUT_PORTS_START( cd32 )
188static INPUT_PORTS_START( cd32 )
189189   PORT_START_TAG("CIA0PORTA")
190190   PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_SPECIAL )
191191   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
390390/***************************************************************************************************/
391391
392392/* BIOS */
393GAMEB( 1993, cd32, 0, cd32, cd32, cd32, cd32,   ROT0, "Commodore", "Amiga CD32 Bios", GAME_IS_BIOS_ROOT )
393GAME( 1993, cd32, 0, cd32, cd32, cd32,   ROT0, "Commodore", "Amiga CD32 Bios", GAME_IS_BIOS_ROOT )
394394
395GAMEB( 1995, cndypuzl, cd32, cd32, cd32, cd32, cd32,      ROT0, "CD Express", "Candy Puzzle (v1.0)", GAME_NOT_WORKING|GAME_NO_SOUND )
396GAMEB( 1995, haremchl, cd32, cd32, cd32, cd32, cd32,      ROT0, "CD Express", "Harem Challenge", GAME_NOT_WORKING|GAME_NO_SOUND )
397GAMEB( 1995, lsrquiz,  cd32, cd32, cd32, cd32, cd32,      ROT0, "CD Express", "Laser Quiz", GAME_NOT_WORKING|GAME_NO_SOUND )
398GAMEB( 1995, lsrquiz2, cd32, cd32, cd32, cd32, cd32,      ROT0, "CD Express", "Laser Quiz '2' Italy (v1.0)", GAME_NOT_WORKING|GAME_NO_SOUND )
399GAMEB( 1996, mgprem11, cd32, cd32, cd32, cd32, cd32,      ROT0, "CD Express", "Magic Premium (v1.1)", GAME_NOT_WORKING|GAME_NO_SOUND )
400GAMEB( 1995, lasstixx, cd32, cd32, cd32, cd32, cd32,      ROT0, "CD Express", "Laser Strixx", GAME_NOT_WORKING|GAME_NO_SOUND )
395GAME( 1995, cndypuzl, cd32, cd32, cd32, cd32,      ROT0, "CD Express", "Candy Puzzle (v1.0)", GAME_NOT_WORKING|GAME_NO_SOUND )
396GAME( 1995, haremchl, cd32, cd32, cd32, cd32,      ROT0, "CD Express", "Harem Challenge", GAME_NOT_WORKING|GAME_NO_SOUND )
397GAME( 1995, lsrquiz,  cd32, cd32, cd32, cd32,      ROT0, "CD Express", "Laser Quiz", GAME_NOT_WORKING|GAME_NO_SOUND )
398GAME( 1995, lsrquiz2, cd32, cd32, cd32, cd32,      ROT0, "CD Express", "Laser Quiz '2' Italy (v1.0)", GAME_NOT_WORKING|GAME_NO_SOUND )
399GAME( 1996, mgprem11, cd32, cd32, cd32, cd32,      ROT0, "CD Express", "Magic Premium (v1.1)", GAME_NOT_WORKING|GAME_NO_SOUND )
400GAME( 1995, lasstixx, cd32, cd32, cd32, cd32,      ROT0, "CD Express", "Laser Strixx", GAME_NOT_WORKING|GAME_NO_SOUND )
src/mame/drivers/wheelfir.c
r1238r1239
404404ADDRESS_MAP_END
405405
406406
407INPUT_PORTS_START( wheelfir )
407static INPUT_PORTS_START( wheelfir )
408408   PORT_START   /* 16bit */
409409   PORT_DIPNAME( 0x0001, 0x0001, "0" )
410410   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
src/mame/drivers/steaser.c
r1238r1239
5656   AM_RANGE(0x200000, 0x20ffff) AM_RAM
5757ADDRESS_MAP_END
5858
59INPUT_PORTS_START( steaser )
59static INPUT_PORTS_START( steaser )
6060INPUT_PORTS_END
6161
6262
src/mame/drivers/cbuster.c
r1238r1239
200200
201201/******************************************************************************/
202202
203INPUT_PORTS_START( twocrude )
203static INPUT_PORTS_START( twocrude )
204204   PORT_START   /* Player 1 controls */
205205   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
206206   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/ghosteo.c
r1238r1239
374374
375375ADDRESS_MAP_END
376376
377INPUT_PORTS_START( bballoon )
377static INPUT_PORTS_START( bballoon )
378378INPUT_PORTS_END
379379
380380static int irq_en = 0;
src/mame/drivers/dunhuang.c
r1238r1239
439439                                Input Ports
440440***************************************************************************/
441441
442INPUT_PORTS_START( dunhuang )
442static INPUT_PORTS_START( dunhuang )
443443   PORT_START   // IN0 - DSW1
444444   PORT_DIPNAME( 0x0f, 0x0f, "Main Game Chance (%)" )
445445   PORT_DIPSETTING(    0x00, "78" )
src/mame/drivers/gng.c
r1238r1239
187187   PORT_DIPSETTING(   0x20, "Difficult" )\
188188   PORT_DIPSETTING(   0x00, "Very Difficult" )
189189
190INPUT_PORTS_START( gng )
190static INPUT_PORTS_START( gng )
191191GNG_COMMON
192192
193193   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
r1238r1239
196196INPUT_PORTS_END
197197
198198/* identical to gng, but the "unknown" dip switch is Invulnerability */
199INPUT_PORTS_START( makaimur )
199static INPUT_PORTS_START( makaimur )
200200GNG_COMMON
201201   PORT_DIPNAME( 0x80, 0x80, "Invulnerability (Cheat)")
202202   PORT_DIPSETTING(   0x80, DEF_STR( Off ) )
203203   PORT_DIPSETTING(   0x00, DEF_STR( On ) )
204204INPUT_PORTS_END
205205
206INPUT_PORTS_START( diamond )
206static INPUT_PORTS_START( diamond )
207207   PORT_START_TAG("IN0")
208208   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
209209   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/onetwo.c
r1238r1239
135135   AM_RANGE(0xc0, 0xc0) AM_WRITE(soundlatch_clear_w)
136136ADDRESS_MAP_END
137137
138INPUT_PORTS_START( onetwo )
138static INPUT_PORTS_START( onetwo )
139139   PORT_START
140140   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
141141   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
src/mame/drivers/ojankohs.c
r1238r1239
350350ADDRESS_MAP_END
351351
352352
353INPUT_PORTS_START( ojankohs )
353static INPUT_PORTS_START( ojankohs )
354354   PORT_START_TAG("IN0")   /* (0) TEST SW */
355355   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
356356   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE3 )      // MEMORY RESET
r1238r1239
459459   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
460460INPUT_PORTS_END
461461
462INPUT_PORTS_START( ojankoy )
462static INPUT_PORTS_START( ojankoy )
463463   PORT_START_TAG("IN0")   /* (0) TEST SW */
464464   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
465465   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE3 )      // MEMORY RESET
r1238r1239
578578   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
579579INPUT_PORTS_END
580580
581INPUT_PORTS_START( ccasino )
581static INPUT_PORTS_START( ccasino )
582582   PORT_START_TAG("IN0")   /* (0) TEST SW */
583583   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
584584   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE3 )      // MEMORY RESET
r1238r1239
754754   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
755755INPUT_PORTS_END
756756
757INPUT_PORTS_START( ojankoc )
757static INPUT_PORTS_START( ojankoc )
758758   PORT_START_TAG("DSW1")   /* DSW1 (0) */
759759   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) )
760760   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
src/mame/drivers/n8080.c
r1238r1239
152152MACHINE_DRIVER_END
153153
154154
155INPUT_PORTS_START( spacefev )
155static INPUT_PORTS_START( spacefev )
156156   PORT_START
157157   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 )
158158   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY
r1238r1239
203203INPUT_PORTS_END
204204
205205
206INPUT_PORTS_START( highsplt )
206static INPUT_PORTS_START( highsplt )
207207   PORT_START
208208   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 )
209209   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY
r1238r1239
253253INPUT_PORTS_END
254254
255255
256INPUT_PORTS_START( spacelnc )
256static INPUT_PORTS_START( spacelnc )
257257   PORT_START
258258   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 )
259259   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY
r1238r1239
303303INPUT_PORTS_END
304304
305305
306INPUT_PORTS_START( sheriff )
306static INPUT_PORTS_START( sheriff )
307307   PORT_START
308308   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_RIGHT )
309309   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_LEFT )
r1238r1239
351351INPUT_PORTS_END
352352
353353
354INPUT_PORTS_START( bandido )
354static INPUT_PORTS_START( bandido )
355355   PORT_START
356356   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_RIGHT )
357357   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_LEFT )
r1238r1239
401401INPUT_PORTS_END
402402
403403
404INPUT_PORTS_START( helifire )
404static INPUT_PORTS_START( helifire )
405405   PORT_START
406406   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT )
407407   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT )
src/mame/drivers/nbmj8891.c
r1238r1239
767767ADDRESS_MAP_END
768768
769769
770INPUT_PORTS_START( hanamomo )
770static INPUT_PORTS_START( hanamomo )
771771   PORT_START   /* (0) DIPSW-A */
772772   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
773773   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
843843   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
844844INPUT_PORTS_END
845845
846INPUT_PORTS_START( mjcamerb )
846static INPUT_PORTS_START( mjcamerb )
847847   PORT_START   /* (0) DIPSW-A */
848848   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
849849   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
919919   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
920920INPUT_PORTS_END
921921
922INPUT_PORTS_START( mmcamera )
922static INPUT_PORTS_START( mmcamera )
923923   PORT_START   /* (0) DIPSW-A */
924924   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
925925   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
995995   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
996996INPUT_PORTS_END
997997
998INPUT_PORTS_START( msjiken )
998static INPUT_PORTS_START( msjiken )
999999   PORT_START   /* (0) DIPSW-A */
10001000   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
10011001   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
10911091   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
10921092INPUT_PORTS_END
10931093
1094INPUT_PORTS_START( telmahjn )
1094static INPUT_PORTS_START( telmahjn )
10951095   PORT_START   /* (0) DIPSW-A */
10961096   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
10971097   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
11871187   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
11881188INPUT_PORTS_END
11891189
1190INPUT_PORTS_START( gionbana )
1190static INPUT_PORTS_START( gionbana )
11911191   PORT_START   /* (0) DIPSW-A */
11921192   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
11931193   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
12621262   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
12631263INPUT_PORTS_END
12641264
1265INPUT_PORTS_START( mgion )
1265static INPUT_PORTS_START( mgion )
12661266   PORT_START   /* (0) DIPSW-A */
12671267   PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" )
12681268   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
13381338   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
13391339INPUT_PORTS_END
13401340
1341INPUT_PORTS_START( omotesnd )
1341static INPUT_PORTS_START( omotesnd )
13421342   PORT_START   /* (0) DIPSW-A */
13431343   PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" )
13441344   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
14141414   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
14151415INPUT_PORTS_END
14161416
1417INPUT_PORTS_START( abunai )
1417static INPUT_PORTS_START( abunai )
14181418   PORT_START   /* (0) DIPSW-A */
14191419   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
14201420   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
14891489   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
14901490INPUT_PORTS_END
14911491
1492INPUT_PORTS_START( mgmen89 )
1492static INPUT_PORTS_START( mgmen89 )
14931493   PORT_START   /* (0) DIPSW-A */
14941494   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
14951495   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
15651565   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
15661566INPUT_PORTS_END
15671567
1568INPUT_PORTS_START( mjfocus )
1568static INPUT_PORTS_START( mjfocus )
15691569
15701570   // I don't have manual for this game.
15711571
r1238r1239
16441644   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
16451645INPUT_PORTS_END
16461646
1647INPUT_PORTS_START( mjfocusm )
1647static INPUT_PORTS_START( mjfocusm )
16481648   PORT_START   /* (0) DIPSW-A */
16491649   PORT_DIPNAME( 0x07, 0x07, "Game Out" )
16501650   PORT_DIPSETTING(    0x07, "95% (Easy)" )
r1238r1239
17181718   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
17191719INPUT_PORTS_END
17201720
1721INPUT_PORTS_START( peepshow )
1721static INPUT_PORTS_START( peepshow )
17221722   PORT_START   /* (0) DIPSW-A */
17231723   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
17241724   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
17941794   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
17951795INPUT_PORTS_END
17961796
1797INPUT_PORTS_START( scandal )
1797static INPUT_PORTS_START( scandal )
17981798   PORT_START   /* (0) DIPSW-A */
17991799   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
18001800   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
18701870   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
18711871INPUT_PORTS_END
18721872
1873INPUT_PORTS_START( scandalm )
1873static INPUT_PORTS_START( scandalm )
18741874   PORT_START   /* (0) DIPSW-A */
18751875   PORT_DIPNAME( 0x07, 0x07, "Game Out" )
18761876   PORT_DIPSETTING(    0x07, "90% (Easy)" )
r1238r1239
19441944   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
19451945INPUT_PORTS_END
19461946
1947INPUT_PORTS_START( mjnanpas )
1947static INPUT_PORTS_START( mjnanpas )
19481948   PORT_START   /* (0) DIPSW-A */
19491949   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
19501950   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
20202020   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
20212021INPUT_PORTS_END
20222022
2023INPUT_PORTS_START( mjnanpaa )
2023static INPUT_PORTS_START( mjnanpaa )
20242024   PORT_START   /* (0) DIPSW-A */
20252025   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
20262026   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
20962096   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
20972097INPUT_PORTS_END
20982098
2099INPUT_PORTS_START( bananadr )
2099static INPUT_PORTS_START( bananadr )
21002100
21012101   // I don't have manual for this game.
21022102
r1238r1239
21752175   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
21762176INPUT_PORTS_END
21772177
2178INPUT_PORTS_START( club90s )
2178static INPUT_PORTS_START( club90s )
21792179   PORT_START   /* (0) DIPSW-A */
21802180   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
21812181   PORT_DIPSETTING(    0x03, "1" )
r1238r1239
22502250   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
22512251INPUT_PORTS_END
22522252
2253INPUT_PORTS_START( lovehous )
2253static INPUT_PORTS_START( lovehous )
22542254
22552255   // I don't have manual for this game.
22562256
r1238r1239
23372337   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
23382338INPUT_PORTS_END
23392339
2340INPUT_PORTS_START( mladyhtr )
2340static INPUT_PORTS_START( mladyhtr )
23412341   PORT_START   /* (0) DIPSW-A */
23422342   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
23432343   PORT_DIPSETTING(    0x03, "1" )
r1238r1239
24122412   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
24132413INPUT_PORTS_END
24142414
2415INPUT_PORTS_START( chinmoku )
2415static INPUT_PORTS_START( chinmoku )
24162416   PORT_START   /* (0) DIPSW-A */
24172417   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
24182418   PORT_DIPSETTING(    0x03, "1" )
r1238r1239
24872487   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
24882488INPUT_PORTS_END
24892489
2490INPUT_PORTS_START( maiko )
2490static INPUT_PORTS_START( maiko )
24912491   PORT_START   /* (0) DIPSW-A */
24922492   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
24932493   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
25732573   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )         //
25742574INPUT_PORTS_END
25752575
2576INPUT_PORTS_START( mmaiko )
2576static INPUT_PORTS_START( mmaiko )
25772577
25782578   // I don't have manual for this game.
25792579
r1238r1239
26592659   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
26602660INPUT_PORTS_END
26612661
2662INPUT_PORTS_START( hanaoji )
2662static INPUT_PORTS_START( hanaoji )
26632663   PORT_START   /* (0) DIPSW-A */
26642664   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
26652665   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
27452745   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )         //
27462746INPUT_PORTS_END
27472747
2748INPUT_PORTS_START( pairsnb )
2748static INPUT_PORTS_START( pairsnb )
27492749   PORT_START /* (0) DIPSW-A */
27502750   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
27512751   PORT_DIPSETTING(    0x03, DEF_STR( Easy ) )         // Hearts : 10 - Time : 60/60
r1238r1239
28282828   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
28292829INPUT_PORTS_END
28302830
2831INPUT_PORTS_START( taiwanmb )
2831static INPUT_PORTS_START( taiwanmb )
28322832   PORT_START   /* (0) DIPSW-A */
28332833   PORT_DIPNAME( 0x07, 0x07, "Game Out" )
28342834   PORT_DIPSETTING(    0x07, "95% (Easy)" )
src/mame/drivers/wc90b.c
r1238r1239
218218
219219
220220
221INPUT_PORTS_START( wc90b )
221static INPUT_PORTS_START( wc90b )
222222   PORT_START   /* IN0 bit 0-5 */
223223   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
224224   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
src/mame/drivers/kncljoe.c
r1238r1239
6363
6464/******************************************************************************/
6565
66INPUT_PORTS_START( kncljoe )
66static INPUT_PORTS_START( kncljoe )
6767   PORT_START_TAG("IN0")
6868   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
6969   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/holeland.c
r1238r1239
7777
7878
7979
80INPUT_PORTS_START( holeland )
80static INPUT_PORTS_START( holeland )
8181   PORT_START_TAG("IN0")
8282   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 )
8383   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
146146   PORT_DIPSETTING(    0x80, "Play" )
147147INPUT_PORTS_END
148148
149INPUT_PORTS_START( crzrally )
149static INPUT_PORTS_START( crzrally )
150150   PORT_START_TAG("IN0")
151151   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
152152   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
src/mame/drivers/liberate.c
r1238r1239
290290 *
291291 *************************************/
292292
293INPUT_PORTS_START( boomrang )
293static INPUT_PORTS_START( boomrang )
294294   PORT_INCLUDE( generic_input )
295295
296296   PORT_MODIFY("DSW2")
r1238r1239
317317   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
318318INPUT_PORTS_END
319319
320INPUT_PORTS_START( kamikcab )
320static INPUT_PORTS_START( kamikcab )
321321   PORT_INCLUDE( generic_input )
322322
323323   PORT_MODIFY("DSW2")
r1238r1239
341341   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
342342INPUT_PORTS_END
343343
344INPUT_PORTS_START( yellowcb )
344static INPUT_PORTS_START( yellowcb )
345345   PORT_INCLUDE( kamikcab )
346346
347347   PORT_MODIFY("IN0")
r1238r1239
349349   PORT_BIT( 0xfb, IP_ACTIVE_HIGH, IPT_UNKNOWN )
350350INPUT_PORTS_END
351351
352INPUT_PORTS_START( liberate )
352static INPUT_PORTS_START( liberate )
353353   PORT_INCLUDE( generic_input )
354354
355355   PORT_MODIFY("DSW1")
r1238r1239
376376   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
377377INPUT_PORTS_END
378378
379INPUT_PORTS_START( dualaslt )
379static INPUT_PORTS_START( dualaslt )
380380   PORT_INCLUDE( liberate )
381381
382382   PORT_MODIFY("DSW1")
r1238r1239
385385   PORT_DIPSETTING(    0x80, "(INVALID) Data East Corporation (Liberation)" )
386386INPUT_PORTS_END
387387
388INPUT_PORTS_START( liberatb )
388static INPUT_PORTS_START( liberatb )
389389   PORT_INCLUDE( liberate )
390390
391391   PORT_MODIFY("IN0")
src/mame/drivers/spdodgeb.c
r1238r1239
304304ADDRESS_MAP_END
305305
306306
307INPUT_PORTS_START( spdodgeb )
307static INPUT_PORTS_START( spdodgeb )
308308   PORT_START
309309   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_VBLANK )
310310   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* mcu63701_busy flag */
src/mame/drivers/gunsmoke.c
r1238r1239
140140
141141/* Input Ports */
142142
143INPUT_PORTS_START( gunsmoke )
143static INPUT_PORTS_START( gunsmoke )
144144   PORT_START_TAG("IN0")
145145   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
146146   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
220220   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
221221INPUT_PORTS_END
222222
223INPUT_PORTS_START( gunsmoka )
223static INPUT_PORTS_START( gunsmoka )
224224   PORT_INCLUDE(gunsmoke)
225225
226226   // Same as 'gunsmoke', but "Lives" Dip Switch instead of "Demonstration" Dip Switch
src/mame/drivers/cvs.c
r1238r1239
9494VIDEO_UPDATE( cvs );
9595VIDEO_START( cvs );
9696
97extern UINT8 *bullet_ram;
97extern UINT8 *cvs_bullet_ram;
9898
9999WRITE8_HANDLER( cvs_videoram_w );
100100WRITE8_HANDLER( cvs_bullet_w );
r1238r1239
213213   DAC_1_data_w(0,DAC_Value);
214214}
215215
216READ8_HANDLER( CVS_393hz_Clock_r )
216static READ8_HANDLER( cvs_393hz_Clock_r )
217217{
218218     if(cpu_scalebyfcount(6) & 1) return 0x80;
219219    else return 0;
r1238r1239
227227
228228static ADDRESS_MAP_START( cvs_cpu1_program, ADDRESS_SPACE_PROGRAM, 8 )
229229   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)
231231    AM_RANGE(0x1500, 0x15ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_2636_3_r, cvs_2636_3_w) AM_BASE(&s2636_3_ram)
232232    AM_RANGE(0x1600, 0x16ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_2636_2_r, cvs_2636_2_w) AM_BASE(&s2636_2_ram)
233233    AM_RANGE(0x1700, 0x17ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_2636_1_r, cvs_2636_1_w) AM_BASE(&s2636_1_ram)
r1238r1239
263263ADDRESS_MAP_END
264264
265265static ADDRESS_MAP_START( cvs_cpu2_io, ADDRESS_SPACE_IO, 8 )
266    AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ(CVS_393hz_Clock_r)
266    AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ(cvs_393hz_Clock_r)
267267ADDRESS_MAP_END
268268
269INPUT_PORTS_START( cvs )
269static INPUT_PORTS_START( cvs )
270270
271271   PORT_START   /* Matrix 0 */
272272    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )            /* Confirmed */
src/mame/drivers/turbo.c
r1238r1239
745745 *
746746 *************************************/
747747
748INPUT_PORTS_START( turbo )
748static INPUT_PORTS_START( turbo )
749749   PORT_START      /* IN0 */
750750   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 )            /* ACCEL B */
751751   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )            /* ACCEL A */
r1238r1239
834834INPUT_PORTS_END
835835
836836
837INPUT_PORTS_START( subroc3d )
837static INPUT_PORTS_START( subroc3d )
838838   PORT_START
839839   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )
840840   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )
r1238r1239
903903INPUT_PORTS_END
904904
905905
906INPUT_PORTS_START( buckrog )
906static INPUT_PORTS_START( buckrog )
907907   PORT_START
908908   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START2 )
909909   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) // Accel Hi
src/mame/drivers/seta.c
r1238r1239
30803080                                Arbalester
30813081***************************************************************************/
30823082
3083INPUT_PORTS_START( arbalest )
3083static INPUT_PORTS_START( arbalest )
30843084   PORT_START_TAG("IN0")   // Player 1
30853085   JOY_TYPE2_2BUTTONS(1)
30863086
r1238r1239
31473147                                Athena no Hatena?
31483148***************************************************************************/
31493149
3150INPUT_PORTS_START( atehate )
3150static INPUT_PORTS_START( atehate )
31513151   PORT_START_TAG("IN0")   // Player 1
31523152   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
31533153   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1)
r1238r1239
32303230                                Blandia
32313231***************************************************************************/
32323232
3233INPUT_PORTS_START( blandia )
3233static INPUT_PORTS_START( blandia )
32343234   PORT_START_TAG("IN0")   //Player 1 - $400000.w
32353235   JOY_TYPE1_3BUTTONS(1)
32363236
r1238r1239
33013301                                Block Carnival
33023302***************************************************************************/
33033303
3304INPUT_PORTS_START( blockcar )
3304static INPUT_PORTS_START( blockcar )
33053305   PORT_START_TAG("IN0")   //Player 1 - $500001.b
33063306   JOY_TYPE1_2BUTTONS(1)   // button2 = speed up
33073307
r1238r1239
33703370                                Caliber 50
33713371***************************************************************************/
33723372
3373INPUT_PORTS_START( calibr50 )
3373static INPUT_PORTS_START( calibr50 )
33743374   PORT_START_TAG("IN0")   //Player 1
33753375   JOY_TYPE2_2BUTTONS(1)
33763376
r1238r1239
34443444                                Daioh
34453445***************************************************************************/
34463446
3447INPUT_PORTS_START( daioh )
3447static INPUT_PORTS_START( daioh )
34483448   PORT_START_TAG("IN0")
34493449   JOY_TYPE1_3BUTTONS(1)
34503450
r1238r1239
35313531                                Dragon Unit
35323532***************************************************************************/
35333533
3534INPUT_PORTS_START( drgnunit )
3534static INPUT_PORTS_START( drgnunit )
35353535   PORT_START_TAG("IN0")   //Player 1
35363536   JOY_TYPE1_3BUTTONS(1)
35373537
r1238r1239
36063606                                DownTown
36073607***************************************************************************/
36083608
3609INPUT_PORTS_START( downtown )
3609static INPUT_PORTS_START( downtown )
36103610   PORT_START_TAG("IN0")   //Player 1
36113611   JOY_TYPE2_2BUTTONS(1)
36123612
r1238r1239
36933693                                Eight Force
36943694***************************************************************************/
36953695
3696INPUT_PORTS_START( eightfrc )
3696static INPUT_PORTS_START( eightfrc )
36973697   PORT_START_TAG("IN0")   //Player 1
36983698   JOY_TYPE1_2BUTTONS(1)
36993699
r1238r1239
37643764                                Extreme Downhill
37653765***************************************************************************/
37663766
3767INPUT_PORTS_START( extdwnhl )
3767static INPUT_PORTS_START( extdwnhl )
37683768   PORT_START_TAG("IN0") //Player 1
37693769   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1)
37703770   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1)
r1238r1239
38583858                                Gundhara
38593859***************************************************************************/
38603860
3861INPUT_PORTS_START( gundhara )
3861static INPUT_PORTS_START( gundhara )
38623862   PORT_START_TAG("IN0") //Player 1
38633863   JOY_TYPE1_3BUTTONS(1)
38643864
r1238r1239
39273927                                Zombie Raid
39283928***************************************************************************/
39293929
3930INPUT_PORTS_START( zombraid )
3930static INPUT_PORTS_START( zombraid )
39313931   PORT_START_TAG("IN0") //Player 1
39323932   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN  )
39333933   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN  )
r1238r1239
40234023                                J.J.Squawkers
40244024***************************************************************************/
40254025
4026INPUT_PORTS_START( jjsquawk )
4026static INPUT_PORTS_START( jjsquawk )
40274027   PORT_START_TAG("IN0") //Player 1 - $400000.w
40284028   JOY_TYPE1_2BUTTONS(1)
40294029
r1238r1239
40914091                (Kamen) Masked Riders Club Battle Race
40924092***************************************************************************/
40934093
4094INPUT_PORTS_START( kamenrid )
4094static INPUT_PORTS_START( kamenrid )
40954095   PORT_START_TAG("IN0") //Player 1
40964096   JOY_TYPE1_2BUTTONS(1)   // BUTTON3 in "test mode" only
40974097
r1238r1239
41774177#define KRZYBOWL_TRACKBALL(_dir_, _n_ ) \
41784178   PORT_BIT( 0x0fff, 0x0000, IPT_TRACKBALL_##_dir_ ) PORT_PLAYER(_n_) PORT_SENSITIVITY(70) PORT_KEYDELTA(30) PORT_REVERSE
41794179
4180INPUT_PORTS_START( krzybowl )
4180static INPUT_PORTS_START( krzybowl )
41814181   PORT_START_TAG("IN0") //Player 1
41824182   JOY_TYPE1_3BUTTONS(1)
41834183
r1238r1239
42604260                                Mad Shark
42614261***************************************************************************/
42624262
4263INPUT_PORTS_START( madshark )
4263static INPUT_PORTS_START( madshark )
42644264   PORT_START_TAG("IN0") //Player 1
42654265   JOY_TYPE1_2BUTTONS(1)
42664266
r1238r1239
43384338                                Meta Fox
43394339***************************************************************************/
43404340
4341INPUT_PORTS_START( metafox )
4341static INPUT_PORTS_START( metafox )
43424342   PORT_START_TAG("IN0") //Player 1
43434343   JOY_TYPE2_2BUTTONS(1)
43444344
r1238r1239
44074407***************************************************************************/
44084408
44094409
4410INPUT_PORTS_START( msgundam )
4410static INPUT_PORTS_START( msgundam )
44114411   PORT_START_TAG("IN0") //Player 1 - $400000.w
44124412   JOY_TYPE1_2BUTTONS(1)
44134413
r1238r1239
44754475   PORT_SERVICE( 0x8000, IP_ACTIVE_LOW )
44764476INPUT_PORTS_END
44774477
4478INPUT_PORTS_START( msgunda1 )
4478static INPUT_PORTS_START( msgunda1 )
44794479   PORT_START_TAG("IN0") //Player 1 - $400000.w
44804480   JOY_TYPE1_2BUTTONS(1)
44814481
r1238r1239
45494549                            Oishii Puzzle
45504550***************************************************************************/
45514551
4552INPUT_PORTS_START( oisipuzl )
4552static INPUT_PORTS_START( oisipuzl )
45534553   PORT_START_TAG("IN0") //Player 1
45544554   JOY_TYPE1_2BUTTONS(1)
45554555
r1238r1239
46184618                            Pro Mahjong Kiwame
46194619***************************************************************************/
46204620
4621INPUT_PORTS_START( kiwame )
4621static INPUT_PORTS_START( kiwame )
46224622   PORT_START_TAG("IN0") //Unused
46234623   PORT_START_TAG("IN1") //Unused
46244624
r1238r1239
47334733                                Quiz Kokology
47344734***************************************************************************/
47354735
4736INPUT_PORTS_START( qzkklogy )
4736static INPUT_PORTS_START( qzkklogy )
47374737   PORT_START_TAG("IN0") //Player 1 - $b00001.b
47384738   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
47394739   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1)
r1238r1239
48134813                                Quiz Kokology 2
48144814***************************************************************************/
48154815
4816INPUT_PORTS_START( qzkklgy2 )
4816static INPUT_PORTS_START( qzkklgy2 )
48174817   PORT_START_TAG("IN0") //Player 1 - $b00001.b
48184818   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
48194819   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1)
r1238r1239
48924892                                    Rezon
48934893***************************************************************************/
48944894
4895INPUT_PORTS_START( rezon )
4895static INPUT_PORTS_START( rezon )
48964896   PORT_START_TAG("IN0") //Player 1
48974897   JOY_TYPE1_3BUTTONS(1)   // 1 used??
48984898
r1238r1239
49614961   PORT_DIPSETTING(      0x0000, DEF_STR( Free_Play ) )
49624962INPUT_PORTS_END
49634963
4964INPUT_PORTS_START( rezont )
4964static INPUT_PORTS_START( rezont )
49654965
49664966   PORT_INCLUDE( rezon )
49674967
r1238r1239
49774977    When the "Stage Select" dip switch is on and button1 is pressed during boot,
49784978    pressing P1's button3 freezes the game (pressing P2's button3 resumes it).
49794979*/
4980INPUT_PORTS_START( neobattl )
4980static INPUT_PORTS_START( neobattl )
49814981   PORT_START_TAG("IN0") // Player 1 - $400000.w
49824982   JOY_TYPE1_1BUTTON(1)   // bump to 3 buttons for freezing to work
49834983
r1238r1239
50535053                                Sokonuke
50545054***************************************************************************/
50555055
5056INPUT_PORTS_START( sokonuke )
5056static INPUT_PORTS_START( sokonuke )
50575057   PORT_START_TAG("IN0") //Player 1
50585058   JOY_TYPE1_1BUTTON(1)
50595059
r1238r1239
51255125                                Strike Gunner
51265126***************************************************************************/
51275127
5128INPUT_PORTS_START( stg )
5128static INPUT_PORTS_START( stg )
51295129   PORT_START_TAG("IN0") //Player 1 - $b00001.b
51305130   JOY_TYPE1_2BUTTONS(1)
51315131
r1238r1239
51945194                            Thunder & Lightning
51955195***************************************************************************/
51965196
5197INPUT_PORTS_START( thunderl )
5197static INPUT_PORTS_START( thunderl )
51985198   PORT_START_TAG("IN0") //Player 1
51995199   JOY_TYPE1_2BUTTONS(1)   // button2 = speed up
52005200
r1238r1239
52845284                                Thundercade (US)
52855285***************************************************************************/
52865286
5287INPUT_PORTS_START( tndrcade )
5287static INPUT_PORTS_START( tndrcade )
52885288   PORT_START_TAG("IN0") //Player 1
52895289   JOY_TYPE1_2BUTTONS(1)
52905290
r1238r1239
53515351                                Thundercade (Japan)
53525352***************************************************************************/
53535353
5354INPUT_PORTS_START( tndrcadj )
5354static INPUT_PORTS_START( tndrcadj )
53555355   PORT_START_TAG("IN0") //Player 1
53565356   JOY_TYPE1_2BUTTONS(1)
53575357
r1238r1239
54195419                                Twin Eagle
54205420***************************************************************************/
54215421
5422INPUT_PORTS_START( twineagl )
5422static INPUT_PORTS_START( twineagl )
54235423   PORT_START_TAG("IN0") //Player 1
54245424   JOY_TYPE1_2BUTTONS(1)
54255425
r1238r1239
54855485                                Ultraman Club
54865486***************************************************************************/
54875487
5488INPUT_PORTS_START( umanclub )
5488static INPUT_PORTS_START( umanclub )
54895489   PORT_START_TAG("IN0") //Player 1
54905490   JOY_TYPE1_2BUTTONS(1)
54915491
r1238r1239
55605560                            Ultra Toukon Densetsu
55615561***************************************************************************/
55625562
5563INPUT_PORTS_START( utoukond )
5563static INPUT_PORTS_START( utoukond )
55645564   PORT_START_TAG("IN0") //Player 1
55655565   JOY_TYPE1_3BUTTONS(1)
55665566
r1238r1239
56515651#define TRACKBALL(_dir_) \
56525652   PORT_BIT( 0x0fff, 0x0000, IPT_TRACKBALL_##_dir_ ) PORT_SENSITIVITY(70) PORT_KEYDELTA(30) PORT_RESET
56535653
5654INPUT_PORTS_START( usclssic )
5654static INPUT_PORTS_START( usclssic )
56555655   PORT_START_TAG("IN0")
56565656   TRACKBALL(X)
56575657   PORT_BIT   ( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
57285728                                War of Aero
57295729***************************************************************************/
57305730
5731INPUT_PORTS_START( wrofaero )
5731static INPUT_PORTS_START( wrofaero )
57325732   PORT_START_TAG("IN0") //Player 1 - $400000.w
57335733   JOY_TYPE1_3BUTTONS(1)   // 3rd button selects the weapon
57345734                     // when the dsw for cheating is on
r1238r1239
58055805                                    Wit's
58065806***************************************************************************/
58075807
5808INPUT_PORTS_START( wits )
5808static INPUT_PORTS_START( wits )
58095809   PORT_START_TAG("IN0") //Player 1
58105810   JOY_TYPE1_2BUTTONS(1)
58115811
r1238r1239
58855885                                Zing Zing Zip
58865886***************************************************************************/
58875887
5888INPUT_PORTS_START( zingzip )
5888static INPUT_PORTS_START( zingzip )
58895889   PORT_START_TAG("IN0") //Player 1 - $400000.w
58905890   JOY_TYPE1_2BUTTONS(1)
58915891
r1238r1239
59595959  Pairs Love
59605960*************************************/
59615961
5962INPUT_PORTS_START( pairlove )
5962static INPUT_PORTS_START( pairlove )
59635963   PORT_START_TAG("IN0") //Player 1 - $500001.b
59645964   JOY_TYPE1_2BUTTONS(1)   // button2 = speed up
59655965
r1238r1239
60316031                                Crazy Fight
60326032***************************************************************************/
60336033
6034INPUT_PORTS_START( crazyfgt )
6034static INPUT_PORTS_START( crazyfgt )
60356035   PORT_START_TAG("IN0") //Coins - $610000.w
60366036   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
60376037   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/truco.c
r1238r1239
5050   AM_RANGE(0x8008, 0xffff) AM_WRITE(MWA8_ROM)
5151ADDRESS_MAP_END
5252
53INPUT_PORTS_START( truco )
53static INPUT_PORTS_START( truco )
5454   PORT_START   /* IN0 */
5555   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
5656   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/laserbat.c
r1238r1239
233233ADDRESS_MAP_END
234234
235235
236INPUT_PORTS_START( laserbat )
236static INPUT_PORTS_START( laserbat )
237237   PORT_START
238238   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
239239   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
312312   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK )
313313INPUT_PORTS_END
314314
315INPUT_PORTS_START( lazarian )
315static INPUT_PORTS_START( lazarian )
316316   PORT_START
317317   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
318318   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
390390   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK )
391391INPUT_PORTS_END
392392
393INPUT_PORTS_START( catnmous )
393static INPUT_PORTS_START( catnmous )
394394   PORT_START
395395   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
396396   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/trvquest.c
r1238r1239
134134   AM_RANGE(0xb000, 0xffff) AM_ROM
135135ADDRESS_MAP_END
136136
137INPUT_PORTS_START( trvquest )
137static INPUT_PORTS_START( trvquest )
138138   PORT_START
139139   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
140140   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/tnzs.c
r1238r1239
569569   PORT_DIPSETTING(    0x40, DEF_STR( 1C_4C ) )\
570570   PORT_DIPSETTING(    0x00, DEF_STR( 1C_6C ) )
571571
572INPUT_PORTS_START( extrmatn )
572static INPUT_PORTS_START( extrmatn )
573573   PORT_START_TAG("DSWA")
574574   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )
575575   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
665665   PORT_BIT   ( 0x0fff, 0x0000, IPT_DIAL ) PORT_SENSITIVITY(70) PORT_KEYDELTA(15) PORT_PLAYER(2)\
666666   PORT_BIT   ( 0xf000, IP_ACTIVE_LOW,  IPT_UNKNOWN )
667667
668INPUT_PORTS_START( arknoid2 )
668static INPUT_PORTS_START( arknoid2 )
669669   PORT_START_TAG("DSWA")
670670   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
671671   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
681681   ARKNOI2_COMMON
682682INPUT_PORTS_END
683683
684INPUT_PORTS_START( arknid2u )
684static INPUT_PORTS_START( arknid2u )
685685   PORT_START_TAG("DSWA")
686686   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
687687   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
697697   ARKNOI2_COMMON
698698INPUT_PORTS_END
699699
700INPUT_PORTS_START( plumppop )
700static INPUT_PORTS_START( plumppop )
701701   PORT_START_TAG("DSWA")
702702   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
703703   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
805805   COMMON_COIN1(IP_ACTIVE_HIGH)\
806806   COMMON_COIN2(IP_ACTIVE_HIGH)
807807
808INPUT_PORTS_START( drtoppel )
808static INPUT_PORTS_START( drtoppel )
809809   PORT_START_TAG("DSWA")
810810   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
811811   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
821821   DRTOPP_COMMON
822822INPUT_PORTS_END
823823
824INPUT_PORTS_START( drtopplu )
824static INPUT_PORTS_START( drtopplu )
825825   PORT_START_TAG("DSWA")
826826   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
827827   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
868868   COMMON_COIN1(IP_ACTIVE_HIGH)\
869869   COMMON_COIN2(IP_ACTIVE_HIGH)
870870
871INPUT_PORTS_START( chukatai )
871static INPUT_PORTS_START( chukatai )
872872   PORT_START_TAG("DSWA")
873873   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
874874   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
885885   CHUKA_COMMON
886886INPUT_PORTS_END
887887
888INPUT_PORTS_START( chukatau )
888static INPUT_PORTS_START( chukatau )
889889   PORT_START_TAG("DSWA")
890890   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
891891   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
928928   PORT_START_TAG("IN0")\
929929   TNZS_PLAYER_INPUT(1)
930930
931INPUT_PORTS_START( tnzs )
931static INPUT_PORTS_START( tnzs )
932932   PORT_START_TAG("DSWA")
933933   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
934934   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
953953
954954INPUT_PORTS_END
955955
956INPUT_PORTS_START( tnzsb )
956static INPUT_PORTS_START( tnzsb )
957957   PORT_START_TAG("DSWA")
958958   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
959959   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
991991
992992INPUT_PORTS_END
993993
994INPUT_PORTS_START( tnzs2 )
994static INPUT_PORTS_START( tnzs2 )
995995   PORT_START_TAG("DSWA")
996996   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
997997   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
10391039   COMMON_COIN2(IP_ACTIVE_LOW)
10401040INPUT_PORTS_END
10411041
1042INPUT_PORTS_START( kabukiz )
1042static INPUT_PORTS_START( kabukiz )
10431043   PORT_START_TAG("DSWA")
10441044   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
10451045   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
11031103
11041104INPUT_PORTS_END
11051105
1106INPUT_PORTS_START( insectx )
1106static INPUT_PORTS_START( insectx )
11071107   PORT_START_TAG("DSWA")
11081108   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
11091109   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
11561156   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
11571157INPUT_PORTS_END
11581158
1159INPUT_PORTS_START( kageki )
1159static INPUT_PORTS_START( kageki )
11601160   PORT_START_TAG("DSWA")
11611161   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
11621162   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
15971597
15981598ROM_START( extrmatn )
15991599   ROM_REGION( 0x30000, REGION_CPU1, 0 )            /* Region 0 - main cpu */
1600   ROM_LOAD( "b06-20.bin", 0x00000, 0x08000, CRC(04e3fc1f) SHA1(b1cf2f79f43fa33d6175368c897f84ec6aa6e746) )
1600   ROM_LOAD( "b06-20.11c", 0x00000, 0x08000, CRC(04e3fc1f) SHA1(b1cf2f79f43fa33d6175368c897f84ec6aa6e746) )
16011601   ROM_CONTINUE(           0x18000, 0x08000 )            /* banked at 8000-bfff */
1602   ROM_LOAD( "b06-21.bin", 0x20000, 0x10000, CRC(1614d6a2) SHA1(f23d465af231ab5653c55748f686d8f25f52394b) )   /* banked at 8000-bfff */
1602   ROM_LOAD( "b06-21.9c", 0x20000, 0x10000, CRC(1614d6a2) SHA1(f23d465af231ab5653c55748f686d8f25f52394b) )   /* banked at 8000-bfff */
16031603
16041604   ROM_REGION( 0x18000, REGION_CPU2, 0 )            /* Region 2 - sound cpu */
1605   ROM_LOAD( "b06-06.bin", 0x00000, 0x08000, CRC(744f2c84) SHA1(7565c1594c2a3bae1ae45afcbf93363fe2b12d58) )
1605   ROM_LOAD( "b06-06.4e", 0x00000, 0x08000, CRC(744f2c84) SHA1(7565c1594c2a3bae1ae45afcbf93363fe2b12d58) )
16061606   ROM_CONTINUE(           0x10000, 0x08000 )   /* banked at 8000-9fff */
16071607
16081608   ROM_REGION( 0x10000, REGION_CPU3, 0 )   /* M-Chip (i8742 internal ROM) */
1609   ROM_LOAD( "extr8742.bin", 0x0000, 0x0800, NO_DUMP ) /* Labeled B06-14 */
1609   ROM_LOAD( "extr8742.4f", 0x0000, 0x0800, NO_DUMP ) /* Labeled B06-14 */
16101610
16111611   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) )
16161616
16171617   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 */
16201620ROM_END
16211621
1622ROM_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 */
1644ROM_END
1645
16221646ROM_START( arknoid2 )
16231647   ROM_REGION( 0x30000, REGION_CPU1, 0 )            /* Region 0 - main cpu */
16241648   ROM_LOAD( "b08_05.11c",   0x00000, 0x08000, CRC(136edf9d) SHA1(f632321650897eee585511a84f451a205d1f7704) )
r1238r1239
20972121/*  ( YEAR  NAME      PARENT    MACHINE   INPUT     INIT      MONITOR COMPANY    FULLNAME     FLAGS ) */
20982122GAME( 1987, plumppop, 0,        drtoppel, plumppop, plumpop,  ROT0,   "Taito Corporation", "Plump Pop (Japan)", 0 )
20992123GAME( 1987, extrmatn, 0,        arknoid2, extrmatn, extrmatn, ROT270, "[Taito] World Games", "Extermination (US)", 0 )
2124GAME( 1987, extrmatj, 0,        arknoid2, extrmatn, extrmatn, ROT270, "Taito Corporation", "Extermination (Japan)", 0 )
21002125GAME( 1987, arknoid2, 0,        arknoid2, arknoid2, arknoid2, ROT270, "Taito Corporation Japan", "Arkanoid - Revenge of DOH (World)", 0 )
21012126GAME( 1987, arknid2u, arknoid2, arknoid2, arknid2u, arknoid2, ROT270, "Taito America Corporation (Romstar license)", "Arkanoid - Revenge of DOH (US)", 0 )
21022127GAME( 1987, arknid2j, arknoid2, arknoid2, arknid2u, arknoid2, ROT270, "Taito Corporation", "Arkanoid - Revenge of DOH (Japan)", 0 )
src/mame/drivers/tp84.c
r1238r1239
255255
256256
257257
258INPUT_PORTS_START( tp84 )
258static INPUT_PORTS_START( tp84 )
259259   PORT_START      /* IN0 */
260260   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
261261   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
346346   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
347347INPUT_PORTS_END
348348
349INPUT_PORTS_START( tp84a )
349static INPUT_PORTS_START( tp84a )
350350   PORT_START      /* IN0 */
351351   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
352352   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/rohga.c
r1238r1239
348348
349349/**********************************************************************************/
350350
351INPUT_PORTS_START( rohga )
351static INPUT_PORTS_START( rohga )
352352   PORT_START
353353   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
354354   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
446446   PORT_DIPSETTING(      0x0000, "Fastest" )
447447INPUT_PORTS_END
448448
449INPUT_PORTS_START( wizdfire )
449static INPUT_PORTS_START( wizdfire )
450450   PORT_START
451451   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
452452   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
519519   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
520520INPUT_PORTS_END
521521
522INPUT_PORTS_START( nitrobal )
522static INPUT_PORTS_START( nitrobal )
523523   PORT_START
524524   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
525525   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
603603   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN3 )
604604INPUT_PORTS_END
605605
606INPUT_PORTS_START( schmeisr )
606static INPUT_PORTS_START( schmeisr )
607607   PORT_START
608608   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
609609   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/vball.c
r1238r1239
283283   PORT_DIPSETTING(    0x00, DEF_STR( Off )) \
284284   PORT_DIPSETTING(    0x80, DEF_STR( On )) \
285285
286INPUT_PORTS_START (vball)
286static INPUT_PORTS_START (vball)
287287   COMMON_PORTS_BEFORE
288288   /* The dipswitch instructions in naz's dump (vball) don't quite sync here) */
289289   /* Looks like the pins from the dips to the board were mixed up a little. */
r1238r1239
334334   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 )
335335INPUT_PORTS_END
336336
337INPUT_PORTS_START (vball2pj)
337static INPUT_PORTS_START (vball2pj)
338338   COMMON_PORTS_BEFORE
339339
340340/* The 2-player roms have the game-time in the difficulty spot, and
src/mame/drivers/higemaru.c
r1238r1239
5353ADDRESS_MAP_END
5454
5555
56INPUT_PORTS_START( higemaru )
56static INPUT_PORTS_START( higemaru )
5757   PORT_START      /* IN0 */
5858   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY
5959   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
src/mame/drivers/plygonet.c
r1238r1239
725725   MDRV_SOUND_ROUTE(1, "right", 0.75)
726726MACHINE_DRIVER_END
727727
728INPUT_PORTS_START( polygonet )
728static INPUT_PORTS_START( polygonet )
729729   PORT_START
730730
731731   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1)
src/mame/drivers/batman.c
r1238r1239
149149 *
150150 *************************************/
151151
152INPUT_PORTS_START( batman )
152static INPUT_PORTS_START( batman )
153153   PORT_START      /* 26000 */
154154   PORT_BIT( 0x01ff, IP_ACTIVE_LOW, IPT_UNUSED )
155155   PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_START1 )
src/mame/drivers/afega.c
r1238r1239
252252                                Stagger I
253253***************************************************************************/
254254
255INPUT_PORTS_START( stagger1 )
255static INPUT_PORTS_START( stagger1 )
256256   PORT_START_TAG("IN0")   // $080000.w
257257   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_COIN1    )
258258   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_COIN2    )
r1238r1239
329329INPUT_PORTS_END
330330
331331/* everything seems active high.. not low */
332INPUT_PORTS_START( redhawkb )
332static INPUT_PORTS_START( redhawkb )
333333   PORT_START_TAG("IN0")   // $080000.w
334334   PORT_BIT(  0x0001, IP_ACTIVE_HIGH, IPT_COIN1    )
335335   PORT_BIT(  0x0002, IP_ACTIVE_HIGH, IPT_COIN2    )
r1238r1239
409409                            Sen Jin - Guardian Storm
410410***************************************************************************/
411411
412INPUT_PORTS_START( grdnstrm )
412static INPUT_PORTS_START( grdnstrm )
413413   PORT_START_TAG("IN0")   // $080000.w
414414   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_COIN1    )
415415   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_COIN2    )
r1238r1239
487487
488488/* Pop's Pop's */
489489
490INPUT_PORTS_START( popspops )
490static INPUT_PORTS_START( popspops )
491491   PORT_START_TAG("IN0")   // $080000.w
492492   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_COIN1    )
493493   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_COIN2    )
r1238r1239
572572                                Bubble 2000
573573***************************************************************************/
574574
575INPUT_PORTS_START( bubl2000 )
575static INPUT_PORTS_START( bubl2000 )
576576   PORT_START_TAG("IN0")   // $080000.w
577577   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_COIN1    )
578578   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_COIN2    )
r1238r1239
655655                                Mang Chi
656656***************************************************************************/
657657
658INPUT_PORTS_START( mangchi )
658static INPUT_PORTS_START( mangchi )
659659   PORT_START_TAG("IN0")   // $080000.w
660660   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_COIN1    )
661661   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_COIN2    )
r1238r1239
739739                                Fire Hawk
740740***************************************************************************/
741741
742INPUT_PORTS_START( firehawk )
742static INPUT_PORTS_START( firehawk )
743743   PORT_START_TAG("IN0")   // $080000.w
744744   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
745745   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
823823                             Spectrum 2000
824824***************************************************************************/
825825
826INPUT_PORTS_START( spec2k )
826static INPUT_PORTS_START( spec2k )
827827   PORT_START_TAG("IN0")   // $080000.w
828828   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
829829   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
905905                                Twin Action
906906***************************************************************************/
907907
908INPUT_PORTS_START( twinactn )
908static INPUT_PORTS_START( twinactn )
909909   PORT_START_TAG("IN0")   // $080000.w
910910   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_COIN1    )
911911   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_COIN2    )
src/mame/drivers/naomi.c
r1238r1239
474474   AM_RANGE(0x00000000, 0x001fffff) AM_RAM      /* shared with SH-4 */
475475ADDRESS_MAP_END
476476
477INPUT_PORTS_START( naomi )
477static INPUT_PORTS_START( naomi )
478478INPUT_PORTS_END
479479
480480static MACHINE_DRIVER_START( naomi )
r1238r1239
18461846*/
18471847
18481848/* Naomi & Naomi GD-ROM */
1849GAMEB( 1998, naomi,    0,      naomi, naomi, naomi, 0, ROT0, "Sega",         "Naomi Bios", GAME_NO_SOUND|GAME_NOT_WORKING|GAME_IS_BIOS_ROOT )
1849GAME( 1998, naomi,    0, naomi, naomi, 0, ROT0, "Sega",         "Naomi Bios", GAME_NO_SOUND|GAME_NOT_WORKING|GAME_IS_BIOS_ROOT )
18501850// Complete Dumps
1851GAMEB( 2001, csmash,   naomi,  naomi, naomi, naomi, 0, ROT0, "Sega",         "Cosmic Smash (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1852GAMEB( 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 )
1853GAMEB( 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 )
1851GAME( 2001, csmash,   naomi, naomi, naomi, 0, ROT0, "Sega",         "Cosmic Smash (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1852GAME( 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 )
1853GAME( 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 )
18541854// Incomplete Dumps (just IC22)
1855GAMEB( 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 )
1856GAMEB( 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 )
1857GAMEB( ????, derbyoc,  naomi,  naomi, naomi, naomi, 0, ROT0, "Sega",           "Derby Owners Club (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1858GAMEB( 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 )
1859GAMEB( 2000, gram2000, naomi,  naomi, naomi, naomi, 0, ROT0, "Sega",           "Giant Gram 2000 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1860GAMEB( 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'
1861GAMEB( 2001, hmgeo,    naomi,  naomi, naomi, naomi, 0, ROT0, "Capcom",         "Heavy Metal Geomatrix (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1862GAMEB( 2000, gwing2,   naomi,  naomi, naomi, naomi, 0, ROT0, "Takumi / Capcom","Giga Wing 2 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1863GAMEB( 1999, suchie3,  naomi,  naomi, naomi, naomi, 0, ROT0, "Jaleco",         "Idol Janshi Suchie-Pai 3 (JPN)", GAME_NO_SOUND|GAME_NOT_WORKING )
1864GAMEB( 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 )
1865GAMEB( 1999, pstone,   naomi,  naomi, naomi, naomi, 0, ROT0, "Capcom",         "Power Stone (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1866GAMEB( 2000, pstone2,  naomi,  naomi, naomi, naomi, 0, ROT0, "Capcom",         "Power Stone 2 (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1867GAMEB( 1999, otrigger, naomi,  naomi, naomi, naomi, 0, ROT0, "Sega",           "OutTrigger (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1868GAMEB( 1999, samba,    naomi,  naomi, naomi, naomi, 0, ROT0, "Sega",           "Samba De Amigo (JPN)", GAME_NO_SOUND|GAME_NOT_WORKING )
1869GAMEB( 2000, slasho,   naomi,  naomi, naomi, naomi, 0, ROT0, "Sega",           "Slashout (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1870GAMEB( 1999, spawn,    naomi,  naomi, naomi, naomi, 0, ROT0, "Capcom",         "Spawn (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1871GAMEB( 2000, virnba,   naomi,  naomi, naomi, naomi, 0, ROT0, "Sega",           "Virtua NBA (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1872GAMEB( 1999, vtennis,  naomi,  naomi, naomi, naomi, 0, ROT0, "Sega",           "Power Smash (JPN) / Virtua Tennis (USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1873GAMEB( 1999, zombrvn,  naomi,  naomi, naomi, naomi, 0, ROT0, "Sega",           "Zombie Revenge (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1874GAMEB( 1999, doa2,     naomi,  naomi, naomi, naomi, 0, ROT0, "Tecmo",          "Dead or Alive 2 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1875GAMEB( 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 )
1876GAMEB( 1998, dybbnao,  naomi,  naomi, naomi, naomi, 0, ROT0, "Sega",           "Dynamite Baseball NAOMI (JPN)", GAME_NO_SOUND|GAME_NOT_WORKING )
1855GAME( 2000, cspike,   naomi, naomi, naomi, 0, ROT0, "Psikyo / Capcom","Gun Spike (JPN) / Cannon Spike (USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1856GAME( 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 )
1857GAME( ????, derbyoc,  naomi, naomi, naomi, 0, ROT0, "Sega",           "Derby Owners Club (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1858GAME( 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 )
1859GAME( 2000, gram2000, naomi, naomi, naomi, 0, ROT0, "Sega",           "Giant Gram 2000 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1860GAME( 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'
1861GAME( 2001, hmgeo,    naomi, naomi, naomi, 0, ROT0, "Capcom",         "Heavy Metal Geomatrix (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1862GAME( 2000, gwing2,   naomi, naomi, naomi, 0, ROT0, "Takumi / Capcom","Giga Wing 2 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1863GAME( 1999, suchie3,  naomi, naomi, naomi, 0, ROT0, "Jaleco",         "Idol Janshi Suchie-Pai 3 (JPN)", GAME_NO_SOUND|GAME_NOT_WORKING )
1864GAME( 2000, pjustic,  naomi, naomi, naomi, 0, ROT0, "Capcom",           "Moero Justice Gakuen (JPN) / Project Justice (USA, EXP, KOR, AUS) ", GAME_NO_SOUND|GAME_NOT_WORKING )
1865GAME( 1999, pstone,   naomi, naomi, naomi, 0, ROT0, "Capcom",         "Power Stone (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1866GAME( 2000, pstone2,  naomi, naomi, naomi, 0, ROT0, "Capcom",         "Power Stone 2 (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1867GAME( 1999, otrigger, naomi, naomi, naomi, 0, ROT0, "Sega",           "OutTrigger (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1868GAME( 1999, samba,    naomi, naomi, naomi, 0, ROT0, "Sega",           "Samba De Amigo (JPN)", GAME_NO_SOUND|GAME_NOT_WORKING )
1869GAME( 2000, slasho,   naomi, naomi, naomi, 0, ROT0, "Sega",           "Slashout (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1870GAME( 1999, spawn,    naomi, naomi, naomi, 0, ROT0, "Capcom",         "Spawn (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1871GAME( 2000, virnba,   naomi, naomi, naomi, 0, ROT0, "Sega",           "Virtua NBA (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1872GAME( 1999, vtennis,  naomi, naomi, naomi, 0, ROT0, "Sega",           "Power Smash (JPN) / Virtua Tennis (USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1873GAME( 1999, zombrvn,  naomi, naomi, naomi, 0, ROT0, "Sega",           "Zombie Revenge (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1874GAME( 1999, doa2,     naomi, naomi, naomi, 0, ROT0, "Tecmo",          "Dead or Alive 2 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1875GAME( 2000, doa2m,    doa2, naomi, naomi, 0, ROT0, "Tecmo",          "Dead or Alive 2 Millennium (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING )
1876GAME( 1998, dybbnao,  naomi, naomi, naomi, 0, ROT0, "Sega",           "Dynamite Baseball NAOMI (JPN)", GAME_NO_SOUND|GAME_NOT_WORKING )
18771877
18781878
18791879
18801880// No GD-Rom Sets Supported */
18811881
18821882/* Naomi 2 & Naomi 2 GD-ROM */
1883GAMEB( 2001, naomi2,   0,      naomi2,naomi, naomi, 0, ROT0, "Sega",         "Naomi 2 Bios", GAME_NO_SOUND|GAME_NOT_WORKING|GAME_IS_BIOS_ROOT )
1883GAME( 2001, naomi2,   0,naomi, naomi, 0, ROT0, "Sega",         "Naomi 2 Bios", GAME_NO_SOUND|GAME_NOT_WORKING|GAME_IS_BIOS_ROOT )
18841884// No Supported Sets
18851885
18861886/* Atomiswave */
1887GAMEB( 2001, awbios,   0,      awbios,naomi, naomi, 0, ROT0, "Sammy",        "Atomiswave Bios", GAME_NO_SOUND|GAME_NOT_WORKING|GAME_IS_BIOS_ROOT )
1887GAME( 2001, awbios,   0,naomi, naomi, 0, ROT0, "Sammy",        "Atomiswave Bios", GAME_NO_SOUND|GAME_NOT_WORKING|GAME_IS_BIOS_ROOT )
18881888// No Supported Setas
src/mame/drivers/nemesis.c
r1238r1239
867867   PORT_DIPSETTING(    0x00, "Disabled" )
868868
869869
870INPUT_PORTS_START( nemesis )
870static INPUT_PORTS_START( nemesis )
871871   PORT_START   /* IN0 */
872872   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
873873   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
940940INPUT_PORTS_END
941941
942942
943INPUT_PORTS_START( nemesuk )
943static INPUT_PORTS_START( nemesuk )
944944   PORT_START   /* IN0 */
945945   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
946946   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
10141014
10151015
10161016/* This needs to be sorted */
1017INPUT_PORTS_START( konamigt )
1017static INPUT_PORTS_START( konamigt )
10181018   PORT_START   /* IN0 */
10191019   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
10201020   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
10851085
10861086
10871087/* This needs to be sorted */
1088INPUT_PORTS_START( rf2 )
1088static INPUT_PORTS_START( rf2 )
10891089   PORT_START   /* IN0 */
10901090   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
10911091   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
11561156INPUT_PORTS_END
11571157
11581158
1159INPUT_PORTS_START( gwarrior )
1159static INPUT_PORTS_START( gwarrior )
11601160   PORT_START   /* IN0 */
11611161   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
11621162   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
12291229INPUT_PORTS_END
12301230
12311231
1232INPUT_PORTS_START( twinbee )
1232static INPUT_PORTS_START( twinbee )
12331233   PORT_START   /* IN0 */
12341234   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
12351235   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
13031303INPUT_PORTS_END
13041304
13051305
1306INPUT_PORTS_START( gradius )
1306static INPUT_PORTS_START( gradius )
13071307   PORT_START   /* IN0 */
13081308   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
13091309   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
13761376INPUT_PORTS_END
13771377
13781378
1379INPUT_PORTS_START( salamand )
1379static INPUT_PORTS_START( salamand )
13801380   PORT_START   /* IN0 */
13811381   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
13821382   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
14701470INPUT_PORTS_END
14711471
14721472
1473INPUT_PORTS_START( lifefrcj )
1473static INPUT_PORTS_START( lifefrcj )
14741474   PORT_START   /* IN0 */
14751475   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
14761476   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
15681568   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
15691569INPUT_PORTS_END
15701570
1571INPUT_PORTS_START( blkpnthr )
1571static INPUT_PORTS_START( blkpnthr )
15721572   PORT_START   /* IN0 */
15731573   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
15741574   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
16651665   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
16661666INPUT_PORTS_END
16671667
1668INPUT_PORTS_START( citybomb )
1668static INPUT_PORTS_START( citybomb )
16691669   PORT_START   /* IN0 */
16701670   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
16711671   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
17571757   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
17581758INPUT_PORTS_END
17591759
1760INPUT_PORTS_START( nyanpani )
1760static INPUT_PORTS_START( nyanpani )
17611761   PORT_START   /* IN0 */
17621762   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
17631763   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
18421842   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
18431843INPUT_PORTS_END
18441844
1845INPUT_PORTS_START( hcrash )
1845static INPUT_PORTS_START( hcrash )
18461846   PORT_START /* IN0 */
18471847   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
18481848   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN )
src/mame/drivers/cheekyms.c
r1238r1239
4343}
4444
4545
46INPUT_PORTS_START( cheekyms )
46static INPUT_PORTS_START( cheekyms )
4747   PORT_START      /* IN0 */
4848   PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) )
4949   PORT_DIPSETTING(    0x00, "2" )
src/mame/drivers/progolf.c
r1238r1239
9595ADDRESS_MAP_END
9696#endif
9797
98INPUT_PORTS_START( progolf )
98static INPUT_PORTS_START( progolf )
9999   PORT_START
100100   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
101101   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/magmax.c
r1238r1239
241241ADDRESS_MAP_END
242242
243243
244INPUT_PORTS_START( magmax )
244static INPUT_PORTS_START( magmax )
245245   PORT_START   /* Player 1 controls */
246246   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
247247   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/asteroid.c
r1238r1239
281281 *
282282 *************************************/
283283
284INPUT_PORTS_START( asteroid )
284static INPUT_PORTS_START( asteroid )
285285   PORT_START_TAG("IN0")
286286   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
287287   /* Bit 2 and 3 are handled in the machine dependent part. */
r1238r1239
329329INPUT_PORTS_END
330330
331331
332INPUT_PORTS_START( asteroib )
332static INPUT_PORTS_START( asteroib )
333333   PORT_START_TAG("IN0")
334334   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* resets */
335335   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* resets */
r1238r1239
381381INPUT_PORTS_END
382382
383383
384INPUT_PORTS_START( asterock )
384static INPUT_PORTS_START( asterock )
385385   PORT_START_TAG("IN0")
386386   /* Bit 0 is VG_HALT, handled in the machine dependent part */
387387   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
r1238r1239
433433INPUT_PORTS_END
434434
435435
436INPUT_PORTS_START( astdelux )
436static INPUT_PORTS_START( astdelux )
437437   PORT_START_TAG("IN0")
438438   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
439439   /* Bit 2 and 3 are handled in the machine dependent part. */
r1238r1239
502502INPUT_PORTS_END
503503
504504
505INPUT_PORTS_START( llander )
505static INPUT_PORTS_START( llander )
506506   PORT_START_TAG("IN0")
507507   /* Bit 0 is VG_HALT, handled in the machine dependent part */
508508   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
r1238r1239
555555INPUT_PORTS_END
556556
557557
558INPUT_PORTS_START( llander1 )
558static INPUT_PORTS_START( llander1 )
559559   PORT_START_TAG("IN0")
560560   /* Bit 0 is VG_HALT, handled in the machine dependent part */
561561   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
src/mame/drivers/powerbal.c
r1238r1239
146146ADDRESS_MAP_END
147147
148148
149INPUT_PORTS_START( powerbal )
149static INPUT_PORTS_START( powerbal )
150150   PORT_START_TAG("IN0")
151151   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
152152   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
228228   PORT_DIPSETTING(    0x00, DEF_STR( Very_Hard ) )
229229INPUT_PORTS_END
230230
231INPUT_PORTS_START( magicstk )
231static INPUT_PORTS_START( magicstk )
232232   PORT_START_TAG("IN0")
233233   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
234234   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/stv.c
r1238r1239
252252UINT32* stv_workram_l;
253253UINT32* stv_workram_h;
254254UINT32* stv_backupram;
255UINT32* stv_scu;
255extern UINT32* stv_scu;
256256static UINT32* ioga;
257257static UINT16* scsp_regs;
258258static UINT16* sound_ram;
r1238r1239
11931193#define D1MV_0   if(DMA_STATUS & 0x100)        DMA_STATUS^=0x100
11941194#define D2MV_0   if(DMA_STATUS & 0x1000)     DMA_STATUS^=0x1000
11951195
1196UINT32 scu_index_0,scu_index_1,scu_index_2;
1196static UINT32 scu_index_0,scu_index_1,scu_index_2;
11971197static UINT8 scsp_to_main_irq;
11981198
11991199static UINT32 scu_add_tmp;
r1238r1239
21382138   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(_n_) \
21392139   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  ) PORT_PLAYER(_n_)
21402140
2141INPUT_PORTS_START( stv )
2141static INPUT_PORTS_START( stv )
21422142   PORT_START
21432143   PORT_DIPNAME( 0x01, 0x01, "PDR1" )
21442144   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
22612261   #endif
22622262INPUT_PORTS_END
22632263
2264INPUT_PORTS_START( critcrsh )
2264static INPUT_PORTS_START( critcrsh )
22652265
22662266   PORT_INCLUDE( stv )
22672267
r1238r1239
22762276INPUT_PORTS_END
22772277
22782278/*Same as the regular one,but with an additional & optional mahjong panel*/
2279INPUT_PORTS_START( stvmp )
2279static INPUT_PORTS_START( stvmp )
22802280   PORT_START
22812281   PORT_DIPNAME( 0x01, 0x01, "PDR1" )
22822282   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
36893689by Sega titles,and this is a Sunsoft game)It's likely to be a left-over...
36903690*/
36913691
3692GAMEB( 1996, stvbios,   0,       stvbios, stv, stv,  stv,       ROT0,   "Sega",                      "ST-V Bios", GAME_IS_BIOS_ROOT )
3692GAME( 1996, stvbios,   0, stv, stv,  stv,       ROT0,   "Sega",                      "ST-V Bios", GAME_IS_BIOS_ROOT )
36933693
36943694//GBX   YEAR, NAME,      PARENT,  BIOS,    MACH,INP,  INIT,      MONITOR
36953695/* Playable */
3696GAMEB( 1998, astrass,   stvbios, stvbios, stv, stv,  astrass,   ROT0,   "Sunsoft",                  "Astra SuperStars (J 980514 V1.002)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
3697GAMEB( 1995, bakubaku,  stvbios, stvbios, stv, stv,  bakubaku,  ROT0,   "Sega",                   "Baku Baku Animal (J 950407 V1.000)", GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS )
3698GAMEB( 1996, batmanfr,  stvbios, stvbios, stv, stv,  batmanfr,  ROT0,   "Acclaim",                  "Batman Forever (JUE 960507 V1.000)", GAME_NO_SOUND )
3699GAMEB( 1996, colmns97,  stvbios, stvbios, stv, stv,  colmns97,  ROT0,   "Sega",                   "Columns '97 (JET 961209 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3700GAMEB( 1997, cotton2,   stvbios, stvbios, stv, stv,  cotton2,   ROT0,   "Success",                "Cotton 2 (JUET 970902 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3701GAMEB( 1998, cottonbm,  stvbios, stvbios, stv, stv,  cottonbm,  ROT0,   "Success",                "Cotton Boomerang (JUET 980709 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3702GAMEB( 1995, critcrsh,  stvbios, stvbios, stv, critcrsh, ic13, ROT0, "Sega",                    "Critter Crusher (EA 951204 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3703GAMEB( 1999, danchih,   stvbios, stvbios, stv, stvmp,danchih,   ROT0,   "Altron (Tecmo license)",      "Danchi de Hanafuda (J 990607 V1.400)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3704GAMEB( 1996, diehard,   stvbios, stvbios, stv, stv,  diehard,   ROT0,   "Sega",                   "Die Hard Arcade (UET 960515 V1.000)", GAME_IMPERFECT_SOUND  )
3705GAMEB( 1996, dnmtdeka,  diehard, stvbios, stv, stv,  dnmtdeka,  ROT0,   "Sega",                   "Dynamite Deka (J 960515 V1.000)", GAME_IMPERFECT_SOUND  )
3706GAMEB( 1995, ejihon,    stvbios, stvbios, stv, stv,  ic13,      ROT0,   "Sega",                   "Ejihon Tantei Jimusyo (J 950613 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3707GAMEB( 1995, fhboxers,  stvbios, stvbios, stv, stv,  fhboxers,  ROT0,   "Sega",                   "Funky Head Boxers (JUETBKAL 951218 V1.000)", GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS )
3708GAMEB( 1994, gaxeduel,  stvbios, stvbios, stv, stv,  gaxeduel,   ROT0,   "Sega",                    "Golden Axe - The Duel (JUETL 950117 V1.000)", GAME_IMPERFECT_SOUND )
3709GAMEB( 1998, grdforce,  stvbios, stvbios, stv, stv,  grdforce,  ROT0,   "Success",                "Guardian Force (JUET 980318 V0.105)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3710GAMEB( 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 )
3711GAMEB( 1997, hanagumi,  stvbios, stvbios, stv, stv,  hanagumi,  ROT0,   "Sega",                   "Hanagumi Taisen Columns - Sakura Wars (J 971007 V1.010)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
3712GAMEB( 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 )
3713GAMEB( 1995, kiwames,   stvbios, stvbios, stv, stvmp,ic13,      ROT0,   "Athena",                 "Pro Mahjong Kiwame S (J 951020 V1.208)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3714GAMEB( 1997, maruchan,  stvbios, stvbios, stv, stv,  maruchan,  ROT0,   "Sega / Toyosuisan",          "Maru-Chan de Goo! (J 971216 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3715GAMEB( 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 )
3716GAMEB( 1998, othellos,  stvbios, stvbios, stv, stv,  othellos,  ROT0,   "Success",                "Othello Shiyouyo (J 980423 V1.002)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3717GAMEB( 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 )
3718GAMEB( 1996, prikura,   stvbios, stvbios, stv, stv,  prikura,   ROT0,   "Atlus",                  "Princess Clara Daisakusen (J 960910 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3719GAMEB( 1996, puyosun,   stvbios, stvbios, stv, stv,  puyosun,   ROT0,   "Compile",                "Puyo Puyo Sun (J 961115 V0.001)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3720GAMEB( 1998, rsgun,     stvbios, stvbios, stv, stv,  rsgun,     ROT0,   "Treasure",                 "Radiant Silvergun (JUET 980523 V1.000)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
3721GAMEB( 1998, sasissu,   stvbios, stvbios, stv, stv,  sasissu,   ROT0,   "Sega",                    "Taisen Tanto-R Sashissu!! (J 980216 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3722GAMEB( 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 )
3723GAMEB( 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 )
3724GAMEB( 1997, shienryu,  stvbios, stvbios, stv, stv,  shienryu,  ROT270, "Warashi",                "Shienryu (JUET 961226 V1.000)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
3725GAMEB( 1995, smleague,  stvbios, stvbios, stv, stv,  smleague,  ROT0,   "Sega",                    "Super Major League (U 960108 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3726GAMEB( 1995, finlarch,  smleague,stvbios, stv, stv,  finlarch,  ROT0,   "Sega",                    "Final Arch (J 950714 V1.001)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3727GAMEB( 1998, sss,       stvbios, stvbios, stv, stv,  sss,       ROT0,   "Capcom / Cave / Victor",     "Steep Slope Sliders (JUET 981110 V1.000)", GAME_IMPERFECT_SOUND )
3728GAMEB( 1995, sandor,    stvbios, stvbios, stv, stv,  sandor,    ROT0,   "Sega",                    "Puzzle & Action: Sando-R (J 951114 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3729GAMEB( 1996, sokyugrt,  stvbios, stvbios, stv, stv,  sokyugrt,  ROT0,   "Raizing / 8ing",            "Soukyugurentai / Terra Diver (JUET 960821 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3730GAMEB( 1995, suikoenb,  stvbios, stvbios, stv, stv,  suikoenb,  ROT0,   "Data East",                "Suikoenbu / Outlaws of the Lost Dynasty (JUETL 950314 V2.001)", GAME_IMPERFECT_SOUND )
3731GAMEB( 1997, thunt,     sandor,  stvbios, stv, stv,  thunt,     ROT0,   "Sega",                      "Puzzle & Action: Treasure Hunt (JUET 970901 V2.00E)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3732GAMEB( 1996, vfkids,    stvbios, stvbios, stv, stv,  ic13,      ROT0,   "Sega",                   "Virtua Fighter Kids (JUET 960319 V0.000)", GAME_IMPERFECT_SOUND )
3733GAMEB( 1997, winterht,  stvbios, stvbios, stv, stv,  winterht,  ROT0,   "Sega",                   "Winter Heat (JUET 971012 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3734GAMEB( 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 )
3696GAME( 1998, astrass,   stvbios, stv, stv,  astrass,   ROT0,   "Sunsoft",                  "Astra SuperStars (J 980514 V1.002)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
3697GAME( 1995, bakubaku,  stvbios, stv, stv,  bakubaku,  ROT0,   "Sega",                   "Baku Baku Animal (J 950407 V1.000)", GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS )
3698GAME( 1996, batmanfr,  stvbios, stv, stv,  batmanfr,  ROT0,   "Acclaim",                  "Batman Forever (JUE 960507 V1.000)", GAME_NO_SOUND )
3699GAME( 1996, colmns97,  stvbios, stv, stv,  colmns97,  ROT0,   "Sega",                   "Columns '97 (JET 961209 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3700GAME( 1997, cotton2,   stvbios, stv, stv,  cotton2,   ROT0,   "Success",                "Cotton 2 (JUET 970902 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3701GAME( 1998, cottonbm,  stvbios, stv, stv,  cottonbm,  ROT0,   "Success",                "Cotton Boomerang (JUET 980709 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3702GAME( 1995, critcrsh,  stvbios, stv, critcrsh, ic13, ROT0, "Sega",                    "Critter Crusher (EA 951204 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3703GAME( 1999, danchih,   stvbios, stv, stvmp,danchih,   ROT0,   "Altron (Tecmo license)",      "Danchi de Hanafuda (J 990607 V1.400)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3704GAME( 1996, diehard,   stvbios, stv, stv,  diehard,   ROT0,   "Sega",                   "Die Hard Arcade (UET 960515 V1.000)", GAME_IMPERFECT_SOUND  )
3705GAME( 1996, dnmtdeka,  diehard, stv, stv,  dnmtdeka,  ROT0,   "Sega",                   "Dynamite Deka (J 960515 V1.000)", GAME_IMPERFECT_SOUND  )
3706GAME( 1995, ejihon,    stvbios, stv, stv,  ic13,      ROT0,   "Sega",                   "Ejihon Tantei Jimusyo (J 950613 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3707GAME( 1995, fhboxers,  stvbios, stv, stv,  fhboxers,  ROT0,   "Sega",                   "Funky Head Boxers (JUETBKAL 951218 V1.000)", GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS )
3708GAME( 1994, gaxeduel,  stvbios, stv, stv,  gaxeduel,   ROT0,   "Sega",                    "Golden Axe - The Duel (JUETL 950117 V1.000)", GAME_IMPERFECT_SOUND )
3709GAME( 1998, grdforce,  stvbios, stv, stv,  grdforce,  ROT0,   "Success",                "Guardian Force (JUET 980318 V0.105)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3710GAME( 1998, groovef,   stvbios, stv, stv,  groovef,   ROT0,   "Atlus",                  "Power Instinct 3 - Groove On Fight (J 970416 V1.001)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3711GAME( 1997, hanagumi,  stvbios, stv, stv,  hanagumi,  ROT0,   "Sega",                   "Hanagumi Taisen Columns - Sakura Wars (J 971007 V1.010)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
3712GAME( 1996, introdon,  stvbios, stv, stv,  ic13,      ROT0,   "Sunsoft / Success",         "Karaoke Quiz Intro Don Don! (J 960213 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3713GAME( 1995, kiwames,   stvbios, stv, stvmp,ic13,      ROT0,   "Athena",                 "Pro Mahjong Kiwame S (J 951020 V1.208)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3714GAME( 1997, maruchan,  stvbios, stv, stv,  maruchan,  ROT0,   "Sega / Toyosuisan",          "Maru-Chan de Goo! (J 971216 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3715GAME( 1996, mausuke,   stvbios, stv, stv,  mausuke,   ROT0,   "Data East",              "Mausuke no Ojama the World (J 960314 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3716GAME( 1998, othellos,  stvbios, stv, stv,  othellos,  ROT0,   "Success",                "Othello Shiyouyo (J 980423 V1.002)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3717GAME( 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 )
3718GAME( 1996, prikura,   stvbios, stv, stv,  prikura,   ROT0,   "Atlus",                  "Princess Clara Daisakusen (J 960910 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3719GAME( 1996, puyosun,   stvbios, stv, stv,  puyosun,   ROT0,   "Compile",                "Puyo Puyo Sun (J 961115 V0.001)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3720GAME( 1998, rsgun,     stvbios, stv, stv,  rsgun,     ROT0,   "Treasure",                 "Radiant Silvergun (JUET 980523 V1.000)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
3721GAME( 1998, sasissu,   stvbios, stv, stv,  sasissu,   ROT0,   "Sega",                    "Taisen Tanto-R Sashissu!! (J 980216 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3722GAME( 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 )
3723GAME( 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 )
3724GAME( 1997, shienryu,  stvbios, stv, stv,  shienryu,  ROT270, "Warashi",                "Shienryu (JUET 961226 V1.000)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
3725GAME( 1995, smleague,  stvbios, stv, stv,  smleague,  ROT0,   "Sega",                    "Super Major League (U 960108 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3726GAME( 1995, finlarch,  smleague, stv, stv,  finlarch,  ROT0,   "Sega",                    "Final Arch (J 950714 V1.001)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3727GAME( 1998, sss,       stvbios, stv, stv,  sss,       ROT0,   "Capcom / Cave / Victor",     "Steep Slope Sliders (JUET 981110 V1.000)", GAME_IMPERFECT_SOUND )
3728GAME( 1995, sandor,    stvbios, stv, stv,  sandor,    ROT0,   "Sega",                    "Puzzle & Action: Sando-R (J 951114 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3729GAME( 1996, sokyugrt,  stvbios, stv, stv,  sokyugrt,  ROT0,   "Raizing / 8ing",            "Soukyugurentai / Terra Diver (JUET 960821 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3730GAME( 1995, suikoenb,  stvbios, stv, stv,  suikoenb,  ROT0,   "Data East",                "Suikoenbu / Outlaws of the Lost Dynasty (JUETL 950314 V2.001)", GAME_IMPERFECT_SOUND )
3731GAME( 1997, thunt,     sandor, stv, stv,  thunt,     ROT0,   "Sega",                      "Puzzle & Action: Treasure Hunt (JUET 970901 V2.00E)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3732GAME( 1996, vfkids,    stvbios, stv, stv,  ic13,      ROT0,   "Sega",                   "Virtua Fighter Kids (JUET 960319 V0.000)", GAME_IMPERFECT_SOUND )
3733GAME( 1997, winterht,  stvbios, stv, stv,  winterht,  ROT0,   "Sega",                   "Winter Heat (JUET 971012 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3734GAME( 1997, znpwfv,    stvbios, stv, stv,  znpwfv,    ROT0,   "Sega",                    "Zen Nippon Pro-Wrestling Featuring Virtua (J 971123 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
37353735
37363736/* Almost */
3737GAMEB( 1997, vmahjong,  stvbios, stvbios, stv, stvmp,stv,       ROT0,   "Micronet",                 "Virtual Mahjong (J 961214 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3738GAMEB( 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 )
3739GAMEB( 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
3737GAME( 1997, vmahjong,  stvbios, stv, stvmp,stv,       ROT0,   "Micronet",                 "Virtual Mahjong (J 961214 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
3738GAME( 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 )
3739GAME( 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
37403740
37413741/* Doing Something.. but not enough yet */
3742GAMEB( 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?
3743GAMEB( 1995, vfremix,   stvbios, stvbios, stv, stv,  vfremix,   ROT0,   "Sega",                    "Virtua Fighter Remix (JUETBKAL 950428 V1.000)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING )
3744GAMEB( 1997, findlove,  stvbios, stvbios, stv, stv,  ic13,      ROT0,   "Daiki / FCF",               "Find Love (J 971212 V1.000)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING )
3745GAMEB( 1996, decathlt,  stvbios, stvbios, stv, stv,  decathlt,  ROT0,   "Sega",                    "Decathlete (JUET 960424 V1.000)", GAME_NO_SOUND | GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION )
3742GAME( 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?
3743GAME( 1995, vfremix,   stvbios, stv, stv,  vfremix,   ROT0,   "Sega",                    "Virtua Fighter Remix (JUETBKAL 950428 V1.000)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING )
3744GAME( 1997, findlove,  stvbios, stv, stv,  ic13,      ROT0,   "Daiki / FCF",               "Find Love (J 971212 V1.000)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING )
3745GAME( 1996, decathlt,  stvbios, stv, stv,  decathlt,  ROT0,   "Sega",                    "Decathlete (JUET 960424 V1.000)", GAME_NO_SOUND | GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION )
37463746
37473747/* not working,black screen */
3748GAMEB( 1999, ffreveng, stvbios, stvbios, stv, stv,  ffreveng,  ROT0,   "Capcom",                   "Final Fight Revenge (JUET 990714 V1.000)", GAME_UNEMULATED_PROTECTION | GAME_NO_SOUND | GAME_NOT_WORKING )
3748GAME( 1999, ffreveng, stvbios, stv, stv,  ffreveng,  ROT0,   "Capcom",                   "Final Fight Revenge (JUET 990714 V1.000)", GAME_UNEMULATED_PROTECTION | GAME_NO_SOUND | GAME_NOT_WORKING )
37493749/* CD games */
3750GAMEB( 1995, sfish2,    0,       stvbios, stv, stv,  ic13,    ROT0,   "Sega",                   "Sport Fishing 2 (UET 951106 V1.10e)", GAME_NO_SOUND | GAME_NOT_WORKING )
3751GAMEB( 1995, sfish2j,   sfish2,  stvbios, stv, stv,  ic13,    ROT0,   "Sega",                   "Sport Fishing 2 (J 951201 V1.100)", GAME_NO_SOUND | GAME_NOT_WORKING )
3750GAME( 1995, sfish2,    0, stv, stv,  ic13,    ROT0,   "Sega",                   "Sport Fishing 2 (UET 951106 V1.10e)", GAME_NO_SOUND | GAME_NOT_WORKING )
3751GAME( 1995, sfish2j,   sfish2, stv, stv,  ic13,    ROT0,   "Sega",                   "Sport Fishing 2 (J 951201 V1.100)", GAME_NO_SOUND | GAME_NOT_WORKING )
37523752
37533753/*
37543754This is the known list of undumped ST-V games:
src/mame/drivers/megatech.c
r1238r1239
102102
103103
104104/* not currently used */
105INPUT_PORTS_START( megatech ) /* Genesis Input Ports */
105static INPUT_PORTS_START( megatech ) /* Genesis Input Ports */
106106   PORT_INCLUDE(megadriv)
107107
108108   PORT_START_TAG("BIOS_IN0") // port 6
src/mame/drivers/timelimt.c
r1238r1239
109109
110110/***************************************************************************/
111111
112INPUT_PORTS_START( timelimt )
112static INPUT_PORTS_START( timelimt )
113113   PORT_START_TAG("IN0")
114114   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY
115115   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY
r1238r1239
154154   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
155155INPUT_PORTS_END
156156
157INPUT_PORTS_START( progress )
157static INPUT_PORTS_START( progress )
158158   PORT_START_TAG("IN0")
159159   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT )
160160   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT )
src/mame/drivers/talbot.c
r1238r1239
6060   AM_RANGE(0x0000, 0x03ff) AM_RAM AM_SHARE(1) /* main CPU shared RAM */
6161ADDRESS_MAP_END
6262
63INPUT_PORTS_START( talbot )
63static INPUT_PORTS_START( talbot )
6464   PORT_START      /* IN0 */
6565   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
6666   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/warriorb.c
r1238r1239
306306                     INPUT PORTS, DIPs
307307***********************************************************/
308308
309INPUT_PORTS_START( darius2d )
309static INPUT_PORTS_START( darius2d )
310310   /* 0x800000 -> 0x109e16 ($1e16,A5) and 0x109e1a ($1e1a,A5) */
311311   PORT_START_TAG("DSWA")
312312   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:1")    /* code at 0x0170f2 ('darius2d') or 0x01705c ('drius2do') */
r1238r1239
360360   PORT_BIT( 0x80, IP_ACTIVE_LOW,  IPT_BUTTON2 ) PORT_PLAYER(2)
361361INPUT_PORTS_END
362362
363INPUT_PORTS_START( warriorb )
363static INPUT_PORTS_START( warriorb )
364364   PORT_INCLUDE(darius2d)
365365
366366   /* 0x800000 -> 0x202912.b (-$56ee,A5) */
src/mame/drivers/igs_blit.c
r1238r1239
12961296
12971297***************************************************************************/
12981298
1299INPUT_PORTS_START( chindrag )
1299static INPUT_PORTS_START( chindrag )
13001300   PORT_START   // IN0 - DSW1
13011301   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) )
13021302   PORT_DIPSETTING(    0x00, DEF_STR( 5C_1C ) )
r1238r1239
13961396
13971397
13981398
1399INPUT_PORTS_START( chmplst2 )
1399static INPUT_PORTS_START( chmplst2 )
14001400   PORT_START   // IN0 - DSW1
14011401   PORT_DIPNAME( 0x07, 0x02, "Pay Out (%)" )
14021402   PORT_DIPSETTING(    0x07, "50" )
r1238r1239
15341534
15351535
15361536
1537INPUT_PORTS_START( drgnwrld )
1537static INPUT_PORTS_START( drgnwrld )
15381538   PORT_START   // IN0 - DSW1
15391539   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) )
15401540   PORT_DIPSETTING(    0x00, DEF_STR( 5C_1C ) )
r1238r1239
16341634
16351635
16361636
1637INPUT_PORTS_START( grtwall )
1637static INPUT_PORTS_START( grtwall )
16381638   PORT_START   // IN0 - DSW3
16391639   PORT_DIPNAME( 0xff, 0xff, "3" )
16401640   PORT_DIPSETTING(    0xff, DEF_STR( Off ) )
r1238r1239
17151715INPUT_PORTS_END
17161716
17171717
1718INPUT_PORTS_START( lhb )
1718static INPUT_PORTS_START( lhb )
17191719   PORT_START   // IN0 - DSW1
17201720   PORT_DIPNAME( 0x0f, 0x07, "Pay Out (%)" )
17211721   PORT_DIPSETTING(    0x0f, "96" )
r1238r1239
18841884INPUT_PORTS_END
18851885
18861886
1887INPUT_PORTS_START( vbowl )
1887static INPUT_PORTS_START( vbowl )
18881888   PORT_START   // IN0 - DSW1
18891889   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) )
18901890   PORT_DIPSETTING(    0x00, DEF_STR( 4C_1C ) )
r1238r1239
20222022INPUT_PORTS_END
20232023
20242024
2025INPUT_PORTS_START( vbowlj )
2025static INPUT_PORTS_START( vbowlj )
20262026   PORT_START   // IN0 - DSW1
20272027   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) )
20282028   PORT_DIPSETTING(    0x00, DEF_STR( 4C_1C ) )
r1238r1239
21602160INPUT_PORTS_END
21612161
21622162
2163INPUT_PORTS_START( xymg )
2163static INPUT_PORTS_START( xymg )
21642164   PORT_START   // IN0 - DSW1
21652165   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) )
21662166   PORT_DIPSETTING(    0x03, DEF_STR( 1C_1C ) )
src/mame/drivers/goal92.c
r1238r1239
114114   AM_RANGE(0xf800, 0xf800) AM_READ(soundlatch_r)
115115ADDRESS_MAP_END
116116
117INPUT_PORTS_START( goal92 )
117static INPUT_PORTS_START( goal92 )
118118   PORT_START_TAG("DSW1")
119119   PORT_DIPNAME( 0x0007, 0x0007, "Coin A / Coin C" )
120120   PORT_DIPSETTING(      0x0000, DEF_STR( 4C_1C ) )
src/mame/drivers/champbwl.c
r1238r1239
213213   AM_RANGE(0xf800, 0xf800) AM_WRITENOP
214214ADDRESS_MAP_END
215215
216INPUT_PORTS_START( champbwl )
216static INPUT_PORTS_START( champbwl )
217217   PORT_START
218218   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
219219   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
src/mame/drivers/bishi.c
r1238r1239
146146   AM_RANGE(0xb00000, 0xb03fff) AM_WRITE(paletteram16_xbgr_word_be_w) AM_BASE(&paletteram16)
147147ADDRESS_MAP_END
148148
149INPUT_PORTS_START( bishi )
149static INPUT_PORTS_START( bishi )
150150   PORT_START_TAG("IN0")
151151   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
152152   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/1942.c
r1238r1239
139139ADDRESS_MAP_END
140140
141141
142INPUT_PORTS_START( 1942 )
142static INPUT_PORTS_START( 1942 )
143143   PORT_START_TAG("IN0")
144144   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
145145   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/mayumi.c
r1238r1239
9999
100100/****************************************************************************/
101101
102INPUT_PORTS_START( mayumi )
102static INPUT_PORTS_START( mayumi )
103103
104104    PORT_START  /* dsw1 */
105105   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) )
src/mame/drivers/poolshrk.c
r1238r1239
115115ADDRESS_MAP_END
116116
117117
118INPUT_PORTS_START( poolshrk )
118static INPUT_PORTS_START( poolshrk )
119119   PORT_START
120120   PORT_BIT( 0x0C, IP_ACTIVE_HIGH, IPT_UNUSED )
121121
src/mame/drivers/bloodbro.c
r1238r1239
156156
157157/* Input Ports */
158158
159INPUT_PORTS_START( bloodbro )
159static INPUT_PORTS_START( bloodbro )
160160   SEIBU_COIN_INPUTS   /* Must be port 0: coin inputs read through sound cpu */
161161
162162   PORT_START
r1238r1239
248248   PORT_BIT( 0xe000, IP_ACTIVE_LOW, IPT_UNKNOWN )
249249INPUT_PORTS_END
250250
251INPUT_PORTS_START( weststry )
251static INPUT_PORTS_START( weststry )
252252   PORT_START
253253   PORT_DIPNAME( 0x0001, 0x0001, "Coin Mode" )
254254   PORT_DIPSETTING(      0x0001, "Mode 1" )
r1238r1239
337337   PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
338338INPUT_PORTS_END
339339
340INPUT_PORTS_START( skysmash )
340static INPUT_PORTS_START( skysmash )
341341   SEIBU_COIN_INPUTS   /* Must be port 0: coin inputs read through sound cpu */
342342
343343   PORT_START
src/mame/drivers/raiden.c
r1238r1239
9696
9797/******************************************************************************/
9898
99INPUT_PORTS_START( raiden )
99static INPUT_PORTS_START( raiden )
100100   SEIBU_COIN_INPUTS   /* Must be port 0: coin inputs read through sound cpu */
101101
102102   PORT_START   /* IN0 */
src/mame/drivers/alg.c
r1238r1239
359359 *
360360 *************************************/
361361
362INPUT_PORTS_START( alg )
362static INPUT_PORTS_START( alg )
363363   PORT_START_TAG("JOY0DAT")   /* read by Amiga core */
364364   PORT_BIT( 0x0303, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(amiga_joystick_convert, "P1JOY")
365365   PORT_BIT( 0xfcfc, IP_ACTIVE_HIGH, IPT_UNKNOWN )
r1238r1239
402402INPUT_PORTS_END
403403
404404
405INPUT_PORTS_START( alg_2p )
405static INPUT_PORTS_START( alg_2p )
406406   PORT_INCLUDE(alg)
407407
408408   PORT_MODIFY("POTGO")
r1238r1239
828828 *************************************/
829829
830830/* BIOS */
831GAMEB( 199?, alg_bios, 0,        alg_bios, alg_r1,   alg,    none,     ROT0,  "American Laser Games", "American Laser Games BIOS", GAME_IS_BIOS_ROOT )
831GAME( 199?, alg_bios, 0, alg_r1,   alg,    none,     ROT0,  "American Laser Games", "American Laser Games BIOS", GAME_IS_BIOS_ROOT )
832832
833833/* Rev. A board */
834834/* PAL R1 */
835GAMEB( 1990, maddoga,  maddog,   alg_bios, alg_r1,   alg,    palr1,    ROT0,  "American Laser Games", "Mad Dog McCree v1C board rev.A", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS )
835GAME( 1990, maddoga,  maddog, alg_r1,   alg,    palr1,    ROT0,  "American Laser Games", "Mad Dog McCree v1C board rev.A", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS )
836836
837837/* PAL R3 */
838GAMEB( 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 )
839GAMEB( 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 )
838GAME( 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 )
839GAME( 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 )
840840
841841/* Rev. B board */
842842/* PAL R6 */
843GAMEB( 1990, maddog,  alg_bios, alg_bios, alg_r2,   alg_2p, palr6,    ROT0,  "American Laser Games", "Mad Dog McCree v2.03 board rev.B", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS )
843GAME( 1990, maddog,  alg_bios, alg_r2,   alg_2p, palr6,    ROT0,  "American Laser Games", "Mad Dog McCree v2.03 board rev.B", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS )
844844  /* works ok but uses right player (2) controls only for trigger and holster */
845GAMEB( 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 )
846GAMEB( 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 )
847GAMEB( 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 )
845GAME( 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 )
846GAME( 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 )
847GAME( 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 )
848848  /* works ok but uses right player (2) controls only for trigger and holster */
849GAMEB( 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 )
850GAMEB( 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 )
849GAME( 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 )
850GAME( 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 )
851851  /* all good, but no holster */
852GAMEB( 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 )
853GAMEB( 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 )
854GAMEB( 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 )
855GAMEB( 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 )
856GAMEB( 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 )
852GAME( 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 )
853GAME( 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 )
854GAME( 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 )
855GAME( 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 )
856GAME( 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 )
857857  /* works ok but uses right player (2) controls only for trigger and holster */
858858
859859/* NOVA games on ALG hardware with own address scramble */
860GAMEB( 199?, aplatoon, alg_bios, alg_bios, alg_r2,   alg,    aplatoon, ROT0,  "Nova?", "Platoon V.?.? US", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS )
860GAME( 199?, aplatoon, alg_bios, alg_r2,   alg,    aplatoon, ROT0,  "Nova?", "Platoon V.?.? US", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS )
861861
862862/* Web Picmatic games PAL tv standard, own rom board */
863GAMEB( 1993, zortonbr, alg_bios, alg_bios, picmatic, alg,    none,     ROT0,  "Web Picmatic", "Zorton Brothers (Los Justicieros)", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS )
863GAME( 1993, zortonbr, alg_bios, picmatic, alg,    none,     ROT0,  "Web Picmatic", "Zorton Brothers (Los Justicieros)", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS )
src/mame/drivers/galaxia.c
r1238r1239
8686ADDRESS_MAP_END
8787
8888
89INPUT_PORTS_START( galaxia )
89static INPUT_PORTS_START( galaxia )
9090   PORT_START   /*  */
9191
9292   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )
src/mame/drivers/vegaeo.c
r1238r1239
9292   AM_RANGE(0xfff80000, 0xffffffff) AM_ROM AM_REGION(REGION_CPU1, 0)
9393ADDRESS_MAP_END
9494
95INPUT_PORTS_START( crazywar )
95static INPUT_PORTS_START( crazywar )
9696   PORT_START_TAG("IN0")
9797   PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_COIN1 )
9898   PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_UNUSED )
src/mame/drivers/fromanc2.c
r1238r1239
587587   PORT_BIT ( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) \
588588   PORT_BIT ( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
589589
590INPUT_PORTS_START( fromanc2 )
590static INPUT_PORTS_START( fromanc2 )
591591   PORT_START_TAG("IN0")   /* (0) COIN SW, TEST SW, EEPROM DATA, etc */
592592   PORT_BIT ( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )      // COIN1 (1P)
593593   PORT_BIT ( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )      // COIN2 (1P)
r1238r1239
612612   VSYSMJCTRL_PORT4   /* (4) PORT 1-3 */
613613INPUT_PORTS_END
614614
615INPUT_PORTS_START( fromanc4 )
615static INPUT_PORTS_START( fromanc4 )
616616   PORT_START_TAG("IN0")   /* (0) COIN SW, TEST SW, EEPROM DATA, etc */
617617   PORT_SERVICE_NO_TOGGLE( 0x0001, IP_ACTIVE_LOW)   // TEST (1P)
618618   PORT_BIT ( 0x0002, IP_ACTIVE_LOW, IPT_COIN1 )      // COIN1 (1P)
src/mame/drivers/bombjack.c
r1238r1239
186186ADDRESS_MAP_END
187187
188188
189INPUT_PORTS_START( bombjack )
189static INPUT_PORTS_START( bombjack )
190190   PORT_START   /* IN0 */
191191   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
192192   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
src/mame/drivers/gridlee.c
r1238r1239
334334 *
335335 *************************************/
336336
337INPUT_PORTS_START( gridlee )
337static INPUT_PORTS_START( gridlee )
338338   PORT_START   /* 9500 (fake) */
339339    PORT_BIT( 0xff, 0, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(20) PORT_KEYDELTA(8)
340340
src/mame/drivers/rallyx.c
r1238r1239
344344
345345
346346
347INPUT_PORTS_START( rallyx )
347static INPUT_PORTS_START( rallyx )
348348   PORT_START_TAG("IN0")
349349   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE1 )
350350   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
411411   PORT_SERVICE( 0x01, IP_ACTIVE_LOW )
412412INPUT_PORTS_END
413413
414INPUT_PORTS_START( nrallyx )
414static INPUT_PORTS_START( nrallyx )
415415   PORT_START_TAG("IN0")
416416   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE1 )
417417   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
459459INPUT_PORTS_END
460460
461461
462INPUT_PORTS_START( jungler )
462static INPUT_PORTS_START( jungler )
463463   PORT_START_TAG("IN0")
464464   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
465465   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )
r1238r1239
512512INPUT_PORTS_END
513513
514514
515INPUT_PORTS_START( locomotn )
515static INPUT_PORTS_START( locomotn )
516516   PORT_START_TAG("IN0")
517517   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
518518   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )
r1238r1239
592592INPUT_PORTS_END
593593
594594
595INPUT_PORTS_START( tactcian )
595static INPUT_PORTS_START( tactcian )
596596   PORT_START_TAG("IN0")
597597   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
598598   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
668668INPUT_PORTS_END
669669
670670
671INPUT_PORTS_START( commsega )
671static INPUT_PORTS_START( commsega )
672672   PORT_START_TAG("IN0")
673673   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
674674   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )
src/mame/drivers/trucocl.c
r1238r1239
105105   AM_RANGE(0x8000, 0xffff) AM_WRITE(MWA8_ROM)
106106ADDRESS_MAP_END
107107
108INPUT_PORTS_START( trucocl )
108static INPUT_PORTS_START( trucocl )
109109   PORT_START_TAG("IN0")
110110   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
111111   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
src/mame/drivers/igs_m68.c
r1238r1239
3232   AM_RANGE(0x000000, 0x07ffff) AM_ROM
3333ADDRESS_MAP_END
3434
35INPUT_PORTS_START( igs_m68 )
35static INPUT_PORTS_START( igs_m68 )
3636INPUT_PORTS_END
3737
3838
src/mame/drivers/bnstars.c
r1238r1239
458458
459459
460460
461WRITE32_HANDLER( ms32_spramx_w )
461static WRITE32_HANDLER( ms32_spramx_w )
462462{
463463   COMBINE_DATA(&ms32_spram[offset]);
464464}
r1238r1239
532532   return 0;
533533}
534534
535INPUT_PORTS_START( bnstars )
535static INPUT_PORTS_START( bnstars )
536536   PORT_START
537537   PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_START1 )
538538   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_A )
src/mame/drivers/bking2.c
r1238r1239
225225   AM_RANGE(0x4802, 0x4802) AM_WRITE(bking2_sndnmi_enable_w)
226226ADDRESS_MAP_END
227227
228INPUT_PORTS_START( bking )
228static INPUT_PORTS_START( bking )
229229   PORT_START  /* IN0 */
230230   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
231231   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
339339   PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_REVERSE PORT_COCKTAIL /* Sensitivity, clip, min, max */
340340INPUT_PORTS_END
341341
342INPUT_PORTS_START( bking2 )
342static INPUT_PORTS_START( bking2 )
343343   PORT_START  /* IN0 */
344344   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
345345   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
src/mame/drivers/unico.c
r1238r1239
327327                                Burglar X
328328***************************************************************************/
329329
330INPUT_PORTS_START( burglarx )
330static INPUT_PORTS_START( burglarx )
331331
332332   PORT_START_TAG("IN0")   //$800000.w
333333   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
r1238r1239
416416                                Zero Point
417417***************************************************************************/
418418
419INPUT_PORTS_START( zeropnt )
419static INPUT_PORTS_START( zeropnt )
420420
421421   PORT_START_TAG("IN0")   //$800018.w
422422   PORT_BIT(  0x0001, IP_ACTIVE_HIGH, IPT_COIN1    )
r1238r1239
509509                                Zero Point 2
510510***************************************************************************/
511511
512INPUT_PORTS_START( zeropnt2 )
512static INPUT_PORTS_START( zeropnt2 )
513513   PORT_START_TAG("IN0")   //$800019.b
514514   PORT_BIT(  0x0001, IP_ACTIVE_HIGH, IPT_COIN1    )
515515   PORT_BIT(  0x0002, IP_ACTIVE_HIGH, IPT_COIN2    )
src/mame/drivers/blockhl.c
r1238r1239
110110
111111***************************************************************************/
112112
113INPUT_PORTS_START( blockhl )
113static INPUT_PORTS_START( blockhl )
114114   PORT_START   /* PLAYER 1 INPUTS */
115115   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
116116   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/gcpinbal.c
r1238r1239
230230                   INPUT PORTS, DIPs
231231***********************************************************/
232232
233INPUT_PORTS_START( gcpinbal )
233static INPUT_PORTS_START( gcpinbal )
234234   PORT_START   /* DSW */
235235   PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) )
236236   PORT_DIPSETTING(      0x0002, DEF_STR( Easy ) )
src/mame/drivers/realbrk.c
r1238r1239
218218                        Billiard Academy Real Break
219219***************************************************************************/
220220
221INPUT_PORTS_START( realbrk )
221static INPUT_PORTS_START( realbrk )
222222   PORT_START   // IN0 - $c00000.w
223223   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2)
224224   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2)
r1238r1239
314314   PORT_BIT(  0xffff, IP_ACTIVE_LOW,  IPT_UNKNOWN )
315315INPUT_PORTS_END
316316
317INPUT_PORTS_START( pkgnsh )
317static INPUT_PORTS_START( pkgnsh )
318318   PORT_START   // IN0 - $c00002.w
319319   PORT_BIT(  0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN )
320320   PORT_BIT(  0x0100, IP_ACTIVE_LOW,  IPT_COIN1 )
r1238r1239
422422   PORT_BIT(     0xf000, IP_ACTIVE_LOW, IPT_UNUSED )
423423INPUT_PORTS_END
424424
425INPUT_PORTS_START( pkgnshdx )
425static INPUT_PORTS_START( pkgnshdx )
426426   PORT_START   // IN0 - $c00002.w
427427   PORT_BIT(  0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN )
428428   PORT_BIT(  0x0100, IP_ACTIVE_LOW,  IPT_COIN1 )
src/mame/drivers/diverboy.c
r1238r1239
114114
115115
116116
117INPUT_PORTS_START( diverboy )
117static INPUT_PORTS_START( diverboy )
118118   PORT_START   // 0x180000.w
119119   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)   // unused ?
120120   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)   // unused ?
src/mame/drivers/arcadia.c
r1238r1239
217217 *
218218 *************************************/
219219
220INPUT_PORTS_START( arcadia )
220static INPUT_PORTS_START( arcadia )
221221   PORT_START_TAG("CIA0PORTA")
222222   PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_SPECIAL )
223223   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
718718 *************************************/
719719
720720/* BIOS */
721GAMEB( 1988, ar_bios,   0,       ar_bios, arcadia, arcadia, none,  ROT0, "Arcadia Systems", "Arcadia System BIOS", GAME_IS_BIOS_ROOT )
721GAME( 1988, ar_bios,   0, arcadia, arcadia, none,  ROT0, "Arcadia Systems", "Arcadia System BIOS", GAME_IS_BIOS_ROOT )
722722
723723/* working */
724GAMEB( 1988, ar_airh,   ar_bios, ar_bios, arcadia, arcadia, airh,  ROT0, "Arcadia Systems", "SportTime Table Hockey (Arcadia, V 2.1)", 0 )
725GAMEB( 1988, ar_bowl,   ar_bios, ar_bios, arcadia, arcadia, bowl,  ROT0, "Arcadia Systems", "SportTime Bowling (Arcadia, V 2.1)", 0 )
726GAMEB( 1987, ar_dart,   ar_bios, ar_bios, arcadia, arcadia, dart,  ROT0, "Arcadia Systems", "World Darts (Arcadia, V 2.1)", 0 )
727GAMEB( 1988, ar_fast,   ar_bios, ar_bios, arcadia, arcadia, none,  ROT0, "Arcadia Systems", "Magic Johnson's Fast Break (Arcadia, V 2.8)", 0 )
728GAMEB( 1988, ar_ldrb,   ar_bios, ar_bios, arcadia, arcadia, none,  ROT0, "Arcadia Systems", "Leader Board (Arcadia, V 2.4?)", 0 )
729GAMEB( 1988, ar_ldrba,   ar_ldrb, ar_bios, arcadia, arcadia, ldrba, ROT0, "Arcadia Systems", "Leader Board (Arcadia, V 2.5)", 0 )
730GAMEB( 1987, ar_ninj,   ar_bios, ar_bios, arcadia, arcadia, ninj,  ROT0, "Arcadia Systems", "Ninja Mission (Arcadia, V 2.5)", 0 )
731GAMEB( 1988, ar_rdwr,   ar_bios, ar_bios, arcadia, arcadia, rdwr,  ROT0, "Arcadia Systems", "RoadWars (Arcadia, V 2.3)", 0  )
732GAMEB( 1988, ar_sdwr,   ar_bios, ar_bios, arcadia, arcadia, sdwr,  ROT0, "Arcadia Systems", "Sidewinder (Arcadia, V 2.1)", 0 )
733GAMEB( 1989, ar_socc,   ar_bios, ar_bios, arcadia, arcadia, socc,  ROT0, "Arcadia Systems", "World Trophy Soccer (Arcadia, V 3.0)", 0 )
734GAMEB( 1990, ar_spot,   ar_bios, ar_bios, arcadia, arcadia, none,  ROT0, "Arcadia Systems", "Spot (Arcadia)", 0 )
735GAMEB( 1987, ar_sprg,   ar_bios, ar_bios, arcadia, arcadia, sprg,  ROT0, "Arcadia Systems", "Space Ranger (Arcadia, V 2.0)", 0 )
736GAMEB( 1988, ar_xeon,   ar_bios, ar_bios, arcadia, arcadia, xeon,  ROT0, "Arcadia Systems", "Xenon (Arcadia, V 2.3)", 0 )
724GAME( 1988, ar_airh,   ar_bios, arcadia, arcadia, airh,  ROT0, "Arcadia Systems", "SportTime Table Hockey (Arcadia, V 2.1)", 0 )
725GAME( 1988, ar_bowl,   ar_bios, arcadia, arcadia, bowl,  ROT0, "Arcadia Systems", "SportTime Bowling (Arcadia, V 2.1)", 0 )
726GAME( 1987, ar_dart,   ar_bios, arcadia, arcadia, dart,  ROT0, "Arcadia Systems", "World Darts (Arcadia, V 2.1)", 0 )
727GAME( 1988, ar_fast,   ar_bios, arcadia, arcadia, none,  ROT0, "Arcadia Systems", "Magic Johnson's Fast Break (Arcadia, V 2.8)", 0 )
728GAME( 1988, ar_ldrb,   ar_bios, arcadia, arcadia, none,  ROT0, "Arcadia Systems", "Leader Board (Arcadia, V 2.4?)", 0 )
729GAME( 1988, ar_ldrba,   ar_ldrb, arcadia, arcadia, ldrba, ROT0, "Arcadia Systems", "Leader Board (Arcadia, V 2.5)", 0 )
730GAME( 1987, ar_ninj,   ar_bios, arcadia, arcadia, ninj,  ROT0, "Arcadia Systems", "Ninja Mission (Arcadia, V 2.5)", 0 )
731GAME( 1988, ar_rdwr,   ar_bios, arcadia, arcadia, rdwr,  ROT0, "Arcadia Systems", "RoadWars (Arcadia, V 2.3)", 0  )
732GAME( 1988, ar_sdwr,   ar_bios, arcadia, arcadia, sdwr,  ROT0, "Arcadia Systems", "Sidewinder (Arcadia, V 2.1)", 0 )
733GAME( 1989, ar_socc,   ar_bios, arcadia, arcadia, socc,  ROT0, "Arcadia Systems", "World Trophy Soccer (Arcadia, V 3.0)", 0 )
734GAME( 1990, ar_spot,   ar_bios, arcadia, arcadia, none,  ROT0, "Arcadia Systems", "Spot (Arcadia)", 0 )
735GAME( 1987, ar_sprg,   ar_bios, arcadia, arcadia, sprg,  ROT0, "Arcadia Systems", "Space Ranger (Arcadia, V 2.0)", 0 )
736GAME( 1988, ar_xeon,   ar_bios, arcadia, arcadia, xeon,  ROT0, "Arcadia Systems", "Xenon (Arcadia, V 2.3)", 0 )
src/mame/drivers/segag80v.c
r1238r1239
429429 *
430430 *************************************/
431431
432INPUT_PORTS_START( g80v_generic )
432static INPUT_PORTS_START( g80v_generic )
433433   PORT_START_TAG("D7D6")
434434   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(3)   /* P1.5 */
435435   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )               /* n/c */
r1238r1239
534534 *
535535 *************************************/
536536
537INPUT_PORTS_START( elim2 )
537static INPUT_PORTS_START( elim2 )
538538   PORT_INCLUDE( g80v_generic )
539539
540540   PORT_MODIFY("D7D6")
r1238r1239
574574INPUT_PORTS_END
575575
576576
577INPUT_PORTS_START( elim2c )
577static INPUT_PORTS_START( elim2c )
578578   PORT_INCLUDE( elim2 )
579579
580580   PORT_MODIFY("D7D6")
r1238r1239
593593INPUT_PORTS_END
594594
595595
596INPUT_PORTS_START( elim4 )
596static INPUT_PORTS_START( elim4 )
597597   PORT_INCLUDE( g80v_generic )
598598
599599   PORT_MODIFY("D7D6")
r1238r1239
674674INPUT_PORTS_END
675675
676676
677INPUT_PORTS_START( spacfury )
677static INPUT_PORTS_START( spacfury )
678678   PORT_INCLUDE( g80v_generic )
679679
680680   PORT_MODIFY("D5D4")
r1238r1239
716716INPUT_PORTS_END
717717
718718
719INPUT_PORTS_START( zektor )
719static INPUT_PORTS_START( zektor )
720720   PORT_INCLUDE( g80v_generic )
721721
722722   PORT_MODIFY("D3D2")
r1238r1239
753753INPUT_PORTS_END
754754
755755
756INPUT_PORTS_START( tacscan )
756static INPUT_PORTS_START( tacscan )
757757   PORT_INCLUDE( g80v_generic )
758758
759759   PORT_MODIFY("D3D2")
r1238r1239
790790INPUT_PORTS_END
791791
792792
793INPUT_PORTS_START( startrek )
793static INPUT_PORTS_START( startrek )
794794   PORT_INCLUDE( g80v_generic )
795795
796796   PORT_MODIFY("D3D2")
src/mame/drivers/carjmbre.c
r1238r1239
108108   AM_RANGE(0x32, 0x32) AM_WRITE(MWA8_NOP)            //?? written before and after 0x31 with same value
109109ADDRESS_MAP_END
110110
111INPUT_PORTS_START( carjmbre )
111static INPUT_PORTS_START( carjmbre )
112112   PORT_START_TAG("IN0")
113113   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )      //coin error if held high for 1s
114114   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )      //or if many coins inserted quickly
src/mame/drivers/ace.c
r1238r1239
202202ADDRESS_MAP_END
203203
204204
205INPUT_PORTS_START( ace )
205static INPUT_PORTS_START( ace )
206206
207207   PORT_START_TAG("c008")   /* player thrust */
208208   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(1) PORT_NAME("P1 Thrust")
src/mame/drivers/vmetal.c
r1238r1239
260260
261261
262262
263INPUT_PORTS_START( varia )
263static INPUT_PORTS_START( varia )
264264   PORT_START      /* IN0 */
265265   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
266266   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)
src/mame/drivers/superchs.c
r1238r1239
272272
273273/***********************************************************/
274274
275INPUT_PORTS_START( superchs )
275static INPUT_PORTS_START( superchs )
276276   PORT_START      /* IN0 */
277277   PORT_BIT( 0x0001, IP_ACTIVE_LOW,  IPT_UNKNOWN )
278278   PORT_BIT( 0x0002, IP_ACTIVE_LOW,  IPT_UNKNOWN )
src/mame/drivers/bottom9.c
r1238r1239
174174
175175
176176
177INPUT_PORTS_START( bottom9 )
177static INPUT_PORTS_START( bottom9 )
178178   PORT_START
179179   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
180180   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
272272   PORT_DIPSETTING(    0x00, "Auto" )
273273INPUT_PORTS_END
274274
275INPUT_PORTS_START( mstadium )
275static INPUT_PORTS_START( mstadium )
276276   PORT_START
277277   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
278278   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/flower.c
r1238r1239
129129ADDRESS_MAP_END
130130
131131
132INPUT_PORTS_START( flower )
132static INPUT_PORTS_START( flower )
133133   PORT_START_TAG("IN0CPU0")
134134   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
135135   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1  )
src/mame/drivers/battlera.c
r1238r1239
150150
151151/******************************************************************************/
152152
153INPUT_PORTS_START( battlera )
153static INPUT_PORTS_START( battlera )
154154   PORT_START_TAG("IN0")  /* Player 1 controls */
155155   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
156156   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/dreamwld.c
r1238r1239
312312
313313
314314
315INPUT_PORTS_START(dreamwld)
315static INPUT_PORTS_START(dreamwld)
316316   PORT_START
317317   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START2 )
318318   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)
src/mame/drivers/xain.c
r1238r1239
343343
344344
345345
346INPUT_PORTS_START( xsleena )
346static INPUT_PORTS_START( xsleena )
347347   PORT_START_TAG("IN0")
348348   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
349349   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
src/mame/drivers/gundealr.c
r1238r1239
180180
181181
182182
183INPUT_PORTS_START( gundealr )
183static INPUT_PORTS_START( gundealr )
184184   PORT_START   /* DSW0 */
185185   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
186186   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
262262   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* probably unused */
263263INPUT_PORTS_END
264264
265INPUT_PORTS_START( gundealt )
265static INPUT_PORTS_START( gundealt )
266266   PORT_START   /* DSW0 */
267267   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
268268   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
344344   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
345345INPUT_PORTS_END
346346
347INPUT_PORTS_START( yamyam )
347static INPUT_PORTS_START( yamyam )
348348   PORT_START   /* DSW0 */
349349   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) )
350350   PORT_DIPSETTING(    0x00, "3" )
src/mame/drivers/mrdo.c
r1238r1239
6464ADDRESS_MAP_END
6565
6666
67INPUT_PORTS_START( mrdo )
67static INPUT_PORTS_START( mrdo )
6868   PORT_START_TAG("IN0")
6969   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
7070   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY
src/mame/drivers/namcos1.c
r1238r1239
534534
535535
536536/* Standard Namco System 1 input port definition */
537INPUT_PORTS_START( ns1 )
537static INPUT_PORTS_START( ns1 )
538538   PORT_START_TAG( "CONTROL0" )
539539   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT )
540540   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )
r1238r1239
592592
593593
594594
595INPUT_PORTS_START( shadowld )
595static INPUT_PORTS_START( shadowld )
596596   PORT_INCLUDE( ns1 )
597597
598598   PORT_MODIFY( "DIPSW" )
r1238r1239
605605INPUT_PORTS_END
606606
607607
608INPUT_PORTS_START( dspirit )
608static INPUT_PORTS_START( dspirit )
609609   PORT_INCLUDE( ns1 )
610610
611611   PORT_MODIFY( "DIPSW" )
r1238r1239
615615INPUT_PORTS_END
616616
617617
618INPUT_PORTS_START( quester )
618static INPUT_PORTS_START( quester )
619619   PORT_INCLUDE( ns1 )
620620
621621   PORT_MODIFY( "CONTROL0" )
r1238r1239
654654INPUT_PORTS_END
655655
656656
657INPUT_PORTS_START( pacmania )
657static INPUT_PORTS_START( pacmania )
658658   PORT_INCLUDE( ns1 )
659659
660660   PORT_MODIFY( "DIPSW" )
r1238r1239
672672INPUT_PORTS_END
673673
674674
675INPUT_PORTS_START( galaga88 )
675static INPUT_PORTS_START( galaga88 )
676676   PORT_INCLUDE( ns1 )
677677
678678   PORT_MODIFY( "DIPSW" )
r1238r1239
682682INPUT_PORTS_END
683683
684684
685INPUT_PORTS_START( berabohm )
685static INPUT_PORTS_START( berabohm )
686686   PORT_INCLUDE( ns1 )
687687
688688   PORT_MODIFY( "CONTROL0" )
r1238r1239
753753INPUT_PORTS_END
754754
755755
756INPUT_PORTS_START( mmaze )
756static INPUT_PORTS_START( mmaze )
757757   PORT_INCLUDE( ns1 )
758758
759759   PORT_MODIFY( "DIPSW" )
r1238r1239
766766INPUT_PORTS_END
767767
768768
769INPUT_PORTS_START( bakutotu )
769static INPUT_PORTS_START( bakutotu )
770770   PORT_INCLUDE( ns1 )
771771
772772   PORT_MODIFY( "DIPSW" )
r1238r1239
785785INPUT_PORTS_END
786786
787787
788INPUT_PORTS_START( wldcourt )
788static INPUT_PORTS_START( wldcourt )
789789   PORT_INCLUDE( ns1 )
790790
791791   PORT_MODIFY( "DIPSW" )
r1238r1239
799799INPUT_PORTS_END
800800
801801
802INPUT_PORTS_START( splatter )
802static INPUT_PORTS_START( splatter )
803803   PORT_INCLUDE( ns1 )
804804
805805   PORT_MODIFY( "DIPSW" )
r1238r1239
813813INPUT_PORTS_END
814814
815815
816INPUT_PORTS_START( faceoff )
816static INPUT_PORTS_START( faceoff )
817817   PORT_INCLUDE( ns1 )
818818
819819   PORT_MODIFY( "CONTROL0" )
r1238r1239
858858INPUT_PORTS_END
859859
860860
861INPUT_PORTS_START( ws89 )
861static INPUT_PORTS_START( ws89 )
862862   PORT_INCLUDE( ns1 )
863863
864864   PORT_MODIFY( "DIPSW" )
r1238r1239
872872INPUT_PORTS_END
873873
874874
875INPUT_PORTS_START( dangseed )
875static INPUT_PORTS_START( dangseed )
876876   PORT_INCLUDE( ns1 )
877877
878878   PORT_MODIFY( "DIPSW" )
r1238r1239
890890INPUT_PORTS_END
891891
892892
893INPUT_PORTS_START( ws90 )
893static INPUT_PORTS_START( ws90 )
894894   PORT_INCLUDE( ns1 )
895895
896896   PORT_MODIFY( "DIPSW" )
r1238r1239
904904INPUT_PORTS_END
905905
906906
907INPUT_PORTS_START( boxyboy )
907static INPUT_PORTS_START( boxyboy )
908908   PORT_INCLUDE( ns1 )
909909
910910   PORT_MODIFY( "DIPSW" )
r1238r1239
914914INPUT_PORTS_END
915915
916916
917INPUT_PORTS_START( puzlclub )
917static INPUT_PORTS_START( puzlclub )
918918   PORT_INCLUDE( ns1 )
919919
920920   PORT_MODIFY( "DIPSW" )
src/mame/drivers/mainevt.c
r1238r1239
119119   upd7759_set_bank_base(0, ((data >> 4) & 0x03) * 0x20000);
120120}
121121
122WRITE8_HANDLER( dv_sh_bankswitch_w )
122static WRITE8_HANDLER( dv_sh_bankswitch_w )
123123{
124124   int bank_A,bank_B;
125125
r1238r1239
231231
232232/*****************************************************************************/
233233
234INPUT_PORTS_START( mainevt )
234static INPUT_PORTS_START( mainevt )
235235   PORT_START   /* IN0 */
236236   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
237237   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
351351   PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )
352352INPUT_PORTS_END
353353
354INPUT_PORTS_START( mainev2p )
354static INPUT_PORTS_START( mainev2p )
355355   PORT_START   /* IN0 */
356356   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
357357   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
462462   PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )
463463INPUT_PORTS_END
464464
465INPUT_PORTS_START( devstors )
465static INPUT_PORTS_START( devstors )
466466   PORT_START   /* IN0 */
467467   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
468468   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
573573INPUT_PORTS_END
574574
575575/* Same as 'devstors', but additional "Cocktail" Dip Switch (even if I don't see the use) */
576INPUT_PORTS_START( devstor2 )
576static INPUT_PORTS_START( devstor2 )
577577   PORT_START   /* IN0 */
578578   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
579579   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/m62.c
r1238r1239
587587   PORT_DIPSETTING(    0x50, DEF_STR( 1C_6C ) ) \
588588
589589
590INPUT_PORTS_START( kungfum )
590static INPUT_PORTS_START( kungfum )
591591   PORT_START_TAG("IN0")
592592   IN0_PORT
593593
r1238r1239
654654   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
655655INPUT_PORTS_END
656656
657INPUT_PORTS_START( battroad )
657static INPUT_PORTS_START( battroad )
658658   PORT_START_TAG("IN0")
659659   IN0_PORT
660660
r1238r1239
705705   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
706706INPUT_PORTS_END
707707
708INPUT_PORTS_START( ldrun )
708static INPUT_PORTS_START( ldrun )
709709   PORT_START_TAG("IN0")
710710   IN0_PORT
711711
r1238r1239
756756   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
757757INPUT_PORTS_END
758758
759INPUT_PORTS_START( ldrun2 )
759static INPUT_PORTS_START( ldrun2 )
760760   PORT_START_TAG("IN0")
761761   IN0_PORT
762762
r1238r1239
808808   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
809809INPUT_PORTS_END
810810
811INPUT_PORTS_START( ldrun3 )
811static INPUT_PORTS_START( ldrun3 )
812812   PORT_START_TAG("IN0")
813813   IN0_PORT
814814
r1238r1239
860860   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
861861INPUT_PORTS_END
862862
863INPUT_PORTS_START( ldrun4 )
863static INPUT_PORTS_START( ldrun4 )
864864   PORT_START_TAG("IN0")
865865   IN0_PORT
866866
r1238r1239
913913   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
914914INPUT_PORTS_END
915915
916INPUT_PORTS_START( lotlot )
916static INPUT_PORTS_START( lotlot )
917917   PORT_START_TAG("IN0")
918918   IN0_PORT
919919
r1238r1239
963963   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
964964INPUT_PORTS_END
965965
966INPUT_PORTS_START( kidniki )
966static INPUT_PORTS_START( kidniki )
967967   PORT_START_TAG("IN0")
968968   IN0_PORT
969969
r1238r1239
10131013   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
10141014INPUT_PORTS_END
10151015
1016INPUT_PORTS_START( spelunkr )
1016static INPUT_PORTS_START( spelunkr )
10171017   PORT_START_TAG("IN0")
10181018   IN0_PORT
10191019
r1238r1239
10641064   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
10651065INPUT_PORTS_END
10661066
1067INPUT_PORTS_START( spelunk2 )
1067static INPUT_PORTS_START( spelunk2 )
10681068   PORT_START_TAG("IN0")
10691069   IN0_PORT
10701070
r1238r1239
11161116   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
11171117INPUT_PORTS_END
11181118
1119INPUT_PORTS_START( youjyudn )
1119static INPUT_PORTS_START( youjyudn )
11201120   PORT_START_TAG("IN0")
11211121   IN0_PORT
11221122
r1238r1239
11671167   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
11681168INPUT_PORTS_END
11691169
1170INPUT_PORTS_START( horizon )
1170static INPUT_PORTS_START( horizon )
11711171   PORT_START_TAG("IN0")
11721172   IN0_PORT
11731173
src/mame/drivers/astrocde.c
r1238r1239
726726   0x04, 0x05, 0x07, 0x06, 0x02, 0x03, 0x01, 0x00
727727};
728728
729INPUT_PORTS_START( seawolf2 )
729static INPUT_PORTS_START( seawolf2 )
730730   PORT_START_TAG("P1HANDLE")
731731   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)
732732   PORT_DIPNAME( 0x40, 0x00, "Language 1" )
r1238r1239
772772INPUT_PORTS_END
773773
774774
775INPUT_PORTS_START( ebases )
775static INPUT_PORTS_START( ebases )
776776   PORT_START_TAG("P1HANDLE")
777777   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
778778   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
824824INPUT_PORTS_END
825825
826826
827INPUT_PORTS_START( spacezap )
827static INPUT_PORTS_START( spacezap )
828828   PORT_START_TAG("P1HANDLE")
829829   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
830830   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
870870INPUT_PORTS_END
871871
872872
873INPUT_PORTS_START( wow )
873static INPUT_PORTS_START( wow )
874874   PORT_START_TAG("P1HANDLE")
875875   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
876876   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
929929INPUT_PORTS_END
930930
931931
932INPUT_PORTS_START( gorf )
932static INPUT_PORTS_START( gorf )
933933   PORT_START_TAG("P1HANDLE")
934934   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
935935   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
988988INPUT_PORTS_END
989989
990990
991INPUT_PORTS_START( robby )
991static INPUT_PORTS_START( robby )
992992   PORT_START_TAG("P1HANDLE")
993993   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
994994   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
10391039INPUT_PORTS_END
10401040
10411041
1042INPUT_PORTS_START( profpac )
1042static INPUT_PORTS_START( profpac )
10431043   PORT_START_TAG("P1HANDLE")
10441044   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
10451045   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
10841084INPUT_PORTS_END
10851085
10861086
1087INPUT_PORTS_START( demndrgn )
1087static INPUT_PORTS_START( demndrgn )
10881088   PORT_START_TAG("P1HANDLE")
10891089   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
10901090   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
11251125INPUT_PORTS_END
11261126
11271127
1128INPUT_PORTS_START( tenpindx )
1128static INPUT_PORTS_START( tenpindx )
11291129   PORT_START_TAG("P60")
11301130   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
11311131   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/megazone.c
r1238r1239
191191   AM_RANGE(I8039_p2, I8039_p2) AM_WRITE(i8039_irqen_and_status_w)
192192ADDRESS_MAP_END
193193
194INPUT_PORTS_START( megazone )
194static INPUT_PORTS_START( megazone )
195195   PORT_START_TAG("IN0")
196196   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
197197   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/deco156.c
r1238r1239
279279
280280/***************************************************************************/
281281
282INPUT_PORTS_START( hvysmsh )
282static INPUT_PORTS_START( hvysmsh )
283283   PORT_START
284284   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
285285   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
317317   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNUSED )
318318INPUT_PORTS_END
319319
320INPUT_PORTS_START( wcvol95 )
320static INPUT_PORTS_START( wcvol95 )
321321   PORT_START
322322   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
323323   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/pass.c
r1238r1239
169169
170170
171171/* todo : work out function of unknown but used dsw */
172INPUT_PORTS_START( pass )
172static INPUT_PORTS_START( pass )
173173   PORT_START   /* DSW */
174174   PORT_DIPNAME( 0x0001, 0x0001, "Unknown SW 0-0" )   // USED ! Check code at 0x0046ea
175175   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
src/mame/drivers/toki.c
r1238r1239
145145
146146/*****************************************************************************/
147147
148INPUT_PORTS_START( toki )
148static INPUT_PORTS_START( toki )
149149   SEIBU_COIN_INPUTS   /* Must be port 0: coin inputs read through sound cpu */
150150
151151   PORT_START_TAG("DSW0")
r1238r1239
230230   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
231231INPUT_PORTS_END
232232
233INPUT_PORTS_START( tokib )
233static INPUT_PORTS_START( tokib )
234234   PORT_START_TAG("DSW0")
235235   PORT_DIPNAME( 0x001f, 0x001f, DEF_STR( Coinage ) )
236236   PORT_DIPSETTING(      0x0015, DEF_STR( 6C_1C ) )
src/mame/drivers/dwarfd.c
r1238r1239
378378ADDRESS_MAP_END
379379
380380
381INPUT_PORTS_START( dwarfd )
381static INPUT_PORTS_START( dwarfd )
382382   PORT_START   /* 8bit */
383383   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
384384   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
src/mame/drivers/40love.c
r1238r1239
813813ADDRESS_MAP_END
814814
815815
816INPUT_PORTS_START( 40love )
816static INPUT_PORTS_START( 40love )
817817   PORT_START_TAG("DSW1")
818818   PORT_DIPNAME( 0x01, 0x00, "DSW1 Unknown 0" )      PORT_DIPLOCATION("SW1:1")
819819   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
r1238r1239
930930   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_COCKTAIL
931931INPUT_PORTS_END
932932
933INPUT_PORTS_START( undoukai )
933static INPUT_PORTS_START( undoukai )
934934   PORT_START_TAG("DSW1")
935935   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
936936   PORT_DIPSETTING(    0x00, "4 (Hard)" )
src/mame/drivers/renegade.c
r1238r1239
566566
567567
568568
569INPUT_PORTS_START( renegade )
569static INPUT_PORTS_START( renegade )
570570   PORT_START   /* IN0 */
571571   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
572572   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )  PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/sg1000a.c
r1238r1239
200200 *
201201 *************************************/
202202
203INPUT_PORTS_START( chwrestl )
203static INPUT_PORTS_START( chwrestl )
204204   PORT_INCLUDE( sg1000 )
205205
206206   PORT_MODIFY("IN0")
r1238r1239
221221INPUT_PORTS_END
222222
223223
224INPUT_PORTS_START( chboxing )
224static INPUT_PORTS_START( chboxing )
225225   PORT_INCLUDE( sg1000 )
226226
227227   PORT_MODIFY("DSW")
r1238r1239
231231INPUT_PORTS_END
232232
233233
234INPUT_PORTS_START( dokidoki )
234static INPUT_PORTS_START( dokidoki )
235235   PORT_INCLUDE( sg1000 )
236236
237237   PORT_MODIFY("DSW")
src/mame/drivers/galaga.c
r1238r1239
10091009
10101010
10111011
1012INPUT_PORTS_START( bosco )
1012static INPUT_PORTS_START( bosco )
10131013   PORT_START_TAG("IN0")
10141014   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
10151015   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
r1238r1239
10821082   PORT_DIPSETTING(    0xc0, "5" )
10831083INPUT_PORTS_END
10841084
1085INPUT_PORTS_START( boscomd )
1085static INPUT_PORTS_START( boscomd )
10861086   PORT_INCLUDE( bosco )
10871087
10881088   PORT_MODIFY("DSWA")
r1238r1239
11121112INPUT_PORTS_END
11131113
11141114
1115INPUT_PORTS_START( galaga )
1115static INPUT_PORTS_START( galaga )
11161116   PORT_START_TAG("IN0")
11171117   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
11181118   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
r1238r1239
11851185   PORT_DIPSETTING(    0xc0, "5" )
11861186INPUT_PORTS_END
11871187
1188INPUT_PORTS_START( galagamw )
1188static INPUT_PORTS_START( galagamw )
11891189   PORT_INCLUDE( galaga )
11901190
11911191   PORT_MODIFY("DSWA")
r1238r1239
12151215INPUT_PORTS_END
12161216
12171217/* the same as galaga but with vertical movement */
1218INPUT_PORTS_START( gatsbee )
1218static INPUT_PORTS_START( gatsbee )
12191219   PORT_INCLUDE( galaga )
12201220
12211221   PORT_MODIFY("IN1")
r1238r1239
12301230INPUT_PORTS_END
12311231
12321232
1233INPUT_PORTS_START( xevious )
1233static INPUT_PORTS_START( xevious )
12341234   PORT_START_TAG("IN0")
12351235   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
12361236   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
r1238r1239
13051305INPUT_PORTS_END
13061306
13071307/* same as xevious but different "Coin B" Dip Switch and "Copyright" Dip Switch instead of "Freeze" */
1308INPUT_PORTS_START( xeviousa )
1308static INPUT_PORTS_START( xeviousa )
13091309   PORT_INCLUDE( xevious )
13101310
13111311   PORT_MODIFY("DSWB")
r1238r1239
13311331INPUT_PORTS_END
13321332
13331333/* same as xevious but "Copyright" Dip Switch instead of "Freeze" */
1334INPUT_PORTS_START( xeviousb )
1334static INPUT_PORTS_START( xeviousb )
13351335   PORT_INCLUDE( xevious )
13361336
13371337   PORT_MODIFY("DSWB")
r1238r1239
13571357INPUT_PORTS_END
13581358
13591359/* same as xevious but different "Coin B" Dip Switch and inverted "Freeze" Dip Switch */
1360INPUT_PORTS_START( sxevious )
1360static INPUT_PORTS_START( sxevious )
13611361   PORT_INCLUDE( xevious )
13621362
13631363   PORT_MODIFY("DSWB")
r1238r1239
13821382INPUT_PORTS_END
13831383
13841384
1385INPUT_PORTS_START( digdug )
1385static INPUT_PORTS_START( digdug )
13861386   PORT_START_TAG("IN0")
13871387   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
13881388   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
src/mame/drivers/panicr.c
r1238r1239
214214      cpunum_set_input_line_and_vector(cpu_getactivecpu(), 0, HOLD_LINE, 0xc4/4);
215215}
216216
217INPUT_PORTS_START( panicr )
217static INPUT_PORTS_START( panicr )
218218   PORT_START_TAG("IN0")
219219   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) //left
220220   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) //right
src/mame/drivers/istellar.c
r1238r1239
199199
200200
201201/* PORTS */
202INPUT_PORTS_START( istellar )
202static INPUT_PORTS_START( istellar )
203203   /* TEST MODE might display a 0 for a short and a 1 for an open circuit?  If so, everything below is inverted. */
204204   PORT_START_TAG("DSW1")
205205   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1")
src/mame/drivers/lasso.c
r1238r1239
291291
292292
293293
294INPUT_PORTS_START( lasso )
294static INPUT_PORTS_START( lasso )
295295   PORT_START_TAG("1804")
296296   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY
297297   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
356356   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START1  )
357357INPUT_PORTS_END
358358
359INPUT_PORTS_START( chameleo )
359static INPUT_PORTS_START( chameleo )
360360   PORT_START_TAG("1804")
361361   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY
362362   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
421421   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START1  )
422422INPUT_PORTS_END
423423
424INPUT_PORTS_START( wwjgtin )
424static INPUT_PORTS_START( wwjgtin )
425425   PORT_START_TAG("1804")
426426   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY
427427   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
487487   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START2  )
488488INPUT_PORTS_END
489489
490INPUT_PORTS_START( pinbo )
490static INPUT_PORTS_START( pinbo )
491491   PORT_START_TAG("1804")
492492   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
493493   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
src/mame/drivers/macs.c
r1238r1239
146146//  GFXDECODE_ENTRY( 0, 0, charlayout,      0, 16*4  )
147147GFXDECODE_END
148148
149INPUT_PORTS_START( macs )
149static INPUT_PORTS_START( macs )
150150   /*0*/
151151   PORT_START_TAG("DSW0")
152152   PORT_DIPNAME( 0x01, 0x01, "DSW0 - BIT 1" )
src/mame/drivers/nbmj8688.c
r1238r1239
550550
551551
552552
553INPUT_PORTS_START( mjsikaku )
553static INPUT_PORTS_START( mjsikaku )
554554   PORT_START   /* (0) DIPSW-A */
555555   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
556556   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
626626   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
627627INPUT_PORTS_END
628628
629INPUT_PORTS_START( mmsikaku )
629static INPUT_PORTS_START( mmsikaku )
630630#if 1
631631   PORT_START   /* (0) DIPSW-A */
632632   PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" )
r1238r1239
741741   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
742742INPUT_PORTS_END
743743
744INPUT_PORTS_START( otonano )
744static INPUT_PORTS_START( otonano )
745745   PORT_START   /* (0) DIPSW-A */
746746   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
747747   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
817817   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
818818INPUT_PORTS_END
819819
820INPUT_PORTS_START( mjcamera )
820static INPUT_PORTS_START( mjcamera )
821821   PORT_START   /* (0) DIPSW-A */
822822   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
823823   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
893893   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
894894INPUT_PORTS_END
895895
896INPUT_PORTS_START( kaguya )
896static INPUT_PORTS_START( kaguya )
897897   PORT_START   /* (0) DIPSW-A */
898898   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) )
899899   PORT_DIPSETTING(    0x03, DEF_STR( 1C_1C ) )
r1238r1239
967967   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
968968INPUT_PORTS_END
969969
970INPUT_PORTS_START( kaguya2 )
970static INPUT_PORTS_START( kaguya2 )
971971   PORT_START   /* (0) DIPSW-A */
972972   PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" )
973973   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
10441044   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
10451045INPUT_PORTS_END
10461046
1047INPUT_PORTS_START( kanatuen )
1047static INPUT_PORTS_START( kanatuen )
10481048   PORT_START   /* (0) DIPSW-A */
10491049   PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" )
10501050   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
11211121   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
11221122INPUT_PORTS_END
11231123
1124INPUT_PORTS_START( kyuhito )
1124static INPUT_PORTS_START( kyuhito )
11251125   PORT_START   /* (0) DIPSW-A */
11261126   PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" )
11271127   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
11981198   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
11991199INPUT_PORTS_END
12001200
1201INPUT_PORTS_START( idhimitu )
1201static INPUT_PORTS_START( idhimitu )
12021202   PORT_START   /* (0) DIPSW-A */
12031203   PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" )
12041204   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
12751275   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
12761276INPUT_PORTS_END
12771277
1278INPUT_PORTS_START( secolove )
1278static INPUT_PORTS_START( secolove )
12791279   PORT_START   /* (0) DIPSW-A */
12801280   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
12811281   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
13501350   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
13511351INPUT_PORTS_END
13521352
1353INPUT_PORTS_START( citylove )
1353static INPUT_PORTS_START( citylove )
13541354   PORT_START   /* (0) DIPSW-A */
13551355   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Difficulty ) )
13561356   PORT_DIPSETTING(    0x0f, "1 (Easy)" )
r1238r1239
14281428   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
14291429INPUT_PORTS_END
14301430
1431INPUT_PORTS_START( mcitylov )
1431static INPUT_PORTS_START( mcitylov )
14321432#if 1
14331433   PORT_START   /* (0) DIPSW-A */
14341434   PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" )
r1238r1239
15431543   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
15441544INPUT_PORTS_END
15451545
1546INPUT_PORTS_START( seiha )
1546static INPUT_PORTS_START( seiha )
15471547   PORT_START   /* (0) DIPSW-A */
15481548   PORT_DIPNAME( 0x07, 0x00, DEF_STR( Difficulty ) )
15491549   PORT_DIPSETTING(    0x07, "1 (Hard)" )
r1238r1239
16191619   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
16201620INPUT_PORTS_END
16211621
1622INPUT_PORTS_START( seiham )
1622static INPUT_PORTS_START( seiham )
16231623   PORT_START   /* (0) DIPSW-A */
16241624   PORT_DIPNAME( 0x07, 0x00, "Game Out" )
16251625   PORT_DIPSETTING(    0x07, "60% (Hard)" )
r1238r1239
16931693   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
16941694INPUT_PORTS_END
16951695
1696INPUT_PORTS_START( iemoto )
1696static INPUT_PORTS_START( iemoto )
16971697   PORT_START   /* (0) DIPSW-A */
16981698   PORT_DIPNAME( 0x07, 0x00, DEF_STR( Difficulty ) )
16991699   PORT_DIPSETTING(    0x07, "1 (Hard)" )
r1238r1239
17691769   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
17701770INPUT_PORTS_END
17711771
1772INPUT_PORTS_START( iemotom )
1772static INPUT_PORTS_START( iemotom )
17731773   PORT_START   /* (0) DIPSW-A */
17741774   PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" )
17751775   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
18451845   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
18461846INPUT_PORTS_END
18471847
1848INPUT_PORTS_START( ryuuha )
1848static INPUT_PORTS_START( ryuuha )
18491849   PORT_START   /* (0) DIPSW-A */
18501850   PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" )
18511851   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
19211921   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
19221922INPUT_PORTS_END
19231923
1924INPUT_PORTS_START( bijokkoy )
1924static INPUT_PORTS_START( bijokkoy )
19251925   PORT_START   /* (0) DIPSW-A */
19261926   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
19271927   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
19961996   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
19971997INPUT_PORTS_END
19981998
1999INPUT_PORTS_START( bijokkog )
1999static INPUT_PORTS_START( bijokkog )
20002000   PORT_START   /* (0) DIPSW-A */
20012001   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
20022002   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
20702070   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
20712071INPUT_PORTS_END
20722072
2073INPUT_PORTS_START( housemnq )
2073static INPUT_PORTS_START( housemnq )
20742074   PORT_START   /* (0) DIPSW-A */
20752075   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
20762076   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
21442144   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
21452145INPUT_PORTS_END
21462146
2147INPUT_PORTS_START( housemn2 )
2147static INPUT_PORTS_START( housemn2 )
21482148   PORT_START   /* (0) DIPSW-A */
21492149   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
21502150   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
22172217   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
22182218INPUT_PORTS_END
22192219
2220INPUT_PORTS_START( orangec )
2220static INPUT_PORTS_START( orangec )
22212221   PORT_START   /* (0) DIPSW-A */
22222222   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
22232223   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
22932293   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
22942294INPUT_PORTS_END
22952295
2296INPUT_PORTS_START( orangeci )
2296static INPUT_PORTS_START( orangeci )
22972297   PORT_START   /* (0) DIPSW-A */
22982298   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
22992299   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
23692369   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
23702370INPUT_PORTS_END
23712371
2372INPUT_PORTS_START( vipclub )
2372static INPUT_PORTS_START( vipclub )
23732373   PORT_START   /* (1) DIPSW-A */
23742374   PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" )
23752375   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
24452445   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
24462446INPUT_PORTS_END
24472447
2448INPUT_PORTS_START( livegal )
2448static INPUT_PORTS_START( livegal )
24492449   PORT_START   /* (0) DIPSW-A */
24502450   PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" )
24512451   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
25212521   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
25222522INPUT_PORTS_END
25232523
2524INPUT_PORTS_START( ojousan )
2524static INPUT_PORTS_START( ojousan )
25252525   PORT_START   /* (0) DIPSW-A */
25262526   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
25272527   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
25972597   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
25982598INPUT_PORTS_END
25992599
2600INPUT_PORTS_START( ojousanm )
2600static INPUT_PORTS_START( ojousanm )
26012601   PORT_START   /* (0) DIPSW-A */
26022602   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
26032603   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
26732673   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
26742674INPUT_PORTS_END
26752675
2676INPUT_PORTS_START( korinai )
2676static INPUT_PORTS_START( korinai )
26772677   PORT_START   /* (0) DIPSW-A */
26782678   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
26792679   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
27492749   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
27502750INPUT_PORTS_END
27512751
2752INPUT_PORTS_START( korinaim )
2752static INPUT_PORTS_START( korinaim )
27532753   PORT_START   /* (0) DIPSW-A */
27542754   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
27552755   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
28252825   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
28262826INPUT_PORTS_END
28272827
2828INPUT_PORTS_START( crystalg )
2828static INPUT_PORTS_START( crystalg )
28292829   PORT_START   /* (0) DIPSW-A */
28302830   PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" )
28312831   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
29012901   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
29022902INPUT_PORTS_END
29032903
2904INPUT_PORTS_START( crystal2 )
2904static INPUT_PORTS_START( crystal2 )
29052905   PORT_START   /* (0) DIPSW-A */
29062906   PORT_DIPNAME( 0x0f, 0x0d, DEF_STR( Difficulty ) )
29072907   PORT_DIPSETTING(    0x0d, "1 (Easy)" )
r1238r1239
29732973   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
29742974INPUT_PORTS_END
29752975
2976INPUT_PORTS_START( apparel )
2976static INPUT_PORTS_START( apparel )
29772977   PORT_START   /* (0) DIPSW-A */
29782978   PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" )
29792979   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
30493049   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
30503050INPUT_PORTS_END
30513051
3052INPUT_PORTS_START( nightlov )
3052static INPUT_PORTS_START( nightlov )
30533053   PORT_START   /* (0) DIPSW-A */
30543054   PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" )
30553055   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
src/mame/drivers/sbowling.c
r1238r1239
201201
202202
203203
204INPUT_PORTS_START( sbowling )
204static INPUT_PORTS_START( sbowling )
205205   PORT_START
206206   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_COIN1   )
207207   PORT_BIT( 0x20, IP_ACTIVE_HIGH,   IPT_TILT )
src/mame/drivers/psychic5.c
r1238r1239
419419ADDRESS_MAP_END
420420
421421
422INPUT_PORTS_START( psychic5 )
422static INPUT_PORTS_START( psychic5 )
423423    PORT_START_TAG("IN0")
424424    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
425425    PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/taito_h.c
r1238r1239
368368
369369***************************************************************************/
370370
371INPUT_PORTS_START( syvalion )
371static INPUT_PORTS_START( syvalion )
372372   /* 0x200000 (port 0) -> 0x102842.b (-$57be,A5) */
373373   PORT_START_TAG("DSWA")
374374   TAITO_MACHINE_COCKTAIL
r1238r1239
425425   PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(30) PORT_KEYDELTA(30) PORT_RESET PORT_REVERSE PORT_PLAYER(2)
426426INPUT_PORTS_END
427427
428INPUT_PORTS_START( recordbr )
428static INPUT_PORTS_START( recordbr )
429429   /* 0x200000 (port 0) -> 0x1022e6.b (-$5d1a,A5) */
430430   PORT_START_TAG("DSWA")
431431   TAITO_MACHINE_NO_COCKTAIL
r1238r1239
472472   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )                 /* IPT_BUTTON4 (PL2) in service mode */
473473INPUT_PORTS_END
474474
475INPUT_PORTS_START( dleague )
475static INPUT_PORTS_START( dleague )
476476   /* 0x200000 -> 0x100526.b ($526,A5) */
477477   PORT_START_TAG("DSWA")
478478   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Difficulty ) )            /* see notes */
src/mame/drivers/good.c
r1238r1239
3333#include "driver.h"
3434#include "sound/okim6295.h"
3535
36UINT16*unkkor_tileram2;
37
3836static tilemap *bg_tilemap;
3937static tilemap *fg_tilemap;
4038static UINT16 *bg_tilemapram;
r1238r1239
10199   AM_RANGE(0xff0000, 0xffefff) AM_RAM
102100ADDRESS_MAP_END
103101
104INPUT_PORTS_START( good )
102static INPUT_PORTS_START( good )
105103   PORT_START
106104   PORT_DIPNAME( 0x0001, 0x0001, "0" )
107105   PORT_DIPSETTING(  0x0001, DEF_STR( Off ) )
src/mame/drivers/othunder.c
r1238r1239
549549             INPUT PORTS, DIPs
550550***********************************************************/
551551
552INPUT_PORTS_START( othunder )
552static INPUT_PORTS_START( othunder )
553553   /* 0x090000 -> 0x08a000 */
554554   PORT_START_TAG("DSWA")
555555   PORT_DIPUNUSED( 0x01, IP_ACTIVE_LOW )
r1238r1239
628628   PORT_CONFSETTING(    0x00, DEF_STR( Low ) )
629629INPUT_PORTS_END
630630
631INPUT_PORTS_START( othundrj )
631static INPUT_PORTS_START( othundrj )
632632   PORT_INCLUDE( othunder )
633633
634634   PORT_MODIFY( "DSWA" )
635635   TAITO_COINAGE_JAPAN_OLD
636636INPUT_PORTS_END
637637
638INPUT_PORTS_START( othundu )
638static INPUT_PORTS_START( othundu )
639639   PORT_INCLUDE( othundrj )
640640
641641   PORT_MODIFY( "DSWB" )
src/mame/drivers/ginganin.c
r1238r1239
189189
190190/*  Input Ports:    [0] Controls    [1] DSWs */
191191
192INPUT_PORTS_START( ginganin )
192static INPUT_PORTS_START( ginganin )
193193
194194   PORT_START_TAG("IN0")   /* - Controls - Read from 70000.w */
195195   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
src/mame/drivers/tail2nos.c
r1238r1239
132132
133133
134134
135INPUT_PORTS_START( tail2nos )
135static INPUT_PORTS_START( tail2nos )
136136   PORT_START
137137   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN )
138138   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/m79amb.c
r1238r1239
106106ADDRESS_MAP_END
107107
108108
109INPUT_PORTS_START( m79amb )
109static INPUT_PORTS_START( m79amb )
110110   PORT_START      /* 8000 */
111111   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* dip switch */
112112   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )
src/mame/drivers/mrjong.c
r1238r1239
9999ADDRESS_MAP_END
100100
101101
102INPUT_PORTS_START( mrjong )
102static INPUT_PORTS_START( mrjong )
103103   PORT_START   /* IN0 */
104104   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_PLAYER(2)
105105   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(2)
src/mame/drivers/quasar.c
r1238r1239
6767VIDEO_UPDATE( quasar );
6868VIDEO_START( quasar );
6969
70extern UINT8 *bullet_ram;
70extern UINT8 *cvs_bullet_ram;
7171
72extern UINT8 *effectram;
73extern int          effectcontrol;
72extern UINT8 *quasar_effectram;
73extern int quasar_effectcontrol;
7474
7575static int page = 0;
7676static int IOpage = 8;
r1238r1239
149149   if (page == 1) colorram_w(offset,(data & 7));   // 3 bits of ram only - 3 x 2102
150150   if (page == 2)
151151   {
152      effectram[offset]   = data;
152      quasar_effectram[offset]   = data;
153153   }
154154   if (page == 3)
155155   {
156      effectcontrol = data;
156      quasar_effectcontrol = data;
157157   }
158158}
159159
r1238r1239
171171
172172WRITE8_HANDLER( quasar_bullet_w )
173173{
174    bullet_ram[offset] = (data ^ 0xff);
174   cvs_bullet_ram[offset] = (data ^ 0xff);
175175}
176176
177177static int Quasar_T1=0;
r1238r1239
216216
217217static ADDRESS_MAP_START( quasar, ADDRESS_SPACE_PROGRAM, 8 )
218218   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)
220220   AM_RANGE(0x1500, 0x15ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_2636_1_r, cvs_2636_1_w) AM_BASE(&s2636_1_ram)
221221   AM_RANGE(0x1600, 0x16ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_2636_2_r, cvs_2636_2_w) AM_BASE(&s2636_2_ram)
222222   AM_RANGE(0x1700, 0x17ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_2636_3_r, cvs_2636_3_w) AM_BASE(&s2636_3_ram)
r1238r1239
272272
273273************************************************************************/
274274
275INPUT_PORTS_START( quasar )
275static INPUT_PORTS_START( quasar )
276276   PORT_START   /* Controls 0 */
277277    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
278278    PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/meritm.c
r1238r1239
5050
5151
5252
53INPUT_PORTS_START( meritm )
53static INPUT_PORTS_START( meritm )
5454INPUT_PORTS_END
5555
5656
src/mame/drivers/slapshot.c
r1238r1239
361361             INPUT PORTS (DIPs in nvram)
362362***********************************************************/
363363
364INPUT_PORTS_START( slapshot )
364static INPUT_PORTS_START( slapshot )
365365   PORT_START_TAG("IN0")
366366   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
367367   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
416416   PORT_SERVICE_NO_TOGGLE(0x10, IP_ACTIVE_LOW)
417417INPUT_PORTS_END
418418
419INPUT_PORTS_START( opwolf3 )
419static INPUT_PORTS_START( opwolf3 )
420420   PORT_START_TAG("IN0")      /* IN0, all bogus */
421421   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
422422   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/ertictac.c
r1238r1239
199199   AM_RANGE(0x03800000, 0x03ffffff) AM_ROM AM_REGION(REGION_USER1, 0)
200200ADDRESS_MAP_END
201201
202INPUT_PORTS_START( ertictac )
202static INPUT_PORTS_START( ertictac )
203203   PORT_START_TAG("IN 0")
204204   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START2 )
205205   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 )
r1238r1239
269269   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK )
270270INPUT_PORTS_END
271271
272INPUT_PORTS_START( poizone )
272static INPUT_PORTS_START( poizone )
273273   PORT_START_TAG("IN 0")
274274   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START2 )
275275   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 )
src/mame/drivers/vsnes.c
r1238r1239
513513   PORT_BIT ( 0x40, IP_ACTIVE_HIGH, IPT_COIN4 ) PORT_IMPULSE(1) \
514514   PORT_BIT ( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) /* this bit masks irqs - dont change */ \
515515
516INPUT_PORTS_START( vsnes )
516static INPUT_PORTS_START( vsnes )
517517   VS_CONTROLS( IPT_START1, IPT_BUTTON3, IPT_START2, IPT_BUTTON3 ) PORT_PLAYER(1) PORT_PLAYER(2)
518518
519519   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
543543   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
544544INPUT_PORTS_END
545545
546INPUT_PORTS_START( topgun )
546static INPUT_PORTS_START( topgun )
547547   VS_CONTROLS( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN )
548548
549549   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
572572   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
573573INPUT_PORTS_END
574574
575INPUT_PORTS_START( platoon )
575static INPUT_PORTS_START( platoon )
576576   VS_CONTROLS( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN )
577577
578578   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
618618Lose Hole -1 -2
619619*/
620620
621INPUT_PORTS_START( golf )
621static INPUT_PORTS_START( golf )
622622   VS_CONTROLS_REVERSE( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN )
623623
624624   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
648648INPUT_PORTS_END
649649
650650/* Same as 'golf', but 4 start buttons */
651INPUT_PORTS_START( golf4s )
651static INPUT_PORTS_START( golf4s )
652652   VS_CONTROLS_REVERSE( IPT_START1, IPT_START3, IPT_START2, IPT_START4 )
653653
654654   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
677677   PORT_DIPSETTING(   0x80, DEF_STR( Hard ) )
678678INPUT_PORTS_END
679679
680INPUT_PORTS_START( vstennis )
680static INPUT_PORTS_START( vstennis )
681681   VS_DUAL_CONTROLS_L /* left side controls */
682682
683683   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
729729   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
730730INPUT_PORTS_END
731731
732INPUT_PORTS_START( wrecking )
732static INPUT_PORTS_START( wrecking )
733733   VS_DUAL_CONTROLS_L /* left side controls */
734734
735735   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
786786   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
787787INPUT_PORTS_END
788788
789INPUT_PORTS_START( balonfgt )
789static INPUT_PORTS_START( balonfgt )
790790   VS_DUAL_CONTROLS_L /* left side controls */
791791
792792   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
841841   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
842842INPUT_PORTS_END
843843
844INPUT_PORTS_START( vsmahjng )
844static INPUT_PORTS_START( vsmahjng )
845845   VS_DUAL_CONTROLS_L /* left side controls */
846846
847847   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
894894   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
895895INPUT_PORTS_END
896896
897INPUT_PORTS_START( vsbball )
897static INPUT_PORTS_START( vsbball )
898898   VS_DUAL_CONTROLS_L /* left side controls */
899899
900900   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
945945   PORT_DIPSETTING(   0xc0, "Very Strong" )
946946INPUT_PORTS_END
947947
948INPUT_PORTS_START( vsbballj )
948static INPUT_PORTS_START( vsbballj )
949949   VS_DUAL_CONTROLS_L /* left side controls */
950950
951951   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
996996   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
997997INPUT_PORTS_END
998998
999INPUT_PORTS_START( iceclmrj )
999static INPUT_PORTS_START( iceclmrj )
10001000   VS_DUAL_CONTROLS_REVERSE_L /* left side controls */
10011001
10021002   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
10521052   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
10531053INPUT_PORTS_END
10541054
1055INPUT_PORTS_START( drmario )
1055static INPUT_PORTS_START( drmario )
10561056   VS_CONTROLS_REVERSE( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN )
10571057
10581058   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
10791079   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
10801080INPUT_PORTS_END
10811081
1082INPUT_PORTS_START( rbibb )
1082static INPUT_PORTS_START( rbibb )
10831083   VS_CONTROLS_REVERSE( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN )
10841084
10851085   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
11051105   /* 0x60,0xa0,0xe0:again "Wrong 3" */
11061106INPUT_PORTS_END
11071107
1108INPUT_PORTS_START( btlecity )
1108static INPUT_PORTS_START( btlecity )
11091109   VS_CONTROLS_REVERSE( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN )
11101110
11111111   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
11341134   PORT_DIPSETTING(   0xc0, "Wrong 3" )
11351135INPUT_PORTS_END
11361136
1137INPUT_PORTS_START( cluclu )
1137static INPUT_PORTS_START( cluclu )
11381138   VS_CONTROLS_REVERSE( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN )
11391139
11401140   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
11631163   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
11641164INPUT_PORTS_END
11651165
1166INPUT_PORTS_START( cstlevna )
1166static INPUT_PORTS_START( cstlevna )
11671167   VS_CONTROLS( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN )
11681168
11691169   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
11921192   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
11931193INPUT_PORTS_END
11941194
1195INPUT_PORTS_START( iceclimb )
1195static INPUT_PORTS_START( iceclimb )
11961196   VS_CONTROLS_REVERSE( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN )
11971197
11981198   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
12221222INPUT_PORTS_END
12231223
12241224/* Same as 'iceclimb', but different buttons mapping and input protection */
1225INPUT_PORTS_START( iceclmbj )
1225static INPUT_PORTS_START( iceclmbj )
12261226   PORT_START   /* IN0 */
12271227   PORT_BIT ( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2)   /* BUTTON A on a nes */
12281228   PORT_BIT ( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2)   /* BUTTON B on a nes */
r1238r1239
12791279   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
12801280INPUT_PORTS_END
12811281
1282INPUT_PORTS_START( excitebk )
1282static INPUT_PORTS_START( excitebk )
12831283   VS_CONTROLS( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN )
12841284
12851285   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
13081308   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
13091309INPUT_PORTS_END
13101310
1311INPUT_PORTS_START( jajamaru )
1311static INPUT_PORTS_START( jajamaru )
13121312   PORT_START   /* IN0 */
13131313   PORT_BIT ( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2)   /* BUTTON A on a nes */
13141314   PORT_BIT ( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2)   /* BUTTON B on a nes */
r1238r1239
13641364   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
13651365INPUT_PORTS_END
13661366
1367INPUT_PORTS_START( machridr )
1367static INPUT_PORTS_START( machridr )
13681368   VS_CONTROLS( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN )
13691369
13701370   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
13931393   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
13941394INPUT_PORTS_END
13951395
1396INPUT_PORTS_START( machridj )
1396static INPUT_PORTS_START( machridj )
13971397   PORT_START   /* IN0 */
13981398   PORT_BIT ( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1)   /* BUTTON A on a nes */
13991399   PORT_BIT ( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1)   /* BUTTON B on a nes */
r1238r1239
14481448   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
14491449INPUT_PORTS_END
14501450
1451INPUT_PORTS_START( suprmrio )
1451static INPUT_PORTS_START( suprmrio )
14521452   VS_CONTROLS( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN )
14531453
14541454   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
14771477   PORT_DIPSETTING(   0x00, "4" )
14781478INPUT_PORTS_END
14791479
1480INPUT_PORTS_START( duckhunt )
1480static INPUT_PORTS_START( duckhunt )
14811481   VS_ZAPPER
14821482
14831483   PORT_START /* IN3 */
r1238r1239
15111511   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(50) PORT_KEYDELTA(30)
15121512INPUT_PORTS_END
15131513
1514INPUT_PORTS_START( hogalley )
1514static INPUT_PORTS_START( hogalley )
15151515   VS_ZAPPER
15161516
15171517   PORT_START /* IN3 */
r1238r1239
15451545   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(50) PORT_KEYDELTA(30)
15461546INPUT_PORTS_END
15471547
1548INPUT_PORTS_START( vsgshoe )
1548static INPUT_PORTS_START( vsgshoe )
15491549   VS_ZAPPER
15501550
15511551   PORT_START /* IN3 */
r1238r1239
15801580   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(50) PORT_KEYDELTA(30)
15811581INPUT_PORTS_END
15821582
1583INPUT_PORTS_START( vsfdf )
1583static INPUT_PORTS_START( vsfdf )
15841584   VS_ZAPPER
15851585
15861586   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
16161616   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(50) PORT_KEYDELTA(30)
16171617INPUT_PORTS_END
16181618
1619INPUT_PORTS_START( vstetris )
1619static INPUT_PORTS_START( vstetris )
16201620   VS_CONTROLS_REVERSE( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN )
16211621
16221622   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
16431643   /* 0x60,0xa0,0xe0:again "Wrong 3" */
16441644INPUT_PORTS_END
16451645
1646INPUT_PORTS_START( vsskykid )
1646static INPUT_PORTS_START( vsskykid )
16471647   VS_CONTROLS_REVERSE( IPT_START1, IPT_START2, IPT_UNKNOWN, IPT_UNKNOWN )
16481648
16491649   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
16691669   /* 0x60,0xa0,0xe0:again DEF_STR( Normal ) */
16701670INPUT_PORTS_END
16711671
1672INPUT_PORTS_START( vspinbal )
1672static INPUT_PORTS_START( vspinbal )
16731673   VS_CONTROLS( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN )
16741674
16751675   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
16991699INPUT_PORTS_END
17001700
17011701/* Same as 'vspinbal', but different buttons mapping */
1702INPUT_PORTS_START( vspinblj )
1702static INPUT_PORTS_START( vspinblj )
17031703   PORT_START   /* IN0 */
17041704   PORT_BIT ( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1)      /* Right flipper */
17051705   PORT_BIT ( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2)      /* Right flipper */
r1238r1239
17561756   PORT_DIPSETTING(   0x80, "Fast" )
17571757INPUT_PORTS_END
17581758
1759INPUT_PORTS_START( goonies )
1759static INPUT_PORTS_START( goonies )
17601760   VS_CONTROLS( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN )
17611761
17621762   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
17851785   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
17861786INPUT_PORTS_END
17871787
1788INPUT_PORTS_START( vssoccer )
1788static INPUT_PORTS_START( vssoccer )
17891789   VS_CONTROLS_REVERSE( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN )
17901790
17911791   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
18131813   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
18141814INPUT_PORTS_END
18151815
1816INPUT_PORTS_START( vsgradus )
1816static INPUT_PORTS_START( vsgradus )
18171817   VS_CONTROLS_REVERSE( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN )
18181818
18191819   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
18421842   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
18431843INPUT_PORTS_END
18441844
1845INPUT_PORTS_START( vsslalom )
1845static INPUT_PORTS_START( vsslalom )
18461846   VS_CONTROLS( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN )
18471847
18481848   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
18711871   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
18721872INPUT_PORTS_END
18731873
1874INPUT_PORTS_START( starlstr )
1874static INPUT_PORTS_START( starlstr )
18751875   VS_DUAL_CONTROLS_L /* left side controls */
18761876
18771877   PORT_START
r1238r1239
19001900   VS_DUAL_CONTROLS_R /* Right Side Controls */
19011901INPUT_PORTS_END
19021902
1903INPUT_PORTS_START( tkoboxng )
1903static INPUT_PORTS_START( tkoboxng )
19041904   VS_CONTROLS( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN )
19051905
19061906   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
19291929   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
19301930INPUT_PORTS_END
19311931
1932INPUT_PORTS_START( bnglngby )
1932static INPUT_PORTS_START( bnglngby )
19331933   PORT_START   /* IN0 */
19341934   PORT_BIT ( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2)   /* BUTTON A on a nes */
19351935   PORT_BIT ( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2)   /* BUTTON B on a nes */
r1238r1239
19841984   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
19851985INPUT_PORTS_END
19861986
1987INPUT_PORTS_START( mightybj )
1987static INPUT_PORTS_START( mightybj )
19881988   VS_CONTROLS( IPT_START1, IPT_UNKNOWN, IPT_START2, IPT_UNKNOWN )
19891989
19901990   PORT_START /* DSW0 - bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 */
r1238r1239
20132013   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
20142014INPUT_PORTS_END
20152015
2016INPUT_PORTS_START( supxevs )
2016static INPUT_PORTS_START( supxevs )
20172017   PORT_START   /* IN0 */
20182018   PORT_BIT ( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1)   /* BUTTON A on a nes */
20192019   PORT_BIT ( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1)   /* BUTTON B on a nes */
src/mame/drivers/xyonix.c
r1238r1239
178178
179179/* Inputs Ports **************************************************************/
180180
181INPUT_PORTS_START( xyonix )
181static INPUT_PORTS_START( xyonix )
182182   PORT_START
183183   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
184184   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/victory.c
r1238r1239
256256 *
257257 *************************************/
258258
259INPUT_PORTS_START( victory )
259static INPUT_PORTS_START( victory )
260260   PORT_START   /* $00-$03 = SW2 */
261261   PORT_DIPNAME( 0x07, 0x00, "????" )
262262   PORT_DIPSETTING(    0x00, "0" )
src/mame/drivers/1943.c
r1238r1239
9292
9393/* Input Ports */
9494
95INPUT_PORTS_START( 1943 )
95static INPUT_PORTS_START( 1943 )
9696   PORT_START_TAG("IN0")
9797   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
9898   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/cninja.c
r1238r1239
377377
378378/**********************************************************************************/
379379
380INPUT_PORTS_START( edrandy )
380static INPUT_PORTS_START( edrandy )
381381   PORT_START
382382   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
383383   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
451451   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
452452INPUT_PORTS_END
453453
454INPUT_PORTS_START( cninja )
454static INPUT_PORTS_START( cninja )
455455   PORT_START
456456   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
457457   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
525525   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
526526INPUT_PORTS_END
527527
528INPUT_PORTS_START( cninjau )
528static INPUT_PORTS_START( cninjau )
529529   PORT_START
530530   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
531531   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
599599   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
600600INPUT_PORTS_END
601601
602INPUT_PORTS_START( robocop2 )
602static INPUT_PORTS_START( robocop2 )
603603   PORT_START
604604   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
605605   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
673673   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
674674INPUT_PORTS_END
675675
676INPUT_PORTS_START( mutantf )
676static INPUT_PORTS_START( mutantf )
677677   PORT_START
678678   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
679679   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/pacland.c
r1238r1239
288288
289289
290290
291INPUT_PORTS_START( pacland )
291static INPUT_PORTS_START( pacland )
292292   PORT_START      /* DSWA */
293293   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
294294   PORT_DIPNAME( 0x60, 0x60, DEF_STR( Lives ) )
src/mame/drivers/psikyo4.c
r1238r1239
551551   PORT_BIT(  0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) \
552552   PORT_BIT(  0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
553553
554INPUT_PORTS_START( hotgmck )
554static INPUT_PORTS_START( hotgmck )
555555   PORT_START_TAG("IN0")   /* fake player 1 controls 1st bank */
556556   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_A )
557557   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_E )
r1238r1239
652652   UNUSED_PORT
653653INPUT_PORTS_END
654654
655INPUT_PORTS_START( loderndf )
655static INPUT_PORTS_START( loderndf )
656656   PORT_START_TAG("IN0")   /* player 1 controls */
657657   PORT_BIT(  0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
658658   PORT_BIT(  0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
r1238r1239
727727INPUT_PORTS_END
728728
729729/* unused inputs also act as duplicate buttons */
730INPUT_PORTS_START( hotdebut )
730static INPUT_PORTS_START( hotdebut )
731731   PORT_START_TAG("IN0")   /* player 1 controls */
732732   PORT_BIT(  0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
733733   PORT_BIT(  0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
src/mame/drivers/wardner.c
r1238r1239
331331
332332
333333
334INPUT_PORTS_START( wardner )
334static INPUT_PORTS_START( wardner )
335335   WARDNER_SYSTEM_INPUTS
336336   WARDNER_PLAYER_INPUT( 1 )
337337   WARDNER_PLAYER_INPUT( 2 )
r1238r1239
363363   WARDNER_DSW_B
364364INPUT_PORTS_END
365365
366INPUT_PORTS_START( pyros )
366static INPUT_PORTS_START( pyros )
367367   WARDNER_SYSTEM_INPUTS
368368   WARDNER_PLAYER_INPUT( 1 )
369369   WARDNER_PLAYER_INPUT( 2 )
r1238r1239
393393   PORT_DIPSETTING(   0x80, DEF_STR( On ) )
394394INPUT_PORTS_END
395395
396INPUT_PORTS_START( wardnerj )
396static INPUT_PORTS_START( wardnerj )
397397   WARDNER_SYSTEM_INPUTS
398398   WARDNER_PLAYER_INPUT( 1 )
399399   WARDNER_PLAYER_INPUT( 2 )
src/mame/drivers/jcross.c
r1238r1239
128128ADDRESS_MAP_END
129129
130130
131INPUT_PORTS_START( jcross )
131static INPUT_PORTS_START( jcross )
132132   PORT_START_TAG("IN0")
133133   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
134134   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
src/mame/drivers/nss.c
r1238r1239
326326   AM_RANGE(0xffc0, 0xffff) AM_READ(spc_ipl_r)
327327ADDRESS_MAP_END
328328
329INPUT_PORTS_START( snes )
329static INPUT_PORTS_START( snes )
330330   PORT_START  /* IN 0 : Joypad 1 - L */
331331   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("P1 Button A") PORT_PLAYER(1)
332332   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("P1 Button X") PORT_PLAYER(1)
src/mame/drivers/rollrace.c
r1238r1239
2424
2525READ8_HANDLER( rollrace_bkgpen_r );
2626
27READ8_HANDLER( ra_fake_d800_r )
27static READ8_HANDLER( ra_fake_d800_r )
2828{
2929   return 0x51;
3030}
3131
32WRITE8_HANDLER( ra_fake_d800_w )
32static WRITE8_HANDLER( ra_fake_d800_w )
3333{
3434/*  logerror("d900: %02X\n",data);*/
3535}
r1238r1239
9191ADDRESS_MAP_END
9292
9393
94INPUT_PORTS_START( rollrace )
94static INPUT_PORTS_START( rollrace )
9595   PORT_START
9696   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
9797   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
src/mame/drivers/mirage.c
r1238r1239
205205
206206
207207
208INPUT_PORTS_START( mirage )
208static INPUT_PORTS_START( mirage )
209209   PORT_START_TAG("SYSTEM_IN")
210210   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
211211   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/missile.c
r1238r1239
700700 *
701701 *************************************/
702702
703INPUT_PORTS_START( missile )
703static INPUT_PORTS_START( missile )
704704   PORT_START   /* IN0 */
705705   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_COCKTAIL
706706   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL
r1238r1239
782782INPUT_PORTS_END
783783
784784
785INPUT_PORTS_START( suprmatk )
785static INPUT_PORTS_START( suprmatk )
786786   PORT_START   /* IN0 */
787787   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_COCKTAIL
788788   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL
src/mame/drivers/ddrible.c
r1238r1239
180180   AM_RANGE(0x8000, 0xffff) AM_WRITE(MWA8_ROM)                     /* ROM */
181181ADDRESS_MAP_END
182182
183INPUT_PORTS_START( ddribble )
183static INPUT_PORTS_START( ddribble )
184184   PORT_START   /* PLAYER 1 INPUTS */
185185   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
186186   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
src/mame/drivers/popper.c
r1238r1239
206206   AM_RANGE(0xd800, 0xdfff) AM_WRITE(popper_sharedram_w)
207207ADDRESS_MAP_END
208208
209INPUT_PORTS_START( popper )
209static INPUT_PORTS_START( popper )
210210   PORT_START_TAG("IN0")
211211   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 )
212212   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 )
src/mame/drivers/ladyfrog.c
r1238r1239
199199ADDRESS_MAP_END
200200
201201
202INPUT_PORTS_START( ladyfrog )
202static INPUT_PORTS_START( ladyfrog )
203203   PORT_START
204204   PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) )
205205   PORT_DIPSETTING(    0x00, "4" )
src/mame/drivers/go2000.c
r1238r1239
4545ADDRESS_MAP_END
4646
4747
48INPUT_PORTS_START( go2000 )
48static INPUT_PORTS_START( go2000 )
4949   PORT_START   /* 16bit */
5050   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) // continue
5151   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START1 )
src/mame/drivers/djboy.c
r1238r1239
186186static UINT8 prot_param[8];
187187static int coin;
188188static int complete;
189int lives[2];
189static int lives[2];
190190
191enum
191static enum
192192{
193193   eDJBOY_ATTRACT_HIGHSCORE,
194194   eDJBOY_ATTRACT_TITLE,
r1238r1239
960960   ROM_LOAD( "bs-204.5j", 0x000000, 0x40000, CRC(510244f0) SHA1(afb502d46d268ad9cd209ae1da72c50e4e785626) )
961961ROM_END
962962
963INPUT_PORTS_START( djboy )
963static INPUT_PORTS_START( djboy )
964964   PORT_START
965965   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
966966   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/sidearms.c
r1238r1239
240240ADDRESS_MAP_END
241241
242242
243INPUT_PORTS_START( sidearms )
243static INPUT_PORTS_START( sidearms )
244244   PORT_START_TAG("IN0")
245245   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
246246   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
327327   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK )     /* not sure, but likely */
328328INPUT_PORTS_END
329329
330INPUT_PORTS_START( turtship )
330static INPUT_PORTS_START( turtship )
331331   PORT_START_TAG("IN0")
332332   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
333333   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
408408   /* 0xc0 1 Coin/1 Credit */
409409INPUT_PORTS_END
410410
411INPUT_PORTS_START( dyger )
411static INPUT_PORTS_START( dyger )
412412   PORT_START_TAG("IN0")
413413   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
414414   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* seems to be 1-player only */
r1238r1239
482482   /* 0xc0 1 Coin/1 Credit */
483483INPUT_PORTS_END
484484
485INPUT_PORTS_START( whizz )
485static INPUT_PORTS_START( whizz )
486486   PORT_START_TAG("DSW0")   /* 8-bit */
487487   PORT_DIPNAME( 0x07, 0x04, DEF_STR( Difficulty ) )
488488   PORT_DIPSETTING(    0x07, "0 (Easiest)" )
src/mame/drivers/taito_x.c
r1238r1239
604604
605605/**************************************************************************/
606606
607INPUT_PORTS_START( taitox_generic )
607static INPUT_PORTS_START( taitox_generic )
608608   /* The Dip Switches will be filled for each game */
609609   PORT_START_TAG("DSWA")
610610   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
r1238r1239
675675   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
676676INPUT_PORTS_END
677677
678INPUT_PORTS_START( superman )
678static INPUT_PORTS_START( superman )
679679   PORT_INCLUDE( taitox_generic )
680680
681681   /* 0x500000 (low) and 0x500002 (high) -> 0xf01c4a ($1c4a,A5) */
r1238r1239
703703   TAITO_JOY_UDLR_2_BUTTONS_START( 2 )
704704INPUT_PORTS_END
705705
706INPUT_PORTS_START( suprmanj )
706static INPUT_PORTS_START( suprmanj )
707707   PORT_INCLUDE( superman )
708708
709709   PORT_MODIFY("DSWA")
710710   TAITO_COINAGE_JAPAN_OLD_LOC(SWA)
711711INPUT_PORTS_END
712712
713INPUT_PORTS_START( twinhawk )
713static INPUT_PORTS_START( twinhawk )
714714   PORT_INCLUDE( taitox_generic )
715715
716716   /* 0x500000 (low) and 0x500002 (high) -> 0xf001b8 */
r1238r1239
743743   TAITO_JOY_UDLR_2_BUTTONS_START( 2 )
744744INPUT_PORTS_END
745745
746INPUT_PORTS_START( twinhwku )
746static INPUT_PORTS_START( twinhwku )
747747   PORT_INCLUDE( twinhawk )
748748
749749   PORT_MODIFY("DSWA")
r1238r1239
754754   PORT_DIPSETTING(    0xc0, DEF_STR( 1C_1C ) )
755755INPUT_PORTS_END
756756
757INPUT_PORTS_START( daisenpu )
757static INPUT_PORTS_START( daisenpu )
758758   PORT_INCLUDE( twinhawk )
759759
760760   /* 0x500000 (low) and 0x500002 (high) -> 0xf001a4 */
r1238r1239
771771   PORT_DIPSETTING(    0x00, DEF_STR( None ) )
772772INPUT_PORTS_END
773773
774INPUT_PORTS_START( gigandes )
774static INPUT_PORTS_START( gigandes )
775775   PORT_INCLUDE( taitox_generic )
776776
777777   /* 0x500000 (low) and 0x500002 (high) -> 0xf00a3c */
r1238r1239
829829   TAITO_JOY_UDLR_2_BUTTONS_START( 2 )
830830INPUT_PORTS_END
831831
832INPUT_PORTS_START( kyustrkr )
832static INPUT_PORTS_START( kyustrkr )
833833   PORT_INCLUDE( taitox_generic )
834834
835835   /* 0x500000 (low) and 0x500002 (high) -> 0xf028fe */
r1238r1239
874874   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
875875INPUT_PORTS_END
876876
877INPUT_PORTS_START( ballbros )
877static INPUT_PORTS_START( ballbros )
878878   PORT_INCLUDE( taitox_generic )
879879
880880   /* 0x500000 (low) and 0x500002 (high) -> 0xf028fe */
src/mame/drivers/jack.c
r1238r1239
256256   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL\
257257   PORT_BIT( 0xfc, IP_ACTIVE_HIGH, IPT_UNUSED )
258258
259INPUT_PORTS_START( jack )
259static INPUT_PORTS_START( jack )
260260   PORT_START_TAG("DSW1")
261261   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_B ) )
262262   PORT_DIPSETTING(    0x01, DEF_STR( 2C_1C ) )
r1238r1239
273273INPUT_PORTS_END
274274
275275/* Same as 'jack', but different coinage */
276INPUT_PORTS_START( jack2 )
276static INPUT_PORTS_START( jack2 )
277277   PORT_START_TAG("DSW1")
278278   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_B ) )
279279   PORT_DIPSETTING(    0x03, DEF_STR( 4C_3C ) )
r1238r1239
290290INPUT_PORTS_END
291291
292292/* Same as 'jack', but another different coinage */
293INPUT_PORTS_START( jack3 )
293static INPUT_PORTS_START( jack3 )
294294   PORT_START      /* DSW1 */
295295   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_B ) )
296296   PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
r1238r1239
307307INPUT_PORTS_END
308308
309309/* Same as 'jack', but different "Bullets per Bean Collected" and "Difficulty" Dip Switches */
310INPUT_PORTS_START( treahunt )
310static INPUT_PORTS_START( treahunt )
311311   PORT_START_TAG("DSW1")
312312   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_B ) )
313313   PORT_DIPSETTING(    0x01, DEF_STR( 2C_1C ) )
r1238r1239
334334COMMON_REMAINDER2
335335INPUT_PORTS_END
336336
337INPUT_PORTS_START( zzyzzyxx )
337static INPUT_PORTS_START( zzyzzyxx )
338338   PORT_START_TAG("DSW1")
339339   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) )
340340   PORT_DIPSETTING(    0x01, DEF_STR( 2C_1C ) )
r1238r1239
406406   PORT_BIT( 0xfe, IP_ACTIVE_HIGH, IPT_UNUSED )
407407INPUT_PORTS_END
408408
409INPUT_PORTS_START( freeze )
409static INPUT_PORTS_START( freeze )
410410   PORT_START_TAG("DSW1")
411411   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Flip_Screen ) )
412412   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
r1238r1239
474474   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
475475INPUT_PORTS_END
476476
477INPUT_PORTS_START( sucasino )
477static INPUT_PORTS_START( sucasino )
478478   PORT_START_TAG("DSW1")
479479   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) )
480480   PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
r1238r1239
525525   PORT_BIT( 0xfe, IP_ACTIVE_HIGH, IPT_UNUSED )
526526INPUT_PORTS_END
527527
528INPUT_PORTS_START( tripool )
528static INPUT_PORTS_START( tripool )
529529   PORT_START_TAG("DSW1")
530530   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) )
531531   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
609609   PORT_BIT( 0xfc, IP_ACTIVE_HIGH, IPT_UNUSED )
610610INPUT_PORTS_END
611611
612INPUT_PORTS_START( joinem )
612static INPUT_PORTS_START( joinem )
613613   PORT_START
614614   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) )
615615   PORT_DIPSETTING(    0x01, DEF_STR( 2C_1C ) )
r1238r1239
683683   PORT_SERVICE( 0x80, IP_ACTIVE_HIGH )
684684INPUT_PORTS_END
685685
686INPUT_PORTS_START( loverboy )
686static INPUT_PORTS_START( loverboy )
687687   PORT_START
688688   PORT_DIPNAME( 0x0f, 0x00, DEF_STR( Coin_A ) )
689689   PORT_DIPSETTING(    0x0c, DEF_STR( 4C_1C ) )
r1238r1239
772772   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
773773INPUT_PORTS_END
774774
775INPUT_PORTS_START( striv )
775static INPUT_PORTS_START( striv )
776776   PORT_START_TAG("DSW1")
777777   PORT_DIPNAME( 0x02, 0x00, "Monitor" )
778778   PORT_DIPSETTING(    0x02, "Horizontal" )
src/mame/drivers/tumblep.c
r1238r1239
171171
172172/******************************************************************************/
173173
174INPUT_PORTS_START( tumblep )
174static INPUT_PORTS_START( tumblep )
175175   PORT_START   /* Player 1 controls */
176176   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
177177   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/dogfgt.c
r1238r1239
115115
116116
117117
118INPUT_PORTS_START( dogfgt )
118static INPUT_PORTS_START( dogfgt )
119119   PORT_START   /* IN0 */
120120   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
121121   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
src/mame/drivers/dietgo.c
r1238r1239
7474
7575
7676
77INPUT_PORTS_START( dietgo )
77static INPUT_PORTS_START( dietgo )
7878   PORT_START   /* Verified as 4 bit input port only */
7979   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
8080   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/taitosj.c
r1238r1239
588588
589589
590590
591INPUT_PORTS_START( spaceskr )
591static INPUT_PORTS_START( spaceskr )
592592COMMON_IN0
593593COMMON_IN1
594594COMMON_IN2
r1238r1239
651651   PORT_DIPSETTING(    0x00, "A only" )
652652INPUT_PORTS_END
653653
654INPUT_PORTS_START( spacecr )
654static INPUT_PORTS_START( spacecr )
655655   PORT_START_TAG("IN0")
656656   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY
657657   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY
r1238r1239
734734   PORT_DIPSETTING(    0x00, "A only" )
735735INPUT_PORTS_END
736736
737INPUT_PORTS_START( junglek )
737static INPUT_PORTS_START( junglek )
738738   PORT_START_TAG("IN0")
739739   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
740740   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
r1238r1239
813813   PORT_DIPSETTING(    0x00, "A only" )
814814INPUT_PORTS_END
815815
816INPUT_PORTS_START( piratpet )
816static INPUT_PORTS_START( piratpet )
817817COMMON_IN0
818818COMMON_IN1 //Button 2 skips levels when Debug mode is on
819819COMMON_IN2
r1238r1239
874874   PORT_DIPSETTING(    0x00, "A only" )
875875INPUT_PORTS_END
876876
877INPUT_PORTS_START( alpine )
877static INPUT_PORTS_START( alpine )
878878   PORT_START_TAG("IN0")
879879   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL
880880   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL
r1238r1239
959959   PORT_DIPSETTING(    0x00, "A only" )
960960INPUT_PORTS_END
961961
962INPUT_PORTS_START( alpinea )
962static INPUT_PORTS_START( alpinea )
963963   PORT_START_TAG("IN0")
964964   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL
965965   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL
r1238r1239
10421042   PORT_DIPSETTING(    0x00, "A only" )
10431043INPUT_PORTS_END
10441044
1045INPUT_PORTS_START( timetunl )
1045static INPUT_PORTS_START( timetunl )
10461046   PORT_START_TAG("IN0")
10471047   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
10481048   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
11251125   PORT_DIPSETTING(    0x00, "A only" )
11261126INPUT_PORTS_END
11271127
1128INPUT_PORTS_START( wwestern )
1128static INPUT_PORTS_START( wwestern )
11291129WWEST_INPUT1
11301130
11311131   PORT_START_TAG("IN2")
r1238r1239
11901190   PORT_DIPSETTING(    0x00, "A only" )
11911191INPUT_PORTS_END
11921192
1193INPUT_PORTS_START( frontlin )
1193static INPUT_PORTS_START( frontlin )
11941194WWEST_INPUT1
11951195
11961196   PORT_START_TAG("IN2")
r1238r1239
12571257   PORT_DIPSETTING(    0x00, "A only" )
12581258INPUT_PORTS_END
12591259
1260INPUT_PORTS_START( elevator )
1260static INPUT_PORTS_START( elevator )
12611261COMMON_IN0
12621262COMMON_IN1
12631263COMMON_IN2
r1238r1239
13201320   PORT_DIPSETTING(    0x00, "A only" )
13211321INPUT_PORTS_END
13221322
1323INPUT_PORTS_START( tinstar )
1323static INPUT_PORTS_START( tinstar )
13241324WWEST_INPUT1
13251325
13261326   PORT_START_TAG("IN2")
r1238r1239
14041404   PORT_DIPSETTING(    0x00, "A only" )
14051405INPUT_PORTS_END
14061406
1407INPUT_PORTS_START( waterski )
1407static INPUT_PORTS_START( waterski )
14081408   PORT_START_TAG("IN0")
14091409   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY
14101410   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY
r1238r1239
14871487   PORT_DIPSETTING(    0x00, "A only" )
14881488INPUT_PORTS_END
14891489
1490INPUT_PORTS_START( bioatack )
1490static INPUT_PORTS_START( bioatack )
14911491   PORT_START_TAG("IN0")
14921492   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
14931493   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
r1238r1239
15751575   PORT_DIPSETTING(    0x00, "A only" )
15761576INPUT_PORTS_END
15771577
1578INPUT_PORTS_START( sfposeid )
1578static INPUT_PORTS_START( sfposeid )
15791579COMMON_IN0
15801580COMMON_IN1
15811581COMMON_IN2
r1238r1239
16401640   PORT_DIPSETTING(    0x00, "A only" )
16411641INPUT_PORTS_END
16421642
1643INPUT_PORTS_START( hwrace )
1643static INPUT_PORTS_START( hwrace )
16441644COMMON_IN0
16451645COMMON_IN1
16461646COMMON_IN2
r1238r1239
17031703   PORT_DIPSETTING(    0x00, "A only" )
17041704INPUT_PORTS_END
17051705
1706INPUT_PORTS_START( kikstart )
1706static INPUT_PORTS_START( kikstart )
17071707   PORT_START_TAG("IN0")
17081708   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY
17091709   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY
src/mame/drivers/vigilant.c
r1238r1239
198198ADDRESS_MAP_END
199199
200200
201INPUT_PORTS_START( vigilant )
201static INPUT_PORTS_START( vigilant )
202202   PORT_START_TAG("IN0")
203203   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_START1 )
204204   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
286286   PORT_DIPSETTING(   0x00, DEF_STR( On ) )
287287INPUT_PORTS_END
288288
289INPUT_PORTS_START( kikcubic )
289static INPUT_PORTS_START( kikcubic )
290290   PORT_START_TAG("IN0")
291291   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY
292292   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
373373   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
374374INPUT_PORTS_END
375375
376INPUT_PORTS_START( buccanrs )
376static INPUT_PORTS_START( buccanrs )
377377   PORT_START_TAG("IN0")
378378   PORT_SERVICE( 0x2f, IP_ACTIVE_LOW ) // any of these bits while booting will enable service mode
379379   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 )
r1238r1239
453453   PORT_DIPSETTING(    0x00, DEF_STR( Yes ) )
454454INPUT_PORTS_END
455455
456INPUT_PORTS_START( buccanra )
456static INPUT_PORTS_START( buccanra )
457457   PORT_INCLUDE( buccanrs )
458458
459459   PORT_MODIFY("IN0") /* this port is reversed on this set.. */
src/mame/drivers/kingobox.c
r1238r1239
241241   AM_RANGE(0x03, 0x03) AM_WRITE(AY8910_control_port_0_w)
242242ADDRESS_MAP_END
243243
244INPUT_PORTS_START( kingofb )
244static INPUT_PORTS_START( kingofb )
245245    PORT_START /* DSW0 - 0xfc01 */
246246    PORT_DIPNAME( 0x03, 0x01, "Rest Up Points" )
247247    PORT_DIPSETTING(    0x02, "70000" )
r1238r1239
332332INPUT_PORTS_END
333333
334334/* Ring King */
335INPUT_PORTS_START( ringking )
335static INPUT_PORTS_START( ringking )
336336    PORT_START /* DSW0 - 0xe000 */
337337    PORT_DIPNAME( 0x03, 0x03, "Replay" )
338338    PORT_DIPSETTING(    0x01, "70000" )
src/mame/drivers/galivan.c
r1238r1239
258258   PORT_DIPSETTING(    0x01, "5" ) \
259259   PORT_DIPSETTING(    0x00, "6" )
260260
261INPUT_PORTS_START( galivan )
261static INPUT_PORTS_START( galivan )
262262   PORT_START_TAG("IN0")
263263   NIHON_JOYSTICK(1)
264264   PORT_START_TAG("IN1")
r1238r1239
298298   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
299299INPUT_PORTS_END
300300
301INPUT_PORTS_START( dangar )
301static INPUT_PORTS_START( dangar )
302302   PORT_START_TAG("IN0")
303303   NIHON_JOYSTICK(1)
304304   PORT_START_TAG("IN1")
r1238r1239
339339INPUT_PORTS_END
340340
341341/* different Lives values and last different the last two dips */
342INPUT_PORTS_START( dangar2 )
342static INPUT_PORTS_START( dangar2 )
343343   PORT_START_TAG("IN0")
344344   NIHON_JOYSTICK(1)
345345   PORT_START_TAG("IN1")
r1238r1239
384384INPUT_PORTS_END
385385
386386/* the last two dip switches are different */
387INPUT_PORTS_START( dangarb )
387static INPUT_PORTS_START( dangarb )
388388   PORT_START_TAG("IN0")
389389   NIHON_JOYSTICK(1)
390390   PORT_START_TAG("IN1")
r1238r1239
424424   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
425425INPUT_PORTS_END
426426
427INPUT_PORTS_START( ninjemak )
427static INPUT_PORTS_START( ninjemak )
428428   PORT_START_TAG("IN0")
429429   NIHON_JOYSTICK(1)
430430   PORT_START_TAG("IN1")
src/mame/drivers/nbmj8991.c
r1238r1239
438438ADDRESS_MAP_END
439439
440440
441INPUT_PORTS_START( pstadium )
441static INPUT_PORTS_START( pstadium )
442442   PORT_START   /* (0) DIPSW-A */
443443   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
444444   PORT_DIPSETTING(    0x03, "1 (Easy)" )
r1238r1239
513513   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
514514INPUT_PORTS_END
515515
516INPUT_PORTS_START( triplew1 )
516static INPUT_PORTS_START( triplew1 )
517517   PORT_START   /* (0) DIPSW-A */
518518   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
519519   PORT_DIPSETTING(    0x03, "1 (Easy)" )
r1238r1239
588588   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
589589INPUT_PORTS_END
590590
591INPUT_PORTS_START( ntopstar )
591static INPUT_PORTS_START( ntopstar )
592592   PORT_START   /* (0) DIPSW-A */
593593   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
594594   PORT_DIPSETTING(    0x03, "1 (Easy)" )
r1238r1239
663663   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
664664INPUT_PORTS_END
665665
666INPUT_PORTS_START( mjlstory )
666static INPUT_PORTS_START( mjlstory )
667667   PORT_START   /* (0) DIPSW-A */
668668   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
669669   PORT_DIPSETTING(    0x03, "1 (Easy)" )
r1238r1239
738738   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
739739INPUT_PORTS_END
740740
741INPUT_PORTS_START( vanilla )
741static INPUT_PORTS_START( vanilla )
742742   PORT_START   /* (0) DIPSW-A */
743743   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
744744   PORT_DIPSETTING(    0x03, "1 (Easy)" )
r1238r1239
813813   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
814814INPUT_PORTS_END
815815
816INPUT_PORTS_START( finalbny )
816static INPUT_PORTS_START( finalbny )
817817
818818   // I don't have manual for this game.
819819
r1238r1239
890890   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
891891INPUT_PORTS_END
892892
893INPUT_PORTS_START( qmhayaku )
893static INPUT_PORTS_START( qmhayaku )
894894   PORT_START   /* (0) DIPSW-A */
895895   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
896896   PORT_DIPSETTING(    0x03, "1 (Easy)" )
r1238r1239
965965   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
966966INPUT_PORTS_END
967967
968INPUT_PORTS_START( galkoku )
968static INPUT_PORTS_START( galkoku )
969969   PORT_START   /* (0) DIPSW-A */
970970   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
971971   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
10411041   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
10421042INPUT_PORTS_END
10431043
1044INPUT_PORTS_START( hyouban )
1044static INPUT_PORTS_START( hyouban )
10451045
10461046   // I don't have manual for this game.
10471047
r1238r1239
11201120   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
11211121INPUT_PORTS_END
11221122
1123INPUT_PORTS_START( galkaika )
1123static INPUT_PORTS_START( galkaika )
11241124
11251125   // I don't have manual for this game.
11261126
r1238r1239
11991199   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
12001200INPUT_PORTS_END
12011201
1202INPUT_PORTS_START( tokyogal )
1202static INPUT_PORTS_START( tokyogal )
12031203
12041204   // I don't have manual for this game.
12051205
r1238r1239
12781278   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
12791279INPUT_PORTS_END
12801280
1281INPUT_PORTS_START( tokimbsj )
1281static INPUT_PORTS_START( tokimbsj )
12821282
12831283   // I don't have manual for this game.
12841284
r1238r1239
13571357   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
13581358INPUT_PORTS_END
13591359
1360INPUT_PORTS_START( mcontest )
1360static INPUT_PORTS_START( mcontest )
13611361
13621362   // I don't have manual for this game.
13631363
r1238r1239
14361436   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
14371437INPUT_PORTS_END
14381438
1439INPUT_PORTS_START( uchuuai )
1439static INPUT_PORTS_START( uchuuai )
14401440
14411441   // I don't have manual for this game.
14421442
r1238r1239
15151515   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
15161516INPUT_PORTS_END
15171517
1518INPUT_PORTS_START( mjgottub )
1518static INPUT_PORTS_START( mjgottub )
15191519
15201520   // I don't have manual for this game.
15211521
r1238r1239
15941594   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
15951595INPUT_PORTS_END
15961596
1597INPUT_PORTS_START( av2mj1bb )
1597static INPUT_PORTS_START( av2mj1bb )
15981598   PORT_START   /* (0) DIPSW-A */
15991599   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) )
16001600   PORT_DIPSETTING(    0x07, "1 (Easy)" )
r1238r1239
16681668   NBMJCTRL_PORT10   /* (12) PORT 2-5 */
16691669INPUT_PORTS_END
16701670
1671INPUT_PORTS_START( av2mj2rg )
1671static INPUT_PORTS_START( av2mj2rg )
16721672
16731673   // I don't have manual for this game.
16741674
src/mame/drivers/blockout.c
r1238r1239
8686ADDRESS_MAP_END
8787
8888
89INPUT_PORTS_START( blockout )
89static INPUT_PORTS_START( blockout )
9090   PORT_START      /* IN0 */
9191   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
9292   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
161161   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
162162INPUT_PORTS_END
163163
164INPUT_PORTS_START( blckoutj )
164static INPUT_PORTS_START( blckoutj )
165165   PORT_START      /* IN0 */
166166   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
167167   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
238238   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2)
239239INPUT_PORTS_END
240240
241INPUT_PORTS_START( agress )
241static INPUT_PORTS_START( agress )
242242   PORT_START      /* IN0 */
243243   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
244244   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
src/mame/drivers/tsamurai.c
r1238r1239
7575   if (nmi_enabled) cpunum_set_input_line(0, INPUT_LINE_NMI, PULSE_LINE);
7676}
7777
78READ8_HANDLER( unknown_d803_r )
78static READ8_HANDLER( unknown_d803_r )
7979{
8080   return 0x6b;
8181}
8282
83READ8_HANDLER( unknown_d803_m660_r )
83static READ8_HANDLER( unknown_d803_m660_r )
8484{
8585   return 0x53;     // this is what the bootleg patches in.
8686}
8787
88READ8_HANDLER( unknown_d806_r )
88static READ8_HANDLER( unknown_d806_r )
8989{
9090   return 0x40;
9191}
9292
93READ8_HANDLER( unknown_d900_r )
93static READ8_HANDLER( unknown_d900_r )
9494{
9595   return 0x6a;
9696}
9797
98READ8_HANDLER( unknown_d938_r )
98static READ8_HANDLER( unknown_d938_r )
9999{
100100   return 0xfb;
101101}
r1238r1239
496496   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )\
497497   PORT_DIPSETTING(    0x80, DEF_STR( Cocktail ) )
498498
499INPUT_PORTS_START( tsamurai )
499static INPUT_PORTS_START( tsamurai )
500500TS_IN0
501501TS_IN1
502502TS_IN2
r1238r1239
526526   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
527527INPUT_PORTS_END
528528
529INPUT_PORTS_START( nunchaku )
529static INPUT_PORTS_START( nunchaku )
530530TS_IN0
531531TS_IN1
532532TS_IN2
r1238r1239
556556   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
557557INPUT_PORTS_END
558558
559INPUT_PORTS_START( vsgongf )
559static INPUT_PORTS_START( vsgongf )
560560TS_IN0
561561TS_IN1
562562TS_IN2
r1238r1239
609609   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN )\
610610   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
611611
612INPUT_PORTS_START( yamagchi )
612static INPUT_PORTS_START( yamagchi )
613613   YAMINS
614614   TS_IN2
615615   TS_DSW1
r1238r1239
639639   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
640640INPUT_PORTS_END
641641
642INPUT_PORTS_START( m660 )
642static INPUT_PORTS_START( m660 )
643643   YAMINS
644644   TS_IN2
645645
src/mame/drivers/igs_m027.c
r1238r1239
301301
302302***************************************************************************/
303303
304INPUT_PORTS_START( sdwx )
304static INPUT_PORTS_START( sdwx )
305305INPUT_PORTS_END
306306
307307
src/mame/drivers/canyon.c
r1238r1239
132132 *
133133 *************************************/
134134
135INPUT_PORTS_START( canyon )
135static INPUT_PORTS_START( canyon )
136136   PORT_START      /* DSW */
137137   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Language ) )
138138   PORT_DIPSETTING(    0x00, DEF_STR( English ) )
src/mame/drivers/splash.c
r1238r1239
249249   AM_RANGE(0xff0000, 0xffffff) AM_WRITE(MWA16_RAM)                              /* Work RAM */
250250ADDRESS_MAP_END
251251
252INPUT_PORTS_START( splash )
252static INPUT_PORTS_START( splash )
253253   PORT_START   /* DSW #1 */
254254   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
255255   PORT_DIPSETTING(    0x06, DEF_STR( 5C_1C ) )
r1238r1239
321321   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 )
322322INPUT_PORTS_END
323323
324INPUT_PORTS_START( funystrp )
324static INPUT_PORTS_START( funystrp )
325325   PORT_START   /* DSW #1 */
326326   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
327327   PORT_DIPSETTING(    0x06, DEF_STR( 5C_1C ) )
src/mame/drivers/jalmah.c
r1238r1239
550550
551551
552552
553INPUT_PORTS_START( jalmah )
553static INPUT_PORTS_START( jalmah )
554554   /*System port*/
555555   PORT_START
556556   PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) )
r1238r1239
708708INPUT_PORTS_END
709709
710710
711INPUT_PORTS_START( jalmah2 )
711static INPUT_PORTS_START( jalmah2 )
712712   /*System port*/
713713   PORT_START
714714   PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) )
r1238r1239
836836INPUT_PORTS_END
837837
838838
839INPUT_PORTS_START( jalmah2a )
839static INPUT_PORTS_START( jalmah2a )
840840   /*System port*/
841841   PORT_START
842842   PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) )
src/mame/drivers/f1gp.c
r1238r1239
273273   AM_RANGE(0xfff030, 0xfff031) AM_NOP //?
274274ADDRESS_MAP_END
275275
276INPUT_PORTS_START( f1gp )
276static INPUT_PORTS_START( f1gp )
277277   PORT_START
278278   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN )
279279   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
378378
379379
380380/* the same as f1gp, but with an extra button */
381INPUT_PORTS_START( f1gp2 )
381static INPUT_PORTS_START( f1gp2 )
382382   PORT_START
383383   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN )
384384   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/supdrapo.c
r1238r1239
7979   AM_RANGE(0x9801, 0x9801) AM_WRITE(AY8910_control_port_0_w)
8080ADDRESS_MAP_END
8181
82INPUT_PORTS_START( supdrapo )
82static INPUT_PORTS_START( supdrapo )
8383   PORT_START
8484   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) //win
8585   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) //cancel
src/mame/drivers/lvcards.c
r1238r1239
196196   AM_RANGE(0xc000, 0xdfff) AM_ROM
197197ADDRESS_MAP_END
198198
199INPUT_PORTS_START( lvcards )
199static INPUT_PORTS_START( lvcards )
200200   PORT_START_TAG("IN0")
201201   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Analyzer") PORT_CODE(KEYCODE_0)
202202   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 )
r1238r1239
280280   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
281281INPUT_PORTS_END
282282
283INPUT_PORTS_START( lvpoker )
283static INPUT_PORTS_START( lvpoker )
284284     PORT_START_TAG("IN0")
285285   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Analyzer") PORT_TOGGLE
286286   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 )
r1238r1239
363363   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
364364INPUT_PORTS_END
365365
366INPUT_PORTS_START( ponttehk )
366static INPUT_PORTS_START( ponttehk )
367367   PORT_START_TAG("IN0")
368368   PORT_SERVICE( 0x01, IP_ACTIVE_LOW )
369369   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 )
src/mame/drivers/midwunit.c
r1238r1239
124124 *
125125 *************************************/
126126
127INPUT_PORTS_START( mk3 )
127static INPUT_PORTS_START( mk3 )
128128   PORT_START
129129   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
130130   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
223223INPUT_PORTS_END
224224
225225
226INPUT_PORTS_START( openice )
226static INPUT_PORTS_START( openice )
227227   PORT_START
228228   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
229229   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
332332INPUT_PORTS_END
333333
334334
335INPUT_PORTS_START( nbahangt )
335static INPUT_PORTS_START( nbahangt )
336336   PORT_START
337337   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
338338   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
425425INPUT_PORTS_END
426426
427427
428INPUT_PORTS_START( rmpgwt )
428static INPUT_PORTS_START( rmpgwt )
429429   PORT_START
430430   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
431431   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
518518INPUT_PORTS_END
519519
520520
521INPUT_PORTS_START( wwfmania )
521static INPUT_PORTS_START( wwfmania )
522522   PORT_START
523523   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
524524   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/namcos2.c
r1238r1239
877877/*                                                           */
878878/*************************************************************/
879879
880INPUT_PORTS_START( default )
880static INPUT_PORTS_START( default )
881881   NAMCOS2_MCU_PORT_B_DEFAULT
882882   NAMCOS2_MCU_PORT_C_DEFAULT
883883   NAMCOS2_MCU_ANALOG_PORT_DEFAULT
r1238r1239
886886   NAMCOS2_MCU_DIAL_DEFAULT
887887INPUT_PORTS_END
888888
889INPUT_PORTS_START( gollygho )
889static INPUT_PORTS_START( gollygho )
890890   PORT_START_TAG("INB")
891891   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
892892   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
923923   NAMCOS2_MCU_DIAL_DEFAULT
924924INPUT_PORTS_END
925925
926INPUT_PORTS_START( bubbletr )
926static INPUT_PORTS_START( bubbletr )
927927   PORT_START_TAG("INB")
928928   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
929929   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
960960   NAMCOS2_MCU_DIAL_DEFAULT
961961INPUT_PORTS_END
962962
963INPUT_PORTS_START( finallap )
963static INPUT_PORTS_START( finallap )
964964   PORT_START_TAG("MCUB")      /* 63B05Z0 - PORT B */
965965   PORT_DIPNAME( 0x01, 0x01, "PortB 0x01")
966966   PORT_DIPSETTING(   0x01, "H" )
r1238r1239
10291029   NAMCOS2_MCU_DIAL_DEFAULT  /* 63B05Z0 - $3000 */
10301030INPUT_PORTS_END
10311031
1032INPUT_PORTS_START( finalap3 )
1032static INPUT_PORTS_START( finalap3 )
10331033   PORT_START_TAG("MCUB")      /* 63B05Z0 - PORT B */
10341034   PORT_DIPNAME( 0x01, 0x01, "PortB 0x01")
10351035   PORT_DIPSETTING(   0x01, "H" )
r1238r1239
10931093   NAMCOS2_MCU_DIAL_DEFAULT  /* 63B05Z0 - $3000 */
10941094INPUT_PORTS_END
10951095
1096INPUT_PORTS_START( fourtrax )
1096static INPUT_PORTS_START( fourtrax )
10971097   PORT_START_TAG("MCUB")      /* 63B05Z0 - PORT B */
10981098   PORT_DIPNAME( 0x01, 0x01, "PortB 0x01")
10991099   PORT_DIPSETTING(   0x01, "H" )
r1238r1239
11791179   NAMCOS2_MCU_DIAL_DEFAULT
11801180INPUT_PORTS_END
11811181
1182INPUT_PORTS_START( assault )
1182static INPUT_PORTS_START( assault )
11831183   PORT_START_TAG("MCUB")      /* 63B05Z0 - PORT B */
11841184   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT ) PORT_PLAYER(2)
11851185   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT )
r1238r1239
12181218//  PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
12191219INPUT_PORTS_END
12201220
1221INPUT_PORTS_START( suzuka )
1221static INPUT_PORTS_START( suzuka )
12221222   PORT_START_TAG("MCUB")      /* 63B05Z0 - PORT B */
12231223   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 )
12241224   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
12721272   NAMCOS2_MCU_DIAL_DEFAULT
12731273INPUT_PORTS_END
12741274
1275INPUT_PORTS_START( luckywld )
1275static INPUT_PORTS_START( luckywld )
12761276   PORT_START_TAG("MCUB")      /* 63B05Z0 - PORT B */
12771277   PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNUSED )
12781278   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
13071307   NAMCOS2_MCU_DIAL_DEFAULT
13081308INPUT_PORTS_END
13091309
1310INPUT_PORTS_START( sgunner  )
1310static INPUT_PORTS_START( sgunner  )
13111311   PORT_START_TAG("MCUB")      /* 63B05Z0 - PORT B */
13121312   PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNUSED )
13131313   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
13441344   NAMCOS2_MCU_DIAL_DEFAULT
13451345INPUT_PORTS_END
13461346
1347INPUT_PORTS_START( dirtfox )
1347static INPUT_PORTS_START( dirtfox )
13481348   PORT_START_TAG("MCUB")      /* 63B05Z0 - PORT B */ \
13491349   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("Gear Shift Up")   /* Gear shift up */
13501350   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )   PORT_NAME("Gear Shift Down")/* Gear shift down */
r1238r1239
13751375   NAMCOS2_MCU_DIAL_DEFAULT
13761376INPUT_PORTS_END
13771377
1378INPUT_PORTS_START( metlhawk )
1378static INPUT_PORTS_START( metlhawk )
13791379   PORT_START_TAG("MCUB")      /* 63B05Z0 - PORT B */
13801380   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 )
13811381   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 )
src/mame/drivers/route16.c
r1238r1239
486486INPUT_PORTS_END
487487
488488
489INPUT_PORTS_START( ttmahjng )
489static INPUT_PORTS_START( ttmahjng )
490490   PORT_START      /* IN0 */
491491   PORT_DIPNAME( 0x01, 0x00, "Unknown 01" )
492492   PORT_DIPSETTING(    0x00, "00" )
src/mame/drivers/tecmosys.c
r1238r1239
298298   AM_RANGE(0xe80000, 0xe80001) AM_WRITE(reg_e80000_w)
299299ADDRESS_MAP_END
300300
301INPUT_PORTS_START( deroon )
301static INPUT_PORTS_START( deroon )
302302   PORT_START
303303   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(1)
304304   PORT_BIT(  0x0002, IP_ACTIVE_HIGH,IPT_UNKNOWN )
src/mame/drivers/polyplay.c
r1238r1239
184184ADDRESS_MAP_END
185185
186186
187INPUT_PORTS_START( polyplay )
187static INPUT_PORTS_START( polyplay )
188188   PORT_START   /* IN0 */
189189   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
190190   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
src/mame/drivers/exidy440.c
r1238r1239
582582   PORT_DIPSETTING(    0x0c, DEF_STR( 1C_4C ) )
583583
584584
585INPUT_PORTS_START( crossbow )
585static INPUT_PORTS_START( crossbow )
586586   PORT_START            /* player inputs and logic board dips */
587587   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
588588   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
622622INPUT_PORTS_END
623623
624624
625INPUT_PORTS_START( cheyenne )
625static INPUT_PORTS_START( cheyenne )
626626   PORT_START            /* player inputs and logic board dips */
627627   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
628628   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
662662INPUT_PORTS_END
663663
664664
665INPUT_PORTS_START( combat )
665static INPUT_PORTS_START( combat )
666666   PORT_START            /* player inputs and logic board dips */
667667   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
668668   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
702702INPUT_PORTS_END
703703
704704
705INPUT_PORTS_START( catch22 )
705static INPUT_PORTS_START( catch22 )
706706   PORT_START            /* player inputs and logic board dips */
707707   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
708708   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
742742INPUT_PORTS_END
743743
744744
745INPUT_PORTS_START( cracksht )
745static INPUT_PORTS_START( cracksht )
746746   PORT_START            /* player inputs and logic board dips */
747747   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
748748   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
782782INPUT_PORTS_END
783783
784784
785INPUT_PORTS_START( claypign )
785static INPUT_PORTS_START( claypign )
786786   PORT_START            /* player inputs and logic board dips */
787787   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
788788   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
818818INPUT_PORTS_END
819819
820820
821INPUT_PORTS_START( chiller )
821static INPUT_PORTS_START( chiller )
822822   PORT_START            /* player inputs and logic board dips */
823823   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
824824   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
855855INPUT_PORTS_END
856856
857857
858INPUT_PORTS_START( topsecex )
858static INPUT_PORTS_START( topsecex )
859859   PORT_START            /* player inputs and logic board dips */
860860   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
861861   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
902902INPUT_PORTS_END
903903
904904
905INPUT_PORTS_START( hitnmiss )
905static INPUT_PORTS_START( hitnmiss )
906906   PORT_START            /* player inputs and logic board dips */
907907   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
908908   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
942942INPUT_PORTS_END
943943
944944
945INPUT_PORTS_START( whodunit )
945static INPUT_PORTS_START( whodunit )
946946   PORT_START            /* player inputs and logic board dips */
947947   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
948948   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
979979INPUT_PORTS_END
980980
981981
982INPUT_PORTS_START( showdown )
982static INPUT_PORTS_START( showdown )
983983   PORT_START            /* player inputs and logic board dips */
984984   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
985985   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
src/mame/drivers/exzisus.c
r1238r1239
245245
246246***************************************************************************/
247247
248INPUT_PORTS_START( exzisus )
248static INPUT_PORTS_START( exzisus )
249249   PORT_START_TAG("IN0")
250250   TAITO_JOY_UDRL_2_BUTTONS( 1 )
251251
src/mame/drivers/tx1.c
r1238r1239
235235      z80_ram[offset] = data;
236236}
237237
238INPUT_PORTS_START( tx1 )
238static INPUT_PORTS_START( tx1 )
239239   PORT_START_TAG("DSW1")
240240   PORT_DIPNAME( 0x0700, 0x0300,  DEF_STR( Difficulty ) )
241241   PORT_DIPSETTING(      0x0000, "A" )
r1238r1239
300300INPUT_PORTS_END
301301
302302
303INPUT_PORTS_START( buggyboy )
303static INPUT_PORTS_START( buggyboy )
304304   PORT_START_TAG("DSW1")
305305   PORT_DIPNAME( 0xe000, 0x0000, DEF_STR( Coin_A ) )
306306   PORT_DIPSETTING(    0x4000, DEF_STR( 3C_1C ) )
r1238r1239
384384
385385INPUT_PORTS_END
386386
387INPUT_PORTS_START( buggyb1 )
387static INPUT_PORTS_START( buggyb1 )
388388   PORT_START_TAG("DSW1")
389389   PORT_DIPNAME( 0xe000, 0x0000, DEF_STR( Coin_A ) )
390390   PORT_DIPSETTING(    0x4000, DEF_STR( 3C_1C ) )
src/mame/drivers/thayers.c
r1238r1239
8080
8181/* MEMORY HANDLERS */
8282/* Z80 R/W */
83READ8_HANDLER(z80_irq_status_r)
83static READ8_HANDLER(z80_irq_status_r)
8484{
8585   return z80_irq_status;
8686}
8787
88READ8_HANDLER(ram_ic_read)
88static READ8_HANDLER(ram_ic_read)
8989{
9090   /* Daphne patches.
9191    if (offset == 0xbe07-0x8000)
r1238r1239
116116   return (laserdisc_line_r(discinfo, LASERDISC_LINE_COMMAND) == ASSERT_LINE) ? 0 : 1;
117117}
118118
119WRITE8_HANDLER(ram_ic_write)
119static WRITE8_HANDLER(ram_ic_write)
120120{
121121   ram_ic[offset] = data;
122122}
123123
124WRITE8_HANDLER(data_ready_int_w)
124static WRITE8_HANDLER(data_ready_int_w)
125125{
126126   CLEAR_Z80_DATA_RDY_INT();
127127   /* Hackaroo? */
128128   /* cop_l_latch = 0x00; */
129129}
130130
131WRITE8_HANDLER(timer_int_w)
131static WRITE8_HANDLER(timer_int_w)
132132{
133133   CLEAR_Z80_TIMER_INT();
134134}
135135
136WRITE8_HANDLER(write_cop)
136static WRITE8_HANDLER(write_cop)
137137{
138138   logerror("Writing 0x%x to COP port G\n", data);
139139
r1238r1239
146146   /* Bit 1 goes to CS128x? (illegible schems) */
147147}
148148
149WRITE8_HANDLER(data_write_cop)
149#ifdef UNUSED_FUNCTION
150static WRITE8_HANDLER(data_write_cop)
150151{
151152   cop_l_latch = data;
152153}
154#endif
153155
154WRITE8_HANDLER(intrq_w)
156static WRITE8_HANDLER(intrq_w)
155157{
156158   cpunum_set_input_line(0, 0, ASSERT_LINE);
157159}
158160
159WRITE8_HANDLER(sc01_register_w)
161static WRITE8_HANDLER(sc01_register_w)
160162{
161163   /* (Thank you Daphne) */
162164   switch (offset)
r1238r1239
226228
227229/* COP R/W */
228230/* All 8 l pins are hooked up here */
229READ8_HANDLER(cop_l_read)
231static READ8_HANDLER(cop_l_read)
230232{
231233   logerror("COP - Reading from L @ (0x%x)\n", activecpu_get_pc());
232234   return cop_l_latch;
233235}
234236
235237/* Pins g0, g1, g2, and g3 are all hooked up */
236READ8_HANDLER(cop_g_read)
238static READ8_HANDLER(cop_g_read)
237239{
238240   logerror("COP - Reading from G @ (0x%x)\n", activecpu_get_pc());
239241   return cop_g_latch;
240242}
241243
242WRITE8_HANDLER(cop_l_write)
244static WRITE8_HANDLER(cop_l_write)
243245{
244246   logerror("COP - WRITING TO L 0x%x @ (0x%x)\n", data, activecpu_get_pc());
245247   cop_l_latch = data;
246248}
247249
248WRITE8_HANDLER(cop_g_write)
250static WRITE8_HANDLER(cop_g_write)
249251{
250252   logerror("COP - WRITING TO G 0x%x @ (0x%x)\n", data, activecpu_get_pc());
251253
r1238r1239
254256}
255257
256258/* Schematics say pins d0 and d1 are the only two that are hooked up */
257WRITE8_HANDLER(cop_d_write)
259static WRITE8_HANDLER(cop_d_write)
258260{
259261   int irq_flag = 0;
260262
r1238r1239
291293   }
292294}
293295
294WRITE8_HANDLER(cop_sk_write)
296static WRITE8_HANDLER(cop_sk_write)
295297{
296298   /* I think this data falls off into a black hole - the pins aren't hooked up.
297299       The COP400 XAS instruction writes to both SK and SIO, that's why the CPU writes data here at all. */
298300}
299301
300WRITE8_HANDLER(cop_sio_write)
302static WRITE8_HANDLER(cop_sio_write)
301303{
302304   /* This data is sent to the CLK pin of the keyboard handling logic.  We don't need to emulate it here. */
303305}
r1238r1239
346348                                                                                                                       be understood much better than what I have here */
347349
348350/* PORTS */
349INPUT_PORTS_START( thayers )
351static INPUT_PORTS_START( thayers )
350352   PORT_START_TAG("DSWA")
351353   PORT_DIPNAME( 0x07, 0x07, "Time Per Coin" ) PORT_DIPLOCATION( "A:3,2,1" )
352354   PORT_DIPSETTING(    0x07, "110 Seconds" )
src/mame/drivers/topshoot.c
r1238r1239
137137#include "genesis.h"
138138
139139
140INPUT_PORTS_START( topshoot ) /* Top Shooter Input Ports */
140static INPUT_PORTS_START( topshoot ) /* Top Shooter Input Ports */
141141   PORT_START   /* 16bit */
142142   PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Unknown ) )
143143   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
src/mame/drivers/merit.c
r1238r1239
279279// keep service test button pressed to clear the coin counter.
280280// keep it pressed for 10 seconds to clear all the memory.
281281// to enter hidden test mode enable "Enable Test Mode", enable "Reset High Scores"
282INPUT_PORTS_START( phrcraze )
282static INPUT_PORTS_START( phrcraze )
283283   PORT_START   /* IN0 */
284284   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
285285   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
352352// keep service test button pressed to clear the coin counter.
353353// keep it pressed for 10 seconds to clear all the memory.
354354// to enter hidden test mode enable "Enable Test Mode", enable "Reset High Scores"
355INPUT_PORTS_START( phrcrazs )
355static INPUT_PORTS_START( phrcrazs )
356356   PORT_START
357357   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
358358   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
422422// keep service test button pressed to clear the coin counter.
423423// To enter hidden test-mode in service mode:
424424// enable "Reset High Scores" then press "Service Mode"
425INPUT_PORTS_START( tictac )
425static INPUT_PORTS_START( tictac )
426426   PORT_START
427427   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
428428   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
489489//  PORT_DIPSETTING(    0x40, "Upright 1 Player" )
490490INPUT_PORTS_END
491491
492INPUT_PORTS_START( trivia )
492static INPUT_PORTS_START( trivia )
493493   PORT_START   /* IN0 */
494494   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
495495   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
561561// keep service test button pressed to clear the coin counter.
562562// keep it pressed for 10 seconds to clear all the memory.
563563// to enter hidden test mode enable "Enable Test Mode", enable "Reset High Scores"
564INPUT_PORTS_START( trvwhziv )
564static INPUT_PORTS_START( trvwhziv )
565565   PORT_INCLUDE( trivia )
566566
567567   PORT_MODIFY("DSWA")
r1238r1239
570570   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
571571INPUT_PORTS_END
572572
573INPUT_PORTS_START( pitboss )
573static INPUT_PORTS_START( pitboss )
574574   PORT_START
575575   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
576576   PORT_DIPNAME( 0x02, 0x02, "0-1" )
r1238r1239
610610   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
611611INPUT_PORTS_END
612612
613INPUT_PORTS_START( bigappg )
613static INPUT_PORTS_START( bigappg )
614614   PORT_START
615615   PORT_DIPNAME( 0x01, 0x01, "1" )
616616   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
src/mame/drivers/dassault.c
r1238r1239
299299   PORT_BIT( 0x80, IP_ACTIVE_LOW, start )
300300
301301
302INPUT_PORTS_START( thndzone )
302static INPUT_PORTS_START( thndzone )
303303   PORT_START
304304   DASSAULT_PLAYER_INPUT( 1, IPT_START1 )
305305
r1238r1239
369369   DASSAULT_PLAYER_INPUT( 4, IPT_COIN4 )
370370INPUT_PORTS_END
371371
372INPUT_PORTS_START( dassault )
372static INPUT_PORTS_START( dassault )
373373   PORT_START
374374   DASSAULT_PLAYER_INPUT( 1, IPT_START1 )
375375
r1238r1239
436436   DASSAULT_PLAYER_INPUT( 4, IPT_COIN4 )
437437INPUT_PORTS_END
438438
439INPUT_PORTS_START( dassaul4 )
439static INPUT_PORTS_START( dassaul4 )
440440   PORT_START
441441   DASSAULT_PLAYER_INPUT( 1, IPT_UNUSED )
442442
src/mame/drivers/dambustr.c
r1238r1239
7070ADDRESS_MAP_END
7171
7272
73INPUT_PORTS_START( dambustr )
73static INPUT_PORTS_START( dambustr )
7474   PORT_START_TAG("IN0")
7575   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 )
7676   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 )
src/mame/drivers/pingpong.c
r1238r1239
129129
130130
131131
132INPUT_PORTS_START( pingpong )
132static INPUT_PORTS_START( pingpong )
133133   PORT_START   /* IN0 */
134134   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
135135   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )
r1238r1239
202202   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
203203INPUT_PORTS_END
204204
205INPUT_PORTS_START( merlinmm )
205static INPUT_PORTS_START( merlinmm )
206206   PORT_START_TAG("IN0")
207207   PORT_DIPNAME( 0x01, 0x01, "Bank 3-3")
208208   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
314314   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN4 ) PORT_NAME("100P")
315315INPUT_PORTS_END
316316
317INPUT_PORTS_START( cashquiz )
317static INPUT_PORTS_START( cashquiz )
318318   PORT_START_TAG("IN0")
319319   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
320320   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
src/mame/drivers/ssrj.c
r1238r1239
9191   AM_RANGE(0xf800, 0xf800) AM_WRITE(MWA8_NOP) /* wheel ? */
9292ADDRESS_MAP_END
9393
94INPUT_PORTS_START( ssrj )
94static INPUT_PORTS_START( ssrj )
9595
9696PORT_START
9797   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
src/mame/drivers/blstroid.c
r1238r1239
111111 *
112112 *************************************/
113113
114INPUT_PORTS_START( blstroid )
114static INPUT_PORTS_START( blstroid )
115115   PORT_START      /* ff9800 */
116116   PORT_BIT( 0x00ff, 0, IPT_DIAL ) PORT_SENSITIVITY(60) PORT_KEYDELTA(10) PORT_PLAYER(1)
117117   PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
src/mame/drivers/gotya.c
r1238r1239
7070ADDRESS_MAP_END
7171
7272
73INPUT_PORTS_START( gotya )
73static INPUT_PORTS_START( gotya )
7474   PORT_START   /* IN0 */
7575   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
7676   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
src/mame/drivers/gtipoker.c
r1238r1239
3333ADDRESS_MAP_END
3434
3535
36INPUT_PORTS_START( gtipoker )
36static INPUT_PORTS_START( gtipoker )
3737INPUT_PORTS_END
3838
3939static const gfx_layout tiles8x8_layout =
src/mame/drivers/aztarac.c
r1238r1239
136136 *
137137 *************************************/
138138
139INPUT_PORTS_START( aztarac )
139static INPUT_PORTS_START( aztarac )
140140   PORT_START_TAG("IN0")
141141   PORT_BIT( 0x1f, 0xf, IPT_AD_STICK_Z ) PORT_MINMAX(0,0x1e) PORT_SENSITIVITY(100) PORT_KEYDELTA(1)
142142
src/mame/drivers/tatsumi.c
r1238r1239
228228
229229/******************************************************************************/
230230
231INPUT_PORTS_START( apache3 )
231static INPUT_PORTS_START( apache3 )
232232   PORT_START
233233   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2)
234234   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME( "Trigger" )
r1238r1239
294294   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
295295INPUT_PORTS_END
296296
297INPUT_PORTS_START( roundup5 )
297static INPUT_PORTS_START( roundup5 )
298298   PORT_START
299299   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_NAME("Accelerator")
300300   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
369369   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
370370INPUT_PORTS_END
371371
372INPUT_PORTS_START( cyclwarr )
372static INPUT_PORTS_START( cyclwarr )
373373   PORT_START
374374   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
375375   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/supbtime.c
r1238r1239
152152
153153/******************************************************************************/
154154
155INPUT_PORTS_START( supbtime )
155static INPUT_PORTS_START( supbtime )
156156   PORT_START   /* Player 1 controls */
157157   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
158158   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
234234   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
235235INPUT_PORTS_END
236236
237INPUT_PORTS_START( chinatwn )
237static INPUT_PORTS_START( chinatwn )
238238   PORT_START   /* Player 1 controls */
239239   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
240240   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/blmbycar.c
r1238r1239
209209
210210***************************************************************************/
211211
212INPUT_PORTS_START( blmbycar )
212static INPUT_PORTS_START( blmbycar )
213213
214214   PORT_START   // IN0 - $700000.w
215215   PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) )
r1238r1239
286286INPUT_PORTS_END
287287
288288
289INPUT_PORTS_START( watrball )
289static INPUT_PORTS_START( watrball )
290290   PORT_START   /* dips */
291291   PORT_DIPNAME( 0x0001, 0x0001, "1" )
292292   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
src/mame/drivers/retofinv.c
r1238r1239
187187
188188
189189
190INPUT_PORTS_START( retofinv )
190static INPUT_PORTS_START( retofinv )
191191   PORT_START_TAG("IN0")
192192   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
193193   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
305305   PORT_DIPSETTING(    0x00, "A only" )
306306INPUT_PORTS_END
307307
308INPUT_PORTS_START( retofin2 )
308static INPUT_PORTS_START( retofin2 )
309309   PORT_INCLUDE( retofinv )
310310
311311   PORT_MODIFY( "DSW1" )
src/mame/drivers/gbusters.c
r1238r1239
169169
170170***************************************************************************/
171171
172INPUT_PORTS_START( gbusters )
172static INPUT_PORTS_START( gbusters )
173173   PORT_START   /* DSW #1 */
174174   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
175175   PORT_DIPSETTING(    0x02, DEF_STR( 4C_1C ) )
r1238r1239
341341
342342ROM_START( gbusters )
343343   ROM_REGION( 0x30800, REGION_CPU1, 0 ) /* code + banked roms + space for banked RAM */
344   ROM_LOAD( "878n02.rom", 0x10000, 0x08000, CRC(51697aaa) SHA1(1e6461e2e5e871d44085623a890158a4c1c4c404) )   /* ROM K13 */
344   ROM_LOAD( "878n02.k13", 0x10000, 0x08000, CRC(51697aaa) SHA1(1e6461e2e5e871d44085623a890158a4c1c4c404) )
345345   ROM_CONTINUE(           0x08000, 0x08000 )
346   ROM_LOAD( "878j03.rom", 0x20000, 0x10000, CRC(3943a065) SHA1(6b0863f4182e6c973adfaa618f096bd4cc9b7b6d) )   /* ROM K15 */
346   ROM_LOAD( "878j03.k15", 0x20000, 0x10000, CRC(3943a065) SHA1(6b0863f4182e6c973adfaa618f096bd4cc9b7b6d) )
347347
348348   ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for the sound CPU */
349   ROM_LOAD( "878h01.rom", 0x00000, 0x08000, CRC(96feafaa) SHA1(8b6547e610cb4fa1c1f5bf12cb05e9a12a353903) )
349   ROM_LOAD( "878h01.f8", 0x00000, 0x08000, CRC(96feafaa) SHA1(8b6547e610cb4fa1c1f5bf12cb05e9a12a353903) )
350350
351351   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 */
354354
355355   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 */
358358
359359   ROM_REGION( 0x0100, REGION_PROMS, 0 )
360   ROM_LOAD( "878a09.rom",   0x0000, 0x0100, CRC(e2d09a1b) SHA1(a9651e137486b2df367c39eb43f52d0833589e87) )   /* priority encoder (not used) */
360   ROM_LOAD( "878a09.f20",   0x0000, 0x0100, CRC(e2d09a1b) SHA1(a9651e137486b2df367c39eb43f52d0833589e87) ) /* priority encoder (not used) */
361361
362362   ROM_REGION( 0x40000, REGION_SOUND1, 0 ) /* samples for 007232 */
363   ROM_LOAD( "878c04.rom",  0x00000, 0x40000, CRC(9e982d1c) SHA1(a5b611c67b0f2ac50c679707931ee12ebbf72ebe) )
363   ROM_LOAD( "878c04.d5",  0x00000, 0x40000, CRC(9e982d1c) SHA1(a5b611c67b0f2ac50c679707931ee12ebbf72ebe) )
364364ROM_END
365365
366ROM_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) )
388ROM_END
389
366390ROM_START( crazycop )
367391   ROM_REGION( 0x30800, REGION_CPU1, 0 ) /* code + banked roms + space for banked RAM */
368   ROM_LOAD( "878m02.bin", 0x10000, 0x08000, CRC(9c1c9f52) SHA1(7a60ad20aac92da8258b43b04f8c7f27bb71f1df) )   /* ROM K13 */
392   ROM_LOAD( "878m02.k13", 0x10000, 0x08000, CRC(9c1c9f52) SHA1(7a60ad20aac92da8258b43b04f8c7f27bb71f1df) )
369393   ROM_CONTINUE(           0x08000, 0x08000 )
370   ROM_LOAD( "878j03.rom", 0x20000, 0x10000, CRC(3943a065) SHA1(6b0863f4182e6c973adfaa618f096bd4cc9b7b6d) )   /* ROM K15 */
394   ROM_LOAD( "878j03.k15", 0x20000, 0x10000, CRC(3943a065) SHA1(6b0863f4182e6c973adfaa618f096bd4cc9b7b6d) )
371395
372396   ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for the sound CPU */
373   ROM_LOAD( "878h01.rom", 0x00000, 0x08000, CRC(96feafaa) SHA1(8b6547e610cb4fa1c1f5bf12cb05e9a12a353903) )
397   ROM_LOAD( "878h01.f8", 0x00000, 0x08000, CRC(96feafaa) SHA1(8b6547e610cb4fa1c1f5bf12cb05e9a12a353903) )
374398
375399   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 */
378402
379403   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 */
382406
383407   ROM_REGION( 0x0100, REGION_PROMS, 0 )
384   ROM_LOAD( "878a09.rom",   0x0000, 0x0100, CRC(e2d09a1b) SHA1(a9651e137486b2df367c39eb43f52d0833589e87) )   /* priority encoder (not used) */
408   ROM_LOAD( "878a09.f20",   0x0000, 0x0100, CRC(e2d09a1b) SHA1(a9651e137486b2df367c39eb43f52d0833589e87) ) /* priority encoder (not used) */
385409
386410   ROM_REGION( 0x40000, REGION_SOUND1, 0 ) /* samples for 007232 */
387   ROM_LOAD( "878c04.rom",  0x00000, 0x40000, CRC(9e982d1c) SHA1(a5b611c67b0f2ac50c679707931ee12ebbf72ebe) )
411   ROM_LOAD( "878c04.d5",  0x00000, 0x40000, CRC(9e982d1c) SHA1(a5b611c67b0f2ac50c679707931ee12ebbf72ebe) )
388412ROM_END
389413
390414
r1238r1239
426450
427451
428452
429GAME( 1988, gbusters, 0,        gbusters, gbusters, gbusters, ROT90, "Konami", "Gang Busters", 0 )
430GAME( 1988, crazycop, gbusters, gbusters, gbusters, gbusters, ROT90, "Konami", "Crazy Cop (Japan)", 0 )
453GAME( 1988, gbusters, 0,        gbusters, gbusters, gbusters, ROT90, "Konami", "Gang Busters (set 1)", 0 ) /* N02 & J03 program roms */
454GAME( 1988, gbustera, gbusters, gbusters, gbusters, gbusters, ROT90, "Konami", "Gang Busters (set 2)", 0 ) /* unknown region program roms */
455GAME( 1988, crazycop, gbusters, gbusters, gbusters, gbusters, ROT90, "Konami", "Crazy Cop (Japan)", 0 )    /* M02 & J03 program roms */
src/mame/drivers/megaplay.c
r1238r1239
177177    PORT_DIPSETTING( 0x10, "1 coin/1 credit - 2 coins/3 credits" ) \
178178    PORT_DIPSETTING( 0x00, " 1 coin/1 credit" )
179179
180INPUT_PORTS_START ( megaplay )
180static INPUT_PORTS_START ( megaplay )
181181   GENESIS_PORTS
182182   MEGAPLAY_TEST
183183   MEGAPLAY_COIN
r1238r1239
186186
187187INPUT_PORTS_END
188188
189INPUT_PORTS_START ( mp_sonic )
189static INPUT_PORTS_START ( mp_sonic )
190190   GENESIS_PORTS
191191   MEGAPLAY_TEST
192192   MEGAPLAY_COIN
r1238r1239
214214
215215INPUT_PORTS_END
216216
217INPUT_PORTS_START ( mp_gaxe2 )
217static INPUT_PORTS_START ( mp_gaxe2 )
218218   GENESIS_PORTS
219219   MEGAPLAY_TEST
220220   MEGAPLAY_COIN
r1238r1239
247247
248248INPUT_PORTS_END
249249
250INPUT_PORTS_START ( mp_col3 )
250static INPUT_PORTS_START ( mp_col3 )
251251   GENESIS_PORTS
252252   MEGAPLAY_TEST
253253   MEGAPLAY_COIN
r1238r1239
278278
279279INPUT_PORTS_END
280280
281INPUT_PORTS_START ( mp_twc )
281static INPUT_PORTS_START ( mp_twc )
282282   GENESIS_PORTS
283283   MEGAPLAY_TEST
284284   MEGAPLAY_COIN
r1238r1239
303303
304304INPUT_PORTS_END
305305
306INPUT_PORTS_START ( mp_sor2 )
306static INPUT_PORTS_START ( mp_sor2 )
307307   GENESIS_PORTS
308308   MEGAPLAY_TEST
309309   MEGAPLAY_COIN
r1238r1239
326326
327327INPUT_PORTS_END
328328
329INPUT_PORTS_START ( mp_bio )
329static INPUT_PORTS_START ( mp_bio )
330330   GENESIS_PORTS
331331   MEGAPLAY_TEST
332332   MEGAPLAY_COIN
r1238r1239
349349
350350INPUT_PORTS_END
351351
352INPUT_PORTS_START ( mp_gslam )
352static INPUT_PORTS_START ( mp_gslam )
353353   GENESIS_PORTS
354354   MEGAPLAY_TEST
355355   MEGAPLAY_COIN
r1238r1239
375375
376376INPUT_PORTS_END
377377
378INPUT_PORTS_START ( mp_mazin )
378static INPUT_PORTS_START ( mp_mazin )
379379   GENESIS_PORTS
380380   MEGAPLAY_TEST
381381   MEGAPLAY_COIN
r1238r1239
402402
403403INPUT_PORTS_END
404404
405INPUT_PORTS_START ( mp_soni2 )
405static INPUT_PORTS_START ( mp_soni2 )
406406   GENESIS_PORTS
407407   MEGAPLAY_TEST
408408   MEGAPLAY_COIN
r1238r1239
10551055
10561056*/
10571057
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 )
10661066/* 08 */
10671067/* 09 */
10681068/* 10 */
1069/* 11 */ GAMEB( 1993, mp_mazin, megaplay, megaplay, mpnew, mp_mazin, megaplay, ROT0, "Sega",                  "Mazin Wars / Mazin Saga (Mega Play)",0  )
1069/* 11 */ GAME( 1993, mp_mazin, megaplay, mpnew, mp_mazin, megaplay, ROT0, "Sega",                  "Mazin Wars / Mazin Saga (Mega Play)",0  )
10701070
1071/* ?? */ GAMEB( 1993, mp_col3, megaplay, megaplay, mpnew, megaplay, megaplay, ROT0, "Sega",                  "Columns III (Mega Play)" , 0 )
1071/* ?? */ GAME( 1993, mp_col3, megaplay, mpnew, megaplay, megaplay, ROT0, "Sega",                  "Columns III (Mega Play)" , 0 )
10721072
10731073
10741074/* Also known to exist:
src/mame/drivers/meadows.c
r1238r1239
426426 *
427427 *************************************/
428428
429INPUT_PORTS_START( meadows )
429static INPUT_PORTS_START( meadows )
430430   PORT_START      /* IN0 buttons */
431431   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
432432   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1  )
r1238r1239
470470INPUT_PORTS_END
471471
472472
473INPUT_PORTS_START( minferno )
473static INPUT_PORTS_START( minferno )
474474   PORT_START      /* IN0 left joystick */
475475   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
476476   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
src/mame/drivers/dotrikun.c
r1238r1239
4949ADDRESS_MAP_END
5050
5151
52INPUT_PORTS_START( dotrikun )
52static INPUT_PORTS_START( dotrikun )
5353   PORT_START
5454   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )
5555   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )
src/mame/drivers/bogeyman.c
r1238r1239
8383
8484/* Input Ports */
8585
86INPUT_PORTS_START( bogeyman )
86static INPUT_PORTS_START( bogeyman )
8787   PORT_START_TAG("IN0")
8888   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
8989   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
src/mame/drivers/harddriv.c
r1238r1239
533533 *
534534 *************************************/
535535
536INPUT_PORTS_START( harddriv )
536static INPUT_PORTS_START( harddriv )
537537   PORT_START_TAG("600000")
538538   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED )   /* diagnostic switch */
539539   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_SPECIAL )   /* HBLANK */
r1238r1239
589589INPUT_PORTS_END
590590
591591
592INPUT_PORTS_START( racedriv )
592static INPUT_PORTS_START( racedriv )
593593   PORT_START_TAG("600000")
594594   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED )   /* diagnostic switch */
595595   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_SPECIAL )   /* HBLANK */
r1238r1239
645645INPUT_PORTS_END
646646
647647
648INPUT_PORTS_START( racedrvc )
648static INPUT_PORTS_START( racedrvc )
649649   PORT_START_TAG("60c000")
650650   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED )   /* diagnostic switch */
651651   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_SPECIAL )   /* HBLANK */
r1238r1239
707707INPUT_PORTS_END
708708
709709
710INPUT_PORTS_START( stunrun )
710static INPUT_PORTS_START( stunrun )
711711   PORT_START_TAG("60c000")
712712   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED )
713713   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_SPECIAL )   /* HBLANK */
r1238r1239
765765INPUT_PORTS_END
766766
767767
768INPUT_PORTS_START( steeltal )
768static INPUT_PORTS_START( steeltal )
769769   PORT_START_TAG("60c000")
770770   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED )
771771   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_SPECIAL )   /* HBLANK */
r1238r1239
824824INPUT_PORTS_END
825825
826826
827INPUT_PORTS_START( strtdriv )
827static INPUT_PORTS_START( strtdriv )
828828   PORT_START_TAG("60c000")
829829   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED )
830830   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_SPECIAL )   /* HBLANK */
r1238r1239
887887INPUT_PORTS_END
888888
889889
890INPUT_PORTS_START( hdrivair )
890static INPUT_PORTS_START( hdrivair )
891891   PORT_START_TAG("60c000")
892892   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED )
893893   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_SPECIAL )   /* HBLANK */
src/mame/drivers/srmp2.c
r1238r1239
655655   PORT_BIT ( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) \
656656   PORT_BIT ( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
657657
658INPUT_PORTS_START( srmp2 )
658static INPUT_PORTS_START( srmp2 )
659659   PORT_START_TAG("IN0")         /* Coinage (0) */
660660   PORT_BIT ( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN )
661661   PORT_BIT ( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
734734INPUT_PORTS_END
735735
736736
737INPUT_PORTS_START( srmp3 )
737static INPUT_PORTS_START( srmp3 )
738738   PORT_START_TAG("IN0")         /* Coinage (0) */
739739   PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
740740   PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 )
r1238r1239
811811INPUT_PORTS_END
812812
813813
814INPUT_PORTS_START( mjyuugi )
814static INPUT_PORTS_START( mjyuugi )
815815   PORT_START_TAG("IN0")         /* Coinage (0) */
816816   PORT_BIT ( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN )
817817   PORT_BIT ( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
921921   PORT_BIT ( 0xfff0, IP_ACTIVE_LOW, IPT_UNKNOWN )
922922INPUT_PORTS_END
923923
924INPUT_PORTS_START( ponchin )
924static INPUT_PORTS_START( ponchin )
925925   PORT_START_TAG("IN0")         /* Coinage (0) */
926926   PORT_BIT ( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN )
927927   PORT_BIT ( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/m72.c
r1238r1239
850850   PORT_DIPSETTING(    0x0000, DEF_STR( 1C_6C ) )
851851
852852
853INPUT_PORTS_START( rtype )
853static INPUT_PORTS_START( rtype )
854854   PORT_START
855855   JOYSTICK_1
856856   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 )
r1238r1239
916916INPUT_PORTS_END
917917
918918/* identical but Demo Sounds is inverted */
919INPUT_PORTS_START( rtypep )
919static INPUT_PORTS_START( rtypep )
920920   PORT_START
921921   JOYSTICK_1
922922   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 )
r1238r1239
981981   PORT_SERVICE( 0x8000, IP_ACTIVE_LOW )
982982INPUT_PORTS_END
983983
984INPUT_PORTS_START( bchopper )
984static INPUT_PORTS_START( bchopper )
985985   PORT_START
986986   JOYSTICK_1
987987   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 )
r1238r1239
10461046   PORT_SERVICE( 0x8000, IP_ACTIVE_LOW )
10471047INPUT_PORTS_END
10481048
1049INPUT_PORTS_START( nspirit )
1049static INPUT_PORTS_START( nspirit )
10501050   PORT_START
10511051   JOYSTICK_1
10521052   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 )
r1238r1239
11101110   PORT_SERVICE( 0x8000, IP_ACTIVE_LOW )
11111111INPUT_PORTS_END
11121112
1113INPUT_PORTS_START( imgfight )
1113static INPUT_PORTS_START( imgfight )
11141114   PORT_START
11151115   JOYSTICK_1
11161116   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 )
r1238r1239
11721172   PORT_SERVICE( 0x8000, IP_ACTIVE_LOW )
11731173INPUT_PORTS_END
11741174
1175INPUT_PORTS_START( loht )
1175static INPUT_PORTS_START( loht )
11761176   PORT_START
11771177   JOYSTICK_1
11781178   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 )
r1238r1239
12341234   PORT_SERVICE( 0x8000, IP_ACTIVE_LOW )
12351235INPUT_PORTS_END
12361236
1237INPUT_PORTS_START( xmultipl )
1237static INPUT_PORTS_START( xmultipl )
12381238   PORT_START
12391239   JOYSTICK_1
12401240   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 )
r1238r1239
12971297   PORT_SERVICE( 0x8000, IP_ACTIVE_LOW )
12981298INPUT_PORTS_END
12991299
1300INPUT_PORTS_START( dbreed )
1300static INPUT_PORTS_START( dbreed )
13011301   PORT_START
13021302   JOYSTICK_1
13031303   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 )
r1238r1239
13591359   PORT_SERVICE( 0x8000, IP_ACTIVE_LOW )
13601360INPUT_PORTS_END
13611361
1362INPUT_PORTS_START( rtype2 )
1362static INPUT_PORTS_START( rtype2 )
13631363   PORT_START
13641364   JOYSTICK_1
13651365   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 )
r1238r1239
14191419   PORT_SERVICE( 0x8000, IP_ACTIVE_LOW )
14201420INPUT_PORTS_END
14211421
1422INPUT_PORTS_START( hharry )
1422static INPUT_PORTS_START( hharry )
14231423   PORT_START
14241424   JOYSTICK_1
14251425   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 )
r1238r1239
14961496    // COIN_MODE_2
14971497INPUT_PORTS_END
14981498
1499INPUT_PORTS_START( poundfor )
1499static INPUT_PORTS_START( poundfor )
15001500   PORT_START
15011501   PORT_BIT( 0x001f, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* high bits of trackball X */
15021502   PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1)
r1238r1239
15851585   PORT_BIT( 0xffff, 0x0000, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(50) PORT_KEYDELTA(30) PORT_PLAYER(2)
15861586INPUT_PORTS_END
15871587
1588INPUT_PORTS_START( airduel )
1588static INPUT_PORTS_START( airduel )
15891589   PORT_START
15901590   JOYSTICK_1
15911591   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 )
r1238r1239
16541654    // COIN_MODE_2
16551655INPUT_PORTS_END
16561656
1657INPUT_PORTS_START( gallop )
1657static INPUT_PORTS_START( gallop )
16581658   PORT_START
16591659   JOYSTICK_1
16601660   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 )
r1238r1239
17291729    // COIN_MODE_2
17301730INPUT_PORTS_END
17311731
1732INPUT_PORTS_START( kengo )
1732static INPUT_PORTS_START( kengo )
17331733   PORT_START
17341734   JOYSTICK_1
17351735   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON4 )
src/mame/drivers/ohmygod.c
r1238r1239
9494
9595
9696
97INPUT_PORTS_START( ohmygod )
97static INPUT_PORTS_START( ohmygod )
9898   PORT_START
9999   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
100100   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
r1238r1239
194194   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
195195INPUT_PORTS_END
196196
197INPUT_PORTS_START( naname )
197static INPUT_PORTS_START( naname )
198198   PORT_START
199199   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
200200   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
src/mame/drivers/pokechmp.c
r1238r1239
166166ADDRESS_MAP_END
167167
168168
169INPUT_PORTS_START( pokechmp )
169static INPUT_PORTS_START( pokechmp )
170170   PORT_START
171171   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
172172   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
src/mame/drivers/snk68.c
r1238r1239
278278   PORT_DIPSETTING(   0x40, DEF_STR( Hard ) )\
279279   PORT_DIPSETTING(   0xc0, DEF_STR( Hardest ) )
280280
281INPUT_PORTS_START( pow )
281static INPUT_PORTS_START( pow )
282282POW_IN0
283283POW_IN1
284284POW_IN2
r1238r1239
311311INPUT_PORTS_END
312312
313313/* Identical to pow, but the Language dip switch has no effect */
314INPUT_PORTS_START( powj )
314static INPUT_PORTS_START( powj )
315315POW_IN0
316316POW_IN1
317317POW_IN2
r1238r1239
343343POW_DSW2
344344INPUT_PORTS_END
345345
346INPUT_PORTS_START( searchar )
346static INPUT_PORTS_START( searchar )
347347   PORT_START_TAG("IN0")   /* Player 1 controls */
348348   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    ) PORT_8WAY
349349   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
466466   PORT_START_TAG("ROT2")   /* player 2 12-way rotary control - not used in this game */\
467467   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
468468
469INPUT_PORTS_START( streetsm )
469static INPUT_PORTS_START( streetsm )
470470STREETS_IN0
471471STREETS_IN1
472472POW_IN2
r1238r1239
499499INPUT_PORTS_END
500500
501501/* Same as streetsm, but Coinage is different */
502INPUT_PORTS_START( streetsj )
502static INPUT_PORTS_START( streetsj )
503503STREETS_IN0
504504STREETS_IN1
505505POW_IN2
r1238r1239
531531STREETS_REST
532532INPUT_PORTS_END
533533
534INPUT_PORTS_START( ikari3 )
534static INPUT_PORTS_START( ikari3 )
535535   PORT_START_TAG("IN0")   /* Player 1 controls, maybe all are active_high? */
536536   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    ) PORT_8WAY
537537   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/madalien.c
r1238r1239
530530ADDRESS_MAP_END
531531
532532
533INPUT_PORTS_START( madalien )
533static INPUT_PORTS_START( madalien )
534534   PORT_START_TAG("PLAYER1")
535535   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
536536   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
src/mame/drivers/igs_180.c
r1238r1239
2828   return 0;
2929}
3030
31INPUT_PORTS_START( igs_180 )
31static INPUT_PORTS_START( igs_180 )
3232INPUT_PORTS_END
3333
3434static ADDRESS_MAP_START( igs_180_map, ADDRESS_SPACE_PROGRAM, 8 )
src/mame/drivers/aeroboto.c
r1238r1239
127127
128128
129129
130INPUT_PORTS_START( formatz )
130static INPUT_PORTS_START( formatz )
131131   PORT_START_TAG("IN0")
132132   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
133133   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/konamigv.c
r1238r1239
375375   MDRV_SOUND_ROUTE( 1, "right", 1.0 )
376376MACHINE_DRIVER_END
377377
378INPUT_PORTS_START( konamigv )
378static INPUT_PORTS_START( konamigv )
379379   PORT_START_TAG("IN0")
380380   PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
381381   PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT) PORT_8WAY
r1238r1239
553553   MDRV_NVRAM_HANDLER( simpbowl )
554554MACHINE_DRIVER_END
555555
556INPUT_PORTS_START( simpbowl )
556static INPUT_PORTS_START( simpbowl )
557557   PORT_INCLUDE( konamigv )
558558
559559   PORT_START_TAG("IN3")
r1238r1239
642642   MDRV_NVRAM_HANDLER( btchamp )
643643MACHINE_DRIVER_END
644644
645INPUT_PORTS_START( btchamp )
645static INPUT_PORTS_START( btchamp )
646646   PORT_INCLUDE( konamigv )
647647
648648   PORT_START_TAG("IN3")
r1238r1239
734734   MDRV_NVRAM_HANDLER( btchamp )
735735MACHINE_DRIVER_END
736736
737INPUT_PORTS_START( kdeadeye )
737static INPUT_PORTS_START( kdeadeye )
738738   PORT_INCLUDE( konamigv )
739739
740740   PORT_MODIFY("IN0")
src/mame/drivers/firetrap.c
r1238r1239
325325
326326
327327
328INPUT_PORTS_START( firetrap )
328static INPUT_PORTS_START( firetrap )
329329   PORT_START   /* IN0 */
330330   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_4WAY
331331   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_4WAY
r1238r1239
408408   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 )
409409INPUT_PORTS_END
410410
411INPUT_PORTS_START( firetpbl )
411static INPUT_PORTS_START( firetpbl )
412412   PORT_START   /* IN0 */
413413   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_4WAY
414414   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_4WAY
src/mame/drivers/crgolf.c
r1238r1239
270270 *
271271 *************************************/
272272
273INPUT_PORTS_START( crgolf )
273static INPUT_PORTS_START( crgolf )
274274   PORT_START   /* CREDIT */
275275   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
276276   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SERVICE1 )
src/mame/drivers/mastboy.c
r1238r1239
726726
727727/* Input Ports */
728728
729INPUT_PORTS_START( mastboy )
729static INPUT_PORTS_START( mastboy )
730730   PORT_START
731731   PORT_BIT( 0x01, IP_ACTIVE_LOW,  IPT_COIN1 )
732732   PORT_BIT( 0x1e, IP_ACTIVE_LOW,  IPT_UNUSED )
src/mame/drivers/thedeep.c
r1238r1239
205205
206206***************************************************************************/
207207
208INPUT_PORTS_START( thedeep )
208static INPUT_PORTS_START( thedeep )
209209   PORT_START_TAG("IN0")   //  e008
210210   PORT_BIT(  0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    )   // Up / down shown in service mode
211211   PORT_BIT(  0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  )
src/mame/drivers/oneshot.c
r1238r1239
160160   AM_RANGE(0xe010, 0xe010) AM_WRITE(OKIM6295_data_0_w)
161161ADDRESS_MAP_END
162162
163INPUT_PORTS_START( oneshot )
163static INPUT_PORTS_START( oneshot )
164164   PORT_START   /* DSW 1    (0x19c020.l -> 0x08006c.l) */
165165   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) )      // 0x080084.l : credits (00-09)
166166   PORT_DIPSETTING(    0x03, DEF_STR( 3C_1C ) )
r1238r1239
247247
248248INPUT_PORTS_END
249249
250INPUT_PORTS_START( maddonna )
250static INPUT_PORTS_START( maddonna )
251251   PORT_START /* DSW A */
252252   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) )
253253   PORT_DIPSETTING(    0x03, DEF_STR( 3C_1C ) )
src/mame/drivers/stlforce.c
r1238r1239
127127   AM_RANGE(0x410000, 0x410001) AM_READWRITE(OKIM6295_status_0_lsb_r, OKIM6295_data_0_lsb_w)
128128ADDRESS_MAP_END
129129
130INPUT_PORTS_START( stlforce )
130static INPUT_PORTS_START( stlforce )
131131   PORT_START
132132   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
133133   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/rmhaihai.c
r1238r1239
229229   AM_RANGE(0xbc0c, 0xbc0c) AM_WRITE(MWA8_NOP)   // ??
230230ADDRESS_MAP_END
231231
232INPUT_PORTS_START( rmhaihai )
232static INPUT_PORTS_START( rmhaihai )
233233   PORT_START  /* dsw2 */
234234   PORT_DIPNAME( 0x01, 0x01, "Unknown 2-1" )
235235   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
341341   PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1)
342342INPUT_PORTS_END
343343
344INPUT_PORTS_START( rmhaihib )
344static INPUT_PORTS_START( rmhaihib )
345345   PORT_START  /* dsw2 */
346346   PORT_DIPNAME( 0x01, 0x01, "Unknown 2-1" )
347347   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
src/mame/drivers/topspeed.c
r1238r1239
535535                    INPUT PORTS, DIPs
536536***********************************************************/
537537
538INPUT_PORTS_START( topspeed )
538static INPUT_PORTS_START( topspeed )
539539   /* 0x880000 (port 0) -> 0x400852 (-$77ae,A5) (shared RAM) */
540540   PORT_START_TAG("DSWA")
541541   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Cabinet ) )
r1238r1239
609609   PORT_CONFSETTING(    0x00, "Analogue" )
610610INPUT_PORTS_END
611611
612INPUT_PORTS_START( fullthrl )
612static INPUT_PORTS_START( fullthrl )
613613   PORT_INCLUDE(topspeed)
614614
615615   PORT_MODIFY("DSWA")
src/mame/drivers/zr107.c
r1238r1239
417417/*****************************************************************************/
418418
419419
420INPUT_PORTS_START( midnrun )
420static INPUT_PORTS_START( midnrun )
421421   PORT_START
422422   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 )      // View switch
423423   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 )      // Shift up
r1238r1239
460460
461461INPUT_PORTS_END
462462
463INPUT_PORTS_START( windheat )
463static INPUT_PORTS_START( windheat )
464464   PORT_START
465465   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 )      // View switch
466466   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 )      // Shift up
r1238r1239
503503
504504INPUT_PORTS_END
505505
506INPUT_PORTS_START( jetwave )
506static INPUT_PORTS_START( jetwave )
507507   PORT_START
508508   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 )
509509   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 )
src/mame/drivers/amspdwy.c
r1238r1239
149149
150150***************************************************************************/
151151
152INPUT_PORTS_START( amspdwy )
152static INPUT_PORTS_START( amspdwy )
153153
154154   PORT_START_TAG("DSW1")
155155   PORT_DIPNAME( 0x01, 0x00, "Character Test" )
r1238r1239
211211INPUT_PORTS_END
212212
213213
214INPUT_PORTS_START( amspdwya )
214static INPUT_PORTS_START( amspdwya )
215215
216216   PORT_INCLUDE(amspdwy)
217217
src/mame/drivers/segae.c
r1238r1239
15421542   PORT_DIPSETTING(    0xa0, DEF_STR( 1C_6C ) )
15431543
15441544
1545INPUT_PORTS_START( transfrm ) /* Used By Transformer */
1545static INPUT_PORTS_START( transfrm ) /* Used By Transformer */
15461546   PORT_START_TAG("DSW0")   /* Read from Port 0xf2 */
15471547   SEGA_COIN_A
15481548   SEGA_COIN_B
r1238r1239
15911591   PORT_BIT( 0x80, IP_ACTIVE_LOW,  IPT_UNUSED )
15921592INPUT_PORTS_END
15931593
1594INPUT_PORTS_START( fantzn2 ) /* Used By Fantasy Zone 2 */
1594static INPUT_PORTS_START( fantzn2 ) /* Used By Fantasy Zone 2 */
15951595   PORT_START_TAG("DSW0")   /* Read from Port 0xf2 */
15961596   SEGA_COIN_A
15971597   SEGA_COIN_B
r1238r1239
16381638   PORT_BIT( 0x80, IP_ACTIVE_LOW,  IPT_UNUSED )
16391639INPUT_PORTS_END
16401640
1641INPUT_PORTS_START( opaopa ) /* Used By Opa Opa */
1641static INPUT_PORTS_START( opaopa ) /* Used By Opa Opa */
16421642   PORT_START_TAG("DSW0")   /* Read from Port 0xf2 */
16431643   SEGA_COIN_A
16441644   SEGA_COIN_B
r1238r1239
16981698INPUT_PORTS_END
16991699
17001700
1701INPUT_PORTS_START( tetrisse ) /* Used By Tetris */
1701static INPUT_PORTS_START( tetrisse ) /* Used By Tetris */
17021702   PORT_START_TAG("DSW0")   /* Read from Port 0xf2 */
17031703   SEGA_COIN_A
17041704   SEGA_COIN_B
r1238r1239
17401740INPUT_PORTS_END
17411741
17421742
1743INPUT_PORTS_START( hangonjr ) /* Used By Hang On Jr */
1743static INPUT_PORTS_START( hangonjr ) /* Used By Hang On Jr */
17441744   PORT_START_TAG("DSW0")   /* Read from Port 0xf2 */
17451745   SEGA_COIN_A
17461746   SEGA_COIN_B
r1238r1239
17901790   PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_MINMAX(0x00,0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(20)
17911791INPUT_PORTS_END
17921792
1793INPUT_PORTS_START( ridleofp ) /* Used By Riddle Of Pythagoras */
1793static INPUT_PORTS_START( ridleofp ) /* Used By Riddle Of Pythagoras */
17941794   PORT_START_TAG("DSW0")   /* Read from Port 0xf2 */
17951795   SEGA_COIN_A
17961796   PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
src/mame/drivers/fantland.c
r1238r1239
381381                                Fantasy Land
382382***************************************************************************/
383383
384INPUT_PORTS_START( fantland )
384static INPUT_PORTS_START( fantland )
385385   PORT_START   /* IN0 - a3000 */
386386   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1         )
387387   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START1         )
r1238r1239
455455                                Galaxy Gunners
456456***************************************************************************/
457457
458INPUT_PORTS_START( galaxygn )
458static INPUT_PORTS_START( galaxygn )
459459   PORT_START   /* IN0 - 53000 */
460460   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1         )
461461   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1         )
r1238r1239
530530                           Born To Fight
531531***************************************************************************/
532532
533INPUT_PORTS_START( borntofi )
533static INPUT_PORTS_START( borntofi )
534534   PORT_START   /* IN0 - 53000 (Lightgun) */
535535   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1   )
536536   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1   )
src/mame/drivers/dominob.c
r1238r1239
160160ADDRESS_MAP_END
161161
162162
163INPUT_PORTS_START( dominob )
163static INPUT_PORTS_START( dominob )
164164   PORT_START_TAG("IN0")
165165   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
166166   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )             /* works (subs 2 credits), but starts a 1 player game as START1 */
src/mame/drivers/ksys573.c
r1238r1239
27452745   MDRV_SOUND_ROUTE( 1, "right", 1.0 )
27462746MACHINE_DRIVER_END
27472747
2748INPUT_PORTS_START( konami573 )
2748static INPUT_PORTS_START( konami573 )
27492749   PORT_START_TAG("IN0")
27502750   PORT_BIT( 0xffffffff, IP_ACTIVE_LOW, IPT_UNKNOWN )
27512751
r1238r1239
28262826   PORT_CONFSETTING( 1, "Game" )
28272827INPUT_PORTS_END
28282828
2829INPUT_PORTS_START( fbaitbc )
2829static INPUT_PORTS_START( fbaitbc )
28302830   PORT_INCLUDE( konami573 )
28312831
28322832   PORT_MODIFY("IN3")
r1238r1239
28402840   PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_PLAYER(1)
28412841INPUT_PORTS_END
28422842
2843INPUT_PORTS_START( fbaitmc )
2843static INPUT_PORTS_START( fbaitmc )
28442844   PORT_INCLUDE( fbaitbc )
28452845
28462846   PORT_START_TAG( "analog0" )
r1238r1239
28502850   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_MINMAX(0x20,0xdf) PORT_SENSITIVITY(30) PORT_KEYDELTA(30) PORT_PLAYER(1)
28512851INPUT_PORTS_END
28522852
2853INPUT_PORTS_START( ddr )
2853static INPUT_PORTS_START( ddr )
28542854   PORT_INCLUDE( konami573 )
28552855
28562856   PORT_MODIFY("IN2")
r1238r1239
28672867   PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_16WAY PORT_PLAYER(2)
28682868INPUT_PORTS_END
28692869
2870INPUT_PORTS_START( ddrsolo )
2870static INPUT_PORTS_START( ddrsolo )
28712871   PORT_INCLUDE( konami573 )
28722872
28732873   PORT_MODIFY("IN2")
r1238r1239
28962896   PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_UNUSED ) /* P2 BUTTON6 */
28972897INPUT_PORTS_END
28982898
2899INPUT_PORTS_START( gtrfrks )
2899static INPUT_PORTS_START( gtrfrks )
29002900   PORT_INCLUDE( konami573 )
29012901
29022902   PORT_MODIFY("IN1")
r1238r1239
29292929   PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_UNUSED ) /* P1 BUTTON6 */
29302930INPUT_PORTS_END
29312931
2932INPUT_PORTS_START( dmx )
2932static INPUT_PORTS_START( dmx )
29332933   PORT_INCLUDE( konami573 )
29342934
29352935   PORT_MODIFY("IN2")
r1238r1239
29572957   PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_UNUSED ) /* P2 BUTTON6 */
29582958INPUT_PORTS_END
29592959
2960INPUT_PORTS_START( drmn )
2960static INPUT_PORTS_START( drmn )
29612961   PORT_INCLUDE( konami573 )
29622962
29632963   PORT_MODIFY("IN1")
src/mame/drivers/atarig1.c
r1238r1239
232232 *
233233 *************************************/
234234
235INPUT_PORTS_START( hydra )
235static INPUT_PORTS_START( hydra )
236236   PORT_START      /* fc0000 */
237237   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON5 )
238238   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
262262INPUT_PORTS_END
263263
264264
265INPUT_PORTS_START( pitfight )
265static INPUT_PORTS_START( pitfight )
266266   PORT_START      /* fc0000 */
267267   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
268268   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
r1238r1239
310310INPUT_PORTS_END
311311
312312
313INPUT_PORTS_START( pitfighj )
313static INPUT_PORTS_START( pitfighj )
314314   PORT_START      /* fc0000 */
315315   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
316316   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
src/mame/drivers/sbrkout.c
r1238r1239
145145 *
146146 *************************************/
147147
148INPUT_PORTS_START( sbrkout )
148static INPUT_PORTS_START( sbrkout )
149149   PORT_START      /* DSW - fake port, gets mapped to Super Breakout ports */
150150   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Language ) )
151151   PORT_DIPSETTING(   0x00, DEF_STR( English ) )
src/mame/drivers/bladestl.c
r1238r1239
160160
161161***************************************************************************/
162162
163INPUT_PORTS_START( bladestl )
163static INPUT_PORTS_START( bladestl )
164164   PORT_START   /* DSW #1 */
165165   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
166166   PORT_DIPSETTING(    0x02, DEF_STR( 4C_1C ) )
r1238r1239
271271   PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(63) PORT_PLAYER(2)
272272INPUT_PORTS_END
273273
274INPUT_PORTS_START( bladstle )
274static INPUT_PORTS_START( bladstle )
275275   PORT_START   /* DSW #1 */
276276   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
277277   PORT_DIPSETTING(    0x02, DEF_STR( 4C_1C ) )
src/mame/drivers/toobin.c
r1238r1239
150150 *
151151 *************************************/
152152
153INPUT_PORTS_START( toobin )
153static INPUT_PORTS_START( toobin )
154154   PORT_START   /* ff8800 */
155155   PORT_BIT(0x0001, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("P2 R Paddle Forward") PORT_CODE(KEYCODE_L) PORT_PLAYER(2)
156156   PORT_BIT(0x0002, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("P2 L Paddle Forward") PORT_CODE(KEYCODE_J) PORT_PLAYER(2)
src/mame/drivers/bwidow.c
r1238r1239
385385 *
386386 *************************************/
387387
388INPUT_PORTS_START( bwidow )
388static INPUT_PORTS_START( bwidow )
389389   PORT_START_TAG("IN0")
390390   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 )   // To fit "Coin B" Dip Switch
391391   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 )   // To fit "Coin A" Dip Switch
r1238r1239
464464INPUT_PORTS_END
465465
466466
467INPUT_PORTS_START( gravitar )
467static INPUT_PORTS_START( gravitar )
468468   PORT_START_TAG("IN0")
469469   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 )   // To fit "Coin B" Dip Switch
470470   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 )   // To fit "Coin A" Dip Switch
r1238r1239
538538INPUT_PORTS_END
539539
540540
541INPUT_PORTS_START( lunarbat )
541static INPUT_PORTS_START( lunarbat )
542542   PORT_START_TAG("IN0")
543543   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 )   // To be similar with other games
544544   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 )   // To be similar with other games
r1238r1239
572572INPUT_PORTS_END
573573
574574
575INPUT_PORTS_START( spacduel )
575static INPUT_PORTS_START( spacduel )
576576   PORT_START_TAG("IN0")
577577   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 )   // To fit "Coin B" Dip Switch
578578   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 )   // To fit "Coin A" Dip Switch
src/mame/drivers/srumbler.c
r1238r1239
129129ADDRESS_MAP_END
130130
131131
132INPUT_PORTS_START( srumbler )
132static INPUT_PORTS_START( srumbler )
133133   PORT_START      /* IN0 */
134134   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
135135   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/legionna.c
r1238r1239
28142814
28152815/*****************************************************************************/
28162816
2817INPUT_PORTS_START( legionna )
2817static INPUT_PORTS_START( legionna )
28182818   SEIBU_COIN_INPUTS   /* Must be port 0: coin inputs read through sound cpu */
28192819
28202820   PORT_START
r1238r1239
29022902INPUT_PORTS_END
29032903
29042904
2905INPUT_PORTS_START( heatbrl )
2905static INPUT_PORTS_START( heatbrl )
29062906   SEIBU_COIN_INPUTS   /* Must be port 0: coin inputs read through sound cpu */
29072907
29082908   PORT_START
r1238r1239
30063006INPUT_PORTS_END
30073007
30083008
3009INPUT_PORTS_START( godzilla )
3009static INPUT_PORTS_START( godzilla )
30103010   SEIBU_COIN_INPUTS   /* Must be port 0: coin inputs read through sound cpu */
30113011
30123012   PORT_START
r1238r1239
31043104   PORT_BIT( 0x8000, IP_ACTIVE_LOW,  IPT_UNKNOWN )
31053105INPUT_PORTS_END
31063106
3107INPUT_PORTS_START( sdgndmrb )
3107static INPUT_PORTS_START( sdgndmrb )
31083108   SEIBU_COIN_INPUTS   /* Must be port 0: coin inputs read through sound cpu */
31093109
31103110   PORT_START
r1238r1239
32493249   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
32503250INPUT_PORTS_END
32513251
3252INPUT_PORTS_START( cupsoc )
3252static INPUT_PORTS_START( cupsoc )
32533253   SEIBU_COIN_INPUTS   /* Must be port 0: coin inputs read through sound cpu */
32543254
32553255   PORT_START
src/mame/drivers/midas.c
r1238r1239
289289GFXDECODE_END
290290
291291
292INPUT_PORTS_START( livequiz )
292static INPUT_PORTS_START( livequiz )
293293
294294   PORT_START   // IN0
295295   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/ampoker.c
r1238r1239
8989//  AM_RANGE(0x30, 0x39) AM_WRITENOP
9090ADDRESS_MAP_END
9191
92INPUT_PORTS_START( ampoker2 )
92static INPUT_PORTS_START( ampoker2 )
9393   PORT_START_TAG("IN0")
9494   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Bit 0") PORT_CODE(KEYCODE_Q)
9595   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Bit 1") PORT_CODE(KEYCODE_W)
src/mame/drivers/mcr68.c
r1238r1239
393393 *
394394 *************************************/
395395
396INPUT_PORTS_START( zwackery )
396static INPUT_PORTS_START( zwackery )
397397   PORT_START_TAG("IN0")
398398   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
399399   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
450450INPUT_PORTS_END
451451
452452
453INPUT_PORTS_START( xenophob )
453static INPUT_PORTS_START( xenophob )
454454   PORT_START_TAG("IN0")
455455   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
456456   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
509509INPUT_PORTS_END
510510
511511
512INPUT_PORTS_START( spyhunt2 )
512static INPUT_PORTS_START( spyhunt2 )
513513   PORT_START_TAG("IN0")
514514   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
515515   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
577577INPUT_PORTS_END
578578
579579
580INPUT_PORTS_START( blasted )
580static INPUT_PORTS_START( blasted )
581581   PORT_START_TAG("IN0")
582582   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
583583   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
630630INPUT_PORTS_END
631631
632632
633INPUT_PORTS_START( archrivl )
633static INPUT_PORTS_START( archrivl )
634634   PORT_START_TAG("IN0")
635635   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
636636   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
690690INPUT_PORTS_END
691691
692692
693INPUT_PORTS_START( pigskin )
693static INPUT_PORTS_START( pigskin )
694694   PORT_START_TAG("IN0")
695695   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
696696   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
756756INPUT_PORTS_END
757757
758758
759INPUT_PORTS_START( trisport )
759static INPUT_PORTS_START( trisport )
760760   PORT_START_TAG("IN0")
761761   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
762762   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/pbaction.c
r1238r1239
115115ADDRESS_MAP_END
116116
117117
118INPUT_PORTS_START( pbaction )
118static INPUT_PORTS_START( pbaction )
119119   PORT_START   /* IN0 */
120120   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON3 )
121121   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN )
src/mame/drivers/funworld.c
r1238r1239
870870*      Input ports       *
871871*************************/
872872
873INPUT_PORTS_START( funworld )
873static INPUT_PORTS_START( funworld )
874874   PORT_START_TAG("IN0")
875875   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE )   PORT_NAME("Remote") PORT_CODE(KEYCODE_Q)
876876   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )   PORT_NAME("Halten (Hold) 1") PORT_CODE(KEYCODE_Z)
r1238r1239
932932   PORT_DIPSETTING(    0x80, "Manual Payout SW" )
933933INPUT_PORTS_END
934934
935INPUT_PORTS_START( jolycdcr )
935static INPUT_PORTS_START( jolycdcr )
936936   PORT_START_TAG("IN0")
937937   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE )   PORT_NAME("Navijanje (Remote)") PORT_CODE(KEYCODE_Q)
938938   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )   PORT_NAME("Stop (Hold) 1") PORT_CODE(KEYCODE_Z)
r1238r1239
994994   PORT_DIPSETTING(    0x80, "Manual Payout SW" )
995995INPUT_PORTS_END
996996
997INPUT_PORTS_START( jolycdit )
997static INPUT_PORTS_START( jolycdit )
998998   PORT_START_TAG("IN0")
999999   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE )   PORT_NAME("Remote") PORT_CODE(KEYCODE_Q)
10001000   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )   PORT_NAME("Stop (Hold) 1 / Alta (High)") PORT_CODE(KEYCODE_Z)
r1238r1239
10551055   PORT_DIPSETTING(    0x80, "Manual Payout SW" )
10561056INPUT_PORTS_END
10571057
1058INPUT_PORTS_START( bigdeal )
1058static INPUT_PORTS_START( bigdeal )
10591059   PORT_START_TAG("IN0")
10601060   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Remote") PORT_CODE(KEYCODE_Q)
10611061   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Hold 1") PORT_CODE(KEYCODE_Z)
r1238r1239
11181118   PORT_DIPSETTING(    0x80, "Manual Payout SW" )
11191119INPUT_PORTS_END
11201120
1121INPUT_PORTS_START( magiccrd )
1121static INPUT_PORTS_START( magiccrd )
11221122   PORT_START_TAG("IN0")
11231123   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Remote") PORT_CODE(KEYCODE_Q)
11241124   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Hold 1") PORT_CODE(KEYCODE_Z)
r1238r1239
11801180   PORT_DIPSETTING(    0x80, "Manual Payout SW" )
11811181INPUT_PORTS_END
11821182
1183INPUT_PORTS_START( royalcrd )
1183static INPUT_PORTS_START( royalcrd )
11841184   PORT_START_TAG("IN0")
11851185   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Remote") PORT_CODE(KEYCODE_Q)
11861186   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Halten (Hold) 1 / Hoch (High)") PORT_CODE(KEYCODE_Z)
r1238r1239
12421242   PORT_DIPSETTING(    0x80, "Manual Payout SW" )
12431243INPUT_PORTS_END
12441244
1245INPUT_PORTS_START( cuoreuno )
1245static INPUT_PORTS_START( cuoreuno )
12461246   PORT_START_TAG("IN0")
12471247   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
12481248   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Stop 1 / Switch Bet (1-Max)") PORT_CODE(KEYCODE_Z)
r1238r1239
13041304   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
13051305INPUT_PORTS_END
13061306
1307INPUT_PORTS_START( snookr10 )
1307static INPUT_PORTS_START( snookr10 )
13081308INPUT_PORTS_END
13091309
13101310
src/mame/drivers/overdriv.c
r1238r1239
340340
341341
342342
343INPUT_PORTS_START( overdriv )
343static INPUT_PORTS_START( overdriv )
344344   PORT_START
345345   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_TOGGLE
346346   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
src/mame/drivers/thunderx.c
r1238r1239
463463
464464***************************************************************************/
465465
466INPUT_PORTS_START( scontra )
466static INPUT_PORTS_START( scontra )
467467   PORT_START   /* COINSW */
468468   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
469469   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
567567   PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )
568568INPUT_PORTS_END
569569
570INPUT_PORTS_START( thunderx )
570static INPUT_PORTS_START( thunderx )
571571   PORT_START   /* IN0 */
572572   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
573573   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/jackpool.c
r1238r1239
122122
123123
124124
125INPUT_PORTS_START( jackpool )
125static INPUT_PORTS_START( jackpool )
126126INPUT_PORTS_END
127127
128128
src/mame/drivers/spcforce.c
r1238r1239
122122ADDRESS_MAP_END
123123
124124
125INPUT_PORTS_START( spcforce )
125static INPUT_PORTS_START( spcforce )
126126   PORT_START      /* DSW */
127127   PORT_DIPNAME( 0x03, 0x02, DEF_STR( Coin_A ) )
128128   PORT_DIPSETTING(    0x00, DEF_STR( 2C_1C ) )
r1238r1239
169169INPUT_PORTS_END
170170
171171/* same as spcforce, but no cocktail mode */
172INPUT_PORTS_START( spcforc2 )
172static INPUT_PORTS_START( spcforc2 )
173173   PORT_START      /* DSW */
174174   PORT_DIPNAME( 0x03, 0x02, DEF_STR( Coin_A ) )
175175   PORT_DIPSETTING(    0x00, DEF_STR( 2C_1C ) )
src/mame/drivers/gsword.c
r1238r1239
441441
442442ADDRESS_MAP_END
443443
444INPUT_PORTS_START( gsword )
444static INPUT_PORTS_START( gsword )
445445   PORT_START   /* IN0 (8741-2 port1?) */
446446   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
447447   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 )
r1238r1239
551551   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
552552INPUT_PORTS_END
553553
554INPUT_PORTS_START( josvolly )
554static INPUT_PORTS_START( josvolly )
555555   PORT_START   /* IN0 */
556556   PORT_BIT( 0x01, IP_ACTIVE_LOW , IPT_START2 )
557557   PORT_BIT( 0x02, IP_ACTIVE_LOW , IPT_START1 )
src/mame/drivers/nmg5.c
r1238r1239
351351   AM_RANGE(0x1c, 0x1c) AM_READWRITE(OKIM6295_status_0_r, OKIM6295_data_0_w)
352352ADDRESS_MAP_END
353353
354INPUT_PORTS_START( nmg5 )
354static INPUT_PORTS_START( nmg5 )
355355   PORT_START_TAG("DSW")
356356   PORT_DIPNAME( 0x0001, 0x0001, "Game Title" )            PORT_DIPLOCATION("SW1:8")
357357   PORT_DIPSETTING(      0x0001, "Multi 5" )
r1238r1239
426426   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 )
427427INPUT_PORTS_END
428428
429INPUT_PORTS_START( searchey )
429static INPUT_PORTS_START( searchey )
430430   PORT_START
431431   PORT_DIPNAME( 0x0003, 0x0003, "Timer Speed" )           PORT_DIPLOCATION("SW1:8,7")
432432   PORT_DIPSETTING(      0x0003, "Slowest" )
r1238r1239
486486   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 )
487487INPUT_PORTS_END
488488
489INPUT_PORTS_START( searchp2 )
489static INPUT_PORTS_START( searchp2 )
490490   PORT_START
491491   PORT_DIPNAME( 0x0003, 0x0003, "Timer Speed" )           PORT_DIPLOCATION("SW1:8,7")
492492   PORT_DIPSETTING(      0x0003, "Slowest" )
r1238r1239
553553   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 )
554554INPUT_PORTS_END
555555
556INPUT_PORTS_START( pclubys )
556static INPUT_PORTS_START( pclubys )
557557   PORT_START
558558   PORT_DIPNAME( 0x0001, 0x0000, "Lives (Mad Ball)" )      PORT_DIPLOCATION("SW1:8")
559559   PORT_DIPSETTING(      0x0000, "3" )
r1238r1239
616616   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 )
617617INPUT_PORTS_END
618618
619INPUT_PORTS_START( garogun )
619static INPUT_PORTS_START( garogun )
620620   PORT_START
621621   PORT_DIPNAME( 0x0003, 0x0003, "Helps" )                 PORT_DIPLOCATION("SW1:8,7")
622622   PORT_DIPSETTING(      0x0000, "1" )
r1238r1239
665665INPUT_PORTS_END
666666
667667
668INPUT_PORTS_START( 7ordi )
668static INPUT_PORTS_START( 7ordi )
669669   PORT_START_TAG("DSW")
670670   PORT_DIPNAME( 0x0001, 0x0001, "High-Low Error" )        PORT_DIPLOCATION("SW1:8")
671671   PORT_DIPSETTING(      0x0001, "-500" )
r1238r1239
733733   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_SERVICE1 )
734734INPUT_PORTS_END
735735
736INPUT_PORTS_START( wondstck )
736static INPUT_PORTS_START( wondstck )
737737   PORT_START_TAG("DSW")
738738   PORT_DIPUNUSED_DIPLOC( 0x0001, IP_ACTIVE_LOW, "SW1:8" )
739739   PORT_DIPUNUSED_DIPLOC( 0x0002, IP_ACTIVE_LOW, "SW1:7" )
src/mame/drivers/mario.c
r1238r1239
226226
227227
228228
229INPUT_PORTS_START( mario )
229static INPUT_PORTS_START( mario )
230230   PORT_START_TAG("IN0")
231231   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1)
232232   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1)
r1238r1239
270270   PORT_DIPSETTING(    0xc0, DEF_STR( Hardest ) )
271271INPUT_PORTS_END
272272
273INPUT_PORTS_START( marioo )
273static INPUT_PORTS_START( marioo )
274274   PORT_INCLUDE( mario )
275275
276276   PORT_MODIFY( "IN1" )
r1238r1239
278278   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_COIN1 )
279279INPUT_PORTS_END
280280
281INPUT_PORTS_START( marioj )
281static INPUT_PORTS_START( marioj )
282282   PORT_INCLUDE( mario )
283283
284284   PORT_MODIFY( "DSW" )
r1238r1239
306306   PORT_DIPSETTING(    0xc0, DEF_STR( None ) )
307307INPUT_PORTS_END
308308
309INPUT_PORTS_START( masao )
309static INPUT_PORTS_START( masao )
310310   PORT_INCLUDE( marioo )
311311
312312   PORT_MODIFY( "DSW" )
src/mame/drivers/xmen.c
r1238r1239
321321
322322
323323
324INPUT_PORTS_START( xmen )
324static INPUT_PORTS_START( xmen )
325325   PORT_START   /* IN1 */
326326   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
327327   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)
r1238r1239
371371   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* unused? */
372372INPUT_PORTS_END
373373
374INPUT_PORTS_START( xmen6p )
374static INPUT_PORTS_START( xmen6p )
375375   PORT_START   /* IN1 */
376376   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
377377   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)
r1238r1239
441441   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN6 )
442442INPUT_PORTS_END
443443
444INPUT_PORTS_START( xmen2p )
444static INPUT_PORTS_START( xmen2p )
445445   PORT_START   /* IN1 */
446446   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
447447   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)
src/mame/drivers/atarifb.c
r1238r1239
197197 *
198198 *************************************/
199199
200INPUT_PORTS_START( atarifb )
200static INPUT_PORTS_START( atarifb )
201201   PORT_START_TAG("IN0")
202202   PORT_BIT ( 0x0F, IP_ACTIVE_HIGH, IPT_UNKNOWN )
203203   PORT_BIT ( 0x10, IP_ACTIVE_LOW,  IPT_BUTTON1 )
r1238r1239
240240INPUT_PORTS_END
241241
242242
243INPUT_PORTS_START( atarifb4 )
243static INPUT_PORTS_START( atarifb4 )
244244   PORT_START_TAG("IN0")
245245   PORT_BIT ( 0xff, IP_ACTIVE_LOW,  IPT_UNKNOWN )
246246
r1238r1239
303303INPUT_PORTS_END
304304
305305
306INPUT_PORTS_START( abaseb )
306static INPUT_PORTS_START( abaseb )
307307   PORT_START_TAG("IN0")
308308   PORT_BIT ( 0x0F, IP_ACTIVE_HIGH, IPT_UNKNOWN )
309309   PORT_BIT ( 0x10, IP_ACTIVE_LOW,  IPT_BUTTON1 )
r1238r1239
346346INPUT_PORTS_END
347347
348348
349INPUT_PORTS_START( soccer )
349static INPUT_PORTS_START( soccer )
350350   PORT_START_TAG("IN0")
351351   PORT_BIT ( 0xff, IP_ACTIVE_LOW,  IPT_UNKNOWN )
352352
src/mame/drivers/silkroad.c
r1238r1239
258258ADDRESS_MAP_END
259259
260260
261INPUT_PORTS_START( silkroad )
261static INPUT_PORTS_START( silkroad )
262262   PORT_START   /* Players inputs */
263263   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED )
264264   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)
src/mame/drivers/wink.c
r1238r1239
136136   AM_RANGE(0x80, 0x80) AM_WRITE(AY8910_control_port_0_w)
137137ADDRESS_MAP_END
138138
139INPUT_PORTS_START( wink )
139static INPUT_PORTS_START( wink )
140140   PORT_START
141141   PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(50) PORT_KEYDELTA(3) PORT_REVERSE
142142
src/mame/drivers/lethal.c
r1238r1239
514514
515515/* sound */
516516
517INPUT_PORTS_START( lethalen )
517static INPUT_PORTS_START( lethalen )
518518   /* IN 0 */
519519   PORT_START
520520   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
r1238r1239
562562   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, -1.0, 0.0, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_PLAYER(2)
563563INPUT_PORTS_END
564564
565INPUT_PORTS_START( lethalej )
565static INPUT_PORTS_START( lethalej )
566566   /* IN 0 */
567567   PORT_START
568568   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
src/mame/drivers/videopin.c
r1238r1239
231231 *
232232 *************************************/
233233
234INPUT_PORTS_START( videopin )
234static INPUT_PORTS_START( videopin )
235235   PORT_START      /* IN0 */
236236   PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
237237   PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/exprraid.c
r1238r1239
147147ADDRESS_MAP_END
148148
149149
150INPUT_PORTS_START( exprraid )
150static INPUT_PORTS_START( exprraid )
151151   PORT_START /* IN 0 - 0x3800 */
152152   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_VBLANK )
153153
src/mame/drivers/tecmo16.c
r1238r1239
167167
168168/******************************************************************************/
169169
170INPUT_PORTS_START( fstarfrc )
170static INPUT_PORTS_START( fstarfrc )
171171   PORT_START         /* DIP SW 1 */
172172   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) )      PORT_DIPLOCATION("SW1:1,2")
173173   PORT_DIPSETTING(    0x03, DEF_STR( 1C_1C ) )
r1238r1239
233233   PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_COIN2 )
234234INPUT_PORTS_END
235235
236INPUT_PORTS_START( ginkun )
236static INPUT_PORTS_START( ginkun )
237237   PORT_START         /* DIP SW 1 */
238238   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) )      PORT_DIPLOCATION("SW1:8,7")
239239   PORT_DIPSETTING(    0x03, DEF_STR( 1C_1C ) )
r1238r1239
304304   /* Not used */
305305INPUT_PORTS_END
306306
307INPUT_PORTS_START( riot )
307static INPUT_PORTS_START( riot )
308308   PORT_START         /* DIP SW 1 */
309309   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) )      PORT_DIPLOCATION("SW1:1,2,3")
310310   PORT_DIPSETTING(    0x00, DEF_STR( 5C_1C ) )
src/mame/drivers/2mindril.c
r1238r1239
143143   AM_RANGE(0x60000e, 0x60000f) AM_READ(MRA16_NOP) AM_WRITE(MWA16_NOP)
144144ADDRESS_MAP_END
145145
146INPUT_PORTS_START( drill )
146static INPUT_PORTS_START( drill )
147147INPUT_PORTS_END
148148
149149static const gfx_layout drill_layout =
src/mame/drivers/csk.c
r1238r1239
235235
236236/* MB: 05 Jun 99  Input ports and Dip switches are all verified! */
237237
238INPUT_PORTS_START( csk227 )
238static INPUT_PORTS_START( csk227 )
239239
240240   PORT_START_TAG("DSW1")
241241   PORT_DIPNAME( 0x01, 0x01, "Demo Music" )
r1238r1239
395395INPUT_PORTS_END
396396
397397
398INPUT_PORTS_START( csk234 )
398static INPUT_PORTS_START( csk234 )
399399
400400   PORT_START_TAG("DSW1")
401401   PORT_DIPNAME( 0x01, 0x01, "Demo Music" )
src/mame/drivers/naughtyb.c
r1238r1239
221221      cpunum_set_input_line(0, INPUT_LINE_NMI, PULSE_LINE);
222222}
223223
224INPUT_PORTS_START( naughtyb )
224static INPUT_PORTS_START( naughtyb )
225225   PORT_START_TAG(   "IN0" )
226226   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
227227   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
276276   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK )
277277INPUT_PORTS_END
278278
279INPUT_PORTS_START( trvmstr )
279static INPUT_PORTS_START( trvmstr )
280280   PORT_START_TAG(   "IN0" )
281281   PORT_SERVICE(0x0f, IP_ACTIVE_LOW )
282282   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON4 )
src/mame/drivers/runaway.c
r1238r1239
117117ADDRESS_MAP_END
118118
119119
120INPUT_PORTS_START( qwak )
120static INPUT_PORTS_START( qwak )
121121   PORT_START   /* 3000 D7 */
122122   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
123123   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_VBLANK )
r1238r1239
169169INPUT_PORTS_END
170170
171171
172INPUT_PORTS_START( runaway )
172static INPUT_PORTS_START( runaway )
173173   PORT_START /* 3000 D7 */
174174   PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
175175   PORT_BIT ( 0x02, IP_ACTIVE_HIGH, IPT_VBLANK )
src/mame/drivers/taitowlf.c
r1238r1239
362362#define AT_KEYB_HELPER(bit, text, key1) \
363363   PORT_BIT( bit, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME(text) PORT_CODE(key1)
364364
365INPUT_PORTS_START(taitowlf)
365static INPUT_PORTS_START(taitowlf)
366366   PORT_START_TAG("pc_keyboard_0")
367367   PORT_BIT ( 0x0001, 0x0000, IPT_UNUSED )    /* unused scancode 0 */
368368   AT_KEYB_HELPER( 0x0002, "Esc",          KEYCODE_Q           ) /* Esc                         01  81 */
src/mame/drivers/toypop.c
r1238r1239
356356
357357
358358
359INPUT_PORTS_START( liblrabl )
359static INPUT_PORTS_START( liblrabl )
360360   /* The inputs are not memory mapped, they are handled by three I/O chips. */
361361   PORT_START   /* 58XX #0 pins 22-29 */
362362   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_8WAY
r1238r1239
446446   PORT_SERVICE( 0x08, IP_ACTIVE_LOW )
447447INPUT_PORTS_END
448448
449INPUT_PORTS_START( toypop )
449static INPUT_PORTS_START( toypop )
450450   /* The inputs are not memory mapped, they are handled by three I/O chips. */
451451   PORT_START   /* 58XX #0 pins 22-29 */
452452   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
src/mame/drivers/tumbleb.c
r1238r1239
958958
959959/******************************************************************************/
960960
961INPUT_PORTS_START( tumblepb )
961static INPUT_PORTS_START( tumblepb )
962962   PORT_START   /* Player 1 controls */
963963   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
964964   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
10481048   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
10491049INPUT_PORTS_END
10501050
1051INPUT_PORTS_START( metlsavr )
1051static INPUT_PORTS_START( metlsavr )
10521052   PORT_START   /* Player 1 controls */
10531053   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
10541054   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
11231123   PORT_DIPSETTING(    0x00, "80 Seconds" )
11241124INPUT_PORTS_END
11251125
1126INPUT_PORTS_START( suprtrio )
1126static INPUT_PORTS_START( suprtrio )
11271127   PORT_START
11281128   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
11291129   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
11711171   PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
11721172INPUT_PORTS_END
11731173
1174INPUT_PORTS_START( htchctch )
1174static INPUT_PORTS_START( htchctch )
11751175   PORT_START   /* Player 1 controls */
11761176   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
11771177   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
12361236   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
12371237INPUT_PORTS_END
12381238
1239INPUT_PORTS_START( cookbib )
1239static INPUT_PORTS_START( cookbib )
12401240   PORT_START   /* Player 1 controls */
12411241   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
12421242   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
13021302   PORT_SERVICE( 0x01, IP_ACTIVE_LOW )
13031303INPUT_PORTS_END
13041304
1305INPUT_PORTS_START( chokchok )
1305static INPUT_PORTS_START( chokchok )
13061306   PORT_START   /* Player 1 controls */
13071307   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
13081308   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
13801380   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
13811381INPUT_PORTS_END
13821382
1383INPUT_PORTS_START( fncywld )
1383static INPUT_PORTS_START( fncywld )
13841384   PORT_START   /* Player 1 controls */
13851385   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
13861386   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
14711471   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
14721472INPUT_PORTS_END
14731473
1474INPUT_PORTS_START( bcstory )
1474static INPUT_PORTS_START( bcstory )
14751475   PORT_START   /* Player 1 controls */
14761476   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
14771477   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
15451545   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
15461546INPUT_PORTS_END
15471547
1548INPUT_PORTS_START( semibase )
1548static INPUT_PORTS_START( semibase )
15491549   PORT_START   /* Player 1 controls */
15501550   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
15511551   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
16191619   PORT_DIPSETTING(    0x80, "6 Credits" )
16201620INPUT_PORTS_END
16211621
1622INPUT_PORTS_START( sdfight )
1622static INPUT_PORTS_START( sdfight )
16231623   PORT_START   /* Player 1 controls */
16241624   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
16251625   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
17001700   PORT_DIPSETTING(    0x00, "90" )
17011701INPUT_PORTS_END
17021702
1703INPUT_PORTS_START( wlstar )
1703static INPUT_PORTS_START( wlstar )
17041704   PORT_START   /* Player 1 controls */
17051705   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
17061706   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
17821782    PORT_DIPSETTING(      0x00, DEF_STR( On ) )
17831783INPUT_PORTS_END
17841784
1785INPUT_PORTS_START( dquizgo )
1785static INPUT_PORTS_START( dquizgo )
17861786   PORT_START   /* Player 1 controls */
17871787   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
17881788   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
18531853   PORT_DIPSETTING(    0x80, "5" )
18541854INPUT_PORTS_END
18551855
1856INPUT_PORTS_START( jumppop )
1856static INPUT_PORTS_START( jumppop )
18571857   PORT_START   /* Controls */
18581858   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
18591859   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/micro3d.c
r1238r1239
215215       rom[0x28C3B]=0x4E71;
216216}
217217
218INPUT_PORTS_START( stankatk )
218static INPUT_PORTS_START( stankatk )
219219   /* Ports A and B */
220220   PORT_START
221221   PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Unused ) )
r1238r1239
286286
287287INPUT_PORTS_END
288288
289INPUT_PORTS_START( botss )
289static INPUT_PORTS_START( botss )
290290   PORT_START
291291   PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Unused ) )
292292   PORT_DIPSETTING(   0x0001, DEF_STR(Off) )
r1238r1239
338338INPUT_PORTS_END
339339
340340
341INPUT_PORTS_START( f15se )
341static INPUT_PORTS_START( f15se )
342342   PORT_START
343343   PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Unused ) )
344344   PORT_DIPSETTING(   0x0001, DEF_STR(Off) )
src/mame/drivers/momoko.c
r1238r1239
112112
113113/****************************************************************************/
114114
115INPUT_PORTS_START( momoko )
115static INPUT_PORTS_START( momoko )
116116    PORT_START_TAG("IN0")
117117    PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 )
118118    PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 )
src/mame/drivers/kchamp.c
r1238r1239
246246ADDRESS_MAP_END
247247
248248
249INPUT_PORTS_START( kchampvs )
249static INPUT_PORTS_START( kchampvs )
250250   PORT_START   /* IN0 */
251251   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT ) PORT_4WAY
252252   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT ) PORT_4WAY
r1238r1239
306306* 1 Player Version  *
307307********************/
308308
309INPUT_PORTS_START( kchamp )
309static INPUT_PORTS_START( kchamp )
310310   PORT_START   /* IN0 */
311311   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT ) PORT_4WAY
312312   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT ) PORT_4WAY
src/mame/drivers/olibochu.c
r1238r1239
220220
221221
222222
223INPUT_PORTS_START( olibochu )
223static INPUT_PORTS_START( olibochu )
224224   PORT_START_TAG("IN0")
225225   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
226226   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/ultratnk.c
r1238r1239
182182ADDRESS_MAP_END
183183
184184
185INPUT_PORTS_START( ultratnk )
185static INPUT_PORTS_START( ultratnk )
186186
187187   PORT_START_TAG("IN0")
188188   PORT_SERVICE( 0x40, IP_ACTIVE_LOW )
src/mame/drivers/m90.c
r1238r1239
160160/*****************************************************************************/
161161
162162
163INPUT_PORTS_START( hasamu )
163static INPUT_PORTS_START( hasamu )
164164   IREM_JOYSTICKS_1_2
165165
166166   IREM_COINS
r1238r1239
207207//  IREM_COIN_MODE_2
208208INPUT_PORTS_END
209209
210INPUT_PORTS_START( dynablst )
210static INPUT_PORTS_START( dynablst )
211211   IREM_JOYSTICKS_1_2
212212
213213   IREM_COINS
r1238r1239
253253   IREM_JOYSTICKS_3_4
254254INPUT_PORTS_END
255255
256INPUT_PORTS_START( atompunk )
256static INPUT_PORTS_START( atompunk )
257257   PORT_INCLUDE(dynablst)
258258
259259   PORT_MODIFY("DSW")
r1238r1239
262262   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
263263INPUT_PORTS_END
264264
265INPUT_PORTS_START( bombrman ) /* Does not appear to support 4 players or cocktail mode */
265static INPUT_PORTS_START( bombrman ) /* Does not appear to support 4 players or cocktail mode */
266266   IREM_JOYSTICKS_1_2
267267
268268   IREM_COINS
r1238r1239
307307//  IREM_COIN_MODE_2
308308INPUT_PORTS_END
309309
310INPUT_PORTS_START( bbmanw )
310static INPUT_PORTS_START( bbmanw )
311311   IREM_JOYSTICKS_1_2
312312
313313   IREM_COINS
r1238r1239
353353   IREM_JOYSTICKS_3_4
354354INPUT_PORTS_END
355355
356INPUT_PORTS_START( bbmanwj )
356static INPUT_PORTS_START( bbmanwj )
357357   PORT_INCLUDE(bbmanw)
358358
359359   PORT_MODIFY("DSW")
r1238r1239
362362   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
363363INPUT_PORTS_END
364364
365INPUT_PORTS_START( quizf1 )
365static INPUT_PORTS_START( quizf1 )
366366   PORT_START
367367   PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
368368   PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
424424//  IREM_COIN_MODE_2
425425INPUT_PORTS_END
426426
427INPUT_PORTS_START( matchit2 )
427static INPUT_PORTS_START( matchit2 )
428428   PORT_START
429429   PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
430430   PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
491491//  IREM_COIN_MODE_2
492492INPUT_PORTS_END
493493
494INPUT_PORTS_START( shisen2 )
494static INPUT_PORTS_START( shisen2 )
495495   PORT_START
496496   PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
497497   PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
560560//  IREM_COIN_MODE_2
561561INPUT_PORTS_END
562562
563INPUT_PORTS_START( riskchal )
563static INPUT_PORTS_START( riskchal )
564564   IREM_JOYSTICKS_1_2
565565
566566   IREM_COINS
src/mame/drivers/tugboat.c
r1238r1239
208208ADDRESS_MAP_END
209209
210210
211INPUT_PORTS_START( tugboat )
211static INPUT_PORTS_START( tugboat )
212212   PORT_START
213213   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
214214   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
279279   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
280280INPUT_PORTS_END
281281
282INPUT_PORTS_START( noahsark )
282static INPUT_PORTS_START( noahsark )
283283   PORT_START
284284   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
285285   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/gunbustr.c
r1238r1239
220220             INPUT PORTS (dips in eprom)
221221***********************************************************/
222222
223INPUT_PORTS_START( gunbustr )
223static INPUT_PORTS_START( gunbustr )
224224   PORT_START      /* IN0 */
225225   PORT_BIT( 0x0001, IP_ACTIVE_LOW,  IPT_UNKNOWN )
226226   PORT_BIT( 0x0002, IP_ACTIVE_LOW,  IPT_UNKNOWN )
src/mame/drivers/scotrsht.c
r1238r1239
7676   AM_RANGE(0x01, 0x01) AM_WRITE(YM2203_write_port_0_w)
7777ADDRESS_MAP_END
7878
79INPUT_PORTS_START( scotrsht )
79static INPUT_PORTS_START( scotrsht )
8080   PORT_START   /* IN0 - $3300 */
8181   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
8282   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/taito_z.c
r1238r1239
19581958   PORT_DIPSETTING(    0x00, DEF_STR( Hardest ) )
19591959
19601960
1961INPUT_PORTS_START( contcirc )
1961static INPUT_PORTS_START( contcirc )
19621962   PORT_START_TAG("DSW1") /* DSW A */
19631963   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) )
19641964   PORT_DIPSETTING(    0x01, DEF_STR( Upright ) )
r1238r1239
20292029   PORT_DIPSETTING(    0x00, "Analogue" )
20302030INPUT_PORTS_END
20312031
2032INPUT_PORTS_START( contcrcu )
2032static INPUT_PORTS_START( contcrcu )
20332033   PORT_INCLUDE(contcirc)
20342034
20352035   PORT_MODIFY("DSW1")
20362036   TAITO_Z_COINAGE_JAPAN_8      // confirmed
20372037INPUT_PORTS_END
20382038
2039INPUT_PORTS_START( chasehq )   // IN3-6 perhaps used with cockpit setup? //
2039static INPUT_PORTS_START( chasehq )   // IN3-6 perhaps used with cockpit setup? //
20402040   PORT_START_TAG("DSW1") /* DSW A */
20412041   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Cabinet ) )   /* US Manual states DIPS 1 & 2 "MUST REMAIN OFF" */
20422042   PORT_DIPSETTING(    0x03, "Upright / Steering Lock" )
r1238r1239
21422142   PORT_DIPSETTING(    0x00, "Analogue" )
21432143INPUT_PORTS_END
21442144
2145INPUT_PORTS_START( chasehqj )
2145static INPUT_PORTS_START( chasehqj )
21462146   PORT_INCLUDE(chasehq)
21472147
21482148   PORT_MODIFY("DSW1")
21492149   TAITO_Z_COINAGE_JAPAN_8
21502150INPUT_PORTS_END
21512151
2152INPUT_PORTS_START( enforce )
2152static INPUT_PORTS_START( enforce )
21532153   PORT_START /* DSW A */
21542154   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
21552155   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
r1238r1239
22052205   PORT_BIT( 0x80, IP_ACTIVE_LOW,  IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
22062206INPUT_PORTS_END
22072207
2208INPUT_PORTS_START( bshark )
2208static INPUT_PORTS_START( bshark )
22092209   PORT_START_TAG("DSW1") /* DSW A */
22102210   PORT_DIPNAME( 0x01, 0x01, "Mirror screen" )   // manual says first two must be off
22112211   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
22742274   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
22752275INPUT_PORTS_END
22762276
2277INPUT_PORTS_START( bsharkj )
2277static INPUT_PORTS_START( bsharkj )
22782278   PORT_INCLUDE(bshark)
22792279
22802280   PORT_MODIFY("DSW1")
22812281   TAITO_Z_COINAGE_JAPAN_8
22822282INPUT_PORTS_END
22832283
2284INPUT_PORTS_START( sci )
2284static INPUT_PORTS_START( sci )
22852285   PORT_START_TAG("DSW1") /* DSW A */
22862286   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
22872287   PORT_DIPSETTING(    0x01, "Cockpit" )
r1238r1239
23482348   PORT_DIPSETTING(    0x00, "Analogue" )
23492349INPUT_PORTS_END
23502350
2351INPUT_PORTS_START( sciu )
2351static INPUT_PORTS_START( sciu )
23522352   PORT_INCLUDE(sci)
23532353
23542354   PORT_MODIFY("DSW1")
23552355   TAITO_Z_COINAGE_US_8
23562356INPUT_PORTS_END
23572357
2358INPUT_PORTS_START( scij )
2358static INPUT_PORTS_START( scij )
23592359   PORT_INCLUDE(sci)
23602360
23612361   PORT_MODIFY("DSW1")
23622362   TAITO_Z_COINAGE_JAPAN_8
23632363INPUT_PORTS_END
23642364
2365INPUT_PORTS_START( nightstr )
2365static INPUT_PORTS_START( nightstr )
23662366   PORT_START /* DSW A */
23672367   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
23682368   PORT_DIPSETTING(    0x01, "Cockpit" )
r1238r1239
24302430   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
24312431INPUT_PORTS_END
24322432
2433INPUT_PORTS_START( aquajack )
2433static INPUT_PORTS_START( aquajack )
24342434   PORT_START_TAG("DSW1") /* DSW A */
24352435   PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) )
24362436   PORT_DIPSETTING(    0x80, "Cockpit" )
r1238r1239
25002500   PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(50) PORT_KEYDELTA(10) PORT_PLAYER(1)
25012501INPUT_PORTS_END
25022502
2503INPUT_PORTS_START( aquajckj )
2503static INPUT_PORTS_START( aquajckj )
25042504   PORT_INCLUDE(aquajack)
25052505
25062506   PORT_MODIFY("DSW1")
r1238r1239
25162516   PORT_DIPSETTING(    0x01, DEF_STR( 1C_2C ) )
25172517INPUT_PORTS_END
25182518
2519INPUT_PORTS_START( spacegun )
2519static INPUT_PORTS_START( spacegun )
25202520   PORT_START /* DSW A */
25212521   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )   // Manual says Always Off
25222522   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
25862586   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_SENSITIVITY(20) PORT_KEYDELTA(22) PORT_PLAYER(2)
25872587INPUT_PORTS_END
25882588
2589INPUT_PORTS_START( dblaxle )
2589static INPUT_PORTS_START( dblaxle )
25902590   PORT_START_TAG("DSW1") /* DSW A */
25912591   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
25922592   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
26542654   PORT_DIPSETTING(    0x00, "Analogue" )
26552655INPUT_PORTS_END
26562656
2657INPUT_PORTS_START( pwheelsj )
2657static INPUT_PORTS_START( pwheelsj )
26582658   PORT_INCLUDE(dblaxle)
26592659
26602660   PORT_MODIFY("DSW1")
src/mame/drivers/phoenix.c
r1238r1239
9696
9797
9898
99INPUT_PORTS_START( phoenix )
99static INPUT_PORTS_START( phoenix )
100100   PORT_START      /* IN0 */
101101   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
102102   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
143143   PORT_DIPSETTING(    0x01, DEF_STR( Cocktail ) )
144144INPUT_PORTS_END
145145
146INPUT_PORTS_START( phoenixa )
146static INPUT_PORTS_START( phoenixa )
147147   PORT_START      /* IN0 */
148148   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
149149   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
191191   PORT_DIPSETTING(    0x01, DEF_STR( Cocktail ) )
192192INPUT_PORTS_END
193193
194INPUT_PORTS_START( phoenixt )
194static INPUT_PORTS_START( phoenixt )
195195   PORT_START      /* IN0 */
196196   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
197197   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
238238   PORT_DIPSETTING(    0x01, DEF_STR( Cocktail ) )
239239INPUT_PORTS_END
240240
241INPUT_PORTS_START( phoenix3 )
241static INPUT_PORTS_START( phoenix3 )
242242   PORT_START      /* IN0 */
243243   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
244244   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
285285   PORT_DIPSETTING(    0x01, DEF_STR( Cocktail ) )
286286INPUT_PORTS_END
287287
288INPUT_PORTS_START( condor )
288static INPUT_PORTS_START( condor )
289289   PORT_START      /* IN0 */
290290   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
291291   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 )
r1238r1239
368368   PORT_DIPSETTING(    0x70, DEF_STR( 1C_8C ) )
369369INPUT_PORTS_END
370370
371INPUT_PORTS_START( falcona )
371static INPUT_PORTS_START( falcona )
372372   PORT_START      /* IN0 */
373373   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
374374   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
415415   PORT_DIPSETTING(    0x01, DEF_STR( Cocktail ) )
416416INPUT_PORTS_END
417417
418INPUT_PORTS_START( pleiads )
418static INPUT_PORTS_START( pleiads )
419419   PORT_START      /* IN0 */
420420   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
421421   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
462462   PORT_DIPSETTING(    0x01, DEF_STR( Cocktail ) )
463463INPUT_PORTS_END
464464
465INPUT_PORTS_START( pleiadce )
465static INPUT_PORTS_START( pleiadce )
466466   PORT_START      /* IN0 */
467467   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
468468   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
509509   PORT_DIPSETTING(    0x01, DEF_STR( Cocktail ) )
510510INPUT_PORTS_END
511511
512INPUT_PORTS_START( capitol )
512static INPUT_PORTS_START( capitol )
513513   PORT_START      /* IN0 */
514514   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
515515   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
556556   PORT_DIPSETTING(    0x01, DEF_STR( Cocktail ) )
557557INPUT_PORTS_END
558558
559INPUT_PORTS_START( survival )
559static INPUT_PORTS_START( survival )
560560   PORT_START      /* IN0 */
561561   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
562562   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 )
src/mame/drivers/lastfght.c
r1238r1239
382382                                Input Ports
383383***************************************************************************/
384384
385INPUT_PORTS_START( lastfght )
385static INPUT_PORTS_START( lastfght )
386386   PORT_START   // IN0 - c00002&3
387387   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_SERVICE1      )
388388   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN      )
src/mame/drivers/markham.c
r1238r1239
9595
9696/****************************************************************************/
9797
98INPUT_PORTS_START( markham )
98static INPUT_PORTS_START( markham )
9999   PORT_START  /* dsw1 */
100100   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1")
101101   PORT_DIPSETTING(    0x00, "3" )
src/mame/drivers/msisaac.c
r1238r1239
368368
369369#endif
370370
371INPUT_PORTS_START( msisaac )
371static INPUT_PORTS_START( msisaac )
372372   PORT_START_TAG("DSW1")
373373   PORT_DIPNAME( 0x01, 0x00, "DSW1 Unknown 0" )
374374   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
src/mame/drivers/superqix.c
r1238r1239
580580
581581
582582
583INPUT_PORTS_START( pbillian )
583static INPUT_PORTS_START( pbillian )
584584   PORT_START
585585   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) )
586586   PORT_DIPSETTING(    0x03, DEF_STR( 5C_1C ) )
r1238r1239
665665   PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(20) PORT_KEYDELTA(10) PORT_COCKTAIL
666666INPUT_PORTS_END
667667
668INPUT_PORTS_START( hotsmash )
668static INPUT_PORTS_START( hotsmash )
669669   PORT_START
670670   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
671671   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
733733INPUT_PORTS_END
734734
735735
736INPUT_PORTS_START( superqix )
736static INPUT_PORTS_START( superqix )
737737   PORT_START   /* DSW1 */
738738   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
739739   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
909909
910910
911911
912INTERRUPT_GEN( sqix_interrupt )
912static INTERRUPT_GEN( sqix_interrupt )
913913{
914914   /* highly suspicious... */
915915   if (cpu_getiloops() <= 3)
916916      nmi_line_assert();
917917}
918918
919INTERRUPT_GEN( bootleg_interrupt )
919static INTERRUPT_GEN( bootleg_interrupt )
920920{
921921   /* highly suspicious... */
922922   if (cpu_getiloops() <= 3)
src/mame/drivers/dday.c
r1238r1239
111111
112112
113113
114INPUT_PORTS_START( dday )
114static INPUT_PORTS_START( dday )
115115   PORT_START_TAG("IN0")
116116   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
117117   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
190190   PORT_BIT(0xff, 96, IPT_PADDLE ) PORT_MINMAX(0,191) PORT_SENSITIVITY(20) PORT_KEYDELTA(10) PORT_CENTERDELTA(0)
191191INPUT_PORTS_END
192192
193INPUT_PORTS_START( ddayc )
193static INPUT_PORTS_START( ddayc )
194194PORT_INCLUDE(dday)
195195
196196   PORT_MODIFY("DSW0")
src/mame/drivers/playch10.c
r1238r1239
465465
466466/******************************************************************************/
467467
468INPUT_PORTS_START( playch10 )
468static INPUT_PORTS_START( playch10 )
469469    PORT_START_TAG("BIOS")
470470    PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Channel Select") PORT_CODE(KEYCODE_0)
471471    PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Enter") PORT_CODE(KEYCODE_MINUS)
r1238r1239
687687INPUT_PORTS_END
688688
689689/*Input Ports for gun games*/
690INPUT_PORTS_START( playc10g )
690static INPUT_PORTS_START( playc10g )
691691   PORT_INCLUDE(playch10)
692692
693693   PORT_START   // IN2 - FAKE - Gun X pos
r1238r1239
16611661/* A dummy driver, so that the bios can be debugged, and to serve as */
16621662/* parent for the other drivers, so that we do not have to include */
16631663/* them in every zip file */
1664GAMEB( 1986, playch10, 0, playch10, playch10, playch10, playch10, ROT0, "Nintendo of America", "PlayChoice-10 BIOS", GAME_IS_BIOS_ROOT )
1664GAME( 1986, playch10, 0, playch10, playch10, playch10, ROT0, "Nintendo of America", "PlayChoice-10 BIOS", GAME_IS_BIOS_ROOT )
16651665
16661666/******************************************************************************/
16671667
16681668/*     YEAR  NAME      PARENT    BIOS      MACHINE   INPUT     INIT      MONITOR  */
16691669
16701670/* Standard Games */
1671GAMEB( 1983, pc_tenis, playch10, playch10, playch10, playch10, playch10, ROT0, "Nintendo",                           "Tennis (PlayChoice-10)", 0 )
1672GAMEB( 1983, pc_mario, playch10, playch10, playch10, playch10, playch10, ROT0, "Nintendo",                           "Mario Bros. (PlayChoice-10)", 0 )
1673GAMEB( 1984, pc_bball, playch10, playch10, playch10, playch10, playch10, ROT0, "Nintendo of America",                  "Baseball (PlayChoice-10)", 0 )
1674GAMEB( 1984, pc_bfght, playch10, playch10, playch10, playch10, playch10, ROT0, "Nintendo",                           "Balloon Fight (PlayChoice-10)", 0 )
1675GAMEB( 1984, pc_ebike, playch10, playch10, playch10, playch10, playch10, ROT0, "Nintendo",                           "Excite Bike (PlayChoice-10)", 0 )
1676GAMEB( 1984, pc_golf,  playch10, playch10, playch10, playch10, playch10, ROT0, "Nintendo",                           "Golf (PlayChoice-10)", 0 )
1677GAMEB( 1985, pc_kngfu, playch10, playch10, playch10, playch10, playch10, ROT0, "Irem (Nintendo license)",               "Kung Fu (PlayChoice-10)", 0 )
1678GAMEB( 1985, pc_smb,   playch10, playch10, playch10, playch10, playch10, ROT0, "Nintendo",                           "Super Mario Bros. (PlayChoice-10)", 0 )
1679GAMEB( 1986, pc_vball, playch10, playch10, playch10, playch10, playch10, ROT0, "Nintendo",                           "Volley Ball (PlayChoice-10)", 0 )
1680GAMEB( 1987, pc_1942,  playch10, playch10, playch10, playch10, pc_hrz,   ROT0, "Capcom",                           "1942 (PlayChoice-10)", GAME_IMPERFECT_GRAPHICS )
1671GAME( 1983, pc_tenis, playch10, playch10, playch10, playch10, ROT0, "Nintendo",                           "Tennis (PlayChoice-10)", 0 )
1672GAME( 1983, pc_mario, playch10, playch10, playch10, playch10, ROT0, "Nintendo",                           "Mario Bros. (PlayChoice-10)", 0 )
1673GAME( 1984, pc_bball, playch10, playch10, playch10, playch10, ROT0, "Nintendo of America",                  "Baseball (PlayChoice-10)", 0 )
1674GAME( 1984, pc_bfght, playch10, playch10, playch10, playch10, ROT0, "Nintendo",                           "Balloon Fight (PlayChoice-10)", 0 )
1675GAME( 1984, pc_ebike, playch10, playch10, playch10, playch10, ROT0, "Nintendo",                           "Excite Bike (PlayChoice-10)", 0 )
1676GAME( 1984, pc_golf,  playch10, playch10, playch10, playch10, ROT0, "Nintendo",                           "Golf (PlayChoice-10)", 0 )
1677GAME( 1985, pc_kngfu, playch10, playch10, playch10, playch10, ROT0, "Irem (Nintendo license)",               "Kung Fu (PlayChoice-10)", 0 )
1678GAME( 1985, pc_smb,   playch10, playch10, playch10, playch10, ROT0, "Nintendo",                           "Super Mario Bros. (PlayChoice-10)", 0 )
1679GAME( 1986, pc_vball, playch10, playch10, playch10, playch10, ROT0, "Nintendo",                           "Volley Ball (PlayChoice-10)", 0 )
1680GAME( 1987, pc_1942,  playch10, playch10, playch10, pc_hrz,   ROT0, "Capcom",                           "1942 (PlayChoice-10)", GAME_IMPERFECT_GRAPHICS )
16811681
16821682/* Gun Games */
1683GAMEB( 1984, pc_duckh, playch10, playch10, playch10, playc10g, pc_gun,   ROT0, "Nintendo",                           "Duck Hunt (PlayChoice-10)", 0 )
1684GAMEB( 1984, pc_hgaly, playch10, playch10, playch10, playc10g, pc_gun,   ROT0, "Nintendo",                           "Hogan's Alley (PlayChoice-10)", 0 )
1685GAMEB( 1984, pc_wgnmn, playch10, playch10, playch10, playc10g, pc_gun,   ROT0, "Nintendo",                           "Wild Gunman (PlayChoice-10)", 0 )
1683GAME( 1984, pc_duckh, playch10, playch10, playc10g, pc_gun,   ROT0, "Nintendo",                           "Duck Hunt (PlayChoice-10)", 0 )
1684GAME( 1984, pc_hgaly, playch10, playch10, playc10g, pc_gun,   ROT0, "Nintendo",                           "Hogan's Alley (PlayChoice-10)", 0 )
1685GAME( 1984, pc_wgnmn, playch10, playch10, playc10g, pc_gun,   ROT0, "Nintendo",                           "Wild Gunman (PlayChoice-10)", 0 )
16861686
16871687/* A-Board Games */
1688GAMEB( 1986, pc_grdus, playch10, playch10, playch10, playch10, pcaboard, ROT0, "Konami",                           "Gradius (PlayChoice-10)" , 0) // date: 860917
1689GAMEB( 1986, pc_grdue, pc_grdus, playch10, playch10, playch10, pcaboard, ROT0, "Konami",                           "Gradius (PlayChoice-10, older)" , 0) // date: 860219
1690GAMEB( 1987, pc_tkfld, playch10, playch10, playch10, playch10, pcaboard, ROT0, "Konami (Nintendo of America license)",      "Track & Field (PlayChoice-10)", 0 )
1688GAME( 1986, pc_grdus, playch10, playch10, playch10, pcaboard, ROT0, "Konami",                           "Gradius (PlayChoice-10)" , 0) // date: 860917
1689GAME( 1986, pc_grdue, pc_grdus, playch10, playch10, pcaboard, ROT0, "Konami",                           "Gradius (PlayChoice-10, older)" , 0) // date: 860219
1690GAME( 1987, pc_tkfld, playch10, playch10, playch10, pcaboard, ROT0, "Konami (Nintendo of America license)",      "Track & Field (PlayChoice-10)", 0 )
16911691
16921692/* B-Board Games */
1693GAMEB( 1986, pc_pwrst, playch10, playch10, playch10, playch10, pcbboard, ROT0, "Nintendo",                           "Pro Wrestling (PlayChoice-10)", 0 )
1694GAMEB( 1986, pc_trjan, playch10, playch10, playch10, playch10, pcbboard, ROT0, "Capcom USA (Nintendo of America license)", "Trojan (PlayChoice-10)", 0 )
1695GAMEB( 1987, pc_cvnia, playch10, playch10, playch10, playch10, pcbboard, ROT0, "Konami (Nintendo of America license)",      "Castlevania (PlayChoice-10)", 0 )
1696GAMEB( 1987, pc_dbldr, playch10, playch10, playch10, playch10, pcbboard, ROT0, "Konami (Nintendo of America license)",      "Double Dribble (PlayChoice-10)", 0 )
1697GAMEB( 1987, pc_rnatk, playch10, playch10, playch10, playch10, pcbboard, ROT0, "Konami (Nintendo of America license)",      "Rush'n Attack (PlayChoice-10)", 0 )
1698GAMEB( 1987, pc_rygar, playch10, playch10, playch10, playch10, pcbboard, ROT0, "Tecmo (Nintendo of America license)",      "Rygar (PlayChoice-10)", 0 )
1699GAMEB( 1988, pc_cntra, playch10, playch10, playch10, playch10, pcbboard, ROT0, "Konami (Nintendo of America license)",      "Contra (PlayChoice-10)", 0 )
1693GAME( 1986, pc_pwrst, playch10, playch10, playch10, pcbboard, ROT0, "Nintendo",                           "Pro Wrestling (PlayChoice-10)", 0 )
1694GAME( 1986, pc_trjan, playch10, playch10, playch10, pcbboard, ROT0, "Capcom USA (Nintendo of America license)", "Trojan (PlayChoice-10)", 0 )
1695GAME( 1987, pc_cvnia, playch10, playch10, playch10, pcbboard, ROT0, "Konami (Nintendo of America license)",      "Castlevania (PlayChoice-10)", 0 )
1696GAME( 1987, pc_dbldr, playch10, playch10, playch10, pcbboard, ROT0, "Konami (Nintendo of America license)",      "Double Dribble (PlayChoice-10)", 0 )
1697GAME( 1987, pc_rnatk, playch10, playch10, playch10, pcbboard, ROT0, "Konami (Nintendo of America license)",      "Rush'n Attack (PlayChoice-10)", 0 )
1698GAME( 1987, pc_rygar, playch10, playch10, playch10, pcbboard, ROT0, "Tecmo (Nintendo of America license)",      "Rygar (PlayChoice-10)", 0 )
1699GAME( 1988, pc_cntra, playch10, playch10, playch10, pcbboard, ROT0, "Konami (Nintendo of America license)",      "Contra (PlayChoice-10)", 0 )
17001700
17011701/* C-Board Games */
1702GAMEB( 1986, pc_goons, playch10, playch10, playch10, playch10, pccboard, ROT0, "Konami",                           "The Goonies (PlayChoice-10)", 0 )
1702GAME( 1986, pc_goons, playch10, playch10, playch10, pccboard, ROT0, "Konami",                           "The Goonies (PlayChoice-10)", 0 )
17031703
17041704/* D-Board Games */
1705GAMEB( 1986, pc_mtoid, playch10, playch10, playch10, playch10, pcdboard_2, ROT0, "Nintendo",                           "Metroid (PlayChoice-10)", 0 )
1706GAMEB( 1987, pc_radrc, playch10, playch10, playch10, playch10, pcdboard, ROT0, "Square",                           "Rad Racer (PlayChoice-10)", 0 )
1705GAME( 1986, pc_mtoid, playch10, playch10, playch10, pcdboard_2, ROT0, "Nintendo",                           "Metroid (PlayChoice-10)", 0 )
1706GAME( 1987, pc_radrc, playch10, playch10, playch10, pcdboard, ROT0, "Square",                           "Rad Racer (PlayChoice-10)", 0 )
17071707
17081708/* E-Board Games */
1709GAMEB( 1987, pc_miket, playch10, playch10, playchnv, playch10, pceboard, ROT0, "Nintendo",                           "Mike Tyson's Punch-Out!! (PlayChoice-10)", GAME_IMPERFECT_GRAPHICS )
1709GAME( 1987, pc_miket, playch10, playchnv, playch10, pceboard, ROT0, "Nintendo",                           "Mike Tyson's Punch-Out!! (PlayChoice-10)", GAME_IMPERFECT_GRAPHICS )
17101710
17111711/* F-Board Games */
1712GAMEB( 1987, pc_rcpam, playch10, playch10, playch10, playch10, pcfboard, ROT0, "Rare",                              "R.C. Pro-Am (PlayChoice-10)", 0 )
1713GAMEB( 1987, pc_rrngr, playch10, playch10, playch10, playch10, pcfboard, ROT0, "Capcom USA (Nintendo of America license)", "Chip'n Dale: Rescue Rangers (PlayChoice-10)", 0 )
1714GAMEB( 1988, pc_ddrgn, playch10, playch10, playch10, playch10, pcfboard, ROT0, "Technos",                           "Double Dragon (PlayChoice-10)", 0 )
1715GAMEB( 1989, pc_ngaid, playch10, playch10, playch10, playch10, pcfboard, ROT0, "Tecmo (Nintendo of America license)",      "Ninja Gaiden (PlayChoice-10)", 0 )
1716GAMEB( 1989, pc_tmnt,  playch10, playch10, playch10, playch10, pcfboard, ROT0, "Konami (Nintendo of America license)",      "Teenage Mutant Ninja Turtles (PlayChoice-10)", 0 )
1717GAMEB( 1989, pc_ftqst, playch10, playch10, playch10, playch10, pcfboard, ROT0, "Sunsoft (Nintendo of America license)",   "Uncle Fester's Quest: The Addams Family (PlayChoice-10)", 0 )
1718GAMEB( 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)
1719GAMEB( 1989, pc_tbowl, playch10, playch10, playch10, playch10, pcfboard, ROT0, "Tecmo (Nintendo of America license)",      "Tecmo Bowl (PlayChoice-10)", 0 )
1720GAMEB( 1990, pc_drmro, playch10, playch10, playch10, playch10, pcfboard, ROT0, "Nintendo",                           "Dr. Mario (PlayChoice-10)", 0 )
1721GAMEB( 1990, pc_ynoid, playch10, playch10, playch10, playch10, pcfboard, ROT0, "Capcom USA (Nintendo of America license)", "Yo! Noid (PlayChoice-10)", 0 )
1712GAME( 1987, pc_rcpam, playch10, playch10, playch10, pcfboard, ROT0, "Rare",                              "R.C. Pro-Am (PlayChoice-10)", 0 )
1713GAME( 1987, pc_rrngr, playch10, playch10, playch10, pcfboard, ROT0, "Capcom USA (Nintendo of America license)", "Chip'n Dale: Rescue Rangers (PlayChoice-10)", 0 )
1714GAME( 1988, pc_ddrgn, playch10, playch10, playch10, pcfboard, ROT0, "Technos",                           "Double Dragon (PlayChoice-10)", 0 )
1715GAME( 1989, pc_ngaid, playch10, playch10, playch10, pcfboard, ROT0, "Tecmo (Nintendo of America license)",      "Ninja Gaiden (PlayChoice-10)", 0 )
1716GAME( 1989, pc_tmnt,  playch10, playch10, playch10, pcfboard, ROT0, "Konami (Nintendo of America license)",      "Teenage Mutant Ninja Turtles (PlayChoice-10)", 0 )
1717GAME( 1989, pc_ftqst, playch10, playch10, playch10, pcfboard, ROT0, "Sunsoft (Nintendo of America license)",   "Uncle Fester's Quest: The Addams Family (PlayChoice-10)", 0 )
1718GAME( 1989, pc_bstar, playch10, playch10, playch10, pcfboard_2, ROT0, "SNK (Nintendo of America license)",      "Baseball Stars: Be a Champ! (PlayChoice-10)", GAME_IMPERFECT_GRAPHICS)
1719GAME( 1989, pc_tbowl, playch10, playch10, playch10, pcfboard, ROT0, "Tecmo (Nintendo of America license)",      "Tecmo Bowl (PlayChoice-10)", 0 )
1720GAME( 1990, pc_drmro, playch10, playch10, playch10, pcfboard, ROT0, "Nintendo",                           "Dr. Mario (PlayChoice-10)", 0 )
1721GAME( 1990, pc_ynoid, playch10, playch10, playch10, pcfboard, ROT0, "Capcom USA (Nintendo of America license)", "Yo! Noid (PlayChoice-10)", 0 )
17221722
17231723/* G-Board Games */
1724GAMEB( 1988, pc_smb2,  playch10, playch10, playch10, playch10, pcgboard, ROT0, "Nintendo",                           "Super Mario Bros. 2 (PlayChoice-10)", 0 )
1725GAMEB( 1988, pc_smb3,  playch10, playch10, playch10, playch10, pcgboard, ROT0, "Nintendo",                           "Super Mario Bros. 3 (PlayChoice-10)", 0 )
1726GAMEB( 1990, pc_mman3, playch10, playch10, playch10, playch10, pcgboard, ROT0, "Capcom USA (Nintendo of America license)",   "Mega Man III (PlayChoice-10)", 0 )
1727GAMEB( 1990, pc_suprc, playch10, playch10, playch10, playch10, pcgboard, ROT0, "Konami (Nintendo of America license)",      "Super C (PlayChoice-10)", 0 )
1728GAMEB( 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 )
1729GAMEB( 1990, pc_wcup,  playch10, playch10, playch10, playch10, pcgboard, ROT0, "Technos (Nintendo license)",            "Nintendo World Cup (PlayChoice-10)", 0 )
1730GAMEB( 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 )
1731GAMEB( 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 )
1732GAMEB( 1991, pc_pwbld, playch10, playch10, playch10, playch10, pcgboard, ROT0, "Taito (Nintendo of America license)",      "Power Blade (PlayChoice-10)", 0 )
1733GAMEB( 1991, pc_rkats, playch10, playch10, playch10, playch10, pcgboard, ROT0, "Atlus (Nintendo of America license)",      "Rockin' Kats (PlayChoice-10)", 0 )
1724GAME( 1988, pc_smb2,  playch10, playch10, playch10, pcgboard, ROT0, "Nintendo",                           "Super Mario Bros. 2 (PlayChoice-10)", 0 )
1725GAME( 1988, pc_smb3,  playch10, playch10, playch10, pcgboard, ROT0, "Nintendo",                           "Super Mario Bros. 3 (PlayChoice-10)", 0 )
1726GAME( 1990, pc_mman3, playch10, playch10, playch10, pcgboard, ROT0, "Capcom USA (Nintendo of America license)",   "Mega Man III (PlayChoice-10)", 0 )
1727GAME( 1990, pc_suprc, playch10, playch10, playch10, pcgboard, ROT0, "Konami (Nintendo of America license)",      "Super C (PlayChoice-10)", 0 )
1728GAME( 1990, pc_tmnt2, playch10, playch10, playch10, pcgboard, ROT0, "Konami (Nintendo of America license)",      "Teenage Mutant Ninja Turtles II: The Arcade Game (PlayChoice-10)", 0 )
1729GAME( 1990, pc_wcup,  playch10, playch10, playch10, pcgboard, ROT0, "Technos (Nintendo license)",            "Nintendo World Cup (PlayChoice-10)", 0 )
1730GAME( 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 )
1731GAME( 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 )
1732GAME( 1991, pc_pwbld, playch10, playch10, playch10, pcgboard, ROT0, "Taito (Nintendo of America license)",      "Power Blade (PlayChoice-10)", 0 )
1733GAME( 1991, pc_rkats, playch10, playch10, playch10, pcgboard, ROT0, "Atlus (Nintendo of America license)",      "Rockin' Kats (PlayChoice-10)", 0 )
17341734/* variant with 4 screen mirror */
1735GAMEB( 1990, pc_radr2, playch10, playch10, playch10, playch10, pcgboard_type2, ROT0, "Square (Nintendo of America license)",      "Rad Racer II (PlayChoice-10)", 0 )
1736GAMEB( 1985, pc_gntlt, playch10, playch10, playch10, playch10, pcgboard_type2, ROT0, "Atari/Tengen (Nintendo of America license)",   "Gauntlet (PlayChoice-10)", GAME_IMPERFECT_GRAPHICS )
1735GAME( 1990, pc_radr2, playch10, playch10, playch10, pcgboard_type2, ROT0, "Square (Nintendo of America license)",      "Rad Racer II (PlayChoice-10)", 0 )
1736GAME( 1985, pc_gntlt, playch10, playch10, playch10, pcgboard_type2, ROT0, "Atari/Tengen (Nintendo of America license)",   "Gauntlet (PlayChoice-10)", GAME_IMPERFECT_GRAPHICS )
17371737
17381738/* H-Board Games */
1739GAMEB( 1988, pc_pinbt, playch10, playch10, playch10, playch10, pchboard, ROT0, "Rare (Nintendo of America license)",      "PinBot (PlayChoice-10)", GAME_IMPERFECT_GRAPHICS | GAME_NOT_WORKING )
1739GAME( 1988, pc_pinbt, playch10, playch10, playch10, pchboard, ROT0, "Rare (Nintendo of America license)",      "PinBot (PlayChoice-10)", GAME_IMPERFECT_GRAPHICS | GAME_NOT_WORKING )
17401740
17411741/* i-Board Games */
1742GAMEB( 1989, pc_cshwk, playch10, playch10, playch10, playch10, pciboard, ROT0, "Rare (Nintendo of America license)",      "Captain Sky Hawk (PlayChoice-10)", 0 )
1743GAMEB( 1990, pc_sjetm, playch10, playch10, playch10, playch10, pciboard, ROT0, "Rare",                              "Solar Jetman (PlayChoice-10)", 0 )
1742GAME( 1989, pc_cshwk, playch10, playch10, playch10, pciboard, ROT0, "Rare (Nintendo of America license)",      "Captain Sky Hawk (PlayChoice-10)", 0 )
1743GAME( 1990, pc_sjetm, playch10, playch10, playch10, pciboard, ROT0, "Rare",                              "Solar Jetman (PlayChoice-10)", 0 )
17441744
17451745/* K-Board Games */
1746GAMEB( 1991, pc_moglf, playch10, playch10, playch10, playch10, pckboard, ROT0, "Nintendo",                           "Mario's Open Golf (PlayChoice-10)", 0 )
1746GAME( 1991, pc_moglf, playch10, playch10, playch10, pckboard, ROT0, "Nintendo",                           "Mario's Open Golf (PlayChoice-10)", 0 )
src/mame/drivers/cojag.c
r1238r1239
785785 *
786786 *************************************/
787787
788INPUT_PORTS_START( area51 )
788static INPUT_PORTS_START( area51 )
789789   PORT_START
790790   PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED )
791791   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
828828INPUT_PORTS_END
829829
830830
831INPUT_PORTS_START( freezeat )
831static INPUT_PORTS_START( freezeat )
832832   PORT_START
833833   PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED )
834834   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
869869INPUT_PORTS_END
870870
871871
872INPUT_PORTS_START( fishfren )
872static INPUT_PORTS_START( fishfren )
873873   PORT_START
874874   PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED )
875875   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
910910INPUT_PORTS_END
911911
912912
913INPUT_PORTS_START( vcircle )
913static INPUT_PORTS_START( vcircle )
914914   PORT_START
915915   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2)
916916   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(2)
src/mame/drivers/cyberbal.c
r1238r1239
288288 *
289289 *************************************/
290290
291INPUT_PORTS_START( cyberbal )
291static INPUT_PORTS_START( cyberbal )
292292   PORT_START      /* fe0000 */
293293   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(4)
294294   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(4)
r1238r1239
338338INPUT_PORTS_END
339339
340340
341INPUT_PORTS_START( cyberb2p )
341static INPUT_PORTS_START( cyberb2p )
342342   PORT_START      /* fc0000 */
343343   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
344344   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
src/mame/drivers/lockon.c
r1238r1239
198198}
199199
200200/* Wrong last time I checked */
201INPUT_PORTS_START( lockon )
201static INPUT_PORTS_START( lockon )
202202   PORT_START_TAG("DSW")
203203   PORT_DIPNAME( 0x0003, 0x0000, DEF_STR( Lives ) )
204204   PORT_DIPSETTING(      0x0000, "5"    )
src/mame/drivers/mappy.c
r1238r1239
968968   PORT_DIPSETTING(    0x00, DEF_STR( Cocktail ) )\
969969   PORT_SERVICE( 0x08, IP_ACTIVE_LOW )
970970
971INPUT_PORTS_START( superpac )
971static INPUT_PORTS_START( superpac )
972972NAMCO_56IN0
973973NAMCO_56IN1
974974NAMCO_56DSW0
r1238r1239
10371037INPUT_PORTS_END
10381038
10391039
1040INPUT_PORTS_START( pacnpal )
1040static INPUT_PORTS_START( pacnpal )
10411041NAMCO_56IN0
10421042NAMCO_56IN1
10431043NAMCO_56DSW0
r1238r1239
11001100INPUT_PORTS_END
11011101
11021102
1103INPUT_PORTS_START( grobda )
1103static INPUT_PORTS_START( grobda )
11041104NAMCO_5XIN0
11051105NAMCO_56IN1
11061106
r1238r1239
11611161INPUT_PORTS_END
11621162
11631163
1164INPUT_PORTS_START( phozon )
1164static INPUT_PORTS_START( phozon )
11651165NAMCO_5XIN0
11661166NAMCO_56IN1
11671167NAMCO_56DSW0
r1238r1239
12271227INPUT_PORTS_END
12281228
12291229
1230INPUT_PORTS_START( mappy )
1230static INPUT_PORTS_START( mappy )
12311231   PORT_START_TAG("IN0")   /* 58XX #0 pins 22-29 */
12321232   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
12331233   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY
r1238r1239
13011301INPUT_PORTS_END
13021302
13031303
1304INPUT_PORTS_START( todruaga )
1304static INPUT_PORTS_START( todruaga )
13051305NAMCO_56IN0
13061306NAMCO_56IN1
13071307
r1238r1239
13621362INPUT_PORTS_END
13631363
13641364
1365INPUT_PORTS_START( digdug2 )
1365static INPUT_PORTS_START( digdug2 )
13661366NAMCO_56IN0
13671367NAMCO_56IN1
13681368
r1238r1239
14241424INPUT_PORTS_END
14251425
14261426
1427INPUT_PORTS_START( motos )
1427static INPUT_PORTS_START( motos )
14281428NAMCO_5XIN0
14291429NAMCO_56IN1
14301430
src/mame/drivers/rastan.c
r1238r1239
259259
260260
261261
262INPUT_PORTS_START( rastan )
262static INPUT_PORTS_START( rastan )
263263   PORT_START_TAG("IN0")
264264   TAITO_JOY_UDLR_2_BUTTONS( 1 )
265265
r1238r1239
317317   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
318318INPUT_PORTS_END
319319
320INPUT_PORTS_START( rastsaga )
320static INPUT_PORTS_START( rastsaga )
321321   PORT_INCLUDE( rastan )
322322
323323   PORT_MODIFY("DSWA")
src/mame/drivers/pntnpuzl.c
r1238r1239
417417      cpunum_set_input_line(0, 4, PULSE_LINE);
418418}
419419
420INPUT_PORTS_START( pntnpuzl )
420static INPUT_PORTS_START( pntnpuzl )
421421   PORT_START   /* fake inputs */
422422   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_VBLANK )
423423   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(1)
src/mame/drivers/gijoe.c
r1238r1239
268268   AM_RANGE(0xfc00, 0xfc00) AM_WRITE(soundlatch2_w)
269269ADDRESS_MAP_END
270270
271INPUT_PORTS_START( gijoe )
271static INPUT_PORTS_START( gijoe )
272272   PORT_START
273273   PORT_BIT( 0x0001, IP_ACTIVE_LOW,  IPT_START1 )
274274   PORT_BIT( 0x0002, IP_ACTIVE_LOW,  IPT_START2 )
src/mame/drivers/tigeroad.c
r1238r1239
240240
241241
242242
243INPUT_PORTS_START( tigeroad )
243static INPUT_PORTS_START( tigeroad )
244244   PORT_START  /* IN0 */
245245   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
246246   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
316316   PORT_DIPSETTING(      0x8000, DEF_STR( Yes ) )
317317INPUT_PORTS_END
318318
319INPUT_PORTS_START( toramich )
319static INPUT_PORTS_START( toramich )
320320   PORT_START  /* IN0 */
321321   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
322322   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
393393   PORT_DIPSETTING(      0x8000, DEF_STR( Yes ) )
394394INPUT_PORTS_END
395395
396INPUT_PORTS_START( f1dream )
396static INPUT_PORTS_START( f1dream )
397397   PORT_START  /* IN0 */
398398   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
399399   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
src/mame/drivers/wilytowr.c
r1238r1239
327327
328328
329329
330INPUT_PORTS_START( wilytowr )
330static INPUT_PORTS_START( wilytowr )
331331   PORT_START_TAG("IN0")
332332   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 )
333333   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
r1238r1239
405405   PORT_SERVICE( 0x80, IP_ACTIVE_HIGH )
406406INPUT_PORTS_END
407407
408INPUT_PORTS_START( fghtbskt )
408static INPUT_PORTS_START( fghtbskt )
409409   PORT_START
410410   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN )  PORT_8WAY
411411   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP )    PORT_8WAY
src/mame/drivers/spaceg.c
r1238r1239
382382
383383
384384
385INPUT_PORTS_START( spaceg )
385static INPUT_PORTS_START( spaceg )
386386   PORT_START
387387   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
388388   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON1 )
src/mame/drivers/looping.c
r1238r1239
626626 *
627627 *************************************/
628628
629INPUT_PORTS_START( looping )
629static INPUT_PORTS_START( looping )
630630   PORT_START_TAG("IN0")
631631   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )
632632   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )
r1238r1239
671671INPUT_PORTS_END
672672
673673/* Same as 'looping' but additional "Infinite Lives" Dip Switch */
674INPUT_PORTS_START( skybump )
674static INPUT_PORTS_START( skybump )
675675   PORT_INCLUDE(looping)
676676
677677   PORT_MODIFY("DSW0")
src/mame/drivers/segas32.c
r1238r1239
12751275 *
12761276 *************************************/
12771277
1278INPUT_PORTS_START( arescue )
1278static INPUT_PORTS_START( arescue )
12791279   PORT_INCLUDE( system32_generic )
12801280
12811281   PORT_MODIFY("P1")
r1238r1239
13011301INPUT_PORTS_END
13021302
13031303
1304INPUT_PORTS_START( alien3 )
1304static INPUT_PORTS_START( alien3 )
13051305   PORT_INCLUDE( system32_generic )
13061306
13071307   PORT_MODIFY("P1")
r1238r1239
13301330INPUT_PORTS_END
13311331
13321332
1333INPUT_PORTS_START( arabfgt )
1333static INPUT_PORTS_START( arabfgt )
13341334   PORT_INCLUDE( system32_generic )
13351335
13361336   PORT_MODIFY("P1")
r1238r1239
13631363   PORT_BIT( 0xfc, IP_ACTIVE_LOW, IPT_UNUSED )
13641364INPUT_PORTS_END
13651365
1366INPUT_PORTS_START( arabfgtu )
1366static INPUT_PORTS_START( arabfgtu )
13671367   PORT_INCLUDE( arabfgt )
13681368
13691369   PORT_MODIFY("SERVICE12")
r1238r1239
13761376INPUT_PORTS_END
13771377
13781378
1379INPUT_PORTS_START( brival )
1379static INPUT_PORTS_START( brival )
13801380   PORT_INCLUDE( system32_generic )
13811381
13821382   PORT_MODIFY("P1")
r1238r1239
13971397INPUT_PORTS_END
13981398
13991399
1400INPUT_PORTS_START( darkedge )
1400static INPUT_PORTS_START( darkedge )
14011401   PORT_INCLUDE( system32_generic )
14021402
14031403   PORT_MODIFY("P1")
r1238r1239
14221422INPUT_PORTS_END
14231423
14241424
1425INPUT_PORTS_START( dbzvrvs )
1425static INPUT_PORTS_START( dbzvrvs )
14261426   PORT_INCLUDE( system32_generic )
14271427INPUT_PORTS_END
14281428
14291429
1430INPUT_PORTS_START( f1en )
1430static INPUT_PORTS_START( f1en )
14311431   PORT_INCLUDE( system32_generic )
14321432
14331433   PORT_MODIFY("P1")
r1238r1239
14681468INPUT_PORTS_END
14691469
14701470
1471INPUT_PORTS_START( f1lap )
1471static INPUT_PORTS_START( f1lap )
14721472   PORT_INCLUDE( f1en )
14731473
14741474   PORT_MODIFY("P1")
r1238r1239
14781478INPUT_PORTS_END
14791479
14801480
1481INPUT_PORTS_START( ga2 )
1481static INPUT_PORTS_START( ga2 )
14821482   PORT_INCLUDE( system32_generic )
14831483
14841484   PORT_START_TAG("EXTRA1")
r1238r1239
15071507   PORT_BIT( 0xfc, IP_ACTIVE_LOW, IPT_UNUSED )
15081508INPUT_PORTS_END
15091509
1510INPUT_PORTS_START( ga2u )
1510static INPUT_PORTS_START( ga2u )
15111511   PORT_INCLUDE( ga2 )
15121512
15131513   PORT_MODIFY("SERVICE12")
r1238r1239
15201520INPUT_PORTS_END
15211521
15221522
1523INPUT_PORTS_START( harddunk )
1523static INPUT_PORTS_START( harddunk )
15241524   PORT_INCLUDE( multi32_generic )
15251525
15261526   PORT_MODIFY("P1_A")
r1238r1239
16001600INPUT_PORTS_END
16011601
16021602
1603INPUT_PORTS_START( holo )
1603static INPUT_PORTS_START( holo )
16041604   PORT_INCLUDE( system32_generic )
16051605
16061606   PORT_MODIFY("P1")
r1238r1239
16111611INPUT_PORTS_END
16121612
16131613
1614INPUT_PORTS_START( jpark )
1614static INPUT_PORTS_START( jpark )
16151615   PORT_INCLUDE( system32_generic )
16161616
16171617   PORT_MODIFY("P1")
r1238r1239
16341634INPUT_PORTS_END
16351635
16361636
1637INPUT_PORTS_START( orunners )
1637static INPUT_PORTS_START( orunners )
16381638   PORT_INCLUDE( multi32_generic )
16391639
16401640   PORT_MODIFY("P1_A")
r1238r1239
16791679INPUT_PORTS_END
16801680
16811681
1682INPUT_PORTS_START( radm )
1682static INPUT_PORTS_START( radm )
16831683   PORT_INCLUDE( system32_generic )
16841684
16851685   PORT_MODIFY("P1")
r1238r1239
17211721INPUT_PORTS_END
17221722
17231723
1724INPUT_PORTS_START( radr )
1724static INPUT_PORTS_START( radr )
17251725   PORT_INCLUDE( system32_generic )
17261726
17271727   PORT_MODIFY("P1")
r1238r1239
17611761INPUT_PORTS_END
17621762
17631763
1764INPUT_PORTS_START( scross )
1764static INPUT_PORTS_START( scross )
17651765   PORT_INCLUDE( multi32_generic )
17661766
17671767   PORT_MODIFY("P1_A")
r1238r1239
17901790INPUT_PORTS_END
17911791
17921792
1793INPUT_PORTS_START( slipstrm )
1793static INPUT_PORTS_START( slipstrm )
17941794   PORT_INCLUDE( system32_generic )
17951795
17961796   PORT_MODIFY("P1")
r1238r1239
18301830INPUT_PORTS_END
18311831
18321832
1833INPUT_PORTS_START( sonic )
1833static INPUT_PORTS_START( sonic )
18341834   PORT_INCLUDE( system32_generic )
18351835
18361836   PORT_MODIFY("P1")
r1238r1239
18651865INPUT_PORTS_END
18661866
18671867
1868INPUT_PORTS_START( spidman )
1868static INPUT_PORTS_START( spidman )
18691869   PORT_INCLUDE( system32_generic )
18701870
18711871   PORT_MODIFY("P1")
r1238r1239
18991899INPUT_PORTS_END
19001900
19011901
1902INPUT_PORTS_START( spidmanu )
1902static INPUT_PORTS_START( spidmanu )
19031903   PORT_INCLUDE( spidman )
19041904
19051905   PORT_MODIFY("SERVICE12")
r1238r1239
19121912INPUT_PORTS_END
19131913
19141914
1915INPUT_PORTS_START( svf )
1915static INPUT_PORTS_START( svf )
19161916   PORT_INCLUDE( system32_generic )
19171917INPUT_PORTS_END
19181918
19191919
1920INPUT_PORTS_START( titlef )
1920static INPUT_PORTS_START( titlef )
19211921   PORT_INCLUDE( multi32_generic )
19221922
19231923   PORT_MODIFY("P1_A")
src/mame/drivers/1945kiii.c
r1238r1239
162162   AM_RANGE(0x8c0000, 0x8cffff) AM_WRITE(MWA16_RAM) // not used?
163163ADDRESS_MAP_END
164164
165INPUT_PORTS_START( k3 )
165static INPUT_PORTS_START( k3 )
166166   PORT_START_TAG("IN1")
167167   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
168168   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/badlands.c
r1238r1239
355355 *
356356 *************************************/
357357
358INPUT_PORTS_START( badlands )
358static INPUT_PORTS_START( badlands )
359359   PORT_START      /* fe4000 */
360360   PORT_BIT( 0x000f, IP_ACTIVE_LOW, IPT_UNUSED )
361361   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
src/mame/drivers/slapfght.c
r1238r1239
453453   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 )\
454454   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 )
455455
456INPUT_PORTS_START( perfrman )
456static INPUT_PORTS_START( perfrman )
457457COMMON_START
458458   PORT_START_TAG("DSW1")
459459   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) )
r1238r1239
509509   PORT_DIPSETTING(    0x02, "5" )
510510INPUT_PORTS_END
511511
512INPUT_PORTS_START( tigerh )
512static INPUT_PORTS_START( tigerh )
513513COMMON_START
514514   PORT_START_TAG("DSW1")
515515   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) )
r1238r1239
562562   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
563563INPUT_PORTS_END
564564
565INPUT_PORTS_START( slapfigh )
565static INPUT_PORTS_START( slapfigh )
566566COMMON_START
567567   PORT_START_TAG("DSW1")
568568   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_B ) )
r1238r1239
613613INPUT_PORTS_END
614614
615615
616INPUT_PORTS_START( getstar )
616static INPUT_PORTS_START( getstar )
617617   PORT_START_TAG("IN0")
618618   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
619619   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
r1238r1239
684684   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
685685INPUT_PORTS_END
686686
687INPUT_PORTS_START( gtstarba )
687static INPUT_PORTS_START( gtstarba )
688688   PORT_START_TAG("IN0")
689689   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
690690   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/astinvad.c
r1238r1239
146146   PORT_DIPSETTING(    0xff, DEF_STR( Cocktail ) )
147147INPUT_PORTS_END
148148
149INPUT_PORTS_START( spcking2 )
149static INPUT_PORTS_START( spcking2 )
150150   COMMON_INPUT_BITS
151151
152152   PORT_START_TAG("IN1")
r1238r1239
178178   PORT_DIPSETTING(    0x01, DEF_STR( Cocktail ) )
179179INPUT_PORTS_END
180180
181INPUT_PORTS_START( spaceint )
181static INPUT_PORTS_START( spaceint )
182182   PORT_START_TAG("IN0")
183183   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
184184   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 )
src/mame/drivers/psikyosh.c
r1238r1239
681681   PORT_BIT(  0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  ) PORT_PLAYER(player) \
682682   PORT_BIT(  0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    ) PORT_PLAYER(player)
683683
684INPUT_PORTS_START( s1945ii )
684static INPUT_PORTS_START( s1945ii )
685685   PORT_START_TAG("IN0")
686686   PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN )
687687   PORT_START_TAG("IN1")
r1238r1239
696696   PORT_DIPSETTING(    0x01, DEF_STR( World ) )
697697INPUT_PORTS_END
698698
699INPUT_PORTS_START( soldivid )
699static INPUT_PORTS_START( soldivid )
700700   PORT_START_TAG("IN0")
701701   PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 )
702702   PORT_START_TAG("IN1")
r1238r1239
711711   PORT_DIPSETTING(    0x01, DEF_STR( World ) )
712712INPUT_PORTS_END
713713
714INPUT_PORTS_START( daraku )
714static INPUT_PORTS_START( daraku )
715715   PORT_START_TAG("IN0")
716716   PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN )
717717   PORT_START_TAG("IN1")
r1238r1239
735735   PORT_DIPSETTING(    0x01, DEF_STR( World ) ) /* Title screen is different, English is default now */
736736INPUT_PORTS_END
737737
738INPUT_PORTS_START( sbomberb )
738static INPUT_PORTS_START( sbomberb )
739739   PORT_START_TAG("IN0")
740740   PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN )
741741   PORT_START_TAG("IN1")
r1238r1239
750750   PORT_DIPSETTING(    0x01, DEF_STR( World ) )
751751INPUT_PORTS_END
752752
753INPUT_PORTS_START( gunbird2 ) /* Different Region */
753static INPUT_PORTS_START( gunbird2 ) /* Different Region */
754754   PORT_START_TAG("IN0")
755755   PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 )
756756   PORT_START_TAG("IN1")
r1238r1239
766766   PORT_DIPSETTING(    0x02, "International Ver B." )
767767INPUT_PORTS_END
768768
769INPUT_PORTS_START( s1945iii ) /* Different Region again */
769static INPUT_PORTS_START( s1945iii ) /* Different Region again */
770770   PORT_START_TAG("IN0")
771771   PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 )
772772   PORT_START_TAG("IN1")
r1238r1239
782782   PORT_DIPSETTING(    0x01, "International Ver B." )
783783INPUT_PORTS_END
784784
785INPUT_PORTS_START( dragnblz ) /* Security requires bit high */
785static INPUT_PORTS_START( dragnblz ) /* Security requires bit high */
786786   PORT_START_TAG("IN0")
787787   PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 )
788788   PORT_START_TAG("IN1")
r1238r1239
799799   PORT_DIPSETTING(    0x01, "International Ver B." )
800800INPUT_PORTS_END
801801
802INPUT_PORTS_START( gnbarich ) /* Same as S1945iii except only one button */
802static INPUT_PORTS_START( gnbarich ) /* Same as S1945iii except only one button */
803803   PORT_START_TAG("IN0")
804804   PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 )
805805   PORT_START_TAG("IN1")
r1238r1239
815815   PORT_DIPSETTING(    0x01, "International Ver B." )
816816INPUT_PORTS_END
817817
818INPUT_PORTS_START( mjgtaste ) /* This will need the Mahjong inputs */
818static INPUT_PORTS_START( mjgtaste ) /* This will need the Mahjong inputs */
819819   PORT_START_TAG("IN0")
820820   PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 )
821821   PORT_START_TAG("IN1")
src/mame/drivers/boogwing.c
r1238r1239
133133
134134/**********************************************************************************/
135135
136INPUT_PORTS_START( boogwing )
136static INPUT_PORTS_START( boogwing )
137137   PORT_START   /* 16bit */
138138   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
139139   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/quizdna.c
r1238r1239
116116
117117/****************************************************************************/
118118
119INPUT_PORTS_START( quizdna )
119static INPUT_PORTS_START( quizdna )
120120   PORT_START  /* sw2 */
121121   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coinage ) )
122122   PORT_DIPSETTING(    0x01, DEF_STR( 9C_1C ) )
r1238r1239
210210   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
211211INPUT_PORTS_END
212212
213INPUT_PORTS_START( gakupara )
213static INPUT_PORTS_START( gakupara )
214214    PORT_START  /* sw2 */
215215   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coinage ) )
216216   PORT_DIPSETTING(    0x00, "10 Coins/1 Credit" )
r1238r1239
306306   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
307307INPUT_PORTS_END
308308
309INPUT_PORTS_START( gekiretu )
309static INPUT_PORTS_START( gekiretu )
310310   PORT_START  /* dsw2 */
311311   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coinage ) )
312312   PORT_DIPSETTING(    0x01, DEF_STR( 9C_1C ) )
src/mame/drivers/darkhors.c
r1238r1239
350350
351351***************************************************************************/
352352
353INPUT_PORTS_START( darkhors )
353static INPUT_PORTS_START( darkhors )
354354   PORT_START   // IN0 - 580000
355355   PORT_BIT( 0xff7fffff, IP_ACTIVE_LOW, IPT_UNKNOWN )
356356   PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("?") PORT_CODE(KEYCODE_RCONTROL)
src/mame/drivers/bishjan.c
r1238r1239
317317                                Input Ports
318318***************************************************************************/
319319
320INPUT_PORTS_START( bishjan )
320static INPUT_PORTS_START( bishjan )
321321   PORT_START   // IN0 - Reset
322322   PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Reset") PORT_CODE(KEYCODE_F1)
323323
src/mame/drivers/mpatrol.c
r1238r1239
226226   PORT_DIPSETTING(    0x40, DEF_STR( 1C_5C ) )\
227227   PORT_DIPSETTING(    0x00, DEF_STR( 1C_6C ) )
228228
229INPUT_PORTS_START( mpatrol )
229static INPUT_PORTS_START( mpatrol )
230230MPATROL_COMMON
231231
232232   PORT_START_TAG("DSW0")
r1238r1239
246246INPUT_PORTS_END
247247
248248/* Identical to mpatrol, the only difference is the number of lives */
249INPUT_PORTS_START( mpatrolw )
249static INPUT_PORTS_START( mpatrolw )
250250MPATROL_COMMON
251251
252252   PORT_START_TAG("DSW0")
r1238r1239
266266INPUT_PORTS_END
267267
268268
269INPUT_PORTS_START( alpha1v )
269static INPUT_PORTS_START( alpha1v )
270270   PORT_START_TAG("IN0")\
271271   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
272272   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/offtwall.c
r1238r1239
290290 *
291291 *************************************/
292292
293INPUT_PORTS_START( offtwall )
293static INPUT_PORTS_START( offtwall )
294294   PORT_START   /* 260000 */
295295   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2)
296296   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/upscope.c
r1238r1239
251251 *
252252 *************************************/
253253
254INPUT_PORTS_START( upscope )
254static INPUT_PORTS_START( upscope )
255255   PORT_START_TAG("POT1DAT")
256256   PORT_BIT( 0xff, 0x80, IPT_PADDLE) PORT_SENSITIVITY(25) PORT_MINMAX(0x02,0xfe) PORT_KEYDELTA(5) PORT_CENTERDELTA(0) PORT_REVERSE
257257
src/mame/drivers/equites.c
r1238r1239
418418/******************************************************************************/
419419// Equites Port Map
420420
421INPUT_PORTS_START( equites )
421static INPUT_PORTS_START( equites )
422422   PORT_START
423423   EQUITES_PLAYER_INPUT_LSB( IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3, IPT_START1 )
424424   EQUITES_PLAYER_INPUT_MSB( IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3, IPT_START2 )
r1238r1239
451451/******************************************************************************/
452452// Bull Fighter Port Map
453453
454INPUT_PORTS_START( bullfgtr )
454static INPUT_PORTS_START( bullfgtr )
455455   PORT_START
456456   EQUITES_PLAYER_INPUT_LSB( IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3, IPT_START1 )
457457   EQUITES_PLAYER_INPUT_MSB( IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3, IPT_START2 )
r1238r1239
483483/******************************************************************************/
484484// Koukouyakyuh Port Map
485485
486INPUT_PORTS_START( kouyakyu )
486static INPUT_PORTS_START( kouyakyu )
487487   PORT_START
488488   EQUITES_PLAYER_INPUT_LSB( IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3, IPT_START1 )
489489   EQUITES_PLAYER_INPUT_MSB( IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3, IPT_START2 )
r1238r1239
516516/******************************************************************************/
517517// Splendor Blast Port Map
518518
519INPUT_PORTS_START( splndrbt )
519static INPUT_PORTS_START( splndrbt )
520520   PORT_START
521521   EQUITES_PLAYER_INPUT_LSB( IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN, IPT_START1 )
522522   EQUITES_PLAYER_INPUT_MSB( IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN, IPT_START2 )
r1238r1239
548548/******************************************************************************/
549549// High Voltage Port Map
550550
551INPUT_PORTS_START( hvoltage )
551static INPUT_PORTS_START( hvoltage )
552552   PORT_START
553553   EQUITES_PLAYER_INPUT_LSB( IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN, IPT_START1 )
554554   EQUITES_PLAYER_INPUT_MSB( IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN, IPT_START2 )
src/mame/drivers/esh.c
r1238r1239
168168
169169
170170/* PORTS */
171INPUT_PORTS_START( esh )
171static INPUT_PORTS_START( esh )
172172   PORT_START_TAG("IN0")
173173   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
174174   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/neodrvr.c
r1238r1239
70127012
70137013
70147014/*     YEAR  NAME      PARENT    BIOS    MACHINE   INPUT    INIT      MONITOR  */
7015GAMEB( 1990, neogeo, 0, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Neo-Geo", GAME_IS_BIOS_ROOT )
7015GAME( 1990, neogeo, 0, neogeo, neogeo, neogeo, ROT0, "SNK", "Neo-Geo", GAME_IS_BIOS_ROOT )
70167016
70177017/* SNK */
7018GAMEB( 1990, nam1975,  neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "NAM-1975", 0 )
7019GAMEB( 1990, bstars,   neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Baseball Stars Professional", 0 )
7020GAMEB( 1990, tpgolf,   neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Top Player's Golf", 0 )
7021GAMEB( 1990, mahretsu, neogeo,   neogeo, neogeo_s, mjneogeo,neogeo,   ROT0, "SNK", "Mahjong Kyoretsuden", 0 )
7022GAMEB( 1990, ridhero,  neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Riding Hero (set 1)", 0 )
7023GAMEB( 1990, ridheroh, ridhero,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Riding Hero (set 2)", 0 )
7024GAMEB( 1991, alpham2,  neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Alpha Mission II / ASO II - Last Guardian", 0 )
7025GAMEB( 1990, cyberlip, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Cyber-Lip", 0 )
7026GAMEB( 1990, superspy, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "The Super Spy", 0 )
7027GAMEB( 1992, mutnat,   neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Mutation Nation", 0 )
7028GAMEB( 1991, kotm,     neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "King of the Monsters (set 1)", 0 )
7029GAMEB( 1991, kotmh,    kotm,     neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "King of the Monsters (set 2)", 0 )
7030GAMEB( 1991, sengoku,  neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Sengoku / Sengoku Denshou (set 1)", 0 )
7031GAMEB( 1991, sengokh,  sengoku,  neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Sengoku / Sengoku Denshou (set 2)", 0 )
7032GAMEB( 1991, burningf, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Burning Fight (set 1)", 0 )
7033GAMEB( 1991, burningh, burningf, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Burning Fight (set 2)", 0 )
7034GAMEB( 1990, lbowling, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "League Bowling", 0 )
7035GAMEB( 1991, gpilots,  neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Ghost Pilots", 0 )
7036GAMEB( 1990, joyjoy,   neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Puzzled / Joy Joy Kid", 0 )
7037GAMEB( 1991, quizdais, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Quiz Daisousa Sen - The Last Count Down", 0 )
7038GAMEB( 1992, lresort,  neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Last Resort", 0 )
7039GAMEB( 1991, eightman, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK / Pallas", "Eight Man", 0 )
7040GAMEB( 1991, legendos, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Legend of Success Joe / Ashitano Joe Densetsu", 0 )
7041GAMEB( 1991, 2020bb,   neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK / Pallas", "2020 Super Baseball (set 1)", 0 )
7042GAMEB( 1991, 2020bba,  2020bb,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK / Pallas", "2020 Super Baseball (set 2)", 0 )
7043GAMEB( 1991, 2020bbh,  2020bb,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK / Pallas", "2020 Super Baseball (set 3)", 0 )
7044GAMEB( 1991, socbrawl, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Soccer Brawl", 0 )
7045GAMEB( 1991, fatfury1, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Fatal Fury - King of Fighters / Garou Densetsu - shukumei no tatakai", 0 )
7046GAMEB( 1991, roboarmy, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Robo Army (set 1)", 0 )
7047GAMEB( 1991, roboarma, roboarmy, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Robo Army (set 2)", 0 )
7048GAMEB( 1992, fbfrenzy, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Football Frenzy", 0 )
7049GAMEB( 1992, kotm2,    neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "King of the Monsters 2 - The Next Thing", 0 )
7050GAMEB( 1993, sengoku2, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Sengoku 2 / Sengoku Denshou 2", 0)
7051GAMEB( 1992, bstars2,  neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Baseball Stars 2", 0 )
7052GAMEB( 1992, quizdai2, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Quiz Meitantei Neo & Geo - Quiz Daisousa Sen part 2", 0 )
7053GAMEB( 1993, 3countb,  neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "3 Count Bout / Fire Suplex", 0 )
7054GAMEB( 1992, aof,      neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Art of Fighting / Ryuuko no Ken", 0 )
7055GAMEB( 1993, samsho,   neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Samurai Shodown / Samurai Spirits", 0 )
7056GAMEB( 1994, tophuntr, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Top Hunter - Roddy & Cathy (set 1)", 0 )
7057GAMEB( 1994, tophunta, tophuntr, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Top Hunter - Roddy & Cathy (set 2)", 0 )
7058GAMEB( 1992, fatfury2, neogeo,   neogeo, neogeo,   neogeo,  fatfury2, ROT0, "SNK", "Fatal Fury 2 / Garou Densetsu 2 - arata-naru tatakai", 0 )
7059GAMEB( 1992, ssideki,  neogeo,   neogeo, neogeo_s, neogeo,  fatfury2, ROT0, "SNK", "Super Sidekicks / Tokuten Ou", 0 )
7060GAMEB( 1994, kof94,    neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "The King of Fighters '94", 0 )
7061GAMEB( 1994, aof2,     neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Art of Fighting 2 / Ryuuko no Ken 2 (set 1)", 0 )
7062GAMEB( 1994, aof2a,    aof2,     neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Art of Fighting 2 / Ryuuko no Ken 2 (set 2)", 0 )
7063GAMEB( 1993, fatfursp, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Fatal Fury Special / Garou Densetsu Special (set 1)", 0 )
7064GAMEB( 1993, fatfursa, fatfursp, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Fatal Fury Special / Garou Densetsu Special (set 2)", 0 )
7065GAMEB( 1995, savagere, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Savage Reign / Fu'un Mokushiroku - kakutou sousei", 0 )
7066GAMEB( 1994, ssideki2, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Super Sidekicks 2 - The World Championship / Tokuten Ou 2 - real fight football", 0 )
7067GAMEB( 1994, samsho2,  neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Samurai Shodown II / Shin Samurai Spirits - Haohmaru jigokuhen", 0 )
7018GAME( 1990, nam1975,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "NAM-1975", 0 )
7019GAME( 1990, bstars,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Baseball Stars Professional", 0 )
7020GAME( 1990, tpgolf,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Top Player's Golf", 0 )
7021GAME( 1990, mahretsu, neogeo, neogeo_s, mjneogeo,neogeo,   ROT0, "SNK", "Mahjong Kyoretsuden", 0 )
7022GAME( 1990, ridhero,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Riding Hero (set 1)", 0 )
7023GAME( 1990, ridheroh, ridhero, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Riding Hero (set 2)", 0 )
7024GAME( 1991, alpham2,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Alpha Mission II / ASO II - Last Guardian", 0 )
7025GAME( 1990, cyberlip, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Cyber-Lip", 0 )
7026GAME( 1990, superspy, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "The Super Spy", 0 )
7027GAME( 1992, mutnat,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Mutation Nation", 0 )
7028GAME( 1991, kotm,     neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "King of the Monsters (set 1)", 0 )
7029GAME( 1991, kotmh,    kotm, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "King of the Monsters (set 2)", 0 )
7030GAME( 1991, sengoku,  neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Sengoku / Sengoku Denshou (set 1)", 0 )
7031GAME( 1991, sengokh,  sengoku, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Sengoku / Sengoku Denshou (set 2)", 0 )
7032GAME( 1991, burningf, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Burning Fight (set 1)", 0 )
7033GAME( 1991, burningh, burningf, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Burning Fight (set 2)", 0 )
7034GAME( 1990, lbowling, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "League Bowling", 0 )
7035GAME( 1991, gpilots,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Ghost Pilots", 0 )
7036GAME( 1990, joyjoy,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Puzzled / Joy Joy Kid", 0 )
7037GAME( 1991, quizdais, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Quiz Daisousa Sen - The Last Count Down", 0 )
7038GAME( 1992, lresort,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Last Resort", 0 )
7039GAME( 1991, eightman, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK / Pallas", "Eight Man", 0 )
7040GAME( 1991, legendos, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Legend of Success Joe / Ashitano Joe Densetsu", 0 )
7041GAME( 1991, 2020bb,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK / Pallas", "2020 Super Baseball (set 1)", 0 )
7042GAME( 1991, 2020bba,  2020bb, neogeo_s, neogeo,  neogeo,   ROT0, "SNK / Pallas", "2020 Super Baseball (set 2)", 0 )
7043GAME( 1991, 2020bbh,  2020bb, neogeo_s, neogeo,  neogeo,   ROT0, "SNK / Pallas", "2020 Super Baseball (set 3)", 0 )
7044GAME( 1991, socbrawl, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Soccer Brawl", 0 )
7045GAME( 1991, fatfury1, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Fatal Fury - King of Fighters / Garou Densetsu - shukumei no tatakai", 0 )
7046GAME( 1991, roboarmy, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Robo Army (set 1)", 0 )
7047GAME( 1991, roboarma, roboarmy, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Robo Army (set 2)", 0 )
7048GAME( 1992, fbfrenzy, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Football Frenzy", 0 )
7049GAME( 1992, kotm2,    neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "King of the Monsters 2 - The Next Thing", 0 )
7050GAME( 1993, sengoku2, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Sengoku 2 / Sengoku Denshou 2", 0)
7051GAME( 1992, bstars2,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Baseball Stars 2", 0 )
7052GAME( 1992, quizdai2, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Quiz Meitantei Neo & Geo - Quiz Daisousa Sen part 2", 0 )
7053GAME( 1993, 3countb,  neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "3 Count Bout / Fire Suplex", 0 )
7054GAME( 1992, aof,      neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Art of Fighting / Ryuuko no Ken", 0 )
7055GAME( 1993, samsho,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Samurai Shodown / Samurai Spirits", 0 )
7056GAME( 1994, tophuntr, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Top Hunter - Roddy & Cathy (set 1)", 0 )
7057GAME( 1994, tophunta, tophuntr, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Top Hunter - Roddy & Cathy (set 2)", 0 )
7058GAME( 1992, fatfury2, neogeo, neogeo,   neogeo,  fatfury2, ROT0, "SNK", "Fatal Fury 2 / Garou Densetsu 2 - arata-naru tatakai", 0 )
7059GAME( 1992, ssideki,  neogeo, neogeo_s, neogeo,  fatfury2, ROT0, "SNK", "Super Sidekicks / Tokuten Ou", 0 )
7060GAME( 1994, kof94,    neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "The King of Fighters '94", 0 )
7061GAME( 1994, aof2,     neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Art of Fighting 2 / Ryuuko no Ken 2 (set 1)", 0 )
7062GAME( 1994, aof2a,    aof2, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Art of Fighting 2 / Ryuuko no Ken 2 (set 2)", 0 )
7063GAME( 1993, fatfursp, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Fatal Fury Special / Garou Densetsu Special (set 1)", 0 )
7064GAME( 1993, fatfursa, fatfursp, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Fatal Fury Special / Garou Densetsu Special (set 2)", 0 )
7065GAME( 1995, savagere, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Savage Reign / Fu'un Mokushiroku - kakutou sousei", 0 )
7066GAME( 1994, ssideki2, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Super Sidekicks 2 - The World Championship / Tokuten Ou 2 - real fight football", 0 )
7067GAME( 1994, samsho2,  neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Samurai Shodown II / Shin Samurai Spirits - Haohmaru jigokuhen", 0 )
70687068/* 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 */
7069GAMEB( 1995, fatfury3, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Fatal Fury 3 - Road to the Final Victory / Garou Densetsu 3 - haruka-naru tatakai", 0 )
7070GAMEB( 1995, ssideki3, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Super Sidekicks 3 - The Next Glory / Tokuten Ou 3 - eikoue no michi", 0 )
7071GAMEB( 1995, kof95,    neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "The King of Fighters '95 (set 1)", 0 )
7072GAMEB( 1995, kof95a,   kof95,    neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "The King of Fighters '95 (set 2)", 0 )
7073GAMEB( 1995, samsho3,  neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Samurai Shodown III / Samurai Spirits - Zankurou Musouken (set 1)", 0 )
7074GAMEB( 1995, samsho3a, samsho3,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Samurai Shodown III / Samurai Spirits - Zankurou Musouken (set 2)", 0 )
7075GAMEB( 1995, fswords,  samsho3,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Fighters Swords (Korean release of Samurai Shodown III)", 0 )
7076GAMEB( 1995, rbff1,    neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Real Bout Fatal Fury / Real Bout Garou Densetsu", 0 )
7077GAMEB( 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 )
7078GAMEB( 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
7079GAMEB( 1996, kof96,    neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "The King of Fighters '96 (set 1)", 0 )
7080GAMEB( 1996, kof96h,   kof96,    neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "The King of Fighters '96 (set 2)", 0 )
7081GAMEB( 1996, ssideki4, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Ultimate 11 - The SNK Football Championship / Tokuten Ou - Honoo no Libero, The", 0 )
7082GAMEB( 1996, kizuna,   neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Kizuna Encounter - Super Tag Battle / Fu'un Super Tag Battle", 0 )
7083GAMEB( 1996, samsho4,  neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Samurai Shodown IV - Amakusa's Revenge / Samurai Spirits - Amakusa Kourin", 0 )
7069GAME( 1995, fatfury3, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Fatal Fury 3 - Road to the Final Victory / Garou Densetsu 3 - haruka-naru tatakai", 0 )
7070GAME( 1995, ssideki3, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Super Sidekicks 3 - The Next Glory / Tokuten Ou 3 - eikoue no michi", 0 )
7071GAME( 1995, kof95,    neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "The King of Fighters '95 (set 1)", 0 )
7072GAME( 1995, kof95a,   kof95, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "The King of Fighters '95 (set 2)", 0 )
7073GAME( 1995, samsho3,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Samurai Shodown III / Samurai Spirits - Zankurou Musouken (set 1)", 0 )
7074GAME( 1995, samsho3a, samsho3, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Samurai Shodown III / Samurai Spirits - Zankurou Musouken (set 2)", 0 )
7075GAME( 1995, fswords,  samsho3, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Fighters Swords (Korean release of Samurai Shodown III)", 0 )
7076GAME( 1995, rbff1,    neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Real Bout Fatal Fury / Real Bout Garou Densetsu", 0 )
7077GAME( 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 )
7078GAME( 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
7079GAME( 1996, kof96,    neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "The King of Fighters '96 (set 1)", 0 )
7080GAME( 1996, kof96h,   kof96, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "The King of Fighters '96 (set 2)", 0 )
7081GAME( 1996, ssideki4, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Ultimate 11 - The SNK Football Championship / Tokuten Ou - Honoo no Libero, The", 0 )
7082GAME( 1996, kizuna,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Kizuna Encounter - Super Tag Battle / Fu'un Super Tag Battle", 0 )
7083GAME( 1996, samsho4,  neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Samurai Shodown IV - Amakusa's Revenge / Samurai Spirits - Amakusa Kourin", 0 )
70847084/* 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 */
7085GAMEB( 1996, rbffspec, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Real Bout Fatal Fury Special / Real Bout Garou Densetsu Special", 0 )
7086GAMEB( 1997, kof97,    neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "The King of Fighters '97 (set 1)", 0 )
7087GAMEB( 1997, kof97a,   kof97,    neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "The King of Fighters '97 (set 2)", 0 )
7088GAMEB( 1997, kof97pls, kof97,    neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "bootleg", "The King of Fighters '97 Plus (bootleg)", 0 )
7089GAMEB( 1997, kog,      kof97,    neogeo, neogeo_s, kog,     kog,      ROT0, "bootleg", "King of Gladiator (The King of Fighters '97 bootleg)", GAME_NOT_WORKING ) // protected bootleg
7090GAMEB( 1997, lastblad, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Last Blade / Bakumatsu Roman - Gekka no Kenshi, The (set 1)", 0 )
7091GAMEB( 1997, lastbldh, lastblad, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Last Blade / Bakumatsu Roman - Gekka no Kenshi, The (set 2)", 0 )
7092GAMEB( 1997, lastsold, lastblad, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "The Last Soldier (Korean release of The Last Blade)", 0 )
7093GAMEB( 1997, irrmaze,  neogeo,   neogeo, neogeo_s, irrmaze, neogeo,   ROT0, "SNK / Saurus", "The Irritating Maze / Ultra Denryu Iraira Bou", 0 )
7094GAMEB( 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 )
7095GAMEB( 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 )
7096GAMEB( 1998, rbff2k,   rbff2,    neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Real Bout Fatal Fury 2 - The Newcomers (Korean release)", 0 ) // no Japanese title / mode
7097GAMEB( 1998, mslug2,   neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Metal Slug 2 - Super Vehicle-001/II", 0 )
7098GAMEB( 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 )
7099GAMEB( 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 )
7100GAMEB( 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 )
7101GAMEB( 1998, lastbld2, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Last Blade 2 / Bakumatsu Roman - Dai Ni Maku Gekka no Kenshi, The", 0 )
7102GAMEB( 1998, neocup98, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Neo-Geo Cup '98 - The Road to the Victory", 0 )
7103GAMEB( 1999, mslugx,   neogeo,   neogeo, neogeo_s, neogeo,  mslugx,   ROT0, "SNK", "Metal Slug X - Super Vehicle-001", 0 )
7104GAMEB( 1999, kof99,    neogeo,   neogeo, neogeo_s, neogeo,  kof99,    ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (set 1)" , 0) /* Encrypted Code & GFX */
7105GAMEB( 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 */
7106GAMEB( 1999, kof99e,   kof99,    neogeo, neogeo_s, neogeo,  kof99,    ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (earlier)" , 0) /* Encrypted Code & GFX */
7107GAMEB( 1999, kof99n,   kof99,    neogeo, neogeo_s, neogeo,  kof99n,   ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (not encrypted)" , 0)   /* Encrypted GFX */
7108GAMEB( 1999, kof99p,   kof99,    neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (prototype)", 0 )
7109GAMEB( 1999, garou,    neogeo,   neogeo, neogeo,   neogeo,  garou,    ROT0, "SNK", "Garou - Mark of the Wolves (set 1)" , 0) /* Encrypted Code & GFX */
7110GAMEB( 1999, garouo,   garou,    neogeo, neogeo,   neogeo,  garouo,   ROT0, "SNK", "Garou - Mark of the Wolves (set 2)" , 0) /* Encrypted Code & GFX */
7111GAMEB( 1999, garoup,   garou,    neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Garou - Mark of the Wolves (prototype)", 0 )
7112GAMEB( 1999, garoubl,  garou,    neogeo, neogeo,   neogeo,  garoubl,  ROT0, "bootleg", "Garou - Mark of the Wolves (bootleg)", 0 ) /* Bootleg of garoup */
7113GAMEB( 2000, mslug3,   neogeo,   neogeo, neogeo_s, neogeo,  mslug3,   ROT0, "SNK", "Metal Slug 3" , 0) /* Encrypted Code & GFX */
7114GAMEB( 2000, mslug3n,  mslug3,   neogeo, neogeo_s, neogeo,  mslug3n,  ROT0, "SNK", "Metal Slug 3 (not encrypted)" , 0) /* Encrypted GFX */
7115GAMEB( 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 ;-) */
7116GAMEB( 2000, kof2000,  neogeo,   neogeo, neogeo_s, neogeo,  kof2000,  ROT0, "SNK", "The King of Fighters 2000" , 0) /* Encrypted Code & GFX */
7117GAMEB( 2000, kof2000n, kof2000,  neogeo, neogeo_s, neogeo,  kof2000n, ROT0, "SNK", "The King of Fighters 2000 (not encrypted)" , 0) /* Encrypted GFX */
7118GAMEB( 2001, zupapa,   neogeo,   neogeo, neogeo_s, neogeo,  zupapa,   ROT0, "SNK", "Zupapa!" , 0)   /* Encrypted GFX */
7119GAMEB( 2001, sengoku3, neogeo,   neogeo, neogeo,   neogeo,  sengoku3, ROT0, "SNK", "Sengoku 3" , 0)   /* Encrypted GFX */
7120GAMEB( 2001, kof2001,  neogeo,   neogeo, neogeo_s, neogeo,  kof2001,  ROT0, "Eolith / SNK", "The King of Fighters 2001 (set 1)" , 0) /* Encrypted GFX */
7121GAMEB( 2001, kof2001h, kof2001,  neogeo, neogeo_s, neogeo,  kof2001,  ROT0, "Eolith / SNK", "The King of Fighters 2001 (set 2)" , 0) /* Encrypted GFX */
7122GAMEB( 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 */
7123GAMEB( 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 */
7124GAMEB( 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 */
7125GAMEB( 2002, kof2002,  neogeo,   neogeo, neogeo_s, neogeo,  kof2002,  ROT0, "Eolith / Playmore", "The King of Fighters 2002" , 0) /* Encrypted GFX */
7126GAMEB( 2002, kf2k2pls, kof2002,  neogeo, neogeo_s, neogeo,  kf2k2pls, ROT0, "bootleg", "The King of Fighters 2002 Plus (set 1, bootleg)" , 0) /* Encrypted GFX */
7127GAMEB( 2002, kf2k2pla, kof2002,  neogeo, neogeo_s, neogeo,  kf2k2pls, ROT0, "bootleg", "The King of Fighters 2002 Plus (set 2, bootleg)" , 0) /* Encrypted GFX */
7128GAMEB( 2002, kf2k2mp,  kof2002,  neogeo, neogeo_s, neogeo,  kf2k2mp,  ROT0, "bootleg", "The King of Fighters 2002 Magic Plus (bootleg)" , 0) /* Encrypted GFX */
7129GAMEB( 2002, kf2k2mp2, kof2002,  neogeo, neogeo_s, neogeo,  kof2km2,  ROT0, "bootleg", "The King of Fighters 2002 Magic Plus II (bootleg)" , 0) /* Encrypted GFX */
7130GAMEB( 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
7131GAMEB( 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
7132GAMEB( 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
7133GAMEB( 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 */
7134GAMEB( 2003, mslug5,   neogeo,   neogeo, neogeo_s, neogeo,  mslug5,   ROT0, "SNK Playmore", "Metal Slug 5", 0 )
7085GAME( 1996, rbffspec, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Real Bout Fatal Fury Special / Real Bout Garou Densetsu Special", 0 )
7086GAME( 1997, kof97,    neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "The King of Fighters '97 (set 1)", 0 )
7087GAME( 1997, kof97a,   kof97, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "The King of Fighters '97 (set 2)", 0 )
7088GAME( 1997, kof97pls, kof97, neogeo_s, neogeo,  neogeo,   ROT0, "bootleg", "The King of Fighters '97 Plus (bootleg)", 0 )
7089GAME( 1997, kog,      kof97, neogeo_s, kog,     kog,      ROT0, "bootleg", "King of Gladiator (The King of Fighters '97 bootleg)", GAME_NOT_WORKING ) // protected bootleg
7090GAME( 1997, lastblad, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Last Blade / Bakumatsu Roman - Gekka no Kenshi, The (set 1)", 0 )
7091GAME( 1997, lastbldh, lastblad, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Last Blade / Bakumatsu Roman - Gekka no Kenshi, The (set 2)", 0 )
7092GAME( 1997, lastsold, lastblad, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "The Last Soldier (Korean release of The Last Blade)", 0 )
7093GAME( 1997, irrmaze,  neogeo, neogeo_s, irrmaze, neogeo,   ROT0, "SNK / Saurus", "The Irritating Maze / Ultra Denryu Iraira Bou", 0 )
7094GAME( 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 )
7095GAME( 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 )
7096GAME( 1998, rbff2k,   rbff2, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Real Bout Fatal Fury 2 - The Newcomers (Korean release)", 0 ) // no Japanese title / mode
7097GAME( 1998, mslug2,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Metal Slug 2 - Super Vehicle-001/II", 0 )
7098GAME( 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 )
7099GAME( 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 )
7100GAME( 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 )
7101GAME( 1998, lastbld2, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Last Blade 2 / Bakumatsu Roman - Dai Ni Maku Gekka no Kenshi, The", 0 )
7102GAME( 1998, neocup98, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Neo-Geo Cup '98 - The Road to the Victory", 0 )
7103GAME( 1999, mslugx,   neogeo, neogeo_s, neogeo,  mslugx,   ROT0, "SNK", "Metal Slug X - Super Vehicle-001", 0 )
7104GAME( 1999, kof99,    neogeo, neogeo_s, neogeo,  kof99,    ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (set 1)" , 0) /* Encrypted Code & GFX */
7105GAME( 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 */
7106GAME( 1999, kof99e,   kof99, neogeo_s, neogeo,  kof99,    ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (earlier)" , 0) /* Encrypted Code & GFX */
7107GAME( 1999, kof99n,   kof99, neogeo_s, neogeo,  kof99n,   ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (not encrypted)" , 0)   /* Encrypted GFX */
7108GAME( 1999, kof99p,   kof99, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (prototype)", 0 )
7109GAME( 1999, garou,    neogeo, neogeo,   neogeo,  garou,    ROT0, "SNK", "Garou - Mark of the Wolves (set 1)" , 0) /* Encrypted Code & GFX */
7110GAME( 1999, garouo,   garou, neogeo,   neogeo,  garouo,   ROT0, "SNK", "Garou - Mark of the Wolves (set 2)" , 0) /* Encrypted Code & GFX */
7111GAME( 1999, garoup,   garou, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Garou - Mark of the Wolves (prototype)", 0 )
7112GAME( 1999, garoubl,  garou, neogeo,   neogeo,  garoubl,  ROT0, "bootleg", "Garou - Mark of the Wolves (bootleg)", 0 ) /* Bootleg of garoup */
7113GAME( 2000, mslug3,   neogeo, neogeo_s, neogeo,  mslug3,   ROT0, "SNK", "Metal Slug 3" , 0) /* Encrypted Code & GFX */
7114GAME( 2000, mslug3n,  mslug3, neogeo_s, neogeo,  mslug3n,  ROT0, "SNK", "Metal Slug 3 (not encrypted)" , 0) /* Encrypted GFX */
7115GAME( 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 ;-) */
7116GAME( 2000, kof2000,  neogeo, neogeo_s, neogeo,  kof2000,  ROT0, "SNK", "The King of Fighters 2000" , 0) /* Encrypted Code & GFX */
7117GAME( 2000, kof2000n, kof2000, neogeo_s, neogeo,  kof2000n, ROT0, "SNK", "The King of Fighters 2000 (not encrypted)" , 0) /* Encrypted GFX */
7118GAME( 2001, zupapa,   neogeo, neogeo_s, neogeo,  zupapa,   ROT0, "SNK", "Zupapa!" , 0)   /* Encrypted GFX */
7119GAME( 2001, sengoku3, neogeo, neogeo,   neogeo,  sengoku3, ROT0, "SNK", "Sengoku 3" , 0)   /* Encrypted GFX */
7120GAME( 2001, kof2001,  neogeo, neogeo_s, neogeo,  kof2001,  ROT0, "Eolith / SNK", "The King of Fighters 2001 (set 1)" , 0) /* Encrypted GFX */
7121GAME( 2001, kof2001h, kof2001, neogeo_s, neogeo,  kof2001,  ROT0, "Eolith / SNK", "The King of Fighters 2001 (set 2)" , 0) /* Encrypted GFX */
7122GAME( 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 */
7123GAME( 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 */
7124GAME( 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 */
7125GAME( 2002, kof2002,  neogeo, neogeo_s, neogeo,  kof2002,  ROT0, "Eolith / Playmore", "The King of Fighters 2002" , 0) /* Encrypted GFX */
7126GAME( 2002, kf2k2pls, kof2002, neogeo_s, neogeo,  kf2k2pls, ROT0, "bootleg", "The King of Fighters 2002 Plus (set 1, bootleg)" , 0) /* Encrypted GFX */
7127GAME( 2002, kf2k2pla, kof2002, neogeo_s, neogeo,  kf2k2pls, ROT0, "bootleg", "The King of Fighters 2002 Plus (set 2, bootleg)" , 0) /* Encrypted GFX */
7128GAME( 2002, kf2k2mp,  kof2002, neogeo_s, neogeo,  kf2k2mp,  ROT0, "bootleg", "The King of Fighters 2002 Magic Plus (bootleg)" , 0) /* Encrypted GFX */
7129GAME( 2002, kf2k2mp2, kof2002, neogeo_s, neogeo,  kof2km2,  ROT0, "bootleg", "The King of Fighters 2002 Magic Plus II (bootleg)" , 0) /* Encrypted GFX */
7130GAME( 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
7131GAME( 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
7132GAME( 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
7133GAME( 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 */
7134GAME( 2003, mslug5,   neogeo, neogeo_s, neogeo,  mslug5,   ROT0, "SNK Playmore", "Metal Slug 5", 0 )
71357135GAME ( 2003, ms5pcb,   0,                neogeo_s, neogeo,  ms5pcb,   ROT0, "SNK Playmore", "Metal Slug 5 (JAMMA PCB)", 0 )
7136GAMEB( 2003, ms5plus,  mslug5,   neogeo, neogeo_s, neogeo,  ms5plus,  ROT0, "bootleg", "Metal Slug 5 Plus (bootleg)",0 )
7136GAME( 2003, ms5plus,  mslug5, neogeo_s, neogeo,  ms5plus,  ROT0, "bootleg", "Metal Slug 5 Plus (bootleg)",0 )
71377137GAME ( 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.
71387138GAME ( 2003, svcpcba,  svcpcb,           neogeo_s, svcpcb,  svcpcb,   ROT0, "Playmore", "SNK vs. CAPCOM SVC CHAOS (JAMMA PCB, set 2)" , 0 ) /* Encrypted Code */
7139GAMEB( 2003, svc,      neogeo,   neogeo, neogeo_s, neogeo,  svc,      ROT0, "Playmore", "SNK vs. CAPCOM SVC CHAOS", 0 )
7140GAMEB( 2003, svcboot,  svc,      neogeo, neogeo_s, neogeo,  svcboot,  ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS (bootleg)",0 )
7141GAMEB( 2003, svcplus,  svc,      neogeo, neogeo_s, neogeo,  svcplus,  ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS Plus (set 1, bootleg)",0 )
7142GAMEB( 2003, svcplusa, svc,      neogeo, neogeo_s, neogeo,  svcplusa, ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS Plus (set 2, bootleg)",0 )
7143GAMEB( 2003, svcsplus, svc,      neogeo, neogeo_s, neogeo,  svcsplus, ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS Super Plus (bootleg)",0 )
7144GAMEB( 2003, samsho5,  neogeo,   neogeo, neogeo_s, neogeo,  samsho5,  ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V / Samurai Spirits Zero (set 1)", 0 )
7145GAMEB( 2003, samsho5h, samsho5,  neogeo, neogeo_s, neogeo,  samsho5,  ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V / Samurai Spirits Zero (set 2)", 0 )
7146GAMEB( 2003, samsho5b, samsho5,  neogeo, neogeo_s, neogeo,  samsho5b, ROT0, "bootleg", "Samurai Shodown V / Samurai Spirits Zero (bootleg)", 0 ) // different program scrambling
7139GAME( 2003, svc,      neogeo, neogeo_s, neogeo,  svc,      ROT0, "Playmore", "SNK vs. CAPCOM SVC CHAOS", 0 )
7140GAME( 2003, svcboot,  svc, neogeo_s, neogeo,  svcboot,  ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS (bootleg)",0 )
7141GAME( 2003, svcplus,  svc, neogeo_s, neogeo,  svcplus,  ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS Plus (set 1, bootleg)",0 )
7142GAME( 2003, svcplusa, svc, neogeo_s, neogeo,  svcplusa, ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS Plus (set 2, bootleg)",0 )
7143GAME( 2003, svcsplus, svc, neogeo_s, neogeo,  svcsplus, ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS Super Plus (bootleg)",0 )
7144GAME( 2003, samsho5,  neogeo, neogeo_s, neogeo,  samsho5,  ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V / Samurai Spirits Zero (set 1)", 0 )
7145GAME( 2003, samsho5h, samsho5, neogeo_s, neogeo,  samsho5,  ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V / Samurai Spirits Zero (set 2)", 0 )
7146GAME( 2003, samsho5b, samsho5, neogeo_s, neogeo,  samsho5b, ROT0, "bootleg", "Samurai Shodown V / Samurai Spirits Zero (bootleg)", 0 ) // different program scrambling
71477147GAME ( 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.
7148GAMEB( 2003, kof2003,  neogeo,   neogeo, neogeo_s, neogeo,  kof2003,  ROT0, "SNK Playmore", "The King of Fighters 2003 (World / US, MVS)", 0 )
7149GAMEB( 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?)
7150GAMEB( 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
7151GAMEB( 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
7152GAMEB( 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
7153GAMEB( 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 )
7154GAMEB( 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 )
7155GAMEB( 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 )
7148GAME( 2003, kof2003,  neogeo, neogeo_s, neogeo,  kof2003,  ROT0, "SNK Playmore", "The King of Fighters 2003 (World / US, MVS)", 0 )
7149GAME( 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?)
7150GAME( 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
7151GAME( 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
7152GAME( 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
7153GAME( 2003, samsh5sp, neogeo, neogeo_s, neogeo,  samsh5sp, ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V Special / Samurai Spirits Zero Special (set 1, uncensored)", 0 )
7154GAME( 2003, samsh5sh, samsh5sp, neogeo_s, neogeo,  samsh5sp, ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V Special / Samurai Spirits Zero Special (set 2, censored)", 0 )
7155GAME( 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 )
71567156
71577157/* there are other bootlegs kof2002b etc. kof96ep, matrimbl?, kf2k1pls -- work out which should be supported */
71587158
71597159/* Alpha Denshi Co. / ADK (changed name in 1993) */
7160GAMEB( 1990, maglord,  neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Alpha Denshi Co.", "Magician Lord (set 1)", 0 )
7161GAMEB( 1990, maglordh, maglord,  neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Alpha Denshi Co.", "Magician Lord (set 2)", 0 )
7162GAMEB( 1990, ncombat,  neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Alpha Denshi Co.", "Ninja Combat (set 1)", 0 )
7163GAMEB( 1990, ncombath, ncombat,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Alpha Denshi Co.", "Ninja Combat (set 2)", 0 )
7164GAMEB( 1990, bjourney, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Alpha Denshi Co.", "Blue's Journey / Raguy", 0 )
7165GAMEB( 1991, crsword,  neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Alpha Denshi Co.", "Crossed Swords", 0 )
7166GAMEB( 1991, trally,   neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Alpha Denshi Co.", "Thrash Rally", 0 )
7167GAMEB( 1992, ncommand, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Alpha Denshi Co.", "Ninja Commando", 0 )
7168GAMEB( 1992, wh1,      neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Alpha Denshi Co.", "World Heroes (set 1)", 0 )
7169GAMEB( 1992, wh1h,     wh1,      neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Alpha Denshi Co.", "World Heroes (set 2)", 0 )
7170GAMEB( 1992, wh1ha,    wh1,      neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Alpha Denshi Co.", "World Heroes (set 3)", 0 )
7171GAMEB( 1993, wh2,      neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "ADK",              "World Heroes 2", 0 )
7172GAMEB( 1994, wh2j,     neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "ADK / SNK",        "World Heroes 2 Jet (set 1)", 0 )
7173GAMEB( 1994, wh2jh,    wh2j,     neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "ADK / SNK",        "World Heroes 2 Jet (set 2)", 0 )
7174GAMEB( 1994, aodk,     neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "ADK / SNK",        "Aggressors of Dark Kombat / Tsuukai GANGAN Koushinkyoku", 0 )
7175GAMEB( 1995, whp,      neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "ADK / SNK",        "World Heroes Perfect", 0 )
7176GAMEB( 1995, mosyougi, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "ADK / SNK",        "Syougi No Tatsujin - Master of Syougi", 0 )
7177GAMEB( 1996, overtop,  neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "ADK",              "Over Top", 0 )
7178GAMEB( 1996, ninjamas, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "ADK / SNK",        "Ninja Master's - haoh-ninpo-cho", 0 )
7179GAMEB( 1996, twinspri, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "ADK",              "Twinkle Star Sprites", 0 )
7180GAMEB( 1996, zintrckb, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "hack / bootleg",   "Zintrick / Oshidashi Zentrix (hack / bootleg)", 0 )
7160GAME( 1990, maglord,  neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Alpha Denshi Co.", "Magician Lord (set 1)", 0 )
7161GAME( 1990, maglordh, maglord, neogeo,   neogeo,  neogeo,   ROT0, "Alpha Denshi Co.", "Magician Lord (set 2)", 0 )
7162GAME( 1990, ncombat,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Alpha Denshi Co.", "Ninja Combat (set 1)", 0 )
7163GAME( 1990, ncombath, ncombat, neogeo_s, neogeo,  neogeo,   ROT0, "Alpha Denshi Co.", "Ninja Combat (set 2)", 0 )
7164GAME( 1990, bjourney, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Alpha Denshi Co.", "Blue's Journey / Raguy", 0 )
7165GAME( 1991, crsword,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Alpha Denshi Co.", "Crossed Swords", 0 )
7166GAME( 1991, trally,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Alpha Denshi Co.", "Thrash Rally", 0 )
7167GAME( 1992, ncommand, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Alpha Denshi Co.", "Ninja Commando", 0 )
7168GAME( 1992, wh1,      neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Alpha Denshi Co.", "World Heroes (set 1)", 0 )
7169GAME( 1992, wh1h,     wh1, neogeo,   neogeo,  neogeo,   ROT0, "Alpha Denshi Co.", "World Heroes (set 2)", 0 )
7170GAME( 1992, wh1ha,    wh1, neogeo,   neogeo,  neogeo,   ROT0, "Alpha Denshi Co.", "World Heroes (set 3)", 0 )
7171GAME( 1993, wh2,      neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "ADK",              "World Heroes 2", 0 )
7172GAME( 1994, wh2j,     neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "ADK / SNK",        "World Heroes 2 Jet (set 1)", 0 )
7173GAME( 1994, wh2jh,    wh2j, neogeo_s, neogeo,  neogeo,   ROT0, "ADK / SNK",        "World Heroes 2 Jet (set 2)", 0 )
7174GAME( 1994, aodk,     neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "ADK / SNK",        "Aggressors of Dark Kombat / Tsuukai GANGAN Koushinkyoku", 0 )
7175GAME( 1995, whp,      neogeo, neogeo,   neogeo,  neogeo,   ROT0, "ADK / SNK",        "World Heroes Perfect", 0 )
7176GAME( 1995, mosyougi, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "ADK / SNK",        "Syougi No Tatsujin - Master of Syougi", 0 )
7177GAME( 1996, overtop,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "ADK",              "Over Top", 0 )
7178GAME( 1996, ninjamas, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "ADK / SNK",        "Ninja Master's - haoh-ninpo-cho", 0 )
7179GAME( 1996, twinspri, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "ADK",              "Twinkle Star Sprites", 0 )
7180GAME( 1996, zintrckb, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "hack / bootleg",   "Zintrick / Oshidashi Zentrix (hack / bootleg)", 0 )
71817181
71827182/* Aicom */
7183GAMEB( 1994, janshin,  neogeo,   neogeo, neogeo,   mjneogeo,neogeo,   ROT0, "Aicom", "Jyanshin Densetsu - Quest of Jongmaster", 0 )
7184GAMEB( 1995, pulstar,  neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Aicom", "Pulstar", 0 )
7183GAME( 1994, janshin,  neogeo, neogeo,   mjneogeo,neogeo,   ROT0, "Aicom", "Jyanshin Densetsu - Quest of Jongmaster", 0 )
7184GAME( 1995, pulstar,  neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Aicom", "Pulstar", 0 )
71857185
71867186/* Data East Corporation */
7187GAMEB( 1993, spinmast, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Data East Corporation", "Spin Master / Miracle Adventure", 0 )
7188GAMEB( 1994, wjammers, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Data East Corporation", "Windjammers / Flying Power Disc", 0 )
7189GAMEB( 1994, karnovr,  neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Data East Corporation", "Karnov's Revenge / Fighter's History Dynamite", 0 )
7190GAMEB( 1994, strhoop,  neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Data East Corporation", "Street Hoop / Street Slam / Dunk Dream", 0 )
7191GAMEB( 1996, ghostlop, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Data East Corporation", "Ghostlop (prototype)", 0 )
7192GAMEB( 1996, magdrop2, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Data East Corporation", "Magical Drop II", 0 )
7193GAMEB( 1997, magdrop3, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Data East Corporation", "Magical Drop III", 0 )
7187GAME( 1993, spinmast, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Data East Corporation", "Spin Master / Miracle Adventure", 0 )
7188GAME( 1994, wjammers, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Data East Corporation", "Windjammers / Flying Power Disc", 0 )
7189GAME( 1994, karnovr,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Data East Corporation", "Karnov's Revenge / Fighter's History Dynamite", 0 )
7190GAME( 1994, strhoop,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Data East Corporation", "Street Hoop / Street Slam / Dunk Dream", 0 )
7191GAME( 1996, ghostlop, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Data East Corporation", "Ghostlop (prototype)", 0 )
7192GAME( 1996, magdrop2, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Data East Corporation", "Magical Drop II", 0 )
7193GAME( 1997, magdrop3, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Data East Corporation", "Magical Drop III", 0 )
71947194
71957195/* Eleven */
7196GAMEB( 2000, nitd,     neogeo,   neogeo, neogeo,   neogeo,  nitd,     ROT0, "Eleven / Gavaking", "Nightmare in the Dark" , 0) /* Encrypted GFX */
7197GAMEB( 2001, nitdbl,   nitd,     neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Eleven / Gavaking", "Nightmare in the Dark (bootleg)" , 0)
7196GAME( 2000, nitd,     neogeo, neogeo,   neogeo,  nitd,     ROT0, "Eleven / Gavaking", "Nightmare in the Dark" , 0) /* Encrypted GFX */
7197GAME( 2001, nitdbl,   nitd, neogeo,   neogeo,  neogeo,   ROT0, "Eleven / Gavaking", "Nightmare in the Dark (bootleg)" , 0)
71987198
71997199/* Face */
7200GAMEB( 1994, gururin,  neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Face", "Gururin", 0 )
7201GAMEB( 1997, miexchng, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Face", "Money Puzzle Exchanger / Money Idol Exchanger", 0 )
7200GAME( 1994, gururin,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Face", "Gururin", 0 )
7201GAME( 1997, miexchng, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Face", "Money Puzzle Exchanger / Money Idol Exchanger", 0 )
72027202
72037203/* Hudson Soft */
7204GAMEB( 1994, panicbom, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Eighting / Hudson", "Panic Bomber", 0 )
7205GAMEB( 1995, kabukikl, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Hudson", "Far East of Eden - Kabuki Klash / Tengai Makyou - Shin Den", 0 )
7206GAMEB( 1997, neobombe, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Hudson", "Neo Bomberman", 0 )
7204GAME( 1994, panicbom, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Eighting / Hudson", "Panic Bomber", 0 )
7205GAME( 1995, kabukikl, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Hudson", "Far East of Eden - Kabuki Klash / Tengai Makyou - Shin Den", 0 )
7206GAME( 1997, neobombe, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Hudson", "Neo Bomberman", 0 )
72077207
72087208/* Monolith Corp. */
7209GAMEB( 1990, minasan,  neogeo,   neogeo, neogeo_s, mjneogeo,neogeo,   ROT0, "Monolith Corp.", "Minnasanno Okagesamadesu", 0 )
7210GAMEB( 1991, bakatono, neogeo,   neogeo, neogeo_s, mjneogeo,neogeo,   ROT0, "Monolith Corp.", "Bakatonosama Mahjong Manyuki", 0 )
7209GAME( 1990, minasan,  neogeo, neogeo_s, mjneogeo,neogeo,   ROT0, "Monolith Corp.", "Minnasanno Okagesamadesu", 0 )
7210GAME( 1991, bakatono, neogeo, neogeo_s, mjneogeo,neogeo,   ROT0, "Monolith Corp.", "Bakatonosama Mahjong Manyuki", 0 )
72117211
72127212/* Nazca */
7213GAMEB( 1996, turfmast, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Nazca", "Neo Turf Masters / Big Tournament Golf", 0 )
7214GAMEB( 1996, mslug,    neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Nazca", "Metal Slug - Super Vehicle-001", 0 )
7213GAME( 1996, turfmast, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Nazca", "Neo Turf Masters / Big Tournament Golf", 0 )
7214GAME( 1996, mslug,    neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Nazca", "Metal Slug - Super Vehicle-001", 0 )
72157215
72167216/* NMK */
7217GAMEB( 1994, zedblade, neogeo,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "NMK", "Zed Blade / Operation Ragnarok", 0 )
7217GAME( 1994, zedblade, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "NMK", "Zed Blade / Operation Ragnarok", 0 )
72187218
72197219/* Psikyo */
7220GAMEB( 1999, s1945p,   neogeo,   neogeo, neogeo,   neogeo,  s1945p,   ROT0, "Psikyo", "Strikers 1945 Plus" , 0)   /* Encrypted GFX */
7220GAME( 1999, s1945p,   neogeo, neogeo,   neogeo,  s1945p,   ROT0, "Psikyo", "Strikers 1945 Plus" , 0)   /* Encrypted GFX */
72217221
72227222/* Sammy */
7223GAMEB( 1992, viewpoin, neogeo,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Sammy", "Viewpoint", 0 )
7223GAME( 1992, viewpoin, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Sammy", "Viewpoint", 0 )
72247224
72257225/* Saurus */
7226GAMEB( 1995, quizkof,  neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Saurus", "Quiz King of Fighters", 0 )
7227GAMEB( 1995, stakwin,  neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Saurus", "Stakes Winner / Stakes Winner - GI kinzen seihae no michi", 0 )
7228GAMEB( 1996, ragnagrd, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Saurus", "Ragnagard / Shin-Oh-Ken", 0 )
7229GAMEB( 1996, pgoal,    neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Saurus", "Pleasure Goal / Futsal - 5 on 5 Mini Soccer", 0 )
7230GAMEB( 1996, stakwin2, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Saurus", "Stakes Winner 2", 0 )
7231GAMEB( 1997, shocktro, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Saurus", "Shock Troopers (set 1)", 0 )
7232GAMEB( 1997, shocktra, shocktro, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Saurus", "Shock Troopers (set 2)", 0 )
7233GAMEB( 1998, shocktr2, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Saurus", "Shock Troopers - 2nd Squad", 0 )
7234GAMEB( 1998, lans2004, shocktr2, neogeo, neogeo_s, neogeo,  lans2004, ROT0, "bootleg", "Lansquenet 2004 (Shock Troopers - 2nd Squad bootleg)", 0 )
7226GAME( 1995, quizkof,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Saurus", "Quiz King of Fighters", 0 )
7227GAME( 1995, stakwin,  neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Saurus", "Stakes Winner / Stakes Winner - GI kinzen seihae no michi", 0 )
7228GAME( 1996, ragnagrd, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Saurus", "Ragnagard / Shin-Oh-Ken", 0 )
7229GAME( 1996, pgoal,    neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Saurus", "Pleasure Goal / Futsal - 5 on 5 Mini Soccer", 0 )
7230GAME( 1996, stakwin2, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Saurus", "Stakes Winner 2", 0 )
7231GAME( 1997, shocktro, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Saurus", "Shock Troopers (set 1)", 0 )
7232GAME( 1997, shocktra, shocktro, neogeo_s, neogeo,  neogeo,   ROT0, "Saurus", "Shock Troopers (set 2)", 0 )
7233GAME( 1998, shocktr2, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Saurus", "Shock Troopers - 2nd Squad", 0 )
7234GAME( 1998, lans2004, shocktr2, neogeo_s, neogeo,  lans2004, ROT0, "bootleg", "Lansquenet 2004 (Shock Troopers - 2nd Squad bootleg)", 0 )
72357235
72367236/* Sunsoft */
7237GAMEB( 1995, galaxyfg, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Sunsoft", "Galaxy Fight - Universal Warriors", 0 )
7238GAMEB( 1996, wakuwak7, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Sunsoft", "Waku Waku 7", 0 )
7237GAME( 1995, galaxyfg, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Sunsoft", "Galaxy Fight - Universal Warriors", 0 )
7238GAME( 1996, wakuwak7, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Sunsoft", "Waku Waku 7", 0 )
72397239
72407240/* Taito */
7241GAMEB( 1994, pbobblen, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Taito", "Puzzle Bobble / Bust-A-Move (Neo-Geo) (set 1)", 0 )
7242GAMEB( 1994, pbobblna, pbobblen, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Taito", "Puzzle Bobble / Bust-A-Move (Neo-Geo) (set 2)", 0 )
7243GAMEB( 1999, pbobbl2n, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Taito (SNK license)", "Puzzle Bobble 2 / Bust-A-Move Again (Neo-Geo)", 0 )
7244GAMEB( 2003, pnyaa,    neogeo,   neogeo, neogeo_s, neogeo,  pnyaa,    ROT0, "Aiky / Taito", "Pochi and Nyaa", 0 )
7241GAME( 1994, pbobblen, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Taito", "Puzzle Bobble / Bust-A-Move (Neo-Geo) (set 1)", 0 )
7242GAME( 1994, pbobblna, pbobblen, neogeo,   neogeo,  neogeo,   ROT0, "Taito", "Puzzle Bobble / Bust-A-Move (Neo-Geo) (set 2)", 0 )
7243GAME( 1999, pbobbl2n, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Taito (SNK license)", "Puzzle Bobble 2 / Bust-A-Move Again (Neo-Geo)", 0 )
7244GAME( 2003, pnyaa,    neogeo, neogeo_s, neogeo,  pnyaa,    ROT0, "Aiky / Taito", "Pochi and Nyaa", 0 )
72457245
72467246/* Takara */
7247GAMEB( 1995, marukodq, neogeo,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Takara", "Chibi Marukochan Deluxe Quiz", 0 )
7247GAME( 1995, marukodq, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Takara", "Chibi Marukochan Deluxe Quiz", 0 )
72487248
72497249/* Technos */
7250GAMEB( 1995, doubledr, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Technos", "Double Dragon (Neo-Geo)", 0 )
7251GAMEB( 1995, gowcaizr, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Technos", "Voltage Fighter - Gowcaizer / Choujin Gakuen Gowcaizer", 0)
7252GAMEB( 1996, sdodgeb,  neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Technos", "Super Dodge Ball / Kunio no Nekketsu Toukyuu Densetsu", 0 )
7250GAME( 1995, doubledr, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Technos", "Double Dragon (Neo-Geo)", 0 )
7251GAME( 1995, gowcaizr, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Technos", "Voltage Fighter - Gowcaizer / Choujin Gakuen Gowcaizer", 0)
7252GAME( 1996, sdodgeb,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Technos", "Super Dodge Ball / Kunio no Nekketsu Toukyuu Densetsu", 0 )
72537253
72547254/* Tecmo */
7255GAMEB( 1996, tws96,    neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Tecmo", "Tecmo World Soccer '96", 0 )
7255GAME( 1996, tws96,    neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Tecmo", "Tecmo World Soccer '96", 0 )
72567256
72577257/* Yumekobo */
7258GAMEB( 1998, blazstar, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Yumekobo", "Blazing Star", 0 )
7259GAMEB( 1999, preisle2, neogeo,   neogeo, neogeo_s, neogeo,  preisle2, ROT0, "Yumekobo", "Prehistoric Isle 2" , 0) /* Encrypted GFX */
7258GAME( 1998, blazstar, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Yumekobo", "Blazing Star", 0 )
7259GAME( 1999, preisle2, neogeo, neogeo_s, neogeo,  preisle2, ROT0, "Yumekobo", "Prehistoric Isle 2" , 0) /* Encrypted GFX */
72607260
72617261/* Viccom */
7262GAMEB( 1994, fightfev, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Viccom", "Fight Fever (set 1)", 0 )
7263GAMEB( 1994, fightfva, fightfev, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Viccom", "Fight Fever (set 2)", 0 )
7262GAME( 1994, fightfev, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Viccom", "Fight Fever (set 1)", 0 )
7263GAME( 1994, fightfva, fightfev, neogeo_s, neogeo,  neogeo,   ROT0, "Viccom", "Fight Fever (set 2)", 0 )
72647264
72657265/* Video System Co. */
7266GAMEB( 1994, pspikes2, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Video System Co.", "Power Spikes II", 0 )
7267GAMEB( 1994, sonicwi2, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Video System Co.", "Aero Fighters 2 / Sonic Wings 2", 0 )
7268GAMEB( 1995, sonicwi3, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Video System Co.", "Aero Fighters 3 / Sonic Wings 3", 0 )
7269GAMEB( 1997, popbounc, neogeo,   neogeo, neogeo_s, popbounc,neogeo,   ROT0, "Video System Co.", "Pop 'n Bounce / Gapporin", 0 )
7266GAME( 1994, pspikes2, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Video System Co.", "Power Spikes II", 0 )
7267GAME( 1994, sonicwi2, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Video System Co.", "Aero Fighters 2 / Sonic Wings 2", 0 )
7268GAME( 1995, sonicwi3, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Video System Co.", "Aero Fighters 3 / Sonic Wings 3", 0 )
7269GAME( 1997, popbounc, neogeo, neogeo_s, popbounc,neogeo,   ROT0, "Video System Co.", "Pop 'n Bounce / Gapporin", 0 )
72707270
72717271/* Visco */
7272GAMEB( 1992, androdun, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Visco", "Andro Dunos", 0 )
7273GAMEB( 1995, puzzledp, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Taito (Visco license)", "Puzzle De Pon!", 0 )
7274GAMEB( 1996, neomrdo,  neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Visco", "Neo Mr. Do!", 0 )
7275GAMEB( 1995, goalx3,   neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Visco", "Goal! Goal! Goal!", 0 )
7276GAMEB( 1996, neodrift, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Visco", "Neo Drift Out - New Technology", 0 )
7277GAMEB( 1996, breakers, neogeo,   neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Visco", "Breakers", 0 )
7278GAMEB( 1997, puzzldpr, puzzledp, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Taito (Visco license)", "Puzzle De Pon! R!", 0 )
7279GAMEB( 1998, breakrev, breakers, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Visco", "Breakers Revenge", 0)
7280GAMEB( 1998, flipshot, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Visco", "Battle Flip Shot", 0 )
7281GAMEB( 1999, ctomaday, neogeo,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Visco", "Captain Tomaday", 0 )
7282GAMEB( 1999, ganryu,   neogeo,   neogeo, neogeo_s, neogeo,  ganryu,   ROT0, "Visco", "Ganryu / Musashi Ganryuki" , 0)   /* Encrypted GFX */
7283GAMEB( 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 )
7272GAME( 1992, androdun, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Visco", "Andro Dunos", 0 )
7273GAME( 1995, puzzledp, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Taito (Visco license)", "Puzzle De Pon!", 0 )
7274GAME( 1996, neomrdo,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Visco", "Neo Mr. Do!", 0 )
7275GAME( 1995, goalx3,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Visco", "Goal! Goal! Goal!", 0 )
7276GAME( 1996, neodrift, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Visco", "Neo Drift Out - New Technology", 0 )
7277GAME( 1996, breakers, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "Visco", "Breakers", 0 )
7278GAME( 1997, puzzldpr, puzzledp, neogeo_s, neogeo,  neogeo,   ROT0, "Taito (Visco license)", "Puzzle De Pon! R!", 0 )
7279GAME( 1998, breakrev, breakers, neogeo,   neogeo,  neogeo,   ROT0, "Visco", "Breakers Revenge", 0)
7280GAME( 1998, flipshot, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Visco", "Battle Flip Shot", 0 )
7281GAME( 1999, ctomaday, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Visco", "Captain Tomaday", 0 )
7282GAME( 1999, ganryu,   neogeo, neogeo_s, neogeo,  ganryu,   ROT0, "Visco", "Ganryu / Musashi Ganryuki" , 0)   /* Encrypted GFX */
7283GAME( 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 )
72857285
72867286/* Mega Enterprise */
7287GAMEB( 2002, mslug4,   neogeo,   neogeo, neogeo_s, neogeo,  mslug4,   ROT0, "Mega", "Metal Slug 4", 0 )
7288GAMEB( 2002, ms4plus,  mslug4,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "bootleg", "Metal Slug 4 Plus (bootleg)", 0 )
7287GAME( 2002, mslug4,   neogeo, neogeo_s, neogeo,  mslug4,   ROT0, "Mega", "Metal Slug 4", 0 )
7288GAME( 2002, ms4plus,  mslug4, neogeo_s, neogeo,  neogeo,   ROT0, "bootleg", "Metal Slug 4 Plus (bootleg)", 0 )
72897289
72907290/* Evoga */
7291GAMEB( 2002, rotd,    neogeo,    neogeo, neogeo,   neogeo,  rotd,     ROT0, "Evoga / Playmore", "Rage of the Dragons", 0 )
7291GAME( 2002, rotd,    neogeo, neogeo,   neogeo,  rotd,     ROT0, "Evoga / Playmore", "Rage of the Dragons", 0 )
72927292
72937293/* Atlus */
7294GAMEB( 2002, matrim,   neogeo,   neogeo, neogeo,   neogeo,  matrim,   ROT0, "Noise Factory / Atlus", "Matrimelee / Shin Gouketsuji Ichizoku Toukon", 0 )
7294GAME( 2002, matrim,   neogeo, neogeo,   neogeo,  matrim,   ROT0, "Noise Factory / Atlus", "Matrimelee / Shin Gouketsuji Ichizoku Toukon", 0 )
72957295
72967296/* Breezasoft */
7297GAMEB( 2001, jockeygp, neogeo,   neogeo, neogeo_s, jockeygp,jockeygp, ROT0, "Sun Amusement / BrezzaSoft", "Jockey Grand Prix", 0 )
7298GAMEB( 2001, vliner,   neogeo,   neogeo, neogeo_s, vliner,  vliner,   ROT0, "Dyna / BreezaSoft", "V-Liner (set 1)", 0 )
7299GAMEB( 2001, vlinero,  vliner,   neogeo, neogeo_s, vliner,  vliner,   ROT0, "Dyna / BreezaSoft", "V-Liner (set 2)", 0 )
7297GAME( 2001, jockeygp, neogeo, neogeo_s, jockeygp,jockeygp, ROT0, "Sun Amusement / BrezzaSoft", "Jockey Grand Prix", 0 )
7298GAME( 2001, vliner,   neogeo, neogeo_s, vliner,  vliner,   ROT0, "Dyna / BreezaSoft", "V-Liner (set 1)", 0 )
7299GAME( 2001, vlinero,  vliner, neogeo_s, vliner,  vliner,   ROT0, "Dyna / BreezaSoft", "V-Liner (set 2)", 0 )
73007300
73017301/* Kyle Hodgetts */
7302GAMEB( 2000, diggerma, neogeo,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Kyle Hodgetts", "Digger Man (prototype)", 0 )
7302GAME( 2000, diggerma, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Kyle Hodgetts", "Digger Man (prototype)", 0 )
73037303
src/mame/drivers/mirax.c
r1238r1239
171171   GFXDECODE_ENTRY( REGION_GFX3, 0, layout16,    0, 1 )
172172GFXDECODE_END
173173
174INPUT_PORTS_START( mirax )
174static INPUT_PORTS_START( mirax )
175175
176176INPUT_PORTS_END
177177
src/mame/drivers/gradius3.c
r1238r1239
252252
253253
254254
255INPUT_PORTS_START( gradius3 )
255static INPUT_PORTS_START( gradius3 )
256256   PORT_START      /* COINS */
257257   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
258258   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/cardline.c
r1238r1239
119119  AM_RANGE(0x01, 0x01) AM_READWRITE(unk_r, video_w)
120120ADDRESS_MAP_END
121121
122INPUT_PORTS_START( cardline )
122static INPUT_PORTS_START( cardline )
123123   PORT_START
124124   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("Collect")
125125   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Card 1 / Double-Up")
src/mame/drivers/omegrace.c
r1238r1239
387387 *
388388 *************************************/
389389
390INPUT_PORTS_START( omegrace )
390static INPUT_PORTS_START( omegrace )
391391   PORT_START /* SW0 */
392392   PORT_DIPNAME( 0x03, 0x03, "1st Bonus Life" )   PORT_DIPLOCATION("SW1:1,2")
393393   PORT_DIPSETTING (   0x00, "40k" )
src/mame/drivers/decocass.c
r1238r1239
11471147}
11481148
11491149
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 )
src/mame/drivers/mystwarr.c
r1238r1239
10691069
10701070/**********************************************************************************/
10711071
1072INPUT_PORTS_START( mystwarr )
1072static INPUT_PORTS_START( mystwarr )
10731073   PORT_START
10741074   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
10751075   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
11371137   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 )
11381138INPUT_PORTS_END
11391139
1140INPUT_PORTS_START( metamrph )
1140static INPUT_PORTS_START( metamrph )
11411141   PORT_START
11421142   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
11431143   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
12071207   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 )
12081208INPUT_PORTS_END
12091209
1210INPUT_PORTS_START( viostorm )
1210static INPUT_PORTS_START( viostorm )
12111211   PORT_START
12121212   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
12131213   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
12771277   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 )
12781278INPUT_PORTS_END
12791279
1280INPUT_PORTS_START( dadandrn )
1280static INPUT_PORTS_START( dadandrn )
12811281   PORT_START
12821282   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
12831283   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
13431343   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 )
13441344INPUT_PORTS_END
13451345
1346INPUT_PORTS_START( martchmp )
1346static INPUT_PORTS_START( martchmp )
13471347   PORT_START
13481348   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
13491349   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/fromance.c
r1238r1239
446446   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
447447
448448
449INPUT_PORTS_START( nekkyoku )
449static INPUT_PORTS_START( nekkyoku )
450450   PORT_START_TAG("IN0")   /* (0) TEST SW */
451451   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
452452   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )
r1238r1239
527527INPUT_PORTS_END
528528
529529
530INPUT_PORTS_START( idolmj )
530static INPUT_PORTS_START( idolmj )
531531   PORT_START_TAG("IN0")   /* (0) TEST SW */
532532   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
533533   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE3 )      // MEMORY RESET
r1238r1239
608608INPUT_PORTS_END
609609
610610
611INPUT_PORTS_START( fromance )
611static INPUT_PORTS_START( fromance )
612612   PORT_START_TAG("IN0")   /* (0) TEST SW */
613613   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
614614   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE3 )      // MEMORY RESET
r1238r1239
687687INPUT_PORTS_END
688688
689689
690INPUT_PORTS_START( nmsengen )
690static INPUT_PORTS_START( nmsengen )
691691   PORT_START_TAG("IN0")   /* (0) TEST SW */
692692   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
693693   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE3 )      // MEMORY RESET
r1238r1239
766766INPUT_PORTS_END
767767
768768
769INPUT_PORTS_START( daiyogen )
769static INPUT_PORTS_START( daiyogen )
770770   PORT_START_TAG("IN0")   /* (0) TEST SW */
771771   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
772772   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE3 )      // MEMORY RESET
r1238r1239
847847INPUT_PORTS_END
848848
849849
850INPUT_PORTS_START( mfunclub )
850static INPUT_PORTS_START( mfunclub )
851851   PORT_START_TAG("IN0")   /* (0) TEST SW */
852852   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
853853   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE3 )      // MEMORY RESET
r1238r1239
928928INPUT_PORTS_END
929929
930930
931INPUT_PORTS_START( mjnatsu )
931static INPUT_PORTS_START( mjnatsu )
932932   PORT_START_TAG("IN0")   /* (0) TEST SW */
933933   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
934934   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE3 )      // MEMORY RESET
src/mame/drivers/dlair.c
r1238r1239
598598 *
599599 *************************************/
600600
601INPUT_PORTS_START( dlair )
601static INPUT_PORTS_START( dlair )
602602   PORT_START_TAG("DSW1")
603603   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) PORT_DIPLOCATION("A:1,0")
604604   PORT_DIPSETTING(    0x01, DEF_STR( 3C_1C ) )
r1238r1239
671671INPUT_PORTS_END
672672
673673
674INPUT_PORTS_START( dlaire )
674static INPUT_PORTS_START( dlaire )
675675   PORT_INCLUDE(dlair)
676676
677677   PORT_MODIFY("DSW2")
r1238r1239
681681INPUT_PORTS_END
682682
683683
684INPUT_PORTS_START( dleuro )
684static INPUT_PORTS_START( dleuro )
685685   PORT_START   /* IN0 */
686686   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )
687687   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )
src/mame/drivers/jollyjgr.c
r1238r1239
163163ADDRESS_MAP_END
164164
165165
166INPUT_PORTS_START( jollyjgr )
166static INPUT_PORTS_START( jollyjgr )
167167   PORT_START
168168   PORT_DIPNAME( 0x03, 0x02, DEF_STR( Bonus_Life ) )
169169   PORT_DIPSETTING(    0x03, "10000" )
src/mame/drivers/irobot.c
r1238r1239
162162 *
163163 *************************************/
164164
165INPUT_PORTS_START( irobot )
165static INPUT_PORTS_START( irobot )
166166   PORT_START   /* IN0 */
167167    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
168168    PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/skykid.c
r1238r1239
155155
156156
157157
158INPUT_PORTS_START( skykid )
158static INPUT_PORTS_START( skykid )
159159   PORT_START   /* DSW A */
160160   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
161161   PORT_DIPNAME( 0x60, 0x60, DEF_STR( Coin_A ) )
r1238r1239
234234   PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED )
235235INPUT_PORTS_END
236236
237INPUT_PORTS_START( drgnbstr )
237static INPUT_PORTS_START( drgnbstr )
238238   PORT_START   /* DSW A */
239239   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
240240   PORT_DIPNAME( 0x60, 0x60, DEF_STR( Coin_A ) )
src/mame/drivers/klax.c
r1238r1239
136136 *
137137 *************************************/
138138
139INPUT_PORTS_START( klax )
139static INPUT_PORTS_START( klax )
140140   PORT_START
141141   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
142142   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/tarzan.c
r1238r1239
8484ADDRESS_MAP_END
8585
8686
87INPUT_PORTS_START( tarzan )
87static INPUT_PORTS_START( tarzan )
8888INPUT_PORTS_END
8989
9090
src/mame/drivers/quizpani.c
r1238r1239
7676   AM_RANGE(0x200000, 0x33ffff) AM_WRITE(MWA16_ROM)
7777ADDRESS_MAP_END
7878
79INPUT_PORTS_START( quizpani )
79static INPUT_PORTS_START( quizpani )
8080   PORT_START
8181   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
8282   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/halleys.c
r1238r1239
16851685    Dip sw 2 is not used and all contacts should be set off.
16861686*/
16871687
1688INPUT_PORTS_START( halleys )
1688static INPUT_PORTS_START( halleys )
16891689   PORT_START_TAG("DSW1") // 0xff95
16901690   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
16911691   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
17981798INPUT_PORTS_END
17991799
18001800
1801INPUT_PORTS_START( benberob )
1801static INPUT_PORTS_START( benberob )
18021802   PORT_START_TAG("DSW1") // 0xff95
18031803   PORT_DIPNAME( 0x03, 0x01, DEF_STR( Bonus_Life ) )
18041804   PORT_DIPSETTING(    0x02, "Every 100K" )
src/mame/drivers/gomoku.c
r1238r1239
8383ADDRESS_MAP_END
8484
8585
86INPUT_PORTS_START( gomoku )
86static INPUT_PORTS_START( gomoku )
8787   PORT_START   /* 0 */
8888   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP )
8989   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN )
src/mame/drivers/djmain.c
r1238r1239
782782   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )      /* DSW 3-5 */ \
783783   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )      /* DSW 3-6 */
784784
785INPUT_PORTS_START( beatmania )
785static INPUT_PORTS_START( beatmania )
786786   BEATMANIA_INPUT         /* IN 0-2 */
787787   BEATMANIA_DSW1(0x00, 0xff)   /* IN 3 */
788788   BEATMANIA_DSW2         /* IN 4 */
r1238r1239
790790   BEATMANIA_TURNTABLE      /* IN 6-7 */
791791INPUT_PORTS_END
792792
793INPUT_PORTS_START( bm1stmix )
793static INPUT_PORTS_START( bm1stmix )
794794   BEATMANIA_INPUT         /* IN 0-2 */
795795   BM1STMIX_DSW1         /* IN 3 */
796796   BM1STMIX_DSW2         /* IN 4 */
r1238r1239
799799INPUT_PORTS_END
800800
801801
802INPUT_PORTS_START( bm2ndmix )
802static INPUT_PORTS_START( bm2ndmix )
803803   BEATMANIA_INPUT         /* IN 0-2 */
804804   BEATMANIA_DSW1(0x00, 0xff)   /* IN 3 */
805805   BEATMANIA_DSW2_OLD_LEVEL   /* IN 4 */
r1238r1239
807807   BEATMANIA_TURNTABLE      /* IN 6-7 */
808808INPUT_PORTS_END
809809
810INPUT_PORTS_START( bm3rdmix )
810static INPUT_PORTS_START( bm3rdmix )
811811   BEATMANIA_INPUT         /* IN 0-2 */
812812   BEATMANIA_DSW1(0x00, 0xff)   /* IN 3 */
813813   BEATMANIA_DSW2   /* IN 4 */
r1238r1239
815815   BEATMANIA_TURNTABLE      /* IN 6 */
816816INPUT_PORTS_END
817817
818INPUT_PORTS_START( bmcompmx )
818static INPUT_PORTS_START( bmcompmx )
819819   BEATMANIA_INPUT         /* IN 0-2 */
820820   BEATMANIA_DSW1(0x80, 0x3f)   /* IN 3 */
821821   BMCOMPMX_DSW2         /* IN 4 */
r1238r1239
823823   BEATMANIA_TURNTABLE      /* IN 6-7 */
824824INPUT_PORTS_END
825825
826INPUT_PORTS_START( bm4thmix )
826static INPUT_PORTS_START( bm4thmix )
827827   BEATMANIA_INPUT         /* IN 0-2 */
828828   BEATMANIA_DSW1(0x40, 0x3f)   /* IN 3 */
829829   BEATMANIA_DSW2         /* IN 4 */
r1238r1239
831831   BEATMANIA_TURNTABLE      /* IN 6-7 */
832832INPUT_PORTS_END
833833
834INPUT_PORTS_START( hmcompm2 )
834static INPUT_PORTS_START( hmcompm2 )
835835   BEATMANIA_INPUT         /* IN 0-2 */
836836   BEATMANIA_DSW1(0x00, 0xff)   /* IN 3 */
837837   BEATMANIA_DSW2         /* IN 4 */
r1238r1239
839839   BEATMANIA_TURNTABLE      /* IN 6-7 */
840840INPUT_PORTS_END
841841
842INPUT_PORTS_START( bmdct )
842static INPUT_PORTS_START( bmdct )
843843   BEATMANIA_INPUT         /* IN 0-2 */
844844   BEATMANIA_DSW1(0x00, 0xff)   /* IN 3 */
845845   BEATMANIA_DSW2         /* IN 4 */
r1238r1239
10121012   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
10131013
10141014
1015INPUT_PORTS_START( popnmusic )
1015static INPUT_PORTS_START( popnmusic )
10161016   POPN_INPUT         /* IN 0-2 */
10171017   POPN_DSW1         /* IN 3 */
10181018   POPN_DSW2         /* IN 4 */
10191019   POPN_DSW3         /* IN 5 */
10201020INPUT_PORTS_END
10211021
1022INPUT_PORTS_START( popn1 )
1022static INPUT_PORTS_START( popn1 )
10231023   POPN_INPUT         /* IN 0-2 */
10241024   POPN1_DSW1         /* IN 3 */
10251025   POPN1_DSW2         /* IN 4 */
r1238r1239
11131113   PORT_DIPSETTING(    0x2a, DEF_STR( Off ) ) \
11141114   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
11151115
1116INPUT_PORTS_START( popnstage )
1116static INPUT_PORTS_START( popnstage )
11171117   POPNST_INPUT         /* IN 0-2 */
11181118   POPNST_DSW1         /* IN 3 */
11191119   POPNST_DSW2         /* IN 4 */
src/mame/drivers/ssfindo.c
r1238r1239
208208   MAXIO=128
209209};
210210
211UINT32 PS7500_IO[MAXIO];
212UINT32 PS7500_FIFO[256];
211static UINT32 PS7500_IO[MAXIO];
212static UINT32 PS7500_FIFO[256];
213213static UINT32 *vram;
214214static UINT32 flashAdr,flashOffset,adrLatch,flashType,flashN;
215215
r1238r1239
527527   PS7500_reset();
528528}
529529
530INPUT_PORTS_START( ssfindo )
530static INPUT_PORTS_START( ssfindo )
531531   PORT_START_TAG("PS7500")
532532   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK )
533533
r1238r1239
587587INPUT_PORTS_END
588588
589589
590INPUT_PORTS_START( ppcar )
590static INPUT_PORTS_START( ppcar )
591591   PORT_START_TAG("PS7500")
592592   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK )
593593
src/mame/drivers/firetrk.c
r1238r1239
563563ADDRESS_MAP_END
564564
565565
566INPUT_PORTS_START( firetrk )
566static INPUT_PORTS_START( firetrk )
567567   PORT_START
568568   PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_PLAYER(1)
569569
r1238r1239
642642INPUT_PORTS_END
643643
644644
645INPUT_PORTS_START( superbug )
645static INPUT_PORTS_START( superbug )
646646   PORT_START
647647   PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10)
648648
r1238r1239
709709INPUT_PORTS_END
710710
711711
712INPUT_PORTS_START( montecar )
712static INPUT_PORTS_START( montecar )
713713   PORT_START
714714   PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_PLAYER(1)
715715
src/mame/drivers/peplus.c
r1238r1239
4848static tilemap *bg_tilemap;
4949
5050/* Pointers to External RAM */
51UINT8 *program_ram;
52UINT8 *cmos_ram;
51static UINT8 *program_ram;
52static UINT8 *cmos_ram;
5353
5454/* Variables used instead of CRTC6845 system */
55UINT8 vid_register = 0;
56UINT8 vid_low = 0;
57UINT8 vid_high = 0;
55static UINT8 vid_register = 0;
56static UINT8 vid_low = 0;
57static UINT8 vid_high = 0;
5858
5959/* Holds upper video address and palette number */
60UINT8 *palette_ram;
60static UINT8 *palette_ram;
6161
6262/* IO Ports */
63UINT8 *io_port;
63static UINT8 *io_port;
6464
6565
6666/*****************
r1238r1239
545545*      Input ports       *
546546*************************/
547547
548INPUT_PORTS_START( peplus )
548static INPUT_PORTS_START( peplus )
549549   PORT_START_TAG("IN0")
550550    PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Jackpot Reset") PORT_CODE(KEYCODE_L)
551551    PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Self Test") PORT_CODE(KEYCODE_K)
r1238r1239
598598   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
599599INPUT_PORTS_END
600600
601INPUT_PORTS_START( pepp0188 )
601static INPUT_PORTS_START( pepp0188 )
602602   PORT_START_TAG("IN0")
603603    PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Jackpot Reset") PORT_CODE(KEYCODE_L)
604604    PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Self Test") PORT_CODE(KEYCODE_K)
r1238r1239
651651   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
652652INPUT_PORTS_END
653653
654INPUT_PORTS_START( peset038 )
654static INPUT_PORTS_START( peset038 )
655655   PORT_START_TAG("IN0")
656656    PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Jackpot Reset") PORT_CODE(KEYCODE_L)
657657    PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Self Test") PORT_CODE(KEYCODE_K)
src/mame/drivers/mustache.c
r1238r1239
8181
8282/******************************************************************************/
8383
84INPUT_PORTS_START( mustache )
84static INPUT_PORTS_START( mustache )
8585   PORT_START   /* IN 1 */
8686
8787   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP  )
src/mame/drivers/ddayjlc.c
r1238r1239
241241
242242ADDRESS_MAP_END
243243
244INPUT_PORTS_START( ddayjlc )
244static INPUT_PORTS_START( ddayjlc )
245245   PORT_START
246246   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
247247   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/neogeo.c
r1238r1239
768768   UINT32 address_mask;
769769
770770   /* 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);
772773   memory_configure_bank(NEOGEO_BANK_AUDIO_CPU_MAIN_BANK, 1, 1, memory_region(NEOGEO_REGION_AUDIO_CPU_CARTRIDGE), 0);
773774
774775   /* audio banking */
src/mame/drivers/konamigx.c
r1238r1239
14341434/**********************************************************************************/
14351435/* port maps */
14361436
1437INPUT_PORTS_START( konamigx )
1437static INPUT_PORTS_START( konamigx )
14381438   PORT_START
14391439   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
14401440   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
15491549INPUT_PORTS_END
15501550
15511551
1552INPUT_PORTS_START( racinfrc )
1552static INPUT_PORTS_START( racinfrc )
15531553   PORT_START
15541554   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
15551555   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
16711671   PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_MINMAX(0,0x68) PORT_SENSITIVITY(35) PORT_KEYDELTA(5) PORT_CODE_INC(KEYCODE_LCONTROL)
16721672INPUT_PORTS_END
16731673
1674INPUT_PORTS_START( le2 )
1674static INPUT_PORTS_START( le2 )
16751675   PORT_START
16761676   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
16771677   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
17841784   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(35) PORT_KEYDELTA(15) PORT_PLAYER(2)
17851785INPUT_PORTS_END
17861786
1787INPUT_PORTS_START( gokuparo )
1787static INPUT_PORTS_START( gokuparo )
17881788   PORT_START
17891789   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
17901790   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
18721872   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
18731873INPUT_PORTS_END
18741874
1875INPUT_PORTS_START( puzldama )
1875static INPUT_PORTS_START( puzldama )
18761876   PORT_START
18771877   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
18781878   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
19611961   PORT_DIPSETTING(    0x02, DEF_STR( High ) )
19621962INPUT_PORTS_END
19631963
1964INPUT_PORTS_START( dragoonj )
1964static INPUT_PORTS_START( dragoonj )
19651965   PORT_START
19661966   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
19671967   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
20502050   PORT_DIPSETTING(    0x02, DEF_STR( High ) )
20512051INPUT_PORTS_END
20522052
2053INPUT_PORTS_START( type3 )
2053static INPUT_PORTS_START( type3 )
20542054   PORT_START
20552055   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
20562056   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/sprcros2.c
r1238r1239
179179   AM_RANGE(0x03, 0x03) AM_WRITE(sprcros2_s_port3_w)
180180ADDRESS_MAP_END
181181
182INPUT_PORTS_START( sprcros2 )
182static INPUT_PORTS_START( sprcros2 )
183183   PORT_START   /* IN0 */
184184   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY
185185   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
src/mame/drivers/statriv2.c
r1238r1239
416416   AM_RANGE(0xce, 0xce) AM_READ(MRA8_NOP)         // ???
417417ADDRESS_MAP_END
418418
419INPUT_PORTS_START( statriv2 )
419static INPUT_PORTS_START( statriv2 )
420420   PORT_START
421421   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
422422   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_SERVICE3 ) PORT_NAME("Play All")
r1238r1239
444444   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
445445INPUT_PORTS_END
446446
447INPUT_PORTS_START( statriv4 )
447static INPUT_PORTS_START( statriv4 )
448448   PORT_START
449449   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
450450   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_SERVICE3 ) PORT_NAME("Play All")
r1238r1239
470470   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
471471INPUT_PORTS_END
472472
473INPUT_PORTS_START( supertr2 )
473static INPUT_PORTS_START( supertr2 )
474474   PORT_START
475475   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
476476   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_SERVICE3 ) PORT_NAME("Play All")
r1238r1239
492492   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
493493INPUT_PORTS_END
494494
495INPUT_PORTS_START( quaquiz2 )
495static INPUT_PORTS_START( quaquiz2 )
496496   PORT_START
497497   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
498498   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_SERVICE3 ) PORT_NAME("Play All")
r1238r1239
524524   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
525525INPUT_PORTS_END
526526
527INPUT_PORTS_START( hangman )
527static INPUT_PORTS_START( hangman )
528528   PORT_START
529529   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) PORT_IMPULSE(8)
530530   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_IMPULSE(8) PORT_NAME("Choose")
r1238r1239
554554   PORT_DIPSETTING(    0x00, DEF_STR( Yes ) )
555555INPUT_PORTS_END
556556
557INPUT_PORTS_START( sextriv )
557static INPUT_PORTS_START( sextriv )
558558   PORT_START
559559   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
560560   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_SERVICE3 ) PORT_NAME("Play All")
src/mame/drivers/carrera.c
r1238r1239
8080ADDRESS_MAP_END
8181
8282
83INPUT_PORTS_START( carrera )
83static INPUT_PORTS_START( carrera )
8484   PORT_START_TAG("IN0")   /* Port 0 */
8585   PORT_BIT( 0x01, IP_ACTIVE_LOW,  IPT_JOYSTICK_UP )
8686   PORT_BIT( 0x02, IP_ACTIVE_LOW,  IPT_JOYSTICK_DOWN )
src/mame/drivers/thunderj.c
r1238r1239
245245 *
246246 *************************************/
247247
248INPUT_PORTS_START( thunderj )
248static INPUT_PORTS_START( thunderj )
249249   PORT_START      /* 260000 */
250250   PORT_BIT( 0xffff, IP_ACTIVE_LOW, IPT_UNUSED )
251251
src/mame/drivers/ultraman.c
r1238r1239
166166ADDRESS_MAP_END
167167
168168
169INPUT_PORTS_START( ultraman )
169static INPUT_PORTS_START( ultraman )
170170
171171   PORT_START_TAG("IN0")   /* Coins + Service */
172172   PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/parodius.c
r1238r1239
181181
182182***************************************************************************/
183183
184INPUT_PORTS_START( parodius )
184static INPUT_PORTS_START( parodius )
185185   PORT_START   /* PLAYER 1 INPUTS */
186186   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
187187   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/ladybug.c
r1238r1239
119119      cpunum_set_input_line(0, 0, HOLD_LINE);
120120}
121121
122INPUT_PORTS_START( ladybug )
122static INPUT_PORTS_START( ladybug )
123123   PORT_START_TAG("IN0")
124124   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
125125   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY
r1238r1239
210210   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1)
211211INPUT_PORTS_END
212212
213INPUT_PORTS_START( snapjack )
213static INPUT_PORTS_START( snapjack )
214214   PORT_START_TAG("IN0")
215215   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
216216   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
303303   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1)
304304INPUT_PORTS_END
305305
306INPUT_PORTS_START( cavenger )
306static INPUT_PORTS_START( cavenger )
307307   PORT_START_TAG("IN0")
308308   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
309309   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
392392   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1)
393393INPUT_PORTS_END
394394
395INPUT_PORTS_START( dorodon )
395static INPUT_PORTS_START( dorodon )
396396   PORT_START_TAG("IN0")
397397   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
398398   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY
r1238r1239
483483   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1)
484484INPUT_PORTS_END
485485
486INPUT_PORTS_START( sraider )
486static INPUT_PORTS_START( sraider )
487487   PORT_START   /* IN0 */
488488   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
489489   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY
src/mame/drivers/quantum.c
r1238r1239
164164 *
165165 *************************************/
166166
167INPUT_PORTS_START( quantum )
167static INPUT_PORTS_START( quantum )
168168   PORT_START      /* IN0 */
169169   /* YHALT here MUST BE ALWAYS 0  */
170170   PORT_BIT( 0x01, IP_ACTIVE_HIGH,IPT_SPECIAL )   /* vg YHALT */
src/mame/drivers/yamato.c
r1238r1239
337337   AM_RANGE(0x0d, 0x0d) AM_NOP
338338ADDRESS_MAP_END
339339
340INPUT_PORTS_START( yamato )
340static INPUT_PORTS_START( yamato )
341341   PORT_START      /* IN0 */
342342   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
343343   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN )
r1238r1239
404404   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
405405INPUT_PORTS_END
406406
407INPUT_PORTS_START( toprollr )
407static INPUT_PORTS_START( toprollr )
408408   PORT_START      /* IN0 */
409409   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 )
410410   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY
src/mame/drivers/blueprnt.c
r1238r1239
120120
121121/* Input Ports */
122122
123INPUT_PORTS_START( blueprnt )
123static INPUT_PORTS_START( blueprnt )
124124   PORT_START_TAG("PORT 0")
125125   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
126126   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 )
r1238r1239
180180   PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_UNUSED )
181181INPUT_PORTS_END
182182
183INPUT_PORTS_START( saturn )
183static INPUT_PORTS_START( saturn )
184184   PORT_START_TAG("IN0")
185185   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
186186   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 )
src/mame/drivers/combatsc.c
r1238r1239
390390   PORT_DIPSETTING(    0x90, DEF_STR( 1C_7C ) ) \
391391   PORT_DIPSETTING(    0x00, "coin 2 invalidity" )
392392
393INPUT_PORTS_START( combasc )
393static INPUT_PORTS_START( combasc )
394394   PORT_START
395395   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
396396   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
r1238r1239
465465   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
466466INPUT_PORTS_END
467467
468INPUT_PORTS_START( combasct )
468static INPUT_PORTS_START( combasct )
469469   PORT_START
470470   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
471471   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
r1238r1239
535535   PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(10) PORT_KEYDELTA(10) PORT_PLAYER(2)
536536INPUT_PORTS_END
537537
538INPUT_PORTS_START( combascb )
538static INPUT_PORTS_START( combascb )
539539   PORT_START
540540   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
541541   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
src/mame/drivers/rockrage.c
r1238r1239
153153
154154***************************************************************************/
155155
156INPUT_PORTS_START( rockrage )
156static INPUT_PORTS_START( rockrage )
157157   PORT_START   /* DSW #1 */
158158   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
159159   PORT_DIPSETTING(    0x02, DEF_STR( 4C_1C ) )
src/mame/drivers/ttchamp.c
r1238r1239
147147
148148
149149
150INPUT_PORTS_START(ttchamp)
150static INPUT_PORTS_START(ttchamp)
151151    PORT_START  /* 8bit */
152152   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
153153   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/midxunit.c
r1238r1239
5757 *
5858 *************************************/
5959
60INPUT_PORTS_START( revx )
60static INPUT_PORTS_START( revx )
6161   PORT_START_TAG("IN0")
6262   PORT_BIT( 0x000f, IP_ACTIVE_LOW, IPT_UNUSED )
6363   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
src/mame/drivers/egghunt.c
r1238r1239
237237ADDRESS_MAP_END
238238
239239
240INPUT_PORTS_START( egghunt )
240static INPUT_PORTS_START( egghunt )
241241   PORT_START   /* 8bit */
242242   PORT_DIPNAME( 0x01, 0x01, "Debug Mode" ) // Run all the animations
243243   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
src/mame/drivers/buggychl.c
r1238r1239
252252
253253/******************************************************************************/
254254
255INPUT_PORTS_START( buggychl )
255static INPUT_PORTS_START( buggychl )
256256   PORT_START_TAG("IN0")
257257   PORT_DIPNAME( 0x03, 0x03, "Game Over Bonus" )   // Arks/Flags/Fuel
258258   PORT_DIPSETTING(    0x03, "2000/1000/50" )
src/mame/drivers/segac2.c
r1238r1239
672672
673673******************************************************************************/
674674
675INPUT_PORTS_START( systemc_generic )
675static INPUT_PORTS_START( systemc_generic )
676676    PORT_START_TAG("P1")
677677    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
678678    PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
r1238r1239
778778INPUT_PORTS_END
779779
780780
781INPUT_PORTS_START( columns )
781static INPUT_PORTS_START( columns )
782782   PORT_INCLUDE( systemc_generic )
783783
784784   PORT_MODIFY("P1")
r1238r1239
802802    PORT_DIPSETTING(    0x20, DEF_STR( Hardest ) )  // 25 jewels
803803INPUT_PORTS_END
804804
805INPUT_PORTS_START( columnsu )
805static INPUT_PORTS_START( columnsu )
806806   PORT_INCLUDE( systemc_generic )
807807
808808   PORT_MODIFY("P1")
r1238r1239
829829    PORT_DIPSETTING(    0x20, DEF_STR( Hardest ) )  // 25 jewels
830830INPUT_PORTS_END
831831
832INPUT_PORTS_START( columns2 )
832static INPUT_PORTS_START( columns2 )
833833   PORT_INCLUDE( systemc_generic )
834834
835835   PORT_MODIFY("P1")
r1238r1239
860860INPUT_PORTS_END
861861
862862
863INPUT_PORTS_START( borench )
863static INPUT_PORTS_START( borench )
864864   PORT_INCLUDE( systemc_generic )
865865
866866   PORT_MODIFY("P1")
r1238r1239
894894INPUT_PORTS_END
895895
896896
897INPUT_PORTS_START( tfrceac )
897static INPUT_PORTS_START( tfrceac )
898898   PORT_INCLUDE( systemc_generic )
899899
900900   PORT_MODIFY("DSW")
r1238r1239
922922INPUT_PORTS_END
923923
924924
925INPUT_PORTS_START( twinsqua )
925static INPUT_PORTS_START( twinsqua )
926926   PORT_INCLUDE( systemc_generic )
927927
928928   PORT_MODIFY("P1")
r1238r1239
956956INPUT_PORTS_END
957957
958958
959INPUT_PORTS_START( ribbit )
959static INPUT_PORTS_START( ribbit )
960960   PORT_INCLUDE( systemc_generic )
961961
962962   PORT_MODIFY("P1")
r1238r1239
989989INPUT_PORTS_END
990990
991991
992INPUT_PORTS_START( puyo )
992static INPUT_PORTS_START( puyo )
993993   PORT_INCLUDE( systemc_generic )
994994
995995   PORT_MODIFY("P1")
r1238r1239
10181018INPUT_PORTS_END
10191019
10201020
1021INPUT_PORTS_START( stkclmns )
1021static INPUT_PORTS_START( stkclmns )
10221022   PORT_INCLUDE( systemc_generic )
10231023
10241024   PORT_MODIFY("P1")
r1238r1239
10421042INPUT_PORTS_END
10431043
10441044
1045INPUT_PORTS_START( potopoto )
1045static INPUT_PORTS_START( potopoto )
10461046   PORT_INCLUDE( systemc_generic )
10471047
10481048   PORT_MODIFY("P1")
r1238r1239
10801080INPUT_PORTS_END
10811081
10821082
1083INPUT_PORTS_START( zunkyou )
1083static INPUT_PORTS_START( zunkyou )
10841084   PORT_INCLUDE( systemc_generic )
10851085
10861086   PORT_MODIFY("P1")
r1238r1239
11071107INPUT_PORTS_END
11081108
11091109
1110INPUT_PORTS_START( ichir )
1110static INPUT_PORTS_START( ichir )
11111111   PORT_INCLUDE( systemc_generic )
11121112
11131113   PORT_MODIFY("P1")
r1238r1239
11301130INPUT_PORTS_END
11311131
11321132
1133INPUT_PORTS_START( bloxeedc )
1133static INPUT_PORTS_START( bloxeedc )
11341134   PORT_INCLUDE( systemc_generic )
11351135
11361136   PORT_MODIFY("P1")
r1238r1239
11541154INPUT_PORTS_END
11551155
11561156
1157INPUT_PORTS_START( puyopuy2 )
1157static INPUT_PORTS_START( puyopuy2 )
11581158   PORT_INCLUDE( systemc_generic )
11591159
11601160   PORT_MODIFY("P1")
r1238r1239
11891189INPUT_PORTS_END
11901190
11911191
1192INPUT_PORTS_START( pclub )
1192static INPUT_PORTS_START( pclub )
11931193   PORT_INCLUDE( systemc_generic )
11941194
11951195   PORT_MODIFY("P1")
src/mame/drivers/gotcha.c
r1238r1239
148148
149149
150150
151INPUT_PORTS_START( gotcha )
151static INPUT_PORTS_START( gotcha )
152152   PORT_START
153153   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
154154   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
src/mame/drivers/starshp1.c
r1238r1239
221221ADDRESS_MAP_END
222222
223223
224INPUT_PORTS_START( starshp1 )
224static INPUT_PORTS_START( starshp1 )
225225   PORT_START
226226   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
227227   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* SWA1? */
src/mame/drivers/bigstrkb.c
r1238r1239
116116   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(player) \
117117   PORT_BIT( 0x80, IP_ACTIVE_LOW, start )
118118
119INPUT_PORTS_START( bigstrkb )
119static INPUT_PORTS_START( bigstrkb )
120120   PORT_START   /* DSW0 (0x700000.w) */
121121   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
122122   PORT_DIPSETTING(    0x07, DEF_STR( 4C_1C ) )
src/mame/drivers/pandoras.c
r1238r1239
223223
224224***************************************************************************/
225225
226INPUT_PORTS_START( pandoras )
226static INPUT_PORTS_START( pandoras )
227227   PORT_START   /* DSW #1 */
228228   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
229229   PORT_DIPSETTING(    0x02, DEF_STR( 4C_1C ) )
src/mame/drivers/taito_f2.c
r1238r1239
967967   AM_RANGE(0x100000, 0x100001) AM_WRITE(taitosound_port16_msb_w)
968968   AM_RANGE(0x100002, 0x100003) AM_WRITE(taitosound_comm16_msb_w)
969969   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)
971971   AM_RANGE(0x200000, 0x20ffff) AM_WRITE(MWA16_RAM)
972972   AM_RANGE(0x300000, 0x301fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16)
973973   AM_RANGE(0x400000, 0x40001f) AM_WRITE(TC0360PRI_halfword_w)   /* ?? */
r1238r1239
18151815/* The other bits vary from one game to another, so they are not included here */
18161816
18171817
1818INPUT_PORTS_START( finalb )
1818static INPUT_PORTS_START( finalb )
18191819   PORT_START_TAG("DSWA")
18201820   /* Not sure how to handle alternate controls */
18211821   PORT_DIPNAME( 0x01, 0x01, "Alternate Controls" )
r1238r1239
18691869   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(2)   /* 2P ducking? */
18701870INPUT_PORTS_END
18711871
1872INPUT_PORTS_START( finalbj )
1872static INPUT_PORTS_START( finalbj )
18731873   PORT_INCLUDE(finalb)
18741874
18751875   PORT_MODIFY("DSWA")
r1238r1239
18771877INPUT_PORTS_END
18781878
18791879
1880INPUT_PORTS_START( dondokod )
1880static INPUT_PORTS_START( dondokod )
18811881   PORT_START_TAG("DSWA")
18821882   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
18831883   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
19281928   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
19291929INPUT_PORTS_END
19301930
1931INPUT_PORTS_START( dondokdu )
1931static INPUT_PORTS_START( dondokdu )
19321932   PORT_INCLUDE(dondokod)
19331933
19341934   PORT_MODIFY("DSWA")
19351935   TAITO_COINAGE_US_8
19361936INPUT_PORTS_END
19371937
1938INPUT_PORTS_START( dondokdj )
1938static INPUT_PORTS_START( dondokdj )
19391939   PORT_INCLUDE(dondokod)
19401940
19411941   PORT_MODIFY("DSWA")
r1238r1239
19431943INPUT_PORTS_END
19441944
19451945
1946INPUT_PORTS_START( megab )
1946static INPUT_PORTS_START( megab )
19471947   PORT_START_TAG("DSWA")
19481948   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
19491949   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
19941994   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
19951995INPUT_PORTS_END
19961996
1997INPUT_PORTS_START( megabj )
1997static INPUT_PORTS_START( megabj )
19981998   PORT_INCLUDE(megab)
19991999
20002000   PORT_MODIFY("DSWA")
r1238r1239
20022002INPUT_PORTS_END
20032003
20042004
2005INPUT_PORTS_START( thundfox )
2005static INPUT_PORTS_START( thundfox )
20062006   PORT_START_TAG("DSWA")
20072007   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )  // all 2 in manual
20082008   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
20542054   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
20552055INPUT_PORTS_END
20562056
2057INPUT_PORTS_START( thndfoxu )
2057static INPUT_PORTS_START( thndfoxu )
20582058   PORT_INCLUDE(thundfox)
20592059
20602060   PORT_MODIFY("DSWA")
20612061   TAITO_COINAGE_US_8
20622062INPUT_PORTS_END
20632063
2064INPUT_PORTS_START( thndfoxj )
2064static INPUT_PORTS_START( thndfoxj )
20652065   PORT_INCLUDE(thundfox)
20662066
20672067   PORT_MODIFY("DSWA")
r1238r1239
20692069INPUT_PORTS_END
20702070
20712071
2072INPUT_PORTS_START( cameltry )
2072static INPUT_PORTS_START( cameltry )
20732073   PORT_START_TAG("DSWA")
20742074   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
20752075   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
21362136   PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_PLAYER(2)
21372137INPUT_PORTS_END
21382138
2139INPUT_PORTS_START( cameltrj )
2139static INPUT_PORTS_START( cameltrj )
21402140   PORT_INCLUDE(cameltry)
21412141
21422142   PORT_MODIFY("DSWA")
21432143   TAITO_COINAGE_JAPAN_8
21442144INPUT_PORTS_END
21452145
2146INPUT_PORTS_START( qtorimon )
2146static INPUT_PORTS_START( qtorimon )
21472147   PORT_START_TAG("DSWA")
21482148   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) // all 5 in manual
21492149   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
22052205   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
22062206INPUT_PORTS_END
22072207
2208INPUT_PORTS_START( liquidk )
2208static INPUT_PORTS_START( liquidk )
22092209   PORT_START_TAG("DSWA")
22102210   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
22112211   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
22562256   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
22572257INPUT_PORTS_END
22582258
2259INPUT_PORTS_START( liquidku )
2259static INPUT_PORTS_START( liquidku )
22602260   PORT_INCLUDE(liquidk)
22612261
22622262   PORT_MODIFY("DSWA")
r1238r1239
22642264INPUT_PORTS_END
22652265
22662266
2267INPUT_PORTS_START( mizubaku )
2267static INPUT_PORTS_START( mizubaku )
22682268   PORT_START_TAG("DSWA")
22692269   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
22702270   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
23152315   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
23162316INPUT_PORTS_END
23172317
2318INPUT_PORTS_START( ssi )
2318static INPUT_PORTS_START( ssi )
23192319   PORT_START_TAG("DSWA")
23202320   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
23212321   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
23662366   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
23672367INPUT_PORTS_END
23682368
2369INPUT_PORTS_START( majest12 )
2369static INPUT_PORTS_START( majest12 )
23702370   PORT_INCLUDE(ssi)
23712371
23722372   PORT_MODIFY("DSWA")
r1238r1239
23742374INPUT_PORTS_END
23752375
23762376
2377INPUT_PORTS_START( growl )
2377static INPUT_PORTS_START( growl )
23782378   /* IN0 */
23792379   TAITO_F2_PLAYERS_INPUT( 1 )
23802380   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
r1238r1239
24542454   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
24552455INPUT_PORTS_END
24562456
2457INPUT_PORTS_START( growlu )
2457static INPUT_PORTS_START( growlu )
24582458   PORT_INCLUDE(growl)
24592459
24602460   PORT_MODIFY("DSWA")
24612461   TAITO_COINAGE_US_8
24622462INPUT_PORTS_END
24632463
2464INPUT_PORTS_START( runark )
2464static INPUT_PORTS_START( runark )
24652465   PORT_INCLUDE(growl)
24662466
24672467   PORT_MODIFY("DSWA")
r1238r1239
24692469INPUT_PORTS_END
24702470
24712471
2472INPUT_PORTS_START( pulirula )
2472static INPUT_PORTS_START( pulirula )
24732473   PORT_START_TAG("DSWA")
24742474   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
24752475   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
25202520   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
25212521INPUT_PORTS_END
25222522
2523INPUT_PORTS_START( pulirulj )
2523static INPUT_PORTS_START( pulirulj )
25242524   PORT_INCLUDE(pulirula)
25252525
25262526   PORT_MODIFY("DSWA")
r1238r1239
25282528INPUT_PORTS_END
25292529
25302530
2531INPUT_PORTS_START( qzquest )
2531static INPUT_PORTS_START( qzquest )
25322532   PORT_START_TAG("DSWA")
25332533   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
25342534   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
25912591   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
25922592INPUT_PORTS_END
25932593
2594INPUT_PORTS_START( qzchikyu )
2594static INPUT_PORTS_START( qzchikyu )
25952595   PORT_START_TAG("DSWA")
25962596   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
25972597   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
26542654   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
26552655INPUT_PORTS_END
26562656
2657INPUT_PORTS_START( footchmp )
2657static INPUT_PORTS_START( footchmp )
26582658   /* IN0 */
26592659   TAITO_F2_PLAYERS_INPUT( 1 )
26602660   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
27182718   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 )
27192719INPUT_PORTS_END
27202720
2721INPUT_PORTS_START( hthero )
2721static INPUT_PORTS_START( hthero )
27222722   PORT_INCLUDE(footchmp)
27232723
27242724   PORT_MODIFY("DSWA")
r1238r1239
27672767   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
27682768INPUT_PORTS_END
27692769
2770INPUT_PORTS_START( ninjak )
2770static INPUT_PORTS_START( ninjak )
27712771   /* IN0 */
27722772   TAITO_F2_PLAYERS_INPUT( 1 )
27732773   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
28312831   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 )
28322832INPUT_PORTS_END
28332833
2834INPUT_PORTS_START( ninjaku )
2834static INPUT_PORTS_START( ninjaku )
28352835   PORT_INCLUDE(ninjak)
28362836
28372837   PORT_MODIFY("DSWA")
28382838   TAITO_COINAGE_US_8
28392839INPUT_PORTS_END
28402840
2841INPUT_PORTS_START( ninjakj )
2841static INPUT_PORTS_START( ninjakj )
28422842   PORT_INCLUDE(ninjak)
28432843
28442844   PORT_MODIFY("DSWA")
r1238r1239
28462846INPUT_PORTS_END
28472847
28482848
2849INPUT_PORTS_START( driftout )
2849static INPUT_PORTS_START( driftout )
28502850   PORT_START_TAG("DSWA")
28512851   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )  // all 5 in Service Mode
28522852   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
29022902   PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(50) PORT_KEYDELTA(10) PORT_PLAYER(2)
29032903INPUT_PORTS_END
29042904
2905INPUT_PORTS_START( gunfront )
2905static INPUT_PORTS_START( gunfront )
29062906   PORT_START_TAG("DSWA")
29072907   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) /* Listed as "Unused" */
29082908   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
29532953   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
29542954INPUT_PORTS_END
29552955
2956INPUT_PORTS_START( gunfronj )
2956static INPUT_PORTS_START( gunfronj )
29572957   PORT_INCLUDE(gunfront)
29582958
29592959   PORT_MODIFY("DSWA")
r1238r1239
29612961INPUT_PORTS_END
29622962
29632963
2964INPUT_PORTS_START( metalb )
2964static INPUT_PORTS_START( metalb )
29652965   PORT_START_TAG("DSWA")
29662966   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
29672967   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
30123012   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
30133013INPUT_PORTS_END
30143014
3015INPUT_PORTS_START( metalbj )
3015static INPUT_PORTS_START( metalbj )
30163016   PORT_INCLUDE(metalb)
30173017
30183018   PORT_MODIFY("DSWA")
r1238r1239
30203020INPUT_PORTS_END
30213021
30223022
3023INPUT_PORTS_START( deadconx )
3023static INPUT_PORTS_START( deadconx )
30243024   /* IN0 */
30253025   TAITO_F2_PLAYERS_INPUT( 1 )
30263026   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
30733073   PORT_DIPSETTING(    0x80, "Multiplayer" )
30743074INPUT_PORTS_END
30753075
3076INPUT_PORTS_START( deadconj )
3076static INPUT_PORTS_START( deadconj )
30773077   PORT_INCLUDE(deadconx)
30783078
30793079   PORT_MODIFY("DSWA")
r1238r1239
30813081INPUT_PORTS_END
30823082
30833083
3084INPUT_PORTS_START( dinorex )
3084static INPUT_PORTS_START( dinorex )
30853085   PORT_START_TAG("DSWA")
30863086   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )  //are "unused" verified from manual?
30873087   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
31333133   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
31343134INPUT_PORTS_END
31353135
3136INPUT_PORTS_START( dinorexj )
3136static INPUT_PORTS_START( dinorexj )
31373137   PORT_INCLUDE(dinorex)
31383138
31393139   PORT_MODIFY("DSWA")
r1238r1239
31413141INPUT_PORTS_END
31423142
31433143
3144INPUT_PORTS_START( solfigtr )
3144static INPUT_PORTS_START( solfigtr )
31453145   /* IN0 */
31463146   TAITO_F2_PLAYERS_INPUT( 1 )
31473147   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
r1238r1239
31943194   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
31953195INPUT_PORTS_END
31963196
3197INPUT_PORTS_START( koshien )
3197static INPUT_PORTS_START( koshien )
31983198   PORT_START /* DSW A, one lets you control fielders ? */
31993199   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
32003200   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
32563256   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2)
32573257INPUT_PORTS_END
32583258
3259INPUT_PORTS_START( quizhq )
3259static INPUT_PORTS_START( quizhq )
32603260   PORT_START      /* IN0 */
32613261   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
32623262   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
r1238r1239
33173317   PORT_DIPSETTING(    0x80, DEF_STR( Dual ) )
33183318INPUT_PORTS_END
33193319
3320INPUT_PORTS_START( qjinsei )
3320static INPUT_PORTS_START( qjinsei )
33213321   PORT_START_TAG("DSWA")
33223322   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
33233323   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
33803380   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
33813381INPUT_PORTS_END
33823382
3383INPUT_PORTS_START( qcrayon )
3383static INPUT_PORTS_START( qcrayon )
33843384   PORT_START_TAG("DSWA")
33853385   PORT_DIPUNUSED( 0x01, IP_ACTIVE_LOW )
33863386   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) )
r1238r1239
34323432   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
34333433INPUT_PORTS_END
34343434
3435INPUT_PORTS_START( qcrayon2 )
3435static INPUT_PORTS_START( qcrayon2 )
34363436   PORT_START_TAG("DSWA")
34373437   PORT_DIPUNUSED( 0x01, IP_ACTIVE_LOW )
34383438   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) )
r1238r1239
35033503   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
35043504INPUT_PORTS_END
35053505
3506INPUT_PORTS_START( yuyugogo )
3506static INPUT_PORTS_START( yuyugogo )
35073507   PORT_START_TAG("DSWA")
35083508   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
35093509   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
35663566   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
35673567INPUT_PORTS_END
35683568
3569INPUT_PORTS_START( mjnquest )
3569static INPUT_PORTS_START( mjnquest )
35703570   PORT_START      /* IN0 */
35713571   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_MAHJONG_A )
35723572   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_MAHJONG_E )
r1238r1239
36473647   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
36483648INPUT_PORTS_END
36493649
3650INPUT_PORTS_START( yesnoj )   // apparently no test mode, though text in rom suggests printer test
3650static INPUT_PORTS_START( yesnoj )   // apparently no test mode, though text in rom suggests printer test
36513651   PORT_START      /* IN0 */
36523652   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
36533653   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
src/mame/drivers/gberet.c
r1238r1239
191191
192192/* Input Ports */
193193
194INPUT_PORTS_START( gberet )
194static INPUT_PORTS_START( gberet )
195195   PORT_START   // IN0
196196   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
197197   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
r1238r1239
288288INPUT_PORTS_END
289289
290290// IN2 is different, IN1 and DSW0 are swapped and there is no DSW2
291INPUT_PORTS_START( gberetb )
291static INPUT_PORTS_START( gberetb )
292292   PORT_START   // IN0
293293   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
294294   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
r1238r1239
368368   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
369369INPUT_PORTS_END
370370
371INPUT_PORTS_START( mrgoemon )
371static INPUT_PORTS_START( mrgoemon )
372372   PORT_START   // IN0
373373   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
374374   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY
src/mame/drivers/stfight.c
r1238r1239
316316ADDRESS_MAP_END
317317
318318
319INPUT_PORTS_START( stfight )
319static INPUT_PORTS_START( stfight )
320320   PORT_START   /* PLAYER 1 */
321321   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
322322   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/gottlieb.c
r1238r1239
505505
506506
507507
508INPUT_PORTS_START( reactor )
508static INPUT_PORTS_START( reactor )
509509   PORT_START_TAG("DSW")
510510   PORT_DIPNAME( 0x01, 0x01, "Sound with Logos" )
511511   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
r1238r1239
552552   PORT_BIT ( 0xc0, IP_ACTIVE_HIGH, IPT_UNKNOWN )
553553INPUT_PORTS_END
554554
555INPUT_PORTS_START( mplanets )
555static INPUT_PORTS_START( mplanets )
556556   PORT_START_TAG("DSW")
557557   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) )
558558   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
601601   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON2 )
602602INPUT_PORTS_END
603603
604INPUT_PORTS_START( tylz )
604static INPUT_PORTS_START( tylz )
605605   PORT_START_TAG("DSW")
606606   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) )
607607   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
r1238r1239
663663   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
664664INPUT_PORTS_END
665665
666INPUT_PORTS_START( qbert )
666static INPUT_PORTS_START( qbert )
667667   PORT_START_TAG("DSW")
668668   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) )
669669   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
719719   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL
720720INPUT_PORTS_END
721721
722INPUT_PORTS_START( qbertqub )
722static INPUT_PORTS_START( qbertqub )
723723   PORT_START_TAG("DSW")
724724   PORT_DIPNAME( 0x08, 0x00, DEF_STR( Demo_Sounds ) )
725725   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
r1238r1239
778778   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
779779INPUT_PORTS_END
780780
781INPUT_PORTS_START( krull )
781static INPUT_PORTS_START( krull )
782782   PORT_START_TAG("DSW")
783783   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) )
784784   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
830830   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_LEFT ) PORT_8WAY
831831INPUT_PORTS_END
832832
833INPUT_PORTS_START( mach3 )
833static INPUT_PORTS_START( mach3 )
834834   PORT_START_TAG("DSW")
835835   /* TODO: values are different for 5 lives */
836836   PORT_DIPNAME( 0x09, 0x08, DEF_STR( Coinage ) )
r1238r1239
883883   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
884884INPUT_PORTS_END
885885
886INPUT_PORTS_START( usvsthem )
886static INPUT_PORTS_START( usvsthem )
887887   PORT_START_TAG("DSW")
888888   /* TODO: values are different for 5 lives */
889889   PORT_DIPNAME( 0x09, 0x00, DEF_STR( Coinage ) )
r1238r1239
937937   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
938938INPUT_PORTS_END
939939
940INPUT_PORTS_START( 3stooges )
940static INPUT_PORTS_START( 3stooges )
941941   PORT_START_TAG("DSW")
942942   PORT_DIPNAME (0x01, 0x00, DEF_STR( Demo_Sounds ) )
943943   PORT_DIPSETTING (   0x01, DEF_STR( Off ) )
r1238r1239
10021002   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
10031003INPUT_PORTS_END
10041004
1005INPUT_PORTS_START( curvebal )
1005static INPUT_PORTS_START( curvebal )
10061006   PORT_START_TAG("DSW")
10071007   PORT_DIPNAME( 0x08, 0x00, "2 Players Game" )
10081008   PORT_DIPSETTING(    0x08, "1 Credit" )
r1238r1239
10651065   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
10661066INPUT_PORTS_END
10671067
1068INPUT_PORTS_START( screwloo )
1068static INPUT_PORTS_START( screwloo )
10691069   PORT_START_TAG("DSW")
10701070   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) )
10711071   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
11181118   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
11191119INPUT_PORTS_END
11201120
1121INPUT_PORTS_START( insector )
1121static INPUT_PORTS_START( insector )
11221122   PORT_START_TAG("DSW")
11231123   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) )
11241124   PORT_DIPSETTING(    0x00, "25000" )
r1238r1239
11711171   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL
11721172INPUT_PORTS_END
11731173
1174INPUT_PORTS_START( vidvince )
1174static INPUT_PORTS_START( vidvince )
11751175   PORT_START_TAG("DSW")
11761176   PORT_DIPNAME( 0x09, 0x01, DEF_STR( Coinage ) )
11771177   PORT_DIPSETTING(    0x09, DEF_STR( 3C_1C ) )
r1238r1239
12231223   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
12241224INPUT_PORTS_END
12251225
1226INPUT_PORTS_START( wizwarz )
1226static INPUT_PORTS_START( wizwarz )
12271227/* TODO: Bonus Life and Bonus Mine values are dependent upon each other */
12281228   PORT_START_TAG("DSW")
12291229   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Bonus_Life ) )
r1238r1239
12781278   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START2 )
12791279INPUT_PORTS_END
12801280
1281INPUT_PORTS_START( argusg )
1281static INPUT_PORTS_START( argusg )
12821282   PORT_START_TAG("DSW")
12831283   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) )
12841284   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
13311331   PORT_BIT ( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
13321332INPUT_PORTS_END
13331333
1334INPUT_PORTS_START( kngtmare )
1334static INPUT_PORTS_START( kngtmare )
13351335   PORT_START_TAG("DSW")
13361336   PORT_DIPNAME( 0x11, 0x11, DEF_STR( Coinage ) )
13371337   PORT_DIPSETTING(    0x10, DEF_STR( 2C_1C ) )
src/mame/drivers/sandscrp.c
r1238r1239
217217                                Sand Scorpion
218218***************************************************************************/
219219
220INPUT_PORTS_START( sandscrp )
220static INPUT_PORTS_START( sandscrp )
221221   PORT_START   // IN0 - $b00000.w
222222   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
223223   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN    ) PORT_PLAYER(1)
src/mame/drivers/gpworld.c
r1238r1239
220220
221221/* MEMORY HANDLERS */
222222/* READS */
223READ8_HANDLER(ldp_read)
223static READ8_HANDLER( ldp_read )
224224{
225225   return ldp_read_latch;
226226}
227227
228228/* WRITES */
229WRITE8_HANDLER(ldp_write)
229static WRITE8_HANDLER( ldp_write )
230230{
231231   ldp_write_latch = data;
232232}
233233
234WRITE8_HANDLER(misc_io_write)
234static WRITE8_HANDLER( misc_io_write )
235235{
236236   start_lamp = (data & 0x04) >> 1;
237237   nmi_enable = (data & 0x40) >> 6;
r1238r1239
240240   logerror("NMI : %x (0x%x)\n", nmi_enable, data);
241241}
242242
243WRITE8_HANDLER(palette_write)
243static WRITE8_HANDLER( palette_write )
244244{
245245   /* This is all just a (bad) guess */
246246   int pal_index, r, g, b;
r1238r1239
289289
290290
291291/* PORTS */
292INPUT_PORTS_START( gpworld )
292static INPUT_PORTS_START( gpworld )
293293   PORT_START_TAG("IN0")
294294   PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
295295   PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/ddragon.c
r1238r1239
701701   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 )
702702
703703
704INPUT_PORTS_START( darktowr )
704static INPUT_PORTS_START( darktowr )
705705   COMMON_INPUT_PORTS
706706
707707   COMMON_INPUT_DIP2
r1238r1239
735735   COMMON_PORT4
736736INPUT_PORTS_END
737737
738INPUT_PORTS_START( tstrike )
738static INPUT_PORTS_START( tstrike )
739739   COMMON_INPUT_PORTS
740740
741741   COMMON_INPUT_DIP1
r1238r1239
766766   COMMON_PORT4
767767INPUT_PORTS_END
768768
769INPUT_PORTS_START( ddragon )
769static INPUT_PORTS_START( ddragon )
770770   COMMON_INPUT_PORTS
771771
772772   COMMON_INPUT_DIP1
r1238r1239
795795   COMMON_PORT4
796796INPUT_PORTS_END
797797
798INPUT_PORTS_START( ddragon2 )
798static INPUT_PORTS_START( ddragon2 )
799799   COMMON_INPUT_PORTS
800800
801801   COMMON_INPUT_DIP1
r1238r1239
826826   COMMON_PORT4
827827INPUT_PORTS_END
828828
829INPUT_PORTS_START( ddungeon )
829static INPUT_PORTS_START( ddungeon )
830830   COMMON_INPUT_PORTS
831831
832832   COMMON_INPUT_DIP2
r1238r1239
848848   COMMON_PORT4
849849INPUT_PORTS_END
850850
851INPUT_PORTS_START( toffy )
851static INPUT_PORTS_START( toffy )
852852   COMMON_INPUT_PORTS
853853
854854   PORT_START_TAG("DSW0")
src/mame/drivers/acommand.c
r1238r1239
225225}
226226
227227
228WRITE16_HANDLER( ac_bgvram_w )
228static WRITE16_HANDLER( ac_bgvram_w )
229229{
230230   COMBINE_DATA(&ac_bgvram[offset]);
231231   tilemap_mark_tile_dirty(bg_tilemap,offset);
232232}
233233
234WRITE16_HANDLER( ac_txvram_w )
234static WRITE16_HANDLER( ac_txvram_w )
235235{
236236   COMBINE_DATA(&ac_txvram[offset]);
237237   tilemap_mark_tile_dirty(tx_tilemap,offset);
r1238r1239
373373   AM_RANGE(0x100000, 0x1000ff) AM_READ(ac_devices_r) AM_WRITE(ac_devices_w) AM_BASE(&ac_devram)
374374ADDRESS_MAP_END
375375
376INPUT_PORTS_START( acommand )
376static INPUT_PORTS_START( acommand )
377377   PORT_START
378378   PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) )
379379   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
src/mame/drivers/asterix.c
r1238r1239
236236
237237
238238
239INPUT_PORTS_START( asterix )
239static INPUT_PORTS_START( asterix )
240240   PORT_START_TAG("IN0")
241241   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
242242   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/tubep.c
r1238r1239
517517 *************************************/
518518
519519
520INPUT_PORTS_START( tubep )
520static INPUT_PORTS_START( tubep )
521521   PORT_START_TAG("P1")
522522   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
523523   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
614614INPUT_PORTS_END
615615
616616
617INPUT_PORTS_START( tubepb )
617static INPUT_PORTS_START( tubepb )
618618   PORT_INCLUDE(tubep )
619619
620620   PORT_MODIFY("DSW2")
r1238r1239
629629INPUT_PORTS_END
630630
631631
632INPUT_PORTS_START( rjammer )
632static INPUT_PORTS_START( rjammer )
633633   PORT_START_TAG("P1")
634634   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 )
635635   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
src/mame/drivers/ppmast93.c
r1238r1239
201201     AM_RANGE(0x0000, 0xffff) AM_READ(MRA8_ROM) AM_WRITE(ppmast_sound_w) AM_REGION(REGION_CPU2, 0x20000)
202202ADDRESS_MAP_END
203203
204INPUT_PORTS_START( ppmast93 )
204static INPUT_PORTS_START( ppmast93 )
205205   PORT_START   /* 8bit */
206206   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_PLAYER(1)
207207   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_PLAYER(1)
src/mame/drivers/homedata.c
r1238r1239
720720/**************************************************************************/
721721
722722
723INPUT_PORTS_START( mjhokite )
723static INPUT_PORTS_START( mjhokite )
724724   PORT_START
725725   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) )
726726   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
825825   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
826826INPUT_PORTS_END
827827
828INPUT_PORTS_START( reikaids )
828static INPUT_PORTS_START( reikaids )
829829   PORT_START   // IN0  - 0x7801
830830   PORT_BIT(  0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_PLAYER(1)
831831   PORT_BIT(  0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_PLAYER(1)
r1238r1239
906906   PORT_DIPSETTING(    0x60, DEF_STR( 1C_5C ) )
907907INPUT_PORTS_END
908908
909INPUT_PORTS_START( battlcry )
909static INPUT_PORTS_START( battlcry )
910910   PORT_START   // IN0  - 0x7801
911911   PORT_BIT(  0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_PLAYER(1)
912912   PORT_BIT(  0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_PLAYER(1)
r1238r1239
10441044   PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED )
10451045
10461046
1047INPUT_PORTS_START( pteacher )
1047static INPUT_PORTS_START( pteacher )
10481048   PORT_START   /* dip switches (handled by pteacher_keyboard_r) */
10491049   PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds ) )
10501050   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
r1238r1239
10901090   MJ_KEYBOARD
10911091INPUT_PORTS_END
10921092
1093INPUT_PORTS_START( jogakuen )
1093static INPUT_PORTS_START( jogakuen )
10941094   PORT_START   /* dip switches (handled by pteacher_keyboard_r) */
10951095   PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) )
10961096   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
r1238r1239
11361136   MJ_KEYBOARD
11371137INPUT_PORTS_END
11381138
1139INPUT_PORTS_START( mjikaga )
1139static INPUT_PORTS_START( mjikaga )
11401140   PORT_START   /* dip switches (handled by pteacher_keyboard_r) */
11411141   PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) )
11421142   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
r1238r1239
13061306};
13071307
13081308
1309UPD7810_CONFIG upd_config =
1309static UPD7810_CONFIG upd_config =
13101310{
13111311   TYPE_7810,
13121312   NULL   /* io_callback */
src/mame/drivers/exidy.c
r1238r1239
278278 *
279279 *************************************/
280280
281INPUT_PORTS_START( sidetrac )
281static INPUT_PORTS_START( sidetrac )
282282   PORT_START_TAG("DSW")
283283   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) )
284284   PORT_DIPSETTING(    0x00, "2" )
r1238r1239
313313INPUT_PORTS_END
314314
315315
316INPUT_PORTS_START( targ )
316static INPUT_PORTS_START( targ )
317317   PORT_START_TAG("DSW")
318318   PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_COIN2 ) /* upright/cocktail switch? */
319319   PORT_DIPNAME( 0x02, 0x00, "Pence Coinage" )
r1238r1239
358358
359359
360360/* identical to Targ, the only difference is the additional Language dip switch */
361INPUT_PORTS_START( spectar )
361static INPUT_PORTS_START( spectar )
362362   PORT_INCLUDE(targ)
363363
364364   PORT_MODIFY("INTSOURCE")
r1238r1239
370370   PORT_BIT( 0x1c, IP_ACTIVE_HIGH, IPT_SPECIAL )
371371INPUT_PORTS_END
372372
373INPUT_PORTS_START( rallys )
373static INPUT_PORTS_START( rallys )
374374   PORT_INCLUDE(spectar)
375375
376376   PORT_MODIFY("DSW")
r1238r1239
411411   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 )
412412INPUT_PORTS_END
413413
414INPUT_PORTS_START( phantoma )
414static INPUT_PORTS_START( phantoma )
415415   PORT_INCLUDE(rallys)
416416
417417   PORT_MODIFY("DSW")
r1238r1239
427427INPUT_PORTS_END
428428
429429
430INPUT_PORTS_START( mtrap )
430static INPUT_PORTS_START( mtrap )
431431   PORT_START_TAG("DSW")
432432   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 )
433433   PORT_DIPNAME( 0x06, 0x06, DEF_STR( Bonus_Life ) )
r1238r1239
491491INPUT_PORTS_END
492492
493493
494INPUT_PORTS_START( venture )
494static INPUT_PORTS_START( venture )
495495   PORT_START_TAG("DSW")
496496   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 )
497497   PORT_DIPNAME( 0x06, 0x00, DEF_STR( Bonus_Life ) )
r1238r1239
547547INPUT_PORTS_END
548548
549549
550INPUT_PORTS_START( teetert )
550static INPUT_PORTS_START( teetert )
551551   PORT_START_TAG("DSW")
552552   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 )
553553   PORT_DIPNAME( 0x06, 0x06, DEF_STR( Bonus_Life ) )
r1238r1239
607607INPUT_PORTS_END
608608
609609
610INPUT_PORTS_START( pepper2 )
610static INPUT_PORTS_START( pepper2 )
611611   PORT_START_TAG("DSW")
612612   PORT_BIT ( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 )
613613   PORT_DIPNAME( 0x06, 0x06, DEF_STR( Bonus_Life ) )
r1238r1239
664664INPUT_PORTS_END
665665
666666
667INPUT_PORTS_START( fax )
667static INPUT_PORTS_START( fax )
668668   PORT_START_TAG("DSW")
669669   PORT_BIT ( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 )
670670   PORT_DIPNAME( 0x06, 0x06, "Bonus Time" )
src/mame/drivers/xxmissio.c
r1238r1239
150150
151151/****************************************************************************/
152152
153INPUT_PORTS_START( xxmissio )
153static INPUT_PORTS_START( xxmissio )
154154   PORT_START_TAG("IN0")
155155   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
156156   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 )
src/mame/drivers/mugsmash.c
r1238r1239
238238
239239
240240#if USE_FAKE_INPUT_PORTS
241INPUT_PORTS_START( mugsmash )
241static INPUT_PORTS_START( mugsmash )
242242   PORT_START   /* Fake IN0 (player 1 inputs) */
243243   MUGSMASH_PLAYER_INPUT( 1, IPT_START1 )
244244
r1238r1239
299299   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
300300INPUT_PORTS_END
301301#else
302INPUT_PORTS_START( mugsmash )
302static INPUT_PORTS_START( mugsmash )
303303   PORT_START   /* IN0 - $180000.w */
304304   MUGSMASH_PLAYER_INPUT( 1, IPT_START1 )
305305   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_COIN1 )
src/mame/drivers/pcktgal.c
r1238r1239
120120
121121/***************************************************************************/
122122
123INPUT_PORTS_START( pcktgal )
123static INPUT_PORTS_START( pcktgal )
124124   PORT_START
125125   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
126126   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
src/mame/drivers/hyhoo.c
r1238r1239
9393ADDRESS_MAP_END
9494
9595
96INPUT_PORTS_START( hyhoo )
96static INPUT_PORTS_START( hyhoo )
9797   PORT_START   /* (0) DIPSW-A */
9898   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Difficulty ) )
9999   PORT_DIPSETTING(    0x00, "4 (Easy)" )
r1238r1239
179179   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
180180INPUT_PORTS_END
181181
182INPUT_PORTS_START( hyhoo2 )
182static INPUT_PORTS_START( hyhoo2 )
183183   PORT_START   /* (0) DIPSW-A */
184184   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Difficulty ) )
185185   PORT_DIPSETTING(    0x00, "4 (Easy)" )
src/mame/drivers/hng64.c
r1238r1239
500500static UINT8 *hng64_com_mmu_mem;
501501
502502/* Hacky stuff */
503char writeString[1024];
503//static char writeString[1024];
504504extern UINT32 hng64_hackTilemap3, hng64_hackTm3Count, hng64_rowScrollOffset;
505505
506506
r1238r1239
12411241ADDRESS_MAP_END
12421242
12431243
1244INPUT_PORTS_START( hng64 )
1244static INPUT_PORTS_START( hng64 )
12451245   PORT_START_TAG("IPT_TEST")
12461246   PORT_BIT(  0x0001, IP_ACTIVE_HIGH, IPT_UNKNOWN )
12471247   PORT_BIT(  0x0002, IP_ACTIVE_HIGH, IPT_UNKNOWN )
src/mame/drivers/solomon.c
r1238r1239
8989
9090
9191
92INPUT_PORTS_START( solomon )
92static INPUT_PORTS_START( solomon )
9393   PORT_START   /* IN0 */
9494   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
9595   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
src/mame/drivers/macrossp.c
r1238r1239
368368
369369/*** INPUT PORTS *************************************************************/
370370
371INPUT_PORTS_START( macrossp )
371static INPUT_PORTS_START( macrossp )
372372   PORT_START
373373   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
374374   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
458458INPUT_PORTS_END
459459
460460
461INPUT_PORTS_START( quizmoon )
461static INPUT_PORTS_START( quizmoon )
462462   PORT_INCLUDE(macrossp)
463463
464464   PORT_MODIFY("KEYS")
src/mame/drivers/gladiatr.c
r1238r1239
468468
469469
470470
471INPUT_PORTS_START( ppking )
471static INPUT_PORTS_START( ppking )
472472
473473INPUT_PORTS_END
474474
475475
476INPUT_PORTS_START( gladiatr )
476static INPUT_PORTS_START( gladiatr )
477477   PORT_START_TAG("DSW1")      /* (8741-0 parallel port)*/
478478   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
479479   PORT_DIPSETTING(    0x03, DEF_STR( Easy ) )
src/mame/drivers/imolagp.c
r1238r1239
417417   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
418418MACHINE_DRIVER_END
419419
420INPUT_PORTS_START( imolagp )
420static INPUT_PORTS_START( imolagp )
421421   PORT_START_TAG("DSWA") /* 0x4000 */
422422   PORT_DIPNAME( 0x07, 0x00, DEF_STR( Coin_A ) )
423423   PORT_DIPSETTING(    0x07, DEF_STR( 8C_1C ) )
src/mame/drivers/puckpkmn.c
r1238r1239
1717
1818static UINT16* main_ram;
1919
20INPUT_PORTS_START( puckpkmn ) /* Puckman Pockimon Input Ports */
20static INPUT_PORTS_START( puckpkmn ) /* Puckman Pockimon Input Ports */
2121   PORT_START   /* Player 2 Controls ($700011.b) */
2222   PORT_BIT(  0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
2323   PORT_BIT(  0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/kinstb.c
r1238r1239
100100   AM_RANGE(0xffc0, 0xffff) AM_READ(spc_ipl_r)
101101ADDRESS_MAP_END
102102
103INPUT_PORTS_START( kinstb )
103static INPUT_PORTS_START( kinstb )
104104   PORT_START  /* IN 0 : Joypad 1 - L */
105105   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("P1 Button A") PORT_PLAYER(1)
106106   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("P1 Button X") PORT_PLAYER(1)
src/mame/drivers/moo.c
r1238r1239
468468ADDRESS_MAP_END
469469
470470
471INPUT_PORTS_START( moo )
471static INPUT_PORTS_START( moo )
472472   PORT_START_TAG("IN0")
473473   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
474474   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
537537INPUT_PORTS_END
538538
539539/* Same as 'moo', but additional "Button 3" for all players */
540INPUT_PORTS_START( bucky )
540static INPUT_PORTS_START( bucky )
541541   PORT_START_TAG("IN0")
542542   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
543543   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/skychut.c
r1238r1239
175175       cpunum_set_input_line(0, 0, HOLD_LINE);
176176}
177177
178INPUT_PORTS_START( skychut )
178static INPUT_PORTS_START( skychut )
179179   PORT_START
180180   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
181181   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 )
r1238r1239
196196   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(1)
197197INPUT_PORTS_END
198198
199INPUT_PORTS_START( spacebeam )
199static INPUT_PORTS_START( spacebeam )
200200   PORT_START
201201   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
202202   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 )
r1238r1239
228228   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_COCKTAIL
229229INPUT_PORTS_END
230230
231INPUT_PORTS_START( headoni )
231static INPUT_PORTS_START( headoni )
232232   PORT_START
233233   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
234234   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 )
src/mame/drivers/stepstag.c
r1238r1239
1010#include "driver.h"
1111//#include "random.h"
1212
13READ16_HANDLER( unknown_read_0xc00000 )
13static READ16_HANDLER( unknown_read_0xc00000 )
1414{
1515   return mame_rand(Machine);
1616}
1717
18READ16_HANDLER( unknown_read_0xd00000 )
18static READ16_HANDLER( unknown_read_0xd00000 )
1919{
2020   return mame_rand(Machine);
2121}
2222
23READ16_HANDLER( unknown_read_0xffff00 )
23static READ16_HANDLER( unknown_read_0xffff00 )
2424{
2525   return mame_rand(Machine);
2626}
r1238r1239
6969   AM_RANGE(0xf00000, 0xf00001) AM_WRITE(MWA16_NOP) //??
7070ADDRESS_MAP_END
7171
72READ16_HANDLER( unknown_sub_read_0xbe0004 )
72static READ16_HANDLER( unknown_sub_read_0xbe0004 )
7373{
7474   return mame_rand(Machine);
7575}
r1238r1239
8484   AM_RANGE(0x000000, 0x0fffff) AM_WRITE(MWA16_ROM)
8585ADDRESS_MAP_END
8686
87INPUT_PORTS_START( stepstag )
87static INPUT_PORTS_START( stepstag )
8888INPUT_PORTS_END
8989
9090static const gfx_layout tiles8x8_layout =
src/mame/drivers/goindol.c
r1238r1239
190190   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )\
191191   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
192192
193INPUT_PORTS_START( goindol )
193static INPUT_PORTS_START( goindol )
194194GOINDOL_INPUT_BITS
195195
196196   PORT_START_TAG("DSW0")
r1238r1239
219219GOINDOL_DSW1
220220INPUT_PORTS_END
221221
222INPUT_PORTS_START( homo )
222static INPUT_PORTS_START( homo )
223223GOINDOL_INPUT_BITS
224224
225225   PORT_START_TAG("DSW0")
src/mame/drivers/eolith16.c
r1238r1239
7373   AM_RANGE(0xfff80000, 0xffffffff) AM_ROM AM_REGION(REGION_USER1, 0)
7474ADDRESS_MAP_END
7575
76INPUT_PORTS_START( eolith16 )
76static INPUT_PORTS_START( eolith16 )
7777   PORT_START
7878   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_SPECIAL ) // eeprom bit
7979   PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM(eolith_speedup_getvblank, 0)
src/mame/drivers/taito_l.c
r1238r1239
11491149   PORT_DIPSETTING(    0x00, DEF_STR( Off ) ) \
11501150   PORT_DIPSETTING(    0x08, DEF_STR( On ) )
11511151
1152INPUT_PORTS_START( fhawk )
1152static INPUT_PORTS_START( fhawk )
11531153   PORT_START_TAG("DSWA")
11541154   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
11551155   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
11851185   TAITO_L_SYSTEM_INPUT( IP_ACTIVE_LOW, 4 )
11861186INPUT_PORTS_END
11871187
1188INPUT_PORTS_START( fhawkj )
1188static INPUT_PORTS_START( fhawkj )
11891189   PORT_START_TAG("DSWA")
11901190   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
11911191   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
12201220   TAITO_L_SYSTEM_INPUT( IP_ACTIVE_LOW, 4 )
12211221INPUT_PORTS_END
12221222
1223INPUT_PORTS_START( raimais )
1223static INPUT_PORTS_START( raimais )
12241224   PORT_START_TAG("DSWA")
12251225   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
12261226   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
12561256   TAITO_L_SYSTEM_INPUT( IP_ACTIVE_HIGH, 1 )
12571257INPUT_PORTS_END
12581258
1259INPUT_PORTS_START( raimaisj )
1259static INPUT_PORTS_START( raimaisj )
12601260   PORT_START_TAG("DSWA")
12611261   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
12621262   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
13431343   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) \
13441344   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
13451345
1346INPUT_PORTS_START( champwr )
1346static INPUT_PORTS_START( champwr )
13471347   PORT_START_TAG("DSWA")
13481348   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )  // all 2 in manual
13491349   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
13561356   CHAMPWR_INPUTS
13571357INPUT_PORTS_END
13581358
1359INPUT_PORTS_START( champwrj )
1359static INPUT_PORTS_START( champwrj )
13601360   PORT_START_TAG("DSWA")
13611361   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )
13621362   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
13691369   CHAMPWR_INPUTS
13701370INPUT_PORTS_END
13711371
1372INPUT_PORTS_START( champwru )
1372static INPUT_PORTS_START( champwru )
13731373   PORT_START_TAG("DSWA")
13741374   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )
13751375   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
14041404   PORT_DIPSETTING(    0x80, "5 Times" ) \
14051405   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
14061406
1407INPUT_PORTS_START( kurikint )
1407static INPUT_PORTS_START( kurikint )
14081408   PORT_START_TAG("DSWA")
14091409   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
14101410   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
14231423   TAITO_L_SYSTEM_INPUT( IP_ACTIVE_HIGH, 4 )
14241424INPUT_PORTS_END
14251425
1426INPUT_PORTS_START( kurikinj )
1426static INPUT_PORTS_START( kurikinj )
14271427   PORT_START_TAG("DSWA")
14281428   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
14291429   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
14421442   TAITO_L_SYSTEM_INPUT( IP_ACTIVE_HIGH, 4 )
14431443INPUT_PORTS_END
14441444
1445INPUT_PORTS_START( kurikina )
1445static INPUT_PORTS_START( kurikina )
14461446   PORT_START_TAG("DSWA")
14471447   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
14481448   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
14921492   TAITO_L_SYSTEM_INPUT( IP_ACTIVE_HIGH, 4 )
14931493INPUT_PORTS_END
14941494
1495INPUT_PORTS_START( puzznic )
1495static INPUT_PORTS_START( puzznic )
14961496   PORT_START_TAG("DSWA")
14971497   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
14981498   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
15621562   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
15631563INPUT_PORTS_END
15641564
1565INPUT_PORTS_START( plotting )
1565static INPUT_PORTS_START( plotting )
15661566   PORT_START_TAG("DSWA")
15671567   PORT_DIPNAME( 0x01, 0x01, "Play Mode" )
15681568   PORT_DIPSETTING(    0x00, "1 Player" )
r1238r1239
16111611   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
16121612INPUT_PORTS_END
16131613
1614INPUT_PORTS_START( palamed )
1614static INPUT_PORTS_START( palamed )
16151615   PORT_START_TAG("DSWA")
16161616   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
16171617   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
16701670   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
16711671INPUT_PORTS_END
16721672
1673INPUT_PORTS_START( cachat )
1673static INPUT_PORTS_START( cachat )
16741674   PORT_START_TAG("DSWA")
16751675   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
16761676   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
17361736   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
17371737INPUT_PORTS_END
17381738
1739INPUT_PORTS_START( tubeit )
1739static INPUT_PORTS_START( tubeit )
17401740   PORT_START_TAG("DSWA")
17411741   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
17421742   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
18021802   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
18031803INPUT_PORTS_END
18041804
1805INPUT_PORTS_START( horshoes )
1805static INPUT_PORTS_START( horshoes )
18061806   PORT_START_TAG("DSWA")
18071807   PORT_DIPNAME( 0x01, 0x01, "Beer Frame Message" )
18081808   PORT_DIPSETTING(    0x01, "Break Time" )
r1238r1239
18641864   PORT_BIT( 0xffff, 0x0000, IPT_TRACKBALL_X ) PORT_SENSITIVITY(50) PORT_KEYDELTA(30)
18651865INPUT_PORTS_END
18661866
1867INPUT_PORTS_START( plgirls )
1867static INPUT_PORTS_START( plgirls )
18681868   PORT_START_TAG("DSWA")
18691869   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Demo_Sounds ) )
18701870   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
r1238r1239
19421942   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
19431943INPUT_PORTS_END
19441944
1945INPUT_PORTS_START( plgirls2 )
1945static INPUT_PORTS_START( plgirls2 )
19461946   PORT_START_TAG("DSWA")
19471947   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) /* Listed as Not Used */
19481948   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
20242024   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
20252025INPUT_PORTS_END
20262026
2027INPUT_PORTS_START( cubybop )
2027static INPUT_PORTS_START( cubybop )
20282028   PORT_START_TAG("DSWA")
20292029   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
20302030   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
r1238r1239
20902090   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
20912091INPUT_PORTS_END
20922092
2093INPUT_PORTS_START( evilston )
2093static INPUT_PORTS_START( evilston )
20942094
20952095   PORT_START_TAG("DSWA")
20962096   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
src/mame/drivers/gyruss.c
r1238r1239
233233   PORT_DIPSETTING(    0x09, DEF_STR( 1C_7C ) )\
234234   PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
235235
236INPUT_PORTS_START( gyruss )
236static INPUT_PORTS_START( gyruss )
237237GYRUSS_COMMON
238238
239239   PORT_START_TAG("DSW1")
r1238r1239
270270
271271/* This is identical to gyruss except for the bonus that has different
272272   values */
273INPUT_PORTS_START( gyrussce )
273static INPUT_PORTS_START( gyrussce )
274274GYRUSS_COMMON
275275
276276   PORT_START_TAG("DSW1")
src/mame/drivers/groundfx.c
r1238r1239
297297             INPUT PORTS (dips in eprom)
298298***********************************************************/
299299
300INPUT_PORTS_START( groundfx )
300static INPUT_PORTS_START( groundfx )
301301   PORT_START      /* IN0 */
302302   PORT_BIT( 0xffff, IP_ACTIVE_LOW,  IPT_UNUSED )
303303
src/mame/drivers/fastlane.c
r1238r1239
125125
126126***************************************************************************/
127127
128INPUT_PORTS_START( fastlane )
128static INPUT_PORTS_START( fastlane )
129129   PORT_START   /* DSW #1 */
130130   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
131131   PORT_DIPSETTING(   0x02, DEF_STR( 4C_1C ) )
src/mame/drivers/gamecstl.c
r1238r1239
372372#define AT_KEYB_HELPER(bit, text, key1) \
373373   PORT_BIT( bit, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME(text) PORT_CODE(key1)
374374
375INPUT_PORTS_START(gamecstl)
375static INPUT_PORTS_START(gamecstl)
376376   PORT_START_TAG("pc_keyboard_0")
377377   PORT_BIT ( 0x0001, 0x0000, IPT_UNUSED )    /* unused scancode 0 */
378378   AT_KEYB_HELPER( 0x0002, "Esc",          KEYCODE_Q           ) /* Esc                         01  81 */
src/mame/drivers/segald.c
r1238r1239
241241
242242
243243/* PORTS */
244INPUT_PORTS_START( astron )
244static INPUT_PORTS_START( astron )
245245   PORT_START_TAG("DSWA")
246246   PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:4,3,2,1")
247247   PORT_DIPSETTING(    0xe0, DEF_STR( 4C_1C ) )
src/mame/drivers/kangaroo.c
r1238r1239
255255 *
256256 *************************************/
257257
258INPUT_PORTS_START( fnkyfish )
258static INPUT_PORTS_START( fnkyfish )
259259   PORT_START      /* IN0 */
260260   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE1 )
261261   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 )
r1238r1239
314314INPUT_PORTS_END
315315
316316
317INPUT_PORTS_START( kangaroo )
317static INPUT_PORTS_START( kangaroo )
318318   PORT_START      /* IN0 */
319319   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE1 )
320320   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 )
src/mame/drivers/cabal.c
r1238r1239
356356   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )\
357357   PORT_DIPSETTING(      0x8000, DEF_STR( On ) )
358358
359INPUT_PORTS_START( cabalt )
359static INPUT_PORTS_START( cabalt )
360360   CABALDSW
361361
362362   PORT_START_TAG("IN0")
r1238r1239
389389
390390
391391
392INPUT_PORTS_START( cabalj )
392static INPUT_PORTS_START( cabalj )
393393   CABALDSW
394394
395395   /* Since the Trackball version was produced first, and it doesn't use
r1238r1239
436436     PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
437437INPUT_PORTS_END
438438
439INPUT_PORTS_START( cabalbl )
439static INPUT_PORTS_START( cabalbl )
440440   CABALDSW
441441
442442   PORT_START_TAG("IN0")
src/mame/drivers/cidelsa.c
r1238r1239
305305
306306/* Input Ports */
307307
308INPUT_PORTS_START( destryer )
308static INPUT_PORTS_START( destryer )
309309   PORT_START_TAG("IN0")
310310   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) // CARTUCHO
311311   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) // 1P
r1238r1239
345345   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 ) // M1
346346INPUT_PORTS_END
347347
348INPUT_PORTS_START( altair )
348static INPUT_PORTS_START( altair )
349349   PORT_START_TAG("IN0")
350350   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) // CARTUCHO
351351   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) // 1P
r1238r1239
395395   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 ) // M1
396396INPUT_PORTS_END
397397
398INPUT_PORTS_START( draco )
398static INPUT_PORTS_START( draco )
399399   PORT_START_TAG("IN0")
400400   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
401401   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/tickee.c
r1238r1239
136136 *
137137 *************************************/
138138
139INPUT_PORTS_START( tickee )
139static INPUT_PORTS_START( tickee )
140140   PORT_START
141141   PORT_DIPNAME( 0x03, 0x01, "Game Time/Diff" )
142142   PORT_DIPSETTING(    0x03, "Very Fast/Very Easy" )
r1238r1239
192192   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(70) PORT_KEYDELTA(10) PORT_PLAYER(2)
193193INPUT_PORTS_END
194194
195INPUT_PORTS_START( ghoshunt )
195static INPUT_PORTS_START( ghoshunt )
196196   PORT_START
197197   PORT_DIPNAME( 0x01, 0x01, "Messages in Play")
198198   PORT_DIPSETTING(    0x01, DEF_STR( Off ))
src/mame/drivers/hotblock.c
r1238r1239
149149}
150150
151151
152INPUT_PORTS_START(hotblock)
152static INPUT_PORTS_START(hotblock)
153153   PORT_START   /* 8bit */
154154   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
155155   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 )
src/mame/drivers/srmp5.c
r1238r1239
220220   4096   /* data cache size */
221221};
222222
223INPUT_PORTS_START( srmp5 )
223static INPUT_PORTS_START( srmp5 )
224224   PORT_START
225225   PORT_DIPNAME( 0x0001, 0x0001, "0-0" )
226226   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
src/mame/drivers/suprloco.c
r1238r1239
8080
8181
8282
83INPUT_PORTS_START( suprloco )
83static INPUT_PORTS_START( suprloco )
8484   PORT_START_TAG("IN0")
8585   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
8686   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/m92.c
r1238r1239
569569INPUT_PORTS_END
570570
571571
572INPUT_PORTS_START( gunforce )
572static INPUT_PORTS_START( gunforce )
573573   PORT_INCLUDE(m92_2player)
574574
575575   PORT_MODIFY("DIPS21")
r1238r1239
590590INPUT_PORTS_END
591591
592592
593INPUT_PORTS_START( lethalth )
593static INPUT_PORTS_START( lethalth )
594594   PORT_INCLUDE(m92_2player)
595595
596596   PORT_MODIFY("COINS_DIPS")
r1238r1239
619619INPUT_PORTS_END
620620
621621
622INPUT_PORTS_START( hook )
622static INPUT_PORTS_START( hook )
623623   PORT_INCLUDE(m92_4player)
624624
625625   PORT_MODIFY("DIPS21")
r1238r1239
643643INPUT_PORTS_END
644644
645645
646INPUT_PORTS_START( majtitl2 )
646static INPUT_PORTS_START( majtitl2 )
647647   PORT_INCLUDE(m92_4player)
648648
649649   PORT_MODIFY("COINS_DIPS")
r1238r1239
692692INPUT_PORTS_END
693693
694694
695INPUT_PORTS_START( mysticri )
695static INPUT_PORTS_START( mysticri )
696696   PORT_INCLUDE(m92_2player)
697697
698698   PORT_MODIFY("DIPS21")
r1238r1239
713713INPUT_PORTS_END
714714
715715
716INPUT_PORTS_START( uccops )
716static INPUT_PORTS_START( uccops )
717717   PORT_INCLUDE(m92_3player)
718718
719719   PORT_MODIFY("DIPS21")
r1238r1239
736736INPUT_PORTS_END
737737
738738
739INPUT_PORTS_START( rtypeleo )
739static INPUT_PORTS_START( rtypeleo )
740740   PORT_INCLUDE(m92_2player)
741741
742742   PORT_MODIFY("DIPS21")
r1238r1239
754754INPUT_PORTS_END
755755
756756
757INPUT_PORTS_START( inthunt )
757static INPUT_PORTS_START( inthunt )
758758   PORT_INCLUDE(m92_2player)
759759
760760   PORT_MODIFY("DIPS21")
r1238r1239
775775INPUT_PORTS_END
776776
777777
778INPUT_PORTS_START( nbbatman )
778static INPUT_PORTS_START( nbbatman )
779779   PORT_INCLUDE(m92_4player)
780780
781781   PORT_MODIFY("DIPS21")
r1238r1239
796796INPUT_PORTS_END
797797
798798
799INPUT_PORTS_START( psoldier )
799static INPUT_PORTS_START( psoldier )
800800   PORT_INCLUDE(m92_2player)
801801
802802   PORT_MODIFY("DIPS21")
r1238r1239
817817INPUT_PORTS_END
818818
819819
820INPUT_PORTS_START( dsccr94j )
820static INPUT_PORTS_START( dsccr94j )
821821   PORT_INCLUDE(m92_4player)
822822   /* Dip Switch 2, dip 2 is listed as "Don't Change" and is "OFF" */
823823
r1238r1239
857857INPUT_PORTS_END
858858
859859
860INPUT_PORTS_START( gunforc2 )
860static INPUT_PORTS_START( gunforc2 )
861861   PORT_INCLUDE(m92_2player)
862862
863863   PORT_MODIFY("DIPS21")
src/mame/drivers/hal21.c
r1238r1239
340340}
341341
342342
343INPUT_PORTS_START( hal21 )
343static INPUT_PORTS_START( hal21 )
344344   PORT_START_TAG("IN0")
345345   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
346346   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
r1238r1239
419419
420420/**************************************************************************/
421421
422INPUT_PORTS_START( aso )
422static INPUT_PORTS_START( aso )
423423   PORT_START_TAG("IN0")
424424   PORT_BIT( 0x01, IP_ACTIVE_LOW,  IPT_COIN2 )
425425   PORT_BIT( 0x02, IP_ACTIVE_LOW,  IPT_SERVICE1 )
src/mame/drivers/vendetta.c
r1238r1239
364364
365365***************************************************************************/
366366
367INPUT_PORTS_START( vendet4p )
367static INPUT_PORTS_START( vendet4p )
368368   PORT_START_TAG("IN0")
369369   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
370370   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
423423   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN4 )
424424INPUT_PORTS_END
425425
426INPUT_PORTS_START( vendetta )
426static INPUT_PORTS_START( vendetta )
427427   PORT_START_TAG("IN0")
428428   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
429429   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
462462   PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )
463463INPUT_PORTS_END
464464
465INPUT_PORTS_START( esckids )
465static INPUT_PORTS_START( esckids )
466466   PORT_START_TAG("IN0")      // Player 1 Control
467467   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
468468   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
521521   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN4 )
522522INPUT_PORTS_END
523523
524INPUT_PORTS_START( esckidsj )
524static INPUT_PORTS_START( esckidsj )
525525   PORT_START_TAG("IN0")      // Player 1 Control
526526   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
527527   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/fcombat.c
r1238r1239
5757extern int fcombat_sh;
5858extern int fcombat_sv;
5959
60INPUT_PORTS_START( fcombat )
60static INPUT_PORTS_START( fcombat )
6161   PORT_START_TAG("IN0")      /* player 1 inputs (muxed on 0xe000) */
6262   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
6363   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/destroyr.c
r1238r1239
179179ADDRESS_MAP_END
180180
181181
182INPUT_PORTS_START( destroyr )
182static INPUT_PORTS_START( destroyr )
183183   PORT_START /* IN0 */
184184   PORT_BIT( 0x01, IP_ACTIVE_LOW,  IPT_UNUSED ) /* call 7400 */
185185   PORT_BIT( 0x02, IP_ACTIVE_LOW,  IPT_UNUSED )
src/mame/drivers/thoop2.c
r1238r1239
110110ADDRESS_MAP_END
111111
112112
113INPUT_PORTS_START( thoop2 )
113static INPUT_PORTS_START( thoop2 )
114114
115115PORT_START   /* DSW #2 */
116116   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
src/mame/drivers/wwfwfest.c
r1238r1239
208208 There are 4 players, 2 sets of dipswitches and 2 misc
209209*******************************************************************************/
210210
211INPUT_PORTS_START( wwfwfest )
211static INPUT_PORTS_START( wwfwfest )
212212   PORT_START   /* Player 1 */
213213   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT )
214214   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )
src/mame/drivers/marineb.c
r1238r1239
8585ADDRESS_MAP_END
8686
8787
88INPUT_PORTS_START( marineb )
88static INPUT_PORTS_START( marineb )
8989   PORT_START      /* IN0 */
9090   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
9191   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)
r1238r1239
135135   PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_UNKNOWN )
136136INPUT_PORTS_END
137137
138INPUT_PORTS_START( changes )
138static INPUT_PORTS_START( changes )
139139   PORT_START      /* IN0 */
140140   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
141141   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)
r1238r1239
182182   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN )
183183INPUT_PORTS_END
184184
185INPUT_PORTS_START( hoccer )
185static INPUT_PORTS_START( hoccer )
186186   PORT_START      /* IN0 */
187187   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
188188   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)
r1238r1239
230230   PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_UNKNOWN )
231231INPUT_PORTS_END
232232
233INPUT_PORTS_START( wanted )
233static INPUT_PORTS_START( wanted )
234234   PORT_START      /* IN0 */
235235   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2)
236236   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2)
r1238r1239
308308   PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
309309INPUT_PORTS_END
310310
311INPUT_PORTS_START( bcruzm12 )
311static INPUT_PORTS_START( bcruzm12 )
312312   PORT_START      /* IN0 */
313313   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2)
314314   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2)
src/mame/drivers/pktgaldx.c
r1238r1239
206206
207207/**********************************************************************************/
208208
209INPUT_PORTS_START( pktgaldx )
209static INPUT_PORTS_START( pktgaldx )
210210   PORT_START   /* 16bit */
211211   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
212212   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/timeplt.c
r1238r1239
130130   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )\
131131   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
132132
133INPUT_PORTS_START( timeplt )
133static INPUT_PORTS_START( timeplt )
134134TIMEPILOT_INPUTS
135135
136136   PORT_START_TAG("DSW0")
r1238r1239
195195   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
196196INPUT_PORTS_END
197197
198INPUT_PORTS_START( psurge )
198static INPUT_PORTS_START( psurge )
199199TIMEPILOT_INPUTS
200200
201201   PORT_START_TAG("DSW0")
src/mame/drivers/multigam.c
r1238r1239
174174   AM_RANGE(0x8000, 0xffff) AM_ROM AM_WRITE(multigam_mapper2_w)
175175ADDRESS_MAP_END
176176
177INPUT_PORTS_START( multigam )
177static INPUT_PORTS_START( multigam )
178178   PORT_START /* IN0 */
179179   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1)
180180   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1)
src/mame/drivers/atarigx2.c
r1238r1239
12141214 *
12151215 *************************************/
12161216
1217INPUT_PORTS_START( spclords )
1217static INPUT_PORTS_START( spclords )
12181218   PORT_START      /* 68.SW (A1=0) */
12191219   PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED )
12201220   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 )                  /* BLUE button */
r1238r1239
12751275INPUT_PORTS_END
12761276
12771277
1278INPUT_PORTS_START( motofren )
1278static INPUT_PORTS_START( motofren )
12791279   PORT_START      /* 68.SW (A1=0) */
12801280   PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED )
12811281   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 )                  /* Start/fire */
r1238r1239
13211321INPUT_PORTS_END
13221322
13231323
1324INPUT_PORTS_START( rrreveng )
1324static INPUT_PORTS_START( rrreveng )
13251325   PORT_START      /* 68.SW (A1=0) */
13261326   PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED )
13271327   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 )
src/mame/drivers/fuukifg2.c
r1238r1239
184184
185185***************************************************************************/
186186
187INPUT_PORTS_START( gogomile )
187static INPUT_PORTS_START( gogomile )
188188
189189   PORT_START   // IN0 - $800000.w
190190   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_COIN1    )
r1238r1239
268268
269269/* Same as gogomile, but the default country is different and
270270   the coinage settings too. */
271INPUT_PORTS_START( gogomilj )
271static INPUT_PORTS_START( gogomilj )
272272
273273   PORT_START   // IN0 - $800000.w
274274   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_COIN1    )
r1238r1239
351351
352352
353353
354INPUT_PORTS_START( pbancho )
354static INPUT_PORTS_START( pbancho )
355355
356356   PORT_START   // IN0 - $800000.w
357357   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_COIN1    )
src/mame/drivers/nwk-tr.c
r1238r1239
821821
822822/*****************************************************************************/
823823
824INPUT_PORTS_START( nwktr )
824static INPUT_PORTS_START( nwktr )
825825   PORT_START
826826   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 )
827827   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/vulgus.c
r1238r1239
106106
107107
108108
109INPUT_PORTS_START( vulgus )
109static INPUT_PORTS_START( vulgus )
110110   PORT_START      /* IN0 */
111111   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
112112   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
src/mame/drivers/circus.c
r1238r1239
7373ADDRESS_MAP_END
7474
7575
76INPUT_PORTS_START( circus )
76static INPUT_PORTS_START( circus )
7777   PORT_START /* IN0 */
7878   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
7979   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 )
r1238r1239
107107INPUT_PORTS_END
108108
109109
110INPUT_PORTS_START( robotbwl )
110static INPUT_PORTS_START( robotbwl )
111111   PORT_START /* IN0 */
112112   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
113113   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 )
r1238r1239
142142INPUT_PORTS_END
143143
144144
145INPUT_PORTS_START( crash )
145static INPUT_PORTS_START( crash )
146146   PORT_START /* IN0 */
147147   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
148148   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 )
r1238r1239
178178INPUT_PORTS_END
179179
180180
181INPUT_PORTS_START( ripcord )
181static INPUT_PORTS_START( ripcord )
182182   PORT_START /* IN0 */
183183   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
184184   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 )
src/mame/drivers/sderby.c
r1238r1239
164164
165165
166166
167INPUT_PORTS_START( sderby )
167static INPUT_PORTS_START( sderby )
168168   PORT_START   /* 0x308000.w */
169169   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY
170170   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  ) PORT_4WAY
r1238r1239
184184   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
185185INPUT_PORTS_END
186186
187INPUT_PORTS_START( pmroulet )
187static INPUT_PORTS_START( pmroulet )
188188   PORT_START
189189   PORT_BIT( 0x000f, IP_ACTIVE_LOW, IPT_UNKNOWN ) // ?
190190   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_VBLANK ) // it must be toggled to boot anyway
src/mame/drivers/zac2650.c
r1238r1239
5252    AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ(input_port_3_r)
5353ADDRESS_MAP_END
5454
55INPUT_PORTS_START( tinvader )
55static INPUT_PORTS_START( tinvader )
5656
5757   PORT_START_TAG("1E80")
5858   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
104104
105105/* Almost identical, no number of bases selection */
106106
107INPUT_PORTS_START( sinvader )
107static INPUT_PORTS_START( sinvader )
108108
109109   PORT_START_TAG("1E80")
110110   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
r1238r1239
152152
153153INPUT_PORTS_END
154154
155INPUT_PORTS_START( dodgem )
155static INPUT_PORTS_START( dodgem )
156156
157157   PORT_START_TAG("1E80")
158158   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
src/mame/drivers/shangha3.c
r1238r1239
211211
212212
213213
214INPUT_PORTS_START( shangha3 )
214static INPUT_PORTS_START( shangha3 )
215215   PORT_START_TAG("IN0")
216216   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
217217   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
290290   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
291291INPUT_PORTS_END
292292
293INPUT_PORTS_START( heberpop )
293static INPUT_PORTS_START( heberpop )
294294   PORT_START_TAG("IN0")
295295   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
296296   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
369369   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
370370INPUT_PORTS_END
371371
372INPUT_PORTS_START( blocken )
372static INPUT_PORTS_START( blocken )
373373   PORT_START_TAG("IN0")
374374   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
375375   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/pkscram.c
r1238r1239
118118ADDRESS_MAP_END
119119
120120
121INPUT_PORTS_START( pkscramble )
121static INPUT_PORTS_START( pkscramble )
122122   PORT_START   /* Dips */
123123   PORT_DIPNAME( 0x0007, 0x0003, "Level" )
124124   PORT_DIPSETTING(      0x0000, "0" )
src/mame/drivers/vastar.c
r1238r1239
178178
179179
180180
181INPUT_PORTS_START( vastar )
181static INPUT_PORTS_START( vastar )
182182   PORT_START_TAG("IN0")
183183   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
184184   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
src/mame/drivers/39in1.c
r1238r1239
2525   AM_RANGE(0xfff80000, 0xffffffff) AM_ROM AM_REGION(REGION_CPU1, 0)   // mirror to prevent crashing
2626ADDRESS_MAP_END
2727
28INPUT_PORTS_START( 39in1 )
28static INPUT_PORTS_START( 39in1 )
2929INPUT_PORTS_END
3030
3131static MACHINE_DRIVER_START( 39in1 )
src/mame/drivers/taotaido.c
r1238r1239
184184
185185
186186
187INPUT_PORTS_START( taotaido )
187static INPUT_PORTS_START( taotaido )
188188   PORT_START_TAG("IN0")   /* Player 1 controls (0xffff81.b) */
189189   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
190190   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
315315#endif
316316INPUT_PORTS_END
317317
318INPUT_PORTS_START( taotaida )
318static INPUT_PORTS_START( taotaida )
319319   PORT_INCLUDE(taotaido)
320320
321321   PORT_MODIFY("IN0")
src/mame/drivers/fortecar.c
r1238r1239
4343ADDRESS_MAP_END
4444
4545
46INPUT_PORTS_START( fortecar )
46static INPUT_PORTS_START( fortecar )
4747   PORT_START   /* 8bit */
4848   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
4949   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
src/mame/drivers/relief.c
r1238r1239
205205 *
206206 *************************************/
207207
208INPUT_PORTS_START( relief )
208static INPUT_PORTS_START( relief )
209209   PORT_START   /* 260000 */
210210   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Button D0") PORT_CODE(KEYCODE_Z)
211211   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Button D1") PORT_CODE(KEYCODE_X)
src/mame/drivers/gunpey.c
r1238r1239
143143
144144/***************************************************************************************/
145145
146INPUT_PORTS_START( gunpey )
146static INPUT_PORTS_START( gunpey )
147147
148148INPUT_PORTS_END
149149
src/mame/drivers/taito_f3.c
r1238r1239
187187
188188/******************************************************************************/
189189
190INPUT_PORTS_START( f3 )
190static INPUT_PORTS_START( f3 )
191191   PORT_START
192192   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
193193   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
253253   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(4)
254254INPUT_PORTS_END
255255
256INPUT_PORTS_START( kn )
256static INPUT_PORTS_START( kn )
257257   PORT_START
258258   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
259259   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/gaelco2.c
r1238r1239
305305ADDRESS_MAP_END
306306
307307
308INPUT_PORTS_START( bang )
308static INPUT_PORTS_START( bang )
309309PORT_START   /* 1P INPUTS */
310310   PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_IMPULSE(1) PORT_PLAYER(1)
311311
r1238r1239
459459ADDRESS_MAP_END
460460
461461
462INPUT_PORTS_START( alighunt )
462static INPUT_PORTS_START( alighunt )
463463
464464PORT_START   /* DSW #1 */
465465   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
690690ADDRESS_MAP_END
691691
692692
693INPUT_PORTS_START( touchgo )
693static INPUT_PORTS_START( touchgo )
694694
695695PORT_START   /* DSW #2 + 1P INPUTS */
696696   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
970970ADDRESS_MAP_END
971971
972972
973INPUT_PORTS_START( snowboar )
973static INPUT_PORTS_START( snowboar )
974974PORT_START   /* 1P INPUTS */
975975   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
976976   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
11611161ADDRESS_MAP_END
11621162
11631163
1164INPUT_PORTS_START( wrally2 )
1164static INPUT_PORTS_START( wrally2 )
11651165PORT_START   /* DIPSW #2 + 1P INPUTS */
11661166   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
11671167   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/homerun.c
r1238r1239
118118};
119119
120120
121INPUT_PORTS_START( homerun )
121static INPUT_PORTS_START( homerun )
122122   PORT_START
123123   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1  )
124124   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
r1238r1239
148148
149149INPUT_PORTS_END
150150
151INPUT_PORTS_START( dynashot )
151static INPUT_PORTS_START( dynashot )
152152   PORT_START
153153   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1  )
154154   PORT_BIT( 0xf7, IP_ACTIVE_HIGH, IPT_UNUSED )
src/mame/drivers/champbas.c
r1238r1239
158158   AM_RANGE(0x0000, 0x03ff) AM_RAM AM_SHARE(1) /* main CPU shared RAM */
159159ADDRESS_MAP_END
160160
161INPUT_PORTS_START( champbas )
161static INPUT_PORTS_START( champbas )
162162   PORT_START   /* IN0 */
163163   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
164164   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
src/mame/drivers/baraduke.c
r1238r1239
215215
216216
217217
218INPUT_PORTS_START( baraduke )
218static INPUT_PORTS_START( baraduke )
219219   PORT_START   /* DSW A */
220220   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
221221   PORT_DIPNAME( 0x60, 0x60, DEF_STR( Lives ) )
r1238r1239
295295   PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED )
296296INPUT_PORTS_END
297297
298INPUT_PORTS_START( metrocrs )
298static INPUT_PORTS_START( metrocrs )
299299   PORT_START   /* DSW A */
300300   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
301301   PORT_DIPNAME( 0x60, 0x60, DEF_STR( Coin_A ) )
src/mame/drivers/ssozumo.c
r1238r1239
110110ADDRESS_MAP_END
111111
112112
113INPUT_PORTS_START( ssozumo )
113static INPUT_PORTS_START( ssozumo )
114114   PORT_START   /* IN0 */
115115   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
116116   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
src/mame/drivers/mcr.c
r1238r1239
713713 *************************************/
714714
715715/* verified from wiring diagram, plus DIP switches from manual */
716INPUT_PORTS_START( solarfox )
716static INPUT_PORTS_START( solarfox )
717717   PORT_START_TAG("SSIO.IP0")   /* J4 1-8 */
718718   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
719719   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
764764
765765
766766/* verified from wiring diagram, plus DIP switches from manual */
767INPUT_PORTS_START( kick )
767static INPUT_PORTS_START( kick )
768768   PORT_START_TAG("SSIO.IP0")   /* J4 1-8 */
769769   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
770770   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
799799
800800
801801/* verified from wiring diagram, plus DIP switches from manual */
802INPUT_PORTS_START( kickc )
802static INPUT_PORTS_START( kickc )
803803   PORT_START_TAG("SSIO.IP0")   /* J4 1-8 */
804804   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
805805   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
839839
840840
841841/* verified from wiring diagram, plus DIP switches from manual */
842INPUT_PORTS_START( shollow )
842static INPUT_PORTS_START( shollow )
843843   PORT_START_TAG("SSIO.IP0")   /* J4 1-8 */
844844   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
845845   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
881881
882882
883883/* verified from wiring diagram, plus DIP switches from manual */
884INPUT_PORTS_START( tron )
884static INPUT_PORTS_START( tron )
885885   PORT_START_TAG("SSIO.IP0")   /* J4 1-8 */
886886   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
887887   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
928928
929929
930930/* verified from wiring diagram, plus DIP switches from manual */
931INPUT_PORTS_START( kroozr )
931static INPUT_PORTS_START( kroozr )
932932   PORT_START_TAG("SSIO.IP0")   /* J4 1-8 */
933933   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
934934   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
969969
970970
971971/* verified from wiring diagram, plus DIP switches from manual */
972INPUT_PORTS_START( domino )
972static INPUT_PORTS_START( domino )
973973   PORT_START_TAG("SSIO.IP0")   /* J4 1-8 */
974974   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
975975   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
10191019
10201020
10211021/* verified from wiring diagram, plus DIP switches from manual */
1022INPUT_PORTS_START( journey )
1022static INPUT_PORTS_START( journey )
10231023   PORT_START_TAG("SSIO.IP0")   /* J4 1-8 */
10241024   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
10251025   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
10631063
10641064
10651065/* verified from wiring diagram, plus DIP switches from manual */
1066INPUT_PORTS_START( wacko )
1066static INPUT_PORTS_START( wacko )
10671067   PORT_START_TAG("SSIO.IP0")   /* J4 1-8 */
10681068   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
10691069   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
11111111
11121112
11131113/* not verified, no manual found */
1114INPUT_PORTS_START( twotiger )
1114static INPUT_PORTS_START( twotiger )
11151115   PORT_START_TAG("SSIO.IP0")   /* J4 1-8 */
11161116   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
11171117   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
11521152
11531153
11541154/* not verified, no manual found */
1155INPUT_PORTS_START( twotigrc )
1155static INPUT_PORTS_START( twotigrc )
11561156   PORT_START_TAG("SSIO.IP0")   /* J4 1-8 */
11571157   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
11581158   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
11851185
11861186
11871187/* verified from wiring diagram, plus DIP switches from manual */
1188INPUT_PORTS_START( tapper )
1188static INPUT_PORTS_START( tapper )
11891189   PORT_START_TAG("SSIO.IP0")   /* J4 1-8 */
11901190   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
11911191   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
12341234
12351235
12361236/* not verified, no manual found */
1237INPUT_PORTS_START( timber )
1237static INPUT_PORTS_START( timber )
12381238   PORT_START_TAG("SSIO.IP0")   /* J4 1-8 */
12391239   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
12401240   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
12851285
12861286
12871287/* verified from wiring diagram, plus DIP switches from manual */
1288INPUT_PORTS_START( dotron )
1288static INPUT_PORTS_START( dotron )
12891289   PORT_START_TAG("SSIO.IP0")   /* J4 1-8 */
12901290   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
12911291   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
13281328   PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10)
13291329INPUT_PORTS_END
13301330
1331INPUT_PORTS_START( dotrone )
1331static INPUT_PORTS_START( dotrone )
13321332   PORT_INCLUDE(dotron)
13331333
13341334   PORT_MODIFY("SSIO.IP2")
r1238r1239
13391339
13401340
13411341/* verified from wiring diagram, plus DIP switches from manual */
1342INPUT_PORTS_START( nflfoot )
1342static INPUT_PORTS_START( nflfoot )
13431343   PORT_START_TAG("SSIO.IP0")   /* J4 1-8 */
13441344   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
13451345   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BILL1 )
r1238r1239
13861386
13871387/* "wiring diagram was not available at time of publication" according to the manual */
13881388/* DIPs verified from the manual */
1389INPUT_PORTS_START( demoderb )
1389static INPUT_PORTS_START( demoderb )
13901390   PORT_START_TAG("SSIO.IP0")   /* J4 1-8 */
13911391   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
13921392   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/beaminv.c
r1238r1239
270270INPUT_PORTS_END
271271
272272
273INPUT_PORTS_START( beaminva )
273static INPUT_PORTS_START( beaminva )
274274   PORT_START_TAG("IN0")
275275   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) )
276276   PORT_DIPSETTING(    0x00, "3" )
src/mame/drivers/m107.c
r1238r1239
322322
323323/******************************************************************************/
324324
325INPUT_PORTS_START( firebarr )
325static INPUT_PORTS_START( firebarr )
326326   PORT_INCLUDE(m107_2player)
327327
328328   PORT_MODIFY("COINS_DIPS")
r1238r1239
339339INPUT_PORTS_END
340340
341341
342INPUT_PORTS_START( dsoccr94 )
342static INPUT_PORTS_START( dsoccr94 )
343343   PORT_INCLUDE(m107_4player)
344344
345345   PORT_MODIFY("COINS_DIPS")
r1238r1239
400400   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
401401INPUT_PORTS_END
402402
403INPUT_PORTS_START( wpksoc )
403static INPUT_PORTS_START( wpksoc )
404404   PORT_INCLUDE(m107_2player)
405405INPUT_PORTS_END
406406
src/mame/drivers/ninjaw.c
r1238r1239
458458             INPUT PORTS, DIPs
459459***********************************************************/
460460
461INPUT_PORTS_START( ninjaw )
461static INPUT_PORTS_START( ninjaw )
462462   /* 0x200000 (port 0) -> 0x0c2291.b and 0x24122c (shared RAM) */
463463   PORT_START_TAG("DSWA")
464464   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW1:1")
r1238r1239
503503INPUT_PORTS_END
504504
505505/* Can't use PORT_INCLUDE because of PORT_DIPLOCATION */
506INPUT_PORTS_START( ninjawj )
506static INPUT_PORTS_START( ninjawj )
507507   PORT_INCLUDE(ninjaw)
508508
509509   PORT_MODIFY("DSWA")
r1238r1239
511511INPUT_PORTS_END
512512
513513/* Can't use PORT_INCLUDE because of PORT_DIPLOCATION */
514INPUT_PORTS_START( darius2 )
514static INPUT_PORTS_START( darius2 )
515515   PORT_INCLUDE(ninjaw)
516516
517517   /* 0x200000 (port 0) -> 0x0c2002 (-$5ffe,A5) and 0x0c2006 (-$5ffa,A5) */
src/mame/drivers/matmania.c
r1238r1239
191191
192192
193193
194INPUT_PORTS_START( matmania )
194static INPUT_PORTS_START( matmania )
195195   PORT_START   /* IN0 */
196196   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
197197   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
src/mame/drivers/arkanoid.c
r1238r1239
545545   PORT_START_TAG("IN3")      /* Spinner Player 2  */\
546546   PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(30) PORT_KEYDELTA(15) PORT_COCKTAIL
547547
548INPUT_PORTS_START( arkanoid )
548static INPUT_PORTS_START( arkanoid )
549549   ARKNOI_IN0
550550   ARKNOI_IN1
551551   ARKNOI_SPINNERS
r1238r1239
575575INPUT_PORTS_END
576576
577577/* Different coinage and additionnal "Cabinet" Dip Switch */
578INPUT_PORTS_START( arknoidj )
578static INPUT_PORTS_START( arknoidj )
579579   ARKNOI_IN0
580580   ARKNOI_IN1
581581   ARKNOI_SPINNERS
r1238r1239
605605   PORT_DIPSETTING(    0x80, DEF_STR( Cocktail ) )
606606INPUT_PORTS_END
607607
608INPUT_PORTS_START( ark1ball )
608static INPUT_PORTS_START( ark1ball )
609609   PORT_INCLUDE(arknoidj)
610610
611611   PORT_START_TAG("DSW")
r1238r1239
617617   PORT_DIPSETTING(    0x00, "2" )
618618INPUT_PORTS_END
619619
620INPUT_PORTS_START( arkangc )
620static INPUT_PORTS_START( arkangc )
621621   PORT_INCLUDE(arknoidj)
622622
623623   PORT_MODIFY("DSW")
r1238r1239
626626   PORT_DIPSETTING(    0x00, "Faster" )                /* 0xc462 = 0x08 - Level 2 same as level 30 */
627627INPUT_PORTS_END
628628
629INPUT_PORTS_START( arkangc2 )
629static INPUT_PORTS_START( arkangc2 )
630630   PORT_INCLUDE(arknoidj)
631631
632632   PORT_MODIFY("DSW")
r1238r1239
635635   PORT_DIPSETTING(    0x00, DEF_STR ( Normal ) )      /* 0xc462 = 0x06 - Level 2 same as level 30 */
636636INPUT_PORTS_END
637637
638INPUT_PORTS_START( arkgcbl )
638static INPUT_PORTS_START( arkgcbl )
639639   PORT_INCLUDE(arknoidj)
640640
641641   PORT_MODIFY("DSW")
r1238r1239
651651   PORT_DIPUNUSED( 0x40, IP_ACTIVE_LOW )               /* Always 2C_1C - check code at 0x7d5e */
652652INPUT_PORTS_END
653653
654INPUT_PORTS_START( paddle2 )
654static INPUT_PORTS_START( paddle2 )
655655   PORT_INCLUDE(arknoidj)
656656
657657   PORT_MODIFY("DSW")
r1238r1239
669669   PORT_DIPSETTING(    0x20, "3" )
670670INPUT_PORTS_END
671671
672INPUT_PORTS_START( arktayt2 )
672static INPUT_PORTS_START( arktayt2 )
673673   PORT_INCLUDE(arknoidj)
674674
675675   PORT_START_TAG("DSW")
r1238r1239
685685INPUT_PORTS_END
686686
687687
688INPUT_PORTS_START( tetrsark )
688static INPUT_PORTS_START( tetrsark )
689689   PORT_START_TAG("IN0")
690690   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
691691
src/mame/drivers/twin16.c
r1238r1239
410410   PORT_DIPSETTING(    0x90, DEF_STR( 1C_7C ) ) \
411411   PORT_DIPSETTING(    0x00, "Disabled" )
412412
413INPUT_PORTS_START( devilw )
413static INPUT_PORTS_START( devilw )
414414   PORT_START      /* 0xa0001 */
415415   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
416416   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
472472   PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )
473473INPUT_PORTS_END
474474
475INPUT_PORTS_START( darkadv )
475static INPUT_PORTS_START( darkadv )
476476   PORT_START      /* 0xa0001 */
477477   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
478478   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
559559   PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED)
560560INPUT_PORTS_END
561561
562INPUT_PORTS_START( vulcan )
562static INPUT_PORTS_START( vulcan )
563563   PORT_START      /* 0xa0001 */
564564   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
565565   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
631631INPUT_PORTS_END
632632
633633
634INPUT_PORTS_START( gradius2 )   // same as vulcan, different bonus
634static INPUT_PORTS_START( gradius2 )   // same as vulcan, different bonus
635635   PORT_START      /* 0xa0001 */
636636   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
637637   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
702702   PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED)
703703INPUT_PORTS_END
704704
705INPUT_PORTS_START( fround )
705static INPUT_PORTS_START( fround )
706706   PORT_START      /* 0xa0001 */
707707   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
708708   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
764764   PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )
765765INPUT_PORTS_END
766766
767INPUT_PORTS_START( miaj )
767static INPUT_PORTS_START( miaj )
768768   PORT_START      /* 0xa0001 */
769769   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
770770   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
833833   PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )
834834INPUT_PORTS_END
835835
836INPUT_PORTS_START( cuebrick )
836static INPUT_PORTS_START( cuebrick )
837837   PORT_START      /* 0xa0001 */
838838   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
839839   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/megasys1.c
r1238r1239
980980
981981
982982
983INPUT_PORTS_START( 64street )
983static INPUT_PORTS_START( 64street )
984984   COINS
985985//  fire    jump
986986   PORT_START_TAG("IN1")
r1238r1239
11161116ROM_END
11171117
11181118
1119INPUT_PORTS_START( astyanax )
1119static INPUT_PORTS_START( astyanax )
11201120   COINS                  /* IN0 0x80001.b */
11211121//  fire    jump    magic
11221122   PORT_START_TAG("IN1")
r1238r1239
12991299ROM_END
13001300
13011301
1302INPUT_PORTS_START( avspirit )
1302static INPUT_PORTS_START( avspirit )
13031303   COINS
13041304   PORT_START_TAG("IN1")
13051305   JOY_2BUTTONS(1)
r1238r1239
13981398ROM_END
13991399
14001400
1401INPUT_PORTS_START( bigstrik )
1401static INPUT_PORTS_START( bigstrik )
14021402   COINS
14031403//  pass    shoot   feint
14041404   PORT_START_TAG("IN1")
r1238r1239
15161516   ROM_LOAD( "prom",         0x0000, 0x0200, NO_DUMP )
15171517ROM_END
15181518
1519INPUT_PORTS_START( chimerab )
1519static INPUT_PORTS_START( chimerab )
15201520
15211521   COINS
15221522//  fire    jump    unused?(shown in service mode, but not in instructions)
r1238r1239
16421642   ROM_LOAD( "pr-91028.12",  0x0000, 0x0200, CRC(cfe90082) SHA1(b59991ec7b3e83ba645b709547e5b4cbe03c0f11) )
16431643ROM_END
16441644
1645INPUT_PORTS_START( cybattlr )
1645static INPUT_PORTS_START( cybattlr )
16461646
16471647   COINS
16481648//  fire    sword
r1238r1239
18011801   ROM_LOAD( "rd.20n",    0x0000, 0x0200, CRC(1d877538) SHA1(a5be0dc65dcfc36fbba10d1fddbe155e24b6122f) )
18021802ROM_END
18031803
1804INPUT_PORTS_START( edf )
1804static INPUT_PORTS_START( edf )
18051805   COINS
18061806//  fire    unfold_weapons
18071807   PORT_START_TAG("IN1")
r1238r1239
19011901ROM_END
19021902
19031903
1904INPUT_PORTS_START( hachoo )
1904static INPUT_PORTS_START( hachoo )
19051905   COINS                  /* 0x80001.b */
19061906//  fire    jump
19071907   PORT_START_TAG("IN1")
r1238r1239
20222022   ROM_LOAD( "pr-91044",  0x0000, 0x0200, CRC(c69423d6) SHA1(ba9644a9899df2d73a5a16bf7ceef1954c2e25f3) )
20232023ROM_END
20242024
2025INPUT_PORTS_START( hayaosi1 )
2025static INPUT_PORTS_START( hayaosi1 )
20262026   PORT_START_TAG("IN0")
20272027   PORT_BIT(  0x01, IP_ACTIVE_LOW, IPT_START1   )
20282028   PORT_BIT(  0x02, IP_ACTIVE_LOW, IPT_START2   )
r1238r1239
21792179ROM_END
21802180
21812181
2182INPUT_PORTS_START( kazan )
2182static INPUT_PORTS_START( kazan )
21832183
21842184   COINS                  /* IN0 0x80001.b */
21852185//  fire    jump
r1238r1239
22842284ROM_END
22852285
22862286
2287INPUT_PORTS_START( jitsupro )
2287static INPUT_PORTS_START( jitsupro )
22882288
22892289   COINS                  /* 0x80001.b */
22902290   //  shoot   change view     change bat
r1238r1239
24092409   ROM_LOAD( "kick.bin",    0x0000, 0x0200, CRC(85b30ac4) SHA1(b03f577ceb0f26b67453ffa52ef61fea76a93184) )
24102410ROM_END
24112411
2412INPUT_PORTS_START( kickoff )
2412static INPUT_PORTS_START( kickoff )
24132413   COINS                  /* 0x80001.b ->  !f0008/a.w  */
24142414//  shoot   pass
24152415   PORT_START_TAG("IN1")
r1238r1239
25282528   ROM_LOAD( "makaiden.10", 0x0100, 0x0100, CRC(e6709c51) SHA1(f5cd4f0454c1a71a5b0006b098f9e76c2d8a27d2) )
25292529ROM_END
25302530
2531INPUT_PORTS_START( lomakai )
2531static INPUT_PORTS_START( lomakai )
25322532   COINS                  /* 0x80001.b */
25332533//  fire    jump
25342534   PORT_START_TAG("IN1")
r1238r1239
27102710   ROM_LOAD( "p-47.14m",    0x0000, 0x0200, CRC(1d877538) SHA1(a5be0dc65dcfc36fbba10d1fddbe155e24b6122f) )
27112711ROM_END
27122712
2713INPUT_PORTS_START( p47 )
2713static INPUT_PORTS_START( p47 )
27142714
27152715   COINS                  /* 0x80001.b */
27162716//  fire    bomb
r1238r1239
28712871   ROM_LOAD( "priority.69",    0x000000, 0x200, CRC(b40bff56) SHA1(39c95eed79328ef2df754988db83e07909e848f8) )
28722872ROM_END
28732873
2874INPUT_PORTS_START( peekaboo )
2874static INPUT_PORTS_START( peekaboo )
28752875
28762876   PORT_START_TAG("IN0")      /* COINS + P1&P2 Buttons - .b */
28772877   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_COIN3 )      // called "service"
r1238r1239
30283028   ROM_LOAD( "prom.14m",     0x0000, 0x0200, CRC(1d877538) SHA1(a5be0dc65dcfc36fbba10d1fddbe155e24b6122f) )
30293029ROM_END
30303030
3031INPUT_PORTS_START( plusalph )
3031static INPUT_PORTS_START( plusalph )
30323032   COINS                  /* IN0 0x80001.b */
30333033//  fire    bomb
30343034   PORT_START_TAG("IN1")
r1238r1239
32203220ROM_END
32213221
32223222
3223INPUT_PORTS_START( rodland )
3223static INPUT_PORTS_START( rodland )
32243224
32253225   COINS                  /* 0x80001.b */
32263226//  fire    ladder
r1238r1239
33173317   ROM_LOAD( "prom.14m",    0x0000, 0x0200, CRC(1d877538) SHA1(a5be0dc65dcfc36fbba10d1fddbe155e24b6122f) )
33183318ROM_END
33193319
3320INPUT_PORTS_START( stdragon )
3320static INPUT_PORTS_START( stdragon )
33213321   COINS                  /* 0x80001.b */
33223322//  fire    fire
33233323   PORT_START_TAG("IN1")
r1238r1239
34093409   ROM_LOAD( "soldam.m14",   0x0000, 0x0200, CRC(8914e72d) SHA1(80a664471f14c8ed8544a5e226fdca425ab3c657) )
34103410ROM_END
34113411
3412INPUT_PORTS_START( soldamj )
3412static INPUT_PORTS_START( soldamj )
34133413   COINS                  /* 0x80001.b */
34143414   //  turn    turn    (3rd button is shown in service mode, but seems unused)
34153415   PORT_START_TAG("IN1")
r1238r1239
35473547   ROM_LOAD( "ts.bpr",        0x0000, 0x0200, CRC(85b30ac4) SHA1(b03f577ceb0f26b67453ffa52ef61fea76a93184) )
35483548ROM_END
35493549
3550INPUT_PORTS_START( tshingen )
3550static INPUT_PORTS_START( tshingen )
35513551   COINS                  /* 0x80001.b */
35523552   // sword_left   sword_right     jump
35533553   PORT_START_TAG("IN1")
src/mame/drivers/crshrace.c
r1238r1239
247247
248248
249249
250INPUT_PORTS_START( crshrace )
250static INPUT_PORTS_START( crshrace )
251251   PORT_START
252252   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
253253   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
403403INPUT_PORTS_END
404404
405405/* Same as 'crshrace', but additional "unknown" Dip Switch (see notes) */
406INPUT_PORTS_START( crshrac2 )
406static INPUT_PORTS_START( crshrac2 )
407407   PORT_START
408408   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
409409   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/airbustr.c
r1238r1239
423423
424424/* Input Ports */
425425
426INPUT_PORTS_START( airbustr )
426static INPUT_PORTS_START( airbustr )
427427   PORT_START_TAG("IN0")
428428   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    ) PORT_8WAY
429429   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  ) PORT_8WAY
r1238r1239
503503   PORT_DIPUNUSED_DIPLOC( 0x80, IP_ACTIVE_LOW, "SW2:8" )
504504INPUT_PORTS_END
505505
506INPUT_PORTS_START( airbustj )
506static INPUT_PORTS_START( airbustj )
507507   PORT_INCLUDE(airbustr)
508508
509509   PORT_MODIFY("DSW1")
src/mame/drivers/clshroad.c
r1238r1239
101101
102102
103103
104INPUT_PORTS_START( clshroad )
104static INPUT_PORTS_START( clshroad )
105105   PORT_START_TAG("IN0")   // Player 1
106106   PORT_BIT(  0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )
107107   PORT_BIT(  0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )
r1238r1239
185185   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
186186INPUT_PORTS_END
187187
188INPUT_PORTS_START( firebatl )
188static INPUT_PORTS_START( firebatl )
189189   PORT_START_TAG("IN0")
190190   PORT_BIT(  0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )
191191   PORT_BIT(  0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )
src/mame/drivers/pacman.c
r1238r1239
12101210 *
12111211 *************************************/
12121212
1213INPUT_PORTS_START( pacman )
1213static INPUT_PORTS_START( pacman )
12141214   PORT_START_TAG("IN0")
12151215   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )   PORT_PLAYER(1) PORT_4WAY
12161216   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )   PORT_PLAYER(1) PORT_4WAY
r1238r1239
12741274
12751275/* Ms. Pac-Man input ports are identical to Pac-Man, the only difference is */
12761276/* the missing Ghost Names dip switch. */
1277INPUT_PORTS_START( mspacman )
1277static INPUT_PORTS_START( mspacman )
12781278   PORT_START_TAG("IN0")
12791279   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
12801280   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
13351335
13361336
13371337/* Same as 'mspacman', but no fake input port */
1338INPUT_PORTS_START( mspacpls )
1338static INPUT_PORTS_START( mspacpls )
13391339   PORT_START_TAG("IN0")
13401340   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
13411341   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
13861386INPUT_PORTS_END
13871387
13881388
1389INPUT_PORTS_START( mschamp )
1389static INPUT_PORTS_START( mschamp )
13901390   PORT_START_TAG("IN0")
13911391   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
13921392   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
14501450   PORT_DIPSETTING(    0x08, DEF_STR( On ) )
14511451INPUT_PORTS_END
14521452
1453INPUT_PORTS_START( maketrax )
1453static INPUT_PORTS_START( maketrax )
14541454   PORT_START_TAG("IN0")
14551455   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
14561456   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
14961496   PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED )
14971497INPUT_PORTS_END
14981498
1499INPUT_PORTS_START( crush4 )
1499static INPUT_PORTS_START( crush4 )
15001500   PORT_INCLUDE( maketrax )
15011501
15021502   PORT_START_TAG("GAME")
15031503   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) // always select 2nd part of code
15041504INPUT_PORTS_END
15051505
1506INPUT_PORTS_START( korosuke )
1506static INPUT_PORTS_START( korosuke )
15071507   PORT_START_TAG("IN0")
15081508   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
15091509   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
15491549   PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED )
15501550INPUT_PORTS_END
15511551
1552INPUT_PORTS_START( mbrush )
1552static INPUT_PORTS_START( mbrush )
15531553   PORT_START_TAG("IN0")
15541554   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
15551555   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
15961596INPUT_PORTS_END
15971597
15981598
1599INPUT_PORTS_START( paintrlr )
1599static INPUT_PORTS_START( paintrlr )
16001600   PORT_START_TAG("IN0")
16011601   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
16021602   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
16431643INPUT_PORTS_END
16441644
16451645
1646INPUT_PORTS_START( crushs )
1646static INPUT_PORTS_START( crushs )
16471647   PORT_START_TAG("IN0")
16481648   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
16491649   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
17311731INPUT_PORTS_END
17321732
17331733
1734INPUT_PORTS_START( ponpoko )
1734static INPUT_PORTS_START( ponpoko )
17351735   PORT_START_TAG("IN0")
17361736   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY
17371737   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
18091809INPUT_PORTS_END
18101810
18111811
1812INPUT_PORTS_START( eyes )
1812static INPUT_PORTS_START( eyes )
18131813   PORT_START_TAG("IN0")
18141814   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
18151815   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
18581858INPUT_PORTS_END
18591859
18601860
1861INPUT_PORTS_START( mrtnt )
1861static INPUT_PORTS_START( mrtnt )
18621862   PORT_START_TAG("IN0")
18631863   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
18641864   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
19071907INPUT_PORTS_END
19081908
19091909
1910INPUT_PORTS_START( lizwiz )
1910static INPUT_PORTS_START( lizwiz )
19111911   PORT_START_TAG("IN0")
19121912   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
19131913   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
19561956INPUT_PORTS_END
19571957
19581958
1959INPUT_PORTS_START( theglobp )
1959static INPUT_PORTS_START( theglobp )
19601960   PORT_START_TAG("IN0")
19611961   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
19621962   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
20112011INPUT_PORTS_END
20122012
20132013
2014INPUT_PORTS_START( vanvan )
2014static INPUT_PORTS_START( vanvan )
20152015   PORT_START_TAG("IN0")
20162016   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
20172017   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
20842084INPUT_PORTS_END
20852085
20862086
2087INPUT_PORTS_START( vanvank )
2087static INPUT_PORTS_START( vanvank )
20882088   PORT_START_TAG("IN0")
20892089   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
20902090   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
21582158INPUT_PORTS_END
21592159
21602160
2161INPUT_PORTS_START( dremshpr )
2161static INPUT_PORTS_START( dremshpr )
21622162   PORT_START_TAG("IN0")
21632163   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
21642164   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
22152215INPUT_PORTS_END
22162216
22172217
2218INPUT_PORTS_START( alibaba )
2218static INPUT_PORTS_START( alibaba )
22192219   PORT_START_TAG("IN0")
22202220   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
22212221   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
22652265INPUT_PORTS_END
22662266
22672267
2268INPUT_PORTS_START( jumpshot )
2268static INPUT_PORTS_START( jumpshot )
22692269   PORT_START_TAG("IN0")
22702270   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
22712271   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
23202320INPUT_PORTS_END
23212321
23222322
2323INPUT_PORTS_START( jumpshtp )
2323static INPUT_PORTS_START( jumpshtp )
23242324   PORT_START_TAG("IN0")
23252325   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
23262326   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
23752375INPUT_PORTS_END
23762376
23772377
2378INPUT_PORTS_START( shootbul )
2378static INPUT_PORTS_START( shootbul )
23792379   PORT_START_TAG("IN0")
23802380   PORT_BIT( 0x0f, 0x00, IPT_TRACKBALL_X  ) PORT_SENSITIVITY(50) PORT_KEYDELTA(25)
23812381   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 )
r1238r1239
24222422   the dipswitches, and enter test mode. Now select cocktail mode and you
24232423   can test everything. Wierd. */
24242424
2425INPUT_PORTS_START( bwcasino )
2425static INPUT_PORTS_START( bwcasino )
24262426   PORT_START_TAG("IN0")
24272427   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
24282428   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
24852485   have a cocktail mode, and uses service button connected differently to
24862486   "Boardwalk" */
24872487
2488INPUT_PORTS_START( acitya )
2488static INPUT_PORTS_START( acitya )
24892489   PORT_START_TAG("IN0")
24902490   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
24912491   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
r1238r1239
25422542INPUT_PORTS_END
25432543
25442544
2545INPUT_PORTS_START( nmouse )
2545static INPUT_PORTS_START( nmouse )
25462546   PORT_START_TAG("IN0")
25472547   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
25482548   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
25952595
25962596INPUT_PORTS_END
25972597
2598INPUT_PORTS_START( woodpek )
2598static INPUT_PORTS_START( woodpek )
25992599   PORT_START_TAG("IN0")
26002600   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
26012601   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
26432643   PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED )
26442644INPUT_PORTS_END
26452645
2646INPUT_PORTS_START( bigbucks )
2646static INPUT_PORTS_START( bigbucks )
26472647   PORT_START_TAG("IN0")
26482648   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    ) PORT_4WAY
26492649   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
26972697INPUT_PORTS_END
26982698
26992699
2700INPUT_PORTS_START( drivfrcp )
2700static INPUT_PORTS_START( drivfrcp )
27012701   PORT_START_TAG("IN0")
27022702   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
27032703   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY
r1238r1239
27492749INPUT_PORTS_END
27502750
27512751
2752INPUT_PORTS_START( 8bpm )
2752static INPUT_PORTS_START( 8bpm )
27532753   PORT_START_TAG("IN0")
27542754   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
27552755   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
28012801INPUT_PORTS_END
28022802
28032803
2804INPUT_PORTS_START( porky )
2804static INPUT_PORTS_START( porky )
28052805   PORT_START_TAG("IN0")
28062806   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
28072807   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY
r1238r1239
28532853INPUT_PORTS_END
28542854
28552855
2856INPUT_PORTS_START( rocktrv2 )
2856static INPUT_PORTS_START( rocktrv2 )
28572857   PORT_START_TAG("IN0")
28582858   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    ) PORT_4WAY
28592859   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
r1238r1239
29232923   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
29242924INPUT_PORTS_END
29252925
2926INPUT_PORTS_START( cannonbp )
2926static INPUT_PORTS_START( cannonbp )
29272927   PORT_START_TAG("IN0")
29282928   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )   PORT_4WAY
29292929   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )   PORT_4WAY
src/mame/drivers/dcheese.c
r1238r1239
256256 *
257257 *************************************/
258258
259INPUT_PORTS_START( dcheese )
259static INPUT_PORTS_START( dcheese )
260260   PORT_START   /* 200000 */
261261   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN2 )
262262   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN1 )
r1238r1239
303303INPUT_PORTS_END
304304
305305
306INPUT_PORTS_START( lottof2 )
306static INPUT_PORTS_START( lottof2 )
307307   PORT_START   /* 200000 */
308308   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN2 )
309309   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN1 )
r1238r1239
346346INPUT_PORTS_END
347347
348348
349INPUT_PORTS_START( fredmem )
349static INPUT_PORTS_START( fredmem )
350350   PORT_START   /* 200000 */
351351   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN2 )
352352   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN1 )
src/mame/drivers/chqflag.c
r1238r1239
225225ADDRESS_MAP_END
226226
227227
228INPUT_PORTS_START( chqflag )
228static INPUT_PORTS_START( chqflag )
229229   PORT_START   /* DSW #1 */
230230   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
231231   PORT_DIPSETTING(    0x02, DEF_STR( 4C_1C ) )
src/mame/drivers/bwing.c
r1238r1239
245245//****************************************************************************
246246// I/O Port Maps
247247
248INPUT_PORTS_START( bwing )
248static INPUT_PORTS_START( bwing )
249249   PORT_START
250250   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) )
251251   PORT_DIPSETTING(    0x00, DEF_STR( 2C_1C ) )
src/mame/drivers/srmp6.c
r1238r1239
8989   8*64
9090};
9191
92void update_palette(void)
92static void update_palette(void)
9393{
9494   INT8 r, g ,b;
9595   int brg = brightness - 0x60;
r1238r1239
543543   }
544544}
545545
546WRITE16_HANDLER(paletteram_w)
546static WRITE16_HANDLER(paletteram_w)
547547{
548548   INT8 r, g, b;
549549   int brg = brightness - 0x60;
r1238r1239
610610    Port definitions
611611***************************************************************************/
612612
613INPUT_PORTS_START( srmp6 )
613static INPUT_PORTS_START( srmp6 )
614614
615615   PORT_START
616616   PORT_BIT ( 0xfe01, IP_ACTIVE_LOW, IPT_UNUSED ) // explicitely discarded
src/mame/drivers/sf.c
r1238r1239
290290
291291
292292
293INPUT_PORTS_START( sf )
293static INPUT_PORTS_START( sf )
294294   PORT_START
295295   PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) )
296296   PORT_DIPSETTING(      0x0000, DEF_STR( 4C_1C ) )
r1238r1239
468468   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
469469INPUT_PORTS_END
470470
471INPUT_PORTS_START( sfus )
471static INPUT_PORTS_START( sfus )
472472   PORT_START
473473   PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) )
474474   PORT_DIPSETTING(      0x0000, DEF_STR( 4C_1C ) )
r1238r1239
606606   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(2)
607607INPUT_PORTS_END
608608
609INPUT_PORTS_START( sfjp )
609static INPUT_PORTS_START( sfjp )
610610   PORT_START
611611   PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) )
612612   PORT_DIPSETTING(      0x0000, DEF_STR( 4C_1C ) )
src/mame/drivers/lsasquad.c
r1238r1239
272272
273273
274274
275INPUT_PORTS_START( lsasquad )
275static INPUT_PORTS_START( lsasquad )
276276   PORT_START_TAG("DSWA")
277277   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
278278   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
r1238r1239
431431   AM_RANGE(0xe000, 0xefff) AM_ROM   /* space for diagnostic ROM? */
432432ADDRESS_MAP_END
433433
434INPUT_PORTS_START( daikaiju )
434static INPUT_PORTS_START( daikaiju )
435435   PORT_START_TAG("DSWA")
436436   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
437437   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
src/mame/drivers/konamim2.c
r1238r1239
10151015   AM_RANGE(0xfff00000, 0xffffffff) AM_ROM AM_REGION(REGION_USER1, 0) AM_SHARE(2)
10161016ADDRESS_MAP_END
10171017
1018INPUT_PORTS_START( m2 )
1018static INPUT_PORTS_START( m2 )
10191019INPUT_PORTS_END
10201020
10211021
src/mame/drivers/cball.c
r1238r1239
125125ADDRESS_MAP_END
126126
127127
128INPUT_PORTS_START( cball )
128static INPUT_PORTS_START( cball )
129129
130130   PORT_START /* 1001 */
131131   PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coinage ))
src/mame/drivers/sengokmj.c
r1238r1239
136136ADDRESS_MAP_END
137137
138138
139INPUT_PORTS_START( sengokmj )
139static INPUT_PORTS_START( sengokmj )
140140   /* Must be port 0: coin inputs read through sound cpu */
141141   SEIBU_COIN_INPUTS
142142
src/mame/drivers/cham24.c
r1238r1239
166166   AM_RANGE(0x8000, 0xffff) AM_ROM AM_WRITE(cham24_mapper_w)
167167ADDRESS_MAP_END
168168
169INPUT_PORTS_START( cham24 )
169static INPUT_PORTS_START( cham24 )
170170   PORT_START /* IN0 */
171171   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1)
172172   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1)
src/mame/drivers/cave.c
r1238r1239
14871487*/
14881488
14891489/* Most games use this */
1490INPUT_PORTS_START( cave )
1490static INPUT_PORTS_START( cave )
14911491   PORT_START   // IN0 - Player 1
14921492   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
14931493   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN    ) PORT_PLAYER(1)
r1238r1239
15281528INPUT_PORTS_END
15291529
15301530/* Gaia Crusaders, no EEPROM. Has DIPS */
1531INPUT_PORTS_START( gaia )
1531static INPUT_PORTS_START( gaia )
15321532   PORT_START   // IN0 - Player 1 + 2
15331533   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
15341534   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN    ) PORT_PLAYER(1)
r1238r1239
16251625   PORT_DIPSETTING(    0x00, DEF_STR( Hardest ) )
16261626INPUT_PORTS_END
16271627
1628INPUT_PORTS_START( theroes )
1628static INPUT_PORTS_START( theroes )
16291629   PORT_INCLUDE(gaia)
16301630
16311631   PORT_MODIFY("DSW1")
r1238r1239
16511651INPUT_PORTS_END
16521652
16531653/* Mazinger Z (has region stored in Eeprom) */
1654INPUT_PORTS_START( mazinger )
1654static INPUT_PORTS_START( mazinger )
16551655   PORT_START   // IN0 - Player 1
16561656   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
16571657   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN    ) PORT_PLAYER(1)
r1238r1239
16971697INPUT_PORTS_END
16981698
16991699/* Sailor Moon / Air Gallet (has region stored in Eeprom) */
1700INPUT_PORTS_START( sailormn )
1700static INPUT_PORTS_START( sailormn )
17011701   PORT_START   // IN0 - Player 1
17021702   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
17031703   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN    ) PORT_PLAYER(1)
r1238r1239
17471747INPUT_PORTS_END
17481748
17491749/* Different layout */
1750INPUT_PORTS_START( guwange )
1750static INPUT_PORTS_START( guwange )
17511751   PORT_START   // IN0 - Player 1 & 2
17521752   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_START1  )
17531753   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    ) PORT_PLAYER(1)
r1238r1239
17881788INPUT_PORTS_END
17891789
17901790/* Normal layout but with 4 buttons */
1791INPUT_PORTS_START( metmqstr )
1791static INPUT_PORTS_START( metmqstr )
17921792   PORT_START   // IN0 - Player 1
17931793   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
17941794   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN    ) PORT_PLAYER(1)
r1238r1239
18291829INPUT_PORTS_END
18301830
18311831
1832INPUT_PORTS_START( korokoro )
1832static INPUT_PORTS_START( korokoro )
18331833   PORT_START   // IN0
18341834   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_COIN1   ) PORT_IMPULSE(10)   // bit 0x0010 of leds (coin)
18351835   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_COIN2   ) PORT_IMPULSE(10)   // bit 0x0020 of leds (does coin sound)
src/mame/drivers/dooyong.c
r1238r1239
577577
578578***************************************************************************/
579579
580INPUT_PORTS_START( lastday )
580static INPUT_PORTS_START( lastday )
581581   PORT_INCLUDE( dooyongz80_generic )
582582
583583   PORT_MODIFY("DSW2")
r1238r1239
601601   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 )
602602INPUT_PORTS_END
603603
604INPUT_PORTS_START( gulfstrm )
604static INPUT_PORTS_START( gulfstrm )
605605   PORT_INCLUDE( dooyongz80_generic )
606606
607607   PORT_MODIFY("DSW2")
r1238r1239
625625   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
626626INPUT_PORTS_END
627627
628INPUT_PORTS_START( pollux )
628static INPUT_PORTS_START( pollux )
629629   PORT_INCLUDE( dooyongz80_generic )
630630
631631   PORT_START
r1238r1239
639639   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
640640INPUT_PORTS_END
641641
642INPUT_PORTS_START( bluehawk )
642static INPUT_PORTS_START( bluehawk )
643643   PORT_INCLUDE( dooyongz80_generic )
644644
645645   PORT_START
r1238r1239
653653   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
654654INPUT_PORTS_END
655655
656INPUT_PORTS_START( flytiger )
656static INPUT_PORTS_START( flytiger )
657657   PORT_INCLUDE( dooyongz80_generic )
658658
659659   PORT_MODIFY("DSW2")
r1238r1239
672672   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
673673INPUT_PORTS_END
674674
675INPUT_PORTS_START( sadari )
675static INPUT_PORTS_START( sadari )
676676   PORT_INCLUDE( dooyongz80_generic )
677677
678678   PORT_MODIFY("DSW2")
r1238r1239
699699   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
700700INPUT_PORTS_END
701701
702INPUT_PORTS_START( primella )
702static INPUT_PORTS_START( primella )
703703   PORT_INCLUDE( dooyongz80_generic )
704704
705705   PORT_MODIFY("DSW2")
r1238r1239
723723   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
724724INPUT_PORTS_END
725725
726INPUT_PORTS_START( rshark )
726static INPUT_PORTS_START( rshark )
727727   PORT_INCLUDE( dooyongm68_generic )
728728
729729   PORT_MODIFY("DSW")
r1238r1239
738738   PORT_DIPSETTING(      0x0000, DEF_STR( 1C_6C ) )   PORT_CONDITION("DSW",0x0002,PORTCOND_NOTEQUALS,0x0002)
739739INPUT_PORTS_END
740740
741INPUT_PORTS_START( superx )
741static INPUT_PORTS_START( superx )
742742   PORT_INCLUDE( dooyongm68_generic )
743743INPUT_PORTS_END
744744
745INPUT_PORTS_START( popbingo )
745static INPUT_PORTS_START( popbingo )
746746   PORT_INCLUDE( dooyongm68_generic )
747747
748748   PORT_MODIFY("DSW")
src/mame/drivers/brkthru.c
r1238r1239
195195   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )\
196196   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK )   /* used only by the self test */
197197
198INPUT_PORTS_START( brkthru )
198static INPUT_PORTS_START( brkthru )
199199COMMON_IN0
200200COMMON_IN1
201201
r1238r1239
242242   PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) )
243243INPUT_PORTS_END
244244
245INPUT_PORTS_START( brkthruj )
245static INPUT_PORTS_START( brkthruj )
246246COMMON_IN0
247247COMMON_IN1
248248
r1238r1239
287287   PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) )
288288INPUT_PORTS_END
289289
290INPUT_PORTS_START( darwin )
290static INPUT_PORTS_START( darwin )
291291COMMON_IN0
292292COMMON_IN1
293293
src/mame/drivers/comebaby.c
r1238r1239
7171   AM_RANGE(0x00000000, 0x0001ffff) AM_ROM
7272ADDRESS_MAP_END
7373
74INPUT_PORTS_START( comebaby )
74static INPUT_PORTS_START( comebaby )
7575INPUT_PORTS_END
7676
7777
src/mame/drivers/williams.c
r1238r1239
660660 *
661661 *************************************/
662662
663INPUT_PORTS_START( defender )
663static INPUT_PORTS_START( defender )
664664   PORT_START_TAG("IN0")
665665   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Fire")
666666   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Thrust")
r1238r1239
687687INPUT_PORTS_END
688688
689689
690INPUT_PORTS_START( mayday )
690static INPUT_PORTS_START( mayday )
691691   PORT_START_TAG("IN0")
692692   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Fire")
693693   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
r1238r1239
714714INPUT_PORTS_END
715715
716716
717INPUT_PORTS_START( colony7 )
717static INPUT_PORTS_START( colony7 )
718718   PORT_START_TAG("IN0")
719719   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN )
720720   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT )
r1238r1239
751751INPUT_PORTS_END
752752
753753
754INPUT_PORTS_START( jin )
754static INPUT_PORTS_START( jin )
755755   PORT_START_TAG("IN0")
756756   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP )
757757   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN )
r1238r1239
814814INPUT_PORTS_END
815815
816816
817INPUT_PORTS_START( stargate )
817static INPUT_PORTS_START( stargate )
818818   PORT_START_TAG("IN0")
819819   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Fire")
820820   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Thrust")
r1238r1239
842842INPUT_PORTS_END
843843
844844
845INPUT_PORTS_START( robotron )
845static INPUT_PORTS_START( robotron )
846846   PORT_START_TAG("IN0")
847847   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_UP )
848848   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_DOWN )
r1238r1239
870870INPUT_PORTS_END
871871
872872
873INPUT_PORTS_START( joust )
873static INPUT_PORTS_START( joust )
874874   PORT_START_TAG("IN0")
875875   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2)
876876   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2)
r1238r1239
904904INPUT_PORTS_END
905905
906906
907INPUT_PORTS_START( bubbles )
907static INPUT_PORTS_START( bubbles )
908908   PORT_START_TAG("IN0")
909909   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP )
910910   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN )
r1238r1239
929929INPUT_PORTS_END
930930
931931
932INPUT_PORTS_START( splat )
932static INPUT_PORTS_START( splat )
933933   PORT_START_TAG("IN0")
934934   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_UP ) PORT_8WAY PORT_PLAYER(2)
935935   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_DOWN ) PORT_8WAY PORT_PLAYER(2)
r1238r1239
971971INPUT_PORTS_END
972972
973973
974INPUT_PORTS_START( sinistar )
974static INPUT_PORTS_START( sinistar )
975975   PORT_START_TAG("IN0")
976976   /* pseudo analog joystick, see below */
977977
r1238r1239
10001000INPUT_PORTS_END
10011001
10021002
1003INPUT_PORTS_START( playball )
1003static INPUT_PORTS_START( playball )
10041004   PORT_START_TAG("IN0")
10051005   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
10061006   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT )
r1238r1239
10231023INPUT_PORTS_END
10241024
10251025
1026INPUT_PORTS_START( blaster )
1026static INPUT_PORTS_START( blaster )
10271027   PORT_START_TAG("IN0")
10281028   /* pseudo analog joystick, see below */
10291029
r1238r1239
10541054INPUT_PORTS_END
10551055
10561056
1057INPUT_PORTS_START( blastkit )
1057static INPUT_PORTS_START( blastkit )
10581058   PORT_START_TAG("IN0")
10591059   /* pseudo analog joystick, see below */
10601060
r1238r1239
10871087INPUT_PORTS_END
10881088
10891089
1090INPUT_PORTS_START( spdball )
1090static INPUT_PORTS_START( spdball )
10911091   PORT_START_TAG("IN0")
10921092   PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNKNOWN )
10931093
r1238r1239
11381138INPUT_PORTS_END
11391139
11401140
1141INPUT_PORTS_START( alienar )
1141static INPUT_PORTS_START( alienar )
11421142   PORT_START_TAG("IN0")
11431143   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(2)
11441144   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2)
r1238r1239
11741174INPUT_PORTS_END
11751175
11761176
1177INPUT_PORTS_START( lottofun )
1177static INPUT_PORTS_START( lottofun )
11781178   PORT_START_TAG("IN0")
11791179   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP )
11801180   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN )
r1238r1239
11991199INPUT_PORTS_END
12001200
12011201
1202INPUT_PORTS_START( mysticm )
1202static INPUT_PORTS_START( mysticm )
12031203   PORT_START_TAG("IN0")
12041204   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP )
12051205   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT )
r1238r1239
12251225INPUT_PORTS_END
12261226
12271227
1228INPUT_PORTS_START( tshoot )
1228static INPUT_PORTS_START( tshoot )
12291229   PORT_START_TAG("IN0")   /* (muxed with IN3)*/
12301230   PORT_BIT( 0x3F, 0x20, IPT_AD_STICK_Y ) PORT_MINMAX(0,0x3F) PORT_SENSITIVITY(25) PORT_KEYDELTA(10)
12311231   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
r1238r1239
12551255INPUT_PORTS_END
12561256
12571257
1258INPUT_PORTS_START( inferno )
1258static INPUT_PORTS_START( inferno )
12591259   PORT_START_TAG("IN0")   /* (muxed with IN3) */
12601260   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_PLAYER(1)
12611261   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT ) PORT_PLAYER(1)
r1238r1239
12951295INPUT_PORTS_END
12961296
12971297
1298INPUT_PORTS_START( joust2 )
1298static INPUT_PORTS_START( joust2 )
12991299   PORT_START_TAG("IN0")
13001300   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1)
13011301   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1)
src/mame/drivers/fuukifg3.c
r1238r1239
375375
376376***************************************************************************/
377377
378INPUT_PORTS_START( asurabld )
378static INPUT_PORTS_START( asurabld )
379379   PORT_START   // IN0 - $800000.w/$800002.w
380380   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_COIN1    )
381381   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_COIN2    )
src/mame/drivers/dec8.c
r1238r1239
10291029   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL \
10301030   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL
10311031
1032INPUT_PORTS_START( cobracom )
1032static INPUT_PORTS_START( cobracom )
10331033   PORT_START_TAG("IN0")
10341034   PLAYER1_JOYSTICK
10351035   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
11031103   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
11041104INPUT_PORTS_END
11051105
1106INPUT_PORTS_START( ghostb )
1106static INPUT_PORTS_START( ghostb )
11071107   PORT_START_TAG("IN0")
11081108   PLAYER1_JOYSTICK
11091109   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
11761176   PORT_DIPSETTING(    0x80, DEF_STR( Normal ) )
11771177INPUT_PORTS_END
11781178
1179INPUT_PORTS_START( ghostb3 )
1179static INPUT_PORTS_START( ghostb3 )
11801180   PORT_INCLUDE(ghostb)
11811181
11821182   PORT_MODIFY("IN2")
r1238r1239
11911191   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START3 )
11921192INPUT_PORTS_END
11931193
1194INPUT_PORTS_START( srdarwin )
1194static INPUT_PORTS_START( srdarwin )
11951195   PORT_START_TAG("IN0")
11961196   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
11971197   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
12641264   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) /* Fake */
12651265INPUT_PORTS_END
12661266
1267INPUT_PORTS_START( gondo )
1267static INPUT_PORTS_START( gondo )
12681268   PORT_START_TAG("IN0")
12691269   PLAYER1_JOYSTICK
12701270   /* Top 4 bits are rotary controller */
r1238r1239
13521352   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
13531353INPUT_PORTS_END
13541354
1355INPUT_PORTS_START( oscar )
1355static INPUT_PORTS_START( oscar )
13561356   PORT_START_TAG("IN0")
13571357   PLAYER1_JOYSTICK
13581358   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
14251425   PORT_DIPSETTING(    0x80, DEF_STR( Yes ) )
14261426INPUT_PORTS_END
14271427
1428INPUT_PORTS_START( oscarj0 )
1428static INPUT_PORTS_START( oscarj0 )
14291429   PORT_START_TAG("IN0")
14301430   PLAYER1_JOYSTICK
14311431   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
14981498   PORT_DIPSETTING(    0x80, DEF_STR( Yes ) )
14991499INPUT_PORTS_END
15001500
1501INPUT_PORTS_START( lastmisn )
1501static INPUT_PORTS_START( lastmisn )
15021502   PORT_START_TAG("IN0")
15031503   PLAYER1_JOYSTICK
15041504   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
15721572   PORT_DIPSETTING(    0x00, DEF_STR( Yes ) )
15731573INPUT_PORTS_END
15741574
1575INPUT_PORTS_START( lastmsnj )
1575static INPUT_PORTS_START( lastmsnj )
15761576   PORT_START_TAG("IN0")
15771577   PLAYER1_JOYSTICK
15781578   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
16461646   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
16471647INPUT_PORTS_END
16481648
1649INPUT_PORTS_START( shackled )
1649static INPUT_PORTS_START( shackled )
16501650   PORT_START_TAG("IN0")
16511651   PLAYER1_JOYSTICK
16521652   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
17251725   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
17261726INPUT_PORTS_END
17271727
1728INPUT_PORTS_START( csilver )
1728static INPUT_PORTS_START( csilver )
17291729   PORT_START_TAG("IN0")
17301730   PLAYER1_JOYSTICK
17311731   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
r1238r1239
17991799   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
18001800INPUT_PORTS_END
18011801
1802INPUT_PORTS_START( garyoret )
1802static INPUT_PORTS_START( garyoret )
18031803   PORT_START_TAG("IN0")
18041804   PLAYER1_JOYSTICK
18051805   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
src/mame/drivers/rcorsair.c
r1238r1239
6161   AM_RANGE(0x0000, 0x1fff) AM_WRITE(MWA8_ROM)
6262ADDRESS_MAP_END
6363
64INPUT_PORTS_START( inports )
64static INPUT_PORTS_START( inports )
6565    PORT_START
6666    PORT_DIPNAME(   0x01, 0x01, DEF_STR( Unknown ) )
6767    PORT_DIPSETTING(      0x01, DEF_STR( Off ) )
src/mame/drivers/mnight.c
r1238r1239
120120ADDRESS_MAP_END
121121
122122
123INPUT_PORTS_START( mnight )
123static INPUT_PORTS_START( mnight )
124124   PORT_START /* Player 1 controls */
125125   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
126126   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
r1238r1239
201201   PORT_DIPSETTING(    0x80, DEF_STR( 1C_4C ) )
202202INPUT_PORTS_END
203203
204INPUT_PORTS_START( arkarea )
204static INPUT_PORTS_START( arkarea )
205205   PORT_START /* Player 1 controls */
206206   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
207207   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/pkunwar.c
r1238r1239
4646
4747
4848
49INPUT_PORTS_START( pkunwar )
49static INPUT_PORTS_START( pkunwar )
5050   PORT_START   /* IN0 */
5151    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY
5252    PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY
src/mame/drivers/tbowl.c
r1238r1239
294294   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START##_n_ )
295295
296296
297INPUT_PORTS_START( tbowl )
297static INPUT_PORTS_START( tbowl )
298298   PORT_START   /* player 1 inputs (0xfc00) */
299299   TBOWL_PLAYER_INPUT(1)
300300
r1238r1239
400400
401401/* same as 'tbowl', but different "Quarter Time" Dip Switch
402402   ("3:00" and "4:00" are inverted) */
403INPUT_PORTS_START( tbowlj )
403static INPUT_PORTS_START( tbowlj )
404404   PORT_START   /* player 1 inputs (0xfc00) */
405405   TBOWL_PLAYER_INPUT(1)
406406
src/mame/drivers/battlane.c
r1238r1239
116116}
117117
118118
119INPUT_PORTS_START( battlane )
119static INPUT_PORTS_START( battlane )
120120   PORT_START      /* IN0 */
121121   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
122122   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
src/mame/drivers/atarigt.c
r1238r1239
689689   PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_COIN1 )   /* COINL */ \
690690   PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
691691
692INPUT_PORTS_START( tmek )
692static INPUT_PORTS_START( tmek )
693693   COMMON_IN0      /* 68.SW (A1=0) */
694694
695695   COMMON_IN1      /* 68.SW (A1=1) */
r1238r1239
721721INPUT_PORTS_END
722722
723723
724INPUT_PORTS_START( primrage )
724static INPUT_PORTS_START( primrage )
725725   COMMON_IN0      /* 68.SW (A1=0) */
726726
727727   COMMON_IN1      /* 68.SW (A1=1) bit 0x0008 does something */
src/mame/drivers/cherrym2.c
r1238r1239
8282  AM_RANGE(0x0a, 0x0a) AM_READ(input_port_2_r)
8383ADDRESS_MAP_END
8484
85INPUT_PORTS_START( cm2v841 )
85static INPUT_PORTS_START( cm2v841 )
8686   PORT_START_TAG("PLAYER")
8787   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Bit 0") PORT_CODE(KEYCODE_Q)
8888   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Bit 1") PORT_CODE(KEYCODE_W)
src/mame/drivers/rbmk.c
r1238r1239
124124ADDRESS_MAP_END
125125
126126
127INPUT_PORTS_START( rbmk )
127static INPUT_PORTS_START( rbmk )
128128
129129   PORT_START   /* 16bit */
130130   PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Controls ) )
src/mame/drivers/tourtabl.c
r1238r1239
128128}
129129
130130
131INPUT_PORTS_START( tourtabl )
131static INPUT_PORTS_START( tourtabl )
132132
133133   PORT_START
134134   PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_SENSITIVITY(40) PORT_KEYDELTA(10) PORT_CENTERDELTA(0) PORT_REVERSE PORT_PLAYER(4)
src/mame/drivers/amidar.c
r1238r1239
199199   PORT_DIPSETTING(    0x00, "Disable All Coins" )
200200
201201
202INPUT_PORTS_START( amidar )
202static INPUT_PORTS_START( amidar )
203203   AMIDAR_IN0
204204
205205   AMIDAR_IN1
r1238r1239
232232/* absolutely identical to amidar, the only difference is the BONUS dip switch */
233233/* Cannot find a port 'replace' macro, which would be all that's needed here */
234234/* So instead, I'll use the old definition system */
235INPUT_PORTS_START( amidaru )
235static INPUT_PORTS_START( amidaru )
236236AMIDAR_IN0
237237
238238AMIDAR_IN1
r1238r1239
261261
262262INPUT_PORTS_END
263263
264INPUT_PORTS_START( amidaro )
264static INPUT_PORTS_START( amidaro )
265265AMIDAR_IN0
266266
267267   PORT_START_TAG("IN1")
r1238r1239
302302
303303/* similar to Amidar, dip switches are different and port 3, which in Amidar */
304304/* selects coins per credit, is not used. */
305INPUT_PORTS_START( turtles )
305static INPUT_PORTS_START( turtles )
306306   PORT_START_TAG("IN0")
307307   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
308308   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* probably space for button 2 */
r1238r1239
347347INPUT_PORTS_END
348348
349349/* same as Turtles, but dip switches are different. */
350INPUT_PORTS_START( turpin )
350static INPUT_PORTS_START( turpin )
351351   PORT_START_TAG("IN0")
352352   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
353353   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* probably space for button 2 */
src/mame/drivers/trvmadns.c
r1238r1239
216216   AM_RANGE(0x80, 0x80) AM_WRITE(trvmadns_banking_w)
217217ADDRESS_MAP_END
218218
219INPUT_PORTS_START( trvmadns )
219static INPUT_PORTS_START( trvmadns )
220220   PORT_START
221221   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
222222   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
src/mame/drivers/cloud9.c
r1238r1239
329329 *
330330 *************************************/
331331
332INPUT_PORTS_START( cloud9 )
332static INPUT_PORTS_START( cloud9 )
333333   PORT_START
334334   PORT_BIT( 0x07, IP_ACTIVE_LOW, IPT_UNKNOWN )
335335   PORT_SERVICE( 0x08, IP_ACTIVE_LOW )
r1238r1239
370370INPUT_PORTS_END
371371
372372
373INPUT_PORTS_START( firebeas )
373static INPUT_PORTS_START( firebeas )
374374   PORT_START
375375   PORT_BIT( 0x07, IP_ACTIVE_LOW, IPT_UNKNOWN )
376376   PORT_SERVICE( 0x08, IP_ACTIVE_LOW )
src/mame/drivers/rpunch.c
r1238r1239
301301 *
302302 *************************************/
303303
304INPUT_PORTS_START( rpunch )
304static INPUT_PORTS_START( rpunch )
305305   PORT_START   /* c0018 lower 8 bits */
306306   PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
307307   PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
384384INPUT_PORTS_END
385385
386386
387INPUT_PORTS_START( rabiolep )
387static INPUT_PORTS_START( rabiolep )
388388   PORT_START   /* c0018 lower 8 bits */
389389   PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
390390   PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r1238r1239
468468
469469
470470
471INPUT_PORTS_START( svolley )
471static INPUT_PORTS_START( svolley )
472472   PORT_START   /* c0018 lower 8 bits */
473473   PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
474474   PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/yard.c
r1238r1239
5454
5555/* Input Ports */
5656
57INPUT_PORTS_START( yard )
57static INPUT_PORTS_START( yard )
5858   PORT_START_TAG("IN0")
5959   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
6060   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
r1238r1239
148148   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
149149INPUT_PORTS_END
150150
151INPUT_PORTS_START( vsyard )
151static INPUT_PORTS_START( vsyard )
152152   PORT_INCLUDE(yard)
153153
154154   PORT_MODIFY("DSW1")
src/mame/drivers/changela.c
r1238r1239
316316ADDRESS_MAP_END
317317
318318
319INPUT_PORTS_START( changela )
319static INPUT_PORTS_START( changela )
320320   PORT_START /* 0 */ /* DSWA */
321321   PORT_DIPNAME( 0x07, 0x01, "Steering Wheel Ratio" )
322322   PORT_DIPSETTING(    0x01, "Recommended" )
r1238r1239
459459};
460460
461461
462INTERRUPT_GEN( chl_interrupt )
462static INTERRUPT_GEN( chl_interrupt )
463463{
464464   int vector = video_screen_get_vblank(0) ? 0xdf : 0xcf; /* 4 irqs per frame: 3 times 0xcf, 1 time 0xdf */
465465
src/mame/drivers/crimfght.c
r1238r1239
9696
9797***************************************************************************/
9898
99INPUT_PORTS_START( crimfght )
99static INPUT_PORTS_START( crimfght )
100100   PORT_START   /* DSW #1 */
101101   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coinage ) )
102102   PORT_DIPSETTING(    0x02, DEF_STR( 4C_1C ) )
r1238r1239
222222   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE4 )
223223INPUT_PORTS_END
224224
225INPUT_PORTS_START( crimfgtj )
225static INPUT_PORTS_START( crimfgtj )
226226   PORT_START   /* DSW #1 */
227227   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coinage ) )
228228   PORT_DIPSETTING(    0x02, DEF_STR( 4C_1C ) )
src/mame/drivers/rabbit.c
r1238r1239
495495   return rabbit_tilemap_ram[3][offset];
496496}
497497
498READ32_HANDLER( randomrabbits )
498static READ32_HANDLER( randomrabbits )
499499{
500500   return mame_rand(Machine);
501501}
r1238r1239
824824   AM_RANGE(0xf00000, 0xffffff) AM_WRITE(MWA32_RAM)
825825ADDRESS_MAP_END
826826
827INPUT_PORTS_START( rabbit )
827static INPUT_PORTS_START( rabbit )
828828   PORT_START   /* 16bit */
829829   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_SPECIAL ) // Eeprom
830830   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unlabeled in input test
r1238r1239
878878   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
879879INPUT_PORTS_END
880880
881INPUT_PORTS_START( tmmjprd )
881static INPUT_PORTS_START( tmmjprd )
882882   PORT_START   /* 16bit */
883883   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN )
884884   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unlabeled in input test
src/mame/drivers/asuka.c
r1238r1239
485485
486486
487487/* different players and system inputs than 'asuka' */
488INPUT_PORTS_START( bonzeadv )
488static INPUT_PORTS_START( bonzeadv )
489489   /* 0x390000 -> 0x10cb7c ($b7c,A5) */
490490   PORT_START_TAG("DSWA")
491491   TAITO_MACHINE_COCKTAIL
r1238r1239
539539   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
540540INPUT_PORTS_END
541541
542INPUT_PORTS_START( jigkmgri )
542static INPUT_PORTS_START( jigkmgri )
543543   PORT_INCLUDE(bonzeadv)
544544
545545   PORT_MODIFY("DSWA")
546546   TAITO_COINAGE_JAPAN_OLD
547547INPUT_PORTS_END
548548
549INPUT_PORTS_START( asuka )
549static INPUT_PORTS_START( asuka )
550550   /* 0x400000 -> 0x103618 */
551551   PORT_START_TAG("DSWA")
552552   TAITO_MACHINE_NO_COCKTAIL
r1238r1239
588588   PORT_BIT( 0x80, IP_ACTIVE_LOW,  IPT_START2 )
589589INPUT_PORTS_END
590590
591INPUT_PORTS_START( mofflott )
591static INPUT_PORTS_START( mofflott )
592592   PORT_INCLUDE(asuka)
593593
594594   /* 0x400000 -> 0x100a92.b */
r1238r1239
618618INPUT_PORTS_END
619619
620620/* different players and system inputs than 'asuka' */
621INPUT_PORTS_START( cadash )
621static INPUT_PORTS_START( cadash )
622622   /* 0x900000 -> 0x10317a ($317a,A5) */
623623   PORT_START_TAG("DSWA")
624624   TAITO_MACHINE_NO_COCKTAIL
r1238r1239
666666   PORT_BIT( 0x80, IP_ACTIVE_LOW,  IPT_UNKNOWN )
667667INPUT_PORTS_END
668668
669INPUT_PORTS_START( cadashj )
669static INPUT_PORTS_START( cadashj )
670670   PORT_INCLUDE(cadash)
671671
672672   PORT_MODIFY("DSWA")
673673   TAITO_COINAGE_JAPAN_OLD
674674INPUT_PORTS_END
675675
676INPUT_PORTS_START( cadashu )
676static INPUT_PORTS_START( cadashu )
677677   PORT_INCLUDE(cadash)
678678
679679   PORT_MODIFY("DSWA")
680680   TAITO_COINAGE_US
681681INPUT_PORTS_END
682682
683INPUT_PORTS_START( galmedes )
683static INPUT_PORTS_START( galmedes )
684684   PORT_INCLUDE(asuka)
685685
686686   /* 0x400000 -> 0x100982 */
r1238r1239
724724   PORT_DIPSETTING(    0x00, "Mode B (World)" ) /* Mode B is TAITO_COINAGE_WORLD */
725725INPUT_PORTS_END
726726
727INPUT_PORTS_START( earthjkr )
727static INPUT_PORTS_START( earthjkr )
728728   PORT_INCLUDE(asuka)
729729
730730   /* 0x400000 -> 0x100932 */
r1238r1239
751751   PORT_DIPUNUSED( 0x80, IP_ACTIVE_LOW )
752752INPUT_PORTS_END
753753
754INPUT_PORTS_START( eto )
754static INPUT_PORTS_START( eto )
755755   PORT_INCLUDE(asuka)
756756
757757   /* 0x300000 -> 0x200914 */
src/mame/drivers/triplhnt.c
r1238r1239
162162ADDRESS_MAP_END
163163
164164
165INPUT_PORTS_START( triplhnt )
165static INPUT_PORTS_START( triplhnt )
166166   PORT_START /* 0C00 */
167167   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 )
168168   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_COIN1 )
src/mame/drivers/pooyan.c
r1238r1239
9696ADDRESS_MAP_END
9797
9898
99INPUT_PORTS_START( pooyan )
99static INPUT_PORTS_START( pooyan )
100100   PORT_START   /* IN0 */
101101   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
102102   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/backfire.c
r1238r1239
356356ADDRESS_MAP_END
357357
358358
359INPUT_PORTS_START( backfire )
359static INPUT_PORTS_START( backfire )
360360   PORT_START
361361   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
362362   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/rollerg.c
r1238r1239
131131
132132***************************************************************************/
133133
134INPUT_PORTS_START( rollerg )
134static INPUT_PORTS_START( rollerg )
135135   PORT_START
136136   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
137137   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
src/mame/drivers/sidepckt.c
r1238r1239
177177
178178/******************************************************************************/
179179
180INPUT_PORTS_START( sidepckt )
180static INPUT_PORTS_START( sidepckt )
181181    PORT_START_TAG("0X3000")
182182    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
183183    PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
src/mame/drivers/starwars.c
r1238r1239
215215 *
216216 *************************************/
217217
218INPUT_PORTS_START( starwars )
218static INPUT_PORTS_START( starwars )
219219   PORT_START   /* IN0 */
220220   PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_COIN2 )
221221   PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_COIN1 )
r1238r1239
292292INPUT_PORTS_END
293293
294294
295INPUT_PORTS_START( esb )
295static INPUT_PORTS_START( esb )
296296   PORT_START   /* IN0 */
297297   PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_COIN2 )
298298   PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_COIN1 )
src/mame/drivers/wolfpack.c
r1238r1239
224224ADDRESS_MAP_END
225225
226226
227INPUT_PORTS_START( wolfpack )
227static INPUT_PORTS_START( wolfpack )
228228
229229   PORT_START
230230   PORT_BIT ( 0x03, IP_ACTIVE_HIGH, IPT_UNUSED ) /* dial connects here */
src/mame/drivers/pirates.c
r1238r1239
209209
210210/* Input Ports */
211211
212INPUT_PORTS_START( pirates )
212static INPUT_PORTS_START( pirates )
213213   PORT_START   // IN0 - 0x300000.w
214214   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
215215   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
src/mame/drivers/tankbatt.c
r1238r1239
180180   else if (tankbatt_nmi_enable) cpunum_set_input_line(0,INPUT_LINE_NMI,PULSE_LINE);
181181}
182182
183INPUT_PORTS_START( tankbatt )
183static INPUT_PORTS_START( tankbatt )
184184   PORT_START   /* IN0 */
185185   PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
186186   PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
src/mame/drivers/cherrym.c
r1238r1239
158158   AM_RANGE(0x13, 0x13) AM_WRITENOP
159159ADDRESS_MAP_END
160160
161INPUT_PORTS_START( cmv801 )
161static INPUT_PORTS_START( cmv801 )
162162   PORT_START_TAG("PLAYER")
163163   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Bit 0") PORT_CODE(KEYCODE_Q)
164164   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Bit 1") PORT_CODE(KEYCODE_W)
src/mame/drivers/exerion.c
r1238r1239
128128 *
129129 *************************************/
130130
131INPUT_PORTS_START( exerion )
131static INPUT_PORTS_START( exerion )
132132   PORT_START_TAG("IN0")      /* player 1 inputs (muxed on 0xa000) */
133133   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
134134   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/wrally.c
r1238r1239
133133ADDRESS_MAP_END
134134
135135
136INPUT_PORTS_START( wrally )
136static INPUT_PORTS_START( wrally )
137137PORT_START   /* DSW #1 & #2 */
138138   PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) )
139139   PORT_DIPSETTING(      0x0003, DEF_STR( Normal ) )
src/mame/drivers/mosaic.c
r1238r1239
164164
165165
166166
167INPUT_PORTS_START( mosaic )
167static INPUT_PORTS_START( mosaic )
168168   PORT_START   /* IN0 */
169169   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
170170   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
r1238r1239
209209   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
210210INPUT_PORTS_END
211211
212INPUT_PORTS_START( gfire2 )
212static INPUT_PORTS_START( gfire2 )
213213   PORT_START   /* IN0 */
214214   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
215215   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/meijinsn.c
r1238r1239
165165   AM_RANGE(0x06, 0x06) AM_WRITE(MWA8_NOP)
166166ADDRESS_MAP_END
167167
168INPUT_PORTS_START( meijinsn )
168static INPUT_PORTS_START( meijinsn )
169169PORT_START_TAG("IN0")
170170   PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP    ) PORT_PLAYER(1)
171171   PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN  ) PORT_PLAYER(1)
src/mame/drivers/ltcasino.c
r1238r1239
9393ADDRESS_MAP_END
9494
9595
96INPUT_PORTS_START( ltcasino )
96static INPUT_PORTS_START( ltcasino )
9797   PORT_START /* Q in service */
9898   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_CODE(KEYCODE_Z) PORT_NAME("Hold 1")
9999   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_CODE(KEYCODE_X) PORT_NAME("Hold 2")
r1238r1239
272272
273273INPUT_PORTS_END
274274
275INPUT_PORTS_START( ltcasin2 )
275static INPUT_PORTS_START( ltcasin2 )
276276   PORT_START /* Q in service */
277277   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) //start?
278278   PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) )
r1238r1239
465465INPUT_PORTS_END
466466
467467
468INPUT_PORTS_START( mv4in1 )
468static INPUT_PORTS_START( mv4in1 )
469469   PORT_START
470470   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_CODE(KEYCODE_Z) PORT_NAME("Hold 1")
471471   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_CODE(KEYCODE_X) PORT_NAME("Hold 2")
src/mame/drivers/crospang.c
r1238r1239
146146   AM_RANGE(0x02, 0x02) AM_WRITE(OKIM6295_data_0_w)
147147ADDRESS_MAP_END
148148
149INPUT_PORTS_START( crospang )
149static INPUT_PORTS_START( crospang )
150150   PORT_START   /* Inputs */
151151   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    ) PORT_4WAY PORT_PLAYER(1)
152152   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN    ) PORT_4WAY PORT_PLAYER(1)
r1238r1239
217217   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
218218INPUT_PORTS_END
219219
220INPUT_PORTS_START( heuksun )
220static INPUT_PORTS_START( heuksun )
221221   PORT_START
222222   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    ) PORT_4WAY PORT_PLAYER(1)
223223   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN    ) PORT_4WAY PORT_PLAYER(1)
r1238r1239
292292   PORT_DIPSETTING(  0x0000, DEF_STR( On ) )
293293INPUT_PORTS_END
294294
295INPUT_PORTS_START( bestri )
295static INPUT_PORTS_START( bestri )
296296   PORT_START
297297   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    ) PORT_4WAY PORT_PLAYER(1)
298298   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN    ) PORT_4WAY PORT_PLAYER(1)
src/mame/drivers/subs.c
r1238r1239
8282 *
8383 *************************************/
8484
85INPUT_PORTS_START( subs )
85static INPUT_PORTS_START( subs )
8686   PORT_START /* OPTIONS */
8787   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) )
8888   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
src/mame/drivers/coolridr.c
r1238r1239
118118   AM_RANGE(0x300000, 0x300fff) AM_READWRITE(SCSP_1_r, SCSP_1_w)
119119ADDRESS_MAP_END
120120
121INPUT_PORTS_START( coolridr )
121static INPUT_PORTS_START( coolridr )
122122INPUT_PORTS_END
123123
124124static const gfx_layout tiles8x8_layout =
src/mame/drivers/darkmist.c
r1238r1239
8282ADDRESS_MAP_END
8383
8484
85INPUT_PORTS_START( darkmist )
85static INPUT_PORTS_START( darkmist )
8686   PORT_START
8787   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
8888   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/exctsccr.c
r1238r1239
240240
241241***************************************************************************/
242242
243INPUT_PORTS_START( exctsccr )
243static INPUT_PORTS_START( exctsccr )
244244   PORT_START      /* IN0 */
245245   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
246246   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/ajax.c
r1238r1239
9898ADDRESS_MAP_END
9999
100100
101INPUT_PORTS_START( ajax )
101static INPUT_PORTS_START( ajax )
102102   PORT_START_TAG("DSW1")
103103   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )      PORT_DIPLOCATION("SW1:1,2,3,4")
104104   PORT_DIPSETTING(    0x02, DEF_STR( 4C_1C ) )
src/mame/drivers/mquake.c
r1238r1239
174174 *
175175 *************************************/
176176
177INPUT_PORTS_START( mquake )
177static INPUT_PORTS_START( mquake )
178178   PORT_START_TAG("CIA0PORTA")
179179   PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNKNOWN )
180180   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)         /* JS0SW */
src/mame/drivers/funybubl.c
r1238r1239
143143
144144
145145
146INPUT_PORTS_START( funybubl )
146static INPUT_PORTS_START( funybubl )
147147   PORT_START   /* System inputs */
148148   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
149149   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/shisen.c
r1238r1239
104104
105105
106106
107INPUT_PORTS_START( shisen )
107static INPUT_PORTS_START( shisen )
108108   PORT_START_TAG("IN0")
109109   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
110110   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
src/mame/drivers/nmk16.c
r1238r1239
554554
555555******************************************************************************************/
556556
557UINT16 *mcu_shared_ram;
558UINT16 *mcu_work_ram;
557UINT16 *nmk16_mcu_shared_ram;
558UINT16 *nmk16_mcu_work_ram;
559559
560560#define PROT_JSR(_offs_,_protvalue_,_pc_) \
561   if(mcu_shared_ram[(_offs_)/2] == _protvalue_) \
561   if(nmk16_mcu_shared_ram[(_offs_)/2] == _protvalue_) \
562562   { \
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*/\
567567   } \
568568
569569#define PROT_INPUT(_offs_,_protvalue_,_protinput_,_input_) \
570   if(mcu_shared_ram[_offs_] == _protvalue_) \
570   if(nmk16_mcu_shared_ram[_offs_] == _protvalue_) \
571571   {\
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);\
574574   }
575575
576576static READ16_HANDLER( mcu_shared_r )
577577{
578   return mcu_shared_ram[offset];
578   return nmk16_mcu_shared_ram[offset];
579579}
580580
581581//td     - hmf
r1238r1239
644644
645645static WRITE16_HANDLER( hachamf_mcu_shared_w )
646646{
647   COMBINE_DATA(&mcu_shared_ram[offset]);
647   COMBINE_DATA(&nmk16_mcu_shared_ram[offset]);
648648
649649   switch(offset)
650650   {
r1238r1239
685685      case 0x1fe/2: PROT_JSR(0x1fe,0x8026,0x8c36);//8c36
686686                 PROT_JSR(0x1fe,0x8016,0xd620); break;  //unused
687687      case 0xf00/2:
688         if(mcu_shared_ram[0xf00/2] == 0x60fe)
688         if(nmk16_mcu_shared_ram[0xf00/2] == 0x60fe)
689689         {
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;
695695         }
696696         break;
697697   }
r1238r1239
726726   AM_RANGE(0x09c000, 0x09c7ff) AM_WRITE(nmk_txvideoram_w) AM_BASE(&nmk_txvideoram)
727727   AM_RANGE(0x0f0000, 0x0f7fff) AM_WRITE(MWA16_RAM)   /* Work RAM */
728728   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 */
731731   AM_RANGE(0x0ff000, 0x0fffff) AM_WRITE(MWA16_RAM) /* Work RAM */
732732ADDRESS_MAP_END
733733
734734static WRITE16_HANDLER( tdragon_mcu_shared_w )
735735{
736   COMBINE_DATA(&mcu_shared_ram[offset]);
736   COMBINE_DATA(&nmk16_mcu_shared_ram[offset]);
737737
738738   switch(offset)
739739   {
r1238r1239
774774      case 0x7fe/2: PROT_JSR(0x7fe,0x8026,0xa57a);
775775                 PROT_JSR(0x7fe,0x8016,0xa57a); break;
776776      case 0xf00/2:
777         if(mcu_shared_ram[0xf00/2] == 0x60fe)
777         if(nmk16_mcu_shared_ram[0xf00/2] == 0x60fe)
778778         {
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;
784784         }
785785         break;
786786   }
r1238r1239
808808   AM_RANGE(0x000000, 0x03ffff) AM_WRITE(MWA16_ROM)
809809   AM_RANGE(0x0b0000, 0x0b7fff) AM_WRITE(MWA16_RAM)   /* Work RAM */
810810   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 */
813813   AM_RANGE(0x0bf000, 0x0bffff) AM_WRITE(MWA16_RAM)   /* Work RAM */
814814   AM_RANGE(0x0c0014, 0x0c0015) AM_WRITE(nmk_flipscreen_w) /* Maybe */
815815   AM_RANGE(0x0c0018, 0x0c0019) AM_WRITE(nmk_tilebank_w) /* Tile Bank ? */
r1238r1239
11271127ADDRESS_MAP_END
11281128
11291129
1130INPUT_PORTS_START( vandyke )
1130static INPUT_PORTS_START( vandyke )
11311131   PORT_START      /* IN0 */
11321132   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
11331133   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
12061206   PORT_DIPSETTING(    0x20, DEF_STR( 1C_4C ) )
12071207INPUT_PORTS_END
12081208
1209INPUT_PORTS_START( blkheart )
1209static INPUT_PORTS_START( blkheart )
12101210   PORT_START      /* IN0 */
12111211   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
12121212   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
12841284   PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
12851285INPUT_PORTS_END
12861286
1287INPUT_PORTS_START( manybloc )
1287static INPUT_PORTS_START( manybloc )
12881288   PORT_START   /* IN0 - 0x080000 */
12891289   PORT_BIT( 0x7fff, IP_ACTIVE_HIGH, IPT_UNUSED )
12901290   PORT_BIT( 0x8000, IP_ACTIVE_LOW,  IPT_UNKNOWN )      // VBLANK ? Check code at 0x005640
r1238r1239
13541354   PORT_DIPSETTING(      0x8000, "Best" )
13551355INPUT_PORTS_END
13561356
1357INPUT_PORTS_START( tharrier )
1357static INPUT_PORTS_START( tharrier )
13581358   PORT_START      /* IN0 */
13591359   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
13601360   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
14391439   PORT_DIPSETTING(      0x0000, "5" )
14401440INPUT_PORTS_END
14411441
1442INPUT_PORTS_START( mustang )
1442static INPUT_PORTS_START( mustang )
14431443   PORT_START      /* IN0 */
14441444   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
14451445   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
15171517   PORT_DIPSETTING(      0x0000, "5" )
15181518INPUT_PORTS_END
15191519
1520INPUT_PORTS_START( hachamf )
1520static INPUT_PORTS_START( hachamf )
15211521   PORT_START      /* IN0 */
15221522   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
15231523   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
15961596   PORT_DIPSETTING(    0x80, "4" )
15971597INPUT_PORTS_END
15981598
1599INPUT_PORTS_START( strahl )
1599static INPUT_PORTS_START( strahl )
16001600   PORT_START      /* IN0 */
16011601   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
16021602   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
16731673   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
16741674INPUT_PORTS_END
16751675
1676INPUT_PORTS_START( acrobatm )
1676static INPUT_PORTS_START( acrobatm )
16771677   PORT_START      /* IN0 */
16781678   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
16791679   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
17501750   PORT_DIPSETTING(    0x00, "5" )
17511751INPUT_PORTS_END
17521752
1753INPUT_PORTS_START( bioship )
1753static INPUT_PORTS_START( bioship )
17541754   PORT_START      /* IN0 */
17551755   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
17561756   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
18281828   PORT_DIPSETTING(      0x0020, DEF_STR( 1C_4C ) )
18291829INPUT_PORTS_END
18301830
1831INPUT_PORTS_START( tdragon )
1831static INPUT_PORTS_START( tdragon )
18321832   PORT_START      /* IN0 */
18331833   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
18341834   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
19081908   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
19091909INPUT_PORTS_END
19101910
1911INPUT_PORTS_START( tdragonb )
1911static INPUT_PORTS_START( tdragonb )
19121912   PORT_START      /* IN0 */
19131913   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
19141914   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
19881988   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
19891989INPUT_PORTS_END
19901990
1991INPUT_PORTS_START( ssmissin )
1991static INPUT_PORTS_START( ssmissin )
19921992   PORT_START      /* IN0 */
19931993   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
19941994   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
20782078   PORT_DIPSETTING(      0x0000, DEF_STR( Free_Play ) )
20792079INPUT_PORTS_END
20802080
2081INPUT_PORTS_START( airattck )
2081static INPUT_PORTS_START( airattck )
20822082   PORT_START      /* IN0 */
20832083   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
20842084   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
21562156   PORT_DIPSETTING(      0x0000, DEF_STR( Free_Play ) )
21572157INPUT_PORTS_END
21582158
2159INPUT_PORTS_START( macross )
2159static INPUT_PORTS_START( macross )
21602160   PORT_START      /* IN0 */
21612161   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
21622162   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
22442244   PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
22452245INPUT_PORTS_END
22462246
2247INPUT_PORTS_START( macross2 )
2247static INPUT_PORTS_START( macross2 )
22482248   PORT_START      /* IN0 */
22492249   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
22502250   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
23332333   PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
23342334INPUT_PORTS_END
23352335
2336INPUT_PORTS_START( tdragon2 )
2336static INPUT_PORTS_START( tdragon2 )
23372337   PORT_START      /* IN0 */
23382338   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
23392339   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
24212421   PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
24222422INPUT_PORTS_END
24232423
2424INPUT_PORTS_START( gunnail )
2424static INPUT_PORTS_START( gunnail )
24252425   PORT_START      /* IN0 */
24262426   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
24272427   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
25022502   PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
25032503INPUT_PORTS_END
25042504
2505INPUT_PORTS_START( raphero )
2505static INPUT_PORTS_START( raphero )
25062506   PORT_START      /* IN0 */
25072507   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
25082508   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
25802580   PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
25812581INPUT_PORTS_END
25822582
2583INPUT_PORTS_START( sabotenb )
2583static INPUT_PORTS_START( sabotenb )
25842584   PORT_START      /* IN0 */
25852585   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
25862586   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
26542654   PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
26552655INPUT_PORTS_END
26562656
2657INPUT_PORTS_START( bjtwin )
2657static INPUT_PORTS_START( bjtwin )
26582658   PORT_START      /* IN0 */
26592659   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
26602660   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r1238r1239
27342734   PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
27352735INPUT_PORTS_END
27362736
2737INPUT_PORTS_START( nouryoku )
2737static INPUT_PORTS_START( nouryoku )
27382738   PORT_START      /* IN0 */
27392739   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
27402740   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
src/mame/drivers/miniboy7.c
r1238r1239
201201*      Input Ports       *
202202*************************/
203203
204INPUT_PORTS_START( miniboy7 )
204static INPUT_PORTS_START( miniboy7 )
205205INPUT_PORTS_END
206206
207207
src/mame/drivers/nitedrvr.c
r1238r1239
7373
7474/* Input Ports */
7575
76INPUT_PORTS_START( nitedrvr )
76static INPUT_PORTS_START( nitedrvr )
7777   PORT_START   // fake
7878   PORT_DIPNAME( 0x30, 0x10, DEF_STR( Coinage ) )
7979   PORT_DIPSETTING(   0x30, DEF_STR( 2C_1C ) )
src/osd/windows/winwork.c
r1238r1239
8383};
8484
8585
86typedef struct _thread_info thread_info;
87struct _thread_info
86typedef struct _work_thread_info work_thread_info;
87struct _work_thread_info
8888{
8989   osd_work_queue *   queue;         // pointer back to the queue
9090   HANDLE            handle;         // handle to the thread
r1238r1239
113113   volatile UINT8      exiting;      // should the threads exit on their next opportunity?
114114   UINT32            threads;      // number of threads in this queue
115115   UINT32            flags;         // creation flags
116   thread_info *      thread;         // array of thread information
116   work_thread_info *   thread;         // array of thread information
117117   HANDLE            doneevent;      // event signalled when work is complete
118118
119119#if KEEP_STATISTICS
r1238r1239
145145
146146static int effective_num_processors(void);
147147static unsigned __stdcall worker_thread_entry(void *param);
148static void worker_thread_process(osd_work_queue *queue, thread_info *thread);
148static void worker_thread_process(osd_work_queue *queue, work_thread_info *thread);
149149
150150
151151
r1238r1239
274274   // iterate over threads
275275   for (threadnum = 0; threadnum < queue->threads; threadnum++)
276276   {
277      thread_info *thread = &queue->thread[threadnum];
277      work_thread_info *thread = &queue->thread[threadnum];
278278      uintptr_t handle;
279279
280280      // set a pointer back to the queue
r1238r1239
337337   // if this is a multi queue, help out rather than doing nothing
338338   if (queue->flags & WORK_QUEUE_FLAG_MULTI)
339339   {
340      thread_info *thread = &queue->thread[queue->threads];
340      work_thread_info *thread = &queue->thread[queue->threads];
341341      osd_ticks_t stopspin = osd_ticks() + timeout;
342342
343343      end_timing(thread->waittime);
r1238r1239
390390      queue->exiting = TRUE;
391391      for (threadnum = 0; threadnum < queue->threads; threadnum++)
392392      {
393         thread_info *thread = &queue->thread[threadnum];
393         work_thread_info *thread = &queue->thread[threadnum];
394394         if (thread->wakeevent != NULL)
395395            SetEvent(thread->wakeevent);
396396      }
r1238r1239
398398      // wait for all the threads to go away
399399      for (threadnum = 0; threadnum < queue->threads; threadnum++)
400400      {
401         thread_info *thread = &queue->thread[threadnum];
401         work_thread_info *thread = &queue->thread[threadnum];
402402
403403         // block on the thread going away, then close the handle
404404         if (thread->handle != NULL)
r1238r1239
416416      // output per-thread statistics
417417      for (threadnum = 0; threadnum <= queue->threads; threadnum++)
418418      {
419         thread_info *thread = &queue->thread[threadnum];
419         work_thread_info *thread = &queue->thread[threadnum];
420420         osd_ticks_t total = thread->runtime + thread->waittime + thread->spintime;
421421         printf("Thread %d:  items=%9d  run=%5.2f%% (%5.2f%%)  spin=%5.2f%%  wait/other=%5.2f%%\n",
422422               threadnum, thread->itemsdone,
r1238r1239
532532      // iterate over all the threads
533533      for (threadnum = 0; threadnum < queue->threads; threadnum++)
534534      {
535         thread_info *thread = &queue->thread[threadnum];
535         work_thread_info *thread = &queue->thread[threadnum];
536536
537537         // if this thread is not active, wake him up
538538         if (!thread->active)
r1238r1239
648648
649649static unsigned __stdcall worker_thread_entry(void *param)
650650{
651   thread_info *thread = param;
651   work_thread_info *thread = param;
652652   osd_work_queue *queue = thread->queue;
653653
654654   // loop until we exit
r1238r1239
708708//  worker_thread_process
709709//============================================================
710710
711static void worker_thread_process(osd_work_queue *queue, thread_info *thread)
711static void worker_thread_process(osd_work_queue *queue, work_thread_info *thread)
712712{
713713   int threadid = thread - queue->thread;
714714
src/osd/windows/osinline.h
r1238r1239
1414
1515#ifdef PTR64
1616#include <intrin.h>
17#pragma intrinsic(_BitScanReverse)
18#else
19#pragma intrinsic(_InterlockedCompareExchange)
20#pragma intrinsic(_InterlockedExchange)
21#pragma intrinsic(_InterlockedExchangeAdd)
1722#endif
1823
1924
r1238r1239
396401}
397402
398403
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
411INLINE 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
424INLINE INT32 _atomic_decrement32(INT32 volatile *ptr, INT32 delta)
425{
426   return _InterlockedDecrement(ptr);
427}
428
429
399430#endif /* __OSINLINE__ */
src/emu/cpu/sh4/sh4.c
r1238r1239
77 *      Olivier Galibert, Sylvain Glaize, and James Forshaw.
88 *
99 *
10 *   TODO: interrupts
11 *         FPU
10 *   TODO: FPU
11 *         DMA
1212 *         on-board peripherals
1313 *
1414 *   DONE: boot/reset setup
r1238r1239
1717 *         additional registers for supervisor mode
1818 *         FPU status and data registers
1919 *         state save for the new registers
20 *         interrupts
21 *         store queues
2022 *
2123 *****************************************************************************/
2224
r1238r1239
4143
4244typedef struct
4345{
44   int irq_vector;
45   int irq_priority;
46} irq_entry;
47
48typedef struct
49{
5046   UINT32   ppc;
5147   UINT32   pc, spc;
5248   UINT32   pr;
r1238r1239
6460   UINT32  fpul;
6561   UINT32  dbr;
6662
67   irq_entry irq_queue[16];
6863   UINT32   exception_priority[128];
6964   int      exception_requesting[128];
7065
r1238r1239
7469   INT8   nmi_line_state;
7570
7671   int      frt_input;
72   int      irln;
7773   int    internal_irq_level;
7874   int    internal_irq_vector;
7975
80   mame_timer *dma_timer[2];
76   mame_timer *dma_timer[4];
8177   mame_timer *refresh_timer;
8278   mame_timer *rtc_timer;
8379   mame_timer *timer0;
r1238r1239
9894static const int tcnt_div[8] = { 4, 16, 64, 256, 1024, 1, 1, 1 };
9995static const int rtcnt_div[8] = { 0, 4, 16, 64, 256, 1024, 2048, 4096 };
10096static const int daysmonth[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
97static const int dmasize[8] = { 8, 1, 2, 4, 32, 0, 0, 0 };
10198static 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),
10299   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),
103100   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),
r1238r1239
340337   }
341338}
342339
340INLINE 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
343349INLINE void sh4_exception(const char *message, int exception) // handle exception
344350{
345351   UINT32 vector;
r1238r1239
349355   if (exception == SH4_INTC_NMI) {
350356      if ((sh4.sr & BL) && (!(sh4.m[ICR] & 0x200)))
351357         return;
352      sh4_exception_unrequest(SH4_INTC_NMI);
353358      sh4.m[ICR] &= ~0x200;
354359      sh4.m[INTEVT] = 0x1c0;
355360      vector = 0x600;
r1238r1239
370375         sh4.irq_callback(SH4_IRL3+1);
371376      LOG(("SH-4 #%d interrupt exception #%d after [%s]\n", cpu_getactivecpu(), exception, message));
372377   }
378   sh4_exception_checkunrequest(exception);
373379
374380   sh4.spc = sh4.pc;
375381   sh4.ssr = sh4.sr;
r1238r1239
22292235INLINE void SHAD(UINT32 m,UINT32 n)
22302236{
22312237   if ((sh4.r[m] & 0x80000000) == 0)
2232      sh4.r[n] = sh4.r[n] << (sh4.r[n] & 0x1F);
2238      sh4.r[n] = sh4.r[n] << (sh4.r[m] & 0x1F);
22332239   else if ((sh4.r[m] & 0x1F) == 0) {
22342240      if ((sh4.r[n] & 0x80000000) == 0)
22352241         sh4.r[n] = 0;
r1238r1239
22682274   sh4.spc = sh4.r[m];
22692275}
22702276
2277/*  PREF     @Rn */
2278INLINE void PREFM(UINT32 n)
2279{
2280int a;
2281UINT32 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
22712302/*****************************************************************************
22722303 *  OPCODE DISPATCHERS
22732304 *****************************************************************************/
r1238r1239
23042335      case 0x20:
23052336         BRAF(Rn); break;
23062337      case 0x80:
2307         TODO(); break;
2338         PREFM(Rn); break;
23082339      case 0x90:
23092340         TODO(); break;
23102341      case 0xA0:
r1238r1239
27712802   }
27722803}
27732804
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 */
2808INLINE 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
27742828/*  FMOV    XDm,@-Rn PR=1      1111nnnnmmm11011 */
27752829/*  FMOV.S  FRm,@-Rn PR=0 SZ=0 1111nnnnmmmm1011 */
27762830/*  FMOV    DRm,@-Rn PR=0 SZ=1 1111nnnnmmm01011 */
r1238r1239
27972851   }
27982852}
27992853
2854/*  FLDI1  FRn 1111nnnn10011101 */
2855INLINE void FLDI1(UINT32 n)
2856{
2857   sh4.fr[n] = 0x3F800000;
2858}
2859
2860/*  FLDI0  FRn 1111nnnn10001101 */
2861INLINE 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 */
2869INLINE 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 */
2892INLINE 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 */
2915INLINE 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
28002935/* FRCHG 1111101111111101 */
28012936INLINE void FRCHG(void)
28022937{
r1238r1239
28332968         TODO();
28342969         break;
28352970      case 6:
2836         TODO();
2971         FMOVS0FR(Rm,Rn);
28372972         break;
28382973      case 7:
2839         TODO();
2974         FMOVFRS0(Rm,Rn);
28402975         break;
28412976      case 8:
2842         TODO();
2977         FMOVMRFR(Rm,Rn);
28432978         break;
28442979      case 9:
28452980         FMOVMRIFR(Rm,Rn);
28462981         break;
28472982      case 10:
2848         TODO();
2983         FMOVFRMR(Rm,Rn);
28492984         break;
28502985      case 11:
28512986         FMOVFRMDR(Rm,Rn);
r1238r1239
28783013               TODO();
28793014               break;
28803015            case 0x80:
2881               TODO();
3016               FLDI0(Rn);
28823017               break;
28833018            case 0x90:
2884               TODO();
3019               FLDI1(Rn);
28853020               break;
28863021            case 0xA0:
28873022               TODO();
r1238r1239
29143049
29153050static void sh4_reset(void)
29163051{
2917   void *tsaved0, *tsaved1;
3052   void *tsaved[4];
29183053   mame_timer *tsave[5];
29193054   UINT32 *m;
29203055   int cpunum;
r1238r1239
29263061
29273062   cpunum = sh4.cpu_number;
29283063   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];
29313068   tsave[0] = sh4.refresh_timer;
29323069   tsave[1] = sh4.rtc_timer;
29333070   tsave[2] = sh4.timer0;
r1238r1239
29483085   sh4.ftcsr_read_callback = f;
29493086   sh4.irq_callback = save_irqcallback;
29503087
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];
29533092   sh4.refresh_timer = tsave[0];
29543093   sh4.rtc_timer = tsave[1];
29553094   sh4.timer0 = tsave[2];
r1238r1239
29793118   change_pc(sh4.pc & AM);
29803119
29813120   sh4.internal_irq_level = -1;
3121   sh4.irln = 15;
29823122}
29833123
29843124/* Execute cycles - returns number of cycles actually run */
r1238r1239
30523192      memcpy(&sh4, src, sizeof(SH4));
30533193}
30543194
3055static 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
31003195static UINT32 compute_ticks_refresh_timer(mame_timer *timer, int hertz, int base, int divisor)
31013196{
31023197   // elapsed:total = x : ticks
r1238r1239
33203415   {
33213416      sh4.m[RCR1] |= 0x80;
33223417      increment_rtc_time(0);
3323//sh4_exception_request(SH4_INTC_NMI); // TEST
3324set_irq_line(SH4_IRLn,4);
3418      //sh4_exception_request(SH4_INTC_NMI); // TEST
33253419   }
33263420   cpuintrf_pop_context();
33273421}
r1238r1239
33673461
33683462static TIMER_CALLBACK( sh4_dmac_callback )
33693463{
3370   int cpunum = param >> 1;
3371   int dma = param & 1;
3464   int cpunum = param >> 8;
3465   int channel = param & 255;
33723466
33733467   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   }
33783497   cpuintrf_pop_context();
33793498}
33803499
3381#ifdef UNUSED_FUNCTION
3382static void sh4_dmac_check(int dma)
3500static int sh4_dma_transfer(int channel, int timermode, UINT32 chcr, UINT32 *sar, UINT32 *dar, UINT32 *dmatcr)
33833501{
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)
33853509   {
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;
34033518
3404         LOG(("SH4: DMA %d start %x, %x, %x, %04x, %d, %d, %d\n", dma, src, dst, count, sh4.m[0x63+4*dma], incs, incd, size));
3519   LOG(("SH4: DMA %d start %x, %x, %x, %04x, %d, %d, %d\n", channel, src, dst, count, chcr, incs, incd, size));
34053520
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   }
34083531
3409         src &= AM;
3410         dst &= AM;
3532   src &= AM;
3533   dst &= AM;
34113534
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;
34583581
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         }
34793582      }
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;
34803620   }
3621   *sar    = (*sar & !AM) | src;
3622   *dar    = (*dar & !AM) | dst;
3623   *dmatcr = count;
3624   return 1;
3625}
3626
3627static void sh4_dmac_check(int channel)
3628{
3629UINT32 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   }
34813667   else
34823668   {
3483      if(sh4.dma_timer_active[dma])
3669      if (sh4.dma_timer_active[channel])
34843670      {
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;
34883674      }
34893675   }
34903676}
3491#endif
34923677
3678static void sh4_dmac_nmi(void) // manage dma when nmi
3679{
3680int 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
34933694WRITE32_HANDLER( sh4_internal_w )
34943695{
34953696   UINT32 old = sh4.m[offset];
34963697   COMBINE_DATA(sh4.m+offset);
34973698
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);
35003700
35013701   switch( offset )
35023702   {
r1238r1239
36513851         sh4_timer2_recompute();
36523852      break;
36533853
3854      // INTC
36543855   case ICR:
36553856      sh4.m[ICR] = (sh4.m[ICR] & 0x7fff) | (old & 0x8000);
36563857      break;
r1238r1239
36893890      sh4_exception_recompute();
36903891      break;
36913892
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:
36933906      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:
37173908      sh4_dmac_check(0);
37183909      break;
3719   case 0x64: // SAR1
3720   case 0x65: // DAR1
3910   case CHCR1:
3911      sh4_dmac_check(1);
37213912      break;
3722   case 0x66: // DTCR1
3723      sh4.m[0x66] &= 0xffffff;
3913   case CHCR2:
3914      sh4_dmac_check(2);
37243915      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);
37283918      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;
37353924      sh4_dmac_check(0);
37363925      sh4_dmac_check(1);
3926      sh4_dmac_check(2);
3927      sh4_dmac_check(3);
37373928      break;
37383929
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:
37473933      break;
3748#endif
37493934
3935   case SCBRR2:
3936      break;
3937
37503938   default:
37513939      logerror("sh4_internal_w:  Unmapped write %08x, %08x @ %08x\n", 0xfe000000+((offset & 0x3fc0) << 11)+((offset & 0x3f) << 2), data, mem_mask);
37523940      break;
r1238r1239
38274015   sh4.m[4] |= ICF;
38284016   logerror("SH4.%d: ICF activated (%x)\n", sh4.cpu_number, sh4.pc & AM);
38294017   sh4_recalc_irq();
4018#endif
38304019   cpuintrf_pop_context();
3831#endif
38324020}
38334021
4022void 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
38344030static void set_irq_line(int irqline, int state) // set state of external interrupt line
38354031{
38364032int s;
r1238r1239
38454041         {
38464042            LOG(("SH-4 #%d assert nmi\n", cpu_getactivecpu()));
38474043            sh4_exception_request(SH4_INTC_NMI);
4044            sh4_dmac_nmi();
38484045         }
38494046      }
38504047      else
r1238r1239
38534050         {
38544051            LOG(("SH-4 #%d assert nmi\n", cpu_getactivecpu()));
38554052            sh4_exception_request(SH4_INTC_NMI);
4053            sh4_dmac_nmi();
38564054         }
38574055      }
38584056      if (state == CLEAR_LINE)
r1238r1239
38864084      {
38874085         if (irqline != SH4_IRLn)
38884086            return;
3889         if ((state > 15) || (state < 0))
4087         if ((sh4.irln > 15) || (sh4.irln < 0))
38904088            return;
3891         for (s=0;s < 15;s++)
4089         for (s = 0; s < 15; s++)
38924090            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));
38964094      }
38974095   }
38984096   if (sh4.test_irq && (!sh4.delay))
r1238r1239
39674165
39684166   sh4.dma_timer[0] = mame_timer_alloc(sh4_dmac_callback);
39694167   mame_timer_adjust(sh4.dma_timer[0], time_never, 0, time_zero);
3970
39714168   sh4.dma_timer[1] = mame_timer_alloc(sh4_dmac_callback);
39724169   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);
39734174
39744175   sh4.refresh_timer = mame_timer_alloc(sh4_refresh_timer_callback);
39754176   mame_timer_adjust(sh4.refresh_timer, time_never, 0, time_zero);
r1238r1239
39854186   sh4.cpu_number = index;
39864187   sh4.irq_callback = irqcallback;
39874188   sh4_default_exception_priorities();
4189   sh4.irln = 15;
39884190   sh4.test_irq = 0;
39894191
39904192   state_save_register_item("sh4", index, sh4.pc);
r1238r1239
40544256
40554257}
40564258
4259void sh4_dma_ddt(struct sh4_ddt_dma *s)
4260{
4261UINT32 chcr;
4262UINT32 *p32bits;
4263UINT32 pos,len,siz;
40574264
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}
40584362
4363
40594364/**************************************************************************
40604365 * Generic set_info
40614366 **************************************************************************/
r1238r1239
41574462      case CPUINFO_STR_REGISTER + SH4_XF14:         sh4.xf[14] = info->i; break;
41584463      case CPUINFO_STR_REGISTER + SH4_XF15:         sh4.xf[15] = info->i; break;
41594464
4465      case CPUINFO_INT_SH4_IRLn_INPUT:            sh4_set_irln_input(cpu_getactivecpu(), info->i); break;
41604466      case CPUINFO_INT_SH4_FRT_INPUT:               sh4_set_frt_input(cpu_getactivecpu(), info->i); break;
41614467
41624468      /* --- the following bits of info are set as pointers to data or functions --- */
41634469      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;
41644471   }
41654472}
41664473
r1238r1239
41694476static ADDRESS_MAP_START( sh4_internal_map, ADDRESS_SPACE_PROGRAM, 64 )
41704477   AM_RANGE(0x1C000000, 0x1C000FFF) AM_RAM AM_MIRROR(0x03FFD000)
41714478   AM_RANGE(0x1C002000, 0x1C002FFF) AM_RAM AM_MIRROR(0x03FFD000)
4479   AM_RANGE(0xE0000000, 0xE000003F) AM_RAM AM_MIRROR(0x03FFFFC0)
41724480ADDRESS_MAP_END
41734481#endif
41744482
r1238r1239
41764484static ADDRESS_MAP_START( sh4_internal_map, ADDRESS_SPACE_PROGRAM, 64 )
41774485   AM_RANGE(0x1C000000, 0x1C000FFF) AM_RAM AM_MIRROR(0x01FFF000)
41784486   AM_RANGE(0x1E000000, 0x1E000FFF) AM_RAM AM_MIRROR(0x01FFF000)
4487   AM_RANGE(0xE0000000, 0xE000003F) AM_RAM AM_MIRROR(0x03FFFFC0)
41794488ADDRESS_MAP_END
41804489
41814490
src/emu/cpu/sh4/sh4.h
r1238r1239
4444
4545enum
4646{
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
4849};
4950
5051enum
5152{
5253   CPUINFO_PTR_SH4_FTCSR_READ_CALLBACK = CPUINFO_PTR_CPU_SPECIFIC,
54   CPUINFO_PTR_SH4_EXTERNAL_DDT_DMA,
5355};
5456
5557struct sh4_config
r1238r1239
6668  int clock;
6769};
6870
71struct 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
6983extern void sh4_get_info(UINT32 state, cpuinfo *info);
7084
7185WRITE32_HANDLER( sh4_internal_w );
src/emu/eigccx86.h
r1238r1239
1313#ifndef __EIGCCX86__
1414#define __EIGCCX86__
1515
16/* Include MMX/SSE intrinsics headers */
1617
18#ifdef __SSE2__
19#include <mmintrin.h>   /* MMX */
20#include <xmmintrin.h>   /* SSE */
21#include <emmintrin.h>   /* SSE2 */
22#endif
23
24
1725/***************************************************************************
1826    INLINE MATH FUNCTIONS
1927***************************************************************************/
r1238r1239
174182    divide and return the 32 bit quotient
175183-------------------------------------------------*/
176184
177/* TBD */
185#ifndef __x86_64__
186#define div_64x32 _div_64x32
187INLINE INT32 _div_64x32(INT64 a, INT32 b)
188{
189   INT32 result, temp;
178190
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   );
179199
200   return result;
201}
202#endif
203
204
180205/*-------------------------------------------------
181206    divu_64x32 - perform an unsigned 64 bit x 32 bit
182207    divide and return the 32 bit quotient
183208-------------------------------------------------*/
184209
185/* TBD */
210#ifndef __x86_64__
211#define divu_64x32 _divu_64x32
212INLINE UINT32 _divu_64x32(UINT64 a, UINT32 b)
213{
214   UINT32 result, temp;
186215
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   );
187224
225   return result;
226}
227#endif
228
229
188230/*-------------------------------------------------
189231    div_32x32_shift - perform a signed divide of
190232    two 32 bit values, shifting the first before
r1238r1239
248290    divide and return the 32 bit remainder
249291-------------------------------------------------*/
250292
251/* TBD */
293#ifndef __x86_64__
294#define mod_64x32 _mod_64x32
295INLINE INT32 _mod_64x32(INT64 a, INT32 b)
296{
297   INT32 result, temp;
252298
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   );
253307
308   return result;
309}
310#endif
311
312
254313/*-------------------------------------------------
255314    modu_64x32 - perform an unsigned 64 bit x 32 bit
256315    divide and return the 32 bit remainder
257316-------------------------------------------------*/
258317
259/* TBD */
318#ifndef __x86_64__
319#define modu_64x32 _modu_64x32
320INLINE UINT32 _modu_64x32(UINT64 a, UINT32 b)
321{
322   UINT32 result, temp;
260323
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   );
261332
333   return result;
334}
335#endif
336
337
262338/*-------------------------------------------------
263339    recip_approx - compute an approximate floating
264340    point reciprocal
265341-------------------------------------------------*/
266342
267/* TBD */
343#ifdef __SSE2__
344#define recip_approx _recip_approx
345INLINE 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
268354
269355
270356
src/emu/video/polynew.h
r1238r1239
4242    CONSTANTS
4343***************************************************************************/
4444
45#define MAX_VERTEX_PARAMS      6
45#define MAX_VERTEX_PARAMS               6
4646
4747#define POLYFLAG_INCLUDE_BOTTOM_EDGE      0x01
4848#define POLYFLAG_INCLUDE_RIGHT_EDGE         0x02
4949#define POLYFLAG_NO_WORK_QUEUE            0x04
50#define POLYFLAG_ALLOW_QUADS            0x08
5051
5152
5253
r1238r1239
5859typedef struct _poly_manager poly_manager;
5960
6061
61/* scanline_extent describes start/end points for a scanline */
62typedef struct _scanline_extent scanline_extent;
63struct _scanline_extent
64{
65   INT16      startx;
66   INT16      stopx;
67};
68
69
7062/* input vertex data */
7163typedef struct _poly_vertex poly_vertex;
7264struct _poly_vertex
7365{
74   float      x;                     /* screen X coordinate */
75   float      y;                     /* screen Y coordinate */
66   float      x;                     /* X coordinate */
67   float      y;                     /* Y coordinate */
7668   float      p[MAX_VERTEX_PARAMS];      /* interpolated parameter values */
7769};
7870
7971
72/* tri_extent describes start/end points for a scanline */
73typedef struct _tri_extent tri_extent;
74struct _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 */
82typedef struct _poly_param_extent poly_param_extent;
83struct _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 */
91typedef struct _quad_extent quad_extent;
92struct _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
80100/* single set of polygon per-parameter data */
81101typedef struct _poly_param poly_param;
82102struct _poly_param
r1238r1239
91111typedef struct _poly_params poly_params;
92112struct _poly_params
93113{
94   void *      extra;                  /* pointer to the extra data */
95114   INT32      xorigin;               /* X origin for all parameters */
96115   INT32      yorigin;               /* Y origin for all parameters */
97116   poly_param   param[MAX_VERTEX_PARAMS];   /* array of parameter data */
98117};
99118
100119
101/* callback routine to process a batch of scanlines */
102typedef 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 */
121typedef void (*poly_draw_tri_scanline)(void *dest, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid);
103122
123/* callback routine to process a batch of scanlines in a triangle */
124typedef void (*poly_draw_quad_scanline)(void *dest, INT32 scanline, const quad_extent *extent, const void *extradata, int threadid);
104125
105126
127
106128/***************************************************************************
107129    TYPE DEFINITIONS
108130***************************************************************************/
r1238r1239
110132
111133/* ----- initialization/teardown ----- */
112134
113/* allocate a new poly manager */
114poly_manager *poly_alloc(int max_queued_polygons, size_t extra_data_size, UINT8 flags);
135/* allocate a new poly manager that can render triangles */
136poly_manager *poly_alloc(int max_polys, size_t extra_data_size, UINT8 flags);
115137
116138/* free a poly manager */
117139void poly_free(poly_manager *poly);
118140
119141
120142
121/* ----- synchronization ----- */
143/* ----- common functions ----- */
122144
123145/* wait until all polygons in the queue have been rendered */
124146void poly_wait(poly_manager *poly, const char *debug_reason);
125147
148/* get a pointer to the extra data for the next polygon */
149void *poly_get_extra_data(poly_manager *poly);
126150
127151
128/* ----- core rendering ----- */
129152
130/* get a pointer to the extra data for the next polygon */
131void *poly_get_extra_data(poly_manager *poly);
153/* ----- core triangle rendering ----- */
132154
133155/* render a single triangle given 3 vertexes */
134UINT32 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);
156UINT32 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);
135157
158/* render a set of triangles in a fan */
159UINT32 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
136161/* perform a custom render of an object, given specific extents */
137UINT32 poly_render_custom(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline callback, int startscanline, int numscanlines, const scanline_extent *extents);
162UINT32 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);
138163
139164
140165
166/* ----- core quad rendering ----- */
167
168/* render a single quad given 4 vertexes */
169UINT32 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 */
172UINT32 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 */
179int poly_zclip_if_less(int numverts, const poly_vertex *v, poly_vertex *outv, int paramcount, float clipval);
180
181
182
141183/***************************************************************************
142184    INLINE FUNCTIONS
143185***************************************************************************/
144186
145187/*-------------------------------------------------
146    poly_param_value - return parameter value
188    poly_param_tri_value - return parameter value
147189    at specified X,Y coordinate
148190-------------------------------------------------*/
149191
150INLINE float poly_param_value(INT32 x, INT32 y, int whichparam, const poly_params *data)
192INLINE float poly_param_tri_value(INT32 x, INT32 y, int whichparam, const poly_params *data)
151193{
152194   return data->param[whichparam].start + (float)(x - data->xorigin) * data->param[whichparam].dpdx + (float)(y - data->yorigin) * data->param[whichparam].dpdy;
153195}
src/emu/video/voodoo.c
r1238r1239
138138#include "eminline.h"
139139#include "profiler.h"
140140#include "video/polynew.h"
141#include "video/rgbutil.h"
141142#include "voodoo.h"
142143#include "vooddefs.h"
143144#include "ui.h"
r1238r1239
231232static void dump_rasterizer_stats(voodoo_state *v);
232233
233234/* generic rasterizers */
234static void raster_fastfill(void *destbase, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid);
235static void raster_generic_0tmu(void *destbase, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid);
236static void raster_generic_1tmu(void *destbase, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid);
237static void raster_generic_2tmu(void *destbase, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid);
235static void raster_fastfill(void *dest, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid);
236static void raster_generic_0tmu(void *dest, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid);
237static void raster_generic_1tmu(void *dest, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid);
238static void raster_generic_2tmu(void *dest, INT32 scanline, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid);
238239
239240
240241
r1238r1239
45894590   int ex = (v->reg[clipLeftRight].u >> 0) & 0x3ff;
45904591   int sy = (v->reg[clipLowYHighY].u >> 16) & 0x3ff;
45914592   int ey = (v->reg[clipLowYHighY].u >> 0) & 0x3ff;
4592   scanline_extent extents[256];
4593   tri_extent extents[256];
45934594   UINT16 dithermatrix[16];
45944595   UINT16 *drawbuf = NULL;
45954596   UINT32 pixels = 0;
r1238r1239
46504651      extra->state = v;
46514652      memcpy(extra->dither, dithermatrix, sizeof(extra->dither));
46524653
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);
46544655   }
46554656
46564657   /* 2 pixels per clock */
r1238r1239
52125213    implementation of the 'fastfill' command
52135214-------------------------------------------------*/
52145215
5215static void raster_fastfill(void *destbase, INT32 scanline, INT32 startx, INT32 stopx, const poly_params *poly, int threadid)
5216static void raster_fastfill(void *destbase, INT32 y, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid)
52165217{
5217   poly_extra_data *extra = poly->extra;
5218   const poly_extra_data *extra = extradata;
52185219   voodoo_state *v = extra->state;
52195220   stats_block *stats = &v->thread_stats[threadid];
5221   INT32 startx = extent->startx;
5222   INT32 stopx = extent->stopx;
52205223   int scry, x;
52215224
52225225   /* determine the screen Y */
5223   scry = scanline;
5226   scry = y;
52245227   if (FBZMODE_Y_ORIGIN(v->reg[fbzMode].u))
5225      scry = (v->fbi.yorigin - scanline) & 0x3ff;
5228      scry = (v->fbi.yorigin - y) & 0x3ff;
52265229
52275230   /* fill this RGB row */
52285231   if (FBZMODE_RGB_BUFFER_MASK(v->reg[fbzMode].u))
52295232   {
5230      UINT16 *ditherow = &extra->dither[(scanline & 3) * 4];
5233      const UINT16 *ditherow = &extra->dither[(y & 3) * 4];
52315234      UINT64 expanded = *(UINT64 *)ditherow;
52325235      UINT16 *dest = (UINT16 *)destbase + scry * v->fbi.rowpixels;
52335236
src/emu/video/rgbgen.h
r1238r1239
400400}
401401
402402
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
409INLINE 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
462INLINE 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
403510#endif /* __RGBUTIL__ */
src/emu/video/vooddefs.h
r1238r1239
16031603struct _raster_info
16041604{
16051605   struct _raster_info *next;         /* pointer to next entry with the same hash */
1606   poly_draw_scanline callback;       /* callback pointer */
1606   poly_draw_tri_scanline callback;   /* callback pointer */
16071607   UINT8      is_generic;            /* TRUE if this is one of the generic rasterizers */
16081608   UINT8      display;            /* display index */
16091609   UINT32      hits;               /* how many hits (pixels) we've used this for */
r1238r1239
27462746      /* bilinear filtered */                                       \
27472747                                                            \
27482748      UINT32 texel0, texel1, texel2, texel3;                           \
2749      UINT32 factor, factorsum;                                    \
27502749      UINT32 sfrac, tfrac;                                       \
2751      UINT32 ag, rb;                                             \
27522750      INT32 s1, t1;                                             \
27532751                                                            \
27542752      /* adjust S/T for the LOD and strip off all but the low 8 bits of */   \
r1238r1239
28272825      }                                                      \
28282826                                                            \
28292827      /* 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);\
28472829   }                                                         \
28482830                                                            \
28492831   /* select zero/other for RGB */                                    \
r1238r1239
35083490
35093491#define RASTERIZER(name, TMUS, FBZCOLORPATH, FBZMODE, ALPHAMODE, FOGMODE, TEXMODE0, TEXMODE1) \
35103492                                                            \
3511static void raster_##name(void *destbase, INT32 y, INT32 startx, INT32 stopx, const poly_params *poly, int threadid) \
3493static void raster_##name(void *destbase, INT32 y, const tri_extent *extent, const poly_params *poly, const void *extradata, int threadid) \
35123494{                                                            \
3513   poly_extra_data *extra = poly->extra;                              \
3495   const poly_extra_data *extra = extradata;                           \
35143496   voodoo_state *v = extra->state;                                    \
35153497   stats_block *stats = &v->thread_stats[threadid];                     \
35163498   DECLARE_DITHER_POINTERS;                                       \
3499   INT32 startx = extent->startx;                                    \
3500   INT32 stopx = extent->stopx;                                    \
35173501   INT32 iterr, iterg, iterb, itera;                                 \
35183502   INT32 iterz;                                                \
35193503   INT64 iterw, iterw0 = 0, iterw1 = 0;                              \
r1238r1239
35653549   }                                                         \
35663550                                                            \
35673551   /* 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;                  \
35693553   depth = v->fbi.aux ? (v->fbi.aux + scry * v->fbi.rowpixels) : NULL;         \
35703554                                                            \
35713555   /* compute the starting parameters */                              \
src/emu/video/rgbsse.h
r1238r1239
1414#ifndef __RGBSSE__
1515#define __RGBSSE__
1616
17#include <xmmintrin.h>
17#include <emmintrin.h>
1818
1919
2020/***************************************************************************
src/emu/video/polynew.c
r1238r1239
4646typedef struct _polygon_info polygon_info;
4747
4848
49/* work_unit describes a single "unit" of work, which is a small number of scanlines */
50typedef struct _work_unit work_unit;
51struct _work_unit
49/* poly edge is used internally for quad rendering */
50typedef struct _poly_edge poly_edge;
51struct _poly_edge
5252{
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 */
63typedef struct _poly_section poly_section;
64struct _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 */
73typedef struct _work_unit_shared work_unit_shared;
74struct _work_unit_shared
75{
5376   polygon_info *      polygon;            /* pointer to polygon */
5477   volatile UINT32      count_next;            /* number of scanlines and index of next item to process */
5578   INT16            scanline;            /* starting scanline and count */
5679   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
5883};
5984
6085
86/* tri_work_unit is a triangle-specific work-unit */
87typedef struct _tri_work_unit tri_work_unit;
88struct _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 */
96typedef struct _quad_work_unit quad_work_unit;
97struct _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 */
105typedef union _work_unit work_unit;
106union _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
61114/* polygon_info describes a single polygon, which includes the poly_params */
62115struct _polygon_info
63116{
64117   poly_manager *      poly;               /* pointer back to the poly manager */
65118   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 */
67122   poly_params         params;               /* poly_params structure */
68123};
69124
r1238r1239
74129   /* queue management */
75130   osd_work_queue *   queue;               /* work queue */
76131
77   /* work units */
132   /* triangle work units */
78133   work_unit **      unit;               /* array of work unit pointers */
79134   UINT32            unit_next;            /* index of next unit to allocate */
80135   UINT32            unit_count;            /* number of work units available */
81136   size_t            unit_size;            /* size of each work unit, in bytes */
82137
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
83143   /* poly data */
84144   polygon_info **      polygon;            /* array of polygon pointers */
85145   UINT32            polygon_next;         /* index of next polygon to allocate */
86146   UINT32            polygon_count;         /* number of polygon items available */
87147   size_t            polygon_size;         /* size of each polygon, in bytes */
88148
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
89155   /* misc data */
90156   UINT8            flags;               /* flags */
91157
r1238r1239
93159   UINT16            unit_bucket[TOTAL_BUCKETS]; /* buckets for tracking unit usage */
94160
95161   /* statistics */
96   UINT32            polygons;            /* number of polygons queued */
162   UINT32            triangles;            /* number of triangles queued */
163   UINT32            quads;               /* number of quads queued */
97164   UINT64            pixels;               /* number of pixels rendered */
98165#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 */
99172   UINT32            conflicts[WORK_MAX_THREADS]; /* number of conflicts found, per thread */
100173   UINT32            resolved[WORK_MAX_THREADS];   /* number of conflicts resolved, per thread */
101174#endif
r1238r1239
107180    FUNCTION PROTOTYPES
108181***************************************************************************/
109182
183static void **allocate_array(size_t *itemsize, UINT32 itemcount);
184static void free_array(void **array);
110185static void *poly_item_callback(void *param, int threadid);
111186
112187
r1238r1239
128203}
129204
130205
206/*-------------------------------------------------
207    interpolate_vertex - interpolate values in
208    a vertex based on p[0] crossing the clipval
209-------------------------------------------------*/
131210
211INLINE 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
229INLINE 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
245INLINE 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
132270/***************************************************************************
133271    INITIALIZATION/TEARDOWN
134272***************************************************************************/
r1238r1239
138276    manager
139277-------------------------------------------------*/
140278
141poly_manager *poly_alloc(int max_queued_polygons, size_t extra_data_size, UINT8 flags)
279poly_manager *poly_alloc(int max_polys, size_t extra_data_size, UINT8 flags)
142280{
143   int polynum, unitnum;
144281   poly_manager *poly;
145282
146283   /* allocate the manager itself */
r1238r1239
149286   poly->flags = flags;
150287
151288   /* 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);
158293
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);
165299
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);
168302   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);
173305
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
178306   /* create the work queue */
179307   if (!(flags & POLYFLAG_NO_WORK_QUEUE))
180308      poly->queue = osd_work_queue_alloc(WORK_QUEUE_FLAG_MULTI | WORK_QUEUE_FLAG_HIGH_FREQ);
r1238r1239
196324      conflicts += poly->conflicts[i];
197325      resolved += poly->resolved[i];
198326   }
199   printf("Total polygons = %d\n", poly->polygons);
327   printf("Total triangles = %d\n", poly->triangles);
328   printf("Total quads = %d\n", poly->quads);
200329   if (poly->pixels > 1000000000)
201330      printf("Total pixels   = %d%09d\n", (UINT32)(poly->pixels / 1000000000), (UINT32)(poly->pixels % 1000000000));
202331   else
203332      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);
205337}
206338#endif
207339
r1238r1239
209341   if (poly->queue != NULL)
210342      osd_work_queue_free(poly->queue);
211343
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);
219348
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
228349   /* free the manager itself */
229350   free(poly);
230351}
r1238r1239
232353
233354
234355/***************************************************************************
235    SYNCHRONIZATION
356    COMMON FUNCTIONS
236357***************************************************************************/
237358
238359/*-------------------------------------------------
r1238r1239
271392   /* reset the state */
272393   poly->polygon_next = poly->unit_next = 0;
273394   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;
274400}
275401
276402
277
278/***************************************************************************
279    CORE RENDERING
280***************************************************************************/
281
282403/*-------------------------------------------------
283404    poly_get_extra_data - get a pointer to the
284405    extra data for the next polygon
r1238r1239
287408void *poly_get_extra_data(poly_manager *poly)
288409{
289410   /* 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   }
292418
293419   /* 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++];
295424}
296425
297426
298427
299428/***************************************************************************
300    CORE RENDERING
429    CORE TRIANGLE RENDERING
301430***************************************************************************/
302431
303432/*-------------------------------------------------
r1238r1239
305434    triangle given 3 vertexes
306435-------------------------------------------------*/
307436
308UINT32 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)
437UINT32 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)
309438{
310   float dxdy_minmid, dxdy_minmax, dxdy_midmax;
439   float dxdy_v1v2, dxdy_v1v3, dxdy_v2v3;
311440   const poly_vertex *tv;
312441   INT32 curscan, scaninc;
313442   polygon_info *polygon;
r1238r1239
352481   if (v3yclip - v1yclip <= 0)
353482      return 0;
354483
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);
361486
362487   /* fill in the polygon information */
363488   polygon->poly = poly;
364489   polygon->dest = dest;
365   polygon->callback = callback;
490   polygon->tricallback = callback;
491   polygon->quadcallback = NULL;
492   polygon->extra = poly->extra[poly->extra_next - 1];
366493
367494   /* set the start X/Y coordinates */
368495   polygon->params.xorigin = v1x;
369496   polygon->params.yorigin = v1y;
370497
371498   /* 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);
375502
376503   /* compute the X extents for each scanline */
377504   startunit = poly->unit_next;
r1238r1239
379506   {
380507      UINT32 bucketnum = ((UINT32)curscan / SCANLINES_PER_BUCKET) % TOTAL_BUCKETS;
381508      UINT32 unit_index = poly->unit_next++;
382      work_unit *unit = poly->unit[unit_index];
509      tri_work_unit *unit = &poly->unit[unit_index]->tri;
383510      int extnum;
384511
385512      /* determine how much to advance to hit the next bucket */
386513      scaninc = SCANLINES_PER_BUCKET - (UINT32)curscan % SCANLINES_PER_BUCKET;
387514
388515      /* 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];
393520      poly->unit_bucket[bucketnum] = unit_index;
394521
395522      /* iterate over extents */
396      for (extnum = 0; extnum < unit->count_next; extnum++)
523      for (extnum = 0; extnum < unit->shared.count_next; extnum++)
397524      {
398525         float fully = (float)(curscan + extnum) + 0.5f;
399         float startx = v1->x + (fully - v1->y) * dxdy_minmax;
526         float startx = v1->x + (fully - v1->y) * dxdy_v1v3;
400527         float stopx;
401528         INT32 istartx, istopx;
402529
403530         /* compute the ending X based on which part of the triangle we're in */
404531         if (fully < v2->y)
405            stopx = v1->x + (fully - v1->y) * dxdy_minmid;
532            stopx = v1->x + (fully - v1->y) * dxdy_v1v2;
406533         else
407            stopx = v2->x + (fully - v2->y) * dxdy_midmax;
534            stopx = v2->x + (fully - v2->y) * dxdy_v2v3;
408535
409536         /* clamp to full pixels */
410537         istartx = round_coordinate(startx);
r1238r1239
439566         pixels += istopx - istartx;
440567      }
441568   }
569#if KEEP_STATISTICS
570   poly->unit_max = MAX(poly->unit_max, poly->unit_next);
571#endif
442572
443573   /* compute parameter starting points and deltas */
444574   if (paramcount > 0)
r1238r1239
475605      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);
476606
477607   /* return the total number of pixels in the triangle */
478   poly->polygons++;
608   poly->triangles++;
479609   poly->pixels += pixels;
480610   return pixels;
481611}
482612
483613
484614/*-------------------------------------------------
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
487617-------------------------------------------------*/
488618
489UINT32 poly_render_custom(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline callback, int startscanline, int numscanlines, const scanline_extent *extents)
619UINT32 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)
490620{
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
636UINT32 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{
491638   INT32 curscan, scaninc;
492639   polygon_info *polygon;
493640   INT32 v1yclip, v3yclip;
r1238r1239
508655   if (v3yclip - v1yclip <= 0)
509656      return 0;
510657
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);
517660
518661   /* fill in the polygon information */
519662   polygon->poly = poly;
520663   polygon->dest = dest;
521   polygon->callback = callback;
664   polygon->tricallback = callback;
665   polygon->quadcallback = NULL;
666   polygon->extra = poly->extra[poly->extra_next - 1];
522667
523668   /* compute the X extents for each scanline */
524669   startunit = poly->unit_next;
r1238r1239
526671   {
527672      UINT32 bucketnum = ((UINT32)curscan / SCANLINES_PER_BUCKET) % TOTAL_BUCKETS;
528673      UINT32 unit_index = poly->unit_next++;
529      work_unit *unit = poly->unit[unit_index];
674      tri_work_unit *unit = &poly->unit[unit_index]->tri;
530675      int extnum;
531676
532677      /* determine how much to advance to hit the next bucket */
533678      scaninc = SCANLINES_PER_BUCKET - (UINT32)curscan % SCANLINES_PER_BUCKET;
534679
535680      /* 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];
540685      poly->unit_bucket[bucketnum] = unit_index;
541686
542687      /* iterate over extents */
543      for (extnum = 0; extnum < unit->count_next; extnum++)
688      for (extnum = 0; extnum < unit->shared.count_next; extnum++)
544689      {
545         const scanline_extent *extent = &extents[(curscan + extnum) - startscanline];
690         const tri_extent *extent = &extents[(curscan + extnum) - startscanline];
546691         INT32 istartx = extent->startx, istopx = extent->stopx;
547692
548693         /* force start < stop */
r1238r1239
569714            pixels += istopx - istartx;
570715      }
571716   }
717#if KEEP_STATISTICS
718   poly->unit_max = MAX(poly->unit_max, poly->unit_next);
719#endif
572720
573721   /* enqueue the work items */
574722   if (poly->queue != NULL)
575723      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);
576724
577725   /* return the total number of pixels in the object */
578   poly->polygons++;
726   poly->triangles++;
579727   poly->pixels += pixels;
580728   return pixels;
581729}
r1238r1239
583731
584732
585733/***************************************************************************
586    WORK ITEM CALLBACK
734    CORE QUAD RENDERING
587735***************************************************************************/
588736
589737/*-------------------------------------------------
738    poly_render_quad - render a single quad
739    given 4 vertexes
740-------------------------------------------------*/
741
742UINT32 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
967UINT32 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
990int 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
1025static 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
1056static 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/*-------------------------------------------------
5901068    poly_item_callback - callback for each poly
5911069    item
5921070-------------------------------------------------*/
r1238r1239
5961074   while (1)
5971075   {
5981076      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;
6011079      UINT32 orig_count_next;
602      int extnum;
1080      int curscan;
6031081
6041082      /* 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)
6061084      {
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)
6091087         {
6101088            UINT32 unitnum = ((UINT8 *)unit - (UINT8 *)polygon->poly->unit[0]) / polygon->poly->unit_size;
6111089            UINT32 new_count_next;
r1238r1239
6131091            /* attempt to atomically swap in this new value */
6141092            do
6151093            {
616               orig_count_next = prevunit->count_next;
1094               orig_count_next = prevunit->shared.count_next;
6171095               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);
6191097
6201098#if KEEP_STATISTICS
6211099            /* track resolved conflicts */
r1238r1239
6301108      }
6311109
6321110      /* 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);
6351116
6361117      /* set our count to 0 and re-fetch the original count value */
6371118      do
6381119      {
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);
6411122
6421123      /* if we have no more work to do, do nothing */
6431124      orig_count_next >>= 16;
src/emu/eminline.h
r1238r1239
362362}
363363#endif
364364
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
378INLINE 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
397INLINE INT32 atomic_decrement32(INT32 volatile *ptr, INT32 delta)
398{
399   return atomic_add32(ptr, -1);
400}
401#endif
402
365403#endif /* __EMINLINE__ */
src/emu/eigccppc.h
r1238r1239
8686    result to 32 bits
8787-------------------------------------------------*/
8888
89#if !defined(__ppc64__) && !defined(__PPC64__) && !defined(_ARCH_PPC64)
8990#define mul_32x32_shift _mul_32x32_shift
9091INLINE INT32 _mul_32x32_shift(INT32 val1, INT32 val2, UINT8 shift)
9192{
9293   INT32 result;
9394
94#if defined(__ppc64__) || defined(__PPC64__)
9595   __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__ (
10596      " mullw   %[result], %[val1], %[val2]    \n"
10697      " mulhw   %[val1], %[val1], %[val2]      \n"
10798      " srw     %[result], %[result], %[shift] \n"
r1238r1239
114105      : [val2]   "r"   (val2)
115106      : "xer"
116107   );
117#endif
118108
119109   return result;
120110}
111#endif
121112
122113
123114/*-------------------------------------------------
r1238r1239
127118    result to 32 bits
128119-------------------------------------------------*/
129120
121#if !defined(__ppc64__) && !defined(__PPC64__) && !defined(_ARCH_PPC64)
130122#define mulu_32x32_shift _mulu_32x32_shift
131123INLINE UINT32 _mulu_32x32_shift(UINT32 val1, UINT32 val2, UINT8 shift)
132124{
133125   UINT32 result;
134126
135#if defined(__ppc64__) || defined(__PPC64__)
136127   __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__ (
146128      " mullw   %[result], %[val1], %[val2]    \n"
147129      " mulhwu  %[val1], %[val1], %[val2]      \n"
148130      " srw     %[result], %[result], %[shift] \n"
r1238r1239
155137      : [val2]   "r"   (val2)
156138      : "xer"
157139   );
158#endif
159140
160141   return result;
161142}
143#endif
162144
163145
164146/*-------------------------------------------------
r1238r1239
216198    point reciprocal
217199-------------------------------------------------*/
218200
219/* TBD */
201#define recip_approx _recip_approx
202INLINE float _recip_approx(float value)
203{
204   float result;
220205
206   __asm__ (
207      " fres  %[result], %[value] \n"
208      : [result] "=f" (result)
209      : [value]  "f"  (value)
210   );
221211
212   return result;
213}
222214
215
216
223217/***************************************************************************
224218    INLINE BIT MANIPULATION FUNCTIONS
225219***************************************************************************/
src/emu/machine/i2cmem.c
r1238r1239
7676#define DEVSEL_RW ( 1 )
7777#define DEVSEL_ADDRESS ( 0xfe )
7878
79struct i2cmem_chip i2cmem[ I2CMEM_MAXCHIP ];
79static struct i2cmem_chip i2cmem[ I2CMEM_MAXCHIP ];
8080
8181void i2cmem_init( int chip, int slave_address, int page_size, int data_size, unsigned char *data )
8282{
src/emu/sound/2612intf.c
r1238r1239
1717#include "sound/2612intf.h"
1818
1919
20#if (BUILD_YM2612)
21
2220struct ym2612_info
2321{
2422   sound_stream *   stream;
r1238r1239
235233  YM2612Write(info->chip,3,data);
236234}
237235
236#if BUILD_YM3438
238237
239238/************************************************/
240239/* Status Read for YM3438 - Chip 0              */
r1238r1239
339338  YM2612Write(info->chip,3,data);
340339}
341340
341#endif
342
342343/**************** end of file ****************/
343344
344345/**************************************************************************
r1238r1239
379380 * Generic get_info
380381 **************************************************************************/
381382
383#if BUILD_YM3438
384
382385static void ym3438_set_info(void *token, UINT32 state, sndinfo *info)
383386{
384387   switch (state)
src/emu/sound/3812intf.c
r1238r1239
2424#include "sound/fmopl.h"
2525
2626
27#if (HAS_YM3812)
27#if BUILD_YM3812
2828
2929struct ym3812_info
3030{
r1238r1239
191191#endif
192192
193193
194#if (HAS_YM3526)
194#if BUILD_YM3526
195195
196196struct ym3526_info
197197{
r1238r1239
359359#endif
360360
361361
362#if (HAS_Y8950)
362#if BUILD_Y8950
363363
364364struct y8950_info
365365{
src/emu/sound/ymf262.c
r1238r1239
24572457
24582458
24592459
2460#if (BUILD_YMF262)
2461
24622460void * YMF262Init(int clock, int rate)
24632461{
24642462   return OPL3Create(OPL3_TYPE_YMF262,clock,rate);
r1238r1239
27182716   }
27192717
27202718}
2721#endif /* BUILD_YMF262 */
2719
src/emu/sound/ymf262.h
r1238r1239
11#ifndef YMF262_H
22#define YMF262_H
33
4
5#define BUILD_YMF262 (HAS_YMF262)
6
7
84/* select number of output bits: 8 or 16 */
95#define OPL3_SAMPLE_BITS 16
106
r1238r1239
3430typedef void (*OPL3_UPDATEHANDLER)(void *param,int min_interval_us);
3531
3632
37
38#if BUILD_YMF262
39
4033void *YMF262Init(int clock, int rate);
4134void YMF262Shutdown(void *chip);
4235void YMF262ResetChip(void *chip);
r1238r1239
4942void YMF262SetIRQHandler(void *chip, OPL3_IRQHANDLER IRQHandler, void *param);
5043void YMF262SetUpdateHandler(void *chip, OPL3_UPDATEHANDLER UpdateHandler, void *param);
5144
52#endif
5345
54
5546#endif /* YMF262_H */
src/emu/sound/wave.c
r1238r1239
99****************************************************************************/
1010
1111#include "driver.h"
12#include "streams.h"
13#ifdef MESS
14#include "messdrv.h"
1215#include "utils.h"
1316#include "devices/cassette.h"
14#include "streams.h"
15#include "wave.h"
17#endif
1618
1719#define ALWAYS_PLAY_SOUND   0
1820#define WAVE_TOKEN_MASK      0xFFFF0000
r1238r1239
2123
2224static void wave_sound_update(void *param,stream_sample_t **inputs, stream_sample_t **_buffer,int length)
2325{
26#ifdef MESS
2427   mess_image *image;
2528   cassette_image *cassette;
2629   cassette_state state;
r1238r1239
4952   {
5053      memset(buffer, 0, sizeof(*buffer) * length);
5154   }
55#endif
5256}
5357
5458
src/emu/sound/scsp.c
r1238r1239
14181418   return SCSP_r16(SCSP, offset*2);
14191419}
14201420
1421extern UINT32* stv_scu;
1421UINT32* stv_scu;
14221422
14231423WRITE16_HANDLER( SCSP_0_w )
14241424{
src/emu/sound/2610intf.c
r1238r1239
1717#include "2610intf.h"
1818#include "fm.h"
1919
20#if (BUILD_YM2610||BUILD_YM2610B)
21
2220static sound_type chip_type = SOUND_YM2610;
2321struct ym2610_info
2422{
r1238r1239
443441      YM2610Write(info->chip,3,data);
444442   }
445443}
446#endif
447444
448445/**************** end of file ****************/
449446
src/emu/sound/fm.c
r1238r1239
125125#endif
126126
127127/* 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)
129129#define BUILD_OPN_PRESCALER (BUILD_YM2203||BUILD_YM2608)
130130
131131
r1238r1239
43714371
43724372
43734373
4374#if BUILD_YM2612
4374#if (BUILD_YM2612||BUILD_YM3438)
43754375/*******************************************************************************/
43764376/*      YM2612 local section                                                   */
43774377/*******************************************************************************/
r1238r1239
47414741   return F2612->OPN.ST.irq;
47424742}
47434743
4744#endif /* BUILD_YM2612 */
4744#endif /* (BUILD_YM2612||BUILD_YM3238) */
src/emu/sound/fm.h
r1238r1239
1010#define BUILD_YM2608  (HAS_YM2608)      /* build YM2608(OPNA)  emulator */
1111#define BUILD_YM2610  (HAS_YM2610)      /* build YM2610(OPNB)  emulator */
1212#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 */
1415
1516/* select bit size of output : 8 or 16 */
1617#define FM_SAMPLE_BITS 16
r1238r1239
5859  void YM2610UpdateRequest(void *param);
5960  #define YM2610UpdateReq(chip) YM2610UpdateRequest(chip);
6061#endif
61#if BUILD_YM2612
62#if (BUILD_YM2612||BUILD_YM3438)
6263  /* in 2612intf.c */
6364  void YM2612UpdateRequest(void *param);
6465  #define YM2612UpdateReq(chip) YM2612UpdateRequest(chip);
r1238r1239
191192unsigned char YM2610Read(void *chip,int a);
192193int YM2610TimerOver(void *chip, int c );
193194void YM2610Postload(void *chip);
194#endif /* BUILD_YM2610 */
195#endif /* (BUILD_YM2610||BUILD_YM2610B) */
195196
196#if BUILD_YM2612
197#if (BUILD_YM2612||BUILD_YM3438)
197198void * YM2612Init(void *param, int index, int baseclock, int rate,
198199               FM_TIMERHANDLER TimerHandler,FM_IRQHANDLER IRQHandler);
199200void YM2612Shutdown(void *chip);
r1238r1239
204205unsigned char YM2612Read(void *chip,int a);
205206int YM2612TimerOver(void *chip, int c );
206207void YM2612Postload(void *chip);
207#endif /* BUILD_YM2612 */
208#endif /* (BUILD_YM2612||BUILD_YM3438) */
208209
209210
210211#endif /* _H_FM_FM_ */
src/emu/sound/2608intf.c
r1238r1239
1717#include "2608intf.h"
1818#include "fm.h"
1919
20#if (BUILD_YM2608)
21
2220struct ym2608_info
2321{
2422   sound_stream *   stream;
r1238r1239
314312      case SNDINFO_STR_CORE_CREDITS:               info->s = "Copyright (c) 2004, The MAME Team"; break;
315313   }
316314}
317
318#endif
src/emu/sound/2151intf.c
r1238r1239
2222};
2323
2424
25#if (HAS_YM2151)
26
2725static void ym2151_update(void *param, stream_sample_t **inputs, stream_sample_t **buffers, int length)
2826{
2927   struct ym2151_info *info = param;
r1238r1239
236234      case SNDINFO_STR_CORE_CREDITS:               info->s = "Copyright (c) 2004, The MAME Team"; break;
237235   }
238236}
239
240#endif
241
src/emu/sound/sound.mak
r1238r1239
612612SOUNDDEFS += -DHAS_VOTRAX=$(if $(filter VOTRAX,$(SOUNDS)),1,0)
613613
614614ifneq ($(filter VOTRAX,$(SOUNDS)),)
615SOUNDOBJS += $(SOUNDOBJ)/votrax.o
615SOUNDOBJS += $(SOUNDOBJ)/votrax.o $(SOUNDOBJ)/samples.o
616616endif
617617
618618
src/emu/sound/262intf.c
r1238r1239
1111#include "ymf262.h"
1212
1313
14#if (HAS_YMF262)
15
1614struct ymf262_info
1715{
1816   sound_stream *   stream;
r1238r1239
189187   }
190188}
191189
192#endif
193
src/emu/driver.h
r1238r1239
524524   NULL                           \
525525};
526526
527#define GAMEB(YEAR,NAME,PARENT,BIOS,MACHINE,INPUT,INIT,MONITOR,COMPANY,FULLNAME,FLAGS)   \
528game_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
544527#define GAMEL(YEAR,NAME,PARENT,MACHINE,INPUT,INIT,MONITOR,COMPANY,FULLNAME,FLAGS,LAYOUT)   \
545528game_driver driver_##NAME =               \
546529{                                 \
docs/messnew.txt
r1238r1239
3333
3434- [ATARIST] Implemented iKBD<->68000 communications, so the keyboard is working now. [Curt Coder]
3535
36- [MEPHISTO] Implemented artwork/code for real chess board usage. [Ralf Schäfer, Cowering]
36- [MEPHISTO] Implemented artwork/code for real chess board usage. [Ralf Schfer, Cowering]
3737
3838User Interface Changes:
3939-----------------------
r1238r1239
4949
5050Source Changes:
5151----------------
52- The core is based on MAME 0.120u2.  This incorporates all features of the
52- The core is based on MAME 0.120u3.  This incorporates all features of the
5353  update to this core.  [MAME team]
5454
5555
r1238r1239
56435643  *"Engine" is separate from the "shell"; which gives the potential for front ends for
56445644   those who don't like command lines. [Nate Woods]
56455645
5646- Disk write support for AMSTRAD CPC [Oscar Martín González]
5646- Disk write support for AMSTRAD CPC [Oscar Mart�ín González]
56475647
56485648- Wave timer fix [Oscar Martín González]
56495649
r1238r1239
61066106NES [Brad Oliver]
61076107TRS-80 [Jurgen Buchmueller]
61086108Colour Genie [Juergen Buchmueller]
6109Genesis [Gareth Long]
6109Genesis [Gareth Long]

Previous 15994 Revisions Next


© 1998-2018 The MESS Team